1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 11:27:18 +00:00
Files
seahub/media/assets/frontend/js/main.097fb87af139.js
2018-08-02 11:36:54 +08:00

2 lines
1.5 MiB

!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=265)}([function(e,t,n){"use strict";function r(e,t){return!(!t||!t[ne[e]])}function o(){return oe()}function i(e){oe=e}function a(){re=0,oe=function(){return""+re++}}function s(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;!function(t){var n=e[t];if(!n)throw new Error('Object does not have a property named "'+t+'".');e[t]=function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];if(!be)return n.apply(this,r);Te!==this.__cache_key&&(this.__cache_key=Te,this.__cache=new Map,this.__cache_no_args={}),this.__cache||(this.__cache=new Map),this.__cache_no_args||(this.__cache_no_args={});var i=0!==r.length,a=void 0,s=void 0;if(i?(s=[t].concat(r),a=u(this.__cache,s)):a=this.__cache_no_args[t],a!==ke)return a===Ee?void 0:a;var c=n.apply(this,r),f=void 0===c?Ee:c;return i?this.__cache=l(this.__cache,s,f):this.__cache_no_args[t]=f,c}}(s)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}function u(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;if((e=e.get(s))===ke)return ke}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return e.get(_e)}function l(e,t,n){var r=e,o=void 0,i=!0,a=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;o=r.get(c),o===ke&&(o=new Map,r.set(c,o)),r=o}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return o.set(_e,n),e}function c(){++Te>=Number.MAX_SAFE_INTEGER&&(Te=0)}function f(e){be=e}function p(e){return"text"==e.object?e:e.getFirstText()}function d(e){return"text"==e.object?e:e.getLastText()}function h(e){if("string"==typeof e)return e;throw new Error("Invalid `key` argument! It must be a key string, but you passed: "+e)}function m(e){return je<=e&&e<=Fe}function g(e,t){if(He.test(e))return!1;if(Ue.test(e)){var n=t.charAt(0),r=v(n);n=t.slice(0,r);if(g(n,t.slice(r)))return!0}return!ze.test(e)}function v(e){return m(e.charCodeAt(0))?2:1}function y(e){return v(e.charAt(0))}function b(e,t){return e=e.slice(0,t),e=Object(z.reverse)(e),y(e)}function T(e,t){return e=e.slice(t),y(e)}function _(e){for(var t=0,n=0,r=!1,o=void 0;o=e.charAt(n);){var i=v(o);o=e.slice(n,n+i);if(g(o,e.slice(n+i)))r=!0,t+=i;else{if(r)break;t+=i}n+=i}return t}function E(e,t){return e=e.slice(0,t),e=Object(z.reverse)(e),_(e)}function k(e,t){return e=e.slice(t),_(e)}function w(e,t){return!!t&&("set_selection"==e.type&&"set_selection"==t.type||"insert_text"==e.type&&"insert_text"==t.type&&e.offset==t.offset+t.text.length&&G()(e.path,t.path)||"remove_text"==e.type&&"remove_text"==t.type&&e.offset+e.text.length==t.offset&&G()(e.path,t.path))}function x(e,t){return!!t&&("set_selection"==e.type&&"set_selection"==t.type)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={document:{},blocks:{},inlines:{}};return e.slice().reverse().forEach(function(e){if(e.schema){if(e.schema.rules)throw new Error("Schemas in Slate have changed! They are no longer accept a `rules` property.");if(e.schema.nodes)throw new Error("Schemas in Slate have changed! They are no longer accept a `nodes` property.");var n=e.schema,r=n.document,o=void 0===r?{}:r,i=n.blocks,a=void 0===i?{}:i,s=n.inlines,u=void 0===s?{}:s,l=A(o),c={},f={};for(var p in a)c[p]=O("block",p,a[p]);for(var d in u)f[d]=O("inline",d,u[d]);Y()(t.document,l,S),Y()(t.blocks,c,S),Y()(t.inlines,f,S)}}),t}function A(e){return ue({data:{},nodes:null},e)}function O(e,t,n){return ue({data:{},isVoid:null,nodes:null,first:null,last:null,parent:null,text:null},n)}function S(e,t,n){return"objects"==n||"types"==n||"marks"==n?null==e?t:e.concat(t):null==t?e:t}function N(e){e=it.create(e);var t=e,n=t.type;if(at(n,e),"insert_node"==n){return e.set("type","remove_node")}if("remove_node"==n){return e.set("type","insert_node")}if("move_node"==n){var r=e,o=r.newPath,i=r.path,a=o,s=i,u=i.length-1,l=o.length-1;i.length<a.length&&i.slice(0,u).every(function(e,t){return e==a[t]})&&i[u]<a[u]&&(a=a.slice(0,u).concat([a[u]-1]).concat(a.slice(u+1,a.length))),o.length<s.length&&o.slice(0,l).every(function(e,t){return e==s[t]})&&o[l]<=s[l]&&(s=s.slice(0,l).concat([s[l]+1]).concat(s.slice(l+1,s.length)));return e.set("path",a).set("newPath",s)}if("merge_node"==n){var c=e,f=c.path,p=f.length,d=p-1,h=f.slice(0,d).concat([f[d]-1]);return e.set("type","split_node").set("path",h)}if("split_node"==n){var m=e,g=m.path,v=g.length,y=v-1,b=g.slice(0,y).concat([g[y]+1]);return e.set("type","merge_node").set("path",b)}if("set_node"==n){var T=e,_=T.properties,E=T.node,k=E.merge(_),w=X()(E,Object.keys(_));return e.set("node",k).set("properties",w)}if("insert_text"==n){return e.set("type","remove_text")}if("remove_text"==n){return e.set("type","insert_text")}if("add_mark"==n){return e.set("type","remove_mark")}if("remove_mark"==n){return e.set("type","add_mark")}if("set_mark"==n){var x=e,C=x.properties,A=x.mark,O=A.merge(C),S=X()(A,Object.keys(C));return e.set("mark",O).set("properties",S)}if("set_selection"==n){var N=e,D=N.properties,I=N.selection,M=N.value,L=D.anchorPath,P=D.focusPath,R=ce(D,["anchorPath","focusPath"]),B=M.document;void 0!==L&&(R.anchorKey=null===L?null:B.assertPath(L).key),void 0!==P&&(R.focusKey=null===P?null:B.assertPath(P).key);var j=I.merge(R),F=X()(I,Object.keys(R));void 0!==L&&(F.anchorPath=null===F.anchorKey?null:B.getPath(F.anchorKey),delete F.anchorKey),void 0!==P&&(F.focusPath=null===F.focusKey?null:B.getPath(F.focusKey),delete F.focusKey);return e.set("selection",j).set("properties",F)}if("set_value"==n){var H=e,U=H.properties,z=H.value,K=z.merge(U),q=X()(z,Object.keys(U));return e.set("value",K).set("properties",q)}}function D(e,t,n){if("text"==t.object)return void I(e,t,n);for(var r=t.getFirstInvalidDescendant(n),o=e.value.document.getPath(t.key);t&&r;)D(e,r,n),t=e.value.document.refindNode(o,t.key),t?(o=e.value.document.refindPath(o,t.key),r=t.getFirstInvalidDescendant(n)):(o=[],r=null);t&&I(e,t,n)}function I(e,t,n){function r(e,t){var a=t.validate(n);if(a){var s=e.value.document.getPath(t.key);if(a(e),t=e.value.document.refindNode(s,t.key)){if(s=e.value.document.refindPath(s,t.key),++i>o)throw new Error("A schema rule could not be validated after sufficient iterations. This is usually due to a `rule.validate` or `rule.normalize` function of a schema being incorrectly written, causing an infinite loop.");r(e,t)}}}var o=n.stack.plugins.length+1,i=0;r(e,t)}function M(e,t,n){if(e.selection&&t(e.selection)&&(e=e.set("selection",n(e.selection))),!e.decorations)return e;var r=e.decorations.map(function(e){return t(e)?n(e):e}).filter(function(e){return null!==e.anchorKey});return e.set("decorations",r)}function L(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return M(e,function(e){if(!e.isAtomic)return!1;var o=e.startKey,i=e.startOffset,a=e.endKey,s=e.endOffset;return o==t&&i<n&&(a!=t||s>n)||r&&o==t&&i<r&&(a!=t||s>r)},function(e){return e.deselect()})}function P(e,t){t=it.create(t);var n=t,r=n.type,o=mt[r];if(!o)throw new Error('Unknown operation type: "'+r+'".');return ht(r,t),e=o(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Block",function(){return me}),n.d(t,"Change",function(){return vt}),n.d(t,"Changes",function(){return dt}),n.d(t,"Character",function(){return Ie}),n.d(t,"Data",function(){return ye}),n.d(t,"Document",function(){return Oe}),n.d(t,"History",function(){return $e}),n.d(t,"Inline",function(){return ve}),n.d(t,"Leaf",function(){return Le}),n.d(t,"Mark",function(){return xe}),n.d(t,"Node",function(){return Be}),n.d(t,"Operation",function(){return it}),n.d(t,"Operations",function(){return yt}),n.d(t,"Range",function(){return Ne}),n.d(t,"Schema",function(){return tt}),n.d(t,"Stack",function(){return Qe}),n.d(t,"Text",function(){return Re}),n.d(t,"Value",function(){return rt}),n.d(t,"resetKeyGenerator",function(){return a}),n.d(t,"setKeyGenerator",function(){return i}),n.d(t,"resetMemoization",function(){return c}),n.d(t,"useMemoization",function(){return f});var R=n(337),B=n.n(R),j=n(90),F=n(5),H=(n.n(F),n(339)),U=n.n(H),z=n(340),K=(n.n(z),n(341)),q=n.n(K),W=n(343),G=n.n(W),V=n(394),Y=n.n(V),$=n(63),J=n(411),X=n.n(J),Q=n(427),Z=n.n(Q),ee=n(448),te=n.n(ee),ne={BLOCK:"@@__SLATE_BLOCK__@@",CHANGE:"@@__SLATE_CHANGE__@@",CHARACTER:"@@__SLATE_CHARACTER__@@",DOCUMENT:"@@__SLATE_DOCUMENT__@@",HISTORY:"@@__SLATE_HISTORY__@@",INLINE:"@@__SLATE_INLINE__@@",LEAF:"@@__SLATE_LEAF__@@",MARK:"@@__SLATE_MARK__@@",OPERATION:"@@__SLATE_OPERATION__@@",RANGE:"@@__SLATE_RANGE__@@",SCHEMA:"@@__SLATE_SCHEMA__@@",STACK:"@@__SLATE_STACK__@@",TEXT:"@@__SLATE_TEXT__@@",VALUE:"@@__SLATE_VALUE__@@"},re=void 0,oe=void 0;a();var ie="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},se=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},ce=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},fe=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},pe=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),de=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},he={data:new F.Map,isVoid:!1,key:void 0,nodes:new F.List,type:void 0},me=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,isVoid:this.isVoid,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"block"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return!this.isVoid&&!this.nodes.some(function(e){return!e.isEmpty})}},{key:"text",get:function(){return this.getText()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isBlock(e))return e;if("string"==typeof e&&(e={type:e}),B()(e))return t.fromJSON(e);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isBlock(e))return e;var n=e.data,r=void 0===n?{}:n,i=e.isVoid,a=void 0!==i&&i,s=e.key,u=void 0===s?o():s,l=e.nodes,c=void 0===l?[]:l,f=e.type;if("string"!=typeof f)throw new Error("`Block.fromJSON` requires a `type` string.");return new t({key:u,type:f,isVoid:!!a,data:Object(F.Map)(r),nodes:t.createChildren(c)})}},{key:"isBlockList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isBlock(e)})}}]),t}(Object(F.Record)(he));me.fromJS=me.fromJSON,me.isBlock=r.bind(null,"BLOCK"),me.prototype[ne.BLOCK]=!0;var ge={data:new F.Map,isVoid:!1,key:void 0,nodes:new F.List,type:void 0},ve=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,isVoid:this.isVoid,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"inline"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return!this.isVoid&&!this.nodes.some(function(e){return!e.isEmpty})}},{key:"text",get:function(){return this.getText()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isInline(e))return e;if("string"==typeof e&&(e={type:e}),B()(e))return t.fromJSON(e);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isInline(e))return e;var n=e.data,r=void 0===n?{}:n,i=e.isVoid,a=void 0!==i&&i,s=e.key,u=void 0===s?o():s,l=e.nodes,c=void 0===l?[]:l,f=e.type;if("string"!=typeof f)throw new Error("`Inline.fromJS` requires a `type` string.");return new t({key:u,type:f,isVoid:!!a,data:new F.Map(r),nodes:t.createChildren(c)})}},{key:"isInlineList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isInline(e)})}}]),t}(Object(F.Record)(ge));ve.fromJS=ve.fromJSON,ve.isInline=r.bind(null,"INLINE"),ve.prototype[ne.INLINE]=!0;var ye=function(){function e(){ae(this,e)}return se(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F.Map.isMap(t))return t;if(B()(t))return e.fromJSON(t);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+t)}},{key:"fromJSON",value:function(e){return new F.Map(e)}}]),e}();ye.fromJS=ye.fromJSON;var be=!0,Te=0,_e={},Ee={},ke=void 0,we={data:new F.Map,type:void 0},xe=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getComponent",value:function(e){return e.__getComponent(this)}},{key:"toJSON",value:function(){return{object:this.object,type:this.type,data:this.data.toJSON()}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"mark"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return e;if("string"==typeof e&&(e={type:e}),B()(e))return t.fromJSON(e);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"createSet",value:function(e){if(F.Set.isSet(e)||Array.isArray(e)){return new F.Set(e.map(t.create))}if(null==e)return Object(F.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(B()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=ye.create(e.data)),n}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,o=e.type;if("string"!=typeof o)throw new Error("`Mark.fromJS` requires a `type` string.");return new t({type:o,data:new F.Map(r)})}},{key:"isMarkSet",value:function(e){return F.Set.isSet(e)&&e.every(function(e){return t.isMark(e)})}}]),t}(Object(F.Record)(we));xe.fromJS=xe.fromJSON,xe.isMark=r.bind(null,"MARK"),xe.prototype[ne.MARK]=!0,s(xe.prototype,["getComponent"]);var Ce={};["deleteBackward","deleteCharBackward","deleteLineBackward","deleteWordBackward","deleteForward","deleteCharForward","deleteWordForward","deleteLineForward","setBlocks","setInlines","splitInline","unwrapBlock","unwrapInline","wrapBlock","wrapInline"].forEach(function(e){Ce[e]=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.value,a=i.selection;t[e+"AtRange"].apply(t,[a].concat(r)),e.match(/Backward$/)?t.collapseToStart():e.match(/Forward$/)&&t.collapseToEnd()}}),Ce.setBlock=function(){j.default.deprecate("slate@0.33.0","The `setBlock` method of Slate changes has been renamed to `setBlocks`."),Ce.setBlocks.apply(Ce,arguments)},Ce.setInline=function(){j.default.deprecate("slate@0.33.0","The `setInline` method of Slate changes has been renamed to `setInlines`."),Ce.setInlines.apply(Ce,arguments)},Ce.addMark=function(e,t){t=xe.create(t);var n=e.value,r=n.document,o=n.selection;if(o.isExpanded)e.addMarkAtRange(o,t);else if(o.marks){var i=o.marks.add(t),a=o.set("marks",i);e.select(a)}else{var s=r.getActiveMarksAtRange(o).add(t),u=o.set("marks",s);e.select(u)}},Ce.addMarks=function(e,t){t.forEach(function(t){return e.addMark(t)})},Ce.delete=function(e){var t=e.value,n=t.selection;e.deleteAtRange(n),e.collapseToStart()},Ce.insertBlock=function(e,t){t=me.create(t);var n=e.value,r=n.selection;e.insertBlockAtRange(r,t);var o=e.value.document.getNode(t.key);o&&e.collapseToEndOf(o)},Ce.insertFragment=function(e,t){if(t.nodes.size){var n=e.value,r=n,o=r.document,i=r.selection,a=n,s=a.startText,u=a.endText,l=a.startInline,c=t.getLastText(),f=t.getClosestInline(c.key),p=t.nodes.first(),d=t.nodes.last(),h=o.getTexts().map(function(e){return e.key}),m=!l||i.hasEdgeAtStartOf(s)||i.hasEdgeAtEndOf(u),g=t.hasBlocks(p.key)||t.hasBlocks(d.key);e.insertFragmentAtRange(i,t),n=e.value,o=n.document;var v=o.getTexts().filter(function(e){return!h.includes(e.key)}),y=m?v.last():v.takeLast(2).first();y&&f||g?e.select(i.collapseToEndOf(y)):y?e.select(i.collapseToStartOf(y).move(c.text.length)):e.select(i.collapseToStart().move(c.text.length))}},Ce.insertInline=function(e,t){t=ve.create(t);var n=e.value,r=n.selection;e.insertInlineAtRange(r,t);var o=e.value.document.getNode(t.key);o&&e.collapseToEndOf(o)},Ce.insertText=function(e,t,n){var r=e.value,o=r.document,i=r.selection;n=n||i.marks||o.getInsertMarksAtRange(i),e.insertTextAtRange(i,t,n),i.marks&&o!=e.value.document&&e.select({marks:null})},Ce.splitBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value,r=n.selection,o=n.document,i=r.marks||o.getInsertMarksAtRange(r);e.splitBlockAtRange(r,t).collapseToEnd(),i&&0!==i.size&&e.select({marks:i})},Ce.removeMark=function(e,t){t=xe.create(t);var n=e.value,r=n.document,o=n.selection;if(o.isExpanded)e.removeMarkAtRange(o,t);else if(o.marks){var i=o.marks.remove(t),a=o.set("marks",i);e.select(a)}else{var s=r.getActiveMarksAtRange(o).remove(t),u=o.set("marks",s);e.select(u)}},Ce.replaceMark=function(e,t,n){e.removeMark(t),e.addMark(n)},Ce.toggleMark=function(e,t){t=xe.create(t),e.value.activeMarks.has(t)?e.removeMark(t):e.addMark(t)},Ce.wrapText=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.value,o=r.selection;e.wrapTextAtRange(o,t,n),o.isCollapsed&&e.moveStart(0-t.length),e.moveEnd(0-n.length),o.isForward!=e.value.selection.isForward&&e.flip()};var Ae={data:new F.Map,key:void 0,nodes:new F.List},Oe=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"document"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return!this.nodes.some(function(e){return!e.isEmpty})}},{key:"text",get:function(){return this.getText()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDocument(e))return e;if((F.List.isList(e)||Array.isArray(e))&&(e={nodes:e}),B()(e))return t.fromJSON(e);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isDocument(e))return e;var n=e.data,r=void 0===n?{}:n,i=e.key,a=void 0===i?o():i,s=e.nodes,u=void 0===s?[]:s;return new t({key:a,data:new F.Map(r),nodes:t.createChildren(u)})}}]),t}(Object(F.Record)(Ae));Oe.fromJS=Oe.fromJSON,Oe.isDocument=r.bind(null,"DOCUMENT"),Oe.prototype[ne.DOCUMENT]=!0;var Se={anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0,isBackward:null,isFocused:!1,marks:null,isAtomic:!1},Ne=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"hasAnchorAtStartOf",value:function(e){if(0!=this.anchorOffset)return!1;var t=p(e);return this.anchorKey==t.key}},{key:"hasAnchorAtEndOf",value:function(e){var t=d(e);return this.anchorKey==t.key&&this.anchorOffset==t.text.length}},{key:"hasAnchorBetween",value:function(e,t,n){return this.anchorOffset<=n&&t<=this.anchorOffset&&this.hasAnchorIn(e)}},{key:"hasAnchorIn",value:function(e){return"text"==e.object?e.key==this.anchorKey:null!=this.anchorKey&&e.hasDescendant(this.anchorKey)}},{key:"hasFocusAtEndOf",value:function(e){var t=d(e);return this.focusKey==t.key&&this.focusOffset==t.text.length}},{key:"hasFocusAtStartOf",value:function(e){if(0!=this.focusOffset)return!1;var t=p(e);return this.focusKey==t.key}},{key:"hasFocusBetween",value:function(e,t,n){return t<=this.focusOffset&&this.focusOffset<=n&&this.hasFocusIn(e)}},{key:"hasFocusIn",value:function(e){return"text"==e.object?e.key==this.focusKey:null!=this.focusKey&&e.hasDescendant(this.focusKey)}},{key:"isAtStartOf",value:function(e){return this.isCollapsed&&this.hasAnchorAtStartOf(e)}},{key:"isAtEndOf",value:function(e){return this.isCollapsed&&this.hasAnchorAtEndOf(e)}},{key:"focus",value:function(){return this.merge({isFocused:!0})}},{key:"blur",value:function(){return this.merge({isFocused:!1})}},{key:"deselect",value:function(){return this.merge({anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0,isFocused:!1,isBackward:!1})}},{key:"flip",value:function(){return this.merge({anchorKey:this.focusKey,anchorOffset:this.focusOffset,focusKey:this.anchorKey,focusOffset:this.anchorOffset,isBackward:null==this.isBackward?null:!this.isBackward})}},{key:"moveAnchor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.anchorKey,n=this.focusKey,r=this.focusOffset,o=this.isBackward,i=this.anchorOffset+e;return this.merge({anchorOffset:i,isBackward:t==n?i>r:o})}},{key:"moveFocus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.anchorKey,n=this.anchorOffset,r=this.focusKey,o=this.isBackward,i=this.focusOffset+e;return this.merge({focusOffset:i,isBackward:r==t?n>i:o})}},{key:"moveAnchorTo",value:function(e,t){var n=this.anchorKey,r=this.focusKey,o=this.focusOffset,i=this.isBackward;return this.merge({anchorKey:e,anchorOffset:t,isBackward:e==r?t>o:e==n?i:null})}},{key:"moveFocusTo",value:function(e,t){var n=this.focusKey,r=this.anchorKey,o=this.anchorOffset,i=this.isBackward;return this.merge({focusKey:e,focusOffset:t,isBackward:e==r?o>t:e==n?i:null})}},{key:"moveAnchorOffsetTo",value:function(e){return this.merge({anchorOffset:e,isBackward:this.anchorKey==this.focusKey?e>this.focusOffset:this.isBackward})}},{key:"moveFocusOffsetTo",value:function(e){return this.merge({focusOffset:e,isBackward:this.anchorKey==this.focusKey?this.anchorOffset>e:this.isBackward})}},{key:"moveOffsetsTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.moveAnchorOffsetTo(e).moveFocusOffsetTo(t)}},{key:"moveToAnchor",value:function(){return this.moveFocusTo(this.anchorKey,this.anchorOffset)}},{key:"moveToFocus",value:function(){return this.moveAnchorTo(this.focusKey,this.focusOffset)}},{key:"moveAnchorToStartOf",value:function(e){return e=p(e),this.moveAnchorTo(e.key,0)}},{key:"moveAnchorToEndOf",value:function(e){return e=d(e),this.moveAnchorTo(e.key,e.text.length)}},{key:"moveFocusToStartOf",value:function(e){return e=p(e),this.moveFocusTo(e.key,0)}},{key:"moveFocusToEndOf",value:function(e){return e=d(e),this.moveFocusTo(e.key,e.text.length)}},{key:"moveToRangeOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return(this.isBackward?this.flip():this).moveAnchorToStartOf(e).moveFocusToEndOf(t)}},{key:"normalize",value:function(e){var t=this,n=t.anchorKey,r=t.anchorOffset,o=t.focusKey,i=t.focusOffset,a=t.isBackward,s="undefined"===typeof r?"undefined":ie(r),u="undefined"===typeof i?"undefined":ie(i);if("number"==s&&"number"==u||j.default.warn('The range offsets should be numbers, but they were of type "'+s+'" and "'+u+'".'),null==n||null==o)return t.merge({anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0,isBackward:!1});var l=e.getDescendant(n),c=e.getDescendant(o);if(!l||!c){j.default.warn("The range was invalid and was reset. The range in question was:",t);var f=e.getFirstText();return t.merge({anchorKey:f?f.key:null,anchorOffset:0,focusKey:f?f.key:null,focusOffset:0,isBackward:!1})}if("text"!=l.object){j.default.warn("The range anchor was set to a Node that is not a Text node. This should not happen and can degrade performance. The node in question was:",l);var p=l.getTextAtOffset(r);r-=l.getOffset(p.key),l=p}if("text"!=c.object){j.default.warn("The range focus was set to a Node that is not a Text node. This should not happen and can degrade performance. The node in question was:",c);var d=c.getTextAtOffset(i);i-=c.getOffset(d.key),c=d}return null==a&&(a=l.key===c.key?r>i:!e.areDescendantsSorted(l.key,c.key)),t.merge({anchorKey:l.key,anchorOffset:r,focusKey:c.key,focusOffset:i,isBackward:a})}},{key:"toJSON",value:function(){return{object:this.object,anchorKey:this.anchorKey,anchorOffset:this.anchorOffset,focusKey:this.focusKey,focusOffset:this.focusOffset,isBackward:this.isBackward,isFocused:this.isFocused,marks:null==this.marks?null:this.marks.toArray().map(function(e){return e.toJSON()}),isAtomic:this.isAtomic}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"range"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isBlurred",get:function(){return!this.isFocused}},{key:"isCollapsed",get:function(){return this.anchorKey==this.focusKey&&this.anchorOffset==this.focusOffset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isForward",get:function(){return null==this.isBackward?null:!this.isBackward}},{key:"isSet",get:function(){return null!=this.anchorKey&&null!=this.focusKey}},{key:"isUnset",get:function(){return!this.isSet}},{key:"startKey",get:function(){return this.isBackward?this.focusKey:this.anchorKey}},{key:"startOffset",get:function(){return this.isBackward?this.focusOffset:this.anchorOffset}},{key:"endKey",get:function(){return this.isBackward?this.anchorKey:this.focusKey}},{key:"endOffset",get:function(){return this.isBackward?this.anchorOffset:this.focusOffset}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return{anchorKey:e.anchorKey,anchorOffset:e.anchorOffset,focusKey:e.focusKey,focusOffset:e.focusOffset,isBackward:e.isBackward,isFocused:e.isFocused,marks:e.marks,isAtomic:e.isAtomic};if(B()(e)){var n={};return"anchorKey"in e&&(n.anchorKey=e.anchorKey),"anchorOffset"in e&&(n.anchorOffset=e.anchorOffset),"anchorPath"in e&&(n.anchorPath=e.anchorPath),"focusKey"in e&&(n.focusKey=e.focusKey),"focusOffset"in e&&(n.focusOffset=e.focusOffset),"focusPath"in e&&(n.focusPath=e.focusPath),"isBackward"in e&&(n.isBackward=e.isBackward),"isFocused"in e&&(n.isFocused=e.isFocused),"marks"in e&&(n.marks=null==e.marks?null:xe.createSet(e.marks)),"isAtomic"in e&&(n.isAtomic=e.isAtomic),n}throw new Error("`Range.createProperties` only accepts objects or ranges, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchorKey,r=void 0===n?null:n,o=e.anchorOffset,i=void 0===o?0:o,a=e.focusKey,s=void 0===a?null:a,u=e.focusOffset,l=void 0===u?0:u,c=e.isBackward,f=void 0===c?null:c,p=e.isFocused,d=void 0!==p&&p,h=e.marks,m=void 0===h?null:h,g=e.isAtomic,v=void 0!==g&&g;return new t({anchorKey:r,anchorOffset:i,focusKey:s,focusOffset:l,isBackward:f,isFocused:d,marks:null==m?null:new F.Set(m.map(xe.fromJSON)),isAtomic:v})}},{key:"isRange",value:function(e){return!(!e||!e[ne.RANGE])}}]),t}(Object(F.Record)(Se));Ne.fromJS=Ne.fromJSON,Ne.prototype[ne.RANGE]=!0,[["move",""],["move","To"],["move","ToStartOf"],["move","ToEndOf"]].forEach(function(e){var t=pe(e,2),n=t[0],r=t[1];Ne.prototype[""+n+r]=function(){var e;return(e=this[n+"Anchor"+r].apply(this,arguments))[n+"Focus"+r].apply(e,arguments)}}),[["has","AtStartOf",!0],["has","AtEndOf",!0],["has","Between",!0],["has","In",!0],["collapseTo",""],["move",""],["moveTo",""],["move","To"],["move","OffsetTo"]].forEach(function(e){var t=pe(e,3),n=t[0],r=t[1],o=t[2],i=n+"Anchor"+r,a=n+"Focus"+r;Ne.prototype[n+"Start"+r]=function(){return this.isBackward?this[a].apply(this,arguments):this[i].apply(this,arguments)},Ne.prototype[n+"End"+r]=function(){return this.isBackward?this[i].apply(this,arguments):this[a].apply(this,arguments)},o&&(Ne.prototype[n+"Edge"+r]=function(){return this[i].apply(this,arguments)||this[a].apply(this,arguments)})}),[["collapseTo","moveTo"],["collapseToAnchor","moveToAnchor"],["collapseToFocus","moveToFocus"],["collapseToStart","moveToStart"],["collapseToEnd","moveToEnd"],["collapseToStartOf","moveToStartOf"],["collapseToEndOf","moveToEndOf"],["extend","moveFocus"],["extendTo","moveFocusTo"],["extendToStartOf","moveFocusToStartOf"],["extendToEndOf","moveFocusToEndOf"]].forEach(function(e){var t=pe(e,2),n=t[0],r=t[1];Ne.prototype[n]=function(){return this[r].apply(this,arguments)}});var De={marks:new F.Set,text:""},Ie=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map(function(e){return e.toJSON()})}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"character"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isCharacter(e))return e;if("string"==typeof e&&(e={text:e}),B()(e))return t.fromJSON(e);throw new Error("`Character.create` only accepts objects, strings or characters, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("string"==typeof e&&(e=e.split("")),F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Block.createList` only accepts strings, arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,r=e.marks,o=void 0===r?[]:r;if("string"!=typeof n)throw new Error("`Character.fromJSON` requires a block `text` string.");return new t({text:n,marks:new F.Set(o)})}},{key:"isCharacterList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isCharacter(e)})}}]),t}(Object(F.Record)(De));Ie.fromJS=Ie.fromJSON,Ie.isCharacter=r.bind(null,"CHARACTER"),Ie.prototype[ne.CHARACTER]=!0;var Me={marks:Object(F.Set)(),text:""},Le=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getCharacters",value:function(){j.default.deprecate("slate@0.34.0","The `characters` property of Slate objects is deprecated");var e=this.marks;return Ie.createList(this.text.split("").map(function(t){return Ie.create({text:t,marks:e})}))}},{key:"updateMark",value:function(e,t){var n=this.marks;if(t.equals(e))return this;if(!n.has(e))return this;var r=n.withMutations(function(n){n.remove(e).add(t)});return this.set("marks",r)}},{key:"addMarks",value:function(e){var t=this.marks;return this.set("marks",t.union(e))}},{key:"removeMark",value:function(e){var t=this.marks;return this.set("marks",t.remove(e))}},{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map(function(e){return e.toJSON()})}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"leaf"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isLeaf(e))return e;if("string"==typeof e&&(e={text:e}),B()(e))return t.fromJSON(e);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+e)}},{key:"createLeaves",value:function(e){if(e.size<=1)return e;var t=!1,n=Object(F.List)().withMutations(function(n){e.findLast(function(e,r){var o=n.first();if(o){if(o.marks.equals(e.marks))return t=!0,void n.set(0,o.set("text",""+e.text+o.text));if(""===o.text)return t=!0,void n.set(0,e);if(""===e.text)return void(t=!0)}n.unshift(e)})});return t?n:e}},{key:"splitLeaves",value:function(e,t){if(t<0)return[Object(F.List)(),e];if(0===e.size)return[Object(F.List)(),Object(F.List)()];var n=0,r=-1,o=void 0,i=void 0;return e.find(function(e){r++;var a=n,s=e.text;if((n+=s.length)<t)return!1;if(a>t)return!1;var u=t-a;return o=e.set("text",s.slice(0,u)),i=e.set("text",s.slice(u)),!0}),o?""===o.text?0===r?[F.List.of(o),e]:[e.take(r),e.skip(r)]:""===i.text?r===e.size-1?[e,F.List.of(i)]:[e.take(r+1),e.skip(r+1)]:[e.take(r).push(o),e.skip(r+1).unshift(i)]:[e,Object(F.List)()]}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,r=void 0===n?"":n,o=e.marks,i=void 0===o?[]:o;return new t({text:r,marks:Object(F.Set)(i.map(xe.fromJSON))})}},{key:"isLeafList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isLeaf(e)})}}]),t}(Object(F.Record)(Me));Le.fromJS=Le.fromJSON,Le.isLeaf=r.bind(null,"LEAF"),Le.prototype[ne.LEAF]=!0;var Pe={leaves:Object(F.List)(),key:void 0},Re=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getString",value:function(){return this.leaves.reduce(function(e,t){return e+t.text},"")}},{key:"searchLeafAtOffset",value:function(e){var t=0,n=0,r=-1;return{leaf:this.leaves.find(function(o){return r++,n=t,(t=n+o.text.length)>=e}),endOffset:t,index:r,startOffset:n}}},{key:"addMark",value:function(e,t,n){var r=F.Set.of(n);return this.addMarks(e,t,r)}},{key:"addMarks",value:function(e,t,n){if(""===this.text&&0===t&&0===e){var r=this.leaves,o=r.first();if(!o)return this.set("leaves",F.List.of(Le.fromJSON({text:"",marks:n})));var i=o.addMarks(n);return i===o?this:this.set("leaves",F.List.of(i))}if(""===this.text)return this;if(0===t)return this;if(e>=this.text.length)return this;var a=Le.splitLeaves(this.leaves,e),s=pe(a,2),u=s[0],l=s[1],c=Le.splitLeaves(l,t),f=pe(c,2),p=f[0],d=f[1],h=u.concat(p.map(function(e){return e.addMarks(n)}),d);return this.setLeaves(h)}},{key:"getDecorations",value:function(e){return e.__getDecorations(this)}},{key:"getLeaves",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.leaves;if(0===n.size)return F.List.of(Le.create({}));if(!t||0===t.length)return n;if(0===this.text.length)return n;var r=this.key;return t.forEach(function(t){var o=t.startKey,i=t.endKey,a=t.startOffset,s=t.endOffset,u=t.marks,l=o==r,c=i==r;if(l&&c){var f=l?a:0,p=c?s-f:e.text.length-f;if(p<1)return;if(f>=e.text.length)return;if(0!==f||p<e.text.length){var d=Le.splitLeaves(n,f),h=pe(d,2),m=h[0],g=h[1],v=Le.splitLeaves(g,p),y=pe(v,2),b=y[0],T=y[1];return void(n=m.concat(b.map(function(e){return e.addMarks(u)}),T))}}n=n.map(function(e){return e.addMarks(u)})}),n===this.leaves?n:Le.createLeaves(n)}},{key:"getActiveMarksBetweenOffsets",value:function(e,t){if(e<=0&&t>=this.text.length)return this.getActiveMarks();if(e>=t)return Object(F.Set)();if(""===this.text)return this.getActiveMarks();var n=null,r=0;return this.leaves.forEach(function(o){var i=r;if(!((r=i+o.text.length)<=e))return!(i>=t)&&(n?(n=n.intersect(o.marks),n&&n.size,!1):void(n=o.marks))}),n||Object(F.Set)()}},{key:"getActiveMarks",value:function(){var e=this;if(0===this.leaves.size)return Object(F.Set)();var t=this.leaves.first().marks;return 0===t.size?t:t.withMutations(function(t){e.leaves.forEach(function(e){if(t.intersect(e.marks),0===t.size)return!1})})}},{key:"getMarksBetweenOffsets",value:function(e,t){if(e<=0&&t>=this.text.length)return this.getMarks();if(e>=t)return Object(F.Set)();if(""===this.text)return this.getActiveMarks();var n=null,r=0;return this.leaves.forEach(function(o){var i=r;if(!((r=i+o.text.length)<=e))return!(i>=t)&&(n?void(n=n.union(o.marks)):void(n=o.marks))}),n||Object(F.Set)()}},{key:"getMarks",value:function(){var e=this.getMarksAsArray();return new F.OrderedSet(e)}},{key:"getMarksAsArray",value:function(){if(0===this.leaves.size)return[];var e=this.leaves.first().marks;if(1===this.leaves.size)return e.toArray();var t=[];return this.leaves.forEach(function(e){t.push(e.marks.toArray())}),Array.prototype.concat.apply(e.toArray(),t)}},{key:"getMarksAtIndex",value:function(e){var t=this.searchLeafAtOffset(e),n=t.leaf;return n?n.marks:Object(F.Set)()}},{key:"getNode",value:function(e){return this.key==e?this:null}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"insertText",value:function(e,t,n){if(""===this.text)return this.set("leaves",F.List.of(Le.create({text:t,marks:n})));if(0===t.length)return this;n||(n=Object(F.Set)());var r=this.searchLeafAtOffset(e),o=r.startOffset,i=r.leaf,a=r.index,s=e-o,u=i.text.slice(0,s),l=i.text.slice(s),c=this.leaves;if(i.marks.equals(n))return this.set("leaves",c.set(a,i.set("text",u+t+l)));var f=c.splice(a,1,i.set("text",u),Le.create({text:t,marks:n}),i.set("text",l));return this.setLeaves(f)}},{key:"regenerateKey",value:function(){var e=o();return this.set("key",e)}},{key:"removeMark",value:function(e,t,n){if(""===this.text&&0===e&&0===t){var r=this.leaves.first();if(!r)return this;var o=r.removeMark(n);return o===r?this:this.set("leaves",F.List.of(o))}if(t<=0)return this;if(e>=this.text.length)return this;var i=Le.splitLeaves(this.leaves,e),a=pe(i,2),s=a[0],u=a[1],l=Le.splitLeaves(u,t),c=pe(l,2),f=c[0],p=c[1],d=s.concat(f.map(function(e){return e.removeMark(n)}),p);return this.setLeaves(d)}},{key:"removeText",value:function(e,t){if(t<=0)return this;if(e>=this.text.length)return this;if(1===t){var n=this.searchLeafAtOffset(e+1),r=n.leaf,o=n.index,i=n.startOffset,a=e-i;if(r){if(1===r.text.length){var s=this.leaves.remove(o);return this.setLeaves(s)}var u=r.text.slice(0,a),l=r.text.slice(a+t),c=u+l;if(c.length>0)return this.set("leaves",this.leaves.set(o,r.set("text",c)))}}var f=Le.splitLeaves(this.leaves,e),p=pe(f,2),d=p[0],h=p[1],m=Le.splitLeaves(h,t)[1],g=Le.createLeaves(d.concat(m));if(1===g.size){var v=g.first();if(""===v.text)return this.set("leaves",F.List.of(v.set("marks",this.getActiveMarks())))}return this.set("leaves",g)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,leaves:this.getLeaves().toArray().map(function(e){return e.toJSON()})};return e.preserveKeys&&(t.key=this.key),t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"updateMark",value:function(e,t,n,r){var o=n.merge(r);if(""===this.text&&0===t&&0===e){var i=this.leaves,a=i.first();if(!a)return this;var s=a.updateMark(n,o);return s===a?this:this.set("leaves",F.List.of(s))}if(t<=0)return this;if(e>=this.text.length)return this;var u=Le.splitLeaves(this.leaves,e),l=pe(u,2),c=l[0],f=l[1],p=Le.splitLeaves(f,t),d=pe(p,2),h=d[0],m=d[1],g=c.concat(h.map(function(e){return e.updateMark(n,o)}),m);return this.setLeaves(g)}},{key:"splitText",value:function(e){var t=Le.splitLeaves(this.leaves,e);return[this.set("leaves",t[0]),this.set("leaves",t[1]).regenerateKey()]}},{key:"mergeText",value:function(e){var t=this.leaves.concat(e.leaves);return this.setLeaves(t)}},{key:"validate",value:function(e){return e.validateNode(this)}},{key:"getFirstInvalidDescendant",value:function(e){return this.validate(e)?this:null}},{key:"setLeaves",value:function(e){var t=Le.createLeaves(e);if(1===t.size){var n=t.first();if((!n.marks||0===n.marks.size)&&""===n.text)return this.set("leaves",Object(F.List)())}return this.set("leaves",Le.createLeaves(e))}},{key:"object",get:function(){return"text"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"isEmpty",get:function(){return""==this.text}},{key:"text",get:function(){return this.getString()}},{key:"characters",get:function(){return this.leaves.flatMap(function(e){return e.getCharacters()})}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t.isText(e))return e;if("string"==typeof e&&(e={leaves:[{text:e}]}),B()(e)){if(e.text){var n=e,r=n.text,o=n.marks;e={key:n.key,leaves:[{text:r,marks:o}]}}return t.fromJSON(e)}throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isText(e))return e;var n=e.key,r=void 0===n?o():n,i=e.leaves,a=void 0===i?Object(F.List)():i;if(Array.isArray(a))a=Object(F.List)(a.map(function(e){return Le.create(e)}));else{if(!F.List.isList(a))throw new Error("leaves must be either Array or Immutable.List");a=a.map(function(e){return Le.create(e)})}return new t({leaves:Le.createLeaves(a),key:r})}},{key:"isTextList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isText(e)})}}]),t}(Object(F.Record)(Pe));Re.fromJS=Re.fromJSON,Re.isText=r.bind(null,"TEXT"),Re.prototype[ne.TEXT]=!0,s(Re.prototype,["getDecorations","getActiveMarks","getMarks","getMarksAsArray","validate","getString"]);var Be=function(){function e(){ae(this,e)}return se(e,[{key:"areDescendantsSorted",value:function(e,t){e=h(e),t=h(t);var n=this.getKeysAsArray(),r=n.indexOf(e),o=n.indexOf(t);return-1==r||-1==o?null:r<o}},{key:"assertChild",value:function(e){var t=this.getChild(e);if(!t)throw e=h(e),new Error('Could not find a child node with key "'+e+'".');return t}},{key:"assertDescendant",value:function(e){var t=this.getDescendant(e);if(!t)throw e=h(e),new Error('Could not find a descendant node with key "'+e+'".');return t}},{key:"assertNode",value:function(e){var t=this.getNode(e);if(!t)throw e=h(e),new Error('Could not find a node with key "'+e+'".');return t}},{key:"assertPath",value:function(e){var t=this.getDescendantAtPath(e);if(!t)throw new Error('Could not find a descendant at path "'+e+'".');return t}},{key:"filterDescendants",value:function(e){var t=[];return this.forEachDescendant(function(n,r,o){e(n,r,o)&&t.push(n)}),Object(F.List)(t)}},{key:"findDescendant",value:function(e){var t=null;return this.forEachDescendant(function(n,r,o){if(e(n,r,o))return t=n,!1}),t}},{key:"forEachDescendant",value:function(e){var t=void 0;return this.nodes.forEach(function(n,r,o){return!1===e(n,r,o)?(t=!1,!1):"text"!=n.object?t=n.forEachDescendant(e):void 0}),t}},{key:"getAncestors",value:function(e){if((e=h(e))==this.key)return Object(F.List)();if(this.hasChild(e))return Object(F.List)([this]);var t=void 0;return this.nodes.find(function(n){return"text"!=n.object&&(t=n.getAncestors(e))}),t?t.unshift(this):null}},{key:"getBlocks",value:function(){var e=this.getBlocksAsArray();return new F.List(e)}},{key:"getBlocksAsArray",value:function(){return this.nodes.reduce(function(e,t){return"block"!=t.object?e:t.isLeafBlock()?(e.push(t),e):e.concat(t.getBlocksAsArray())},[])}},{key:"getBlocksAtRange",value:function(e){var t=this.getBlocksAtRangeAsArray(e);return new F.List(new F.OrderedSet(t))}},{key:"getBlocksAtRangeAsArray",value:function(e){if(e=e.normalize(this),e.isUnset)return[];var t=e,n=t.startKey,r=t.endKey,o=this.getClosestBlock(n);if(n==r)return[o];var i=this.getClosestBlock(r),a=this.getBlocksAsArray(),s=a.indexOf(o),u=a.indexOf(i);return a.slice(s,u+1)}},{key:"getBlocksByType",value:function(e){var t=this.getBlocksByTypeAsArray(e);return new F.List(t)}},{key:"getBlocksByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"block"!=n.object?t:n.isLeafBlock()&&n.type==e?(t.push(n),t):t.concat(n.getBlocksByTypeAsArray(e))},[])}},{key:"getCharacters",value:function(){return this.getTexts().flatMap(function(e){return e.characters})}},{key:"getCharactersAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.List)();var t=e,n=t.startKey,r=t.endKey,o=t.startOffset,i=t.endOffset;if(n===r){return this.getDescendant(r).characters.slice(o,i)}return this.getTextsAtRange(e).flatMap(function(e){return e.key===n?e.characters.slice(o):e.key===r?e.characters.slice(0,i):e.characters})}},{key:"getChild",value:function(e){return e=h(e),this.nodes.find(function(t){return t.key==e})}},{key:"getClosest",value:function(e,t){e=h(e);var n=this.getAncestors(e);if(!n)throw new Error('Could not find a descendant node with key "'+e+'".');return n.rest().findLast(t)}},{key:"getClosestBlock",value:function(e){return this.getClosest(e,function(e){return"block"==e.object})}},{key:"getClosestInline",value:function(e){return this.getClosest(e,function(e){return"inline"==e.object})}},{key:"getClosestVoid",value:function(e){return this.getClosest(e,function(e){return e.isVoid})}},{key:"getCommonAncestor",value:function(e,t){if(e=h(e),t=h(t),e==this.key)return this;if(t==this.key)return this;this.assertDescendant(e),this.assertDescendant(t);for(var n=new F.List,r=this.getParent(e),o=this.getParent(t);r;)n=n.push(r),r=this.getParent(r.key);for(;o;){if(n.includes(o))return o;o=this.getParent(o.key)}}},{key:"getDecorations",value:function(e){var t=e.find("decorateNode",this);return Ne.createList(t||[])}},{key:"getDepth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.assertDescendant(e),this.hasChild(e)?t:this.getFurthestAncestor(e).getDepth(e,t+1)}},{key:"getDescendant",value:function(e){e=h(e);var t=null,n=this.nodes.find(function(n){return n.key===e?n:"text"!==n.object&&(t=n.getDescendant(e))});return t||n}},{key:"getDescendantAtPath",value:function(e){var t=this,n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;if(!t)return;if(!t.nodes)return;t=t.nodes.get(s)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t}},{key:"getFirstText",value:function(){var e=null,t=this.nodes.find(function(t){return"text"==t.object||(e=t.getFirstText())});return e||t}},{key:"getFragmentAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Oe.create();for(var t=this,n=e,r=n.startKey,o=n.startOffset,i=n.endKey,a=n.endOffset,s=t.assertDescendant(r),u=t.assertDescendant(i),l=s,c=void 0,f=void 0;f=t.getParent(l.key);){var p=f.nodes.indexOf(l),d="text"==l.object?o:l.nodes.indexOf(c);f=f.splitNode(p,d),t=t.updateNode(f),c=f.nodes.get(p+1),l=f}for(l=r==i?t.getNextText(r):u;f=t.getParent(l.key);){var h=f.nodes.indexOf(l),m="text"==l.object?r==i?a-o:a:l.nodes.indexOf(c);f=f.splitNode(h,m),t=t.updateNode(f),c=f.nodes.get(h+1),l=f}var g=t.getNextSibling(t.getFurthestAncestor(r).key),v=r==i?t.getNextSibling(t.getNextSibling(t.getFurthestAncestor(i).key).key):t.getNextSibling(t.getFurthestAncestor(i).key),y=t.nodes.indexOf(g),b=t.nodes.indexOf(v),T=t.nodes.slice(y,b);return Oe.create({nodes:T})}},{key:"getFurthest",value:function(e,t){var n=this.getAncestors(e);if(!n)throw e=h(e),new Error('Could not find a descendant node with key "'+e+'".');return n.rest().find(t)}},{key:"getFurthestBlock",value:function(e){return this.getFurthest(e,function(e){return"block"==e.object})}},{key:"getFurthestInline",value:function(e){return this.getFurthest(e,function(e){return"inline"==e.object})}},{key:"getFurthestAncestor",value:function(e){return e=h(e),this.nodes.find(function(t){return t.key==e||"text"!=t.object&&t.hasDescendant(e)})}},{key:"getFurthestOnlyChildAncestor",value:function(e){var t=this.getAncestors(e);if(!t)throw e=h(e),new Error('Could not find a descendant node with key "'+e+'".');var n=t.shift().reverse().takeUntil(function(e){return e.nodes.size>1}).last();return n||null}},{key:"getInlines",value:function(){var e=this.getInlinesAsArray();return new F.List(e)}},{key:"getInlinesAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){"text"!=t.object&&(t.isLeafInline()?e.push(t):e=e.concat(t.getInlinesAsArray()))}),e}},{key:"getInlinesAtRange",value:function(e){var t=this.getInlinesAtRangeAsArray(e);return new F.List(new F.OrderedSet(t))}},{key:"getInlinesAtRangeAsArray",value:function(e){var t=this;return e=e.normalize(this),e.isUnset?[]:this.getTextsAtRangeAsArray(e).map(function(e){return t.getClosestInline(e.key)}).filter(function(e){return e})}},{key:"getInlinesByType",value:function(e){var t=this.getInlinesByTypeAsArray(e);return new F.List(t)}},{key:"getInlinesByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"text"==n.object?t:n.isLeafInline()&&n.type==e?(t.push(n),t):t.concat(n.getInlinesByTypeAsArray(e))},[])}},{key:"getKeysAsArray",value:function(){var e=[];return this.forEachDescendant(function(t){e.push(t.key)}),e}},{key:"getKeys",value:function(){var e=this.getKeysAsArray();return new F.Set(e)}},{key:"getLastText",value:function(){var e=null,t=this.nodes.findLast(function(t){return"text"==t.object||(e=t.getLastText())});return e||t}},{key:"getMarks",value:function(){var e=this.getMarksAsArray();return new F.Set(e)}},{key:"getOrderedMarks",value:function(){var e=this.getMarksAsArray();return new F.OrderedSet(e)}},{key:"getMarksAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){e.push(t.getMarksAsArray())}),Array.prototype.concat.apply([],e)}},{key:"getMarksAtRange",value:function(e){return new F.Set(this.getOrderedMarksAtRange(e))}},{key:"getInsertMarksAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.Set)();if(e.isCollapsed)return this.getMarksAtPosition(e.startKey,e.startOffset);var t=e,n=t.startKey,r=t.startOffset;return this.getDescendant(n).getMarksAtIndex(r+1)}},{key:"getOrderedMarksAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.OrderedSet)();if(e.isCollapsed)return this.getMarksAtPosition(e.startKey,e.startOffset);var t=e,n=t.startKey,r=t.startOffset,o=t.endKey,i=t.endOffset;return this.getOrderedMarksBetweenPositions(n,r,o,i)}},{key:"getOrderedMarksBetweenPositions",value:function(e,t,n,r){if(e===n){return this.getDescendant(e).getMarksBetweenOffsets(t,r)}var o=this.getTextsBetweenPositionsAsArray(e,n);return Object(F.OrderedSet)().withMutations(function(i){o.forEach(function(o){o.key===e?i.union(o.getMarksBetweenOffsets(t,o.text.length)):o.key===n?i.union(o.getMarksBetweenOffsets(0,r)):i.union(o.getMarks())})})}},{key:"getActiveMarksAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.Set)();if(e.isCollapsed){var t=e,n=t.startKey,r=t.startOffset;return this.getMarksAtPosition(n,r).toSet()}var o=e,i=o.startKey,a=o.endKey,s=o.startOffset,u=o.endOffset,l=this.getDescendant(i);if(i!==a){for(;i!==a&&0===u;){var c=this.getPreviousText(a);a=c.key,u=c.text.length}for(;i!==a&&s===l.text.length;)l=this.getNextText(i),i=l.key,s=0}if(i===a)return l.getActiveMarksBetweenOffsets(s,u);var f=l.getActiveMarksBetweenOffsets(s,l.text.length);if(0===f.size)return Object(F.Set)();var p=this.getDescendant(a),d=p.getActiveMarksBetweenOffsets(0,u),h=f.intersect(d);if(0===h.size)return h;for(var m=this.getNextText(i);m.key!==a;){if(0!==m.text.length&&(h=h.intersect(m.getActiveMarks()),0===h.size))return Object(F.Set)();m=this.getNextText(m.key)}return h}},{key:"getMarksAtPosition",value:function(e,t){var n=this.getDescendant(e),r=n.getMarksAtIndex(t);if(0!==t)return r;var o=this.getClosestBlock(e);if(""===o.text)return r;var i=this.getPreviousText(e);return i?o.hasDescendant(i.key)?i.getMarksAtIndex(i.text.length):r:Object(F.Set)()}},{key:"getMarksByType",value:function(e){var t=this.getMarksByTypeAsArray(e);return new F.Set(t)}},{key:"getOrderedMarksByType",value:function(e){var t=this.getMarksByTypeAsArray(e);return new F.OrderedSet(t)}},{key:"getMarksByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"text"==n.object?t.concat(n.getMarksAsArray().filter(function(t){return t.type==e})):t.concat(n.getMarksByTypeAsArray(e))},[])}},{key:"getNextBlock",value:function(e){var t=this.assertDescendant(e),n=void 0;if("block"==t.object)n=t.getLastText();else{n=this.getClosestBlock(e).getLastText()}var r=this.getNextText(n.key);return r?this.getClosestBlock(r.key):null}},{key:"getNextSibling",value:function(e){e=h(e);var t=this.getParent(e),n=t.nodes.skipUntil(function(t){return t.key==e});if(0==n.size)throw new Error('Could not find a child node with key "'+e+'".');return n.get(1)}},{key:"getNextText",value:function(e){return e=h(e),this.getTexts().skipUntil(function(t){return t.key==e}).get(1)}},{key:"getNode",value:function(e){return e=h(e),this.key==e?this:this.getDescendant(e)}},{key:"getNodeAtPath",value:function(e){return e.length?this.getDescendantAtPath(e):this}},{key:"getOffset",value:function(e){this.assertDescendant(e);var t=this.getFurthestAncestor(e),n=this.nodes.takeUntil(function(e){return e==t}).reduce(function(e,t){return e+t.text.length},0);return this.hasChild(e)?n:n+t.getOffset(e)}},{key:"getOffsetAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(e.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var t=e,n=t.startKey,r=t.startOffset;return this.getOffset(n)+r}},{key:"getParent",value:function(e){if(this.hasChild(e))return this;var t=null;return this.nodes.find(function(n){return"text"!=n.object&&(t=n.getParent(e))}),t}},{key:"getPath",value:function(e){var t=this.assertNode(e),n=this.getAncestors(e),r=[];return n.reverse().forEach(function(e){var n=e.nodes.indexOf(t);r.unshift(n),t=e}),r}},{key:"refindPath",value:function(e,t){var n=this.getDescendantAtPath(e);return n&&n.key===t?e:this.getPath(t)}},{key:"refindNode",value:function(e,t){var n=this.getDescendantAtPath(e);return n&&n.key===t?n:this.getDescendant(t)}},{key:"getPlaceholder",value:function(e){return e.__getPlaceholder(this)}},{key:"getPreviousBlock",value:function(e){var t=this.assertDescendant(e),n=void 0;if("block"==t.object)n=t.getFirstText();else{n=this.getClosestBlock(e).getFirstText()}var r=this.getPreviousText(n.key);return r?this.getClosestBlock(r.key):null}},{key:"getPreviousSibling",value:function(e){e=h(e);var t=this.getParent(e),n=t.nodes.takeUntil(function(t){return t.key==e});if(n.size==t.nodes.size)throw new Error('Could not find a child node with key "'+e+'".');return n.last()}},{key:"getPreviousText",value:function(e){return e=h(e),this.getTexts().takeUntil(function(t){return t.key==e}).last()}},{key:"getSelectionIndexes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.startKey,r=e.endKey;if(!t||e.isBlurred)return null;if(e.isUnset)return null;if(n==r){var o=this.getFurthestAncestor(n),i=o?this.nodes.indexOf(o):null;return{start:i,end:i+1}}var a=null,s=null;return this.nodes.forEach(function(e,t){return"text"==e.object?(null==a&&e.key==n&&(a=t),null==s&&e.key==r&&(s=t+1)):(null==a&&e.hasDescendant(n)&&(a=t),null==s&&e.hasDescendant(r)&&(s=t+1)),null==a||null==s}),t&&null==a&&(a=0),t&&null==s&&(s=this.nodes.size),null==a?null:{start:a,end:s}}},{key:"getText",value:function(){return this.nodes.reduce(function(e,t){return e+t.text},"")}},{key:"getTextAtOffset",value:function(e){if(0==e)return this.getFirstText();if(e==this.text.length)return this.getLastText();if(e<0||e>this.text.length)return null;var t=0;return this.getTexts().find(function(n,r,o){return(t+=n.text.length)>e})}},{key:"getTextDirection",value:function(){var e=U()(this.text);return"neutral"==e?void 0:e}},{key:"getTexts",value:function(){var e=this.getTextsAsArray();return new F.List(e)}},{key:"getTextsAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){"text"==t.object?e.push(t):e=e.concat(t.getTextsAsArray())}),e}},{key:"getTextsAtRange",value:function(e){if(e=e.normalize(this),e.isUnset)return Object(F.List)();var t=e,n=t.startKey,r=t.endKey;return new F.List(this.getTextsBetweenPositionsAsArray(n,r))}},{key:"getTextsBetweenPositionsAsArray",value:function(e,t){var n=this.getDescendant(e);if(e==t)return[n];var r=this.getDescendant(t),o=this.getTextsAsArray(),i=o.indexOf(n),a=o.indexOf(r,i);return o.slice(i,a+1)}},{key:"getTextsAtRangeAsArray",value:function(e){if(e=e.normalize(this),e.isUnset)return[];var t=e,n=t.startKey,r=t.endKey;return this.getTextsBetweenPositionsAsArray(n,r)}},{key:"hasChild",value:function(e){return!!this.getChild(e)}},{key:"hasBlocks",value:function(e){var t=this.assertNode(e);return!(!t.nodes||!t.nodes.find(function(e){return"block"===e.object}))}},{key:"hasInlines",value:function(e){var t=this.assertNode(e);return!(!t.nodes||!t.nodes.find(function(e){return ve.isInline(e)||Re.isText(e)}))}},{key:"hasDescendant",value:function(e){return!!this.getDescendant(e)}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"hasVoidParent",value:function(e){return!!this.getClosestVoid(e)}},{key:"insertNode",value:function(e,t){var n=this.getKeysAsArray();n.includes(t.key)&&(t=t.regenerateKey()),"text"!=t.object&&(t=t.mapDescendants(function(e){return n.includes(e.key)?e.regenerateKey():e}));var r=this.nodes.insert(e,t);return this.set("nodes",r)}},{key:"isInRange",value:function(e){e=e.normalize(this);var t=this,n=e,r=n.startKey,o=n.endKey,i=n.isCollapsed;if(t.key==r||t.key==o||t.hasDescendant(r)||t.hasDescendant(o))return!0;if(i)return!1;var a=t.getTextsAtRange(e),s=!1;return a.forEach(function(e){return t.hasDescendant(e.key)&&(s=!0),s}),s}},{key:"isLeafBlock",value:function(){return"block"==this.object&&this.nodes.every(function(e){return"block"!=e.object})}},{key:"isLeafInline",value:function(){return"inline"==this.object&&this.nodes.every(function(e){return"inline"!=e.object})}},{key:"mergeNode",value:function(e,t){var n=this,r=n.nodes.get(e),o=n.nodes.get(t);if(r.object!=o.object)throw new Error('Tried to merge two nodes of different objects: "'+r.object+'" and "'+o.object+'".');if("text"==r.object)r=r.mergeText(o);else{var i=r.nodes.concat(o.nodes);r=r.set("nodes",i)}return n=n.removeNode(t),n=n.removeNode(e),n=n.insertNode(e,r)}},{key:"mapChildren",value:function(e){var t=this,n=this.nodes;return n.forEach(function(r,o){var i=e(r,o,t.nodes);i!=r&&(n=n.set(i.key,i))}),this.set("nodes",n)}},{key:"mapDescendants",value:function(e){var t=this,n=this.nodes;return n.forEach(function(r,o){var i=r;"text"!=i.object&&(i=i.mapDescendants(e)),(i=e(i,o,t.nodes))!=r&&(n=n.set(o,i))}),this.set("nodes",n)}},{key:"regenerateKey",value:function(){var e=o();return this.set("key",e)}},{key:"removeDescendant",value:function(e){e=h(e);var t=this,n=t.getParent(e);if(!n)throw new Error('Could not find a descendant node with key "'+e+'".');var r=n.nodes.findIndex(function(t){return t.key===e}),o=n.nodes.delete(r);return n=n.set("nodes",o),t=t.updateNode(n)}},{key:"removeNode",value:function(e){var t=this.nodes.delete(e);return this.set("nodes",t)}},{key:"splitNode",value:function(e,t){var n=this,r=n.nodes.get(e),o=void 0,i=void 0;if("text"==r.object){var a=r.splitText(t),s=pe(a,2);o=s[0],i=s[1]}else{var u=r.nodes.take(t),l=r.nodes.skip(t);o=r.set("nodes",u),i=r.set("nodes",l).regenerateKey()}return n=n.removeNode(e),n=n.insertNode(e,i),n=n.insertNode(e,o)}},{key:"updateNode",value:function(e){if(e.key==this.key)return e;var t=this.assertDescendant(e.key);return this.getAncestors(e.key).reverse().forEach(function(n){var r=n,o=r.nodes,i=o.indexOf(t);t=n,o=o.set(i,e),n=n.set("nodes",o),e=n}),e}},{key:"validate",value:function(e){return e.validateNode(this)}},{key:"getFirstInvalidDescendant",value:function(e){var t=null;return this.nodes.find(function(n){return t=n.validate(e)?n:n.getFirstInvalidDescendant(e)}),t}}],[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isNode(t))return t;if(B()(t)){var n=t.object;switch(!n&&t.kind&&(j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),n=t.kind),n){case"block":return me.create(t);case"document":return Oe.create(t);case"inline":return ve.create(t);case"text":return Re.create(t);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+t)}},{key:"createList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(t)||Array.isArray(t)){return Object(F.List)(t.map(e.create))}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+t)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(me.isBlock(e)||ve.isInline(e))return{data:e.data,isVoid:e.isVoid,type:e.type};if("string"==typeof e)return{type:e};if(B()(e)){var t={};return"type"in e&&(t.type=e.type),"data"in e&&(t.data=ye.create(e.data)),"isVoid"in e&&(t.isVoid=e.isVoid),t}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var t=e.object;switch(!t&&e.kind&&(j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),t=e.kind),t){case"block":return me.fromJSON(e);case"document":return Oe.fromJSON(e);case"inline":return ve.fromJSON(e);case"text":return Re.fromJSON(e);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+e)}}},{key:"isNode",value:function(e){return!!["BLOCK","DOCUMENT","INLINE","TEXT"].find(function(t){return r(t,e)})}},{key:"isNodeList",value:function(t){return F.List.isList(t)&&t.every(function(t){return e.isNode(t)})}}]),e}();Be.fromJS=Be.fromJSON,s(Be.prototype,["areDescendantsSorted","getAncestors","getBlocksAsArray","getBlocksAtRangeAsArray","getBlocksByTypeAsArray","getChild","getClosestBlock","getClosestInline","getClosestVoid","getCommonAncestor","getDecorations","getDepth","getDescendant","getDescendantAtPath","getFirstText","getFragmentAtRange","getFurthestBlock","getFurthestInline","getFurthestAncestor","getFurthestOnlyChildAncestor","getInlinesAsArray","getInlinesAtRangeAsArray","getInlinesByTypeAsArray","getMarksAsArray","getMarksAtPosition","getOrderedMarksBetweenPositions","getInsertMarksAtRange","getKeysAsArray","getLastText","getMarksByTypeAsArray","getNextBlock","getNextSibling","getNextText","getNode","getNodeAtPath","getOffset","getOffsetAtRange","getParent","getPath","getPlaceholder","getPreviousBlock","getPreviousSibling","getPreviousText","getText","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPositionsAsArray","isLeafBlock","isLeafInline","validate","getFirstInvalidDescendant"]),Object.getOwnPropertyNames(Be.prototype).forEach(function(e){"constructor"!=e&&(me.prototype[e]=Be.prototype[e],ve.prototype[e]=Be.prototype[e],Oe.prototype[e]=Be.prototype[e])}),me.createChildren=Be.createList,ve.createChildren=Be.createList,Oe.createChildren=Be.createList;var je=55296,Fe=57343,He=/\s/,Ue=/['\u2018\u2019]/,ze=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ke={getCharOffsetForward:T,getCharOffsetBackward:b,getWordOffsetBackward:E,getWordOffsetForward:k},qe={};qe.addMarkAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t.isCollapsed){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=t.startKey,u=t.startOffset,l=t.endKey,c=t.endOffset;a.getTextsAtRange(t).forEach(function(t){var r=t.key,i=0,a=t.text.length;r==s&&(i=u),r==l&&(a=c),r==s&&r==l&&(a=c-u),e.addMarkByKey(r,i,a,n,{normalize:o})})}},qe.addMarksAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.forEach(function(n){return e.addMarkAtRange(t,n,r)})},qe.deleteAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){e.snapshotSelection();var r=e.getFlag("normalize",n),o=e.value,i=t.startKey,a=t.startOffset,s=t.endKey,u=t.endOffset,l=o.document,c=l.hasVoidParent(i),f=l.hasVoidParent(s),p=l.getClosestBlock(i),d=l.getClosestBlock(s),h=0==a&&0==u&&0==c&&i==p.getFirstText().key&&s==d.getFirstText().key;if(h&&f){var m=l.getPreviousText(s);s=m.key,u=m.text.length,f=l.hasVoidParent(s)}for(;c;){var g=l.getClosestVoid(i),v=l.getNextText(i);if(e.removeNodeByKey(g.key,{normalize:!1}),i==s)return;if(!v)return;l=e.value.document,i=v.key,a=0,c=l.hasVoidParent(i)}for(;f;){var y=l.getClosestVoid(s),b=l.getPreviousText(s);e.removeNodeByKey(y.key,{normalize:!1}),l=e.value.document,s=b.key,u=b.text.length,f=l.hasVoidParent(s)}if(i==s&&h)return void e.removeNodeByKey(p.key,{normalize:r});if(i==s){var T=a,_=u-a;return void e.removeTextByKey(i,T,_,{normalize:r})}p=l.getClosestBlock(i),d=l.getClosestBlock(s);var E=l.getNode(i),k=l.getNode(s),w=E.text.length-a,x=u,C=l.getCommonAncestor(i,s),A=C.getFurthestAncestor(i),O=C.getFurthestAncestor(s),S=l.getParent(p.key),N=S.nodes.indexOf(p),D=S.nodes.indexOf(d),I=void 0;for(I=E;I.key!=A.key;){var M=l.getParent(I.key),L=M.nodes.indexOf(I);M.nodes.slice(L+1).reverse().forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})}),I=M}var P=C.nodes.indexOf(A),R=C.nodes.indexOf(O),B=C.nodes.slice(P+1,R);for(B.reverse().forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})}),I=k;I.key!=O.key;){var j=l.getParent(I.key),F=j.nodes.indexOf(I);j.nodes.slice(0,F).reverse().forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})}),I=j}if(0!=w&&e.removeTextByKey(i,a,w,{normalize:!1}),0!=x&&e.removeTextByKey(s,0,u,{normalize:!1}),p.key!=d.key){l=e.value.document;var H=l.getFurthestOnlyChildAncestor(d.key);D!=N+1&&e.moveNodeByKey(d.key,S.key,N+1,{normalize:!1}),h?e.removeNodeByKey(p.key,{normalize:!1}):e.mergeNodeByKey(d.key,{normalize:!1}),H&&e.removeNodeByKey(H.key,{normalize:!1})}r&&e.normalizeNodeByKey(C.key)}},qe.deleteCharBackwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getCharOffsetBackward(c,l);e.deleteBackwardAtRange(t,f,n)},qe.deleteLineBackwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a;e.deleteBackwardAtRange(t,l,n)},qe.deleteWordBackwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getWordOffsetBackward(c,l);e.deleteBackwardAtRange(t,f,n)},qe.deleteBackwardAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0!==n){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=t,u=s.startKey,l=s.focusOffset;if(t.isExpanded)return void e.deleteAtRange(t,{normalize:o});var c=a.getClosestVoid(u);if(c)return void e.removeNodeByKey(c.key,{normalize:o});var f=a.getClosestBlock(u);if(f&&f.isEmpty&&1!==a.nodes.size)return void e.removeNodeByKey(f.key,{normalize:o});if(!t.isAtStartOf(a)){var p=a.getDescendant(u);if(t.isAtStartOf(p)){var d=a.getPreviousText(p.key),h=a.getClosestBlock(d.key),m=a.getClosestVoid(d.key);if(m)return void e.removeNodeByKey(m.key,{normalize:o});if(1==n&&h!=f)return t=t.merge({anchorKey:d.key,anchorOffset:d.text.length}),void e.deleteAtRange(t,{normalize:o})}if(n<l)return t=t.merge({focusOffset:l-n,isBackward:!0}),void e.deleteAtRange(t,{normalize:o});for(var g=p,v=0,y=l;n>y;){g=a.getPreviousText(g.key);var b=y+g.text.length;if(n<=b){v=b-n;break}y=b}t=t.merge({focusKey:g.key,focusOffset:v,isBackward:!0}),e.deleteAtRange(t,{normalize:o})}}},qe.deleteCharForwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getCharOffsetForward(c,l);e.deleteForwardAtRange(t,f,n)},qe.deleteLineForwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a;e.deleteForwardAtRange(t,s.text.length-l,n)},qe.deleteWordForwardAtRange=function(e,t,n){var r=e.value,o=r.document,i=t.startKey,a=t.startOffset,s=o.getClosestBlock(i),u=s.getOffset(i),l=u+a,c=s.text,f=Ke.getWordOffsetForward(c,l);e.deleteForwardAtRange(t,f,n)},qe.deleteForwardAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0!==n){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=t,u=s.startKey,l=s.focusOffset;if(t.isExpanded)return void e.deleteAtRange(t,{normalize:o});var c=a.getClosestVoid(u);if(c)return void e.removeNodeByKey(c.key,{normalize:o});var f=a.getClosestBlock(u);if(f&&f.isEmpty&&1!==a.nodes.size){var p=a.getNextBlock(f.key);return e.removeNodeByKey(f.key,{normalize:o}),void(p&&p.key&&e.moveToStartOf(p))}if(!t.isAtEndOf(a)){var d=a.getDescendant(u);if(t.isAtEndOf(d)){var h=a.getNextText(d.key),m=a.getClosestBlock(h.key),g=a.getClosestVoid(h.key);if(g)return void e.removeNodeByKey(g.key,{normalize:o});if(1==n&&m!=f)return t=t.merge({focusKey:h.key,focusOffset:0}),void e.deleteAtRange(t,{normalize:o})}if(n<=d.text.length-l)return t=t.merge({focusOffset:l+n}),void e.deleteAtRange(t,{normalize:o});for(var v=d,y=l,b=d.text.length-l;n>b;){v=a.getNextText(v.key);var T=b+v.text.length;if(n<=T){y=n-b;break}b=T}if(a.hasVoidParent(v.key)){var _=a.getClosestVoid(v.key);v=a.getPreviousText(_.key),y=v.text.length}t=t.merge({focusKey:v.key,focusOffset:y}),e.deleteAtRange(t,{normalize:o})}}},qe.insertBlockAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=me.create(n);var o=e.getFlag("normalize",r);t.isExpanded&&(e.deleteAtRange(t),t=t.collapseToStart());var i=e.value,a=i.document,s=t,u=s.startKey,l=s.startOffset,c=a.getClosestBlock(u),f=a.getParent(c.key),p=f.nodes.indexOf(c);if(c.isVoid){var d=t.isAtEndOf(c)?1:0;e.insertNodeByKey(f.key,p+d,n,{normalize:o})}else c.isEmpty?e.insertNodeByKey(f.key,p+1,n,{normalize:o}):t.isAtStartOf(c)?e.insertNodeByKey(f.key,p,n,{normalize:o}):t.isAtEndOf(c)?e.insertNodeByKey(f.key,p+1,n,{normalize:o}):(e.splitDescendantsByKey(c.key,u,l,{normalize:!1}),e.insertNodeByKey(f.key,p+1,n,{normalize:o}));o&&e.normalizeNodeByKey(f.key)},qe.insertFragmentAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);if(t.isExpanded&&(e.deleteAtRange(t,{normalize:!1}),t=e.value.document.getDescendant(t.startKey)?t.collapseToStart():t.collapseTo(t.endKey,0)),n.nodes.size){n=n.mapDescendants(function(e){return e.regenerateKey()});var i=t,a=i.startKey,s=i.startOffset,u=e.value,l=u.document,c=l.getDescendant(a),f=l.getClosestBlock(c.key),p=f.getFurthestAncestor(c.key),d=t.isAtStartOf(f),h=l.getParent(f.key),m=h.nodes.indexOf(f),g=n.getBlocks(),v=n.nodes.first(),y=n.nodes.last(),b=g.first(),T=g.last();if(b==T&&b.isVoid)return void e.insertBlockAtRange(t,b,r);if(n.hasBlocks(v.key)||n.hasBlocks(y.key))return void n.nodes.reverse().forEach(function(n){e.insertBlockAtRange(t,n,r)});if(b!=T){var _=n.getFurthest(b.key,function(e){return 1==e.nodes.size}),E=_||b,k=h.nodes.indexOf(f);n=n.removeDescendant(E.key),n.nodes.forEach(function(t,n){var r=k+n+1;e.insertNodeByKey(h.key,r,t,{normalize:!1})})}if(0!=s&&e.splitDescendantsByKey(p.key,a,s,{normalize:!1}),l=e.value.document,c=l.getDescendant(a),f=l.getClosestBlock(a),p=f.getFurthestAncestor(c.key),b!=T){var w=d?p:f.getNextSibling(p.key),x=w?f.nodes.skipUntil(function(e){return e.key==w.key}):Object(F.List)(),C=T.nodes.size;x.forEach(function(t,n){var r=C+n;e.moveNodeByKey(t.key,T.key,r,{normalize:!1})})}if(f.isEmpty)e.removeNodeByKey(f.key,{normalize:!1}),e.insertNodeByKey(h.key,m,b,{normalize:!1});else{var A=f.getFurthestAncestor(c.key),O=f.nodes.indexOf(A);b.nodes.forEach(function(t,n){var r=0==s?0:1,o=O+n+r;e.insertNodeByKey(f.key,o,t,{normalize:!1})})}o&&e.normalizeNodeByKey(h.key)}},qe.insertInlineAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);n=ve.create(n),t.isExpanded&&(e.deleteAtRange(t,{normalize:!1}),t=t.collapseToStart());var i=e.value,a=i.document,s=t,u=s.startKey,l=s.startOffset,c=a.getParent(u),f=a.assertDescendant(u),p=c.nodes.indexOf(f);c.isVoid||(e.splitNodeByKey(u,l,{normalize:!1}),e.insertNodeByKey(c.key,p+1,n,{normalize:!1}),o&&e.normalizeNodeByKey(c.key))},qe.insertTextAtRange=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.normalize,a=e.value,s=a.document,u=t.startKey,l=t.startOffset,c=u,f=l;if(!s.getParent(u).isVoid&&(t.isExpanded&&(e.deleteAtRange(t,{normalize:!1}),e.value.startKey!==c&&(c=e.value.startKey,f=e.value.startOffset)),void 0===i&&(i=t.isExpanded&&0!==r.size),e.insertTextByKey(c,f,n,r,{normalize:!1}),i)){var p=s.getCommonAncestor(u,t.endKey),d=s.getAncestors(p.key).push(p),h=d.findLast(function(t){return e.value.document.getDescendant(t.key)}),m=h?h.key:u;e.normalizeNodeByKey(m)}},qe.removeMarkAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t.isCollapsed){var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getTextsAtRange(t),u=t.startKey,l=t.startOffset,c=t.endKey,f=t.endOffset;s.forEach(function(t){var r=t.key,i=0,a=t.text.length;r==u&&(i=l),r==c&&(a=f),r==u&&r==c&&(a=f-l),e.removeMarkByKey(r,i,a,n,{normalize:o})})}},qe.setBlocksAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getBlocksAtRange(t),u=t.startKey,l=t.startOffset,c=t.endKey,f=t.endOffset,p=t.isCollapsed,d=a.hasVoidParent(u),h=a.getClosestBlock(u),m=a.getClosestBlock(c);(0==p&&0==l&&0==f&&0==d&&u==h.getFirstText().key&&c==m.getFirstText().key?s.slice(0,-1):s).forEach(function(t){e.setNodeByKey(t.key,n,{normalize:o})})},qe.setBlockAtRange=function(){j.default.deprecate("slate@0.33.0","The `setBlockAtRange` method of Slate changes has been renamed to `setBlocksAtRange`."),qe.setBlocksAtRange.apply(qe,arguments)},qe.setInlinesAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);e.value.document.getInlinesAtRange(t).forEach(function(t){e.setNodeByKey(t.key,n,{normalize:o})})},qe.setInlineAtRange=function(){j.default.deprecate("slate@0.33.0","The `setInlineAtRange` method of Slate changes has been renamed to `setInlinesAtRange`."),qe.setInlinesAtRange.apply(qe,arguments)},qe.splitBlockAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r),i=t,a=i.startKey,s=i.startOffset,u=i.endOffset,l=i.endKey,c=e.value,f=c.document,p=f.assertDescendant(a),d=f.getClosestBlock(p.key),h=0;d&&"block"==d.object&&h<n;)p=d,d=f.getClosestBlock(d.key),h++;if(e.splitDescendantsByKey(p.key,a,s,{normalize:o&&t.isCollapsed}),t.isExpanded){t.isBackward&&(t=t.flip());var m=e.value.document.getNextBlock(p.key);t=t.moveAnchorToStartOf(m),a===l&&(t=t.moveFocusTo(t.anchorKey,u-s)),e.deleteAtRange(t,{normalize:o})}},qe.splitInlineAtRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.getFlag("normalize",r);t.isExpanded&&(e.deleteAtRange(t,{normalize:o}),t=t.collapseToStart());for(var i=t,a=i.startKey,s=i.startOffset,u=e.value,l=u.document,c=l.assertDescendant(a),f=l.getClosestInline(c.key),p=0;f&&"inline"==f.object&&p<n;)c=f,f=l.getClosestInline(f.key),p++;e.splitDescendantsByKey(c.key,a,s,{normalize:o})},qe.toggleMarkAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t.isCollapsed){n=xe.create(n);var o=e.getFlag("normalize",r);e.value.document.getActiveMarksAtRange(t).some(function(e){return e.equals(n)})?e.removeMarkAtRange(t,n,{normalize:o}):e.addMarkAtRange(t,n,{normalize:o})}},qe.unwrapBlockAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.createProperties(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getBlocksAtRange(t);s.map(function(e){return a.getClosest(e.key,function(e){return"block"==e.object&&((null==n.type||e.type==n.type)&&((null==n.isVoid||e.isVoid==n.isVoid)&&!(null!=n.data&&!e.data.isSuperset(n.data))))})}).filter(function(e){return e}).toOrderedSet().toList().forEach(function(t){var n=t.nodes.first(),r=t.nodes.last(),o=a.getParent(t.key),i=o.nodes.indexOf(t),u=t.nodes.filter(function(e){return s.some(function(t){return e==t||e.hasDescendant(t.key)})}),l=u.first(),c=u.last();if(n==l&&r==c)t.nodes.forEach(function(t,n){e.moveNodeByKey(t.key,o.key,i+n,{normalize:!1})}),e.removeNodeByKey(t.key,{normalize:!1});else if(r==c)t.nodes.skipUntil(function(e){return e==l}).forEach(function(t,n){e.moveNodeByKey(t.key,o.key,i+1+n,{normalize:!1})});else if(n==l)t.nodes.takeUntil(function(e){return e==c}).push(c).forEach(function(t,n){e.moveNodeByKey(t.key,o.key,i+n,{normalize:!1})});else{var f=l.getFirstText();e.splitDescendantsByKey(t.key,f.key,0,{normalize:!1}),a=e.value.document,u.forEach(function(t,n){if(0==n){var r=t;t=a.getNextBlock(t.key),e.removeNodeByKey(r.key,{normalize:!1})}e.moveNodeByKey(t.key,o.key,i+1+n,{normalize:!1})})}}),o&&e.normalizeDocument()},qe.unwrapInlineAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.createProperties(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document;a.getTextsAtRange(t).map(function(e){return a.getClosest(e.key,function(e){return"inline"==e.object&&(null==n.type||e.type==n.type)&&(null==n.isVoid||e.isVoid==n.isVoid)&&!(null!=n.data&&!e.data.isSuperset(n.data))})}).filter(function(e){return e}).toOrderedSet().toList().forEach(function(t){var n=e.value.document.getParent(t.key),r=n.nodes.indexOf(t);t.nodes.forEach(function(t,o){e.moveNodeByKey(t.key,n.key,r+o,{normalize:!1})})}),o&&e.normalizeDocument()},qe.wrapBlockAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=me.create(n),n=n.set("nodes",n.nodes.clear());var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getBlocksAtRange(t),u=s.first(),l=s.last(),c=void 0,f=void 0,p=void 0;if(1===s.length?(c=a.getParent(u.key),f=s):c=a.getClosest(u.key,function(e){return!!a.getClosest(l.key,function(t){return e==t})}),null==c&&(c=a),null==f){var d=c.nodes.reduce(function(e,t,n){return(t==u||t.hasDescendant(u.key))&&(e[0]=n),(t==l||t.hasDescendant(l.key))&&(e[1]=n),e},[]);p=d[0],f=c.nodes.slice(d[0],d[1]+1)}null==p&&(p=c.nodes.indexOf(f.first())),e.insertNodeByKey(c.key,p,n,{normalize:!1}),f.forEach(function(t,r){e.moveNodeByKey(t.key,n.key,r,{normalize:!1})}),o&&e.normalizeNodeByKey(c.key)},qe.wrapInlineAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.value,i=o.document,a=e.getFlag("normalize",r),s=t.startKey,u=t.startOffset,l=t.endKey,c=t.endOffset;if(t.isCollapsed){var f=i.getClosestInline(s);if(!f.isVoid)return;return e.wrapInlineByKey(f.key,n,r)}n=ve.create(n),n=n.set("nodes",n.nodes.clear());var p=i.getBlocksAtRange(t),d=i.getClosestBlock(s),h=i.getClosestBlock(l),m=d.getFurthestAncestor(s),g=h.getFurthestAncestor(l);e.splitDescendantsByKey(g.key,l,c,{normalize:!1}),e.splitDescendantsByKey(m.key,s,u,{normalize:!1}),i=e.value.document,d=i.getDescendant(d.key),h=i.getDescendant(h.key),m=d.getFurthestAncestor(s),g=h.getFurthestAncestor(l);var v=d.nodes.indexOf(m),y=h.nodes.indexOf(g);if(d==h){i=e.value.document,d=i.getClosestBlock(s),m=d.getFurthestAncestor(s);var b=i.getNextSibling(m.key),T=d.nodes.indexOf(b),_=s==l?b:d.getFurthestAncestor(l),E=d.nodes.skipUntil(function(e){return e==b}).takeUntil(function(e){return e==_}).push(_),k=n.regenerateKey();e.insertNodeByKey(d.key,T,k,{normalize:!1}),E.forEach(function(t,n){e.moveNodeByKey(t.key,k.key,n,{normalize:!1})}),a&&e.normalizeNodeByKey(d.key)}else{var w=d.nodes.slice(v+1),x=h.nodes.slice(0,y+1),C=n.regenerateKey(),A=n.regenerateKey();e.insertNodeByKey(d.key,v+1,C,{normalize:!1}),e.insertNodeByKey(h.key,y,A,{normalize:!1}),w.forEach(function(t,n){e.moveNodeByKey(t.key,C.key,n,{normalize:!1})}),x.forEach(function(t,n){e.moveNodeByKey(t.key,A.key,n,{normalize:!1})}),a&&e.normalizeNodeByKey(d.key).normalizeNodeByKey(h.key),p.slice(1,-1).forEach(function(t){var r=n.regenerateKey();e.insertNodeByKey(t.key,0,r,{normalize:!1}),t.nodes.forEach(function(t,n){e.moveNodeByKey(t.key,r.key,n,{normalize:!1})}),a&&e.normalizeNodeByKey(t.key)})}},qe.wrapTextAtRange=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=t.startKey,s=t.endKey,u=t.collapseToStart(),l=t.collapseToEnd();a==s&&(l=l.move(n.length)),e.insertTextAtRange(u,n,[],{normalize:i}),e.insertTextAtRange(l,r,[],{normalize:i})};var We={};We.addMarkByKey=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o=xe.create(o);var a=e.getFlag("normalize",i),s=e.value,u=s.document,l=u.getPath(t),c=u.getNode(t),f=c.getLeaves(),p=[],d=n,h=n+r,m=0;if(f.forEach(function(e){var t=m,n=t+e.text.length;if(m+=e.text.length,!(n<d||h<t)&&!e.marks.has(o)){var r=Math.max(t,d),i=Math.min(n,h);p.push({type:"add_mark",value:s,path:l,offset:r,length:i-r,mark:o})}}),e.applyOperations(p),a){var g=u.getParent(t);e.normalizeNodeByKey(g.key)}},We.insertFragmentByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o);r.nodes.forEach(function(r,o){e.insertNodeByKey(t,n+o,r)}),i&&e.normalizeNodeByKey(t)},We.insertNodeByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getPath(t);e.applyOperation({type:"insert_node",value:a,path:[].concat(de(u),[n]),node:r}),i&&e.normalizeNodeByKey(t)},We.insertTextByKey=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=e.getFlag("normalize",i),s=e.value,u=s.document,l=u.getPath(t),c=u.getNode(t);if(o=o||c.getMarksAtIndex(n),e.applyOperation({type:"insert_text",value:s,path:l,offset:n,text:r,marks:o}),a){var f=u.getParent(t);e.normalizeNodeByKey(f.key)}},We.mergeNodeByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.getFlag("normalize",n),o=e.value,i=o.document,a=i.getPath(t),s=i.getDescendant(t),u=i.getPreviousSibling(t);if(!u)throw new Error('Unable to merge node with key "'+t+'", no previous key.');var l="text"==u.object?u.text.length:u.nodes.size;if(e.applyOperation({type:"merge_node",value:o,path:a,position:l,properties:{type:s.type,data:s.data},target:null}),r){var c=i.getParent(t);e.normalizeNodeByKey(c.key)}},We.moveNodeByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getPath(t),l=s.getPath(n);if(e.applyOperation({type:"move_node",value:a,path:u,newPath:[].concat(de(l),[r])}),i){var c=s.getCommonAncestor(t,n);e.normalizeNodeByKey(c.key)}},We.removeMarkByKey=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};o=xe.create(o);var a=e.getFlag("normalize",i),s=e.value,u=s.document,l=u.getPath(t),c=u.getNode(t),f=c.getLeaves(),p=[],d=n,h=n+r,m=0;if(f.forEach(function(e){var t=m,n=t+e.text.length;if(m+=e.text.length,!(n<d||h<t)&&e.marks.has(o)){var r=Math.max(t,d),i=Math.min(n,h);p.push({type:"remove_mark",value:s,path:l,offset:r,length:i-r,mark:o})}}),e.applyOperations(p),a){var g=u.getParent(t);e.normalizeNodeByKey(g.key)}},We.removeAllMarksByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.state,o=r.document,i=o.getNode(t);("text"===i.object?[i]:i.getTextsAsArray()).forEach(function(t){t.getMarksAsArray().forEach(function(r){e.removeMarkByKey(t.key,0,t.text.length,r,n)})})},We.removeNodeByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.getFlag("normalize",n),o=e.value,i=o.document,a=i.getPath(t),s=i.getNode(t);if(e.applyOperation({type:"remove_node",value:o,path:a,node:s}),r){var u=i.getParent(t);e.normalizeNodeByKey(u.key)}},We.setTextByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.value.document.getDescendant(t);e.replaceTextByKey(t,0,i.text.length,n,r,o)},We.replaceTextByKey=function(e,t,n,r,o,i,a){var s=e.value.document,u=s.getDescendant(t);r+n>u.text.length&&(r=u.text.length-n);var l=Ne.create({anchorKey:t,focusKey:t,anchorOffset:n,focusOffset:n+r}),c=s.getActiveMarksAtRange(l);e.removeTextByKey(t,n,r,{normalize:!1}),i?c&&(c=c.filter(function(e){return!i.find(function(t){return e.type===t.type})}),i=c.merge(i)):i=c||[],e.insertTextByKey(t,n,o,i,a)},We.removeTextByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getPath(t),l=s.getNode(t),c=l.getLeaves(),f=l.text,p=[],d=n,h=n+r,m=0;if(c.forEach(function(e){var t=m,n=t+e.text.length;if(m+=e.text.length,!(n<d||h<t)){var r=Math.max(t,d),o=Math.min(n,h),i=f.slice(r,o);p.push({type:"remove_text",value:a,path:u,offset:r,text:i,marks:e.marks})}}),e.applyOperations(p.reverse()),i){var g=s.getClosestBlock(t);e.normalizeNodeByKey(g.key)}},We.replaceNodeByKey=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.create(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getNode(t),u=a.getParent(t),l=u.nodes.indexOf(s);e.removeNodeByKey(t,{normalize:!1}),e.insertNodeByKey(u.key,l,n,{normalize:!1}),o&&e.normalizeNodeByKey(u.key)},We.setMarkByKey=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};o=xe.create(o),i=xe.createProperties(i);var s=e.getFlag("normalize",a),u=e.value,l=u.document,c=l.getPath(t);if(e.applyOperation({type:"set_mark",value:u,path:c,offset:n,length:r,mark:o,properties:i}),s){var f=l.getParent(t);e.normalizeNodeByKey(f.key)}},We.setNodeByKey=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=Be.createProperties(n);var o=e.getFlag("normalize",r),i=e.value,a=i.document,s=a.getPath(t),u=a.getNode(t);e.applyOperation({type:"set_node",value:i,path:s,node:u,properties:n}),o&&e.normalizeNodeByKey(u.key)},We.splitNodeByKey=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.normalize,i=void 0===o||o,a=r.target,s=void 0===a?null:a,u=e.value,l=u.document,c=l.getPath(t),f=l.getDescendantAtPath(c);if(e.applyOperation({type:"split_node",value:u,path:c,position:n,properties:{type:f.type,data:f.data},target:s}),i){var p=l.getParent(t);e.normalizeNodeByKey(p.key)}},We.splitDescendantsByKey=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t==n)return void e.splitNodeByKey(n,r,o);var i=e.getFlag("normalize",o),a=e.value,s=a.document,u=s.getNode(n),l=s.getAncestors(n),c=l.skipUntil(function(e){return e.key==t}).reverse().unshift(u),f=void 0,p=void 0;if(c.forEach(function(t){var n=null==p?null:p;p=f?t.nodes.indexOf(f)+1:r,f=t,e.splitNodeByKey(t.key,p,{normalize:!1,target:n})}),i){var d=s.getParent(t);e.normalizeNodeByKey(d.key)}},We.unwrapInlineByKey=function(e,t,n,r){var o=e.value,i=o.document,a=o.selection,s=i.assertDescendant(t),u=s.getFirstText(),l=s.getLastText(),c=a.moveToRangeOf(u,l);e.unwrapInlineAtRange(c,n,r)},We.unwrapBlockByKey=function(e,t,n,r){var o=e.value,i=o.document,a=o.selection,s=i.assertDescendant(t),u=s.getFirstText(),l=s.getLastText(),c=a.moveToRangeOf(u,l);e.unwrapBlockAtRange(c,n,r)},We.unwrapNodeByKey=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.getFlag("normalize",n),o=e.value,i=o.document,a=i.getParent(t),s=a.getChild(t),u=a.nodes.indexOf(s),l=0===u,c=u===a.nodes.size-1,f=i.getParent(a.key),p=f.nodes.indexOf(a);1===a.nodes.size?(e.moveNodeByKey(t,f.key,p,{normalize:!1}),e.removeNodeByKey(a.key,n)):l?e.moveNodeByKey(t,f.key,p,n):c?e.moveNodeByKey(t,f.key,p+1,n):(e.splitNodeByKey(a.key,u,{normalize:!1}),e.moveNodeByKey(t,f.key,p+1,{normalize:!1}),r&&e.normalizeNodeByKey(f.key))},We.wrapBlockByKey=function(e,t,n,r){n=me.create(n),n=n.set("nodes",n.nodes.clear());var o=e.value.document,i=o.assertDescendant(t),a=o.getParent(i.key),s=a.nodes.indexOf(i);e.insertNodeByKey(a.key,s,n,{normalize:!1}),e.moveNodeByKey(i.key,n.key,0,r)},We.wrapInlineByKey=function(e,t,n,r){n=ve.create(n),n=n.set("nodes",n.nodes.clear());var o=e.value.document,i=o.assertDescendant(t),a=o.getParent(i.key),s=a.nodes.indexOf(i);e.insertNodeByKey(a.key,s,n,{normalize:!1}),e.moveNodeByKey(i.key,n.key,0,r)},We.wrapNodeByKey=function(e,t,n){return n=Be.create(n),n=n.set("nodes",n.nodes.clear()),"block"==n.object?void e.wrapBlockByKey(t,n):"inline"==n.object?void e.wrapInlineByKey(t,n):void 0};var Ge={add_mark:["value","path","offset","length","mark"],insert_node:["value","path","node"],insert_text:["value","path","offset","text","marks"],merge_node:["value","path","position","properties","target"],move_node:["value","path","newPath"],remove_mark:["value","path","offset","length","mark"],remove_node:["value","path","node"],remove_text:["value","path","offset","text","marks"],set_mark:["value","path","offset","length","mark","properties"],set_node:["value","path","node","properties"],set_selection:["value","selection","properties"],set_value:["value","properties"],split_node:["value","path","position","properties","target"]},Ve=q()("slate:history"),Ye={redos:new F.Stack,undos:new F.Stack},$e=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"save",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n,o=r.undos,i=r.redos,a=t.merge,s=t.skip,u=o.peek(),l=u&&u.last();if(null==s&&(s=x(e,l)),s)return n;if(null==a&&(a=w(e,l)),Ve("save",{operation:e,merge:a}),a&&u){var c=u.push(e);o=o.pop(),o=o.push(c)}else{var f=new F.List([e]);o=o.push(f)}return o.size>100&&(o=o.take(100)),i=i.clear(),n=n.set("undos",o).set("redos",i)}},{key:"toJSON",value:function(){return{object:this.object,redos:this.redos.toJSON(),undos:this.undos.toJSON()}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"history"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isHistory(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`History.create` only accepts objects or histories, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.redos,r=void 0===n?[]:n,o=e.undos,i=void 0===o?[]:o;return new t({redos:new F.Stack(r),undos:new F.Stack(i)})}}]),t}(Object(F.Record)(Ye));$e.fromJS=$e.fromJSON,$e.isHistory=r.bind(null,"HISTORY"),$e.prototype[ne.HISTORY]=!0;var Je=[{validateNode:function(e){if("document"==e.object){var t=e.nodes.filter(function(e){return"block"!=e.object});if(t.size)return function(e){t.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}},{validateNode:function(e){if("block"==e.object){var t=e.nodes.first();if(t){var n="block"==t.object?["block"]:["inline","text"],r=e.nodes.filter(function(e){return!n.includes(e.object)});if(r.size)return function(e){r.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}}},{validateNode:function(e){if("inline"==e.object){var t=e.nodes.filter(function(e){return"inline"!=e.object&&"text"!=e.object});if(t.size)return function(e){t.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}},{validateNode:function(e){if(("block"==e.object||"inline"==e.object)&&!(e.nodes.size>0))return function(t){var n=Re.create();t.insertNodeByKey(e.key,0,n,{normalize:!1})}}},{validateNode:function(e){if("inline"==e.object||"block"==e.object){var t=e.nodes.filter(function(e){return"inline"===e.object&&e.isEmpty});if(t.size)return function(n){if(e.nodes.size==t.size){var r=Re.create();n.insertNodeByKey(e.key,1,r,{normalize:!1})}t.forEach(function(e){n.removeNodeByKey(e.key,{normalize:!1})})}}}},{validateNode:function(e){if("block"==e.object||"inline"==e.object){var t=e.nodes.reduce(function(t,n,r){if("inline"!==n.object)return t;var o=r>0?e.nodes.get(r-1):null,i=e.nodes.get(r+1),a=!o,s=!i||"inline"==i.object;return(s||a)&&(t=t.push({insertAfter:s,insertBefore:a,index:r})),t},new F.List);if(t.size)return function(n){var r=0;t.forEach(function(t){var o=t.index,i=t.insertAfter;t.insertBefore&&(n.insertNodeByKey(e.key,r+o,Re.create(),{normalize:!1}),r++),i&&(n.insertNodeByKey(e.key,r+o+1,Re.create(),{normalize:!1}),r++)})}}}},{validateNode:function(e){if("block"==e.object||"inline"==e.object){var t=e.nodes.map(function(t,n){var r=e.nodes.get(n+1);if("text"==t.object&&r&&"text"==r.object)return r}).filter(Boolean);if(t.size)return function(e){t.reverse().forEach(function(t){e.mergeNodeByKey(t.key,{normalize:!1})})}}}},{validateNode:function(e){if("block"==e.object||"inline"==e.object){var t=e.nodes;if(!(t.size<=1)){var n=t.filter(function(e,n){if("text"==e.object&&!(e.text.length>0)){var r=n>0?t.get(n-1):null,o=t.get(n+1);if((r||"inline"!=o.object)&&(o||"inline"!=r.object)&&(!o||!r||"inline"!=o.object||"inline"!=r.object))return!0}});if(n.size)return function(e){n.forEach(function(t){e.removeNodeByKey(t.key,{normalize:!1})})}}}}}],Xe={plugins:[]},Qe=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getPluginsWith",value:function(e){return this.plugins.filter(function(t){return null!=t[e]})}},{key:"find",value:function(e){for(var t=this.getPluginsWith(e),n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=!0,a=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=c[e].apply(c,r);if(null!=f)return f}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}}},{key:"map",value:function(e){for(var t=this.getPluginsWith(e),n=[],r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=!0,s=!1,u=void 0;try{for(var l,c=t[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,p=f[e].apply(f,o);null!=p&&n.push(p)}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}return n}},{key:"run",value:function(e){for(var t=this.getPluginsWith(e),n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=!0,a=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;if(null!=c[e].apply(c,r))return}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}}},{key:"render",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return this.getPluginsWith(e).reduceRight(function(n,o){if(!o[e])return n;var i=o[e].apply(o,[t].concat(r));return null==i?n:(t.children=i,i)},void 0===t.children?null:t.children)}},{key:"object",get:function(){return"stack"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.plugins;return new t({plugins:void 0===n?[]:n})}},{key:"isStack",value:function(e){return!(!e||!e[ne.STACK])}}]),t}(Object(F.Record)(Xe));Qe.prototype[ne.STACK]=!0,s(Qe.prototype,["getPluginsWith"]);var Ze=q()("slate:schema"),et={stack:Qe.create(),document:{},blocks:{},inlines:{}},tt=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"getRule",value:function(e){switch(e.object){case"document":return this.document;case"block":return this.blocks[e.type];case"inline":return this.inlines[e.type]}}},{key:"getParentRules",value:function(){var e=this.blocks,t=this.inlines,n={};for(var r in e){var o=e[r];null!=o.parent&&(n[r]=o)}for(var i in t){var a=t[i];null!=a.parent&&(n[i]=a)}return 0==Object.keys(n).length?null:n}},{key:"fail",value:function(e,t){var n=this;return function(r){Ze("normalizing",{violation:e,context:t});var o=t.rule,i=r.operations.size;o.normalize&&o.normalize(r,e,t),r.operations.size>i||n.normalize(r,e,t)}}},{key:"normalize",value:function(e,t,n){switch(t){case $.CHILD_OBJECT_INVALID:case $.CHILD_TYPE_INVALID:case $.CHILD_UNKNOWN:case $.FIRST_CHILD_OBJECT_INVALID:case $.FIRST_CHILD_TYPE_INVALID:case $.LAST_CHILD_OBJECT_INVALID:case $.LAST_CHILD_TYPE_INVALID:var r=n.child,o=n.node;return"text"==r.object&&"block"==o.object&&1==o.nodes.size?e.removeNodeByKey(o.key):e.removeNodeByKey(r.key);case $.CHILD_REQUIRED:case $.NODE_TEXT_INVALID:case $.PARENT_OBJECT_INVALID:case $.PARENT_TYPE_INVALID:var i=n.node;return"document"==i.object?i.nodes.forEach(function(t){return e.removeNodeByKey(t.key)}):e.removeNodeByKey(i.key);case $.NODE_DATA_INVALID:var a=n.node,s=n.key;return void 0===a.data.get(s)&&"document"!=a.object?e.removeNodeByKey(a.key):e.setNodeByKey(a.key,{data:a.data.delete(s)});case $.NODE_IS_VOID_INVALID:var u=n.node;return e.setNodeByKey(u.key,{isVoid:!u.isVoid});case $.NODE_MARK_INVALID:var l=n.node,c=n.mark;return l.getTexts().forEach(function(t){return e.removeMarkByKey(t.key,0,t.text.length,c)})}}},{key:"validateNode",value:function(e){var t=this,n=this.stack.find("validateNode",e);if(n)return n;if("text"!=e.object){var r=this.getRule(e)||{},o=this.getParentRules(),i={node:e,rule:r};if(null!=r.isVoid&&e.isVoid!=r.isVoid)return this.fail($.NODE_IS_VOID_INVALID,i);if(null!=r.data)for(var a in r.data){var s=r.data[a],u=e.data.get(a);if(!s(u))return this.fail($.NODE_DATA_INVALID,ue({},i,{key:a,value:u}))}if(null!=r.marks){var l=e.getMarks().toArray(),c=!0,f=!1,p=void 0;try{for(var d,h=l[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value,g=function(e){if(!r.marks.some(function(t){return t.type===e.type}))return{v:t.fail($.NODE_MARK_INVALID,ue({},i,{mark:e}))}}(m);if("object"===("undefined"===typeof g?"undefined":ie(g)))return g.v}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}}if(null!=r.text){var v=e.text;if(!r.text.test(v))return this.fail($.NODE_TEXT_INVALID,ue({},i,{text:v}))}if(null!=r.first){var y=r.first,b=y.objects,T=y.types,_=e.nodes.first();if(_&&b&&!b.includes(_.object))return this.fail($.FIRST_CHILD_OBJECT_INVALID,ue({},i,{child:_}));if(_&&T&&!T.includes(_.type))return this.fail($.FIRST_CHILD_TYPE_INVALID,ue({},i,{child:_}))}if(null!=r.last){var E=r.last,k=E.objects,w=E.types,x=e.nodes.last();if(x&&k&&!k.includes(x.object))return this.fail($.LAST_CHILD_OBJECT_INVALID,ue({},i,{child:x}));if(x&&w&&!w.includes(x.type))return this.fail($.LAST_CHILD_TYPE_INVALID,ue({},i,{child:x}))}if(null!=r.nodes||null!=o){var C=function(){return N=null==N?null:0,M=S.shift(),D=M&&(null==M.min?0:M.min),L=M&&(null==M.max?1/0:M.max),!!M},A=function(){N-=1,I-=1},O=e.nodes.toArray(),S=null!=r.nodes?r.nodes.slice():[],N=void 0,D=void 0,I=void 0,M=void 0,L=void 0,P=void 0;for(null!=r.nodes&&C();function(){return I=null==I?0:I+1,N=null==N?0:N+1,P=O[I],null!=L&&N==L&&C(),!!P}();){if(null!=o&&"text"!=P.object&&P.type in o){var R=o[P.type];if(null!=R.parent.objects&&!R.parent.objects.includes(e.object))return this.fail($.PARENT_OBJECT_INVALID,{node:P,parent:e,rule:R});if(null!=R.parent.types&&!R.parent.types.includes(e.type))return this.fail($.PARENT_TYPE_INVALID,{node:P,parent:e,rule:R})}if(null!=r.nodes){if(!M)return this.fail($.CHILD_UNKNOWN,ue({},i,{child:P,index:I}));if(null!=M.objects&&!M.objects.includes(P.object)){if(N>=D&&C()){A();continue}return this.fail($.CHILD_OBJECT_INVALID,ue({},i,{child:P,index:I}))}if(null!=M.types&&!M.types.includes(P.type)){if(N>=D&&C()){A();continue}return this.fail($.CHILD_TYPE_INVALID,ue({},i,{child:P,index:I}))}}}if(null!=r.nodes)for(;null!=D;){if(N<D)return this.fail($.CHILD_REQUIRED,ue({},i,{index:I}));C()}}}}},{key:"toJSON",value:function(){return{object:this.object,document:this.document,blocks:this.blocks,inlines:this.inlines}}},{key:"toJS",value:function(){return this.toJSON()}},{key:"object",get:function(){return"schema"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSchema(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`Schema.create` only accepts objects or schemas, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isSchema(e))return e;var n=e.plugins;if(e.rules)throw new Error("Schemas in Slate have changed! They are no longer accept a `rules` property.");if(e.nodes)throw new Error("Schemas in Slate have changed! They are no longer accept a `nodes` property.");n||(n=[{schema:e}]);var r=C(n),o=Qe.create({plugins:[].concat(de(Je),de(n))});return new t(ue({},r,{stack:o}))}},{key:"isSchema",value:function(e){return!(!e||!e[ne.SCHEMA])}}]),t}(Object(F.Record)(et));tt.fromJS=tt.fromJSON,tt.prototype[ne.SCHEMA]=!0,s(tt.prototype,["getParentRules"]);var nt={data:new F.Map,decorations:null,document:Oe.create(),history:$e.create(),schema:tt.create(),selection:Ne.create()},rt=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new vt(ue({},e,{value:this}))}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,document:this.document.toJSON(e)};if(e.preserveData&&(t.data=this.data.toJSON()),e.preserveDecorations&&(t.decorations=this.decorations?this.decorations.toArray().map(function(e){return e.toJSON()}):null),e.preserveHistory&&(t.history=this.history.toJSON()),e.preserveSelection&&(t.selection=this.selection.toJSON()),e.preserveSchema&&(t.schema=this.schema.toJSON()),e.preserveSelection&&!e.preserveKeys){var n=this.document,r=this.selection;t.selection.anchorPath=r.isSet?n.getPath(r.anchorKey):null,t.selection.focusPath=r.isSet?n.getPath(r.focusKey):null,delete t.selection.anchorKey,delete t.selection.focusKey}if(e.preserveDecorations&&t.decorations&&!e.preserveKeys){var o=this.document;t.decorations=t.decorations.map(function(e){var t=ue({},e,{anchorPath:o.getPath(e.anchorKey),focusPath:o.getPath(e.focusKey)});return delete t.anchorKey,delete t.focusKey,t})}return t}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"value"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}},{key:"hasUndos",get:function(){return this.history.undos.size>0}},{key:"hasRedos",get:function(){return this.history.redos.size>0}},{key:"isBlurred",get:function(){return this.selection.isBlurred}},{key:"isFocused",get:function(){return this.selection.isFocused}},{key:"isCollapsed",get:function(){return this.selection.isCollapsed}},{key:"isExpanded",get:function(){return this.selection.isExpanded}},{key:"isBackward",get:function(){return this.selection.isBackward}},{key:"isForward",get:function(){return this.selection.isForward}},{key:"startKey",get:function(){return this.selection.startKey}},{key:"endKey",get:function(){return this.selection.endKey}},{key:"startOffset",get:function(){return this.selection.startOffset}},{key:"endOffset",get:function(){return this.selection.endOffset}},{key:"anchorKey",get:function(){return this.selection.anchorKey}},{key:"focusKey",get:function(){return this.selection.focusKey}},{key:"anchorOffset",get:function(){return this.selection.anchorOffset}},{key:"focusOffset",get:function(){return this.selection.focusOffset}},{key:"startBlock",get:function(){return this.startKey&&this.document.getClosestBlock(this.startKey)}},{key:"endBlock",get:function(){return this.endKey&&this.document.getClosestBlock(this.endKey)}},{key:"anchorBlock",get:function(){return this.anchorKey&&this.document.getClosestBlock(this.anchorKey)}},{key:"focusBlock",get:function(){return this.focusKey&&this.document.getClosestBlock(this.focusKey)}},{key:"startInline",get:function(){return this.startKey&&this.document.getClosestInline(this.startKey)}},{key:"endInline",get:function(){return this.endKey&&this.document.getClosestInline(this.endKey)}},{key:"anchorInline",get:function(){return this.anchorKey&&this.document.getClosestInline(this.anchorKey)}},{key:"focusInline",get:function(){return this.focusKey&&this.document.getClosestInline(this.focusKey)}},{key:"startText",get:function(){return this.startKey&&this.document.getDescendant(this.startKey)}},{key:"endText",get:function(){return this.endKey&&this.document.getDescendant(this.endKey)}},{key:"anchorText",get:function(){return this.anchorKey&&this.document.getDescendant(this.anchorKey)}},{key:"focusText",get:function(){return this.focusKey&&this.document.getDescendant(this.focusKey)}},{key:"nextBlock",get:function(){return this.endKey&&this.document.getNextBlock(this.endKey)}},{key:"previousBlock",get:function(){return this.startKey&&this.document.getPreviousBlock(this.startKey)}},{key:"nextInline",get:function(){return this.endKey&&this.document.getNextInline(this.endKey)}},{key:"previousInline",get:function(){return this.startKey&&this.document.getPreviousInline(this.startKey)}},{key:"nextText",get:function(){return this.endKey&&this.document.getNextText(this.endKey)}},{key:"previousText",get:function(){return this.startKey&&this.document.getPreviousText(this.startKey)}},{key:"characters",get:function(){return this.selection.isUnset?new F.List:this.document.getCharactersAtRange(this.selection)}},{key:"marks",get:function(){return this.selection.isUnset?new F.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new F.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new F.List:this.document.getBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?Oe.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new F.List:this.document.getInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new F.List:this.document.getTextsAtRange(this.selection)}},{key:"isEmpty",get:function(){return!!this.isCollapsed||(0==this.endOffset||0==this.startOffset)&&this.fragment.isEmpty}},{key:"isInVoid",get:function(){return!this.isExpanded&&this.document.hasVoidParent(this.startKey)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.isValue(e))return e;if(B()(e))return t.fromJSON(e,n);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isValue(e))return{data:e.data,decorations:e.decorations,schema:e.schema};if(B()(e)){var n={};return"data"in e&&(n.data=ye.create(e.data)),"decorations"in e&&(n.decorations=Ne.createList(e.decorations)),"schema"in e&&(n.schema=tt.create(e.schema)),n}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.document,o=void 0===r?{}:r,i=e.selection,a=void 0===i?{}:i,s=e.schema,u=void 0===s?{}:s,l=new F.Map;if(o=Oe.fromJSON(o),a=Ne.fromJSON(a),u=tt.fromJSON(u),n.plugins){var c=!0,f=!1,p=void 0;try{for(var d,h=n.plugins[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var m=d.value;m.data&&(l=l.merge(m.data))}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}}if("data"in e&&(l=l.merge(e.data)),a.isUnset){var g=o.getFirstText();g&&(a=a.collapseToStartOf(g))}var v=new t({data:l,document:o,selection:a,schema:u});return!1!==n.normalize&&(v=v.change({save:!1}).normalize().value),v}},{key:"isValue",value:function(e){return!(!e||!e[ne.VALUE])}}]),t}(Object(F.Record)(nt));rt.fromJS=rt.fromJSON,rt.prototype[ne.VALUE]=!0;var ot={length:void 0,mark:void 0,marks:void 0,newPath:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,selection:void 0,target:void 0,text:void 0,type:void 0,value:void 0},it=function(e){function t(){return ae(this,t),fe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return le(t,e),se(t,[{key:"toJSON",value:function(){var e=this.object,t=this.type,n={object:e,type:t},r=Ge[t],o=!0,i=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value,c=this[l];if("document"!=l&&("selection"!=l&&"value"!=l&&("node"!=l||"insert_node"==t))){if("mark"!=l&&"marks"!=l&&"node"!=l||(c=c.toJSON()),"properties"==l&&"merge_node"==t){var f={};"data"in c&&(f.data=c.data.toJS()),"type"in c&&(f.type=c.type),c=f}if("properties"==l&&"set_mark"==t){var p={};"data"in c&&(p.data=c.data.toJS()),"type"in c&&(p.type=c.type),c=p}if("properties"==l&&"set_node"==t){var d={};"data"in c&&(d.data=c.data.toJS()),"isVoid"in c&&(d.isVoid=c.isVoid),"type"in c&&(d.type=c.type),c=d}if("properties"==l&&"set_selection"==t){var h={};"anchorOffset"in c&&(h.anchorOffset=c.anchorOffset),"anchorPath"in c&&(h.anchorPath=c.anchorPath),"focusOffset"in c&&(h.focusOffset=c.focusOffset),"focusPath"in c&&(h.focusPath=c.focusPath),"isBackward"in c&&(h.isBackward=c.isBackward),"isFocused"in c&&(h.isFocused=c.isFocused),"marks"in c&&(h.marks=null==c.marks?null:c.marks.toJSON()),c=h}if("properties"==l&&"set_value"==t){var m={};"data"in c&&(m.data=c.data.toJS()),"decorations"in c&&(m.decorations=c.decorations.toJS()),"schema"in c&&(m.schema=c.schema.toJS()),c=m}if("properties"==l&&"split_node"==t){var g={};"data"in c&&(g.data=c.data.toJS()),"type"in c&&(g.type=c.type),c=g}n[l]=c}}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return n}},{key:"toJS",value:function(e){return this.toJSON(e)}},{key:"object",get:function(){return"operation"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isOperation(e))return e;if(B()(e))return t.fromJSON(e);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(F.List.isList(e)||Array.isArray(e)){return new F.List(e.map(t.create))}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isOperation(e))return e;var n=e.type,r=e.value,o=Ge[n],i={type:n};if(!o)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+n+'"');var a=!0,s=!1,u=void 0;try{for(var l,c=o[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,p=e[f];if(void 0===p){if("document"==f)continue;if("selection"==f)continue;if("value"==f)continue;if("node"==f&&"insert_node"!=n)continue;throw new Error('`Operation.fromJSON` was passed a "'+n+'" operation without the required "'+f+'" attribute.')}if("mark"==f&&(p=xe.create(p)),"marks"==f&&null!=p&&(p=xe.createSet(p)),"node"==f&&(p=Be.create(p)),"selection"==f&&(p=Ne.create(p)),"value"==f&&(p=rt.create(p)),"properties"==f&&"merge_node"==n&&(p=Be.createProperties(p)),"properties"==f&&"set_mark"==n&&(p=xe.createProperties(p)),"properties"==f&&"set_node"==n&&(p=Be.createProperties(p)),"properties"==f&&"set_selection"==n){var d=p,h=d.anchorKey,m=d.focusKey,g=ce(d,["anchorKey","focusKey"]);p=Ne.createProperties(g),void 0!==h&&(p.anchorPath=null===h?null:r.document.getPath(h)),void 0!==m&&(p.focusPath=null===m?null:r.document.getPath(m))}"properties"==f&&"set_value"==n&&(p=rt.createProperties(p)),"properties"==f&&"split_node"==n&&(p=Be.createProperties(p)),i[f]=p}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}return new t(i)}},{key:"isOperation",value:function(e){return!(!e||!e[ne.OPERATION])}},{key:"isOperationList",value:function(e){return F.List.isList(e)&&e.every(function(e){return t.isOperation(e)})}}]),t}(Object(F.Record)(ot));it.fromJS=it.fromJSON,it.prototype[ne.OPERATION]=!0;var at=q()("slate:operation:invert"),st={};st.redo=function(e){var t=e.value,n=t,r=n.history;if(r){var o=r,i=o.undos,a=o.redos,s=a.peek();s&&(a=a.pop(),i=i.push(s),s.forEach(function(t){var n=t,r=n.type,o=n.properties;"set_selection"==r&&(t=t.set("properties",Z()(o,"isFocused"))),e.applyOperation(t,{save:!1})}),t=e.value,r=r.set("undos",i).set("redos",a),t=t.set("history",r),e.value=t)}},st.undo=function(e){var t=e.value,n=t,r=n.history;if(r){var o=r,i=o.undos,a=o.redos,s=i.peek();s&&(i=i.pop(),a=a.push(s),s.slice().reverse().map(N).forEach(function(t){var n=t,r=n.type,o=n.properties;"set_selection"==r&&(t=t.set("properties",Z()(o,"isFocused"))),e.applyOperation(t,{save:!1})}),t=e.value,r=r.set("undos",i).set("redos",a),t=t.set("history",r),e.value=t)}};var ut={};ut.select=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Ne.createProperties(t);var r=n.snapshot,o=void 0!==r&&r,i=e.value,a=i.document,s=i.selection,u={},l=s.toJSON(),c=s.merge(t).normalize(a);t=X()(c,Object.keys(t));for(var f in t)0==o&&t[f]==l[f]||(u[f]=t[f]);var p=["anchorKey","anchorOffset","focusKey","focusOffset"].some(function(e){return u.hasOwnProperty(e)});l.marks&&t.marks==l.marks&&p&&(u.marks=null),te()(u)||e.applyOperation({type:"set_selection",value:i,properties:u,selection:l},o?{skip:!1,merge:!1}:{})},ut.selectAll=function(e){var t=e.value,n=t.document,r=t.selection,o=r.moveToRangeOf(n);e.select(o)},ut.snapshotSelection=function(e){var t=e.value,n=t.selection;e.select(n,{snapshot:!0})},ut.moveAnchorCharBackward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.anchorText,i=t.anchorBlock,a=r.anchorOffset,s=n.getPreviousText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a>0)return void e.moveAnchor(-1);s&&(e.moveAnchorToEndOf(s),u||l||!i.hasNode(s.key)||e.moveAnchor(-1))},ut.moveAnchorCharForward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.anchorText,i=t.anchorBlock,a=r.anchorOffset,s=n.getNextText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a<o.text.length)return void e.moveAnchor(1);s&&(e.moveAnchorToStartOf(s),u||l||!i.hasNode(s.key)||e.moveAnchor(1))},ut.moveFocusCharBackward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.focusText,i=t.focusBlock,a=r.focusOffset,s=n.getPreviousText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a>0)return void e.moveFocus(-1);s&&(e.moveFocusToEndOf(s),u||l||!i.hasNode(s.key)||e.moveFocus(-1))},ut.moveFocusCharForward=function(e){var t=e.value,n=t.document,r=t.selection,o=t.focusText,i=t.focusBlock,a=r.focusOffset,s=n.getNextText(o.key),u=n.hasVoidParent(o.key),l=s&&n.hasVoidParent(s.key);if(!u&&a<o.text.length)return void e.moveFocus(1);s&&(e.moveFocusToStartOf(s),u||l||!i.hasNode(s.key)||e.moveFocus(1))},["Forward","Backward"].forEach(function(e){var t="moveAnchorChar"+e,n="moveFocusChar"+e;ut["moveChar"+e]=function(e){e[t]()[n]()},ut["moveStartChar"+e]=function(e){e.value.isBackward?e[n]():e[t]()},ut["moveEndChar"+e]=function(e){e.value.isBackward?e[t]():e[n]()},ut["extendChar"+e]=function(t){t["moveFocusChar"+e]()},ut["collapseChar"+e]=function(t){t["Forward"==e?"collapseToEnd":"collapseToStart"]()["moveChar"+e]()}}),[["collapseLineBackward","collapseToStartOfBlock"],["collapseLineForward","collapseToEndOfBlock"],["extendLineBackward","extendToStartOfBlock"],["extendLineForward","extendToEndOfBlock"]].forEach(function(e){var t=pe(e,2),n=t[0],r=t[1];ut[n]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];e[r].apply(e,[e].concat(n))}}),["blur","collapseTo","collapseToAnchor","collapseToEnd","collapseToEndOf","collapseToFocus","collapseToStart","collapseToStartOf","extend","extendTo","extendToEndOf","extendToStartOf","flip","focus","move","moveAnchor","moveAnchorOffsetTo","moveAnchorTo","moveAnchorToEndOf","moveAnchorToStartOf","moveEnd","moveEndOffsetTo","moveEndTo","moveFocus","moveFocusOffsetTo","moveFocusTo","moveFocusToEndOf","moveFocusToStartOf","moveOffsetsTo","moveStart","moveStartOffsetTo","moveStartTo","moveTo","moveToEnd","moveToEndOf","moveToRangeOf","moveToStart","moveToStartOf","deselect"].forEach(function(e){ut[e]=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i="deselect"!=e,a=t.value,s=a.document,u=a.selection,l=u[e].apply(u,r);i&&(l=l.normalize(s)),t.select(l)}});var lt=["Next","Previous"],ct=["Block","Inline","Text"];["moveTo","moveAnchorTo","moveFocusTo","moveStartTo","moveEndTo","collapseTo","extendTo"].forEach(function(e){var t=["Start","End"];"moveTo"==e&&t.push("Range"),t.forEach(function(t){var n=""+e+t+"Of";ct.forEach(function(e){var t="Text"==e?"getNode":"getClosest"+e;ut[""+n+e]=function(e){var r=e.value,o=r.document,i=r.selection,a=o[t](i.startKey);a&&e[n](a)},lt.forEach(function(r){var o="get"+r+e,i="Next"==r?"startKey":"endKey";ut[""+n+r+e]=function(e){var r=e.value,a=r.document,s=r.selection,u=a[t](s[i]);if(u){var l=a[o](u.key);l&&e[n](l)}}})})})});var ft={};ft.setValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=rt.createProperties(t);var r=e.value;e.applyOperation({type:"set_value",properties:t,value:r},n)};var pt={};pt.normalize=function(e){e.normalizeDocument()},pt.normalizeDocument=function(e){var t=e.value,n=t.document;e.normalizeNodeByKey(n.key)},pt.normalizeNodeByKey=function(e,t){var n=e.value,r=n.document,o=n.schema,i=r.assertNode(t);D(e,i,o),r=e.value.document;var a=r.getAncestors(t);a&&a.forEach(function(t){e.value.document.getDescendant(t.key)&&I(e,t,o)})};var dt=ue({},Ce,qe,We,st,ut,ft,pt),ht=q()("slate:operation:apply"),mt={add_mark:function(e,t){var n=t.path,r=t.offset,o=t.length,i=t.mark,a=e,s=a.document,u=s.assertPath(n);return u=u.addMark(r,o,i),s=s.updateNode(u),e=e.set("document",s)},insert_node:function(e,t){var n=t.path,r=t.node,o=n[n.length-1],i=n.slice(0,-1),a=e,s=a.document,u=s.assertPath(i);return u=u.insertNode(o,r),s=s.updateNode(u),e=e.set("document",s)},insert_text:function(e,t){var n=t.path,r=t.offset,o=t.text,i=t.marks,a=e,s=a.document,u=s.assertPath(n);return u=u.insertText(r,o,i),s=s.updateNode(u),e=e.set("document",s),e=L(e,u.key,r),e=M(e,function(e){var t=e.anchorKey,n=e.anchorOffset,o=e.isBackward,i=e.isAtomic;return t==u.key&&(n>r||n==r&&(!i||!o))},function(e){return e.moveAnchor(o.length)}),e=M(e,function(e){var t=e.focusKey,n=e.focusOffset,o=e.isBackward,i=e.isAtomic;return t==u.key&&(n>r||n==r&&(!i||o))},function(e){return e.moveFocus(o.length)})},merge_node:function(e,t){var n=t.path,r=n.slice(0,n.length-1).concat([n[n.length-1]-1]),o=e,i=o.document,a=i.assertPath(r),s=i.assertPath(n),u=i.getParent(a.key),l=u.nodes.indexOf(a),c=u.nodes.indexOf(s);return u=u.mergeNode(l,c),i=i.updateNode(u),e=e.set("document",i),"text"==a.object&&(e=M(e,function(e){var t=e.anchorKey,n=e.focusKey;return t==s.key||n==s.key},function(e){return e.anchorKey==s.key&&(e=e.moveAnchorTo(a.key,a.text.length+e.anchorOffset)),e.focusKey==s.key&&(e=e.moveFocusTo(a.key,a.text.length+e.focusOffset)),e.normalize(i)})),e},move_node:function(e,t){var n=t.path,r=t.newPath,o=r[r.length-1],i=r.slice(0,-1),a=n.slice(0,-1),s=n[n.length-1],u=e,l=u.document,c=l.assertPath(n),f=l.getParent(c.key);f=f.removeNode(s),l=l.updateNode(f);var p=void 0;return a.every(function(e,t){return e===i[t]})&&a.length===i.length?p=f:a.every(function(e,t){return e===i[t]})&&s<i[a.length]?(i[a.length]--,p=l.assertPath(i)):p=l.assertPath(i),p=p.insertNode(o,c),l=l.updateNode(p),e=e.set("document",l)},remove_mark:function(e,t){var n=t.path,r=t.offset,o=t.length,i=t.mark,a=e,s=a.document,u=s.assertPath(n);return u=u.removeMark(r,o,i),s=s.updateNode(u),e=e.set("document",s)},remove_node:function(e,t){var n=t.path,r=e,o=r.document,i=r.selection,a=o.assertPath(n);if(i.isSet||null!==e.decorations){var s="text"==a.object?a:a.getFirstText()||a,u="text"==a.object?a:a.getLastText()||a,l=o.getPreviousText(s.key),c=o.getNextText(u.key);e=M(e,function(e){var t=e.startKey,n=e.endKey;return a.hasNode(t)||a.hasNode(n)},function(e){var t=e,n=t.startKey,r=t.endKey;return a.hasNode(n)&&(e=l?e.moveStartTo(l.key,l.text.length):c?e.moveStartTo(c.key,0):e.deselect()),a.hasNode(r)&&(e=l?e.moveEndTo(l.key,l.text.length):c?e.moveEndTo(c.key,0):e.deselect()),e.isSet?e.normalize(o):e})}var f=o.getParent(a.key),p=f.nodes.indexOf(a);return f=f.removeNode(p),o=o.updateNode(f),e=e.set("document",o)},remove_text:function(e,t){var n=t.path,r=t.offset,o=t.text,i=o.length,a=r+i,s=e,u=s.document,l=u.assertPath(n);return e=L(e,l.key,r,r+i),e=M(e,function(e){return e.anchorKey==l.key},function(e){return e.anchorOffset>=a?e.moveAnchor(-i):e.anchorOffset>r?e.moveAnchorTo(e.anchorKey,r):e}),e=M(e,function(e){return e.focusKey==l.key},function(e){return e.focusOffset>=a?e.moveFocus(-i):e.focusOffset>r?e.moveFocusTo(e.focusKey,r):e}),l=l.removeText(r,i),u=u.updateNode(l),e=e.set("document",u)},set_mark:function(e,t){var n=t.path,r=t.offset,o=t.length,i=t.mark,a=t.properties,s=e,u=s.document,l=u.assertPath(n);return l=l.updateMark(r,o,i,a),u=u.updateNode(l),e=e.set("document",u)},set_node:function(e,t){var n=t.path,r=t.properties,o=e,i=o.document,a=i.assertPath(n);return a=a.merge(r),i=i.updateNode(a),e=e.set("document",i)},set_selection:function(e,t){var n=t.properties,r=n.anchorPath,o=n.focusPath,i=ce(n,["anchorPath","focusPath"]),a=e,s=a.document,u=a.selection;return void 0!==r&&(i.anchorKey=null===r?null:s.assertPath(r).key),void 0!==o&&(i.focusKey=null===o?null:s.assertPath(o).key),u=u.merge(i),u=u.normalize(s),e=e.set("selection",u)},set_value:function(e,t){var n=t.properties;return e=e.merge(n)},split_node:function(e,t){var n=t.path,r=t.position,o=t.properties,i=e,a=i.document,s=a.assertPath(n),u=a.getParent(s.key),l=u.nodes.indexOf(s);if(u=u.splitNode(l,r),o){var c=u.nodes.get(l+1);"text"!==c.object&&(u=u.updateNode(c.merge(o)))}a=a.updateNode(u);var f=a.getNextText(s.key);return e=M(e,function(e){var t=e.startKey,n=e.startOffset,o=e.endKey,i=e.endOffset;return s.key==t&&r<=n||s.key==o&&r<=i},function(e){var t=e,n=t.startKey,o=t.startOffset,i=t.endKey,u=t.endOffset,l=!1;return s.key==n&&r<=o&&(e=e.moveStartTo(f.key,o-r),l=!0),s.key==i&&r<=u&&(e=e.moveEndTo(f.key,u-r),l=!0),l?e.normalize(a):e}),e=e.set("document",a)}},gt=q()("slate:change"),vt=function(){function e(t){ae(this,e);var n=t.value;this.value=n,this.operations=new F.List,this.flags=ue({normalize:!0},X()(t,["merge","save","normalize"]))}return se(e,[{key:"applyOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.operations,r=this.flags,o=this.value,i=o,a=i.history;B()(e)&&(e=ue({},e,{value:o})),e=it.create(e),t=ue({},r,t);var s=t,u=s.merge,l=void 0===u?0!=n.size||null:u,c=s.save,f=void 0===c||c,p=s.skip,d=void 0===p?null:p;return gt("apply",{operation:e,save:f,merge:l}),o=P(o,e),a&&f&&(a=a.save(e,{merge:l,skip:d}),o=o.set("history",a)),this.value=o,this.operations=n.push(e),this}},{key:"applyOperations",value:function(e,t){var n=this;return e.forEach(function(e){return n.applyOperation(e,t)}),this}},{key:"call",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,[this].concat(n)),this}},{key:"withoutNormalization",value:function(e){var t=this.flags.normalize;this.setOperationFlag("normalize",!1);try{e(this),this.normalizeDocument()}finally{this.setOperationFlag("normalize",t)}return this}},{key:"setOperationFlag",value:function(e,t){return this.flags[e]=t,this}},{key:"getFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0!==t[e]?t[e]:this.flags[e]}},{key:"unsetOperationFlag",value:function(e){return delete this.flags[e],this}},{key:"object",get:function(){return"change"}},{key:"kind",get:function(){return j.default.deprecate("slate@0.32.0","The `kind` property of Slate objects has been renamed to `object`."),this.object}}]),e}();vt.isChange=r.bind(null,"CHANGE"),vt.prototype[ne.CHANGE]=!0,Object.keys(dt).forEach(function(e){vt.prototype[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return gt(e,{args:n}),this.call.apply(this,[dt[e]].concat(n)),this}});var yt={apply:P,invert:N},bt={Block:me,Changes:dt,Character:Ie,Data:ye,Document:Oe,History:$e,Inline:ve,Leaf:Le,Mark:xe,Node:Be,Operation:it,Operations:yt,Range:Ne,Schema:tt,Stack:Qe,Text:Re,Value:rt,resetKeyGenerator:a,setKeyGenerator:i,resetMemoization:c,useMemoization:f};t.default=bt},function(e,t,n){"use strict";e.exports=n(271)},function(e,t,n){!function(n,r){e.exports=t=r()}(0,function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=0;o<t;o+=4){var i=function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}}(4294967296*(n||e.random()));n=987654071*i(),r.push(4294967296*i()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,u=o/s;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var l=u*i,c=e.min(4*l,o);if(l){for(var f=0;f<l;f+=i)this._doProcessBlock(r,f);var p=r.splice(0,l);n.sigBytes-=c}return new a.init(p,c)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(o.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math);return e})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=n(286)()},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:S(e)}function n(e){return a(e)?e:N(e)}function r(e){return s(e)?e:D(e)}function o(e){return i(e)&&!u(e)?e:I(e)}function i(e){return!(!e||!e[ln])}function a(e){return!(!e||!e[cn])}function s(e){return!(!e||!e[fn])}function u(e){return a(e)||s(e)}function l(e){return!(!e||!e[pn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function p(){}function d(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function h(e){return void 0===e.size&&(e.size=e.__iterate(g)),e.size}function m(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function g(){return!0}function v(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function y(e,t){return T(e,t,0)}function b(e,t){return T(e,t,t)}function T(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function E(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function k(){return{value:void 0,done:!0}}function w(e){return!!A(e)}function x(e){return e&&"function"===typeof e.next}function C(e){var t=A(e);return t&&t.call(e)}function A(e){var t=e&&(En&&e[En]||e[kn]);if("function"===typeof t)return t}function O(e){return e&&"number"===typeof e.length}function S(e){return null===e||void 0===e?j():i(e)?e.toSeq():U(e)}function N(e){return null===e||void 0===e?j().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():F(e)}function D(e){return null===e||void 0===e?j():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():H(e)}function I(e){return(null===e||void 0===e?j():i(e)?a(e)?e.entrySeq():e:H(e)).toSetSeq()}function M(e){this._array=e,this.size=e.length}function L(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function P(e){this._iterable=e,this.size=e.length||e.size}function R(e){this._iterator=e,this._iteratorCache=[]}function B(e){return!(!e||!e[xn])}function j(){return Cn||(Cn=new M([]))}function F(e){var t=Array.isArray(e)?new M(e).fromEntrySeq():x(e)?new R(e).fromEntrySeq():w(e)?new P(e).fromEntrySeq():"object"===typeof e?new L(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function H(e){var t=z(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function U(e){var t=z(e)||"object"===typeof e&&new L(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function z(e){return O(e)?new M(e):x(e)?new R(e):w(e)?new P(e):void 0}function K(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new _(function(){var e=o[n?i-a:a];return a++>i?k():E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?G(t,e,"",{"":e}):V(e)}function G(e,t,n,r){return Array.isArray(t)?e.call(r,n,D(t).map(function(n,r){return G(e,n,r,t)})):Y(t)?e.call(r,n,N(t).map(function(n,r){return G(e,n,r,t)})):t}function V(e){return Array.isArray(e)?D(e).map(V).toList():Y(e)?N(e).map(V).toMap():e}function Y(e){return e&&(e.constructor===Object||void 0===e.constructor)}function $(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function J(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&$(o[1],e)&&(n||$(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):o?!$(t,e.get(r,gn)):!$(e.get(r,gn),t))return f=!1,!1});return f&&e.size===p}function X(e,t){if(!(this instanceof X))return new X(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(An)return An;An=this}}function Q(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(Q(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(On)return On;On=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ie(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>Rn?ae(e):se(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"===typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Fn[e];return void 0===t&&(t=se(e),jn===Bn&&(jn=0,Fn={}),jn++,Fn[e]=t),t}function se(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return oe(t)}function ue(e){var t;if(Mn&&void 0!==(t=Sn.get(e)))return t;if(void 0!==(t=e[Pn]))return t;if(!In){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pn]))return t;if(void 0!==(t=le(e)))return t}if(t=++Ln,1073741824&Ln&&(Ln=0),Mn)Sn.set(e,t);else{if(void 0!==Dn&&!1===Dn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(In)Object.defineProperty(e,Pn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pn]=t}}return t}function le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?Ee():pe(e)&&!l(e)?e:Ee().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function pe(e){return!(!e||!e[Hn])}function de(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ve(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Te(e._root)}function be(e,t){return E(e,t[0],t[1])}function Te(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Un);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ee(){return zn||(zn=_e(0))}function ke(e,t,n){var r,o;if(e._root){var i=c(vn),a=c(yn);if(r=we(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===gn?-1:1:0)}else{if(n===gn)return e;o=1,r=new de(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?_e(o,r):Ee()}function we(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===gn?e:(f(s),f(a),new ve(t,r,[o,i]))}function xe(e){return e.constructor===ve||e.constructor===ge}function Ce(e,t,n,r,o){if(e.keyHash===r)return new ge(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new he(t,1<<a|1<<s,a===s?[Ce(e,t,n+dn,r,o)]:(i=new ve(t,r,o),a<s?[e,i]:[i,e]))}function Ae(e,t,n,r){e||(e=new p);for(var o=new ve(e,ie(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function Oe(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=u,a[i++]=c)}return new he(e,o,a)}function Se(e,t,n,r,o){for(var i=0,a=new Array(hn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new me(e,i+1,a)}function Ne(e,t,r){for(var o=[],a=0;a<r.length;a++){var s=r[a],u=n(s);i(s)||(u=u.map(function(e){return W(e)})),o.push(u)}return Me(e,t,o)}function De(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):$(e,t)?e:t}function Ie(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return $(t,o)?t:o}}function Me(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,gn,function(e){return e===gn?n:t(e,n,r)})}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)}):e.constructor(n[0])}function Le(e,t,n,r){var o=e===gn,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}Q(o||e&&e.set,"invalid keyPath");var u=i.value,l=o?gn:e.get(u,gn),c=Le(l,t,n,r);return c===l?e:c===gn?e.remove(u):(o?Ee():e).set(u,c)}function Pe(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Re(e,t,n,r){var o=r?e:d(e);return o[t]=n,o}function Be(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function je(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}function Fe(e){var t=qe();if(null===e||void 0===e)return t;if(He(e))return e;var n=r(e),o=n.size;return 0===o?t:(ce(o),o>0&&o<hn?Ke(0,o,dn,null,new Ue(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function He(e){return!(!e||!e[Gn])}function Ue(e,t){this.array=e,this.ownerID=t}function ze(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===s?u&&u.array:e&&e.array,o=n>i?0:i-n,l=a-n;return l>hn&&(l=hn),function(){if(o===l)return $n;var e=t?--l:o++;return r&&r[e]}}function o(e,r,o){var s,u=e&&e.array,l=o>i?0:i-o>>r,c=1+(a-o>>r);return c>hn&&(c=hn),function(){for(;;){if(s){var e=s();if(e!==$n)return e;s=null}if(l===c)return $n;var i=t?--c:l++;s=n(u&&u[i],r-dn,o+(i<<r))}}}var i=e._origin,a=e._capacity,s=Xe(a),u=e._tail;return n(e._root,e._level,0)}function Ke(e,t,n,r,o,i,a){var s=Object.create(Vn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function qe(){return Yn||(Yn=Ke(0,0,dn))}function We(e,t,n){if((t=m(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?$e(e,t).set(0,n):$e(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(yn);return t>=Xe(e._capacity)?r=Ge(r,e.__ownerID,0,t,n,i):o=Ge(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ke(e._origin,e._capacity,e._level,o,r):e}function Ge(e,t,n,r,o,i){var a=r>>>n&mn,s=e&&a<e.array.length;if(!s&&void 0===o)return e;var u;if(n>0){var l=e&&e.array[a],c=Ge(l,t,n-dn,r,o,i);return c===l?e:(u=Ve(e,t),u.array[a]=c,u)}return s&&e.array[a]===o?e:(f(i),u=Ve(e,t),void 0===o&&a===u.array.length-1?u.array.pop():u.array[a]=o,u)}function Ve(e,t){return t&&e&&t===e.ownerID?e:new Ue(e?e.array.slice():[],t)}function Ye(e,t){if(t>=Xe(e._capacity))return e._tail;if(t<1<<e._level+dn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&mn],r-=dn;return n}}function $e(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new p,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Ue(l&&l.array.length?[void 0,l]:[],r),u+=dn,c+=1<<u;c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Xe(i),d=Xe(s);d>=1<<u+dn;)l=new Ue(l&&l.array.length?[l]:[],r),u+=dn;var h=e._tail,m=d<f?Ye(e,s-1):d>f?new Ue([],r):h;if(h&&d>f&&a<i&&h.array.length){l=Ve(l,r);for(var g=l,v=u;v>dn;v-=dn){var y=f>>>v&mn;g=g.array[y]=Ve(g.array[y],r)}g.array[f>>>dn&mn]=h}if(s<i&&(m=m&&m.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=dn,l=null,m=m&&m.removeBefore(r,0,a);else if(a>o||d<f){for(c=0;l;){var b=a>>>u&mn;if(b!==d>>>u&mn)break;b&&(c+=(1<<u)*b),u-=dn,l=l.array[b]}l&&a>o&&(l=l.removeBefore(r,u,a-c)),l&&d<f&&(l=l.removeAfter(r,u,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Ke(a,s,u,l,m)}function Je(e,t,n){for(var o=[],a=0,s=0;s<n.length;s++){var u=n[s],l=r(u);l.size>a&&(a=l.size),i(u)||(l=l.map(function(e){return W(e)})),o.push(l)}return a>e.size&&(e=e.setSize(a)),Me(e,t,o)}function Xe(e){return e<hn?0:e-1>>>dn<<dn}function Qe(e){return null===e||void 0===e?tt():Ze(e)?e:tt().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Ze(e){return pe(e)&&l(e)}function et(e,t,n,r){var o=Object.create(Qe.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tt(){return Jn||(Jn=et(Ee(),qe()))}function nt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===gn){if(!u)return e;a.size>=hn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Ot(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=St,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===_n){var r=e.__iterator(t,n);return new _(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Tn?bn:Tn,n)},t}function ut(e,t,n){var r=Ot(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,gn);return i===gn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(_n,o);return new _(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),o)})},r}function lt(e,t){var n=Ot(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=St,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=Ot(e);return r&&(o.has=function(r){var o=e.get(r,gn);return o!==gn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,gn);return i!==gn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(_n,i),s=0;return new _(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return E(o,r?l:s++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function pt(e,t,n){var r=a(e),o=(l(e)?Qe():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=At(e);return o.map(function(t){return wt(e,i(t))})}function dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),v(t,n,o))return e;var i=y(t,o),a=b(n,o);if(i!==i||a!==a)return dt(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u===u&&(s=u<0?0:u);var l=Ot(e);return l.size=0===s?s:e.size&&s||void 0,!r&&B(e)&&s>=0&&(l.get=function(t,n){return t=m(this,t),t>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate(function(e,n){if(!u||!(u=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s}),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new _(function(){for(;a++<i;)o.next();if(++u>s)return k();var e=o.next();return r||t===Tn?e:t===bn?E(t,u-1,void 0,e):E(t,u-1,e.value[1],e)})},l}function ht(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(_n,o),s=!0;return new _(function(){if(!s)return k();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===_n?e:E(r,u,l,e):(s=!1,k())})},r}function mt(e,t,n,r){var o=Ot(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(_n,i),u=!0,l=0;return new _(function(){var e,i,c;do{if(e=s.next(),e.done)return r||o===Tn?e:o===bn?E(o,l++,void 0,e):E(o,l++,e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===_n?e:E(o,i,c,e)})},o}function gt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?F(e):H(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&a(u)||s(e)&&s(u))return u}var l=new M(o);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}function vt(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,o){function a(e,l){var c=this;e.__iterate(function(e,o){return(!t||l<t)&&i(e)?a(e,l+1):!1===r(e,n?o:s++,c)&&(u=!0),!u},o)}var s=0,u=!1;return a(e,0),s},r.__iteratorUncached=function(r,o){var a=e.__iterator(r,o),s=[],u=0;return new _(function(){for(;a;){var e=a.next();if(!1===e.done){var l=e.value;if(r===_n&&(l=l[1]),t&&!(s.length<t)||!i(l))return n?e:E(r,u++,l,e);s.push(a),a=l.__iterator(r,o)}else a=s.pop()}return k()})},r}function yt(e,t,n){var r=At(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}function bt(e,t){var n=Ot(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate(function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(Tn,r),a=0;return new _(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?E(n,a++,t):E(n,a++,o.value,o)})},n}function Tt(e,t,n){t||(t=Nt);var r=a(e),o=0,i=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return i.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?N(i):s(e)?D(i):I(i)}function _t(e,t,n){if(t||(t=Nt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Et(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Et(t,e,n)?n:e})}function Et(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function kt(e,n,r){var o=Ot(e);return o.size=new M(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Tn,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),C(o?e.reverse():e)}),a=0,s=!1;return new _(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?k():E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function wt(e,t){return B(e)?t:e.constructor(t)}function xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ct(e){return ce(e.size),h(e)}function At(e){return a(e)?n:s(e)?r:o}function Ot(e){return Object.create((a(e)?N:s(e)?D:I).prototype)}function St(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):S.prototype.cacheResult.call(this)}function Nt(e,t){return e>t?1:e<t?-1:0}function Dt(e){var n=C(e);if(!n){if(!O(e))throw new TypeError("Expected iterable or array-like: "+e);n=C(t(e))}return n}function It(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Pt(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=fe(i)},o=r.prototype=Object.create(Xn);return o.constructor=r,r}function Mt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Lt(e){return e._name||e.constructor.name||"Record"}function Pt(e,t){try{t.forEach(Rt.bind(void 0,e))}catch(e){}}function Rt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Bt(e){return null===e||void 0===e?Ut():jt(e)&&!l(e)?e:Ut().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function jt(e){return!(!e||!e[Qn])}function Ft(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ht(e,t){var n=Object.create(Zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ut(){return er||(er=Ht(Ee()))}function zt(e){return null===e||void 0===e?Wt():Kt(e)?e:Wt().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Kt(e){return jt(e)&&l(e)}function qt(e,t){var n=Object.create(tr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Wt(){return nr||(nr=qt(tt()))}function Gt(e){return null===e||void 0===e?$t():Vt(e)?e:$t().unshiftAll(e)}function Vt(e){return!(!e||!e[rr])}function Yt(e,t,n,r){var o=Object.create(or);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function $t(){return ir||(ir=Yt(0))}function Jt(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Xt(e,t){return t}function Qt(e,t){return[t,e]}function Zt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"===typeof e?JSON.stringify(e):String(e)}function nn(){return d(arguments)}function rn(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=l(e),n=a(e),r=t?1:0;return an(e.__iterate(n?t?function(e,t){r=31*r+sn(ie(e),ie(t))|0}:function(e,t){r=r+sn(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0}),r)}function an(e,t){return t=Nn(t,3432918353),t=Nn(t<<15|t>>>-15,461845907),t=Nn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nn(t^t>>>16,2246822507),t=Nn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=l,t.Keyed=n,t.Indexed=r,t.Set=o;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",pn="@@__IMMUTABLE_ORDERED__@@",dn=5,hn=1<<dn,mn=hn-1,gn={},vn={value:!1},yn={value:!1},bn=0,Tn=1,_n=2,En="function"===typeof Symbol&&Symbol.iterator,kn="@@iterator",wn=En||kn;_.prototype.toString=function(){return"[Iterator]"},_.KEYS=bn,_.VALUES=Tn,_.ENTRIES=_n,_.prototype.inspect=_.prototype.toSource=function(){return this.toString()},_.prototype[wn]=function(){return this},e(S,t),S.of=function(){return S(arguments)},S.prototype.toSeq=function(){return this},S.prototype.toString=function(){return this.__toString("Seq {","}")},S.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},S.prototype.__iterate=function(e,t){return K(this,e,t,!0)},S.prototype.__iterator=function(e,t){return q(this,e,t,!0)},e(N,S),N.prototype.toKeyedSeq=function(){return this},e(D,S),D.of=function(){return D(arguments)},D.prototype.toIndexedSeq=function(){return this},D.prototype.toString=function(){return this.__toString("Seq [","]")},D.prototype.__iterate=function(e,t){return K(this,e,t,!1)},D.prototype.__iterator=function(e,t){return q(this,e,t,!1)},e(I,S),I.of=function(){return I(arguments)},I.prototype.toSetSeq=function(){return this},S.isSeq=B,S.Keyed=N,S.Set=I,S.Indexed=D;var xn="@@__IMMUTABLE_SEQ__@@";S.prototype[xn]=!0,e(M,D),M.prototype.get=function(e,t){return this.has(e)?this._array[m(this,e)]:t},M.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},M.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new _(function(){return o>r?k():E(e,o,n[t?r-o++:o++])})},e(L,N),L.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},L.prototype.has=function(e){return this._object.hasOwnProperty(e)},L.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},L.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new _(function(){var a=r[t?o-i:i];return i++>o?k():E(e,a,n[a])})},L.prototype[pn]=!0,e(P,D),P.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=C(n),o=0;if(x(r))for(var i;!(i=r.next()).done&&!1!==e(i.value,o++,this););return o},P.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=C(n);if(!x(r))return new _(k);var o=0;return new _(function(){var t=r.next();return t.done?t:E(e,o++,t.value)})},e(R,D),R.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o<r.length;)if(!1===e(r[o],o++,this))return o;for(var i;!(i=n.next()).done;){var a=i.value;if(r[o]=a,!1===e(a,o++,this))break}return o},R.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new _(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return E(e,o,r[o++])})};var Cn;e(X,D),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(e,t){return this.has(e)?this._value:t},X.prototype.includes=function(e){return $(this._value,e)},X.prototype.slice=function(e,t){var n=this.size;return v(e,t,n)?this:new X(this._value,b(t,n)-y(e,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(e){return $(this._value,e)?0:-1},X.prototype.lastIndexOf=function(e){return $(this._value,e)?this.size:-1},X.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},X.prototype.__iterator=function(e,t){var n=this,r=0;return new _(function(){return r<n.size?E(e,r++,n._value):k()})},X.prototype.equals=function(e){return e instanceof X?$(this._value,e._value):J(e)};var An;e(Z,D),Z.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Z.prototype.get=function(e,t){return this.has(e)?this._start+m(this,e)*this._step:t},Z.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Z.prototype.slice=function(e,t){return v(e,t,this.size)?this:(e=y(e,this.size),t=b(t,this.size),t<=e?new Z(0,0):new Z(this.get(e,this._end),this.get(t,this._end),this._step))},Z.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Z.prototype.lastIndexOf=function(e){return this.indexOf(e)},Z.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Z.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new _(function(){var a=o;return o+=t?-r:r,i>n?k():E(e,i++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:J(this,e)};var On;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Sn,Nn="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Dn=Object.isExtensible,In=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Mn="function"===typeof WeakMap;Mn&&(Sn=new WeakMap);var Ln=0,Pn="__immutablehash__";"function"===typeof Symbol&&(Pn=Symbol(Pn));var Rn=16,Bn=255,jn=0,Fn={};e(fe,te),fe.of=function(){var e=un.call(arguments,0);return Ee().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return ke(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,gn,function(){return t})},fe.prototype.remove=function(e){return ke(this,e,gn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return gn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Le(this,Dt(e),t,n);return r===gn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ee()},fe.prototype.merge=function(){return Ne(this,void 0,arguments)},fe.prototype.mergeWith=function(e){return Ne(this,e,un.call(arguments,1))},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"===typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Ne(this,De,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Ne(this,Ie(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Qe(Tt(this,e))},fe.prototype.sortBy=function(e,t){return Qe(Tt(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new p)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new ye(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=pe;var Hn="@@__IMMUTABLE_MAP__@@",Un=fe.prototype;Un[Hn]=!0,Un.delete=Un.remove,Un.removeIn=Un.deleteIn,de.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if($(n,o[i][0]))return o[i][1];return r},de.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===gn,u=this.entries,l=0,c=u.length;l<c&&!$(r,u[l][0]);l++);var p=l<c;if(p?u[l][1]===o:s)return this;if(f(a),(s||!p)&&f(i),!s||1!==u.length){if(!p&&!s&&u.length>=Kn)return Ae(e,u,r,o);var h=e&&e===this.ownerID,m=h?u:d(u);return p?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,o]:m.push([r,o]),h?(this.entries=m,this):new de(e,m)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&mn),i=this.bitmap;return 0===(i&o)?r:this.nodes[Pe(i&o-1)].get(e+dn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&mn,u=1<<s,l=this.bitmap,c=0!==(l&u);if(!c&&o===gn)return this;var f=Pe(l&u-1),p=this.nodes,d=c?p[f]:void 0,h=we(d,e,t+dn,n,r,o,i,a);if(h===d)return this;if(!c&&h&&p.length>=qn)return Se(e,p,l,s,h);if(c&&!h&&2===p.length&&xe(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&xe(h))return h;var m=e&&e===this.ownerID,g=c?h?l:l^u:l|u,v=c?h?Re(p,f,h,m):je(p,f,m):Be(p,f,h,m);return m?(this.bitmap=g,this.nodes=v,this):new he(e,g,v)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&mn,i=this.nodes[o];return i?i.get(e+dn,t,n,r):r},me.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=(0===t?n:n>>>t)&mn,u=o===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=we(c,e,t+dn,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p<Wn)return Oe(e,l,p,s)}else p++;var d=e&&e===this.ownerID,h=Re(l,s,f,d);return d?(this.count=p,this.nodes=h,this):new me(e,p,h)},ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if($(n,o[i][0]))return o[i][1];return r},ge.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var s=o===gn;if(n!==this.keyHash)return s?this:(f(a),f(i),Ce(this,e,t,n,[r,o]));for(var u=this.entries,l=0,c=u.length;l<c&&!$(r,u[l][0]);l++);var p=l<c;if(p?u[l][1]===o:s)return this;if(f(a),(s||!p)&&f(i),s&&2===c)return new ve(e,this.keyHash,u[1^l]);var h=e&&e===this.ownerID,m=h?u:d(u);return p?s?l===c-1?m.pop():m[l]=m.pop():m[l]=[r,o]:m.push([r,o]),h?(this.entries=m,this):new ge(e,this.keyHash,m)},ve.prototype.get=function(e,t,n,r){return $(n,this.entry[0])?this.entry[1]:r},ve.prototype.update=function(e,t,n,r,o,i,a){var s=o===gn,u=$(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(f(a),s?void f(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new ve(e,this.keyHash,[r,o]):(f(i),Ce(this,e,t,ie(r),[r,o])))},de.prototype.iterate=ge.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},he.prototype.iterate=me.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},ve.prototype.iterate=function(e,t){return e(this.entry)},e(ye,_),ye.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return be(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return be(e,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return be(e,i.entry);t=this._stack=Te(i,t)}continue}t=this._stack=this._stack.__prev}return k()};var zn,Kn=hn/4,qn=hn/2,Wn=hn/4;e(Fe,ne),Fe.of=function(){return this(arguments)},Fe.prototype.toString=function(){return this.__toString("List [","]")},Fe.prototype.get=function(e,t){if((e=m(this,e))>=0&&e<this.size){e+=this._origin;var n=Ye(this,e);return n&&n.array[e&mn]}return t},Fe.prototype.set=function(e,t){return We(this,e,t)},Fe.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Fe.prototype.insert=function(e,t){return this.splice(e,0,t)},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=dn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):qe()},Fe.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){$e(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Fe.prototype.pop=function(){return $e(this,0,-1)},Fe.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){$e(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Fe.prototype.shift=function(){return $e(this,1)},Fe.prototype.merge=function(){return Je(this,void 0,arguments)},Fe.prototype.mergeWith=function(e){return Je(this,e,un.call(arguments,1))},Fe.prototype.mergeDeep=function(){return Je(this,De,arguments)},Fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Je(this,Ie(e),t)},Fe.prototype.setSize=function(e){return $e(this,0,e)},Fe.prototype.slice=function(e,t){var n=this.size;return v(e,t,n)?this:$e(this,y(e,n),b(t,n))},Fe.prototype.__iterator=function(e,t){var n=0,r=ze(this,t);return new _(function(){var t=r();return t===$n?k():E(e,n++,t)})},Fe.prototype.__iterate=function(e,t){for(var n,r=0,o=ze(this,t);(n=o())!==$n&&!1!==e(n,r++,this););return r},Fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ke(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Fe.isList=He;var Gn="@@__IMMUTABLE_LIST__@@",Vn=Fe.prototype;Vn[Gn]=!0,Vn.delete=Vn.remove,Vn.setIn=Un.setIn,Vn.deleteIn=Vn.removeIn=Un.removeIn,Vn.update=Un.update,Vn.updateIn=Un.updateIn,Vn.mergeIn=Un.mergeIn,Vn.mergeDeepIn=Un.mergeDeepIn,Vn.withMutations=Un.withMutations,Vn.asMutable=Un.asMutable,Vn.asImmutable=Un.asImmutable,Vn.wasAltered=Un.wasAltered,Ue.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&mn;if(r>=this.array.length)return new Ue([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-dn,n))===a&&i)return this}if(i&&!o)return this;var s=Ve(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},Ue.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&mn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if((o=i&&i.removeAfter(e,t-dn,n))===i&&r===this.array.length-1)return this}var a=Ve(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Yn,$n={};e(Qe,fe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return nt(this,e,t)},Qe.prototype.remove=function(e){return nt(this,e,gn)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Qe.isOrderedMap=Ze,Qe.prototype[pn]=!0,Qe.prototype.delete=Qe.prototype.remove;var Jn;e(rt,N),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=lt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Ct(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Tn,t),r=t?Ct(this):0;return new _(function(){var o=n.next();return o.done?o:E(e,t?--r:r++,o.value,o)})},rt.prototype[pn]=!0,e(ot,D),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t),r=0;return new _(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(it,I),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new _(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(at,N),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){xt(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){xt(r);var o=i(r);return E(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=St,e(It,te),It.prototype.toString=function(){return this.__toString(Lt(this)+" {","}")},It.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},It.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},It.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Mt(this,Ee()))},It.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Lt(this));if(this._map&&!this._map.has(e)){if(t===this._defaultValues[e])return this}var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Mt(this,n)},It.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Mt(this,t)},It.prototype.wasAltered=function(){return this._map.wasAltered()},It.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},It.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},It.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Mt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xn=It.prototype;Xn.delete=Xn.remove,Xn.deleteIn=Xn.removeIn=Un.removeIn,Xn.merge=Un.merge,Xn.mergeWith=Un.mergeWith,Xn.mergeIn=Un.mergeIn,Xn.mergeDeep=Un.mergeDeep,Xn.mergeDeepWith=Un.mergeDeepWith,Xn.mergeDeepIn=Un.mergeDeepIn,Xn.setIn=Un.setIn,Xn.update=Un.update,Xn.updateIn=Un.updateIn,Xn.withMutations=Un.withMutations,Xn.asMutable=Un.asMutable,Xn.asImmutable=Un.asImmutable,e(Bt,re),Bt.of=function(){return this(arguments)},Bt.fromKeys=function(e){return this(n(e).keySeq())},Bt.prototype.toString=function(){return this.__toString("Set {","}")},Bt.prototype.has=function(e){return this._map.has(e)},Bt.prototype.add=function(e){return Ft(this,this._map.set(e,!0))},Bt.prototype.remove=function(e){return Ft(this,this._map.remove(e))},Bt.prototype.clear=function(){return Ft(this,this._map.clear())},Bt.prototype.union=function(){var e=un.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)o(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Bt.prototype.intersect=function(){var e=un.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.every(function(e){return e.includes(t)})||n.remove(t)})})},Bt.prototype.subtract=function(){var e=un.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.remove(t)})})},Bt.prototype.merge=function(){return this.union.apply(this,arguments)},Bt.prototype.mergeWith=function(e){var t=un.call(arguments,1);return this.union.apply(this,t)},Bt.prototype.sort=function(e){return zt(Tt(this,e))},Bt.prototype.sortBy=function(e,t){return zt(Tt(this,t,e))},Bt.prototype.wasAltered=function(){return this._map.wasAltered()},Bt.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Bt.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Bt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Bt.isSet=jt;var Qn="@@__IMMUTABLE_SET__@@",Zn=Bt.prototype;Zn[Qn]=!0,Zn.delete=Zn.remove,Zn.mergeDeep=Zn.merge,Zn.mergeDeepWith=Zn.mergeWith,Zn.withMutations=Un.withMutations,Zn.asMutable=Un.asMutable,Zn.asImmutable=Un.asImmutable,Zn.__empty=Ut,Zn.__make=Ht;var er;e(zt,Bt),zt.of=function(){return this(arguments)},zt.fromKeys=function(e){return this(n(e).keySeq())},zt.prototype.toString=function(){return this.__toString("OrderedSet {","}")},zt.isOrderedSet=Kt;var tr=zt.prototype;tr[pn]=!0,tr.__empty=Wt,tr.__make=qt;var nr;e(Gt,ne),Gt.of=function(){return this(arguments)},Gt.prototype.toString=function(){return this.__toString("Stack [","]")},Gt.prototype.get=function(e,t){var n=this._head;for(e=m(this,e);n&&e--;)n=n.next;return n?n.value:t},Gt.prototype.peek=function(){return this._head&&this._head.value},Gt.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yt(e,t)},Gt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yt(t,n)},Gt.prototype.pop=function(){return this.slice(1)},Gt.prototype.unshift=function(){return this.push.apply(this,arguments)},Gt.prototype.unshiftAll=function(e){return this.pushAll(e)},Gt.prototype.shift=function(){return this.pop.apply(this,arguments)},Gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$t()},Gt.prototype.slice=function(e,t){if(v(e,t,this.size))return this;var n=y(e,this.size);if(b(t,this.size)!==this.size)return ne.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Yt(r,o)},Gt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Gt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Gt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new _(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return k()})},Gt.isStack=Vt;var rr="@@__IMMUTABLE_STACK__@@",or=Gt.prototype;or[rr]=!0,or.withMutations=Un.withMutations,or.asMutable=Un.asMutable,or.asImmutable=Un.asImmutable,or.wasAltered=Un.wasAltered;var ir;t.Iterator=_,Jt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new ot(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"===typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return fe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return zt(a(this)?this.valueSeq():this)},toSet:function(){return Bt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new it(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Gt(a(this)?this.valueSeq():this)},toList:function(){return Fe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return wt(this,gt(this,un.call(arguments,0)))},includes:function(e){return this.some(function(t){return $(t,e)})},entries:function(){return this.__iterator(_n)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return wt(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(bn)},map:function(e,t){return wt(this,ut(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,o;return arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return wt(this,lt(this,!0))},slice:function(e,t){return wt(this,dt(this,e,t,!0))},some:function(e,t){return!this.every(Zt(e),t)},sort:function(e){return wt(this,Tt(this,e))},values:function(){return this.__iterator(Tn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return h(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ft(this,e,t)},equals:function(e){return J(this,e)},entrySeq:function(){var e=this;if(e._cache)return new M(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(g)},flatMap:function(e,t){return wt(this,yt(this,e,t))},flatten:function(e){return wt(this,vt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return $(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=Dt(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,gn):gn)===gn)return t}return r},groupBy:function(e,t){return pt(this,e,t)},has:function(e){return this.get(e,gn)!==gn},hasIn:function(e){return this.getIn(e,gn)!==gn},isSubset:function(e){return e="function"===typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"===typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return $(t,e)})},keySeq:function(){return this.toSeq().map(Xt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _t(this,e)},maxBy:function(e,t){return _t(this,t,e)},min:function(e){return _t(this,e?en(e):rn)},minBy:function(e,t){return _t(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return wt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return wt(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zt(e),t)},sortBy:function(e,t){return wt(this,Tt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return wt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return wt(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=t.prototype;ar[ln]=!0,ar[wn]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=tn,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,Jt(n,{flip:function(){return wt(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return wt(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return wt(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var sr=n.prototype;return sr[cn]=!0,sr[wn]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Jt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return wt(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return wt(this,lt(this,!1))},slice:function(e,t){return wt(this,dt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=y(e,e<0?this.count():this.size);var r=this.slice(0,e);return wt(this,1===n?r:r.concat(d(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return wt(this,vt(this,e,!1))},get:function(e,t){return e=m(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=m(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return wt(this,bt(this,e))},interleave:function(){var e=[this].concat(d(arguments)),t=kt(this.toSeq(),D.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),wt(this,n)},keySeq:function(){return Z(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return wt(this,mt(this,e,t,!1))},zip:function(){return wt(this,kt(this,nn,[this].concat(d(arguments))))},zipWith:function(e){var t=d(arguments);return t[0]=this,wt(this,kt(this,e,t))}}),r.prototype[fn]=!0,r.prototype[pn]=!0,Jt(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=ar.includes,o.prototype.contains=o.prototype.includes,Jt(N,n.prototype),Jt(D,r.prototype),Jt(I,o.prototype),Jt(te,n.prototype),Jt(ne,r.prototype),Jt(re,o.prototype),{Iterable:t,Seq:S,Collection:ee,Map:fe,OrderedMap:Qe,List:Fe,Stack:Gt,Set:Bt,OrderedSet:zt,Record:It,Range:Z,Repeat:X,is:$,fromJS:W}})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(26))}(0,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,u=(s.Utf8,s.Base64),l=n.algo,c=l.EvpKDF,f=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?k:T}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),p=(r.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),d=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=p.CBC=function(){function e(e,n,r){var o=this._iv;if(o){var i=o;this._iv=t}else var i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}var n=d.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize;e.call(this,t,n,o),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize,i=t.slice(n,n+o);r.decryptBlock(t,n),e.call(this,t,n,o),this._prevBlock=i}}),n}(),m=n.pad={},g=m.Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var u=i.create(a,r);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:h,padding:g}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},b=y.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:r})}},T=r.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return v.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=n.kdf={},E=_.OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=c.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:r})}},k=r.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:E}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=T.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,T.decrypt.call(this,e,t,o.key,r)}})}()})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=t.createRow=t.createCell=t.TablePosition=t.isSelectionOutOfTable=t.isSelectionInTable=t.getCellsAtColumn=t.getCellsAtRow=t.forEachCells=t.getPosition=void 0;var o=n(188),i=r(o),a=n(189),s=r(a),u=n(486),l=r(u),c=n(487),f=r(c),p=n(488),d=r(p),h=n(489),m=r(h),g=n(67),v=r(g),y=n(490),b=r(y),T=n(491),_=r(T),E=n(492),k=r(E);t.getPosition=f.default,t.forEachCells=b.default,t.getCellsAtRow=_.default,t.getCellsAtColumn=k.default,t.isSelectionInTable=d.default,t.isSelectionOutOfTable=m.default,t.TablePosition=v.default,t.createCell=i.default,t.createRow=s.default,t.createTable=l.default},function(e,t){function n(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var o in n)r.call(n,o)&&(e[o]=n[o])}return e}e.exports=n;var r=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){for(var n,r,a=t.children||[],s=a.length,u=[],l=-1;++l<s;)(n=i(e,a[l],t))&&(l&&"break"===a[l-1].type&&(n.value&&(n.value=o.left(n.value)),(r=n.children&&n.children[0])&&r.value&&(r.value=o.left(r.value))),u=u.concat(n));return u}e.exports=r;var o=n(21),i=n(222)},function(e,t,n){"use strict";function r(e){return i.test("number"===typeof e?o(e):e.charAt(0))}e.exports=r;var o=String.fromCharCode,i=/\s/},function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(o!==e||"undefined"===typeof o)o=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+=e,i=i.substr(0,n)}var o,i="";e.exports=r},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isInCodeBlock=t.getIndent=t.getCurrentIndent=t.getCurrentCode=t.deserializeCode=void 0;var o=n(466),i=r(o),a=n(176),s=r(a),u=n(468),l=r(u),c=n(177),f=r(c),p=n(473),d=r(p);t.deserializeCode=i.default,t.getCurrentCode=s.default,t.getCurrentIndent=l.default,t.getIndent=f.default,t.isInCodeBlock=d.default},function(e,t,n){"use strict";var r=n(41);e.exports=function(e,t,n){return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r({},t,{type:String(e)},null!=n&&(Array.isArray(n)?{children:n}:{value:String(n)}))}},function(e,t,n){"use strict";function r(e){return"[object Array]"===w.call(e)}function o(e){return"[object ArrayBuffer]"===w.call(e)}function i(e){return"undefined"!==typeof FormData&&e instanceof FormData}function a(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"===typeof e}function u(e){return"number"===typeof e}function l(e){return"undefined"===typeof e}function c(e){return null!==e&&"object"===typeof e}function f(e){return"[object Date]"===w.call(e)}function p(e){return"[object File]"===w.call(e)}function d(e){return"[object Blob]"===w.call(e)}function h(e){return"[object Function]"===w.call(e)}function m(e){return c(e)&&h(e.pipe)}function g(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function T(){function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=T(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)b(arguments[n],e);return t}function _(e,t,n){return b(t,function(t,r){e[r]=n&&"function"===typeof t?E(t,n):t}),e}var E=n(259),k=n(207),w=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:k,isFormData:i,isArrayBufferView:a,isString:s,isNumber:u,isObject:c,isUndefined:l,isDate:f,isFile:p,isBlob:d,isFunction:h,isStream:m,isURLSearchParams:g,isStandardBrowserEnv:y,forEach:b,merge:T,extend:_,trim:v}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?h=d.concat(h):g=-1,h.length&&s())}function s(){if(!m){var e=o(a);m=!0;for(var t=h.length;t;){for(d=h,h=[];++g<t;)d&&d[g].run();g=-1,t=h.length}d=null,m=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,f,p=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"===typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,h=[],m=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||m||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){var r=n(148),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(272)},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isSelectionInList=t.isList=t.getPreviousItem=t.getListForItem=t.getItemsAtRange=t.getItemDepth=t.getCurrentList=t.getCurrentItem=void 0;var o=n(44),i=r(o),a=n(509),s=r(a),u=n(510),l=r(u),c=n(197),f=r(c),p=n(196),d=r(p),h=n(511),m=r(h),g=n(109),v=r(g),y=n(512),b=r(y);t.getCurrentItem=i.default,t.getCurrentList=s.default,t.getItemDepth=l.default,t.getItemsAtRange=f.default,t.getListForItem=d.default,t.getPreviousItem=m.default,t.isList=v.default,t.isSelectionInList=b.default},function(e,t){function n(e){return e.replace(/^\s*|\s*$/g,"")}t=e.exports=n,t.left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(318);n.d(t,"translate",function(){return r.a});var o=n(147);n.d(t,"I18n",function(){return o.a});var i=n(321);n.d(t,"Interpolate",function(){return i.a});var a=n(322);n.d(t,"Trans",function(){return a.a});var s=n(328);n.d(t,"I18nextProvider",function(){return s.a});var u=n(329);n.d(t,"loadNamespaces",function(){return u.a});var l=n(89);n.d(t,"reactI18nextModule",function(){return l.c}),n.d(t,"setDefaults",function(){return l.d}),n.d(t,"getDefaults",function(){return l.a}),n.d(t,"setI18n",function(){return l.e}),n.d(t,"getI18n",function(){return l.b})},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=n(356),i=n(361);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.moveSelectionBy=t.moveSelection=t.clearCell=t.removeTable=t.removeColumn=t.insertColumn=t.removeRow=t.insertRow=t.insertTable=void 0;var o=n(485),i=r(o),a=n(493),s=r(a),u=n(494),l=r(u),c=n(495),f=r(c),p=n(496),d=r(p),h=n(497),m=r(h),g=n(108),v=r(g),y=n(498),b=r(y),T=n(499),_=r(T);t.insertTable=i.default,t.insertRow=s.default,t.removeRow=l.default,t.insertColumn=f.default,t.removeColumn=d.default,t.removeTable=m.default,t.clearCell=v.default,t.moveSelection=b.default,t.moveSelectionBy=_.default},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(128),n(129))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),i=o.create(),a=i.words,s=n.keySize,u=n.iterations;a.length<s;){l&&r.update(l);var l=r.update(e).finalize(t);r.reset();for(var c=1;c<u;c++)l=r.finalize(l),r.reset();i.concat(l)}return i.sigBytes=4*s,i}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF})},function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){(function(e){function r(e,n){return n("b"+t.packets[e.type]+e.data.data)}function o(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=y[e.type];for(var s=0;s<i.length;s++)a[s+1]=i[s];return r(a.buffer)}function i(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){e.data=o.result,t.encodePacket(e,n,!0,r)},o.readAsArrayBuffer(e.data)}function a(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(v)return i(e,n,r);var o=new Uint8Array(1);return o[0]=y[e.type],r(new _([o.buffer,e.data]))}function s(e){try{e=h.decode(e,{strict:!1})}catch(e){return!1}return e}function u(e,t,n){for(var r=new Array(e.length),o=d(e.length,n),i=0;i<e.length;i++)!function(e,n,o){t(n,function(t,n){r[e]=n,o(t,r)})}(i,e[i],o)}var l,c=n(301),f=n(141),p=n(307),d=n(308),h=n(309);e&&e.ArrayBuffer&&(l=n(310));var m="undefined"!==typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!==typeof navigator&&/PhantomJS/i.test(navigator.userAgent),v=m||g;t.protocol=3;var y=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=c(y),T={type:"error",data:"parser error"},_=n(311);t.encodePacket=function(t,n,i,s){"function"===typeof n&&(s=n,n=!1),"function"===typeof i&&(s=i,i=null);var u=void 0===t.data?void 0:t.data.buffer||t.data;if(e.ArrayBuffer&&u instanceof ArrayBuffer)return o(t,n,s);if(_&&u instanceof e.Blob)return a(t,n,s);if(u&&u.base64)return r(t,s);var l=y[t.type];return void 0!==t.data&&(l+=i?h.encode(String(t.data),{strict:!1}):String(t.data)),s(""+l)},t.encodeBase64Packet=function(n,r){var o="b"+t.packets[n.type];if(_&&n.data instanceof e.Blob){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];r(o+e)},i.readAsDataURL(n.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(e){for(var s=new Uint8Array(n.data),u=new Array(s.length),l=0;l<s.length;l++)u[l]=s[l];a=String.fromCharCode.apply(null,u)}return o+=e.btoa(a),r(o)},t.decodePacket=function(e,n,r){if(void 0===e)return T;if("string"===typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=s(e)))return T;var o=e.charAt(0);return Number(o)==o&&b[o]?e.length>1?{type:b[o],data:e.substring(1)}:{type:b[o]}:T}var i=new Uint8Array(e),o=i[0],a=p(e,1);return _&&"blob"===n&&(a=new _([a])),{type:b[o],data:a}},t.decodeBase64Packet=function(e,t){var n=b[e.charAt(0)];if(!l)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=l.decode(e.substr(1));return"blob"===t&&_&&(r=new _([r])),{type:n,data:r}},t.encodePayload=function(e,n,r){function o(e){return e.length+":"+e}function i(e,r){t.encodePacket(e,!!a&&n,!1,function(e){r(null,o(e))})}"function"===typeof n&&(r=n,n=null);var a=f(e);return n&&a?_&&!v?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void u(e,i,function(e,t){return r(t.join(""))}):r("0:")},t.decodePayload=function(e,n,r){if("string"!==typeof e)return t.decodePayloadAsBinary(e,n,r);"function"===typeof n&&(r=n,n=null);var o;if(""===e)return r(T,0,1);for(var i,a,s="",u=0,l=e.length;u<l;u++){var c=e.charAt(u);if(":"===c){if(""===s||s!=(i=Number(s)))return r(T,0,1);if(a=e.substr(u+1,i),s!=a.length)return r(T,0,1);if(a.length){if(o=t.decodePacket(a,n,!1),T.type===o.type&&T.data===o.data)return r(T,0,1);if(!1===r(o,u+i,l))return}u+=i,s=""}else s+=c}return""!==s?r(T,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){function r(e,n){t.encodePacket(e,!0,!0,function(e){return n(null,e)})}if(!e.length)return n(new ArrayBuffer(0));u(e,r,function(e,t){var r=t.reduce(function(e,t){var n;return n="string"===typeof t?t.length:t.byteLength,e+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return t.forEach(function(e){var t="string"===typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}o[i++]=t?0:1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)o[i++]=parseInt(s[a]);o[i++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]}),n(o.buffer)})},t.encodePayloadAsBlob=function(e,n){function r(e,n){t.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"===typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}for(var i=e instanceof ArrayBuffer?e.byteLength:e.size,a=i.toString(),s=new Uint8Array(a.length+1),o=0;o<a.length;o++)s[o]=parseInt(a[o]);if(s[a.length]=255,_){var u=new _([t.buffer,s.buffer,e]);n(null,u)}})}u(e,r,function(e,t){return n(new _(t))})},t.decodePayloadAsBinary=function(e,n,r){"function"===typeof n&&(r=n,n=null);for(var o=e,i=[];o.byteLength>0;){for(var a=new Uint8Array(o),s=0===a[0],u="",l=1;255!==a[l];l++){if(u.length>310)return r(T,0,1);u+=a[l]}o=p(o,2+u.length),u=parseInt(u);var c=p(o,0,u);if(s)try{c=String.fromCharCode.apply(null,new Uint8Array(c))}catch(e){var f=new Uint8Array(c);c="";for(var l=0;l<f.length;l++)c+=String.fromCharCode(f[l])}i.push(c),o=p(o,u)}var d=i.length;i.forEach(function(e,o){r(t.decodePacket(e,n,!0),o,d)})}}).call(t,n(3))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){function r(e){return null==e?void 0===e?u:s:l&&l in Object(e)?i(e):a(e)}var o=n(31),i=n(357),a=n(358),s="[object Null]",u="[object Undefined]",l=o?o.toStringTag:void 0;e.exports=r},function(e,t,n){var r=n(17),o=r.Symbol;e.exports=o},function(e,t,n){function r(e,t,n,r){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=r?r(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):o(n,l,c)}return n}var o=n(106),i=n(103);e.exports=r},function(e,t,n){function r(e,t){return o(e)?e:i(e,t)?[e]:a(s(e))}var o=n(19),i=n(414),a=n(415),s=n(418);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,i,a){var s=null!==i&&void 0!==i,u=null!==n&&void 0!==n,l=o(e);if(u&&("number"!==typeof n||n<0||n===1/0))throw new Error("Expected positive finite index or child node");if(s&&(!r(null,i)||!i.children))throw new Error("Expected parent node");if(!t||!t.type||"string"!==typeof t.type)return!1;if(s!==u)throw new Error("Expected both parent and index");return Boolean(l.call(a,t,n,i))}function o(e){if("string"===typeof e)return u(e);if(null===e||void 0===e)return l;if("object"===typeof e)return("length"in e?s:a)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(e){for(var t=[],n=e.length,r=-1;++r<n;)t[r]=o(e[r]);return t}function a(e){function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}return t}function s(e){function t(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}var n=i(e),r=n.length;return t}function u(e){function t(t){return Boolean(t&&t.type===e)}return t}function l(){return!0}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=[],r=-1,i=e.length;for(t&&n.push(o("text","\n"));++r<i;)r&&n.push(o("text","\n")),n.push(e[r]);return t&&0!==e.length&&n.push(o("text","\n")),n}e.exports=r;var o=n(14)},function(e,t,n){"use strict";function r(e,t){var n;if(!(null===t||void 0===t||"string"===typeof t||"object"===typeof t&&t.length))throw new Error("Expected `string` or `Array.<string>` for `tagNames`, not `"+t+"`");return!(!e||"object"!==typeof e||"element"!==e.type||"string"!==typeof e.tagName)&&(null===t||void 0===t||(n=e.tagName,"string"===typeof t?n===t:-1!==t.indexOf(n)))}e.exports=r},function(e,t,n){"use strict";var r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var o=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},i=t.SPECIAL_ELEMENTS=Object.create(null);i[r.HTML]=Object.create(null),i[r.HTML][o.ADDRESS]=!0,i[r.HTML][o.APPLET]=!0,i[r.HTML][o.AREA]=!0,i[r.HTML][o.ARTICLE]=!0,i[r.HTML][o.ASIDE]=!0,i[r.HTML][o.BASE]=!0,i[r.HTML][o.BASEFONT]=!0,i[r.HTML][o.BGSOUND]=!0,i[r.HTML][o.BLOCKQUOTE]=!0,i[r.HTML][o.BODY]=!0,i[r.HTML][o.BR]=!0,i[r.HTML][o.BUTTON]=!0,i[r.HTML][o.CAPTION]=!0,i[r.HTML][o.CENTER]=!0,i[r.HTML][o.COL]=!0,i[r.HTML][o.COLGROUP]=!0,i[r.HTML][o.DD]=!0,i[r.HTML][o.DETAILS]=!0,i[r.HTML][o.DIR]=!0,i[r.HTML][o.DIV]=!0,i[r.HTML][o.DL]=!0,i[r.HTML][o.DT]=!0,i[r.HTML][o.EMBED]=!0,i[r.HTML][o.FIELDSET]=!0,i[r.HTML][o.FIGCAPTION]=!0,i[r.HTML][o.FIGURE]=!0,i[r.HTML][o.FOOTER]=!0,i[r.HTML][o.FORM]=!0,i[r.HTML][o.FRAME]=!0,i[r.HTML][o.FRAMESET]=!0,i[r.HTML][o.H1]=!0,i[r.HTML][o.H2]=!0,i[r.HTML][o.H3]=!0,i[r.HTML][o.H4]=!0,i[r.HTML][o.H5]=!0,i[r.HTML][o.H6]=!0,i[r.HTML][o.HEAD]=!0,i[r.HTML][o.HEADER]=!0,i[r.HTML][o.HGROUP]=!0,i[r.HTML][o.HR]=!0,i[r.HTML][o.HTML]=!0,i[r.HTML][o.IFRAME]=!0,i[r.HTML][o.IMG]=!0,i[r.HTML][o.INPUT]=!0,i[r.HTML][o.LI]=!0,i[r.HTML][o.LINK]=!0,i[r.HTML][o.LISTING]=!0,i[r.HTML][o.MAIN]=!0,i[r.HTML][o.MARQUEE]=!0,i[r.HTML][o.MENU]=!0,i[r.HTML][o.META]=!0,i[r.HTML][o.NAV]=!0,i[r.HTML][o.NOEMBED]=!0,i[r.HTML][o.NOFRAMES]=!0,i[r.HTML][o.NOSCRIPT]=!0,i[r.HTML][o.OBJECT]=!0,i[r.HTML][o.OL]=!0,i[r.HTML][o.P]=!0,i[r.HTML][o.PARAM]=!0,i[r.HTML][o.PLAINTEXT]=!0,i[r.HTML][o.PRE]=!0,i[r.HTML][o.SCRIPT]=!0,i[r.HTML][o.SECTION]=!0,i[r.HTML][o.SELECT]=!0,i[r.HTML][o.SOURCE]=!0,i[r.HTML][o.STYLE]=!0,i[r.HTML][o.SUMMARY]=!0,i[r.HTML][o.TABLE]=!0,i[r.HTML][o.TBODY]=!0,i[r.HTML][o.TD]=!0,i[r.HTML][o.TEMPLATE]=!0,i[r.HTML][o.TEXTAREA]=!0,i[r.HTML][o.TFOOT]=!0,i[r.HTML][o.TH]=!0,i[r.HTML][o.THEAD]=!0,i[r.HTML][o.TITLE]=!0,i[r.HTML][o.TR]=!0,i[r.HTML][o.TRACK]=!0,i[r.HTML][o.UL]=!0,i[r.HTML][o.WBR]=!0,i[r.HTML][o.XMP]=!0,i[r.MATHML]=Object.create(null),i[r.MATHML][o.MI]=!0,i[r.MATHML][o.MO]=!0,i[r.MATHML][o.MN]=!0,i[r.MATHML][o.MS]=!0,i[r.MATHML][o.MTEXT]=!0,i[r.MATHML][o.ANNOTATION_XML]=!0,i[r.SVG]=Object.create(null),i[r.SVG][o.TITLE]=!0,i[r.SVG][o.FOREIGN_OBJECT]=!0,i[r.SVG][o.DESC]=!0},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){function t(e,t,n){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(r,i)}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=t[i>>>2]>>>24-i%4*8&255,s=t[i+1>>>2]>>>24-(i+1)%4*8&255,u=t[i+2>>>2]>>>24-(i+2)%4*8&255,l=a<<16|s<<8|u,c=0;c<4&&i+.75*c<n;c++)o.push(r.charAt(l>>>6*(3-c)&63));var f=r.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(e){var n=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return t(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){function n(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function r(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function o(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function i(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}var a=e,s=a.lib,u=s.WordArray,l=s.Hasher,c=a.algo,f=[];!function(){for(var e=0;e<64;e++)f[e]=4294967296*t.abs(t.sin(e+1))|0}();var p=c.MD5=l.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var s=t+a,u=e[s];e[s]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}var l=this._hash.words,c=e[t+0],p=e[t+1],d=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],T=e[t+9],_=e[t+10],E=e[t+11],k=e[t+12],w=e[t+13],x=e[t+14],C=e[t+15],A=l[0],O=l[1],S=l[2],N=l[3];A=n(A,O,S,N,c,7,f[0]),N=n(N,A,O,S,p,12,f[1]),S=n(S,N,A,O,d,17,f[2]),O=n(O,S,N,A,h,22,f[3]),A=n(A,O,S,N,m,7,f[4]),N=n(N,A,O,S,g,12,f[5]),S=n(S,N,A,O,v,17,f[6]),O=n(O,S,N,A,y,22,f[7]),A=n(A,O,S,N,b,7,f[8]),N=n(N,A,O,S,T,12,f[9]),S=n(S,N,A,O,_,17,f[10]),O=n(O,S,N,A,E,22,f[11]),A=n(A,O,S,N,k,7,f[12]),N=n(N,A,O,S,w,12,f[13]),S=n(S,N,A,O,x,17,f[14]),O=n(O,S,N,A,C,22,f[15]),A=r(A,O,S,N,p,5,f[16]),N=r(N,A,O,S,v,9,f[17]),S=r(S,N,A,O,E,14,f[18]),O=r(O,S,N,A,c,20,f[19]),A=r(A,O,S,N,g,5,f[20]),N=r(N,A,O,S,_,9,f[21]),S=r(S,N,A,O,C,14,f[22]),O=r(O,S,N,A,m,20,f[23]),A=r(A,O,S,N,T,5,f[24]),N=r(N,A,O,S,x,9,f[25]),S=r(S,N,A,O,h,14,f[26]),O=r(O,S,N,A,b,20,f[27]),A=r(A,O,S,N,w,5,f[28]),N=r(N,A,O,S,d,9,f[29]),S=r(S,N,A,O,y,14,f[30]),O=r(O,S,N,A,k,20,f[31]),A=o(A,O,S,N,g,4,f[32]),N=o(N,A,O,S,b,11,f[33]),S=o(S,N,A,O,E,16,f[34]),O=o(O,S,N,A,x,23,f[35]),A=o(A,O,S,N,p,4,f[36]),N=o(N,A,O,S,m,11,f[37]),S=o(S,N,A,O,y,16,f[38]),O=o(O,S,N,A,_,23,f[39]),A=o(A,O,S,N,w,4,f[40]),N=o(N,A,O,S,c,11,f[41]),S=o(S,N,A,O,h,16,f[42]),O=o(O,S,N,A,v,23,f[43]),A=o(A,O,S,N,T,4,f[44]),N=o(N,A,O,S,k,11,f[45]),S=o(S,N,A,O,C,16,f[46]),O=o(O,S,N,A,d,23,f[47]),A=i(A,O,S,N,c,6,f[48]),N=i(N,A,O,S,y,10,f[49]),S=i(S,N,A,O,x,15,f[50]),O=i(O,S,N,A,g,21,f[51]),A=i(A,O,S,N,k,6,f[52]),N=i(N,A,O,S,h,10,f[53]),S=i(S,N,A,O,_,15,f[54]),O=i(O,S,N,A,p,21,f[55]),A=i(A,O,S,N,b,6,f[56]),N=i(N,A,O,S,C,10,f[57]),S=i(S,N,A,O,v,15,f[58]),O=i(O,S,N,A,w,21,f[59]),A=i(A,O,S,N,m,6,f[60]),N=i(N,A,O,S,E,10,f[61]),S=i(S,N,A,O,d,15,f[62]),O=i(O,S,N,A,T,21,f[63]),l[0]=l[0]+A|0,l[1]=l[1]+O|0,l[2]=l[2]+S|0,l[3]=l[3]+N|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=l.clone.call(this);return e._hash=this._hash.clone(),e}});a.MD5=l._createHelper(p),a.HmacMD5=l._createHmacHelper(p)}(Math),e.MD5})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,o(t))}},s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||a,this.options=t,this.debug=t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)},e.prototype.warn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)},e.prototype.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")},e.prototype.deprecate=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)},e.prototype.forward=function(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]=""+n+this.prefix+" "+e[0]),this.logger[t](e))},e.prototype.create=function(t){return new e(this.logger,i({prefix:this.prefix+":"+t+":"},this.options))},e}();t.a=new s},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)i.call(n,c)&&(u[c]=n[c]);if(o){s=o(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t){function n(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=l?Math.round(e/l)+"d":e>=u?Math.round(e/u)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function o(e){return i(e,l,"day")||i(e,u,"hour")||i(e,s,"minute")||i(e,a,"second")||e+" ms"}function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,s=60*a,u=60*s,l=24*u,c=365.25*l;e.exports=function(e,t){t=t||{};var i=typeof e;if("string"===i&&e.length>0)return n(e);if("number"===i&&!1===isNaN(e))return t.long?o(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r=t.document;if(!n){if(!t.selection.startKey)return null;n=t.startBlock}var o=r.getParent(n.key);return o&&o.type===e.typeItem?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){function u(e,r,i){var u;return r=r||(i?0:null),t&&e.type!==t&&!o(t,e,r,i||null)||(u=n(e,r,i||null)),u===s?u:e.children&&u!==a&&l(e.children,e)===s?s:u}function l(e,t){for(var n,o,a=r?-1:1,l=(r?e.length:-1)+a;l>-1&&l<e.length;){if(n=e[l],(o=n&&u(n,l,t))===s)return o;l="number"===typeof o?o:l+a}return i}"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),u(e)}e.exports=r;var o=n(34),i=!0,a="skip",s=!1;r.CONTINUE=i,r.SKIP=a,r.EXIT=s},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(293),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(312),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){"use strict";function r(e){var t=ce.exec(e);if(!t)throw new Error('Invalid offset key string "'+e+'".');var n=se(t,3),r=(n[0],n[1]),o=n[2];return{key:r,index:parseInt(o,10)}}function o(e){return e.key+":"+e.index}function i(e,t){var n=Object(j.Set)().asMutable(),r=[];return a(e,t).forEach(function(e){e.isRangeStart?n.add(e.decoration):e.isRangeEnd?n.remove(e.decoration):r.push(n.toList())}),r}function a(e,t){if(t.isEmpty())return e.nodes.toArray().map(function(e,t){return{child:e,index:t}});var n=re({},e.key,0),r=1;e.forEachDescendant(function(e){n[e.key]=r,r+=1});var o=e.nodes.toArray(),i=o.map(function(e,t){return{child:e,index:t,order:n[e.key]}});return t.forEach(function(e){var t=n[e.startKey],a=void 0===t?0:s(o,n,t);i.push({isRangeStart:!0,order:a-.5,decoration:e});var u=(n[e.endKey]||r)+.5;i.push({isRangeEnd:!0,order:u,decoration:e})}),i.sort(function(e,t){return e.order>t.order?1:-1})}function s(e,t,n){var r=e.findIndex(function(e){return n<t[e.key]});if(r<=0)return 0;var o=e[r-1];return t[o.key]}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;H.Node.isNode(e)&&(e=e.key);var n=t.document.querySelector('[data-key="'+e+'"]');if(!n)throw new Error('Unable to find a DOM node for "'+e+'". This is often because of forgetting to add `props.attributes` to a custom component.');return n}function l(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=u(e,n),o=0,i=void 0,a=n.document.createNodeIterator(r,NodeFilter.SHOW_TEXT,function(){return NodeFilter.FILTER_ACCEPT},!1);i=a.nextNode();){var s=i.textContent.length,l=o+s;if(t<=l){var c=t-o;return{node:i,offset:c>=0?c:0}}o=l}return null}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=e.anchorKey,r=e.anchorOffset,o=e.focusKey,i=e.focusOffset,a=e.isBackward,s=e.isCollapsed,u=l(n,r,t),c=s?u:l(o,i,t);if(!u||!c)return null;var f=t.document.createRange(),p=a?c:u,d=a?u:c;return f.setStart(p.node,p.offset),f.setEnd(d.node,d.offset),f}function f(e,t,n){var r=p(e,t),o=r.node,i=r.offset,a=z()(e),s=o.parentNode,u=s.closest(Ae),l=void 0,c=void 0;if(u){var f=a.document.createRange(),d=u.closest(Oe);f.setStart(d,0),f.setEnd(o,i),c=d,l=f.toString().length}else{var h=s.closest(Se);if(!h)return null;if(!(u=h.querySelector(Ae)))return null;c=u,l=c.textContent.length}l==c.textContent.length&&s.hasAttribute(we)&&l--;var m=u.getAttribute(Ce);if(!m)return null;var g=fe.parse(m),v=g.key;return n.document.hasDescendant(v)?{key:v,offset:l}:null}function p(e,t){if(1==e.nodeType&&e.childNodes.length){var n=t==e.childNodes.length,r=n?"backward":"forward",o=n?t-1:t;for(e=d(e,o,r);1==e.nodeType&&e.childNodes.length;){e=d(e,n?e.childNodes.length-1:0,r)}t=n?e.textContent.length:0}return{node:e,offset:t}}function d(e,t,n){for(var r=e.childNodes,o=r[t],i=t,a=!1,s=!1;(8==o.nodeType||1==o.nodeType&&0==o.childNodes.length||1==o.nodeType&&"false"==o.getAttribute("contenteditable"))&&(!a||!s);)i>=r.length?(a=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(o=r[i],"forward"==n&&i++,"backward"==n&&i--);return o||null}function h(e,t){var n=e.anchorNode||e.startContainer;if(!n)return null;var r=z()(n);(e instanceof r.Range||r.StaticRange&&e instanceof r.StaticRange)&&(e={anchorNode:e.startContainer,anchorOffset:e.startOffset,focusNode:e.endContainer,focusOffset:e.endOffset});var o=e,i=o.anchorNode,a=o.anchorOffset,s=o.focusNode,u=o.focusOffset,c=o.isCollapsed,p=f(i,a,t),d=c?p:f(s,u,t);if(!p||!d)return null;if(W.d||W.b){var h=l(p.key,p.offset),m=l(d.key,d.offset);e={anchorNode:h.node,anchorOffset:h.offset,focusNode:m.node,focusOffset:m.offset}}return H.Range.create({anchorKey:p.key,anchorOffset:p.offset,focusKey:d.key,focusOffset:d.offset,isBackward:!c&&q()(e),isFocused:!0})}function m(e,t){for(var n=e.parentNode,r=void 0;!r&&n.parentNode;){var o=t.getComputedStyle(n),i=o.overflowY;if(Ne.includes(i)){r=n;break}n=n.parentNode}return r||t.document.body}function g(e){if(!De&&e.anchorNode){var t=z()(e.anchorNode),n=m(e.anchorNode,t),r=n==t.document.body||n==t.document.documentElement,o=q()(e),i=e.getRangeAt(0).cloneRange();i.collapse(o);var a=i.getBoundingClientRect();W.g&&i.collapsed&&0==a.top&&0==a.height&&(0==i.startOffset?i.setEnd(i.endContainer,1):i.setStart(i.startContainer,i.startOffset-1),a=i.getBoundingClientRect(),0==a.top&&0==a.height&&i.getClientRects().length&&(a=i.getClientRects()[0]));var s=void 0,u=void 0,l=void 0,c=void 0,f=0,p=0,d=0,h=0,g=0,v=0,y=0,b=0;if(r){var T=t.innerWidth,_=t.innerHeight,E=t.pageYOffset,k=t.pageXOffset;s=T,u=_,l=E,c=k}else{var w=n.offsetWidth,x=n.offsetHeight,C=n.scrollTop,A=n.scrollLeft,O=t.getComputedStyle(n),S=O.borderTopWidth,N=O.borderBottomWidth,D=O.borderLeftWidth,I=O.borderRightWidth,M=O.paddingTop,L=O.paddingBottom,P=O.paddingLeft,R=O.paddingRight,B=n.getBoundingClientRect();s=w,u=x,f=B.top+parseInt(S,10),p=B.left+parseInt(D,10),d=parseInt(S,10)+parseInt(N,10),h=parseInt(D,10)+parseInt(I,10),g=parseInt(M,10),v=parseInt(L,10),y=parseInt(P,10),b=parseInt(R,10),l=C,c=A}var j=a.top+l-f,F=a.left+c-p,H=c,U=l;F<c?H=F-y:F+a.width+h>c+s&&(H=F+h+b-s),j<l?U=j-g:j+a.height+d>l+u&&(U=j+d+v+a.height-u),r?t.scrollTo(H,U):(n.scrollTop=U,n.scrollLeft=H)}}function v(e){var t=window.document;if(t&&t.body.createTextRange){var n=t.body.createTextRange();n.collapse(),n.select()}else e.removeAllRanges()}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.fragment,r=z()(e.target),o=r.getSelection(),i=t.startKey,a=t.endKey,s=t.document.getClosestVoid(i),l=t.document.getClosestVoid(a);if(!o.isCollapsed||s){var c=Y.a.serializeNode(n),f=o.getRangeAt(0),p=f.cloneContents(),d=p.childNodes[0];if(p.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(d=e)}),l){var h=f.cloneRange(),m=u(l,r);h.setEndAfter(m),p=h.cloneContents()}if(s&&(d=p.childNodes[0].childNodes[1].firstChild),[].slice.call(p.querySelectorAll(xe)).forEach(function(e){var t="n"===e.getAttribute(we);e.textContent=t?"\n":""}),3==d.nodeType){var g=r.document.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),p.appendChild(g),d=g}d.setAttribute("data-slate-fragment",c);var y=r.document.createElement("div");if(y.appendChild(p),e.clipboardData&&e.clipboardData.setData)return e.preventDefault(),e.clipboardData.setData(Be,y.textContent),e.clipboardData.setData(Pe,c),void e.clipboardData.setData(Re,y.innerHTML);var b=e.target.closest("[data-slate-editor]");y.setAttribute("contenteditable",!0),y.style.position="absolute",y.style.left="-9999px",b.appendChild(y),o.selectAllChildren(y),r.requestAnimationFrame(function(){b.removeChild(y),v(o),o.addRange(f)})}}function b(e,t){var n=e.closest("[data-key]");if(!n)return null;var r=n.getAttribute("data-key");return r?t.document.getNode(r)||null:null}function T(e,t){e.nativeEvent&&(e=e.nativeEvent);var n=e,r=n.x,o=n.y,i=n.target;if(null==r||null==o)return null;var a=t.document,s=b(i,t);if(!s)return null;if(s.isVoid){var u=i.getBoundingClientRect(),l="inline"==s.object?r-u.left<u.left+u.width-r:o-u.top<u.top+u.height-o,c=s.getFirstText(),f=H.Range.create();if(l){var p=a.getPreviousText(c.key);if(p)return f.moveToEndOf(p)}var d=a.getNextText(c.key);return d?f.moveToStartOf(d):null}var m=z()(i),g=void 0;if(m.document.caretRangeFromPoint)g=m.document.caretRangeFromPoint(r,o);else{var v=m.document.caretPositionFromPoint(r,o);g=m.document.createRange(),g.setStart(v.offsetNode,v.offset),g.setEnd(v.offsetNode,v.offset)}var y=h(g,t);return y||null}function _(e){!W.d&&e.nativeEvent&&(e=e.nativeEvent);var t=e.dataTransfer||e.clipboardData,n=w(t,je),r=w(t,He),o=w(t,Fe),i=w(t,Ue),a=w(t,ze),s=void 0;if(!n&&o&&~o.indexOf(' data-slate-fragment="')){var u=Ke.exec(o),l=se(u,2),c=(l[0],l[1]);c&&(n=c)}if(a){var f=E(a);f[je]&&(n=f[je]),f[He]&&(r=f[He]),f[ze]&&(a=f[ze])}n&&(n=Y.a.deserializeNode(n)),r&&(r=Y.a.deserializeNode(r));try{t.items&&t.items.length?s=Array.from(t.items).map(function(e){return"file"==e.kind?e.getAsFile():null}).filter(function(e){return e}):t.files&&t.files.length&&(s=Array.from(t.files))}catch(e){t.files&&t.files.length&&(s=Array.from(t.files))}var p={files:s,fragment:n,html:o,node:r,rich:i,text:a};return p.type=k(p),p}function E(e){var t="SLATE-DATA-EMBED::";if(e.substring(0,t.length)!=t)return{TEXT:e};try{return JSON.parse(e.substring(t.length))}catch(e){throw new Error("Unable to parse custom Slate drag event data.")}}function k(e){return e.fragment?"fragment":e.node?"node":e.rich&&e.html?"html":e.rich&&e.text?"text":e.files&&e.files.length?"files":e.html?"html":e.text?"text":"unknown"}function w(e,t){return e.types&&e.types.length?-1!==Array.from(e.types).indexOf(t)?e.getData(t)||null:null:t==ze?e.getData("Text")||null:null}function x(e,t,n){var r=Le[t.toUpperCase()];if(!r)throw new Error('Cannot set unknown transfer type "'+r+'".');e.nativeEvent&&(e=e.nativeEvent);var o=e.dataTransfer||e.clipboardData;try{o.setData(r,n),o.setData("text",o.getData("text"))}catch(e){var i="SLATE-DATA-EMBED::",a=o.getData(qe),s={};if(a.substring(0,i.length)===i)try{s=JSON.parse(a.substring(i.length))}catch(e){throw new Error("Failed to parse Slate data from `DataTransfer` object.")}else s[qe]=a;s[r]=n;var u=""+i+JSON.stringify(s);o.setData(qe,u)}}function C(){function e(e,t,n){We("onBeforeInput",{event:e}),e.preventDefault(),t.insertText(e.data)}function t(e,t,n){We("onBlur",{event:e}),t.blur()}function n(e,t,n){if(n.props.readOnly)return!0;var r=t.value,o=r.document,i=b(e.target,r);i&&(i.isVoid||o.hasVoidParent(i.key))&&t.focus().collapseToEndOf(i),We("onClick",{event:e})}function r(e,t,n){We("onCopy",{event:e}),y(e,t.value)}function o(e,t,n){We("onCut",{event:e}),y(e,t.value),z()(e.target).requestAnimationFrame(function(){var e=t.value,r=e.endBlock,o=e.endInline,i=e.isCollapsed,a=r&&r.isVoid&&i,s=o&&o.isVoid&&i;a?n.change(function(e){return e.removeNodeByKey(r.key)}):s?n.change(function(e){return e.removeNodeByKey(o.key)}):n.change(function(e){return e.delete()})})}function i(e,t,n){We("onDragEnd",{event:e}),k=null}function a(e,t,n){We("onDragOver",{event:e})}function s(e,t,n){We("onDragStart",{event:e}),k=!0;var r=t.value,o=r.document,i=b(e.target,r);if(i&&(i.isVoid||o.hasVoidParent(i.key)))x(e,"node",Y.a.serializeNode(i,{preserveKeys:!0}));else{var a=r.fragment;x(e,"fragment",Y.a.serializeNode(a))}}function l(e,t,n){We("onDrop",{event:e});var r=t.value,o=r.document,i=r.selection,a=z()(e.target),s=T(e,r);if(s){var l=_(e),c=l.type,f=l.fragment,p=l.node,d=l.text;if(t.focus(),k&&i.endKey==s.endKey&&i.endOffset<s.endOffset&&(s=s.move(i.startKey==i.endKey?0-i.endOffset+i.startOffset:0-i.endOffset)),k&&t.delete(),t.select(s),"text"==c||"html"==c){var h=s,m=h.anchorKey,g=o.hasVoidParent(m);if(g){for(var v=o.getNode(m);g&&(v=o.getNextText(v.key));)g=o.hasVoidParent(v.key);v&&t.collapseToStartOf(v)}d&&d.split("\n").forEach(function(e,n){n>0&&t.splitBlock(),t.insertText(e)})}"fragment"==c&&t.insertFragment(f),"node"==c&&H.Block.isBlock(p)&&t.insertBlock(p.regenerateKey()).removeNodeByKey(p.key),"node"==c&&H.Inline.isInline(p)&&t.insertInline(p.regenerateKey()).removeNodeByKey(p.key);var y=o.getNode(s.focusKey),b=u(y,a);b&&b.dispatchEvent(new MouseEvent("mouseup",{view:a,bubbles:!0,cancelable:!0}))}}function c(e,t,n){We("onInput",{event:e});var r=z()(e.target),o=t.value,i=r.getSelection(),a=i.anchorNode,s=f(a,0,o);if(s){var u=o.document,l=o.selection,c=u.getDescendant(s.key),p=u.getClosestBlock(c.key),d=c.getLeaves(),h=p.getLastText(),m=d.last(),g=0,v=0,y=d.find(function(e){if(g=v,(v+=e.text.length)>s.offset)return!0})||m,b=y.text,T=a.textContent,_=c==h,E=y==m,k=T.charAt(T.length-1);if(_&&E&&"\n"==k&&(T=T.slice(0,-1)),T!=b){var w=T.length-b.length,x=l.collapseToEnd().move(w),C=l.moveAnchorTo(s.key,g).moveFocusTo(s.key,v);t.insertTextAtRange(C,T,y.marks).select(x)}}}function p(e,t,n){We("onKeyDown",{event:e});var r=t.value;if(J.a.isSplitBlock(e)&&!W.e)return r.isInVoid?t.collapseToStartOfNextText():t.splitBlock();if(J.a.isDeleteCharBackward(e)&&!W.e)return t.deleteCharBackward();if(J.a.isDeleteCharForward(e)&&!W.e)return t.deleteCharForward();if(J.a.isDeleteLineBackward(e))return t.deleteLineBackward();if(J.a.isDeleteLineForward(e))return t.deleteLineForward();if(J.a.isDeleteWordBackward(e))return t.deleteWordBackward();if(J.a.isDeleteWordForward(e))return t.deleteWordForward();if(J.a.isRedo(e))return t.redo();if(J.a.isUndo(e))return t.undo();if(J.a.isCollapseLineBackward(e))return e.preventDefault(),t.collapseLineBackward();if(J.a.isCollapseLineForward(e))return e.preventDefault(),t.collapseLineForward();if(J.a.isExtendLineBackward(e))return e.preventDefault(),t.extendLineBackward();if(J.a.isExtendLineForward(e))return e.preventDefault(),t.extendLineForward();if(J.a.isCollapseCharBackward(e)){var o=r.document,i=r.isInVoid,a=r.previousText,s=r.startText,u=a&&o.hasVoidParent(a.key);if(i||u||""==s.text)return e.preventDefault(),t.collapseCharBackward()}if(J.a.isCollapseCharForward(e)){var l=r.document,c=r.isInVoid,f=r.nextText,p=r.startText,d=f&&l.hasVoidParent(f.key);if(c||d||""==p.text)return e.preventDefault(),t.collapseCharForward()}if(J.a.isExtendCharBackward(e)){var h=r.document,m=r.isInVoid,g=r.previousText,v=r.startText,y=g&&h.hasVoidParent(g.key);if(m||y||""==v.text)return e.preventDefault(),t.extendCharBackward()}if(J.a.isExtendCharForward(e)){var b=r.document,T=r.isInVoid,_=r.nextText,E=r.startText,k=_&&b.hasVoidParent(_.key);if(T||k||""==E.text)return e.preventDefault(),t.extendCharForward()}}function d(e,t,n){We("onPaste",{event:e});var r=_(e),o=r.type,i=r.fragment,a=r.text;if("fragment"==o&&t.insertFragment(i),"text"==o||"html"==o){if(!a)return;var s=t.value,u=s.document,l=s.selection,c=s.startBlock;if(c.isVoid)return;var f=c,p=u.getInsertMarksAtRange(l),d=$.a.deserialize(a,{defaultBlock:f,defaultMarks:p}).document;t.insertFragment(d)}}function m(e,t,n){We("onSelect",{event:e});var r=z()(e.target),o=t.value,i=o.document,a=r.getSelection();if(!a.rangeCount)return void t.blur();var s=h(a,o);if(s){var u=s,l=u.anchorKey,c=u.anchorOffset,f=u.focusKey,p=u.focusOffset,d=i.getNode(l),m=i.getNode(f),g=i.getClosestInline(l),v=i.getClosestInline(f),y=i.getClosestBlock(f),b=i.getClosestBlock(l);if(b&&!b.isVoid&&0==c&&y&&y.isVoid&&0!=p&&(s=s.set("focusOffset",0)),g&&!g.isVoid&&c==d.text.length){var T=i.getClosestBlock(l),_=T.getNextText(l);_&&(s=s.moveAnchorTo(_.key,0))}if(v&&!v.isVoid&&p==m.text.length){var E=i.getClosestBlock(f),k=E.getNextText(f);k&&(s=s.moveFocusTo(k.key,0))}s=s.normalize(i),t.select(s)}}function g(e,t){var n=ee.reduce(function(e,n){return e[n]=t[n],e},{});return I.a.createElement(Me,oe({},n,{autoCorrect:e.autoCorrect,className:e.className,children:e.children,editor:t,readOnly:e.readOnly,role:e.role,spellCheck:e.spellCheck,style:e.style,tabIndex:e.tabIndex,tagName:e.tagName}))}function v(e){var t=e.attributes,n=e.children,r=e.node;if("block"==r.object||"inline"==r.object){var o="block"==r.object?"div":"span",i={position:"relative"};return I.a.createElement(o,oe({},t,{style:i}),n)}}function E(e){var t=e.editor,n=e.node;if(t.props.placeholder&&!t.state.isComposing&&"block"==n.object&&H.Text.isTextList(n.nodes)&&""==n.text&&!(t.value.document.getBlocks().size>1)){var r={pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333"};return I.a.createElement("span",{contentEditable:!1,style:r},t.props.placeholder)}}var k=null;return{onBeforeInput:e,onBlur:t,onClick:n,onCopy:r,onCut:o,onDragEnd:i,onDragOver:a,onDragStart:s,onDrop:l,onInput:c,onKeyDown:p,onPaste:d,onSelect:m,renderEditor:g,renderNode:v,renderPlaceholder:E}}function A(){function e(e,t,n){return!!n.props.readOnly||(!(!W.e&&!W.a||!W.h.beforeinput)||void Ge("onBeforeInput",{event:e}))}function t(e,t,n){if(k)return!0;if(n.props.readOnly)return!0;var r=t.value,o=e.relatedTarget,i=e.target,a=z()(i);if(T==a.document.activeElement)return!0;if(o){var s=Object(X.findDOMNode)(n);if(o==s)return!0;if(o.hasAttribute("data-slate-spacer"))return!0;var u=b(o,r);if(s.contains(o)&&u&&!u.isVoid)return!0}Ge("onBlur",{event:e})}function n(e,t){e.value.schema!=t.schema&&e.setValue({schema:t.schema},{save:!1}).normalize(),Ge("onChange")}function r(e,t,n){var r=_;window.requestAnimationFrame(function(){_>r||(E=!1,n.state.isComposing&&n.setState({isComposing:!1}))}),Ge("onCompositionEnd",{event:e})}function o(e,t,n){E=!0,_++,n.state.isComposing||n.setState({isComposing:!0}),Ge("onCompositionStart",{event:e})}function i(e,t,n){var r=z()(e.target);k=!0,r.requestAnimationFrame(function(){return k=!1}),Ge("onCopy",{event:e})}function a(e,t,n){if(n.props.readOnly)return!0;var r=z()(e.target);k=!0,r.requestAnimationFrame(function(){return k=!1}),Ge("onCut",{event:e})}function s(e,t,n){w=!1,Ge("onDragEnd",{event:e})}function u(e,t,n){Ge("onDragEnter",{event:e})}function l(e,t,n){Ge("onDragExit",{event:e})}function c(e,t,n){Ge("onDragLeave",{event:e})}function f(e,t,n){b(e.target,n.value).isVoid&&e.preventDefault(),w||(w=!0,e.nativeEvent.dataTransfer.dropEffect="move"),Ge("onDragOver",{event:e})}function p(e,t,n){w=!0,Ge("onDragStart",{event:e})}function d(e,t,n){if(n.props.readOnly)return!0;e.preventDefault(),Ge("onDrop",{event:e})}function h(e,t,n){if(k)return!0;if(n.props.readOnly)return!0;var r=Object(X.findDOMNode)(n),o=z()(e.target);if(T=o.document.activeElement,W.c&&e.target!=r)return r.focus(),!0;Ge("onFocus",{event:e})}function m(e,t,n){return!!E||(!!t.value.isBlurred||void Ge("onInput",{event:e}))}function g(e,t,n){return!!n.props.readOnly||(E?(J.a.isComposing(e)&&e.preventDefault(),!0):(J.a.isContentEditable(e)&&!W.e&&e.preventDefault(),void Ge("onKeyDown",{event:e})))}function v(e,t,n){if(n.props.readOnly)return!0;e.preventDefault(),Ge("onPaste",{event:e})}function y(e,t,n){if(k)return!0;if(E)return!0;if(n.props.readOnly)return!0;var r=z()(e.target);T=r.document.activeElement,Ge("onSelect",{event:e})}var T=null,_=0,E=!1,k=!1,w=!1;return{onBeforeInput:e,onBlur:t,onChange:n,onCompositionEnd:r,onCompositionStart:o,onCopy:i,onCut:a,onDragEnd:s,onDragEnter:u,onDragExit:l,onDragLeave:c,onDragOver:f,onDragStart:p,onDrop:d,onFocus:h,onInput:m,onKeyDown:g,onPaste:v,onSelect:y}}function O(){}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Editor",function(){return Ye}),n.d(t,"cloneFragment",function(){return y}),n.d(t,"findDOMNode",function(){return u}),n.d(t,"findDOMRange",function(){return c}),n.d(t,"findNode",function(){return b}),n.d(t,"findRange",function(){return h}),n.d(t,"getEventRange",function(){return T}),n.d(t,"getEventTransfer",function(){return _}),n.d(t,"setEventTransfer",function(){return x}),n.d(t,"AfterPlugin",function(){return C}),n.d(t,"BeforePlugin",function(){return A});var S=n(334),N=n.n(S),D=n(1),I=n.n(D),M=n(4),L=n.n(M),P=n(336),R=n(449),B=n.n(R),j=n(5),F=(n.n(j),n(90)),H=n(0),U=n(450),z=n.n(U),K=n(453),q=n.n(K),W=n(173),G=n(455),V=n.n(G),Y=n(459),$=n(461),J=n(462),X=n(18),Q=(n.n(X),n(463)),Z=n.n(Q),ee=["onBeforeInput","onBlur","onClick","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onPaste","onSelect"],te=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),re=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},ae=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},se=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ue=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},le=[].concat(ue(ee),["decorateNode","onChange","renderEditor","renderMark","renderNode","renderPlaceholder","renderPortal","schema","validateNode"]),ce=/^([\w-]+)(?::(\d+))?$/,fe={parse:r,stringify:o},pe=N()("slate:leaves"),de=function(e){function t(){var e,n,r,o;te(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=ae(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),he.call(r),o=n,ae(r,o)}return ie(t,e),ne(t,[{key:"shouldComponentUpdate",value:function(e){return e.index!=this.props.index||e.marks!=this.props.marks||e.text!=this.props.text||e.parent!=this.props.parent}},{key:"render",value:function(){this.debug("render",this);var e=this.props,t=e.node,n=e.index,r=fe.stringify({key:t.key,index:n});return I.a.createElement("span",{"data-offset-key":r},this.renderMarks())}},{key:"renderMarks",value:function(){var e=this.props,t=e.marks,n=e.node,r=e.offset,o=e.text,i=e.editor,a=i.stack,s=this.renderText(),u={"data-slate-leaf":!0};return t.reduce(function(e,s){var l={editor:i,mark:s,marks:t,node:n,offset:r,text:o,children:e,attributes:u};return a.find("renderMark",l)||e},s)}},{key:"renderText",value:function(){var e=this.props,t=e.block,n=e.node,r=e.parent,o=e.text,i=e.index,a=e.leaves;if(r.isVoid)return I.a.createElement("span",{"data-slate-zero-width":"z"},"\u200b");if(""===o&&"block"===r.object&&""===r.text&&1===r.nodes.size)return I.a.createElement("span",{"data-slate-zero-width":"n"},"\u200b");if(""===o)return I.a.createElement("span",{"data-slate-zero-width":"z"},"\u200b");var s=t.getLastText(),u=o.charAt(o.length-1),l=n===s,c=i===a.size-1;return l&&c&&"\n"===u?o+"\n":o}}]),t}(I.a.Component);de.propTypes={block:P.a.block.isRequired,editor:L.a.object.isRequired,index:L.a.number.isRequired,leaves:P.a.leaves.isRequired,marks:P.a.marks.isRequired,node:P.a.node.isRequired,offset:L.a.number.isRequired,parent:P.a.node.isRequired,text:L.a.string.isRequired};var he=function(){var e=this;this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];pe.apply(void 0,[t,e.props.node.key+"-"+e.props.index].concat(r))}},me=N()("slate:node"),ge=function(e){function t(){var e,n,r,o;te(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=ae(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),ve.call(r),o=n,ae(r,o)}return ie(t,e),ne(t,[{key:"render",value:function(){var e=this;this.debug("render",this);var t=this.props,n=t.decorations,r=t.editor,o=t.node,i=t.style,a=r.value,s=a.document,u=o.key,l=n.filter(function(e){var t=e.startKey,n=e.endKey;return t==u||n==u||t!==n&&(!!s.areDescendantsSorted(t,u)&&s.areDescendantsSorted(u,n))}),c=0===l.size?o.getLeaves():o.getLeaves(l),f=0,p=c.map(function(t,n){var r=e.renderLeaf(c,t,n,f);return f+=t.text.length,r});return I.a.createElement("span",{"data-key":u,style:i},p)}}]),t}(I.a.Component);ge.propTypes={block:P.a.block,decorations:B.a.list.isRequired,editor:L.a.object.isRequired,node:P.a.node.isRequired,parent:P.a.node.isRequired,style:L.a.object},ge.defaultProps={style:null};var ve=function(){var e=this;this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props.node,a=i.key;me.apply(void 0,[t,a+" (text)"].concat(r))},this.shouldComponentUpdate=function(t){var n=e.props,r=t,o=n;if(r.node!=o.node)return!0;if("block"==r.parent.object){var i=o.parent.nodes.last(),a=r.parent.nodes.last();if(o.node==i&&r.node!=a)return!0}return!r.decorations.equals(o.decorations)},this.renderLeaf=function(t,n,r,o){var i=e.props,a=i.block,s=i.node,u=i.parent,l=i.editor,c=n.text,f=n.marks;return I.a.createElement(de,{key:s.key+"-"+r,block:a,editor:l,index:r,marks:f,node:s,offset:o,parent:u,leaves:t,text:c})}},ye=N()("slate:void"),be=function(e){function t(){var e,n,r,o;te(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=ae(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),Te.call(r),o=n,ae(r,o)}return ie(t,e),ne(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.node,r=e.readOnly,o="block"==n.object?"div":"span",i={height:"0",color:"transparent",outline:"none",position:"absolute"},a=I.a.createElement(o,{"data-slate-spacer":!0,style:i},this.renderText()),s=I.a.createElement(o,{contentEditable:!!r&&null},t);return this.debug("render",{props:e}),I.a.createElement(o,{"data-slate-void":!0,"data-key":n.key,contentEditable:!(!r&&"block"!=n.object)&&null},r?null:a,s)}}]),t}(I.a.Component);be.propTypes={block:P.a.block,children:L.a.any.isRequired,editor:L.a.object.isRequired,node:P.a.node.isRequired,parent:P.a.node.isRequired,readOnly:L.a.bool.isRequired};var Te=function(){var e=this;this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props.node,a=i.key,s=i.type,u=a+" ("+s+")";ye.apply(void 0,[t,""+u].concat(r))},this.renderText=function(){var t=e.props,n=t.block,r=t.decorations,o=t.isSelected,i=t.node,a=t.readOnly,s=t.editor,u=i.getFirstText();return I.a.createElement(ge,{block:"block"==i.object?i:n,decorations:r,editor:s,isSelected:o,key:u.key,node:u,parent:i,readOnly:a})}},_e=N()("slate:node"),Ee=function(e){function t(){var e,n,r,o;te(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=ae(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),ke.call(r),o=n,ae(r,o)}return ie(t,e),ne(t,[{key:"render",value:function(){var e=this;this.debug("render",this);var t=this.props,n=t.editor,r=t.isSelected,o=t.node,a=t.decorations,s=t.parent,u=t.readOnly,l=n.value,c=l.selection,f=n.stack,p=o.getSelectionIndexes(c,r),d=a.concat(o.getDecorations(f)),h=i(o,d),m=[];o.nodes.forEach(function(t,n){var r=!!p&&p.start<=n&&n<p.end;m.push(e.renderNode(t,r,h[n]))});var g={"data-key":o.key};if("block"==o.object&&"block"!=o.nodes.first().object){"rtl"==o.getTextDirection()&&(g.dir="rtl")}var v={key:o.key,editor:n,isSelected:r,node:o,parent:s,readOnly:u},y=f.find("renderPlaceholder",v);y&&(y=I.a.cloneElement(y,{key:o.key+"-placeholder"}),m=[y].concat(ue(m)));var b=f.find("renderNode",oe({},v,{attributes:g,children:m}));return o.isVoid?I.a.createElement(be,this.props,b):b}}]),t}(I.a.Component);Ee.propTypes={block:P.a.block,decorations:B.a.list.isRequired,editor:L.a.object.isRequired,isSelected:L.a.bool.isRequired,node:P.a.node.isRequired,parent:P.a.node.isRequired,readOnly:L.a.bool.isRequired};var ke=function(){var e=this;this.debug=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.props.node,a=i.key,s=i.type;_e.apply(void 0,[t,a+" ("+s+")"].concat(r))},this.shouldComponentUpdate=function(t){var n=e.props,r=n.editor.stack,o=r.find("shouldNodeComponentUpdate",n,t),i=t,a=n;if(null!=o){if(o)return!0;!1===o&&F.default.warn("Returning false in `shouldNodeComponentUpdate` does not disable Slate's internal `shouldComponentUpdate` logic. If you want to prevent updates, use React's `shouldComponentUpdate` instead.")}return i.readOnly!=a.readOnly||(i.node!=a.node||(!(!i.isSelected&&!a.isSelected)||!i.decorations.equals(a.decorations)))},this.renderNode=function(t,n,r){var o=e.props,i=o.block,a=o.editor,s=o.node,u=o.readOnly,l="text"==t.object?ge:Ee;return I.a.createElement(l,{block:"block"==s.object?s:i,decorations:r,editor:a,isSelected:n,key:t.key,node:t,parent:s,readOnly:u})}},we="data-slate-zero-width",xe="["+we+"]",Ce="data-offset-key",Ae="["+Ce+"]",Oe="[data-key]",Se="[data-slate-void]",Ne=["auto","overlay","scroll"],De=W.e&&!!window.navigator.userAgent.match(/os 11_/i),Ie=N()("slate:content"),Me=function(e){function t(e){te(this,t);var n=ae(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidMount=function(){z()(n.element).document.addEventListener("selectionchange",n.onNativeSelectionChange),(W.e||W.a)&&W.h.beforeinput&&n.element.addEventListener("beforeinput",n.onNativeBeforeInput),n.updateSelection()},n.componentDidUpdate=function(){n.updateSelection()},n.updateSelection=function(){var e=n.props.editor,t=e.value,r=t.selection,o=r.isBackward,i=z()(n.element),a=i.getSelection(),s=a.rangeCount,u=a.anchorNode;if(s||!r.isBlurred){if(r.isBlurred){if(!n.isInEditor(u))return;return v(a),n.element.blur(),void Ie("updateSelection",{selection:r,native:a})}if(!r.isUnset){var l=!!s&&a.getRangeAt(0),f=c(r,i);if(!f)return void F.default.error("Unable to find a native DOM range from the current selection.",{selection:r});var p=f.startContainer,d=f.startOffset,h=f.endContainer,m=f.endOffset;l&&(p==l.startContainer&&d==l.startOffset&&h==l.endContainer&&m==l.endOffset||p==l.endContainer&&d==l.endOffset&&h==l.startContainer&&m==l.startOffset)||(n.tmp.isUpdatingSelection=!0,v(a),a.setBaseAndExtent?o?a.setBaseAndExtent(f.endContainer,f.endOffset,f.startContainer,f.startOffset):a.setBaseAndExtent(f.startContainer,f.startOffset,f.endContainer,f.endOffset):a.addRange(f),g(a),setTimeout(function(){W.c&&n.element&&n.element.focus(),n.tmp.isUpdatingSelection=!1}),Ie("updateSelection",{selection:r,native:a}))}}},n.ref=function(e){n.element=e},n.isInEditor=function(e){var t=n.element,r=3===e.nodeType?e.parentNode:e;return r.isContentEditable&&(r===t||r.closest("[data-slate-editor]")===t)},n.onNativeBeforeInput=function(e){if(!n.props.readOnly&&n.isInEditor(e.target)){var t=e.getTargetRanges(),r=se(t,1),o=r[0];if(o){var i=n.props.editor;switch(e.inputType){case"deleteContentBackward":e.preventDefault();var a=h(o,i.value);i.change(function(e){return e.deleteAtRange(a)});break;case"insertLineBreak":case"insertParagraph":e.preventDefault();var s=h(o,i.value);i.change(function(e){e.value.isInVoid?e.collapseToStartOfNextText():e.splitBlockAtRange(s)});break;case"insertReplacementText":case"insertText":var u=null==e.data?e.dataTransfer.getData("text/plain"):e.data;if(null==u)return;e.preventDefault();var l=i.value,c=l.selection,f=h(o,l);i.change(function(e){e.insertTextAtRange(f,u,c.marks),c.marks&&l.document!=e.value.document&&e.select({marks:null})})}}}},n.onNativeSelectionChange=V()(function(e){if(!n.props.readOnly){z()(e.target).document.activeElement===n.element&&n.props.onSelect(e)}},100),n.renderNode=function(e,t,r){var o=n.props,i=o.editor,a=o.readOnly,s=i.value,u=s.document;return I.a.createElement(Ee,{block:null,editor:i,decorations:r,isSelected:t,key:e.key,node:e,parent:u,readOnly:a})},n.tmp={},n.tmp.isUpdatingSelection=!1,ee.forEach(function(e){n[e]=function(t){n.onEvent(e,t)}}),n}return ie(t,e),ne(t,[{key:"componentWillUnmount",value:function(){var e=z()(this.element);e&&e.document.removeEventListener("selectionchange",this.onNativeSelectionChange),(W.e||W.a)&&W.h.beforeinput&&this.element.removeEventListener("beforeinput",this.onNativeBeforeInput)}},{key:"onEvent",value:function(e,t){if(Ie("onEvent",e),!this.tmp.isUpdatingSelection||"onSelect"!=e&&"onBlur"!=e&&"onFocus"!=e){if("onSelect"==e){var n=this.props.editor,r=n.value,o=r.selection,i=z()(t.target),a=i.getSelection(),s=h(a,r);if(s&&s.equals(o))return void this.updateSelection()}if("onDragEnd"==e||"onDragEnter"==e||"onDragExit"==e||"onDragLeave"==e||"onDragOver"==e||"onDragStart"==e||"onDrop"==e){if(t.target.closest("[data-slate-editor]")!==this.element)return}("onBeforeInput"!=e&&"onBlur"!=e&&"onCompositionEnd"!=e&&"onCompositionStart"!=e&&"onCopy"!=e&&"onCut"!=e&&"onFocus"!=e&&"onInput"!=e&&"onKeyDown"!=e&&"onKeyUp"!=e&&"onPaste"!=e&&"onSelect"!=e||this.isInEditor(t.target))&&this.props[e](t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.readOnly,o=t.editor,a=t.tabIndex,s=t.role,u=t.tagName,l=t.spellCheck,c=o.value,f=o.stack,p=u,d=c.document,h=c.selection,m=c.decorations,g=d.getSelectionIndexes(h,h.isFocused),v=d.getDecorations(f).concat(m||[]),y=i(d,v),b=d.nodes.toArray().map(function(t,n){var r=!!g&&g.start<=n&&n<g.end;return e.renderNode(t,r,y[n])}),T=ee.reduce(function(t,n){return t[n]=e[n],t},{}),_=oe({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},r?{}:{WebkitUserModify:"read-write-plaintext-only"},t.style);return Ie("render",{props:t}),I.a.createElement(p,oe({},T,{"data-slate-editor":!0,ref:this.ref,"data-key":d.key,contentEditable:!r||null,suppressContentEditableWarning:!0,className:n,onBlur:this.onBlur,onFocus:this.onFocus,onCompositionEnd:this.onCompositionEnd,onCompositionStart:this.onCompositionStart,onCopy:this.onCopy,onCut:this.onCut,onDragEnd:this.onDragEnd,onDragOver:this.onDragOver,onDragStart:this.onDragStart,onDrop:this.onDrop,onInput:this.onInput,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onPaste:this.onPaste,onSelect:this.onSelect,autoCorrect:t.autoCorrect?"on":"off",spellCheck:l,style:_,role:r?null:s||"textbox",tabIndex:a,"data-gramm":!1}),b,this.props.children)}}]),t}(I.a.Component);Me.propTypes={autoCorrect:L.a.bool.isRequired,children:L.a.any.isRequired,className:L.a.string,editor:L.a.object.isRequired,readOnly:L.a.bool.isRequired,role:L.a.string,spellCheck:L.a.bool.isRequired,style:L.a.object,tabIndex:L.a.number,tagName:L.a.string},Me.defaultProps={style:{},tagName:"div"},ee.forEach(function(e){Me.propTypes[e]=L.a.func.isRequired});var Le={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"},Pe=Le.FRAGMENT,Re=Le.HTML,Be=Le.TEXT,je=Le.FRAGMENT,Fe=Le.HTML,He=Le.NODE,Ue=Le.RICH,ze=Le.TEXT,Ke=/ data-slate-fragment="([^\s"]+)"/,qe=Le.TEXT,We=N()("slate:after"),Ge=N()("slate:before"),Ve=N()("slate:editor"),Ye=function(e){function t(e){te(this,t);var n=ae(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));$e.call(n),n.state={},n.tmp={},n.tmp.updates=0,n.tmp.resolves=0;var r=n.resolvePlugins(e.plugins,e.schema),o=H.Stack.create({plugins:r}),i=H.Schema.create({plugins:r});n.state.schema=i,n.state.stack=o;var a=e.value.change();return o.run("onChange",a,n),n.queueChange(a),n.state.value=a.value,ee.forEach(function(e){n[e]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];n.onEvent.apply(n,[e].concat(r))}}),n}return ie(t,e),ne(t,[{key:"render",value:function(){Ve("render",this);var e=this.stack.map("renderPortal",this.value,this).map(function(e,t){return I.a.createElement(Z.a,{key:t,isOpened:!0},e)}),t=oe({},this.props,{children:e});return this.stack.render("renderEditor",t,this)}},{key:"schema",get:function(){return this.state.schema}},{key:"stack",get:function(){return this.state.stack}},{key:"value",get:function(){return this.state.value}}]),t}(I.a.Component);Ye.propTypes={autoCorrect:L.a.bool,autoFocus:L.a.bool,className:L.a.string,onChange:L.a.func,placeholder:L.a.any,plugins:L.a.array,readOnly:L.a.bool,role:L.a.string,schema:L.a.object,spellCheck:L.a.bool,style:L.a.object,tabIndex:L.a.number,value:P.a.value.isRequired},Ye.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:O,plugins:[],readOnly:!1,schema:{},spellCheck:!0};var $e=function(){var e=this;this.componentWillReceiveProps=function(t){var n=e.schema,r=e.stack;if(e.tmp.updates++,t.plugins!=e.props.plugins||t.schema!=e.props.schema){var o=e.resolvePlugins(t.plugins,t.schema);r=H.Stack.create({plugins:o}),n=H.Schema.create({plugins:o}),e.setState({schema:n,stack:r}),e.tmp.resolves++,e.tmp.resolves>5&&e.tmp.resolves==e.tmp.updates&&F.default.warn("A Slate <Editor> is re-resolving `props.plugins` or `props.schema` on each update, which leads to poor performance. This is often due to passing in a new `schema` or `plugins` prop with each render by declaring them inline in your render function. Do not do this!")}var i=t.value.change();r.run("onChange",i,e),e.queueChange(i),e.setState({value:i.value})},this.componentDidMount=function(){e.flushChange(),e.props.autoFocus&&e.focus()},this.componentDidUpdate=function(){e.flushChange()},this.queueChange=function(t){t.operations.size&&(Ve("queueChange",{change:t}),e.tmp.change=t)},this.flushChange=function(){var t=e.tmp.change;t&&(Ve("flushChange",{change:t}),delete e.tmp.change,e.props.onChange(t))},this.change=function(){var t,n=(t=e.value.change()).call.apply(t,arguments);e.onChange(n)},this.blur=function(){e.change(function(e){return e.blur()})},this.focus=function(){e.change(function(e){return e.focus()})},this.onEvent=function(t,n){e.change(function(r){e.stack.run(t,n,r,e)})},this.onChange=function(t){Ve("onChange",{change:t}),e.stack.run("onChange",t,e);var n=t.value,r=e.props.onChange;n!=e.value&&r(t)},this.resolvePlugins=function(t,n){var r=A(),o=C(),i={schema:n||{}},a=!0,s=!1,u=void 0;try{for(var l,c=le[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value;(function(t){"onChange"==t||("schema"==t||(i[t]=function(){var n;return e.props[t]&&(n=e.props)[t].apply(n,arguments)}))})(f)}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}return[r,i].concat(ue(t||[]),[o])}},Je=!0,Xe=!1,Qe=void 0;try{for(var Ze,et=ee[Symbol.iterator]();!(Je=(Ze=et.next()).done);Je=!0){var tt=Ze.value;Ye.propTypes[tt]=L.a.func}}catch(e){Xe=!0,Qe=e}finally{try{!Je&&et.return&&et.return()}finally{if(Xe)throw Qe}}var nt={Editor:Ye,cloneFragment:y,findDOMNode:u,findDOMRange:c,findNode:b,findRange:h,getEventRange:T,getEventTransfer:_,setEventTransfer:x,AfterPlugin:C,BeforePlugin:A};t.default=nt},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(346),i=n(347),a=n(348),s=n(349),u=n(350);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(43);e.exports=r},function(e,t,n){var r=n(24),o=r(Object,"create");e.exports=o},function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n(370);e.exports=r},function(e,t,n){var r=n(385),o=n(23),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){var r=n(17),o=n(386),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||o;e.exports=c}).call(t,n(29)(e))},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){function r(e){return null!=e&&i(e.length)&&!o(e)}var o=n(93),i=n(99);e.exports=r},function(e,t,n){var r=n(390),o=n(92),i=n(391),a=n(392),s=n(393),u=n(30),l=n(149),c=l(r),f=l(o),p=l(i),d=l(a),h=l(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){function r(e){return a(e)?o(e,!0):i(e)}var o=n(155),i=n(402),a=n(60);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CHILD_OBJECT_INVALID",function(){return r}),n.d(t,"CHILD_REQUIRED",function(){return o}),n.d(t,"CHILD_TYPE_INVALID",function(){return i}),n.d(t,"CHILD_UNKNOWN",function(){return a}),n.d(t,"FIRST_CHILD_OBJECT_INVALID",function(){return s}),n.d(t,"FIRST_CHILD_TYPE_INVALID",function(){return u}),n.d(t,"LAST_CHILD_OBJECT_INVALID",function(){return l}),n.d(t,"LAST_CHILD_TYPE_INVALID",function(){return c}),n.d(t,"NEXT_SIBLING_OBJECT_INVALID",function(){return f}),n.d(t,"NEXT_SIBLING_TYPE_INVALID",function(){return p}),n.d(t,"NODE_DATA_INVALID",function(){return d}),n.d(t,"NODE_IS_VOID_INVALID",function(){return h}),n.d(t,"NODE_MARK_INVALID",function(){return m}),n.d(t,"NODE_OBJECT_INVALID",function(){return g}),n.d(t,"NODE_TEXT_INVALID",function(){return v}),n.d(t,"NODE_TYPE_INVALID",function(){return y}),n.d(t,"PARENT_OBJECT_INVALID",function(){return b}),n.d(t,"PARENT_TYPE_INVALID",function(){return T}),n.d(t,"PREVIOUS_SIBLING_OBJECT_INVALID",function(){return _}),n.d(t,"PREVIOUS_SIBLING_TYPE_INVALID",function(){return E});var r="child_object_invalid",o="child_required",i="child_type_invalid",a="child_unknown",s="first_child_object_invalid",u="first_child_type_invalid",l="last_child_object_invalid",c="last_child_type_invalid",f="next_sibling_object_invalid",p="next_sibling_type_invalid",d="node_data_invalid",h="node_is_void_invalid",m="node_mark_invalid",g="node_object_invalid",v="node_text_invalid",y="node_type_invalid",b="parent_object_invalid",T="parent_type_invalid",_="previous_sibling_object_invalid",E="previous_sibling_type_invalid"},function(e,t,n){function r(e){return"symbol"==typeof e||i(e)&&o(e)==a}var o=n(30),i=n(23),a="[object Symbol]";e.exports=r},function(e,t,n){function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=n(64),i=1/0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){!t||"byKey"in t||(n=t,t=null);var r=a(e,t);return null==n?function(e){return s(r,e)}:s(r,n)}function o(e,t){return r(e,t)}function i(e,t){return r(e,{byKey:!0},t)}function a(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var a in f)r[f[a]]=!1;var s=!0,c=!1,p=void 0;try{for(var d,h=o[Symbol.iterator]();!(s=(d=h.next()).done);s=!0){var m=d.value,g=l(m),v=f[g];1!=i&&v||(n?r.key=g:r.which=u(m)),v&&(r[v]=!0),1==i&&!v&&n&&(r.shiftKey=null)}}catch(e){c=!0,p=e}finally{try{!s&&h.return&&h.return()}finally{if(c)throw p}}return r}function s(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"==n?t.key.toLowerCase():"which"==n?91==r&&93==t.which?91:t.which:t[n])||0!=r)&&o!=r))return!1}return!0}function u(e){return e=l(e),d[e]||e.toUpperCase().charCodeAt(0)}function l(e){return e=e.toLowerCase(),e=p[e]||e}Object.defineProperty(t,"__esModule",{value:!0});for(var c="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),f={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},p={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:c?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},d={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},h=1;h<20;h++)d["f"+h]=111+h;t.default=r,t.isHotkey=r,t.isCodeHotkey=o,t.isKeyHotkey=i,t.parseHotkey=a,t.compareHotkey=s,t.toKeyCode=u,t.toKeyName=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(5),u=(n(0),function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"isInCell",value:function(){return Boolean(this.cellBlock)}},{key:"isInRow",value:function(){return Boolean(this.rowBlock)}},{key:"isInTable",value:function(){return Boolean(this.tableBlock)}},{key:"getWidth",value:function(){return this.table.nodes.get(0).nodes.size}},{key:"getHeight",value:function(){return this.table.nodes.size}},{key:"getRowIndex",value:function(){var e=this.table,t=this.row;return e.nodes.findIndex(function(e){return e===t})}},{key:"getColumnIndex",value:function(){var e=this.row,t=this.cell;return e.nodes.findIndex(function(e){return e===t})}},{key:"isFirstCell",value:function(){return this.isFirstRow()&&this.isFirstColumn()}},{key:"isLastCell",value:function(){return this.isLastRow()&&this.isLastColumn()}},{key:"isFirstRow",value:function(){return 0===this.getRowIndex()}},{key:"isLastRow",value:function(){return this.getRowIndex()===this.getHeight()-1}},{key:"isFirstColumn",value:function(){return 0===this.getColumnIndex()}},{key:"isLastColumn",value:function(){return this.getColumnIndex()===this.getWidth()-1}},{key:"table",get:function(){if(!this.tableBlock)throw new Error("Not in a table");return this.tableBlock}},{key:"row",get:function(){if(!this.rowBlock)throw new Error("Not in a row");return this.rowBlock}},{key:"cell",get:function(){if(!this.cellBlock)throw new Error("Not in a cell");return this.cellBlock}}],[{key:"create",value:function(e,n,r){var o=n.getDescendant(r),i=n.getAncestors(r).push(o);return new t({tableBlock:i.findLast(function(t){return t.type===e.typeTable}),rowBlock:i.findLast(function(t){return t.type===e.typeRow}),cellBlock:i.findLast(function(t){return t.type===e.typeCell})})}}]),t}((0,s.Record)({tableBlock:null,rowBlock:null,cellBlock:null})));t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.decreaseItemDepth=t.increaseItemDepth=t.splitListItem=t.unwrapList=t.wrapInList=void 0;var o=n(508),i=r(o),a=n(513),s=r(a),u=n(514),l=r(u),c=n(515),f=r(c),p=n(516),d=r(p);t.wrapInList=i.default,t.unwrapList=s.default,t.splitListItem=l.default,t.increaseItemDepth=f.default,t.decreaseItemDepth=d.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return o.exec(e).slice(1)};t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),i="/"===a(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}for(var l=[],u=s;u<o.length;u++)l.push("..");return l=l.concat(i.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n(16))},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function o(e){document.body.style.paddingRight=e>0?e+"px":null}function i(){return document.body.clientWidth<window.innerWidth}function a(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function s(){var e=r(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;i()&&o(n+e)}function u(e){H=e}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H;return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}function c(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function f(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,o=void 0,i={};r>0;)r-=1,o=n[r],i[o]=e[o];return i}function p(e){U[e]||("undefined"!==typeof console&&console.error(e),U[e]=!0)}function d(e,t){return function(n,r,o){null!==n[r]&&"undefined"!==typeof n[r]&&p('"'+r+'" property of "'+o+'" has been deprecated.\n'+t);for(var i=arguments.length,a=Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return e.apply(void 0,[n,r,o].concat(a))}}function h(e,t,n){if(!(e[t]instanceof Element))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}function m(e){if(D()(e))return e();if("string"===typeof e&&document){var t=document.querySelector(e);if(null===t&&(t=document.querySelector("#"+e)),null===t)throw new Error("The target '"+e+"' could not be identified in the dom, tip: check spelling");return t}return e}function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e,t){return t={exports:{}},e(t,t.exports),t.exports}function y(e){var t=e.tag,n=e.baseClass,r=e.baseClassActive,o=e.className,i=e.cssModule,a=e.children,s=Z(e,["tag","baseClass","baseClassActive","className","cssModule","children"]),u=f(s,K),p=c(s,K);return x.a.createElement(bt,u,function(e){var s="entered"===e,u=l(S()(o,n,s&&r),i);return x.a.createElement(t,X({className:u},p),a)})}function b(){}function T(e,t){var n=e.className,r=e.cssModule,o=e.tabId,i=e.tag,a=Z(e,["className","cssModule","tabId","tag"]),s=l(S()("tab-pane",n,{active:o===t.activeTabId}),r);return x.a.createElement(i,X({},a,{className:s}))}function _(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,o=e.cssModule,i=e.tag,a=e.color,s=e.isOpen,u=e.toggle,c=e.children,f=e.transition,p=Z(e,["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition"]),d=l(S()(t,"alert","alert-"+a,{"alert-dismissible":u}),o),h=l(S()("close",n),o);return x.a.createElement(y,X({},p,f,{tag:i,className:d,in:s,role:"alert"}),u?x.a.createElement("button",{type:"button",className:h,"aria-label":r,onClick:u},x.a.createElement("span",{"aria-hidden":"true"},"\xd7")):null,c)}function E(e){return co[e]||"collapse"}function k(e){return e.scrollHeight}n.d(t,"a",function(){return Ye}),n.d(t,"b",function(){return Re}),n.d(t,"c",function(){return at}),n.d(t,"d",function(){return pt}),n.d(t,"e",function(){return gt}),n.d(t,"f",function(){return Hn}),n.d(t,"i",function(){return Kn}),n.d(t,"g",function(){return Gn}),n.d(t,"h",function(){return $n}),n.d(t,"j",function(){return Zn});var w=n(1),x=n.n(w),C=n(4),A=n.n(C),O=n(204),S=n.n(O),N=n(552),D=n.n(N),I=n(553),M=n.n(I),L=n(18),P=n.n(L),R=n(554),B=(n.n(R),n(560)),j=n.n(B),F=n(561),H=void 0,U={},z={Fade:150,Collapse:350,Modal:300,Carousel:600},K=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],q={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},W={esc:27,space:32,tab:9,up:38,down:40},G=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],V=(Object.freeze({getScrollbarWidth:r,setScrollbarWidth:o,isBodyOverflowing:i,getOriginalBodyPadding:a,conditionallyUpdateScrollbar:s,setGlobalCssModule:u,mapToCssModules:l,omit:c,pick:f,warnOnce:p,deprecated:d,DOMElement:h,getTarget:m,TransitionTimeouts:z,TransitionPropTypeKeys:K,TransitionStatuses:q,keyCodes:W,PopperPlacements:G}),"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),Y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),J=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Z=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ee=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},te={tag:A.a.oneOfType([A.a.func,A.a.string]),fluid:A.a.bool,className:A.a.string,cssModule:A.a.object},ne={tag:"div"},re=function(e){var t=e.className,n=e.cssModule,r=e.fluid,o=e.tag,i=Z(e,["className","cssModule","fluid","tag"]),a=l(S()(t,r?"container-fluid":"container"),n);return x.a.createElement(o,X({},i,{className:a}))};re.propTypes=te,re.defaultProps=ne;var oe={tag:A.a.oneOfType([A.a.func,A.a.string]),noGutters:A.a.bool,className:A.a.string,cssModule:A.a.object},ie={tag:"div"},ae=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,o=e.tag,i=Z(e,["className","cssModule","noGutters","tag"]),a=l(S()(t,r?"no-gutters":null,"row"),n);return x.a.createElement(o,X({},i,{className:a}))};ae.propTypes=oe,ae.defaultProps=ie;var se=["xs","sm","md","lg","xl"],ue=A.a.oneOfType([A.a.number,A.a.string]),le=A.a.oneOfType([A.a.bool,A.a.number,A.a.string,A.a.shape({size:A.a.oneOfType([A.a.bool,A.a.number,A.a.string]),push:d(ue,'Please use the prop "order"'),pull:d(ue,'Please use the prop "order"'),order:ue,offset:ue})]),ce={tag:A.a.oneOfType([A.a.func,A.a.string]),xs:le,sm:le,md:le,lg:le,xl:le,className:A.a.string,cssModule:A.a.object,widths:A.a.array},fe={tag:"div",widths:se},pe=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},de=function(e){var t=e.className,n=e.cssModule,r=e.widths,o=e.tag,i=Z(e,["className","cssModule","widths","tag"]),a=[];r.forEach(function(t,r){var o=e[t];if(delete i[t],o||""===o){var s=!r;if(M()(o)){var u,c=s?"-":"-"+t+"-",f=pe(s,t,o.size);a.push(l(S()((u={},J(u,f,o.size||""===o.size),J(u,"order"+c+o.order,o.order||0===o.order),J(u,"offset"+c+o.offset,o.offset||0===o.offset),u)),n))}else{var p=pe(s,t,o);a.push(p)}}}),a.length||a.push("col");var s=l(S()(t,a),n);return x.a.createElement(o,X({},i,{className:s}))};de.propTypes=ce,de.defaultProps=fe;var he={light:A.a.bool,dark:A.a.bool,inverse:d(A.a.bool,'Please use the prop "dark"'),full:A.a.bool,fixed:A.a.string,sticky:A.a.string,color:A.a.string,role:A.a.string,tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object,toggleable:d(A.a.oneOfType([A.a.bool,A.a.string]),'Please use the prop "expand"'),expand:A.a.oneOfType([A.a.bool,A.a.string])},me={tag:"nav",expand:!1},ge=function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-"+e)},ve={xs:"sm",sm:"md",md:"lg",lg:"xl"},ye=function(e){return void 0!==e&&"xl"!==e&&(!1===e?"navbar-expand":"navbar-expand-"+(!0===e?"sm":ve[e]||e))},be=function(e){var t,n=e.toggleable,r=e.expand,o=e.className,i=e.cssModule,a=e.light,s=e.dark,u=e.inverse,c=e.fixed,f=e.sticky,p=e.color,d=e.tag,h=Z(e,["toggleable","expand","className","cssModule","light","dark","inverse","fixed","sticky","color","tag"]),m=l(S()(o,"navbar",ge(r)||ye(n),(t={"navbar-light":a,"navbar-dark":u||s},J(t,"bg-"+p,p),J(t,"fixed-"+c,c),J(t,"sticky-"+f,f),t)),i);return x.a.createElement(d,X({},h,{className:m}))};be.propTypes=he,be.defaultProps=me;var Te={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},_e={tag:"a"},Ee=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"navbar-brand"),n);return x.a.createElement(r,X({},o,{className:i}))};Ee.propTypes=Te,Ee.defaultProps=_e;var ke={tag:A.a.oneOfType([A.a.func,A.a.string]),type:A.a.string,className:A.a.string,cssModule:A.a.object,children:A.a.node},we={tag:"button",type:"button"},xe=function(e){var t=e.className,n=e.cssModule,r=e.children,o=e.tag,i=Z(e,["className","cssModule","children","tag"]),a=l(S()(t,"navbar-toggler"),n);return x.a.createElement(o,X({},i,{className:a}),r||x.a.createElement("span",{className:l("navbar-toggler-icon",n)}))};xe.propTypes=ke,xe.defaultProps=we;var Ce={tabs:A.a.bool,pills:A.a.bool,vertical:A.a.oneOfType([A.a.bool,A.a.string]),horizontal:A.a.string,justified:A.a.bool,fill:A.a.bool,navbar:A.a.bool,card:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Ae={tag:"ul",vertical:!1},Oe=function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-"+e+"-column")},Se=function(e){var t=e.className,n=e.cssModule,r=e.tabs,o=e.pills,i=e.vertical,a=e.horizontal,s=e.justified,u=e.fill,c=e.navbar,f=e.card,p=e.tag,d=Z(e,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),h=l(S()(t,c?"navbar-nav":"nav",!!a&&"justify-content-"+a,Oe(i),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":o,"card-header-pills":f&&o,"nav-justified":s,"nav-fill":u}),n);return x.a.createElement(p,X({},d,{className:h}))};Se.propTypes=Ce,Se.defaultProps=Ae;var Ne={tag:A.a.oneOfType([A.a.func,A.a.string]),active:A.a.bool,className:A.a.string,cssModule:A.a.object},De={tag:"li"},Ie=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,i=Z(e,["className","cssModule","active","tag"]),a=l(S()(t,"nav-item",!!r&&"active"),n);return x.a.createElement(o,X({},i,{className:a}))};Ie.propTypes=Ne,Ie.defaultProps=De;var Me={disabled:A.a.bool,dropup:d(A.a.bool,'Please use the prop "direction" with the value "up".'),direction:A.a.oneOf(["up","down","left","right"]),group:A.a.bool,isOpen:A.a.bool,nav:A.a.bool,active:A.a.bool,addonType:A.a.oneOfType([A.a.bool,A.a.oneOf(["prepend","append"])]),size:A.a.string,tag:A.a.string,toggle:A.a.func,children:A.a.node,className:A.a.string,cssModule:A.a.object,inNavbar:A.a.bool},Le={isOpen:!1,direction:"down",nav:!1,active:!1,addonType:!1,inNavbar:!1},Pe={toggle:A.a.func.isRequired,isOpen:A.a.bool.isRequired,direction:A.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:A.a.bool.isRequired},Re=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addEvents=n.addEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.removeEvents=n.removeEvents.bind(n),n.toggle=n.toggle.bind(n),n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{toggle:this.props.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return P.a.findDOMNode(this)}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===W.tab)){var t=this.getContainer();(!t.contains(e.target)||t===e.target||"keyup"===e.type&&e.which!==W.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){if(!(-1===[W.esc,W.up,W.down,W.space].indexOf(e.which)||/button/i.test(e.target.tagName)&&e.which===W.space||/input|textarea/i.test(e.target.tagName))&&(e.preventDefault(),!this.props.disabled)){var t=this.getContainer();if(e.which===W.space&&this.props.isOpen&&t!==e.target&&e.target.click(),e.which===W.esc||!this.props.isOpen)return this.toggle(e),void t.querySelector("[aria-expanded]").focus();var n=l("dropdown-menu",this.props.cssModule),r=l("dropdown-item",this.props.cssModule),o=l("disabled",this.props.cssModule),i=t.querySelectorAll("."+n+" ."+r+":not(."+o+")");if(i.length){for(var a=-1,s=0;s<i.length;s+=1)if(i[s]===e.target){a=s;break}e.which===W.up&&a>0&&(a-=1),e.which===W.down&&a<i.length-1&&(a+=1),a<0&&(a=0),i[a].focus()}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t=c(this.props,["toggle","disabled","inNavbar","direction"]),n=t.className,r=t.cssModule,o=t.dropup,i=t.isOpen,a=t.group,s=t.size,u=t.nav,f=t.active,p=t.addonType,d=Z(t,["className","cssModule","dropup","isOpen","group","size","nav","active","addonType"]),h="down"===this.props.direction&&o?"up":this.props.direction;d.tag=d.tag||(u?"li":"div");var m=l(S()(n,"down"!==h&&"drop"+h,!(!u||!f)&&"active",(e={},J(e,"input-group-"+p,p),J(e,"btn-group",a),J(e,"btn-group-"+s,!!s),J(e,"dropdown",!a&&!p),J(e,"show",i),J(e,"nav-item",u),e)),r);return x.a.createElement(R.Manager,X({},d,{className:m,onKeyDown:this.handleKeyDown}))}}]),t}(x.a.Component);Re.propTypes=Me,Re.defaultProps=Le,Re.childContextTypes=Pe;var Be={tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),disabled:A.a.bool,active:A.a.bool,className:A.a.string,cssModule:A.a.object,onClick:A.a.func,href:A.a.any},je={tag:"a"},Fe=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return Q(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled)return void e.preventDefault();"#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.active,o=e.tag,i=e.innerRef,a=Z(e,["className","cssModule","active","tag","innerRef"]),s=l(S()(t,"nav-link",{disabled:a.disabled,active:r}),n);return x.a.createElement(o,X({},a,{ref:i,onClick:this.onClick,className:s}))}}]),t}(x.a.Component);Fe.propTypes=Be,Fe.defaultProps=je;var He={tag:A.a.string,className:A.a.string,cssModule:A.a.object},Ue={tag:"ol"},ze=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"breadcrumb"),n);return x.a.createElement(r,X({},o,{className:i}))};ze.propTypes=He,ze.defaultProps=Ue;var Ke={tag:A.a.oneOfType([A.a.func,A.a.string]),active:A.a.bool,className:A.a.string,cssModule:A.a.object},qe={tag:"li"},We=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,i=Z(e,["className","cssModule","active","tag"]),a=l(S()(t,!!r&&"active","breadcrumb-item"),n);return x.a.createElement(o,X({},i,{className:a}))};We.propTypes=Ke,We.defaultProps=qe;var Ge={active:A.a.bool,block:A.a.bool,color:A.a.string,disabled:A.a.bool,outline:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),onClick:A.a.func,size:A.a.string,children:A.a.node,className:A.a.string,cssModule:A.a.object},Ve={color:"secondary",tag:"button"},Ye=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return Q(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled)return void e.preventDefault();this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.active,n=e.block,r=e.className,o=e.cssModule,i=e.color,a=e.outline,s=e.size,u=e.tag,c=e.innerRef,f=Z(e,["active","block","className","cssModule","color","outline","size","tag","innerRef"]),p=l(S()(r,"btn","btn"+(a?"-outline":"")+"-"+i,!!s&&"btn-"+s,!!n&&"btn-block",{active:t,disabled:this.props.disabled}),o);return f.href&&"button"===u&&(u="a"),x.a.createElement(u,X({type:"button"===u&&f.onClick?"button":void 0},f,{className:p,ref:c,onClick:this.onClick}))}}]),t}(x.a.Component);Ye.propTypes=Ge,Ye.defaultProps=Ve;var $e={children:A.a.node},Je=function(e){return x.a.createElement(Re,X({group:!0},e))};Je.propTypes=$e;var Xe={tag:A.a.oneOfType([A.a.func,A.a.string]),"aria-label":A.a.string,className:A.a.string,cssModule:A.a.object,role:A.a.string,size:A.a.string,vertical:A.a.bool},Qe={tag:"div",role:"group"},Ze=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.vertical,i=e.tag,a=Z(e,["className","cssModule","size","vertical","tag"]),s=l(S()(t,!!r&&"btn-group-"+r,o?"btn-group-vertical":"btn-group"),n);return x.a.createElement(i,X({},a,{className:s}))};Ze.propTypes=Xe,Ze.defaultProps=Qe;var et={tag:A.a.oneOfType([A.a.func,A.a.string]),"aria-label":A.a.string,className:A.a.string,cssModule:A.a.object,role:A.a.string},tt={tag:"div",role:"toolbar"},nt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"btn-toolbar"),n);return x.a.createElement(r,X({},o,{className:i}))};nt.propTypes=et,nt.defaultProps=tt;var rt={children:A.a.node,active:A.a.bool,disabled:A.a.bool,divider:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),header:A.a.bool,onClick:A.a.func,className:A.a.string,cssModule:A.a.object,toggle:A.a.bool},ot={toggle:A.a.func},it={tag:"button",toggle:!0},at=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n.getTabIndex=n.getTabIndex.bind(n),n}return Q(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled||this.props.header||this.props.divider)return void e.preventDefault();this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e)}},{key:"getTabIndex",value:function(){return this.props.disabled||this.props.header||this.props.divider?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=c(this.props,["toggle"]),n=t.className,r=t.cssModule,o=t.divider,i=t.tag,a=t.header,s=t.active,u=Z(t,["className","cssModule","divider","tag","header","active"]),f=l(S()(n,{disabled:u.disabled,"dropdown-item":!o&&!a,active:s,"dropdown-header":a,"dropdown-divider":o}),r);return"button"===i&&(a?i="h6":o?i="div":u.href&&(i="a")),x.a.createElement(i,X({type:"button"===i&&(u.onClick||this.props.toggle)?"button":void 0},u,{tabIndex:e,className:f,onClick:this.onClick}))}}]),t}(x.a.Component);at.propTypes=rt,at.defaultProps=it,at.contextTypes=ot;var st={tag:A.a.string,children:A.a.node.isRequired,right:A.a.bool,flip:A.a.bool,className:A.a.string,cssModule:A.a.object},ut={tag:"div",flip:!0},lt={isOpen:A.a.bool.isRequired,direction:A.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:A.a.bool.isRequired},ct={flip:{enabled:!1}},ft={up:"top",left:"left",right:"right",down:"bottom"},pt=function(e,t){var n=e.className,r=e.cssModule,o=e.right,i=e.tag,a=e.flip,s=Z(e,["className","cssModule","right","tag","flip"]),u=l(S()(n,"dropdown-menu",{"dropdown-menu-right":o,show:t.isOpen}),r),c=i;if(t.isOpen&&!t.inNavbar){c=R.Popper;var f=ft[t.direction]||"bottom",p=o?"end":"start";s.placement=f+"-"+p,s.component=i,s.modifiers=a?void 0:ct}return x.a.createElement(c,X({tabIndex:"-1",role:"menu"},s,{"aria-hidden":!t.isOpen,className:u}))};pt.propTypes=st,pt.defaultProps=ut,pt.contextTypes=lt;var dt={caret:A.a.bool,color:A.a.string,children:A.a.node,className:A.a.string,cssModule:A.a.object,disabled:A.a.bool,onClick:A.a.func,"aria-haspopup":A.a.bool,split:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),nav:A.a.bool},ht={"aria-haspopup":!0,color:"secondary"},mt={isOpen:A.a.bool.isRequired,toggle:A.a.func.isRequired,inNavbar:A.a.bool.isRequired},gt=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return Q(t,e),$(t,[{key:"onClick",value:function(e){if(this.props.disabled)return void e.preventDefault();this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.color,r=e.cssModule,o=e.caret,i=e.split,a=e.nav,s=e.tag,u=Z(e,["className","color","cssModule","caret","split","nav","tag"]),c=u["aria-label"]||"Toggle Dropdown",f=l(S()(t,{"dropdown-toggle":o||i,"dropdown-toggle-split":i,"nav-link":a}),r),p=u.children||x.a.createElement("span",{className:"sr-only"},c),d=void 0;return a&&!s?(d="a",u.href="#"):s?d=s:(d=Ye,u.color=n,u.cssModule=r),this.context.inNavbar?x.a.createElement(d,X({},u,{className:f,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:p})):x.a.createElement(R.Target,X({},u,{className:f,component:d,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:p}))}}]),t}(x.a.Component);gt.propTypes=dt,gt.defaultProps=ht,gt.contextTypes=mt;var vt=v(function(e,t){function n(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!==typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=n;var r=function(e){return e&&e.__esModule?e:{default:e}}(A.a);t.timeoutsShape=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]),t.classNamesShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,exit:r.default.string,exitActive:r.default.string})])});g(vt);var yt=v(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":V(t))&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":V(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){}t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(A.a),l=n(x.a),c=n(P.a),f=t.UNMOUNTED="unmounted",p=t.EXITED="exited",d=t.ENTERING="entering",h=t.ENTERED="entered",m=t.EXITING="exiting",g=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r)),s=r.transitionGroup,u=s&&!s.isMounting?n.enter:n.appear,l=void 0;return a.nextStatus=null,n.in?u?(l=p,a.nextStatus=d):l=h:l=n.unmountOnExit||n.mountOnEnter?f:p,a.state={status:l},a.nextCallback=null,a}return a(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=this.pendingState||this.state,n=t.status;e.in?(n===f&&this.setState({status:p}),n!==d&&n!==h&&(this.nextStatus=d)):n!==d&&n!==h||(this.nextStatus=m)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!==typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=c.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts();if(!t&&!r)return void this.safeSetState({status:h},function(){n.props.onEntered(e)});this.props.onEnter(e,o),this.safeSetState({status:d},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i.enter,function(){n.safeSetState({status:h},function(){n.props.onEntered(e,o)})})})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:m},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(e)})})})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,function(){n.pendingState=null,t()})},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,o=r(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"===typeof n)return n(e,o);var i=l.default.Children.only(n);return l.default.cloneElement(i,o)},t}(l.default.Component);g.contextTypes={transitionGroup:u.object},g.childContextTypes={transitionGroup:function(){}},g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},g.UNMOUNTED=0,g.EXITED=1,g.ENTERING=2,g.ENTERED=3,g.EXITING=4,t.default=g}),bt=g(yt),Tt=X({},bt.propTypes,{children:A.a.oneOfType([A.a.arrayOf(A.a.node),A.a.node]),tag:A.a.oneOfType([A.a.string,A.a.func]),baseClass:A.a.string,baseClassActive:A.a.string,className:A.a.string,cssModule:A.a.object}),_t=X({},bt.defaultProps,{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:z.Fade,appear:!0,enter:!0,exit:!0,in:!0});y.propTypes=Tt,y.defaultProps=_t;var Et={color:A.a.string,pill:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),children:A.a.node,className:A.a.string,cssModule:A.a.object},kt={color:"secondary",pill:!1,tag:"span"},wt=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.pill,i=e.tag,a=Z(e,["className","cssModule","color","pill","tag"]),s=l(S()(t,"badge","badge-"+r,!!o&&"badge-pill"),n);return a.href&&"span"===i&&(i="a"),x.a.createElement(i,X({},a,{className:s}))};wt.propTypes=Et,wt.defaultProps=kt;var xt={tag:A.a.oneOfType([A.a.func,A.a.string]),inverse:A.a.bool,color:A.a.string,block:d(A.a.bool,'Please use the props "body"'),body:A.a.bool,outline:A.a.bool,className:A.a.string,cssModule:A.a.object},Ct={tag:"div"},At=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.block,i=e.body,a=e.inverse,s=e.outline,u=e.tag,c=Z(e,["className","cssModule","color","block","body","inverse","outline","tag"]),f=l(S()(t,"card",!!a&&"text-white",!(!o&&!i)&&"card-body",!!r&&(s?"border":"bg")+"-"+r),n);return x.a.createElement(u,X({},c,{className:f}))};At.propTypes=xt,At.defaultProps=Ct;var Ot={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},St={tag:"div"},Nt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-group"),n);return x.a.createElement(r,X({},o,{className:i}))};Nt.propTypes=Ot,Nt.defaultProps=St;var Dt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},It={tag:"div"},Mt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-deck"),n);return x.a.createElement(r,X({},o,{className:i}))};Mt.propTypes=Dt,Mt.defaultProps=It;var Lt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Pt={tag:"div"},Rt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-columns"),n);return x.a.createElement(r,X({},o,{className:i}))};Rt.propTypes=Lt,Rt.defaultProps=Pt;var Bt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},jt={tag:"div"},Ft=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-body"),n);return x.a.createElement(r,X({},o,{className:i}))};Ft.propTypes=Bt,Ft.defaultProps=jt;var Ht={tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Ut={tag:"a"},zt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.innerRef,i=Z(e,["className","cssModule","tag","innerRef"]),a=l(S()(t,"card-link"),n);return x.a.createElement(r,X({},i,{ref:o,className:a}))};zt.propTypes=Ht,zt.defaultProps=Ut;var Kt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},qt={tag:"div"},Wt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-footer"),n);return x.a.createElement(r,X({},o,{className:i}))};Wt.propTypes=Kt,Wt.defaultProps=qt;var Gt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Vt={tag:"div"},Yt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-header"),n);return x.a.createElement(r,X({},o,{className:i}))};Yt.propTypes=Gt,Yt.defaultProps=Vt;var $t={tag:A.a.oneOfType([A.a.func,A.a.string]),top:A.a.bool,bottom:A.a.bool,className:A.a.string,cssModule:A.a.object},Jt={tag:"img"},Xt=function(e){var t=e.className,n=e.cssModule,r=e.top,o=e.bottom,i=e.tag,a=Z(e,["className","cssModule","top","bottom","tag"]),s="card-img";r&&(s="card-img-top"),o&&(s="card-img-bottom");var u=l(S()(t,s),n);return x.a.createElement(i,X({},a,{className:u}))};Xt.propTypes=$t,Xt.defaultProps=Jt;var Qt={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Zt={tag:"div"},en=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-img-overlay"),n);return x.a.createElement(r,X({},o,{className:i}))};en.propTypes=Qt,en.defaultProps=Zt;var tn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={startAnimation:!1},n.onEnter=n.onEnter.bind(n),n.onEntering=n.onEntering.bind(n),n.onExit=n.onExit.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return Q(t,e),$(t,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.in,r=t.children,o=t.cssModule,i=t.slide,a=t.tag,s=t.className,u=Z(t,["in","children","cssModule","slide","tag","className"]);return x.a.createElement(bt,X({},u,{enter:i,exit:i,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var n=e.context.direction,i=t===q.ENTERED||t===q.EXITING,u=(t===q.ENTERING||t===q.EXITING)&&e.state.startAnimation&&("right"===n?"carousel-item-left":"carousel-item-right"),c=t===q.ENTERING&&("right"===n?"carousel-item-next":"carousel-item-prev"),f=l(S()(s,"carousel-item",i&&"active",u,c),o);return x.a.createElement(a,{className:f},r)})}}]),t}(x.a.Component);tn.propTypes=X({},bt.propTypes,{tag:A.a.oneOfType([A.a.func,A.a.string]),in:A.a.bool,cssModule:A.a.object,children:A.a.node,slide:A.a.bool,className:A.a.string}),tn.defaultProps=X({},bt.defaultProps,{tag:"div",timeout:z.Carousel,slide:!0}),tn.contextTypes={direction:A.a.string};var nn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyPress=n.handleKeyPress.bind(n),n.renderItems=n.renderItems.bind(n),n.hoverStart=n.hoverStart.bind(n),n.hoverEnd=n.hoverEnd.bind(n),n.state={direction:"right"},n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentWillReceiveProps",value:function(e){this.setInterval(e),this.props.activeIndex+1===e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex-1===e.activeIndex?this.setState({direction:"left"}):this.props.activeIndex>e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex!==e.activeIndex&&this.setState({direction:"left"})}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval(function(){e.next()},parseInt(e.interval,10)))})},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){clearInterval(this.cycleInterval)})},{key:"hoverStart",value:function(){if("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter){var e;(e=this.props).mouseEnter.apply(e,arguments)}}},{key:"hoverEnd",value:function(){if("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave){var e;(e=this.props).mouseLeave.apply(e,arguments)}}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"renderItems",value:function(e,t){var n=this,r=this.props.slide;return x.a.createElement("div",{role:"listbox",className:t},e.map(function(e,t){var o=t===n.props.activeIndex;return x.a.cloneElement(e,{in:o,slide:r})}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.cssModule,r=e.slide,o=e.className,i=l(S()(o,"carousel",r&&"slide"),n),a=l(S()("carousel-inner"),n);if(t.every(function(e){return e.type===tn}))return x.a.createElement("div",{className:i,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(t,a));if(t[0]instanceof Array){var s=t[0],u=t[1],c=t[2];return x.a.createElement("div",{className:i,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(s,a),u,c)}var f=t[0],p=t[1],d=t[2],h=t[3];return x.a.createElement("div",{className:i,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},f,this.renderItems(p,a),d,h)}}]),t}(x.a.Component);nn.propTypes={activeIndex:A.a.number,next:A.a.func.isRequired,previous:A.a.func.isRequired,keyboard:A.a.bool,pause:A.a.oneOf(["hover",!1]),ride:A.a.oneOf(["carousel"]),interval:A.a.oneOfType([A.a.number,A.a.string,A.a.bool]),children:A.a.array,mouseEnter:A.a.func,mouseLeave:A.a.func,slide:A.a.bool,cssModule:A.a.object,className:A.a.string},nn.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0},nn.childContextTypes={direction:A.a.string};var rn=function(e){var t=e.direction,n=e.onClickHandler,r=e.cssModule,o=e.directionText,i=e.className,a=l(S()(i,"carousel-control-"+t),r),s=l(S()("carousel-control-"+t+"-icon"),r),u=l(S()("sr-only"),r);return x.a.createElement("a",{className:a,role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},x.a.createElement("span",{className:s,"aria-hidden":"true"}),x.a.createElement("span",{className:u},o||t))};rn.propTypes={direction:A.a.oneOf(["prev","next"]).isRequired,onClickHandler:A.a.func.isRequired,cssModule:A.a.object,directionText:A.a.string,className:A.a.string};var on=function(e){var t=e.items,n=e.activeIndex,r=e.cssModule,o=e.onClickHandler,i=e.className,a=l(S()(i,"carousel-indicators"),r),s=t.map(function(e,t){var i=l(S()({active:n===t}),r);return x.a.createElement("li",{key:""+(e.key||e.src)+e.caption+e.altText,onClick:function(e){e.preventDefault(),o(t)},className:i})});return x.a.createElement("ol",{className:a},s)};on.propTypes={items:A.a.array.isRequired,activeIndex:A.a.number.isRequired,cssModule:A.a.object,onClickHandler:A.a.func.isRequired,className:A.a.string};var an=function(e){var t=e.captionHeader,n=e.captionText,r=e.cssModule,o=e.className,i=l(S()(o,"carousel-caption","d-none","d-md-block"),r);return x.a.createElement("div",{className:i},x.a.createElement("h3",null,t),x.a.createElement("p",null,n))};an.propTypes={captionHeader:A.a.string,captionText:A.a.string.isRequired,cssModule:A.a.object,className:A.a.string};var sn={items:A.a.array.isRequired,indicators:A.a.bool,controls:A.a.bool,autoPlay:A.a.bool,activeIndex:A.a.number,next:A.a.func,previous:A.a.func,goToIndex:A.a.func},un=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.animating=!1,n.state={activeIndex:0},n.next=n.next.bind(n),n.previous=n.previous.bind(n),n.goToIndex=n.goToIndex.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return Q(t,e),$(t,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.indicators,o=t.controls,i=t.items,a=t.goToIndex,s=Z(t,["autoPlay","indicators","controls","items","goToIndex"]),u=this.state.activeIndex,l=i.map(function(t){return x.a.createElement(tn,{onExiting:e.onExiting,onExited:e.onExited,key:t.src},x.a.createElement("img",{src:t.src,alt:t.altText}),x.a.createElement(an,{captionText:t.caption,captionHeader:t.caption}))});return x.a.createElement(nn,X({activeIndex:u,next:this.next,previous:this.previous,ride:n?"carousel":void 0},s),r&&x.a.createElement(on,{items:i,activeIndex:s.activeIndex||u,onClickHandler:a||this.goToIndex}),l,o&&x.a.createElement(rn,{direction:"prev",directionText:"Previous",onClickHandler:s.previous||this.previous}),o&&x.a.createElement(rn,{direction:"next",directionText:"Next",onClickHandler:s.next||this.next}))}}]),t}(w.Component);un.propTypes=sn,un.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var ln={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},cn={tag:"h6"},fn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-subtitle"),n);return x.a.createElement(r,X({},o,{className:i}))};fn.propTypes=ln,fn.defaultProps=cn;var pn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},dn={tag:"p"},hn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-text"),n);return x.a.createElement(r,X({},o,{className:i}))};hn.propTypes=pn,hn.defaultProps=dn;var mn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},gn={tag:"h5"},vn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"card-title"),n);return x.a.createElement(r,X({},o,{className:i}))};vn.propTypes=mn,vn.defaultProps=gn;var yn={children:A.a.node.isRequired,className:A.a.string,placement:A.a.string,placementPrefix:A.a.string,hideArrow:A.a.bool,tag:A.a.string,isOpen:A.a.bool.isRequired,cssModule:A.a.object,offset:A.a.oneOfType([A.a.string,A.a.number]),fallbackPlacement:A.a.oneOfType([A.a.string,A.a.array]),flip:A.a.bool,container:A.a.oneOfType([A.a.string,A.a.func,h]),target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired,modifiers:A.a.object},bn={placement:"auto",hideArrow:!1,isOpen:!1,offset:0,fallbackPlacement:"flip",flip:!0,container:"body",modifiers:{}},Tn={popperManager:A.a.object.isRequired},_n=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handlePlacementChange=n.handlePlacementChange.bind(n),n.setTargetNode=n.setTargetNode.bind(n),n.getTargetNode=n.getTargetNode.bind(n),n.state={},n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this.setTargetNode,getTargetNode:this.getTargetNode}}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen?this.handleProps():this._element&&this.renderIntoSubtree()}},{key:"componentWillUnmount",value:function(){this.hide()}},{key:"setTargetNode",value:function(e){this.targetNode=e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return m(this.props.container)}},{key:"handlePlacementChange",value:function(e){return this.state.placement!==e.placement&&this.setState({placement:e.placement}),e}},{key:"handleProps",value:function(){"inline"!==this.props.container&&(this.props.isOpen?this.show():this.hide())}},{key:"hide",value:function(){this._element&&(this.getContainerNode().removeChild(this._element),P.a.unmountComponentAtNode(this._element),this._element=null)}},{key:"show",value:function(){this._element=document.createElement("div"),this.getContainerNode().appendChild(this._element),this.renderIntoSubtree(),this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"renderIntoSubtree",value:function(){P.a.unstable_renderSubtreeIntoContainer(this,this.renderChildren(),this._element)}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,r=(e.isOpen,e.flip),o=(e.target,e.offset),i=e.fallbackPlacement,a=e.placementPrefix,s=e.hideArrow,u=e.className,c=e.tag,f=(e.container,e.modifiers),p=Z(e,["cssModule","children","isOpen","flip","target","offset","fallbackPlacement","placementPrefix","hideArrow","className","tag","container","modifiers"]),d=l("arrow",t),h=(this.state.placement||p.placement).split("-")[0],m=l(S()(u,a?a+"-"+h:h),this.props.cssModule),g=X({offset:{offset:o},flip:{enabled:r,behavior:i},update:{enabled:!0,order:950,fn:this.handlePlacementChange}},f);return x.a.createElement(R.Popper,X({modifiers:g},p,{component:c,className:m}),n,!s&&x.a.createElement(R.Arrow,{className:d}))}},{key:"render",value:function(){return this.setTargetNode(m(this.props.target)),"inline"===this.props.container&&this.props.isOpen?this.renderChildren():null}}]),t}(x.a.Component);_n.propTypes=yn,_n.defaultProps=bn,_n.childContextTypes=Tn;var En=function(e,t){return t.popperManager.setTargetNode(m(e.target)),null};En.contextTypes={popperManager:A.a.object.isRequired},En.propTypes={target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired};var kn={placement:A.a.oneOf(G),target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired,container:A.a.oneOfType([A.a.string,A.a.func,h]),isOpen:A.a.bool,disabled:A.a.bool,hideArrow:A.a.bool,className:A.a.string,innerClassName:A.a.string,placementPrefix:A.a.string,cssModule:A.a.object,toggle:A.a.func,delay:A.a.oneOfType([A.a.shape({show:A.a.number,hide:A.a.number}),A.a.number]),modifiers:A.a.object},wn={show:0,hide:0},xn={isOpen:!1,hideArrow:!1,placement:"right",placementPrefix:"bs-popover",delay:wn,toggle:function(){}},Cn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.getRef=n.getRef.bind(n),n.toggle=n.toggle.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return Q(t,e),$(t,[{key:"componentDidMount",value:function(){this._target=m(this.props.target),this.handleProps()}},{key:"componentDidUpdate",value:function(){this.handleProps()}},{key:"componentWillUnmount",value:function(){this.clearShowTimeout(),this.clearHideTimeout(),this.removeTargetEvents()}},{key:"getRef",value:function(e){this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===("undefined"===typeof t?"undefined":V(t))?isNaN(t[e])?wn[e]:t[e]:t}},{key:"handleProps",value:function(){this.props.isOpen?this.show():this.hide()}},{key:"show",value:function(){this.clearHideTimeout(),this.addTargetEvents(),this.props.isOpen||(this.clearShowTimeout(),this._showTimeout=setTimeout(this.toggle,this.getDelay("show")))}},{key:"hide",value:function(){this.clearShowTimeout(),this.removeTargetEvents(),this.props.isOpen&&(this.clearHideTimeout(),this._hideTimeout=setTimeout(this.toggle,this.getDelay("hide")))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){e.target===this._target||this._target.contains(e.target)||e.target===this._popover||this._popover&&this._popover.contains(e.target)||(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&this.toggle(e))}},{key:"addTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=c(this.props,Object.keys(kn)),t=l(S()("popover-inner",this.props.innerClassName),this.props.cssModule),n=l(S()("popover","show",this.props.className),this.props.cssModule);return x.a.createElement(_n,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers},x.a.createElement("div",X({},e,{className:t,ref:this.getRef})))}}]),t}(x.a.Component);Cn.propTypes=kn,Cn.defaultProps=xn;var An={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},On={tag:"h3"},Sn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"popover-header"),n);return x.a.createElement(r,X({},o,{className:i}))};Sn.propTypes=An,Sn.defaultProps=On;var Nn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Dn={tag:"div"},In=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"popover-body"),n);return x.a.createElement(r,X({},o,{className:i}))};In.propTypes=Nn,In.defaultProps=Dn;var Mn={children:A.a.node,bar:A.a.bool,multi:A.a.bool,tag:A.a.string,value:A.a.oneOfType([A.a.string,A.a.number]),max:A.a.oneOfType([A.a.string,A.a.number]),animated:A.a.bool,striped:A.a.bool,color:A.a.string,className:A.a.string,barClassName:A.a.string,cssModule:A.a.object},Ln={tag:"div",value:0,max:100},Pn=function(e){var t=e.children,n=e.className,r=e.barClassName,o=e.cssModule,i=e.value,a=e.max,s=e.animated,u=e.striped,c=e.color,f=e.bar,p=e.multi,d=e.tag,h=Z(e,["children","className","barClassName","cssModule","value","max","animated","striped","color","bar","multi","tag"]),m=j()(i)/j()(a)*100,g=l(S()(n,"progress"),o),v=l(S()("progress-bar",f?n||r:r,s?"progress-bar-animated":null,c?"bg-"+c:null,u||s?"progress-bar-striped":null),o),y=p?t:x.a.createElement("div",{className:v,style:{width:m+"%"},role:"progressbar","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":a,children:t});return f?y:x.a.createElement(d,X({},h,{className:g,children:y}))};Pn.propTypes=Mn,Pn.defaultProps=Ln;var Rn=A.a.shape(y.propTypes),Bn={isOpen:A.a.bool,autoFocus:A.a.bool,centered:A.a.bool,size:A.a.string,toggle:A.a.func,keyboard:A.a.bool,role:A.a.string,labelledBy:A.a.string,backdrop:A.a.oneOfType([A.a.bool,A.a.oneOf(["static"])]),onEnter:A.a.func,onExit:A.a.func,onOpened:A.a.func,onClosed:A.a.func,children:A.a.node,className:A.a.string,wrapClassName:A.a.string,modalClassName:A.a.string,backdropClassName:A.a.string,contentClassName:A.a.string,external:A.a.node,fade:A.a.bool,cssModule:A.a.object,zIndex:A.a.oneOfType([A.a.number,A.a.string]),backdropTransition:Rn,modalTransition:Rn},jn=Object.keys(Bn),Fn={isOpen:!1,autoFocus:!0,centered:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:b,onClosed:b,modalTransition:{timeout:z.Modal},backdropTransition:{mountOnEnter:!0,timeout:z.Fade}},Hn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._element=null,n._originalBodyPadding=null,n.handleBackdropClick=n.handleBackdropClick.bind(n),n.handleEscape=n.handleEscape.bind(n),n.onOpened=n.onOpened.bind(n),n.onClosed=n.onClosed.bind(n),n.state={isOpen:e.isOpen},e.isOpen&&n.init(),n}return Q(t,e),$(t,[{key:"componentDidMount",value:function(){this.props.onEnter&&this.props.onEnter(),this.state.isOpen&&this.props.autoFocus&&this.setFocus(),this._isMounted=!0}},{key:"componentWillReceiveProps",value:function(e){e.isOpen&&!this.props.isOpen&&this.setState({isOpen:e.isOpen})}},{key:"componentWillUpdate",value:function(e,t){t.isOpen&&!this.state.isOpen&&this.init()}},{key:"componentDidUpdate",value:function(e,t){this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus()}},{key:"componentWillUnmount",value:function(){this.props.onExit&&this.props.onExit(),this.state.isOpen&&this.destroy(),this._isMounted=!1}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||b)(e,t)}},{key:"onClosed",value:function(e){this.props.onClosed(),(this.props.modalTransition.onExited||b)(e),this.destroy(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"handleBackdropClick",value:function(e){if(e.stopPropagation(),this.props.isOpen&&!0===this.props.backdrop){var t=this._dialog;e.target&&!t.contains(e.target)&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleEscape",value:function(e){this.props.isOpen&&this.props.keyboard&&27===e.keyCode&&this.props.toggle&&this.props.toggle(e)}},{key:"init",value:function(){this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._originalBodyPadding=a(),s(),document.body.appendChild(this._element),document.body.className=S()(document.body.className,l("modal-open",this.props.cssModule))}},{key:"destroy",value:function(){document.body.removeChild(this._element),this._element=null;var e=l("modal-open",this.props.cssModule),t=new RegExp("(^| )"+e+"( |$)");document.body.className=document.body.className.replace(t," ").trim(),o(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var e,t=this,n=c(this.props,jn);return x.a.createElement("div",X({},n,{className:l(S()("modal-dialog",this.props.className,(e={},J(e,"modal-"+this.props.size,this.props.size),J(e,"modal-dialog-centered",this.props.centered),e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),x.a.createElement("div",{className:l(S()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){if(this.state.isOpen){var e=this.props,t=e.wrapClassName,n=e.modalClassName,r=e.backdropClassName,o=e.cssModule,i=e.isOpen,a=e.backdrop,s=e.role,u=e.labelledBy,c=e.external,f={onClick:this.handleBackdropClick,onKeyUp:this.handleEscape,style:{display:"block"},"aria-labelledby":u,role:s,tabIndex:"-1"},p=this.props.fade,d=X({},y.defaultProps,this.props.modalTransition,{baseClass:p?this.props.modalTransition.baseClass:"",timeout:p?this.props.modalTransition.timeout:0}),h=X({},y.defaultProps,this.props.backdropTransition,{baseClass:p?this.props.backdropTransition.baseClass:"",timeout:p?this.props.backdropTransition.timeout:0});return x.a.createElement(F.a,{node:this._element},x.a.createElement("div",{className:l(t)},x.a.createElement(y,X({},f,d,{in:i,onEntered:this.onOpened,onExited:this.onClosed,cssModule:o,className:l(S()("modal",n),o)}),c,this.renderModalDialog()),x.a.createElement(y,X({},h,{in:i&&!!a,cssModule:o,className:l(S()("modal-backdrop",r),o)}))))}return null}}]),t}(x.a.Component);Hn.propTypes=Bn,Hn.defaultProps=Fn;var Un={tag:A.a.oneOfType([A.a.func,A.a.string]),wrapTag:A.a.oneOfType([A.a.func,A.a.string]),toggle:A.a.func,className:A.a.string,cssModule:A.a.object,children:A.a.node,closeAriaLabel:A.a.string},zn={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"},Kn=function(e){var t=void 0,n=e.className,r=e.cssModule,o=e.children,i=e.toggle,a=e.tag,s=e.wrapTag,u=e.closeAriaLabel,c=Z(e,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel"]),f=l(S()(n,"modal-header"),r);return i&&(t=x.a.createElement("button",{type:"button",onClick:i,className:l("close",r),"aria-label":u},x.a.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),x.a.createElement(s,X({},c,{className:f}),x.a.createElement(a,{className:l("modal-title",r)},o),t)};Kn.propTypes=Un,Kn.defaultProps=zn;var qn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Wn={tag:"div"},Gn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"modal-body"),n);return x.a.createElement(r,X({},o,{className:i}))};Gn.propTypes=qn,Gn.defaultProps=Wn;var Vn={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},Yn={tag:"div"},$n=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"modal-footer"),n);return x.a.createElement(r,X({},o,{className:i}))};$n.propTypes=Vn,$n.defaultProps=Yn;var Jn={placement:A.a.oneOf(G),target:A.a.oneOfType([A.a.string,A.a.func,h]).isRequired,container:A.a.oneOfType([A.a.string,A.a.func,h]),isOpen:A.a.bool,disabled:A.a.bool,hideArrow:A.a.bool,className:A.a.string,innerClassName:A.a.string,cssModule:A.a.object,toggle:A.a.func,autohide:A.a.bool,placementPrefix:A.a.string,delay:A.a.oneOfType([A.a.shape({show:A.a.number,hide:A.a.number}),A.a.number]),modifiers:A.a.object},Xn={show:0,hide:250},Qn={isOpen:!1,hideArrow:!1,placement:"top",placementPrefix:"bs-tooltip",delay:Xn,autohide:!0,toggle:function(){}},Zn=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.toggle=n.toggle.bind(n),n.onMouseOverTooltip=n.onMouseOverTooltip.bind(n),n.onMouseLeaveTooltip=n.onMouseLeaveTooltip.bind(n),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(n),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n}return Q(t,e),$(t,[{key:"componentDidMount",value:function(){this._target=m(this.props.target),this.addTargetEvents()}},{key:"componentWillUnmount",value:function(){this.removeTargetEvents()}},{key:"onMouseOverTooltip",value:function(){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show,this.getDelay("show"))}},{key:"onMouseLeaveTooltip",value:function(){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide"))}},{key:"onMouseOverTooltipContent",value:function(){this.props.autohide||this._hideTimeout&&this.clearHideTimeout()}},{key:"onMouseLeaveTooltipContent",value:function(){this.props.autohide||(this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide,this.getDelay("hide")))}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===("undefined"===typeof t?"undefined":V(t))?isNaN(t[e])?Xn[e]:t[e]:t}},{key:"show",value:function(){this.props.isOpen||(this.clearShowTimeout(),this.toggle())}},{key:"hide",value:function(){this.props.isOpen&&(this.clearHideTimeout(),this.toggle())}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){(e.target===this._target||this._target.contains(e.target))&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen||this.toggle())}},{key:"addTargetEvents",value:function(){var e=this;this._target.addEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.addEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;this._target.removeEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.removeEventListener("mouseout",this.onMouseLeaveTooltip,!0),["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle()}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=c(this.props,Object.keys(Jn)),t=l(S()("tooltip-inner",this.props.innerClassName),this.props.cssModule),n=l(S()("tooltip","show",this.props.className),this.props.cssModule);return x.a.createElement(_n,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers},x.a.createElement("div",X({},e,{className:t,onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent})))}}]),t}(x.a.Component);Zn.propTypes=Jn,Zn.defaultProps=Qn;var er={className:A.a.string,cssModule:A.a.object,size:A.a.string,bordered:A.a.bool,striped:A.a.bool,inverse:d(A.a.bool,'Please use the prop "dark"'),dark:A.a.bool,hover:A.a.bool,responsive:A.a.oneOfType([A.a.bool,A.a.string]),tag:A.a.oneOfType([A.a.func,A.a.string]),responsiveTag:A.a.oneOfType([A.a.func,A.a.string])},tr={tag:"table",responsiveTag:"div"},nr=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.bordered,i=e.striped,a=e.inverse,s=e.dark,u=e.hover,c=e.responsive,f=e.tag,p=e.responsiveTag,d=Z(e,["className","cssModule","size","bordered","striped","inverse","dark","hover","responsive","tag","responsiveTag"]),h=l(S()(t,"table",!!r&&"table-"+r,!!o&&"table-bordered",!!i&&"table-striped",!(!s&&!a)&&"table-dark",!!u&&"table-hover"),n),m=x.a.createElement(f,X({},d,{className:h}));if(c){var g=!0===c?"table-responsive":"table-responsive-"+c;return x.a.createElement(p,{className:g},m)}return m};nr.propTypes=er,nr.defaultProps=tr;var rr={tag:A.a.oneOfType([A.a.func,A.a.string]),flush:A.a.bool,className:A.a.string,cssModule:A.a.object},or={tag:"ul"},ir=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.flush,i=Z(e,["className","cssModule","tag","flush"]),a=l(S()(t,"list-group",!!o&&"list-group-flush"),n);return x.a.createElement(r,X({},i,{className:a}))};ir.propTypes=rr,ir.defaultProps=or;var ar={children:A.a.node,inline:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},sr={tag:"form"},ur=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.tag,i=e.innerRef,a=Z(e,["className","cssModule","inline","tag","innerRef"]),s=l(S()(t,!!r&&"form-inline"),n);return x.a.createElement(o,X({},a,{ref:i,className:s}))};ur.propTypes=ar,ur.defaultProps=sr;var lr={children:A.a.node,tag:A.a.string,className:A.a.string,cssModule:A.a.object,valid:A.a.bool},cr={tag:"div",valid:void 0},fr=function(e){var t=e.className,n=e.cssModule,r=e.valid,o=e.tag,i=Z(e,["className","cssModule","valid","tag"]),a=l(S()(t,r?"valid-feedback":"invalid-feedback"),n);return x.a.createElement(o,X({},i,{className:a}))};fr.propTypes=lr,fr.defaultProps=cr;var pr={children:A.a.node,row:A.a.bool,check:A.a.bool,inline:A.a.bool,disabled:A.a.bool,tag:A.a.string,className:A.a.string,cssModule:A.a.object},dr={tag:"div"},hr=function(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,i=e.check,a=e.inline,s=e.tag,u=Z(e,["className","cssModule","row","disabled","check","inline","tag"]),c=l(S()(t,!!r&&"row",i?"form-check":"form-group",!(!i||!a)&&"form-check-inline",!(!i||!o)&&"disabled"),n);return x.a.createElement(s,X({},u,{className:c}))};hr.propTypes=pr,hr.defaultProps=dr;var mr={children:A.a.node,inline:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),color:A.a.string,className:A.a.string,cssModule:A.a.object},gr={tag:"small",color:"muted"},vr=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.color,i=e.tag,a=Z(e,["className","cssModule","inline","color","tag"]),s=l(S()(t,!r&&"form-text",!!o&&"text-"+o),n);return x.a.createElement(i,X({},a,{className:s}))};vr.propTypes=mr,vr.defaultProps=gr;var yr={children:A.a.node,type:A.a.string,size:A.a.string,bsSize:A.a.string,state:d(A.a.string,'Please use the props "valid" and "invalid" to indicate the state.'),valid:A.a.bool,invalid:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),innerRef:A.a.oneOfType([A.a.func,A.a.string]),static:d(A.a.bool,'Please use the prop "plaintext"'),plaintext:A.a.bool,addon:A.a.bool,className:A.a.string,cssModule:A.a.object},br={type:"text"},Tr=function(e){function t(){return Y(this,t),ee(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Q(t,e),$(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,o=e.bsSize,i=e.state,a=e.valid,s=e.invalid,u=e.tag,c=e.addon,f=e.static,d=e.plaintext,h=e.innerRef,m=Z(e,["className","cssModule","type","bsSize","state","valid","invalid","tag","addon","static","plaintext","innerRef"]),g=["radio","checkbox"].indexOf(r)>-1,v=new RegExp("\\D","g"),y="file"===r,b="textarea"===r,T="select"===r,_=u||(T||b?r:"input"),E="form-control";d||f?(E+="-plaintext",_=u||"p"):y?E+="-file":g&&(E=c?null:"form-check-input"),i&&"undefined"===typeof a&&"undefined"===typeof s&&("danger"===i?s=!0:"success"===i&&(a=!0)),m.size&&v.test(m.size)&&(p('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=m.size,delete m.size);var k=l(S()(t,s&&"is-invalid",a&&"is-valid",!!o&&"form-control-"+o,E),n);return"input"!==_&&"string"===typeof u||(m.type=r),x.a.createElement(_,X({},m,{ref:h,className:k}))}}]),t}(x.a.Component);Tr.propTypes=yr,Tr.defaultProps=br;var _r={tag:A.a.oneOfType([A.a.func,A.a.string]),size:A.a.string,className:A.a.string,cssModule:A.a.object},Er={tag:"div"},kr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.size,i=Z(e,["className","cssModule","tag","size"]),a=l(S()(t,"input-group",o?"input-group-"+o:null),n);return x.a.createElement(r,X({},i,{className:a}))};kr.propTypes=_r,kr.defaultProps=Er;var wr={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object},xr={tag:"span"},Cr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"input-group-text"),n);return x.a.createElement(r,X({},o,{className:i}))};Cr.propTypes=wr,Cr.defaultProps=xr;var Ar={tag:A.a.oneOfType([A.a.func,A.a.string]),addonType:A.a.oneOf(["prepend","append"]).isRequired,children:A.a.node,className:A.a.string,cssModule:A.a.object},Or={tag:"div"},Sr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.addonType,i=e.children,a=Z(e,["className","cssModule","tag","addonType","children"]),s=l(S()(t,"input-group-"+o),n);return"string"===typeof i?x.a.createElement(r,X({},a,{className:s}),x.a.createElement(Cr,{children:i})):x.a.createElement(r,X({},a,{className:s,children:i}))};Sr.propTypes=Ar,Sr.defaultProps=Or;var Nr={tag:A.a.oneOfType([A.a.func,A.a.string]),addonType:A.a.oneOf(["prepend","append"]).isRequired,children:A.a.node,groupClassName:A.a.string,groupAttributes:A.a.object,className:A.a.string,cssModule:A.a.object};(function(e){p('The "InputGroupButton" component has been deprecated.\nPlease use component "InputGroupAddon".');var t=e.children,n=e.groupClassName,r=e.groupAttributes,o=Z(e,["children","groupClassName","groupAttributes"]);if("string"===typeof t){var i=o.cssModule,a=o.tag,s=o.addonType,u=Z(o,["cssModule","tag","addonType"]),l=X({},r,{cssModule:i,tag:a,addonType:s});return x.a.createElement(Sr,X({},l,{className:n}),x.a.createElement(Ye,X({},u,{children:t})))}return x.a.createElement(Sr,X({},e,{children:t}))}).propTypes=Nr;var Dr={addonType:A.a.oneOf(["prepend","append"]).isRequired,children:A.a.node};(function(e){return x.a.createElement(Re,e)}).propTypes=Dr;var Ir=["xs","sm","md","lg","xl"],Mr=A.a.oneOfType([A.a.number,A.a.string]),Lr=A.a.oneOfType([A.a.string,A.a.number,A.a.shape({size:Mr,push:d(Mr,'Please use the prop "order"'),pull:d(Mr,'Please use the prop "order"'),order:Mr,offset:Mr})]),Pr={children:A.a.node,hidden:A.a.bool,check:A.a.bool,size:A.a.string,for:A.a.string,tag:A.a.string,className:A.a.string,cssModule:A.a.object,xs:Lr,sm:Lr,md:Lr,lg:Lr,xl:Lr,widths:A.a.array},Rr={tag:"label",widths:Ir},Br=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},jr=function(e){var t=e.className,n=e.cssModule,r=e.hidden,o=e.widths,i=e.tag,a=e.check,s=e.size,u=e.for,c=Z(e,["className","cssModule","hidden","widths","tag","check","size","for"]),f=[];o.forEach(function(t,r){var o=e[t];if(delete c[t],o||""===o){var i=!r,a=void 0;if(M()(o)){var s,u=i?"-":"-"+t+"-";a=Br(i,t,o.size),f.push(l(S()((s={},J(s,a,o.size||""===o.size),J(s,"order"+u+o.order,o.order||0===o.order),J(s,"offset"+u+o.offset,o.offset||0===o.offset),s))),n)}else a=Br(i,t,o),f.push(a)}});var p=l(S()(t,!!r&&"sr-only",!!a&&"form-check-label",!!s&&"col-form-label-"+s,f,!!f.length&&"col-form-label"),n);return x.a.createElement(i,X({htmlFor:u},c,{className:p}))};jr.propTypes=Pr,jr.defaultProps=Rr;var Fr={body:A.a.bool,bottom:A.a.bool,children:A.a.node,className:A.a.string,cssModule:A.a.object,heading:A.a.bool,left:A.a.bool,list:A.a.bool,middle:A.a.bool,object:A.a.bool,right:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string]),top:A.a.bool};(function(e){var t=e.body,n=e.bottom,r=e.className,o=e.cssModule,i=e.heading,a=e.left,s=e.list,u=e.middle,c=e.object,f=e.right,p=e.tag,d=e.top,h=Z(e,["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"]),m=void 0;m=i?"h4":a||f?"a":c?"img":s?"ul":"div";var g=p||m,v=l(S()(r,{"media-body":t,"media-heading":i,"media-left":a,"media-right":f,"media-top":d,"media-bottom":n,"media-middle":u,"media-object":c,"media-list":s,media:!t&&!i&&!a&&!f&&!d&&!n&&!u&&!c&&!s}),o);return x.a.createElement(g,X({},h,{className:v}))}).propTypes=Fr;var Hr={children:A.a.node,className:A.a.string,cssModule:A.a.object,size:A.a.string,tag:A.a.oneOfType([A.a.func,A.a.string])},Ur={tag:"ul"},zr=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.tag,i=Z(e,["className","cssModule","size","tag"]),a=l(S()(t,"pagination",J({},"pagination-"+r,!!r)),n);return x.a.createElement(o,X({},i,{className:a}))};zr.propTypes=Hr,zr.defaultProps=Ur;var Kr={active:A.a.bool,children:A.a.node,className:A.a.string,cssModule:A.a.object,disabled:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string])},qr={tag:"li"},Wr=function(e){var t=e.active,n=e.className,r=e.cssModule,o=e.disabled,i=e.tag,a=Z(e,["active","className","cssModule","disabled","tag"]),s=l(S()(n,"page-item",{active:t,disabled:o}),r);return x.a.createElement(i,X({},a,{className:s}))};Wr.propTypes=Kr,Wr.defaultProps=qr;var Gr={"aria-label":A.a.string,children:A.a.node,className:A.a.string,cssModule:A.a.object,next:A.a.bool,previous:A.a.bool,tag:A.a.oneOfType([A.a.func,A.a.string])},Vr={tag:"a"},Yr=function(e){var t=e.className,n=e.cssModule,r=e.next,o=e.previous,i=e.tag,a=Z(e,["className","cssModule","next","previous","tag"]),s=l(S()(t,"page-link"),n),u=void 0;o?u="Previous":r&&(u="Next");var c=e["aria-label"]||u,f=void 0;o?f="\xab":r&&(f="\xbb");var p=e.children;return p&&Array.isArray(p)&&0===p.length&&(p=null),(o||r)&&(p=[x.a.createElement("span",{"aria-hidden":"true",key:"caret"},p||f),x.a.createElement("span",{className:"sr-only",key:"sr"},c)]),x.a.createElement(i,X({},a,{className:s,"aria-label":c}),p)};Yr.propTypes=Gr,Yr.defaultProps=Vr;var $r={tag:A.a.oneOfType([A.a.func,A.a.string]),activeTab:A.a.any,className:A.a.string,cssModule:A.a.object},Jr={tag:"div"},Xr={activeTabId:A.a.any},Qr=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeTab:n.props.activeTab},n}return Q(t,e),$(t,[{key:"getChildContext",value:function(){return{activeTabId:this.state.activeTab}}},{key:"componentWillReceiveProps",value:function(e){this.state.activeTab!==e.activeTab&&this.setState({activeTab:e.activeTab})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.tag,o=c(this.props,Object.keys($r)),i=l(S()("tab-content",t),n);return x.a.createElement(r,X({},o,{className:i}))}}]),t}(w.Component);Qr.propTypes=$r,Qr.defaultProps=Jr,Qr.childContextTypes=Xr;var Zr={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.string,cssModule:A.a.object,tabId:A.a.any},eo={tag:"div"},to={activeTabId:A.a.any};T.propTypes=Zr,T.defaultProps=eo,T.contextTypes=to;var no={tag:A.a.oneOfType([A.a.func,A.a.string]),fluid:A.a.bool,className:A.a.string,cssModule:A.a.object},ro={tag:"div"},oo=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.fluid,i=Z(e,["className","cssModule","tag","fluid"]),a=l(S()(t,"jumbotron",!!o&&"jumbotron-fluid"),n);return x.a.createElement(r,X({},i,{className:a}))};oo.propTypes=no,oo.defaultProps=ro;var io={children:A.a.node,className:A.a.string,closeClassName:A.a.string,closeAriaLabel:A.a.string,cssModule:A.a.object,color:A.a.string,isOpen:A.a.bool,toggle:A.a.func,tag:A.a.oneOfType([A.a.func,A.a.string]),transition:A.a.shape(y.propTypes)},ao={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",transition:X({},y.defaultProps,{unmountOnExit:!0})};_.propTypes=io,_.defaultProps=ao;var so,uo=X({},bt.propTypes,{isOpen:A.a.bool,children:A.a.oneOfType([A.a.arrayOf(A.a.node),A.a.node]),tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.node,navbar:A.a.bool,cssModule:A.a.object}),lo=X({},bt.defaultProps,{isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:z.Collapse}),co=(so={},J(so,q.ENTERING,"collapsing"),J(so,q.ENTERED,"collapse show"),J(so,q.EXITING,"collapsing"),J(so,q.EXITED,"collapse"),so),fo=function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={height:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){n[e]=n[e].bind(n)}),n}return Q(t,e),$(t,[{key:"onEntering",value:function(e,t){this.setState({height:k(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({height:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({height:k(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){e.offsetHeight;this.setState({height:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({height:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.isOpen,r=e.className,o=e.navbar,i=e.cssModule,a=e.children,s=Z(e,["tag","isOpen","className","navbar","cssModule","children"]),u=this.state.height,p=f(s,K),d=c(s,K);return x.a.createElement(bt,X({},p,{in:n,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(e){var n=E(e),s=l(S()(r,n,o&&"navbar-collapse"),i),c=null===u?null:{height:u};return x.a.createElement(t,X({},d,{style:X({},d.style,c),className:s}),a)})}}]),t}(w.Component);fo.propTypes=uo,fo.defaultProps=lo;var po={tag:A.a.oneOfType([A.a.func,A.a.string]),active:A.a.bool,disabled:A.a.bool,color:A.a.string,action:A.a.bool,className:A.a.any,cssModule:A.a.object},ho={tag:"li"},mo=function(e){e.preventDefault()},go=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.active,i=e.disabled,a=e.action,s=e.color,u=Z(e,["className","cssModule","tag","active","disabled","action","color"]),c=l(S()(t,!!o&&"active",!!i&&"disabled",!!a&&"list-group-item-action",!!s&&"list-group-item-"+s,"list-group-item"),n);return i&&(u.onClick=mo),x.a.createElement(r,X({},u,{className:c}))};go.propTypes=po,go.defaultProps=ho;var vo={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.any,cssModule:A.a.object},yo={tag:"h5"},bo=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"list-group-item-heading"),n);return x.a.createElement(r,X({},o,{className:i}))};bo.propTypes=vo,bo.defaultProps=yo;var To={tag:A.a.oneOfType([A.a.func,A.a.string]),className:A.a.any,cssModule:A.a.object},_o={tag:"p"},Eo=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Z(e,["className","cssModule","tag"]),i=l(S()(t,"list-group-item-text"),n);return x.a.createElement(r,X({},o,{className:i}))};Eo.propTypes=To,Eo.defaultProps=_o;(function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!0},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(_,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])})(w.Component),function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(Je,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(w.Component),function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(Re,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(w.Component),function(e){function t(e){Y(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Q(t,e),$(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return x.a.createElement(Zn,X({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(w.Component)},function(e,t,n){"use strict";function r(e,t){var n,r,i={};t||(t={});for(r in S)n=t[r],i[r]=null===n||void 0===n?S[r]:n;return(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start),o(e,i)}function o(e,t){function n(){return{line:be,column:ye,offset:ge+(de.offset||0)}}function r(e,t){var r=n();r.column+=t,r.offset+=t,le.call(pe,W[e],r,e)}function o(t){return e.charAt(t)}function c(){Te&&(_e.push(Te),se&&se.call(ce,Te,{start:te,end:n()}),Te=A)}var f,S,z,K,q,G,V,Y,$,J,X,Q,Z,ee,te,ne,re,oe,ie=t.additional,ae=t.nonTerminated,se=t.text,ue=t.reference,le=t.warning,ce=t.textContext,fe=t.referenceContext,pe=t.warningContext,de=t.position,he=t.indent||[],me=e.length,ge=0,ve=-1,ye=de.column||1,be=de.line||1,Te=A,_e=[];for(te=n(),V=le?r:m,ge--,me++;++ge<me;)if(K===_&&(ye=he[ve]||1),(K=o(ge))!==y)K===_&&(be++,ve++,ye=0),K?(Te+=K,ye++):c();else{if((G=o(ge+1))===O||G===_||G===v||G===w||G===x||G===y||G===A||ie&&G===ie){Te+=K,ye++;continue}for(Q=ge+1,X=Q,oe=Q,G!==b?Z=N:(oe=++X,G=o(oe),G===E||G===k?(Z=D,oe=++X):Z=I),f=A,J=A,z=A,ee=L[Z],oe--;++oe<me&&(G=o(oe),ee(G));)z+=G,Z===N&&d.call(u,z)&&(f=z,J=u[z]);S=o(oe)===T,S&&(oe++,Z===N&&d.call(s,z)&&(f=z,J=s[z])),re=1+oe-Q,(S||ae)&&(z?Z===N?(S&&!J?V(F,1):(f!==z&&(oe=X+f.length,re=1+oe-X,S=!1),S||(Y=f?P:B,t.attribute?(G=o(oe),G===C?(V(Y,re),J=null):p(G)?J=null:V(Y,re)):V(Y,re))),q=J):(S||V(R,re),q=parseInt(z,M[Z]),i(q)?(V(U,re),q=g):q in l?(V(H,re),q=l[q]):($=A,a(q)&&V(H,re),q>65535&&(q-=65536,$+=h(q>>>10|55296),q=56320|1023&q),q=$+h(q))):Z!==N&&V(j,re)),q?(c(),te=n(),ge=oe-1,ye+=oe-Q+1,_e.push(q),ne=n(),ne.offset++,ue&&ue.call(fe,q,{start:te,end:ne},e.slice(Q-1,oe)),te=ne):(z=e.slice(Q-1,oe),Te+=z,ye+=z.length,ge=oe-1)}return _e.join(A)}function i(e){return e>=55296&&e<=57343||e>1114111}function a(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}var s=n(590),u=n(212),l=n(591),c=n(45),f=n(213),p=n(214);e.exports=r;var d={}.hasOwnProperty,h=String.fromCharCode,m=Function.prototype,g="\ufffd",v="\f",y="&",b="#",T=";",_="\n",E="x",k="X",w=" ",x="<",C="=",A="",O="\t",S={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},N="named",D="hexadecimal",I="decimal",M={};M[D]=16,M[I]=10;var L={};L[N]=p,L[I]=c,L[D]=f;var P=1,R=2,B=3,j=4,F=5,H=6,U=7,z="Numeric character references",K=" must be terminated by a semicolon",q=" cannot be empty",W={};W[P]="Named character references"+K,W[R]=z+K,W[B]="Named character references"+q,W[j]=z+q,W[F]="Named character references must be known",W[H]=z+" cannot be disallowed",W[U]=z+" cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";function r(e){var t,n,r=i[e];if(r)return r;for(r=i[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function o(e,t,n){var i,a,s,u,l,c="";for("string"!==typeof t&&(n=t,t=o.defaultChars),"undefined"===typeof n&&(n=!0),l=r(t),i=0,a=e.length;i<a;i++)if(s=e.charCodeAt(i),n&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))c+=e.slice(i,i+3),i+=2;else if(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(u=e.charCodeAt(i+1))>=56320&&u<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}var i={};o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},function(e,t,n){"use strict";function r(e){return e===y.SPACE||e===y.LINE_FEED||e===y.TABULATION||e===y.FORM_FEED}function o(e){return e>=y.DIGIT_0&&e<=y.DIGIT_9}function i(e){return e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_Z}function a(e){return e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_Z}function s(e){return a(e)||i(e)}function u(e){return s(e)||o(e)}function l(e,t){return o(e)||t&&(e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_F||e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_F)}function c(e){return e>=55296&&e<=57343||e>1114111}function f(e){return e+32}function p(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function d(e){return String.fromCharCode(f(e))}function h(e,t){for(var n=v[++e],r=++e,o=r+n-1;r<=o;){var i=r+o>>>1,a=v[i];if(a<t)r=i+1;else{if(!(a>t))return v[i+n];o=i-1}}return-1}var m=n(672),g=n(74),v=n(673),y=g.CODE_POINTS,b=g.CODE_POINT_SEQUENCES,T={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},_="DATA_STATE",E=e.exports=function(){this.preprocessor=new m,this.tokenQueue=[],this.allowCDATA=!1,this.state=_,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};E.CHARACTER_TOKEN="CHARACTER_TOKEN",E.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",E.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",E.START_TAG_TOKEN="START_TAG_TOKEN",E.END_TAG_TOKEN="END_TAG_TOKEN",E.COMMENT_TOKEN="COMMENT_TOKEN",E.DOCTYPE_TOKEN="DOCTYPE_TOKEN",E.EOF_TOKEN="EOF_TOKEN",E.HIBERNATION_TOKEN="HIBERNATION_TOKEN",E.MODE={DATA:_,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},E.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},E.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},E.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},E.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},E.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},E.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:E.HIBERNATION_TOKEN}),!0}return!1},E.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},E.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},E.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},E.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},E.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var r=0,o=!0,i=e.length,a=0,s=t,u=void 0;a<i;a++){if(a>0&&(s=this._consume(),r++),s===y.EOF){o=!1;break}if(u=e[a],s!==u&&(n||s!==f(u))){o=!1;break}}return o||this._unconsumeSeveral(r),o},E.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},E.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==b.SCRIPT_STRING.length)return!1;for(var e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==b.SCRIPT_STRING[e])return!1;return!0},E.prototype._createStartTagToken=function(){this.currentToken={type:E.START_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}},E.prototype._createEndTagToken=function(){this.currentToken={type:E.END_TAG_TOKEN,tagName:"",attrs:[]}},E.prototype._createCommentToken=function(){this.currentToken={type:E.COMMENT_TOKEN,data:""}},E.prototype._createDoctypeToken=function(e){this.currentToken={type:E.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}},E.prototype._createCharacterToken=function(e,t){this.currentCharacterToken={type:e,chars:t}},E.prototype._createAttr=function(e){this.currentAttr={name:e,value:""}},E.prototype._isDuplicateAttr=function(){return null!==E.getTokenAttr(this.currentToken,this.currentAttr.name)},E.prototype._leaveAttrName=function(e){this.state=e,this._isDuplicateAttr()||this.currentToken.attrs.push(this.currentAttr)},E.prototype._leaveAttrValue=function(e){this.state=e},E.prototype._isAppropriateEndTagToken=function(){return this.lastStartTagName===this.currentToken.tagName},E.prototype._emitCurrentToken=function(){this._emitCurrentCharacterToken(),this.currentToken.type===E.START_TAG_TOKEN&&(this.lastStartTagName=this.currentToken.tagName),this.tokenQueue.push(this.currentToken),this.currentToken=null},E.prototype._emitCurrentCharacterToken=function(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)},E.prototype._emitEOFToken=function(){this._emitCurrentCharacterToken(),this.tokenQueue.push({type:E.EOF_TOKEN})},E.prototype._appendCharToCurrentCharacterToken=function(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)},E.prototype._emitCodePoint=function(e){var t=E.CHARACTER_TOKEN;r(e)?t=E.WHITESPACE_CHARACTER_TOKEN:e===y.NULL&&(t=E.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,p(e))},E.prototype._emitSeveralCodePoints=function(e){for(var t=0;t<e.length;t++)this._emitCodePoint(e[t])},E.prototype._emitChar=function(e){this._appendCharToCurrentCharacterToken(E.CHARACTER_TOKEN,e)},E.prototype._consumeNumericEntity=function(e){var t="",n=void 0;do{t+=p(this._consume()),n=this._lookahead()}while(n!==y.EOF&&l(n,e));this._lookahead()===y.SEMICOLON&&this._consume();var r=parseInt(t,e?16:10),o=T[r];return o||(c(r)?y.REPLACEMENT_CHARACTER:r)},E.prototype._consumeNamedEntity=function(e){for(var t=null,n=0,r=null,o=0,i=!1,a=0;a>-1;){var s=v[a],l=s<7;if(l&&1&s&&(t=2&s?[v[++a],v[++a]]:[v[++a]],n=o,r===y.SEMICOLON)){i=!0;break}if(r=this._consume(),o++,r===y.EOF)break;a=l?4&s?h(a,r):-1:r===s?++a:-1}if(t){if(!i&&(this._unconsumeSeveral(o-n),e)){var c=this._lookahead();if(c===y.EQUALS_SIGN||u(c))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(o),null},E.prototype._consumeCharacterReference=function(e,t){if(r(e)||e===y.GREATER_THAN_SIGN||e===y.AMPERSAND||e===this.additionalAllowedCp||e===y.EOF)return this._unconsume(),null;if(e===y.NUMBER_SIGN){var n=!1,o=this._lookahead();return o!==y.LATIN_SMALL_X&&o!==y.LATIN_CAPITAL_X||(this._consume(),n=!0),(o=this._lookahead())!==y.EOF&&l(o,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var k=E.prototype;k[_]=function(e){this.preprocessor.dropParsedChunk(),e===y.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":e===y.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===y.NULL?this._emitCodePoint(e):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.CHARACTER_REFERENCE_IN_DATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=_)},k.RCDATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":e===y.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state="RCDATA_STATE")},k.RAWTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.SCRIPT_DATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.PLAINTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._emitEOFToken():this._emitCodePoint(e)},k.TAG_OPEN_STATE=function(e){e===y.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===y.SOLIDUS?this.state="END_TAG_OPEN_STATE":s(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===y.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(_))},k.END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===y.GREATER_THAN_SIGN?this.state=_:e===y.EOF?(this._reconsumeInState(_),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE")},k.TAG_NAME_STATE=function(e){r(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===y.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):i(e)?this.currentToken.tagName+=d(e):e===y.NULL?this.currentToken.tagName+=g.REPLACEMENT_CHARACTER:e===y.EOF?this._reconsumeInState(_):this.currentToken.tagName+=p(e)},k.RCDATA_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"))},k.RCDATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"))},k.RCDATA_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this.state=_,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}},k.RAWTEXT_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"))},k.RAWTEXT_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"))},k.RAWTEXT_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=_)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}},k.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===y.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))},k.SCRIPT_DATA_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"))},k.SCRIPT_DATA_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=_)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}},k.SCRIPT_DATA_ESCAPE_START_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},k.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},k.SCRIPT_DATA_ESCAPED_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._reconsumeInState(_):this._emitCodePoint(e)},k.SCRIPT_DATA_ESCAPED_DASH_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===y.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(e){e===y.HYPHEN_MINUS?this._emitChar("-"):e===y.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===y.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===y.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):s(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(e){s(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},k.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(e){if(i(e))this.currentToken.tagName+=d(e),this.tempBuff.push(e);else if(a(e))this.currentToken.tagName+=p(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(r(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===y.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===y.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=_)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}},k.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(e){r(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):i(e)?(this.tempBuff.push(f(e)),this._emitCodePoint(e)):a(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")},k.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===y.NULL?this._emitChar(g.REPLACEMENT_CHARACTER):e===y.EOF?this._reconsumeInState(_):this._emitCodePoint(e)},k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(e){e===y.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===y.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===y.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(e){e===y.HYPHEN_MINUS?this._emitChar("-"):e===y.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===y.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===y.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(g.REPLACEMENT_CHARACTER)):e===y.EOF?this._reconsumeInState(_):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))},k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===y.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},k.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(e){r(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):i(e)?(this.tempBuff.push(f(e)),this._emitCodePoint(e)):a(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},k.BEFORE_ATTRIBUTE_NAME_STATE=function(e){r(e)||(e===y.SOLIDUS||e===y.GREATER_THAN_SIGN||e===y.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===y.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},k.ATTRIBUTE_NAME_STATE=function(e){r(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN||e===y.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===y.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):i(e)?this.currentAttr.name+=d(e):e===y.QUOTATION_MARK||e===y.APOSTROPHE||e===y.LESS_THAN_SIGN?this.currentAttr.name+=p(e):e===y.NULL?this.currentAttr.name+=g.REPLACEMENT_CHARACTER:this.currentAttr.name+=p(e)},k.AFTER_ATTRIBUTE_NAME_STATE=function(e){r(e)||(e===y.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===y.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):e===y.EOF?this._reconsumeInState(_):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},k.BEFORE_ATTRIBUTE_VALUE_STATE=function(e){r(e)||(e===y.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===y.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))},k.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(e){e===y.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===y.AMPERSAND?(this.additionalAllowedCp=y.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===y.NULL?this.currentAttr.value+=g.REPLACEMENT_CHARACTER:e===y.EOF?this._reconsumeInState(_):this.currentAttr.value+=p(e)},k.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(e){e===y.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===y.AMPERSAND?(this.additionalAllowedCp=y.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===y.NULL?this.currentAttr.value+=g.REPLACEMENT_CHARACTER:e===y.EOF?this._reconsumeInState(_):this.currentAttr.value+=p(e)},k.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(e){r(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===y.AMPERSAND?(this.additionalAllowedCp=y.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===y.GREATER_THAN_SIGN?(this._leaveAttrValue(_),this._emitCurrentToken()):e===y.NULL?this.currentAttr.value+=g.REPLACEMENT_CHARACTER:e===y.QUOTATION_MARK||e===y.APOSTROPHE||e===y.LESS_THAN_SIGN||e===y.EQUALS_SIGN||e===y.GRAVE_ACCENT?this.currentAttr.value+=p(e):e===y.EOF?this._reconsumeInState(_):this.currentAttr.value+=p(e)},k.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n<t.length;n++)this.currentAttr.value+=p(t[n]);else this.currentAttr.value+="&";this.state=this.returnState}},k.AFTER_ATTRIBUTE_VALUE_QUOTED_STATE=function(e){r(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===y.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===y.GREATER_THAN_SIGN?(this._leaveAttrValue(_),this._emitCurrentToken()):e===y.EOF?this._reconsumeInState(_):this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE")},k.SELF_CLOSING_START_TAG_STATE=function(e){e===y.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=_,this._emitCurrentToken()):e===y.EOF?this._reconsumeInState(_):this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE")},k.BOGUS_COMMENT_STATE=function(){this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE_CONTINUATION")},k.BOGUS_COMMENT_STATE_CONTINUATION=function(e){for(;;){if(e===y.GREATER_THAN_SIGN){this.state=_;break}if(e===y.EOF){this._reconsumeInState(_);break}if(this.currentToken.data+=e===y.NULL?g.REPLACEMENT_CHARACTER:p(e),this._hibernationSnapshot(),e=this._consume(),this._ensureHibernation())return}this._emitCurrentToken()},k.MARKUP_DECLARATION_OPEN_STATE=function(e){var t=this._consumeSubsequentIfMatch(b.DASH_DASH_STRING,e,!0),n=!t&&this._consumeSubsequentIfMatch(b.DOCTYPE_STRING,e,!1),r=!t&&!n&&this.allowCDATA&&this._consumeSubsequentIfMatch(b.CDATA_START_STRING,e,!0);this._ensureHibernation()||(t?(this._createCommentToken(),this.state="COMMENT_START_STATE"):n?this.state="DOCTYPE_STATE":r?this.state="CDATA_SECTION_STATE":this._reconsumeInState("BOGUS_COMMENT_STATE"))},k.COMMENT_START_STATE=function(e){e===y.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===y.NULL?(this.currentToken.data+=g.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):e===y.EOF?(this._emitCurrentToken(),this._reconsumeInState(_)):(this.currentToken.data+=p(e),this.state="COMMENT_STATE")},k.COMMENT_START_DASH_STATE=function(e){e===y.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===y.NULL?(this.currentToken.data+="-",this.currentToken.data+=g.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):e===y.EOF?(this._emitCurrentToken(),this._reconsumeInState(_)):(this.currentToken.data+="-",this.currentToken.data+=p(e),this.state="COMMENT_STATE")},k.COMMENT_STATE=function(e){e===y.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===y.NULL?this.currentToken.data+=g.REPLACEMENT_CHARACTER:e===y.EOF?(this._emitCurrentToken(),this._reconsumeInState(_)):this.currentToken.data+=p(e)},k.COMMENT_END_DASH_STATE=function(e){e===y.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===y.NULL?(this.currentToken.data+="-",this.currentToken.data+=g.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===y.EOF?(this._emitCurrentToken(),this._reconsumeInState(_)):(this.currentToken.data+="-",this.currentToken.data+=p(e),this.state="COMMENT_STATE")},k.COMMENT_END_STATE=function(e){e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):e===y.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===y.HYPHEN_MINUS?this.currentToken.data+="-":e===y.NULL?(this.currentToken.data+="--",this.currentToken.data+=g.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===y.EOF?(this._reconsumeInState(_),this._emitCurrentToken()):(this.currentToken.data+="--",this.currentToken.data+=p(e),this.state="COMMENT_STATE")},k.COMMENT_END_BANG_STATE=function(e){e===y.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===y.GREATER_THAN_SIGN?(this.state=_,this._emitCurrentToken()):e===y.NULL?(this.currentToken.data+="--!",this.currentToken.data+=g.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===y.EOF?(this._emitCurrentToken(),this._reconsumeInState(_)):(this.currentToken.data+="--!",this.currentToken.data+=p(e),this.state="COMMENT_STATE")},k.DOCTYPE_STATE=function(e){r(e)||(e===y.GREATER_THAN_SIGN?(this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=_):e===y.EOF?(this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(_)):(this._createDoctypeToken(""),this._reconsumeInState("DOCTYPE_NAME_STATE")))},k.DOCTYPE_NAME_STATE=function(e){r(e)||e===y.GREATER_THAN_SIGN||e===y.EOF?this._reconsumeInState("AFTER_DOCTYPE_NAME_STATE"):i(e)?this.currentToken.name+=d(e):e===y.NULL?this.currentToken.name+=g.REPLACEMENT_CHARACTER:this.currentToken.name+=p(e)},k.AFTER_DOCTYPE_NAME_STATE=function(e){if(!r(e))if(e===y.GREATER_THAN_SIGN)this.state=_,this._emitCurrentToken();else{var t=this._consumeSubsequentIfMatch(b.PUBLIC_STRING,e,!1),n=!t&&this._consumeSubsequentIfMatch(b.SYSTEM_STRING,e,!1);this._ensureHibernation()||(t?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":n?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":(this.currentToken.forceQuirks=!0,this.state="BOGUS_DOCTYPE_STATE"))}},k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE=function(e){r(e)||(e===y.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===y.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):(this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))},k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE=function(e){e===y.QUOTATION_MARK?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===y.NULL?this.currentToken.publicId+=g.REPLACEMENT_CHARACTER:e===y.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=_):e===y.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(_)):this.currentToken.publicId+=p(e)},k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE=function(e){e===y.APOSTROPHE?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===y.NULL?this.currentToken.publicId+=g.REPLACEMENT_CHARACTER:e===y.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=_):e===y.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(_)):this.currentToken.publicId+=p(e)},k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE=function(e){r(e)||(e===y.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=_):e===y.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===y.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):(this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))},k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE=function(e){r(e)||(e===y.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===y.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):(this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))},k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE=function(e){e===y.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===y.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=_):e===y.NULL?this.currentToken.systemId+=g.REPLACEMENT_CHARACTER:e===y.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(_)):this.currentToken.systemId+=p(e)},k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE=function(e){e===y.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===y.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=_):e===y.NULL?this.currentToken.systemId+=g.REPLACEMENT_CHARACTER:e===y.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(_)):this.currentToken.systemId+=p(e)},k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE=function(e){r(e)||(e===y.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=_):e===y.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(_)):this.state="BOGUS_DOCTYPE_STATE")},k.BOGUS_DOCTYPE_STATE=function(e){e===y.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=_):e===y.EOF&&(this._emitCurrentToken(),this._reconsumeInState(_))},k.CDATA_SECTION_STATE=function(e){for(;;){if(e===y.EOF){this._reconsumeInState(_);break}var t=this._consumeSubsequentIfMatch(b.CDATA_END_STRING,e,!0);if(this._ensureHibernation())break;if(t){this.state=_;break}if(this._emitCodePoint(e),this._hibernationSnapshot(),e=this._consume(),this._ensureHibernation())break}}},function(e,t,n){"use strict";t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],CDATA_END_STRING:[93,93,62],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]}},function(e,t,n){"use strict";(e.exports=function(e){var t={},n=this._getOverriddenMethods(this,t);Object.keys(n).forEach(function(r){"function"===typeof n[r]&&(t[r]=e[r],e[r]=n[r])})}).prototype._getOverriddenMethods=function(){throw new Error("Not implemented")}},function(e,t,n){(function(e,r){function o(e,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),u(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"\x1b["+o.colors[n][0]+"m"+e+"\x1b["+o.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,n,r){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=u(e,o,r)),o}var i=l(e,n);if(i)return i;var a=Object.keys(n),m=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(n);if(0===a.length){if(C(n)){var g=n.name?": "+n.name:"";return e.stylize("[Function"+g+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return c(n)}var v="",y=!1,T=["{","}"];if(h(n)&&(y=!0,T=["[","]"]),C(n)){v=" [Function"+(n.name?": "+n.name:"")+"]"}if(E(n)&&(v=" "+RegExp.prototype.toString.call(n)),w(n)&&(v=" "+Date.prototype.toUTCString.call(n)),x(n)&&(v=" "+c(n)),0===a.length&&(!y||0==n.length))return T[0]+v+T[1];if(r<0)return E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var _;return _=y?f(e,n,r,m,a):a.map(function(t){return p(e,n,r,m,t,y)}),e.seen.pop(),d(_,v,T)}function l(e,t){if(_(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)D(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))}),i}function p(e,t,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),D(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?u(e,l.value,null):u(e,l.value,n-1),s.indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),_(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function g(e){return null===e}function v(e){return null==e}function y(e){return"number"===typeof e}function b(e){return"string"===typeof e}function T(e){return"symbol"===typeof e}function _(e){return void 0===e}function E(e){return k(e)&&"[object RegExp]"===O(e)}function k(e){return"object"===typeof e&&null!==e}function w(e){return k(e)&&"[object Date]"===O(e)}function x(e){return k(e)&&("[object Error]"===O(e)||e instanceof Error)}function C(e){return"function"===typeof e}function A(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function O(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}function N(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(e).replace(I,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])g(s)||!k(s)?a+=" "+s:a+=" "+o(s);return a},t.deprecate=function(n,o){function i(){if(!a){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),a=!0}return n.apply(this,arguments)}if(_(e.process))return function(){return t.deprecate(n,o).apply(this,arguments)};if(!0===r.noDeprecation)return n;var a=!1;return i};var M,L={};t.debuglog=function(e){if(_(M)&&(M=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).NODE_DEBUG||""),e=e.toUpperCase(),!L[e])if(new RegExp("\\b"+e+"\\b","i").test(M)){var n=r.pid;L[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else L[e]=function(){};return L[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=v,t.isNumber=y,t.isString=b,t.isSymbol=T,t.isUndefined=_,t.isRegExp=E,t.isObject=k,t.isDate=w,t.isError=x,t.isFunction=C,t.isPrimitive=A,t.isBuffer=n(678);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=n(679),t._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,n(3),n(16))},function(e,t,n){"use strict";function r(e){var t=i(e);return f[c[t]||t]}function o(e,t){return(e&t)===t}function i(e){return e.toLowerCase()}e.exports=r;var a,s,u,l={abbr:null,accept:256,acceptCharset:128,accessKey:128,action:null,allowFullScreen:9,allowTransparency:1,alt:null,as:null,async:8,autoComplete:128,autoFocus:8,autoPlay:8,capture:9,cellPadding:null,cellSpacing:null,challenge:1,charSet:1,checked:10,cite:null,className:129,cols:49,colSpan:null,command:null,content:null,contentEditable:null,contextMenu:1,controls:10,controlsList:128,coords:272,crossOrigin:null,data:null,dateTime:1,default:8,defer:8,dir:null,dirName:null,disabled:9,download:64,draggable:null,dropzone:128,encType:null,form:1,formAction:1,formEncType:1,formMethod:1,formNoValidate:8,formTarget:1,frameBorder:1,headers:128,height:49,hidden:9,high:16,href:null,hrefLang:null,htmlFor:128,httpEquiv:128,id:2,inputMode:1,is:1,isMap:8,keyParams:1,keyType:1,kind:null,label:null,lang:null,list:1,loop:10,low:16,manifest:1,marginHeight:16,marginWidth:16,max:null,maxLength:49,media:1,mediaGroup:null,menu:null,method:null,min:null,minLength:49,multiple:10,muted:10,name:null,nonce:null,noValidate:8,open:8,optimum:16,pattern:null,ping:128,placeholder:null,playsInline:8,poster:null,preload:null,profile:null,radioGroup:null,readOnly:10,referrerPolicy:null,rel:129,required:8,reversed:8,role:1,rows:49,rowSpan:48,sandbox:128,scope:null,scoped:8,scrolling:null,seamless:9,selected:10,shape:null,size:49,sizes:129,slot:null,sortable:8,sorted:128,span:48,spellCheck:null,src:null,srcDoc:2,srcLang:null,srcSet:257,start:16,step:null,style:null,summary:null,tabIndex:16,target:null,title:null,translate:null,type:null,typeMustMatch:8,useMap:null,value:2,volume:48,width:17,wmode:1,wrap:null,autoCapitalize:null,autoCorrect:null,autoSave:null,itemProp:129,itemScope:9,itemType:129,itemID:1,itemRef:129,property:null,results:null,security:1,unselectable:1,xmlLang:1,xmlBase:1},c={xmlbase:"xml:base",xmllang:"xml:lang",classname:"class",htmlfor:"for",httpequiv:"http-equiv",acceptcharset:"accept-charset"},f={};r.all=f;for(a in l)s=i(a),s=c[s]||s,u=l[a],f[s]={name:s,propertyName:a,mustUseAttribute:o(u,1),mustUseProperty:o(u,2),boolean:o(u,8),overloadedBoolean:o(u,64),numeric:o(u,16),positiveNumeric:o(u,48),commaSeparated:o(u,256),spaceSeparated:o(u,128)}},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)o.appendChild(t[i]);return o}function o(e,t,n,o){var i=r(e,t,n,o);return i.setAttribute("role","presentation"),i}function i(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function a(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function u(t,n){for(var r=t.split(" "),o=0;o<r.length;o++)r[o]&&!e(r[o]).test(n)&&(n+=" "+r[o]);return n}function l(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function f(e,t,n,r,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,a=o||0;;){var s=e.indexOf("\t",i);if(s<0||s>=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}function p(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function d(e,t,n){for(var r=0,o=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,o+=n-o%n,r=i+1,o>=t)return r}}function h(e){for(;Ya.length<=e;)Ya.push(m(Ya)+" ");return Ya[e]}function m(e){return e[e.length-1]}function g(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function v(e,t,n){for(var r=0,o=n(t);r<e.length&&n(e[r])<=o;)r++;e.splice(r,0,t)}function y(){}function b(e,t){var n;return Object.create?n=Object.create(e):(y.prototype=e,n=new y),t&&c(t,n),n}function T(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||$a.test(e))}function _(e,t){return t?!!(t.source.indexOf("\\w")>-1&&T(e))||t.test(e):T(e)}function E(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Ja.test(e)}function w(e,t,n){for(;(n<0?t>0:t<e.length)&&k(e.charAt(t));)t+=n;return t}function x(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function C(e,t,n){var i=this;this.input=n,i.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=o("div",null,"CodeMirror-code"),i.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=r("div",null,"CodeMirror-cursors"),i.measure=r("div",null,"CodeMirror-measure"),i.lineMeasure=r("div",null,"CodeMirror-measure"),i.lineSpace=o("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var a=o("div",[i.lineSpace],"CodeMirror-lines");i.mover=r("div",[a],null,"position: relative"),i.sizer=r("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=r("div",null,null,"position: absolute; height: "+Ka+"px; width: 1px;"),i.gutters=r("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=r("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=r("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),ba&&Ta<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),_a||ma&&Na||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,n.init(i)}function A(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t<i){n=o;break}t-=i}return n.lines[t]}function O(e,t,n){var r=[],o=t.line;return e.iter(t.line,n.line+1,function(e){var i=e.text;o==n.line&&(i=i.slice(0,n.ch)),o==t.line&&(i=i.slice(t.ch)),r.push(i),++o}),r}function S(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function N(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function D(e){if(null==e.parent)return null;for(var t=e.parent,n=p(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)n+=r.children[o].chunkSize();return n+t.first}function I(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],i=o.height;if(t<i){e=o;continue e}t-=i,n+=o.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],u=s.height;if(t<u)break;t-=u}return n+a}function M(e,t){return t>=e.first&&t<e.first+e.size}function L(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function P(e,t,n){if(void 0===n&&(n=null),!(this instanceof P))return new P(e,t,n);this.line=e,this.ch=t,this.sticky=n}function R(e,t){return e.line-t.line||e.ch-t.ch}function B(e,t){return e.sticky==t.sticky&&0==R(e,t)}function j(e){return P(e.line,e.ch)}function F(e,t){return R(e,t)<0?t:e}function H(e,t){return R(e,t)<0?e:t}function U(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function z(e,t){if(t.line<e.first)return P(e.first,0);var n=e.first+e.size-1;return t.line>n?P(n,A(e,n).text.length):K(t,A(e,t.line).text.length)}function K(e,t){var n=e.ch;return null==n||n>t?P(e.line,t):n<0?P(e.line,0):e}function q(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=z(e,t[r]);return n}function W(){Xa=!0}function G(){Qa=!0}function V(e,t,n){this.marker=e,this.from=t,this.to=n}function Y(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function $(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function J(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function X(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker,s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t);if(s||i.from==t&&"bookmark"==a.type&&(!n||!i.marker.insertLeft)){var u=null==i.to||(a.inclusiveRight?i.to>=t:i.to>t);(r||(r=[])).push(new V(a,i.from,u?null:i.to))}}return r}function Q(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker,s=null==i.to||(a.inclusiveRight?i.to>=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var u=null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t);(r||(r=[])).push(new V(a,u?null:i.from-t,null==i.to?null:i.to-t))}}return r}function Z(e,t){if(t.full)return null;var n=M(e,t.from.line)&&A(e,t.from.line).markedSpans,r=M(e,t.to.line)&&A(e,t.to.line).markedSpans;if(!n&&!r)return null;var o=t.from.ch,i=t.to.ch,a=0==R(t.from,t.to),s=X(n,o,a),u=Q(r,i,a),l=1==t.text.length,c=m(t.text).length+(l?o:0);if(s)for(var f=0;f<s.length;++f){var p=s[f];if(null==p.to){var d=Y(u,p.marker);d?l&&(p.to=null==d.to?null:d.to+c):p.to=o}}if(u)for(var h=0;h<u.length;++h){var g=u[h];if(null!=g.to&&(g.to+=c),null==g.from){var v=Y(s,g.marker);v||(g.from=c,l&&(s||(s=[])).push(g))}else g.from+=c,l&&(s||(s=[])).push(g)}s&&(s=ee(s)),u&&u!=s&&(u=ee(u));var y=[s];if(!l){var b,T=t.text.length-2;if(T>0&&s)for(var _=0;_<s.length;++_)null==s[_].to&&(b||(b=[])).push(new V(s[_].marker,null,null));for(var E=0;E<T;++E)y.push(b);y.push(u)}return y}function ee(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function te(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=p(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var o=[{from:t,to:n}],i=0;i<r.length;++i)for(var a=r[i],s=a.find(0),u=0;u<o.length;++u){var l=o[u];if(!(R(l.to,s.from)<0||R(l.from,s.to)>0)){var c=[u,1],f=R(l.from,s.from),d=R(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:l.to}),o.splice.apply(o,c),u+=c.length-3}}return o}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function re(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function oe(e){return e.inclusiveLeft?-1:0}function ie(e){return e.inclusiveRight?1:0}function ae(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),o=t.find(),i=R(r.from,o.from)||oe(e)-oe(t);if(i)return-i;var a=R(r.to,o.to)||ie(e)-ie(t);return a||t.id-e.id}function se(e,t){var n,r=Qa&&e.markedSpans;if(r)for(var o=void 0,i=0;i<r.length;++i)o=r[i],o.marker.collapsed&&null==(t?o.from:o.to)&&(!n||ae(n,o.marker)<0)&&(n=o.marker);return n}function ue(e){return se(e,!0)}function le(e){return se(e,!1)}function ce(e,t){var n,r=Qa&&e.markedSpans;if(r)for(var o=0;o<r.length;++o){var i=r[o];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!n||ae(n,i.marker)<0)&&(n=i.marker)}return n}function fe(e,t,n,r,o){var i=A(e,t),a=Qa&&i.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var l=u.marker.find(0),c=R(l.from,n)||oe(u.marker)-oe(o),f=R(l.to,r)||ie(u.marker)-ie(o);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?R(l.to,n)>=0:R(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?R(l.from,r)<=0:R(l.from,r)<0)))return!0}}}function pe(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function de(e){for(var t;t=le(e);)e=t.find(1,!0).line;return e}function he(e){for(var t,n;t=le(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function me(e,t){var n=A(e,t),r=pe(n);return n==r?t:D(r)}function ge(e,t){if(t>e.lastLine())return t;var n,r=A(e,t);if(!ve(e,r))return t;for(;n=le(r);)r=n.find(1,!0).line;return D(r)+1}function ve(e,t){var n=Qa&&t.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)if(r=n[o],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&ye(e,t,r))return!0}}function ye(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ye(e,r.line,Y(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var o=void 0,i=0;i<t.markedSpans.length;++i)if(o=t.markedSpans[i],o.marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&ye(e,t,o))return!0}function be(e){e=pe(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var o=n.lines[r];if(o==e)break;t+=o.height}for(var i=n.parent;i;n=i,i=n.parent)for(var a=0;a<i.children.length;++a){var s=i.children[a];if(s==n)break;t+=s.height}return t}function Te(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=ue(r);){var o=t.find(0,!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=e;t=le(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,r=i.to.line,n+=r.text.length-i.to.ch}return n}function _e(e){var t=e.display,n=e.doc;t.maxLine=A(n,n.first),t.maxLineLength=Te(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Te(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function Ee(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;i<e.length;++i){var a=e[i];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}function ke(e,t,n){var r;Za=null;for(var o=0;o<e.length;++o){var i=e[o];if(i.from<t&&i.to>t)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:Za=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:Za=o)}return null!=r?r:Za}function we(e,t){var n=e.order;return null==n&&(n=e.order=es(e.text,t)),n}function xe(e,t){return e._handlers&&e._handlers[t]||ts}function Ce(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,o=r&&r[t];if(o){var i=p(o,n);i>-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function Ae(e,t){var n=xe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,r)}function Oe(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,n||t.type,e,t),Le(t)||t.codemirrorIgnore}function Se(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==p(n,t[r])&&n.push(t[r])}function Ne(e,t){return xe(e,t).length>0}function De(e){e.prototype.on=function(e,t){ns(this,e,t)},e.prototype.off=function(e,t){Ce(this,e,t)}}function Ie(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Le(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Pe(e){Ie(e),Me(e)}function Re(e){return e.target||e.srcElement}function Be(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Da&&e.ctrlKey&&1==t&&(t=3),t}function je(e){if(null==Ua){var t=r("span","\u200b");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ua=t.offsetWidth<=1&&t.offsetHeight>2&&!(ba&&Ta<8))}var o=Ua?r("span","\u200b"):r("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}function Fe(e){if(null!=za)return za;var r=n(e,document.createTextNode("A\u062eA")),o=Pa(r,0,1).getBoundingClientRect(),i=Pa(r,1,2).getBoundingClientRect();return t(e),!(!o||o.left==o.right)&&(za=i.right-o.right<3)}function He(e){if(null!=ss)return ss;var t=n(e,r("span","x")),o=t.getBoundingClientRect(),i=Pa(t,0,1).getBoundingClientRect();return ss=Math.abs(o.left-i.left)>1}function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),us[e]=t}function ze(e,t){ls[e]=t}function Ke(e){if("string"==typeof e&&ls.hasOwnProperty(e))e=ls[e];else if(e&&"string"==typeof e.name&&ls.hasOwnProperty(e.name)){var t=ls[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=Ke(t);var n=us[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(cs.hasOwnProperty(t.name)){var o=cs[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function We(e,t){c(t,cs.hasOwnProperty(e)?cs[e]:cs[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}function $e(e,t,n,r){var o=[e.state.modeGen],i={};rt(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},i,r);for(var a=n.state,s=0;s<e.state.overlays.length;++s)!function(r){n.baseTokens=o;var s=e.state.overlays[r],u=1,l=0;n.state=!0,rt(e,t.text,s.mode,n,function(e,t){for(var n=u;l<e;){var r=o[u];r>e&&o.splice(u,1,e,o[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"overlay "+t}},i),n.state=a,n.baseTokens=null,n.baseTokenPos=1}(s);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function Je(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Xe(e,D(t)),o=t.text.length>e.options.maxHighlightLength&&Ge(e.doc.mode,r.state),i=$e(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Xe(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new ds(r,!0,t);var i=ot(e,t,n),a=i>r.first&&A(r,i-1).stateAfter,s=a?ds.fromSaved(r,a,i):new ds(r,Ye(r.mode),i);return r.iter(i,t,function(n){Qe(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&r<o.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function Qe(e,t,n,r){var o=e.doc.mode,i=new fs(t,e.options.tabSize,n);for(i.start=i.pos=r||0,""==t&&Ze(o,n.state);!i.eol();)et(o,i,n.state),i.start=i.pos}function Ze(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ve(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function et(e,t,n,r){for(var o=0;o<10;o++){r&&(r[0]=Ve(e,n).mode);var i=e.token(t,n);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}function tt(e,t,n,r){var o,i=e.doc,a=i.mode;t=z(i,t);var s,u=A(i,t.line),l=Xe(e,t.line,n),c=new fs(u.text,e.options.tabSize,l);for(r&&(s=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,o=et(a,c,l.state),r&&s.push(new hs(c,o,Ge(i.mode,l.state)));return r?s:new hs(c,o,l.state)}function nt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function rt(e,t,n,r,o,i,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var u,l=0,c=null,f=new fs(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&nt(Ze(n,r.state),i);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&Qe(e,t,r,f.pos),f.pos=t.length,u=null):u=nt(et(n,f,r.state,p),i),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||c!=u){for(;l<f.start;)l=Math.min(f.start,l+5e3),o(l,c);c=u}f.start=f.pos}for(;l<f.pos;){var h=Math.min(f.pos,l+5e3);o(h,c),l=h}}function ot(e,t,n){for(var r,o,i=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=i.first)return i.first;var u=A(i,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof ps?l.lookAhead:0)<=i.modeFrontier))return s;var c=f(u.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}function it(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var o=A(e,r).stateAfter;if(o&&(!(o instanceof ps)||r+o.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}function at(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),re(e,n);var o=r?r(e):1;o!=e.height&&N(e,o)}function st(e){e.parent=null,ne(e)}function ut(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ys:vs;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function lt(e,t){var n=o("span",null,null,_a?"padding-right: .1px":null),r={pre:o("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(ba||_a)&&e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,s=void 0;r.pos=0,r.addToken=ft,Fe(e.display.measure)&&(s=we(a,e.doc.direction))&&(r.addToken=dt(r.addToken,s)),r.map=[];mt(a,r,Je(e,a,t!=e.display.externalMeasured&&D(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=u(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=u(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(je(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(_a){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=u(r.pre.className,r.textClass||"")),r}function ct(e){var t=r("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,o,i,a,s){if(t){var u,l=e.splitSpaces?pt(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){u=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var d=c.exec(t),m=d?d.index-p:t.length-p;if(m){var g=document.createTextNode(l.slice(p,p+m));ba&&Ta<9?u.appendChild(r("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!d)break;p+=m+1;var v=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;v=u.appendChild(r("span",h(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?(v=u.appendChild(r("span","\r"==d[0]?"\u240d":"\u2424","cm-invalidchar")),v.setAttribute("cm-text",d[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(d[0]),v.setAttribute("cm-text",d[0]),ba&&Ta<9?u.appendChild(r("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,u),ba&&Ta<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||o||i||f||s){var T=n||"";o&&(T+=o),i&&(T+=i);var _=r("span",[u],T,s);return a&&(_.title=a),e.content.appendChild(_)}e.content.appendChild(u)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;o<e.length;o++){var i=e.charAt(o);" "!=i||!n||o!=e.length-1&&32!=e.charCodeAt(o+1)||(i="\xa0"),r+=i,n=" "==i}return r}function dt(e,t){return function(n,r,o,i,a,s,u){o=o?o+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var f=void 0,p=0;p<t.length&&(f=t[p],!(f.to>l&&f.from<=l));p++);if(f.to>=c)return e(n,r,o,i,a,s,u);e(n,r.slice(0,f.to-l),o,i,null,s,u),i=null,r=r.slice(f.to-l),l=f.to}}}function ht(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function mt(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,u,l,c,f,p,d=o.length,h=0,m=1,g="",v=0;;){if(v==h){u=l=c=f=s="",p=null,v=1/0;for(var y=[],b=void 0,T=0;T<r.length;++T){var _=r[T],E=_.marker;"bookmark"==E.type&&_.from==h&&E.widgetNode?y.push(E):_.from<=h&&(null==_.to||_.to>h||E.collapsed&&_.to==h&&_.from==h)?(null!=_.to&&_.to!=h&&v>_.to&&(v=_.to,l=""),E.className&&(u+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&_.from==h&&(c+=" "+E.startStyle),E.endStyle&&_.to==v&&(b||(b=[])).push(E.endStyle,_.to),E.title&&!f&&(f=E.title),E.collapsed&&(!p||ae(p.marker,E)<0)&&(p=_)):_.from>h&&v>_.from&&(v=_.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==v&&(l+=" "+b[k]);if(!p||p.from==h)for(var w=0;w<y.length;++w)ht(t,0,y[w]);if(p&&(p.from||0)==h){if(ht(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var x=Math.min(d,v);;){if(g){var C=h+g.length;if(!p){var A=C>x?g.slice(0,x-h):g;t.addToken(t,A,a?a+u:u,c,h+A.length==v?l:"",f,s)}if(C>=x){g=g.slice(x-h),h=x;break}h=C,c=""}g=o.slice(i,i=n[m++]),a=ut(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,o.slice(i,i=n[O]),ut(n[O+1],t.cm.options))}function gt(e,t,n){this.line=t,this.rest=he(t),this.size=this.rest?D(m(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ve(e,t)}function vt(e,t,n){for(var r,o=[],i=t;i<n;i=r){var a=new gt(e.doc,A(e.doc,i),i);r=i+a.size,o.push(a)}return o}function yt(e){bs?bs.ops.push(e):e.ownsGroup=bs={ops:[e],delayedCallbacks:[]}}function bt(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(n<t.length)}function Tt(e,t){var n=e.ownsGroup;if(n)try{bt(n)}finally{bs=null,t(n)}}function _t(e,t){var n=xe(e,t);if(n.length){var r,o=Array.prototype.slice.call(arguments,2);bs?r=bs.delayedCallbacks:Ts?r=Ts:(r=Ts=[],setTimeout(Et,0));for(var i=0;i<n.length;++i)!function(e){r.push(function(){return n[e].apply(null,o)})}(i)}}function Et(){var e=Ts;Ts=null;for(var t=0;t<e.length;++t)e[t]()}function kt(e,t,n,r){for(var o=0;o<t.changes.length;o++){var i=t.changes[o];"text"==i?At(e,t):"gutter"==i?St(e,t,n,r):"class"==i?Ot(e,t):"widget"==i&&Nt(e,t,r)}t.changes=null}function wt(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),ba&&Ta<8&&(e.node.style.zIndex=2)),e.node}function xt(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var o=wt(t);t.background=o.insertBefore(r("div",null,n),o.firstChild),e.display.input.setUneditable(t.background)}}function Ct(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):lt(e,t)}function At(e,t){var n=t.text.className,r=Ct(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Ot(e,t)):n&&(t.text.className=n)}function Ot(e,t){xt(e,t),t.line.wrapClass?wt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function St(e,t,n,o){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=wt(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px; width: "+o.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var s=wt(t),u=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px");if(e.display.input.setUneditable(u),s.insertBefore(u,t.text),t.line.gutterClass&&(u.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=u.appendChild(r("div",L(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+o.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var l=0;l<e.options.gutters.length;++l){var c=e.options.gutters[l],f=a.hasOwnProperty(c)&&a[c];f&&u.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+o.gutterLeft[c]+"px; width: "+o.gutterWidth[c]+"px"))}}}function Nt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);It(e,t,n)}function Dt(e,t,n,r){var o=Ct(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Ot(e,t),St(e,t,n,r),It(e,t,r),t.node}function It(e,t,n){if(Mt(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Mt(e,t.rest[r],t,n,!1)}function Mt(e,t,n,o,i){if(t.widgets)for(var a=wt(n),s=0,u=t.widgets;s<u.length;++s){var l=u[s],c=r("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Lt(l,c,n,o),e.display.input.setUneditable(c),i&&l.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),_t(l,"redraw")}}function Lt(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Pt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!i(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function Rt(e,t){for(var n=Re(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Bt(e){return e.lineSpace.offsetTop}function jt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ft(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function Ht(e){return Ka-e.display.nativeBarWidth}function Ut(e){return e.display.scroller.clientWidth-Ht(e)-e.display.barWidth}function zt(e){return e.display.scroller.clientHeight-Ht(e)-e.display.barHeight}function Kt(e,t,n){var r=e.options.lineWrapping,o=r&&Ut(e);if(!t.measure.heights||r&&t.measure.width!=o){var i=t.measure.heights=[];if(r){t.measure.width=o;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var u=a[s],l=a[s+1];Math.abs(u.bottom-l.bottom)>2&&i.push((u.bottom+l.top)/2-n.top)}}i.push(n.bottom-n.top)}}function qt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var o=0;o<e.rest.length;o++)if(D(e.rest[o])>n)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Wt(e,t){t=pe(t);var r=D(t),o=e.display.externalMeasured=new gt(e.doc,t,r);o.lineN=r;var i=o.built=lt(e,o);return o.text=i.pre,n(e.display.lineMeasure,i.pre),o}function Gt(e,t,n,r){return $t(e,Yt(e,t),n,r)}function Vt(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[An(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Yt(e,t){var n=D(t),r=Vt(e,n);r&&!r.text?r=null:r&&r.changes&&(kt(e,r,n,En(e)),e.curOp.forceUpdate=!0),r||(r=Wt(e,t));var o=qt(r,t,n);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function $t(e,t,n,r,o){t.before&&(n=-1);var i,a=n+(r||"");return t.cache.hasOwnProperty(a)?i=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Kt(e,t.view,t.rect),t.hasHeights=!0),i=Qt(e,t,n,r),i.bogus||(t.cache[a]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}function Jt(e,t,n){for(var r,o,i,a,s,u,l=0;l<e.length;l+=3)if(s=e[l],u=e[l+1],t<s?(o=0,i=1,a="left"):t<u?(o=t-s,i=o+1):(l==e.length-3||t==u&&e[l+3]>t)&&(i=u-s,o=i-1,t>=u&&(a="right")),null!=o){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&o==u-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:o,end:i,collapse:a,coverStart:s,coverEnd:u}}function Xt(e,t){var n=_s;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var o=e.length-1;o>=0&&(n=e[o]).left==n.right;o--);return n}function Qt(e,t,n,r){var o,i=Jt(t.map,n,r),a=i.node,s=i.start,u=i.end,l=i.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&k(t.line.text.charAt(i.coverStart+s));)--s;for(;i.coverStart+u<i.coverEnd&&k(t.line.text.charAt(i.coverStart+u));)++u;if(o=ba&&Ta<9&&0==s&&u==i.coverEnd-i.coverStart?a.parentNode.getBoundingClientRect():Xt(Pa(a,s,u).getClientRects(),r),o.left||o.right||0==s)break;u=s,s-=1,l="right"}ba&&Ta<11&&(o=Zt(e.display.measure,o))}else{s>0&&(l=r="right");var f;o=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(ba&&Ta<9&&!s&&(!o||!o.left&&!o.right)){var p=a.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+_n(e.display),top:p.top,bottom:p.bottom}:_s}for(var d=o.top-t.rect.top,h=o.bottom-t.rect.top,m=(d+h)/2,g=t.view.measure.heights,v=0;v<g.length-1&&!(m<g[v]);v++);var y=v?g[v-1]:0,b=g[v],T={left:("right"==l?o.right:o.left)-t.rect.left,right:("left"==l?o.left:o.right)-t.rect.left,top:y,bottom:b};return o.left||o.right||(T.bogus=!0),e.options.singleCursorHeightPerLine||(T.rtop=d,T.rbottom=h),T}function Zt(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!He(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function en(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tn(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)en(e.display.view[n])}function nn(e){tn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function rn(){return ka&&Sa?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function on(){return ka&&Sa?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function an(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Pt(e.widgets[n]));return t}function sn(e,t,n,r,o){if(!o){var i=an(t);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var a=be(t);if("local"==r?a+=Bt(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:on());var u=s.left+("window"==r?0:rn());n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function un(e,t,n){if("div"==n)return t;var r=t.left,o=t.top;if("page"==n)r-=rn(),o-=on();else if("local"==n||!n){var i=e.display.sizer.getBoundingClientRect();r+=i.left,o+=i.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:o-a.top}}function ln(e,t,n,r,o){return r||(r=A(e.doc,t.line)),sn(e,r,Gt(e,r,t.ch,o),n)}function cn(e,t,n,r,o,i){function a(t,a){var s=$t(e,o,t,a?"right":"left",i);return a?s.left=s.right:s.right=s.left,sn(e,r,s,n)}function s(e,t,n){var r=u[t],o=1==r.level;return a(n?e-1:e,o!=n)}r=r||A(e.doc,t.line),o||(o=Yt(e,r));var u=we(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!u)return a("before"==c?l-1:l,"before"==c);var f=ke(u,l,c),p=Za,d=s(l,f,"before"==c);return null!=p&&(d.other=s(l,p,"before"!=c)),d}function fn(e,t){var n=0;t=z(e.doc,t),e.options.lineWrapping||(n=_n(e.display)*t.ch);var r=A(e.doc,t.line),o=be(r)+Bt(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function pn(e,t,n,r,o){var i=P(e,t,n);return i.xRel=o,r&&(i.outside=!0),i}function dn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return pn(r.first,0,null,!0,-1);var o=I(r,n),i=r.first+r.size-1;if(o>i)return pn(r.first+r.size-1,A(r,i).text.length,null,!0,1);t<0&&(t=0);for(var a=A(r,o);;){var s=vn(e,a,o,t,n),u=ce(a,s.ch+(s.xRel>0?1:0));if(!u)return s;var l=u.find(1);if(l.line==o)return l;a=A(r,o=l.line)}}function hn(e,t,n,r){r-=an(t);var o=t.text.length,i=x(function(t){return $t(e,n,t-1).bottom<=r},o,0);return o=x(function(t){return $t(e,n,t).top>r},i,o),{begin:i,end:o}}function mn(e,t,n,r){return n||(n=Yt(e,t)),hn(e,t,n,sn(e,t,$t(e,n,r),"line").top)}function gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function vn(e,t,n,r,o){o-=be(t);var i=Yt(e,t),a=an(t),s=0,u=t.text.length,l=!0,c=we(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?bn:yn)(e,t,n,i,c,r,o);l=1!=f.level,s=l?f.from:f.to-1,u=l?f.to:f.from-1}var p,d,h=null,m=null,g=x(function(t){var n=$t(e,i,t);return n.top+=a,n.bottom+=a,!!gn(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)},s,u),v=!1;if(m){var y=r-m.left<m.right-r,b=y==l;g=h+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{l||g!=u&&g!=s||g++,d=0==g?"after":g==t.text.length?"before":$t(e,i,g-(l?1:0)).bottom+a<=o==l?"after":"before";var T=cn(e,P(n,g,d),"line",t,i);p=T.left,v=o<T.top||o>=T.bottom}return g=w(t.text,g,1),pn(n,g,d,v,r-p)}function yn(e,t,n,r,o,i,a){var s=x(function(s){var u=o[s],l=1!=u.level;return gn(cn(e,P(n,l?u.to:u.from,l?"before":"after"),"line",t,r),i,a,!0)},0,o.length-1),u=o[s];if(s>0){var l=1!=u.level,c=cn(e,P(n,l?u.from:u.to,l?"after":"before"),"line",t,r);gn(c,i,a,!0)&&c.top>a&&(u=o[s-1])}return u}function bn(e,t,n,r,o,i,a){var s=hn(e,t,r,a),u=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,p=0;p<o.length;p++){var d=o[p];if(!(d.from>=l||d.to<=u)){var h=1!=d.level,m=$t(e,r,h?Math.min(l,d.to)-1:Math.max(u,d.from)).right,g=m<i?i-m+1e9:m-i;(!c||f>g)&&(c=d,f=g)}}return c||(c=o[o.length-1]),c.from<u&&(c={from:u,to:c.to,level:c.level}),c.to>l&&(c={from:c.from,to:l,level:c.level}),c}function Tn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==gs){gs=r("pre");for(var o=0;o<49;++o)gs.appendChild(document.createTextNode("x")),gs.appendChild(r("br"));gs.appendChild(document.createTextNode("x"))}n(e.measure,gs);var i=gs.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),t(e.measure),i||1}function _n(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),o=r("pre",[t]);n(e.measure,o);var i=t.getBoundingClientRect(),a=(i.right-i.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function En(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a)n[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,r[e.options.gutters[a]]=i.clientWidth;return{fixedPos:kn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function kn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function wn(e){var t=Tn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/_n(e.display)-3);return function(o){if(ve(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*t:i+t}}function xn(e){var t=e.doc,n=wn(e);t.iter(function(e){var t=n(e);t!=e.height&&N(e,t)})}function Cn(e,t,n,r){var o=e.display;if(!n&&"true"==Re(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var u,l=dn(e,i,a);if(r&&1==l.xRel&&(u=A(e.doc,l.line).text).length==l.ch){var c=f(u,u.length,e.options.tabSize)-u.length;l=P(l.line,Math.max(0,Math.round((i-Ft(e.display).left)/_n(e.display))-c))}return l}function An(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function On(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Sn(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},o=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var u=s.empty();(u||e.options.showCursorWhenSelecting)&&Nn(e,s.head,o),u||In(e,s,i)}}return r}function Nn(e,t,n){var o=cn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(r("div","\xa0","CodeMirror-cursor"));if(i.style.left=o.left+"px",i.style.top=o.top+"px",i.style.height=Math.max(0,o.bottom-o.top)*e.options.cursorHeight+"px",o.other){var a=n.appendChild(r("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=o.other.left+"px",a.style.top=o.other.top+"px",a.style.height=.85*(o.other.bottom-o.other.top)+"px"}}function Dn(e,t){return e.top-t.top||e.left-t.left}function In(e,t,n){function o(e,t,n,o){t<0&&(t=0),t=Math.round(t),o=Math.round(o),u.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n height: "+(o-t)+"px"))}function i(t,n,r){function i(n,r){return ln(e,P(t,n),"div",d,r)}function a(t,n,r){var o=mn(e,d,null,t),a="ltr"==n==("after"==r)?"left":"right";return i("after"==r?o.begin:o.end-(/\s/.test(d.text.charAt(o.end-1))?2:1),a)[a]}var u,l,d=A(s,t),h=d.text.length,m=we(d,s.direction);return Ee(m,n||0,null==r?h:r,function(e,t,s,d){var g="ltr"==s,v=i(e,g?"left":"right"),y=i(t-1,g?"right":"left"),b=null==n&&0==e,T=null==r&&t==h,_=0==d,E=!m||d==m.length-1;if(y.top-v.top<=3){var k=(p?b:T)&&_,w=(p?T:b)&&E,x=k?c:(g?v:y).left,C=w?f:(g?y:v).right;o(x,v.top,C-x,v.bottom)}else{var A,O,S,N;g?(A=p&&b&&_?c:v.left,O=p?f:a(e,s,"before"),S=p?c:a(t,s,"after"),N=p&&T&&E?f:y.right):(A=p?a(e,s,"before"):c,O=!p&&b&&_?f:v.right,S=!p&&T&&E?c:y.left,N=p?a(t,s,"after"):f),o(A,v.top,O-A,v.bottom),v.bottom<y.top&&o(c,v.bottom,null,y.top),o(S,y.top,N-S,y.bottom)}(!u||Dn(v,u)<0)&&(u=v),Dn(y,u)<0&&(u=y),(!l||Dn(v,l)<0)&&(l=v),Dn(y,l)<0&&(l=y)}),{start:u,end:l}}var a=e.display,s=e.doc,u=document.createDocumentFragment(),l=Ft(e.display),c=l.left,f=Math.max(a.sizerWidth,Ut(e)-a.sizer.offsetLeft)-l.right,p="ltr"==s.direction,d=t.from(),h=t.to();if(d.line==h.line)i(d.line,d.ch,h.ch);else{var m=A(s,d.line),g=A(s,h.line),v=pe(m)==pe(g),y=i(d.line,d.ch,v?m.text.length+1:null).end,b=i(h.line,v?0:null,h.ch).start;v&&(y.top<b.top-2?(o(y.right,y.top,null,y.bottom),o(c,b.top,b.left,b.bottom)):o(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&o(c,y.bottom,null,b.top)}n.appendChild(u)}function Mn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ln(e){e.state.focused||(e.display.input.focus(),Rn(e))}function Pn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Bn(e))},100)}function Rn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),_a&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mn(e))}function Bn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,ja(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function jn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var o=t.view[r],i=void 0;if(!o.hidden){if(ba&&Ta<8){var a=o.node.offsetTop+o.node.offsetHeight;i=a-n,n=a}else{var s=o.node.getBoundingClientRect();i=s.bottom-s.top}var u=o.line.height-i;if(i<2&&(i=Tn(t)),(u>.005||u<-.005)&&(N(o.line,i),Fn(o.line),o.rest))for(var l=0;l<o.rest.length;l++)Fn(o.rest[l])}}}function Fn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Hn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Bt(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=I(t,r),a=I(t,o);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<i?(i=s,a=I(t,be(A(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(i=I(t,be(A(t,u))-e.wrapper.clientHeight),a=u)}return{from:i,to:Math.max(a,i+1)}}function Un(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=kn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=i),n[a].gutterBackground&&(n[a].gutterBackground.style.left=i));var s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function zn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=L(e.options,t.first+t.size-1),o=e.display;if(n.length!=o.lineNumChars){var i=o.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,s=i.offsetWidth-a;return o.lineGutter.style.width="",o.lineNumInnerWidth=Math.max(a,o.lineGutter.offsetWidth-s)+1,o.lineNumWidth=o.lineNumInnerWidth+s,o.lineNumChars=o.lineNumInnerWidth?n.length:-1,o.lineGutter.style.width=o.lineNumWidth+"px",Mr(e),!0}return!1}function Kn(e,t){if(!Oe(e,"scrollCursorIntoView")){var n=e.display,o=n.sizer.getBoundingClientRect(),i=null;if(t.top+o.top<0?i=!0:t.bottom+o.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!Aa){var a=r("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Bt(e.display))+"px;\n height: "+(t.bottom-t.top+Ht(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function qn(e,t,n,r){null==r&&(r=0);var o;e.options.lineWrapping||t!=n||(t=t.ch?P(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?P(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=cn(e,t),u=n&&n!=t?cn(e,n):s;o={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r};var l=Gn(e,o),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Zn(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(tr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function Wn(e,t){var n=Gn(e,t);null!=n.scrollTop&&Zn(e,n.scrollTop),null!=n.scrollLeft&&tr(e,n.scrollLeft)}function Gn(e,t){var n=e.display,r=Tn(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=zt(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+jt(n),u=t.top<r,l=t.bottom>s-r;if(t.top<o)a.scrollTop=u?0:t.top;else if(t.bottom>o+i){var c=Math.min(t.top,(l?s:t.bottom)-i);c!=o&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Ut(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Vn(e,t){null!=t&&(Xn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Yn(e){Xn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $n(e,t,n){null==t&&null==n||Xn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Jn(e,t){Xn(e),e.curOp.scrollToPos=t}function Xn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;Qn(e,fn(e,t.from),fn(e,t.to),t.margin)}}function Qn(e,t,n,r){var o=Gn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});$n(e,o.scrollLeft,o.scrollTop)}function Zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ma||Dr(e,{top:t}),er(e,t,!0),ma&&Dr(e),wr(e,100))}function er(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function tr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Un(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Ht(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function rr(e,t){t||(t=nr(e));var n=e.display.barWidth,r=e.display.barHeight;or(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&jn(e),or(e,nr(e)),n=e.display.barWidth,r=e.display.barHeight}function or(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function ir(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ja(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ws[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ns(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?tr(e,t):Zn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function ar(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++xs},yt(e.curOp)}function sr(e){Tt(e.curOp,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;ur(e)})}function ur(e){for(var t=e.ops,n=0;n<t.length;n++)lr(t[n]);for(var r=0;r<t.length;r++)cr(t[r]);for(var o=0;o<t.length;o++)fr(t[o]);for(var i=0;i<t.length;i++)pr(t[i]);for(var a=0;a<t.length;a++)dr(t[a])}function lr(e){var t=e.cm,n=t.display;Cr(t),e.updateMaxLine&&_e(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Cs(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function cr(e){e.updatedDisplay=e.mustUpdate&&Sr(e.cm,e.update)}function fr(e){var t=e.cm,n=t.display;e.updatedDisplay&&jn(t),e.barMeasure=nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Gt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ht(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function pr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&tr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==a();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&rr(t,e.barMeasure),e.updatedDisplay&&Lr(t,e.barMeasure),e.selectionChanged&&Mn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Ln(e.cm)}function dr(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Nr(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&er(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&tr(t,e.scrollLeft,!0,!0),e.scrollToPos){Kn(t,qn(t,z(r,e.scrollToPos.from),z(r,e.scrollToPos.to),e.scrollToPos.margin))}var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||Ae(o[a],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&Ae(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function hr(e,t){if(e.curOp)return t();ar(e);try{return t()}finally{sr(e)}}function mr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ar(e);try{return t.apply(e,arguments)}finally{sr(e)}}}function gr(e){return function(){if(this.curOp)return e.apply(this,arguments);ar(this);try{return e.apply(this,arguments)}finally{sr(this)}}}function vr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ar(t);try{return e.apply(this,arguments)}finally{sr(t)}}}function yr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Qa&&me(e.doc,t)<o.viewTo&&Tr(e);else if(n<=o.viewFrom)Qa&&ge(e.doc,n+r)>o.viewFrom?Tr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Tr(e);else if(t<=o.viewFrom){var i=_r(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):Tr(e)}else if(n>=o.viewTo){var a=_r(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Tr(e)}else{var s=_r(e,t,t,-1),u=_r(e,n,n+r,1);s&&u?(o.view=o.view.slice(0,s.index).concat(vt(e,s.lineN,u.lineN)).concat(o.view.slice(u.index)),o.viewTo+=r):Tr(e)}var l=o.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(o.externalMeasured=null))}function br(e,t,n){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var i=r.view[An(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==p(a,n)&&a.push(n)}}}function Tr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function _r(e,t,n,r){var o,i=An(e,t),a=e.display.view;if(!Qa||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,u=0;u<i;u++)s+=a[u].size;if(s!=t){if(r>0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;me(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Er(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=vt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=vt(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(An(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(vt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,An(e,n)))),r.viewTo=n}function kr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var o=t[r];o.hidden||o.node&&!o.changes||++n}return n}function wr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,l(xr,e))}function xr(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Xe(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,u=$e(e,i,r,!0);s&&(r.state=s),i.styles=u.styles;var l=i.styleClasses,c=u.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=i.styles[p];f&&o.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=e.options.maxHighlightLength&&Qe(e,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return wr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&hr(e,function(){for(var t=0;t<o.length;t++)br(e,o[t],"text")})}}function Cr(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ht(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ht(e)+"px",t.scrollbarsClipped=!0)}function Ar(e){if(e.hasFocus())return null;var t=a();if(!t||!i(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&i(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Or(e){if(e&&e.activeElt&&e.activeElt!=a()&&(e.activeElt.focus(),e.anchorNode&&i(document.body,e.anchorNode)&&i(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Sr(e,n){var r=e.display,o=e.doc;if(n.editorIsHidden)return Tr(e),!1;if(!n.force&&n.visible.from>=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==kr(e))return!1;zn(e)&&(Tr(e),n.dims=En(e));var i=o.first+o.size,a=Math.max(n.visible.from-e.options.viewportMargin,o.first),s=Math.min(i,n.visible.to+e.options.viewportMargin);r.viewFrom<a&&a-r.viewFrom<20&&(a=Math.max(o.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(i,r.viewTo)),Qa&&(a=me(e.doc,a),s=ge(e.doc,s));var u=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;Er(e,a,s),r.viewOffset=be(A(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var l=kr(e);if(!u&&0==l&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Ar(e);return l>4&&(r.lineDiv.style.display="none"),Ir(e,r.updateLineNumbers,n.dims),l>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Or(c),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,wr(e,400)),r.updateLineNumbers=null,!0}function Nr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ut(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jt(e.display)-zt(e),n.top)}),t.visible=Hn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Sr(e,t);r=!1){jn(e);var o=nr(e);On(e),rr(e,o),Lr(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Dr(e,t){var n=new Cs(e,t);if(Sr(e,n)){jn(e),Nr(e,n);var r=nr(e);On(e),rr(e,r),Lr(e,r),n.finish()}}function Ir(e,n,r){function o(t){var n=t.nextSibling;return _a&&Da&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var i=e.display,a=e.options.lineNumbers,s=i.lineDiv,u=s.firstChild,l=i.view,c=i.viewFrom,f=0;f<l.length;f++){var d=l[f];if(d.hidden);else if(d.node&&d.node.parentNode==s){for(;u!=d.node;)u=o(u);var h=a&&null!=n&&n<=c&&d.lineNumber;d.changes&&(p(d.changes,"gutter")>-1&&(h=!1),kt(e,d,c,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(L(e.options,c)))),u=d.node.nextSibling}else{var m=Dt(e,d,c,r);s.insertBefore(m,u)}c+=d.size}for(;u;)u=o(u)}function Mr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Lr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ht(e)+"px"}function Pr(e){var n=e.display.gutters,o=e.options.gutters;t(n);for(var i=0;i<o.length;++i){var a=o[i],s=n.appendChild(r("div",null,"CodeMirror-gutter "+a));"CodeMirror-linenumbers"==a&&(e.display.lineGutter=s,s.style.width=(e.display.lineNumWidth||1)+"px")}n.style.display=i?"":"none",Mr(e)}function Rr(e){var t=p(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Br(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function jr(e){var t=Br(e);return t.x*=Os,t.y*=Os,t}function Fr(e,t){var n=Br(t),r=n.x,o=n.y,i=e.display,a=i.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||o&&u){if(o&&Da&&_a)e:for(var l=t.target,c=i.view;l!=a;l=l.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==l){e.display.currentWheelTarget=l;break e}if(r&&!ma&&!wa&&null!=Os)return o&&u&&Zn(e,Math.max(0,a.scrollTop+o*Os)),tr(e,Math.max(0,a.scrollLeft+r*Os)),(!o||o&&u)&&Ie(t),void(i.wheelStartX=null);if(o&&null!=Os){var p=o*Os,d=e.doc.scrollTop,h=d+i.wrapper.clientHeight;p<0?d=Math.max(0,d+p-50):h=Math.min(e.doc.height,h+p+50),Dr(e,{top:d,bottom:h})}As<20&&(null==i.wheelStartX?(i.wheelStartX=a.scrollLeft,i.wheelStartY=a.scrollTop,i.wheelDX=r,i.wheelDY=o,setTimeout(function(){if(null!=i.wheelStartX){var e=a.scrollLeft-i.wheelStartX,t=a.scrollTop-i.wheelStartY,n=t&&i.wheelDY&&t/i.wheelDY||e&&i.wheelDX&&e/i.wheelDX;i.wheelStartX=i.wheelStartY=null,n&&(Os=(Os*As+n)/(As+1),++As)}},200)):(i.wheelDX+=r,i.wheelDY+=o))}}function Hr(e,t){var n=e[t];e.sort(function(e,t){return R(e.from(),t.from())}),t=p(e,n);for(var r=1;r<e.length;r++){var o=e[r],i=e[r-1];if(R(i.to(),o.from())>=0){var a=H(i.from(),o.from()),s=F(i.to(),o.to()),u=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new Ns(u?s:a,u?a:s))}}return new Ss(e,t)}function Ur(e,t){return new Ss([new Ns(e,t||e)],0)}function zr(e){return e.text?P(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Kr(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return zr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=zr(t).ch-t.to.ch),P(n,r)}function qr(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];n.push(new Ns(Kr(o.anchor,t),Kr(o.head,t)))}return Hr(n,e.sel.primIndex)}function Wr(e,t,n){return e.line==t.line?P(n.line,e.ch-t.ch+n.ch):P(n.line+(e.line-t.line),e.ch)}function Gr(e,t,n){for(var r=[],o=P(e.first,0),i=o,a=0;a<t.length;a++){var s=t[a],u=Wr(s.from,o,i),l=Wr(zr(s),o,i);if(o=s.to,i=l,"around"==n){var c=e.sel.ranges[a],f=R(c.head,c.anchor)<0;r[a]=new Ns(f?l:u,f?u:l)}else r[a]=new Ns(u,u)}return new Ss(r,e.sel.primIndex)}function Vr(e){e.doc.mode=qe(e.options,e.doc.modeOption),Yr(e)}function Yr(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,wr(e,100),e.state.modeGen++,e.curOp&&yr(e)}function $r(e,t){return 0==t.from.ch&&0==t.to.ch&&""==m(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Jr(e,t,n,r){function o(e){return n?n[e]:null}function i(e,n,o){at(e,n,o,r),_t(e,"change",e,t)}function a(e,t){for(var n=[],i=e;i<t;++i)n.push(new ms(l[i],o(i),r));return n}var s=t.from,u=t.to,l=t.text,c=A(e,s.line),f=A(e,u.line),p=m(l),d=o(l.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if($r(e,t)){var g=a(0,l.length-1);i(f,f.text,d),h&&e.remove(s.line,h),g.length&&e.insert(s.line,g)}else if(c==f)if(1==l.length)i(c,c.text.slice(0,s.ch)+p+c.text.slice(u.ch),d);else{var v=a(1,l.length-1);v.push(new ms(p+c.text.slice(u.ch),d,r)),i(c,c.text.slice(0,s.ch)+l[0],o(0)),e.insert(s.line+1,v)}else if(1==l.length)i(c,c.text.slice(0,s.ch)+l[0]+f.text.slice(u.ch),o(0)),e.remove(s.line+1,h);else{i(c,c.text.slice(0,s.ch)+l[0],o(0)),i(f,p+f.text.slice(u.ch),d);var y=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}_t(e,"change",e,t)}function Xr(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=o){var u=i&&s.sharedHist;n&&!u||(t(s.doc,u),r(s.doc,e,u))}}}r(e,null,!0)}function Qr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,xn(e),Vr(e),Zr(e),e.options.lineWrapping||_e(e),e.options.mode=t.modeOption,yr(e)}function Zr(e){("rtl"==e.doc.direction?s:ja)(e.display.lineDiv,"CodeMirror-rtl")}function eo(e){hr(e,function(){Zr(e),yr(e)})}function to(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function no(e,t){var n={from:j(t.from),to:zr(t),text:O(e,t.from,t.to)};return lo(e,n,t.from.line,t.to.line+1),Xr(e,function(e){return lo(e,n,t.from.line,t.to.line+1)},!0),n}function ro(e){for(;e.length;){if(!m(e).ranges)break;e.pop()}}function oo(e,t){return t?(ro(e.done),m(e.done)):e.done.length&&!m(e.done).ranges?m(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),m(e.done)):void 0}function io(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=oo(o,o.lastOp==r)))a=m(i.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=zr(t):i.changes.push(no(e,t));else{var u=m(o.done);for(u&&u.ranges||uo(e.sel,o.done),i={changes:[no(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||Ae(e,"historyAdded")}function ao(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function so(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||ao(e,i,m(o.done),t))?o.done[o.done.length-1]=t:uo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&ro(o.undone)}function uo(e,t){var n=m(t);n&&n.ranges&&n.equals(e)||t.push(e)}function lo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function co(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function fo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(co(n[o]));return r}function po(e,t){var n=fo(e,t),r=Z(e,t);if(!n)return r;if(!r)return n;for(var o=0;o<n.length;++o){var i=n[o],a=r[o];if(i&&a)e:for(var s=0;s<a.length;++s){for(var u=a[s],l=0;l<i.length;++l)if(i[l].marker==u.marker)continue e;i.push(u)}else a&&(n[o]=a)}return n}function ho(e,t,n){for(var r=[],o=0;o<e.length;++o){var i=e[o];if(i.ranges)r.push(n?Ss.prototype.deepCopy.call(i):i);else{var a=i.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var l=a[u],c=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&p(t,Number(c[1]))>-1&&(m(s)[f]=l[f],delete l[f])}}}return r}function mo(e,t,n,r){if(r){var o=e.anchor;if(n){var i=R(t,o)<0;i!=R(n,o)<0?(o=t,t=n):i!=R(t,n)<0&&(t=n)}return new Ns(o,t)}return new Ns(n||t,t)}function go(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Eo(e,new Ss([mo(e.sel.primary(),t,n,o)],0),r)}function vo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)r[i]=mo(e.sel.ranges[i],t[i],null,o);Eo(e,Hr(r,e.sel.primIndex),n)}function yo(e,t,n,r){var o=e.sel.ranges.slice(0);o[t]=n,Eo(e,Hr(o,e.sel.primIndex),r)}function bo(e,t,n,r){Eo(e,Ur(t,n),r)}function To(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new Ns(z(e,t[r].anchor),z(e,t[r].head))},origin:n&&n.origin};return Ae(e,"beforeSelectionChange",e,r),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Hr(r.ranges,r.ranges.length-1):t}function _o(e,t,n){var r=e.history.done,o=m(r);o&&o.ranges?(r[r.length-1]=t,ko(e,t,n)):Eo(e,t,n)}function Eo(e,t,n){ko(e,t,n),so(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ko(e,t,n){(Ne(e,"beforeSelectionChange")||e.cm&&Ne(e.cm,"beforeSelectionChange"))&&(t=To(e,t,n)),wo(e,Co(e,t,n&&n.bias||(R(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||Yn(e.cm)}function wo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,Se(e.cm)),_t(e,"cursorActivity",e))}function xo(e){wo(e,Co(e,e.sel,null,!1))}function Co(e,t,n,r){for(var o,i=0;i<t.ranges.length;i++){var a=t.ranges[i],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],u=Oo(e,a.anchor,s&&s.anchor,n,r),l=Oo(e,a.head,s&&s.head,n,r);(o||u!=a.anchor||l!=a.head)&&(o||(o=t.ranges.slice(0,i)),o[i]=new Ns(u,l))}return o?Hr(o,t.primIndex):t}function Ao(e,t,n,r,o){var i=A(e,t.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var s=i.markedSpans[a],u=s.marker;if((null==s.from||(u.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(o&&(Ae(u,"beforeCursorEnter"),u.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l=u.find(r<0?1:-1),c=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(l=So(e,l,-r,l&&l.line==t.line?i:null)),l&&l.line==t.line&&(c=R(l,n))&&(r<0?c<0:c>0))return Ao(e,l,t,r,o)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=So(e,f,r,f.line==t.line?i:null)),f?Ao(e,f,t,r,o):null}}return t}function Oo(e,t,n,r,o){var i=r||1,a=Ao(e,t,n,i,o)||!o&&Ao(e,t,n,i,!0)||Ao(e,t,n,-i,o)||!o&&Ao(e,t,n,-i,!0);return a||(e.cantEdit=!0,P(e.first,0))}function So(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?z(e,P(t.line-1)):null:n>0&&t.ch==(r||A(e,t.line)).text.length?t.line<e.first+e.size-1?P(t.line+1,0):null:new P(t.line,t.ch+n)}function No(e){e.setSelection(P(e.firstLine(),0),P(e.lastLine()),Wa)}function Do(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,o,i){t&&(r.from=z(e,t)),n&&(r.to=z(e,n)),o&&(r.text=o),void 0!==i&&(r.origin=i)}),Ae(e,"beforeChange",e,r),e.cm&&Ae(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Io(e,t,n){if(e.cm){if(!e.cm.curOp)return mr(e.cm,Io)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ne(e,"beforeChange")||e.cm&&Ne(e.cm,"beforeChange"))||(t=Do(e,t,!0))){var r=Xa&&!n&&te(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)Mo(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else Mo(e,t)}}function Mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=qr(e,t);io(e,t,n,e.cm?e.cm.curOp.id:NaN),Ro(e,t,n,Z(e,t));var r=[];Xr(e,function(e,n){n||-1!=p(r,e.history)||(Uo(e.history,t),r.push(e.history)),Ro(e,t,null,Z(e,t))})}}function Lo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,u="undo"==t?i.undone:i.done,l=0;l<s.length&&(o=s[l],n?!o.ranges||o.equals(e.sel):o.ranges);l++);if(l!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(o=s.pop(),!o.ranges){if(r)return void s.push(o);break}if(uo(o,u),n&&!o.equals(e.sel))return void Eo(e,o,{clearRedo:!1});a=o}var c=[];uo(a,u),u.push({changes:c,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var f=Ne(e,"beforeChange")||e.cm&&Ne(e.cm,"beforeChange"),d=o.changes.length-1;d>=0;--d){var h=function(n){var r=o.changes[n];if(r.origin=t,f&&!Do(e,r,!1))return s.length=0,{};c.push(no(e,r));var i=n?qr(e,r):m(s);Ro(e,r,i,po(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:zr(r)});var a=[];Xr(e,function(e,t){t||-1!=p(a,e.history)||(Uo(e.history,r),a.push(e.history)),Ro(e,r,null,po(e,r))})}(d);if(h)return h.v}}}}function Po(e,t){if(0!=t&&(e.first+=t,e.sel=new Ss(g(e.sel.ranges,function(e){return new Ns(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){yr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)br(e.cm,r,"gutter")}}function Ro(e,t,n,r){if(e.cm&&!e.cm.curOp)return mr(e.cm,Ro)(e,t,n,r);if(t.to.line<e.first)return void Po(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);Po(e,o),t={from:P(e.first,0),to:P(t.to.line+o,t.to.ch),text:[m(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:P(i,A(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=O(e,t.from,t.to),n||(n=qr(e,t)),e.cm?Bo(e.cm,t,r):Jr(e,t,r),ko(e,n,Wa)}}function Bo(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,u=i.line;e.options.lineWrapping||(u=D(pe(A(r,i.line))),r.iter(u,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Se(e),Jr(r,t,n,wn(e)),e.options.lineWrapping||(r.iter(u,i.line+t.text.length,function(e){var t=Te(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),it(r,i.line),wr(e,400);var l=t.text.length-(a.line-i.line)-1;t.full?yr(e):i.line!=a.line||1!=t.text.length||$r(e.doc,t)?yr(e,i.line,a.line+1,l):br(e,i.line,"text");var c=Ne(e,"changes"),f=Ne(e,"change");if(f||c){var p={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&_t(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function jo(e,t,n,r,o){if(r||(r=n),R(r,n)<0){var i;i=[r,n],n=i[0],r=i[1]}"string"==typeof t&&(t=e.splitLines(t)),Io(e,{from:n,to:r,text:t,origin:o})}function Fo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Ho(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o],a=!0;if(i.ranges){i.copied||(i=e[o]=i.deepCopy(),i.copied=!0);for(var s=0;s<i.ranges.length;s++)Fo(i.ranges[s].anchor,t,n,r),Fo(i.ranges[s].head,t,n,r)}else{for(var u=0;u<i.changes.length;++u){var l=i.changes[u];if(n<l.from.line)l.from=P(l.from.line+r,l.from.ch),l.to=P(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,o+1),o=0)}}}function Uo(e,t){var n=t.from.line,r=t.to.line,o=t.text.length-(r-n)-1;Ho(e.done,n,r,o),Ho(e.undone,n,r,o)}function zo(e,t,n,r){var o=t,i=t;return"number"==typeof t?i=A(e,U(e,t)):o=D(t),null==o?null:(r(i,o)&&e.cm&&br(e.cm,o,n),i)}function Ko(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function qo(e){var t=this;this.children=e;for(var n=0,r=0,o=0;o<e.length;++o){var i=e[o];n+=i.chunkSize(),r+=i.height,i.parent=t}this.size=n,this.height=r,this.parent=null}function Wo(e,t,n){be(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Vn(e,n)}function Go(e,t,n,r){var o=new Ds(e,n,r),i=e.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),zo(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length-1,Math.max(0,o.insertAt)),0,o),o.line=t,i&&!ve(e,t)){var r=be(t)<e.scrollTop;N(t,t.height+Pt(o)),r&&Vn(i,o.height),i.curOp.forceUpdate=!0}return!0}),i&&_t(i,"lineWidgetAdded",i,o,"number"==typeof t?t:D(t)),o}function Vo(e,t,n,r,i){if(r&&r.shared)return Yo(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return mr(e.cm,Vo)(e,t,n,r,i);var a=new Ms(e,i),s=R(t,n);if(r&&c(r,a,!1),s>0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=o("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(fe(e,t.line,t,n,a)||t.line!=n.line&&fe(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");G()}a.addToHistory&&io(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,l=t.line,f=e.cm;if(e.iter(l,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&pe(e)==f.display.maxLine&&(u=!0),a.collapsed&&l!=t.line&&N(e,0),J(e,new V(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){ve(e,t)&&N(t,0)}),a.clearOnEnter&&ns(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(W(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Is,a.atomic=!0),f){if(u&&(f.curOp.updateMaxLine=!0),a.collapsed)yr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var p=t.line;p<=n.line;p++)br(f,p,"text");a.atomic&&xo(f.doc),_t(f,"markerAdded",f,a)}return a}function Yo(e,t,n,r,o){r=c(r),r.shared=!1;var i=[Vo(e,t,n,r,o)],a=i[0],s=r.widgetNode;return Xr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(Vo(e,z(e,t),z(e,n),r,o));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=m(i)}),new Ls(i,a)}function $o(e){return e.findMarks(P(e.first,0),e.clipPos(P(e.lastLine())),function(e){return e.parent})}function Jo(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.find(),i=e.clipPos(o.from),a=e.clipPos(o.to);if(R(i,a)){var s=Vo(e,i,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Xo(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];Xr(n.primary.doc,function(e){return r.push(e)});for(var o=0;o<n.markers.length;o++){var i=n.markers[o];-1==p(r,i.doc)&&(i.parent=null,n.markers.splice(o--,1))}}(t)}function Qo(e){var t=this;if(ti(t),!Oe(t,e)&&!Rt(t.display,e)){Ie(e),ba&&(Bs=+new Date);var n=Cn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),a=0,s=0;s<o;++s)!function(e,r){if(!t.options.allowDropFileTypes||-1!=p(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=mr(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),i[r]=e,++a==o){n=z(t.doc,n);var u={from:n,to:n,text:t.doc.splitLines(i.join(t.doc.lineSeparator())),origin:"paste"};Io(t.doc,u),_o(t.doc,Ur(n,zr(u)))}}),s.readAsText(e)}}(r[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var l;if(t.state.draggingText&&!t.state.draggingText.copy&&(l=t.listSelections()),ko(t.doc,Ur(n,n)),l)for(var c=0;c<l.length;++c)jo(t.doc,"",l[c].anchor,l[c].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Zo(e,t){if(ba&&(!e.state.draggingText||+new Date-Bs<100))return void Pe(t);if(!Oe(e,t)&&!Rt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!xa)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",wa&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),wa&&n.parentNode.removeChild(n)}}function ei(e,t){var o=Cn(e,t);if(o){var i=document.createDocumentFragment();Nn(e,o,i),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,i)}}function ti(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ni(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function ri(){js||(oi(),js=!0)}function oi(){var e;ns(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,ni(ii)},100))}),ns(window,"blur",function(){return ni(Bn)})}function ii(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}function ai(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,o,i,a=0;a<t.length-1;a++){var s=t[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);o=!0}}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),o&&(e="Shift-"+e),e}function si(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var o=g(n.split(" "),ai),i=0;i<o.length;i++){var a=void 0,s=void 0;i==o.length-1?(s=o.join(" "),a=r):(s=o.slice(0,i+1).join(" "),a="...");var u=t[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function ui(e,t,n,r){t=pi(t);var o=t.call?t.call(e,r):t[e];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ui(e,t.fallthrough,n,r);for(var i=0;i<t.fallthrough.length;i++){var a=ui(e,t.fallthrough[i],n,r);if(a)return a}}}function li(e){var t="string"==typeof e?e:Fs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function ci(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(Ra?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(Ra?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function fi(e,t){if(wa&&34==e.keyCode&&e.char)return!1;var n=Fs[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),ci(n,e,t))}function pi(e){return"string"==typeof e?Ks[e]:e}function di(e,t){for(var n=e.doc.sel.ranges,r=[],o=0;o<n.length;o++){for(var i=t(n[o]);r.length&&R(i.from,m(r).to)<=0;){var a=r.pop();if(R(a.from,i.from)<0){i.from=a.from;break}}r.push(i)}hr(e,function(){for(var t=r.length-1;t>=0;t--)jo(e.doc,"",r[t].from,r[t].to,"+delete");Yn(e)})}function hi(e,t,n){var r=w(e.text,t+n,n);return r<0||r>e.text.length?null:r}function mi(e,t,n){var r=hi(e,t.ch,n);return null==r?null:new P(t.line,r,n<0?"after":"before")}function gi(e,t,n,r,o){if(e){var i=we(n,t.doc.direction);if(i){var a,s=o<0?m(i):i[0],u=o<0==(1==s.level),l=u?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Yt(t,n);a=o<0?n.text.length-1:0;var f=$t(t,c,a).top;a=x(function(e){return $t(t,c,e).top==f},o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=hi(n,a,1))}else a=o<0?s.to:s.from;return new P(r,a,l)}}return new P(r,o<0?n.text.length:0,o<0?"before":"after")}function vi(e,t,n,r){var o=we(t,e.doc.direction);if(!o)return mi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=ke(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return mi(t,n,r);var s,u=function(e,n){return hi(t,e instanceof P?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||Yt(e,t),mn(e,t,s,n)):{begin:0,end:t.text.length}},c=l("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new P(n.line,p,d)}}var h=function(e,t,r){for(var i=function(e,t){return t?new P(n.line,u(e,1),"before"):new P(n.line,e,"after")};e>=0&&e<o.length;e+=t){var a=o[e],s=t>0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l<a.to)return i(l,s);if(l=s?a.from:u(a.to,-1),r.begin<=l&&l<r.end)return i(l,s)}},m=h(i+r,r,c);if(m)return m;var g=r>0?c.end:u(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:o.length-1,r,l(g)))?null:m}function yi(e,t){var n=A(e.doc,t),r=pe(n);return r!=n&&(t=D(r)),gi(!0,e,r,t,1)}function bi(e,t){var n=A(e.doc,t),r=de(n);return r!=n&&(t=D(r)),gi(!0,e,n,t,-1)}function Ti(e,t){var n=yi(e,t.line),r=A(e.doc,n.line),o=we(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return P(n.line,a?0:i,n.sticky)}return n}function _i(e,t,n){if("string"==typeof t&&!(t=qs[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=qa}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function Ei(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var o=ui(t,e.state.keyMaps[r],n,e);if(o)return o}return e.options.extraKeys&&ui(t,e.options.extraKeys,n,e)||ui(t,e.options.keyMap,n,e)}function ki(e,t,n,r){var o=e.state.keySeq;if(o){if(li(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ws.set(50,function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())}),wi(e,o+" "+t,n,r))return!0}return wi(e,t,n,r)}function wi(e,t,n,r){var o=Ei(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&_t(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(Ie(n),Mn(e)),!!o}function xi(e,t){var n=fi(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ki(e,"Shift-"+n,t,function(t){return _i(e,t,!0)})||ki(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return _i(e,t)}):ki(e,n,t,function(t){return _i(e,t)}))}function Ci(e,t,n){return ki(e,"'"+n+"'",t,function(t){return _i(e,t,!0)})}function Ai(e){var t=this;if(t.curOp.focus=a(),!Oe(t,e)){ba&&Ta<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=xi(t,e);wa&&(Gs=r?n:null,!r&&88==n&&!as&&(Da?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Oi(t)}}function Oi(e){function t(e){18!=e.keyCode&&e.altKey||(ja(n,"CodeMirror-crosshair"),Ce(document,"keyup",t),Ce(document,"mouseover",t))}var n=e.display.lineDiv;s(n,"CodeMirror-crosshair"),ns(document,"keyup",t),ns(document,"mouseover",t)}function Si(e){16==e.keyCode&&(this.doc.sel.shift=!1),Oe(this,e)}function Ni(e){var t=this;if(!(Rt(t.display,e)||Oe(t,e)||e.ctrlKey&&!e.altKey||Da&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(wa&&n==Gs)return Gs=null,void Ie(e);if(!wa||e.which&&!(e.which<10)||!xi(t,e)){var o=String.fromCharCode(null==r?n:r);"\b"!=o&&(Ci(t,e,o)||t.display.input.onKeyPress(e))}}}function Di(e,t){var n=+new Date;return $s&&$s.compare(n,e,t)?(Ys=$s=null,"triple"):Ys&&Ys.compare(n,e,t)?($s=new Vs(n,e,t),Ys=null,"double"):(Ys=new Vs(n,e,t),$s=null,"single")}function Ii(e){var t=this,n=t.display;if(!(Oe(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Rt(n,e))return void(_a||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!Ui(t,e)){var r=Cn(t,e),o=Be(e),i=r?Di(r,o):"single";window.focus(),1==o&&t.state.selectingText&&t.state.selectingText(e),r&&Mi(t,o,r,i,e)||(1==o?r?Pi(t,r,i,e):Re(e)==n.scroller&&Ie(e):2==o?(r&&go(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==o&&(Ba?zi(t,e):Pn(t)))}}}function Mi(e,t,n,r,o){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),i=(1==t?"Left":2==t?"Middle":"Right")+i,ki(e,ci(i,o),o,function(t){if("string"==typeof t&&(t=qs[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=qa}finally{e.state.suppressEdits=!1}return r})}function Li(e,t,n){var r=e.getOption("configureMouse"),o=r?r(e,t,n):{};if(null==o.unit){var i=Ia?n.shiftKey&&n.metaKey:n.altKey;o.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==o.extend||e.doc.extend)&&(o.extend=e.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=Da?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(Da?n.altKey:n.ctrlKey)),o}function Pi(e,t,n,r){ba?setTimeout(l(Ln,e),0):e.curOp.focus=a();var o,i=Li(e,n,r),s=e.doc.sel;e.options.dragDrop&&rs&&!e.isReadOnly()&&"single"==n&&(o=s.contains(t))>-1&&(R((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(R(o.to(),t)>0||t.xRel<0)?Ri(e,r,t,i):ji(e,r,t,i)}function Ri(e,t,n,r){var o=e.display,i=!1,a=mr(e,function(t){_a&&(o.scroller.draggable=!1),e.state.draggingText=!1,Ce(o.wrapper.ownerDocument,"mouseup",a),Ce(o.wrapper.ownerDocument,"mousemove",s),Ce(o.scroller,"dragstart",u),Ce(o.scroller,"drop",a),i||(Ie(t),r.addNew||go(e.doc,n,null,null,r.extend),_a||ba&&9==Ta?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),s=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};_a&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),ns(o.wrapper.ownerDocument,"mouseup",a),ns(o.wrapper.ownerDocument,"mousemove",s),ns(o.scroller,"dragstart",u),ns(o.scroller,"drop",a),Pn(e),setTimeout(function(){return o.input.focus()},20)}function Bi(e,t,n){if("char"==n)return new Ns(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ns(P(t.line,0),z(e.doc,P(t.line+1,0)));var r=n(e,t);return new Ns(r.from,r.to)}function ji(e,t,n,r){function o(t){if(0!=R(v,t))if(v=t,"rectangle"==r.unit){for(var o=[],i=e.options.tabSize,a=f(A(l,n.line).text,n.ch,i),s=f(A(l,t.line).text,t.ch,i),u=Math.min(a,s),m=Math.max(a,s),g=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=y;g++){var b=A(l,g).text,T=d(b,u,i);u==m?o.push(new Ns(P(g,T),P(g,T))):b.length>T&&o.push(new Ns(P(g,T),P(g,d(b,m,i))))}o.length||o.push(new Ns(n,n)),Eo(l,Hr(h.ranges.slice(0,p).concat(o),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _,E=c,k=Bi(e,t,r.unit),w=E.anchor;R(k.anchor,w)>0?(_=k.head,w=H(E.from(),k.anchor)):(_=k.anchor,w=F(E.to(),k.head));var x=h.ranges.slice(0);x[p]=Fi(e,new Ns(z(l,w),_)),Eo(l,Hr(x,p),Ga)}}function i(t){var n=++b,s=Cn(e,t,!0,"rectangle"==r.unit);if(s)if(0!=R(s,v)){e.curOp.focus=a(),o(s);var c=Hn(u,l);(s.line>=c.to||s.line<c.from)&&setTimeout(mr(e,function(){b==n&&i(t)}),150)}else{var f=t.clientY<y.top?-20:t.clientY>y.bottom?20:0;f&&setTimeout(mr(e,function(){b==n&&(u.scroller.scrollTop+=f,i(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,Ie(t),u.input.focus(),Ce(u.wrapper.ownerDocument,"mousemove",T),Ce(u.wrapper.ownerDocument,"mouseup",_),l.history.lastSelOrigin=null}var u=e.display,l=e.doc;Ie(t);var c,p,h=l.sel,m=h.ranges;if(r.addNew&&!r.extend?(p=l.sel.contains(n),c=p>-1?m[p]:new Ns(n,n)):(c=l.sel.primary(),p=l.sel.primIndex),"rectangle"==r.unit)r.addNew||(c=new Ns(n,n)),n=Cn(e,t,!0,!0),p=-1;else{var g=Bi(e,n,r.unit);c=r.extend?mo(c,g.anchor,g.head,r.extend):g}r.addNew?-1==p?(p=m.length,Eo(l,Hr(m.concat([c]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"char"==r.unit&&!r.extend?(Eo(l,Hr(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),h=l.sel):yo(l,p,c,Ga):(p=0,Eo(l,new Ss([c],0),Ga),h=l.sel);var v=n,y=u.wrapper.getBoundingClientRect(),b=0,T=mr(e,function(e){0!==e.buttons&&Be(e)?i(e):s(e)}),_=mr(e,s);e.state.selectingText=_,ns(u.wrapper.ownerDocument,"mousemove",T),ns(u.wrapper.ownerDocument,"mouseup",_)}function Fi(e,t){var n=t.anchor,r=t.head,o=A(e.doc,n.line);if(0==R(n,r)&&n.sticky==r.sticky)return t;var i=we(o);if(!i)return t;var a=ke(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==i.length)return t;var l;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ke(i,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var p=i[u+(l?-1:0)],d=l==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new Ns(new P(n.line,h,m),r)}function Hi(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ie(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!Ne(e,n))return Le(t);i-=s.top-a.viewOffset;for(var u=0;u<e.options.gutters.length;++u){var l=a.gutters.childNodes[u];if(l&&l.getBoundingClientRect().right>=o){return Ae(e,n,e,I(e.doc,i),e.options.gutters[u],t),Le(t)}}}function Ui(e,t){return Hi(e,t,"gutterClick",!0)}function zi(e,t){Rt(e.display,t)||Ki(e,t)||Oe(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Ki(e,t){return!!Ne(e,"gutterContextMenu")&&Hi(e,t,"gutterContextMenu",!1)}function qi(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nn(e)}function Wi(e){Pr(e),yr(e),Un(e)}function Gi(e,t,n){if(!t!=!(n&&n!=Js)){var r=e.display.dragFunctions,o=t?ns:Ce;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Vi(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ja(e.display.wrapper,"CodeMirror-wrap"),_e(e)),xn(e),yr(e),nn(e),setTimeout(function(){return rr(e)},100)}function Yi(e,t){var n=this;if(!(this instanceof Yi))return new Yi(e,t);this.options=t=t?c(t):{},c(Xs,t,!1),Rr(t);var r=t.value;"string"==typeof r?r=new Rs(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Yi.inputStyles[t.inputStyle](this),i=this.display=new C(e,r,o);i.wrapper.CodeMirror=this,Pr(this),qi(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ir(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ha,keySeq:null,specialChars:null},t.autofocus&&!Na&&i.input.focus(),ba&&Ta<11&&setTimeout(function(){return n.display.input.reset(!0)},20),$i(this),ri(),ar(this),this.curOp.forceUpdate=!0,Qr(this,r),t.autofocus&&!Na||this.hasFocus()?setTimeout(l(Rn,this),20):Bn(this);for(var a in Qs)Qs.hasOwnProperty(a)&&Qs[a](n,t[a],Js);zn(this),t.finishInit&&t.finishInit(this);for(var s=0;s<Zs.length;++s)Zs[s](n);sr(this),_a&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}function $i(e){function t(){o.activeTouch&&(i=setTimeout(function(){return o.activeTouch=null},1e3),a=o.activeTouch,a.end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var o=e.display;ns(o.scroller,"mousedown",mr(e,Ii)),ba&&Ta<11?ns(o.scroller,"dblclick",mr(e,function(t){if(!Oe(e,t)){var n=Cn(e,t);if(n&&!Ui(e,t)&&!Rt(e.display,t)){Ie(t);var r=e.findWordAt(n);go(e.doc,r.anchor,r.head)}}})):ns(o.scroller,"dblclick",function(t){return Oe(e,t)||Ie(t)}),Ba||ns(o.scroller,"contextmenu",function(t){return zi(e,t)});var i,a={end:0};ns(o.scroller,"touchstart",function(t){if(!Oe(e,t)&&!n(t)&&!Ui(e,t)){o.input.ensurePolled(),clearTimeout(i);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),ns(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),ns(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Rt(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(o.activeTouch,"page");a=!i.prev||r(i,i.prev)?new Ns(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new Ns(P(s.line,0),z(e.doc,P(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ie(n)}t()}),ns(o.scroller,"touchcancel",t),ns(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Zn(e,o.scroller.scrollTop),tr(e,o.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),ns(o.scroller,"mousewheel",function(t){return Fr(e,t)}),ns(o.scroller,"DOMMouseScroll",function(t){return Fr(e,t)}),ns(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){Oe(e,t)||Pe(t)},over:function(t){Oe(e,t)||(ei(e,t),Pe(t))},start:function(t){return Zo(e,t)},drop:mr(e,Qo),leave:function(t){Oe(e,t)||ti(e)}};var s=o.input.getField();ns(s,"keyup",function(t){return Si.call(e,t)}),ns(s,"keydown",mr(e,Ai)),ns(s,"keypress",mr(e,Ni)),ns(s,"focus",function(t){return Rn(e,t)}),ns(s,"blur",function(t){return Bn(e,t)})}function Ji(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=Xe(e,t).state:n="prev");var a=e.options.tabSize,s=A(i,t),u=f(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=i.mode.indent(o,s.text.slice(c.length),s.text))==qa||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?f(A(i,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var p="",d=0;if(e.options.indentWithTabs)for(var m=Math.floor(l/a);m;--m)d+=a,p+="\t";if(d<l&&(p+=h(l-d)),p!=c)return jo(i,p,P(t,0),P(t,c.length),"+input"),s.stateAfter=null,!0;for(var g=0;g<i.sel.ranges.length;g++){var v=i.sel.ranges[g];if(v.head.line==t&&v.head.ch<c.length){var y=P(t,c.length);yo(i,g,new Ns(y,y));break}}}function Xi(e){eu=e}function Qi(e,t,n,r,o){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var a=e.state.pasteIncoming||"paste"==o,s=os(t),u=null;if(a&&r.ranges.length>1)if(eu&&eu.text.join("\n")==t){if(r.ranges.length%eu.text.length==0){u=[];for(var l=0;l<eu.text.length;l++)u.push(i.splitLines(eu.text[l]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=g(s,function(e){return[e]}));for(var c,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=P(d.line,d.ch-n):e.state.overwrite&&!a?h=P(h.line,Math.min(A(i,h.line).text.length,h.ch+m(s).length)):eu&&eu.lineWise&&eu.text.join("\n")==t&&(d=h=P(d.line,0))),c=e.curOp.updateInput;var v={from:d,to:h,text:u?u[f%u.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};Io(e.doc,v),_t(e,"inputRead",e,v)}t&&!a&&ea(e,t),Yn(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Zi(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||hr(t,function(){return Qi(t,n,0,null,"paste")}),!0}function ea(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s<i.electricChars.length;s++)if(t.indexOf(i.electricChars.charAt(s))>-1){a=Ji(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(A(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Ji(e,o.head.line,"smart"));a&&_t(e,"electricInput",e,o.head.line)}}}function ta(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,i={anchor:P(o,0),head:P(o+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function na(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function ra(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _a?e.style.width="1000px":e.setAttribute("wrap","off"),Oa&&(e.style.border="1px solid black"),na(e),t}function oa(e,t,n,r,o){function i(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new P(r,t.ch,t.sticky),l=A(e,r))}function a(r){var a;if(null==(a=o?vi(e.cm,l,t,n):mi(l,t,n))){if(r||!i())return!1;t=gi(o,e.cm,l,t.line,n)}else t=a;return!0}var s=t,u=n,l=A(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||a(!d);d=!1){var h=l.text.charAt(t.ch)||"\n",m=_(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||m||(m="s"),c&&c!=m){n<0&&(n=1,a(),t.sticky="after");break}if(m&&(c=m),n>0&&!a(!d))break}var g=Oo(e,t,s,u,!0);return B(s,g)&&(g.hitSide=!0),g}function ia(e,t,n,r){var o,i=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*Tn(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(var l;l=dn(e,a,o),l.outside;){if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=5*n}return l}function aa(e,t){var n=Vt(e,t.line);if(!n||n.hidden)return null;var r=A(e.doc,t.line),o=qt(n,r,t.line),i=we(r,e.doc.direction),a="left";if(i){a=ke(i,t.ch)%2?"right":"left"}var s=Jt(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function sa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ua(e,t){return t&&(e.bad=!0),e}function la(e,t,n,r,o){function i(e){return function(t){return t.id==e}}function a(){c&&(l+=f,p&&(l+=f),c=p=!1)}function s(e){e&&(a(),l+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void s(n);var l,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(P(r,0),P(o+1,0),i(+d));return void(h.length&&(l=h[0].find(0))&&s(O(e.doc,l.from,l.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&a();for(var g=0;g<t.childNodes.length;g++)u(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(p=!0),m&&(c=!0)}else 3==t.nodeType&&s(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(var l="",c=!1,f=e.doc.lineSeparator(),p=!1;u(t),t!=n;)t=t.nextSibling,p=!1;return l}function ca(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ua(e.clipPos(P(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var i=e.display.view[o];if(i.node==r)return fa(i,t,n)}}function fa(e,t,n){function r(t,n,r){for(var o=-1;o<(f?f.length:0);o++)for(var i=o<0?c.map:f[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==t||s==n){var u=D(o<0?e.line:e.rest[o]),l=i[a]+r;return(r<0||s!=t)&&(l=i[a+(r?1:0)]),P(u,l)}}}var o=e.text.firstChild,a=!1;if(!t||!i(o,t))return ua(P(D(e.line),0),!0);if(t==o&&(a=!0,t=o.childNodes[n],n=0,!t)){var s=e.rest?m(e.rest):e.line;return ua(P(D(s),s.text.length),a)}var u=3==t.nodeType?t:null,l=t;for(u||1!=t.childNodes.length||3!=t.firstChild.nodeType||(u=t.firstChild,n&&(n=u.nodeValue.length));l.parentNode!=o;)l=l.parentNode;var c=e.measure,f=c.maps,p=r(u,l,n);if(p)return ua(p,a);for(var d=l.nextSibling,h=u?u.nodeValue.length-n:0;d;d=d.nextSibling){if(p=r(d,d.firstChild,0))return ua(P(p.line,p.ch-h),a);h+=d.textContent.length}for(var g=l.previousSibling,v=n;g;g=g.previousSibling){if(p=r(g,g.firstChild,-1))return ua(P(p.line,p.ch+v),a);v+=g.textContent.length}}function pa(e,t){function n(){e.value=u.getValue()}if(t=t?c(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=a();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var o;if(e.form&&(ns(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var i=e.form;o=i.submit;try{var s=i.submit=function(){n(),i.submit=o,i.submit(),i.submit=s}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Ce(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=o))}},e.style.display="none";var u=Yi(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return u}var da=navigator.userAgent,ha=navigator.platform,ma=/gecko\/\d/i.test(da),ga=/MSIE \d/.test(da),va=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(da),ya=/Edge\/(\d+)/.exec(da),ba=ga||va||ya,Ta=ba&&(ga?document.documentMode||6:+(ya||va)[1]),_a=!ya&&/WebKit\//.test(da),Ea=_a&&/Qt\/\d+\.\d+/.test(da),ka=!ya&&/Chrome\//.test(da),wa=/Opera\//.test(da),xa=/Apple Computer/.test(navigator.vendor),Ca=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(da),Aa=/PhantomJS/.test(da),Oa=!ya&&/AppleWebKit/.test(da)&&/Mobile\/\w+/.test(da),Sa=/Android/.test(da),Na=Oa||Sa||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(da),Da=Oa||/Mac/.test(ha),Ia=/\bCrOS\b/.test(da),Ma=/win/i.test(ha),La=wa&&da.match(/Version\/(\d*\.\d*)/);La&&(La=Number(La[1])),La&&La>=15&&(wa=!1,_a=!0);var Pa,Ra=Da&&(Ea||wa&&(null==La||La<12.11)),Ba=ma||ba&&Ta>=9,ja=function(t,n){var r=t.className,o=e(n).exec(r);if(o){var i=r.slice(o.index+o[0].length);t.className=r.slice(0,o.index)+(i?o[1]+i:"")}};Pa=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Fa=function(e){e.select()};Oa?Fa=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ba&&(Fa=function(e){try{e.select()}catch(e){}});var Ha=function(){this.id=null};Ha.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Ua,za,Ka=30,qa={toString:function(){return"CodeMirror.Pass"}},Wa={scroll:!1},Ga={origin:"*mouse"},Va={origin:"+move"},Ya=[""],$a=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ja=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Xa=!1,Qa=!1,Za=null,es=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,r){var l="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!o.test(n))return!1;for(var c=n.length,f=[],p=0;p<c;++p)f.push(e(n.charCodeAt(p)));for(var d=0,h=l;d<c;++d){var g=f[d];"m"==g?f[d]=h:h=g}for(var v=0,y=l;v<c;++v){var b=f[v];"1"==b&&"r"==y?f[v]="n":a.test(b)&&(y=b,"r"==b&&(f[v]="R"))}for(var T=1,_=f[0];T<c-1;++T){var E=f[T];"+"==E&&"1"==_&&"1"==f[T+1]?f[T]="1":","!=E||_!=f[T+1]||"1"!=_&&"n"!=_||(f[T]=_),_=E}for(var k=0;k<c;++k){var w=f[k];if(","==w)f[k]="N";else if("%"==w){var x=void 0;for(x=k+1;x<c&&"%"==f[x];++x);for(var C=k&&"!"==f[k-1]||x<c&&"1"==f[x]?"1":"N",A=k;A<x;++A)f[A]=C;k=x-1}}for(var O=0,S=l;O<c;++O){var N=f[O];"L"==S&&"1"==N?f[O]="L":a.test(N)&&(S=N)}for(var D=0;D<c;++D)if(i.test(f[D])){var I=void 0;for(I=D+1;I<c&&i.test(f[I]);++I);for(var M="L"==(D?f[D-1]:l),L="L"==(I<c?f[I]:l),P=M==L?M?"L":"R":l,R=D;R<I;++R)f[R]=P;D=I-1}for(var B,j=[],F=0;F<c;)if(s.test(f[F])){var H=F;for(++F;F<c&&s.test(f[F]);++F);j.push(new t(0,H,F))}else{var U=F,z=j.length;for(++F;F<c&&"L"!=f[F];++F);for(var K=U;K<F;)if(u.test(f[K])){U<K&&j.splice(z,0,new t(1,U,K));var q=K;for(++K;K<F&&u.test(f[K]);++K);j.splice(z,0,new t(2,q,K)),U=K}else++K;U<F&&j.splice(z,0,new t(1,U,F))}return"ltr"==r&&(1==j[0].level&&(B=n.match(/^\s+/))&&(j[0].from=B[0].length,j.unshift(new t(0,0,B[0].length))),1==m(j).level&&(B=n.match(/\s+$/))&&(m(j).to-=B[0].length,j.push(new t(0,c-B[0].length,c)))),"rtl"==r?j.reverse():j}}(),ts=[],ns=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ts).concat(n)}},rs=function(){if(ba&&Ta<9)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),os=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},is=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},as=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),ss=null,us={},ls={},cs={},fs=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};fs.prototype.eol=function(){return this.pos>=this.string.length},fs.prototype.sol=function(){return this.pos==this.lineStart},fs.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fs.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fs.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},fs.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},fs.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},fs.prototype.skipToEnd=function(){this.pos=this.string.length},fs.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},fs.prototype.backUp=function(e){this.pos-=e},fs.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},fs.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},fs.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},fs.prototype.current=function(){return this.string.slice(this.start,this.pos)},fs.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},fs.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},fs.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ps=function(e,t){this.state=e,this.lookAhead=t},ds=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};ds.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ds.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ds.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ds.fromSaved=function(e,t,n){return t instanceof ps?new ds(e,Ge(e.mode,t.state),n,t.lookAhead):new ds(e,Ge(e.mode,t),n)},ds.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ps(t,this.maxLookAhead):t};var hs=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},ms=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};ms.prototype.lineNo=function(){return D(this)},De(ms);var gs,vs={},ys={},bs=null,Ts=null,_s={left:0,right:0,top:0,bottom:0},Es=function(e,t,n){this.cm=n;var o=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=i.tabIndex=-1,e(o),e(i),ns(o,"scroll",function(){o.clientHeight&&t(o.scrollTop,"vertical")}),ns(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ba&&Ta<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Es.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Es.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Es.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Es.prototype.zeroWidthHack=function(){var e=Da&&!Ca?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ha,this.disableVert=new Ha},Es.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},Es.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ks=function(){};ks.prototype.update=function(){return{bottom:0,right:0}},ks.prototype.setScrollLeft=function(){},ks.prototype.setScrollTop=function(){},ks.prototype.clear=function(){};var ws={native:Es,null:ks},xs=0,Cs=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Hn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ut(e),this.force=n,this.dims=En(e),this.events=[]};Cs.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Cs.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)Ae.apply(null,e.events[t])};var As=0,Os=null;ba?Os=-.53:ma?Os=15:ka?Os=-.7:xa&&(Os=-1/3);var Ss=function(e,t){this.ranges=e,this.primIndex=t};Ss.prototype.primary=function(){return this.ranges[this.primIndex]},Ss.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],o=e.ranges[n];if(!B(r.anchor,o.anchor)||!B(r.head,o.head))return!1}return!0},Ss.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new Ns(j(e.ranges[n].anchor),j(e.ranges[n].head));return new Ss(t,this.primIndex)},Ss.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},Ss.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var o=n.ranges[r];if(R(t,o.from())>=0&&R(e,o.to())<=0)return r}return-1};var Ns=function(e,t){this.anchor=e,this.head=t};Ns.prototype.from=function(){return H(this.anchor,this.head)},Ns.prototype.to=function(){return F(this.anchor,this.head)},Ns.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,o=e+t;r<o;++r){var i=n.lines[r];n.height-=i.height,st(i),_t(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var o=0;o<t.length;++o)t[o].parent=r},iterN:function(e,t,n){for(var r=this,o=e+t;e<o;++e)if(n(r.lines[e]))return!0}},qo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var o=n.children[r],i=o.chunkSize();if(e<i){var a=Math.min(t,i-e),s=o.height;if(o.removeInner(e,a),n.height-=s-o.height,i==a&&(n.children.splice(r--,1),o.parent=null),0==(t-=a))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Ko))){var u=[];this.collapse(u),this.children=[new Ko(u)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var o=0;o<this.children.length;++o){var i=r.children[o],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var s=i.lines.length%25+25,u=s;u<i.lines.length;){var l=new Ko(i.lines.slice(u,u+=25));i.height-=l.height,r.children.splice(++o,0,l),l.parent=r}i.lines=i.lines.slice(0,s),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new qo(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=p(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var o=new qo(e.children);o.parent=e,e.children=[o,n],e=o}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,o=0;o<this.children.length;++o){var i=r.children[o],a=i.chunkSize();if(e<a){var s=Math.min(t,a-e);if(i.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=a}}};var Ds=function(e,t,n){var r=this;if(n)for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);this.doc=e,this.node=t};Ds.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,o=D(r);if(null!=o&&n){for(var i=0;i<n.length;++i)n[i]==e&&n.splice(i--,1);n.length||(r.widgets=null);var a=Pt(this);N(r,Math.max(0,r.height-a)),t&&(hr(t,function(){Wo(t,r,-a),br(t,o,"widget")}),_t(t,"lineWidgetCleared",t,this,o))}},Ds.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var o=Pt(this)-t;o&&(ve(this.doc,r)||N(r,r.height+o),n&&hr(n,function(){n.curOp.forceUpdate=!0,Wo(n,r,o),_t(n,"lineWidgetChanged",n,e,D(r))}))},De(Ds);var Is=0,Ms=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Is};Ms.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&ar(t),Ne(this,"clear")){var r=this.find();r&&_t(this,"clear",r.from,r.to)}for(var o=null,i=null,a=0;a<this.lines.length;++a){var s=e.lines[a],u=Y(s.markedSpans,e);t&&!e.collapsed?br(t,D(s),"text"):t&&(null!=u.to&&(i=D(s)),null!=u.from&&(o=D(s))),s.markedSpans=$(s.markedSpans,u),null==u.from&&e.collapsed&&!ve(e.doc,s)&&t&&N(s,Tn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=pe(e.lines[l]),f=Te(c);f>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=o&&t&&this.collapsed&&yr(t,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&xo(t.doc)),t&&_t(t,"markerCleared",t,this,o,i),n&&sr(t),this.parent&&this.parent.clear()}},Ms.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,o,i=0;i<this.lines.length;++i){var a=n.lines[i],s=Y(a.markedSpans,n);if(null!=s.from&&(r=P(t?a:D(a),s.from),-1==e))return r;if(null!=s.to&&(o=P(t?a:D(a),s.to),1==e))return o}return r&&{from:r,to:o}},Ms.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&hr(r,function(){var o=t.line,i=D(t.line),a=Vt(r,i);if(a&&(en(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ve(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var u=Pt(n)-s;u&&N(o,o.height+u)}_t(r,"markerChanged",r,e)})},Ms.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=p(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ms.prototype.detachLine=function(e){if(this.lines.splice(p(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},De(Ms);var Ls=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};Ls.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();_t(this,"clear")}},Ls.prototype.find=function(e,t){return this.primary.find(e,t)},De(Ls);var Ps=0,Rs=function(e,t,n,r,o){if(!(this instanceof Rs))return new Rs(e,t,n,r,o);null==n&&(n=0),qo.call(this,[new Ko([new ms("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=P(n,0);this.sel=Ur(i),this.history=new to(null),this.id=++Ps,this.modeOption=t,this.lineSep=r,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Jr(this,{from:i,to:i,text:e}),Eo(this,Ur(i),Wa)};Rs.prototype=b(qo.prototype,{constructor:Rs,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=S(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:vr(function(e){var t=P(this.first,0),n=this.first+this.size-1;Io(this,{from:t,to:P(n,A(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&$n(this.cm,0,0),Eo(this,Ur(t),Wa)}),replaceRange:function(e,t,n,r){t=z(this,t),n=n?z(this,n):t,jo(this,e,t,n,r)},getRange:function(e,t,n){var r=O(this,z(this,e),z(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(M(this,e))return A(this,e)},getLineNumber:function(e){return D(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=A(this,e)),pe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return z(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vr(function(e,t,n){bo(this,z(this,"number"==typeof e?P(e,t||0):e),null,n)}),setSelection:vr(function(e,t,n){bo(this,z(this,e),z(this,t||e),n)}),extendSelection:vr(function(e,t,n){go(this,z(this,e),t&&z(this,t),n)}),extendSelections:vr(function(e,t){vo(this,q(this,e),t)}),extendSelectionsBy:vr(function(e,t){vo(this,q(this,g(this.sel.ranges,e)),t)}),setSelections:vr(function(e,t,n){var r=this;if(e.length){for(var o=[],i=0;i<e.length;i++)o[i]=new Ns(z(r,e[i].anchor),z(r,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Eo(this,Hr(o,t),n)}}),addSelection:vr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ns(z(this,e),z(this,t||e))),Eo(this,Hr(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,o=0;o<r.length;o++){var i=O(n,r[o].from(),r[o].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,o=0;o<r.length;o++){var i=O(t,r[o].from(),r[o].to());!1!==e&&(i=i.join(e||t.lineSeparator())),n[o]=i}return n},replaceSelection:function(e,t,n){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:vr(function(e,t,n){for(var r=this,o=[],i=this.sel,a=0;a<i.ranges.length;a++){var s=i.ranges[a];o[a]={from:s.from(),to:s.to(),text:r.splitLines(e[a]),origin:n}}for(var u=t&&"end"!=t&&Gr(this,o,t),l=o.length-1;l>=0;l--)Io(r,o[l]);u?_o(this,u):this.cm&&Yn(this.cm)}),undo:vr(function(){Lo(this,"undo")}),redo:vr(function(){Lo(this,"redo")}),undoSelection:vr(function(){Lo(this,"undo",!0)}),redoSelection:vr(function(){Lo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new to(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ho(this.history.done),undone:ho(this.history.undone)}},setHistory:function(e){var t=this.history=new to(this.history.maxGeneration);t.done=ho(e.done.slice(0),null,!0),t.undone=ho(e.undone.slice(0),null,!0)},setGutterMarker:vr(function(e,t,n){return zo(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&E(r)&&(e.gutterMarkers=null),!0})}),clearGutter:vr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&zo(t,n,"gutter",function(){return n.gutterMarkers[e]=null,E(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!M(this,e))return null;if(t=e,!(e=A(this,e)))return null}else if(null==(t=D(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:vr(function(t,n,r){return zo(this,t,"gutter"==n?"gutter":"class",function(t){var o="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[o]){if(e(r).test(t[o]))return!1;t[o]+=" "+r}else t[o]=r;return!0})}),removeLineClass:vr(function(t,n,r){return zo(this,t,"gutter"==n?"gutter":"class",function(t){var o="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",i=t[o];if(!i)return!1;if(null==r)t[o]=null;else{var a=i.match(e(r));if(!a)return!1;var s=a.index+a[0].length;t[o]=i.slice(0,a.index)+(a.index&&s!=i.length?" ":"")+i.slice(s)||null}return!0})}),addLineWidget:vr(function(e,t,n){return Go(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Vo(this,z(this,e),z(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=z(this,e),Vo(this,e,e,n,"bookmark")},findMarksAt:function(e){e=z(this,e);var t=[],n=A(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];(null==o.from||o.from<=e.ch)&&(null==o.to||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=z(this,e),t=z(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;s++){var u=a[s];null!=u.to&&o==e.line&&e.ch>=u.to||null==u.from&&o!=e.line||null!=u.from&&o==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(o){var i=o.text.length+r;if(i>e)return t=e,!0;e-=i,++n}),z(this,P(n,t))},indexFromPos:function(e){e=z(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Rs(S(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Rs(S(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Jo(r,$o(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Yi&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Xo($o(t));break}}if(e.history==this.history){var o=[e.id];Xr(e,function(e){return o.push(e.id)},!0),e.history=new to(null),e.history.done=ho(this.history.done,o),e.history.undone=ho(this.history.undone,o)}},iterLinkedDocs:function(e){Xr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):os(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:vr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&eo(this.cm))})}),Rs.prototype.eachLine=Rs.prototype.iter;for(var Bs=0,js=!1,Fs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Hs=0;Hs<10;Hs++)Fs[Hs+48]=Fs[Hs+96]=String(Hs);for(var Us=65;Us<=90;Us++)Fs[Us]=String.fromCharCode(Us);for(var zs=1;zs<=12;zs++)Fs[zs+111]=Fs[zs+63235]="F"+zs;var Ks={};Ks.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ks.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ks.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ks.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ks.default=Da?Ks.macDefault:Ks.pcDefault;var qs={selectAll:No,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Wa)},killLine:function(e){return di(e,function(t){if(t.empty()){var n=A(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:P(t.head.line+1,0)}:{from:t.head,to:P(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return di(e,function(t){return{from:P(t.from().line,0),to:z(e.doc,P(t.to().line+1,0))}})},delLineLeft:function(e){return di(e,function(e){return{from:P(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return di(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return di(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(P(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(P(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return yi(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Ti(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return bi(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Va)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Va)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Ti(e,t.head):r},Va)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,o=0;o<n.length;o++){var i=n[o].from(),a=f(e.getLine(i.line),i.ch,r);t.push(h(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return hr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var o=t[r].head,i=A(e.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new P(o.line,o.ch-1)),o.ch>0)o=new P(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),P(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=A(e.doc,o.line-1).text;a&&(o=new P(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),P(o.line-1,a.length-1),o,"+transpose"))}n.push(new Ns(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return hr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Yn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},Ws=new Ha,Gs=null,Vs=function(e,t,n){this.time=e,this.pos=t,this.button=n};Vs.prototype.compare=function(e,t,n){return this.time+400>e&&0==R(t,this.pos)&&n==this.button};var Ys,$s,Js={toString:function(){return"CodeMirror.Init"}},Xs={},Qs={};Yi.defaults=Xs,Yi.optionHandlers=Qs;var Zs=[];Yi.defineInitHook=function(e){return Zs.push(e)};var eu=null,tu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ha,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tu.prototype.init=function(e){function t(e){if(!Oe(o,e)){if(o.somethingSelected())Xi({lineWise:!1,text:o.getSelections()}),"cut"==e.type&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var t=ta(o);Xi({lineWise:!0,text:t.text}),"cut"==e.type&&o.operation(function(){o.setSelections(t.ranges,0,Wa),o.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=eu.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=ra(),s=a.firstChild;o.display.lineSpace.insertBefore(a,o.display.lineSpace.firstChild),s.value=eu.text.join("\n");var u=document.activeElement;Fa(s),setTimeout(function(){o.display.lineSpace.removeChild(a),u.focus(),u==i&&r.showPrimarySelection()},50)}}var n=this,r=this,o=r.cm,i=r.div=e.lineDiv;na(i,o.options.spellcheck),ns(i,"paste",function(e){Oe(o,e)||Zi(e,o)||Ta<=11&&setTimeout(mr(o,function(){return n.updateFromDOM()}),20)}),ns(i,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),ns(i,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),ns(i,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ns(i,"touchstart",function(){return r.forceCompositionEnd()}),ns(i,"input",function(){n.composing||n.readFromDOMSoon()}),ns(i,"copy",t),ns(i,"cut",t)},tu.prototype.prepareSelection=function(){var e=Sn(this.cm,!1);return e.focus=this.cm.state.focused,e},tu.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tu.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tu.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),o=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line<t.display.viewFrom)return void e.removeAllRanges();var i=ca(t,e.anchorNode,e.anchorOffset),a=ca(t,e.focusNode,e.focusOffset);if(!i||i.bad||!a||a.bad||0!=R(H(i,a),r)||0!=R(F(i,a),o)){var s=t.display.view,u=r.line>=t.display.viewFrom&&aa(t,r)||{node:s[0].measure.map[2],offset:0},l=o.line<t.display.viewTo&&aa(t,o);if(!l){var c=s[s.length-1].measure,f=c.maps?c.maps[c.maps.length-1]:c.map;l={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!u||!l)return void e.removeAllRanges();var p,d=e.rangeCount&&e.getRangeAt(0);try{p=Pa(u.node,u.offset,l.offset,l.node)}catch(e){}p&&(!ma&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),d&&null==e.anchorNode?e.addRange(d):ma&&this.startGracePeriod()),this.rememberSelection()}},tu.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},tu.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},tu.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tu.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return i(this.div,t)},tu.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tu.prototype.blur=function(){this.div.blur()},tu.prototype.getField=function(){return this.div},tu.prototype.supportsTouch=function(){return!0},tu.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():hr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},tu.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tu.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(Sa&&ka&&this.cm.options.gutters.length&&sa(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ca(t,e.anchorNode,e.anchorOffset),r=ca(t,e.focusNode,e.focusOffset);n&&r&&hr(t,function(){Eo(t.doc,Ur(n,r),Wa),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},tu.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),o=n.to();if(0==r.ch&&r.line>e.firstLine()&&(r=P(r.line-1,A(e.doc,r.line-1).length)),o.ch==A(e.doc,o.line).text.length&&o.line<e.lastLine()&&(o=P(o.line+1,0)),r.line<t.viewFrom||o.line>t.viewTo-1)return!1;var i,a,s;r.line==t.viewFrom||0==(i=An(e,r.line))?(a=D(t.view[0].line),s=t.view[0].node):(a=D(t.view[i].line),s=t.view[i-1].node.nextSibling);var u,l,c=An(e,o.line);if(c==t.view.length-1?(u=t.viewTo-1,l=t.lineDiv.lastChild):(u=D(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(la(e,s,l,a,u)),p=O(e.doc,P(a,0),P(u,A(e.doc,u).text.length));f.length>1&&p.length>1;)if(m(f)==m(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),a++}for(var d=0,h=0,g=f[0],v=p[0],y=Math.min(g.length,v.length);d<y&&g.charCodeAt(d)==v.charCodeAt(d);)++d;for(var b=m(f),T=m(p),_=Math.min(b.length-(1==f.length?d:0),T.length-(1==p.length?d:0));h<_&&b.charCodeAt(b.length-h-1)==T.charCodeAt(T.length-h-1);)++h;if(1==f.length&&1==p.length&&a==r.line)for(;d&&d>r.ch&&b.charCodeAt(b.length-h-1)==T.charCodeAt(T.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var E=P(a,d),k=P(u,p.length?m(p).length-h:0);return f.length>1||f[0]||R(E,k)?(jo(e.doc,f,E,k,"+input"),!0):void 0},tu.prototype.ensurePolled=function(){this.forceCompositionEnd()},tu.prototype.reset=function(){this.forceCompositionEnd()},tu.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tu.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},tu.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||hr(this.cm,function(){return yr(e.cm)})},tu.prototype.setUneditable=function(e){e.contentEditable="false"},tu.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||mr(this.cm,Qi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tu.prototype.onContextMenu=function(){},tu.prototype.resetPosition=function(){},tu.prototype.needsContentAttribute=!0;var nu=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ha,this.hasSelection=!1,this.composing=null};nu.prototype.init=function(e){function t(e){if(!Oe(o,e)){if(o.somethingSelected())Xi({lineWise:!1,text:o.getSelections()});else{if(!o.options.lineWiseCopyCut)return;var t=ta(o);Xi({lineWise:!0,text:t.text}),"cut"==e.type?o.setSelections(t.ranges,null,Wa):(r.prevInput="",i.value=t.text.join("\n"),Fa(i))}"cut"==e.type&&(o.state.cutIncoming=!0)}}var n=this,r=this,o=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Oa&&(i.style.width="0px"),ns(i,"input",function(){ba&&Ta>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),ns(i,"paste",function(e){Oe(o,e)||Zi(e,o)||(o.state.pasteIncoming=!0,r.fastPoll())}),ns(i,"cut",t),ns(i,"copy",t),ns(e.scroller,"paste",function(t){Rt(e,t)||Oe(o,t)||(o.state.pasteIncoming=!0,r.focus())}),ns(e.lineSpace,"selectstart",function(t){Rt(e,t)||Ie(t)}),ns(i,"compositionstart",function(){var e=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:o.markText(e,o.getCursor("to"),{className:"CodeMirror-composing"})}}),ns(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},nu.prototype.createField=function(e){this.wrapper=ra(),this.textarea=this.wrapper.firstChild},nu.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Sn(e);if(e.options.moveInputWithCursor){var o=cn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},nu.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},nu.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Fa(this.textarea),ba&&Ta>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ba&&Ta>=9&&(this.hasSelection=null))}},nu.prototype.getField=function(){return this.textarea},nu.prototype.supportsTouch=function(){return!1},nu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Na||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},nu.prototype.blur=function(){this.textarea.blur()},nu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nu.prototype.receivedFocus=function(){this.slowPoll()},nu.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},nu.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},nu.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||is(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(ba&&Ta>=9&&this.hasSelection===o||Da&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,o.length);a<s&&r.charCodeAt(a)==o.charCodeAt(a);)++a;return hr(t,function(){Qi(t,o.slice(a),r.length-a,null,e.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nu.prototype.onKeyPress=function(){ba&&Ta>=9&&(this.hasSelection=null),this.fastPoll()},nu.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=o.somethingSelected(),t="\u200b"+(e?a.value:"");a.value="\u21da",a.value=t,r.prevInput=e?"":"\u200b",a.selectionStart=1,a.selectionEnd=t.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=l,ba&&Ta<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=a.selectionStart){(!ba||ba&&Ta<9)&&t();var e=0,n=function(){i.selForContextMenu==o.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"\u200b"==r.prevInput?mr(o,No)(o):e++<10?i.detectingSelectAll=setTimeout(n,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,a=r.textarea,s=Cn(o,e),u=i.scroller.scrollTop;if(s&&!wa){o.options.resetSelectionOnContextMenu&&-1==o.doc.sel.contains(s)&&mr(o,Eo)(o.doc,Ur(s),Wa);var l=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(ba?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var p;if(_a&&(p=window.scrollY),i.input.focus(),_a&&window.scrollTo(null,p),i.input.reset(),o.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),ba&&Ta>=9&&t(),Ba){Pe(e);var d=function(){Ce(window,"mouseup",d),setTimeout(n,20)};ns(window,"mouseup",d)}else setTimeout(n,50)}},nu.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},nu.prototype.setUneditable=function(){},nu.prototype.needsContentAttribute=!1,function(e){function t(t,r,o,i){e.defaults[t]=r,o&&(n[t]=i?function(e,t,n){n!=Js&&o(e,t,n)}:o)}var n=e.optionHandlers;e.defineOption=t,e.Init=Js,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Vr(e)},!0),t("indentUnit",2,Vr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Yr(e),nn(e),yr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(P(r,i))}r++});for(var o=n.length-1;o>=0;o--)jo(e.doc,t,n[o],P(n[o].line,n[o].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Js&&e.refresh()}),t("specialCharPlaceholder",ct,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Na?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Ma),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){qi(e),Wi(e)},!0),t("keyMap","default",function(e,t,n){var r=pi(t),o=n!=Js&&pi(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Vi,!0),t("gutters",[],function(e){Rr(e.options),Wi(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?kn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return rr(e)},!0),t("scrollbarStyle","native",function(e){ir(e),rr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Rr(e.options),Wi(e)},!0),t("firstLineNumber",1,Wi,!0),t("lineNumberFormatter",function(e){return e},Wi,!0),t("showCursorWhenSelecting",!1,On,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Bn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Gi),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,On,!0),t("singleCursorHeightPerLine",!0,On,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Yr,!0),t("addModeClass",!1,Yr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Yr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Yi),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&mr(this,t[e])(this,n,o),Ae(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](pi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:gr(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");v(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,yr(this)}),removeOverlay:gr(function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var o=n[r].modeSpec;if(o==e||"string"==typeof e&&o.name==e)return n.splice(r,1),t.state.modeGen++,void yr(t)}}),indentLine:gr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),M(this.doc,e)&&Ji(this,e,t,n)}),indentSelection:gr(function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,o=0;o<n.length;o++){var i=n[o];if(i.empty())i.head.line>r&&(Ji(t,i.head.line,e,!0),r=i.head.line,o==t.doc.sel.primIndex&&Yn(t));else{var a=i.from(),s=i.to(),u=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=u;l<r;++l)Ji(t,l,e);var c=t.doc.sel.ranges;0==a.ch&&n.length==c.length&&c[o].from().ch>0&&yo(t.doc,o,new Ns(a,c[o].to()),Wa)}}}),getTokenAt:function(e,t){return tt(this,e,t)},getLineTokens:function(e,t){return tt(this,P(e),t,!0)},getTokenTypeAt:function(e){e=z(this.doc,e);var t,n=Je(this,A(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]<i)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,o=[];if(!n.hasOwnProperty(t))return o;var i=n[t],a=this.getModeAt(e);if("string"==typeof a[t])i[a[t]]&&o.push(i[a[t]]);else if(a[t])for(var s=0;s<a[t].length;s++){var u=i[a[t][s]];u&&o.push(u)}else a.helperType&&i[a.helperType]?o.push(i[a.helperType]):i[a.name]&&o.push(i[a.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(a,r)&&-1==p(o,c.val)&&o.push(c.val)}return o},getStateAfter:function(e,t){var n=this.doc;return e=U(n,null==e?n.first+n.size-1:e),Xe(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?z(this.doc,e):e?r.from():r.to(),cn(this,n,t||"page")},charCoords:function(e,t){return ln(this,z(this.doc,e),t||"page")},coordsChar:function(e,t){return e=un(this,e,t||"page"),dn(this,e.left,e.top)},lineAtHeight:function(e,t){return e=un(this,{top:e,left:0},t||"page").top,I(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,o=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,o=!0),r=A(this.doc,e)}else r=e;return sn(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-be(r):0)},defaultTextHeight:function(){return Tn(this.display)},defaultCharWidth:function(){return _n(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display;e=cn(this,z(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(i.wrapper.clientHeight,this.doc.height),l=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&Wn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:gr(Ai),triggerOnKeyPress:gr(Ni),triggerOnKeyUp:Si,triggerOnMouseDown:gr(Ii),execCommand:function(e){if(qs.hasOwnProperty(e))return qs[e].call(null,this)},triggerElectric:gr(function(e){ea(this,e)}),findPosH:function(e,t,n,r){var o=this,i=1;t<0&&(i=-1,t=-t);for(var a=z(this.doc,e),s=0;s<t&&(a=oa(o.doc,a,i,n,r),!a.hitSide);++s);return a},moveH:gr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?oa(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Va)}),deleteH:gr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):di(this,function(n){var o=oa(r,n.head,e,t,!1);return e<0?{from:o,to:n.head}:{from:n.head,to:o}})}),findPosV:function(e,t,n,r){var o=this,i=1,a=r;t<0&&(i=-1,t=-t);for(var s=z(this.doc,e),u=0;u<t;++u){var l=cn(o,s,"div");if(null==a?a=l.left:l.left=a,s=ia(o,l,i,n),s.hitSide)break}return s},moveV:gr(function(e,t){var n=this,r=this.doc,o=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(i)return e<0?a.from():a.to();var s=cn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var u=ia(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Vn(n,ln(n,u,"div").top-s.top),u},Va),o.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=o[a]}),findWordAt:function(e){var t=this.doc,n=A(t,e.line).text,r=e.ch,o=e.ch;if(n){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&o!=n.length||!r?++o:--r;for(var a=n.charAt(r),s=_(a,i)?function(e){return _(e,i)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!_(e)};r>0&&s(n.charAt(r-1));)--r;for(;o<n.length&&s(n.charAt(o));)++o}return new Ns(P(e.line,r),P(e.line,o))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):ja(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:gr(function(e,t){$n(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ht(this)-this.display.barHeight,width:e.scrollWidth-Ht(this)-this.display.barWidth,clientHeight:zt(this),clientWidth:Ut(this)}},scrollIntoView:gr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:P(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Jn(this,e):Qn(this,e.from,e.to,e.margin)}),setSize:gr(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&tn(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){br(n,o,"widget");break}++o}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(e){return hr(this,e)},startOperation:function(){return ar(this)},endOperation:function(){return sr(this)},refresh:gr(function(){var e=this.display.cachedTextHeight;yr(this),this.curOp.forceUpdate=!0,nn(this),$n(this,this.doc.scrollLeft,this.doc.scrollTop),Mr(this),(null==e||Math.abs(e-Tn(this.display))>.5)&&xn(this),Ae(this,"refresh",this)}),swapDoc:gr(function(e){var t=this.doc;return t.cm=null,Qr(this,e),nn(this),this.display.input.reset(),$n(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,_t(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},De(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(Yi);var ru="iter insert remove copy getEditor constructor".split(" ");for(var ou in Rs.prototype)Rs.prototype.hasOwnProperty(ou)&&p(ru,ou)<0&&(Yi.prototype[ou]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rs.prototype[ou]));return De(Rs),Yi.inputStyles={textarea:nu,contenteditable:tu},Yi.defineMode=function(e){Yi.defaults.mode||"null"==e||(Yi.defaults.mode=e),Ue.apply(this,arguments)},Yi.defineMIME=ze,Yi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Yi.defineMIME("text/plain","null"),Yi.defineExtension=function(e,t){Yi.prototype[e]=t},Yi.defineDocExtension=function(e,t){Rs.prototype[e]=t},Yi.fromTextArea=pa,function(e){e.off=Ce,e.on=ns,e.wheelEventPixels=jr,e.Doc=Rs,e.splitLines=os,e.countColumn=f,e.findColumn=d,e.isWordChar=T,e.Pass=qa,e.signal=Ae,e.Line=ms,e.changeEnd=zr,e.scrollbarModel=ws,e.Pos=P,e.cmpPos=R,e.modes=us,e.mimeModes=ls,e.resolveMode=Ke,e.getMode=qe,e.modeExtensions=cs,e.extendMode=We,e.copyState=Ge,e.startState=Ye,e.innerMode=Ve,e.commands=qs,e.keyMap=Ks,e.keyName=fi,e.isModifierKey=li,e.lookupKey=ui,e.normalizeKeyMap=si,e.StringStream=fs,e.SharedTextMarker=Ls,e.TextMarker=Ms,e.LineWidget=Ds,e.e_preventDefault=Ie,e.e_stopPropagation=Me,e.e_stop=Pe,e.addClass=s,e.contains=i,e.rmClass=ja,e.keyNames=Fs}(Yi),Yi.version="5.39.2",Yi})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e),this.observers={}}return e.prototype.on=function(e,t){var n=this;e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})},e.prototype.off=function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)})}if(this.observers["*"]){[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}},e}();t.a=o},function(e,t,n){"use strict";function r(e){return null==e?"":""+e}function o(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}function i(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"===typeof e}for(var i="string"!==typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function l(e,t,n){for(var r in t)r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):l(e[r],t[r],n):e[r]=t[r];return e}function c(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function f(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,function(e){return p[e]}):e}t.e=r,t.a=o,t.h=a,t.f=s,t.d=u,t.b=l,t.g=c,t.c=f;var p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"}},function(e,t,n){e.exports=n(283)()},function(e,t,n){e.exports=n(285)},function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=void 0,r={randomId:function(){return Math.random().toString(36).split(".")[1]},returnFirstDefined:function(){for(var e=void 0,t=void 0,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];for(t=0;t<r.length;t++)if("undefined"!==typeof r[t]){e=r[t];break}return e},styleToObj:function(e){var t={},n=void 0,r=void 0,o=e&&e.split(";").filter(Boolean);for(n=0;n<o.length;n++)r=o[n].split(":"),t[r.splice(0,1)[0].trim()]=r.join(":").trim();return t},setGlobalConfig:function(e){"object"===("undefined"===typeof e?"undefined":t(e))&&(n=e)},getGlobalConfig:function(){return n}};e.default=r})},function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=function(e,n){return[].concat(t(e),[n.data])},r=function(e,n){var r=e.slice().filter(function(e){return e.id===n.data.id});if(Array.isArray(r)){var o=e.indexOf(r[0]);return[].concat(t(e.slice(0,o)),t(e.slice(o+1)))}return e},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"INSERT":return n(e,t);case"REMOVE":return r(e,t);case"REMOVEALL":return[];default:return e}},i=function(e){var t=void 0,n=[],r=function(){return t},o=function(r){t=e(t,r),n.forEach(function(e){return e()})},i=function(e){return n.push(e),function(){n=n.filter(function(t){return t!==e})}};return o({}),{getState:r,dispatch:o,subscribe:i}}(o);e.default=i})},function(e,t,n){function r(){}function o(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var r=i(e.data);if(!1===r)return v;n+=r}return p("encoded %j as %s",e,n),n}function i(e){try{return JSON.stringify(e)}catch(e){return!1}}function a(e,t){function n(e){var n=h.deconstructPacket(e),r=o(n.packet),i=n.buffers;i.unshift(r),t(i)}h.removeBlobs(e,n)}function s(){this.reconstructor=null}function u(e){var n=0,r={type:Number(e.charAt(0))};if(null==t.types[r.type])return f("unknown packet type "+r.type);if(t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type){for(var o="";"-"!==e.charAt(++n)&&(o+=e.charAt(n),n!=e.length););if(o!=Number(o)||"-"!==e.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(n+1))for(r.nsp="";++n;){var i=e.charAt(n);if(","===i)break;if(r.nsp+=i,n===e.length)break}else r.nsp="/";var a=e.charAt(n+1);if(""!==a&&Number(a)==a){for(r.id="";++n;){var i=e.charAt(n);if(null==i||Number(i)!=i){--n;break}if(r.id+=e.charAt(n),n===e.length)break}r.id=Number(r.id)}if(e.charAt(++n)){var s=l(e.substr(n));if(!(!1!==s&&(r.type===t.ERROR||m(s))))return f("invalid payload");r.data=s}return p("decoded %s as %j",e,r),r}function l(e){try{return JSON.parse(e)}catch(e){return!1}}function c(e){this.reconPack=e,this.buffers=[]}function f(e){return{type:t.ERROR,data:"parser error: "+e}}var p=n(294)("socket.io-parser"),d=n(27),h=n(296),m=n(136),g=n(137);t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=r,t.Decoder=s;var v=t.ERROR+'"encode error"';r.prototype.encode=function(e,n){if(p("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)a(e,n);else{n([o(e)])}},d(s.prototype),s.prototype.add=function(e){var n;if("string"===typeof e)n=u(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new c(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!g(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){(function(t){var r=n(299);e.exports=function(e){var n=e.xdomain,o=e.xscheme,i=e.enablesXDR;try{if("undefined"!==typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!==typeof XDomainRequest&&!o&&i)return new XDomainRequest}catch(e){}if(!n)try{return new(t[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}).call(t,n(3))},function(e,t,n){function r(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}var o=n(28),i=n(27);e.exports=r,i(r.prototype),r.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var t=o.decodePacket(e,this.socket.binaryType);this.onPacket(t)},r.prototype.onPacket=function(e){this.emit("packet",e)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){"use strict";function r(e){u=s({},u,e)}function o(){return u}function i(e){l=e}function a(){return l}t.d=r,t.a=o,t.e=i,t.b=a,n.d(t,"c",function(){return c});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u={wait:!1,withRef:!1,bindI18n:"languageChanged loaded",bindStore:"added removed",translateFuncName:"t",nsMode:"default",usePureComponent:!1},l=void 0,c={type:"3rdParty",init:function(e){r(e.options.react),i(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(E===setTimeout)return setTimeout(e,0);if((E===n||!E)&&setTimeout)return E=setTimeout,setTimeout(e,0);try{return E(e,0)}catch(t){try{return E.call(null,e,0)}catch(t){return E.call(this,e,0)}}}function i(e){if(k===clearTimeout)return clearTimeout(e);if((k===r||!k)&&clearTimeout)return k=clearTimeout,clearTimeout(e);try{return k(e)}catch(t){try{return k.call(null,e)}catch(t){return k.call(this,e)}}}function a(){C&&w&&(C=!1,w.length?x=w.concat(x):A=-1,x.length&&s())}function s(){if(!C){var e=o(a);C=!0;for(var t=x.length;t;){for(w=x,x=[];++A<t;)w&&w[A].run();A=-1,t=x.length}w=null,C=!1,i(e)}}function u(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];x.push(new l(e,t)),1!==x.length||C||o(s)}function l(e,t){this.fun=e,this.array=t}function c(){}function f(e){throw new Error("process.binding is not supported")}function p(){return"/"}function d(e){throw new Error("process.chdir is not supported")}function h(){return 0}function m(e){var t=.001*U.call(H),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}function g(){return(new Date-z)/1e3}function v(e,t){if(W&&G){for(var n,r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];(n=console)[e].apply(n,[t].concat(o))}}function y(e){if(G){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).error.apply(t,[e].concat(r))}}function b(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];v.apply(void 0,["warn","Warning: "+e].concat(n))}function T(e,t){if(q)throw new Error("Deprecation ("+e+"): "+t);for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];v.apply(void 0,["warn","Deprecation ("+e+"): "+t].concat(r))}var _="undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},E=n,k=r;"function"===typeof _.setTimeout&&(E=setTimeout),"function"===typeof _.clearTimeout&&(k=clearTimeout);var w,x=[],C=!1,A=-1;l.prototype.run=function(){this.fun.apply(null,this.array)};var O={},S=[],N={},D={},I={},M=c,L=c,P=c,R=c,B=c,j=c,F=c,H=_.performance||{},U=H.now||H.mozNow||H.msNow||H.oNow||H.webkitNow||function(){return(new Date).getTime()},z=new Date,K={nextTick:u,title:"browser",browser:!0,env:O,argv:S,version:"",versions:N,on:M,addListener:L,once:P,off:R,removeListener:B,removeAllListeners:j,emit:F,binding:f,cwd:p,chdir:d,umask:h,hrtime:m,platform:"browser",release:D,config:I,uptime:g},q=K&&K.env&&K.env.FORBID_DEPRECATIONS,W="undefined"!==typeof K&&K.env&&!0,G="undefined"!=typeof console&&"function"==typeof console.log&&"function"==typeof console.warn&&"function"==typeof console.error,V={deprecate:T,error:y,warn:b};t.default=V}.call(t,n(3))},function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n(53),i=n(351),a=n(352),s=n(353),u=n(354),l=n(355);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=l,e.exports=r},function(e,t,n){var r=n(24),o=n(17),i=r(o,"Map");e.exports=i},function(e,t,n){function r(e){if(!i(e))return!1;var t=o(e);return t==s||t==u||t==a||t==l}var o=n(30),i=n(12),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(362),i=n(369),a=n(371),s=n(372),u=n(373);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}e.exports=n},function(e,t,n){var r=n(383),o=n(154),i=Object.prototype,a=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:o;e.exports=u},function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=n(155),i=n(388),a=n(60);e.exports=r},function(e,t,n){var r=n(387),o=n(100),i=n(101),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var r=n(148),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(29)(e))},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){function r(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var o=n(158);e.exports=r},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=n(151);e.exports=r},function(e,t,n){var r=n(156),o=r(Object.getPrototypeOf,Object);e.exports=o},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}var o=n(103),i=n(43),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCodeBlockByKey=t.wrapCodeBlock=t.unwrapCodeBlockByKey=t.unwrapCodeBlock=t.toggleCodeBlock=t.indentLines=t.dedentLines=void 0;var o=n(474),i=r(o),a=n(475),s=r(a),u=n(476),l=r(u),c=n(180),f=r(c),p=n(181),d=r(p),h=n(178),m=r(h),g=n(179),v=r(g);t.dedentLines=i.default,t.indentLines=s.default,t.toggleCodeBlock=l.default,t.unwrapCodeBlock=f.default,t.unwrapCodeBlockByKey=d.default,t.wrapCodeBlock=m.default,t.wrapCodeBlockByKey=v.default},function(e,t,n){"use strict";function r(e,t,n){return n.nodes.forEach(function(e,r){var i=o.Range.create().moveToRangeOf(n);t.deleteAtRange(i)}),t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.default=r},function(e,t,n){"use strict";function r(e,t){return e.types.includes(t.type)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isSelectionInBlockquote=t.getCurrentBlockquote=void 0;var o=n(200),i=r(o),a=n(527),s=r(a);t.getCurrentBlockquote=i.default,t.isSelectionInBlockquote=s.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapInBlockquote=t.unwrapBlockquote=void 0;var o=n(528),i=r(o),a=n(529),s=r(a);t.unwrapBlockquote=i.default,t.wrapInBlockquote=s.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"f",function(){return y}),n.d(t,"a",function(){return h}),n.d(t,"e",function(){return d}),n.d(t,"c",function(){return b});var a=n(1),s=n.n(a),u=n(70),l=n(22),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=function(){n.setState({dropdownOpen:!n.state.dropdownOpen})},n.state={dropdownOpen:!1},n}return i(t,e),c(t,[{key:"render",value:function(){var e=this;return s.a.createElement(u.b,{isOpen:this.state.dropdownOpen,toggle:this.toggle},s.a.createElement(u.e,{caret:!0},this.props.t("set_align")),s.a.createElement(u.d,{className:"drop-list"},s.a.createElement(u.c,{onMouseDown:function(t){return e.props.onSetAlign(t,"left")}},this.props.t("left")),s.a.createElement(u.c,{onMouseDown:function(t){return e.props.onSetAlign(t,"center")}},this.props.t("center")),s.a.createElement(u.c,{onMouseDown:function(t){return e.props.onSetAlign(t,"right")}},this.props.t("right"))))}}]),t}(s.a.PureComponent),p=Object(l.translate)("translations")(f),d=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.DropDowntoggle=function(){n.setState({dropdownOpen:!n.state.dropdownOpen})},n.DropDowntoggle=n.DropDowntoggle.bind(n),n.ToolTipToggle=n.ToolTipToggle.bind(n),n.state={tooltipOpen:!1,dropdownOpen:!1},n}return i(t,e),c(t,[{key:"ToolTipToggle",value:function(){this.setState({tooltipOpen:!this.state.tooltipOpen})}},{key:"render",value:function(){return s.a.createElement(u.b,{isOpen:this.state.dropdownOpen,toggle:this.DropDowntoggle},s.a.createElement(u.e,{id:this.props.id},s.a.createElement("i",{className:"fa fa-ellipsis-v"}),s.a.createElement(u.j,{toggle:this.ToolTipToggle,delay:{show:0,hide:0},target:this.props.id,placement:"bottom",isOpen:this.state.tooltipOpen},this.props.text)),s.a.createElement(u.d,{className:"drop-list"},s.a.createElement(u.c,{onMouseDown:this.props.switchToPlainTextEditor},this.props.t("switch_to_plain_text_editor")),s.a.createElement(u.c,{onMouseDown:this.props.switchToMarkDownViewer},this.props.t("switch_to_viewer")),s.a.createElement(u.c,{onMouseDown:this.props.showHelpDialog},this.props.t("help"))))}}]),t}(s.a.PureComponent),h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"btn-group",role:"group"},this.props.children)}}]),t}(s.a.PureComponent),m=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement("button",{type:"button",onMouseDown:this.props.onMouseDown,className:"btn btn-secondary btn-active"},this.props.children)}}]),t}(s.a.PureComponent),g=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={tooltipOpen:!1},n}return i(t,e),c(t,[{key:"toggle",value:function(){this.setState({tooltipOpen:!this.state.tooltipOpen})}},{key:"render",value:function(){return s.a.createElement("button",{id:this.props.id,type:"button",onMouseDown:this.props.onMouseDown,className:"btn btn-icon btn-secondary btn-active","data-active":this.props.isActive||!1,disabled:this.props.disabled},s.a.createElement("i",{className:this.props.icon}),s.a.createElement(u.j,{toggle:this.toggle,delay:{show:0,hide:0},target:this.props.id,placement:"bottom",isOpen:this.state.tooltipOpen},this.props.text))}}]),t}(s.a.PureComponent),v=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.dropdownToggle=function(){n.setState({dropdownOpen:!n.state.dropdownOpen})},n.state={dropdownOpen:!1},n}return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement(u.b,{isOpen:this.state.dropdownOpen,toggle:this.dropdownToggle},s.a.createElement(u.e,{id:this.props.id},s.a.createElement("i",{className:"fa fa-users"})," ",this.props.users.length),s.a.createElement(u.d,{className:"drop-list"},this.props.users.map(function(e,t){return s.a.createElement(u.c,{key:t},s.a.createElement("i",{className:"fa fa-user"})," ",e.name," ",e.myself?"(you)":"")})))}}]),t}(s.a.PureComponent),y=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"tableToolBar"},s.a.createElement(h,null,s.a.createElement(m,{onMouseDown:this.props.onRemoveTable},this.props.t("remove_table"))),s.a.createElement(h,null,s.a.createElement(m,{onMouseDown:this.props.onInsertColumn},"+"),s.a.createElement(m,null,this.props.t("column")),s.a.createElement(m,{onMouseDown:this.props.onRemoveColumn},"-")),s.a.createElement(h,null,s.a.createElement(m,{onMouseDown:this.props.onInsertRow},"+"),s.a.createElement(m,null,this.props.t("row")),s.a.createElement(m,{onMouseDown:this.props.onRemoveRow},"-")),s.a.createElement(p,{onSetAlign:this.props.onSetAlign}))}}]),t}(s.a.PureComponent),b=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=function(){n.setState({dropdownOpen:!n.state.dropdownOpen})},n.state={dropdownOpen:!1},n}return i(t,e),c(t,[{key:"render",value:function(){var e=this;return s.a.createElement(u.b,{isOpen:this.state.dropdownOpen,toggle:this.toggle},s.a.createElement(u.e,{caret:!0},this.props.t(this.props.headerType)),s.a.createElement(u.d,{className:"drop-list"},s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"paragraph")}},this.props.t("paragraph")),s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"header_one")}},this.props.t("header_one")),s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"header_two")}},this.props.t("header_two")),s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"header_three")}},this.props.t("header_three")),s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"header_four")}},this.props.t("header_four")),s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"header_five")}},this.props.t("header_five")),s.a.createElement(u.c,{onMouseDown:function(t){e.props.onClickBlock(t,"header_six")}},this.props.t("header_six"))))}}]),t}(s.a.PureComponent);y=Object(l.translate)("translations")(y),d=Object(l.translate)("translations")(d),b=Object(l.translate)("translations")(b)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(573),l=n.n(u),c=n(22),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),f(t,[{key:"render",value:function(){var e=this.props.fileInfo,t=l()(1e3*e.mtime).format("YYYY-MM-DD HH:mm");return s.a.createElement("div",{className:"topbar-file-info"},s.a.createElement("div",{className:"file-name"},e.name),s.a.createElement("div",{className:"file-state"},s.a.createElement("span",{className:"file-star",title:e.starred?this.props.t("unstar"):this.props.t("star")},s.a.createElement("i",{onClick:this.props.toggleStar,className:e.starred?"fa fa-star star":"far fa-star"})),s.a.createElement("span",null,t)))}}]),t}(s.a.PureComponent);t.a=Object(c.translate)("translations")(p)},function(e,t,n){"use strict";function r(e,t){t.tree=e.parse(t.file)}function o(e,t,n){function r(e,r,o){e?n(e):(t.tree=r,t.file=o,n())}e.run(t.tree,t.file,r)}function i(e,t){t.file.contents=e.stringify(t.tree,t.file)}function a(){function e(){for(var e=a(),t=O.length,n=-1;++n<t;)e.use.apply(null,O[n]);return e.data(h(!0,{},N)),e}function t(){var t,n,r,o;if(D)return e;for(;++I<O.length;)t=O[I],n=t[0],r=t[1],o=null,!1!==r&&(!0===r&&(t[1]=void 0),o=n.apply(e,t.slice(1)),b(o)&&S.use(o));return D=!0,I=1/0,e}function n(t,n){return y(t)?2===arguments.length?(f("data",D),N[t]=n,e):E.call(N,t)&&N[t]||null:t?(f("data",D),N=t,e):N}function r(t){function n(e){i(e.plugins),e.settings&&(s=h(s||{},e.settings))}function r(e){if(b(e))a(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a.apply(null,e):n(e)}}function i(e){var t,n;if(null===e||void 0===e);else{if(!("object"===typeof e&&"length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)r(e[n])}}function a(e,t){var n=o(e);n?(T(n[1])&&T(t)&&(t=h(n[1],t)),n[1]=t):O.push(_.call(arguments))}var s;if(f("use",D),null===t||void 0===t);else if(b(t))a.apply(null,arguments);else{if("object"!==typeof t)throw new Error("Expected usable value, not `"+t+"`");"length"in t?i(t):n(t)}return s&&(N.settings=h(N.settings||{},s)),e}function o(e){for(var t,n=O.length,r=-1;++r<n;)if(t=O[r],t[0]===e)return t}function i(n){var r,o=g(n);return t(),r=e.Parser,l("parse",r),s(r)?new r(String(o),o).parse():r(String(o),o)}function u(e,n,r){function o(t,o){function i(n,i,a){i=i||e,n?o(n):t?t(i):r(null,i,a)}S.run(e,g(n),i)}if(p(e),t(),!r&&b(n)&&(r=n,n=null),!r)return new Promise(o);o(null,r)}function w(e,t){function n(e,t){o=!0,m(e),r=t}var r,o=!1;return u(e,t,n),d("runSync","run",o),r}function x(n,r){var o,i=g(r);return t(),o=e.Compiler,c("stringify",o),p(n),s(o)?new o(n,i).compile():o(n,i)}function C(n,r){function o(t,o){function i(e){e?o(e):t?t(a):r(null,a)}var a=g(n);k.run(e,{file:a},i)}if(t(),l("process",e.Parser),c("process",e.Compiler),!r)return new Promise(o);o(null,r)}function A(n){function r(e){i=!0,m(e)}var o,i=!1;return t(),l("processSync",e.Parser),c("processSync",e.Compiler),o=g(n),C(o,r),d("processSync","process",i),o}var O=[],S=v(),N={},D=!1,I=-1;return e.data=n,e.freeze=t,e.attachers=O,e.use=r,e.parse=i,e.stringify=x,e.run=u,e.runSync=w,e.process=C,e.processSync=A,e}function s(e){return b(e)&&u(e.prototype)}function u(e){var t;for(t in e)return!0;return!1}function l(e,t){if(!b(t))throw new Error("Cannot `"+e+"` without `Parser`")}function c(e,t){if(!b(t))throw new Error("Cannot `"+e+"` without `Compiler`")}function f(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function p(e){if(!e||!y(e.type))throw new Error("Expected node, got `"+e+"`")}function d(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}var h=n(575),m=n(576),g=n(577),v=n(582),y=n(583),b=n(584),T=n(585);e.exports=a().freeze();var _=[].slice,E={}.hasOwnProperty,k=v().use(r).use(o).use(i)},function(e,t,n){"use strict";function r(e){for(var t=String(e),n=t.length;t.charAt(--n)===o;);return t.slice(0,n+1)}e.exports=r;var o="\n"},function(e,t,n){"use strict";function r(e,t,n,r){for(var o,i,a,s,u,l,c=["pedantic","commonmark"],f=c.length,p=e.length,d=-1;++d<p;){for(o=e[d],i=o[1]||{},a=o[0],s=-1,l=!1;++s<f;)if(u=c[s],void 0!==i[u]&&i[u]!==n.options[u]){l=!0;break}if(!l&&t[a].apply(n,r))return!0}return!1}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e).toLowerCase()}var o=n(118);e.exports=r},function(e,t,n){"use strict";function r(e){return String(e).replace(/\s+/g," ")}e.exports=r},function(e,t,n){"use strict";function r(e){function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}return t}var o=t;o.start=r("start"),o.end=r("end")},function(e,t,n){"use strict";function r(e,t){return i(o(e,t))}function o(e,t){function n(e){var t=a(e.identifier);u.call(o,t)||(o[t]=e)}function r(e){o[a(e.identifier)]=e}var o={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return s(e,"definition",t&&t.commonmark?n:r),o}function i(e){function t(t){var n=t&&a(t);return n&&u.call(e,n)?e[n]:null}return t}function a(e){return e.toUpperCase()}var s=n(46);e.exports=r;var u={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){var n,r;return!(!e||!t||"object"!==typeof e||"element"!==e.type)&&(n=e.properties,null!==(r=n&&o.call(n,t)&&n[t])&&void 0!==r&&!1!==r)}var o={}.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(String(e||a));return t===a?[]:t.split(u)}function o(e){return i(e.join(s))}var i=n(21);t.parse=r,t.stringify=o;var a="",s=" ",u=/[ \t\n\r\f]+/g},function(e,t,n){"use strict";function r(e){for(var t,n=[],r=String(e||u),o=r.indexOf(a),s=0,l=!1;!l;)-1===o&&(o=r.length,l=!0),t=i(r.slice(s,o)),!t&&l||n.push(t),s=o+1,o=r.indexOf(a,s);return n}function o(e,t){var n=t||{},r=!1===n.padLeft?u:s,o=n.padRight?s:u;return e[e.length-1]===u&&(e=e.concat(u)),i(e.join(o+a+r))}t.parse=r,t.stringify=o;var i=n(21),a=",",s=" ",u=""},function(e,t,n){"use strict";function r(e){function t(t,n,r){var i,a=t&&t.children;if(n+=e,i=a&&a[n],!r)for(;i&&o(i);)n+=e,i=a[n];return i}return t}var o=n(239);t.before=r(-1),t.after=r(1)},function(e,t,n){"use strict";function r(e,t){var n=t||{},r=n.subset,o=r?u(r):v,a=n.escapeOnly,l=n.omitOptionalSemicolons;return e=e.replace(o,function(e,t,r){return i(e,r.charAt(t+1),n)}),r||a?e:e.replace(y,function(e,t,n){return s(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charAt(t+2),l)}).replace(b,function(e,t,r){return i(e,r.charAt(t+1),n)})}function o(e){return r(e,{escapeOnly:!0,useNamedReferences:!0})}function i(e,t,n){var r,o,i=n.useShortestReferences,u=n.omitOptionalSemicolons;return(i||n.useNamedReferences)&&h.call(g,e)&&(r=a(g[e],t,u,n.attribute)),!i&&r||(o=s(e.charCodeAt(0),t,u)),r&&(!i||r.length<o.length)?r:o}function a(e,t,n,r){var o="&"+e;return n&&h.call(c,e)&&-1===d.indexOf(e)&&(!r||t&&"="!==t&&!p(t))?o:o+";"}function s(e,t,n){var r="&#x"+e.toString(16).toUpperCase();return n&&t&&!f(t)?r:r+";"}function u(e){return new RegExp("["+e.join("")+"]","g")}var l=n(705),c=n(212),f=n(213),p=n(214),d=n(706);e.exports=r,r.escape=o;var h={}.hasOwnProperty,m=['"',"'","<",">","&","`"],g=function(){var e,t={};for(e in l)t[l[e]]=e;return t}(),v=u(m),y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g},function(e,t,n){"use strict";function r(e,t){return t||0===e.length||i.test(e)||o(e,"(")!==o(e,")")?"<"+e+">":e}var o=n(246);e.exports=r;var i=/\s/},function(e,t,n){"use strict";function r(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}e.exports=r},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],u=n[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var c=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=c<<1|c>>>31}var f=(r<<5|r>>>27)+u+a[l];f+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,u=s,s=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,i=o.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,l=0;l<n;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()})},function(e,t,n){"use strict";(function(t){function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(15),i=n(809),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!==typeof XMLHttpRequest?e=n(260):"undefined"!==typeof t&&(e=n(260)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){s.headers[e]={}}),o.forEach(["post","put","patch"],function(e){s.headers[e]=o.merge(a)}),e.exports=s}).call(t,n(16))},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return v=e,y}}function i(e,t){try{return e(t)}catch(e){return v=e,y}}function a(e,t,n){try{e(t,n)}catch(e){return v=e,y}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&m(e,this)}function u(e,t,n){return new e.constructor(function(o,i){var a=new s(r);a.then(o,i),l(e,new h(t,n,a))})}function l(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);c(e,t)}function c(e,t){g(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?f(t.promise,e._18):p(t.promise,e._18));var r=i(n,e._18);r===y?p(t.promise,v):f(t.promise,r)})}function f(e,t){if(t===e)return p(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===y)return p(e,v);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void d(e);if("function"===typeof n)return void m(n.bind(t),e)}e._83=1,e._18=t,d(e)}function p(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),d(e)}function d(e){if(1===e._75&&(l(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)l(e,e._38[t]);e._38=null}}function h(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function m(e,t){var n=!1,r=a(e,function(e){n||(n=!0,f(t,e))},function(e){n||(n=!0,p(t,e))});n||r!==y||(n=!0,p(t,v))}var g=n(268),v=null,y={};e.exports=s,s._47=null,s._71=null,s._44=r,s.prototype.then=function(e,t){if(this.constructor!==s)return u(this,e,t);var n=new s(r);return l(this,new h(e,t,n)),n}},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return v.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function l(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(v.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(v.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(v.arrayBuffer&&v.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!T(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(l(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e){var t=e.toUpperCase();return _.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var n=t.body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function g(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var v={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(v.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},T=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},v.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},f.call(d.prototype),f.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];g.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=g,e.fetch=function(e,t){return new Promise(function(n,r){var o=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:m(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new g(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&v.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(18),n(4),n(84),n(85),n(289)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var f=s(t),p=s(n),d=s(r),h=s(o),m=s(i),g=s(a),v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b=function(e){function t(e){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),y(t,[{key:"handleCloseAlert",value:function(){var e=void 0,t=this.props.id,n=p.default.findDOMNode(this),r=function(){n.style.display="none",m.default.dispatch({type:"REMOVE",data:{id:t}}),clearTimeout(e)};document.hidden||document.webkitHidden||!n.classList.contains("s-alert-is-effect")?m.default.dispatch({type:"REMOVE",data:{id:t}}):(n.classList.remove("s-alert-show"),e=setTimeout(function(){n.classList.add("s-alert-hide")},100),n.removeEventListener("webkitAnimationEnd",r,!1),n.removeEventListener("animationend",r,!1),n.addEventListener("webkitAnimationEnd",r,!1),n.addEventListener("animationend",r,!1)),this.alertAudio&&this.alertAudio.load()}},{key:"componentWillMount",value:function(){var e=this.props.beep,t=this.props.condition;e&&"string"===typeof e&&(this.alertAudio=new Audio(e),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":v(e))&&"info"===t&&(this.alertAudio=new Audio(e.info),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":v(e))&&"error"===t&&(this.alertAudio=new Audio(e.error),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":v(e))&&"success"===t&&(this.alertAudio=new Audio(e.success),this.alertAudio.load(),this.alertAudio.play()),e&&"object"===("undefined"===typeof e?"undefined":v(e))&&"warning"===t&&(this.alertAudio=new Audio(e.warning),this.alertAudio.load(),this.alertAudio.play())}},{key:"componentDidMount",value:function(){var e=this;"number"===typeof this.props.timeout&&(this.closeTimer=setTimeout(function(){e.handleCloseAlert()},this.props.timeout)),this.props.onShow&&this.props.onShow()}},{key:"componentWillUnmount",value:function(){this.closeTimer&&clearTimeout(this.closeTimer),this.props.onClose&&this.props.onClose()}},{key:"render",value:function(){var e="s-alert-box s-alert-"+this.props.condition+" s-alert-"+this.props.position+" "+(this.props.effect?"s-alert-is-effect s-alert-effect-"+this.props.effect:"")+" s-alert-show",t=this.props.html?f.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.props.message}}):this.props.message,n=this.props.boxPosition?h.default.styleToObj(this.props.boxPosition):{},r=this.props.id,o=this.handleCloseAlert.bind(this),i=this.props.contentTemplate||g.default,a=this.props.customFields||{},s=this.props.condition;return f.default.createElement(i,{classNames:e,id:r,styles:n,message:t,handleClose:o,customFields:a,condition:s})}}]),t}(f.default.Component);b.propTypes={condition:d.default.string.isRequired,message:d.default.oneOfType([d.default.string,d.default.node]),position:d.default.string.isRequired,boxPosition:d.default.string,id:d.default.string.isRequired,effect:d.default.string,beep:d.default.oneOfType([d.default.string,d.default.object,d.default.bool]),timeout:d.default.oneOfType([d.default.oneOf(["none"]),d.default.number]),html:d.default.bool,onClose:d.default.func,onShow:d.default.func,customFields:d.default.object,contentTemplate:d.default.func},e.default=b})},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,o=e.indexOf("["),i=e.indexOf("]");-1!=o&&-1!=i&&(e=e.substring(0,o)+e.substring(o,i).replace(/:/g,";")+e.substring(i,e.length));for(var a=n.exec(e||""),s={},u=14;u--;)s[r[u]]=a[u]||"";return-1!=o&&-1!=i&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){function n(e){return r&&t.Buffer.isBuffer(e)||o&&(e instanceof t.ArrayBuffer||i(e))}e.exports=n;var r="function"===typeof t.Buffer&&"function"===typeof t.Buffer.isBuffer,o="function"===typeof t.ArrayBuffer,i=function(){return o&&"function"===typeof t.ArrayBuffer.isView?t.ArrayBuffer.isView:function(e){return e.buffer instanceof t.ArrayBuffer}}()}).call(t,n(3))},function(e,t,n){function r(e,t){if(!(this instanceof r))return new r(e,t);e&&"object"===typeof e&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}var o=n(297),i=n(144),a=n(27),s=n(86),u=n(145),l=n(146),c=n(48)("socket.io-client:manager"),f=n(143),p=n(317),d=Object.prototype.hasOwnProperty;e.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)d.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},r.prototype.updateSocketIds=function(){for(var e in this.nsps)d.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},r.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},a(r.prototype),r.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},r.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},r.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(e,t){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=u(n,"open",function(){r.onopen(),e&&e()}),a=u(n,"error",function(t){if(c("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;c("connect attempt will timeout after %d",s);var l=setTimeout(function(){c("connect attempt timed out after %d",s),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(i),this.subs.push(a),this},r.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(u(e,"data",l(this,"ondata"))),this.subs.push(u(e,"ping",l(this,"onping"))),this.subs.push(u(e,"pong",l(this,"onpong"))),this.subs.push(u(e,"error",l(this,"onerror"))),this.subs.push(u(e,"close",l(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",l(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(e){this.decoder.add(e)},r.prototype.ondecoded=function(e){this.emit("packet",e)},r.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},r.prototype.socket=function(e,t){function n(){~f(o.connecting,r)||o.connecting.push(r)}var r=this.nsps[e];if(!r){r=new i(this,e,t),this.nsps[e]=r;var o=this;r.on("connecting",n),r.on("connect",function(){r.id=o.generateId(e)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(e){var t=f(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},r.prototype.packet=function(e){c("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(e){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){(function(e){function r(t){var n=!1,r=!1,s=!1!==t.jsonp;if(e.location){var u="https:"===location.protocol,l=location.port;l||(l=u?443:80),n=t.hostname!==location.hostname||l!==t.port,r=t.secure!==u}if(t.xdomain=n,t.xscheme=r,"open"in new o(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new a(t)}var o=n(87),i=n(300),a=n(313),s=n(314);t.polling=r,t.websocket=s}).call(t,n(3))},function(e,t,n){function r(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),o.call(this,e)}var o=n(88),i=n(49),a=n(28),s=n(50),u=n(142),l=n(51)("engine.io-client:polling");e.exports=r;var c=function(){return null!=new(n(87))({xdomain:!1}).responseType}();s(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){l("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||t()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||t()}))}else t()},r.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var t=this;l("polling got data %s",e);var n=function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)};a.decodePayload(e,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){l("writing close packet"),t.write([{type:"close"}])}var t=this;"open"===this.readyState?(l("transport open - closing"),e()):(l("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||e.sid||(e.b64=1),e=i.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){function r(e){if(!e||"object"!==typeof e)return!1;if(o(e)){for(var n=0,i=e.length;n<i;n++)if(r(e[n]))return!0;return!1}if("function"===typeof t&&t.isBuffer&&t.isBuffer(e)||"function"===typeof ArrayBuffer&&e instanceof ArrayBuffer||a&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return r(e.toJSON(),!0);for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)&&r(e[u]))return!0;return!1}var o=n(306),i=Object.prototype.toString,a="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===i.call(File);e.exports=r}).call(t,n(302).Buffer)},function(e,t,n){"use strict";function r(e){var t="";do{t=s[e%u]+t,e=Math.floor(e/u)}while(e>0);return t}function o(e){var t=0;for(f=0;f<e.length;f++)t=t*u+l[e.charAt(f)];return t}function i(){var e=r(+new Date);return e!==a?(c=0,a=e):e+"."+r(c++)}for(var a,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),u=64,l={},c=0,f=0;f<u;f++)l[s[f]]=f;i.encode=r,i.decode=o,e.exports=i},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){function r(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var o=n(86),i=n(27),a=n(316),s=n(145),u=n(146),l=n(48)("socket.io-client:socket"),c=n(49),f=n(141);e.exports=r;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[s(e,"open",u(this,"onopen")),s(e,"packet",u(this,"onpacket")),s(e,"close",u(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var e=a(arguments);return e.unshift("message"),this.emit.apply(this,e),this},r.prototype.emit=function(e){if(p.hasOwnProperty(e))return d.apply(this,arguments),this;var t=a(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:f(t))?o.BINARY_EVENT:o.EVENT,data:t};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"===typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},r.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"===typeof this.query?c.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:o.CONNECT,query:e})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},r.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===o.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",e.data)}},r.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?d.apply(this,t):this.receiveBuffer.push(t)},r.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var r=a(arguments);l("sending ack %j",r),t.packet({type:f(r)?o.BINARY_ACK:o.ACK,id:e,data:r})}}},r.prototype.onack=function(e){var t=this.acks[e.id];"function"===typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)d.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(e){return this.flags.compress=e,this},r.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t){function n(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}e.exports=n},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=(n.n(a),n(4)),u=n.n(s),l=n(89),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=!1,d=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));i.i18n=e.i18n||n.i18n||Object(l.b)(),i.namespaces=e.ns||i.i18n.options&&i.i18n.options.defaultNS,"string"===typeof i.namespaces&&(i.namespaces=[i.namespaces]);var a=i.i18n&&i.i18n.options&&i.i18n.options.react||{};i.options=c({},Object(l.a)(),a,e),e.initialI18nStore&&(i.i18n.services.resourceStore.data=e.initialI18nStore,i.options.wait=!1),e.initialLanguage&&i.i18n.changeLanguage(e.initialLanguage),i.i18n.options&&i.i18n.options.isInitialSSR&&(i.options.wait=!1);var s=i.i18n.languages&&i.i18n.languages[0],u=!!s&&i.namespaces.every(function(e){return i.i18n.hasResourceBundle(s,e)});return i.state={i18nLoadedAt:null,ready:u},i.t=i.getI18nTranslate(),i.onI18nChanged=i.onI18nChanged.bind(i),i.getI18nTranslate=i.getI18nTranslate.bind(i),i}return i(t,e),f(t,[{key:"getChildContext",value:function(){return{t:this.t,i18n:this.i18n}}},{key:"componentDidMount",value:function(){var e=this,t=function(){e.options.bindI18n&&e.i18n&&e.i18n.on(e.options.bindI18n,e.onI18nChanged),e.options.bindStore&&e.i18n.store&&e.i18n.store.on(e.options.bindStore,e.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(this.namespaces,function(){var n=function(){e.mounted&&!e.state.ready&&e.setState({ready:!0}),e.options.wait&&e.mounted&&t()};if(e.i18n.isInitialized)n();else{var r=function t(){setTimeout(function(){e.i18n.off("initialized",t)},1e3),n()};e.i18n.on("initialized",r)}}),this.options.wait||t()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(this.options.bindI18n){this.options.bindI18n.split(" ").forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(this.options.bindStore){this.options.bindStore.split(" ").forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&(this.t=this.getI18nTranslate(),this.setState({i18nLoadedAt:new Date}))}},{key:"getI18nTranslate",value:function(){return this.i18n.getFixedT(null,"fallback"===this.options.nsMode?this.namespaces:this.namespaces[0])}},{key:"render",value:function(){var e=this,t=this.props.children,n=this.state.ready;return!n&&this.options.wait?null:(this.i18n.options&&this.i18n.options.isInitialSSR&&!p&&(p=!0,setTimeout(function(){delete e.i18n.options.isInitialSSR},100)),t(this.t,{i18n:this.i18n,t:this.t,ready:n}))}}]),t}(a.Component);t.a=d,d.contextTypes={i18n:u.a.object},d.childContextTypes={t:u.a.func.isRequired,i18n:u.a.object}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(3))},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t,n){function r(e,t,n,r,l,c){var f=n&s,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,v=n&u?new o:void 0;for(c.set(e,t),c.set(t,e);++m<p;){var y=e[m],b=t[m];if(r)var T=f?r(b,y,m,t,e,c):r(y,b,m,e,t,c);if(void 0!==T){if(T)continue;g=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(y===e||l(y,e,n,r,c)))return v.push(t)})){g=!1;break}}else if(y!==b&&!l(y,b,n,r,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var o=n(374),i=n(377),a=n(378),s=1,u=2;e.exports=r},function(e,t,n){var r=n(17),o=r.Uint8Array;e.exports=o},function(e,t,n){function r(e){return o(e,a,i)}var o=n(153),i=n(96),a=n(97);e.exports=r},function(e,t,n){function r(e,t,n){var r=t(e);return i(e)?r:o(r,n(e))}var o=n(95),i=n(19);e.exports=r},function(e,t){function n(){return[]}e.exports=n},function(e,t,n){function r(e,t){var n=a(e),r=!n&&i(e),c=!n&&!r&&s(e),p=!n&&!r&&!c&&l(e),d=n||r||c||p,h=d?o(e.length,String):[],m=h.length;for(var g in e)!t&&!f.call(e,g)||d&&("length"==g||c&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,m))||h.push(g);return h}var o=n(384),i=n(57),a=n(19),s=n(58),u=n(59),l=n(98),c=Object.prototype,f=c.hasOwnProperty;e.exports=r},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}var o=n(103),i=n(43);e.exports=r},function(e,t,n){var r=n(24),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){(function(e){function r(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}var o=n(17),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?o.Buffer:void 0,l=u?u.allocUnsafe:void 0;e.exports=r}).call(t,n(29)(e))},function(e,t,n){function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var o=n(104);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){function r(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}var o=n(399),i=n(105),a=n(102);e.exports=r},function(e,t,n){function r(e){if(!a(e)||o(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}var o=n(30),i=n(105),a=n(23),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,p=c.call(Object);e.exports=r},function(e,t){function n(e,t){return"__proto__"==t?void 0:e[t]}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function r(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=i(r.length-t,0),u=Array(s);++a<s;)u[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(u),o(e,this,l)}}var o=n(406),i=Math.max;e.exports=r},function(e,t,n){var r=n(407),o=n(409),i=o(r);e.exports=i},function(e,t,n){function r(e,t){t=o(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[i(t[n++])];return n&&n==r?e:void 0}var o=n(33),i=n(65);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},function(e,t,n){function r(e){return a(i(e,void 0,o),e+"")}var o=n(424),i=n(166),a=n(167);e.exports=r},function(e,t,n){var r=n(95),o=n(105),i=n(96),a=n(154),s=Object.getOwnPropertySymbols,u=s?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=u},function(e,t,n){function r(e){return o(e,a,i)}var o=n(153),i=n(171),a=n(62);e.exports=r},function(e,t,n){"use strict";n.d(t,"c",function(){return j}),n.d(t,"g",function(){return F}),n.d(t,"d",function(){return H}),n.d(t,"b",function(){return U}),n.d(t,"a",function(){return z}),n.d(t,"e",function(){return K}),n.d(t,"f",function(){return q}),n.d(t,"h",function(){return W});var r=n(454),o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]],a=[["beforeinput",function(e){return"onbeforeinput"in e}]],s=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]],u=void 0,l={},c=void 0;if(r.a){var f=window.navigator.userAgent,p=!0,d=!1,h=void 0;try{for(var m,g=i[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var v=m.value,y=o(v,2),b=y[0];if(y[1].test(f)){u=b;break}}}catch(e){d=!0,h=e}finally{try{!p&&g.return&&g.return()}finally{if(d)throw h}}var T=!0,_=!1,E=void 0;try{for(var k,w=s[Symbol.iterator]();!(T=(k=w.next()).done);T=!0){var x=k.value,C=o(x,2),A=C[0];if(C[1].test(f)){c=A;break}}}catch(e){_=!0,E=e}finally{try{!T&&w.return&&w.return()}finally{if(_)throw E}}var O=window.document.createElement("div");O.contentEditable=!0;var S=!0,N=!1,D=void 0;try{for(var I,M=a[Symbol.iterator]();!(S=(I=M.next()).done);S=!0){var L=I.value,P=o(L,2),R=P[0],B=P[1];l[R]=B(O)}}catch(e){N=!0,D=e}finally{try{!S&&M.return&&M.return()}finally{if(N)throw D}}}var j="firefox"===u,F="safari"===u,H="ie"===u,U="edge"===u,z="android"===c,K="ios"===c,q="macos"===c,W=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=n(5),l={containerType:"code_block",lineType:"code_line",exitBlockType:"paragraph",selectAll:!0,allowMarks:!1,getIndent:null,onExit:null},c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"resolvedOnExit",value:function(e){if(this.onExit)return this.onExit(e);var t=e.value.selection,n=s.Block.create({type:this.exitBlockType,nodes:[s.Text.create()]});return e.deleteAtRange(t,{normalize:!1}),e.insertBlockAtRange(e.value.selection,n,{normalize:!1}),e.unwrapNodeByKey(n.key),e.collapseToStartOf(n)}}]),t}((0,u.Record)(l));t.default=c},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value;t.preventDefault(),t.stopPropagation();var s=a.isCollapsed,u=(0,o.getCurrentIndent)(e,a);return s?n.insertText(u).focus():(0,i.indentLines)(e,n,u)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13),i=n(107);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.document,o=void 0;if(n)o=t.document.getDescendant(n);else{if(!t.selection.startKey)return null;o=t.startBlock}var i=r.getParent(o.key);return i&&i.type===e.containerType?i:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return(0,i.default)(e).indent||t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(469),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=" ";t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.startBlock,o=n.selection;return(0,i.default)(e,t,r.key),t.collapseToStartOf(t.value.document.getDescendant(r.key)).moveOffsetsTo(o.startOffset),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(179),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.document,a=i.getDescendant(n),s=a.text;return a.nodes.forEach(function(e){t.removeNodeByKey(e.key,{normalize:!1})}),(0,o.deserializeCode)(e,s).nodes.forEach(function(e,n){t.insertNodeByKey(a.key,n,e,{normalize:!1})}),t.setNodeByKey(a.key,{type:e.containerType}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=(0,o.getCurrentCode)(e,r);return i?((0,a.default)(e,t,i.key,n),t):t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13),i=n(181),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var o=t.value,i=o.document,a=i.getDescendant(n);if(!a||a.type!=e.containerType)throw new Error("Block passed to unwrapCodeBlockByKey should be a code block container");return a.nodes.forEach(function(e){return t.setNodeByKey(e.key,{type:r},{normalize:!1}).unwrapNodeByKey(e.key,{normalize:!1})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value;t.preventDefault(),t.stopPropagation();var s=(0,o.getCurrentIndent)(e,a);return(0,i.dedentLines)(e,n,s)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13),i=n(107);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=n.value;if(i.isCollapsed){t.preventDefault();var a=i.startBlock,s=a.text,u=(0,o.getIndent)(s,"");return n.splitBlock().insertText(u).focus()}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){if(n.value.isCollapsed)return t.preventDefault(),e.resolvedOnExit(n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var o=n.value;if(!o.isExpanded){var s=o.startOffset,u=o.startText,l=o.startBlock,c=(0,a.getCurrentIndent)(e,o),f=l.text.slice(0,s);if((0,i.default)(f,c))return t.preventDefault(),n.deleteBackward(c.length).focus();if(e.exitBlockType){var p=(0,a.getCurrentCode)(e,o),d=0===s&&p.getFirstText()===u,h=1===p.nodes.size&&0===l.text.length;if(d&&h)return t.preventDefault(),n.setBlocks(e.exitBlockType,{normalize:!1}).unwrapNodeByKey(l.key)}}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(477),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=n.value;t.preventDefault();var a=(0,o.getCurrentCode)(e,i);return n.collapseToStartOf(a.getFirstText()).extendToEndOf(a.getLastText())}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)({typeTable:"table",typeRow:"table_row",typeCell:"table_cell",typeContent:"paragraph",exitBlockType:"paragraph"}));t.default=s},function(e,t,n){"use strict";function r(e,t){return i.Block.create({type:e.typeCell,nodes:t||[o(e)]})}function o(e){return i.Block.create({type:e.typeContent,nodes:[i.Text.create()]})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=(0,o.Range)(0,t).map(function(t){return(0,s.default)(e,n?n(t):void 0)}).toList();return i.Block.create({type:e.typeRow,nodes:r})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=n(0),a=n(188),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){return e.preventDefault(),(0,o.insertRow)(r,t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value;if(a.isCollapsed){e.preventDefault();var s=o.Block.create({type:r.exitBlockType,nodes:[o.Text.create("")]}),u=i.TablePosition.create(r,a.document,a.startKey).table,l=a.document.getParent(u.key),c=l.nodes.indexOf(u)+1;return t.insertNodeByKey(l.key,c,s).collapseToStartOf(s)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(7);t.default=r},function(e,t,n){"use strict";function r(e){var t=e.value,n=t.startBlock;return e.moveOffsetsTo(0).extend(n.text.length)}function o(e,t,n,o){e.preventDefault();var s=t.value,u=e.shiftKey?-1:1,l=s.startKey,c=s.selection,f=i.TablePosition.create(o,s.document,l);return f.isFirstCell()&&-1===u?(0,a.insertRow)(o,t,0):f.isLastCell()&&1===u&&(0,a.insertRow)(o,t),t.select(c),(0,a.moveSelectionBy)(o,t,u,0),r(t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(7),a=n(25);t.default=o},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startBlock,s=i.startOffset,u=i.isCollapsed,l=i.endBlock;if(0===s&&u)return e.preventDefault(),t;if(a!==l){e.preventDefault();var c=i.blocks,f=i.document,p=function(e){return e.type===r.typeCell?e:f.getClosest(e.key,function(e){return e.type===r.typeCell})};return c.map(p).toSet().forEach(function(e){return(0,o.clearCell)(r,t,e)}),t.collapseToStartOf(a)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s="ArrowUp"===e.key?-1:1,u=o.TablePosition.create(r,a.document,a.startKey);if(!(u.isFirstRow()&&-1===s||u.isLastRow()&&1===s))return e.preventDefault(),(0,i.moveSelectionBy)(r,t,0,"ArrowUp"===e.key?-1:1),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)({types:["ul_list","ol_list"],typeItem:"list_item",typeDefault:"paragraph"}));t.default=s},function(e,t,n){"use strict";function r(e,t,n){var r=t.document,o=r.getParent(n.key);return o&&(0,i.default)(e,o)?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(109),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){if(n=n||t.selection,!n.startKey)return(0,i.List)();var r=t.document,o=r.getClosestBlock(n.startKey),a=r.getClosestBlock(n.endKey);if(o===a){var u=(0,l.default)(e,t,o);return u?(0,i.List)([u]):(0,i.List)()}var c=r.getCommonAncestor(o.key,a.key);if((0,s.default)(e,c)){var f=c.getPath(o.key),p=c.getPath(a.key);return c.nodes.slice(f[0],p[0]+1)}return c.type===e.typeItem?(0,i.List)([c]):(0,i.List)()}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(5),a=n(109),s=r(a),u=n(44),l=r(u);t.default=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),s={type:"blockquote",typeDefault:"paragraph"},u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)(s));t.default=u},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value,s=a.startOffset,u=a.isCollapsed;if((0,o.getCurrentBlockquote)(e,a)&&u&&0===s)return t.preventDefault(),(0,i.unwrapBlockquote)(e,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(110),i=n(111);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.document;if(!n){if(!t.selection.startKey)return null;n=t.startBlock}var o=r.getParent(n.key);return o&&o.type===e.type?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value,s=a.startBlock;if((0,o.getCurrentBlockquote)(e,a)&&0===s.text.length)return t.preventDefault(),(0,i.unwrapBlockquote)(e,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(110),i=n(111);t.default=r},function(e,t){function n(e){if("string"!==typeof e)return!1;var t=e.match(r);if(!t)return!1;var n=t[1];return!!n&&!(!o.test(n)&&!i.test(n))}e.exports=n;var r=/^(?:\w+:)?\/\/(\S+)$/,o=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(544),l=n(545),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.imagePreviewTimeout=null,i.state={tree:new l.a,loadingFailed:!1,imagePreviewPosition:{left:"10px",top:"10px"},isShowImagePreview:!1,imagePreviewLoading:!1,imageSrc:""},i.showImagePreview=function(e,t){e.persist(),"image"===e.target.getAttribute("type")&&(i.imagePreviewTimeout=setTimeout(function(){var n=e.clientX+20,r=e.clientY-55;e.view.innerHeight<e.clientY+150&&(r=e.clientY-219),i.setState({isShowImagePreview:!0,imagePreviewLoading:!0,imageSrc:i.props.editorUtilities.getFileURL(t),imagePreviewPosition:{left:n+"px",top:r+"px"}})},1e3))},i.hideImagePreview=function(e){clearTimeout(i.imagePreviewTimeout),i.setState({isShowImagePreview:!1,imagePreviewLoading:!1})},i.imageLoaded=function(){i.setState({imagePreviewLoading:!1})},i.change=function(e){},i.toggleCollapse=function(e){var t=i.state.tree;e.isExpanded=!e.isExpanded,i.setState({tree:t.copy()}),i.change(t)},i.onDragStart=function(e,t){var n=i.props.editorUtilities.getFileURL(t);e.dataTransfer.setData("text/uri-list",n),e.dataTransfer.setData("text/plain",n)},a=n,o(i,a)}return i(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this;this.props.editorUtilities.getFiles().then(function(t){var n={name:"/",type:"dir",isExpanded:!0},r=new l.a;r.parseFromList(n,t),e.setState({tree:r})},function(){console.log("failed to load files"),e.setState({loadingFailed:!0})})}},{key:"render",value:function(){var e=this.state.tree;return e.root?s.a.createElement("div",{className:"tree-view tree"},s.a.createElement(u.a,{node:e.root,paddingLeft:20,treeView:this}),this.state.isShowImagePreview&&s.a.createElement("div",{style:this.state.imagePreviewPosition,className:"image-view"},this.state.imagePreviewLoading&&s.a.createElement("i",{className:"rotate fa fa-spinner"}),s.a.createElement("img",{src:this.state.imageSrc,onLoad:this.imageLoaded,alt:""}))):s.a.createElement("div",null,"Loading...")}}]),t}(s.a.PureComponent);f.defaultProps={paddingLeft:20},t.a=f},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";var r=n(18),o=n.n(r),i=n(562),a=n(564),s=void 0;s=o.a.createPortal?i.a:a.a,t.a=s},function(e,t,n){"use strict";function r(e){function t(e){var t=d(e,r);return p(t,n)}var n=f(e,this.data("settings")),r=m(h,{attributes:{input:["type"],li:["className"],code:["className"]},tagNames:["input","code"]});this.Compiler=t}n.d(t,"a",function(){return g}),n.d(t,"b",function(){return v});var o=n(114),i=n(208),a=n(631),s=n(635),u=n(636),l=n(663),c=n(669),f=n(8),p=n(699),d=n(711),h=n(247),m=n(713).default,g=o().use(i,{commonmark:!0}).use(s).use(a).use(u,{allowDangerousHTML:!0}).use(c).use(l).use(r),v=o().use(i,{commonmark:!0}).use(a)},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){var t=o(a);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Parser=t}var o=n(209),i=n(8),a=n(587);e.exports=r,r.Parser=a},function(e,t,n){"use strict";function r(e){function t(t){return e.apply(this,t)}function n(){return this instanceof n?e.apply(this,arguments):new t(arguments)}var r,a,s;i(n,e),i(t,n),r=n.prototype;for(a in r)(s=r[a])&&"object"===typeof s&&(r[a]="concat"in s?s.concat():o(s));return n}var o=n(8),i=n(586);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return function(){var r=n||this,o=r[e];return r[e]=!t,function(){r[e]=o}}}e.exports=r},function(e,t,n){"use strict";function r(e){var t=a(String(e));return{toPosition:o(t),toOffset:i(t)}}function o(e){function t(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}return t}function i(e){function t(t){var n=t&&t.line,r=t&&t.column;return!isNaN(n)&&!isNaN(r)&&n-1 in e?(e[n-2]||0)+r-1||0:-1}return t}function a(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}e.exports=r},function(e,t){e.exports={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Acirc:"\xc2",Agrave:"\xc0",Aring:"\xc5",Atilde:"\xc3",Auml:"\xc4",COPY:"\xa9",Ccedil:"\xc7",ETH:"\xd0",Eacute:"\xc9",Ecirc:"\xca",Egrave:"\xc8",Euml:"\xcb",GT:">",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)||i(e)}var o=n(215),i=n(45);e.exports=r},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e||{};return t.commonmark?a:t.gfm?i:o}e.exports=r;var o=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=o.concat(["~","|"]),a=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);r.default=o,r.gfm=i,r.commonmark=a},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(594)}},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,i=e.charAt(n),a={};i in o;)t=o[i],r+=t,t>1&&(r=Math.floor(r/t)*t),a[r]=n,i=e.charAt(++n);return{indent:r,stops:a}}e.exports=r;var o={" ":1,"\t":4}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+o+")"),t.tag=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(e,t,n){"use strict";function r(e,t){return e.indexOf("<",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r?n:n<r?n:r}e.exports=r},function(e,t,n){"use strict";function r(e,t){return i(t)?e.augment(t,a("text",t.value)):e(t,"div",s(e,t))}function o(e,t,n){var o=t&&t.type,i=u.call(e.handlers,o)?e.handlers[o]:null;if(!o)throw new Error("Expected node, got `"+t+"`");return("function"===typeof i?i:r)(e,t,n)}function i(e){var t=e.data||{};return!(u.call(t,"hName")||u.call(t,"hProperties")||u.call(t,"hChildren"))&&"value"in e}e.exports=o;var a=n(14),s=n(9),u={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){return e(t,"hr")}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={},r=t.ordered?"ol":"ul";return"number"===typeof t.start&&1!==t.start&&(n.start=t.start),e(t,r,n,o(i(e,t),!0))}e.exports=r;var o=n(35),i=n(9)},function(e,t,n){"use strict";function r(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[o("text",n)])])}e.exports=r;var o=n(14)},function(e,t,n){"use strict";function r(e,t,n){var r=t.referenceType;if("collapsed"!==r&&"full"!==r&&!n)return"imageReference"===t.type?o("text","!["+t.alt+"]"):[o("text","[")].concat(i(e,t),o("text","]"))}e.exports=r;var o=n(14),i=n(9)},function(e,t){e.exports=["script","style","pre","textarea"]},function(e,t,n){"use strict";function r(e){return o(i(e))}function o(e){function t(t){var n=t&&t.children;if(!n)throw new Error("Missing children in `parent` for `modifier`");return a(n,e,t)}return t}function i(e){function t(t,n){return e(t,n,this)}return t}var a=n(665);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e,i)}var o=n(36),i=["audio","canvas","embed","iframe","img","math","object","picture","svg","video"];e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r;if(!o(e,"link"))return!1;if(i(e,"itemProp"))return!0;if(r=(e.properties||{}).rel||[],t=r.length,n=-1,0===r.length)return!1;for(;++n<t;)if(-1===a.indexOf(r[n]))return!1;return!0}var o=n(36),i=n(121);e.exports=r;var a=["pingback","prefetch","stylesheet"]},function(e,t,n){"use strict";var r=n(75),o=n(76).inherits,i=n(74),a=i.CODE_POINTS,s=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,r.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};o(s,r),Object.defineProperty(s.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),s.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===a.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos}}}},function(e,t,n){"use strict";var r=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,o=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;e.exports=t=function(e){return e.replace(r,function(e){return"-"+e.toLowerCase()})},t.reverse=function(e){return e.replace(o,function(e){return e.slice(1).toUpperCase()})}},function(e,t,n){"use strict";var r=n(693),o=n(695),i="function"===typeof Symbol&&"symbol"===typeof Symbol(),a=Object.prototype.toString,s=function(e){return"function"===typeof e&&"[object Function]"===a.call(e)},u=Object.defineProperty&&function(){var e={};try{Object.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){(!(t in e)||s(r)&&r())&&(u?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t))),o(a,function(r){l(e,r,t[r],n[r])})};c.supportsDescriptors=!!u,e.exports=c},function(e,t,n){"use strict";e.exports=function(e){return e!==e}},function(e,t,n){"use strict";var r=n(234);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},function(e,t){e.exports={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";function r(e,t){function n(t){var r=n.invalid,a=n.handlers;return t&&i.call(t,e)&&(r=i.call(a,t[e])?a[t[e]]:n.unknown),(r||o).apply(this,arguments)}var r=t||{};return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}e.exports=r;var o=Function.prototype,i={}.hasOwnProperty},function(e,t){e.exports=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]},function(e,t,n){"use strict";function r(e){var t;if(e&&"object"===typeof e&&"text"===e.type)t=e.value||"";else{if("string"!==typeof e)return!1;t=e}return""===t.replace(o,"")}var o=/[\ \t\n\f\r]/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o("text",e)&&i(e.value.charAt(0))}var o=n(34),i=n(239);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=E(n,t,!0);return!r||!b("comment",r)&&!_(r)}function o(e,t,n){var r=E(n,t);return!r||!b("comment",r)}function i(e,t,n){var r=E(n,t);return!r||!b("comment",r)}function a(e,t,n){var r=E(n,t);return r?T(r,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!T(n,["a","audio","del","ins","map","noscript","video"])}function s(e,t,n){var r=E(n,t);return!r||T(r,"li")}function u(e,t,n){var r=E(n,t);return r&&T(r,["dt","dd"])}function l(e,t,n){var r=E(n,t);return!r||T(r,["dt","dd"])}function c(e,t,n){var r=E(n,t);return!r||T(r,["rp","rt"])}function f(e,t,n){var r=E(n,t);return!r||T(r,"optgroup")}function p(e,t,n){var r=E(n,t);return!r||T(r,["option","optgroup"])}function d(e,t,n){var r=E(n,t);return!r||T(r,["menuitem","hr","menu"])}function h(e,t,n){var r=E(n,t);return r&&T(r,["tbody","tfoot"])}function m(e,t,n){var r=E(n,t);return!r||T(r,["tbody","tfoot"])}function g(e,t,n){return!E(n,t)}function v(e,t,n){var r=E(n,t);return!r||T(r,"tr")}function y(e,t,n){var r=E(n,t);return!r||T(r,["td","th"])}var b=n(34),T=n(36),_=n(240),E=n(124).after,k=n(242);e.exports=k({html:o,head:r,body:i,p:a,li:s,dt:u,dd:l,rt:c,rp:c,optgroup:f,option:p,menuitem:d,colgroup:r,caption:r,thead:h,tbody:m,tfoot:g,tr:v,td:y,th:y})},function(e,t,n){"use strict";function r(e){function t(t,n,r){var i=t.tagName,a=!!o.call(e,i)&&e[i];return!!a&&a(t,n,r)}return t}e.exports=r;var o={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t,n,r){var a=t&&t.type;if(!a)throw new Error("Expected node, not `"+t+"`");if(!o.call(i,a))throw new Error("Cannot compile unknown node `"+a+"`");return i[a](e,t,n,r)}e.exports=r;var o={}.hasOwnProperty,i={};i.root=n(244),i.text=n(245),i.element=n(707),i.doctype=n(708),i.comment=n(709),i.raw=n(710)},function(e,t,n){"use strict";function r(e,t){for(var n=t&&t.children,r=n&&n.length,i=-1,a=[];++i<r;)a[i]=o(e,n[i],i,t);return a.join("")}var o=n(243);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var s=t.value;return o(r)?s:a(s,i(e.entities,{subset:["<","&"]}))}function o(e){return e&&("script"===e.tagName||"style"===e.tagName)}var i=n(8),a=n(125);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r=0;if(e=String(e),"string"!==typeof t||1!==t.length)throw new Error("Expected character");for(n=e.indexOf(t);-1!==n;)r++,n=e.indexOf(t,n+1);return r}e.exports=r},function(e,t){e.exports={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{li:["ol","ul"],tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","h7","h8","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details"],attributes:{a:["href"],img:["src","longDesc"],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charoff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hspace","isMap","id","label","lang","maxLength","media","method","multiple","name","nohref","noshade","nowrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","valign","value","vspace","width","itemProp"]}}},function(e,t,n){(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r=n.Prism={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof o?new o(e.type,r.util.encode(e.content),e.alias):"Array"===r.util.type(e)?e.map(r.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e,t){var n=r.util.type(e);switch(t=t||{},n){case"Object":if(t[r.util.objId(e)])return t[r.util.objId(e)];var o={};t[r.util.objId(e)]=o;for(var i in e)e.hasOwnProperty(i)&&(o[i]=r.util.clone(e[i],t));return o;case"Array":if(t[r.util.objId(e)])return t[r.util.objId(e)];var o=[];return t[r.util.objId(e)]=o,e.forEach(function(e,n){o[n]=r.util.clone(e,t)}),o}return e}},languages:{extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){o=o||r.languages;var i=o[e];if(2==arguments.length){n=arguments[1];for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);return i}var s={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var a in n)n.hasOwnProperty(a)&&(s[a]=n[a]);s[u]=i[u]}return r.languages.DFS(r.languages,function(t,n){n===o[e]&&t!=e&&(this[t]=s)}),o[e]=s},DFS:function(e,t,n,o){o=o||{};for(var i in e)e.hasOwnProperty(i)&&(t.call(e,i,e[i],n||i),"Object"!==r.util.type(e[i])||o[r.util.objId(e[i])]?"Array"!==r.util.type(e[i])||o[r.util.objId(e[i])]||(o[r.util.objId(e[i])]=!0,r.languages.DFS(e[i],t,i,o)):(o[r.util.objId(e[i])]=!0,r.languages.DFS(e[i],t,null,o)))}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var o={callback:n,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",o);for(var i,a=o.elements||e.querySelectorAll(o.selector),s=0;i=a[s++];)r.highlightElement(i,!0===t,o.callback)},highlightElement:function(t,o,i){for(var a,s,u=t;u&&!e.test(u.className);)u=u.parentNode;u&&(a=(u.className.match(e)||[,""])[1].toLowerCase(),s=r.languages[a]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+a,t.parentNode&&(u=t.parentNode,/pre/i.test(u.nodeName)&&(u.className=u.className.replace(e,"").replace(/\s+/g," ")+" language-"+a));var l=t.textContent,c={element:t,language:a,grammar:s,code:l};if(r.hooks.run("before-sanity-check",c),!c.code||!c.grammar)return c.code&&(r.hooks.run("before-highlight",c),c.element.textContent=c.code,r.hooks.run("after-highlight",c)),void r.hooks.run("complete",c);if(r.hooks.run("before-highlight",c),o&&n.Worker){var f=new Worker(r.filename);f.onmessage=function(e){c.highlightedCode=e.data,r.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i&&i.call(c.element),r.hooks.run("after-highlight",c),r.hooks.run("complete",c)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else c.highlightedCode=r.highlight(c.code,c.grammar,c.language),r.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i&&i.call(t),r.hooks.run("after-highlight",c),r.hooks.run("complete",c)},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},matchGrammar:function(e,t,n,o,i,a,s){var u=r.Token;for(var l in n)if(n.hasOwnProperty(l)&&n[l]){if(l==s)return;var c=n[l];c="Array"===r.util.type(c)?c:[c];for(var f=0;f<c.length;++f){var p=c[f],d=p.inside,h=!!p.lookbehind,m=!!p.greedy,g=0,v=p.alias;if(m&&!p.pattern.global){var y=p.pattern.toString().match(/[imuy]*$/)[0];p.pattern=RegExp(p.pattern.source,y+"g")}p=p.pattern||p;for(var b=o,T=i;b<t.length;T+=t[b].length,++b){var _=t[b];if(t.length>e.length)return;if(!(_ instanceof u)){if(m&&b!=t.length-1){p.lastIndex=T;var E=p.exec(e);if(!E)break;for(var k=E.index+(h?E[1].length:0),w=E.index+E[0].length,x=b,C=T,A=t.length;x<A&&(C<w||!t[x].type&&!t[x-1].greedy);++x)C+=t[x].length,k>=C&&(++b,T=C);if(t[b]instanceof u)continue;O=x-b,_=e.slice(T,C),E.index-=T}else{p.lastIndex=0;var E=p.exec(_),O=1}if(E){h&&(g=E[1]?E[1].length:0);var k=E.index+g,E=E[0].slice(g),w=k+E.length,S=_.slice(0,k),N=_.slice(w),D=[b,O];S&&(++b,T+=S.length,D.push(S));var I=new u(l,d?r.tokenize(E,d):E,v,E,m);if(D.push(I),N&&D.push(N),Array.prototype.splice.apply(t,D),1!=O&&r.matchGrammar(e,t,n,b,T,!0,l),a)break}else if(a)break}}}}},tokenize:function(e,t,n){var o=[e],i=t.rest;if(i){for(var a in i)t[a]=i[a];delete t.rest}return r.matchGrammar(e,o,t,0,0,!1),o},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}}},o=r.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(o.stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===r.util.type(e))return e.map(function(n){return o.stringify(n,t,e)}).join("");var i={type:e.type,content:o.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var a="Array"===r.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,a)}r.hooks.run("wrap",i);var s=Object.keys(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(s?" "+s:"")+">"+i.content+"</"+i.tag+">"},!n.document)return n.addEventListener?(r.disableWorkerMessageHandler||n.addEventListener("message",function(e){var t=JSON.parse(e.data),o=t.language,i=t.code,a=t.immediateClose;n.postMessage(r.highlight(i,r.languages[o],o)),a&&n.close()},!1),n.Prism):n.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(r.filename=i.src,r.manual||i.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),n.Prism}();"undefined"!==typeof e&&e.exports&&(e.exports=r),"undefined"!==typeof t&&(t.Prism=r),r.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),r.languages.xml=r.languages.markup,r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup&&(r.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\s\S]*?>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:r.languages.css,alias:"language-css",greedy:!0}}),r.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:r.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:r.languages.css}},alias:"language-css"}},r.languages.markup.tag)),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),r.languages.javascript["template-string"].inside.interpolation.inside.rest=r.languages.javascript,r.languages.markup&&r.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\s\S]*?>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:r.languages.javascript,alias:"language-javascript",greedy:!0}}),r.languages.js=r.languages.javascript,function(){"undefined"!==typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,o=t.getAttribute("data-src"),i=t,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(n=(t.className.match(a)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var u=document.createElement("code");u.className="language-"+n,t.textContent="",u.textContent="Loading\u2026",t.appendChild(u);var l=new XMLHttpRequest;l.open("GET",o,!0),l.onreadystatechange=function(){4==l.readyState&&(l.status<400&&l.responseText?(u.textContent=l.responseText,r.highlightElement(u)):l.status>=400?u.textContent="\u2716 Error "+l.status+" while fetching file: "+l.statusText:u.textContent="\u2716 Error: File does not exist or is empty")},l.send(null)}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var n=t.getAttribute("data-src"),r=document.createElement("a");return r.textContent=t.getAttribute("data-download-link-label")||"Download",r.setAttribute("download",""),r.href=n,r}})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(t,n(3))},function(e,t,n){(function(e,r){var o;(function(){function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function a(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function s(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function u(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function l(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function c(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function f(e,t){return!!(null==e?0:e.length)&&E(e,t,0)>-1}function p(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function d(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function h(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function m(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function g(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function v(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function y(e){return e.split("")}function b(e){return e.match(jt)||[]}function T(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function _(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function E(e,t,n){return t===t?J(e,t,n):_(e,w,n)}function k(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function w(e){return e!==e}function x(e,t){var n=null==e?0:e.length;return n?N(e,t)/n:Le}function C(e){return function(t){return null==t?re:t[e]}}function A(e){return function(t){return null==e?re:e[t]}}function O(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function S(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function N(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==re&&(n=n===re?i:n+i)}return n}function D(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function I(e,t){return d(t,function(t){return[t,e[t]]})}function M(e){return function(t){return e(t)}}function L(e,t){return d(t,function(t){return e[t]})}function P(e,t){return e.has(t)}function R(e,t){for(var n=-1,r=e.length;++n<r&&E(t,e[n],0)>-1;);return n}function B(e,t){for(var n=e.length;n--&&E(t,e[n],0)>-1;);return n}function j(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function F(e){return"\\"+Cn[e]}function H(e,t){return null==e?re:e[t]}function U(e){return vn.test(e)}function z(e){return yn.test(e)}function K(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function G(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==le||(e[n]=le,i[o++]=n)}return i}function V(e,t){return"__proto__"==t?re:e[t]}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function J(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function X(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Q(e){return U(e)?ee(e):Kn(e)}function Z(e){return U(e)?te(e):y(e)}function ee(e){for(var t=mn.lastIndex=0;mn.test(e);)++t;return t}function te(e){return e.match(mn)||[]}function ne(e){return e.match(gn)||[]}var re,oe=200,ie="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ae="Expected a function",se="__lodash_hash_undefined__",ue=500,le="__lodash_placeholder__",ce=1,fe=2,pe=4,de=1,he=2,me=1,ge=2,ve=4,ye=8,be=16,Te=32,_e=64,Ee=128,ke=256,we=512,xe=30,Ce="...",Ae=800,Oe=16,Se=1,Ne=2,De=1/0,Ie=9007199254740991,Me=1.7976931348623157e308,Le=NaN,Pe=4294967295,Re=Pe-1,Be=Pe>>>1,je=[["ary",Ee],["bind",me],["bindKey",ge],["curry",ye],["curryRight",be],["flip",we],["partial",Te],["partialRight",_e],["rearg",ke]],Fe="[object Arguments]",He="[object Array]",Ue="[object AsyncFunction]",ze="[object Boolean]",Ke="[object Date]",qe="[object DOMException]",We="[object Error]",Ge="[object Function]",Ve="[object GeneratorFunction]",Ye="[object Map]",$e="[object Number]",Je="[object Null]",Xe="[object Object]",Qe="[object Proxy]",Ze="[object RegExp]",et="[object Set]",tt="[object String]",nt="[object Symbol]",rt="[object Undefined]",ot="[object WeakMap]",it="[object WeakSet]",at="[object ArrayBuffer]",st="[object DataView]",ut="[object Float32Array]",lt="[object Float64Array]",ct="[object Int8Array]",ft="[object Int16Array]",pt="[object Int32Array]",dt="[object Uint8Array]",ht="[object Uint8ClampedArray]",mt="[object Uint16Array]",gt="[object Uint32Array]",vt=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>"']/g,Et=RegExp(Tt.source),kt=RegExp(_t.source),wt=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,Ct=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ot=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(Nt.source),It=/^\s+|\s+$/g,Mt=/^\s+/,Lt=/\s+$/,Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rt=/\{\n\/\* \[wrapped with (.+)\] \*/,Bt=/,? & /,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ut=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,Kt=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yt=/($^)/,$t=/['\n\r\u2028\u2029\\]/g,Jt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qt="["+Xt+"]",Zt="["+Jt+"]",en="[a-z\\xdf-\\xf6\\xf8-\\xff]",tn="[^\\ud800-\\udfff"+Xt+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nn="\\ud83c[\\udffb-\\udfff]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",an="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sn="(?:"+en+"|"+tn+")",un="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ln="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rn,on].join("|")+")[\\ufe0e\\ufe0f]?"+un+")*",cn="[\\ufe0e\\ufe0f]?"+un+ln,fn="(?:"+["[\\u2700-\\u27bf]",rn,on].join("|")+")"+cn,pn="(?:"+["[^\\ud800-\\udfff]"+Zt+"?",Zt,rn,on,"[\\ud800-\\udfff]"].join("|")+")",dn=RegExp("['\u2019]","g"),hn=RegExp(Zt,"g"),mn=RegExp(nn+"(?="+nn+")|"+pn+cn,"g"),gn=RegExp([an+"?"+en+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Qt,an,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Qt,an+sn,"$"].join("|")+")",an+"?"+sn+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",an+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",fn].join("|"),"g"),vn=RegExp("[\\u200d\\ud800-\\udfff"+Jt+"\\ufe0e\\ufe0f]"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tn=-1,_n={};_n[ut]=_n[lt]=_n[ct]=_n[ft]=_n[pt]=_n[dt]=_n[ht]=_n[mt]=_n[gt]=!0,_n[Fe]=_n[He]=_n[at]=_n[ze]=_n[st]=_n[Ke]=_n[We]=_n[Ge]=_n[Ye]=_n[$e]=_n[Xe]=_n[Ze]=_n[et]=_n[tt]=_n[ot]=!1;var En={};En[Fe]=En[He]=En[at]=En[st]=En[ze]=En[Ke]=En[ut]=En[lt]=En[ct]=En[ft]=En[pt]=En[Ye]=En[$e]=En[Xe]=En[Ze]=En[et]=En[tt]=En[nt]=En[dt]=En[ht]=En[mt]=En[gt]=!0,En[We]=En[Ge]=En[ot]=!1;var kn={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},wn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Cn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},An=parseFloat,On=parseInt,Sn="object"==typeof e&&e&&e.Object===Object&&e,Nn="object"==typeof self&&self&&self.Object===Object&&self,Dn=Sn||Nn||Function("return this")(),In="object"==typeof t&&t&&!t.nodeType&&t,Mn=In&&"object"==typeof r&&r&&!r.nodeType&&r,Ln=Mn&&Mn.exports===In,Pn=Ln&&Sn.process,Rn=function(){try{return Pn&&Pn.binding&&Pn.binding("util")}catch(e){}}(),Bn=Rn&&Rn.isArrayBuffer,jn=Rn&&Rn.isDate,Fn=Rn&&Rn.isMap,Hn=Rn&&Rn.isRegExp,Un=Rn&&Rn.isSet,zn=Rn&&Rn.isTypedArray,Kn=C("length"),qn=A(kn),Wn=A(wn),Gn=A(xn),Vn=function e(t){function n(e){if(tu(e)&&!dp(e)&&!(e instanceof y)){if(e instanceof o)return e;if(pc.call(e,"__wrapped__"))return Qi(e)}return new o(e)}function r(){}function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=re}function y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function A(){var e=new y(this.__wrapped__);return e.__actions__=Lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lo(this.__views__),e}function J(){if(this.__filtered__){var e=new y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ee(){var e=this.__wrapped__.value(),t=this.__dir__,n=dp(e),r=t<0,o=n?e.length:0,i=ki(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,p=0,d=zc(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return vo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){l+=t;for(var m=-1,g=e[l];++m<f;){var v=c[m],y=v.iteratee,b=v.type,T=y(g);if(b==Ne)g=T;else if(!T){if(b==Se)continue e;break e}}h[p++]=g}return h}function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jt(){this.__data__=Qc?Qc(null):{},this.size=0}function Jt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Xt(e){var t=this.__data__;if(Qc){var n=t[e];return n===se?re:n}return pc.call(t,e)?t[e]:re}function Qt(e){var t=this.__data__;return Qc?t[e]!==re:pc.call(t,e)}function Zt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qc&&t===re?se:t,this}function en(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tn(){this.__data__=[],this.size=0}function nn(e){var t=this.__data__,n=Yn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Cc.call(t,n,1),--this.size,!0)}function rn(e){var t=this.__data__,n=Yn(t,e);return n<0?re:t[n][1]}function on(e){return Yn(this.__data__,e)>-1}function an(e,t){var n=this.__data__,r=Yn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function un(){this.size=0,this.__data__={hash:new te,map:new(Yc||en),string:new te}}function ln(e){var t=bi(this,e).delete(e);return this.size-=t?1:0,t}function cn(e){return bi(this,e).get(e)}function fn(e){return bi(this,e).has(e)}function pn(e,t){var n=bi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function mn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new sn;++t<n;)this.add(e[t])}function gn(e){return this.__data__.set(e,se),this}function vn(e){return this.__data__.has(e)}function yn(e){var t=this.__data__=new en(e);this.size=t.size}function kn(){this.__data__=new en,this.size=0}function wn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function xn(e){return this.__data__.get(e)}function Cn(e){return this.__data__.has(e)}function Sn(e,t){var n=this.__data__;if(n instanceof en){var r=n.__data__;if(!Yc||r.length<oe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new sn(r)}return n.set(e,t),this.size=n.size,this}function Nn(e,t){var n=dp(e),r=!n&&pp(e),o=!n&&!r&&mp(e),i=!n&&!r&&!o&&Tp(e),a=n||r||o||i,s=a?D(e.length,ic):[],u=s.length;for(var l in e)!t&&!pc.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Di(l,u))||s.push(l);return s}function In(e){var t=e.length;return t?e[Xr(0,t-1)]:re}function Mn(e,t){return Yi(Lo(e),er(t,0,e.length))}function Pn(e){return Yi(Lo(e))}function Rn(e,t,n){(n===re||Us(e[t],n))&&(n!==re||t in e)||Qn(e,t,n)}function Kn(e,t,n){var r=e[t];pc.call(e,t)&&Us(r,n)&&(n!==re||t in e)||Qn(e,t,n)}function Yn(e,t){for(var n=e.length;n--;)if(Us(e[n][0],t))return n;return-1}function $n(e,t,n,r){return ff(e,function(e,o,i){t(r,e,n(e),i)}),r}function Jn(e,t){return e&&Po(t,Ru(t),e)}function Xn(e,t){return e&&Po(t,Bu(t),e)}function Qn(e,t,n){"__proto__"==t&&Nc?Nc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Zn(e,t){for(var n=-1,r=t.length,o=Ql(r),i=null==e;++n<r;)o[n]=i?re:Mu(e,t[n]);return o}function er(e,t,n){return e===e&&(n!==re&&(e=e<=n?e:n),t!==re&&(e=e>=t?e:t)),e}function tr(e,t,n,r,o,i){var a,u=t&ce,l=t&fe,c=t&pe;if(n&&(a=o?n(e,r,o,i):n(e)),a!==re)return a;if(!eu(e))return e;var f=dp(e);if(f){if(a=Ci(e),!u)return Lo(e,a)}else{var p=kf(e),d=p==Ge||p==Ve;if(mp(e))return wo(e,u);if(p==Xe||p==Fe||d&&!o){if(a=l||d?{}:Ai(e),!u)return l?Bo(e,Xn(a,e)):Ro(e,Jn(a,e))}else{if(!En[p])return o?e:{};a=Oi(e,p,u)}}i||(i=new yn);var h=i.get(e);if(h)return h;if(i.set(e,a),bp(e))return e.forEach(function(r){a.add(tr(r,t,n,r,e,i))}),a;if(vp(e))return e.forEach(function(r,o){a.set(o,tr(r,t,n,o,e,i))}),a;var m=c?l?mi:hi:l?Bu:Ru,g=f?re:m(e);return s(g||e,function(r,o){g&&(o=r,r=e[o]),Kn(a,o,tr(r,t,n,o,e,i))}),a}function nr(e){var t=Ru(e);return function(n){return rr(n,e,t)}}function rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=rc(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===re&&!(o in e)||!i(a))return!1}return!0}function or(e,t,n){if("function"!=typeof e)throw new ac(ae);return Cf(function(){e.apply(re,n)},t)}function ir(e,t,n,r){var o=-1,i=f,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=d(t,M(n))),r?(i=p,a=!1):t.length>=oe&&(i=P,a=!1,t=new mn(t));e:for(;++o<s;){var c=e[o],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h===h){for(var m=l;m--;)if(t[m]===h)continue e;u.push(c)}else i(t,h,r)||u.push(c)}return u}function ar(e,t){var n=!0;return ff(e,function(e,r,o){return n=!!t(e,r,o)}),n}function sr(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(s===re?a===a&&!pu(a):n(a,s)))var s=a,u=i}return u}function ur(e,t,n,r){var o=e.length;for(n=yu(n),n<0&&(n=-n>o?0:o+n),r=r===re||r>o?o:yu(r),r<0&&(r+=o),r=n>r?0:bu(r);n<r;)e[n++]=t;return e}function lr(e,t){var n=[];return ff(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function cr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Ni),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?cr(s,t-1,n,r,o):h(o,s):r||(o[o.length]=s)}return o}function fr(e,t){return e&&df(e,t,Ru)}function pr(e,t){return e&&hf(e,t,Ru)}function dr(e,t){return c(t,function(t){return Xs(e[t])})}function hr(e,t){t=Eo(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[$i(t[n++])];return n&&n==r?e:re}function mr(e,t,n){var r=t(e);return dp(e)?r:h(r,n(e))}function gr(e){return null==e?e===re?rt:Je:Sc&&Sc in rc(e)?Ei(e):zi(e)}function vr(e,t){return e>t}function yr(e,t){return null!=e&&pc.call(e,t)}function br(e,t){return null!=e&&t in rc(e)}function Tr(e,t,n){return e>=zc(t,n)&&e<Uc(t,n)}function _r(e,t,n){for(var r=n?p:f,o=e[0].length,i=e.length,a=i,s=Ql(i),u=1/0,l=[];a--;){var c=e[a];a&&t&&(c=d(c,M(t))),u=zc(c.length,u),s[a]=!n&&(t||o>=120&&c.length>=120)?new mn(a&&c):re}c=e[0];var h=-1,m=s[0];e:for(;++h<o&&l.length<u;){var g=c[h],v=t?t(g):g;if(g=n||0!==g?g:0,!(m?P(m,v):r(l,v,n))){for(a=i;--a;){var y=s[a];if(!(y?P(y,v):r(e[a],v,n)))continue e}m&&m.push(v),l.push(g)}}return l}function Er(e,t,n,r){return fr(e,function(e,o,i){t(r,n(e),o,i)}),r}function kr(e,t,n){t=Eo(t,e),e=qi(e,t);var r=null==e?e:e[$i(va(t))];return null==r?re:i(r,e,n)}function wr(e){return tu(e)&&gr(e)==Fe}function xr(e){return tu(e)&&gr(e)==at}function Cr(e){return tu(e)&&gr(e)==Ke}function Ar(e,t,n,r,o){return e===t||(null==e||null==t||!tu(e)&&!tu(t)?e!==e&&t!==t:Or(e,t,n,r,Ar,o))}function Or(e,t,n,r,o,i){var a=dp(e),s=dp(t),u=a?He:kf(e),l=s?He:kf(t);u=u==Fe?Xe:u,l=l==Fe?Xe:l;var c=u==Xe,f=l==Xe,p=u==l;if(p&&mp(e)){if(!mp(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new yn),a||Tp(e)?ci(e,t,n,r,o,i):fi(e,t,u,n,r,o,i);if(!(n&de)){var d=c&&pc.call(e,"__wrapped__"),h=f&&pc.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,g=h?t.value():t;return i||(i=new yn),o(m,g,n,r,i)}}return!!p&&(i||(i=new yn),pi(e,t,n,r,o,i))}function Sr(e){return tu(e)&&kf(e)==Ye}function Nr(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=rc(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===re&&!(u in e))return!1}else{var f=new yn;if(r)var p=r(l,c,u,e,t,f);if(!(p===re?Ar(c,l,de|he,r,f):p))return!1}}return!0}function Dr(e){return!(!eu(e)||Ri(e))&&(Xs(e)?yc:qt).test(Ji(e))}function Ir(e){return tu(e)&&gr(e)==Ze}function Mr(e){return tu(e)&&kf(e)==et}function Lr(e){return tu(e)&&Zs(e.length)&&!!_n[gr(e)]}function Pr(e){return"function"==typeof e?e:null==e?Cl:"object"==typeof e?dp(e)?Ur(e[0],e[1]):Hr(e):Ll(e)}function Rr(e){if(!Bi(e))return Hc(e);var t=[];for(var n in rc(e))pc.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!eu(e))return Ui(e);var t=Bi(e),n=[];for(var r in e)("constructor"!=r||!t&&pc.call(e,r))&&n.push(r);return n}function jr(e,t){return e<t}function Fr(e,t){var n=-1,r=zs(e)?Ql(e.length):[];return ff(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Hr(e){var t=Ti(e);return 1==t.length&&t[0][2]?Fi(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Ur(e,t){return Mi(e)&&ji(t)?Fi($i(e),t):function(n){var r=Mu(n,e);return r===re&&r===t?Pu(n,e):Ar(t,r,de|he)}}function zr(e,t,n,r,o){e!==t&&df(t,function(i,a){if(eu(i))o||(o=new yn),Kr(e,t,a,n,zr,r,o);else{var s=r?r(V(e,a),i,a+"",e,t,o):re;s===re&&(s=i),Rn(e,a,s)}},Bu)}function Kr(e,t,n,r,o,i,a){var s=V(e,n),u=V(t,n),l=a.get(u);if(l)return void Rn(e,n,l);var c=i?i(s,u,n+"",e,t,a):re,f=c===re;if(f){var p=dp(u),d=!p&&mp(u),h=!p&&!d&&Tp(u);c=u,p||d||h?dp(s)?c=s:Ks(s)?c=Lo(s):d?(f=!1,c=wo(u,!0)):h?(f=!1,c=So(u,!0)):c=[]:lu(u)||pp(u)?(c=s,pp(s)?c=_u(s):(!eu(s)||r&&Xs(s))&&(c=Ai(u))):f=!1}f&&(a.set(u,c),o(c,u,r,i,a),a.delete(u)),Rn(e,n,c)}function qr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Di(t,n)?e[t]:re}function Wr(e,t,n){var r=-1;return t=d(t.length?t:[Cl],M(yi())),S(Fr(e,function(e,n,o){return{criteria:d(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Do(e,t,n)})}function Gr(e,t){return Vr(e,t,function(t,n){return Pu(e,n)})}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=hr(e,a);n(s,a)&&ro(i,Eo(a,e),s)}return i}function Yr(e){return function(t){return hr(t,e)}}function $r(e,t,n,r){var o=r?k:E,i=-1,a=t.length,s=e;for(e===t&&(t=Lo(t)),n&&(s=d(e,M(n)));++i<a;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(s,c,u,r))>-1;)s!==e&&Cc.call(s,u,1),Cc.call(e,u,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Di(o)?Cc.call(e,o,1):ho(e,o)}}return e}function Xr(e,t){return e+Pc(Wc()*(t-e+1))}function Qr(e,t,n,r){for(var o=-1,i=Uc(Lc((t-e)/(n||1)),0),a=Ql(i);i--;)a[r?i:++o]=e,e+=n;return a}function Zr(e,t){var n="";if(!e||t<1||t>Ie)return n;do{t%2&&(n+=e),(t=Pc(t/2))&&(e+=e)}while(t);return n}function eo(e,t){return Af(Ki(e,t,Cl),e+"")}function to(e){return In($u(e))}function no(e,t){var n=$u(e);return Yi(n,er(t,0,n.length))}function ro(e,t,n,r){if(!eu(e))return e;t=Eo(t,e);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++o<i;){var u=$i(t[o]),l=n;if(o!=a){var c=s[u];l=r?r(c,u,s):re,l===re&&(l=eu(c)?c:Di(t[o+1])?[]:{})}Kn(s,u,l),s=s[u]}return e}function oo(e){return Yi($u(e))}function io(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Ql(o);++r<o;)i[r]=e[r+t];return i}function ao(e,t){var n;return ff(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=Be){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!pu(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return uo(e,t,Cl,n)}function uo(e,t,n,r){t=n(t);for(var o=0,i=null==e?0:e.length,a=t!==t,s=null===t,u=pu(t),l=t===re;o<i;){var c=Pc((o+i)/2),f=n(e[c]),p=f!==re,d=null===f,h=f===f,m=pu(f);if(a)var g=r||h;else g=l?h&&(r||p):s?h&&p&&(r||!d):u?h&&p&&!d&&(r||!m):!d&&!m&&(r?f<=t:f<t);g?o=c+1:i=c}return zc(i,Re)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Us(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:pu(e)?Le:+e}function fo(e){if("string"==typeof e)return e;if(dp(e))return d(e,fo)+"";if(pu(e))return lf?lf.call(e):"";var t=e+"";return"0"==t&&1/e==-De?"-0":t}function po(e,t,n){var r=-1,o=f,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=p;else if(i>=oe){var l=t?null:bf(e);if(l)return Y(l);a=!1,o=P,u=new mn}else u=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),s.push(c)}else o(u,d,n)||(u!==s&&u.push(d),s.push(c))}return s}function ho(e,t){return t=Eo(t,e),null==(e=qi(e,t))||delete e[$i(va(t))]}function mo(e,t,n,r){return ro(e,t,n(hr(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof y&&(n=n.value()),m(t,function(e,t){return t.func.apply(t.thisArg,h([e],t.args))},n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=Ql(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=ir(i[o]||a,e[s],t,n));return po(cr(i,1),t,n)}function bo(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:re;n(a,e[r],s)}return a}function To(e){return Ks(e)?e:[]}function _o(e){return"function"==typeof e?e:Cl}function Eo(e,t){return dp(e)?e:Mi(e,t)?[e]:Of(ku(e))}function ko(e,t,n){var r=e.length;return n=n===re?r:n,!t&&n>=r?e:io(e,t,n)}function wo(e,t){if(t)return e.slice();var n=e.length,r=Ec?Ec(n):new e.constructor(n);return e.copy(r),r}function xo(e){var t=new e.constructor(e.byteLength);return new _c(t).set(new _c(e)),t}function Co(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ao(e){var t=new e.constructor(e.source,Ut.exec(e));return t.lastIndex=e.lastIndex,t}function Oo(e){return uf?rc(uf.call(e)):{}}function So(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function No(e,t){if(e!==t){var n=e!==re,r=null===e,o=e===e,i=pu(e),a=t!==re,s=null===t,u=t===t,l=pu(t);if(!s&&!l&&!i&&e>t||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!u)return-1}return 0}function Do(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=No(o[r],i[r]);if(u){if(r>=s)return u;return u*("desc"==n[r]?-1:1)}}return e.index-t.index}function Io(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,l=Uc(i-a,0),c=Ql(u+l),f=!r;++s<u;)c[s]=t[s];for(;++o<a;)(f||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}function Mo(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,u=-1,l=t.length,c=Uc(i-s,0),f=Ql(c+l),p=!r;++o<c;)f[o]=e[o];for(var d=o;++u<l;)f[d+u]=t[u];for(;++a<s;)(p||o<i)&&(f[d+n[a]]=e[o++]);return f}function Lo(e,t){var n=-1,r=e.length;for(t||(t=Ql(r));++n<r;)t[n]=e[n];return t}function Po(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):re;u===re&&(u=e[s]),o?Qn(n,s,u):Kn(n,s,u)}return n}function Ro(e,t){return Po(e,_f(e),t)}function Bo(e,t){return Po(e,Ef(e),t)}function jo(e,t){return function(n,r){var o=dp(n)?a:$n,i=t?t():{};return o(n,e,yi(r,2),i)}}function Fo(e){return eo(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:re,a=o>2?n[2]:re;for(i=e.length>3&&"function"==typeof i?(o--,i):re,a&&Ii(n[0],n[1],a)&&(i=o<3?re:i,o=1),t=rc(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}function Ho(e,t){return function(n,r){if(null==n)return n;if(!zs(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=rc(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Uo(e){return function(t,n,r){for(var o=-1,i=rc(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function zo(e,t,n){function r(){return(this&&this!==Dn&&this instanceof r?i:e).apply(o?n:this,arguments)}var o=t&me,i=Wo(e);return r}function Ko(e){return function(t){t=ku(t);var n=U(t)?Z(t):re,r=n?n[0]:t.charAt(0),o=n?ko(n,1).join(""):t.slice(1);return r[e]()+o}}function qo(e){return function(t){return m(_l(tl(t).replace(dn,"")),e,"")}}function Wo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=cf(e.prototype),r=e.apply(n,t);return eu(r)?r:n}}function Go(e,t,n){function r(){for(var a=arguments.length,s=Ql(a),u=a,l=vi(r);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:G(s,l);return(a-=c.length)<n?ri(e,t,$o,r.placeholder,re,s,c,re,re,n-a):i(this&&this!==Dn&&this instanceof r?o:e,this,s)}var o=Wo(e);return r}function Vo(e){return function(t,n,r){var o=rc(t);if(!zs(t)){var i=yi(n,3);t=Ru(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:re}}function Yo(e){return di(function(t){var n=t.length,r=n,i=o.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ac(ae);if(i&&!s&&"wrapper"==gi(a))var s=new o([],!0)}for(r=s?r:n;++r<n;){a=t[r];var u=gi(a),l="wrapper"==u?Tf(a):re;s=l&&Pi(l[0])&&l[1]==(Ee|ye|Te|ke)&&!l[4].length&&1==l[9]?s[gi(l[0])].apply(s,l[3]):1==a.length&&Pi(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&dp(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function $o(e,t,n,r,o,i,a,s,u,l){function c(){for(var v=arguments.length,y=Ql(v),b=v;b--;)y[b]=arguments[b];if(h)var T=vi(c),_=j(y,T);if(r&&(y=Io(y,r,o,h)),i&&(y=Mo(y,i,a,h)),v-=_,h&&v<l){var E=G(y,T);return ri(e,t,$o,c.placeholder,n,y,E,s,u,l-v)}var k=p?n:this,w=d?k[e]:e;return v=y.length,s?y=Wi(y,s):m&&v>1&&y.reverse(),f&&u<v&&(y.length=u),this&&this!==Dn&&this instanceof c&&(w=g||Wo(w)),w.apply(k,y)}var f=t&Ee,p=t&me,d=t&ge,h=t&(ye|be),m=t&we,g=d?re:Wo(e);return c}function Jo(e,t){return function(n,r){return Er(n,e,t(r),{})}}function Xo(e,t){return function(n,r){var o;if(n===re&&r===re)return t;if(n!==re&&(o=n),r!==re){if(o===re)return r;"string"==typeof n||"string"==typeof r?(n=fo(n),r=fo(r)):(n=co(n),r=co(r)),o=e(n,r)}return o}}function Qo(e){return di(function(t){return t=d(t,M(yi())),eo(function(n){var r=this;return e(t,function(e){return i(e,r,n)})})})}function Zo(e,t){t=t===re?" ":fo(t);var n=t.length;if(n<2)return n?Zr(t,e):t;var r=Zr(t,Lc(e/Q(t)));return U(t)?ko(Z(r),0,e).join(""):r.slice(0,e)}function ei(e,t,n,r){function o(){for(var t=-1,u=arguments.length,l=-1,c=r.length,f=Ql(c+u),p=this&&this!==Dn&&this instanceof o?s:e;++l<c;)f[l]=r[l];for(;u--;)f[l++]=arguments[++t];return i(p,a?n:this,f)}var a=t&me,s=Wo(e);return o}function ti(e){return function(t,n,r){return r&&"number"!=typeof r&&Ii(t,n,r)&&(n=r=re),t=vu(t),n===re?(n=t,t=0):n=vu(n),r=r===re?t<n?1:-1:vu(r),Qr(t,n,r,e)}}function ni(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Tu(t),n=Tu(n)),e(t,n)}}function ri(e,t,n,r,o,i,a,s,u,l){var c=t&ye,f=c?a:re,p=c?re:a,d=c?i:re,h=c?re:i;t|=c?Te:_e,(t&=~(c?_e:Te))&ve||(t&=~(me|ge));var m=[e,t,o,d,f,h,p,s,u,l],g=n.apply(re,m);return Pi(e)&&xf(g,m),g.placeholder=r,Gi(g,e,t)}function oi(e){var t=nc[e];return function(e,n){if(e=Tu(e),n=null==n?0:zc(yu(n),292)){var r=(ku(e)+"e").split("e");return r=(ku(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}function ii(e){return function(t){var n=kf(t);return n==Ye?q(t):n==et?$(t):I(t,e(t))}}function ai(e,t,n,r,o,i,a,s){var u=t&ge;if(!u&&"function"!=typeof e)throw new ac(ae);var l=r?r.length:0;if(l||(t&=~(Te|_e),r=o=re),a=a===re?a:Uc(yu(a),0),s=s===re?s:yu(s),l-=o?o.length:0,t&_e){var c=r,f=o;r=o=re}var p=u?re:Tf(e),d=[e,t,n,r,o,c,f,i,a,s];if(p&&Hi(d,p),e=d[0],t=d[1],n=d[2],r=d[3],o=d[4],s=d[9]=d[9]===re?u?0:e.length:Uc(d[9]-l,0),!s&&t&(ye|be)&&(t&=~(ye|be)),t&&t!=me)h=t==ye||t==be?Go(e,t,s):t!=Te&&t!=(me|Te)||o.length?$o.apply(re,d):ei(e,t,n,r);else var h=zo(e,t,n);return Gi((p?mf:xf)(h,d),e,t)}function si(e,t,n,r){return e===re||Us(e,lc[n])&&!pc.call(r,n)?t:e}function ui(e,t,n,r,o,i){return eu(e)&&eu(t)&&(i.set(t,e),zr(e,t,re,ui,i),i.delete(t)),e}function li(e){return lu(e)?re:e}function ci(e,t,n,r,o,i){var a=n&de,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,p=n&he?new mn:re;for(i.set(e,t),i.set(t,e);++c<s;){var d=e[c],h=t[c];if(r)var m=a?r(h,d,c,t,e,i):r(d,h,c,e,t,i);if(m!==re){if(m)continue;f=!1;break}if(p){if(!v(t,function(e,t){if(!P(p,t)&&(d===e||o(d,e,n,r,i)))return p.push(t)})){f=!1;break}}else if(d!==h&&!o(d,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function fi(e,t,n,r,o,i,a){switch(n){case st:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case at:return!(e.byteLength!=t.byteLength||!i(new _c(e),new _c(t)));case ze:case Ke:case $e:return Us(+e,+t);case We:return e.name==t.name&&e.message==t.message;case Ze:case tt:return e==t+"";case Ye:var s=q;case et:var u=r&de;if(s||(s=Y),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=he,a.set(e,t);var c=ci(s(e),s(t),r,o,i,a);return a.delete(e),c;case nt:if(uf)return uf.call(e)==uf.call(t)}return!1}function pi(e,t,n,r,o,i){var a=n&de,s=hi(e),u=s.length;if(u!=hi(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:pc.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var p=!0;i.set(e,t),i.set(t,e);for(var d=a;++l<u;){c=s[l];var h=e[c],m=t[c];if(r)var g=a?r(m,h,c,t,e,i):r(h,m,c,e,t,i);if(!(g===re?h===m||o(h,m,n,r,i):g)){p=!1;break}d||(d="constructor"==c)}if(p&&!d){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(p=!1)}return i.delete(e),i.delete(t),p}function di(e){return Af(Ki(e,re,la),e+"")}function hi(e){return mr(e,Ru,_f)}function mi(e){return mr(e,Bu,Ef)}function gi(e){for(var t=e.name+"",n=ef[t],r=pc.call(ef,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function vi(e){return(pc.call(n,"placeholder")?n:e).placeholder}function yi(){var e=n.iteratee||Al;return e=e===Al?Pr:e,arguments.length?e(arguments[0],arguments[1]):e}function bi(e,t){var n=e.__data__;return Li(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ti(e){for(var t=Ru(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ji(o)]}return t}function _i(e,t){var n=H(e,t);return Dr(n)?n:re}function Ei(e){var t=pc.call(e,Sc),n=e[Sc];try{e[Sc]=re;var r=!0}catch(e){}var o=mc.call(e);return r&&(t?e[Sc]=n:delete e[Sc]),o}function ki(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=zc(t,e+a);break;case"takeRight":e=Uc(e,t-a)}}return{start:e,end:t}}function wi(e){var t=e.match(Rt);return t?t[1].split(Bt):[]}function xi(e,t,n){t=Eo(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Zs(o)&&Di(a,o)&&(dp(e)||pp(e))}function Ci(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&pc.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Ai(e){return"function"!=typeof e.constructor||Bi(e)?{}:cf(kc(e))}function Oi(e,t,n){var r=e.constructor;switch(t){case at:return xo(e);case ze:case Ke:return new r(+e);case st:return Co(e,n);case ut:case lt:case ct:case ft:case pt:case dt:case ht:case mt:case gt:return So(e,n);case Ye:return new r;case $e:case tt:return new r(e);case Ze:return Ao(e);case et:return new r;case nt:return Oo(e)}}function Si(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Pt,"{\n/* [wrapped with "+t+"] */\n")}function Ni(e){return dp(e)||pp(e)||!!(Ac&&e&&e[Ac])}function Di(e,t){var n=typeof e;return!!(t=null==t?Ie:t)&&("number"==n||"symbol"!=n&&Gt.test(e))&&e>-1&&e%1==0&&e<t}function Ii(e,t,n){if(!eu(n))return!1;var r=typeof t;return!!("number"==r?zs(n)&&Di(t,n.length):"string"==r&&t in n)&&Us(n[t],e)}function Mi(e,t){if(dp(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!pu(e))||(Ot.test(e)||!At.test(e)||null!=t&&e in rc(t))}function Li(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Pi(e){var t=gi(e),r=n[t];if("function"!=typeof r||!(t in y.prototype))return!1;if(e===r)return!0;var o=Tf(r);return!!o&&e===o[0]}function Ri(e){return!!hc&&hc in e}function Bi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lc)}function ji(e){return e===e&&!eu(e)}function Fi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==re||e in rc(n)))}}function Hi(e,t){var n=e[1],r=t[1],o=n|r,i=o<(me|ge|Ee),a=r==Ee&&n==ye||r==Ee&&n==ke&&e[7].length<=t[8]||r==(Ee|ke)&&t[7].length<=t[8]&&n==ye;if(!i&&!a)return e;r&me&&(e[2]=t[2],o|=n&me?0:ve);var s=t[3];if(s){var u=e[3];e[3]=u?Io(u,s,t[4]):s,e[4]=u?G(e[3],le):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?Mo(u,s,t[6]):s,e[6]=u?G(e[5],le):t[6]),s=t[7],s&&(e[7]=s),r&Ee&&(e[8]=null==e[8]?t[8]:zc(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function Ui(e){var t=[];if(null!=e)for(var n in rc(e))t.push(n);return t}function zi(e){return mc.call(e)}function Ki(e,t,n){return t=Uc(t===re?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Uc(r.length-t,0),s=Ql(a);++o<a;)s[o]=r[t+o];o=-1;for(var u=Ql(t+1);++o<t;)u[o]=r[o];return u[t]=n(s),i(e,this,u)}}function qi(e,t){return t.length<2?e:hr(e,io(t,0,-1))}function Wi(e,t){for(var n=e.length,r=zc(t.length,n),o=Lo(e);r--;){var i=t[r];e[r]=Di(i,n)?o[i]:re}return e}function Gi(e,t,n){var r=t+"";return Af(e,Si(r,Xi(wi(r),n)))}function Vi(e){var t=0,n=0;return function(){var r=Kc(),o=Oe-(r-n);if(n=r,o>0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(re,arguments)}}function Yi(e,t){var n=-1,r=e.length,o=r-1;for(t=t===re?r:t;++n<t;){var i=Xr(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function $i(e){if("string"==typeof e||pu(e))return e;var t=e+"";return"0"==t&&1/e==-De?"-0":t}function Ji(e){if(null!=e){try{return fc.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Xi(e,t){return s(je,function(n){var r="_."+n[0];t&n[1]&&!f(e,r)&&e.push(r)}),e.sort()}function Qi(e){if(e instanceof y)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=Lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Zi(e,t,n){t=(n?Ii(e,t,n):t===re)?1:Uc(yu(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Ql(Lc(r/t));o<r;)a[i++]=io(e,o,o+=t);return a}function ea(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function ta(){var e=arguments.length;if(!e)return[];for(var t=Ql(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return h(dp(n)?Lo(n):[n],cr(t,1))}function na(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===re?1:yu(t),io(e,t<0?0:t,r)):[]}function ra(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===re?1:yu(t),t=r-t,io(e,0,t<0?0:t)):[]}function oa(e,t){return e&&e.length?go(e,yi(t,3),!0,!0):[]}function ia(e,t){return e&&e.length?go(e,yi(t,3),!0):[]}function aa(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Ii(e,t,n)&&(n=0,r=o),ur(e,t,n,r)):[]}function sa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:yu(n);return o<0&&(o=Uc(r+o,0)),_(e,yi(t,3),o)}function ua(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==re&&(o=yu(n),o=n<0?Uc(r+o,0):zc(o,r-1)),_(e,yi(t,3),o,!0)}function la(e){return(null==e?0:e.length)?cr(e,1):[]}function ca(e){return(null==e?0:e.length)?cr(e,De):[]}function fa(e,t){return(null==e?0:e.length)?(t=t===re?1:yu(t),cr(e,t)):[]}function pa(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function da(e){return e&&e.length?e[0]:re}function ha(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:yu(n);return o<0&&(o=Uc(r+o,0)),E(e,t,o)}function ma(e){return(null==e?0:e.length)?io(e,0,-1):[]}function ga(e,t){return null==e?"":Fc.call(e,t)}function va(e){var t=null==e?0:e.length;return t?e[t-1]:re}function ya(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==re&&(o=yu(n),o=o<0?Uc(r+o,0):zc(o,r-1)),t===t?X(e,t,o):_(e,w,o,!0)}function ba(e,t){return e&&e.length?qr(e,yu(t)):re}function Ta(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}function _a(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,yi(n,2)):e}function Ea(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,re,n):e}function ka(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=yi(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Jr(e,o),n}function wa(e){return null==e?e:Gc.call(e)}function xa(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Ii(e,t,n)?(t=0,n=r):(t=null==t?0:yu(t),n=n===re?r:yu(n)),io(e,t,n)):[]}function Ca(e,t){return so(e,t)}function Aa(e,t,n){return uo(e,t,yi(n,2))}function Oa(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Us(e[r],t))return r}return-1}function Sa(e,t){return so(e,t,!0)}function Na(e,t,n){return uo(e,t,yi(n,2),!0)}function Da(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(Us(e[n],t))return n}return-1}function Ia(e){return e&&e.length?lo(e):[]}function Ma(e,t){return e&&e.length?lo(e,yi(t,2)):[]}function La(e){var t=null==e?0:e.length;return t?io(e,1,t):[]}function Pa(e,t,n){return e&&e.length?(t=n||t===re?1:yu(t),io(e,0,t<0?0:t)):[]}function Ra(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===re?1:yu(t),t=r-t,io(e,t<0?0:t,r)):[]}function Ba(e,t){return e&&e.length?go(e,yi(t,3),!1,!0):[]}function ja(e,t){return e&&e.length?go(e,yi(t,3)):[]}function Fa(e){return e&&e.length?po(e):[]}function Ha(e,t){return e&&e.length?po(e,yi(t,2)):[]}function Ua(e,t){return t="function"==typeof t?t:re,e&&e.length?po(e,re,t):[]}function za(e){if(!e||!e.length)return[];var t=0;return e=c(e,function(e){if(Ks(e))return t=Uc(e.length,t),!0}),D(t,function(t){return d(e,C(t))})}function Ka(e,t){if(!e||!e.length)return[];var n=za(e);return null==t?n:d(n,function(e){return i(t,re,e)})}function qa(e,t){return bo(e||[],t||[],Kn)}function Wa(e,t){return bo(e||[],t||[],ro)}function Ga(e){var t=n(e);return t.__chain__=!0,t}function Va(e,t){return t(e),e}function Ya(e,t){return t(e)}function $a(){return Ga(this)}function Ja(){return new o(this.value(),this.__chain__)}function Xa(){this.__values__===re&&(this.__values__=gu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?re:this.__values__[this.__index__++]}}function Qa(){return this}function Za(e){for(var t,n=this;n instanceof r;){var o=Qi(n);o.__index__=0,o.__values__=re,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof y){var t=e;return this.__actions__.length&&(t=new y(this)),t=t.reverse(),t.__actions__.push({func:Ya,args:[wa],thisArg:re}),new o(t,this.__chain__)}return this.thru(wa)}function ts(){return vo(this.__wrapped__,this.__actions__)}function ns(e,t,n){var r=dp(e)?l:ar;return n&&Ii(e,t,n)&&(t=re),r(e,yi(t,3))}function rs(e,t){return(dp(e)?c:lr)(e,yi(t,3))}function os(e,t){return cr(cs(e,t),1)}function is(e,t){return cr(cs(e,t),De)}function as(e,t,n){return n=n===re?1:yu(n),cr(cs(e,t),n)}function ss(e,t){return(dp(e)?s:ff)(e,yi(t,3))}function us(e,t){return(dp(e)?u:pf)(e,yi(t,3))}function ls(e,t,n,r){e=zs(e)?e:$u(e),n=n&&!r?yu(n):0;var o=e.length;return n<0&&(n=Uc(o+n,0)),fu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&E(e,t,n)>-1}function cs(e,t){return(dp(e)?d:Fr)(e,yi(t,3))}function fs(e,t,n,r){return null==e?[]:(dp(t)||(t=null==t?[]:[t]),n=r?re:n,dp(n)||(n=null==n?[]:[n]),Wr(e,t,n))}function ps(e,t,n){var r=dp(e)?m:O,o=arguments.length<3;return r(e,yi(t,4),n,o,ff)}function ds(e,t,n){var r=dp(e)?g:O,o=arguments.length<3;return r(e,yi(t,4),n,o,pf)}function hs(e,t){return(dp(e)?c:lr)(e,Os(yi(t,3)))}function ms(e){return(dp(e)?In:to)(e)}function gs(e,t,n){return t=(n?Ii(e,t,n):t===re)?1:yu(t),(dp(e)?Mn:no)(e,t)}function vs(e){return(dp(e)?Pn:oo)(e)}function ys(e){if(null==e)return 0;if(zs(e))return fu(e)?Q(e):e.length;var t=kf(e);return t==Ye||t==et?e.size:Rr(e).length}function bs(e,t,n){var r=dp(e)?v:ao;return n&&Ii(e,t,n)&&(t=re),r(e,yi(t,3))}function Ts(e,t){if("function"!=typeof t)throw new ac(ae);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}}function _s(e,t,n){return t=n?re:t,t=e&&null==t?e.length:t,ai(e,Ee,re,re,re,re,t)}function Es(e,t){var n;if("function"!=typeof t)throw new ac(ae);return e=yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=re),n}}function ks(e,t,n){t=n?re:t;var r=ai(e,ye,re,re,re,re,re,t);return r.placeholder=ks.placeholder,r}function ws(e,t,n){t=n?re:t;var r=ai(e,be,re,re,re,re,re,t);return r.placeholder=ws.placeholder,r}function xs(e,t,n){function r(t){var n=p,r=d;return p=d=re,y=t,m=e.apply(r,n)}function o(e){return y=e,g=Cf(s,t),b?r(e):m}function i(e){var n=e-v,r=e-y,o=t-n;return T?zc(o,h-r):o}function a(e){var n=e-v,r=e-y;return v===re||n>=t||n<0||T&&r>=h}function s(){var e=tp();if(a(e))return u(e);g=Cf(s,i(e))}function u(e){return g=re,_&&p?r(e):(p=d=re,m)}function l(){g!==re&&yf(g),y=0,p=v=d=g=re}function c(){return g===re?m:u(tp())}function f(){var e=tp(),n=a(e);if(p=arguments,d=this,v=e,n){if(g===re)return o(v);if(T)return g=Cf(s,t),r(v)}return g===re&&(g=Cf(s,t)),m}var p,d,h,m,g,v,y=0,b=!1,T=!1,_=!0;if("function"!=typeof e)throw new ac(ae);return t=Tu(t)||0,eu(n)&&(b=!!n.leading,T="maxWait"in n,h=T?Uc(Tu(n.maxWait)||0,t):h,_="trailing"in n?!!n.trailing:_),f.cancel=l,f.flush=c,f}function Cs(e){return ai(e,we)}function As(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ac(ae);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(As.Cache||sn),n}function Os(e){if("function"!=typeof e)throw new ac(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ss(e){return Es(2,e)}function Ns(e,t){if("function"!=typeof e)throw new ac(ae);return t=t===re?t:yu(t),eo(e,t)}function Ds(e,t){if("function"!=typeof e)throw new ac(ae);return t=null==t?0:Uc(yu(t),0),eo(function(n){var r=n[t],o=ko(n,0,t);return r&&h(o,r),i(e,this,o)})}function Is(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ac(ae);return eu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),xs(e,t,{leading:r,maxWait:t,trailing:o})}function Ms(e){return _s(e,1)}function Ls(e,t){return sp(_o(t),e)}function Ps(){if(!arguments.length)return[];var e=arguments[0];return dp(e)?e:[e]}function Rs(e){return tr(e,pe)}function Bs(e,t){return t="function"==typeof t?t:re,tr(e,pe,t)}function js(e){return tr(e,ce|pe)}function Fs(e,t){return t="function"==typeof t?t:re,tr(e,ce|pe,t)}function Hs(e,t){return null==t||rr(e,t,Ru(t))}function Us(e,t){return e===t||e!==e&&t!==t}function zs(e){return null!=e&&Zs(e.length)&&!Xs(e)}function Ks(e){return tu(e)&&zs(e)}function qs(e){return!0===e||!1===e||tu(e)&&gr(e)==ze}function Ws(e){return tu(e)&&1===e.nodeType&&!lu(e)}function Gs(e){if(null==e)return!0;if(zs(e)&&(dp(e)||"string"==typeof e||"function"==typeof e.splice||mp(e)||Tp(e)||pp(e)))return!e.length;var t=kf(e);if(t==Ye||t==et)return!e.size;if(Bi(e))return!Rr(e).length;for(var n in e)if(pc.call(e,n))return!1;return!0}function Vs(e,t){return Ar(e,t)}function Ys(e,t,n){n="function"==typeof n?n:re;var r=n?n(e,t):re;return r===re?Ar(e,t,re,n):!!r}function $s(e){if(!tu(e))return!1;var t=gr(e);return t==We||t==qe||"string"==typeof e.message&&"string"==typeof e.name&&!lu(e)}function Js(e){return"number"==typeof e&&jc(e)}function Xs(e){if(!eu(e))return!1;var t=gr(e);return t==Ge||t==Ve||t==Ue||t==Qe}function Qs(e){return"number"==typeof e&&e==yu(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ie}function eu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tu(e){return null!=e&&"object"==typeof e}function nu(e,t){return e===t||Nr(e,t,Ti(t))}function ru(e,t,n){return n="function"==typeof n?n:re,Nr(e,t,Ti(t),n)}function ou(e){return uu(e)&&e!=+e}function iu(e){if(wf(e))throw new ec(ie);return Dr(e)}function au(e){return null===e}function su(e){return null==e}function uu(e){return"number"==typeof e||tu(e)&&gr(e)==$e}function lu(e){if(!tu(e)||gr(e)!=Xe)return!1;var t=kc(e);if(null===t)return!0;var n=pc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fc.call(n)==gc}function cu(e){return Qs(e)&&e>=-Ie&&e<=Ie}function fu(e){return"string"==typeof e||!dp(e)&&tu(e)&&gr(e)==tt}function pu(e){return"symbol"==typeof e||tu(e)&&gr(e)==nt}function du(e){return e===re}function hu(e){return tu(e)&&kf(e)==ot}function mu(e){return tu(e)&&gr(e)==it}function gu(e){if(!e)return[];if(zs(e))return fu(e)?Z(e):Lo(e);if(Oc&&e[Oc])return K(e[Oc]());var t=kf(e);return(t==Ye?q:t==et?Y:$u)(e)}function vu(e){if(!e)return 0===e?e:0;if((e=Tu(e))===De||e===-De){return(e<0?-1:1)*Me}return e===e?e:0}function yu(e){var t=vu(e),n=t%1;return t===t?n?t-n:t:0}function bu(e){return e?er(yu(e),0,Pe):0}function Tu(e){if("number"==typeof e)return e;if(pu(e))return Le;if(eu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(It,"");var n=Kt.test(e);return n||Wt.test(e)?On(e.slice(2),n?2:8):zt.test(e)?Le:+e}function _u(e){return Po(e,Bu(e))}function Eu(e){return e?er(yu(e),-Ie,Ie):0===e?e:0}function ku(e){return null==e?"":fo(e)}function wu(e,t){var n=cf(e);return null==t?n:Jn(n,t)}function xu(e,t){return T(e,yi(t,3),fr)}function Cu(e,t){return T(e,yi(t,3),pr)}function Au(e,t){return null==e?e:df(e,yi(t,3),Bu)}function Ou(e,t){return null==e?e:hf(e,yi(t,3),Bu)}function Su(e,t){return e&&fr(e,yi(t,3))}function Nu(e,t){return e&&pr(e,yi(t,3))}function Du(e){return null==e?[]:dr(e,Ru(e))}function Iu(e){return null==e?[]:dr(e,Bu(e))}function Mu(e,t,n){var r=null==e?re:hr(e,t);return r===re?n:r}function Lu(e,t){return null!=e&&xi(e,t,yr)}function Pu(e,t){return null!=e&&xi(e,t,br)}function Ru(e){return zs(e)?Nn(e):Rr(e)}function Bu(e){return zs(e)?Nn(e,!0):Br(e)}function ju(e,t){var n={};return t=yi(t,3),fr(e,function(e,r,o){Qn(n,t(e,r,o),e)}),n}function Fu(e,t){var n={};return t=yi(t,3),fr(e,function(e,r,o){Qn(n,r,t(e,r,o))}),n}function Hu(e,t){return Uu(e,Os(yi(t)))}function Uu(e,t){if(null==e)return{};var n=d(mi(e),function(e){return[e]});return t=yi(t),Vr(e,n,function(e,n){return t(e,n[0])})}function zu(e,t,n){t=Eo(t,e);var r=-1,o=t.length;for(o||(o=1,e=re);++r<o;){var i=null==e?re:e[$i(t[r])];i===re&&(r=o,i=n),e=Xs(i)?i.call(e):i}return e}function Ku(e,t,n){return null==e?e:ro(e,t,n)}function qu(e,t,n,r){return r="function"==typeof r?r:re,null==e?e:ro(e,t,n,r)}function Wu(e,t,n){var r=dp(e),o=r||mp(e)||Tp(e);if(t=yi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:eu(e)&&Xs(i)?cf(kc(e)):{}}return(o?s:fr)(e,function(e,r,o){return t(n,e,r,o)}),n}function Gu(e,t){return null==e||ho(e,t)}function Vu(e,t,n){return null==e?e:mo(e,t,_o(n))}function Yu(e,t,n,r){return r="function"==typeof r?r:re,null==e?e:mo(e,t,_o(n),r)}function $u(e){return null==e?[]:L(e,Ru(e))}function Ju(e){return null==e?[]:L(e,Bu(e))}function Xu(e,t,n){return n===re&&(n=t,t=re),n!==re&&(n=Tu(n),n=n===n?n:0),t!==re&&(t=Tu(t),t=t===t?t:0),er(Tu(e),t,n)}function Qu(e,t,n){return t=vu(t),n===re?(n=t,t=0):n=vu(n),e=Tu(e),Tr(e,t,n)}function Zu(e,t,n){if(n&&"boolean"!=typeof n&&Ii(e,t,n)&&(t=n=re),n===re&&("boolean"==typeof t?(n=t,t=re):"boolean"==typeof e&&(n=e,e=re)),e===re&&t===re?(e=0,t=1):(e=vu(e),t===re?(t=e,e=0):t=vu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Wc();return zc(e+o*(t-e+An("1e-"+((o+"").length-1))),t)}return Xr(e,t)}function el(e){return Gp(ku(e).toLowerCase())}function tl(e){return(e=ku(e))&&e.replace(Vt,qn).replace(hn,"")}function nl(e,t,n){e=ku(e),t=fo(t);var r=e.length;n=n===re?r:er(yu(n),0,r);var o=n;return(n-=t.length)>=0&&e.slice(n,o)==t}function rl(e){return e=ku(e),e&&kt.test(e)?e.replace(_t,Wn):e}function ol(e){return e=ku(e),e&&Dt.test(e)?e.replace(Nt,"\\$&"):e}function il(e,t,n){e=ku(e),t=yu(t);var r=t?Q(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Zo(Pc(o),n)+e+Zo(Lc(o),n)}function al(e,t,n){e=ku(e),t=yu(t);var r=t?Q(e):0;return t&&r<t?e+Zo(t-r,n):e}function sl(e,t,n){e=ku(e),t=yu(t);var r=t?Q(e):0;return t&&r<t?Zo(t-r,n)+e:e}function ul(e,t,n){return n||null==t?t=0:t&&(t=+t),qc(ku(e).replace(Mt,""),t||0)}function ll(e,t,n){return t=(n?Ii(e,t,n):t===re)?1:yu(t),Zr(ku(e),t)}function cl(){var e=arguments,t=ku(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function fl(e,t,n){return n&&"number"!=typeof n&&Ii(e,t,n)&&(t=n=re),(n=n===re?Pe:n>>>0)?(e=ku(e),e&&("string"==typeof t||null!=t&&!yp(t))&&!(t=fo(t))&&U(e)?ko(Z(e),0,n):e.split(t,n)):[]}function pl(e,t,n){return e=ku(e),n=null==n?0:er(yu(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t}function dl(e,t,r){var o=n.templateSettings;r&&Ii(e,t,r)&&(t=re),e=ku(e),t=xp({},t,o,si);var i,a,s=xp({},t.imports,o.imports,si),u=Ru(s),l=L(s,u),c=0,f=t.interpolate||Yt,p="__p += '",d=oc((t.escape||Yt).source+"|"+f.source+"|"+(f===Ct?Ht:Yt).source+"|"+(t.evaluate||Yt).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Tn+"]")+"\n";e.replace(d,function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(c,u).replace($t,F),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),p+="';\n";var m=t.variable;m||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(vt,""):p).replace(yt,"$1").replace(bt,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Vp(function(){return tc(u,h+"return "+p).apply(re,l)});if(g.source=p,$s(g))throw g;return g}function hl(e){return ku(e).toLowerCase()}function ml(e){return ku(e).toUpperCase()}function gl(e,t,n){if((e=ku(e))&&(n||t===re))return e.replace(It,"");if(!e||!(t=fo(t)))return e;var r=Z(e),o=Z(t);return ko(r,R(r,o),B(r,o)+1).join("")}function vl(e,t,n){if((e=ku(e))&&(n||t===re))return e.replace(Lt,"");if(!e||!(t=fo(t)))return e;var r=Z(e);return ko(r,0,B(r,Z(t))+1).join("")}function yl(e,t,n){if((e=ku(e))&&(n||t===re))return e.replace(Mt,"");if(!e||!(t=fo(t)))return e;var r=Z(e);return ko(r,R(r,Z(t))).join("")}function bl(e,t){var n=xe,r=Ce;if(eu(t)){var o="separator"in t?t.separator:o;n="length"in t?yu(t.length):n,r="omission"in t?fo(t.omission):r}e=ku(e);var i=e.length;if(U(e)){var a=Z(e);i=a.length}if(n>=i)return e;var s=n-Q(r);if(s<1)return r;var u=a?ko(a,0,s).join(""):e.slice(0,s);if(o===re)return u+r;if(a&&(s+=u.length-s),yp(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=oc(o.source,ku(Ut.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,f===re?s:f)}}else if(e.indexOf(fo(o),s)!=s){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+r}function Tl(e){return e=ku(e),e&&Et.test(e)?e.replace(Tt,Gn):e}function _l(e,t,n){return e=ku(e),t=n?re:t,t===re?z(e)?ne(e):b(e):e.match(t)||[]}function El(e){var t=null==e?0:e.length,n=yi();return e=t?d(e,function(e){if("function"!=typeof e[1])throw new ac(ae);return[n(e[0]),e[1]]}):[],eo(function(n){for(var r=-1;++r<t;){var o=e[r];if(i(o[0],this,n))return i(o[1],this,n)}})}function kl(e){return nr(tr(e,ce))}function wl(e){return function(){return e}}function xl(e,t){return null==e||e!==e?t:e}function Cl(e){return e}function Al(e){return Pr("function"==typeof e?e:tr(e,ce))}function Ol(e){return Hr(tr(e,ce))}function Sl(e,t){return Ur(e,tr(t,ce))}function Nl(e,t,n){var r=Ru(t),o=dr(t,r);null!=n||eu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=dr(t,Ru(t)));var i=!(eu(n)&&"chain"in n)||!!n.chain,a=Xs(e);return s(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Lo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,h([this.value()],arguments))})}),e}function Dl(){return Dn._===this&&(Dn._=vc),this}function Il(){}function Ml(e){return e=yu(e),eo(function(t){return qr(t,e)})}function Ll(e){return Mi(e)?C($i(e)):Yr(e)}function Pl(e){return function(t){return null==e?re:hr(e,t)}}function Rl(){return[]}function Bl(){return!1}function jl(){return{}}function Fl(){return""}function Hl(){return!0}function Ul(e,t){if((e=yu(e))<1||e>Ie)return[];var n=Pe,r=zc(e,Pe);t=yi(t),e-=Pe;for(var o=D(r,t);++n<e;)t(n);return o}function zl(e){return dp(e)?d(e,$i):pu(e)?[e]:Lo(Of(ku(e)))}function Kl(e){var t=++dc;return ku(e)+t}function ql(e){return e&&e.length?sr(e,Cl,vr):re}function Wl(e,t){return e&&e.length?sr(e,yi(t,2),vr):re}function Gl(e){return x(e,Cl)}function Vl(e,t){return x(e,yi(t,2))}function Yl(e){return e&&e.length?sr(e,Cl,jr):re}function $l(e,t){return e&&e.length?sr(e,yi(t,2),jr):re}function Jl(e){return e&&e.length?N(e,Cl):0}function Xl(e,t){return e&&e.length?N(e,yi(t,2)):0}t=null==t?Dn:Vn.defaults(Dn.Object(),t,Vn.pick(Dn,bn));var Ql=t.Array,Zl=t.Date,ec=t.Error,tc=t.Function,nc=t.Math,rc=t.Object,oc=t.RegExp,ic=t.String,ac=t.TypeError,sc=Ql.prototype,uc=tc.prototype,lc=rc.prototype,cc=t["__core-js_shared__"],fc=uc.toString,pc=lc.hasOwnProperty,dc=0,hc=function(){var e=/[^.]+$/.exec(cc&&cc.keys&&cc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mc=lc.toString,gc=fc.call(rc),vc=Dn._,yc=oc("^"+fc.call(pc).replace(Nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bc=Ln?t.Buffer:re,Tc=t.Symbol,_c=t.Uint8Array,Ec=bc?bc.allocUnsafe:re,kc=W(rc.getPrototypeOf,rc),wc=rc.create,xc=lc.propertyIsEnumerable,Cc=sc.splice,Ac=Tc?Tc.isConcatSpreadable:re,Oc=Tc?Tc.iterator:re,Sc=Tc?Tc.toStringTag:re,Nc=function(){try{var e=_i(rc,"defineProperty");return e({},"",{}),e}catch(e){}}(),Dc=t.clearTimeout!==Dn.clearTimeout&&t.clearTimeout,Ic=Zl&&Zl.now!==Dn.Date.now&&Zl.now,Mc=t.setTimeout!==Dn.setTimeout&&t.setTimeout,Lc=nc.ceil,Pc=nc.floor,Rc=rc.getOwnPropertySymbols,Bc=bc?bc.isBuffer:re,jc=t.isFinite,Fc=sc.join,Hc=W(rc.keys,rc),Uc=nc.max,zc=nc.min,Kc=Zl.now,qc=t.parseInt,Wc=nc.random,Gc=sc.reverse,Vc=_i(t,"DataView"),Yc=_i(t,"Map"),$c=_i(t,"Promise"),Jc=_i(t,"Set"),Xc=_i(t,"WeakMap"),Qc=_i(rc,"create"),Zc=Xc&&new Xc,ef={},tf=Ji(Vc),nf=Ji(Yc),rf=Ji($c),of=Ji(Jc),af=Ji(Xc),sf=Tc?Tc.prototype:re,uf=sf?sf.valueOf:re,lf=sf?sf.toString:re,cf=function(){function e(){}return function(t){if(!eu(t))return{};if(wc)return wc(t);e.prototype=t;var n=new e;return e.prototype=re,n}}();n.templateSettings={escape:wt,evaluate:xt,interpolate:Ct,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,o.prototype=cf(r.prototype),o.prototype.constructor=o,y.prototype=cf(r.prototype),y.prototype.constructor=y,te.prototype.clear=jt,te.prototype.delete=Jt,te.prototype.get=Xt,te.prototype.has=Qt,te.prototype.set=Zt,en.prototype.clear=tn,en.prototype.delete=nn,en.prototype.get=rn,en.prototype.has=on,en.prototype.set=an,sn.prototype.clear=un,sn.prototype.delete=ln,sn.prototype.get=cn,sn.prototype.has=fn,sn.prototype.set=pn,mn.prototype.add=mn.prototype.push=gn,mn.prototype.has=vn,yn.prototype.clear=kn,yn.prototype.delete=wn,yn.prototype.get=xn,yn.prototype.has=Cn,yn.prototype.set=Sn;var ff=Ho(fr),pf=Ho(pr,!0),df=Uo(),hf=Uo(!0),mf=Zc?function(e,t){return Zc.set(e,t),e}:Cl,gf=Nc?function(e,t){return Nc(e,"toString",{configurable:!0,enumerable:!1,value:wl(t),writable:!0})}:Cl,vf=eo,yf=Dc||function(e){return Dn.clearTimeout(e)},bf=Jc&&1/Y(new Jc([,-0]))[1]==De?function(e){return new Jc(e)}:Il,Tf=Zc?function(e){return Zc.get(e)}:Il,_f=Rc?function(e){return null==e?[]:(e=rc(e),c(Rc(e),function(t){return xc.call(e,t)}))}:Rl,Ef=Rc?function(e){for(var t=[];e;)h(t,_f(e)),e=kc(e);return t}:Rl,kf=gr;(Vc&&kf(new Vc(new ArrayBuffer(1)))!=st||Yc&&kf(new Yc)!=Ye||$c&&"[object Promise]"!=kf($c.resolve())||Jc&&kf(new Jc)!=et||Xc&&kf(new Xc)!=ot)&&(kf=function(e){var t=gr(e),n=t==Xe?e.constructor:re,r=n?Ji(n):"";if(r)switch(r){case tf:return st;case nf:return Ye;case rf:return"[object Promise]";case of:return et;case af:return ot}return t});var wf=cc?Xs:Bl,xf=Vi(mf),Cf=Mc||function(e,t){return Dn.setTimeout(e,t)},Af=Vi(gf),Of=function(e){var t=As(e,function(e){return n.size===ue&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(St,function(e,n,r,o){t.push(r?o.replace(Ft,"$1"):n||e)}),t}),Sf=eo(function(e,t){return Ks(e)?ir(e,cr(t,1,Ks,!0)):[]}),Nf=eo(function(e,t){var n=va(t);return Ks(n)&&(n=re),Ks(e)?ir(e,cr(t,1,Ks,!0),yi(n,2)):[]}),Df=eo(function(e,t){var n=va(t);return Ks(n)&&(n=re),Ks(e)?ir(e,cr(t,1,Ks,!0),re,n):[]}),If=eo(function(e){var t=d(e,To);return t.length&&t[0]===e[0]?_r(t):[]}),Mf=eo(function(e){var t=va(e),n=d(e,To);return t===va(n)?t=re:n.pop(),n.length&&n[0]===e[0]?_r(n,yi(t,2)):[]}),Lf=eo(function(e){var t=va(e),n=d(e,To);return t="function"==typeof t?t:re,t&&n.pop(),n.length&&n[0]===e[0]?_r(n,re,t):[]}),Pf=eo(Ta),Rf=di(function(e,t){var n=null==e?0:e.length,r=Zn(e,t);return Jr(e,d(t,function(e){return Di(e,n)?+e:e}).sort(No)),r}),Bf=eo(function(e){return po(cr(e,1,Ks,!0))}),jf=eo(function(e){var t=va(e);return Ks(t)&&(t=re),po(cr(e,1,Ks,!0),yi(t,2))}),Ff=eo(function(e){var t=va(e);return t="function"==typeof t?t:re,po(cr(e,1,Ks,!0),re,t)}),Hf=eo(function(e,t){return Ks(e)?ir(e,t):[]}),Uf=eo(function(e){return yo(c(e,Ks))}),zf=eo(function(e){var t=va(e);return Ks(t)&&(t=re),yo(c(e,Ks),yi(t,2))}),Kf=eo(function(e){var t=va(e);return t="function"==typeof t?t:re,yo(c(e,Ks),re,t)}),qf=eo(za),Wf=eo(function(e){var t=e.length,n=t>1?e[t-1]:re;return n="function"==typeof n?(e.pop(),n):re,Ka(e,n)}),Gf=di(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Zn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof y&&Di(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ya,args:[i],thisArg:re}),new o(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(re),e})):this.thru(i)}),Vf=jo(function(e,t,n){pc.call(e,n)?++e[n]:Qn(e,n,1)}),Yf=Vo(sa),$f=Vo(ua),Jf=jo(function(e,t,n){pc.call(e,n)?e[n].push(t):Qn(e,n,[t])}),Xf=eo(function(e,t,n){var r=-1,o="function"==typeof t,a=zs(e)?Ql(e.length):[];return ff(e,function(e){a[++r]=o?i(t,e,n):kr(e,t,n)}),a}),Qf=jo(function(e,t,n){Qn(e,n,t)}),Zf=jo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ep=eo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ii(e,t[0],t[1])?t=[]:n>2&&Ii(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,cr(t,1),[])}),tp=Ic||function(){return Dn.Date.now()},np=eo(function(e,t,n){var r=me;if(n.length){var o=G(n,vi(np));r|=Te}return ai(e,r,t,n,o)}),rp=eo(function(e,t,n){var r=me|ge;if(n.length){var o=G(n,vi(rp));r|=Te}return ai(t,r,e,n,o)}),op=eo(function(e,t){return or(e,1,t)}),ip=eo(function(e,t,n){return or(e,Tu(t)||0,n)});As.Cache=sn;var ap=vf(function(e,t){t=1==t.length&&dp(t[0])?d(t[0],M(yi())):d(cr(t,1),M(yi()));var n=t.length;return eo(function(r){for(var o=-1,a=zc(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return i(e,this,r)})}),sp=eo(function(e,t){var n=G(t,vi(sp));return ai(e,Te,re,t,n)}),up=eo(function(e,t){var n=G(t,vi(up));return ai(e,_e,re,t,n)}),lp=di(function(e,t){return ai(e,ke,re,re,re,t)}),cp=ni(vr),fp=ni(function(e,t){return e>=t}),pp=wr(function(){return arguments}())?wr:function(e){return tu(e)&&pc.call(e,"callee")&&!xc.call(e,"callee")},dp=Ql.isArray,hp=Bn?M(Bn):xr,mp=Bc||Bl,gp=jn?M(jn):Cr,vp=Fn?M(Fn):Sr,yp=Hn?M(Hn):Ir,bp=Un?M(Un):Mr,Tp=zn?M(zn):Lr,_p=ni(jr),Ep=ni(function(e,t){return e<=t}),kp=Fo(function(e,t){if(Bi(t)||zs(t))return void Po(t,Ru(t),e);for(var n in t)pc.call(t,n)&&Kn(e,n,t[n])}),wp=Fo(function(e,t){Po(t,Bu(t),e)}),xp=Fo(function(e,t,n,r){Po(t,Bu(t),e,r)}),Cp=Fo(function(e,t,n,r){Po(t,Ru(t),e,r)}),Ap=di(Zn),Op=eo(function(e,t){e=rc(e);var n=-1,r=t.length,o=r>2?t[2]:re;for(o&&Ii(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=Bu(i),s=-1,u=a.length;++s<u;){var l=a[s],c=e[l];(c===re||Us(c,lc[l])&&!pc.call(e,l))&&(e[l]=i[l])}return e}),Sp=eo(function(e){return e.push(re,ui),i(Lp,re,e)}),Np=Jo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mc.call(t)),e[t]=n},wl(Cl)),Dp=Jo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mc.call(t)),pc.call(e,t)?e[t].push(n):e[t]=[n]},yi),Ip=eo(kr),Mp=Fo(function(e,t,n){zr(e,t,n)}),Lp=Fo(function(e,t,n,r){zr(e,t,n,r)}),Pp=di(function(e,t){var n={};if(null==e)return n;var r=!1;t=d(t,function(t){return t=Eo(t,e),r||(r=t.length>1),t}),Po(e,mi(e),n),r&&(n=tr(n,ce|fe|pe,li));for(var o=t.length;o--;)ho(n,t[o]);return n}),Rp=di(function(e,t){return null==e?{}:Gr(e,t)}),Bp=ii(Ru),jp=ii(Bu),Fp=qo(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)}),Hp=qo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Up=qo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),zp=Ko("toLowerCase"),Kp=qo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qp=qo(function(e,t,n){return e+(n?" ":"")+Gp(t)}),Wp=qo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Gp=Ko("toUpperCase"),Vp=eo(function(e,t){try{return i(e,re,t)}catch(e){return $s(e)?e:new ec(e)}}),Yp=di(function(e,t){return s(t,function(t){t=$i(t),Qn(e,t,np(e[t],e))}),e}),$p=Yo(),Jp=Yo(!0),Xp=eo(function(e,t){return function(n){return kr(n,e,t)}}),Qp=eo(function(e,t){return function(n){return kr(e,n,t)}}),Zp=Qo(d),ed=Qo(l),td=Qo(v),nd=ti(),rd=ti(!0),od=Xo(function(e,t){return e+t},0),id=oi("ceil"),ad=Xo(function(e,t){return e/t},1),sd=oi("floor"),ud=Xo(function(e,t){return e*t},1),ld=oi("round"),cd=Xo(function(e,t){return e-t},0);return n.after=Ts,n.ary=_s,n.assign=kp,n.assignIn=wp,n.assignInWith=xp,n.assignWith=Cp,n.at=Ap,n.before=Es,n.bind=np,n.bindAll=Yp,n.bindKey=rp,n.castArray=Ps,n.chain=Ga,n.chunk=Zi,n.compact=ea,n.concat=ta,n.cond=El,n.conforms=kl,n.constant=wl,n.countBy=Vf,n.create=wu,n.curry=ks,n.curryRight=ws,n.debounce=xs,n.defaults=Op,n.defaultsDeep=Sp,n.defer=op,n.delay=ip,n.difference=Sf,n.differenceBy=Nf,n.differenceWith=Df,n.drop=na,n.dropRight=ra,n.dropRightWhile=oa,n.dropWhile=ia,n.fill=aa,n.filter=rs,n.flatMap=os,n.flatMapDeep=is,n.flatMapDepth=as,n.flatten=la,n.flattenDeep=ca,n.flattenDepth=fa,n.flip=Cs,n.flow=$p,n.flowRight=Jp,n.fromPairs=pa,n.functions=Du,n.functionsIn=Iu,n.groupBy=Jf,n.initial=ma,n.intersection=If,n.intersectionBy=Mf,n.intersectionWith=Lf,n.invert=Np,n.invertBy=Dp,n.invokeMap=Xf,n.iteratee=Al,n.keyBy=Qf,n.keys=Ru,n.keysIn=Bu,n.map=cs,n.mapKeys=ju,n.mapValues=Fu,n.matches=Ol,n.matchesProperty=Sl,n.memoize=As,n.merge=Mp,n.mergeWith=Lp,n.method=Xp,n.methodOf=Qp,n.mixin=Nl,n.negate=Os,n.nthArg=Ml,n.omit=Pp,n.omitBy=Hu,n.once=Ss,n.orderBy=fs,n.over=Zp,n.overArgs=ap,n.overEvery=ed,n.overSome=td,n.partial=sp,n.partialRight=up,n.partition=Zf,n.pick=Rp,n.pickBy=Uu,n.property=Ll,n.propertyOf=Pl,n.pull=Pf,n.pullAll=Ta,n.pullAllBy=_a,n.pullAllWith=Ea,n.pullAt=Rf,n.range=nd,n.rangeRight=rd,n.rearg=lp,n.reject=hs,n.remove=ka,n.rest=Ns,n.reverse=wa,n.sampleSize=gs,n.set=Ku,n.setWith=qu,n.shuffle=vs,n.slice=xa,n.sortBy=ep,n.sortedUniq=Ia,n.sortedUniqBy=Ma,n.split=fl,n.spread=Ds,n.tail=La,n.take=Pa,n.takeRight=Ra,n.takeRightWhile=Ba,n.takeWhile=ja,n.tap=Va,n.throttle=Is,n.thru=Ya,n.toArray=gu,n.toPairs=Bp,n.toPairsIn=jp,n.toPath=zl,n.toPlainObject=_u,n.transform=Wu,n.unary=Ms,n.union=Bf,n.unionBy=jf,n.unionWith=Ff,n.uniq=Fa,n.uniqBy=Ha,n.uniqWith=Ua,n.unset=Gu,n.unzip=za,n.unzipWith=Ka,n.update=Vu,n.updateWith=Yu,n.values=$u,n.valuesIn=Ju,n.without=Hf,n.words=_l,n.wrap=Ls,n.xor=Uf,n.xorBy=zf,n.xorWith=Kf,n.zip=qf,n.zipObject=qa,n.zipObjectDeep=Wa,n.zipWith=Wf,n.entries=Bp,n.entriesIn=jp,n.extend=wp,n.extendWith=xp,Nl(n,n),n.add=od,n.attempt=Vp,n.camelCase=Fp,n.capitalize=el,n.ceil=id,n.clamp=Xu,n.clone=Rs,n.cloneDeep=js,n.cloneDeepWith=Fs,n.cloneWith=Bs,n.conformsTo=Hs,n.deburr=tl,n.defaultTo=xl,n.divide=ad,n.endsWith=nl,n.eq=Us,n.escape=rl,n.escapeRegExp=ol,n.every=ns,n.find=Yf,n.findIndex=sa,n.findKey=xu,n.findLast=$f,n.findLastIndex=ua,n.findLastKey=Cu,n.floor=sd,n.forEach=ss,n.forEachRight=us,n.forIn=Au,n.forInRight=Ou,n.forOwn=Su,n.forOwnRight=Nu,n.get=Mu,n.gt=cp,n.gte=fp,n.has=Lu,n.hasIn=Pu,n.head=da,n.identity=Cl,n.includes=ls,n.indexOf=ha,n.inRange=Qu,n.invoke=Ip,n.isArguments=pp,n.isArray=dp,n.isArrayBuffer=hp,n.isArrayLike=zs,n.isArrayLikeObject=Ks,n.isBoolean=qs,n.isBuffer=mp,n.isDate=gp,n.isElement=Ws,n.isEmpty=Gs,n.isEqual=Vs,n.isEqualWith=Ys,n.isError=$s,n.isFinite=Js,n.isFunction=Xs,n.isInteger=Qs,n.isLength=Zs,n.isMap=vp,n.isMatch=nu,n.isMatchWith=ru,n.isNaN=ou,n.isNative=iu,n.isNil=su,n.isNull=au,n.isNumber=uu,n.isObject=eu,n.isObjectLike=tu,n.isPlainObject=lu,n.isRegExp=yp,n.isSafeInteger=cu,n.isSet=bp,n.isString=fu,n.isSymbol=pu,n.isTypedArray=Tp,n.isUndefined=du,n.isWeakMap=hu,n.isWeakSet=mu,n.join=ga,n.kebabCase=Hp,n.last=va,n.lastIndexOf=ya,n.lowerCase=Up,n.lowerFirst=zp,n.lt=_p,n.lte=Ep,n.max=ql,n.maxBy=Wl,n.mean=Gl,n.meanBy=Vl,n.min=Yl,n.minBy=$l,n.stubArray=Rl,n.stubFalse=Bl,n.stubObject=jl,n.stubString=Fl,n.stubTrue=Hl,n.multiply=ud,n.nth=ba,n.noConflict=Dl,n.noop=Il,n.now=tp,n.pad=il,n.padEnd=al,n.padStart=sl,n.parseInt=ul,n.random=Zu,n.reduce=ps,n.reduceRight=ds,n.repeat=ll,n.replace=cl,n.result=zu,n.round=ld,n.runInContext=e,n.sample=ms,n.size=ys,n.snakeCase=Kp,n.some=bs,n.sortedIndex=Ca,n.sortedIndexBy=Aa,n.sortedIndexOf=Oa,n.sortedLastIndex=Sa,n.sortedLastIndexBy=Na,n.sortedLastIndexOf=Da,n.startCase=qp,n.startsWith=pl,n.subtract=cd,n.sum=Jl,n.sumBy=Xl,n.template=dl,n.times=Ul,n.toFinite=vu,n.toInteger=yu,n.toLength=bu,n.toLower=hl,n.toNumber=Tu,n.toSafeInteger=Eu,n.toString=ku,n.toUpper=ml,n.trim=gl,n.trimEnd=vl,n.trimStart=yl,n.truncate=bl,n.unescape=Tl,n.uniqueId=Kl,n.upperCase=Wp,n.upperFirst=Gp,n.each=ss,n.eachRight=us,n.first=da,Nl(n,function(){var e={};return fr(n,function(t,r){pc.call(n.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),n.VERSION="4.17.5",s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),s(["drop","take"],function(e,t){y.prototype[e]=function(n){n=n===re?1:Uc(yu(n),0);var r=this.__filtered__&&!t?new y(this):this.clone();return r.__filtered__?r.__takeCount__=zc(n,r.__takeCount__):r.__views__.push({size:zc(n,Pe),type:e+(r.__dir__<0?"Right":"")}),r},y.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),s(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Se||3==n;y.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:yi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),s(["head","last"],function(e,t){var n="take"+(t?"Right":"");y.prototype[e]=function(){return this[n](1).value()[0]}}),s(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");y.prototype[e]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(Cl)},y.prototype.find=function(e){return this.filter(e).head()},y.prototype.findLast=function(e){return this.reverse().find(e)},y.prototype.invokeMap=eo(function(e,t){return"function"==typeof e?new y(this):this.map(function(n){return kr(n,e,t)})}),y.prototype.reject=function(e){return this.filter(Os(yi(e)))},y.prototype.slice=function(e,t){e=yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==re&&(t=yu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},y.prototype.toArray=function(){return this.take(Pe)},fr(y.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=n[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,u=i?[1]:arguments,l=t instanceof y,c=u[0],f=l||dp(t),p=function(e){var t=a.apply(n,h([e],u));return i&&d?t[0]:t};f&&r&&"function"==typeof c&&1!=c.length&&(l=f=!1);var d=this.__chain__,m=!!this.__actions__.length,g=s&&!d,v=l&&!m;if(!s&&f){t=v?t:new y(this);var b=e.apply(t,u);return b.__actions__.push({func:Ya,args:[p],thisArg:re}),new o(b,d)}return g&&v?e.apply(this,u):(b=this.thru(p),g?i?b.value()[0]:b.value():b)})}),s(["pop","push","shift","sort","splice","unshift"],function(e){var t=sc[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var n=this.value();return t.apply(dp(n)?n:[],e)}return this[r](function(n){return t.apply(dp(n)?n:[],e)})}}),fr(y.prototype,function(e,t){var r=n[t];if(r){var o=r.name+"";(ef[o]||(ef[o]=[])).push({name:t,func:r})}}),ef[$o(re,ge).name]=[{name:"wrapper",func:re}],y.prototype.clone=A,y.prototype.reverse=J,y.prototype.value=ee,n.prototype.at=Gf,n.prototype.chain=$a,n.prototype.commit=Ja,n.prototype.next=Xa,n.prototype.plant=Za,n.prototype.reverse=es,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ts,n.prototype.first=n.prototype.head,Oc&&(n.prototype[Oc]=Qa),n}();Dn._=Vn,(o=function(){return Vn}.call(t,n,t,r))!==re&&(r.exports=o)}).call(this)}).call(t,n(3),n(29)(e))},function(e,t){},function(e,t,n){"use strict";function r(e){return e}e.exports=r},function(e,t,n){"use strict";function r(e){return e.length}e.exports={gfm:!0,commonmark:!1,pedantic:!1,entities:"false",setext:!1,closeAtx:!1,looseTable:!1,spacedTable:!0,paddedTable:!0,stringLength:r,incrementListMarker:!0,fences:!1,fence:"`",bullet:"-",listItemIndent:"tab",rule:"*",ruleSpaces:!0,ruleRepetition:3,strong:"*",emphasis:"_"}},function(e,t,n){"use strict";function r(e){var t;return"&"!==e.charAt(0)?0:(t=e.split("&",2).join("&"),t.length-o(t).length)}var o=n(71);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r;for(e=e.split("\n"),n=e.length,r=o(" ",t*i);n--;)0!==e[n].length&&(e[n]=r+e[n]);return e.join("\n")}var o=n(11);e.exports=r;var i=4},function(e,t,n){"use strict";function r(e,t){var n,r,o=0,i=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");for(e=String(e),r=e.indexOf(t),n=r;-1!==r;)o++,r===n?o>i&&(i=o):o=1,n=r+1,r=e.indexOf(t,n);return i}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.referenceType,n="full"===t?e.identifier:"";return"shortcut"===t?n:"["+n+"]"}e.exports=r},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],u=[];!function(){function e(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)(function(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0})(n)&&(r<8&&(s[r]=e(t.pow(n,.5))),u[r]=e(t.pow(n,1/3)),r++),n++}();var l=[],c=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],f=n[6],p=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var h=l[d-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=l[d-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[d]=m+l[d-7]+v+l[d-16]}var y=s&c^~s&f,b=r&o^r&i^o&i,T=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),E=p+_+y+u[d]+l[d],k=T+b;p=f,f=c,c=s,s=a+E|0,a=i,i=o,o=r,r=E+k|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(c),n.HmacSHA256=i._createHmacHelper(c)}(Math),e.SHA256})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79))}(0,function(e){return function(){function t(){return a.create.apply(a,arguments)}var n=e,r=n.lib,o=r.Hasher,i=n.x64,a=i.Word,s=i.WordArray,u=n.algo,l=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=t()}();var f=u.SHA512=o.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],f=n[6],p=n[7],d=r.high,h=r.low,m=o.high,g=o.low,v=i.high,y=i.low,b=a.high,T=a.low,_=s.high,E=s.low,k=u.high,w=u.low,x=f.high,C=f.low,A=p.high,O=p.low,S=d,N=h,D=m,I=g,M=v,L=y,P=b,R=T,B=_,j=E,F=k,H=w,U=x,z=C,K=A,q=O,W=0;W<80;W++){var G=c[W];if(W<16)var V=G.high=0|e[t+2*W],Y=G.low=0|e[t+2*W+1];else{var $=c[W-15],J=$.high,X=$.low,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[W-7],ae=ie.high,se=ie.low,ue=c[W-16],le=ue.high,ce=ue.low,Y=Z+se,V=Q+ae+(Y>>>0<Z>>>0?1:0),Y=Y+oe,V=V+re+(Y>>>0<oe>>>0?1:0),Y=Y+ce,V=V+le+(Y>>>0<ce>>>0?1:0);G.high=V,G.low=Y}var fe=B&F^~B&U,pe=j&H^~j&z,de=S&D^S&M^D&M,he=N&I^N&L^I&L,me=(S>>>28|N<<4)^(S<<30|N>>>2)^(S<<25|N>>>7),ge=(N>>>28|S<<4)^(N<<30|S>>>2)^(N<<25|S>>>7),ve=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),ye=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),be=l[W],Te=be.high,_e=be.low,Ee=q+ye,ke=K+ve+(Ee>>>0<q>>>0?1:0),Ee=Ee+pe,ke=ke+fe+(Ee>>>0<pe>>>0?1:0),Ee=Ee+_e,ke=ke+Te+(Ee>>>0<_e>>>0?1:0),Ee=Ee+Y,ke=ke+V+(Ee>>>0<Y>>>0?1:0),we=ge+he,xe=me+de+(we>>>0<ge>>>0?1:0);K=U,q=z,U=F,z=H,F=B,H=j,j=R+Ee|0,B=P+ke+(j>>>0<R>>>0?1:0)|0,P=M,R=L,M=D,L=I,D=S,I=N,N=Ee+we|0,S=ke+xe+(N>>>0<Ee>>>0?1:0)|0}h=r.low=h+N,r.high=d+S+(h>>>0<N>>>0?1:0),g=o.low=g+I,o.high=m+D+(g>>>0<I>>>0?1:0),y=i.low=y+L,i.high=v+M+(y>>>0<L>>>0?1:0),T=a.low=T+R,a.high=b+P+(T>>>0<R>>>0?1:0),E=s.low=E+j,s.high=_+B+(E>>>0<j>>>0?1:0),w=u.low=w+H,u.high=k+F+(w>>>0<H>>>0?1:0),C=f.low=C+z,f.high=x+U+(C>>>0<z>>>0?1:0),O=p.low=O+q,p.high=A+K+(O>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=o._createHelper(f),n.HmacSHA512=o._createHmacHelper(f)}(),e.SHA512})},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(15),o=n(810),i=n(812),a=n(813),s=n(814),u=n(261),l="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||n(815);e.exports=function(e){return new Promise(function(t,c){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var g=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+l(g+":"+v)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,i={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};o(t,c,i),d=null}},d.onerror=function(){c(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var y=n(816),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";var r=n(811);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";t.a={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}}},function(e,t,n){n(266),e.exports=n(270)},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(267).enable(),window.Promise=n(269)),n(132),Object.assign=n(41)},function(e,t,n){"use strict";function r(){l=!1,s._47=null,s._71=null}function o(e){function t(t){(e.allRejections||a(f[t].error,e.whitelist||u))&&(f[t].displayId=c++,e.onUnhandled?(f[t].logged=!0,e.onUnhandled(f[t].displayId,f[t].error)):(f[t].logged=!0,i(f[t].displayId,f[t].error)))}function n(t){f[t].logged&&(e.onHandled?e.onHandled(f[t].displayId,f[t].error):f[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+f[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+f[t].displayId+".")))}e=e||{},l&&r(),l=!0;var o=0,c=0,f={};s._47=function(e){2===e._83&&f[e._56]&&(f[e._56].logged?n(e._56):clearTimeout(f[e._56].timeout),delete f[e._56])},s._71=function(e,n){0===e._75&&(e._56=o++,f[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),a(n,u)?100:2e3),logged:!1})}}function i(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn(" "+e)})}function a(e,t){return t.some(function(t){return e instanceof t})}var s=n(131),u=[ReferenceError,TypeError,RangeError],l=!1;t.disable=r,t.enable=o},function(e,t,n){"use strict";(function(t){function n(e){a.length||(i(),s=!0),a[a.length]=e}function r(){for(;u<a.length;){var e=u;if(u+=1,a[e].call(),u>l){for(var t=0,n=a.length-u;t<n;t++)a[t]=a[t+u];a.length-=u,u=0}}a.length=0,u=0,s=!1}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var i,a=[],s=!1,u=0,l=1024,c="undefined"!==typeof t?t:self,f=c.MutationObserver||c.WebKitMutationObserver;i="function"===typeof f?function(e){var t=1,n=new f(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):o(r),n.requestFlush=i,n.makeRequestCallFromTimer=o}).call(t,n(3))},function(e,t,n){"use strict";function r(e){var t=new o(o._44);return t._83=1,t._18=e,t}var o=n(131);e.exports=o;var i=r(!0),a=r(!1),s=r(null),u=r(void 0),l=r(0),c=r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return s;if(void 0===e)return u;if(!0===e)return i;if(!1===e)return a;if(0===e)return l;if(""===e)return c;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return r(e)},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof o&&s.then===o.prototype.then){for(;3===s._83;)s=s._18;return 1===s._83?r(a,s._18):(2===s._83&&n(s._18),void s.then(function(e){r(a,e)},n))}var u=s.then;if("function"===typeof u){return void new o(u.bind(s)).then(function(e){r(a,e)},n)}}t[a]=s,0===--i&&e(t)}if(0===t.length)return e([]);for(var i=t.length,a=0;a<t.length;a++)r(a,t[a])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.catch=function(e){return this.then(null,e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o),a=n(18),s=r(a),u=n(281),l=r(u),c=n(22),f=n(828),p=r(f);n(842),n(843),n(844),n(845),n(846);var d=window.app.pageOptions.lang;s.default.render(i.default.createElement(c.I18nextProvider,{i18n:p.default,initialLanguage:d},i.default.createElement(l.default,null)),document.getElementById("root"))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||O}function i(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||O}function a(){}function s(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||O}function u(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)I.call(t,r)&&!M.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:E,type:e,key:i,ref:a,props:o,_owner:D.current}}function l(e){return"object"===typeof e&&null!==e&&e.$$typeof===E}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function f(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function p(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function d(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case E:case k:case w:case x:a=!0}}if(a)return n(o,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var u=t+h(i,s);a+=d(i,u,n,o)}else if(null===e||"undefined"===typeof e?u=null:(u=A&&e[A]||e["@@iterator"],u="function"===typeof u?u:null),"function"===typeof u)for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=t+h(i,s++),a+=d(i,u,n,o);else"object"===i&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function h(e,t){return"object"===typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function m(e,t){e.func.call(e.context,t,e.count++)}function g(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,T.thatReturnsArgument):null!=e&&(l(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(L,"$&/")+"/")+n,e={$$typeof:E,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function v(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(L,"$&/")+"/"),t=f(t,i,r,o),null==e||d(e,"",g,t),p(t)}var y=n(41),b=n(133),T=n(47),_="function"===typeof Symbol&&Symbol.for,E=_?Symbol.for("react.element"):60103,k=_?Symbol.for("react.call"):60104,w=_?Symbol.for("react.return"):60105,x=_?Symbol.for("react.portal"):60106,C=_?Symbol.for("react.fragment"):60107,A="function"===typeof Symbol&&Symbol.iterator,O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},a.prototype=o.prototype;var S=i.prototype=new a;S.constructor=i,y(S,o.prototype),S.isPureReactComponent=!0;var N=s.prototype=new a;N.constructor=s,y(N,o.prototype),N.unstable_isAsyncReactComponent=!0,N.render=function(){return this.props.children};var D={current:null},I=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0},L=/\/+/g,P=[],R={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return v(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=f(null,null,t,n),null==e||d(e,"",m,t),p(t)},count:function(e){return null==e?0:d(e,"",T.thatReturnsNull,null)},toArray:function(e){var t=[];return v(e,t,null,T.thatReturnsArgument),t},only:function(e){return l(e)||r("143"),e}},Component:o,PureComponent:i,unstable_AsyncComponent:s,Fragment:C,createElement:u,cloneElement:function(e,t,n){var r=y({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=D.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)I.call(t,u)&&!M.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:E,type:e.type,key:o,ref:i,props:r,_owner:a}},createFactory:function(e){var t=u.bind(null,e);return t.type=e,t},isValidElement:l,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:D,assign:y}},B=Object.freeze({default:R}),j=B&&R||B;e.exports=j.default?j.default:j},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t){return(e&t)===t}function i(e,t){if(Sn.hasOwnProperty(e)||2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return Sn.hasOwnProperty(e)?e=!0:(t=a(e))?e=t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:(e=e.toLowerCase().slice(0,5),e="data-"===e||"aria-"===e),e;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function a(e){return Dn.hasOwnProperty(e)?Dn[e]:null}function s(e){return e[1].toUpperCase()}function u(e,t,n,r,o,i,a,s,u){qn._hasCaughtError=!1,qn._caughtError=null;var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){qn._caughtError=e,qn._hasCaughtError=!0}}function l(){if(qn._hasRethrowError){var e=qn._rethrowError;throw qn._rethrowError=null,qn._hasRethrowError=!1,e}}function c(){if(Wn)for(var e in Gn){var t=Gn[e],n=Wn.indexOf(e);if(-1<n||r("96",e),!Vn[n]){t.extractEvents||r("97",e),Vn[n]=t,n=t.eventTypes;for(var o in n){var i=void 0,a=n[o],s=t,u=o;Yn.hasOwnProperty(u)&&r("99",u),Yn[u]=a;var l=a.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&f(l[i],s,u);i=!0}else a.registrationName?(f(a.registrationName,s,u),i=!0):i=!1;i||r("98",o,e)}}}}function f(e,t,n){$n[e]&&r("100",e),$n[e]=t,Jn[e]=t.eventTypes[n].dependencies}function p(e){Wn&&r("101"),Wn=Array.prototype.slice.call(e),c()}function d(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];Gn.hasOwnProperty(t)&&Gn[t]===o||(Gn[t]&&r("102",t),Gn[t]=o,n=!0)}n&&c()}function h(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=er(r),qn.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function m(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function g(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function v(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)h(e,t,n[o],r[o]);else n&&h(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function y(e){return v(e,!0)}function b(e){return v(e,!1)}function T(e,t){var n=e.stateNode;if(!n)return null;var o=Qn(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!==typeof n&&r("231",t,typeof n),n)}function _(e,t,n,r){for(var o,i=0;i<Vn.length;i++){var a=Vn[i];a&&(a=a.extractEvents(e,t,n,r))&&(o=m(o,a))}return o}function E(e){e&&(tr=m(tr,e))}function k(e){var t=tr;tr=null,t&&(e?g(t,y):g(t,b),tr&&r("95"),qn.rethrowCaughtError())}function w(e){if(e[ir])return e[ir];for(var t=[];!e[ir];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[ir];if(5===r.tag||6===r.tag)return r;for(;e&&(r=e[ir]);e=t.pop())n=r;return n}function x(e){if(5===e.tag||6===e.tag)return e.stateNode;r("33")}function C(e){return e[ar]||null}function A(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function O(e,t,n){for(var r=[];e;)r.push(e),e=A(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function S(e,t,n){(t=T(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=m(n._dispatchListeners,t),n._dispatchInstances=m(n._dispatchInstances,e))}function N(e){e&&e.dispatchConfig.phasedRegistrationNames&&O(e._targetInst,S,e)}function D(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?A(t):null,O(t,S,e)}}function I(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=T(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=m(n._dispatchListeners,t),n._dispatchInstances=m(n._dispatchInstances,e))}function M(e){e&&e.dispatchConfig.registrationName&&I(e._targetInst,null,e)}function L(e){g(e,N)}function P(e,t,n,r){if(n&&r)e:{for(var o=n,i=r,a=0,s=o;s;s=A(s))a++;s=0;for(var u=i;u;u=A(u))s++;for(;0<a-s;)o=A(o),a--;for(;0<s-a;)i=A(i),s--;for(;a--;){if(o===i||o===i.alternate)break e;o=A(o),i=A(i)}o=null}else o=null;for(i=o,o=[];n&&n!==i&&(null===(a=n.alternate)||a!==i);)o.push(n),n=A(n);for(n=[];r&&r!==i&&(null===(a=r.alternate)||a!==i);)n.push(r),r=A(r);for(r=0;r<o.length;r++)I(o[r],"bubbled",e);for(e=n.length;0<e--;)I(n[e],"captured",t)}function R(){return!lr&&Tn.canUseDOM&&(lr="textContent"in document.documentElement?"textContent":"innerText"),lr}function B(){if(cr._fallbackText)return cr._fallbackText;var e,t,n=cr._startText,r=n.length,o=j(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return cr._fallbackText=o.slice(e,1<t?1-t:void 0),cr._fallbackText}function j(){return"value"in cr._root?cr._root.value:cr._root[R()]}function F(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?En.thatReturnsTrue:En.thatReturnsFalse,this.isPropagationStopped=En.thatReturnsFalse,this}function H(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function U(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function z(e){e.eventPool=[],e.getPooled=H,e.release=U}function K(e,t,n,r){return F.call(this,e,t,n,r)}function q(e,t,n,r){return F.call(this,e,t,n,r)}function W(e,t){switch(e){case"topKeyUp":return-1!==dr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function G(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function V(e,t){switch(e){case"topCompositionEnd":return G(t);case"topKeyPress":return 32!==t.which?null:(kr=!0,_r);case"topTextInput":return e=t.data,e===_r&&kr?null:e;default:return null}}function Y(e,t){if(wr)return"topCompositionEnd"===e||!hr&&W(e,t)?(e=B(),cr._root=null,cr._startText=null,cr._fallbackText=null,wr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return Tr?null:t.data;default:return null}}function $(e){if(e=Zn(e)){Cr&&"function"===typeof Cr.restoreControlledState||r("194");var t=Qn(e.stateNode);Cr.restoreControlledState(e.stateNode,e.type,t)}}function J(e){Ar?Or?Or.push(e):Or=[e]:Ar=e}function X(){if(Ar){var e=Ar,t=Or;if(Or=Ar=null,$(e),t)for(e=0;e<t.length;e++)$(t[e])}}function Q(e,t){return e(t)}function Z(e,t){if(Dr)return Q(e,t);Dr=!0;try{return Q(e,t)}finally{Dr=!1,X()}}function ee(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ir[e.type]:"textarea"===t}function te(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ne(e,t){if(!Tn.canUseDOM||t&&!("addEventListener"in document))return!1;t="on"+e;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n="function"===typeof n[t]),!n&&yr&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function re(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function oe(e){var t=re(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"===typeof n.get&&"function"===typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function ie(e){e._valueTracker||(e._valueTracker=oe(e))}function ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=re(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function se(e,t,n){return e=F.getPooled(Mr.change,e,t,n),e.type="change",J(n),L(e),e}function ue(e){E(e),k(!1)}function le(e){if(ae(x(e)))return e}function ce(e,t){if("topChange"===e)return t}function fe(){Lr&&(Lr.detachEvent("onpropertychange",pe),Pr=Lr=null)}function pe(e){"value"===e.propertyName&&le(Pr)&&(e=se(Pr,e,te(e)),Z(ue,e))}function de(e,t,n){"topFocus"===e?(fe(),Lr=t,Pr=n,Lr.attachEvent("onpropertychange",pe)):"topBlur"===e&&fe()}function he(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return le(Pr)}function me(e,t){if("topClick"===e)return le(t)}function ge(e,t){if("topInput"===e||"topChange"===e)return le(t)}function ve(e,t,n,r){return F.call(this,e,t,n,r)}function ye(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jr[e])&&!!t[e]}function be(){return ye}function Te(e,t,n,r){return F.call(this,e,t,n,r)}function _e(e){return e=e.type,"string"===typeof e?e:"function"===typeof e?e.displayName||e.name:null}function Ee(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function ke(e){return!!(e=e._reactInternalFiber)&&2===Ee(e)}function we(e){2!==Ee(e)&&r("188")}function xe(e){var t=e.alternate;if(!t)return t=Ee(e),3===t&&r("188"),1===t?null:e;for(var n=e,o=t;;){var i=n.return,a=i?i.alternate:null;if(!i||!a)break;if(i.child===a.child){for(var s=i.child;s;){if(s===n)return we(i),e;if(s===o)return we(i),t;s=s.sibling}r("188")}if(n.return!==o.return)n=i,o=a;else{s=!1;for(var u=i.child;u;){if(u===n){s=!0,n=i,o=a;break}if(u===o){s=!0,o=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,o=i;break}if(u===o){s=!0,o=a,n=i;break}u=u.sibling}s||r("189")}}n.alternate!==o&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?e:t}function Ce(e){if(!(e=xe(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ae(e){if(!(e=xe(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Oe(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=w(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],qr(e.topLevelType,t,e.nativeEvent,te(e.nativeEvent))}function Se(e){Kr=!!e}function Ne(e,t,n){return n?kn.listen(n,t,Ie.bind(null,e)):null}function De(e,t,n){return n?kn.capture(n,t,Ie.bind(null,e)):null}function Ie(e,t){if(Kr){var n=te(t);if(n=w(n),null===n||"number"!==typeof n.tag||2===Ee(n)||(n=null),zr.length){var r=zr.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Z(Oe,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>zr.length&&zr.push(e)}}}function Me(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function Le(e){if(Vr[e])return Vr[e];if(!Gr[e])return e;var t,n=Gr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Yr)return Vr[e]=n[t];return""}function Pe(e){return Object.prototype.hasOwnProperty.call(e,Qr)||(e[Qr]=Xr++,Jr[e[Qr]]={}),Jr[e[Qr]]}function Re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Be(e,t){var n=Re(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Re(n)}}function je(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Fe(e,t){if(oo||null==to||to!==wn())return null;var n=to;return"selectionStart"in n&&je(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ro&&xn(ro,n)?null:(ro=n,e=F.getPooled(eo.select,no,e,t),e.type="select",e.target=to,L(e),e)}function He(e,t,n,r){return F.call(this,e,t,n,r)}function Ue(e,t,n,r){return F.call(this,e,t,n,r)}function ze(e,t,n,r){return F.call(this,e,t,n,r)}function Ke(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function qe(e,t,n,r){return F.call(this,e,t,n,r)}function We(e,t,n,r){return F.call(this,e,t,n,r)}function Ge(e,t,n,r){return F.call(this,e,t,n,r)}function Ve(e,t,n,r){return F.call(this,e,t,n,r)}function Ye(e,t,n,r){return F.call(this,e,t,n,r)}function $e(e){0>po||(e.current=fo[po],fo[po]=null,po--)}function Je(e,t){po++,fo[po]=e.current,e.current=t}function Xe(e){return Ze(e)?go:ho.current}function Qe(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ze(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Ze(e)&&($e(mo,e),$e(ho,e))}function tt(e,t,n){null!=ho.cursor&&r("168"),Je(ho,t,e),Je(mo,n,e)}function nt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var i in n)i in o||r("108",_e(e)||"Unknown",i);return _n({},t,n)}function rt(e){if(!Ze(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||On,go=ho.current,Je(ho,t,e),Je(mo,mo.current,e),!0}function ot(e,t){var n=e.stateNode;if(n||r("169"),t){var o=nt(e,go);n.__reactInternalMemoizedMergedChildContext=o,$e(mo,e),$e(ho,e),Je(ho,o,e)}else $e(mo,e);Je(mo,t,e)}function it(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new it(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function st(e,t,n){var o=void 0,i=e.type,a=e.key;return"function"===typeof i?(o=i.prototype&&i.prototype.isReactComponent?new it(2,a,t):new it(0,a,t),o.type=i,o.pendingProps=e.props):"string"===typeof i?(o=new it(5,a,t),o.type=i,o.pendingProps=e.props):"object"===typeof i&&null!==i&&"number"===typeof i.tag?(o=i,o.pendingProps=e.props):r("130",null==i?i:typeof i,""),o.expirationTime=n,o}function ut(e,t,n,r){return t=new it(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function lt(e,t,n){return t=new it(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new it(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function ft(e,t,n){return e=new it(9,null,t),e.expirationTime=n,e}function pt(e,t,n){return t=new it(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dt(e){return function(t){try{return e(t)}catch(e){}}}function ht(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);vo=dt(function(e){return t.onCommitFiberRoot(n,e)}),yo=dt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function mt(e){"function"===typeof vo&&vo(e)}function gt(e){"function"===typeof yo&&yo(e)}function vt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function yt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=vt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=vt(null)):e=null,e=e!==r?e:null,null===e?yt(r,t):null===r.last||null===e.last?(yt(r,t),yt(e,t)):(yt(r,t),e.last=t)}function Tt(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function _t(e,t,n,r,o,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,s=n.first,u=!1;null!==s;){var l=s.expirationTime;if(l>i){var c=n.expirationTime;(0===c||c>l)&&(n.expirationTime=l),u||(u=!0,n.baseState=e)}else u||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(e=Tt(s,r,e,o),a=!0):(l=Tt(s,r,e,o))&&(e=a?_n({},e,l):_n(e,l),a=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(l=n.callbackList,null===l&&(l=n.callbackList=[]),l.push(s));s=s.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),u||(n.baseState=e),e}function Et(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var o=n[e],i=o.callback;o.callback=null,"function"!==typeof i&&r("191",i),i.call(t)}}function kt(e,t,n,o){function i(e,t){t.updater=a,e.stateNode=t,t._reactInternalFiber=e}var a={isMounted:ke,enqueueSetState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var i=t(n);bt(n,{expirationTime:i,partialState:r,callback:o,isReplace:!1,isForced:!1,nextCallback:null,next:null}),e(n,i)},enqueueReplaceState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var i=t(n);bt(n,{expirationTime:i,partialState:r,callback:o,isReplace:!0,isForced:!1,nextCallback:null,next:null}),e(n,i)},enqueueForceUpdate:function(n,r){n=n._reactInternalFiber,r=void 0===r?null:r;var o=t(n);bt(n,{expirationTime:o,partialState:null,callback:r,isReplace:!1,isForced:!0,nextCallback:null,next:null}),e(n,o)}};return{adoptClassInstance:i,constructClassInstance:function(e,t){var n=e.type,r=Xe(e),o=2===e.tag&&null!=e.type.contextTypes,a=o?Qe(e,r):On;return t=new n(t,a),i(e,t),o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,i=o.state||null,s=e.pendingProps;s||r("158");var u=Xe(e);o.props=s,o.state=e.memoizedState=i,o.refs=On,o.context=Qe(e,u),null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=1),"function"===typeof o.componentWillMount&&(i=o.state,o.componentWillMount(),i!==o.state&&a.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(o.state=_t(n,e,i,o,s,t))),"function"===typeof o.componentDidMount&&(e.effectTag|=4)},updateClassInstance:function(e,t,i){var s=t.stateNode;s.props=t.memoizedProps,s.state=t.memoizedState;var u=t.memoizedProps,l=t.pendingProps;l||null==(l=u)&&r("159");var c=s.context,f=Xe(t);if(f=Qe(t,f),"function"!==typeof s.componentWillReceiveProps||u===l&&c===f||(c=s.state,s.componentWillReceiveProps(l,f),s.state!==c&&a.enqueueReplaceState(s,s.state,null)),c=t.memoizedState,i=null!==t.updateQueue?_t(e,t,t.updateQueue,s,l,i):c,!(u!==l||c!==i||mo.current||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!==typeof s.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),!1;var p=l;if(null===u||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)p=!0;else{var d=t.stateNode,h=t.type;p="function"===typeof d.shouldComponentUpdate?d.shouldComponentUpdate(p,i,f):!h.prototype||!h.prototype.isPureReactComponent||(!xn(u,p)||!xn(c,i))}return p?("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(l,i,f),"function"===typeof s.componentDidUpdate&&(t.effectTag|=4)):("function"!==typeof s.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),n(t,l),o(t,i)),s.props=l,s.state=i,s.context=f,p}}}function wt(e){return null===e||"undefined"===typeof e?null:(e=xo&&e[xo]||e["@@iterator"],"function"===typeof e?e:null)}function xt(e,t){var n=t.ref;if(null!==n&&"function"!==typeof n){if(t._owner){t=t._owner;var o=void 0;t&&(2!==t.tag&&r("110"),o=t.stateNode),o||r("147",n);var i=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===i?e.ref:(e=function(e){var t=o.refs===On?o.refs={}:o.refs;null===e?delete t[i]:t[i]=e},e._stringRef=i,e)}"string"!==typeof n&&r("148"),t._owner||r("149",n)}return n}function Ct(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function At(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return e=at(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?(t=lt(n,e.internalContextTag,r),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function l(e,t,n,r){return null!==t&&t.type===n.type?(r=i(t,n.props,r),r.ref=xt(t,n),r.return=e,r):(r=st(n,e.internalContextTag,r),r.ref=xt(t,n),r.return=e,r)}function c(e,t,n,r){return null===t||7!==t.tag?(t=ct(n,e.internalContextTag,r),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function f(e,t,n,r){return null===t||9!==t.tag?(t=ft(n,e.internalContextTag,r),t.type=n.value,t.return=e,t):(t=i(t,null,r),t.type=n.value,t.return=e,t)}function p(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pt(n,e.internalContextTag,r),t.return=e,t):(t=i(t,n.children||[],r),t.return=e,t)}function d(e,t,n,r,o){return null===t||10!==t.tag?(t=ut(n,e.internalContextTag,r,o),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return t=lt(""+t,e.internalContextTag,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case To:return t.type===wo?(t=ut(t.props.children,e.internalContextTag,n,t.key),t.return=e,t):(n=st(t,e.internalContextTag,n),n.ref=xt(null,t),n.return=e,n);case _o:return t=ct(t,e.internalContextTag,n),t.return=e,t;case Eo:return n=ft(t,e.internalContextTag,n),n.type=t.value,n.return=e,n;case ko:return t=pt(t,e.internalContextTag,n),t.return=e,t}if(Co(t)||wt(t))return t=ut(t,e.internalContextTag,n,null),t.return=e,t;Ct(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case To:return n.key===o?n.type===wo?d(e,t,n.props.children,r,o):l(e,t,n,r):null;case _o:return n.key===o?c(e,t,n,r):null;case Eo:return null===o?f(e,t,n,r):null;case ko:return n.key===o?p(e,t,n,r):null}if(Co(n)||wt(n))return null!==o?null:d(e,t,n,r,null);Ct(e,n)}return null}function g(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,u(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case To:return e=e.get(null===r.key?n:r.key)||null,r.type===wo?d(t,e,r.props.children,o,r.key):l(t,e,r,o);case _o:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,o);case Eo:return e=e.get(n)||null,f(t,e,r,o);case ko:return e=e.get(null===r.key?n:r.key)||null,p(t,e,r,o)}if(Co(r)||wt(r))return e=e.get(n)||null,d(t,e,r,o,null);Ct(t,r)}return null}function v(r,i,s,u){for(var l=null,c=null,f=i,p=i=0,d=null;null!==f&&p<s.length;p++){f.index>p?(d=f,f=null):d=f.sibling;var v=m(r,f,s[p],u);if(null===v){null===f&&(f=d);break}e&&f&&null===v.alternate&&t(r,f),i=a(v,i,p),null===c?l=v:c.sibling=v,c=v,f=d}if(p===s.length)return n(r,f),l;if(null===f){for(;p<s.length;p++)(f=h(r,s[p],u))&&(i=a(f,i,p),null===c?l=f:c.sibling=f,c=f);return l}for(f=o(r,f);p<s.length;p++)(d=g(f,r,p,s[p],u))&&(e&&null!==d.alternate&&f.delete(null===d.key?p:d.key),i=a(d,i,p),null===c?l=d:c.sibling=d,c=d);return e&&f.forEach(function(e){return t(r,e)}),l}function y(i,s,u,l){var c=wt(u);"function"!==typeof c&&r("150"),null==(u=c.call(u))&&r("151");for(var f=c=null,p=s,d=s=0,v=null,y=u.next();null!==p&&!y.done;d++,y=u.next()){p.index>d?(v=p,p=null):v=p.sibling;var b=m(i,p,y.value,l);if(null===b){p||(p=v);break}e&&p&&null===b.alternate&&t(i,p),s=a(b,s,d),null===f?c=b:f.sibling=b,f=b,p=v}if(y.done)return n(i,p),c;if(null===p){for(;!y.done;d++,y=u.next())null!==(y=h(i,y.value,l))&&(s=a(y,s,d),null===f?c=y:f.sibling=y,f=y);return c}for(p=o(i,p);!y.done;d++,y=u.next())null!==(y=g(p,i,d,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?d:y.key),s=a(y,s,d),null===f?c=y:f.sibling=y,f=y);return e&&p.forEach(function(e){return t(i,e)}),c}return function(e,o,a,u){"object"===typeof a&&null!==a&&a.type===wo&&null===a.key&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case To:e:{var c=a.key;for(l=o;null!==l;){if(l.key===c){if(10===l.tag?a.type===wo:l.type===a.type){n(e,l.sibling),o=i(l,a.type===wo?a.props.children:a.props,u),o.ref=xt(l,a),o.return=e,e=o;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===wo?(o=ut(a.props.children,e.internalContextTag,u,a.key),o.return=e,e=o):(u=st(a,e.internalContextTag,u),u.ref=xt(o,a),u.return=e,e=u)}return s(e);case _o:e:{for(l=a.key;null!==o;){if(o.key===l){if(7===o.tag){n(e,o.sibling),o=i(o,a,u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ct(a,e.internalContextTag,u),o.return=e,e=o}return s(e);case Eo:e:{if(null!==o){if(9===o.tag){n(e,o.sibling),o=i(o,null,u),o.type=a.value,o.return=e,e=o;break e}n(e,o)}o=ft(a,e.internalContextTag,u),o.type=a.value,o.return=e,e=o}return s(e);case ko:e:{for(l=a.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=pt(a,e.internalContextTag,u),o.return=e,e=o}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,u)):(n(e,o),o=lt(a,e.internalContextTag,u)),o.return=e,e=o,s(e);if(Co(a))return v(e,o,a,u);if(wt(a))return y(e,o,a,u);if(l&&Ct(e,a),"undefined"===typeof a)switch(e.tag){case 2:case 1:u=e.type,r("152",u.displayName||u.name||"Component")}return n(e,o)}}function Ot(e,t,n,o,i){function a(e,t,n){var r=t.expirationTime;t.child=null===e?Oo(t,null,n,r):Ao(t,e.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function u(e,t,n,r){if(s(e,t),!n)return r&&ot(t,!1),c(e,t);n=t.stateNode,Ur.current=t;var o=n.render();return t.effectTag|=1,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ot(t,!0),t.child}function l(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),g(e,t.containerInfo)}function c(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function f(e,t){switch(t.tag){case 3:l(t);break;case 2:rt(t);break;case 4:g(t,t.stateNode.containerInfo)}return null}var p=e.shouldSetTextContent,d=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,m=t.pushHostContext,g=t.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=kt(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var T=e.adoptClassInstance,_=e.constructClassInstance,E=e.mountClassInstance,k=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return f(e,t);switch(t.tag){case 0:null!==e&&r("155");var o=t.type,i=t.pendingProps,w=Xe(t);return w=Qe(t,w),o=o(i,w),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render?(t.tag=2,i=rt(t),T(t,o),E(t,n),t=u(e,t,!0,i)):(t.tag=1,a(e,t,o),t.memoizedProps=i,t=t.child),t;case 1:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,mo.current)null===n&&(n=o);else if(null===n||o===n){t=c(e,t);break e}o=Xe(t),o=Qe(t,o),i=i(n,o),t.effectTag|=1,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case 2:return i=rt(t),o=void 0,null===e?t.stateNode?r("153"):(_(t,t.pendingProps),E(t,n),o=!0):o=k(e,t,n),u(e,t,o,i);case 3:return l(t),i=t.updateQueue,null!==i?(o=t.memoizedState,i=_t(e,t,i,null,null,n),o===i?(y(),t=c(e,t)):(o=i.element,w=t.stateNode,(null===e||null===e.child)&&w.hydrate&&v(t)?(t.effectTag|=2,t.child=Oo(t,null,o,n)):(y(),a(e,t,o)),t.memoizedState=i,t=t.child)):(y(),t=c(e,t)),t;case 5:m(t),null===e&&b(t),i=t.type;var x=t.memoizedProps;return o=t.pendingProps,null===o&&null===(o=x)&&r("154"),w=null!==e?e.memoizedProps:null,mo.current||null!==o&&x!==o?(x=o.children,p(i,o)?x=null:w&&p(i,w)&&(t.effectTag|=16),s(e,t),2147483647!==n&&!d&&h(i,o)?(t.expirationTime=2147483647,t=null):(a(e,t,x),t.memoizedProps=o,t=t.child)):t=c(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return i=t.pendingProps,mo.current?null===i&&null===(i=e&&e.memoizedProps)&&r("154"):null!==i&&t.memoizedProps!==i||(i=t.memoizedProps),o=i.children,t.stateNode=null===e?Oo(t,t.stateNode,o,n):Ao(t,t.stateNode,o,n),t.memoizedProps=i,t.stateNode;case 9:return null;case 4:e:{if(g(t,t.stateNode.containerInfo),i=t.pendingProps,mo.current)null===i&&null==(i=e&&e.memoizedProps)&&r("154");else if(null===i||t.memoizedProps===i){t=c(e,t);break e}null===e?t.child=Ao(t,null,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case 10:e:{if(n=t.pendingProps,mo.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=c(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:l(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?f(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Oo(t,null,null,n):Ao(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function St(e,t,n){function o(e){e.effectTag|=4}var i=e.createInstance,a=e.createTextInstance,s=e.appendInitialChild,u=e.finalizeInitialChildren,l=e.prepareUpdate,c=e.persistence,f=t.getRootHostContainer,p=t.popHostContext,d=t.getHostContext,h=t.popHostContainer,m=n.prepareToHydrateHostInstance,g=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,T=void 0;return e.mutation?(y=function(){},b=function(e,t,n){(t.updateQueue=n)&&o(t)},T=function(e,t,n,r){n!==r&&o(t)}):r(c?"235":"236"),{completeWork:function(e,t,n){var c=t.pendingProps;switch(null===c?c=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),$e(mo,t),$e(ho,t),c=t.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==e&&null!==e.child||(v(t),t.effectTag&=-3),y(t),null;case 5:p(t),n=f();var _=t.type;if(null!==e&&null!=t.stateNode){var E=e.memoizedProps,k=t.stateNode,w=d();k=l(k,_,E,c,n,w),b(e,t,k,_,E,c,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!c)return null===t.stateNode&&r("166"),null;if(e=d(),v(t))m(t,n,e)&&o(t);else{e=i(_,c,n,e,t);e:for(E=t.child;null!==E;){if(5===E.tag||6===E.tag)s(e,E.stateNode);else if(4!==E.tag&&null!==E.child){E.child.return=E,E=E.child;continue}if(E===t)break;for(;null===E.sibling;){if(null===E.return||E.return===t)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}u(e,_,c,n)&&o(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)T(e,t,e.memoizedProps,c);else{if("string"!==typeof c)return null===t.stateNode&&r("166"),null;e=f(),n=d(),v(t)?g(t)&&o(t):t.stateNode=a(c,e,n,t)}return null;case 7:(c=t.memoizedProps)||r("165"),t.tag=8,_=[];e:for((E=t.stateNode)&&(E.return=t);null!==E;){if(5===E.tag||6===E.tag||4===E.tag)r("247");else if(9===E.tag)_.push(E.type);else if(null!==E.child){E.child.return=E,E=E.child;continue}for(;null===E.sibling;){if(null===E.return||E.return===t)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}return E=c.handler,c=E(c.props,_),t.child=Ao(t,null!==e?e.child:null,c,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),y(t),null;case 0:r("167");default:r("156")}}}}function Nt(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){switch("function"===typeof gt&&gt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"===typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:i(e.stateNode);break;case 4:l&&s(e)}}function i(e){for(var t=e;;)if(o(t),null===t.child||l&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function s(e){for(var t=e,n=!1,a=void 0,s=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,s=!1;break e;case 3:case 4:a=n.stateNode.containerInfo,s=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)i(t),s?b(a,t.stateNode):y(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:o(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var u=e.getPublicInstance,l=e.mutation;e=e.persistence,l||r(e?"235":"236");var c=l.commitMount,f=l.commitUpdate,p=l.resetTextContent,d=l.commitTextUpdate,h=l.appendChild,m=l.appendChildToContainer,g=l.insertBefore,v=l.insertInContainerBefore,y=l.removeChild,b=l.removeChildFromContainer;return{commitResetTextContent:function(e){p(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(p(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)n?o?v(t,i.stateNode,n):g(t,i.stateNode,n):o?m(t,i.stateNode):h(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){s(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&f(n,a,i,e,o,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,d(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t=t.updateQueue,null!==t&&Et(t,n);break;case 3:n=t.updateQueue,null!==n&&Et(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&c(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(u(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function Dt(e){function t(e){return e===So&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,i={current:So},a={current:So},s={current:So};return{getHostContext:function(){return t(i.current)},getRootHostContainer:function(){return t(s.current)},popHostContainer:function(e){$e(i,e),$e(a,e),$e(s,e)},popHostContext:function(e){a.current===e&&($e(i,e),$e(a,e))},pushHostContainer:function(e,t){Je(s,t,e),t=o(t),Je(a,e,e),Je(i,t,e)},pushHostContext:function(e){var r=t(s.current),o=t(i.current);r=n(o,e.type,r),o!==r&&(Je(a,e,e),Je(i,r,e))},resetHostContainer:function(){i.current=So,s.current=So}}}function It(e){function t(e,t){var n=new it(5,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=s(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;p=e}var i=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,s=e.canHydrateTextInstance,u=e.getNextHydratableSibling,l=e.getFirstHydratableChild,c=e.hydrateInstance,f=e.hydrateTextInstance,p=null,d=null,h=!1;return{enterHydrationState:function(e){return d=l(e.stateNode.containerInfo),p=e,h=!0},resetHydrationState:function(){d=p=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=d;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=2,h=!1,void(p=e);t(p,d)}p=e,d=l(r)}else e.effectTag|=2,h=!1,p=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return f(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==p)return!1;if(!h)return o(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!i(n,e.memoizedProps))for(n=d;n;)t(e,n),n=u(n);return o(e),d=p?u(e.stateNode):null,!0}}}function Mt(e){function t(e){ie=$=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,Ur.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var n=e.firstEffect}else n=e;else n=e.firstEffect;for(q(),Z=n;null!==Z;){var o=!1,i=void 0;try{for(;null!==Z;){var a=Z.effectTag;if(16&a&&M(Z),128&a){var s=Z.alternate;null!==s&&F(s)}switch(-242&a){case 2:L(Z),Z.effectTag&=-3;break;case 6:L(Z),Z.effectTag&=-3,R(Z.alternate,Z);break;case 4:R(Z.alternate,Z);break;case 8:ae=!0,P(Z),ae=!1}Z=Z.nextEffect}}catch(e){o=!0,i=e}o&&(null===Z&&r("178"),u(Z,i),null!==Z&&(Z=Z.nextEffect))}for(W(),t.current=e,Z=n;null!==Z;){n=!1,o=void 0;try{for(;null!==Z;){var l=Z.effectTag;if(36&l&&B(Z.alternate,Z),128&l&&j(Z),64&l)switch(i=Z,a=void 0,null!==ee&&(a=ee.get(i),ee.delete(i),null==a&&null!==i.alternate&&(i=i.alternate,a=ee.get(i),ee.delete(i))),null==a&&r("184"),i.tag){case 2:i.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case 3:null===re&&(re=a.error);break;default:r("157")}var c=Z.nextEffect;Z.nextEffect=null,Z=c}}catch(e){n=!0,o=e}n&&(null===Z&&r("178"),u(Z,o),null!==Z&&(Z=Z.nextEffect))}return $=ie=!1,"function"===typeof mt&&mt(e.stateNode),ne&&(ne.forEach(m),ne=null),null!==re&&(e=re,re=null,k(e)),t=t.current.expirationTime,0===t&&(te=ee=null),t}function n(e){for(;;){var t=I(e.alternate,e,Q),n=e.return,r=e.sibling,o=e;if(2147483647===Q||2147483647!==o.expirationTime){if(2!==o.tag&&3!==o.tag)var i=0;else i=o.updateQueue,i=null===i?0:i.expirationTime;for(var a=o.child;null!==a;)0!==a.expirationTime&&(0===i||i>a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){e.stateNode.isReadyForCommit=!0;break}e=n}return null}function o(e){var t=N(e.alternate,e,Q);return null===t&&(t=n(e)),Ur.current=null,t}function i(e){var t=D(e.alternate,e,Q);return null===t&&(t=n(e)),Ur.current=null,t}function a(e){if(null!==ee){if(!(0===Q||Q>e))if(Q<=V)for(;null!==J;)J=l(J)?i(J):o(J);else for(;null!==J&&!E();)J=l(J)?i(J):o(J)}else if(!(0===Q||Q>e))if(Q<=V)for(;null!==J;)J=o(J);else for(;null!==J&&!E();)J=o(J)}function s(e,t){if($&&r("243"),$=!0,e.isReadyForCommit=!1,e!==X||t!==Q||null===J){for(;-1<po;)fo[po]=null,po--;go=On,ho.current=On,mo.current=!1,O(),X=e,Q=t,J=at(X.current,null,t)}var n=!1,o=null;try{a(t)}catch(e){n=!0,o=e}for(;n;){if(oe){re=o;break}var s=J;if(null===s)oe=!0;else{var l=u(s,o);if(null===l&&r("183"),!oe){try{for(n=l,o=t,l=n;null!==s;){switch(s.tag){case 2:et(s);break;case 5:A(s);break;case 3:C(s);break;case 4:C(s)}if(s===l||s.alternate===l)break;s=s.return}J=i(n),a(o)}catch(e){n=!0,o=e;continue}break}}}return t=re,oe=$=!1,re=null,null!==t&&k(t),e.isReadyForCommit?e.current.alternate:null}function u(e,t){var n=Ur.current=null,r=!1,o=!1,i=null;if(3===e.tag)n=e,c(e)&&(oe=!0);else for(var a=e.return;null!==a&&null===n;){if(2===a.tag?"function"===typeof a.stateNode.componentDidCatch&&(r=!0,i=_e(a),n=a,o=!0):3===a.tag&&(n=a),c(a)){if(ae||null!==ne&&(ne.has(a)||null!==a.alternate&&ne.has(a.alternate)))return null;n=null,o=!1}a=a.return}if(null!==n){null===te&&(te=new Set),te.add(n);var s="";a=e;do{e:switch(a.tag){case 0:case 1:case 2:case 5:var u=a._debugOwner,l=a._debugSource,f=_e(a),p=null;u&&(p=_e(u)),u=l,f="\n in "+(f||"Unknown")+(u?" (at "+u.fileName.replace(/^.*[\\\/]/,"")+":"+u.lineNumber+")":p?" (created by "+p+")":"");break e;default:f=""}s+=f,a=a.return}while(a);a=s,e=_e(e),null===ee&&(ee=new Map),t={componentName:e,componentStack:a,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:i,willRetry:o},ee.set(n,t);try{var d=t.error;d&&d.suppressReactErrorLogging||console.error(d)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}return ie?(null===ne&&(ne=new Set),ne.add(n)):m(n),n}return null===re&&(re=t),null}function l(e){return null!==ee&&(ee.has(e)||null!==e.alternate&&ee.has(e.alternate))}function c(e){return null!==te&&(te.has(e)||null!==e.alternate&&te.has(e.alternate))}function f(){return 20*(1+((g()+100)/20|0))}function p(e){return 0!==Y?Y:$?ie?1:Q:!K||1&e.internalContextTag?f():1}function d(e,t){return h(e,t,!1)}function h(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!$&&n===X&&t<Q&&(J=X=null,Q=0);var o=n,i=t;if(Ee>Te&&r("185"),null===o.nextScheduledRoot)o.remainingExpirationTime=i,null===ue?(se=ue=o,o.nextScheduledRoot=o):(ue=ue.nextScheduledRoot=o,ue.nextScheduledRoot=se);else{var a=o.remainingExpirationTime;(0===a||i<a)&&(o.remainingExpirationTime=i)}fe||(ye?be&&(pe=o,de=1,_(pe,de)):1===i?T(1,null):v(i)),!$&&n===X&&t<Q&&(J=X=null,Q=0)}e=e.return}}function m(e){h(e,1,!0)}function g(){return V=2+((H()-G)/10|0)}function v(e){if(0!==le){if(e>le)return;z(ce)}var t=H()-G;le=e,ce=U(b,{timeout:10*(e-2)-t})}function y(){var e=0,t=null;if(null!==ue)for(var n=ue,o=se;null!==o;){var i=o.remainingExpirationTime;if(0===i){if((null===n||null===ue)&&r("244"),o===o.nextScheduledRoot){se=ue=o.nextScheduledRoot=null;break}if(o===se)se=i=o.nextScheduledRoot,ue.nextScheduledRoot=i,o.nextScheduledRoot=null;else{if(o===ue){ue=n,ue.nextScheduledRoot=se,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if((0===e||i<e)&&(e=i,t=o),o===ue)break;n=o,o=o.nextScheduledRoot}}n=pe,null!==n&&n===t?Ee++:Ee=0,pe=t,de=e}function b(e){T(0,e)}function T(e,t){for(ve=t,y();null!==pe&&0!==de&&(0===e||de<=e)&&!he;)_(pe,de),y();if(null!==ve&&(le=0,ce=-1),0!==de&&v(de),ve=null,he=!1,Ee=0,me)throw e=ge,ge=null,me=!1,e}function _(e,n){if(fe&&r("245"),fe=!0,n<=g()){var o=e.finishedWork;null!==o?(e.finishedWork=null,e.remainingExpirationTime=t(o)):(e.finishedWork=null,null!==(o=s(e,n))&&(e.remainingExpirationTime=t(o)))}else o=e.finishedWork,null!==o?(e.finishedWork=null,e.remainingExpirationTime=t(o)):(e.finishedWork=null,null!==(o=s(e,n))&&(E()?e.finishedWork=o:e.remainingExpirationTime=t(o)));fe=!1}function E(){return!(null===ve||ve.timeRemaining()>ke)&&(he=!0)}function k(e){null===pe&&r("246"),pe.remainingExpirationTime=0,me||(me=!0,ge=e)}var w=Dt(e),x=It(e),C=w.popHostContainer,A=w.popHostContext,O=w.resetHostContainer,S=Ot(e,w,x,d,p),N=S.beginWork,D=S.beginFailedWork,I=St(e,w,x).completeWork;w=Nt(e,u);var M=w.commitResetTextContent,L=w.commitPlacement,P=w.commitDeletion,R=w.commitWork,B=w.commitLifeCycles,j=w.commitAttachRef,F=w.commitDetachRef,H=e.now,U=e.scheduleDeferredCallback,z=e.cancelDeferredCallback,K=e.useSyncScheduling,q=e.prepareForCommit,W=e.resetAfterCommit,G=H(),V=2,Y=0,$=!1,J=null,X=null,Q=0,Z=null,ee=null,te=null,ne=null,re=null,oe=!1,ie=!1,ae=!1,se=null,ue=null,le=0,ce=-1,fe=!1,pe=null,de=0,he=!1,me=!1,ge=null,ve=null,ye=!1,be=!1,Te=1e3,Ee=0,ke=1;return{computeAsyncExpiration:f,computeExpirationForFiber:p,scheduleWork:d,batchedUpdates:function(e,t){var n=ye;ye=!0;try{return e(t)}finally{(ye=n)||fe||T(1,null)}},unbatchedUpdates:function(e){if(ye&&!be){be=!0;try{return e()}finally{be=!1}}return e()},flushSync:function(e){var t=ye;ye=!0;try{e:{var n=Y;Y=1;try{var o=e();break e}finally{Y=n}o=void 0}return o}finally{ye=t,fe&&r("187"),T(1,null)}},deferredUpdates:function(e){var t=Y;Y=f();try{return e()}finally{Y=t}}}}function Lt(e){function t(e){return e=Ce(e),null===e?null:e.stateNode}var n=e.getPublicInstance;e=Mt(e);var o=e.computeAsyncExpiration,i=e.computeExpirationForFiber,a=e.scheduleWork;return{createContainer:function(e,t){var n=new it(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,s){var u=t.current;if(n){n=n._reactInternalFiber;var l;e:{for(2===Ee(n)&&2===n.tag||r("170"),l=n;3!==l.tag;){if(Ze(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}(l=l.return)||r("171")}l=l.stateNode.context}n=Ze(n)?nt(n,l):l}else n=On;null===t.context?t.context=n:t.pendingContext=n,t=s,t=void 0===t?null:t,s=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?o():i(u),bt(u,{expirationTime:s,partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(u,s)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return e=Ae(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return ht(_n({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}function Pt(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ko,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Rt(e){return!!$o.hasOwnProperty(e)||!Yo.hasOwnProperty(e)&&(Vo.test(e)?$o[e]=!0:(Yo[e]=!0,!1))}function Bt(e,t,n){var r=a(t);if(r&&i(t,n)){var o=r.mutationMethod;o?o(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?Ft(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else jt(e,t,i(t,n)?n:null)}function jt(e,t,n){Rt(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function Ft(e,t){var n=a(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function Ht(e,t){var n=t.value,r=t.checked;return _n({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function Ut(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function zt(e,t){null!=(t=t.checked)&&Bt(e,"checked",t)}function Kt(e,t){zt(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function qt(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function Wt(e){var t="";return bn.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function Gt(e,t){return e=_n({children:void 0},t),(t=Wt(t.children))&&(e.children=t),e}function Vt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Yt(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function $t(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),_n({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jt(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&r("92"),Array.isArray(t)&&(1>=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Xt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Qt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Zt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Zt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function nn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=t[n];o=null==i||"boolean"===typeof i||""===i?"":r||"number"!==typeof i||0===i||Zo.hasOwnProperty(o)&&Zo[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function rn(e,t,n){t&&(ti[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!==typeof t.style&&r("62",n()))}function on(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function an(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Pe(e);t=Jn[t];for(var r=0;r<t.length;r++){var o=t[r];n.hasOwnProperty(o)&&n[o]||("topScroll"===o?De("topScroll","scroll",e):"topFocus"===o||"topBlur"===o?(De("topFocus","focus",e),De("topBlur","blur",e),n.topBlur=!0,n.topFocus=!0):"topCancel"===o?(ne("cancel",!0)&&De("topCancel","cancel",e),n.topCancel=!0):"topClose"===o?(ne("close",!0)&&De("topClose","close",e),n.topClose=!0):$r.hasOwnProperty(o)&&Ne(o,$r[o],e),n[o]=!0)}}function sn(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===ni&&(r=Zt(e)),r===ni?"script"===e?(e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function un(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function ln(e,t,n,r){var o=on(t,n);switch(t){case"iframe":case"object":Ne("topLoad","load",e);var i=n;break;case"video":case"audio":for(i in oi)oi.hasOwnProperty(i)&&Ne(i,oi[i],e);i=n;break;case"source":Ne("topError","error",e),i=n;break;case"img":case"image":Ne("topError","error",e),Ne("topLoad","load",e),i=n;break;case"form":Ne("topReset","reset",e),Ne("topSubmit","submit",e),i=n;break;case"details":Ne("topToggle","toggle",e),i=n;break;case"input":Ut(e,n),i=Ht(e,n),Ne("topInvalid","invalid",e),an(r,"onChange");break;case"option":i=Gt(e,n);break;case"select":Yt(e,n),i=_n({},n,{value:void 0}),Ne("topInvalid","invalid",e),an(r,"onChange");break;case"textarea":Jt(e,n),i=$t(e,n),Ne("topInvalid","invalid",e),an(r,"onChange");break;default:i=n}rn(t,i,ri);var a,s=i;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?nn(e,u,ri):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Qo(e,u):"children"===a?"string"===typeof u?("textarea"!==t||""!==u)&&tn(e,u):"number"===typeof u&&tn(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&($n.hasOwnProperty(a)?null!=u&&an(r,a):o?jt(e,a,u):null!=u&&Bt(e,a,u))}switch(t){case"input":ie(e),qt(e,n);break;case"textarea":ie(e),Qt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?Vt(e,!!n.multiple,t,!1):null!=n.defaultValue&&Vt(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=En)}}function cn(e,t,n,r,o){var i=null;switch(t){case"input":n=Ht(e,n),r=Ht(e,r),i=[];break;case"option":n=Gt(e,n),r=Gt(e,r),i=[];break;case"select":n=_n({},n,{value:void 0}),r=_n({},r,{value:void 0}),i=[];break;case"textarea":n=$t(e,n),r=$t(e,r),i=[];break;default:"function"!==typeof n.onClick&&"function"===typeof r.onClick&&(e.onclick=En)}rn(t,r,ri);var a,s;e=null;for(a in n)if(!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&null!=n[a])if("style"===a)for(s in t=n[a])t.hasOwnProperty(s)&&(e||(e={}),e[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&($n.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(t=null!=n?n[a]:void 0,r.hasOwnProperty(a)&&u!==t&&(null!=u||null!=t))if("style"===a)if(t){for(s in t)!t.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(e||(e={}),e[s]="");for(s in u)u.hasOwnProperty(s)&&t[s]!==u[s]&&(e||(e={}),e[s]=u[s])}else e||(i||(i=[]),i.push(a,e)),e=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,t=t?t.__html:void 0,null!=u&&t!==u&&(i=i||[]).push(a,""+u)):"children"===a?t===u||"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&($n.hasOwnProperty(a)?(null!=u&&an(o,a),i||t===u||(i=[])):(i=i||[]).push(a,u))}return e&&(i=i||[]).push("style",e),i}function fn(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&zt(e,o),on(n,r),r=on(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],s=t[i+1];"style"===a?nn(e,s,ri):"dangerouslySetInnerHTML"===a?Qo(e,s):"children"===a?tn(e,s):r?null!=s?jt(e,a,s):e.removeAttribute(a):null!=s?Bt(e,a,s):Ft(e,a)}switch(n){case"input":Kt(e,o);break;case"textarea":Xt(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,n=o.value,null!=n?Vt(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?Vt(e,!!o.multiple,o.defaultValue,!0):Vt(e,!!o.multiple,o.multiple?[]:"",!1))}}function pn(e,t,n,r,o){switch(t){case"iframe":case"object":Ne("topLoad","load",e);break;case"video":case"audio":for(var i in oi)oi.hasOwnProperty(i)&&Ne(i,oi[i],e);break;case"source":Ne("topError","error",e);break;case"img":case"image":Ne("topError","error",e),Ne("topLoad","load",e);break;case"form":Ne("topReset","reset",e),Ne("topSubmit","submit",e);break;case"details":Ne("topToggle","toggle",e);break;case"input":Ut(e,n),Ne("topInvalid","invalid",e),an(o,"onChange");break;case"select":Yt(e,n),Ne("topInvalid","invalid",e),an(o,"onChange");break;case"textarea":Jt(e,n),Ne("topInvalid","invalid",e),an(o,"onChange")}rn(t,n,ri),r=null;for(var a in n)n.hasOwnProperty(a)&&(i=n[a],"children"===a?"string"===typeof i?e.textContent!==i&&(r=["children",i]):"number"===typeof i&&e.textContent!==""+i&&(r=["children",""+i]):$n.hasOwnProperty(a)&&null!=i&&an(o,a));switch(t){case"input":ie(e),qt(e,n);break;case"textarea":ie(e),Qt(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&(e.onclick=En)}return r}function dn(e,t){return e.nodeValue!==t}function hn(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function mn(e){return!(!(e=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))}function gn(e,t,n,o,i){hn(n)||r("200");var a=n._reactRootContainer;if(a)ui.updateContainer(t,a,e,i);else{if(!(o=o||mn(n)))for(a=void 0;a=n.lastChild;)n.removeChild(a);var s=ui.createContainer(n,o);a=n._reactRootContainer=s,ui.unbatchedUpdates(function(){ui.updateContainer(t,s,e,i)})}return ui.getPublicRootInstance(a)}function vn(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return hn(t)||r("200"),Pt(e,t,null,n)}function yn(e,t){this._reactRootContainer=ui.createContainer(e,t)}var bn=n(1),Tn=n(273),_n=n(41),En=n(47),kn=n(274),wn=n(275),xn=n(276),Cn=n(277),An=n(280),On=n(133);bn||r("227");var Sn={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},Nn={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=Nn,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},a=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var s in n){Dn.hasOwnProperty(s)&&r("48",s);var u=s.toLowerCase(),l=n[s];u={attributeName:u,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:o(l,t.MUST_USE_PROPERTY),hasBooleanValue:o(l,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(l,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(l,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(l,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:o(l,t.HAS_STRING_BOOLEAN_VALUE)},1>=u.hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",s),a.hasOwnProperty(s)&&(u.attributeName=a[s]),i.hasOwnProperty(s)&&(u.attributeNamespace=i[s]),e.hasOwnProperty(s)&&(u.mutationMethod=e[s]),Dn[s]=u}}},Dn={},In=Nn,Mn=In.MUST_USE_PROPERTY,Ln=In.HAS_BOOLEAN_VALUE,Pn=In.HAS_NUMERIC_VALUE,Rn=In.HAS_POSITIVE_NUMERIC_VALUE,Bn=In.HAS_OVERLOADED_BOOLEAN_VALUE,jn=In.HAS_STRING_BOOLEAN_VALUE,Fn={Properties:{allowFullScreen:Ln,async:Ln,autoFocus:Ln,autoPlay:Ln,capture:Bn,checked:Mn|Ln,cols:Rn,contentEditable:jn,controls:Ln,default:Ln,defer:Ln,disabled:Ln,download:Bn,draggable:jn,formNoValidate:Ln,hidden:Ln,loop:Ln,multiple:Mn|Ln,muted:Mn|Ln,noValidate:Ln,open:Ln,playsInline:Ln,readOnly:Ln,required:Ln,reversed:Ln,rows:Rn,rowSpan:Pn,scoped:Ln,seamless:Ln,selected:Mn|Ln,size:Rn,start:Pn,span:Rn,spellCheck:jn,style:0,tabIndex:0,itemScope:Ln,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:jn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},Hn=In.HAS_STRING_BOOLEAN_VALUE,Un={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},zn={Properties:{autoReverse:Hn,externalResourcesRequired:Hn,preserveAlpha:Hn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Un.xlink,xlinkArcrole:Un.xlink,xlinkHref:Un.xlink,xlinkRole:Un.xlink,xlinkShow:Un.xlink,xlinkTitle:Un.xlink,xlinkType:Un.xlink,xmlBase:Un.xml,xmlLang:Un.xml,xmlSpace:Un.xml}},Kn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(Kn,s);zn.Properties[t]=0,zn.DOMAttributeNames[t]=e}),In.injectDOMPropertyConfig(Fn),In.injectDOMPropertyConfig(zn);var qn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!==typeof e.invokeGuardedCallback&&r("197"),u=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,i,a,s,l){u.apply(qn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,s,u){if(qn.invokeGuardedCallback.apply(this,arguments),qn.hasCaughtError()){var l=qn.clearCaughtError();qn._hasRethrowError||(qn._hasRethrowError=!0,qn._rethrowError=l)}},rethrowCaughtError:function(){return l.apply(qn,arguments)},hasCaughtError:function(){return qn._hasCaughtError},clearCaughtError:function(){if(qn._hasCaughtError){var e=qn._caughtError;return qn._caughtError=null,qn._hasCaughtError=!1,e}r("198")}},Wn=null,Gn={},Vn=[],Yn={},$n={},Jn={},Xn=Object.freeze({plugins:Vn,eventNameDispatchConfigs:Yn,registrationNameModules:$n,registrationNameDependencies:Jn,possibleRegistrationNames:null,injectEventPluginOrder:p,injectEventPluginsByName:d}),Qn=null,Zn=null,er=null,tr=null,nr={injectEventPluginOrder:p,injectEventPluginsByName:d},rr=Object.freeze({injection:nr,getListener:T,extractEvents:_,enqueueEvents:E,processEventQueue:k}),or=Math.random().toString(36).slice(2),ir="__reactInternalInstance$"+or,ar="__reactEventHandlers$"+or,sr=Object.freeze({precacheFiberNode:function(e,t){t[ir]=e},getClosestInstanceFromNode:w,getInstanceFromNode:function(e){return e=e[ir],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:x,getFiberCurrentPropsFromNode:C,updateFiberProps:function(e,t){e[ar]=t}}),ur=Object.freeze({accumulateTwoPhaseDispatches:L,accumulateTwoPhaseDispatchesSkipTarget:function(e){g(e,D)},accumulateEnterLeaveDispatches:P,accumulateDirectDispatches:function(e){g(e,M)}}),lr=null,cr={_root:null,_startText:null,_fallbackText:null},fr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),pr={type:null,target:null,currentTarget:En.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_n(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=En.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=En.thatReturnsTrue)},persist:function(){this.isPersistent=En.thatReturnsTrue},isPersistent:En.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<fr.length;t++)this[fr[t]]=null}}),F.Interface=pr,F.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;_n(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=_n({},this.Interface,t),e.augmentClass=this.augmentClass,z(e)},z(F),F.augmentClass(K,{data:null}),F.augmentClass(q,{data:null});var dr=[9,13,27,32],hr=Tn.canUseDOM&&"CompositionEvent"in window,mr=null;Tn.canUseDOM&&"documentMode"in document&&(mr=document.documentMode);var gr;if(gr=Tn.canUseDOM&&"TextEvent"in window&&!mr){var vr=window.opera;gr=!("object"===typeof vr&&"function"===typeof vr.version&&12>=parseInt(vr.version(),10))}var yr,br=gr,Tr=Tn.canUseDOM&&(!hr||mr&&8<mr&&11>=mr),_r=String.fromCharCode(32),Er={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},kr=!1,wr=!1,xr={eventTypes:Er,extractEvents:function(e,t,n,r){var o;if(hr)e:{switch(e){case"topCompositionStart":var i=Er.compositionStart;break e;case"topCompositionEnd":i=Er.compositionEnd;break e;case"topCompositionUpdate":i=Er.compositionUpdate;break e}i=void 0}else wr?W(e,n)&&(i=Er.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(i=Er.compositionStart);return i?(Tr&&(wr||i!==Er.compositionStart?i===Er.compositionEnd&&wr&&(o=B()):(cr._root=r,cr._startText=j(),wr=!0)),i=K.getPooled(i,t,n,r),o?i.data=o:null!==(o=G(n))&&(i.data=o),L(i),o=i):o=null,(e=br?V(e,n):Y(e,n))?(t=q.getPooled(Er.beforeInput,t,n,r),t.data=e,L(t)):t=null,[o,t]}},Cr=null,Ar=null,Or=null,Sr={injectFiberControlledHostComponent:function(e){Cr=e}},Nr=Object.freeze({injection:Sr,enqueueStateRestore:J,restoreStateIfNeeded:X}),Dr=!1,Ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};Tn.canUseDOM&&(yr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Lr=null,Pr=null,Rr=!1;Tn.canUseDOM&&(Rr=ne("input")&&(!document.documentMode||9<document.documentMode));var Br={eventTypes:Mr,_isInputEventSupported:Rr,extractEvents:function(e,t,n,r){var o=t?x(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=ce;else if(ee(o))if(Rr)a=ge;else{a=he;var s=de}else!(i=o.nodeName)||"input"!==i.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type||(a=me);if(a&&(a=a(e,t)))return se(a,n,r);s&&s(e,o,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&(e=""+o.value,o.getAttribute("value")!==e&&o.setAttribute("value",e))}};F.augmentClass(ve,{view:null,detail:null});var jr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};ve.augmentClass(Te,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:be,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var Fr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Hr={eventTypes:Fr,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?w(t):null):e=null,e===t)return null;var i=null==e?o:x(e);o=null==t?o:x(t);var a=Te.getPooled(Fr.mouseLeave,e,n,r);return a.type="mouseleave",a.target=i,a.relatedTarget=o,n=Te.getPooled(Fr.mouseEnter,t,n,r),n.type="mouseenter",n.target=o,n.relatedTarget=i,P(a,n,e,t),[a,n]}},Ur=bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zr=[],Kr=!0,qr=void 0,Wr=Object.freeze({get _enabled(){return Kr},get _handleTopLevel(){return qr},setHandleTopLevel:function(e){qr=e},setEnabled:Se,isEnabled:function(){return Kr},trapBubbledEvent:Ne,trapCapturedEvent:De,dispatchEvent:Ie}),Gr={animationend:Me("Animation","AnimationEnd"),animationiteration:Me("Animation","AnimationIteration"),animationstart:Me("Animation","AnimationStart"),transitionend:Me("Transition","TransitionEnd")},Vr={},Yr={};Tn.canUseDOM&&(Yr=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);var $r={topAbort:"abort",topAnimationEnd:Le("animationend")||"animationend",topAnimationIteration:Le("animationiteration")||"animationiteration",topAnimationStart:Le("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:Le("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},Jr={},Xr=0,Qr="_reactListenersID"+(""+Math.random()).slice(2),Zr=Tn.canUseDOM&&"documentMode"in document&&11>=document.documentMode,eo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},to=null,no=null,ro=null,oo=!1,io={eventTypes:eo,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Pe(i),o=Jn.onSelect;for(var a=0;a<o.length;a++){var s=o[a];if(!i.hasOwnProperty(s)||!i[s]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?x(t):window,e){case"topFocus":(ee(i)||"true"===i.contentEditable)&&(to=i,no=t,ro=null);break;case"topBlur":ro=no=to=null;break;case"topMouseDown":oo=!0;break;case"topContextMenu":case"topMouseUp":return oo=!1,Fe(n,r);case"topSelectionChange":if(Zr)break;case"topKeyDown":case"topKeyUp":return Fe(n,r)}return null}};F.augmentClass(He,{animationName:null,elapsedTime:null,pseudoElement:null}),F.augmentClass(Ue,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ve.augmentClass(ze,{relatedTarget:null});var ao={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},so={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};ve.augmentClass(qe,{key:function(e){if(e.key){var t=ao[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Ke(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?so[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:be,charCode:function(e){return"keypress"===e.type?Ke(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ke(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Te.augmentClass(We,{dataTransfer:null}),ve.augmentClass(Ge,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:be}),F.augmentClass(Ve,{propertyName:null,elapsedTime:null,pseudoElement:null}),Te.augmentClass(Ye,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var uo={},lo={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;t="top"+t,n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t]},uo[e]=n,lo[t]=n});var co={eventTypes:uo,extractEvents:function(e,t,n,r){var o=lo[e];if(!o)return null;switch(e){case"topKeyPress":if(0===Ke(n))return null;case"topKeyDown":case"topKeyUp":e=qe;break;case"topBlur":case"topFocus":e=ze;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":e=Te;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":e=We;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":e=Ge;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":e=He;break;case"topTransitionEnd":e=Ve;break;case"topScroll":e=ve;break;case"topWheel":e=Ye;break;case"topCopy":case"topCut":case"topPaste":e=Ue;break;default:e=F}return t=e.getPooled(o,t,n,r),L(t),t}};qr=function(e,t,n,r){e=_(e,t,n,r),E(e),k(!1)},nr.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Qn=sr.getFiberCurrentPropsFromNode,Zn=sr.getInstanceFromNode,er=sr.getNodeFromInstance,nr.injectEventPluginsByName({SimpleEventPlugin:co,EnterLeaveEventPlugin:Hr,ChangeEventPlugin:Br,SelectEventPlugin:io,BeforeInputEventPlugin:xr});var fo=[],po=-1;new Set;var ho={current:On},mo={current:!1},go=On,vo=null,yo=null,bo="function"===typeof Symbol&&Symbol.for,To=bo?Symbol.for("react.element"):60103,_o=bo?Symbol.for("react.call"):60104,Eo=bo?Symbol.for("react.return"):60105,ko=bo?Symbol.for("react.portal"):60106,wo=bo?Symbol.for("react.fragment"):60107,xo="function"===typeof Symbol&&Symbol.iterator,Co=Array.isArray,Ao=At(!0),Oo=At(!1),So={},No=Object.freeze({default:Lt}),Do=No&&Lt||No,Io=Do.default?Do.default:Do,Mo="object"===typeof performance&&"function"===typeof performance.now,Lo=void 0;Lo=Mo?function(){return performance.now()}:function(){return Date.now()};var Po=void 0,Ro=void 0;if(Tn.canUseDOM)if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var Bo,jo=null,Fo=!1,Ho=-1,Uo=!1,zo=0,Ko=33,qo=33;Bo=Mo?{didTimeout:!1,timeRemaining:function(){var e=zo-performance.now();return 0<e?e:0}}:{didTimeout:!1,timeRemaining:function(){var e=zo-Date.now();return 0<e?e:0}};var Wo="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===Wo){if(Fo=!1,e=Lo(),0>=zo-e){if(!(-1!==Ho&&Ho<=e))return void(Uo||(Uo=!0,requestAnimationFrame(Go)));Bo.didTimeout=!0}else Bo.didTimeout=!1;Ho=-1,e=jo,jo=null,null!==e&&e(Bo)}},!1);var Go=function(e){Uo=!1;var t=e-zo+qo;t<qo&&Ko<qo?(8>t&&(t=8),qo=t<Ko?Ko:t):Ko=t,zo=e+qo,Fo||(Fo=!0,window.postMessage(Wo,"*"))};Po=function(e,t){return jo=e,null!=t&&"number"===typeof t.timeout&&(Ho=Lo()+t.timeout),Uo||(Uo=!0,requestAnimationFrame(Go)),0},Ro=function(){jo=null,Fo=!1,Ho=-1}}else Po=window.requestIdleCallback,Ro=window.cancelIdleCallback;else Po=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0}})})},Ro=function(e){clearTimeout(e)};var Vo=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yo={},$o={},Jo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Xo=void 0,Qo=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Jo.svg||"innerHTML"in e)e.innerHTML=t;else{for(Xo=Xo||document.createElement("div"),Xo.innerHTML="<svg>"+t+"</svg>",t=Xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Zo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ei=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){ei.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});var ti=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ni=Jo.html,ri=En.thatReturns(""),oi={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ii=Object.freeze({createElement:sn,createTextNode:un,setInitialProperties:ln,diffProperties:cn,updateProperties:fn,diffHydratedProperties:pn,diffHydratedText:dn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Kt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=C(o);i||r("90"),ae(o),Kt(o,i)}}}break;case"textarea":Xt(e,n);break;case"select":null!=(t=n.value)&&Vt(e,!!n.multiple,t,!1)}}});Sr.injectFiberControlledHostComponent(ii);var ai=null,si=null,ui=Io({getRootHostContext:function(e){var t=e.nodeType;switch(t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:en(null,"");break;default:t=8===t?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=en(e,t)}return e},getChildHostContext:function(e,t){return en(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){ai=Kr;var e=wn();if(je(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=window.getSelection&&window.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(e){t=null;break e}var i=0,a=-1,s=-1,u=0,l=0,c=e,f=null;t:for(;;){for(var p;c!==t||0!==r&&3!==c.nodeType||(a=i+r),c!==o||0!==n&&3!==c.nodeType||(s=i+n),3===c.nodeType&&(i+=c.nodeValue.length),null!==(p=c.firstChild);)f=c,c=p;for(;;){if(c===e)break t;if(f===t&&++u===r&&(a=i),f===o&&++l===n&&(s=i),null!==(p=c.nextSibling))break;c=f,f=c.parentNode}c=p}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;si={focusedElem:e,selectionRange:t},Se(!1)},resetAfterCommit:function(){var e=si,t=wn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&Cn(document.documentElement,n)){if(je(n))if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(window.getSelection){t=window.getSelection();var o=n[R()].length;e=Math.min(r.start,o),r=void 0===r.end?e:Math.min(r.end,o),!t.extend&&e>r&&(o=r,r=e,e=o),o=Be(n,e);var i=Be(n,r);if(o&&i&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)){var a=document.createRange();a.setStart(o.node,o.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(i.node,i.offset)):(a.setEnd(i.node,i.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(An(n),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}si=null,Se(ai),ai=null},createInstance:function(e,t,n,r,o){return e=sn(e,t,n,r),e[ir]=o,e[ar]=t,e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){ln(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return cn(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=un(e,t),e[ir]=r,e},now:Lo,mutation:{commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){e[ar]=o,fn(e,t,n,r,o)},resetTextContent:function(e){e.textContent=""},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){8===e.nodeType?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)}},hydration:{canHydrateInstance:function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e},canHydrateTextInstance:function(e,t){return""===t||3!==e.nodeType?null:e},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,i){return e[ir]=i,e[ar]=n,pn(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return e[ir]=n,dn(e,t)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Po,cancelDeferredCallback:Ro,useSyncScheduling:!0});Q=ui.batchedUpdates,yn.prototype.render=function(e,t){ui.updateContainer(e,this._reactRootContainer,null,t)},yn.prototype.unmount=function(e){ui.updateContainer(null,this._reactRootContainer,null,e)};var li={createPortal:vn,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(t)return ui.findHostInstance(t);"function"===typeof e.render?r("188"):r("213",Object.keys(e))},hydrate:function(e,t,n){return gn(null,e,t,!0,n)},render:function(e,t,n){return gn(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return(null==e||void 0===e._reactInternalFiber)&&r("38"),gn(e,t,n,!1,o)},unmountComponentAtNode:function(e){return hn(e)||r("40"),!!e._reactRootContainer&&(ui.unbatchedUpdates(function(){gn(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:vn,unstable_batchedUpdates:Z,unstable_deferredUpdates:ui.deferredUpdates,flushSync:ui.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:rr,EventPluginRegistry:Xn,EventPropagators:ur,ReactControlledComponent:Nr,ReactDOMComponentTree:sr,ReactDOMEventListener:Wr}};ui.injectIntoDevTools({findFiberByHostInstance:w,bundleType:0,version:"16.2.0",rendererPackageName:"react-dom"});var ci=Object.freeze({default:li}),fi=ci&&li||ci;e.exports=fi.default?fi.default:fi},function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";var r=n(47),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(278);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(279);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"===typeof n.Node?e instanceof n.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(){return"image-"+Date.now().toString()+".png"}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),f=r(c),p=n(282),d=r(p);n(132);var h=n(805),m=n(826),g=r(m),v=window.app.pageOptions.repoID,y=window.app.pageOptions.filePath,b=window.app.pageOptions.fileName,T=window.app.config.siteRoot,_=window.app.pageOptions.domain,E=window.app.pageOptions.protocol,k="/",w=window.app.config.serviceUrl,x=window.app.config.seafileCollabServer,C=window.app.userInfo,A=new h.SeafileAPI,O=g.default.load("csrftoken");A.initForSeahubUsage({xcsrfHeaders:O});var S=function(){function e(){var t=this;a(this,e),this.uploadImage=function(e){return A.getUploadLink(v,k).then(function(t){var n=t.data,r=n+"?ret-json=1",o=s(),i=e.slice(0,-1,"image/png"),a=new File([i],o,{type:"image/png"}),u=new FormData;return u.append("parent_dir","/"),u.append("relative_path","images"),u.append("file",a),{uploadLink:r,formData:u}}).then(function(e){var t=e.uploadLink,n=e.formData;return A.uploadImage(t,n)}).then(function(e){var n=e.data[0],r=n.name;return t._getImageURL(r)})},this.repoID=v,this.filePath=y,this.serviceUrl=w}return l(e,[{key:"saveContent",value:function(e){return A.getUpdateLink(v,k).then(function(t){var n=t.data;return A.updateFile(n,y,b,e)})}},{key:"unStarFile",value:function(){return A.unStarFile(v,this.filePath)}},{key:"starFile",value:function(){return A.starFile(this.repoID,this.filePath)}},{key:"getParentDectionaryUrl",value:function(){var e=this.filePath.substring(0,this.filePath.lastIndexOf("/"));return this.serviceUrl+"/#common/lib/"+this.repoID+e}},{key:"_getImageURL",value:function(e){return E+"://"+_+T+"lib/"+v+"/file/images/"+e+"?raw=1"}},{key:"getFileURL",value:function(e){return e.isImage()?E+"://"+_+T+"lib/"+v+"/file"+encodeURIComponent(e.path())+"?raw=1":E+"://"+_+T+"lib/"+v+"/file"+encodeURIComponent(e.path())}},{key:"isInternalFileLink",value:function(e){return new RegExp(this.serviceUrl+"/lib/[0-9a-f-]{36}/file.*").test(e)}},{key:"getFiles",value:function(){return A.listDir(v,k,{recursive:!0}).then(function(e){return e.data.map(function(e){return{name:e.name,type:"dir"===e.type?"dir":"file",parent_path:e.parent_dir}})})}}]),e}(),N=new S,D=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={markdownContent:"",loading:!0,mode:"editor",fileInfo:{repoID:v,name:b,path:y,mtime:null,size:0,starred:!1},collabServer:x||null},n}return i(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;A.getFileInfo(v,y).then(function(t){var n=t.data,r=n.mtime,o=n.size,i=n.starred;e.setState(function(e,t){return{fileInfo:u({},e.fileInfo,{mtime:r,size:o,starred:i})}}),A.getFileDownloadLink(v,y).then(function(t){var n=t.data;A.getFileContent(n).then(function(t){e.setState({markdownContent:t.data,loading:!1})})})})}},{key:"render",value:function(){return this.state.loading?f.default.createElement("div",{className:"empty-loading-page"},f.default.createElement("div",{className:"lds-ripple page-centered"},f.default.createElement("div",null),f.default.createElement("div",null))):"editor"===this.state.mode?f.default.createElement(d.default,{fileInfo:this.state.fileInfo,markdownContent:this.state.markdownContent,editorUtilities:N,userInfo:this.state.collabServer?C:null,collabServer:this.state.collabServer}):void 0}}]),t}(f.default.Component);t.default=D},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n.n(a),u=n(82),l=n.n(u),c=n(83),f=n.n(c),p=n(291),d=n.n(p),h=n(22),m=n(330),g=(n.n(m),n(331)),v=(n.n(g),n(332)),y=(n.n(v),n(333)),b=n(574),T=n(719),_=n(738),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(n(249),n(781)),w=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.setFileInfoMtime=function(){n.setState({fileInfo:Object.assign({},n.state.fileInfo,{mtime:(new Date).getTime()/1e3})})},n.toggleStar=function(){var e=n.state.fileInfo.starred;e?n.props.editorUtilities.unStarFile().then(function(t){"success"===t.data&&n.setState({fileInfo:Object.assign({},n.state.fileInfo,{starred:!e})})}):e||n.props.editorUtilities.starFile().then(function(t){"success"===t.data&&n.setState({fileInfo:Object.assign({},n.state.fileInfo,{starred:!e})})})},n.emitUserEditing=function(){if(n.props.userInfo){var e=n.props.fileInfo,t=e.repoID,r=e.path;n.socket.emit("presence",{request:"editing",doc_id:k.MD5(t+r).toString(),user:n.props.userInfo})}},n.onUnload=function(e){if(n.state.contentChanged){return e.returnValue="Leave this page? The system may not save your changes.","Leave this page? The system may not save your changes."}},n.switchToPlainTextEditor=function(){if("rich"==n.state.mode){var e=n.state.richValue,t=Object(_.b)(e.toJSON());n.setState({mode:"plain",initialPlainValue:t,currentContent:t})}else n.setState({mode:"plain",initialPlainValue:n.state.currentContent})},n.switchToMarkDownViewer=function(){if("plain"==n.state.mode)n.setState({mode:"viewer"});else{var e=n.state.richValue,t=Object(_.b)(e.toJSON());n.setState({mode:"viewer",currentContent:t})}},n.switchToRichTextEditor=function(){n.setState({mode:"rich",richValue:Object(_.a)(n.state.currentContent)})},n.onChange=function(e){if("rich"===n.state.mode){n.setState({richValue:e.value});0!==e.operations.filter(function(e){return"set_selection"!==e.type&&"set_value"!==e.type}).size&&(n.setState({contentChanged:!0}),n.emitUserEditing())}else n.setState({contentChanged:!0,currentContent:e}),n.emitUserEditing()},n.saveContent=function(e){n.props.editorUtilities.saveContent(e).then(function(){n.setState({saving:!1,contentChanged:!1}),f.a.success(n.props.t("file_saved"),{position:"bottom-right",effect:"scale",timeout:1e3})},function(){n.setState({saving:!1}),f.a.error(n.props.t("file_failed_to_save"),{position:"bottom-right",effect:"scale",timeout:1e3})});n.setState({saving:!0})},n.onRichEditorSave=function(){var e=n.state.richValue,t=Object(_.b)(e.toJSON());n.saveContent(t),n.setFileInfoMtime()},n.onPlainEditorSave=function(){var e=n.state.currentContent;n.saveContent(e),n.setFileInfoMtime()},n.state={isTreeDataLoaded:!1,mode:"viewer",initialPlainValue:"",currentContent:n.props.markdownContent,richValue:Object(_.a)(""),contentChanged:!1,saving:!1,fileInfo:n.props.fileInfo,collabUsers:n.props.userInfo?[n.props.userInfo]:[]},n.props.collabServer){var i=d()(n.props.collabServer);n.socket=i,i.on("presence",function(e){return n.receivePresenceData(e)}),i.on("connect",function(){n.socket_id=i.id})}return n}return i(t,e),E(t,[{key:"receivePresenceData",value:function(e){switch(e.response){case"user_join":return void f.a.success("user "+e.user.name+" joined",{position:"bottom-right",effect:"scale",timeout:3e3});case"user_left":return void f.a.info("user "+e.user.name+" left",{position:"bottom-right",effect:"scale",timeout:3e3});case"update_users":for(var t in e.users)if(e.users.hasOwnProperty(t)&&t===this.socket_id){e.users[t].myself=!0;break}return void this.setState({collabUsers:Object.values(e.users)});case"user_editing":return void f.a.warning("user "+e.user.name+" is editing this file!",{position:"bottom-right",effect:"scale",timeout:5e3});default:return void console.log("unknown response type: "+e.response)}}},{key:"componentDidMount",value:function(){if(window.addEventListener("beforeunload",this.onUnload),this.props.userInfo&&this.socket){var e=this.props.fileInfo,t=e.repoID,n=e.path;this.socket.emit("presence",{request:"join_room",doc_id:k.MD5(t+n).toString(),user:this.props.userInfo})}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.onUnload)}},{key:"componentWillReceiveProps",value:function(e){}},{key:"render",value:function(){return"rich"===this.state.mode?s.a.createElement(y.a,{editorUtilities:this.props.editorUtilities,onChange:this.onChange,onSave:this.onRichEditorSave,value:this.state.richValue,contentChanged:this.state.contentChanged,saving:this.state.saving,switchToMarkDownViewer:this.switchToMarkDownViewer,switchToPlainTextEditor:this.switchToPlainTextEditor,fileInfo:this.state.fileInfo,toggleStar:this.toggleStar,collabUsers:this.state.collabUsers}):"plain"===this.state.mode?s.a.createElement(b.a,{editorUtilities:this.props.editorUtilities,initialValue:this.state.initialPlainValue,currentContent:this.state.currentContent,contentChanged:this.state.contentChanged,saving:this.state.saving,switchToRichTextEditor:this.switchToRichTextEditor,switchToMarkDownViewer:this.switchToMarkDownViewer,onSave:this.onPlainEditorSave,onChange:this.onChange,fileInfo:this.state.fileInfo,toggleStar:this.toggleStar,collabUsers:this.state.collabUsers}):"viewer"===this.state.mode?s.a.createElement(T.a,{fileInfo:this.state.fileInfo,markdownContent:this.state.currentContent,switchToEditor:this.switchToRichTextEditor,editorUtilities:this.props.editorUtilities,toggleStar:this.toggleStar}):void 0}}]),t}(s.a.Component);w.defaultProps={userInfo:null},w.propTypes={userInfo:l.a.shape({name:l.a.string.isRequired}),fileInfo:l.a.shape({repoID:l.a.string.isRequired,path:l.a.string.isRequired})},t.default=Object(h.translate)("translations")(w)},function(e,t,n){"use strict";function r(){}var o=n(284);e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(134),n(4),n(85),n(84),n(290)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var f=s(t),p=s(n),d=s(r),h=s(o),m=s(i),g=s(a),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t,n){var r=m.default.randomId();return h.default.dispatch({type:"INSERT",data:y({},t,{id:r,condition:n,message:e})}),r},T=function(e){function t(e){u(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={dataRight:[],dataLeft:[],dataTop:[],dataBottom:[]},n}return c(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this,t=void 0,n=void 0,r=void 0,o=void 0,i=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(n=(0,g.default)("right",e)||[],t=n.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var r=n[0].id;h.default.dispatch({type:"REMOVE",data:{id:r}}),n=(0,g.default)("right",e)||[]}e.setState({dataRight:n})})})};this.unsubStoreRight=h.default.subscribe(i);var a=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var n=void 0;if(t=(0,g.default)("left",e)||[],n=t.length,e.props.stack&&e.props.stack.limit&&n>e.props.stack.limit){var r=t[0].id;h.default.dispatch({type:"REMOVE",data:{id:r}}),t=(0,g.default)("left",e)||[]}e.setState({dataLeft:t})})})};this.unsubStoreLeft=h.default.subscribe(a);var s=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(r=(0,g.default)("full-top",e)||[],t=r.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var n=r[0].id;h.default.dispatch({type:"REMOVE",data:{id:n}}),r=(0,g.default)("full-top",e)||[]}e.setState({dataTop:r})})})};this.unsubStoreTop=h.default.subscribe(s);var u=function(){requestAnimationFrame(function(){return requestAnimationFrame(function(){var t=void 0;if(o=(0,g.default)("full-bottom",e)||[],t=o.length,e.props.stack&&e.props.stack.limit&&t>e.props.stack.limit){var n=o[0].id;h.default.dispatch({type:"REMOVE",data:{id:n}}),o=(0,g.default)("full-bottom",e)||[]}e.setState({dataBottom:o})})})};this.unsubStoreBottom=h.default.subscribe(u);var l={contentTemplate:this.props.contentTemplate,offset:this.props.offset,message:this.props.message,stack:this.props.stack,html:this.props.html,customFields:this.props.customFields,position:this.props.position||"top-right",preserveContext:this.props.preserveContext||!1};m.default.setGlobalConfig(l)}},{key:"componentWillUnmount",value:function(){this.unsubStoreTop(),this.unsubStoreBottom(),this.unsubStoreLeft(),this.unsubStoreRight()}},{key:"render",value:function(){var e=this,t=function(t,n){var r="alert-key-"+t.id+"-"+t.position,o=t.id,i=m.default.returnFirstDefined(t.condition,"info"),a=m.default.returnFirstDefined(t.message,e.props.message,""),s=m.default.returnFirstDefined(t.position,e.props.position,"top-right"),u=(m.default.returnFirstDefined(t.offset,e.props.offset,0),m.default.returnFirstDefined(t.effect,e.props.effect)),l=t.boxPosition,c=m.default.returnFirstDefined(t.beep,e.props.beep,!1),d=m.default.returnFirstDefined(t.timeout,e.props.timeout,5e3),h=m.default.returnFirstDefined(t.html,e.props.html),g=m.default.returnFirstDefined(t.onClose,e.props.onClose),v=m.default.returnFirstDefined(t.onShow,e.props.onShow),y=m.default.returnFirstDefined(t.customFields,e.props.customFields),b=e.props.contentTemplate;return f.default.createElement(p.default,{key:r,id:o,customFields:y,condition:i,message:a,position:s,effect:u,boxPosition:l,beep:c,timeout:d,html:h,onClose:g,onShow:v,contentTemplate:b})},n=this.state.dataRight.map(t),r=this.state.dataLeft.map(t),o=this.state.dataTop.map(t),i=this.state.dataBottom.map(t);return f.default.createElement("div",{className:"s-alert-wrapper"},n,r,o,i)}}],[{key:"info",value:function(e,t){return b(e,t,"info")}},{key:"error",value:function(e,t){return b(e,t,"error")}},{key:"warning",value:function(e,t){return b(e,t,"warning")}},{key:"success",value:function(e,t){return b(e,t,"success")}},{key:"close",value:function(e){h.default.dispatch({type:"REMOVE",data:{id:e}})}},{key:"closeAll",value:function(){h.default.dispatch({type:"REMOVEALL"})}}]),t}(f.default.Component);T.propTypes={message:d.default.string,position:d.default.string,offset:d.default.number,stack:d.default.oneOfType([d.default.bool,d.default.object]),effect:d.default.string,beep:d.default.oneOfType([d.default.string,d.default.object,d.default.bool]),timeout:d.default.oneOfType([d.default.oneOf(["none"]),d.default.number]),html:d.default.bool,preserveContext:d.default.bool,onClose:d.default.func,onShow:d.default.func,customFields:d.default.object,contentTemplate:d.default.func},e.default=T})},function(e,t,n){"use strict";var r=n(47),o=n(287),i=n(288);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(4)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var s=r(t),u=r(n),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(e){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:this.props.classNames,id:this.props.id,style:this.props.styles},s.default.createElement("div",{className:"s-alert-box-inner"},this.props.message),s.default.createElement("span",{className:"s-alert-close",onClick:this.props.handleClose}))}}]),t}(s.default.Component);c.propTypes={id:u.default.string.isRequired,classNames:u.default.string.isRequired,condition:u.default.string.isRequired,styles:u.default.object.isRequired,message:u.default.oneOfType([u.default.string,u.default.object]).isRequired,handleClose:u.default.func.isRequired,customFields:u.default.object},e.default=c})},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(18),n(134),n(85),n(84)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var s=a(t),u=a(n),l=a(r),c=a(o),f=a(i),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e,t){var n=0,r=0,o=0,i={},a=void 0,d=void 0,h=void 0,m=void 0,g=void 0,v=function(e,t){var n=N.filter(function(t){return t.position===e||b.position===e});return n&&n[0].id===t},y=function(e,t,n,r,i,s){return o=T.spacing||parseInt(getComputedStyle(u.default.findDOMNode(s))[t]),v(C,n.id)&&E&&(e=0,e+=parseInt(E)),v(C,n.id)&&T.spacing?e=e:e+=parseInt(o),a=t+": "+e+"px;",e+=i},b=f.default.getGlobalConfig(),T=void 0,_=void 0,E=void 0,k=void 0,w=void 0,x=void 0,C=void 0,A=void 0,O={};"left"===e&&(O=function(e){return"top-left"===e.position||"bottom-left"===e.position||!e.position&&("top-left"===b.position||"bottom-left"===b.position)}),"right"===e&&(O=function(e){return"top-right"===e.position||"bottom-right"===e.position||!e.position&&("top-right"===b.position||"bottom-right"===b.position)}),"full-top"===e&&(O=function(e){return"top"===e.position||!e.position&&"top"===b.position}),"full-bottom"===e&&(O=function(e){return"bottom"===e.position||!e.position&&"bottom"===b.position});var S=c.default.getState(),N=S.slice().filter(O);return N.map(function(o){if(T=b.stack,_=b.contentTemplate,E=f.default.returnFirstDefined(o.offset,b.offset),k=f.default.returnFirstDefined(o.message,b.message),w=f.default.returnFirstDefined(o.html,b.html),x=f.default.returnFirstDefined(o.customFields,b.customFields),C=f.default.returnFirstDefined(o.position,b.position),A=f.default.returnFirstDefined(o.preserveContext,b.preserveContext),m=C&&/top/g.test(C),g=C&&/bottom/g.test(C),T){d=document.createElement("div"),d.classList.add("s-alert-box-height");var c=s.default.createElement(l.default,{key:f.default.randomId(),id:f.default.randomId(),condition:o.condition,message:k,position:C,effect:o.effect,boxPosition:o.boxPosition,beep:!1,timeout:"none",html:w,contentTemplate:_,customFields:x}),v=void 0;v=A?u.default.unstable_renderSubtreeIntoContainer(t,c,d):u.default.render(c,d),document.body.appendChild(d),h=parseInt(getComputedStyle(u.default.findDOMNode(v)).height),m&&(n=y(n,"top",o,0,h,v)),g&&(r=y(r,"bottom",o,0,h,v));var O=getComputedStyle(u.default.findDOMNode(v));"left"===e&&(a=a+"left: "+(T.spacing||parseInt(O.left))+"px;"),"right"===e&&(a=a+"right: "+(T.spacing||parseInt(O.right))+"px;"),i=p({},o,{boxPosition:a}),u.default.unmountComponentAtNode(d),d.parentNode.removeChild(d)}else i=E&&m?p({},o,{boxPosition:"top: "+parseInt(E)+"px;"}):E&&g?p({},o,{boxPosition:"bottom: "+parseInt(E)+"px;"}):o;return i})};e.default=d})},function(e,t,n){function r(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,r=o(e),i=r.source,l=r.id,c=r.path,f=u[l]&&c in u[l].nsps,p=t.forceNew||t["force new connection"]||!1===t.multiplex||f;return p?(s("ignoring socket cache for %s",i),n=a(i,t)):(u[l]||(s("new io instance for %s",i),u[l]=a(i,t)),n=u[l]),r.query&&!t.query&&(t.query=r.query),n.socket(r.path,t)}var o=n(292),i=n(86),a=n(138),s=n(48)("socket.io-client");e.exports=t=r;var u=t.managers={};t.protocol=i.protocol,t.connect=r,t.Manager=n(138),t.Socket=n(144)},function(e,t,n){(function(t){function r(e,n){var r=e;n=n||t.location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(i("protocol-less url %s",e),e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),i("parse %s",e),r=o(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var a=-1!==r.host.indexOf(":"),s=a?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var o=n(135),i=n(48)("socket.io-client:url");e.exports=r}).call(t,n(3))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!==typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var o=t.formatters[r];if("function"===typeof o){var i=a[u];n=o.call(e,i),a.splice(u,1),u--}return n}),t.formatArgs.call(e,a);(n.log||t.log||console.log.bind(console)).apply(e,a)}}var o;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=i,"function"===typeof t.init&&t.init(n),t.instances.push(n),n}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function a(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"===typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}}function s(){t.enable("")}function u(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o.default=o,t.coerce=l,t.disable=s,t.enable=a,t.enabled=u,t.humanize=n(42),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(295),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!==typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var o=t.formatters[r];if("function"===typeof o){var i=a[u];n=o.call(e,i),a.splice(u,1),u--}return n}),t.formatArgs.call(e,a);(n.log||t.log||console.log.bind(console)).apply(e,a)}}var o;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=i,"function"===typeof t.init&&t.init(n),t.instances.push(n),n}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function a(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"===typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}}function s(){t.enable("")}function u(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o.default=o,t.coerce=l,t.disable=s,t.enable=a,t.enabled=u,t.humanize=n(42),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){(function(e){function r(e,t){if(!e)return e;if(a(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(i(e)){for(var o=new Array(e.length),s=0;s<e.length;s++)o[s]=r(e[s],t);return o}if("object"===typeof e&&!(e instanceof Date)){var o={};for(var u in e)o[u]=r(e[u],t);return o}return e}function o(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(i(e))for(var n=0;n<e.length;n++)e[n]=o(e[n],t);else if("object"===typeof e)for(var r in e)e[r]=o(e[r],t);return e}var i=n(136),a=n(137),s=Object.prototype.toString,u="function"===typeof e.Blob||"[object BlobConstructor]"===s.call(e.Blob),l="function"===typeof e.File||"[object FileConstructor]"===s.call(e.File);t.deconstructPacket=function(e){var t=[],n=e.data,o=e;return o.data=r(n,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=o(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){function n(e,s,c){if(!e)return e;if(u&&e instanceof Blob||l&&e instanceof File){r++;var f=new FileReader;f.onload=function(){c?c[s]=this.result:o=this.result,--r||t(o)},f.readAsArrayBuffer(e)}else if(i(e))for(var p=0;p<e.length;p++)n(e[p],p,e);else if("object"===typeof e&&!a(e))for(var d in e)n(e[d],d,e)}var r=0,o=e;n(o),r||t(o)}}).call(t,n(3))},function(e,t,n){e.exports=n(298),e.exports.parser=n(28)},function(e,t,n){(function(t){function r(e,n){if(!(this instanceof r))return new r(e,n);n=n||{},e&&"object"===typeof e&&(n=e,e=null),e?(e=c(e),n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=c(n.host).host),this.secure=null!=n.secure?n.secure:t.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(t.location?location.hostname:"localhost"),this.port=n.port||(t.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"===typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var o="object"===typeof t&&t;o.global===o&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function o(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var i=n(139),a=n(27),s=n(51)("engine.io-client:socket"),u=n(143),l=n(28),c=n(135),f=n(49);e.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=l.protocol,r.Socket=r,r.Transport=n(88),r.transports=n(139),r.parser=n(28),r.prototype.createTransport=function(e){s('creating transport "%s"',e);var t=o(this.query);t.EIO=l.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new i[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},r.prototype.open=function(){var e;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},r.prototype.setTransport=function(e){s("setting transport %s",e.name);var t=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(e){function t(){if(p.onlyBinaryUpgrades){var t=!this.supportsBinary&&p.transport.supportsBinary;f=f||t}f||(s('probe transport "%s" opened',e),c.send([{type:"ping",data:"probe"}]),c.once("packet",function(t){if(!f)if("pong"===t.type&&"probe"===t.data){if(s('probe transport "%s" pong',e),p.upgrading=!0,p.emit("upgrading",c),!c)return;r.priorWebsocketSuccess="websocket"===c.name,s('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){f||"closed"!==p.readyState&&(s("changing transport and sending upgrade packet"),l(),p.setTransport(c),c.send([{type:"upgrade"}]),p.emit("upgrade",c),c=null,p.upgrading=!1,p.flush())})}else{s('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=c.name,p.emit("upgradeError",n)}}))}function n(){f||(f=!0,l(),c.close(),c=null)}function o(t){var r=new Error("probe error: "+t);r.transport=c.name,n(),s('probe transport "%s" failed because of error: %s',e,t),p.emit("upgradeError",r)}function i(){o("transport closed")}function a(){o("socket closed")}function u(e){c&&e.name!==c.name&&(s('"%s" works - aborting "%s"',e.name,c.name),n())}function l(){c.removeListener("open",t),c.removeListener("error",o),c.removeListener("close",i),p.removeListener("close",a),p.removeListener("upgrading",u)}s('probing transport "%s"',e);var c=this.createTransport(e,{probe:1}),f=!1,p=this;r.priorWebsocketSuccess=!1,c.once("open",t),c.once("error",o),c.once("close",i),this.once("close",a),this.once("upgrading",u),c.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},r.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(s('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},r.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},r.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},r.prototype.sendPacket=function(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function e(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function t(){r.removeListener("upgrade",t),r.removeListener("upgradeError",t),e()}function n(){r.once("upgrade",t),r.once("upgradeError",t)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}return this},r.prototype.onError=function(e){s("socket error %j",e),r.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},r.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){s('socket close with reason: "%s"',e);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~u(this.transports,e[n])&&t.push(e[n]);return t}}).call(t,n(3))},function(e,t){try{e.exports="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){(function(t){function r(){}function o(e){if(u.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,t.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=e.hostname!==t.location.hostname||r!==e.port,this.xs=e.secure!==n}}function i(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function a(){for(var e in i.requests)i.requests.hasOwnProperty(e)&&i.requests[e].abort()}var s=n(87),u=n(140),l=n(27),c=n(50),f=n(51)("engine.io-client:polling-xhr");e.exports=o,e.exports.Request=i,c(o,u),o.prototype.supportsBinary=!0,o.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new i(e)},o.prototype.doWrite=function(e,t){var n="string"!==typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",function(e){o.onError("xhr post error",e)}),this.sendXhr=r},o.prototype.doPoll=function(){f("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},l(i.prototype),i.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new s(e),r=this;try{f("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var o in this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.extraHeaders[o])}}catch(e){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState)try{var e=n.getResponseHeader("Content-Type");r.supportsBinary&&"application/octet-stream"===e&&(n.responseType="arraybuffer")}catch(e){}4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},f("xhr data %s",this.data),n.send(this.data)}catch(e){return void setTimeout(function(){r.onError(e)},0)}t.document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},i.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},i.prototype.cleanup=function(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,e)try{this.xhr.abort()}catch(e){}t.document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},i.prototype.hasXDR=function(){return"undefined"!==typeof t.XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},i.requestsCount=0,i.requests={},t.document&&(t.attachEvent?t.attachEvent("onunload",a):t.addEventListener&&t.addEventListener("beforeunload",a,!1))}).call(t,n(3))},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t,n){"use strict";(function(e){function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=i.prototype):(null===e&&(e=new i(t)),e.length=t),e}function i(e,t,n){if(!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i))return new i(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return a(this,e,t,n)}function a(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"===typeof t?c(e,t,n):d(e,t)}function s(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t,n,r){return s(t),t<=0?o(e,t):void 0!==n?"string"===typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function l(e,t){if(s(t),e=o(e,t<0?0:0|h(t)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function c(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!i.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(t,n);e=o(e,r);var a=e.write(t,n);return a!==r&&(e=e.slice(0,a)),e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),i.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=i.prototype):e=f(e,t),e}function d(e,t){if(i.isBuffer(t)){var n=0|h(t.length);return e=o(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||$(t.length)?o(e,0):f(e,t);if("Buffer"===t.type&&Q(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function g(e,t){if(i.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:T(e,t,n,r,o);if("number"===typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):T(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function T(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(o){var c=-1;for(l=n;l<s;l++)if(i(e,l)===i(t,-1===c?0:l-c)){if(-1===c&&(c=l),l-c+1===u)return c*a}else-1!==c&&(l-=l-c),c=-1}else for(n+u>s&&(n=s-u),l=n;l>=0;l--){for(var f=!0,p=0;p<u;p++)if(i(e,l+p)!==i(t,p)){f=!1;break}if(f)return l}return-1}function _(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function E(e,t,n,r){return Y(q(t,e.length-n),e,n,r)}function k(e,t,n,r){return Y(W(t),e,n,r)}function w(e,t,n,r){return k(e,t,n,r)}function x(e,t,n,r){return Y(V(t),e,n,r)}function C(e,t,n,r){return Y(G(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?J.fromByteArray(e):J.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i=e[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=n){var u,l,c,f;switch(s){case 1:i<128&&(a=i);break;case 2:u=e[o+1],128===(192&u)&&(f=(31&i)<<6|63&u)>127&&(a=f);break;case 3:u=e[o+1],l=e[o+2],128===(192&u)&&128===(192&l)&&(f=(15&i)<<12|(63&u)<<6|63&l)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[o+1],l=e[o+2],c=e[o+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(f=(15&i)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return S(r)}function S(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Z));return n}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=K(e[i]);return o}function M(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function L(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function j(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||j(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return o||j(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function U(e){if(e=z(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function G(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function V(e){return J.toByteArray(U(e))}function Y(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function $(e){return e!==e}var J=n(303),X=n(304),Q=n(305);t.Buffer=i,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return a(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return u(null,e,t,n)},i.allocUnsafe=function(e){return l(null,e)},i.allocUnsafeSlow=function(e){return l(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=i.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!i.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},i.byteLength=g,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):v.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,t,n,r,o){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,s=n-t,u=Math.min(a,s),l=this.slice(r,o),c=e.slice(t,n),f=0;f<u;++f)if(l[f]!==c[f]){a=l[f],s=c[f];break}return a<s?-1:s<a?1:0},i.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},i.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},i.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r;if(i.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=i.prototype;else{var o=t-e;r=new i(o,void 0);for(var a=0;a<o;++a)r[a]=this[a+e]}return r},i.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},i.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),X.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),X.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},i.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,a=r-n;if(this===e&&n<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},i.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=i.isBuffer(e)?e:q(new i(e,r).toString()),u=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(3))},function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function o(e){return 3*e.length/4-r(e)}function i(e){var t,n,o,i,a,s=e.length;i=r(e),a=new f(3*s/4-i),n=i>0?s-4:s;var u=0;for(t=0;t<n;t+=4)o=c[e.charCodeAt(t)]<<18|c[e.charCodeAt(t+1)]<<12|c[e.charCodeAt(t+2)]<<6|c[e.charCodeAt(t+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function s(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(a(r));return o.join("")}function u(e){for(var t,n=e.length,r=n%3,o="",i=[],a=0,u=n-r;a<u;a+=16383)i.push(s(e,a,a+16383>u?u:a+16383));return 1===r?(t=e[n-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),i.push(o),i.join("")}t.byteLength=o,t.toByteArray=i,t.fromByteArray=u;for(var l=[],c=[],f="undefined"!==typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=p.length;d<h;++d)l[d]=p[d],c[p.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=l}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?p/u:p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)i[s]=o[a];return i.buffer}},function(e,t){function n(e,t,n){function o(e,r){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(i=!0,t(e),t=n):0!==o.count||i||t(null,r)}var i=!1;return n=n||r,o.count=e,0===e?t():o}function r(){}e.exports=n},function(e,t,n){(function(e,r){var o;!function(i){function a(e){for(var t,n,r=[],o=0,i=e.length;o<i;)t=e.charCodeAt(o++),t>=55296&&t<=56319&&o<i?(n=e.charCodeAt(o++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--)):r.push(t);return r}function s(e){for(var t,n=e.length,r=-1,o="";++r<n;)t=e[r],t>65535&&(t-=65536,o+=T(t>>>10&1023|55296),t=56320|1023&t),o+=T(t);return o}function u(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,t){return T(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return T(e);var n="";return 0==(4294965248&e)?n=T(e>>6&31|192):0==(4294901760&e)?(u(e,t)||(e=65533),n=T(e>>12&15|224),n+=l(e,6)):0==(4292870144&e)&&(n=T(e>>18&7|240),n+=l(e,12),n+=l(e,6)),n+=T(63&e|128)}function f(e,t){t=t||{};for(var n,r=!1!==t.strict,o=a(e),i=o.length,s=-1,u="";++s<i;)n=o[s],u+=c(n,r);return u}function p(){if(b>=y)throw Error("Invalid byte index");var e=255&v[b];if(b++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(e){var t,n,r,o,i;if(b>y)throw Error("Invalid byte index");if(b==y)return!1;if(t=255&v[b],b++,0==(128&t))return t;if(192==(224&t)){if(n=p(),(i=(31&t)<<6|n)>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(n=p(),r=p(),(i=(15&t)<<12|n<<6|r)>=2048)return u(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(n=p(),r=p(),o=p(),(i=(7&t)<<18|n<<12|r<<6|o)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function h(e,t){t=t||{};var n=!1!==t.strict;v=a(e),y=v.length,b=0;for(var r,o=[];!1!==(r=d(n));)o.push(r);return s(o)}var m="object"==typeof t&&t,g=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);var v,y,b,T=String.fromCharCode,_={version:"2.1.2",encode:f,decode:h};void 0!==(o=function(){return _}.call(t,n,t,e))&&(e.exports=o)}()}).call(t,n(29)(e),n(3))},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<e.length;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,r,o,i,a,s=.75*e.length,u=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),f=new Uint8Array(c);for(t=0;t<u;t+=4)r=n[e.charCodeAt(t)],o=n[e.charCodeAt(t+1)],i=n[e.charCodeAt(t+2)],a=n[e.charCodeAt(t+3)],f[l++]=r<<2|o>>4,f[l++]=(15&o)<<4|i>>2,f[l++]=(3&i)<<6|63&a;return c}}()},function(e,t,n){(function(t){function n(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var o=new Uint8Array(n.byteLength);o.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=o.buffer}e[t]=r}}}function r(e,t){t=t||{};var r=new i;n(e);for(var o=0;o<e.length;o++)r.append(e[o]);return t.type?r.getBlob(t.type):r.getBlob()}function o(e,t){return n(e),new Blob(e,t||{})}var i=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),u=i&&i.prototype.append&&i.prototype.getBlob;e.exports=function(){return a?s?t.Blob:o:u?r:void 0}()}).call(t,n(3))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!==typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var o=t.formatters[r];if("function"===typeof o){var i=a[u];n=o.call(e,i),a.splice(u,1),u--}return n}),t.formatArgs.call(e,a);(n.log||t.log||console.log.bind(console)).apply(e,a)}}var o;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=i,"function"===typeof t.init&&t.init(n),t.instances.push(n),n}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function a(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"===typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}}function s(){t.enable("")}function u(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o.default=o,t.coerce=l,t.disable=s,t.enable=a,t.enabled=u,t.humanize=n(42),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){(function(t){function r(){}function o(e){i.call(this,e),this.query=this.query||{},s||(t.___eio||(t.___eio=[]),s=t.___eio),this.index=s.length;var n=this;s.push(function(e){n.onData(e)}),this.query.j=this.index,t.document&&t.addEventListener&&t.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var i=n(140),a=n(50);e.exports=o;var s,u=/\n/g,l=/\\n/g;a(o,i),o.prototype.supportsBinary=!1,o.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},o.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!==typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},o.prototype.doWrite=function(e,t){function n(){r(),t()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(e){o.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(e)}catch(e){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,a=document.createElement("form"),s=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=c,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),e=e.replace(l,"\\\n"),this.area.value=e.replace(u,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(t,n(3))},function(e,t,n){(function(t){function r(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=f&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(p=o),i.call(this,e)}var o,i=n(88),a=n(28),s=n(49),u=n(50),l=n(142),c=n(51)("engine.io-client:websocket"),f=t.WebSocket||t.MozWebSocket;if("undefined"===typeof window)try{o=n(315)}catch(e){}var p=f;p||"undefined"!==typeof window||(p=o),e.exports=r,u(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new p(e,t):new p(e):new p(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},r.prototype.write=function(e){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var o=e.length,i=0,s=o;i<s;i++)!function(e){a.encodePacket(e,r.supportsBinary,function(i){if(!r.usingBrowserWebSocket){var a={};if(e.options&&(a.compress=e.options.compress),r.perMessageDeflate){("string"===typeof i?t.Buffer.byteLength(i):i.length)<r.perMessageDeflate.threshold&&(a.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(i):r.ws.send(i,a)}catch(e){c("websocket closed before onclose event")}--o||n()})}(e[i])},r.prototype.onClose=function(){i.prototype.onClose.call(this)},r.prototype.doClose=function(){"undefined"!==typeof this.ws&&this.ws.close()},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=l()),this.supportsBinary||(e.b64=1),e=s.encode(e),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},r.prototype.check=function(){return!!p&&!("__initialize"in p&&this.name===r.prototype.name)}}).call(t,n(3))},function(e,t){},function(e,t){function n(e,t){var n=[];t=t||0;for(var r=t||0;r<e.length;r++)n[r-t]=e[r];return n}e.exports=n},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var u=function(s){function u(n,r){o(this,u);var a=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,n,r));a.i18n=n.i18n||t.i18n||r.i18n||Object(g.b)(),a.namespaces="function"===typeof e?e(n):e||a.i18n.options&&a.i18n.options.defaultNS,"string"===typeof a.namespaces&&(a.namespaces=[a.namespaces]);var s=a.i18n&&a.i18n.options&&a.i18n.options.react||{};return a.options=y({},Object(g.a)(),s,t),a.getWrappedInstance=a.getWrappedInstance.bind(a),a}return a(u,s),b(u,[{key:"shouldComponentUpdate",value:function(e){return!this.options.usePureComponent||!Object(m.a)(this.props,e)}},{key:"getWrappedInstance",value:function(){return this.options.withRef||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.wrappedInstance}},{key:"render",value:function(){var e=this,t={};return this.options.withRef&&(t.ref=function(t){e.wrappedInstance=t}),c.a.createElement(v.a,y({ns:this.namespaces},this.options,this.props,{i18n:this.i18n}),function(o,i){var a=i.ready,s=r(i,["ready"]);return c.a.createElement(n,y({tReady:a},e.props,t,s))})}}]),u}(l.Component);return u.WrappedComponent=n,u.contextTypes={i18n:p.a.object},u.displayName="Translate("+s(n)+")",u.namespaces=e,h()(u,n)}}t.a=u;var l=n(1),c=n.n(l),f=n(4),p=n.n(f),d=n(319),h=n.n(d),m=n(320),g=n(89),v=n(147),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();u.setDefaults=g.d,u.setI18n=g.e},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function u(l,c,f){if("string"!==typeof c){if(s){var p=a(c);p&&p!==s&&u(l,p,f)}var d=r(c);o&&(d=d.concat(o(c)));for(var h=0;h<d.length;++h){var m=d[h];if(!e[m]&&!t[m]&&(!f||!f[m])){var g=i(c,m);try{n(l,m,g)}catch(e){}}}return l}return l}})},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==("undefined"===typeof e?"undefined":i(e))||null===e||"object"!==("undefined"===typeof t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var s=0;s<n.length;s++)if(!a.call(t,n[s])||!r(e[n[s]],t[n[s]]))return!1;return!0}t.a=o;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(4),l=n.n(u),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.i18n=e.i18n||n.i18n,i.t=e.t||n.t,i}return i(t,e),f(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,u=this.props.dangerouslySetInnerHTMLPartElement||"span",l=c({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),f=this.t(this.props.i18nKey,l);if(!f||"string"!==typeof f)return s.a.createElement("noscript",null);var p=[],d=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+f),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[o]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+f),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};f.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?s.a.createElement(u,{dangerouslySetInnerHTML:{__html:n}}):n}else o=d(n,e.props);return t.push(o),t},p);var h={};if(this.i18n.options.react&&this.i18n.options.react.exposeNamespace){var m="string"===typeof this.t.ns?this.t.ns:this.t.ns[0];if(this.props.i18nKey&&this.i18n.options.nsSeparator&&this.props.i18nKey.indexOf(this.i18n.options.nsSeparator)>-1){m=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(h["data-i18next-options"]=JSON.stringify({ns:m}))}return o&&(h.className=o),i&&(h.style=i),s.a.createElement.apply(this,[t,h].concat(p))}}]),t}(a.Component);p.propTypes={className:l.a.string},p.defaultProps={className:""},p.contextTypes={i18n:l.a.object.isRequired,t:l.a.func.isRequired},t.a=p},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e&&(e.children||e.props&&e.props.children)}function u(e){return e&&e.children?e.children:e.props&&e.props.children}function l(e,t,n){return t?("[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),t.forEach(function(t,n){var r=""+n;if("string"===typeof t)e=""+e+t;else if(s(t))e=e+"<"+r+">"+l("",u(t),n+1)+"</"+r+">";else if(p.a.isValidElement(t))e=e+"<"+r+"></"+r+">";else if("object"===("undefined"===typeof t?"undefined":b(t))){var o=y({},t),i=o.format;delete o.format;var a=Object.keys(o);i&&1===a.length?e=e+"<"+r+">{{"+a[0]+", "+i+"}}</"+r+">":1===a.length?e=e+"<"+r+">{{"+a[0]+"}}</"+r+">":console&&console.warn&&console.warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else console&&console.warn&&console.warn("react-i18next: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)}),e):""}function c(e,t,n){function r(e,t){return"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),t.reduce(function(t,o,i){if("tag"===o.type){var a=e[parseInt(o.name,10)]||{},l=p.a.isValidElement(a);if("string"===typeof a)t.push(a);else if(s(a)){var c=r(u(a),o.children);a.dummy&&(a.children=c),t.push(p.a.cloneElement(a,y({},a.props,{key:i}),c))}else if("object"!==("undefined"===typeof a?"undefined":b(a))||l)t.push(a);else{var f=n.services.interpolator.interpolate(o.children[0].content,a,n.language);t.push(f)}}else"text"===o.type&&t.push(o.content);return t},[])}return""===t?[]:e?u(r([{dummy:!0,children:e}],g.a.parse("<0>"+t+"</0>"))[0]):[t]}var f=n(1),p=n.n(f),d=n(4),h=n.n(d),m=n(323),g=n.n(m),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),v(t,[{key:"render",value:function(){var e=y({i18n:this.context.i18n,t:this.context.t},this.props),t=e.children,n=e.count,o=e.parent,i=e.i18nKey,a=e.tOptions,s=e.ns,u=e.i18n,f=e.t,d=r(e,["children","count","parent","i18nKey","tOptions","ns","i18n","t"]),h=f||u.t.bind(u),m=u.options&&u.options.react||{},g=void 0!==o?o:m.defaultTransParent,v=l("",t,0),b=m.hashTransKey,T=i||(b?b(v):v),_=T?h(T,y({},a,{interpolation:{prefix:"#$?",suffix:"?$#"},defaultValue:v,count:n,ns:s})):v;if(m.exposeNamespace){var E="string"===typeof h.ns?h.ns:h.ns[0];if(i&&u.options&&u.options.nsSeparator&&i.indexOf(u.options.nsSeparator)>-1){E=i.split(u.options.nsSeparator)[0]}h.ns&&(d["data-i18next-options"]=JSON.stringify({ns:E}))}return g?p.a.createElement(g,d,c(t,_,u)):c(t,_,u)}}]),t}(p.a.Component);t.a=T,T.propTypes={count:h.a.number,parent:h.a.oneOfType([h.a.node,h.a.func]),i18nKey:h.a.string,i18n:h.a.object,t:h.a.func},T.contextTypes={i18n:h.a.object.isRequired,t:h.a.func}},function(e,t,n){e.exports={parse:n(324),stringify:n(327)}},function(e,t,n){function r(e,t,n,r,o){var i=t.indexOf("<",r),a=t.slice(r,-1===i?void 0:i);/^\s*$/.test(a)&&(a=" "),(!o&&i>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}var o=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=n(325),a=Object.create?Object.create(null):{};e.exports=function(e,t){t||(t={}),t.components||(t.components=a);var n,s=[],u=-1,l=[],c={},f=!1;return e.replace(o,function(o,a){if(f){if(o!=="</"+n.name+">")return;f=!1}var p,d="/"!==o.charAt(1),h=0===o.indexOf("\x3c!--"),m=a+o.length,g=e.charAt(m);d&&!h&&(u++,n=i(o),"tag"===n.type&&t.components[n.name]&&(n.type="component",f=!0),n.voidElement||f||!g||"<"===g||r(n.children,e,u,m,t.ignoreWhitespace),c[n.tagName]=n,0===u&&s.push(n),p=l[u-1],p&&p.children.push(n),l[u]=n),(h||!d||n.voidElement)&&(h||u--,!f&&"<"!==g&&g&&(p=-1===u?s:l[u].children,r(p,e,u,m,t.ignoreWhitespace)))}),!s.length&&e.length&&r(s,e,0,0,t.ignoreWhitespace),s}},function(e,t,n){var r=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,o=n(326);e.exports=function(e){var t,n=0,i=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(r,function(r){if("="===r)return i=!0,void n++;i?0===n?((o[r]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=r):(a.attrs[t]=r.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=r),n++,i=!1}),a}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}function r(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?n(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(r,"")+"</"+t.name+">"}}e.exports=function(e){return e.reduce(function(e,t){return e+r("",t)},"")}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=(n.n(a),n(4)),u=n.n(s),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.i18n=e.i18n,e.initialI18nStore&&(i.i18n.services.resourceStore.data=e.initialI18nStore,i.i18n.options.isInitialSSR=!0),e.initialLanguage&&i.i18n.changeLanguage(e.initialLanguage),i}return i(t,e),l(t,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return a.Children.only(e)}}]),t}(a.Component);c.propTypes={i18n:u.a.object.isRequired,children:u.a.element.isRequired},c.childContextTypes={i18n:u.a.object.isRequired},t.a=c},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===s(e[n])){var o=!0,i=!1,u=void 0;try{for(var l,c=Object.entries(e[n])[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=a(l.value,2),p=f[0],d=f[1];t(d,n,p)}}catch(e){i=!0,u=e}finally{try{!o&&c.return&&c.return()}finally{if(i)throw u}}}else t(e[n],n)}function o(e){var t=[];return r(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){-1===t.indexOf(e)&&t.push(e)})}),t}function i(e){var t=e.components,n=e.i18n,r=o(t);return new Promise(function(e){n.loadNamespaces(r,e)})}t.a=i;var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(82),l=n.n(u),c=n(52),f=n(464),p=n.n(f),d=n(483),h=n.n(d),m=n(505),g=n.n(m),v=n(523),y=n.n(v),b=n(525),T=n.n(b),_=n(534),E=n.n(_),k=n(543),w=n(548),x=n(549),C=n(550),A=n(0),O=n(551),S=n(566),N=n(567),D=n(568),I=n(83),M=n.n(I),L=n(569),P=(n.n(L),n(570)),R=(n.n(P),n(571)),B=(n.n(R),n(572)),j=(n.n(B),n(112)),F=n(22),H=n(113),U=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),z=p()(),K=h()(),q=T()(),W=g()({types:["ordered_list","unordered_list"]}),G=y()({type:"paragraph"}),V=E()({extensions:["png"],insertImage:function(e,t,n){var r=A.Inline.create({type:"image",isVoid:!0,data:{file:t}});return n.props.editorUtilities.uploadImage(t).then(function(e){var t=n.props.value.change();t.setNodeByKey(r.key,{data:{src:e}}),n.props.onChange(t)}),e.insertInline(r)}}),Y=new D.a({editCode:z,editTable:K,editBlockquote:q,editList:W}),$=[K,W,z,V,q,G,Y],J=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return X.call(n),Y.editor=n,n}return i(t,e),U(t,[{key:"setContent",value:function(){this.setState({isSelectedImage:!1})}},{key:"componentDidMount",value:function(){var e=this;this.setContent();var t=this.props.value.change();setTimeout(function(){e.onChange(t.focus())},10)}},{key:"componentWillReceiveProps",value:function(){this.setContent()}},{key:"isInTable",value:function(){return K.utils.isSelectionInTable(this.props.value)}},{key:"isInCode",value:function(){return z.utils.isInCodeBlock(this.props.value)}},{key:"onAddTable",value:function(e){e.preventDefault();var t=this.props.value,n=t.change();if(K.utils.isSelectionInTable(t))K.changes.removeTable(n),this.onChange(n);else{var r=K.changes.insertTable(n,2,2);n.value.startKey&&(r=Y.resetTableAlign(r,"insertNewTable")),this.onChange(r)}}},{key:"hasSelectImage",value:function(e){var t=e.inlines.toJSON()[0];return!(!t||"image"!==t.type)}},{key:"render",value:function(){var e=this.state.resizeFlag?this.onResizeMouseMove:null,t=this.props.t;return s.a.createElement("div",{className:"seafile-editor"},s.a.createElement("div",{className:"seafile-editor-topbar"},s.a.createElement(H.a,{toggleStar:this.props.toggleStar,fileInfo:this.props.fileInfo}),this.renderToolbar()),s.a.createElement("div",{className:"seafile-editor-main d-flex",onMouseMove:e,onMouseUp:this.onResizeMouseUp},s.a.createElement("div",{className:"seafile-editor-left-panel align-self-start",style:{width:100-this.state.rightWidth+"%"}},s.a.createElement(k.a,{editor:this,document:this.props.value.document,editorUtilities:this.props.editorUtilities})),s.a.createElement("div",{className:"seafile-editor-right-panel d-flex align-self-end",style:{width:this.state.rightWidth+"%"}},s.a.createElement("div",{className:"seafile-editor-resize",onMouseDown:this.onResizeMouseDown}),s.a.createElement("div",{className:"editor-container align-self-start"},s.a.createElement("div",{className:"editor article"},s.a.createElement(c.Editor,{value:this.props.value,plugins:$,onChange:this.onChange,renderNode:this.renderNode,renderMark:this.renderMark,onDrop:this.onDrop,editorUtilities:this.props.editorUtilities}))),this.state.isShowHelpDialog?s.a.createElement(N.a,{userHelp:t("userHelp",{returnObjects:!0}),hideHelpDialog:this.hideHelpDialog}):null)))}}]),t}(s.a.Component),X=function(){var e=this;this.state={showAddImageDialog:!1,isSelectedImage:!1,leftNavMode:"files",showAddLinkDialog:!1,rightWidth:75,resizeFlag:!1,isShowHelpDialog:!1},this.scrollToNode=function(t){var n=e.props.value.change().collapseToStartOf(t).focus();e.onChange(n)},this.hasMark=function(t){return e.props.value.activeMarks.some(function(e){return e.type===t})},this.hasLinks=function(e){return e.inlines.some(function(e){return"link"===e.type})},this.onToggleLink=function(t){t.preventDefault();var n=e.props.value,r=e.hasLinks(n),o=n.change();r?(o.call(function(e){e.unwrapInline("link")}),e.onChange(o)):e.toggleLinkDialog()},this.onSetLink=function(t){var n=e.props.value,r=n.change();if(n.isExpanded)r.call(function(e,t){e.wrapInline({type:"link",data:{href:t}}),e.collapseToEnd()},t);else{var o=A.Inline.create({data:{href:t},type:"link",nodes:[A.Text.create({text:t})]});r.insertInline(o),r.collapseToEnd()}e.onChange(r)},this.toggleLinkDialog=function(){e.setState({showAddLinkDialog:!e.state.showAddLinkDialog})},this.showHelpDialog=function(){e.setState({isShowHelpDialog:!0})},this.hideHelpDialog=function(){e.setState({isShowHelpDialog:!1})},this.hasBlock=function(t){return e.props.value.blocks.some(function(e){return e.type===t})},this.onChange=function(t){e.props.onChange(t)},this.onClickMark=function(t,n){t.preventDefault();var r=e.props.value,o=r.change().toggleMark(n);e.onChange(o)},this.onClickBlock=function(t,n){t.preventDefault();var r=e.props.value,o=r.change();r.document;if("block-quote"===n){q.utils.isSelectionInBlockquote(r)?q.changes.unwrapBlockquote(o):q.changes.wrapInBlockquote(o)}else if("ordered_list"===n||"unordered_list"===n){var i=W.utils.getCurrentList(r),a=i&&i.type==n;a?W.changes.unwrapList(o):W.changes.wrapInList(W.changes.unwrapList(o),n)}else{var s=e.hasBlock(n);o.setBlocks(s?"paragraph":n)}e.onChange(o)},this.onAddCheckItem=function(t){t.preventDefault();var n=e.props.value,r=n.change(),o=W.utils.getCurrentItem(n);null===o?(W.changes.wrapInList(r,"unordered_list"),o=W.utils.getCurrentItem(r.value),r.setNodeByKey(o.key,{data:{checked:!1}}),e.onChange(r)):(void 0===o.get("data").get("checked")?r.setNodeByKey(o.key,{data:{checked:!1}}):r.setNodeByKey(o.key,{data:{}}),e.onChange(r))},this.onToggleCode=function(t){t.preventDefault();var n=e.props.value,r=(n.selection,n.change());e.onChange(z.changes.toggleCodeBlock(r,"paragraph"))},this.onInsertImage=function(t){var n=e.props.value.change().insertInline({type:"image",isVoid:!0,data:{src:t}});e.onChange(n)},this.toggleImageDialog=function(){e.setState({showAddImageDialog:!e.state.showAddImageDialog})},this.onAddImage=function(t){t.preventDefault(),e.toggleImageDialog()},this.renderNode=function(e){var t=e.attributes,n=e.children,r=e.node,o=e.isSelected;switch(r.type){case"paragraph":return s.a.createElement("p",t,n);case"blockquote":return s.a.createElement("blockquote",t,n);case"header_one":return s.a.createElement("h1",t,n);case"header_two":return s.a.createElement("h2",t,n);case"header_three":return s.a.createElement("h3",t,n);case"header_four":return s.a.createElement("h4",t,n);case"header_five":return s.a.createElement("h5",t,n);case"header_six":return s.a.createElement("h6",t,n);case"list_item":return void 0===r.get("data").get("checked")?s.a.createElement("li",t,n):s.a.createElement(x.a,e);case"unordered_list":return s.a.createElement("ul",t,n);case"ordered_list":return s.a.createElement("ol",t,n);case"image":return s.a.createElement(w.a,e);case"code_block":return s.a.createElement(C.a,e);case"code_line":return s.a.createElement("p",null,n);case"table":return s.a.createElement("table",null,s.a.createElement("tbody",t,n));case"table_row":return s.a.createElement("tr",t,n);case"table_cell":var i=r.get("data").get("align");return i=-1===["left","right","center"].indexOf(i)?"left":i,s.a.createElement("td",Object.assign({style:{textAlign:i}},t),n);case"link":var a=r.get("data").get("href");return s.a.createElement("a",{href:a},n);case"hr":var u=o?"active":null;return s.a.createElement("hr",Object.assign({},t,{className:u}));case"html_block":var l=r.get("data").get("html"),u=o?"html-element active":"html-element";return"block"==r.object?s.a.createElement("div",Object.assign({className:u},t),l):s.a.createElement("span",Object.assign({className:u},t),l)}},this.renderMark=function(e){var t=e.children,n=e.mark;e.node;switch(n.type){case"BOLD":return s.a.createElement("strong",null,t);case"CODE":return s.a.createElement("code",null,t);case"ITALIC":return s.a.createElement("em",null,t)}},this.onResizeMouseUp=function(t){e.setState({resizeFlag:!1})},this.onResizeMouseDown=function(t){e.setState({resizeFlag:!0})},this.onResizeMouseMove=function(t){var n=e.state.rightWidth-t.nativeEvent.movementX/t.view.innerWidth*100;if(n>=90||n<=5)return void e.setState({resizeFlag:!1});e.setState({rightWidth:n})},this.onSave=function(t){e.props.onSave()},this.renderToolbar=function(){var t=e.props.t,n=e.props.value,r=!1,o=!1;try{r=K.utils.isSelectionInTable(n),o=z.utils.isInCodeBlock(n)}catch(e){console.log(e)}var i=e.hasSelectImage(n),a=e.hasLinks(n),u=n.focusBlock.type,l=!0,c=!0,f=!0,p=!0,d=!0,h=!0,m=e.props.contentChanged;return o&&(l=!1,c=!1,f=!0,p=!1,d=!1,h=!1),r&&(l=!0,f=!1,p=!0,c=!1,d=!1,h=!0),s.a.createElement("div",{className:"menu toolbar-menu"},!0===l&&s.a.createElement(j.a,null,e.renderMarkButton("BOLD","fa fa-bold"),e.renderMarkButton("ITALIC","fa fa-italic"),e.renderMarkButton("CODE","fa fa-code")),!0===c&&s.a.createElement(j.c,{headerType:u,onClickBlock:e.onClickBlock}),!0===c&&s.a.createElement(j.a,null,e.renderBlockButton("block-quote","fa fa-quote-left"),e.renderBlockButton("ordered_list","fa fa-list-ol"),e.renderBlockButton("unordered_list","fa fa-list-ul"),s.a.createElement(j.d,{text:t("check_list_item"),id:"checkListItemButton",icon:"fa fa-check-square",onMouseDown:e.onAddCheckItem})),s.a.createElement(j.a,null,!0===h&&s.a.createElement(j.d,{text:t("insert_link"),id:"linkButton",icon:"fa fa-link",isActive:a,onMouseDown:e.onToggleLink}),!0===f&&s.a.createElement(j.d,{text:t("code"),id:"codeButton",icon:"fa fa-code fa-code",onMouseDown:e.onToggleCode,isActive:o}),!0===d&&e.renderAddTableButton(),!0===p&&s.a.createElement(j.d,{text:t("insert_image"),id:"imageButton",icon:"fa fa-image",onMouseDown:e.onAddImage,isActive:i})),!0===r&&e.renderTableToolbar(),e.props.saving?s.a.createElement(j.a,null,s.a.createElement("button",{type:"button",className:"btn btn-icon btn-secondary btn-active"},s.a.createElement("i",{className:"fa fa-spin fa-spinner"}))):s.a.createElement(j.a,null,s.a.createElement(j.d,{text:t("save"),id:"saveButton",icon:"fa fa-save",onMouseDown:e.onSave,disabled:!m,isActive:m})),s.a.createElement(j.e,{id:"moreButton",text:t("more"),showHelpDialog:e.showHelpDialog,switchToMarkDownViewer:e.props.switchToMarkDownViewer,switchToPlainTextEditor:e.props.switchToPlainTextEditor}),e.props.collabUsers.length>0&&s.a.createElement(j.b,{users:e.props.collabUsers,id:"usersButton"}),s.a.createElement(O.a,{showAddImageDialog:e.state.showAddImageDialog,toggleImageDialog:e.toggleImageDialog,onInsertImage:e.onInsertImage}),s.a.createElement(S.a,{showAddLinkDialog:e.state.showAddLinkDialog,toggleLinkDialog:e.toggleLinkDialog,onSetLink:e.onSetLink}),s.a.createElement(M.a,{stack:{limit:3}}))},this.renderAddTableButton=function(){var t=e.props.t,n=function(t){return e.onAddTable(t)};return s.a.createElement(j.d,{text:t("insert_table"),id:"tableButton",icon:"fa fa-table",onMouseDown:n})},this.renderTableToolbar=function(){return s.a.createElement(j.f,{onRemoveTable:e.onRemoveTable,onInsertColumn:e.onInsertColumn,onRemoveColumn:e.onRemoveColumn,onInsertRow:e.onInsertRow,onRemoveRow:e.onRemoveRow,onSetAlign:e.onSetAlign})},this.onInsertColumn=function(t){t.preventDefault();var n=K.changes.insertColumn(e.props.value.change());n=Y.resetTableAlign(n,"insertColumn"),e.onChange(n)},this.onInsertRow=function(t){t.preventDefault(),e.onChange(K.changes.insertRow(e.props.value.change()))},this.onRemoveColumn=function(t){t.preventDefault();var n=e.props.value.change();n=Y.resetTableAlign(n,"removeColumn"),n=K.changes.removeColumn(n),e.onChange(n)},this.onRemoveRow=function(t){t.preventDefault(),e.onChange(K.changes.removeRow(e.props.value.change()))},this.onRemoveTable=function(t){t.preventDefault(),e.onChange(K.changes.removeTable(e.props.value.change()))},this.onSetAlign=function(t,n){t.preventDefault();var r=Y.setColumnAlign(e.props.value.change(),n);e.onChange(r)},this.renderMarkButton=function(t,n){var r=e.props.t,o=e.hasMark(t),i="",a=function(n){return e.onClickMark(n,t)};return i="BOLD"===t?"bold":"ITALIC"===t?"italic":"inline_code",s.a.createElement(j.d,{text:r(i),id:t+"Button",onMouseDown:a,isActive:o,icon:n})},this.renderBlockButton=function(t,n){var r=e.props.t,o=!1,i="";if("ordered_list"===t||"unordered_list"===t){var a=W.utils.getCurrentList(e.props.value);o=a&&a.type===t,i="ordered_list"===t?"ordered_list":"unordered_list"}else"block-quote"===t&&(o=q.utils.isSelectionInBlockquote(e.props.value),i="quote");var u=function(n){return e.onClickBlock(n,t)};return s.a.createElement(j.d,{text:r(i),id:t+"Button",onMouseDown:u,isActive:o,icon:n})}};J.propTypes={collabUsers:l.a.array},t.a=Object(F.translate)("translations")(J)},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(335),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!==typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var o=t.formatters[r];if("function"===typeof o){var i=a[u];n=o.call(e,i),a.splice(u,1),u--}return n}),t.formatArgs.call(e,a);(n.log||t.log||console.log.bind(console)).apply(e,a)}}var o;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=i,"function"===typeof t.init&&t.init(n),t.instances.push(n),n}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function a(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"===typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}}function s(){t.enable("")}function u(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o.default=o,t.coerce=l,t.disable=s,t.enable=a,t.enabled=u,t.humanize=n(42),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";function r(e,t){function n(n,r,o,i,a){var s=r[o];return null!=s||n?null==s&&n?new Error("The "+a+" `"+o+"` is marked as required in `"+i+"`, but it was not supplied."):t(s)?null:new Error("Invalid "+a+" `"+o+"` supplied to `"+i+"`, expected a Slate `"+e+"` but received: "+s):null}function r(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[!1].concat(t))}return r.isRequired=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[!0].concat(t))},r}var o=n(0),i={block:r("Block",function(e){return o.Block.isBlock(e)}),blocks:r("List<Block>",function(e){return o.Block.isBlockList(e)}),change:r("Change",function(e){return o.Change.isChange(e)}),character:r("Character",function(e){return o.Character.isCharacter(e)}),characters:r("List<Character>",function(e){return o.Character.isCharacterList(e)}),data:r("Data",function(e){return o.Data.isData(e)}),document:r("Document",function(e){return o.Document.isDocument(e)}),history:r("History",function(e){return o.History.isHistory(e)}),inline:r("Inline",function(e){return o.Inline.isInline(e)}),inlines:r("Inline",function(e){return o.Inline.isInlineList(e)}),leaf:r("Leaf",function(e){return o.Leaf.isLeaf(e)}),leaves:r("List<Leaf>",function(e){return o.Leaf.isLeafList(e)}),mark:r("Mark",function(e){return o.Mark.isMark(e)}),marks:r("Set<Mark>",function(e){return o.Mark.isMarkSet(e)}),node:r("Node",function(e){return o.Node.isNode(e)}),nodes:r("List<Node>",function(e){return o.Node.isNodeList(e)}),range:r("Range",function(e){return o.Range.isRange(e)}),ranges:r("List<Range>",function(e){return o.Range.isRangeList(e)}),schema:r("Schema",function(e){return o.Schema.isSchema(e)}),stack:r("Stack",function(e){return o.Stack.isStack(e)}),value:r("Value",function(e){return o.Value.isValue(e)}),text:r("Text",function(e){return o.Text.isText(e)}),texts:r("List<Text>",function(e){return o.Text.isTextList(e)})};t.a=i},function(e,t,n){"use strict";function r(e){return!0===o(e)&&"[object Object]"===Object.prototype.toString.call(e)}var o=n(338);e.exports=function(e){var t,n;return!1!==r(e)&&("function"===typeof(t=e.constructor)&&(n=t.prototype,!1!==r(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";function r(e){return e=e.toString(),s.test(e)?"rtl":a.test(e)?"ltr":"neutral"}var o,i,a,s;o="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",i="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",a=new RegExp("^[^"+i+"]*["+o+"]"),s=new RegExp("^[^"+o+"]*["+i+"]"),e.exports=r},function(e,t,n){(function(e,r){var o;!function(i){var a="object"==typeof t&&t,s=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);var u=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,l=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,c=function(e){e=e.replace(u,function(e,t,n){return c(n)+t}).replace(l,"$2$1");for(var t="",n=e.length;n--;)t+=e.charAt(n);return t},f={version:"0.2.0",reverse:c};void 0!==(o=function(){return f}.call(t,n,t,e))&&(e.exports=o)}()}).call(t,n(29)(e),n(3))},function(e,t,n){(function(r){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(342),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(16))},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function o(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!==typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;u++;var o=t.formatters[r];if("function"===typeof o){var i=a[u];n=o.call(e,i),a.splice(u,1),u--}return n}),t.formatArgs.call(e,a);(n.log||t.log||console.log.bind(console)).apply(e,a)}}var o;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),n.destroy=i,"function"===typeof t.init&&t.init(n),t.instances.push(n),n}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function a(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"===typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(e=r[n].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}}function s(){t.enable("")}function u(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o.debug=o.default=o,t.coerce=l,t.disable=s,t.enable=a,t.enabled=u,t.humanize=n(42),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){function r(e,t){return o(e,t)}var o=n(344);e.exports=r},function(e,t,n){function r(e,t,n,a,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:o(e,t,n,a,r,s))}var o=n(345),i=n(23);e.exports=r},function(e,t,n){function r(e,t,n,r,g,y){var b=l(e),T=l(t),_=b?h:u(e),E=T?h:u(t);_=_==d?m:_,E=E==d?m:E;var k=_==m,w=E==m,x=_==E;if(x&&c(e)){if(!c(t))return!1;b=!0,k=!1}if(x&&!k)return y||(y=new o),b||f(e)?i(e,t,n,r,g,y):a(e,t,_,n,r,g,y);if(!(n&p)){var C=k&&v.call(e,"__wrapped__"),A=w&&v.call(t,"__wrapped__");if(C||A){var O=C?e.value():e,S=A?t.value():t;return y||(y=new o),g(O,S,n,r,y)}}return!!x&&(y||(y=new o),s(e,t,n,r,g,y))}var o=n(91),i=n(150),a=n(379),s=n(382),u=n(61),l=n(19),c=n(58),f=n(98),p=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,v=g.hasOwnProperty;e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var o=n(54),i=Array.prototype,a=i.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=n(54);e.exports=r},function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=n(54);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(54);e.exports=r},function(e,t,n){function r(){this.__data__=new o,this.size=0}var o=n(53);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var o=n(53),i=n(92),a=n(94),s=200;e.exports=r},function(e,t,n){function r(e){return!(!a(e)||i(e))&&(o(e)?h:l).test(s(e))}var o=n(93),i=n(359),a=n(12),s=n(149),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,p=c.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[u]=n:delete e[u]),o}var o=n(31),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t,n){function r(e){return!!i&&i in e}var o=n(360),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(17),o=r["__core-js_shared__"];e.exports=o},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}var o=n(363),i=n(53),a=n(92);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(364),i=n(365),a=n(366),s=n(367),u=n(368);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(55);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=n(55),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=n(55),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?i:t,this}var o=n(55),i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n(56);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(56);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(56);e.exports=r},function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n(56);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=n(94),i=n(375),a=n(376);r.prototype.add=r.prototype.push=i,r.prototype.has=a,e.exports=r},function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t,n){function r(e,t,n,r,o,k,x){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!k(new i(e),new i(t)));case p:case d:case g:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case b:return e==t+"";case m:var C=u;case y:var A=r&c;if(C||(C=l),e.size!=t.size&&!A)return!1;var O=x.get(e);if(O)return O==t;r|=f,x.set(e,t);var S=s(C(e),C(t),r,o,k,x);return x.delete(e),S;case T:if(w)return w.call(e)==w.call(t)}return!1}var o=n(31),i=n(151),a=n(43),s=n(150),u=n(380),l=n(381),c=1,f=2,p="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",b="[object String]",T="[object Symbol]",_="[object ArrayBuffer]",E="[object DataView]",k=o?o.prototype:void 0,w=k?k.valueOf:void 0;e.exports=r},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t,n){function r(e,t,n,r,a,u){var l=n&i,c=o(e),f=c.length;if(f!=o(t).length&&!l)return!1;for(var p=f;p--;){var d=c[p];if(!(l?d in t:s.call(t,d)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var m=!0;u.set(e,t),u.set(t,e);for(var g=l;++p<f;){d=c[p];var v=e[d],y=t[d];if(r)var b=l?r(y,v,d,t,e,u):r(v,y,d,e,t,u);if(!(void 0===b?v===y||a(v,y,n,r,u):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof T&&T instanceof T&&"function"==typeof _&&_ instanceof _)&&(m=!1)}return u.delete(e),u.delete(t),m}var o=n(152),i=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){function r(e){return i(e)&&o(e)==a}var o=n(30),i=n(23),a="[object Arguments]";e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return a(e)&&i(e.length)&&!!s[o(e)]}var o=n(30),i=n(99),a=n(23),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){function r(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=n(102),i=n(389),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(156),o=r(Object.keys,Object);e.exports=o},function(e,t,n){var r=n(24),o=n(17),i=r(o,"DataView");e.exports=i},function(e,t,n){var r=n(24),o=n(17),i=r(o,"Promise");e.exports=i},function(e,t,n){var r=n(24),o=n(17),i=r(o,"Set");e.exports=i},function(e,t,n){var r=n(24),o=n(17),i=r(o,"WeakMap");e.exports=i},function(e,t,n){var r=n(395),o=n(404),i=o(function(e,t,n,o){r(e,t,n,o)});e.exports=i},function(e,t,n){function r(e,t,n,f,p){e!==t&&a(t,function(a,l){if(u(a))p||(p=new o),s(e,t,l,n,r,f,p);else{var d=f?f(c(e,l),a,l+"",e,t,p):void 0;void 0===d&&(d=a),i(e,l,d)}},l)}var o=n(91),i=n(157),a=n(396),s=n(398),u=n(12),l=n(62),c=n(164);e.exports=r},function(e,t,n){var r=n(397),o=r();e.exports=o},function(e,t){function n(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}e.exports=n},function(e,t,n){function r(e,t,n,r,b,T,_){var E=v(e,n),k=v(t,n),w=_.get(k);if(w)return void o(e,n,w);var x=T?T(E,k,n+"",e,t,_):void 0,C=void 0===x;if(C){var A=c(k),O=!A&&p(k),S=!A&&!O&&g(k);x=k,A||O||S?c(E)?x=E:f(E)?x=s(E):O?(C=!1,x=i(k,!0)):S?(C=!1,x=a(k,!0)):x=[]:m(k)||l(k)?(x=E,l(E)?x=y(E):(!h(E)||r&&d(E))&&(x=u(k))):C=!1}C&&(_.set(k,x),b(x,k,r,T,_),_.delete(k)),o(e,n,x)}var o=n(157),i=n(159),a=n(160),s=n(161),u=n(162),l=n(57),c=n(19),f=n(400),p=n(58),d=n(93),h=n(12),m=n(163),g=n(98),v=n(164),y=n(401);e.exports=r},function(e,t,n){var r=n(12),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){function r(e){return i(e)&&o(e)}var o=n(60),i=n(23);e.exports=r},function(e,t,n){function r(e){return o(e,i(e))}var o=n(32),i=n(62);e.exports=r},function(e,t,n){function r(e){if(!o(e))return a(e);var t=i(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var o=n(12),i=n(102),a=n(403),s=Object.prototype,u=s.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){function r(e){return o(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}var o=n(405),i=n(410);e.exports=r},function(e,t,n){function r(e,t){return a(i(e,t,o),e+"")}var o=n(165),i=n(166),a=n(167);e.exports=r},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var r=n(408),o=n(158),i=n(165),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=i(),s=o-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;e.exports=n},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?i(n)&&a(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=n(43),i=n(60),a=n(59),s=n(12);e.exports=r},function(e,t,n){var r=n(412),o=n(170),i=o(function(e,t){return null==e?{}:r(e,t)});e.exports=i},function(e,t,n){function r(e,t){return o(e,t,function(t,n){return i(e,n)})}var o=n(413),i=n(421);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,s=t.length,u={};++r<s;){var l=t[r],c=o(e,l);n(c,l)&&i(u,a(l,e),c)}return u}var o=n(168),i=n(420),a=n(33);e.exports=r},function(e,t,n){function r(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}var o=n(19),i=n(64),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t,n){var r=n(416),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){function r(e){var t=o(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}var o=n(417),i=500;e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(r.Cache||o),n}var o=n(94),i="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){function r(e){return null==e?"":o(e)}var o=n(419);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(a(e))return i(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var o=n(31),i=n(169),a=n(19),s=n(64),u=1/0,l=o?o.prototype:void 0,c=l?l.toString:void 0;e.exports=r},function(e,t,n){function r(e,t,n,r){if(!s(e))return e;t=i(t,e);for(var l=-1,c=t.length,f=c-1,p=e;null!=p&&++l<c;){var d=u(t[l]),h=n;if(l!=f){var m=p[d];h=r?r(m,d,p):void 0,void 0===h&&(h=s(m)?m:a(t[l+1])?[]:{})}o(p,d,h),p=p[d]}return e}var o=n(106),i=n(33),a=n(59),s=n(12),u=n(65);e.exports=r},function(e,t,n){function r(e,t){return null!=e&&i(e,t,o)}var o=n(422),i=n(423);e.exports=r},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function r(e,t,n){t=o(t,e);for(var r=-1,c=t.length,f=!1;++r<c;){var p=l(t[r]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++r!=c?f:!!(c=null==e?0:e.length)&&u(c)&&s(p,c)&&(a(e)||i(e))}var o=n(33),i=n(57),a=n(19),s=n(59),u=n(99),l=n(65);e.exports=r},function(e,t,n){function r(e){return(null==e?0:e.length)?o(e,1):[]}var o=n(425);e.exports=r},function(e,t,n){function r(e,t,n,a,s){var u=-1,l=e.length;for(n||(n=i),s||(s=[]);++u<l;){var c=e[u];t>0&&n(c)?t>1?r(c,t-1,n,a,s):o(s,c):a||(s[s.length]=c)}return s}var o=n(95),i=n(426);e.exports=r},function(e,t,n){function r(e){return a(e)||i(e)||!!(s&&e&&e[s])}var o=n(31),i=n(57),a=n(19),s=o?o.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){var r=n(169),o=n(428),i=n(443),a=n(33),s=n(32),u=n(447),l=n(170),c=n(172),f=l(function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),n),l&&(n=o(n,7,u));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){function r(e,t,n,M,L,P){var R,B=t&x,j=t&C,F=t&A;if(n&&(R=L?n(e,M,L,P):n(e)),void 0!==R)return R;if(!E(e))return e;var H=b(e);if(H){if(R=g(e),!B)return c(e,R)}else{var U=m(e),z=U==S||U==N;if(T(e))return l(e,B);if(U==D||U==O||z&&!L){if(R=j||z?{}:y(e),!B)return j?p(e,u(R,e)):f(e,s(R,e))}else{if(!I[U])return L?e:{};R=v(e,U,B)}}P||(P=new o);var K=P.get(e);if(K)return K;if(P.set(e,R),k(e))return e.forEach(function(o){R.add(r(o,t,n,o,e,P))}),R;if(_(e))return e.forEach(function(o,i){R.set(i,r(o,t,n,i,e,P))}),R;var q=F?j?h:d:j?keysIn:w,W=H?void 0:q(e);return i(W||e,function(o,i){W&&(i=o,o=e[i]),a(R,i,r(o,t,n,i,e,P))}),R}var o=n(91),i=n(429),a=n(106),s=n(430),u=n(431),l=n(159),c=n(161),f=n(432),p=n(433),d=n(152),h=n(172),m=n(61),g=n(434),v=n(435),y=n(162),b=n(19),T=n(58),_=n(439),E=n(12),k=n(441),w=n(97),x=1,C=2,A=4,O="[object Arguments]",S="[object Function]",N="[object GeneratorFunction]",D="[object Object]",I={};I[O]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[D]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[S]=I["[object WeakMap]"]=!1,e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}e.exports=n},function(e,t,n){function r(e,t){return e&&o(t,i(t),e)}var o=n(32),i=n(97);e.exports=r},function(e,t,n){function r(e,t){return e&&o(t,i(t),e)}var o=n(32),i=n(62);e.exports=r},function(e,t,n){function r(e,t){return o(e,i(e),t)}var o=n(32),i=n(96);e.exports=r},function(e,t,n){function r(e,t){return o(e,i(e),t)}var o=n(32),i=n(171);e.exports=r},function(e,t){function n(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var r=Object.prototype,o=r.hasOwnProperty;e.exports=n},function(e,t,n){function r(e,t,n){var r=e.constructor;switch(t){case v:return o(e);case l:case c:return new r(+e);case y:return i(e,n);case b:case T:case _:case E:case k:case w:case x:case C:case A:return u(e,n);case f:return new r;case p:case m:return new r(e);case d:return a(e);case h:return new r;case g:return s(e)}}var o=n(104),i=n(436),a=n(437),s=n(438),u=n(160),l="[object Boolean]",c="[object Date]",f="[object Map]",p="[object Number]",d="[object RegExp]",h="[object Set]",m="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",T="[object Float64Array]",_="[object Int8Array]",E="[object Int16Array]",k="[object Int32Array]",w="[object Uint8Array]",x="[object Uint8ClampedArray]",C="[object Uint16Array]",A="[object Uint32Array]";e.exports=r},function(e,t,n){function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var o=n(104);e.exports=r},function(e,t){function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=n},function(e,t,n){function r(e){return a?Object(a.call(e)):{}}var o=n(31),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=r},function(e,t,n){var r=n(440),o=n(100),i=n(101),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){function r(e){return i(e)&&o(e)==a}var o=n(61),i=n(23),a="[object Map]";e.exports=r},function(e,t,n){var r=n(442),o=n(100),i=n(101),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){function r(e){return i(e)&&o(e)==a}var o=n(61),i=n(23),a="[object Set]";e.exports=r},function(e,t,n){function r(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[s(i(t))]}var o=n(33),i=n(444),a=n(445),s=n(65);e.exports=r},function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){function r(e,t){return t.length<2?e:o(e,i(t,0,-1))}var o=n(168),i=n(446);e.exports=r},function(e,t){function n(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}e.exports=n},function(e,t,n){function r(e){return o(e)?void 0:e}var o=n(163);e.exports=r},function(e,t){function n(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(e.toString==o)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var t in e)if(r.call(e,t))return!1;return!0}return!1}var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=n},function(e,t,n){"use strict";function r(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof T.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}function o(e){function t(t,n,r,o,i,a){for(var s=arguments.length,u=Array(s>6?s-6:0),l=6;l<s;l++)u[l-6]=arguments[l];if(a=a||r,o=o||_,null!=n[r])return e.apply(void 0,[n,r,o,i,a].concat(u));var c=i;return t?new Error("Required "+c+" `"+a+"` was not specified in `"+o+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function i(e,t){function n(n,o,i,a,s){var u=n[o];if(!t(u)){var l=r(u);return new Error("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `"+e+"`.")}return null}return o(n)}function a(e,t,n){function i(o,i,a,s,u){for(var l=arguments.length,c=Array(l>5?l-5:0),f=5;f<l;f++)c[f-5]=arguments[f];var p=o[i];if(!n(p)){var d=s,h=r(p);return new Error("Invalid "+d+" `"+u+"` of type `"+h+"` supplied to `"+a+"`, expected an Immutable.js "+t+".")}if("function"!==typeof e)return new Error("Invalid typeChecker supplied to `"+a+"` for propType `"+u+"`, expected a function.");for(var m=p.toArray(),g=0,v=m.length;g<v;g++){var y=e.apply(void 0,[m,g,a,s,u+"["+g+"]"].concat(c));if(y instanceof Error)return y}}return o(i)}function s(e){function t(t,n,r,o,i){for(var a=arguments.length,s=Array(a>5?a-5:0),u=5;u<a;u++)s[u-5]=arguments[u];var l=t[n];if("function"!==typeof e)return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+r+"` for propType `"+i+"`, expected a function.");for(var c=l.keySeq().toArray(),f=0,p=c.length;f<p;f++){var d=e.apply(void 0,[c,f,r,o,i+" -> key("+c[f]+")"].concat(s));if(d instanceof Error)return d}}return o(t)}function u(e){return a(e,"List",T.List.isList)}function l(e,t,n,r){function i(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return a(e,n,r).apply(void 0,i)||t&&s(t).apply(void 0,i)}return o(i)}function c(e,t){return l(e,t,"Map",T.Map.isMap)}function f(e,t){return l(e,t,"OrderedMap",T.OrderedMap.isOrderedMap)}function p(e){return a(e,"Set",T.Set.isSet)}function d(e){return a(e,"OrderedSet",T.OrderedSet.isOrderedSet)}function h(e){return a(e,"Stack",T.Stack.isStack)}function m(e){return a(e,"Iterable",T.Iterable.isIterable)}function g(e){function t(t,n,o,i,a){for(var s=arguments.length,u=Array(s>5?s-5:0),l=5;l<s;l++)u[l-5]=arguments[l];var c=t[n];if(!(c instanceof T.Record)){var f=r(c),p=i;return new Error("Invalid "+p+" `"+a+"` of type `"+f+"` supplied to `"+o+"`, expected an Immutable.js Record.")}for(var d in e){var h=e[d];if(h){var m=c.toObject(),g=h.apply(void 0,[m,d,o,i,a+"."+d].concat(u));if(g)return g}}}return o(t)}function v(e){function t(t,o,a,s,u){for(var l=arguments.length,c=Array(l>5?l-5:0),f=5;f<l;f++)c[f-5]=arguments[f];var p=t[o];if(!i(p)){var d=r(p),h=s;return new Error("Invalid "+h+" `"+u+"` of type `"+d+"` supplied to `"+a+"`, expected an Immutable.js "+n+".")}var m=p.toObject();for(var g in e){var v=e[g];if(v){var y=v.apply(void 0,[m,g,a,s,u+"."+g].concat(c));if(y)return y}}}var n=void 0===arguments[1]?"Iterable":arguments[1],i=void 0===arguments[2]?T.Iterable.isIterable:arguments[2];return o(t)}function y(e){return v(e)}function b(e){return v(e,"Map",T.Map.isMap)}var T=n(5),_="<<anonymous>>",E={listOf:u,mapOf:c,orderedMapOf:f,setOf:p,orderedSetOf:d,stackOf:h,iterableOf:m,recordOf:g,shape:y,contains:y,mapContains:b,list:i("List",T.List.isList),map:i("Map",T.Map.isMap),orderedMap:i("OrderedMap",T.OrderedMap.isOrderedMap),set:i("Set",T.Set.isSet),orderedSet:i("OrderedSet",T.OrderedSet.isOrderedSet),stack:i("Stack",T.Stack.isStack),seq:i("Seq",T.Seq.isSeq),record:i("Record",function(e){return e instanceof T.Record}),iterable:i("Iterable",T.Iterable.isIterable)};e.exports=E},function(e,t,n){function r(e){return e&&e.window===e}function o(e){if(r(e))return e;var t=i(e);if(a){t.parentWindow.execScript("document._parentWindow = window;","Javascript");var n=t._parentWindow;return t._parentWindow=null,n}return t.defaultView||t.parentWindow}var i=n(451);e.exports=o;var a=n(452)},function(e,t){function n(e){return e&&e.nodeType===o}function r(e){return n(e)?e:n(e.ownerDocument)?e.ownerDocument:n(e.document)?e.document:e.parentNode?r(e.parentNode):e.commonAncestorContainer?r(e.commonAncestorContainer):e.startContainer?r(e.startContainer):e.anchorNode?r(e.anchorNode):void 0}e.exports=r;var o=9},function(e,t){e.exports=!!document.attachEvent&&window!==document.parentWindow},function(e,t){function n(e){var t=e.anchorNode,n=e.anchorOffset,r=e.focusNode,o=e.focusOffset,i=t.compareDocumentPosition(r);return!(4===i||0===i&&n<o)}e.exports=n},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.a=o},function(e,t,n){function r(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(a);return i(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),o(e,t,{leading:r,maxWait:t,trailing:s})}var o=n(456),i=n(12),a="Expected a function";e.exports=r},function(e,t,n){function r(e,t,n){function r(t){var n=y,r=b;return y=b=void 0,w=t,_=e.apply(r,n)}function c(e){return w=e,E=setTimeout(d,t),x?r(e):_}function f(e){var n=e-k,r=e-w,o=t-n;return C?l(o,T-r):o}function p(e){var n=e-k,r=e-w;return void 0===k||n>=t||n<0||C&&r>=T}function d(){var e=i();if(p(e))return h(e);E=setTimeout(d,f(e))}function h(e){return E=void 0,A&&y?r(e):(y=b=void 0,_)}function m(){void 0!==E&&clearTimeout(E),w=0,y=k=b=E=void 0}function g(){return void 0===E?_:h(i())}function v(){var e=i(),n=p(e);if(y=arguments,b=this,k=e,n){if(void 0===E)return c(k);if(C)return E=setTimeout(d,t),r(k)}return void 0===E&&(E=setTimeout(d,t)),_}var y,b,T,_,E,k,w=0,x=!1,C=!1,A=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,o(n)&&(x=!!n.leading,C="maxWait"in n,T=C?u(a(n.maxWait)||0,t):T,A="trailing"in n?!!n.trailing:A),v.cancel=m,v.flush=g,v}var o=n(12),i=n(457),a=n(458),s="Expected a function",u=Math.max,l=Math.min;e.exports=r},function(e,t,n){var r=n(17),o=function(){return r.Date.now()};e.exports=o},function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):u.test(e)?a:+e}var o=n(12),i=n(64),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){"use strict";function r(e){var t=JSON.stringify(e);return Object(c.btoa)(encodeURIComponent(t))}function o(e){var t=decodeURIComponent(Object(c.atob)(e));return JSON.parse(t)}function i(e,t){var n=o(e);return l.Value.fromJSON(n,t)}function a(e,t){var n=o(e);return l.Node.fromJSON(n,t)}function s(e,t){return r(e.toJSON(t))}function u(e,t){return r(e.toJSON(t))}var l=n(0),c=n(460),f=(n.n(c),{deserialize:i,deserializeNode:a,serialize:s,serializeNode:u});t.a=f},function(e,t,n){"use strict";t.atob=self.atob.bind(self),t.btoa=self.btoa.bind(self)},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultBlock,r=void 0===n?"line":n,o=t.defaultMarks,i=void 0===o?[]:o,l=t.toJSON,c=void 0!==l&&l;s.Set.isSet(i)&&(i=i.toArray()),r=a.Node.createProperties(r),i=i.map(a.Mark.createProperties);var f={object:"value",document:{object:"document",data:{},nodes:e.split("\n").map(function(e){return u({},r,{object:"block",isVoid:!1,data:{},nodes:[{object:"text",leaves:[{object:"leaf",text:e,marks:i}]}]})})}};return c?f:a.Value.fromJSON(f)}function o(e){return i(e.document)}function i(e){return"document"==e.object||"block"==e.object&&a.Block.isBlockList(e.nodes)?e.nodes.map(i).join("\n"):e.text}var a=n(0),s=n(5),u=(n.n(s),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),l={deserialize:r,serialize:o};t.a=l},function(e,t,n){"use strict";var r=n(66),o=(n.n(r),n(173)),i=o.e||o.f,a=Object(r.isKeyHotkey)("mod+b"),s=Object(r.isKeyHotkey)("mod+i"),u=Object(r.isKeyHotkey)("enter"),l=Object(r.isKeyHotkey)("shift+enter"),c=function(e){return u(e)||l(e)},f=Object(r.isKeyHotkey)("backspace"),p=Object(r.isKeyHotkey)("shift+backspace"),d=Object(r.isKeyHotkey)("delete"),h=Object(r.isKeyHotkey)("shift+delete"),m=function(e){return f(e)||p(e)},g=function(e){return d(e)||h(e)},v=Object(r.isKeyHotkey)("ctrl+h"),y=Object(r.isKeyHotkey)("ctrl+d"),b=function(e){return m(e)||i&&v(e)},T=function(e){return g(e)||i&&y(e)},_=function(e){return Object(r.isKeyHotkey)("cmd+shift+backspace",e)||Object(r.isKeyHotkey)("cmd+backspace",e)},E=Object(r.isKeyHotkey)("ctrl+k"),k=function(e){return i&&_(e)},w=function(e){return i&&E(e)},x=function(e){return Object(r.isKeyHotkey)("shift+option+backspace",e)||Object(r.isKeyHotkey)("option+backspace",e)},C=Object(r.isKeyHotkey)("ctrl+backspace"),A=function(e){return Object(r.isKeyHotkey)("shift+option+delete",e)||Object(r.isKeyHotkey)("option+delete",e)},O=Object(r.isKeyHotkey)("ctrl+delete"),S=function(e){return i?x(e):C(e)},N=function(e){return i?A(e):O(e)},D=Object(r.isKeyHotkey)("shift+right"),I=Object(r.isKeyHotkey)("shift+left"),M=Object(r.isKeyHotkey)("right"),L=Object(r.isKeyHotkey)("left"),P=function(e){return M(e)&&!D(e)},R=function(e){return L(e)&&!I(e)},B=Object(r.isKeyHotkey)("option+up"),j=Object(r.isKeyHotkey)("option+down"),F=function(e){return i&&B(e)},H=function(e){return i&&j(e)},U=Object(r.isKeyHotkey)("option+shift+up"),z=Object(r.isKeyHotkey)("option+shift+down"),K=function(e){return i&&U(e)},q=function(e){return i&&z(e)},W=Object(r.isKeyHotkey)("mod+z"),G=Object(r.isKeyHotkey)("mod+shift+z"),V=Object(r.isKeyHotkey)("mod+y"),Y=function(e){return i?G(e):V(e)},$=Object(r.isKeyHotkey)("ctrl+t"),J=function(e){return i&&$(e)},X=function(e){return a(e)||b(e)||T(e)||k(e)||w(e)||S(e)||N(e)||s(e)||Y(e)||c(e)||J(e)||W(e)},Q=function(e){return"ArrowDown"==e.key||"ArrowLeft"==e.key||"ArrowRight"==e.key||"ArrowUp"==e.key||"Backspace"==e.key||"Enter"==e.key},Z={isBold:a,isCollapseCharBackward:R,isCollapseCharForward:P,isCollapseLineBackward:F,isCollapseLineForward:H,isComposing:Q,isContentEditable:X,isDeleteCharBackward:b,isDeleteCharForward:T,isDeleteLineBackward:k,isDeleteLineForward:w,isDeleteWordBackward:S,isDeleteWordForward:N,isExtendCharBackward:I,isExtendCharForward:D,isExtendLineBackward:K,isExtendLineForward:q,isItalic:s,isRedo:Y,isSplitBlock:c,isUndo:W};t.a=Z},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),l=r(u),c=n(18),f=r(c),p=n(4),d=r(p),h={ESCAPE:27},m=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={active:!1},e.handleWrapperClick=e.handleWrapperClick.bind(e),e.closePortal=e.closePortal.bind(e),e.handleOutsideMouseClick=e.handleOutsideMouseClick.bind(e),e.handleKeydown=e.handleKeydown.bind(e),e.portal=null,e.node=null,e}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.props.closeOnEsc&&document.addEventListener("keydown",this.handleKeydown),this.props.closeOnOutsideClick&&(document.addEventListener("mouseup",this.handleOutsideMouseClick),document.addEventListener("touchstart",this.handleOutsideMouseClick)),this.props.isOpened&&this.openPortal()}},{key:"componentWillReceiveProps",value:function(e){"undefined"!==typeof e.isOpened&&(e.isOpened&&(this.state.active?this.renderPortal(e):this.openPortal(e)),!e.isOpened&&this.state.active&&this.closePortal()),"undefined"===typeof e.isOpened&&this.state.active&&this.renderPortal(e)}},{key:"componentWillUnmount",value:function(){this.props.closeOnEsc&&document.removeEventListener("keydown",this.handleKeydown),this.props.closeOnOutsideClick&&(document.removeEventListener("mouseup",this.handleOutsideMouseClick),document.removeEventListener("touchstart",this.handleOutsideMouseClick)),this.closePortal(!0)}},{key:"handleWrapperClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.state.active||this.openPortal()}},{key:"openPortal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.setState({active:!0}),this.renderPortal(e),this.props.onOpen(this.node)}},{key:"closePortal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=function(n){e.node&&(f.default.unmountComponentAtNode(e.node),document.body.removeChild(e.node)),e.portal=null,e.node=null,!0!==(void 0===n?t:n)&&e.setState({active:!1})};this.state.active&&(this.props.beforeClose?this.props.beforeClose(this.node,n):n(),this.props.onClose())}},{key:"handleOutsideMouseClick",value:function(e){if(this.state.active){(0,c.findDOMNode)(this.portal).contains(e.target)||e.button&&0!==e.button||(e.stopPropagation(),this.closePortal())}}},{key:"handleKeydown",value:function(e){e.keyCode===h.ESCAPE&&this.state.active&&this.closePortal()}},{key:"renderPortal",value:function(e){this.node||(this.node=document.createElement("div"),document.body.appendChild(this.node));var t=e.children;"function"===typeof e.children.type&&(t=l.default.cloneElement(e.children,{closePortal:this.closePortal})),this.portal=f.default.unstable_renderSubtreeIntoContainer(this,t,this.node,this.props.onUpdate)}},{key:"render",value:function(){return this.props.openByClickOn?l.default.cloneElement(this.props.openByClickOn,{onClick:this.handleWrapperClick}):null}}]),t}(l.default.Component);t.default=m,m.propTypes={children:d.default.element.isRequired,openByClickOn:d.default.element,closeOnEsc:d.default.bool,closeOnOutsideClick:d.default.bool,isOpened:d.default.bool,onOpen:d.default.func,onClose:d.default.func,beforeClose:d.default.func,onUpdate:d.default.func},m.defaultProps={onOpen:function(){},onClose:function(){},onUpdate:function(){}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new s.default(e),n=(0,c.default)(t);return i({},n,{onKeyDown:u.onKeyDown.bind(null,t),onPaste:u.onPaste.bind(null,t)})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(174),s=r(a),u=n(465),l=n(480),c=r(l);t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.onKeyDown=t.onPaste=t.onSelectAll=t.onBackspace=t.onModEnter=t.onEnter=t.onShiftTab=t.onTab=void 0;var o=n(175),i=r(o),a=n(182),s=r(a),u=n(183),l=r(u),c=n(184),f=r(c),p=n(185),d=r(p),h=n(186),m=r(h),g=n(478),v=r(g),y=n(479),b=r(y);t.onTab=i.default,t.onShiftTab=s.default,t.onEnter=l.default,t.onModEnter=f.default,t.onBackspace=d.default,t.onSelectAll=m.default,t.onPaste=v.default,t.onKeyDown=b.default},function(e,t,n){"use strict";function r(e,t){var n=(0,s.default)(t)||u,r=(0,i.List)(t.split(n)).map(function(t){return o.Block.create({type:e.lineType,nodes:[o.Text.create(t)]})});return o.Block.create({type:e.containerType,nodes:r})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(5),a=n(467),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u="\n";t.default=r},function(e,t,n){"use strict";e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var n=t.filter(function(e){return"\r\n"===e}).length;return n>t.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(e.getIndent)return e.getIndent(t);var n=(0,u.default)(e,t);if(!n)return"";var r=n.getTexts().map(function(e){return e.text}).join("\n");return(0,a.default)(r)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(177),a=r(i),s=n(176),u=r(s);t.default=o},function(e,t,n){"use strict";function r(e){var t=0,n=0,r=0;for(var o in e){var i=e[o],a=i[0],s=i[1];(a>n||a===n&&s>r)&&(n=a,r=s,t=Number(o))}return t}var o=n(470),i=/^(?:( )+|\t+)/;e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t,n,a=0,s=0,u=0,l={};e.split(/\n/g).forEach(function(e){if(e){var r,o=e.match(i);o?(r=o[0].length,o[1]?s++:a++):r=0;var c=r-u;u=r,c?(n=c>0,t=l[n?c:-c],t?t[0]++:t=l[c]=[1,0]):t&&(t[1]+=Number(n))}});var c,f,p=r(l);return p?s>=a?(c="space",f=o(" ",p)):(c="tab",f=o("\t",p)):(c=null,f=""),{amount:p,type:c,indent:f}}},function(e,t,n){"use strict";var r=n(471);e.exports=function(e,t){if("string"!==typeof e)throw new TypeError("Expected `input` to be a string");if(t<0||!r(t))throw new TypeError("Expected `count` to be a positive finite number");var n="";do{1&t&&(n+=e),e+=e}while(t>>=1);return n}},function(e,t,n){"use strict";var r=n(472);e.exports=Number.isFinite||function(e){return!("number"!==typeof e||r(e)||e===1/0||e===-1/0)}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},function(e,t,n){"use strict";function r(e,t){var n=t.document,r=t.startKey,o=n.getClosest(r,function(t){return t.type===e.containerType});return Boolean(o)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t){if(e.length>t.length)return r(t,e);var n=(0,i.Range)(0,e.length).find(function(n){return e[n]!==t[n]});return null==n?e.length:n}function o(e,t,n){var o=t.value,i=o.document,a=o.selection;return i.getBlocksAtRange(a).filter(function(t){return t.type===e.lineType}).reduce(function(e,t){var o=t.nodes.first(),i=r(o.text,n);return e.removeTextByKey(o.key,0,i)},t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(5);t.default=o},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,o=r.document,i=r.selection;return o.getBlocksAtRange(i).filter(function(t){return t.type===e.lineType}).reduce(function(e,t){var r=t.nodes.first();return e.insertTextByKey(r.key,0,n)},t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return(0,i.isInCodeBlock)(e,t.value)?(0,l.default)(e,t,n):(0,s.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(13),a=n(178),s=r(a),u=n(180),l=r(u);t.default=o},function(e,t,n){"use strict";e.exports=function(e,t){if(Array.isArray(e))return e[e.length-1]===t;e=String(e),t=String(t);for(var n=t.length,r=e.length-n;n--;)if(t.charAt(n)!==e.charAt(r+n))return!1;return!0}},function(e,t,n){"use strict";function r(e,t,n,r){var s=n.value,u=(0,i.getEventTransfer)(t),l=(0,a.getCurrentCode)(e,s),c=s.endBlock;if(l&&l.hasDescendant(c.key)){var f=void 0;f="fragment"===u.type?u.fragment.getTexts().map(function(e){return e.text}).join("\n"):u.text;var p=(0,a.deserializeCode)(e,f).nodes,d=o.Document.create({nodes:p});return n.insertFragment(d)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(52),a=n(13);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){var o=n.value;if((0,a.getCurrentCode)(e,o)){var i=[e,t,n,r];return e.selectAll&&b(t)?y.default.apply(void 0,i):T(t)?c.default.apply(void 0,i):_(t)?u.default.apply(void 0,i):e.exitBlockType&&E(t)?h.default.apply(void 0,i):k(t)?p.default.apply(void 0,i):w(t)?g.default.apply(void 0,i):void 0}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(66);n(0);var a=n(13),s=n(175),u=r(s),l=n(182),c=r(l),f=n(183),p=r(f),d=n(184),h=r(d),m=n(185),g=r(m),v=n(186),y=r(v),b=(0,i.isKeyHotkey)("mod+a"),T=(0,i.isKeyHotkey)("shift+tab"),_=(0,i.isKeyHotkey)("tab"),E=(0,i.isKeyHotkey)("mod+enter"),k=(0,i.isKeyHotkey)("enter"),w=(0,i.isKeyHotkey)("backspace");t.default=o},function(e,t,n){"use strict";function r(e){var t=new i.default(e);return{schema:(0,u.schema)(t),changes:{unwrapCodeBlockByKey:s.unwrapCodeBlockByKey.bind(null,t),wrapCodeBlockByKey:s.wrapCodeBlockByKey.bind(null,t),wrapCodeBlock:s.wrapCodeBlock.bind(null,t),unwrapCodeBlock:s.unwrapCodeBlock.bind(null,t),toggleCodeBlock:s.toggleCodeBlock.bind(null,t)},utils:{isInCodeBlock:a.isInCodeBlock.bind(null,t),deserializeCode:a.deserializeCode.bind(null,t)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(174),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(13),s=n(107),u=n(481);t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schema=void 0;var r=n(482),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.schema=o.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t,n={blocks:(t={},r(t,e.containerType,{nodes:[{types:[e.lineType]}],normalize:function(t,n,r){switch(n){case l.CHILD_INVALID:case l.CHILD_TYPE_INVALID:return a(e,t,r);default:return}}}),r(t,e.lineType,{nodes:[{objects:["text"],min:1}],parent:{types:[e.containerType]},normalize:function(t,n,r){switch(n){case l.PARENT_INVALID:case l.PARENT_TYPE_INVALID:return s(e,t,r);default:return}}}),t)};return e.allowMarks||(n.blocks[e.lineType].marks=[]),n}function i(e,t){var n=e.takeUntil(t),r=e.skip(n.size);if(r.isEmpty())return(0,c.List)();var o=r.takeWhile(t),a=r.skip(o.size);return(0,c.List)([o]).concat(i(a,t))}function a(e,t,n){var r=function(t){return t.type!==e.lineType};return i(n.node.nodes,r).filter(function(e){return!e.isEmpty()}).forEach(function(n){var r=n.map(function(e){return e.text}).join(""),o=(0,f.deserializeCode)(e,r).nodes,i=n.first(),a=t.value.document.getParent(i.key),s=a.nodes.indexOf(i);o.forEach(function(e,n){t.insertNodeByKey(a.key,s+n,e,{normalize:!1})}),n.forEach(function(e){return t.removeNodeByKey(e.key,{normalize:!1})})}),t}function s(e,t,n){var r=n.parent,o=function(t){return t.type===e.lineType};i(r.nodes,o).forEach(function(n){var o=u.Block.create({type:e.containerType,nodes:[]}),i=r.nodes.indexOf(n.first());t.insertNodeByKey(r.key,i,o,{normalize:!1}),n.forEach(function(e,n){return t.moveNodeByKey(e.key,o.key,n,{normalize:!1})})})}Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(63),c=n(5),f=n(13);t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=new s.default(e||{}),n=(0,l.default)(t);return i({},n,{onKeyDown:c.onKeyDown.bind(null,t)})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(187),s=r(a),u=n(484),l=r(u),c=n(503);t.default=o},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=new c.default(e);return{schema:(0,u.schema)(t),validateNode:(0,u.validateNode)(t),utils:{isSelectionInTable:s.isSelectionInTable.bind(null,t),isSelectionOutOfTable:s.isSelectionOutOfTable.bind(null,t),getPosition:s.getPosition.bind(null,t),createCell:s.createCell.bind(null,t),createRow:s.createRow.bind(null,t),createTable:s.createTable.bind(null,t),forEachCells:s.forEachCells.bind(null,t),getCellsAtRow:s.getCellsAtRow.bind(null,t),getCellsAtColumn:s.getCellsAtColumn.bind(null,t)},changes:{insertTable:a.insertTable.bind(null,t),clearCell:a.clearCell.bind(null,t),insertRow:i(t,a.insertRow),removeRow:i(t,a.removeRow),insertColumn:i(t,a.insertColumn),removeColumn:i(t,a.removeColumn),removeTable:i(t,a.removeTable),moveSelection:i(t,a.moveSelection),moveSelectionBy:i(t,a.moveSelectionBy)}}}function i(e,t){return function(n){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=n.value;return(0,s.isSelectionInTable)(e,u)?t.apply(void 0,r([e,n].concat(i))):n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(25),s=n(7),u=n(500),l=n(187),c=function(e){return e&&e.__esModule?e:{default:e}}(l);t.default=o},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,i=arguments[4];if(!t.value.selection.startKey)return t;var a=(0,o.createTable)(e,n,r,i);return t.insertBlock(a)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=(0,o.Range)(0,n).map(function(n){return(0,s.default)(e,t,r?r.bind(null,n):void 0)}).toList();return i.Block.create({type:e.typeTable,nodes:a})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=n(0),a=n(189),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.startKey;return i.default.create(e,t.document,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(67),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!t.selection.startKey)return!1;var n=t.startKey,r=t.endKey,o=i.default.create(e,t.document,n),a=i.default.create(e,t.document,r);return!(!o.isInTable()||!a.isInTable())&&o.table===a.table}Object.defineProperty(t,"__esModule",{value:!0});var o=n(67),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!t.selection.startKey)return!1;var n=t.startKey,r=t.endKey,o=i.default.create(e,t.document,n),a=i.default.create(e,t.document,r);return!o.isInTable()&&!a.isInTable()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(67),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t.nodes.forEach(function(e,t){return e.nodes.forEach(function(e,r){return n(e,t,r)})})}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t.nodes.get(n).nodes}Object.defineProperty(t,"__esModule",{value:!0}),n(0),n(5),t.default=r},function(e,t,n){"use strict";function r(e,t,n){return t.nodes.map(function(e){return e.nodes.get(n)})}Object.defineProperty(t,"__esModule",{value:!0}),n(0),n(5),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startKey,s=o.TablePosition.create(e,i.document,a),u=s.table,l=u.nodes.get(0).nodes.size,c=r?r(l):(0,o.createRow)(e,l);return"undefined"===typeof n&&(n=s.getRowIndex()+1),t.insertNodeByKey(u.key,n,c).collapseToEndOf(c.nodes.get(s.getColumnIndex()))}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.startKey,s=o.TablePosition.create(e,r.document,i),u=s.table;"undefined"===typeof n&&(n=s.getRowIndex());var l=u.nodes.get(n);return s.getHeight()>1?t.removeNodeByKey(l.key):l.nodes.forEach(function(n){n.nodes.forEach(function(r){return(0,a.default)(e,t,n)})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(108),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s=a.startKey,u=o.TablePosition.create(e,a.document,s),l=u.table,c="undefined"===typeof n?u.getColumnIndex()+1:n;return l.nodes.forEach(function(n,i){var a=r?r(c,i):(0,o.createCell)(e);t.insertNodeByKey(n.key,c,a,{normalize:!1})}),(0,i.moveSelection)(e,t,u.getColumnIndex()+1,u.getRowIndex())}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(25);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.startKey,s=o.TablePosition.create(e,r.document,i),u=s.table;"undefined"===typeof n&&(n=s.getColumnIndex());var l=u.nodes;return s.getWidth()>1?l.forEach(function(e){var r=e.nodes.get(n);t.removeNodeByKey(r.key,{normalize:!1})}):l.forEach(function(n){n.nodes.forEach(function(n){n.nodes.forEach(function(r){return(0,a.default)(e,t,n)})})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7),i=n(108),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.startKey,a=i.TablePosition.create(e,n.document,r),s=a.table,u=t.value.document,l=null,c=!1,f=t.value.document.getNextBlock(s.key);if(f)l=f;else{var p=t.value.document.getPreviousBlock(s.key);if(p)l=p,c=!0;else if(e.exitBlockType){l=o.Block.create({type:e.exitBlockType,nodes:[o.Text.create("")]});var d=u.getParent(s.key),h=d.nodes.indexOf(s)+1;t.insertNodeByKey(d.key,h,l)}}return t.removeNodeByKey(s.key),l?(c?t.collapseToEndOf(l).focus():t.collapseToStartOf(l).focus(),t):t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startKey,s=o.TablePosition.create(e,i.document,a);if(!s.isInCell())throw new Error("moveSelection can only be applied from within a cell");var u=s.table,l=u.nodes.get(r),c=l.nodes.get(n);return t.collapseToStartOf(c)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var u=t.value,l=u.startKey,c=a.TablePosition.create(e,u.document,l);if(!c.isInCell())throw new Error("moveSelectionBy can only be applied in a cell");var f=c.getRowIndex(),p=c.getColumnIndex(),d=c.getWidth(),h=c.getHeight(),m=o(n+p,r+f,d,h),g=i(m,2),v=g[0],y=g[1];return-1===v?t:(0,s.moveSelection)(e,t,v,y)}function o(e,t,n,r){return e<0&&(e=n-1,t-=1),t<0?[-1,-1]:(e>=n&&(e=0,t+=1),t>=r?[-1,-1]:[e,t])}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();n(0);var a=n(7),s=n(25);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.validateNode=t.schema=void 0;var o=n(501),i=r(o),a=n(502),s=r(a);t.schema=i.default,t.validateNode=s.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t;return{blocks:(t={},r(t,e.typeTable,{nodes:[{types:[e.typeRow]}],normalize:function(t,n,r){switch(n){case f.CHILD_TYPE_INVALID:return i(e,t,r);default:return}}}),r(t,e.typeRow,{nodes:[{types:[e.typeCell]}],parent:{types:[e.typeTable]},normalize:function(t,n,r){switch(n){case f.CHILD_TYPE_INVALID:return a(e,t,r);case f.PARENT_TYPE_INVALID:return s(e,t,r);default:return}}}),r(t,e.typeCell,{nodes:[{objects:["block"]}],parent:{types:[e.typeRow]},normalize:function(t,n,r){switch(n){case f.CHILD_OBJECT_INVALID:return u(e,t,r);case f.PARENT_TYPE_INVALID:return l(e,t,r);default:return}}}),t)}}function i(e,t,n){var r=n.node.nodes.filter(function(t){return t.type!==e.typeRow});r.size===n.node.nodes.size&&(r.forEach(function(e){return t.removeNodeByKey(e.key,{normalize:!1})}),t.insertNodeByKey(n.node.key,0,(0,p.createRow)(e,1),{normalize:!1}))}function a(e,t,n){var r=(0,p.createCell)(e,[]),o=n.node.nodes.findIndex(function(e){return e.key===n.child.key});t.insertNodeByKey(n.node.key,o,r,{normalize:!1}),t.moveNodeByKey(n.child.key,r.key,0,{normalize:!1})}function s(e,t,n){return t.wrapBlockByKey(n.node.key,e.typeTable)}function u(e,t,n){var r=c.Block.create({type:e.typeContent});t.insertNodeByKey(n.node.key,0,r,{normalize:!1}),n.node.nodes.filter(function(e){return"block"!==e.object}).forEach(function(e,n){t.moveNodeByKey(e.key,r.key,n,{normalize:!1})})}function l(e,t,n){return t.wrapBlockByKey(n.node.key,e.typeRow)}Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),f=n(63),p=n(7);t.default=o},function(e,t,n){"use strict";function r(e){var t=function(t){return t.type===e.typeRow},n=function(t){return t.type===e.typeCell},r=function(e){return e.nodes.count(n)};return function(n){if(n.type===e.typeTable){var i=n.nodes.filter(t),a=Math.max(1,i.map(r).max()),s=i.filter(function(e){return r(e)<a});if(!s.isEmpty())return function(t){s.forEach(function(n){var r=a-n.nodes.size;Array.from({length:r}).map(function(){return(0,o.createCell)(e)}).forEach(function(e){return t.insertNodeByKey(n.key,n.nodes.size,e,{normalize:!1})})})}}}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.onKeyDown=t.onUpDown=t.onBackspace=t.onTab=t.onModEnter=t.onEnter=void 0;var o=n(190),i=r(o),a=n(191),s=r(a),u=n(192),l=r(u),c=n(193),f=r(c),p=n(194),d=r(p),h=n(504),m=r(h);t.onEnter=i.default,t.onModEnter=s.default,t.onTab=l.default,t.onBackspace=f.default,t.onUpDown=d.default,t.onKeyDown=m.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){if((0,i.isSelectionInTable)(e,n.value)){var o=[t,n,r,e];switch(t.key){case g:return t.metaKey&&e.exitBlockType?l.default.apply(void 0,o):s.default.apply(void 0,o);case v:return f.default.apply(void 0,o);case y:return d.default.apply(void 0,o);case b:case T:return m.default.apply(void 0,o);default:return}}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(7),a=n(190),s=r(a),u=n(191),l=r(u),c=n(192),f=r(c),p=n(193),d=r(p),h=n(194),m=r(h),g="Enter",v="Tab",y="Backspace",b="ArrowDown",T="ArrowUp";t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=new u.default(e);var t=(0,f.default)(e);return a({},t,{onKeyDown:i.bind(null,e)})}function i(e,t,n,r){var o=[t,n,r,e];switch(t.key){case p:return l.onEnter.apply(void 0,o);case d:return l.onTab.apply(void 0,o);case h:return l.onBackspace.apply(void 0,o);default:return}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(195),u=r(s),l=n(506),c=n(519),f=r(c),p="Enter",d="Tab",h="Backspace";t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.onBackspace=t.onTab=t.onEnter=void 0;var o=n(507),i=r(o),a=n(517),s=r(a),u=n(518),l=r(u);t.onEnter=i.default,t.onTab=s.default,t.onBackspace=l.default},function(e,t,n){"use strict";function r(e,t,n,r){if(!e.shiftKey){var a=t.value,s=(0,i.getCurrentItem)(r,a);if(s)return e.preventDefault(),a.isExpanded&&t.delete(),s.isEmpty?(0,i.getItemDepth)(r,a)>1?(0,o.decreaseItemDepth)(r,t):(0,o.unwrapList)(r,t):(0,o.splitListItem)(r,t)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(68),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=o(t.value);return n=n||e.types[0],t.wrapBlock({type:n,data:i.Data.create(r)},{normalize:!1}),a.forEach(function(n){(0,s.isList)(e,n)?n.nodes.forEach(function(e){var n=e.key;return t.unwrapNodeByKey(n,{normalize:!1})}):t.wrapBlockByKey(n.key,e.typeItem,{normalize:!1})}),t.normalize()}function o(e){var t=e.selection,n=e.document,r=n.getClosestBlock(t.startKey),o=n.getClosestBlock(t.endKey);if(r===o)return(0,a.List)([r]);var i=n.getCommonAncestor(r.key,o.key),s=i.getPath(r.key),u=i.getPath(o.key);return i.nodes.slice(s[0],u[0]+1)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(5),s=n(20);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=(0,a.default)(e,t,n);return r?(0,u.default)(e,t,r):null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(44),a=r(i),s=n(196),u=r(s);t.default=o},function(e,t,n){"use strict";function r(e,t,n){var o=t.document,a=t.startBlock;n=n||a;var s=(0,i.default)(e,t,n);return s?1+r(e,t,o.getParent(s.key)):0}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(44),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.document,o=t.startBlock;n=n||o;var a=(0,i.default)(e,t,n);if(!a)return null;var s=r.getPreviousSibling(a.key);return s&&s.type===e.typeItem?s:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(44),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){return!(0,i.default)(e,t).isEmpty()}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(197),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=(0,o.getItemsAtRange)(e,t.value);if(n.isEmpty())return t;n.forEach(function(e){return t.unwrapNodeByKey(e.key,{normalize:!1})});var r=n.first(),i=t.value.document.getParent(r.key),a=i.nodes.findIndex(function(e){return e.key===r.key});return n.forEach(function(e){e.nodes.forEach(function(e){t.moveNodeByKey(e.key,i.key,a,{normalize:!1}),a+=1})}),n.forEach(function(e){return t.removeNodeByKey(e.key,{normalize:!1})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=(0,o.getCurrentItem)(e,n);if(!r)return t;var i=n.startOffset;return t.splitDescendantsByKey(r.key,n.startKey,i)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=(0,a.getPreviousItem)(e,t.value),r=(0,a.getCurrentItem)(e,t.value);return n&&r?o(e,t,r,n.key):t}function o(e,t,n,r){var o=t.value.document.getDescendant(r),s=o.nodes.size,u=o.nodes.last(),l=(0,a.isList)(e,u)?u:null;if(l)return t.moveNodeByKey(n.key,l.key,l.nodes.size);var c=(0,a.getListForItem)(e,t.value,o);if(!c)throw new Error("Destination is not in a list");var f=i.Block.create({object:"block",type:c.type,data:c.data});return t.insertNodeByKey(r,s,f,{normalize:!1}),t.moveNodeByKey(n.key,f.key,0)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.document;if(1==(0,i.getItemDepth)(e,n))return t;var a=(0,i.getCurrentItem)(e,n);if(!a)return t;var s=r.getParent(a.key),u=r.getParent(s.key),l=r.getParent(u.key),c=s.nodes.skipUntil(function(e){return e===a}).rest(),f=s.nodes.size===c.size+1;if(c.isEmpty())t.moveNodeByKey(a.key,l.key,l.nodes.indexOf(u)+1);else{var p=o.Block.create({object:"block",type:s.type,data:s.data});t.insertNodeByKey(a.key,a.nodes.size,p,{normalize:!1}),t.moveNodeByKey(a.key,l.key,l.nodes.indexOf(u)+1,{normalize:!1}),c.forEach(function(e,n){return t.moveNodeByKey(e.key,p.key,p.nodes.size+n,{normalize:!1})})}return f&&t.removeNodeByKey(s.key),t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value;if(a.isCollapsed&&(0,i.getCurrentItem)(r,a))return e.shiftKey?(e.preventDefault(),(0,o.decreaseItemDepth)(r,t)):(e.preventDefault(),(0,o.increaseItemDepth)(r,t))}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(68),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s=a.startOffset,u=a.selection;if(!u.isExpanded&&!(s>0)){var l=(0,i.getCurrentItem)(r,a);if(l&&u.isAtStartOf(l))return e.preventDefault(),(0,o.unwrapList)(r,t)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(68),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=new s.default(e),{schema:(0,u.schema)(e),validateNode:(0,u.validateNode)(e),utils:{getCurrentItem:c.getCurrentItem.bind(null,e),getCurrentList:c.getCurrentList.bind(null,e),getItemDepth:c.getItemDepth.bind(null,e),getItemsAtRange:c.getItemsAtRange.bind(null,e),getPreviousItem:c.getPreviousItem.bind(null,e),isList:c.isList.bind(null,e),isSelectionInList:c.isSelectionInList.bind(null,e)},changes:{decreaseItemDepth:i(e,l.decreaseItemDepth),increaseItemDepth:i(e,l.increaseItemDepth),splitListItem:i(e,l.splitListItem),unwrapList:i(e,l.unwrapList),wrapInList:l.wrapInList.bind(null,e)}}}function i(e,t){return function(n){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=n.value;return(0,c.isSelectionInList)(e,s)?t.apply(void 0,r([e,n].concat(i))):n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(195),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(520),l=n(68),c=n(20);t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.validateNode=t.schema=void 0;var o=n(521),i=r(o),a=n(522),s=r(a);t.schema=i.default,t.validateNode=s.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t={blocks:r({},e.typeItem,{parent:{types:e.types},nodes:[{objects:["block"]}],normalize:i({parent_type_invalid:function(e,t){return e.unwrapBlockByKey(t.node.key,{normalize:!1})},child_object_invalid:function(t,n){return a(e,t,n.node)}})})};return e.types.forEach(function(n){t.blocks[n]={nodes:[{types:[e.typeItem]}],normalize:i({child_type_invalid:function(t,n){return t.wrapBlockByKey(n.child.key,e.typeItem,{normalize:!1})}})}}),t}function i(e){return function(t,n,r){var o=e[n];o&&o(t,r)}}function a(e,t,n){t.wrapBlockByKey(n.nodes.first().key,e.typeDefault,{normalize:!1});var r=t.value.document.getDescendant(n.key).nodes.first();return n.nodes.rest().forEach(function(e,n){return t.moveNodeByKey(e.key,r.key,n+1,{normalize:!1})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=o},function(e,t,n){"use strict";function r(e){return function(t){return o(e,t)}}function o(e,t){if("document"===t.object||"block"===t.object){var n=t.nodes.map(function(n,r){if(!(0,a.isList)(e,n))return null;var o=t.nodes.get(r+1);return o&&o.type===n.type?[n,o]:null}).filter(Boolean);if(!n.isEmpty())return function(e){n.reverse().forEach(function(t){var n=i(t,2),r=n[0],o=n[1];e.value.document.getDescendant(o.key).nodes.forEach(function(t,n){e.moveNodeByKey(t.key,r.key,r.nodes.size+n,{normalize:!1})}),e.removeNodeByKey(o.key,{normalize:!1})})}}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();n(0);var a=n(20);t.default=r},function(e,t,n){"use strict";function r(e){return e=e||{},e.type=e.type||"paragraph",e.match=e.match||function(t){return t.type===e.type},{validateNode:function(t){if("document"===t.object){var n=t.nodes.last();if(!n||!e.match(n)){var r=t.nodes.count(),i=o.Block.create({type:e.type,nodes:[o.Text.create()]});return function(e){return e.insertNodeByKey(t.key,r,i)}}}},changes:{focusAtEnd:i}}}var o=n(0),i=n(524);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.value,n=t.document;return e.collapseToEndOf(n)}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=new s.default(e);var t=(0,c.default)(e);return i({},t,{onKeyDown:u.onKeyDown.bind(null,e)})}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(198),s=r(a),u=n(526),l=n(531),c=r(l);t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.onKeyDown=t.onEnter=t.onBackspace=void 0;var o=n(199),i=r(o),a=n(201),s=r(a),u=n(530),l=r(u);t.onBackspace=i.default,t.onEnter=s.default,t.onKeyDown=l.default},function(e,t,n){"use strict";function r(e,t){return Boolean((0,i.default)(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(200),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){return t.unwrapBlock(e.type)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t){return t.wrapBlock(e.type)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){var o=[e,t,n,r];switch(t.key){case l:return a.default.apply(void 0,o);case c:return u.default.apply(void 0,o);default:return}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(201),a=r(i),s=n(199),u=r(s),l="Enter",c="Backspace";t.default=o},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=new s.default(e);return{schema:(0,c.schema)(t),utils:{isSelectionInBlockquote:u.isSelectionInBlockquote.bind(null,t)},changes:{wrapInBlockquote:l.wrapInBlockquote.bind(null,t),unwrapBlockquote:i(t,l.unwrapBlockquote)}}}function i(e,t){return function(n){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=n.value;return(0,u.isSelectionInBlockquote)(e,s)?t.apply(void 0,r([e,n].concat(i))):n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(198),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(110),l=n(111),c=n(532);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schema=void 0;var r=n(533),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.schema=o.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return{blocks:r({},e.type,{nodes:[{objects:["block"]}],normalize:function(t,n,r){switch(n){case s.CHILD_OBJECT_INVALID:return i(e,t,r);default:return}}})}}function i(e,t,n){var r=n.node.nodes.filter(function(e){return"block"!==e.object});if(!r.isEmpty()){var o=a.Block.create({type:e.typeDefault,nodes:[]});return t.insertNodeByKey(n.node.key,0,o,{normalize:!1}),r.forEach(function(e,n){var i=n===r.size-1;t.moveNodeByKey(e.key,o.key,n,{normalize:i})}),t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(63);t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){function e(e){var t=!1,n=!0,r=!1,o=void 0;try{for(var i,a=p[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;e.includes(s)&&(t=!0)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t}function t(e,t,n){return s.default.resolve(c(e,n,t)).then(function(){t.onChange(e)})}function n(e,t,n){var i=(0,v.getEventTransfer)(e),s=(0,v.getEventRange)(e,t.value);switch(i.type){case"files":return r(e,t,n,i,s);case"html":return o(e,t,n,i,s);case"text":return a(e,t,n,i,s)}}function r(n,r,o,a,s){var u=a.files,l=!0,c=!1,f=void 0;try{for(var d,h=u[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var m=d.value;if(p){var g=m.type,v=g.split("/");if(!e(i(v,2)[1]))continue}s&&r.select(s),t(r,o,m)}}catch(e){c=!0,f=e}finally{try{!l&&h.return&&h.return()}finally{if(c)throw f}}return!0}function o(n,r,o,i,a){var s=i.html,u=new DOMParser,l=u.parseFromString(s,"text/html"),c=l.body,f=c.firstChild;if("img"==f.nodeName.toLowerCase()){var d=f.src;if(p){if(!e((0,g.extname)(d).slice(1)))return}return(0,m.default)(d,function(e,n){if(!e){var r=o.value.change();a&&r.select(a),t(r,o,n)}}),!0}}function a(e,n,r,o,i){var a=o.text;if((0,f.default)(a)&&(0,l.default)(a))return(0,m.default)(a,function(e,n){if(!e){var o=r.value.change();i&&o.select(i),t(o,r,n)}}),!0}var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=u.insertImage,p=u.extensions;if(u.applyTransform&&(d.default.deprecate("0.6.0","The `applyTransform` argument to `slate-drop-or-paste-images` has been renamed to `insertImage` instead."),c=u.applyTransform),!c)throw new Error("You must supply an `insertImage` function.");return{onDrop:n,onPaste:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(535),s=r(a),u=n(536),l=r(u),c=n(202),f=r(c),p=n(90),d=r(p),h=n(538),m=r(h),g=n(69),v=n(52);t.default=o},function(e,t,n){(function(t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"===typeof e}function o(e){U=e}function i(e){z=e}function a(){return"undefined"!==typeof H?function(){H(u)}:s()}function s(){var e=setTimeout;return function(){return e(u,1)}}function u(){for(var e=0;e<F;e+=2){(0,Y[e])(Y[e+1]),Y[e]=void 0,Y[e+1]=void 0}F=0}function l(e,t){var n=this,r=new this.constructor(f);void 0===r[J]&&S(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return C(o,r,i,n._result)})}else k(n,r,e,t);return r}function c(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var n=new t(f);return b(n,e),n}function f(){}function p(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function h(e){try{return e.then}catch(e){return ee.error=e,ee}}function m(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function g(e,t,n){z(function(e){var r=!1,o=m(n,t,function(n){r||(r=!0,t!==n?b(e,n):_(e,n))},function(t){r||(r=!0,E(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,E(e,o))},e)}function v(e,t){t._state===Q?_(e,t._result):t._state===Z?E(e,t._result):k(t,void 0,function(t){return b(e,t)},function(t){return E(e,t)})}function y(e,t,n){t.constructor===e.constructor&&n===l&&t.constructor.resolve===c?v(e,t):n===ee?(E(e,ee.error),ee.error=null):void 0===n?_(e,t):r(n)?g(e,t,n):_(e,t)}function b(t,n){t===n?E(t,p()):e(n)?y(t,n,h(n)):_(t,n)}function T(e){e._onerror&&e._onerror(e._result),w(e)}function _(e,t){e._state===X&&(e._result=t,e._state=Q,0!==e._subscribers.length&&z(w,e))}function E(e,t){e._state===X&&(e._state=Z,e._result=t,z(T,e))}function k(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+Q]=n,o[i+Z]=r,0===i&&e._state&&z(w,e)}function w(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?C(n,r,o,i):o(i);e._subscribers.length=0}}function x(e,t){try{return e(t)}catch(e){return ee.error=e,ee}}function C(e,t,n,o){var i=r(n),a=void 0,s=void 0,u=void 0,l=void 0;if(i){if(a=x(n,o),a===ee?(l=!0,s=a.error,a.error=null):u=!0,t===a)return void E(t,d())}else a=o,u=!0;t._state!==X||(i&&u?b(t,a):l?E(t,s):e===Q?_(t,a):e===Z&&E(t,a))}function A(e,t){try{t(function(t){b(e,t)},function(t){E(e,t)})}catch(t){E(e,t)}}function O(){return te++}function S(e){e[J]=te++,e._state=void 0,e._result=void 0,e._subscribers=[]}function N(){return new Error("Array Methods must be provided an Array")}function D(e){return new ne(this,e).promise}function I(e){var t=this;return new t(j(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function M(e){var t=this,n=new t(f);return E(n,e),n}function L(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function P(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function R(){var e=void 0;if("undefined"!==typeof n)e=n;else if("undefined"!==typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=re}var B=void 0;B=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var j=B,F=0,H=void 0,U=void 0,z=function(e,t){Y[F]=e,Y[F+1]=t,2===(F+=2)&&(U?U(u):$())},K="undefined"!==typeof window?window:void 0,q=K||{},W=q.MutationObserver||q.WebKitMutationObserver,G="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),V="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,Y=new Array(1e3),$=void 0;$=G?function(){return function(){return t.nextTick(u)}}():W?function(){var e=0,t=new W(u),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():V?function(){var e=new MessageChannel;return e.port1.onmessage=u,function(){return e.port2.postMessage(0)}}():void 0===K?function(){try{var e=Function("return this")().require("vertx");return H=e.runOnLoop||e.runOnContext,a()}catch(e){return s()}}():s();var J=Math.random().toString(36).substring(2),X=void 0,Q=1,Z=2,ee={error:null},te=0,ne=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(f),this.promise[J]||S(this.promise),j(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?_(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&_(this.promise,this._result))):E(this.promise,N())}return e.prototype._enumerate=function(e){for(var t=0;this._state===X&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===c){var o=h(e);if(o===l&&e._state!==X)this._settledAt(e._state,t,e._result);else if("function"!==typeof o)this._remaining--,this._result[t]=e;else if(n===re){var i=new n(f);y(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===X&&(this._remaining--,e===Z?E(r,n):this._result[t]=n),0===this._remaining&&_(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;k(e,void 0,function(e){return n._settledAt(Q,t,e)},function(e){return n._settledAt(Z,t,e)})},e}(),re=function(){function e(t){this[J]=O(),this._result=this._state=void 0,this._subscribers=[],f!==t&&("function"!==typeof t&&L(),this instanceof e?A(this,t):P())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,n=t.constructor;return t.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})})},e}();return re.prototype.then=l,re.all=D,re.race=I,re.resolve=c,re.reject=M,re._setScheduler=o,re._setAsap=i,re._asap=z,re.polyfill=R,re.Promise=re,re})}).call(t,n(16),n(3))},function(e,t,n){"use strict";var r=n(69),o=n(537),i=Object.create(null);o.forEach(function(e){i[e]=!0}),e.exports=function(e){return r.extname(e).slice(1).toLowerCase()in i}},function(e,t){e.exports=["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if((0,u.default)(e)){var n=(0,a.default)(e);setTimeout(function(){t(null,n)})}else(0,c.default)(e,function(e,n){var r=(0,a.default)(n);t(e,r)})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(539),a=r(i),s=n(540),u=r(s),l=n(542),c=r(l);t.default=o},function(e,t,n){"use strict";function r(e){for(var t=e.split(",")[1],n=atob(t),r=new window.ArrayBuffer(n.length),a=new window.Uint8Array(r),s=0;s<n.length;s++)a[s]=n.charCodeAt(s);i()||(a=r);var u=new Blob([a],{type:o(e)});return u.slice=u.slice||u.webkitSlice,u}function o(e){return e.split("")[0].slice(5)}function i(){return 100==new Blob([new window.Uint8Array(100)]).size}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";var r=n(541);e.exports=function(e){return!0===(e&&r().test(e))}},function(e,t,n){"use strict";e.exports=function(){return new RegExp(/^(data:)([\w\/\+]+);(charset=[\w-]+|base64).*,(.*)/gi)}},function(e,t,n){"use strict";function r(e,t){var n=document.createElement("canvas"),r=document.createElement("img");if(!n.getContext)return setTimeout(t,0,new Error("Canvas is not supported."));r.onload=function(){var e=n.getContext("2d");n.width=r.width,n.height=r.height,e.drawImage(r,0,0);var o=n.toDataURL("image/png");t(null,o)},r.ononerror=function(){t(new Error("Failed to load image."))},r.setAttribute("crossOrigin","anonymous"),r.src=e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(203),l=n(547),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.state={navItem:"outline"},i.onOutlineClick=function(e){e.preventDefault(),i.setState({navItem:"outline"})},i.onFilesClick=function(e){e.preventDefault(),i.setState({navItem:"files"})},a=n,o(i,a)}return i(t,e),c(t,[{key:"render",value:function(){var e="",t="";return"outline"==this.state.navItem?e="active":t="active",s.a.createElement("div",{className:"side-panel"},s.a.createElement("ul",{className:"nav justify-content-center"},s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link "+e,href:"#",onClick:this.onOutlineClick},s.a.createElement("i",{className:"fa fa-list"}))),s.a.createElement("li",{className:"nav-item"},s.a.createElement("a",{className:"nav-link "+t,href:"#",onClick:this.onFilesClick},s.a.createElement("i",{className:"fa fa-file"})))),s.a.createElement("div",{className:"side-panel-content"},"files"==this.state.navItem&&s.a.createElement(u.a,{editorUtilities:this.props.editorUtilities}),"outline"==this.state.navItem&&s.a.createElement(l.a,{editor:this.props.editor,document:this.props.document})))}}]),t}(s.a.PureComponent);t.a=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){return"dir"==e.type&&"dir"!=t.type?-1:"dir"!=e.type&&"dir"==t.type?1:e.name.localeCompare(t.name)}var s=n(1),u=n.n(s),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(){var e,n,i,s;r(this,t);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),i.renderCollapse=function(){var e=i.props.node;if(e.hasChildren()){var t=e.isExpanded;return u.a.createElement("i",{className:t?"folder-toggle-icon fa fa-caret-down":"folder-toggle-icon fa fa-caret-right",onMouseDown:function(e){return e.stopPropagation()},onClick:i.handleCollapse})}return null},i.renderChildren=function(){var e=i.props.node;if(e.children&&e.children.length){var n={paddingLeft:i.props.paddingLeft};e.children.sort(a);return u.a.createElement("div",{className:"children",style:n},e.children.map(function(e){return u.a.createElement(t,{node:e,key:e.path(),paddingLeft:i.props.paddingLeft,treeView:i.props.treeView})}))}return null},i.onMouseEnter=function(e){var t=i.props.node;i.props.treeView.showImagePreview(e,t)},i.onMouseLeave=function(e){i.props.treeView.hideImagePreview(e)},i.handleCollapse=function(e){e.stopPropagation();var t=i.props.node;i.props.treeView.toggleCollapse&&i.props.treeView.toggleCollapse(t)},i.onDragStart=function(e){var t=i.props.node;i.props.treeView.onDragStart(e,t)},s=n,o(i,s)}return i(t,e),l(t,[{key:"render",value:function(){var e,t,n=this.props.node,r={};if("dir"===n.type)e=u.a.createElement("i",{className:"far fa-folder"}),t="dir";else{var o=n.name.lastIndexOf(".");-1===o?(e=u.a.createElement("i",{className:"far fa-file"}),t="file"):(t=n.name.substring(o).toLowerCase(),".png"===t||".jpg"===t?(e=u.a.createElement("i",{className:"far fa-image"}),t="image"):(e=u.a.createElement("i",{className:"far fa-file"}),t="file"))}return u.a.createElement("div",{type:t,className:"tree-node",style:r},u.a.createElement("div",{onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter,type:t,className:"tree-node-inner text-nowrap"},this.renderCollapse(),u.a.createElement("span",{type:t,className:"tree-node-icon"},e),u.a.createElement("span",{type:t,draggable:"true",onDragStart:this.onDragStart},n.name)),n.isExpanded?this.renderChildren():null)}}]),t}(u.a.Component);t.a=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(546),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(){r(this,e),this.root=null}return i(e,[{key:"copy",value:function(){var t=new e;return this.root&&(t.root=this.root.copy()),t}},{key:"setRoot",value:function(e){this.root=e}},{key:"addChildToNode",value:function(e,t){return t.parent=e,e.children.push(t),t}},{key:"addChild",value:function(e,t,n){if(!(t instanceof o.a))throw new TypeError("Child must be of type Node.");if(n<0||n>e.children.length)throw new Error("Invalid index.");t.parent=e,e.children.splice(n,0,t)}},{key:"parse",value:function(e){var t=new o.a({name:e.name,type:e.type,isExpanded:e.isExpanded});this.root=t;var n=!0,r=!1,i=void 0;try{for(var a,s=e.children[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;this.addChildToNode(t,this.parseNode(u))}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}}},{key:"parseFromList",value:function(e,t){var n=new o.a({name:e.name,type:e.type,isExpanded:e.isExpanded});this.root=n;var r=new Map;r.set(n.name,n);var i=[],a=!0,s=!1,u=void 0;try{for(var l,c=t[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,p=new o.a({name:f.name,type:f.type,isExpanded:!1});p.parent_path=f.parent_path,i.push(p),"dir"===f.type&&r.set(function(e,t){return"/"===e?e+t:e+"/"+t}(f.parent_path,f.name),p)}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}var d=!0,h=!1,m=void 0;try{for(var g,v=i[Symbol.iterator]();!(d=(g=v.next()).done);d=!0){var y=g.value,b=r.get(y.parent_path);void 0===b?console.log("warning: node "+y.parent_path+" not exist"):this.addChildToNode(b,y)}}catch(e){h=!0,m=e}finally{try{!d&&v.return&&v.return()}finally{if(h)throw m}}}},{key:"parseNode",value:function(e){var t=new o.a({name:e.name,type:e.type,isExpanded:e.isExpanded});if(e.children instanceof Array){var n=!0,r=!1,i=void 0;try{for(var a,s=e.children[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;this.addChildToNode(t,this.parseNode(u))}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}}return t}}]),e}();t.a=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return i});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){var n=t.name,o=t.type,i=t.isExpanded,a=t.children;r(this,e),this.name=n,this.type=o,this.children=a||[],this.isExpanded=void 0===i||i}return o(e,null,[{key:"create",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"fromJSON",value:function(t){var n=t.name,r=t.type,o=t.isExpanded,i=void 0===o||o,a=t.children;return new e({name:n,type:r,isExpanded:i,children:(void 0===a?[]:a).map(e.fromJSON)})}}]),o(e,[{key:"path",value:function(){if(this.parent){var e=this.parent.path();return"/"===e?e+this.name:e+"/"+this.name}return this.name}},{key:"copy",value:function(){var t=new e({name:this.name,type:this.type,isExpanded:this.isExpanded});return t.children=this.children.map(function(e){var n=e.copy();return n.parent=t,n}),t}},{key:"isRoot",value:function(){return void 0===this.parent}},{key:"hasChildren",value:function(){return this.children.length>0}},{key:"isImage",value:function(){var e=this.name.lastIndexOf(".");if(-1==e)return!1;var t=this.name.substring(e).toLowerCase();return".png"==t||".jpg"==t}},{key:"toJSON",value:function(){var e=[];return this.hasChildren()&&(e=this.children.map(function(e){return e.toJSON()})),{name:this.name,type:this.type,isExpanded:this.isExpanded,children:e}}}]),e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.onClick=function(e){i.props.editor.scrollToNode(i.props.node)},a=n,o(i,a)}return i(t,e),u(t,[{key:"render",value:function(){var e,t=this.props.node;return"header_two"===t.type?e="outline-h2":"header_three"===t.type&&(e="outline-h3"),s.a.createElement("div",{className:e,key:t.key,onClick:this.onClick},t.text)}}]),t}(s.a.PureComponent),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props.document,n=t.nodes.filter(function(e){return"header_two"===e.type||"header_three"===e.type});return s.a.createElement("div",{className:"seafile-editor-outline"},n.map(function(t){return s.a.createElement(l,{key:t.key,editor:e.props.editor,value:e.props.value,node:t})}))}}]),t}(s.a.PureComponent);t.a=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return l});var a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=(e.attributes,e.node),n=e.isSelected,r=t.data,o=r.get("src"),i=n?"active":null;return o?s.a.createElement("img",{src:o,className:i,alt:t.data.get("")}):s.a.createElement("span",null,"Loading...")}}]),t}(s.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.onChange=function(e){var t=e.target.checked,n=i.props,r=n.editor,o=n.node;r.change(function(e){return e.setNodeByKey(o.key,{data:{checked:t}})})},a=n,o(i,a)}return i(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.children,r=e.node,o=(e.isSelected,r.get("data").get("checked"));return s.a.createElement("li",Object.assign({},t,{className:"task-list-item"}),s.a.createElement("input",{type:"checkbox",checked:o,onChange:this.onChange}),n)}}]),t}(s.a.PureComponent);t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.onChange=function(e){var t=i.props,n=t.editor,r=t.node;n.change(function(t){t.setNodeByKey(r.key,{data:{syntax:e.target.value}})})},a=n,o(i,a)}return i(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.children,r=e.node,o=e.isSelected,i=r.get("data").get("syntax");return s.a.createElement("div",{onBlur:this.onBlur,className:"code-container"},s.a.createElement("pre",Object.assign({className:"code"},t),n),o?s.a.createElement(c,{lang:i,onChange:this.onChange}):null)}}]),t}(s.a.PureComponent),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"language-type"},s.a.createElement("select",{value:this.props.lang,name:"language",onChange:this.props.onChange},s.a.createElement("option",{value:"none"},"None"),s.a.createElement("option",{value:"html"},"HTML"),s.a.createElement("option",{value:"css"},"CSS"),s.a.createElement("option",{value:"javascript"},"Javascript"),s.a.createElement("option",{value:"c"},"C"),s.a.createElement("option",{value:"cpp"},"C++"),s.a.createElement("option",{value:"csharp"},"C#"),s.a.createElement("option",{value:"java"},"Java"),s.a.createElement("option",{value:"python"},"Python"),s.a.createElement("option",{value:"sql"},"Sql"),s.a.createElement("option",{value:"swift"},"Swift")))}}]),t}(s.a.PureComponent);t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(70),l=n(22),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.state={url:""},i.handleUrlChange=function(e){i.setState({url:e.target.value})},i.handleSubmit=function(e){i.props.toggleImageDialog(),i.props.onInsertImage(i.state.url)},a=n,o(i,a)}return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement(u.f,{isOpen:this.props.showAddImageDialog,toggle:this.props.toggleImageDialog,className:this.props.className},s.a.createElement(u.i,{toggle:this.props.toggleImageDialog},this.props.t("insert_image")),s.a.createElement(u.g,null,s.a.createElement("p",null,this.props.t("enter_the_url_of_the_image"),":"),s.a.createElement("input",{type:"url",value:this.state.value,onChange:this.handleUrlChange})),s.a.createElement(u.h,null,s.a.createElement(u.a,{color:"primary",onClick:this.handleSubmit},this.props.t("submit"))," ",s.a.createElement(u.a,{color:"secondary",onClick:this.props.toggleImageDialog},this.props.t("cancel"))))}}]),t}(s.a.PureComponent);t.a=Object(l.translate)("translations")(f)},function(e,t,n){(function(t){function n(e){return null==e?void 0===e?p:c:T&&T in Object(e)?r(e):o(e)}function r(e){var t=v.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(e){}var o=y.call(e);return r&&(t?e[T]=n:delete e[T]),o}function o(e){return y.call(e)}function i(e){if(!a(e))return!1;var t=n(e);return t==u||t==l||t==s||t==f}function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var s="[object AsyncFunction]",u="[object Function]",l="[object GeneratorFunction]",c="[object Null]",f="[object Proxy]",p="[object Undefined]",d="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m.Symbol,T=b?b.toStringTag:void 0;e.exports=i}).call(t,n(3))},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=t.Popper=t.Target=t.Manager=void 0;var o=n(555),i=r(o),a=n(556),s=r(a),u=n(557),l=r(u),c=n(559),f=r(c);t.Manager=i.default,t.Target=s.default,t.Popper=l.default,t.Arrow=f.default},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),l=n(4),c=function(e){return e&&e.__esModule?e:{default:e}}(l),f=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r._setTargetNode=function(e){r._targetNode=e},r._getTargetNode=function(){return r._targetNode},a=n,i(r,a)}return a(t,e),s(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.children,o=r(e,["tag","children"]);return!1!==t?(0,u.createElement)(t,o,n):n}}]),t}(u.Component);f.childContextTypes={popperManager:c.default.object.isRequired},f.propTypes={tag:c.default.oneOfType([c.default.string,c.default.bool]),children:c.default.oneOfType([c.default.node,c.default.func])},f.defaultProps={tag:"div"},t.default=f},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),a=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(e,t){var n=e.component,a=void 0===n?"div":n,s=e.innerRef,u=e.children,l=r(e,["component","innerRef","children"]),c=t.popperManager,f=function(e){c.setTargetNode(e),"function"===typeof s&&s(e)};if("function"===typeof u){return u({targetProps:{ref:f},restProps:l})}var p=o({},l);return"string"===typeof a?p.ref=f:p.innerRef=f,(0,i.createElement)(a,p,u)};u.contextTypes={popperManager:s.default.object.isRequired},u.propTypes={component:s.default.oneOfType([s.default.node,s.default.func]),innerRef:s.default.func,children:s.default.oneOfType([s.default.node,s.default.func])},t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),f=n(4),p=r(f),d=n(558),h=r(d),m=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.state={},r._setArrowNode=function(e){r._arrowNode=e},r._getTargetNode=function(){return r.context.popperManager.getTargetNode()},r._getOffsets=function(e){return Object.keys(e.offsets).map(function(t){return e.offsets[t]})},r._isDataDirty=function(e){return!r.state.data||JSON.stringify(r._getOffsets(r.state.data))!==JSON.stringify(r._getOffsets(e))},r._updateStateModifier={enabled:!0,order:900,fn:function(e){return r._isDataDirty(e)&&r.setState({data:e}),e}},r._getPopperStyle=function(){var e=r.state.data;return r._popper&&e?u({position:e.offsets.popper.position},e.styles):{position:"absolute",pointerEvents:"none",opacity:0}},r._getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r._getPopperHide=function(){return r.state.data&&r.state.data.hide?"":void 0},r._getArrowStyle=function(){if(r.state.data&&r.state.data.offsets.arrow){var e=r.state.data.offsets.arrow;return{top:e.top,left:e.left}}return{}},r._handlePopperRef=function(e){r._popperNode=e,e?r._createPopper():r._destroyPopper(),r.props.innerRef&&r.props.innerRef(e)},r._scheduleUpdate=function(){r._popper&&r._popper.scheduleUpdate()},o=n,a(r,o)}return s(t,e),l(t,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled||(this._destroyPopper(),this._createPopper()),e.children!==this.props.children&&this._scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var e=this,t=this.props,n=t.placement,r=t.eventsEnabled,o=u({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(o.arrow={element:this._arrowNode}),this._popper=new h.default(this._getTargetNode(),this._popperNode,{placement:n,eventsEnabled:r,modifiers:o}),setTimeout(function(){return e._scheduleUpdate()})}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var e=this.props,t=e.component,n=(e.innerRef,e.placement,e.eventsEnabled,e.modifiers,e.children),r=o(e,["component","innerRef","placement","eventsEnabled","modifiers","children"]),i=this._getPopperStyle(),a=this._getPopperPlacement(),s=this._getPopperHide();if("function"===typeof n){return n({popperProps:{ref:this._handlePopperRef,style:i,"data-placement":a,"data-x-out-of-boundaries":s},restProps:r,scheduleUpdate:this._scheduleUpdate})}var l=u({},r,{style:u({},r.style,i),"data-placement":a,"data-x-out-of-boundaries":s});return"string"===typeof t?l.ref=this._handlePopperRef:l.innerRef=this._handlePopperRef,(0,c.createElement)(t,l,n)}}]),t}(c.Component);m.contextTypes={popperManager:p.default.object.isRequired},m.childContextTypes={popper:p.default.object.isRequired},m.propTypes={component:p.default.oneOfType([p.default.node,p.default.func]),innerRef:p.default.func,placement:p.default.oneOf(h.default.placements),eventsEnabled:p.default.bool,modifiers:p.default.object,children:p.default.oneOfType([p.default.node,p.default.func])},m.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,modifiers:{}},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function r(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},fe))}}function o(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+r)?e:s(a(e))}function u(e){return 11===e?me:10===e?ge:me||ge}function l(e){if(!e)return document.documentElement;for(var t=u(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===i(n,"position")?l(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||l(e.firstElementChild)===e)}function f(e){return null!==e.parentNode?f(e.parentNode):e}function p(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return c(a)?a:l(a);var s=f(e);return s.host?p(s.host,t):p(e,f(t).host)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}return e[n]}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(t,"top"),o=d(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function m(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],u(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=document.body,t=document.documentElement,n=u(10)&&getComputedStyle(t);return{height:g("Height",e,t,n),width:g("Width",e,t,n)}}function y(e){return Te({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{if(u(10)){t=e.getBoundingClientRect();var n=d(e,"top"),r=d(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?v():{},s=a.width||e.clientWidth||o.right-o.left,l=a.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-s,f=e.offsetHeight-l;if(c||f){var p=i(e);c-=m(p,"x"),f-=m(p,"y"),o.width-=c,o.height-=f}return y(o)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(10),o="HTML"===t.nodeName,a=b(e),l=b(t),c=s(e),f=i(t),p=parseFloat(f.borderTopWidth,10),d=parseFloat(f.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=y({top:a.top-l.top-p,left:a.left-l.left-d,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&o){var g=parseFloat(f.marginTop,10),v=parseFloat(f.marginLeft,10);m.top-=p-g,m.bottom-=p-g,m.left-=d-v,m.right-=d-v,m.marginTop=g,m.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(m=h(m,t)),m}function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=T(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:d(n),s=t?0:d(n,"left");return y({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===i(e,"position")||E(a(e)))}function k(e){if(!e||!e.parentElement||u())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},u=o?k(e):p(e,t);if("viewport"===r)i=_(u,o);else{var l=void 0;"scrollParent"===r?(l=s(a(t)),"BODY"===l.nodeName&&(l=e.ownerDocument.documentElement)):l="window"===r?e.ownerDocument.documentElement:r;var c=T(l,u,o);if("HTML"!==l.nodeName||E(u))i=c;else{var f=v(),d=f.height,h=f.width;i.top+=c.top-c.marginTop,i.bottom=d+c.top,i.left+=c.left-c.marginLeft,i.right=h+c.left}}return i.left+=n,i.top+=n,i.right-=n,i.bottom-=n,i}function x(e){return e.width*e.height}function C(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=w(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(e){return Te({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return T(n,r?k(t):p(t,n),r)}function O(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function S(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=O(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[l]:t[S(s)],o}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=D(e,function(e){return e[t]===n});return e.indexOf(r)}function M(e,t,n){return(void 0===n?e:e.slice(0,I(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=y(t.offsets.popper),t.offsets.reference=y(t.offsets.reference),t=n(t,e))}),t}function L(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=M(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function P(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function B(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function F(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||F(s(i.parentNode),t,n,r),r.push(i)}function H(e,t,n,r){n.updateBound=r,j(e).addEventListener("resize",n.updateBound,{passive:!0});var o=s(e);return F(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function U(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function z(e,t){return j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function K(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=z(this.reference,this.state))}function q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(t[n])&&(r="px"),e.style[n]=t[n]+r})}function G(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function V(e){return W(e.instance.popper,e.styles),G(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&W(e.arrowElement,e.arrowStyles),e}function Y(e,t,n,r,o){var i=A(o,t,e,n.positionFixed),a=C(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),W(t,{position:n.positionFixed?"fixed":"absolute"}),n}function $(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=D(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=l(e.instance.popper),u=b(s),c={position:o.position},f={left:Math.floor(o.left),top:Math.round(o.top),bottom:Math.round(o.bottom),right:Math.floor(o.right)},p="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=R("transform"),m=void 0,g=void 0;if(g="bottom"===p?-u.height+f.bottom:f.top,m="right"===d?-u.width+f.right:f.left,a&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[p]=0,c[d]=0,c.willChange="transform";else{var v="bottom"===p?-1:1,y="right"===d?-1:1;c[p]=g*v,c[d]=m*y,c.willChange=p+", "+d}var T={"x-placement":e.placement};return e.attributes=Te({},T,e.attributes),e.styles=Te({},c,e.styles),e.arrowStyles=Te({},e.offsets.arrow,e.arrowStyles),e}function J(e,t,n){var r=D(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}function X(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,s=a.popper,u=a.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",f=l?"Top":"Left",p=f.toLowerCase(),d=l?"left":"top",h=l?"bottom":"right",m=O(r)[c];u[h]-m<s[p]&&(e.offsets.popper[p]-=s[p]-(u[h]-m)),u[p]+m>s[h]&&(e.offsets.popper[p]+=u[p]+m-s[h]),e.offsets.popper=y(e.offsets.popper);var g=u[p]+u[c]/2-m/2,v=i(e.instance.popper),b=parseFloat(v["margin"+f],10),T=parseFloat(v["border"+f+"Width"],10),_=g-e.offsets.popper[p]-b-T;return _=Math.max(Math.min(s[c]-m,_),0),e.arrowElement=r,e.offsets.arrow=(n={},be(n,p,Math.round(_)),be(n,d,""),n),e}function Q(e){return"end"===e?"start":"start"===e?"end":e}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ee.indexOf(e),r=Ee.slice(n+1).concat(Ee.slice(0,n));return t?r.reverse():r}function ee(e,t){if(P(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=S(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ke.FLIP:a=[r,o];break;case ke.CLOCKWISE:a=Z(r);break;case ke.COUNTERCLOCKWISE:a=Z(r,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=S(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,p="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),d=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),g=f(l.bottom)>f(n.bottom),v="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g);(p||v||b)&&(e.flipped=!0,(p||v)&&(r=a[u+1]),b&&(i=Q(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=Te({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=M(e.instance.modifiers,e,"flip"))}),e}function te(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<i(r[u])&&(e.offsets.popper[u]=i(r[u])-n[l]),n[u]>i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}function ne(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return y(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}function re(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(D(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return ne(e,o,t,n)})}),l.forEach(function(e,t){e.forEach(function(n,r){q(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}function oe(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=q(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e}function ie(e,t){var n=t.boundariesElement||l(e.instance.popper);e.instance.reference===n&&(n=l(n));var r=R("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=w(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=u;var c=t.priority,f=e.offsets.popper,p={primary:function(e){var n=f[e];return f[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(f[e],u[e])),be({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=f[n];return f[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(f[n],u[e]-("right"===e?f.width:f.height))),be({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=Te({},f,p[t](e))}),e.offsets.popper=f,e}function ae(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:be({},u,i[u]),end:be({},u,i[u]+i[l]-a[l])};e.offsets.popper=Te({},a,c[r])}return e}function se(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=D(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ue(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=S(t),e.offsets.popper=y(o),e}for(var le="undefined"!==typeof window&&"undefined"!==typeof document,ce=["Edge","Trident","Firefox"],fe=0,pe=0;pe<ce.length;pe+=1)if(le&&navigator.userAgent.indexOf(ce[pe])>=0){fe=1;break}var de=le&&window.Promise,he=de?n:r,me=le&&!(!window.MSInputMethodContext||!document.documentMode),ge=le&&/MSIE 10/.test(navigator.userAgent),ve=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ye=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ee=_e.slice(3),ke={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},we={shift:{order:100,enabled:!0,fn:ae},offset:{order:200,enabled:!0,fn:oe,offset:0},preventOverflow:{order:300,enabled:!0,fn:ie,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:te},arrow:{order:500,enabled:!0,fn:X,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ee,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ue},hide:{order:800,enabled:!0,fn:se},computeStyle:{order:850,enabled:!0,fn:$,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:V,onLoad:Y,gpuAcceleration:void 0}},xe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:we},Ce=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ve(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=he(this.update.bind(this)),this.options=Te({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Te({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=Te({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Te({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ye(e,[{key:"update",value:function(){return L.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return U.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();Ce.Utils=("undefined"!==typeof window?window:e).PopperUtils,Ce.placements=_e,Ce.Defaults=xe,t.default=Ce}.call(t,n(3))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),a=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(e,t){var n=e.component,a=void 0===n?"span":n,s=e.innerRef,u=e.children,l=r(e,["component","innerRef","children"]),c=t.popper,f=function(e){c.setArrowNode(e),"function"===typeof s&&s(e)},p=c.getArrowStyle();if("function"===typeof u){return u({arrowProps:{ref:f,style:p},restProps:l})}var d=o({},l,{style:o({},p,l.style)});return"string"===typeof a?d.ref=f:d.innerRef=f,(0,i.createElement)(a,d,u)};u.contextTypes={popper:s.default.object.isRequired},u.propTypes={component:s.default.oneOfType([s.default.node,s.default.func]),innerRef:s.default.func,children:s.default.oneOfType([s.default.node,s.default.func])},t.default=u},function(e,t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&h.call(e)==s}function i(e){if("number"==typeof e)return e;if(o(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var r=c.test(e);return r||f.test(e)?p(e.slice(2),r?2:8):l.test(e)?a:+e}var a=NaN,s="[object Symbol]",u=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt,d=Object.prototype,h=d.toString;e.exports=i},function(e,t,n){"use strict";var r=n(205);n(565);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(4),l=n.n(u),c=n(18),f=(n.n(c),n(563)),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return f.a?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Object(c.createPortal)(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(s.a.Component);d.propTypes={children:l.a.node.isRequired,node:l.a.any},t.a=d},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=!("undefined"===typeof window||!window.document||!window.document.createElement)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(18),l=n.n(u),c=n(4),f=n.n(c),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),p(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){l.a.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"===typeof this.props.children.type&&(t=s.a.cloneElement(this.props.children)),this.portal=l.a.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(s.a.Component);t.a=d,d.propTypes={children:f.a.node.isRequired,node:f.a.any}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(4),l=n.n(u),c=n(205),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p={ESCAPE:27},d=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.portalNode=null,n.state={active:!!e.defaultOpen},n.openPortal=n.openPortal.bind(n),n.closePortal=n.closePortal.bind(n),n.wrapWithPortal=n.wrapWithPortal.bind(n),n.handleOutsideMouseClick=n.handleOutsideMouseClick.bind(n),n.handleKeydown=n.handleKeydown.bind(n),n}return i(t,e),f(t,[{key:"componentDidMount",value:function(){this.props.closeOnEsc&&document.addEventListener("keydown",this.handleKeydown),this.props.closeOnOutsideClick&&document.addEventListener("click",this.handleOutsideMouseClick)}},{key:"componentWillUnmount",value:function(){this.props.closeOnEsc&&document.removeEventListener("keydown",this.handleKeydown),this.props.closeOnOutsideClick&&document.removeEventListener("click",this.handleOutsideMouseClick)}},{key:"openPortal",value:function(e){this.state.active||(e&&e.nativeEvent&&e.nativeEvent.stopImmediatePropagation(),this.setState({active:!0},this.props.onOpen))}},{key:"closePortal",value:function(){this.state.active&&this.setState({active:!1},this.props.onClose)}},{key:"wrapWithPortal",value:function(e){var t=this;return this.state.active?s.a.createElement(c.a,{node:this.props.node,key:"react-portal",ref:function(e){return t.portalNode=e}},e):null}},{key:"handleOutsideMouseClick",value:function(e){if(this.state.active){var t=this.portalNode.props.node||this.portalNode.defaultNode;!t||t.contains(e.target)||e.button&&0!==e.button||this.closePortal()}}},{key:"handleKeydown",value:function(e){e.keyCode===p.ESCAPE&&this.state.active&&this.closePortal()}},{key:"render",value:function(){return this.props.children({openPortal:this.openPortal,closePortal:this.closePortal,portal:this.wrapWithPortal,isOpen:this.state.active})}}]),t}(s.a.Component);d.propTypes={children:l.a.func.isRequired,defaultOpen:l.a.bool,node:l.a.any,openByClickOn:l.a.element,closeOnEsc:l.a.bool,closeOnOutsideClick:l.a.bool,onOpen:l.a.func,onClose:l.a.func},d.defaultProps={onOpen:function(){},onClose:function(){}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(70),l=n(22),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.state={url:""},i.handleUrlChange=function(e){i.setState({url:e.target.value})},i.handleSubmit=function(){i.props.onSetLink(i.state.url),i.props.toggleLinkDialog()},a=n,o(i,a)}return i(t,e),c(t,[{key:"render",value:function(){return s.a.createElement(u.f,{isOpen:this.props.showAddLinkDialog,toggle:this.props.toggleLinkDialog,className:this.props.className},s.a.createElement(u.i,{toggle:this.props.toggleLinkDialog},this.props.t("insert_link")),s.a.createElement(u.g,null,s.a.createElement("p",null,this.props.t("enter_the_url_of_the_link"),":"),s.a.createElement("input",{type:"url",value:this.state.value,onChange:this.handleUrlChange})),s.a.createElement(u.h,null,s.a.createElement(u.a,{color:"primary",onClick:this.handleSubmit},this.props.t("submit"))," ",s.a.createElement(u.a,{color:"secondary",onClick:this.props.toggleLinkDialog},this.props.t("cancel"))))}}]),t}(s.a.PureComponent);t.a=Object(l.translate)("translations")(f)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.platfrom=navigator.platform.indexOf("Win")<0?"Mac":"Win",n}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props.shortcutFirKey,t=this.props.shortcutSecnKey;return"object"===("undefined"===typeof e?"undefined":u(e))&&(e="Win"===this.platfrom?e[0]:e[1]),s.a.createElement("li",{className:"help-shortcut"},s.a.createElement("div",{className:"help-shortcut-left"},this.props.shortcutName),e||t?s.a.createElement("div",{className:"help-shortcut-right"},e?s.a.createElement("div",{className:"key shortcut-first"},e):null,t?s.a.createElement("div",{className:"key shortcut-second"},t):null):null)}}]),t}(s.a.Component),f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props.data.shortcutType,t=this.props.data.shortcutData,n=[];for(var r in t){var o=t[r];n.push(s.a.createElement(c,{key:"help "+r,shortcutName:r,shortcutSecnKey:o?o[1]:null,shortcutFirKey:o?o[0]:null}))}return s.a.createElement("div",{className:"help-content-container"},s.a.createElement("h5",{className:"help-shortcut-type"},e),s.a.createElement("ul",{className:"help-shortcut-list"},n))}}]),t}(s.a.Component),p=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"seafile-editor-help align-self-end"},s.a.createElement("div",{className:"help-header d-flex"},s.a.createElement("div",{className:"help-title"},this.props.userHelp.title),s.a.createElement("div",{className:"help-close",onClick:this.props.hideHelpDialog},s.a.createElement("i",{className:"fa fa-times-circle"}))),s.a.createElement("div",{className:"help-content"},this.props.userHelp.userHelpData.map(function(e,t){return s.a.createElement(f,{key:"help-list"+t,data:e})})))}}]),t}(s.a.Component);t.a=p},function(e,t,n){"use strict";function r(e,t,n){e.insertTextByKey(t.key,n," ")}function o(e){var t=e.value;return t.marks&&t.marks.forEach(function(t){e.removeMark(t)}),e}function i(e,t,n){var i=t[0].length,a="*"===t[1]?/\*/:t[1],s=t[0].replace(new RegExp(a,"g"),"");return n.deleteAtRange(h.Range.create({anchorKey:e.key,focusKey:e.key,anchorOffset:t.index,focusOffset:t.index+i})).insertTextByKey(e.key,t.index,s,[h.Mark.create({type:"ITALIC"})]).call(r,e,t.index).call(o)}function a(e,t,n){var i=t[0].length,a="**"===t[1]?/\*\*/:t[1],s=t[0].replace(new RegExp(a,"g"),"");return n.deleteAtRange(h.Range.create({anchorKey:e.key,focusKey:e.key,anchorOffset:t.index,focusOffset:t.index+i})).insertTextByKey(e.key,t.index,s,[h.Mark.create({type:"BOLD"})]).call(r,e,t.index).call(o)}function s(e,t,n){var i=t[0].length,a="***"===t[1]?/\*\*\*/:t[1],s=t[0].trim().replace(new RegExp(a,"g"),"");return n.deleteAtRange(h.Range.create({anchorKey:e.key,focusKey:e.key,anchorOffset:t.index,focusOffset:t.index+i})).insertTextByKey(e.key,t.index,s,[h.Mark.create({type:"BOLD"}),h.Mark.create({type:"ITALIC"})]).call(r,e,t.index).call(o)}function u(e){var t=e.editCode,n=e.editTable,r=e.editBlockquote,o=e.editList;return{resetTableAlign:function(e,t){var r=n.utils.getPosition(e.value);if("insertNewTable"===t)e.setNodeByKey(r.table.key,{data:{align:["left","left"]}}),e=this.setColumnAlign(e,"left","0"),e=this.setColumnAlign(e,"left","1");else if("removeColumn"===t){var o=r.table.get("data").get("align"),i=r.getColumnIndex();o.splice(i,1),e.setNodeByKey(r.table.key,{data:{align:o}})}else if("insertColumn"===t){var a=r.getColumnIndex(),s=r.table.get("data").get("align");s.splice(a,0,"left");var u=n.utils.getCellsAtColumn(r.table,a);u.forEach(function(t){e.setNodeByKey(t.key,{data:{align:"left"}})}),e.setNodeByKey(r.table.key,{data:{align:s}})}return e},setColumnAlign:function(e,t,r){var o=n.utils.getPosition(e.value),i=o.table,a=i.get("data").get("align"),s=void 0,u=void 0;return u=r?Number(r):o.getColumnIndex(),s=n.utils.getCellsAtColumn(o.table,u),s.forEach(function(n){e.setNodeByKey(n.key,{data:{align:t}})}),a[u]=t,e.setNodeByKey(o.table.key,{data:{align:a}}),e},onPaste:function(e,t){e.preventDefault();var n=Object(l.getEventTransfer)(e),r=n.type,o=n.text,i=t.value;if(("text"===r||"html"===r)&&f()(o)){if(t.value.isCollapsed){var a=h.Inline.create({data:{href:o},type:"link",nodes:[h.Text.create({text:o})]});return t.insertInline(a),t.collapseToEnd(),!0}return i.inlines.some(function(e){return"link"===e.type})&&t.call(function(e){e.unwrapInline("link")}),t.call(function(e,t){e.wrapInline({type:"link",data:{href:t}}),e.collapseToEnd()},o),!0}},getType:function(e){switch(e){case"*":case"-":case"+":case"1.":return"list_item";case">":return"block-quote";case"#":return"header_one";case"##":return"header_two";case"###":return"header_three";case"####":return"header_four";case"#####":return"header_five";case"######":return"header_six";case" ":return"code_block";default:return null}},onEnter:function(e,n){var r=n.value;if(!r.isExpanded){var o=r.startBlock;if(r.endOffset===o.text.length){if("```"===o.text)return e.preventDefault(),t.changes.wrapCodeBlockByKey(n,o.key),n.collapseToStartOf(n.value.document.getDescendant(o.key)),n.deleteForward(3),!0;if("***"===o.text||"---"===o.text)return e.preventDefault(),n.removeNodeByKey(o.key).insertBlock({type:"hr",isVoid:!0}).collapseToStartOfNextBlock(),!0;if("header_one"===o.type||"header_two"===o.type||"header_three"===o.type||"header_four"===o.type||"header_five"===o.type||"header_six"===o.type||"block-quote"===o.type)return e.preventDefault(),n.splitBlock().setBlocks("paragraph"),!0}}},handleInlineMarks:function(e,t){var n=t.value,r=n.texts,o=r.get(0),u=o.text,l=void 0,c=n.selection.anchorOffset-1,f=u.charAt(c),p=u.substr(0,c+1);if("*"===f||"_"===f){if(l=p.match(/\s?(\*\*\*|___)((?!\1).)+?\1$/m))return s(o,l,t);if(l=p.match(/\s?(\*\*|__)((?!\1).)+?\1$/m))return a(o,l,t);if(l=p.match(/\s?(\*|_)((?!\1).)+?\1$/m))return i(o,l,t)}},onSpace:function(e,n){if(!this.editor.isInCode()){var i=n.value;if(!i.isExpanded){var a=i.startBlock,s=i.startOffset,u=a.text.slice(0,s);u=" "===u?" ":u.replace(/\s*/g,"");var l=this.getType(u);if(!l)return this.handleInlineMarks(e,n);if("list_item"===l&&"list_item"===a.type)return this.handleInlineMarks(e,n);if(e.preventDefault(),"list_item"===l)"1."===u?o.changes.wrapInList(n,"ordered_list"):o.changes.wrapInList(n,"unordered_list");else if("block-quote"===l)r.changes.wrapInBlockquote(n);else{if("code_block"===l)return n.extendToStartOf(a).delete(),t.changes.wrapCodeBlock(n),!0;n.setBlocks(l)}return n.extendToStartOf(a).delete(),!0}}},onBackspace:function(e,t){var n=t.value;if(!n.isExpanded&&0===n.startOffset){var r=n.startBlock;if("paragraph"!==r.type&&"code_line"!==r.type){e.preventDefault(),t.setBlocks("paragraph");var o=n.document;if("list-item"===r.type){var i=o.getParent(r.key);t.unwrapBlock(i.type)}return!0}}},onKeyDown:function(e,t,n){switch(e.key){case"Enter":return this.onEnter(e,t);case" ":return this.onSpace(e,t);case"Backspace":return this.onBackspace(e,t)}return d()("mod+s",e)?(e.preventDefault(),this.editor.onSave(e),!0):d()("mod+b",e)?(e.preventDefault(),t.toggleMark("BOLD"),!0):d()("mod+i",e)?(e.preventDefault(),t.toggleMark("ITALIC"),!0):void 0},onDrop:function(e,t,n){var r=Object(l.getEventTransfer)(e);Object(l.getEventRange)(e,t.value);switch(r.type){case"text":var o=r.text;if(!f()(o))return;if(o.endsWith("png?raw=1")||o.endsWith("png?raw=1")||o.endsWith("jpg?raw=1")||o.endsWith("JPG?raw=1")){var i=h.Inline.create({type:"image",isVoid:!0,data:{src:o}});return t.insertInline(i),!0}if(n.props.editorUtilities.isInternalFileLink(o)){var a=o.lastIndexOf("%2F");if(-1===a)return;var s=o.substring(a+3),u=decodeURIComponent(s),c=h.Text.create({text:u}),i=h.Inline.create({type:"link",data:{href:o},nodes:[c]});return t.insertInline(i),!0}if(n.props.editorUtilities.isInternalDirLink(o)){var p=o.lastIndexOf("%2F");if(-1===p)return;var s=o.substring(p+3),d=decodeURIComponent(s),c=h.Text.create({text:d}),i=h.Inline.create({type:"link",data:{href:o},nodes:[c]});return t.insertInline(i),!0}}}}}var l=n(52),c=n(202),f=n.n(c),p=n(66),d=n.n(p),h=n(0);t.a=u},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="second",t="minute",n="hour",r="day",o="week",i="month",a="year",s=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},c=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},f={padStart:c,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+c(n,2,"0")+":"+c(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),o=t-r<0,i=e.clone().add(n+(o?-1:1),"months");return Number(-(n+(t-r)/(o?r-i:i-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(e){return e&&String(e).toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},p="en",d={};d[p]=l;var h=function(e){return e instanceof b},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)d[e]&&(r=e),t&&(d[e]=t,r=e);else{var o=e.name;d[o]=e,r=o}return n||(p=r),r},g=function(e,t){if(h(e))return e.clone();var n=t||{};return n.date=e,new b(n)},v=function(e,t){return g(e,{locale:t.$L})},y=f;y.parseLocale=m,y.isDayjs=h,y.wrapper=v;var b=function(){function l(e){this.parse(e)}var c=l.prototype;return c.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):y.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&(n=t.match(s))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},c.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||p},c.$utils=function(){return y},c.isValid=function(){return!("Invalid Date"===this.$d.toString())},c.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0},c.isSame=function(e){return this.valueOf()===e.valueOf()},c.isBefore=function(e){return this.valueOf()<e.valueOf()},c.isAfter=function(e){return this.valueOf()>e.valueOf()},c.year=function(){return this.$y},c.month=function(){return this.$M},c.day=function(){return this.$W},c.date=function(){return this.$D},c.hour=function(){return this.$H},c.minute=function(){return this.$m},c.second=function(){return this.$s},c.millisecond=function(){return this.$ms},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(s,u){var l=this,c=!!y.isUndefined(u)||u,f=function(e,t,n){void 0===n&&(n=l.$y);var o=v(new Date(n,t,e),l);return c?o:o.endOf(r)},p=function(e,t){return v(l.toDate()[e].apply(l.toDate(),c?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),l)};switch(y.prettyUnit(s)){case a:return c?f(1,0):f(31,11,this.$y);case i:return c?f(1,this.$M):f(0,this.$M+1,this.$y);case o:return c?f(this.$D-this.$W,this.$M):f(this.$D+(6-this.$W),this.$M,this.$y);case r:case"date":return p("setHours",0);case n:return p("setMinutes",1);case t:return p("setSeconds",2);case e:return p("setMilliseconds",3);default:return this.clone()}},c.endOf=function(e){return this.startOf(e,!1)},c.$set=function(r,o){switch(y.prettyUnit(r)){case"date":this.$d.setDate(o);break;case i:this.$d.setMonth(o);break;case a:this.$d.setFullYear(o);break;case n:this.$d.setHours(o);break;case t:this.$d.setMinutes(o);break;case e:this.$d.setSeconds(o);break;case"millisecond":this.$d.setMilliseconds(o)}return this.init(),this},c.set=function(e,t){return this.clone().$set(e,t)},c.add=function(s,u){var l=this;s=Number(s);var c,f=!u||1!==u.length&&"ms"!==u?y.prettyUnit(u):u,p=function(e,t){var n=l.set("date",1).set(e,t+s);return n.set("date",Math.min(l.$D,n.daysInMonth()))};if(["M",i].indexOf(f)>-1)return p(i,this.$M);if(["y",a].indexOf(f)>-1)return p(a,this.$y);switch(f){case"m":case t:c=6e4;break;case"h":case n:c=36e5;break;case"d":case r:c=864e5;break;case"w":case o:c=6048e5;break;case"s":case e:c=1e3;break;default:c=1}var d=this.valueOf()+s*c;return v(d,this)},c.subtract=function(e,t){return this.add(-1*e,t)},c.format=function(e,t){var n=this,r=e||"YYYY-MM-DDTHH:mm:ssZ",o=y.padZoneStr(this.$d.getTimezoneOffset()),i=t||this.$locale(),a=i.weekdays,s=i.months;return r.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return String(n.$y);case"M":return String(n.$M+1);case"MM":return y.padStart(n.$M+1,2,"0");case"MMM":return s[n.$M].slice(0,3);case"MMMM":return s[n.$M];case"D":return String(n.$D);case"DD":return y.padStart(n.$D,2,"0");case"d":return String(n.$W);case"dddd":return a[n.$W];case"H":return String(n.$H);case"HH":return y.padStart(n.$H,2,"0");case"h":case"hh":return 0===n.$H?12:y.padStart(n.$H<13?n.$H:n.$H-12,"hh"===e?2:1,"0");case"a":return n.$H<12?"am":"pm";case"A":return n.$H<12?"AM":"PM";case"m":return String(n.$m);case"mm":return y.padStart(n.$m,2,"0");case"s":return String(n.$s);case"ss":return y.padStart(n.$s,2,"0");case"SSS":return y.padStart(n.$ms,3,"0");case"Z":return o;default:return o.replace(":","")}})},c.diff=function(s,u,l){var c=y.prettyUnit(u),f=h(s)?s:g(s.valueOf()),p=this-f,d=y.monthDiff(this,f);switch(c){case a:d/=12;break;case i:break;case"quarter":d/=3;break;case o:d=p/6048e5;break;case r:d=p/864e5;break;case n:d=p/36e5;break;case t:d=p/6e4;break;case e:d=p/1e3;break;default:d=p}return l?d:y.absFloor(d)},c.daysInMonth=function(){return this.endOf(i).$D},c.$locale=function(){return d[this.$L]},c.locale=function(e,t){return this.$L=m(e,t,!0),this},c.clone=function(){return v(this.toDate(),this)},c.toDate=function(){return new Date(this.$d)},c.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},c.toJSON=function(){return this.toISOString()},c.toISOString=function(){return this.toDate().toISOString()},c.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},c.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(e,t){return e(t,b,g),g},g.locale=m,g.en=d[p],g})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(82),l=n.n(u),c=n(112),f=n(70),p=n(206),d=n(83),h=n.n(d),m=n(66),g=n.n(m),v=n(22),y=n(113),b=n(248),T=n.n(b),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=(n(18),n(204)),k=n(249);n(714),n(715),n(718),n(250);var w=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.state={isFocused:!1},i.focus=function(){i.codeMirror&&i.codeMirror.focus()},i.focusChanged=function(e){i.setState({isFocused:e}),i.props.onFocusChange&&i.props.onFocusChange(e)},i.cursorActivity=function(e){i.props.onCursorActivity&&i.props.onCursorActivity(e)},i.scrollChanged=function(e){i.props.onScroll&&i.props.onScroll(e.getScrollInfo())},i.codemirrorValueChanged=function(e,t){i.props.onChange&&"setValue"!==t.origin&&i.props.onChange(e.getValue(),t)},a=n,o(i,a)}return i(t,e),_(t,[{key:"getCodeMirrorInstance",value:function(){return this.props.codeMirrorInstance||n(78)}},{key:"componentWillMount",value:function(){this.props.path&&console.error("Warning: react-codemirror: the `path` prop has been changed to `name`")}},{key:"componentDidMount",value:function(){var e=this.getCodeMirrorInstance();this.codeMirror=e.fromTextArea(this.textareaNode,this.props.options),this.codeMirror.on("change",this.codemirrorValueChanged),this.codeMirror.on("cursorActivity",this.cursorActivity),this.codeMirror.on("focus",this.focusChanged.bind(this,!0)),this.codeMirror.on("blur",this.focusChanged.bind(this,!1)),this.codeMirror.on("scroll",this.scrollChanged)}},{key:"componentWillUnmount",value:function(){this.codeMirror&&this.codeMirror.toTextArea()}},{key:"componentWillReceiveProps",value:function(e){if(this.codeMirror&&void 0!==e.initialValue&&e.initialValue!==this.props.initialValue)if(this.props.preserveScrollPosition){var t=this.codeMirror.getScrollInfo();this.codeMirror.setValue(e.initialValue),this.codeMirror.scrollTo(t.left,t.top)}else this.codeMirror.setValue(e.initialValue)}},{key:"render",value:function(){var e=this,t=E("ReactCodeMirror",this.state.isFocused?"ReactCodeMirror--focused":null,this.props.className);return s.a.createElement("div",{className:t},s.a.createElement("textarea",{ref:function(t){return e.textareaNode=t},name:this.props.name||this.props.path,defaultValue:this.props.initialValue,autoComplete:"off",autoFocus:this.props.autoFocus}))}}]),t}(s.a.Component),x=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=function(){n.setState({dropdownOpen:!n.state.dropdownOpen})},n.state={dropdownOpen:!1},n}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props.t;return s.a.createElement(f.b,{isOpen:this.state.dropdownOpen,toggle:this.toggle},s.a.createElement(f.e,null,s.a.createElement("i",{className:"fa fa-ellipsis-v"})),s.a.createElement(f.d,{className:"drop-list"},s.a.createElement(f.c,{onMouseDown:this.props.switchToRichTextEditor},e("switch_to_rich_text_editor")),s.a.createElement(f.c,{onMouseDown:this.props.switchToMarkDownViewer},e("switch_to_viewer"))))}}]),t}(s.a.Component),C=Object(v.translate)("translations")(x),A=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={html:"",leftIsBindScroll:!1,rightIsBindScroll:!1},n.scrollData={scrollPercentage:0,leftPanel:null,rightPanel:null},n.updateCode=function(e){n.props.onChange(e)},n.onLeftScroll=function(e){var t=n.scrollData.leftPanel;n.scrollData.scrollPercentage=t.scrollTop/t.scrollHeight,n.scrollData.rightPanel.scrollTop=n.scrollData.scrollPercentage*n.scrollData.rightPanel.scrollHeight},n.onRightScroll=function(e){var t=n.scrollData.rightPanel;n.scrollData.scrollPercentage=t.scrollTop/t.scrollHeight,n.scrollData.leftPanel.scrollTop=n.scrollData.scrollPercentage*n.scrollData.leftPanel.scrollHeight},n.onEnterLeftPanel=function(){n.setState({leftIsBindScroll:!0})},n.onLeaveLeftPanel=function(){n.setState({leftIsBindScroll:!1})},n.onEnterRightPanel=function(){n.setState({rightIsBindScroll:!0})},n.onLeaveRightPanel=function(){n.setState({rightIsBindScroll:!1})},n.onHotKey=function(e){if(g()("mod+s",e))return e.preventDefault(),n.props.onSave(e),!0},n.options={lineNumbers:!0,mode:"markdown",lineWrapping:!0,scrollbarStyle:null},n.setContent=k.throttle(n.setContent,1e3),n}return i(t,e),_(t,[{key:"setContent",value:function(e){var t=this;p.a.process(e).then(function(e){var n=String(e);t.setState({html:n})})}},{key:"componentDidMount",value:function(){this.scrollData.leftPanel=document.querySelector(".plain-editor-left-panel"),this.scrollData.rightPanel=document.querySelector(".plain-editor-right-panel"),this.setContent(this.props.currentContent)}},{key:"componentWillReceiveProps",value:function(e){this.setContent(e.currentContent)}},{key:"renderToolbar",value:function(){var e=this.props.t,t=this.props.contentChanged;return s.a.createElement("div",{className:"menu toolbar-menu"},this.props.saving?s.a.createElement(c.a,null,s.a.createElement("button",{type:"button",className:"btn btn-icon btn-secondary btn-active btn-loading"},s.a.createElement("i",{className:"fa fa-save"}))):s.a.createElement(c.a,null,s.a.createElement(c.d,{id:"saveButton",text:e("save"),icon:"fa fa-save",onMouseDown:this.props.onSave,disabled:!t,isActive:t})),s.a.createElement(C,{switchToMarkDownViewer:this.props.switchToMarkDownViewer,switchToRichTextEditor:this.props.switchToRichTextEditor}),this.props.collabUsers.length>0&&s.a.createElement(c.b,{users:this.props.collabUsers,id:"usersButton"}),s.a.createElement(h.a,{stack:{limit:3}}))}},{key:"componentDidUpdate",value:function(){T.a.highlightAll()}},{key:"render",value:function(){return s.a.createElement("div",{className:"seafile-editor"},s.a.createElement("div",{className:"seafile-editor-topbar"},s.a.createElement(y.a,{toggleStar:this.props.toggleStar,fileInfo:this.props.fileInfo}),this.renderToolbar()),s.a.createElement("div",{className:"seafile-editor-main d-flex"},s.a.createElement("div",{className:"plain-editor-left-panel",onKeyDown:this.onHotKey,onMouseLeave:this.onLeaveLeftPanel,onMouseEnter:this.onEnterLeftPanel,onScroll:this.state.leftIsBindScroll?this.onLeftScroll:null},s.a.createElement(w,{initialValue:this.props.initialValue,onChange:this.updateCode,options:this.options})),s.a.createElement("div",{className:"plain-editor-right-panel",onMouseEnter:this.onEnterRightPanel,onMouseLeave:this.onLeaveRightPanel,onScroll:this.state.rightIsBindScroll?this.onRightScroll:null},s.a.createElement("div",{className:"preview"},s.a.createElement("div",{className:"rendered-markdown article",dangerouslySetInnerHTML:{__html:this.state.html}})))))}}]),t}(s.a.Component);A.propTypes={collabUsers:l.a.array},t.a=Object(v.translate)("translations")(A)},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},a=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var i;for(i in e);return"undefined"===typeof i||r.call(e,i)};e.exports=function e(){var t,n,r,o,s,u,l=arguments[0],c=1,f=arguments.length,p=!1;for("boolean"===typeof l&&(p=l,l=arguments[1]||{},c=2),(null==l||"object"!==typeof l&&"function"!==typeof l)&&(l={});c<f;++c)if(null!=(t=arguments[c]))for(n in t)r=l[n],o=t[n],l!==o&&(p&&o&&(a(o)||(s=i(o)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},l[n]=e(p,u,o)):"undefined"!==typeof o&&(l[n]=o));return l}},function(e,t,n){"use strict";function r(e){if(e)throw e}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=this.path,o=new a(e,t,n);return r&&(o.name=r+":"+o.name,o.file=r),o.fatal=!1,this.messages.push(o),o}function o(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function i(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var a=n(578),s=n(580);e.exports=s;var u=s.prototype;u.message=r,u.info=i,u.fail=o,u.warn=r},function(e,t,n){"use strict";function r(){}function o(e,t,n){var r,o,s;"string"===typeof t&&(n=t,t=null),r=i(n),o=a(t)||"1:1",s={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(s=t,t=t.start):s.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=s,this.source=r[0],this.ruleId=r[1]}function i(e){var t,n=[null,null];return"string"===typeof e&&(t=e.indexOf(":"),-1===t?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}var a=n(579);e.exports=o,r.prototype=Error.prototype,o.prototype=new r;var s=o.prototype;s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e?s.call(e,"position")||s.call(e,"type")?i(e.position):s.call(e,"start")||s.call(e,"end")?i(e):s.call(e,"line")||s.call(e,"column")?o(e):null:null}function o(e){return e&&"object"===typeof e||(e={}),a(e.line)+":"+a(e.column)}function i(e){return e&&"object"===typeof e||(e={}),o(e.start)+"-"+o(e.end)}function a(e){return e&&"number"===typeof e?e:1}var s={}.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";(function(t){function r(e){var n,o,i;if(e){if("string"===typeof e||c(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof r))return new r(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),o=-1,i=d.length;++o<i;)n=d[o],f.call(e,n)&&(this[n]=e[n]);for(n in e)-1===d.indexOf(n)&&(this[n]=e[n])}function o(e){var t=this.contents||"";return c(t)?t.toString(e):String(t)}function i(e,t){if(-1!==e.indexOf(u.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+u.sep+"`")}function a(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function s(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var u=n(69),l=n(581),c=n(207);e.exports=r;var f={}.hasOwnProperty,p=r.prototype;p.toString=o;var d=["history","path","basename","stem","extname","dirname"];Object.defineProperty(p,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){a(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(p,"dirname",{get:function(){return"string"===typeof this.path?u.dirname(this.path):void 0},set:function(e){s(this.path,"dirname"),this.path=u.join(e||"",this.basename)}}),Object.defineProperty(p,"basename",{get:function(){return"string"===typeof this.path?u.basename(this.path):void 0},set:function(e){a(e,"basename"),i(e,"basename"),this.path=u.join(this.dirname||"",e)}}),Object.defineProperty(p,"extname",{get:function(){return"string"===typeof this.path?u.extname(this.path):void 0},set:function(e){var t=e||"";if(i(t,"extname"),s(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=l(this.path,t)}}),Object.defineProperty(p,"stem",{get:function(){return"string"===typeof this.path?u.basename(this.path,this.extname):void 0},set:function(e){a(e,"stem"),i(e,"stem"),this.path=u.join(this.dirname||"",e+(this.extname||""))}})}).call(t,n(16))},function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)return e;if(0===e.length)return e;var n=o.basename(e,o.extname(e))+t;return o.join(o.dirname(e),n)}var o=n(69);e.exports=r},function(e,t,n){"use strict";function r(){function e(){function e(s){var u=n[++t],l=i.call(arguments,0),c=l.slice(1),f=r.length,p=-1;if(s)return void a(s);for(;++p<f;)null!==c[p]&&void 0!==c[p]||(c[p]=r[p]);r=c,u?o(u,e).apply(null,r):a.apply(null,[null].concat(r))}var t=-1,r=i.call(arguments,0,-1),a=arguments[arguments.length-1];if("function"!==typeof a)throw new Error("Expected function as last argument, not "+a);e.apply(null,[null].concat(r))}function t(e){if("function"!==typeof e)throw new Error("Expected `fn` to be a function, not "+e);return n.push(e),r}var n=[],r={};return r.run=e,r.use=t,r}function o(e,t){function n(){var t,n=i.call(arguments,0),s=e.length>n.length;s&&n.push(r);try{t=e.apply(null,n)}catch(e){if(s&&a)throw e;return r(e)}s||(t&&"function"===typeof t.then?t.then(o,r):t instanceof Error?r(t):o(t))}function r(){a||(a=!0,t.apply(null,arguments))}function o(e){r(null,e)}var a;return n}e.exports=r;var i=[].slice},function(e,t){function n(e){return"[object String]"===r.call(e)}var r=Object.prototype.toString;e.exports=n},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t){this.file=t,this.offset={},this.options=i(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=s(t).toOffset,this.unescape=u(this,"escape"),this.decode=l(this)}function o(e){var t,n=[];for(t in e)n.push(t);return n}var i=n(8),a=n(210),s=n(211),u=n(588),l=n(589),c=n(592);e.exports=r;var f=r.prototype;f.setOptions=n(593),f.parse=n(595),f.options=n(217),f.exitStart=a("atStart",!0),f.enterList=a("inList",!1),f.enterLink=a("inLink",!1),f.enterBlock=a("inBlock",!1),f.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],f.blockTokenizers={newline:n(597),indentedCode:n(598),fencedCode:n(599),blockquote:n(600),atxHeading:n(601),thematicBreak:n(602),list:n(603),setextHeading:n(605),html:n(606),footnote:n(607),definition:n(608),table:n(609),paragraph:n(610)},f.inlineTokenizers={escape:n(611),autoLink:n(613),url:n(614),html:n(616),link:n(617),reference:n(618),strong:n(619),emphasis:n(621),deletion:n(624),code:n(626),break:n(628),text:n(630)},f.blockMethods=o(f.blockTokenizers),f.inlineMethods=o(f.inlineTokenizers),f.tokenizeBlock=c("block"),f.tokenizeInline=c("inline"),f.tokenizeFactory=c},function(e,t,n){"use strict";function r(e,t){function n(n){for(var r,o=0,i=n.indexOf("\\"),a=e[t],s=[];-1!==i;)s.push(n.slice(o,i)),o=i+1,r=n.charAt(o),r&&-1!==a.indexOf(r)||s.push("\\"),i=n.indexOf("\\",o);return s.push(n.slice(o)),s.join("")}return n}e.exports=r},function(e,t,n){"use strict";function r(e){function t(t){for(var n=e.offset,r=t.line,o=[];++r&&r in n;)o.push((n[r]||0)+1);return{start:t,indent:o}}function n(t,n,r){3!==r&&e.file.message(t,n)}function r(r,o,a){i(r,{position:t(o),warning:n,text:a,reference:a,textContext:e,referenceContext:e})}function a(e,r,a){return i(e,o(a,{position:t(r),warning:n}))}return r.raw=a,r}var o=n(8),i=n(71);e.exports=r},function(e,t){e.exports={AEli:"\xc6",AElig:"\xc6",AM:"&",AMP:"&",Aacut:"\xc1",Aacute:"\xc1",Abreve:"\u0102",Acir:"\xc2",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrav:"\xc0",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",Arin:"\xc5",Aring:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",Atild:"\xc3",Atilde:"\xc3",Aum:"\xc4",Auml:"\xc4",Backslash:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",Bscr:"\u212c",Bumpeq:"\u224e",CHcy:"\u0427",COP:"\xa9",COPY:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",Cayleys:"\u212d",Ccaron:"\u010c",Ccedi:"\xc7",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"\u212d",Chi:"\u03a7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2a74",Congruent:"\u2261",Conint:"\u222f",ContourIntegral:"\u222e",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",Diamond:"\u22c4",DifferentialD:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",Downarrow:"\u21d3",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ET:"\xd0",ETH:"\xd0",Eacut:"\xc9",Eacute:"\xc9",Ecaron:"\u011a",Ecir:"\xca",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrav:"\xc8",Egrave:"\xc8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",Equilibrium:"\u21cc",Escr:"\u2130",Esim:"\u2a73",Eta:"\u0397",Eum:"\xcb",Euml:"\xcb",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",HilbertSpace:"\u210b",Hopf:"\u210d",HorizontalLine:"\u2500",Hscr:"\u210b",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xcd",Iacute:"\xcd",Icir:"\xce",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xcc",Igrave:"\xcc",Im:"\u2111",Imacr:"\u012a",ImaginaryI:"\u2148",Implies:"\u21d2",Int:"\u222c",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xcf",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Larr:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",Mopf:"\ud835\udd44",Mscr:"\u2133",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\ud835\udca9",Ntild:"\xd1",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacut:"\xd3",Oacute:"\xd3",Ocir:"\xd4",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograv:"\xd2",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslas:"\xd8",Oslash:"\xd8",Otild:"\xd5",Otilde:"\xd5",Otimes:"\u2a37",Oum:"\xd6",Ouml:"\xd6",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Poincareplane:"\u210c",Popf:"\u2119",Pr:"\u2abb",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Prime:"\u2033",Product:"\u220f",Proportion:"\u2237",Proportional:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUO:'"',QUOT:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",RE:"\xae",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",Rfr:"\u211c",Rho:"\u03a1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",Rightarrow:"\u21d2",Ropf:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",Rscr:"\u211b",Rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Sup:"\u22d1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",THOR:"\xde",THORN:"\xde",TRADE:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacut:"\xda",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucir:"\xdb",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrav:"\xd9",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",UpTee:"\u22a5",UpTeeArrow:"\u21a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uum:"\xdc",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacut:"\xdd",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",ZeroWidthSpace:"\u200b",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\ud835\udcb5",aacut:"\xe1",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acir:"\xe2",acirc:"\xe2",acut:"\xb4",acute:"\xb4",acy:"\u0430",aeli:"\xe6",aelig:"\xe6",af:"\u2061",afr:"\ud835\udd1e",agrav:"\xe0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",am:"&",amp:"&",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",ap:"\u2248",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",apid:"\u224b",apos:"'",approx:"\u2248",approxeq:"\u224a",arin:"\xe5",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",asymp:"\u2248",asympeq:"\u224d",atild:"\xe3",atilde:"\xe3",aum:"\xe4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",beta:"\u03b2",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",bprime:"\u2035",breve:"\u02d8",brvba:"\xa6",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",bumpeq:"\u224f",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",ccaps:"\u2a4d",ccaron:"\u010d",ccedi:"\xe7",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cedi:"\xb8",cedil:"\xb8",cemptyv:"\u29b2",cen:"\xa2",cent:"\xa2",centerdot:"\xb7",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",conint:"\u222e",copf:"\ud835\udd54",coprod:"\u2210",cop:"\xa9",copy:"\xa9",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curre:"\xa4",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dArr:"\u21d3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",ddotseq:"\u2a77",de:"\xb0",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",dharl:"\u21c3",dharr:"\u21c2",diam:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divid:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",dot:"\u02d9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eDDot:"\u2a77",eDot:"\u2251",eacut:"\xe9",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\xea",ecirc:"\xea",ecolon:"\u2255",ecy:"\u044d",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrav:"\xe8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",equals:"=",equest:"\u225f",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",erarr:"\u2971",escr:"\u212f",esdot:"\u2250",esim:"\u2242",eta:"\u03b7",et:"\xf0",eth:"\xf0",eum:"\xeb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac1:"\xbc",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac3:"\xbe",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",gE:"\u2267",gEl:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gammad:"\u03dd",gap:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",grave:"`",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",g:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hArr:"\u21d4",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",hbar:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hslash:"\u210f",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xed",iacute:"\xed",ic:"\u2063",icir:"\xee",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexc:"\xa1",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",igrav:"\xec",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",intcal:"\u22ba",integers:"\u2124",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iprod:"\u2a3c",iques:"\xbf",iquest:"\xbf",iscr:"\ud835\udcbe",isin:"\u2208",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xef",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAarr:"\u21da",lArr:"\u21d0",lAtail:"\u291b",lBarr:"\u290e",lE:"\u2266",lEg:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",laqu:"\xab",laquo:"\xab",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lceil:"\u2308",lcub:"{",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21a2",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",leftthreetimes:"\u22cb",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",mac:"\xaf",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",measuredangle:"\u2221",mfr:"\ud835\udd2a",mho:"\u2127",micr:"\xb5",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middo:"\xb7",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",mstpos:"\u223e",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbs:"\xa0",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nlarr:"\u219a",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",nopf:"\ud835\udd5f",no:"\xac",not:"\xac",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntild:"\xf1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24c8",oacut:"\xf3",oacute:"\xf3",oast:"\u229b",ocir:"\xf4",ocirc:"\xf4",ocy:"\u043e",odash:"\u229d",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograv:"\xf2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",oplus:"\u2295",or:"\u2228",orarr:"\u21bb",ord:"\xba",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oscr:"\u2134",oslas:"\xf8",oslash:"\xf8",osol:"\u2298",otild:"\xf5",otilde:"\xf5",otimes:"\u2297",otimesas:"\u2a36",oum:"\xf6",ouml:"\xf6",ovbar:"\u233d",par:"\xb6",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusm:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",popf:"\ud835\udd61",poun:"\xa3",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quo:'"',quot:'"',rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raqu:"\xbb",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",re:"\xae",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",rightthreetimes:"\u22cc",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rscr:"\ud835\udcc7",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",sbquo:"\u201a",sc:"\u227b",scE:"\u2ab4",scap:"\u2ab8",scaron:"\u0161",sccue:"\u227d",sce:"\u2ab0",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",seArr:"\u21d8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xa7",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xad",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",subE:"\u2ac5",subdot:"\u2abd",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",sum:"\u2211",sung:"\u266a",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szli:"\xdf",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tbrk:"\u23b4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",thor:"\xfe",thorn:"\xfe",tilde:"\u02dc",time:"\xd7",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uArr:"\u21d1",uHar:"\u2963",uacut:"\xfa",uacute:"\xfa",uarr:"\u2191",ubrcy:"\u045e",ubreve:"\u016d",ucir:"\xfb",ucirc:"\xfb",ucy:"\u0443",udarr:"\u21c5",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",ugrav:"\xf9",ugrave:"\xf9",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",um:"\xa8",uml:"\xa8",uogon:"\u0173",uopf:"\ud835\udd66",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",upsi:"\u03c5",upsih:"\u03d2",upsilon:"\u03c5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uum:"\xfc",uuml:"\xfc",uwangle:"\u29a7",vArr:"\u21d5",vBar:"\u2ae8",vBarv:"\u2ae9",vDash:"\u22a8",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vcy:"\u0432",vdash:"\u22a2",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",vert:"|",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacut:"\xfd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",ye:"\xa5",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yum:"\xff",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeetrf:"\u2128",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}},function(e,t){e.exports={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"}},function(e,t,n){"use strict";function r(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}function o(e,t){return e.value+=t.value,e}function i(e,t){return this.options.commonmark?t:(e.children=e.children.concat(t.children),e)}function a(e){function t(t,n){function o(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)w++,t=n,n=e.indexOf("\n",n+1);-1===t?x+=e.length:x=e.length-t,w in T&&(-1!==t?x+=T[w]:x<=T[w]&&(x=T[w]+1))}function i(){var e=[],t=w+1;return function(){for(var n=w+1;t<n;)e.push((T[t]||0)+1),t++;return e}}function a(){var e={line:w,column:x};return e.offset=b.toOffset(e),e}function u(e){this.start=e,this.end=a()}function l(e){t.substring(0,e.length)!==e&&b.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),a())}function c(){function e(e,n){var r=e.position,o=r?r.start:t,i=[],a=r&&r.end.line,s=t.line;if(e.position=new u(o),r&&n&&r.indent){if(i=r.indent,a<s){for(;++a<s;)i.push((T[a]||0)+1);i.push(t.column)}n=i.concat(n)}return e.position.indent=n||[],e}var t=a();return e}function f(e,t){var n=t?t.children:_,o=n[n.length-1];return o&&e.type===o.type&&e.type in s&&r(o)&&r(e)&&(e=s[e.type].call(b,o,e)),e!==o&&n.push(e),b.atStart&&0!==_.length&&b.exitStart(),e}function p(e){function n(e,t){return p(f(p(e),t),u)}function r(){var r=n.apply(null,arguments);return w=d.line,x=d.column,t=e+t,r}function s(){var n=p({});return w=d.line,x=d.column,t=e+t,n.position}var u=i(),p=c(),d=a();return l(e),n.reset=r,r.test=s,n.test=s,t=t.substring(e.length),o(e),u=u(),n}var d,h,m,g,v,y,b=this,T=b.offset,_=[],E=b[e+"Methods"],k=b[e+"Tokenizers"],w=n.line,x=n.column;if(!t)return _;for(p.now=a,p.file=b.file,o("");t;){for(d=-1,h=E.length,v=!1;++d<h&&(g=E[d],!(m=k[g])||m.onlyAtStart&&!b.atStart||m.notInList&&b.inList||m.notInBlock&&b.inBlock||m.notInLink&&b.inLink||(y=t.length,m.apply(b,[p,t]),!(v=y!==t.length))););v||b.file.fail(new Error("Infinite loop"),p.now())}return b.eof=a(),_}return t}e.exports=a;var s={text:o,blockquote:i}},function(e,t,n){"use strict";function r(e){var t,n,r=this,s=r.options;if(null==e)e={};else{if("object"!==typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=o(e)}for(t in a){if(n=e[t],null==n&&(n=s[t]),"blocks"!==t&&"boolean"!==typeof n||"blocks"===t&&"object"!==typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return r.options=e,r.escape=i(e),r}var o=n(8),i=n(216),a=n(217);e.exports=r},function(e,t){e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";function r(){var e,t=this,n=String(t.file),r={line:1,column:1,offset:0},u=o(r);return n=n.replace(s,a),65279===n.charCodeAt(0)&&(n=n.slice(1),u.column++,u.offset++),e={type:"root",children:t.tokenizeBlock(n,u),position:{start:r,end:t.eof||o(r)}},t.options.position||i(e,!0),e}var o=n(8),i=n(596);e.exports=r;var a="\n",s=/\r\n|\r/g},function(e,t,n){"use strict";function r(e,t){return a(e,t?o:i),e}function o(e){delete e.position}function i(e){e.position=void 0}var a=n(46);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,i,a,s,u=t.charAt(0);if("\n"===u){if(n)return!0;for(s=1,r=t.length,i=u,a="";s<r&&(u=t.charAt(s),o(u));)a+=u,"\n"===u&&(i+=a,a=""),s++;e(i)}}var o=n(10);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r,o,c,f=-1,p=t.length,d="",h="",m="",g="";++f<p;)if(r=t.charAt(f),c)if(c=!1,d+=m,h+=g,m="",g="",r===a)m=r,g=r;else for(d+=r,h+=r;++f<p;){if(!(r=t.charAt(f))||r===a){g=r,m=r;break}d+=r,h+=r}else if(r===u&&t.charAt(f+1)===r&&t.charAt(f+2)===r&&t.charAt(f+3)===r)m+=l,f+=3,c=!0;else if(r===s)m+=r,c=!0;else{for(o="";r===s||r===u;)o+=r,r=t.charAt(++f);if(r!==a)break;m+=o+r,g+=r}if(h)return!!n||e(d)({type:"code",lang:null,value:i(h)})}var o=n(11),i=n(115);e.exports=r;var a="\n",s="\t",u=" ",l=o(u,4)},function(e,t,n){"use strict";function r(e,t,n){var r,p,d,h,m,g,v,y,b,T,_,E=this,k=E.options,w=t.length+1,x=0,C="";if(k.gfm){for(;x<w&&((d=t.charAt(x))===s||d===a);)C+=d,x++;if(T=x,(d=t.charAt(x))===u||d===l){for(x++,p=d,r=1,C+=d;x<w&&(d=t.charAt(x))===p;)C+=d,r++,x++;if(!(r<c)){for(;x<w&&((d=t.charAt(x))===s||d===a);)C+=d,x++;for(h="",m="";x<w&&(d=t.charAt(x))!==i&&d!==u&&d!==l;)d===s||d===a?m+=d:(h+=m+d,m=""),x++;if(!(d=t.charAt(x))||d===i){if(n)return!0;for(_=e.now(),_.column+=C.length,_.offset+=C.length,C+=h,h=E.decode.raw(E.unescape(h),_),m&&(C+=m),m="",y="",b="",g="",v="";x<w;)if(d=t.charAt(x),g+=y,v+=b,y="",b="",d===i){for(g?(y+=d,b+=d):C+=d,m="",x++;x<w&&(d=t.charAt(x))===s;)m+=d,x++;if(y+=m,b+=m.slice(T),!(m.length>=f)){for(m="";x<w&&(d=t.charAt(x))===p;)m+=d,x++;if(y+=m,b+=m,!(m.length<r)){for(m="";x<w&&((d=t.charAt(x))===s||d===a);)y+=d,b+=d,x++;if(!d||d===i)break}}}else g+=d,b+=d,x++;return C+=g+y,e(C)({type:"code",lang:h||null,value:o(v)})}}}}}var o=n(115);e.exports=r;var i="\n",a="\t",s=" ",u="~",l="`",c=3,f=4},function(e,t,n){"use strict";function r(e,t,n){for(var r,c,f,p,d,h,m,g,v,y=this,b=y.offset,T=y.blockTokenizers,_=y.interruptBlockquote,E=e.now(),k=E.line,w=t.length,x=[],C=[],A=[],O=0;O<w&&((c=t.charAt(O))===u||c===s);)O++;if(t.charAt(O)===l){if(n)return!0;for(O=0;O<w;){for(p=t.indexOf(a,O),m=O,g=!1,-1===p&&(p=w);O<w&&((c=t.charAt(O))===u||c===s);)O++;if(t.charAt(O)===l?(O++,g=!0,t.charAt(O)===u&&O++):O=m,d=t.slice(O,p),!g&&!o(d)){O=m;break}if(!g&&(f=t.slice(O),i(_,T,y,[e,f,!0])))break;h=m===O?d:t.slice(m,p),A.push(O-m),x.push(h),C.push(d),O=p+1}for(O=-1,w=A.length,r=e(x.join(a));++O<w;)b[k]=(b[k]||0)+A[O],k++;return v=y.enterBlock(),C=y.tokenizeBlock(C.join(a),E),v(),r({type:"blockquote",children:C})}}var o=n(21),i=n(116);e.exports=r;var a="\n",s="\t",u=" ",l=">"},function(e,t,n){"use strict";function r(e,t,n){for(var r,l,c,f=this,p=f.options,d=t.length+1,h=-1,m=e.now(),g="",v="";++h<d;){if((r=t.charAt(h))!==a&&r!==i){h--;break}g+=r}for(c=0;++h<=d;){if((r=t.charAt(h))!==s){h--;break}g+=r,c++}if(!(c>u)&&c&&(p.pedantic||t.charAt(h+1)!==s)){for(d=t.length+1,l="";++h<d;){if((r=t.charAt(h))!==a&&r!==i){h--;break}l+=r}if(p.pedantic||0!==l.length||!r||r===o){if(n)return!0;for(g+=l,l="",v="";++h<d&&(r=t.charAt(h))&&r!==o;)if(r===a||r===i||r===s){for(;r===a||r===i;)l+=r,r=t.charAt(++h);for(;r===s;)l+=r,r=t.charAt(++h);for(;r===a||r===i;)l+=r,r=t.charAt(++h);h--}else v+=l+r,l="";return m.column+=g.length,m.offset+=g.length,g+=v+l,e(g)({type:"heading",depth:c,children:f.tokenizeInline(v,m)})}}}e.exports=r;var o="\n",i="\t",a=" ",s="#",u=6},function(e,t,n){"use strict";function r(e,t,n){for(var r,f,p,d,h=-1,m=t.length+1,g="";++h<m&&((r=t.charAt(h))===i||r===a);)g+=r;if(r===s||r===l||r===u)for(f=r,g+=r,p=1,d="";++h<m;)if((r=t.charAt(h))===f)p++,g+=d+f,d="";else{if(r!==a)return p>=c&&(!r||r===o)?(g+=d,!!n||e(g)({type:"thematicBreak"})):void 0;d+=r}}e.exports=r;var o="\n",i="\t",a=" ",s="*",u="_",l="-",c=3},function(e,t,n){"use strict";function r(e,t,n){for(var r,i,a,u,c,f,b,_,E,k,w,x,S,N,D,I,M,L,P,R,B,j,F,H,U=this,z=U.options.commonmark,K=U.options.pedantic,q=U.blockTokenizers,W=U.interruptList,G=0,V=t.length,Y=null,$=0;G<V;){if((u=t.charAt(G))===y)$+=T-$%T;else{if(u!==g)break;$++}G++}if(!($>=T)){if(u=t.charAt(G),r=z?O:A,!0===C[u])c=u,a=!1;else{for(a=!0,i="";G<V&&(u=t.charAt(G),l(u));)i+=u,G++;if(u=t.charAt(G),!i||!0!==r[u])return;Y=parseInt(i,10),c=u}if((u=t.charAt(++G))===g||u===y){if(n)return!0;for(G=0,N=[],D=[],I=[];G<V;){for(f=t.indexOf(v,G),b=G,_=!1,H=!1,-1===f&&(f=V),F=G+T,$=0;G<V;){if((u=t.charAt(G))===y)$+=T-$%T;else{if(u!==g)break;$++}G++}if($>=T&&(H=!0),M&&$>=M.indent&&(H=!0),u=t.charAt(G),E=null,!H){if(!0===C[u])E=u,G++,$++;else{for(i="";G<V&&(u=t.charAt(G),l(u));)i+=u,G++;u=t.charAt(G),G++,i&&!0===r[u]&&(E=u,$+=i.length+1)}if(E)if((u=t.charAt(G))===y)$+=T-$%T,G++;else if(u===g){for(F=G+T;G<F&&t.charAt(G)===g;)G++,$++;G===F&&t.charAt(G)===g&&(G-=T-1,$-=T-1)}else u!==v&&""!==u&&(E=null)}if(E){if(!K&&c!==E)break;_=!0}else z||H||t.charAt(b)!==g?z&&M&&(H=$>=M.indent||$>T):H=!0,_=!1,G=b;if(w=t.slice(b,f),k=b===G?w:t.slice(G,f),(E===d||E===h||E===m)&&q.thematicBreak.call(U,e,w,!0))break;if(x=S,S=!s(k).length,H&&M)M.value=M.value.concat(I,w),D=D.concat(I,w),I=[];else if(_)0!==I.length&&(M.value.push(""),M.trail=I.concat()),M={value:[w],indent:$,trail:[]},N.push(M),D=D.concat(I,w),I=[];else if(S){if(x)break;I.push(w)}else{if(x)break;if(p(W,q,U,[e,w,!0]))break;M.value=M.value.concat(I,w),D=D.concat(I,w),I=[]}G=f+1}for(B=e(D.join(v)).reset({type:"list",ordered:a,start:Y,loose:null,children:[]}),L=U.enterList(),P=U.enterBlock(),R=!1,G=-1,V=N.length;++G<V;)M=N[G].value.join(v),j=e.now(),M=e(M)(o(U,M,j),B),M.loose&&(R=!0),M=N[G].trail.join(v),G!==V-1&&(M+=v),e(M);return L(),P(),B.loose=R,B}}}function o(e,t,n){var r,o,s=e.offset,u=e.options.pedantic?i:a,l=null;return t=u.apply(null,arguments),e.options.gfm&&(r=t.match(E))&&(o=r[0].length,l=r[1].toLowerCase()===b,s[n.line]+=o,t=t.slice(o)),{type:"listItem",loose:_.test(t)||t.charAt(t.length-1)===v,checked:l,children:e.tokenizeBlock(t,n)}}function i(e,t,n){function r(e){return o[i]=(o[i]||0)+e.length,i++,""}var o=e.offset,i=n.line;return t=t.replace(w,r),i=n.line,t.replace(x,r)}function a(e,t,n){function r(e,t,n,r,s){return i=t+n+r,a=s,Number(n)<10&&i.length%2===1&&(n=g+n),(o=t+u(g,n.length)+r)+a}var o,i,a,s,l,p,d,h=e.offset,m=n.line;for(t=t.replace(k,r),s=t.split(v),l=f(t,c(o).indent).split(v),l[0]=a,h[m]=(h[m]||0)+i.length,m++,p=0,d=s.length;++p<d;)h[m]=(h[m]||0)+s[p].length-l[p].length,m++;return l.join(v)}var s=n(21),u=n(11),l=n(45),c=n(218),f=n(604),p=n(116);e.exports=r;var d="*",h="_",m="-",g=" ",v="\n",y="\t",b="x",T=4,_=/\n\n(?!\s*$)/,E=/^\[([ \t]|x|X)][ \t]/,k=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,w=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,x=/^( {1,4}|\t)?/gm,C={};C[d]=!0,C["+"]=!0,C[m]=!0;var A={};A["."]=!0;var O={};O["."]=!0,O[")"]=!0},function(e,t,n){"use strict";function r(e,t){var n,r,c,f,p=e.split(u),d=p.length+1,h=1/0,m=[];for(p.unshift(i(s,t)+"!");d--;)if(r=a(p[d]),m[d]=r.stops,0!==o(p[d]).length){if(!r.indent){h=1/0;break}r.indent>0&&r.indent<h&&(h=r.indent)}if(h!==1/0)for(d=p.length;d--;){for(c=m[d],n=h;n&&!(n in c);)n--;f=0!==o(p[d]).length&&h&&n!==h?l:"",p[d]=f+p[d].slice(n in c?c[n]+1:0)}return p.shift(),p.join(u)}var o=n(21),i=n(11),a=n(218);e.exports=r;var s=" ",u="\n",l="\t"},function(e,t,n){"use strict";function r(e,t,n){for(var r,l,c,f,p,d=this,h=e.now(),m=t.length,g=-1,v="";++g<m;){if((c=t.charAt(g))!==a||g>=s){g--;break}v+=c}for(r="",l="";++g<m;){if((c=t.charAt(g))===o){g--;break}c===a||c===i?l+=c:(r+=l+c,l="")}if(h.column+=v.length,h.offset+=v.length,v+=r+l,c=t.charAt(++g),f=t.charAt(++g),c===o&&u[f]){for(v+=c,l=f,p=u[f];++g<m;){if((c=t.charAt(g))!==f){if(c!==o)return;g--;break}l+=c}return!!n||e(v+l)({type:"heading",depth:p,children:d.tokenizeInline(r,h)})}}e.exports=r;var o="\n",i="\t",a=" ",s=3,u={};u["="]=1,u["-"]=2},function(e,t,n){"use strict";function r(e,t,n){for(var r,l,c,f,p,d,h,m=this,g=m.options.blocks,v=t.length,y=0,b=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+g.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];y<v&&((f=t.charAt(y))===i||f===a);)y++;if(t.charAt(y)===u){for(r=t.indexOf(s,y+1),r=-1===r?v:r,l=t.slice(y,r),c=-1,p=b.length;++c<p;)if(b[c][0].test(l)){d=b[c];break}if(d){if(n)return d[2];if(y=r,!d[1].test(l))for(;y<v;){if(r=t.indexOf(s,y+1),r=-1===r?v:r,l=t.slice(y+1,r),d[1].test(l)){l&&(y=r);break}y=r}return h=t.slice(0,y),e(h)({type:"html",value:h})}}}var o=n(219).openCloseTag;e.exports=r;var i="\t",a=" ",s="\n",u="<"},function(e,t,n){"use strict";function r(e,t,n){var r,m,g,v,y,b,T,_,E,k,w,x,C=this,A=C.offset;if(C.options.footnotes){for(r=0,m=t.length,g="",v=e.now(),y=v.line;r<m&&(E=t.charAt(r),o(E));)g+=E,r++;if(t.charAt(r)===c&&t.charAt(r+1)===p){for(g+=c+p,r=g.length,T="";r<m&&(E=t.charAt(r))!==f;)E===a&&(T+=E,r++,E=t.charAt(r)),T+=E,r++;if(T&&t.charAt(r)===f&&t.charAt(r+1)===d){if(n)return!0;for(k=i(T),g+=T+f+d,r=g.length;r<m&&((E=t.charAt(r))===u||E===l);)g+=E,r++;for(v.column+=g.length,v.offset+=g.length,T="",b="",_="";r<m;){if((E=t.charAt(r))===s){for(_=E,r++;r<m&&(E=t.charAt(r))===s;)_+=E,r++;for(T+=_,_="";r<m&&(E=t.charAt(r))===l;)_+=E,r++;if(0===_.length)break;T+=_}T&&(b+=T,T=""),b+=E,r++}return g+=b,b=b.replace(h,function(e){return A[y]=(A[y]||0)+e.length,y++,""}),w=e(g),x=C.enterBlock(),b=C.tokenizeBlock(b,v),x(),w({type:"footnoteDefinition",identifier:k,children:b})}}}}var o=n(10),i=n(117);e.exports=r,r.notInList=!0,r.notInBlock=!0;var a="\\",s="\n",u="\t",l=" ",c="[",f="]",p="^",d=":",h=/^( {4}|\t)?/gm},function(e,t,n){"use strict";function r(e,t,n){for(var r,a,T,_,E,k,w,x,C=this,A=C.options.commonmark,O=0,S=t.length,N="";O<S&&((_=t.charAt(O))===d||_===p);)N+=_,O++;if((_=t.charAt(O))===h){for(O++,N+=_,T="";O<S&&(_=t.charAt(O))!==m;)_===c&&(T+=_,O++,_=t.charAt(O)),T+=_,O++;if(T&&t.charAt(O)===m&&t.charAt(O+1)===y){for(k=T,N+=T+m+y,O=N.length,T="";O<S&&((_=t.charAt(O))===p||_===d||_===f);)N+=_,O++;if(_=t.charAt(O),T="",r=N,_===b){for(O++;O<S&&(_=t.charAt(O),o(_));)T+=_,O++;if((_=t.charAt(O))===o.delimiter)N+=b+T+_,O++;else{if(A)return;O-=T.length+1,T=""}}if(!T){for(;O<S&&(_=t.charAt(O),i(_));)T+=_,O++;N+=T}if(T){for(w=T,T="";O<S&&((_=t.charAt(O))===p||_===d||_===f);)T+=_,O++;if(_=t.charAt(O),E=null,_===u?E=u:_===l?E=l:_===g&&(E=v),E){if(!T)return;for(N+=T+_,O=N.length,T="";O<S&&(_=t.charAt(O))!==E;){if(_===f){if(O++,(_=t.charAt(O))===f||_===E)return;T+=f}T+=_,O++}if((_=t.charAt(O))!==E)return;a=N,N+=T+_,O++,x=T,T=""}else T="",O=N.length;for(;O<S&&((_=t.charAt(O))===p||_===d);)N+=_,O++;return _=t.charAt(O),_&&_!==f?void 0:!!n||(r=e(r).test().end,w=C.decode.raw(C.unescape(w),r,{nonTerminated:!1}),x&&(a=e(a).test().end,x=C.decode.raw(C.unescape(x),a)),e(N)({type:"definition",identifier:s(k),title:x||null,url:w}))}}}}function o(e){return e!==T&&e!==h&&e!==m}function i(e){return e!==h&&e!==m&&!a(e)}var a=n(10),s=n(117);e.exports=r,r.notInList=!0,r.notInBlock=!0;var u='"',l="'",c="\\",f="\n",p="\t",d=" ",h="[",m="]",g="(",v=")",y=":",b="<",T=">";o.delimiter=T},function(e,t,n){"use strict";function r(e,t,n){var r,b,T,_,E,k,w,x,C,A,O,S,N,D,I,M,L,P,R,B,j,F,H,U,z=this;if(z.options.gfm){for(r=0,P=0,k=t.length+1,w=[];r<k;){if(F=t.indexOf(f,r),H=t.indexOf(u,r+1),-1===F&&(F=t.length),-1===H||H>F){if(P<h)return;break}w.push(t.slice(r,F)),P++,r=F+1}for(_=w.join(f),b=w.splice(1,1)[0]||[],r=0,k=b.length,P--,T=!1,O=[];r<k;){if((C=b.charAt(r))===u){if(A=null,!1===T){if(!1===U)return}else O.push(T),T=!1;U=!1}else if(C===s)A=!0,T=T||y;else if(C===l)T=T===m?g:A&&T===y?v:m;else if(!o(C))return;r++}if(!1!==T&&O.push(T),!(O.length<d)){if(n)return!0;for(L=-1,B=[],j=e(_).reset({type:"table",align:O,children:B});++L<P;){for(R=w[L],E={type:"tableRow",children:[]},L&&e(f),e(R).reset(E,j),k=R.length+1,r=0,x="",S="",N=!0,D=null,I=null;r<k;)if((C=R.charAt(r))!==p&&C!==c){if(""===C||C===u)if(N)e(C);else{if(C&&I){x+=C,r++;continue}!S&&!C||N||(_=S,x.length>1&&(C?(_+=x.slice(0,x.length-1),x=x.charAt(x.length-1)):(_+=x,x="")),M=e.now(),e(_)({type:"tableCell",children:z.tokenizeInline(S,M)},E)),e(x+C),x="",S=""}else if(x&&(S+=x,x=""),S+=C,C===i&&r!==k-2&&(S+=R.charAt(r+1),r++),C===a){for(D=1;R.charAt(r+1)===C;)S+=C,r++,D++;I?D>=I&&(I=0):I=D}N=!1,r++}else S?x+=C:e(C),r++;L||e(f+b)}return j}}}var o=n(10);e.exports=r;var i="\\",a="`",s="-",u="|",l=":",c=" ",f="\n",p="\t",d=1,h=2,m="left",g="center",v="right",y=null},function(e,t,n){"use strict";function r(e,t,n){for(var r,p,d,h,m,g=this,v=g.options,y=v.commonmark,b=v.gfm,T=g.blockTokenizers,_=g.interruptParagraph,E=t.indexOf(u),k=t.length;E<k;){if(-1===E){E=k;break}if(t.charAt(E+1)===u)break;if(y){for(h=0,r=E+1;r<k;){if((d=t.charAt(r))===l){h=f;break}if(d!==c)break;h++,r++}if(h>=f){E=t.indexOf(u,E+1);continue}}if(p=t.slice(E+1),s(_,T,g,[e,p,!0]))break;if(T.list.call(g,e,p,!0)&&(g.inList||y||b&&!i(o.left(p).charAt(0))))break;if(r=E,-1!==(E=t.indexOf(u,E+1))&&""===o(t.slice(r,E))){E=r;break}}return p=t.slice(0,E),""===o(p)?(e(p),null):!!n||(m=e.now(),p=a(p),e(p)({type:"paragraph",children:g.tokenizeInline(p,m)}))}var o=n(21),i=n(45),a=n(115),s=n(116);e.exports=r;var u="\n",l="\t",c=" ",f=4},function(e,t,n){"use strict";function r(e,t,n){var r,o,i=this;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==i.escape.indexOf(r)))return!!n||(o="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(o))}var o=n(612);e.exports=r,r.locator=o},function(e,t,n){"use strict";function r(e,t){return e.indexOf("\\",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,a,d,h,m,g,v,y,b,T,_,E;if(t.charAt(0)===s){for(r=this,a="",d=t.length,h=0,m="",v=!1,y="",h++,a=s;h<d&&(g=t.charAt(h),!(o(g)||g===u||g===l||":"===g&&t.charAt(h+1)===c));)m+=g,h++;if(m){if(y+=m,m="",g=t.charAt(h),y+=g,h++,g===l)v=!0;else{if(":"!==g||t.charAt(h+1)!==c)return;y+=c,h++}for(;h<d&&(g=t.charAt(h),!o(g)&&g!==u);)m+=g,h++;if(g=t.charAt(h),m&&g===u)return!!n||(y+=m,T=y,a+=y+g,b=e.now(),b.column++,b.offset++,v&&(y.slice(0,p).toLowerCase()===f?(T=T.substr(p),b.column+=p,b.offset+=p):y=f+y),_=r.inlineTokenizers,r.inlineTokenizers={text:_.text},E=r.enterLink(),T=r.tokenizeInline(T,b),r.inlineTokenizers=_,E(),e(a)({type:"link",title:null,url:i(y,{nonTerminated:!1}),children:T}))}}}var o=n(10),i=n(71),a=n(220);e.exports=r,r.locator=a,r.notInLink=!0;var s="<",u=">",l="@",c="/",f="mailto:",p=f.length},function(e,t,n){"use strict";function r(e,t,n){var r,a,g,v,y,b,T,_,E,k,w,x,C=this;if(C.options.gfm){for(r="",v=-1,_=m;++v<_;)if(b=h[v],T=t.slice(0,b.length),T.toLowerCase()===b){r=T;break}if(r){for(v=r.length,_=t.length,E="",k=0;v<_&&(g=t.charAt(v),!i(g)&&g!==f)&&("."!==g&&","!==g&&":"!==g&&";"!==g&&'"'!==g&&"'"!==g&&")"!==g&&"]"!==g||(w=t.charAt(v+1))&&!i(w))&&(g!==l&&g!==s||k++,g!==c&&g!==u||!(--k<0));)E+=g,v++;if(E){if(r+=E,a=r,b===d){if(-1===(y=E.indexOf(p))||y===_-1)return;a=a.substr(d.length)}return!!n||(x=C.enterLink(),a=C.tokenizeInline(a,e.now()),x(),e(r)({type:"link",title:null,url:o(r,{nonTerminated:!1}),children:a}))}}}}var o=n(71),i=n(10),a=n(615);e.exports=r,r.locator=a,r.notInLink=!0;var s="[",u="]",l="(",c=")",f="<",p="@",d="mailto:",h=["http://","https://",d],m=h.length},function(e,t,n){"use strict";function r(e,t){var n,r=o.length,i=-1,a=-1;if(!this.options.gfm)return-1;for(;++i<r;)-1!==(n=e.indexOf(o[i],t))&&(n<a||-1===a)&&(a=n);return a}e.exports=r;var o=["https://","http://","mailto:"]},function(e,t,n){"use strict";function r(e,t,n){var r,i,l=this,c=t.length;if(!("<"!==t.charAt(0)||c<3)&&(r=t.charAt(1),(o(r)||"?"===r||"!"===r||"/"===r)&&(i=t.match(a))))return!!n||(i=i[0],!l.inLink&&s.test(i)?l.inLink=!0:l.inLink&&u.test(i)&&(l.inLink=!1),e(i)({type:"html",value:i}))}var o=n(215),i=n(220),a=n(219).tag;e.exports=r,r.locator=i;var s=/^<a /i,u=/^<\/a>/i},function(e,t,n){"use strict";function r(e,t,n){var r,i,v,y,b,T,_,E,k,w,x,C,A,O,S,N,D,I,M,L=this,P="",R=0,B=t.charAt(0),j=L.options.pedantic,F=L.options.commonmark,H=L.options.gfm;if("!"===B&&(k=!0,P=B,B=t.charAt(++R)),B===u&&(k||!L.inLink)){for(P+=B,S="",R++,C=t.length,D=e.now(),O=0,D.column+=R,D.offset+=R;R<C;){if(B=t.charAt(R),T=B,B===h){for(i=1;t.charAt(R+1)===h;)T+=B,R++,i++;v?i>=v&&(v=0):v=i}else if(B===s)R++,T+=t.charAt(R);else if(v&&!H||B!==u){if((!v||H)&&B===l){if(!O){if(!j)for(;R<C&&(B=t.charAt(R+1),o(B));)T+=B,R++;if(t.charAt(R+1)!==c)return;T+=c,r=!0,R++;break}O--}}else O++;S+=T,T="",R++}if(r){for(w=S,P+=S+T,R++;R<C&&(B=t.charAt(R),o(B));)P+=B,R++;if(B=t.charAt(R),E=F?g:m,S="",y=P,B===p){for(R++,y+=p;R<C&&(B=t.charAt(R))!==d;){if(F&&"\n"===B)return;S+=B,R++}if(t.charAt(R)!==d)return;P+=p+S+d,N=S,R++}else{for(B=null,T="";R<C&&(B=t.charAt(R),!T||!a.call(E,B));){if(o(B)){if(!j)break;T+=B}else{if(B===c)O++;else if(B===f){if(0===O)break;O--}S+=T,T="",B===s&&(S+=s,B=t.charAt(++R)),S+=B}R++}P+=S,N=S,R=P.length}for(S="";R<C&&(B=t.charAt(R),o(B));)S+=B,R++;if(B=t.charAt(R),P+=S,S&&a.call(E,B))if(R++,P+=B,S="",x=E[B],b=P,F){for(;R<C&&(B=t.charAt(R))!==x;)B===s&&(S+=s,B=t.charAt(++R)),R++,S+=B;if((B=t.charAt(R))!==x)return;for(A=S,P+=S+B,R++;R<C&&(B=t.charAt(R),o(B));)P+=B,R++}else for(T="";R<C;){if((B=t.charAt(R))===x)_&&(S+=x+T,T=""),_=!0;else if(_){if(B===f){P+=S+x+T,A=S;break}o(B)?T+=B:(S+=x+T+B,T="",_=!1)}else S+=B;R++}if(t.charAt(R)===f)return!!n||(P+=f,N=L.decode.raw(L.unescape(N),e(y).test().end,{nonTerminated:!1}),A&&(b=e(b).test().end,A=L.decode.raw(L.unescape(A),b)),M={type:k?"image":"link",title:A||null,url:N},k?M.alt=L.decode.raw(L.unescape(w),D)||null:(I=L.enterLink(),M.children=L.tokenizeInline(w,D),I()),e(P)(M))}}}var o=n(10),i=n(221);e.exports=r,r.locator=i;var a={}.hasOwnProperty,s="\\",u="[",l="]",c="(",f=")",p="<",d=">",h="`",m={};m['"']='"',m["'"]="'";var g={};g['"']='"',g["'"]="'",g[c]=f},function(e,t,n){"use strict";function r(e,t,n){var r,i,v,y,b,T,_,E,k=this,w=t.charAt(0),x=0,C=t.length,A="",O="",S=s,N=c;if("!"===w&&(S=u,O=w,w=t.charAt(++x)),w===m){if(x++,O+=w,T="",k.options.footnotes&&t.charAt(x)===d){if(S===u)return;O+=d,x++,S=l}for(E=0;x<C;){if((w=t.charAt(x))===m)_=!0,E++;else if(w===g){if(!E)break;E--}w===h&&(T+=h,w=t.charAt(++x)),T+=w,x++}if(A=T,r=T,(w=t.charAt(x))===g){for(x++,A+=w,T="";x<C&&(w=t.charAt(x),o(w));)T+=w,x++;if(w=t.charAt(x),S!==l&&w===m){for(i="",T+=w,x++;x<C&&(w=t.charAt(x))!==m&&w!==g;)w===h&&(i+=h,w=t.charAt(++x)),i+=w,x++;w=t.charAt(x),w===g?(N=i?p:f,T+=i+w,x++):i="",A+=T,T=""}else{if(!r)return;i=r}if(N===p||!_)return A=O+A,S===s&&k.inLink?null:!!n||(S===l&&-1!==r.indexOf(" ")?e(A)({type:"footnote",children:this.tokenizeInline(r,e.now())}):(v=e.now(),v.column+=O.length,v.offset+=O.length,i=N===p?i:r,y={type:S+"Reference",identifier:a(i)},S!==s&&S!==u||(y.referenceType=N),S===s?(b=k.enterLink(),y.children=k.tokenizeInline(r,v),b()):S===u&&(y.alt=k.decode.raw(k.unescape(r),v)||null),e(A)(y)))}}}var o=n(10),i=n(221),a=n(117);e.exports=r,r.locator=i;var s="link",u="image",l="footnote",c="shortcut",f="collapsed",p="full",d="^",h="\\",m="[",g="]"},function(e,t,n){"use strict";function r(e,t,n){var r,a,l,c,f,p,d,h=this,m=0,g=t.charAt(m);if((g===s||g===u)&&t.charAt(++m)===g&&(a=h.options.pedantic,l=g,f=l+l,p=t.length,m++,c="",g="",!a||!i(t.charAt(m))))for(;m<p;){if(d=g,(g=t.charAt(m))===l&&t.charAt(m+1)===l&&(!a||!i(d))&&(g=t.charAt(m+2))!==l){if(!o(c))return;return!!n||(r=e.now(),r.column+=2,r.offset+=2,e(f+c+f)({type:"strong",children:h.tokenizeInline(c,r)}))}a||"\\"!==g||(c+=g,g=t.charAt(++m)),c+=g,m++}}var o=n(21),i=n(10),a=n(620);e.exports=r,r.locator=a;var s="*",u="_"},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);return-1===r?n:-1===n?r:r<n?r:n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,s,c,f,p,d,h,m=this,g=0,v=t.charAt(g);if((v===u||v===l)&&(s=m.options.pedantic,p=v,c=v,d=t.length,g++,f="",v="",!s||!a(t.charAt(g))))for(;g<d;){if(h=v,(v=t.charAt(g))===c&&(!s||!a(h))){if((v=t.charAt(++g))!==c){if(!o(f)||h===c)return;if(!s&&c===l&&i(v)){f+=c;continue}return!!n||(r=e.now(),r.column++,r.offset++,e(p+f+c)({type:"emphasis",children:m.tokenizeInline(f,r)}))}f+=c}s||"\\"!==v||(f+=v,v=t.charAt(++g)),f+=v,g++}}var o=n(21),i=n(622),a=n(10),s=n(623);e.exports=r,r.locator=s;var u="*",l="_"},function(e,t,n){"use strict";function r(e){return i.test("number"===typeof e?o(e):e.charAt(0))}e.exports=r;var o=String.fromCharCode,i=/\w/},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);return-1===r?n:-1===n?r:r<n?r:n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,i,u,l=this,c="",f="",p="",d="";if(l.options.gfm&&t.charAt(0)===a&&t.charAt(1)===a&&!o(t.charAt(2)))for(r=1,i=t.length,u=e.now(),u.column+=2,u.offset+=2;++r<i;){if((c=t.charAt(r))===a&&f===a&&(!p||!o(p)))return!!n||e(s+d+s)({type:"delete",children:l.tokenizeInline(d,u)});d+=f,p=f,f=c}}var o=n(10),i=n(625);e.exports=r,r.locator=i;var a="~",s="~~"},function(e,t,n){"use strict";function r(e,t){return e.indexOf("~~",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r,i,s,u,l,c,f,p,d=t.length,h=0,m="",g="";h<d&&t.charAt(h)===a;)m+=a,h++;if(m){for(l=m,u=h,m="",p=t.charAt(h),s=0;h<d;){if(c=p,p=t.charAt(h+1),c===a?(s++,g+=c):(s=0,m+=c),s&&p!==a){if(s===u){l+=m+g,f=!0;break}m+=g,g=""}h++}if(!f){if(u%2!==0)return;m=""}if(n)return!0;for(r="",i="",d=m.length,h=-1;++h<d;)c=m.charAt(h),o(c)?i+=c:(i&&(r&&(r+=i),i=""),r+=c);return e(l)({type:"inlineCode",value:r})}}var o=n(10),i=n(627);e.exports=r,r.locator=i;var a="`"},function(e,t,n){"use strict";function r(e,t){return e.indexOf("`",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r,o=t.length,a=-1,s="";++a<o;){if("\n"===(r=t.charAt(a))){if(a<i)return;return!!n||(s+=r,e(s)({type:"break"}))}if(" "!==r)return;s+=r}}var o=n(629);e.exports=r,r.locator=o;var i=2},function(e,t,n){"use strict";function r(e,t){for(var n=e.indexOf("\n",t);n>t&&" "===e.charAt(n-1);)n--;return n}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,o,i,a,s,u,l,c,f,p,d=this;if(n)return!0;for(r=d.inlineMethods,a=r.length,o=d.inlineTokenizers,i=-1,f=t.length;++i<a;)"text"!==(c=r[i])&&o[c]&&(l=o[c].locator,l||e.file.fail("Missing locator: `"+c+"`"),-1!==(u=l.call(d,t,1))&&u<f&&(f=u));s=t.slice(0,f),p=e.now(),d.decode(s,p,function(t,n,r){e(r||t)({type:"text",value:t})})}e.exports=r},function(e,t,n){"use strict";function r(){return o}function o(e){function t(e){var t=s.slug(i(e));e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=t,e.data.hProperties.id=t}s.reset(),a(e,"heading",t)}var i=n(632),a=n(46),s=n(633)();e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)||e.children&&e.children.map(r).join("")||""}function o(e){return e?e.value?e.value:(e.alt?e.alt:e.title)||"":""}e.exports=r},function(e,t,n){function r(){var e=this;if(!(e instanceof r))return new r;e.reset()}function o(e){return e.toLowerCase()}function i(e,t){var n=/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@[\]^`{|}~]/g;return"string"!==typeof e?"":(t||(e=e.replace(/[A-Z]+/g,o)),e.trim().replace(n,"").replace(a(),"").replace(s,"-"))}var a=n(634);e.exports=r,r.prototype.slug=function(e,t){t=!0===t;var n=this,r=i(e,t),o=n.occurrences[r];return n.occurrences.hasOwnProperty(r)?o++:o=0,n.occurrences[r]=o,o&&(r=r+"-"+o),r},r.prototype.reset=function(){this.occurrences={}};var s=/\s/g},function(e,t){e.exports=function(){return/[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2694\u2696\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD79\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED0\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3]|\uD83E[\uDD10-\uDD18\uDD80-\uDD84\uDDC0]|\uD83C\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uD83C\uDDFE\uD83C[\uDDEA\uDDF9]|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDFC\uD83C[\uDDEB\uDDF8]|\uD83C\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uD83C\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF8\uDDFE\uDDFF]|\uD83C\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uD83C\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uD83C\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uD83C\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uD83C\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uD83C\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uD83C\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uD83C\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uD83C\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uD83C\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uD83C\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uD83C\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uD83C\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uD83C\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uD83C\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uD83C\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|[#\*0-9]\u20E3/g}},function(e,t,n){"use strict";function r(){function e(e,t,n){for(var r,o=t.length,i=-1,a="";++i<o;){if("\n"===(r=t.charAt(i)))return!!n||(a+=r,e(a)({type:"break"}));if(" "!==r)return;a+=r}}var t,n=this.Parser;if(!o(n))throw new Error("Missing parser to attach `remark-breaks` to");t=n.prototype.inlineTokenizers,e.locator=t.break.locator,t.break=e}function o(e){return Boolean(e&&e.prototype&&e.prototype.inlineTokenizers&&e.prototype.inlineTokenizers.break&&e.prototype.inlineTokenizers.break.locator)}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&!e.process&&(t=e,e=null),e?o(e,t):i(t)}function o(e,t){function n(n,r,o){function i(e){o(e)}e.run(a(n,t),r,i)}return n}function i(e){function t(t){return a(t,e)}return t}var a=n(637);e.exports=r},function(e,t,n){"use strict";e.exports=n(638)},function(e,t,n){"use strict";function r(e,t){function n(e,t){var n,r;return e&&"data"in e&&(n=e.data,"element"===t.type&&n.hName&&(t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=i(t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},l(r)||(t.position={start:u.start(r),end:u.end(r)}),t}function r(e,t,r,o){return(void 0===o||null===o)&&"object"===typeof r&&"length"in r&&(o=r,r={}),n(e,{type:"element",tagName:t,properties:r||{},children:o||[]})}function o(e){r.footnotes.push(e)}var a=t||{},f=a.allowDangerousHTML;return r.dangerous=f,r.definition=c(e,a),r.footnotes=[],r.augment=n,r.handlers=i(d,a.handlers||{}),s(e,"footnoteDefinition",o),r}function o(e,t){var n=r(e,t),o=f(n,e),i=p(n);return o&&o.children&&i&&(o.children=o.children.concat(a("text","\n"),i)),o}e.exports=o;var i=n(8),a=n(14),s=n(46),u=n(119),l=n(639),c=n(120),f=n(222),p=n(640),d=n(641)},function(e,t,n){"use strict";function r(e){var t=o(o(e).position),n=o(t.start),r=o(t.end);return!n.line||!n.column||!r.line||!r.column}function o(e){return e&&"object"===typeof e?e:{}}e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.footnotes,r=n.length,s=-1,u=[];if(!r)return null;for(;++s<r;)t=n[s],u[s]={type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:t.children.concat({type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"\u21a9"}]}),position:t.position};return e(null,"div",{className:["footnotes"]},a([o(e),i(e,{type:"list",ordered:!0,children:u})],!0))}e.exports=r;var o=n(223),i=n(224),a=n(35)},function(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(642),break:n(643),code:n(644),delete:n(646),emphasis:n(647),footnoteReference:n(225),footnote:n(648),heading:n(649),html:n(650),imageReference:n(651),image:n(652),inlineCode:n(653),linkReference:n(654),link:n(655),listItem:n(656),list:n(224),paragraph:n(657),root:n(658),strong:n(659),table:n(660),text:n(661),thematicBreak:n(223),toml:r,yaml:r,definition:r,footnoteDefinition:r}},function(e,t,n){"use strict";function r(e,t){return e(t,"blockquote",o(i(e,t),!0))}e.exports=r;var o=n(35),i=n(9)},function(e,t,n){"use strict";function r(e,t){return[e(t,"br"),o("text","\n")]}e.exports=r;var o=n(14)},function(e,t,n){"use strict";function r(e,t){var n=t.value?o(t.value+"\n"):"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return r&&(a.className=["language-"+r]),e(t.position,"pre",[e(t,"code",a,[i("text",n)])])}e.exports=r;var o=n(645),i=n(14)},function(e,t,n){"use strict";function r(e,t){var n,r,u="string"===typeof e,l=u&&e.length,c=0,f=-1,p=-1,d=t||4,h=[];if(!u)throw new Error("detab expected string");for(;++f<l;)n=e.charCodeAt(f),n===i?(r=d-(p+1)%d,p+=r,h.push(e.slice(c,f)+o(" ",r)),c=f+1):n===a||n===s?p=-1:p++;return h.push(e.slice(c)),h.join("")}e.exports=r;var o=n(11),i=9,a=10,s=13},function(e,t,n){"use strict";function r(e,t){return e(t,"del",o(e,t))}e.exports=r;var o=n(9)},function(e,t,n){"use strict";function r(e,t){return e(t,"em",o(e,t))}e.exports=r;var o=n(9)},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=1,i=e.footnotes,a=i.length,s=-1;++s<a;)n[s]=i[s].identifier;for(;-1!==n.indexOf(String(r));)r++;return r=String(r),i.push({type:"footnoteDefinition",identifier:r,children:[{type:"paragraph",children:t.children}],position:t.position}),o(e,{type:"footnoteReference",identifier:r,position:t.position})}e.exports=r;var o=n(225)},function(e,t,n){"use strict";function r(e,t){return e(t,"h"+t.depth,o(e,t))}e.exports=r;var o=n(9)},function(e,t,n){"use strict";function r(e,t){return e.dangerous?e.augment(t,o("raw",t.value)):null}e.exports=r;var o=n(14)},function(e,t,n){"use strict";function r(e,t){var n=e.definition(t.identifier),r={src:o(n&&n.url||""),alt:t.alt};return n&&null!==n.title&&void 0!==n.title&&(r.title=n.title),i(e,t,n)||e(t,"img",r)}e.exports=r;var o=n(72),i=n(226)},function(e,t,n){"use strict";function r(e,t){var n={src:o(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}var o=n(72);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e(t,"code",[i("text",o(t.value))])}e.exports=r;var o=n(118),i=n(14)},function(e,t,n){"use strict";function r(e,t){var n=e.definition(t.identifier),r={href:o(n&&n.url||"")};return n&&null!==n.title&&void 0!==n.title&&(r.title=n.title),i(e,t,n)||e(t,"a",r,a(e,t))}e.exports=r;var o=n(72),i=n(226),a=n(9)},function(e,t,n){"use strict";function r(e,t){var n={href:o(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,i(e,t))}var o=n(72),i=n(9);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,s,u=t.children,l=u[0],c={},f=!1;return n&&n.loose||1!==u.length||"paragraph"!==l.type||(f=!0),r=a(e,f?l:t),"boolean"===typeof t.checked&&(f||l&&"paragraph"===l.type||r.unshift(e(null,"p",[])),s=f?r:r[0].children,0!==s.length&&s.unshift(o("text"," ")),s.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),c.className=["task-list-item"]),f||0===r.length||(r=i(r,!0)),e(t,"li",c,r)}e.exports=r;var o=n(14),i=n(35),a=n(9)},function(e,t,n){"use strict";function r(e,t){return e(t,"p",o(e,t))}e.exports=r;var o=n(9)},function(e,t,n){"use strict";function r(e,t){return e.augment(t,o("root",i(a(e,t))))}e.exports=r;var o=n(14),i=n(35),a=n(9)},function(e,t,n){"use strict";function r(e,t){return e(t,"strong",o(e,t))}e.exports=r;var o=n(9)},function(e,t,n){"use strict";function r(e,t){for(var n,r,s,u,l,c=t.children,f=c.length,p=t.align,d=p.length,h=[];f--;){for(r=c[f].children,u=0===f?"th":"td",n=d,s=[];n--;)l=r[n],s[n]=e(l,u,{align:p[n]},l?i(a(e,l)):[]);h[f]=e(c[f],"tr",i(s,!0))}return e(t,"table",i([e(h[0].position,"thead",i([h[0]],!0)),e({start:o.start(h[1]),end:o.end(h[h.length-1])},"tbody",i(h.slice(1),!0))],!0))}e.exports=r;var o=n(119),i=n(35),a=n(9)},function(e,t,n){"use strict";function r(e,t){return e.augment(t,o("text",i(t.value)))}e.exports=r;var o=n(14),i=n(662)},function(e,t,n){"use strict";function r(e){return String(e).replace(o,i)}e.exports=r;var o=/[ \t]*\n+[ \t]*/g,i="\n"},function(e,t,n){"use strict";function r(e){function t(e){function t(e,t){var r,a,c,m,g=e.children||[],v=g.length,y=t.length,b=-1;if("element"===e.type&&"head"===e.tagName&&(h=!0),h&&"element"===e.type&&"body"===e.tagName&&(h=!1),v&&o(e,h)&&!i(t.concat(e))){for(u||y--;++b<v;)c=g[b],"text"===c.type&&(-1!==c.value.indexOf("\n")&&(m=!0),c.value=c.value.replace(d,"$&"+l(s,y)));for(r=[],b=-1,e.children=r;++b<v;)c=g[b],(o(c,h)||m&&0===b)&&r.push({type:"text",value:(a&&n(a)&&n(c)?f:p)+l(s,y)}),a=c,r.push(c);(m||o(a,h))&&r.push({type:"text",value:p+l(s,y-1)})}}var r=a(e),h=!1;return c(r,t),r}function n(e){return"element"===e.type&&0!==h.length&&-1!==h.indexOf(e.tagName)}var r=e||{},s=r.indent||2,u=r.indentInitial,h=r.blanks||[];return"number"===typeof s&&(s=l(" ",s)),null!==u&&void 0!==u||(u=!0),t}function o(e,t){return"root"===e.type||"element"===e.type&&("script"===e.tagName||!s(e)||t)}function i(e){for(var t=e.length;t--;)if(-1!==u.indexOf(e[t].tagName))return!0;return!1}var a=n(664)({newlines:!0}),s=n(667),u=n(227),l=n(11),c=n(668);e.exports=r;var f="\n\n",p="\n",d=/\n/g},function(e,t,n){"use strict";function r(e){function t(t){return o(t,e||{})}return t}function o(e,t){function n(e,t,n){var i,a,u,f,g,v;if(c("text",e)){if(a=n.children[t-1],u=n.children[t+1],f=o(e.value),v=f.length,g=0,s(f.charAt(0))&&r(a)&&g++,s(f.charAt(v-1))&&r(u)&&v--,!(f=f.slice(g,v)))return n.children.splice(t,1),t;e.value=f}m||h||(i=p(e,"head"),h=i,m=i),e.children&&!p(e,l)&&d(e),i&&(h=!1)}function r(e){return!e||h||!i(e)}var o=t.newlines?a:u,d=f(n),h=!1,m=!1;return n(e),e}function i(e){return c("text",e)||p(e,g)||h(e)||m(e)||p(e,"meta")&&d(e,"itemProp")}function a(e){return String(e).replace(/\s+/g,function(e){return-1===e.indexOf("\n")?" ":"\n"})}function s(e){return" "===e||"\n"===e}var u=n(118),l=n(227),c=n(34),f=n(228),p=n(36),d=n(121),h=n(229),m=n(230),g=n(666);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r,i=-1;if(!e)throw new Error("Iterate requires that |this| not be "+e);if(!o.call(e,"length"))throw new Error("Iterate requires that |this| has a `length`");if("function"!==typeof t)throw new Error("`callback` must be a function");for(;++i<e.length;)i in e&&"number"===typeof(r=t.call(n,e[i],i,e))&&(r<0&&(i=0),i=r-1)}e.exports=r;var o={}.hasOwnProperty},function(e,t){e.exports=["a","abbr","acronym","b","basefont","big","bdi","bdo","blink","button","cite","code","data","del","dfn","em","font","i","input","ins","kbd","keygen","label","mark","marquee","meter","nobr","output","progress","q","ruby","s","samp","select","small","spacer","span","strong","sub","sup","textarea","time","tt","u","var"]},function(e,t,n){function r(e){return"text"===e.type||o(e,u)||a(e)||s(e)||o(e,"meta")&&i(e,"itemProp")}var o=n(36),i=n(121),a=n(229),s=n(230);e.exports=r;var u=["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]},function(e,t,n){"use strict";function r(e,t,n){function r(e){var r;return t&&e.type!==t||(r=n(e,i.concat())),e.children&&!1!==r?o(e.children,e):r}function o(e,t){var n,o=e.length,a=-1;for(i.push(t);++a<o;)if((n=e[a])&&!1===r(n))return!1;return i.pop(),!0}var i=[];"function"===typeof t&&(n=t,t=null),r(e)}e.exports=r},function(e,t,n){"use strict";function r(){return o}var o=n(670);e.exports=r},function(e,t,n){"use strict";function r(e,t){function n(e){var t=0,n=-1;for(e&&(t=e.length);++n<t;)S(e[n])}function r(e){n(e.children)}function a(e){var t=-1!==h.indexOf(e.tagName);O._processToken(i(e),m.html),n(e.children),t||O._processToken(s(e))}function b(e){var t=f.start(e);O._processToken({type:y,chars:e.value,location:{line:t.line,col:t.column,startOffset:t.offset,endOffset:f.end(e).offset}})}function T(e){var t=d(e);O._processToken({type:k,name:t.name,forceQuirks:!1,publicId:t.publicId,systemId:t.systemId})}function _(e){var t=f.start(e);O._processToken({type:E,data:e.value,location:{line:t.line,col:t.column,startOffset:t.offset,endOffset:f.end(e).offset}})}function w(e){var t=f.start(e).offset;C.html=null,C.lastCharPos=-1,C.pos=-1,null!==t&&(C.__locTracker.droppedBufferSize=t),O.tokenizer.write(e.value),o(O)}var C,A,O=new c({locationInfo:!0}),S=g("type"),N=l(e);return S.handlers.root=r,S.handlers.element=a,S.handlers.text=b,S.handlers.comment=_,S.handlers.doctype=T,S.handlers.raw=w,S.unknown=u,A=p(N===x?function(){var t,n,r;return t={nodeName:"template",tagName:"template",attrs:[],namespaceURI:m.html,childNodes:[]},n={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:m.html,childNodes:[]},r={nodeName:"#document-fragment",childNodes:[]},O._bootstrap(n,t),O._pushTmplInsertionMode(v),O._initTokenizerForFragmentParsing(),O._insertFakeRootElement(),O._resetInsertionMode(),O._findFormInFragmentContext(),C=O.tokenizer.preprocessor,S(e),O._adoptNodes(n.childNodes[0],r),r}():function(){var t=O.treeAdapter.createDocument();return O._bootstrap(t,null),S(e),t}(),t),"root"!==e.type&&1===A.children.length?A.children[0]:A}function o(e){for(var t,n=e.tokenizer;!e.stopped;){if(e._setupTokenizerCDATAMode(),t=n.getNextToken(),t.type===_){t=n.currentCharacterToken||n.currentToken,t&&e._processInputToken(t),n.currentToken=null,n.currentCharacterToken=null;break}e._processInputToken(t)}}function i(e){var t=f.start(e),n=f.end(e);return{type:b,tagName:e.tagName,selfClosing:!1,attrs:a(e),location:{line:t.line,col:t.column,startOffset:t.offset,endOffset:n.offset,attrs:{},startTag:{line:t.line,col:t.column,startOffset:t.offset,endOffset:n.offset}}}}function a(e){return d({type:"element",properties:e.properties}).attrs}function s(e){var t=f.end(e);return{type:T,tagName:e.tagName,attrs:[],location:{line:t.line,col:t.column,startOffset:t.offset,endOffset:t.offset}}}function u(e){throw new Error("Cannot compile `"+e.type+"` node")}function l(e){var t="root"===e.type?e.children[0]:e;return!t||"doctype"!==t.type&&"html"!==t.tagName?x:w}var c=n(671),f=n(119),p=n(685),d=n(690),h=n(238),m=n(236),g=n(237);e.exports=r;var v="IN_TEMPLATE_MODE",y="CHARACTER_TOKEN",b="START_TAG_TOKEN",T="END_TAG_TOKEN",_="HIBERNATION_TOKEN",E="COMMENT_TOKEN",k="DOCTYPE_TOKEN",w="document",x="fragment"},function(e,t,n){"use strict";function r(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ee(e,t),n}function o(e,t){for(var n=null,r=e.openElements.stackTop;r>=0;r--){var o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o)&&(n=o)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function i(e,t,n){for(var r=t,o=e.openElements.getCommonAncestor(t),i=0,s=o;s!==n;i++,s=o){o=e.openElements.getCommonAncestor(s);var u=e.activeFormattingElements.getElementEntry(s),l=u&&i>=Rt;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=a(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function a(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function s(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var r=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);r===Nt.TEMPLATE&&o===Dt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function u(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),o=n.token,i=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function l(e,t){for(var n,a=0;a<Pt&&(n=r(e,t,n));a++){var l=o(e,n);if(!l)break;e.activeFormattingElements.bookmark=n;var c=i(e,l,n.element),f=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(c),s(e,f,c),u(e,l,n)}}function c(){}function f(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function p(e,t){e._appendCommentNode(t,e.openElements.items[0])}function d(e,t){e._appendCommentNode(t,e.document)}function h(e,t){e._insertCharacters(t)}function m(e){e.stopped=!0}function g(e,t){e._setDocumentType(t);var n=t.forceQuirks?St.DOCUMENT_MODE.QUIRKS:Ct.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Bt}function v(e,t){e.treeAdapter.setDocumentMode(e.document,St.DOCUMENT_MODE.QUIRKS),e.insertionMode=Bt,e._processToken(t)}function y(e,t){t.tagName===Nt.HTML?(e._insertElement(t,Dt.HTML),e.insertionMode=jt):T(e,t)}function b(e,t){var n=t.tagName;n!==Nt.HTML&&n!==Nt.HEAD&&n!==Nt.BODY&&n!==Nt.BR||T(e,t)}function T(e,t){e._insertFakeRootElement(),e.insertionMode=jt,e._processToken(t)}function _(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.HEAD?(e._insertElement(t,Dt.HTML),e.headElement=e.openElements.current,e.insertionMode=Ft):k(e,t)}function E(e,t){var n=t.tagName;n!==Nt.HEAD&&n!==Nt.BODY&&n!==Nt.HTML&&n!==Nt.BR||k(e,t)}function k(e,t){e._insertFakeElement(Nt.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ft,e._processToken(t)}function w(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.BASE||n===Nt.BASEFONT||n===Nt.BGSOUND||n===Nt.LINK||n===Nt.META?e._appendElement(t,Dt.HTML):n===Nt.TITLE?e._switchToTextParsing(t,Tt.MODE.RCDATA):n===Nt.NOSCRIPT||n===Nt.NOFRAMES||n===Nt.STYLE?e._switchToTextParsing(t,Tt.MODE.RAWTEXT):n===Nt.SCRIPT?e._switchToTextParsing(t,Tt.MODE.SCRIPT_DATA):n===Nt.TEMPLATE?(e._insertTemplate(t,Dt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Qt,e._pushTmplInsertionMode(Qt)):n!==Nt.HEAD&&C(e,t)}function x(e,t){var n=t.tagName;n===Nt.HEAD?(e.openElements.pop(),e.insertionMode=Ht):n===Nt.BODY||n===Nt.BR||n===Nt.HTML?C(e,t):n===Nt.TEMPLATE&&e.openElements.tmplCount>0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Nt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function C(e,t){e.openElements.pop(),e.insertionMode=Ht,e._processToken(t)}function A(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.BODY?(e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=Ut):n===Nt.FRAMESET?(e._insertElement(t,Dt.HTML),e.insertionMode=en):n===Nt.BASE||n===Nt.BASEFONT||n===Nt.BGSOUND||n===Nt.LINK||n===Nt.META||n===Nt.NOFRAMES||n===Nt.SCRIPT||n===Nt.STYLE||n===Nt.TEMPLATE||n===Nt.TITLE?(e.openElements.push(e.headElement),w(e,t),e.openElements.remove(e.headElement)):n!==Nt.HEAD&&S(e,t)}function O(e,t){var n=t.tagName;n===Nt.BODY||n===Nt.HTML||n===Nt.BR?S(e,t):n===Nt.TEMPLATE&&x(e,t)}function S(e,t){e._insertFakeElement(Nt.BODY),e.insertionMode=Ut,e._processToken(t)}function N(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function D(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function I(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function M(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function L(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Dt.HTML),e.insertionMode=en)}function P(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML)}function R(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==Nt.H1&&n!==Nt.H2&&n!==Nt.H3&&n!==Nt.H4&&n!==Nt.H5&&n!==Nt.H6||e.openElements.pop(),e._insertElement(t,Dt.HTML)}function B(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function j(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),n||(e.formElement=e.openElements.current))}function F(e,t){e.framesetOk=!1;for(var n=t.tagName,r=e.openElements.stackTop;r>=0;r--){var o=e.openElements.items[r],i=e.treeAdapter.getTagName(o),a=null;if(n===Nt.LI&&i===Nt.LI?a=Nt.LI:n!==Nt.DD&&n!==Nt.DT||i!==Nt.DD&&i!==Nt.DT||(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==Nt.ADDRESS&&i!==Nt.DIV&&i!==Nt.P&&e._isSpecialElement(o))break}e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML)}function H(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.tokenizer.state=Tt.MODE.PLAINTEXT}function U(e,t){e.openElements.hasInScope(Nt.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Nt.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1}function z(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Nt.A);n&&(l(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function K(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function q(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Nt.NOBR)&&(l(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Dt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function W(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function G(e,t){e.treeAdapter.getDocumentMode(e.document)!==St.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode=Kt}function V(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML),e.framesetOk=!1}function Y(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Dt.HTML);var n=Tt.getTokenAttr(t,It.TYPE);n&&n.toLowerCase()===Lt||(e.framesetOk=!1)}function $(e,t){e._appendElement(t,Dt.HTML)}function J(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e.openElements.currentTagName===Nt.MENUITEM&&e.openElements.pop(),e._appendElement(t,Dt.HTML),e.framesetOk=!1}function X(e,t){t.tagName=Nt.IMG,V(e,t)}function Q(e,t){e._insertElement(t,Dt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Tt.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=zt}function Z(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Tt.MODE.RAWTEXT)}function ee(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Tt.MODE.RAWTEXT)}function te(e,t){e._switchToTextParsing(t,Tt.MODE.RAWTEXT)}function ne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML),e.framesetOk=!1,e.insertionMode===Kt||e.insertionMode===Wt||e.insertionMode===Vt||e.insertionMode===Yt||e.insertionMode===$t?e.insertionMode=Xt:e.insertionMode=Jt}function re(e,t){e.openElements.currentTagName===Nt.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML)}function oe(e,t){e.openElements.hasInScope(Nt.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Dt.HTML)}function ie(e,t){e.openElements.hasInScope(Nt.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Nt.RTC),e._insertElement(t,Dt.HTML)}function ae(e,t){e.openElements.currentTagName===Nt.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML)}function se(e,t){e.openElements.hasInButtonScope(Nt.P)&&e._closePElement(),e.openElements.currentTagName===Nt.MENUITEM&&e.openElements.pop(),e._insertElement(t,Dt.HTML)}function ue(e,t){e._reconstructActiveFormattingElements(),At.adjustTokenMathMLAttrs(t),At.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.MATHML):e._insertElement(t,Dt.MATHML)}function le(e,t){e._reconstructActiveFormattingElements(),At.adjustTokenSVGAttrs(t),At.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Dt.SVG):e._insertElement(t,Dt.SVG)}function ce(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Dt.HTML)}function fe(e,t){var n=t.tagName;switch(n.length){case 1:n===Nt.I||n===Nt.S||n===Nt.B||n===Nt.U?K(e,t):n===Nt.P?P(e,t):n===Nt.A?z(e,t):ce(e,t);break;case 2:n===Nt.DL||n===Nt.OL||n===Nt.UL?P(e,t):n===Nt.H1||n===Nt.H2||n===Nt.H3||n===Nt.H4||n===Nt.H5||n===Nt.H6?R(e,t):n===Nt.LI||n===Nt.DD||n===Nt.DT?F(e,t):n===Nt.EM||n===Nt.TT?K(e,t):n===Nt.BR?V(e,t):n===Nt.HR?J(e,t):n===Nt.RB?oe(e,t):n===Nt.RT||n===Nt.RP?ie(e,t):n!==Nt.TH&&n!==Nt.TD&&n!==Nt.TR&&ce(e,t);break;case 3:n===Nt.DIV||n===Nt.DIR||n===Nt.NAV?P(e,t):n===Nt.PRE?B(e,t):n===Nt.BIG?K(e,t):n===Nt.IMG||n===Nt.WBR?V(e,t):n===Nt.XMP?Z(e,t):n===Nt.SVG?le(e,t):n===Nt.RTC?oe(e,t):n!==Nt.COL&&ce(e,t);break;case 4:n===Nt.HTML?I(e,t):n===Nt.BASE||n===Nt.LINK||n===Nt.META?w(e,t):n===Nt.BODY?M(e,t):n===Nt.MAIN?P(e,t):n===Nt.FORM?j(e,t):n===Nt.CODE||n===Nt.FONT?K(e,t):n===Nt.NOBR?q(e,t):n===Nt.AREA?V(e,t):n===Nt.MATH?ue(e,t):n===Nt.MENU?se(e,t):n!==Nt.HEAD&&ce(e,t);break;case 5:n===Nt.STYLE||n===Nt.TITLE?w(e,t):n===Nt.ASIDE?P(e,t):n===Nt.SMALL?K(e,t):n===Nt.TABLE?G(e,t):n===Nt.EMBED?V(e,t):n===Nt.INPUT?Y(e,t):n===Nt.PARAM||n===Nt.TRACK?$(e,t):n===Nt.IMAGE?X(e,t):n!==Nt.FRAME&&n!==Nt.TBODY&&n!==Nt.TFOOT&&n!==Nt.THEAD&&ce(e,t);break;case 6:n===Nt.SCRIPT?w(e,t):n===Nt.CENTER||n===Nt.FIGURE||n===Nt.FOOTER||n===Nt.HEADER||n===Nt.HGROUP?P(e,t):n===Nt.BUTTON?U(e,t):n===Nt.STRIKE||n===Nt.STRONG?K(e,t):n===Nt.APPLET||n===Nt.OBJECT?W(e,t):n===Nt.KEYGEN?V(e,t):n===Nt.SOURCE?$(e,t):n===Nt.IFRAME?ee(e,t):n===Nt.SELECT?ne(e,t):n===Nt.OPTION?re(e,t):ce(e,t);break;case 7:n===Nt.BGSOUND?w(e,t):n===Nt.DETAILS||n===Nt.ADDRESS||n===Nt.ARTICLE||n===Nt.SECTION||n===Nt.SUMMARY?P(e,t):n===Nt.LISTING?B(e,t):n===Nt.MARQUEE?W(e,t):n===Nt.NOEMBED?te(e,t):n!==Nt.CAPTION&&ce(e,t);break;case 8:n===Nt.BASEFONT?w(e,t):n===Nt.MENUITEM?ae(e,t):n===Nt.FRAMESET?L(e,t):n===Nt.FIELDSET?P(e,t):n===Nt.TEXTAREA?Q(e,t):n===Nt.TEMPLATE?w(e,t):n===Nt.NOSCRIPT?te(e,t):n===Nt.OPTGROUP?re(e,t):n!==Nt.COLGROUP&&ce(e,t);break;case 9:n===Nt.PLAINTEXT?H(e,t):ce(e,t);break;case 10:n===Nt.BLOCKQUOTE||n===Nt.FIGCAPTION?P(e,t):ce(e,t);break;default:ce(e,t)}}function pe(e){e.openElements.hasInScope(Nt.BODY)&&(e.insertionMode=Zt)}function de(e,t){e.openElements.hasInScope(Nt.BODY)&&(e.insertionMode=Zt,e._processToken(t))}function he(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function me(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Nt.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Nt.FORM):e.openElements.remove(n))}function ge(e){e.openElements.hasInButtonScope(Nt.P)||e._insertFakeElement(Nt.P),e._closePElement()}function ve(e){e.openElements.hasInListItemScope(Nt.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Nt.LI),e.openElements.popUntilTagNamePopped(Nt.LI))}function ye(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function be(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Te(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function _e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Nt.BR),e.openElements.pop(),e.framesetOk=!1}function Ee(e,t){for(var n=t.tagName,r=e.openElements.stackTop;r>0;r--){var o=e.openElements.items[r];if(e.treeAdapter.getTagName(o)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(o);break}if(e._isSpecialElement(o))break}}function ke(e,t){var n=t.tagName;switch(n.length){case 1:n===Nt.A||n===Nt.B||n===Nt.I||n===Nt.S||n===Nt.U?l(e,t):n===Nt.P?ge(e,t):Ee(e,t);break;case 2:n===Nt.DL||n===Nt.UL||n===Nt.OL?he(e,t):n===Nt.LI?ve(e,t):n===Nt.DD||n===Nt.DT?ye(e,t):n===Nt.H1||n===Nt.H2||n===Nt.H3||n===Nt.H4||n===Nt.H5||n===Nt.H6?be(e,t):n===Nt.BR?_e(e,t):n===Nt.EM||n===Nt.TT?l(e,t):Ee(e,t);break;case 3:n===Nt.BIG?l(e,t):n===Nt.DIR||n===Nt.DIV||n===Nt.NAV?he(e,t):Ee(e,t);break;case 4:n===Nt.BODY?pe(e,t):n===Nt.HTML?de(e,t):n===Nt.FORM?me(e,t):n===Nt.CODE||n===Nt.FONT||n===Nt.NOBR?l(e,t):n===Nt.MAIN||n===Nt.MENU?he(e,t):Ee(e,t);break;case 5:n===Nt.ASIDE?he(e,t):n===Nt.SMALL?l(e,t):Ee(e,t);break;case 6:n===Nt.CENTER||n===Nt.FIGURE||n===Nt.FOOTER||n===Nt.HEADER||n===Nt.HGROUP?he(e,t):n===Nt.APPLET||n===Nt.OBJECT?Te(e,t):n===Nt.STRIKE||n===Nt.STRONG?l(e,t):Ee(e,t);break;case 7:n===Nt.ADDRESS||n===Nt.ARTICLE||n===Nt.DETAILS||n===Nt.SECTION||n===Nt.SUMMARY?he(e,t):n===Nt.MARQUEE?Te(e,t):Ee(e,t);break;case 8:n===Nt.FIELDSET?he(e,t):n===Nt.TEMPLATE?x(e,t):Ee(e,t);break;case 10:n===Nt.BLOCKQUOTE||n===Nt.FIGCAPTION?he(e,t):Ee(e,t);break;default:Ee(e,t)}}function we(e,t){e.tmplInsertionModeStackTop>-1?it(e,t):e.stopped=!0}function xe(e,t){t.tagName===Nt.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Ce(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Ae(e,t){var n=e.openElements.currentTagName;n===Nt.TABLE||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD||n===Nt.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=qt,e._processToken(t)):je(e,t)}function Oe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Dt.HTML),e.insertionMode=Wt}function Se(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Gt}function Ne(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Nt.COLGROUP),e.insertionMode=Gt,e._processToken(t)}function De(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Vt}function Ie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Nt.TBODY),e.insertionMode=Vt,e._processToken(t)}function Me(e,t){e.openElements.hasInTableScope(Nt.TABLE)&&(e.openElements.popUntilTagNamePopped(Nt.TABLE),e._resetInsertionMode(),e._processToken(t))}function Le(e,t){var n=Tt.getTokenAttr(t,It.TYPE);n&&n.toLowerCase()===Lt?e._appendElement(t,Dt.HTML):je(e,t)}function Pe(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Dt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Re(e,t){var n=t.tagName;switch(n.length){case 2:n===Nt.TD||n===Nt.TH||n===Nt.TR?Ie(e,t):je(e,t);break;case 3:n===Nt.COL?Ne(e,t):je(e,t);break;case 4:n===Nt.FORM?Pe(e,t):je(e,t);break;case 5:n===Nt.TABLE?Me(e,t):n===Nt.STYLE?w(e,t):n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD?De(e,t):n===Nt.INPUT?Le(e,t):je(e,t);break;case 6:n===Nt.SCRIPT?w(e,t):je(e,t);break;case 7:n===Nt.CAPTION?Oe(e,t):je(e,t);break;case 8:n===Nt.COLGROUP?Se(e,t):n===Nt.TEMPLATE?w(e,t):je(e,t);break;default:je(e,t)}}function Be(e,t){var n=t.tagName;n===Nt.TABLE?e.openElements.hasInTableScope(Nt.TABLE)&&(e.openElements.popUntilTagNamePopped(Nt.TABLE),e._resetInsertionMode()):n===Nt.TEMPLATE?x(e,t):n!==Nt.BODY&&n!==Nt.CAPTION&&n!==Nt.COL&&n!==Nt.COLGROUP&&n!==Nt.HTML&&n!==Nt.TBODY&&n!==Nt.TD&&n!==Nt.TFOOT&&n!==Nt.TH&&n!==Nt.THEAD&&n!==Nt.TR&&je(e,t)}function je(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Fe(e,t){e.pendingCharacterTokens.push(t)}function He(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ue(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)je(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function ze(e,t){var n=t.tagName;n===Nt.CAPTION||n===Nt.COL||n===Nt.COLGROUP||n===Nt.TBODY||n===Nt.TD||n===Nt.TFOOT||n===Nt.TH||n===Nt.THEAD||n===Nt.TR?e.openElements.hasInTableScope(Nt.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Nt.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Kt,e._processToken(t)):fe(e,t)}function Ke(e,t){var n=t.tagName;n===Nt.CAPTION||n===Nt.TABLE?e.openElements.hasInTableScope(Nt.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Nt.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Kt,n===Nt.TABLE&&e._processToken(t)):n!==Nt.BODY&&n!==Nt.COL&&n!==Nt.COLGROUP&&n!==Nt.HTML&&n!==Nt.TBODY&&n!==Nt.TD&&n!==Nt.TFOOT&&n!==Nt.TH&&n!==Nt.THEAD&&n!==Nt.TR&&ke(e,t)}function qe(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.COL?e._appendElement(t,Dt.HTML):n===Nt.TEMPLATE?w(e,t):Ge(e,t)}function We(e,t){var n=t.tagName;n===Nt.COLGROUP?e.openElements.currentTagName===Nt.COLGROUP&&(e.openElements.pop(),e.insertionMode=Kt):n===Nt.TEMPLATE?x(e,t):n!==Nt.COL&&Ge(e,t)}function Ge(e,t){e.openElements.currentTagName===Nt.COLGROUP&&(e.openElements.pop(),e.insertionMode=Kt,e._processToken(t))}function Ve(e,t){var n=t.tagName;n===Nt.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Dt.HTML),e.insertionMode=Yt):n===Nt.TH||n===Nt.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Nt.TR),e.insertionMode=Yt,e._processToken(t)):n===Nt.CAPTION||n===Nt.COL||n===Nt.COLGROUP||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Kt,e._processToken(t)):Re(e,t)}function Ye(e,t){var n=t.tagName;n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Kt):n===Nt.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Kt,e._processToken(t)):(n!==Nt.BODY&&n!==Nt.CAPTION&&n!==Nt.COL&&n!==Nt.COLGROUP||n!==Nt.HTML&&n!==Nt.TD&&n!==Nt.TH&&n!==Nt.TR)&&Be(e,t)}function $e(e,t){var n=t.tagName;n===Nt.TH||n===Nt.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Dt.HTML),e.insertionMode=$t,e.activeFormattingElements.insertMarker()):n===Nt.CAPTION||n===Nt.COL||n===Nt.COLGROUP||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD||n===Nt.TR?e.openElements.hasInTableScope(Nt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vt,e._processToken(t)):Re(e,t)}function Je(e,t){var n=t.tagName;n===Nt.TR?e.openElements.hasInTableScope(Nt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vt):n===Nt.TABLE?e.openElements.hasInTableScope(Nt.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vt,e._processToken(t)):n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(Nt.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Vt,e._processToken(t)):(n!==Nt.BODY&&n!==Nt.CAPTION&&n!==Nt.COL&&n!==Nt.COLGROUP||n!==Nt.HTML&&n!==Nt.TD&&n!==Nt.TH)&&Be(e,t)}function Xe(e,t){var n=t.tagName;n===Nt.CAPTION||n===Nt.COL||n===Nt.COLGROUP||n===Nt.TBODY||n===Nt.TD||n===Nt.TFOOT||n===Nt.TH||n===Nt.THEAD||n===Nt.TR?(e.openElements.hasInTableScope(Nt.TD)||e.openElements.hasInTableScope(Nt.TH))&&(e._closeTableCell(),e._processToken(t)):fe(e,t)}function Qe(e,t){var n=t.tagName;n===Nt.TD||n===Nt.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Yt):n===Nt.TABLE||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD||n===Nt.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==Nt.BODY&&n!==Nt.CAPTION&&n!==Nt.COL&&n!==Nt.COLGROUP&&n!==Nt.HTML&&ke(e,t)}function Ze(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.OPTION?(e.openElements.currentTagName===Nt.OPTION&&e.openElements.pop(),e._insertElement(t,Dt.HTML)):n===Nt.OPTGROUP?(e.openElements.currentTagName===Nt.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Nt.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Dt.HTML)):n===Nt.INPUT||n===Nt.KEYGEN||n===Nt.TEXTAREA||n===Nt.SELECT?e.openElements.hasInSelectScope(Nt.SELECT)&&(e.openElements.popUntilTagNamePopped(Nt.SELECT),e._resetInsertionMode(),n!==Nt.SELECT&&e._processToken(t)):n!==Nt.SCRIPT&&n!==Nt.TEMPLATE||w(e,t)}function et(e,t){var n=t.tagName;if(n===Nt.OPTGROUP){var r=e.openElements.items[e.openElements.stackTop-1],o=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===Nt.OPTION&&o===Nt.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Nt.OPTGROUP&&e.openElements.pop()}else n===Nt.OPTION?e.openElements.currentTagName===Nt.OPTION&&e.openElements.pop():n===Nt.SELECT&&e.openElements.hasInSelectScope(Nt.SELECT)?(e.openElements.popUntilTagNamePopped(Nt.SELECT),e._resetInsertionMode()):n===Nt.TEMPLATE&&x(e,t)}function tt(e,t){var n=t.tagName;n===Nt.CAPTION||n===Nt.TABLE||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD||n===Nt.TR||n===Nt.TD||n===Nt.TH?(e.openElements.popUntilTagNamePopped(Nt.SELECT),e._resetInsertionMode(),e._processToken(t)):Ze(e,t)}function nt(e,t){var n=t.tagName;n===Nt.CAPTION||n===Nt.TABLE||n===Nt.TBODY||n===Nt.TFOOT||n===Nt.THEAD||n===Nt.TR||n===Nt.TD||n===Nt.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Nt.SELECT),e._resetInsertionMode(),e._processToken(t)):et(e,t)}function rt(e,t){var n=t.tagName;if(n===Nt.BASE||n===Nt.BASEFONT||n===Nt.BGSOUND||n===Nt.LINK||n===Nt.META||n===Nt.NOFRAMES||n===Nt.SCRIPT||n===Nt.STYLE||n===Nt.TEMPLATE||n===Nt.TITLE)w(e,t);else{var r=an[n]||Ut;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function ot(e,t){t.tagName===Nt.TEMPLATE&&x(e,t)}function it(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Nt.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function at(e,t){t.tagName===Nt.HTML?fe(e,t):ut(e,t)}function st(e,t){t.tagName===Nt.HTML?e.fragmentContext||(e.insertionMode=nn):ut(e,t)}function ut(e,t){e.insertionMode=Ut,e._processToken(t)}function lt(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.FRAMESET?e._insertElement(t,Dt.HTML):n===Nt.FRAME?e._appendElement(t,Dt.HTML):n===Nt.NOFRAMES&&w(e,t)}function ct(e,t){t.tagName!==Nt.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===Nt.FRAMESET||(e.insertionMode=tn))}function ft(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.NOFRAMES&&w(e,t)}function pt(e,t){t.tagName===Nt.HTML&&(e.insertionMode=rn)}function dt(e,t){t.tagName===Nt.HTML?fe(e,t):ht(e,t)}function ht(e,t){e.insertionMode=Ut,e._processToken(t)}function mt(e,t){var n=t.tagName;n===Nt.HTML?fe(e,t):n===Nt.NOFRAMES&&w(e,t)}function gt(e,t){t.chars=Ot.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function vt(e,t){e._insertCharacters(t),e.framesetOk=!1}function yt(e,t){if(At.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Dt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Dt.MATHML?At.adjustTokenMathMLAttrs(t):r===Dt.SVG&&(At.adjustTokenSVGTagName(t),At.adjustTokenSVGAttrs(t)),At.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r)}}function bt(e,t){for(var n=e.openElements.stackTop;n>0;n--){var r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Dt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}var Tt=n(73),_t=n(674),Et=n(675),kt=n(676),wt=n(681),xt=n(682),Ct=n(683),At=n(684),Ot=n(74),St=n(37),Nt=St.TAG_NAMES,Dt=St.NAMESPACES,It=St.ATTRS,Mt={locationInfo:!1,treeAdapter:wt},Lt="hidden",Pt=8,Rt=3,Bt="BEFORE_HTML_MODE",jt="BEFORE_HEAD_MODE",Ft="IN_HEAD_MODE",Ht="AFTER_HEAD_MODE",Ut="IN_BODY_MODE",zt="TEXT_MODE",Kt="IN_TABLE_MODE",qt="IN_TABLE_TEXT_MODE",Wt="IN_CAPTION_MODE",Gt="IN_COLUMN_GROUP_MODE",Vt="IN_TABLE_BODY_MODE",Yt="IN_ROW_MODE",$t="IN_CELL_MODE",Jt="IN_SELECT_MODE",Xt="IN_SELECT_IN_TABLE_MODE",Qt="IN_TEMPLATE_MODE",Zt="AFTER_BODY_MODE",en="IN_FRAMESET_MODE",tn="AFTER_FRAMESET_MODE",nn="AFTER_AFTER_BODY_MODE",rn="AFTER_AFTER_FRAMESET_MODE",on=Object.create(null);on[Nt.TR]=Yt,on[Nt.TBODY]=on[Nt.THEAD]=on[Nt.TFOOT]=Vt,on[Nt.CAPTION]=Wt,on[Nt.COLGROUP]=Gt,on[Nt.TABLE]=Kt,on[Nt.BODY]=Ut,on[Nt.FRAMESET]=en;var an=Object.create(null);an[Nt.CAPTION]=an[Nt.COLGROUP]=an[Nt.TBODY]=an[Nt.TFOOT]=an[Nt.THEAD]=Kt,an[Nt.COL]=Gt,an[Nt.TR]=Vt,an[Nt.TD]=an[Nt.TH]=Yt;var sn=Object.create(null);sn.INITIAL_MODE=Object.create(null),sn.INITIAL_MODE[Tt.CHARACTER_TOKEN]=sn.INITIAL_MODE[Tt.NULL_CHARACTER_TOKEN]=v,sn.INITIAL_MODE[Tt.WHITESPACE_CHARACTER_TOKEN]=c,sn.INITIAL_MODE[Tt.COMMENT_TOKEN]=f,sn.INITIAL_MODE[Tt.DOCTYPE_TOKEN]=g,sn.INITIAL_MODE[Tt.START_TAG_TOKEN]=sn.INITIAL_MODE[Tt.END_TAG_TOKEN]=sn.INITIAL_MODE[Tt.EOF_TOKEN]=v,sn[Bt]=Object.create(null),sn[Bt][Tt.CHARACTER_TOKEN]=sn[Bt][Tt.NULL_CHARACTER_TOKEN]=T,sn[Bt][Tt.WHITESPACE_CHARACTER_TOKEN]=c,sn[Bt][Tt.COMMENT_TOKEN]=f,sn[Bt][Tt.DOCTYPE_TOKEN]=c,sn[Bt][Tt.START_TAG_TOKEN]=y,sn[Bt][Tt.END_TAG_TOKEN]=b,sn[Bt][Tt.EOF_TOKEN]=T,sn[jt]=Object.create(null),sn[jt][Tt.CHARACTER_TOKEN]=sn[jt][Tt.NULL_CHARACTER_TOKEN]=k,sn[jt][Tt.WHITESPACE_CHARACTER_TOKEN]=c,sn[jt][Tt.COMMENT_TOKEN]=f,sn[jt][Tt.DOCTYPE_TOKEN]=c,sn[jt][Tt.START_TAG_TOKEN]=_,sn[jt][Tt.END_TAG_TOKEN]=E,sn[jt][Tt.EOF_TOKEN]=k,sn[Ft]=Object.create(null),sn[Ft][Tt.CHARACTER_TOKEN]=sn[Ft][Tt.NULL_CHARACTER_TOKEN]=C,sn[Ft][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Ft][Tt.COMMENT_TOKEN]=f,sn[Ft][Tt.DOCTYPE_TOKEN]=c,sn[Ft][Tt.START_TAG_TOKEN]=w,sn[Ft][Tt.END_TAG_TOKEN]=x,sn[Ft][Tt.EOF_TOKEN]=C,sn[Ht]=Object.create(null),sn[Ht][Tt.CHARACTER_TOKEN]=sn[Ht][Tt.NULL_CHARACTER_TOKEN]=S,sn[Ht][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Ht][Tt.COMMENT_TOKEN]=f,sn[Ht][Tt.DOCTYPE_TOKEN]=c,sn[Ht][Tt.START_TAG_TOKEN]=A,sn[Ht][Tt.END_TAG_TOKEN]=O,sn[Ht][Tt.EOF_TOKEN]=S,sn[Ut]=Object.create(null),sn[Ut][Tt.CHARACTER_TOKEN]=D,sn[Ut][Tt.NULL_CHARACTER_TOKEN]=c,sn[Ut][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Ut][Tt.COMMENT_TOKEN]=f,sn[Ut][Tt.DOCTYPE_TOKEN]=c,sn[Ut][Tt.START_TAG_TOKEN]=fe,sn[Ut][Tt.END_TAG_TOKEN]=ke,sn[Ut][Tt.EOF_TOKEN]=we,sn[zt]=Object.create(null),sn[zt][Tt.CHARACTER_TOKEN]=sn[zt][Tt.NULL_CHARACTER_TOKEN]=sn[zt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[zt][Tt.COMMENT_TOKEN]=sn[zt][Tt.DOCTYPE_TOKEN]=sn[zt][Tt.START_TAG_TOKEN]=c,sn[zt][Tt.END_TAG_TOKEN]=xe,sn[zt][Tt.EOF_TOKEN]=Ce,sn[Kt]=Object.create(null),sn[Kt][Tt.CHARACTER_TOKEN]=sn[Kt][Tt.NULL_CHARACTER_TOKEN]=sn[Kt][Tt.WHITESPACE_CHARACTER_TOKEN]=Ae,sn[Kt][Tt.COMMENT_TOKEN]=f,sn[Kt][Tt.DOCTYPE_TOKEN]=c,sn[Kt][Tt.START_TAG_TOKEN]=Re,sn[Kt][Tt.END_TAG_TOKEN]=Be,sn[Kt][Tt.EOF_TOKEN]=we,sn[qt]=Object.create(null),sn[qt][Tt.CHARACTER_TOKEN]=He,sn[qt][Tt.NULL_CHARACTER_TOKEN]=c,sn[qt][Tt.WHITESPACE_CHARACTER_TOKEN]=Fe,sn[qt][Tt.COMMENT_TOKEN]=sn[qt][Tt.DOCTYPE_TOKEN]=sn[qt][Tt.START_TAG_TOKEN]=sn[qt][Tt.END_TAG_TOKEN]=sn[qt][Tt.EOF_TOKEN]=Ue,sn[Wt]=Object.create(null),sn[Wt][Tt.CHARACTER_TOKEN]=D,sn[Wt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Wt][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Wt][Tt.COMMENT_TOKEN]=f,sn[Wt][Tt.DOCTYPE_TOKEN]=c,sn[Wt][Tt.START_TAG_TOKEN]=ze,sn[Wt][Tt.END_TAG_TOKEN]=Ke,sn[Wt][Tt.EOF_TOKEN]=we,sn[Gt]=Object.create(null),sn[Gt][Tt.CHARACTER_TOKEN]=sn[Gt][Tt.NULL_CHARACTER_TOKEN]=Ge,sn[Gt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Gt][Tt.COMMENT_TOKEN]=f,sn[Gt][Tt.DOCTYPE_TOKEN]=c,sn[Gt][Tt.START_TAG_TOKEN]=qe,sn[Gt][Tt.END_TAG_TOKEN]=We,sn[Gt][Tt.EOF_TOKEN]=we,sn[Vt]=Object.create(null),sn[Vt][Tt.CHARACTER_TOKEN]=sn[Vt][Tt.NULL_CHARACTER_TOKEN]=sn[Vt][Tt.WHITESPACE_CHARACTER_TOKEN]=Ae,sn[Vt][Tt.COMMENT_TOKEN]=f,sn[Vt][Tt.DOCTYPE_TOKEN]=c,sn[Vt][Tt.START_TAG_TOKEN]=Ve,sn[Vt][Tt.END_TAG_TOKEN]=Ye,sn[Vt][Tt.EOF_TOKEN]=we,sn[Yt]=Object.create(null),sn[Yt][Tt.CHARACTER_TOKEN]=sn[Yt][Tt.NULL_CHARACTER_TOKEN]=sn[Yt][Tt.WHITESPACE_CHARACTER_TOKEN]=Ae,sn[Yt][Tt.COMMENT_TOKEN]=f,sn[Yt][Tt.DOCTYPE_TOKEN]=c,sn[Yt][Tt.START_TAG_TOKEN]=$e,sn[Yt][Tt.END_TAG_TOKEN]=Je,sn[Yt][Tt.EOF_TOKEN]=we,sn[$t]=Object.create(null),sn[$t][Tt.CHARACTER_TOKEN]=D,sn[$t][Tt.NULL_CHARACTER_TOKEN]=c,sn[$t][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[$t][Tt.COMMENT_TOKEN]=f,sn[$t][Tt.DOCTYPE_TOKEN]=c,sn[$t][Tt.START_TAG_TOKEN]=Xe,sn[$t][Tt.END_TAG_TOKEN]=Qe,sn[$t][Tt.EOF_TOKEN]=we,sn[Jt]=Object.create(null),sn[Jt][Tt.CHARACTER_TOKEN]=h,sn[Jt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Jt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Jt][Tt.COMMENT_TOKEN]=f,sn[Jt][Tt.DOCTYPE_TOKEN]=c,sn[Jt][Tt.START_TAG_TOKEN]=Ze,sn[Jt][Tt.END_TAG_TOKEN]=et,sn[Jt][Tt.EOF_TOKEN]=we,sn[Xt]=Object.create(null),sn[Xt][Tt.CHARACTER_TOKEN]=h,sn[Xt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Xt][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[Xt][Tt.COMMENT_TOKEN]=f,sn[Xt][Tt.DOCTYPE_TOKEN]=c,sn[Xt][Tt.START_TAG_TOKEN]=tt,sn[Xt][Tt.END_TAG_TOKEN]=nt,sn[Xt][Tt.EOF_TOKEN]=we,sn[Qt]=Object.create(null),sn[Qt][Tt.CHARACTER_TOKEN]=D,sn[Qt][Tt.NULL_CHARACTER_TOKEN]=c,sn[Qt][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Qt][Tt.COMMENT_TOKEN]=f,sn[Qt][Tt.DOCTYPE_TOKEN]=c,sn[Qt][Tt.START_TAG_TOKEN]=rt,sn[Qt][Tt.END_TAG_TOKEN]=ot,sn[Qt][Tt.EOF_TOKEN]=it,sn[Zt]=Object.create(null),sn[Zt][Tt.CHARACTER_TOKEN]=sn[Zt][Tt.NULL_CHARACTER_TOKEN]=ut,sn[Zt][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[Zt][Tt.COMMENT_TOKEN]=p,sn[Zt][Tt.DOCTYPE_TOKEN]=c,sn[Zt][Tt.START_TAG_TOKEN]=at,sn[Zt][Tt.END_TAG_TOKEN]=st,sn[Zt][Tt.EOF_TOKEN]=m,sn[en]=Object.create(null),sn[en][Tt.CHARACTER_TOKEN]=sn[en][Tt.NULL_CHARACTER_TOKEN]=c,sn[en][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[en][Tt.COMMENT_TOKEN]=f,sn[en][Tt.DOCTYPE_TOKEN]=c,sn[en][Tt.START_TAG_TOKEN]=lt,sn[en][Tt.END_TAG_TOKEN]=ct,sn[en][Tt.EOF_TOKEN]=m,sn[tn]=Object.create(null),sn[tn][Tt.CHARACTER_TOKEN]=sn[tn][Tt.NULL_CHARACTER_TOKEN]=c,sn[tn][Tt.WHITESPACE_CHARACTER_TOKEN]=h,sn[tn][Tt.COMMENT_TOKEN]=f,sn[tn][Tt.DOCTYPE_TOKEN]=c,sn[tn][Tt.START_TAG_TOKEN]=ft,sn[tn][Tt.END_TAG_TOKEN]=pt,sn[tn][Tt.EOF_TOKEN]=m,sn[nn]=Object.create(null),sn[nn][Tt.CHARACTER_TOKEN]=ht,sn[nn][Tt.NULL_CHARACTER_TOKEN]=ht,sn[nn][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[nn][Tt.COMMENT_TOKEN]=d,sn[nn][Tt.DOCTYPE_TOKEN]=c,sn[nn][Tt.START_TAG_TOKEN]=dt,sn[nn][Tt.END_TAG_TOKEN]=ht,sn[nn][Tt.EOF_TOKEN]=m,sn[rn]=Object.create(null),sn[rn][Tt.CHARACTER_TOKEN]=sn[rn][Tt.NULL_CHARACTER_TOKEN]=c,sn[rn][Tt.WHITESPACE_CHARACTER_TOKEN]=N,sn[rn][Tt.COMMENT_TOKEN]=d,sn[rn][Tt.DOCTYPE_TOKEN]=c,sn[rn][Tt.START_TAG_TOKEN]=mt,sn[rn][Tt.END_TAG_TOKEN]=c,sn[rn][Tt.EOF_TOKEN]=m;var un=e.exports=function(e){this.options=xt(Mt,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.locationInfo&&new kt(this)};un.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},un.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(Nt.TEMPLATE,Dt.HTML,[]));var n=this.treeAdapter.createElement("documentmock",Dt.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===Nt.TEMPLATE&&this._pushTmplInsertionMode(Qt),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var r=this.treeAdapter.getFirstChild(n),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,o),o},un.prototype._bootstrap=function(e,t){this.tokenizer=new Tt(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new _t(this.document,this.treeAdapter),this.activeFormattingElements=new Et(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},un.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===Tt.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===Tt.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},un.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},un.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==Dt.HTML&&!this._isIntegrationPoint(e)},un.prototype._switchToTextParsing=function(e,t){this._insertElement(e,Dt.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=zt},un.prototype.switchToPlaintextParsing=function(){this.insertionMode=zt,this.originalInsertionMode=Ut,this.tokenizer.state=Tt.MODE.PLAINTEXT},un.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},un.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===Nt.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},un.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Dt.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===Nt.TITLE||e===Nt.TEXTAREA?this.tokenizer.state=Tt.MODE.RCDATA:e===Nt.STYLE||e===Nt.XMP||e===Nt.IFRAME||e===Nt.NOEMBED||e===Nt.NOFRAMES||e===Nt.NOSCRIPT?this.tokenizer.state=Tt.MODE.RAWTEXT:e===Nt.SCRIPT?this.tokenizer.state=Tt.MODE.SCRIPT_DATA:e===Nt.PLAINTEXT&&(this.tokenizer.state=Tt.MODE.PLAINTEXT)}},un.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},un.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},un.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},un.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},un.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,Dt.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},un.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,Dt.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},un.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(Nt.HTML,Dt.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},un.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},un.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},un.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},un.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===Dt.HTML)return!1;if(this.treeAdapter.getTagName(t)===Nt.ANNOTATION_XML&&n===Dt.MATHML&&e.type===Tt.START_TAG_TOKEN&&e.tagName===Nt.SVG)return!1;var r=e.type===Tt.CHARACTER_TOKEN||e.type===Tt.NULL_CHARACTER_TOKEN||e.type===Tt.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===Tt.START_TAG_TOKEN&&e.tagName!==Nt.MGLYPH&&e.tagName!==Nt.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,Dt.MATHML))&&(e.type!==Tt.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,Dt.HTML))&&e.type!==Tt.EOF_TOKEN},un.prototype._processToken=function(e){sn[this.insertionMode][e.type](this,e)},un.prototype._processTokenInBodyMode=function(e){sn[Ut][e.type](this,e)},un.prototype._processTokenInForeignContent=function(e){e.type===Tt.CHARACTER_TOKEN?vt(this,e):e.type===Tt.NULL_CHARACTER_TOKEN?gt(this,e):e.type===Tt.WHITESPACE_CHARACTER_TOKEN?h(this,e):e.type===Tt.COMMENT_TOKEN?f(this,e):e.type===Tt.START_TAG_TOKEN?yt(this,e):e.type===Tt.END_TAG_TOKEN&&bt(this,e)},un.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},un.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return At.isIntegrationPoint(n,r,o,t)},un.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===Et.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}},un.prototype._closeTableCell=function(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Yt},un.prototype._closePElement=function(){this.openElements.generateImpliedEndTagsWithExclusion(Nt.P),this.openElements.popUntilTagNamePopped(Nt.P)},un.prototype._resetInsertionMode=function(){for(var e=this.openElements.stackTop,t=!1;e>=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var r=this.treeAdapter.getTagName(n),o=on[r];if(o){this.insertionMode=o;break}if(!(t||r!==Nt.TD&&r!==Nt.TH)){this.insertionMode=$t;break}if(!t&&r===Nt.HEAD){this.insertionMode=Ft;break}if(r===Nt.SELECT){this._resetInsertionModeForSelect(e);break}if(r===Nt.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===Nt.HTML){this.insertionMode=this.headElement?Ht:jt;break}if(t){this.insertionMode=Ut;break}}},un.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n);if(r===Nt.TEMPLATE)break;if(r===Nt.TABLE)return void(this.insertionMode=Xt)}this.insertionMode=Jt},un.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},un.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},un.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===Nt.TABLE||t===Nt.TBODY||t===Nt.TFOOT||t===Nt.THEAD||t===Nt.TR},un.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},un.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),o=this.treeAdapter.getNamespaceURI(n);if(r===Nt.TEMPLATE&&o===Dt.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===Nt.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},un.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},un.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},un.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return St.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";function r(e,t){return e>=55296&&e<=56319&&t>=56320&&t<=57343}function o(e,t){return 1024*(e-55296)+9216+t}var i=n(74),a=i.CODE_POINTS,s=e.exports=function(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536};s.prototype.dropParsedChunk=function(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])},s.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos},s.prototype._processHighRangeCodePoint=function(e){if(this.pos!==this.lastCharPos){var t=this.html.charCodeAt(this.pos+1);r(e,t)&&(this.pos++,e=o(e,t),this._addGap())}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,a.EOF;return e},s.prototype.write=function(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t},s.prototype.insertHtmlAtCurrentPos=function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1},s.prototype.advance=function(){if(++this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),a.EOF;var e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===a.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===a.CARRIAGE_RETURN?(this.skipNextNewLine=!0,a.LINE_FEED):(this.skipNextNewLine=!1,e>=55296?this._processHighRangeCodePoint(e):e)},s.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";function r(e){switch(e.length){case 1:return e===a.P;case 2:return e===a.RB||e===a.RP||e===a.RT||e===a.DD||e===a.DT||e===a.LI;case 3:return e===a.RTC;case 6:return e===a.OPTION;case 8:return e===a.OPTGROUP||e===a.MENUITEM}return!1}function o(e,t){switch(e.length){case 2:if(e===a.TD||e===a.TH)return t===s.HTML;if(e===a.MI||e===a.MO||e===a.MN||e===a.MS)return t===s.MATHML;break;case 4:if(e===a.HTML)return t===s.HTML;if(e===a.DESC)return t===s.SVG;break;case 5:if(e===a.TABLE)return t===s.HTML;if(e===a.MTEXT)return t===s.MATHML;if(e===a.TITLE)return t===s.SVG;break;case 6:return(e===a.APPLET||e===a.OBJECT)&&t===s.HTML;case 7:return(e===a.CAPTION||e===a.MARQUEE)&&t===s.HTML;case 8:return e===a.TEMPLATE&&t===s.HTML;case 13:return e===a.FOREIGN_OBJECT&&t===s.SVG;case 14:return e===a.ANNOTATION_XML&&t===s.MATHML}return!1}var i=n(37),a=i.TAG_NAMES,s=i.NAMESPACES,u=e.exports=function(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t};u.prototype._indexOf=function(e){for(var t=-1,n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t},u.prototype._isInTemplate=function(){return this.currentTagName===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s.HTML},u.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null},u.prototype.push=function(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++},u.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()},u.prototype.replace=function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()},u.prototype.insertAfter=function(e,t){var n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()},u.prototype.popUntilTagNamePopped=function(e){for(;this.stackTop>-1;){var t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===s.HTML)break}},u.prototype.popUntilElementPopped=function(e){for(;this.stackTop>-1;){var t=this.current;if(this.pop(),t===e)break}},u.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.H1||e===a.H2||e===a.H3||e===a.H4||e===a.H5||e===a.H6&&t===s.HTML)break}},u.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.TD||e===a.TH&&t===s.HTML)break}},u.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement()},u.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==a.TABLE&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()},u.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==a.TBODY&&this.currentTagName!==a.TFOOT&&this.currentTagName!==a.THEAD&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()},u.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==a.TR&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()},u.prototype.remove=function(e){for(var t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}},u.prototype.tryPeekProperlyNestedBodyElement=function(){var e=this.items[1];return e&&this.treeAdapter.getTagName(e)===a.BODY?e:null},u.prototype.contains=function(e){return this._indexOf(e)>-1},u.prototype.getCommonAncestor=function(e){var t=this._indexOf(e);return--t>=0?this.items[t]:null},u.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===a.HTML},u.prototype.hasInScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===s.HTML)return!0;if(o(n,r))return!1}return!0},u.prototype.hasNumberedHeaderInScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===a.H1||t===a.H2||t===a.H3||t===a.H4||t===a.H5||t===a.H6)&&n===s.HTML)return!0;if(o(t,n))return!1}return!0},u.prototype.hasInListItemScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===s.HTML)return!0;if((n===a.UL||n===a.OL)&&r===s.HTML||o(n,r))return!1}return!0},u.prototype.hasInButtonScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===s.HTML)return!0;if(n===a.BUTTON&&r===s.HTML||o(n,r))return!1}return!0},u.prototype.hasInTableScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n===a.TABLE||n===a.TEMPLATE||n===a.HTML)return!1}}return!0},u.prototype.hasTableBodyContextInTableScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===s.HTML){if(t===a.TBODY||t===a.THEAD||t===a.TFOOT)return!0;if(t===a.TABLE||t===a.HTML)return!1}}return!0},u.prototype.hasInSelectScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(n===e)return!0;if(n!==a.OPTION&&n!==a.OPTGROUP)return!1}}return!0},u.prototype.generateImpliedEndTags=function(){for(;r(this.currentTagName);)this.pop()},u.prototype.generateImpliedEndTagsWithExclusion=function(e){for(;r(this.currentTagName)&&this.currentTagName!==e;)this.pop()}},function(e,t,n){"use strict";var r=e.exports=function(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null};r.MARKER_ENTRY="MARKER_ENTRY",r.ELEMENT_ENTRY="ELEMENT_ENTRY",r.prototype._getNoahArkConditionCandidates=function(e){var t=[];if(this.length>=3)for(var n=this.treeAdapter.getAttrList(e).length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),a=this.length-1;a>=0;a--){var s=this.entries[a];if(s.type===r.MARKER_ENTRY)break;var u=s.element,l=this.treeAdapter.getAttrList(u),c=this.treeAdapter.getTagName(u)===o&&this.treeAdapter.getNamespaceURI(u)===i&&l.length===n;c&&t.push({idx:a,attrs:l})}return t.length<3?[]:t},r.prototype._ensureNoahArkCondition=function(e){var t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){for(var r=this.treeAdapter.getAttrList(e),o=r.length,i=Object.create(null),a=0;a<o;a++){var s=r[a];i[s.name]=s.value}for(a=0;a<o;a++)for(var u=0;u<n;u++){var l=t[u].attrs[a];if(i[l.name]!==l.value&&(t.splice(u,1),n--),t.length<3)return}for(a=n-1;a>=2;a--)this.entries.splice(t[a].idx,1),this.length--}},r.prototype.insertMarker=function(){this.entries.push({type:r.MARKER_ENTRY}),this.length++},r.prototype.pushElement=function(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++},r.prototype.insertElementAfterBookmark=function(e,t){for(var n=this.length-1;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:r.ELEMENT_ENTRY,element:e,token:t}),this.length++},r.prototype.removeEntry=function(e){for(var t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}},r.prototype.clearToLastMarker=function(){for(;this.length;){var e=this.entries.pop();if(this.length--,e.type===r.MARKER_ENTRY)break}},r.prototype.getElementEntryInScopeWithTagName=function(e){for(var t=this.length-1;t>=0;t--){var n=this.entries[t];if(n.type===r.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null},r.prototype.getElementEntry=function(e){for(var t=this.length-1;t>=0;t--){var n=this.entries[t];if(n.type===r.ELEMENT_ENTRY&&n.element===e)return n}return null}},function(e,t,n){"use strict";var r=n(75),o=n(73),i=n(677),a=n(231),s=n(680),u=n(37),l=n(76).inherits,c=u.TAG_NAMES,f=e.exports=function(e){r.call(this,e),this.parser=e,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null};l(f,r),f.prototype._setStartLocation=function(e){this.lastStartTagToken?(e.__location=Object.create(this.lastStartTagToken.location),e.__location.startTag=this.lastStartTagToken.location):e.__location=null},f.prototype._setEndLocation=function(e,t){var n=e.__location;if(n)if(t.location){var r=t.location,i=this.parser.treeAdapter.getTagName(e),a=t.type===o.END_TAG_TOKEN&&i===t.tagName;a?(n.endTag=Object.create(r),n.endOffset=r.endOffset):n.endOffset=r.startOffset}else t.type===o.EOF_TOKEN&&(n.endOffset=this.posTracker.offset)},f.prototype._getOverriddenMethods=function(e,t){return{_bootstrap:function(n,r){t._bootstrap.call(this,n,r),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null,e.posTracker=new a(this.tokenizer.preprocessor),new i(this.tokenizer),new s(this.openElements,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop:function(n){t._runParsingLoop.call(this,n);for(var r=this.openElements.stackTop;r>=0;r--)e._setEndLocation(this.openElements.items[r],e.currentToken)},_processTokenInForeignContent:function(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken:function(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===o.END_TAG_TOKEN&&(n.tagName===c.HTML||n.tagName===c.BODY&&this.openElements.hasInScope(c.BODY)))for(var r=this.openElements.stackTop;r>=0;r--){var i=this.openElements.items[r];if(this.treeAdapter.getTagName(i)===n.tagName){e._setEndLocation(i,n);break}}},_setDocumentType:function(e){t._setDocumentType.call(this,e);for(var n=this.treeAdapter.getChildNodes(this.document),r=n.length,o=0;o<r;o++){var i=n[o];if(this.treeAdapter.isDocumentTypeNode(i)){i.__location=e.location;break}}},_attachElementToTree:function(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement:function(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement:function(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate:function(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n),this.treeAdapter.getTemplateContent(this.openElements.current).__location=null},_insertFakeRootElement:function(){t._insertFakeRootElement.call(this),this.openElements.current.__location=null},_appendCommentNode:function(e,n){t._appendCommentNode.call(this,e,n);var r=this.treeAdapter.getChildNodes(n);r[r.length-1].__location=e.location},_findFosterParentingLocation:function(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters:function(n){t._insertCharacters.call(this,n);var r=this._shouldFosterParentOnInsertion(),o=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(o),a=r&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a];s.__location?s.__location.endOffset=n.location.endOffset:s.__location=n.location}}}},function(e,t,n){"use strict";var r=n(75),o=n(73),i=n(231),a=n(76).inherits,s=e.exports=function(e){r.call(this,e),this.tokenizer=e,this.posTracker=new i(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null};a(s,r),s.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},s.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation},s.prototype._getOverriddenMethods=function(e,t){var n={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation},_createCharacterToken:function(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.currentTokenLocation},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this)},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(o.MODE).forEach(function(r){var i=o.MODE[r];n[i]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[i].call(this,n)}}),n}},function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r=n(75),o=n(76).inherits,i=e.exports=function(e,t){r.call(this,e),this.onItemPop=t.onItemPop};o(i,r),i.prototype._getOverriddenMethods=function(e,t){return{pop:function(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement:function(){for(var n=this.stackTop;n>0;n--)e.onItemPop(this.items[n]);t.popAllUpToHtmlElement.call(this)},remove:function(n){e.onItemPop(this.current),t.remove.call(this,n)}}}},function(e,t,n){"use strict";var r=n(37).DOCUMENT_MODE;t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};var o=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){var r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){for(var o=null,a=0;a<e.childNodes.length;a++)if("#documentType"===e.childNodes[a].nodeName){o=e.childNodes[a];break}o?(o.name=t,o.publicId=n,o.systemId=r):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){var t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){var n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,o(t))},t.insertTextBefore=function(e,t,n){var r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,o(t),n)},t.adoptAttributes=function(e,t){for(var n=[],r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(var o=0;o<t.length;o++)-1===n.indexOf(t[o].name)&&e.attrs.push(t[o])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName}},function(e,t,n){"use strict";e.exports=function(e,t){return t=t||Object.create(null),[e,t].reduce(function(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e},Object.create(null))}},function(e,t,n){"use strict";function r(e){var t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function o(e,t){for(var n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}var i=n(37).DOCUMENT_MODE,a=["+//silmaril//dtd html pro v0r11 19970101//en","-//advasoft ltd//dtd html 3.0 aswedit + extensions//en","-//as//dtd html 3.0 aswedit + extensions//en","-//ietf//dtd html 2.0 level 1//en","-//ietf//dtd html 2.0 level 2//en","-//ietf//dtd html 2.0 strict level 1//en","-//ietf//dtd html 2.0 strict level 2//en","-//ietf//dtd html 2.0 strict//en","-//ietf//dtd html 2.0//en","-//ietf//dtd html 2.1e//en","-//ietf//dtd html 3.0//en","-//ietf//dtd html 3.0//en//","-//ietf//dtd html 3.2 final//en","-//ietf//dtd html 3.2//en","-//ietf//dtd html 3//en","-//ietf//dtd html level 0//en","-//ietf//dtd html level 0//en//2.0","-//ietf//dtd html level 1//en","-//ietf//dtd html level 1//en//2.0","-//ietf//dtd html level 2//en","-//ietf//dtd html level 2//en//2.0","-//ietf//dtd html level 3//en","-//ietf//dtd html level 3//en//3.0","-//ietf//dtd html strict level 0//en","-//ietf//dtd html strict level 0//en//2.0","-//ietf//dtd html strict level 1//en","-//ietf//dtd html strict level 1//en//2.0","-//ietf//dtd html strict level 2//en","-//ietf//dtd html strict level 2//en//2.0","-//ietf//dtd html strict level 3//en","-//ietf//dtd html strict level 3//en//3.0","-//ietf//dtd html strict//en","-//ietf//dtd html strict//en//2.0","-//ietf//dtd html strict//en//3.0","-//ietf//dtd html//en","-//ietf//dtd html//en//2.0","-//ietf//dtd html//en//3.0","-//metrius//dtd metrius presentational//en","-//microsoft//dtd internet explorer 2.0 html strict//en","-//microsoft//dtd internet explorer 2.0 html//en","-//microsoft//dtd internet explorer 2.0 tables//en","-//microsoft//dtd internet explorer 3.0 html strict//en","-//microsoft//dtd internet explorer 3.0 html//en","-//microsoft//dtd internet explorer 3.0 tables//en","-//netscape comm. corp.//dtd html//en","-//netscape comm. corp.//dtd strict html//en","-//o'reilly and associates//dtd html 2.0//en","-//o'reilly and associates//dtd html extended 1.0//en","-//spyglass//dtd html 2.0 extended//en","-//sq//dtd html 2.0 hotmetal + extensions//en","-//sun microsystems corp.//dtd hotjava html//en","-//sun microsystems corp.//dtd hotjava strict html//en","-//w3c//dtd html 3 1995-03-24//en","-//w3c//dtd html 3.2 draft//en","-//w3c//dtd html 3.2 final//en","-//w3c//dtd html 3.2//en","-//w3c//dtd html 3.2s draft//en","-//w3c//dtd html 4.0 frameset//en","-//w3c//dtd html 4.0 transitional//en","-//w3c//dtd html experimental 19960712//en","-//w3c//dtd html experimental 970421//en","-//w3c//dtd w3 html//en","-//w3o//dtd w3 html 3.0//en","-//w3o//dtd w3 html 3.0//en//","-//webtechs//dtd mozilla html 2.0//en","-//webtechs//dtd mozilla html//en"],s=a.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),u=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//W3C//DTD XHTML 1.0 Frameset//","-//W3C//DTD XHTML 1.0 Transitional//"],c=l.concat(["-//W3C//DTD HTML 4.01 Frameset//","-//W3C//DTD HTML 4.01 Transitional//"]);t.getDocumentMode=function(e,t,n){if("html"!==e)return i.QUIRKS;if(n&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===n.toLowerCase())return i.QUIRKS;if(null!==t){if(t=t.toLowerCase(),u.indexOf(t)>-1)return i.QUIRKS;var r=null===n?s:a;if(o(t,r))return i.QUIRKS;if(r=null===n?l:c,o(t,r))return i.LIMITED_QUIRKS}return i.NO_QUIRKS},t.serializeContent=function(e,t,n){var o="!DOCTYPE ";return e&&(o+=e),null!==t?o+=" PUBLIC "+r(t):null!==n&&(o+=" SYSTEM"),null!==n&&(o+=" "+r(n)),o}},function(e,t,n){"use strict";function r(e,t){return t===u.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function o(e,t,n){if(t===u.MATHML&&e===s.ANNOTATION_XML)for(var r=0;r<n.length;r++)if(n[r].name===l.ENCODING){var o=n[r].value.toLowerCase();return o===c.TEXT_HTML||o===c.APPLICATION_XML}return t===u.SVG&&(e===s.FOREIGN_OBJECT||e===s.DESC||e===s.TITLE)}var i=n(73),a=n(37),s=a.TAG_NAMES,u=a.NAMESPACES,l=a.ATTRS,c={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},f={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},p={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:u.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:u.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:u.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:u.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:u.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:u.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:u.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:u.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:u.XML},"xml:space":{prefix:"xml",name:"space",namespace:u.XML},xmlns:{prefix:"",name:"xmlns",namespace:u.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:u.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h=Object.create(null);h[s.B]=!0,h[s.BIG]=!0,h[s.BLOCKQUOTE]=!0,h[s.BODY]=!0,h[s.BR]=!0,h[s.CENTER]=!0,h[s.CODE]=!0,h[s.DD]=!0,h[s.DIV]=!0,h[s.DL]=!0,h[s.DT]=!0,h[s.EM]=!0,h[s.EMBED]=!0,h[s.H1]=!0,h[s.H2]=!0,h[s.H3]=!0,h[s.H4]=!0,h[s.H5]=!0,h[s.H6]=!0,h[s.HEAD]=!0,h[s.HR]=!0,h[s.I]=!0,h[s.IMG]=!0,h[s.LI]=!0,h[s.LISTING]=!0,h[s.MENU]=!0,h[s.META]=!0,h[s.NOBR]=!0,h[s.OL]=!0,h[s.P]=!0,h[s.PRE]=!0,h[s.RUBY]=!0,h[s.S]=!0,h[s.SMALL]=!0,h[s.SPAN]=!0,h[s.STRONG]=!0,h[s.STRIKE]=!0,h[s.SUB]=!0,h[s.SUP]=!0,h[s.TABLE]=!0,h[s.TT]=!0,h[s.U]=!0,h[s.UL]=!0,h[s.VAR]=!0,t.causesExit=function(e){var t=e.tagName;return!(t!==s.FONT||null===i.getTokenAttr(e,l.COLOR)&&null===i.getTokenAttr(e,l.SIZE)&&null===i.getTokenAttr(e,l.FACE))||h[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(var t=0;t<e.attrs.length;t++){var n=f[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(var t=0;t<e.attrs.length;t++){var n=p[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){var t=d[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,i){return!(i&&i!==u.HTML||!o(e,t,n))||!(i&&i!==u.MATHML||!r(e,t))}},function(e,t,n){"use strict";function r(e,t){var n,r=t||{};return r.messages?(n=r,r={}):n=r.file,o(e,{file:n,toPosition:n?m(n).toPosition:null,verbose:r.verbose,location:!1})}function o(e,t){var n,r,o,a=v.call(y,e.nodeName)?y[e.nodeName]:c;return e.childNodes&&(n=i(e.childNodes,t)),r=a(e,n,t),e.__location&&t.toPosition&&(t.location=!0,(o=p(e.__location,e,r,t))&&(r.position=o)),r}function i(e,t){for(var n=e.length,r=-1,i=[];++r<n;)i[r]=o(e[r],t);return i}function a(e,t,n){var r,o="quirks"===e.mode||"limited-quirks"===e.mode,i={type:"root",children:t};return i.data={quirksMode:o},e.__location?n.toPosition&&(n.location=!0,r=e.__location):n.file&&n.location&&(r={startOffset:0,endOffset:String(n.file).length}),r=r&&p(r,e,i,n),r&&(i.position=r),i}function s(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}function u(e){return{type:"text",value:e.value}}function l(e){return{type:"comment",value:e.data}}function c(e,t,n){for(var r,i,a,s={},u=e.attrs,l=u.length,c=-1;++c<l;)r=u[c],s[(r.prefix?r.prefix+":":"")+r.name]=r.value;return i=g(e.tagName,s,t),"template"===e.nodeName&&"content"in e&&(a=e.content,e.__location&&(a.__location={startOffset:e.__location.startTag.endOffset,endOffset:e.__location.endTag.startOffset}),i.content=o(e.content,n)),i}function f(e,t){return{start:e(t.startOffset),end:e(t.endOffset)}}function p(e,t,n,r){var o,i,a,s=e.startOffset,u=e.endOffset,l=e.attrs||{},c={};for(o in l)i=(d(o)||{}).propertyName||h(o),c[i]=f(r.toPosition,l[o]);if("element"!==n.type||e.endTag||(a=n.children[n.children.length-1],a&&a.position?u=a.position.end?a.position.end.offset:null:e.startTag&&(u=e.startTag.endOffset)),r.verbose&&"element"===n.type&&(n.data={position:{opening:f(r.toPosition,e.startTag||e),closing:e.endTag?f(r.toPosition,e.endTag):null,properties:c}}),s="number"===typeof s?r.toPosition(s):null,u="number"===typeof u?r.toPosition(u):null,s||u)return{start:s,end:u}}var d=n(77),h=n(686),m=n(211),g=n(687);e.exports=r;var v={}.hasOwnProperty,y={"#document":a,"#document-fragment":a,"#text":u,"#comment":l,"#documentType":s}},function(e,t,n){"use strict";function r(e){for(var t=!1,n=0;n<e.length;n++){var r=e.charAt(n);t&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(e=e.substr(0,n)+"-"+e.substr(n),t=!1,n++):t=r.toLowerCase()===r}return e}e.exports=function(){var e=[].map.call(arguments,function(e){return e.trim()}).filter(function(e){return e.length}).join("-");return e.length?1===e.length?e.toLowerCase():/[_.\- ]+/.test(e)?(e=r(e),e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(e,t){return t.toUpperCase()})):e===e.toUpperCase()?e.toLowerCase():e[0]!==e[0].toLowerCase()?e[0].toLowerCase()+e.slice(1):e:""}},function(e,t,n){"use strict";function r(e,t,n){var r,s=u(e);if(t&&!n&&("string"===typeof t||"length"in t||o(s.tagName,t))&&(n=t,t=null),t)for(r in t)a(s.properties,r,t[r]);return i(s.children,n),"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}function o(e,t){var n=t.type;return"string"===typeof n&&(n=n.toLowerCase()),!("input"===e||!n||"string"!==typeof n)&&("object"===typeof t.children&&"length"in t.children||("button"===e?"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n:"value"in t))}function i(e,t){var n,r;if(null!==t&&void 0!==t)if("string"!==typeof t&&"number"!==typeof t||(t={type:"text",value:String(t)}),"object"===typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)i(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}}function a(e,t,n){var r,o=c(t)||{},i=n;if(null!==n&&void 0!==n&&n===n){if("style"===t){if("string"!==typeof n){i=[];for(r in n)i.push([r,n[r]].join(": "));i=i.join("; ")}}else o.spaceSeparated?(i="string"===typeof n?f(i):i,"class"===t&&e.className&&(i=e.className.concat(i))):o.commaSeparated&&(i="string"===typeof n?p(i):i);i=s(o,t,i),e[o.propertyName||l(t)]=i}}function s(e,t,n){var r,o,i=n;if("object"===typeof n&&"length"in n){for(o=n.length,r=-1,i=[];++r<o;)i[r]=s(e,t,n[r]);return i}return e.numeric||e.positiveNumeric?isNaN(i)||""===i||(i=Number(i)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof i||""!==i&&n.toLowerCase()!==t||(i=!0)),i}var u=n(688),l=n(689),c=n(77),f=n(122).parse,p=n(123).parse;e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r,a,s=null,u=[],l=e||"",c="div",f=null,p=-1,d=l.length;for(t={type:"element",tagName:null,properties:{},children:[]},f=null;++p<=d;)(n=l.charCodeAt(p))&&n!==o&&n!==i||(r=l.slice(a,p),r&&(f===o?u.push(r):f===i?s=r:c=r),a=p+1,f=n);return t.tagName=c,s&&(t.properties.id=s),0!==u.length&&(t.properties.className=u),t}e.exports=r;var o=".".charCodeAt(0),i="#".charCodeAt(0)},function(e,t,n){"use strict";function r(e){for(var t=!1,n=0;n<e.length;n++){var r=e.charAt(n);t&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(e=e.substr(0,n)+"-"+e.substr(n),t=!1,n++):t=r.toLowerCase()===r}return e}e.exports=function(){var e=[].map.call(arguments,function(e){return e.trim()}).filter(function(e){return e.length}).join("-");return e.length?1===e.length?e.toLowerCase():/[_.\- ]+/.test(e)?(e=r(e),e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(e,t){return t.toUpperCase()})):e===e.toUpperCase()?e.toLowerCase():e[0]!==e[0].toLowerCase()?e[0].toLowerCase()+e.slice(1):e:""}},function(e,t,n){"use strict";function r(e){return c(v(e),null,d.html)}function o(e){var t=e.data||{};return{nodeName:"#document",mode:!!g.call(t,"quirksMode")&&Boolean(t.quirksMode)?"quirks":"no-quirks",childNodes:y(e)}}function i(e){var t=f(e);return t.children=[],p(function(n,o){var i,a,s,u=[];for(s in o)a={name:s,value:o[s]},g.call(_,s)&&(a=f(a,_[s])),u.push(a);return"template"===n&&(i=r(t.content),delete i.mode,i.nodeName="#document-fragment"),l(e,{nodeName:e.tagName,tagName:e.tagName,attrs:u,childNodes:e.children?y(e):[]},i)},t)}function a(e){return l(e,{nodeName:"#documentType",name:e.name,publicId:e.public||null,systemId:e.system||null})}function s(e){return l(e,{nodeName:"#text",value:e.value})}function u(e){return l(e,{nodeName:"#comment",data:e.value})}function l(e,t,n){return e.position&&e.position.start&&e.position.end&&(t.__location={line:e.position.start.line,col:e.position.start.column,startOffset:e.position.start.offset,endOffset:e.position.end.offset}),n&&(t.content=n),t}function c(e,t,n){var r,o,i,a=e.__location,s=e.childNodes,u=e.tagName,l={};for(i in e)-1===b.indexOf(i)&&(l[i]=e[i]);if(g.call(T,u)&&(n=T[u]),g.call(l,"tagName")&&(l.namespaceURI=n),s)for(l.childNodes=s,r=s.length,o=-1;++o<r;)s[o]=c(s[o],l,n);return"template"===u&&(l.content=c(e.content,null,n)),t&&(l.parentNode=t),a&&(l.__location=a),l}var f=n(8),p=n(691),d=n(236),h=n(237),m=n(697);e.exports=r;var g={}.hasOwnProperty,v=h("type"),y=m(v,{key:"children",indices:!1}),b=["__location","childNodes","content","parentNode","namespaceURI"];v.handlers.root=o,v.handlers.element=i,v.handlers.text=s,v.handlers.comment=u,v.handlers.doctype=a;var T={math:d.mathml,svg:d.svg},_={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:d.xlink},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:d.xlink},"xlink:href":{prefix:"xlink",name:"href",namespace:d.xlink},"xlink:role":{prefix:"xlink",name:"role",namespace:d.xlink},"xlink:show":{prefix:"xlink",name:"show",namespace:d.xlink},"xlink:title":{prefix:"xlink",name:"title",namespace:d.xlink},"xlink:type":{prefix:"xlink",name:"type",namespace:d.xlink},"xml:base":{prefix:"xml",name:"base",namespace:d.xml},"xml:lang":{prefix:"xml",name:"lang",namespace:d.xml},"xml:space":{prefix:"xml",name:"space",namespace:d.xml},xmlns:{prefix:"",name:"xmlns",namespace:d.xmlns},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:d.xmlns}}},function(e,t,n){"use strict";function r(e,t,n){var r,i;if("function"!==typeof e)throw new Error("h is not a function");if(r=a(e),i=u(e),null!==n&&void 0!==n||(n=(!0===r||!0===i)&&"h-"),y("root",t))t=1===t.children.length&&y("element",t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(!y("element",t))throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return o(e,t,{prefix:n,key:0,react:r,vdom:i,hyperscript:s(e)})}function o(e,t,n){var r,a,s,u,c,f,p,d,h=t.tagName;r=t.properties,a={};for(u in r)i(a,u,r[u],n);for(!0===n.vdom&&(h=h.toUpperCase()),!0===n.hyperscript&&a.id&&(h+="#"+a.id,delete a.id),!0!==n.hyperscript&&!0!==n.vdom||!a.className||(h+="."+m.parse(a.className).join("."),delete a.className),"string"===typeof a.style&&(!0===n.vdom?(a.attributes||(a.attributes={}),a.attributes.style=a.style,delete a.style):!0===n.react&&(a.style=l(a.style))),n.prefix&&(n.key++,a.key=n.prefix+n.key),c=[],s=t.children||[],f=s.length,p=-1;++p<f;)d=s[p],y("element",d)?c.push(o(e,d,n)):y("text",d)&&c.push(d.value);return 0===c.length?e(h,a):e(h,a,c)}function i(e,t,n,r){var o,i=h(t)||{};if(!(null===n||void 0===n||!1===n||v(n)||i.boolean&&!n)){if(t=i.name||d(t),null!==n&&"object"===typeof n&&"length"in n&&(n=(i.commaSeparated?g:m).stringify(n)),i.boolean&&!0===r.hyperscript&&(n=""),"class"!==i.name&&(i.mustUseAttribute||!i.name)&&(!0===r.vdom?o="attributes":!0===r.hyperscript&&(o="attrs"),o))return void 0===e[o]&&(e[o]={}),void(e[o][t]=n);e[i.propertyName||t]=n}}function a(e){var t=e&&e("div");return Boolean(t&&("_owner"in t||"_store"in t)&&null===t.key)}function s(e){return Boolean(e&&e.context&&e.cleanup)}function u(e){try{return"VirtualNode"===e("div").type}catch(e){}return!1}function l(e){for(var t,n,r,o={},i=e.split(";"),a=i.length,s=-1;++s<a;)t=i[s],-1!==(r=t.indexOf(":"))&&(n=c(p(t.slice(0,r))),o[n]=p(t.slice(r+1)));return o}function c(e){return"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),e.replace(/-([a-z])/g,f)}function f(e,t){return t.toUpperCase()}var p=n(21),d=n(232),h=n(77),m=n(122),g=n(123),v=n(692),y=n(34);e.exports=r},function(e,t,n){"use strict";var r=n(233),o=n(234);r(o,{getPolyfill:n(235),implementation:o,shim:n(696)}),e.exports=o},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,a=n(694),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){if("undefined"===typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}},m=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),i=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&e.length>0&&!r.call(e,0))for(var d=0;d<e.length;++d)f.push(String(d));if(i&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var g in e)p&&"prototype"===g||!r.call(e,g)||f.push(String(g));if(u)for(var v=h(e),y=0;y<c.length;++y)v&&"constructor"===c[y]||!r.call(e,c[y])||f.push(c[y]);return f};m.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return e(a(t)?i.call(t):t)}}}else Object.keys=m;return Object.keys||m},e.exports=m},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)t.call(o,e[a],a,e);else for(var s in e)n.call(e,s)&&t.call(o,e[s],s,e)}},function(e,t,n){"use strict";var r=n(233),o=n(235);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},function(e,t,n){"use strict";function r(e,t){function n(t){var n,r,u=[],l=t,c=-1;for(i&&(o(t)?l=null:t=l[i]),n=t.length;++c<n;)r=a?e.call(this,t[c],c,l):e.call(this,t[c],l),s&&null==r||u.push(r);return u}var r=t||{},i=r.key,a=r.indices,s=r.gapless;return"string"===typeof r&&(i=r),null==a&&(a=!0),n}var o=n(698);e.exports=r},function(e,t){function n(e){return"[object Array]"===o.call(e)}var r=Array.isArray,o=Object.prototype.toString;e.exports=r||n},function(e,t,n){"use strict";e.exports=n(700)},function(e,t,n){"use strict";function r(e,t){var n=t||{},r=n.quote||s,y=n.quoteSmart,b=n.allowParseErrors,T=n.allowDangerousCharacters,_=r===s?u:s,E=b?l:c,k=b?p:d,w=b?h:m,x=b?g:v;if(r!==s&&r!==u)throw new Error("Invalid quote `"+r+"`, expected `"+u+"` or `"+s+"`");return a({NAME:E.concat(T?[]:f),UNQUOTED:k.concat(T?[]:f),DOUBLE_QUOTED:x.concat(T?[]:f),SINGLE_QUOTED:w.concat(T?[]:f),omit:n.omitOptionalTags&&i,quote:r,alternative:y?_:null,unquoted:Boolean(n.preferUnquoted),tight:n.tightAttributes,tightLists:n.tightCommaSeparatedLists,tightClose:n.tightSelfClosing,collapseEmpty:n.collapseEmptyAttributes,dangerous:n.allowDangerousHTML,voids:n.voids||o.concat(),entities:n.entities||{},close:n.closeSelfClosing},e)}var o=n(238),i=n(701),a=n(243);e.exports=r;var s='"',u="'",l=["&"," ","\t","\n","\r","\f","/",">","="],c=l.concat("\0",s,u,"<"),f=[s,u,"`"],p=["&"," ","\t","\n","\r","\f",">"],d=p.concat("\0",s,u,"<","=","`"),h=["&",u],m=h.concat("\0"),g=["&",s],v=g.concat("\0")},function(e,t,n){"use strict";t.opening=n(702),t.closing=n(241)},function(e,t,n){"use strict";function r(e){var t=f(e);return!t||!u("comment",t)}function o(e){for(var t,n,r=e.children,o=r.length,i={},a=-1;++a<o;)if(t=r[a],n=t.tagName,"element"===t.type&&("title"===n||"base"===n)){if(g.call(i,n))return!1;i[n]=!0}return Boolean(o)}function i(e){var t=f(e,!0);return!t||!u("comment",t)&&!d(t)&&!l(t,["meta","link","script","style","template"])}function a(e,t,n){var r=c(n,t),o=f(e,!0);return(!l(r,"colgroup")||!h(r,p(n,r),n))&&(o&&l(o,"col"))}function s(e,t,n){var r=c(n,t),o=f(e);return(!l(r,["thead","tbody"])||!h(r,p(n,r),n))&&(o&&l(o,"tr"))}var u=n(34),l=n(36),c=n(124).before,f=n(703),p=n(704),d=n(240),h=n(241),m=n(242),g={}.hasOwnProperty;e.exports=m({html:r,head:o,body:i,colgroup:a,tbody:s})},function(e,t,n){"use strict";function r(e,t){return o(e,-1,t)}var o=n(124).after;e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&e.children&&e.children.indexOf(t)}e.exports=r},function(e,t){e.exports={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203e",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"}},function(e,t){e.exports=["cent","copy","divide","gt","lt","not","para","times"]},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.tagName,a=m(e,"template"===i?t.content:t),s=-1!==e.voids.indexOf(i.toLowerCase()),u=o(e,t.properties),l=e.omit,c="";return s=!a&&s,!u&&l&&l.opening(t,n,r)||(c=E+i+(u?y+u:v),s&&e.close&&(e.tightClose&&u.charAt(u.length-1)!==w||(c+=y),c+=w),c+=k),c+=a,s||l&&l.closing(t,n,r)||(c+=E+w+i+k),c}function o(e,t){var n,r,o,a,s,u,l=[];for(n in t)null!=(r=t[n])&&(o=i(e,n,r))&&l.push(o);for(a=l.length,s=-1;++s<a;)o=l[s],u=e.tight&&o.charAt(o.length-1),s!==a-1&&u!==b&&u!==T&&(l[s]=o+y);return l.join(v)}function i(e,t,n){var r,o=f(t)||{};return null==n||"number"===typeof n&&isNaN(n)||!n&&o.boolean||!1===n&&o.overloadedBoolean?v:(r=a(e,t),n&&o.boolean||!0===n&&o.overloadedBoolean?r:r+s(e,t,n))}function a(e,t){var n=f(t)||{},r=n.name||d(t);return r.slice(0,g.length)===g&&/[0-9]/.test(r.charAt(g.length))&&(r=g+"-"+r.slice(4)),p(r,u(e.entities,{subset:e.NAME}))}function s(e,t,n){var r,o=f(t)||{},i=e.entities,a=e.quote,s=e.alternative;return"object"===typeof n&&"length"in n&&(n=(o.commaSeparated?c:l)(n,{padLeft:!e.tightLists})),n=String(n),!n&&e.collapseEmpty||(r=n,e.unquoted&&(r=p(n,u(i,{subset:e.UNQUOTED,attribute:!0}))),e.unquoted&&r===n||(s&&h(n,a)>h(n,s)&&(a=s),n=p(n,u(i,{subset:a===T?e.SINGLE_QUOTED:e.DOUBLE_QUOTED,attribute:!0})),n=a+n+a),n=n?_+n:n),n}var u=n(8),l=n(122).stringify,c=n(123).stringify,f=n(77),p=n(125),d=n(232),h=n(246),m=n(244);e.exports=r;var g="data",v="",y=" ",b='"',T="'",_="=",E="<",k=">",w="/"},function(e,t,n){"use strict";function r(e,t){var n=t.public,r=t.system,i="<!DOCTYPE";return t.name?(i+=" "+t.name,null!=n?i+=" PUBLIC "+o(n):null!=r&&(i+=" SYSTEM"),null!=r&&(i+=" "+o(r)),i+">"):i+">"}function o(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}e.exports=r},function(e,t,n){"use strict";function r(e,t){return"\x3c!--"+t.value+"--\x3e"}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e.dangerous?t.value:o(e,t)}var o=n(245);e.exports=r},function(e,t,n){"use strict";e.exports=n(712)},function(e,t,n){"use strict";function r(e,t){var n,r={type:"root",children:[]};return e&&"object"===typeof e&&e.type?(n=o(h(m,t||{}),e,[]),n?"length"in n?1===n.length?n[0]:(r.children=n,r):n:r):r}function o(e,t,n){var r,o,i,a=t&&t.type,s={type:t.type},u=!0;if(g.call(v,a)){r=h(v[a],v["*"]);for(i in r)o=r[i](e,t[i],t,n),!1===o?(u=!1,s[i]=t[i]):null!==o&&void 0!==o&&(s[i]=o)}else u=!1;return u?s:s.children&&0!==s.children.length&&-1===e.strip.indexOf(s.tagName)?s.children:null}function i(e,t,n,r){var i,a=t||[],s=a.length||0,u=[],l=-1;for(r=r.concat(n.tagName);++l<s;)(i=o(e,a[l],r))&&("length"in i?u=u.concat(i):u.push(i));return u}function a(e,t,n,r){var o,i,a,l=c(e,n.tagName,n,r),f=e.attributes,p=t||{},h={};o=g.call(f,l)?f[l]:[],o=[].concat(o,f["*"]);for(i in p)a=p[i],(-1!==o.indexOf(i)||d(i)&&-1!==o.indexOf("data*"))&&null!==(a=a&&"object"===typeof a&&"length"in a?s(e,a,i):u(e,a,i))&&void 0!==a&&(h[i]=a);return h}function s(e,t,n){for(var r,o=t.length,i=[],a=-1;++a<o;)null!==(r=u(e,t[a],n))&&void 0!==r&&i.push(r);return i}function u(e,t,n){return"boolean"!==typeof t&&"number"!==typeof t&&"string"!==typeof t?null:l(e,t,n)?(-1!==e.clobber.indexOf(n)&&(t=e.clobberPrefix+t),t):null}function l(e,t,n){var r,o,i,a,s,u=e.protocols;if(u=g.call(u,n)?u[n].concat():[],0===u.length)return!0;if(t=String(t),"#"===(o=t.charAt(0))||"/"===o)return!0;if(-1===(i=t.indexOf(":")))return!0;for(a=u.length,s=-1;++s<a;)if(r=u[s],i===r.length&&t.slice(0,r.length)===r)return!0;return-1!==(s=t.indexOf("?"))&&i>s||-1!==(s=t.indexOf("#"))&&i>s}function c(e,t,n,r){var o,i,a="string"===typeof t?t:null,s=e.ancestors;if(!a||"*"===a||-1===e.tagNames.indexOf(a))return!1;if(s=g.call(s,a)?s[a]:[],0!==s.length)for(o=s.length+1,i=-1;++i<o;){if(!s[i])return!1;if(-1!==r.indexOf(s[i]))break}return a}function f(e,t){return"string"===typeof t?t:""}function p(e,t){return t}function d(e){return e.length>4&&"data"===e.slice(0,4).toLowerCase()}var h=n(8),m=n(247);e.exports=r;var g={}.hasOwnProperty,v={root:{children:i},element:{tagName:c,properties:a,children:i},text:{value:f},"*":{data:p,position:p}}},function(e,t,n){"use strict";function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||i(e)}function i(e){return e.$$typeof===d}function a(e){return Array.isArray(e)?[]:{}}function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(a(e),e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function l(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=s(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=c(e[o],t[o],n):r[o]=s(t[o],n)}),r}function c(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||f;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):l(e,t,n):s(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var f=function(e){return r(e)&&!o(e)},p="function"===typeof Symbol&&Symbol.for,d=p?Symbol.for("react.element"):60103;c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var h=c;t.default=h},function(e,t){},function(e,t,n){!function(e){e(n(78),n(716),n(717))}(function(e){"use strict";e.defineMode("markdown",function(t,n){function r(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var o=e.getMode(t,n);return"null"==o.name?null:o}function o(e,t,n){return t.f=t.inline=n,n(e,t)}function i(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return!e||!/\S/.test(e.string)}function s(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==l){var n=_;if(!n){var r=e.innerMode(T,t.htmlState);n="xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.isInText}n&&(t.f=d,t.block=u,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function u(t,i){var s=t.column()===i.indentation,u=a(i.prevLine.stream),l=i.indentedCode,p=i.prevLine.hr,d=!1!==i.list,h=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var m=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,d)){for(i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,i.list=null;m<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=m-i.listStack[i.listStack.length-1])}var g=!u&&!p&&!i.prevLine.header&&(!d||!l)&&!i.prevLine.fencedCodeEnd,y=(!1===i.list||p||u)&&i.indentation<=h&&t.match(w),b=null;if(i.indentationDiff>=4&&(l||i.prevLine.fencedCodeEnd||i.prevLine.header||u))return t.skipToEnd(),i.indentedCode=!0,E.code;if(t.eatSpace())return null;if(s&&i.indentation<=h&&(b=t.match(A))&&b[1].length<=6)return i.quote=0,i.header=b[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,f(i);if(i.indentation<=h&&t.eat(">"))return i.quote=s?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),t.eatSpace(),f(i);if(!y&&!i.setext&&s&&i.indentation<=h&&(b=t.match(x))){var T=b[1]?"ol":"ul";return i.indentation=m+t.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),n.taskLists&&t.match(C,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+T]),f(i)}return s&&i.indentation<=h&&(b=t.match(N,!0))?(i.quote=0,i.fencedEndRE=new RegExp(b[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&r(b[2]),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=c,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,f(i)):i.setext||!(g&&d||i.quote||!1!==i.list||i.code||y||D.test(t.string))&&(b=t.lookAhead(1))&&(b=b.match(O))?(i.setext?(i.header=i.setext,i.setext=0,t.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==b[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,f(i)):y?(t.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,E.hr):"["===t.peek()?o(t,i,v):o(t,i,i.inline)}function l(t,n){var r=T.token(t,n.htmlState);if(!_){var o=e.innerMode(T,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=d,n.block=u,n.htmlState=null)}return r}function c(e,t){var r=t.listStack[t.listStack.length-1]||0,o=t.indentation<r,a=r+3;if(t.fencedEndRE&&t.indentation<=a&&(o||e.match(t.fencedEndRE))){n.highlightFormatting&&(t.formatting="code-block");var s;return o||(s=f(t)),t.localMode=t.localState=null,t.block=u,t.f=d,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?i(e,t,t.block):s}return t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),E.code)}function f(e){var t=[];if(e.formatting){t.push(E.formatting),"string"===typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(E.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(E.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(E.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(E.linkHref,"url"):(e.strong&&t.push(E.strong),e.em&&t.push(E.em),e.strikethrough&&t.push(E.strikethrough),e.emoji&&t.push(E.emoji),e.linkText&&t.push(E.linkText),e.code&&t.push(E.code),e.image&&t.push(E.image),e.imageAltText&&t.push(E.imageAltText,"link"),e.imageMarker&&t.push(E.imageMarker)),e.header&&t.push(E.header,E.header+"-"+e.header),e.quote&&(t.push(E.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(E.quote+"-"+e.quote):t.push(E.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var o=(e.listStack.length-1)%3;o?1===o?t.push(E.list2):t.push(E.list3):t.push(E.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function p(e,t){if(e.match(S,!0))return f(t)}function d(t,r){var o=r.text(t,r);if("undefined"!==typeof o)return o;if(r.list)return r.list=null,f(r);if(r.taskList){return" "===t.match(C,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,f(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),f(r);var a=t.next();if(r.linkTitle){r.linkTitle=!1;var s=a;"("===a&&(s=")"),s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var u="^\\s*(?:[^"+s+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(u),!0))return E.linkHref}if("`"===a){var c=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var p=t.current().length;if(0!=r.code||r.quote&&1!=p){if(p==r.code){var g=f(r);return r.code=0,g}return r.formatting=c,f(r)}return r.code=p,f(r)}if(r.code)return f(r);if("\\"===a&&(t.next(),n.highlightFormatting)){var v=f(r),y=E.formatting+"-escape";return v?v+" "+y:y}if("!"===a&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),f(r);if("["===a&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),f(r);if("]"===a&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var v=f(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=m,v}if("["===a&&!r.image)return r.linkText&&t.match(/^.*?\]/)?f(r):(r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),f(r));if("]"===a&&r.linkText){n.highlightFormatting&&(r.formatting="link");var v=f(r);return r.linkText=!1,r.inline=r.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?m:d,v}if("<"===a&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var v=f(r);return v?v+=" ":v="",v+E.linkInline}if("<"===a&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var v=f(r);return v?v+=" ":v="",v+E.linkEmail}if(n.xml&&"<"===a&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(t.string.substring(t.start,b))&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(T),i(t,r,l)}if(n.xml&&"<"===a&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===a||"_"===a){for(var _=1,k=1==t.pos?" ":t.string.charAt(t.pos-2);_<3&&t.eat(a);)_++;var w=t.peek()||" ",x=!/\s/.test(w)&&(!I.test(w)||/\s/.test(k)||I.test(k)),A=!/\s/.test(k)&&(!I.test(k)||/\s/.test(w)||I.test(w)),O=null,S=null;if(_%2&&(r.em||!x||"*"!==a&&A&&!I.test(k)?r.em!=a||!A||"*"!==a&&x&&!I.test(w)||(O=!1):O=!0),_>1&&(r.strong||!x||"*"!==a&&A&&!I.test(k)?r.strong!=a||!A||"*"!==a&&x&&!I.test(w)||(S=!1):S=!0),null!=S||null!=O){n.highlightFormatting&&(r.formatting=null==O?"strong":null==S?"em":"strong em"),!0===O&&(r.em=a),!0===S&&(r.strong=a);var g=f(r);return!1===O&&(r.em=!1),!1===S&&(r.strong=!1),g}}else if(" "===a&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return f(r);t.backUp(1)}if(n.strikethrough)if("~"===a&&t.eatWhile(a)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var g=f(r);return r.strikethrough=!1,g}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),f(r)}else if(" "===a&&t.match(/^~~/,!0)){if(" "===t.peek())return f(r);t.backUp(2)}if(n.emoji&&":"===a&&t.match(/^[a-z_\d+-]+:/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var N=f(r);return r.emoji=!1,N}return" "===a&&(t.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),f(r)}function h(e,t){if(">"===e.next()){t.f=t.inline=d,n.highlightFormatting&&(t.formatting="link");var r=f(t);return r?r+=" ":r="",r+E.linkInline}return e.match(/^[^>]+/,!0),E.linkInline}function m(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=g("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,f(t)):"error"}function g(e){return function(t,r){if(t.next()===e){r.f=r.inline=d,n.highlightFormatting&&(r.formatting="link-string");var o=f(r);return r.linkHref=!1,o}return t.match(M[e]),r.linkHref=!0,f(r)}}function v(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=y,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,f(t)):o(e,t,d)}function y(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=b,n.highlightFormatting&&(t.formatting="link");var r=f(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function b(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=d,E.linkHref+" url")}var T=e.getMode(t,"text/html"),_="null"==T.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var E={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var k in E)E.hasOwnProperty(k)&&n.tokenTypeOverrides[k]&&(E[k]=n.tokenTypeOverrides[k]);var w=/^([*\-_])(?:\s*\1){2,}\s*$/,x=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,C=/^\[(x| )\](?=\s)/i,A=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,O=/^ *(?:\={1,}|-{1,})\s*$/,S=/^[^#!\[\]*_\\<>` "'(~:]+/,N=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,I=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~\u2014]/,M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},L={startState:function(){return{f:u,prevLine:{stream:null},thisLine:{stream:null},block:u,htmlState:null,indentation:0,inline:d,text:p,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(T,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return s(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=l)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:T}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,r){return t.block==l&&T.indent?T.indent(t.htmlState,n,r):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},blankLine:s,getType:f,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")})},function(e,t,n){!function(e){e(n(78))}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){function i(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(u("atom","]]>")):null:e.match("--")?n(u("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(l(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=u("meta","?>"),"meta"):(C=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,C=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return C="equals",null;if("<"==n){t.tokenize=i,t.state=d,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function u(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function l(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=l(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=l(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(k.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!k.contextGrabbers.hasOwnProperty(n)||!k.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function d(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?m:d}function h(e,t,n){return"word"==e?(n.tagName=t.current(),A="tag",y):k.allowMissingTagName&&"endTag"==e?(A="tag bracket",y(e,t,n)):(A="error",h)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&k.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||!1===k.matchClosing?(A="tag",g):(A="tag error",v)}return k.allowMissingTagName&&"endTag"==e?(A="tag bracket",g(e,t,n)):(A="error",v)}function g(e,t,n){return"endTag"!=e?(A="error",g):(f(n),d)}function v(e,t,n){return A="error",g(e,t,n)}function y(e,t,n){if("word"==e)return A="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||k.autoSelfClosers.hasOwnProperty(r)?p(n,r):(p(n,r),n.context=new c(n,r,o==n.indented)),d}return A="error",y}function b(e,t,n){return"equals"==e?T:(k.allowMissing||(A="error"),y(e,t,n))}function T(e,t,n){return"string"==e?_:"word"==e&&k.allowUnquoted?(A="string",y):(A="error",y(e,t,n))}function _(e,t,n){return"string"==e?_:y(e,t,n)}var E=r.indentUnit,k={},w=o.htmlMode?t:n;for(var x in w)k[x]=w[x];for(var x in o)k[x]=o[x];var C,A;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:d,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;C=null;var n=t.tokenize(e,t);return(n||C)&&"comment"!=n&&(A=null,t.state=t.state(C||n,e,t),A&&(n="error"==A?n+" error":A)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+E;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==k.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+E*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;o;){if(o.tagName==s[2]){o=o.prev;break}if(!k.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(s)for(;o;){var u=k.contextGrabbers[o.tagName];if(!u||!u.hasOwnProperty(s[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+E:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(e){e.state==T&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){!function(e){e(n(78))}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var o=0;o<r.mimes.length;o++)if(r.mimes[o]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var o=0;o<r.ext.length;o++)if(r.ext[o]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var o=t.lastIndexOf("."),i=o>-1&&t.substring(o+1,t.length);if(i)return e.findModeByExtension(i)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var o=0;o<r.alias.length;o++)if(r.alias[o].toLowerCase()==t)return r}}})},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(206),l=n(112),c=(n(203),n(720)),f=n(248),p=n.n(f),d=n(113),h=n(22),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(721);n(724),n(737);var v=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),m(t,[{key:"render",value:function(){return s.a.createElement("div",{className:"seafile-md-viewer-side-panel"},s.a.createElement("div",{className:"seafile-md-viewer-side-panel-heading"},"Contents"),s.a.createElement("div",{className:"seafile-md-viewer-side-panel-content"},s.a.createElement(c.a,{treeRoot:this.props.treeRoot,viewer:this.props.viewer})))}}]),t}(s.a.Component),y=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),m(t,[{key:"componentDidUpdate",value:function(){p.a.highlightAll()}},{key:"render",value:function(){return s.a.createElement("div",{className:"seafile-md-viewer-main-panel"},this.props.renderingContent?s.a.createElement("div",{className:"seafile-md-viewer-rendered-content article"},this.props.t("Loading...")):s.a.createElement("div",{className:"seafile-md-viewer-rendered-content article",dangerouslySetInnerHTML:{__html:this.props.html}}))}}]),t}(s.a.Component),b=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.state={renderingContent:!0,renderingOutline:!0,html:"",outlineTreeRoot:null},i.switchToEditor=function(){i.props.switchToEditor()},i.onEdit=function(e){e.preventDefault(),i.switchToEditor()},i.backToParentDirectory=function(e){window.location.href=i.props.editorUtilities.getParentDectionaryUrl()},a=n,o(i,a)}return i(t,e),m(t,[{key:"scrollToNode",value:function(e){var t=new g(window.location.href);t.set("hash","user-content-"+e.data.id),window.location.href=t.toString()}},{key:"componentDidMount",value:function(){var e=this;u.a.process(this.props.markdownContent,function(t,n){e.setState({html:String(n),renderingContent:!1}),setTimeout(function(){new g(window.location.href).hash&&(window.location.href=window.location.href)},100)}),u.b.run(u.b.parse(this.props.markdownContent)).then(function(t){e.setState({outlineTreeRoot:t,renderingOutline:!1})})}},{key:"renderToolbar",value:function(){return s.a.createElement("div",null,s.a.createElement(l.a,null,s.a.createElement(l.d,{id:"parentDirectory",text:this.props.t("back_to_parent_directory"),icon:"fa fa-folder-open",onMouseDown:this.backToParentDirectory}),s.a.createElement(l.d,{text:this.props.t("edit"),id:"editButton",icon:"fa fa-edit",onMouseDown:this.onEdit})))}},{key:"render",value:function(){return s.a.createElement("div",{className:"seafile-md-viewer d-flex flex-column"},s.a.createElement("div",{className:"seafile-md-viewer-topbar d-flex justify-content-between"},s.a.createElement(d.a,{toggleStar:this.props.toggleStar,editorUtilities:this.props.editorUtilities,fileInfo:this.props.fileInfo}),this.renderToolbar()),s.a.createElement("div",{className:"seafile-md-viewer-main d-flex"},s.a.createElement(y,{t:this.props.t,renderingContent:this.state.renderingContent,html:this.state.html}),s.a.createElement(v,{treeRoot:this.state.outlineTreeRoot,viewer:this,editorUtilities:this.props.editorUtilities})))}}]),t}(s.a.Component);t.a=Object(h.translate)("translations")(b)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.onClick=function(e){i.props.viewer.scrollToNode(i.props.node)},a=n,o(i,a)}return i(t,e),u(t,[{key:"render",value:function(){var e,t=this.props.node;return 2===t.depth?e="seafile-md-viewer-outline-heading2":3===t.depth&&(e="seafile-md-viewer-outline-heading3"),s.a.createElement("div",{className:e,onClick:this.onClick},t.text)}}]),t}(s.a.Component),c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=this.props.treeRoot;if(null==t)return s.a.createElement("div",{className:"seafile-viewer-outline"});for(var n=t.children.filter(function(e){return"heading"===e.type&&(2===e.depth||3===e.depth)}),r=0;r<n.length;r++){var o=!0,i=!1,a=void 0;try{for(var u,c=n[r].children[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var f=u.value;if("text"===f.type){n[r].text=f.value;break}}}catch(e){i=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(i)throw a}}n[r].key=r}return s.a.createElement("div",{className:"seafile-viewer-outline"},n.map(function(t){return s.a.createElement(l,{key:t.key,viewer:e.props.viewer,node:t})}))}}]),t}(s.a.Component);t.a=c},function(e,t,n){"use strict";(function(t){function r(e){e=e||t.location||{};var n,r={},o=typeof e;if("blob:"===e.protocol)r=new a(unescape(e.pathname),{});else if("string"===o){r=new a(e,{});for(n in h)delete r[n]}else if("object"===o){for(n in e)n in h||(r[n]=e[n]);void 0===r.slashes&&(r.slashes=p.test(e.href))}return r}function o(e){var t=f.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function i(e,t){for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);var s,u,f,p,h,m,g=d.slice(),v=typeof t,y=this,b=0;for("object"!==v&&"string"!==v&&(n=t,t=null),n&&"function"!==typeof n&&(n=c.parse),t=r(t),u=o(e||""),s=!u.protocol&&!u.slashes,y.slashes=u.slashes||s&&t.slashes,y.protocol=u.protocol||t.protocol||"",e=u.rest,u.slashes||(g[2]=[/(.*)/,"pathname"]);b<g.length;b++)p=g[b],f=p[0],m=p[1],f!==f?y[m]=e:"string"===typeof f?~(h=e.indexOf(f))&&("number"===typeof p[2]?(y[m]=e.slice(0,h),e=e.slice(h+p[2])):(y[m]=e.slice(h),e=e.slice(0,h))):(h=f.exec(e))&&(y[m]=h[1],e=e.slice(0,h.index)),y[m]=y[m]||(s&&p[3]?t[m]||"":""),p[4]&&(y[m]=y[m].toLowerCase());n&&(y.query=n(y.query)),s&&t.slashes&&"/"!==y.pathname.charAt(0)&&(""!==y.pathname||""!==t.pathname)&&(y.pathname=i(y.pathname,t.pathname)),l(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(p=y.auth.split(":"),y.username=p[0]||"",y.password=p[1]||""),y.origin=y.protocol&&y.host&&"file:"!==y.protocol?y.protocol+"//"+y.host:"null",y.href=y.toString()}function s(e,t,n){var r=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(n||c.parse)(t)),r[e]=t;break;case"port":r[e]=t,l(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;default:r[e]=t}for(var i=0;i<d.length;i++){var a=d[i];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function u(e){e&&"function"===typeof e||(e=c.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,t="object"===typeof n.query?e(n.query):n.query,t&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}var l=n(722),c=n(723),f=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,p=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,d=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};a.prototype={set:s,toString:u},a.extractProtocol=o,a.location=r,a.qs=c,e.exports=a}).call(t,n(3))},function(e,t,n){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},function(e,t,n){"use strict";function r(e){return decodeURIComponent(e.replace(/\+/g," "))}function o(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);i in o||(o[i]=a)}return o}function i(e,t){t=t||"";var n=[];"string"!==typeof t&&(t="?");for(var r in e)a.call(e,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.length?t+n.join("&"):""}var a=Object.prototype.hasOwnProperty;t.stringify=i,t.parse=o},function(e,t,n){n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(250),n(732),n(733),n(734),n(735),n(736)},function(e,t){Prism.languages.c=Prism.languages.extend("clike",{keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/]/,number:/(?:\b0x[\da-f]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c["class-name"],delete Prism.languages.c.boolean},function(e,t){Prism.languages.cpp=Prism.languages.extend("c",{keyword:/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,boolean:/\b(?:true|false)\b/,operator:/--?|\+\+?|!=?|<{1,2}=?|>{1,2}=?|->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|\|?|\?|\*|\/|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),Prism.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)\w+/i,lookbehind:!0}}),Prism.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}})},function(e,t){Prism.languages.csharp=Prism.languages.extend("clike",{keyword:/\b(?:abstract|add|alias|as|ascending|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|do|double|dynamic|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|from|get|global|goto|group|if|implicit|in|int|interface|internal|into|is|join|let|lock|long|namespace|new|null|object|operator|orderby|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|select|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|value|var|virtual|void|volatile|where|while|yield)\b/,string:[{pattern:/@("|')(?:\1\1|\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*?\1/,greedy:!0}],"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=\s+\w+)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|interface|new)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)f?/i}),Prism.languages.insertBefore("csharp","class-name",{"generic-method":{pattern:/\w+\s*<[^>\r\n]+?>\s*(?=\()/,inside:{function:/^\w+/,"class-name":{pattern:/\b[A-Z]\w*(?:\.\w+)*\b/,inside:{punctuation:/\./}},keyword:Prism.languages.csharp.keyword,punctuation:/[<>(),.:]/}},preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),Prism.languages.dotnet=Prism.languages.csharp},function(e,t){Prism.languages.java=Prism.languages.extend("clike",{keyword:/\b(?:abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp-]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?[df]?/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),Prism.languages.insertBefore("java","function",{annotation:{alias:"punctuation",pattern:/(^|[^.])@\w+/,lookbehind:!0}}),Prism.languages.insertBefore("java","class-name",{generics:{pattern:/<\s*\w+(?:\.\w+)?(?:\s*,\s*\w+(?:\.\w+)?)*>/i,alias:"function",inside:{keyword:Prism.languages.java.keyword,punctuation:/[<>(),.:]/}}})},function(e,t){Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"triple-quoted-string":{pattern:/("""|''')[\s\S]+?\1/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/}},function(e,t){Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\])*\2/,greedy:!0,lookbehind:!0},variable:/@[\w.$]+|@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURNS?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+\.?\d*|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},function(e,t){Prism.languages.swift=Prism.languages.extend("clike",{string:{pattern:/("|')(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/,alias:"variable"}}}}},keyword:/\b(?:as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,constant:/\b(?:nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(?:IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,builtin:/\b(?:[A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/}),Prism.languages.swift.string.inside.interpolation.inside.rest=Prism.languages.swift},function(e,t){},function(e,t){},function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?(t=document.createElement("button"),t.type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a"),t.href=r.url):t=document.createElement("span"),t.textContent=r.text,t},e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),o.parentNode.insertBefore(i,o),i.appendChild(o);var a=document.createElement("div");a.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(e=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return t[e]||n})),e.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),a.appendChild(n)}}),i.appendChild(a)}};r("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a"),n.href=t.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}()},function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return void console.warn("Show Languages plugin loaded before Toolbar plugin.");var e={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",javascript:"JavaScript",abap:"ABAP",actionscript:"ActionScript",apacheconf:"Apache Configuration",apl:"APL",applescript:"AppleScript",arff:"ARFF",asciidoc:"AsciiDoc",asm6502:"6502 Assembly",aspnet:"ASP.NET (C#)",autohotkey:"AutoHotkey",autoit:"AutoIt",basic:"BASIC",csharp:"C#",cpp:"C++",coffeescript:"CoffeeScript",csp:"Content-Security-Policy","css-extras":"CSS Extras",django:"Django/Jinja2",erb:"ERB",fsharp:"F#",gedcom:"GEDCOM",glsl:"GLSL",graphql:"GraphQL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",inform7:"Inform 7",json:"JSON",latex:"LaTeX",livescript:"LiveScript",lolcode:"LOLCODE","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",n4js:"N4JS",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",php:"PHP","php-extras":"PHP Extras",plsql:"PL/SQL",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",q:"Q (kdb+ database)",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rest:"reST (reStructuredText)",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)",sql:"SQL",soy:"Soy (Closure Template)",tap:"TAP",tt2:"Template Toolkit 2",typescript:"TypeScript",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(t){var n=t.element.parentNode;if(n&&/pre/i.test(n.nodeName)){var r=n.getAttribute("data-language")||e[t.language]||t.language&&t.language.substring(0,1).toUpperCase()+t.language.substring(1);if(r){var o=document.createElement("span");return o.textContent=r,o}}})}}()},function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e="line-numbers",t=/\n(?!$)/g,n=function(e){var n=r(e),o=n["white-space"];if("pre-wrap"===o||"pre-line"===o){var i=e.querySelector("code"),a=e.querySelector(".line-numbers-rows"),s=e.querySelector(".line-numbers-sizer"),u=i.textContent.split(t);s||(s=document.createElement("span"),s.className="line-numbers-sizer",i.appendChild(s)),s.style.display="block",u.forEach(function(e,t){s.textContent=e||"\n";var n=s.getBoundingClientRect().height;a.children[t].style.height=n+"px"}),s.textContent="",s.style.display="none"}},r=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre."+e),n)}),Prism.hooks.add("complete",function(e){if(e.code){var r=e.element.parentNode,o=/\s*\bline-numbers\b\s*/;if(r&&/pre/i.test(r.nodeName)&&(o.test(r.className)||o.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){o.test(e.element.className)&&(e.element.className=e.element.className.replace(o," ")),o.test(r.className)||(r.className+=" line-numbers");var i,a=e.code.match(t),s=a?a.length+1:1,u=new Array(s+1);u=u.join("<span></span>"),i=document.createElement("span"),i.setAttribute("aria-hidden","true"),i.className="line-numbers-rows",i.innerHTML=u,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),e.element.appendChild(i),n(r),Prism.hooks.run("line-numbers",e)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows"),o=parseInt(t.getAttribute("data-start"),10)||1,i=o+(r.children.length-1);o>n&&(n=o),n>i&&(n=i);var a=n-o;return r.children[a]}}}}}()},function(e,t){},function(e,t,n){"use strict";var r=n(739),o=n(780);n.d(t,"b",function(){return r.a}),n.d(t,"a",function(){return o.a})},function(e,t,n){"use strict";function r(e,t){switch(t){case"BOLD":return{type:"strong",children:[e]};case"ITALIC":return{type:"emphasis",children:[e]};case"CODE":return{type:"inlineCode",value:e.value};default:return console.log("unknown mark string: "+t),e}}function o(e){var t=[],n=!0,o=!1,i=void 0;try{for(var a,s=e.leaves[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value,l={type:"text",value:u.text},c=!0,f=!1,p=void 0;try{for(var d,h=u.marks[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){l=r(l,d.value.type)}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}t.push(l)}}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return t}function i(e,t){t instanceof Array?t.map(function(t){return e.push(t)}):void 0!==t&&e.push(t)}function a(e){var t=[],n=!0,r=!1,o=void 0;try{for(var a,u=e.nodes[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){i(t,s(a.value))}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}return t}function s(e){if("block"==e.object){var t;switch(e.type){case"paragraph":return t=a(e),{type:"paragraph",children:t};case"header_one":return t=a(e),{type:"heading",depth:1,children:t};case"header_two":return t=a(e),{type:"heading",depth:2,children:t};case"header_three":return t=a(e),{type:"heading",depth:3,children:t};case"header_four":return t=a(e),{type:"heading",depth:4,children:t};case"header_five":return t=a(e),{type:"heading",depth:5,children:t};case"header_six":return t=a(e),{type:"heading",depth:6,children:t};case"hr":return{type:"thematicBreak"};case"ordered_list":t=a(e);var n=!1,r=!0,i=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(r=(u=l.next()).done);r=!0){if(1==u.value.loose){n=!0;break}}}catch(e){i=!0,s=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw s}}return{type:"list",ordered:!0,start:1,loose:n,children:t};case"unordered_list":t=a(e);var n=!1,c=!0,f=!1,p=void 0;try{for(var d,h=t[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){if(!0===d.value.loose){n=!0;break}}}catch(e){f=!0,p=e}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}return{type:"list",ordered:!1,start:1,loose:n,children:t};case"list_item":t=a(e);var n=!1;return t&&(n=1!=t.length&&(2!=t.length||"list"!=t[1].type)),{type:"listItem",loose:n,checked:void 0!==e.data.checked?e.data.checked:null,children:t};case"code_block":return t=a(e),{type:"code",lang:e.data.syntax?e.data.syntax:null,value:t.join("")};case"code_line":return e.nodes[0].leaves[0].text+"\n";case"table":return t=a(e),{type:"table",align:e.data.align?e.data.align:null,children:t};case"table_row":return t=a(e),{type:"tableRow",children:t};case"table_cell":return t=a(e),{type:"tableCell",children:t};case"blockquote":return t=a(e),{type:"blockquote",children:t};case"html_block":return{type:"html",value:e.data.html};default:return t=a(e),{type:"paragraph",children:t}}}else{if("text"==e.object)return o(e);if("inline"!=e.object)return o(e);var t;switch(e.type){case"image":return{type:"image",alt:e.data.alt?e.data.alt:null,url:e.data.src,title:e.data.title?e.data.title:null};case"link":return t=a(e),{type:"link",url:e.data.href,title:e.data.title?e.data.title:null,children:t};case"html_block":return{type:"html",value:e.data.html};default:return o(e)}}}function u(e){var t=e.document,n=[],r=!0,o=!1,a=void 0;try{for(var u,l=t.nodes[Symbol.iterator]();!(r=(u=l.next()).done);r=!0){i(n,s(u.value))}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}var c={type:"root",children:n};return f.stringify(c)}n.d(t,"a",function(){return u});var l=n(114),c=n(740),f=(n(120),l().use(c,{rule:"-",ruleSpaces:!1,listItemIndent:1,bullet:"*",commonmark:!0,fences:!0}))},function(e,t,n){"use strict";function r(e){var t=o(a);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Compiler=t}var o=n(209),i=n(8),a=n(741);e.exports=r,r.Compiler=a},function(e,t,n){"use strict";function r(e,t){this.inLink=!1,this.inTable=!1,this.tree=e,this.file=t,this.options=o(this.options),this.setOptions({})}var o=n(8),i=n(210);e.exports=r;var a=r.prototype;a.enterLink=i("inLink",!1),a.enterTable=i("inTable",!1),a.enterLinkReference=n(742),a.options=n(252),a.setOptions=n(743),a.compile=n(746),a.visit=n(748),a.all=n(749),a.block=n(750),a.visitOrderedItems=n(751),a.visitUnorderedItems=n(752),a.visitors={root:n(753),text:n(754),heading:n(755),paragraph:n(756),blockquote:n(757),list:n(758),listItem:n(759),inlineCode:n(760),code:n(761),html:n(762),thematicBreak:n(763),strong:n(764),emphasis:n(765),break:n(766),delete:n(767),link:n(768),linkReference:n(769),imageReference:n(771),definition:n(772),image:n(773),footnote:n(774),footnoteReference:n(775),footnoteDefinition:n(776),table:n(777),tableCell:n(779)}},function(e,t,n){"use strict";function r(e,t){var n=e.encode,r=e.escape,i=e.enterLink();return"shortcut"!==t.referenceType&&"collapsed"!==t.referenceType?i:(e.escape=o,e.encode=o,function(){e.encode=n,e.escape=r,i()})}var o=n(251);e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r=this,i=r.options;if(null==e)e={};else{if("object"!==typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=c(e)}for(n in p)g[typeof p[n]](e,n,i[n],m[n]);return t=e.ruleRepetition,t&&t<3&&o(t,"options.ruleRepetition"),r.encode=l(String(e.entities)),r.escape=d(e),r.options=e,r}function o(e,t){throw new Error("Invalid value `"+e+"` for setting `"+t+"`")}function i(e,t,n){var r=e[t];null==r&&(r=n),"boolean"!==typeof r&&o(r,"options."+t),e[t]=r}function a(e,t,n){var r=e[t];null==r&&(r=n),isNaN(r)&&o(r,"options."+t),e[t]=r}function s(e,t,n,r){var i=e[t];null==i&&(i=n),i=String(i),i in r||o(i,"options."+t),e[t]=i}function u(e,t,n){var r=e[t];null==r&&(r=n),"function"!==typeof r&&o(r,"options."+t),e[t]=r}function l(e){function t(e){return f(e,n)}var n={};return"false"===e?h:("true"===e&&(n.useNamedReferences=!0),"escape"===e&&(n.escapeOnly=!0,n.useNamedReferences=!0),t)}var c=n(8),f=n(125),p=n(252),d=n(744),h=n(251);e.exports=r;var m={entities:{true:!0,false:!0,numbers:!0,escape:!0},bullet:{"*":!0,"-":!0,"+":!0},rule:{"-":!0,_:!0,"*":!0},listItemIndent:{tab:!0,mixed:!0,1:!0},emphasis:{_:!0,"*":!0},strong:{_:!0,"*":!0},fence:{"`":!0,"~":!0}},g={boolean:i,string:s,number:a,function:u}},function(e,t,n){"use strict";function r(e){function t(t,n,r){function h(e){return-1===I.indexOf(e)?m[e]:p+e}var g,v,y,b,T,_,E=this,k=e.gfm,w=e.commonmark,x=e.pedantic,C=w?[".",")"]:["."],A=r&&r.children,O=A&&A.indexOf(n),S=A&&A[O-1],N=A&&A[O+1],D=t.length,I=c(e),M=-1,L=[],P=L;for(g=S?i(S)&&/\n\s*$/.test(S.value):!r||"root"===r.type||"paragraph"===r.type;++M<D;){if(v=t.charAt(M),_=!1,"\n"===v)g=!0;else if(v===p||"`"===v||"*"===v||"["===v||"<"===v||"&"===v&&f(t.slice(M))>0||"]"===v&&E.inLink||k&&"~"===v&&"~"===t.charAt(M+1)||k&&"|"===v&&(E.inTable||o(t,M))||"_"===v&&M>0&&M<D-1&&(x||!u(t.charAt(M-1))||!u(t.charAt(M+1)))||k&&!E.inLink&&":"===v&&a(L.join("")))_=!0;else if(g)if(">"===v||"#"===v||-1!==d.indexOf(v))_=!0;else if(s(v)){for(T=M+1;T<D&&s(t.charAt(T));)T++;-1!==C.indexOf(t.charAt(T))&&((N=t.charAt(T+1))&&" "!==N&&"\t"!==N&&"\n"!==N||(L.push(t.slice(M,T)),M=T,v=t.charAt(M),_=!0))}g&&!l(v)&&(g=!1),L.push(_?h(v):v)}if(A&&i(n)){if(S&&"shortcut"===S.referenceType){for(M=-1,D=P.length;++M<D;)if(" "!==(v=P[M])&&"\t"!==v){"("!==v&&":"!==v||(P[M]=h(v));break}i(N)&&M===D&&"("===N.value.charAt(0)&&P.push(p)}k&&!E.inLink&&i(S)&&":"===t.charAt(0)&&a(S.value.slice(-6))&&(P[0]=h(":")),i(N)&&"&"===t.charAt(D-1)&&0!==f("&"+N.value)&&(P[P.length-1]=h("&")),k&&i(N)&&"~"===t.charAt(D-1)&&"~"===N.value.charAt(0)&&P.splice(P.length-1,0,p),y=i(S)&&u(S.value.slice(-1)),b=i(N)&&u(N.value.charAt(0)),1===D?"_"!==t||!x&&y&&b||P.unshift(p):("_"!==t.charAt(0)||!x&&y&&u(t.charAt(1))||P.unshift(p),"_"!==t.charAt(D-1)||!x&&b&&u(t.charAt(D-2))||P.splice(P.length-1,0,p))}return P.join("")}return t}function o(e,t){var n=e.lastIndexOf("\n",t),r=e.indexOf("\n",t);for(n=-1===n?-1:n,r=-1===r?e.length:r;++n<r;)if(-1===h.indexOf(e.charAt(n)))return!1;return!0}function i(e){return e&&"text"===e.type}function a(e){var t=e.slice(-6).toLowerCase();return"mailto"===t||"https"===t.slice(-5)||"http"===t.slice(-4)}var s=n(45),u=n(745),l=n(10),c=n(216),f=n(253);e.exports=r;var p="\\",d=["*","-","+"],h=[":","-"," ","|"],m={"<":"&lt;",":":"&#x3A;","&":"&amp;","|":"&#x7C;","~":"&#x7E;"}},function(e,t,n){"use strict";e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return!/[^0-9a-z\xDF-\xFF]/.test(e.toLowerCase())}},function(e,t,n){"use strict";function r(){return this.visit(o(this.tree,this.options.commonmark))}var o=n(747);e.exports=r},function(e,t,n){"use strict";function r(e,t){function n(e){e.children&&s(e)}function r(e,n,r){var i=r.children,a=n&&i[n-1];if(a&&e.type===a.type&&o(a,t)&&o(e,t))return e.value&&(a.value+=e.value),e.children&&(a.children=a.children.concat(e.children)),i.splice(n,1),a.position&&e.position&&(a.position.end=e.position.end),n}var s=a(r);return i(e,n),e}function o(e,t){var n,r;return"text"===e.type?!e.position||(n=e.position.start,r=e.position.end,n.line!==r.line||r.column-n.column===e.value.length):t&&"blockquote"===e.type}var i=n(46),a=n(228);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this,r=n.visitors;return"function"!==typeof r[e.type]&&n.file.fail(new Error("Missing compiler for node of type `"+e.type+"`: `"+e+"`"),e),r[e.type].call(n,e,t)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=this,n=e.children,r=n.length,o=[],i=-1;++i<r;)o[i]=t.visit(n[i],e);return o}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n,r=this,o=[],i=e.children,a=i.length,s=-1;++s<a;)t=i[s],n&&(t.type===n.type&&"list"===n.type?o.push(n.ordered===t.ordered?"\n\n\n":"\n\n"):"list"!==n.type||"code"!==t.type||t.lang?o.push("\n\n"):o.push("\n\n\n")),o.push(r.visit(t,e)),n=t;return o.join("")}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n=this,r=n.visitors.listItem,o=n.options.incrementListMarker,i=[],a=e.start,s=e.children,u=s.length,l=-1;++l<u;)t=(o?a+l:a)+".",i[l]=r.call(n,s[l],e,l,t);return i.join("\n")}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t=this,n=t.options.bullet,r=t.visitors.listItem,o=e.children,i=o.length,a=-1,s=[];++a<i;)s[a]=r.call(t,o[a],e,a,n);return s.join("\n")}e.exports=r},function(e,t,n){"use strict";function r(e){return this.block(e)+"\n"}e.exports=r},function(e,t,n){"use strict";function r(e,t){return this.encode(this.escape(e.value,e,t),e)}e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=this,r=e.depth,i=n.options.setext,a=n.options.closeAtx,s=n.all(e).join("");return i&&r<3?s+"\n"+o(1===r?"=":"-",s.length):(t=o("#",e.depth))+" "+s+(a?" "+t:"")}var o=n(11);e.exports=r},function(e,t,n){"use strict";function r(e){return this.all(e).join("")}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n=this.block(e).split("\n"),r=[],o=n.length,i=-1;++i<o;)t=n[i],r[i]=(t?" ":"")+t;return">"+r.join("\n>")}e.exports=r},function(e,t,n){"use strict";function r(e){return this[o[e.ordered]](e)}e.exports=r;var o={true:"visitOrderedItems",false:"visitUnorderedItems"}},function(e,t,n){"use strict";function r(e,t,n,r){for(var s,u,l,c=this,f=c.options.listItemIndent,p=e.loose,d=e.children,h=d.length,m=[],g=-1;++g<h;)m[g]=c.visit(d[g],e);return s=a[e.checked]+m.join(p?"\n\n":"\n"),"1"===f||"mixed"===f&&-1===s.indexOf("\n")?(u=r.length+1,l=" "):(u=4*Math.ceil((r.length+1)/4),l=o(" ",u-r.length)),s=r+l+i(s,u/4).slice(u),p&&t.children.length-1!==n&&(s+="\n"),s}var o=n(11),i=n(254);e.exports=r;var a={undefined:"",null:"",true:"[x] ",false:"[ ] "}},function(e,t,n){"use strict";function r(e){var t=e.value,n=i("`",o(t,"`")+1),r=n,a=n;return"`"===t.charAt(0)&&(r+=" "),"`"===t.charAt(t.length-1)&&(a=" "+a),r+t+a}var o=n(255),i=n(11);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r=this,s=e.value,u=r.options,l=u.fence,c=r.encode(e.lang||"",e);return c||u.fences||!s?(n=i(l,Math.max(o(s,l)+1,3)))+c+"\n"+s+"\n"+n:(t&&"listItem"===t.type&&"tab"!==u.listItemIndent&&u.pedantic&&r.file.fail("Cannot indent code properly. See http://git.io/vgFvT",e.position),a(s,1))}var o=n(255),i=n(11),a=n(254);e.exports=r},function(e,t,n){"use strict";function r(e){return e.value}e.exports=r},function(e,t,n){"use strict";function r(){var e=this.options,t=o(e.rule,e.ruleRepetition);return e.ruleSpaces?t.split("").join(" "):t}var o=n(11);e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(this.options.strong,2);return t+this.all(e).join("")+t}var o=n(11);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.options.emphasis;return t+this.all(e).join("")+t}e.exports=r},function(e,t,n){"use strict";function r(){return o[this.options.commonmark]}e.exports=r;var o={true:"\\\n",false:" \n"}},function(e,t,n){"use strict";function r(e){return"~~"+this.all(e).join("")+"~~"}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.encode(e.url||"",e),r=t.enterLink(),s=t.encode(t.escape(e.url||"",e)),u=t.all(e).join("");return r(),null!=e.title||!a.test(n)||s!==u&&s!=="mailto:"+u?(n=o(n),e.title&&(n+=" "+i(t.encode(t.escape(e.title,e),e))),"["+u+"]("+n+")"):o(t.encode(e.url),!0)}var o=n(126),i=n(127);e.exports=r;var a=/^[a-z][a-z+.-]+:\/?/i},function(e,t,n){"use strict";function r(e){var t=this,n=e.referenceType,r=t.enterLinkReference(t,e),a=t.all(e).join("");return r(),"shortcut"!==n&&"collapsed"!==n||(a=o(a,e.identifier)),"["+a+"]"+i(e)}var o=n(770),i=n(256);e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n,r=e.length,a=t.length,s=[],u=0,l=0;l<r;){for(n=l;l<r&&!i.test(e.charAt(l));)l+=1;for(s.push(e.slice(n,l));u<a&&!i.test(t.charAt(u));)u+=1;for(n=u;u<a&&i.test(t.charAt(u));)"&"===t.charAt(u)&&(u+=o(t.slice(u))),u+=1;for(s.push(t.slice(n,u));l<r&&i.test(e.charAt(l));)l+=1}return s.join("")}var o=n(253);e.exports=r;var i=/[-!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~_]/},function(e,t,n){"use strict";function r(e){return"!["+(this.encode(e.alt,e)||"")+"]"+o(e)}var o=n(256);e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(e.url);return e.title&&(t+=" "+i(e.title)),"["+e.identifier+"]: "+t}var o=n(126),i=n(127);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=o(t.encode(e.url||"",e)),r=t.enterLink(),a=t.encode(t.escape(e.alt||"",e));return r(),e.title&&(n+=" "+i(t.encode(e.title,e))),"!["+a+"]("+n+")"}var o=n(126),i=n(127);e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+this.all(e).join("")+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+e.identifier+"]"}e.exports=r},function(e,t,n){"use strict";function r(e){return"[^"+e.identifier.toLowerCase()+"]: "+this.all(e).join("\n\n"+o(" ",4))}var o=n(11);e.exports=r},function(e,t,n){"use strict";function r(e){for(var t,n,r=this,i=r.options,a=i.looseTable,s=i.spacedTable,u=i.paddedTable,l=i.stringLength,c=e.children,f=c.length,p=r.enterTable(),d=[];f--;)d[f]=r.all(c[f]);return p(),a?(t="",n=""):s?(t="| ",n=" |"):(t="|",n="|"),o(d,{align:e.align,pad:u,start:t,end:n,stringLength:l,delimiter:s?" | ":"|"})}var o=n(778);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r,l,E,k,w,x,C,A,O,S,N,D=t||{},I=D.delimiter,M=D.start,L=D.end,P=D.align,R=D.stringLength||i,B=0,j=-1,F=e.length,H=[];for(P=P?P.concat():[],null!==I&&void 0!==I||(I=T+b+T),null!==M&&void 0!==M||(M=b+T),null!==L&&void 0!==L||(L=T+b);++j<F;)for(E=e[j],w=-1,E.length>B&&(B=E.length);++w<B;)x=E[w]?s(E[w]):null,H[w]||(H[w]=g),x>H[w]&&(H[w]=x);for("string"===typeof P&&(P=a(B,P).split("")),w=-1;++w<B;)n=P[w],"string"===typeof n&&(n=n.charAt(0).toLowerCase()),-1===m.indexOf(n)&&(n=h),P[w]=n;for(j=-1,l=[];++j<F;){for(E=e[j],w=-1,k=[];++w<B;)A=E[w],A=o(A),P[w]===d?(x=s(A),C=H[w]+(u.test(A)?0:1)-(R(A)-x),k[w]=A+a(C-1)):k[w]=A;l[j]=k}for(H=[],j=-1;++j<F;)for(k=l[j],w=-1;++w<B;)A=k[w],H[w]||(H[w]=g),(C=R(A))>H[w]&&(H[w]=C);for(j=-1;++j<F;){if(k=l[j],w=-1,!1!==D.pad)for(;++w<B;)A=k[w],x=H[w]-(R(A)||0),O=a(x),P[w]===f||P[w]===d?A=O+A:P[w]===p?(x/=2,x%1===0?(S=x,N=x):(S=x+.5,N=x-.5),A=a(S)+A+a(N)):A+=O,k[w]=A;l[j]=k.join(I)}if(!1!==D.rule){for(w=-1,r=[];++w<B;)!1===D.pad?(A=e[0][w],O=R(o(A)),O=O>g?O:g):O=H[w],n=P[w],A=n===f||n===h?y:v,A+=a(O-2,y),A+=n!==c&&n!==h?v:y,r[w]=A;l.splice(1,0,r.join(I))}return M+l.join(L+_+M)+L}function o(e){return null===e||void 0===e?"":String(e)}function i(e){return String(e).length}function a(e,t){return Array(e+1).join(t||T)}function s(e){var t=l.exec(e);return t?t.index+1:e.length}e.exports=r;var u=/\./,l=/\.[^.]*$/,c="l",f="r",p="c",d=".",h="",m=[c,f,p,d,h],g=3,v=":",y="-",b="|",T=" ",_="\n"},function(e,t,n){"use strict";function r(e){return this.all(e).join("")}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.split("\n"),n=void 0,r=void 0;return t.map(function(e){return n=f.Text.create({text:e}),r=f.Block.create({nodes:[n],type:"code_line"})})}function o(e,t){for(var n=e.align,r=e.children,o=[],i=0;i<r.length;i++){for(var a=[],s=0;s<n.length;s++){var l=r[i].children[s],c=u(l,t);l=f.Block.create({type:"table_cell",nodes:c,data:{align:n[s]}}),a.push(l)}o.push(f.Block.create({type:"table_row",nodes:a}))}return o}function i(e,t){if(e instanceof Array)return e.map(function(e){return i(e,t)});if("text"==e.object){var n=e.text.length;return e.addMark(0,n,t)}return e}function a(e,t){t instanceof Array?t.map(function(t){return e.push(t)}):void 0!==t&&e.push(t)}function s(e,t,n){var r=f.Mark.create({type:t}),o=[],s=!0,u=!1,c=void 0;try{for(var p,d=e.children[Symbol.iterator]();!(s=(p=d.next()).done);s=!0){var h=p.value,m=l(h,n);m=i(m,r),a(o,m)}}catch(e){u=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(u)throw c}}return o}function u(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e.children[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){a(n,l(s.value,t))}}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}function l(e,t){var n,i=[],a=t.definition;switch(e.type){case"heading":var l;switch(i=u(e,t),e.depth){case 1:l="header_one";break;case 2:l="header_two";break;case 3:l="header_three";break;case 4:l="header_four";break;case 5:l="header_five";break;case 6:l="header_six";break;default:console.log("Invalid depth: "+e.depth),l="header_one"}return f.Block.create({type:l,nodes:i});case"paragraph":return i=u(e,t),f.Block.create({type:"paragraph",nodes:i});case"blockquote":return i=u(e,t),f.Block.create({type:"blockquote",nodes:i});case"list":return t.loose=e.loose,i=u(e,t),e.ordered?f.Block.create({type:"ordered_list",nodes:i}):f.Block.create({type:"unordered_list",nodes:i});case"listItem":i=u(e,t);var c={};return null!==e.checked&&(c.checked=e.checked),f.Block.create({type:"list_item",data:c,nodes:i});case"code":var c={};e.lang&&(c.syntax=e.lang);var p=r(e.value);return f.Block.create({type:"code_block",data:c,nodes:p});case"strong":return s(e,"BOLD",t);case"emphasis":return s(e,"ITALIC",t);case"inlineCode":var n=f.Mark.create({type:"CODE"});return f.Text.create({text:e.value,marks:[n]});case"text":return f.Text.create({text:e.value});case"break":return f.Text.create({text:"\n"});case"thematicBreak":return f.Block.create({type:"hr",isVoid:!0});case"table":return i=o(e,t),f.Block.create({type:"table",nodes:i,data:{align:e.align}});case"html":var d=f.Text.create({text:""});return i.push(d),f.Inline.create({type:"html_block",isVoid:!0,data:{html:e.value},nodes:i});case"link":i=u(e,t);var c={href:e.url};return e.title&&(c.title=e.title),f.Inline.create({type:"link",data:c,nodes:i});case"image":var c={src:e.url};return e.title&&(c.title=e.title),e.alt&&(c.alt=e.alt),f.Inline.create({type:"image",isVoid:!0,data:c});case"linkReference":i=u(e,t);var h=a(e.identifier),c={};return h?(c.href=h.url,h.title&&(c.title=h.title),f.Inline.create({type:"link",data:c,nodes:i})):f.Text.create({text:"["+e.identifier+"]"});case"imageReference":var h=a(e.identifier),c={};return h?(c.src=h.url,h.title&&(c.title=h.title),e.alt&&(c.alt=e.alt),f.Inline.create({type:"image",data:c,isVoid:!0})):f.Text.create({text:"!["+e.alt+"]"});case"definition":return;default:return void console.log("unrecognized type: "+e.type)}}function c(e){var t=m.parse(e),n=h(t),r=[],o=!0,i=!1,s=void 0;try{for(var u,c=t.children[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){a(r,l(u.value,{definition:n}))}}catch(e){i=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(i)throw s}}if(0==r.length){var p=f.Text.create({text:""}),d=f.Block.create({type:"paragraph",nodes:[p]});r.push(d)}var g=[],v=!0,y=!1,b=void 0;try{for(var T,_=r[Symbol.iterator]();!(v=(T=_.next()).done);v=!0){var E=T.value;"html_block"==E.type?(E=f.Block.create({type:"html_block",isVoid:!0,data:{html:E.get("data").get("html")},nodes:E.nodes}),g.push(E)):g.push(E)}}catch(e){y=!0,b=e}finally{try{!v&&_.return&&_.return()}finally{if(y)throw b}}var k=f.Document.create({nodes:g});return f.Value.create({document:k},{normalize:!1})}n.d(t,"a",function(){return c});var f=n(0),p=n(114),d=n(208),h=n(120),m=p().use(d,{commonmark:!0})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79),n(782),n(783),n(38),n(39),n(128),n(257),n(784),n(258),n(785),n(786),n(787),n(129),n(788),n(26),n(6),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804))}(0,function(e){return e})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,o=r.init;(r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r<t;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)}).prototype=r}}(),e.lib.WordArray})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(){function t(e){return e<<8&4278255360|e>>>8&16711935}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}};i.Utf16LE={stringify:function(e){for(var n=e.words,r=e.sigBytes,o=[],i=0;i<r;i+=2){var a=t(n[i>>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=t(e.charCodeAt(i)<<16-i%2*16);return o.create(r,2*n)}}}(),e.enc.Utf16})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(257))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a)}(),e.SHA224})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79),n(258))}(0,function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,i=t.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(79))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64,s=a.Word,u=n.algo,l=[],c=[],f=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,o=(2*e+3*t)%5;e=r,t=o}for(var e=0;e<5;e++)for(var t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,a=0;a<24;a++){for(var u=0,p=0,d=0;d<7;d++){if(1&i){var h=(1<<d)-1;h<32?p^=1<<h:u^=1<<h-32}128&i?i=i<<1^113:i<<=1}f[a]=s.create(u,p)}}();var p=[];!function(){for(var e=0;e<25;e++)p[e]=s.create()}();var d=u.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[o];s.high^=a,s.low^=i}for(var u=0;u<24;u++){for(var d=0;d<5;d++){for(var h=0,m=0,g=0;g<5;g++){var s=n[d+5*g];h^=s.high,m^=s.low}var v=p[d];v.high=h,v.low=m}for(var d=0;d<5;d++)for(var y=p[(d+4)%5],b=p[(d+1)%5],T=b.high,_=b.low,h=y.high^(T<<1|_>>>31),m=y.low^(_<<1|T>>>31),g=0;g<5;g++){var s=n[d+5*g];s.high^=h,s.low^=m}for(var E=1;E<25;E++){var s=n[E],k=s.high,w=s.low,x=l[E];if(x<32)var h=k<<x|w>>>32-x,m=w<<x|k>>>32-x;else var h=w<<x-32|k>>>64-x,m=k<<x-32|w>>>64-x;var C=p[c[E]];C.high=h,C.low=m}var A=p[0],O=n[0];A.high=O.high,A.low=O.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var E=d+5*g,s=n[E],S=p[E],N=p[(d+1)%5+5*g],D=p[(d+2)%5+5*g];s.high=S.high^~N.high&D.high,s.low=S.low^~N.low&D.low}var s=n[0],I=f[u];s.high^=I.high,s.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,l=[],c=0;c<u;c++){var f=a[c],p=f.high,d=f.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(p)}return new o.init(l,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(d),n.HmacSHA3=i._createHmacHelper(d)}(Math),e.SHA3})},function(e,t,n){!function(r,o){e.exports=t=o(n(2))}(0,function(e){return function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function o(e,t,n){return(e|~t)^n}function i(e,t,n){return e&n|t&~n}function a(e,t,n){return e^(t|~n)}function s(e,t){return e<<t|e>>>32-t}var u=e,l=u.lib,c=l.WordArray,f=l.Hasher,p=u.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),g=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=c.create([0,1518500249,1859775393,2400959708,2840853838]),y=c.create([1352829926,1548603684,1836072691,2053994217,0]),b=p.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var u=0;u<16;u++){var l=t+u,c=e[l];e[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var f,p,b,T,_,E,k,w,x,C,A=this._hash.words,O=v.words,S=y.words,N=d.words,D=h.words,I=m.words,M=g.words;E=f=A[0],k=p=A[1],w=b=A[2],x=T=A[3],C=_=A[4];for(var L,u=0;u<80;u+=1)L=f+e[t+N[u]]|0,L+=u<16?n(p,b,T)+O[0]:u<32?r(p,b,T)+O[1]:u<48?o(p,b,T)+O[2]:u<64?i(p,b,T)+O[3]:a(p,b,T)+O[4],L|=0,L=s(L,I[u]),L=L+_|0,f=_,_=T,T=s(b,10),b=p,p=L,L=E+e[t+D[u]]|0,L+=u<16?a(k,w,x)+S[0]:u<32?i(k,w,x)+S[1]:u<48?o(k,w,x)+S[2]:u<64?r(k,w,x)+S[3]:n(k,w,x)+S[4],L|=0,L=s(L,M[u]),L=L+C|0,E=C,C=x,x=s(w,10),w=k,k=L;L=A[1]+b+x|0,A[1]=A[2]+T+C|0,A[2]=A[3]+_+E|0,A[3]=A[4]+f+k|0,A[4]=A[0]+p+w|0,A[0]=L},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});u.RIPEMD160=f._createHelper(b),u.HmacRIPEMD160=f._createHmacHelper(b)}(Math),e.RIPEMD160})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(128),n(129))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.SHA1,s=i.HMAC,u=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),i=o.create(),a=o.create([1]),u=i.words,l=a.words,c=n.keySize,f=n.iterations;u.length<c;){var p=r.update(t).finalize(a);r.reset();for(var d=p.words,h=d.length,m=p,g=1;g<f;g++){m=r.finalize(m),r.reset();for(var v=m.words,y=0;y<h;y++)d[y]^=v[y]}i.concat(p),l[0]++}return i.sigBytes=4*c,i}});t.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)}}(),e.PBKDF2})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.mode.CFB=function(){function t(e,t,n,r){var o=this._iv;if(o){var i=o.slice(0);this._iv=void 0}else var i=this._prevBlock;r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}var n=e.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=i}}),n}(),e.mode.CFB})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.mode.CTRGladman=function(){function t(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var u=0;u<o;u++)e[t+u]^=s[u]}});return r.Decryptor=o,r}(),e.mode.CTRGladman})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}});return t.Decryptor=n,t}(),e.mode.OFB})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(6))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.CipherParams,i=n.enc,a=i.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}}}(),e.format.Hex})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,o=t.algo,i=[],a=[],s=[],u=[],l=[],c=[],f=[],p=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,i[n]=o,a[o]=n;var m=e[n],g=e[m],v=e[g],y=257*e[o]^16843008*o;s[n]=y<<24|y>>>8,u[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y;var y=16843009*v^65537*g^257*m^16843008*n;f[o]=y<<24|y>>>8,p[o]=y<<16|y>>>16,d[o]=y<<8|y>>>24,h[o]=y,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s<o;s++)if(s<n)a[s]=t[s];else{var u=a[s-1];s%n?n>6&&s%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u}for(var l=this._invKeySchedule=[],c=0;c<o;c++){var s=o-c;if(c%4)var u=a[s];else var u=a[s-4];l[c]=c<4||s<=4?u:f[i[u>>>24]]^p[i[u>>>16&255]]^d[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,u,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,p,d,h,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var u=this._nRounds,l=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;h<u;h++){var m=r[l>>>24]^o[c>>>16&255]^i[f>>>8&255]^a[255&p]^n[d++],g=r[c>>>24]^o[f>>>16&255]^i[p>>>8&255]^a[255&l]^n[d++],v=r[f>>>24]^o[p>>>16&255]^i[l>>>8&255]^a[255&c]^n[d++],y=r[p>>>24]^o[l>>>16&255]^i[c>>>8&255]^a[255&f]^n[d++];l=m,c=g,f=v,p=y}var m=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&p])^n[d++],g=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^n[d++],v=(s[f>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[d++],y=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^n[d++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=r._createHelper(g)}(),e.AES})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function n(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var r=e,o=r.lib,i=o.WordArray,a=o.BlockCipher,s=r.algo,u=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=a.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;r<56;r++){var o=u[r]-1;n[r]=t[o>>>5]>>>31-o%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){for(var s=i[a]=[],f=c[a],r=0;r<24;r++)s[r/6|0]|=n[(l[r]-1+f)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(l[r+24]-1+f)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var p=this._invSubKeys=[],r=0;r<16;r++)p[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,r,o){this._lBlock=e[r],this._rBlock=e[r+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=o[i],s=this._lBlock,u=this._rBlock,l=0,c=0;c<8;c++)l|=f[c][((u^a[c])&p[c])>>>0];this._lBlock=u,this._rBlock=s^l}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),e[r]=this._lBlock,e[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=a._createHelper(d);var h=s.TripleDES=a.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=d.createEncryptor(i.create(t.slice(0,2))),this._des2=d.createEncryptor(i.create(t.slice(2,4))),this._des3=d.createEncryptor(i.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=a._createHelper(h)}(),e.TripleDES})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){t=(t+1)%256,n=(n+e[t])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=i.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;for(var o=0,i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var u=r[o];r[o]=r[i],r[i]=u}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=t.call(this)},keySize:8,ivSize:0});n.RC4=o._createHelper(a);var s=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});n.RC4Drop=o._createHelper(s)}(),e.RC4})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=a^l}e[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,e[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,e[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,e[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,e[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,e[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,e[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,e[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],u=[],l=i.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)t.call(this);for(var r=0;r<8;r++)i[r]^=o[r+4&7];if(n){var a=n.words,s=a[0],u=a[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=l>>>16|4294901760&c,p=c<<16|65535&l;i[0]^=l,i[1]^=f,i[2]^=c,i[3]^=p,i[4]^=l,i[5]^=f,i[6]^=c,i[7]^=p;for(var r=0;r<4;r++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[n+o]^=a[o]},blockSize:4,ivSize:2});n.Rabbit=o._createHelper(l)}(),e.Rabbit})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(2),n(38),n(39),n(26),n(6))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,l=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=a^l}e[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,e[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,e[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,e[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,e[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,e[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,e[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,e[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],u=[],l=i.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)t.call(this);for(var i=0;i<8;i++)o[i]^=r[i+4&7];if(n){var a=n.words,s=a[0],u=a[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),f=l>>>16|4294901760&c,p=c<<16|65535&l;o[0]^=l,o[1]^=f,o[2]^=c,o[3]^=p,o[4]^=l,o[5]^=f,o[6]^=c,o[7]^=p;for(var i=0;i<4;i++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[n+o]^=a[o]},blockSize:4,ivSize:2});n.RabbitLegacy=o._createHelper(l)}(),e.RabbitLegacy})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(806),a=n(824),s=(n(825),function(){function e(){r(this,e)}return o(e,[{key:"init",value:function(e){var t=e.server,n=e.username,r=e.password,o=e.token;return this.server=t,this.username=n,this.password=r,this.token=o,this.token&&this.server&&(this.req=i.create({baseURL:this.server,headers:{Authorization:"Token "+this.token}})),this}},{key:"initForSeahubUsage",value:function(e){var t=e.xcsrfHeaders;return this.req=i.create({headers:{"X-CSRFToken":t}}),this}},{key:"getToken",value:function(){var e=this,t=this.server+"/api2/auth-token/";i.post(t,{username:this.username,password:this.password}).then(function(t){return e.token=t.data,e.token})}},{key:"login",value:function(){var e=this,t=this.server+"/api2/auth-token/";return i.post(t,{username:this.username,password:this.password}).then(function(t){e.token=t.data.token,e.req=i.create({baseURL:e.server,headers:{Authorization:"Token "+e.token}})})}},{key:"authPing",value:function(){return this.req.get("/api2/auth/ping/")}},{key:"listRepos",value:function(){return this.req.get("/api2/repos/")}},{key:"listDir",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.recursive,o="/api2/repos/"+e+"/dir/?p="+encodeURIComponent(t);return r&&(o+="&recursive=1"),this.req.get(o)}},{key:"getFileInfo",value:function(e,t){var n="/api2/repos/"+e+"/file/detail/?p="+encodeURIComponent(t);return this.req.get(n)}},{key:"starFile",value:function(e,t){var n=new a;return n.append("repo_id",e),n.append("p",t),this.req.post("/api2/starredfiles/",n)}},{key:"unStarFile",value:function(e,t){var n="/api2/starredfiles/?repo_id="+e+"&p="+encodeURIComponent(t);return this.req.delete(n)}},{key:"getFileDownloadLink",value:function(e,t){var n="/api2/repos/"+e+"/file/?p="+encodeURIComponent(t)+"&reuse=1";return this.req.get(n)}},{key:"getFileContent",value:function(e){return i.create().get(e)}},{key:"getUpdateLink",value:function(e,t){console.log("encode getupdateLink");var n="/api2/repos/"+e+"/update-link/?p="+encodeURIComponent(t);return this.req.get(n)}},{key:"updateFile",value:function(e,t,n,r){var o=new a;o.append("target_file",t),o.append("filename",n);var s=new Blob([r],{type:"text/plain"});return o.append("file",s),i.create()({method:"post",url:e,data:o})}},{key:"uploadImage",value:function(e,t){return i.create()({method:"post",data:t,url:e})}},{key:"getFileHistory",value:function(e,t){var n="/api2/repos/"+e+"/file/history/?p="+encodeURIComponent(t);return this.req.get(n)}},{key:"getUploadLink",value:function(e,t){var n="/api2/repos/"+e+"/upload-link/?p="+encodeURIComponent(t)+"&from=web";return this.req.get(n)}},{key:"getSharedRepos",value:function(){return this.req.get("/api2/shared-repos/")}},{key:"getBeSharedRepos",value:function(){return this.req.get("/api2/beshared-repos/")}},{key:"createDirectory",value:function(e,t){var n="/api2/repos/"+e+"/dir/?p="+encodeURIComponent(t),r=new a;return r.append("operation","mkdir"),this.req.post(n,r,{headers:r.getHeaders()})}}]),e}());t.SeafileAPI=s},function(e,t,n){e.exports=n(807)},function(e,t,n){"use strict";function r(e){var t=new a(e),n=i(a.prototype.request,t);return o.extend(n,a.prototype,t),o.extend(n,t),n}var o=n(15),i=n(259),a=n(808),s=n(130),u=r(s);u.Axios=a,u.create=function(e){return r(o.merge(s,e))},u.Cancel=n(263),u.CancelToken=n(822),u.isCancel=n(262),u.all=function(e){return Promise.all(e)},u.spread=n(823),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var o=n(130),i=n(15),a=n(817),s=n(818);r.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(261);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(15);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(15),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(15);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),a="",s=0,u=i;o.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&t>>8-s%1*8)){if((n=o.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return a}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=o},function(e,t,n){"use strict";var r=n(15);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(15);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(15),i=n(819),a=n(262),s=n(130),u=n(820),l=n(821);e.exports=function(e){return r(e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(263);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},function(e,t){},function(e,t,n){"use strict";(function(e){function r(e){return e&&e.__esModule?e:{default:e}}function o(){return b&&!b.headersSent}function i(e,t){var n=v?y:h.default.parse(document.cookie),r=n&&n[e];if("undefined"===typeof t&&(t=!r||"{"!==r[0]&&"["!==r[0]),!t)try{r=JSON.parse(r)}catch(e){}return r}function a(e){var t=v?y:h.default.parse(document.cookie),n=t;if("undefined"===typeof e&&(e=!n||"{"!==n[0]&&"["!==n[0]),!e)try{n=JSON.parse(n)}catch(e){}return n}function s(e){var t=v?y:h.default.parse(document.cookie);return t?e?Object.keys(t).reduce(function(n,r){if(!e.test(r))return n;var o={};return o[r]=t[r],(0,g.default)({},n,o)},{}):t:{}}function u(e,t,n){y[e]=t,"object"===("undefined"===typeof t?"undefined":p(t))&&(y[e]=JSON.stringify(t)),v||(document.cookie=h.default.serialize(e,y[e],n)),o()&&b.cookie&&b.cookie(e,t,n)}function l(e,t){delete y[e],t="undefined"===typeof t?{}:"string"===typeof t?{path:t}:(0,g.default)({},t),"undefined"!==typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=h.default.serialize(e,"",t)),o()&&b.clearCookie&&b.clearCookie(e,t)}function c(e){y=e?h.default.parse(e):{}}function f(e,t){return e.cookie?y=e.cookie:e.cookies?y=e.cookies:e.headers&&e.headers.cookie?c(e.headers.cookie):y={},b=t,function(){b=null,y={}}}Object.defineProperty(t,"__esModule",{value:!0});var p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.load=i,t.loadAll=a,t.select=s,t.save=u,t.remove=l,t.setRawCookie=c,t.plugToRequest=f;var d=n(827),h=r(d),m=n(41),g=r(m),v="undefined"===typeof document||e&&Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"})&&!1,y={},b=void 0;t.default={setRawCookie:c,load:i,loadAll:a,select:s,save:u,remove:l,plugToRequest:f}}).call(t,n(16))},function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(u),s=r.decode||a,l=0;l<o.length;l++){var c=o[l],f=c.indexOf("=");if(!(f<0)){var p=c.substr(0,f).trim(),d=c.substr(++f,c.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==n[p]&&(n[p]=i(d,s))}}return n}function o(e,t,n){var r=n||{},o=r.encode||s;if("function"!==typeof o)throw new TypeError("option encode is invalid");if(!l.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!l.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(null!=r.maxAge){var u=r.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(r.domain){if(!l.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain="+r.domain}if(r.path){if(!l.test(r.path))throw new TypeError("option path is invalid");a+="; Path="+r.path}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite){switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return a}function i(e,t){try{return t(e)}catch(t){return e}}t.parse=r,t.serialize=o;var a=decodeURIComponent,s=encodeURIComponent,u=/; */,l=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(829),i=r(o),a=n(838),s=r(a),u=window.app.config.siteRoot;i.default.use(s.default).init({fallbackLng:"en",ns:["translations"],defaultNS:"translations",whitelist:["en","zh-CN"],backend:{loadPath:u+"media/assets/frontend/locales/{{ lng }}/{{ ns }}.json"},debug:!1,interpolation:{escapeValue:!1},load:"currentOnly",react:{wait:!0}}),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"changeLanguage",function(){return o}),n.d(t,"cloneInstance",function(){return i}),n.d(t,"createInstance",function(){return a}),n.d(t,"dir",function(){return s}),n.d(t,"exists",function(){return u}),n.d(t,"getFixedT",function(){return l}),n.d(t,"init",function(){return c}),n.d(t,"loadLanguages",function(){return f}),n.d(t,"loadNamespaces",function(){return p}),n.d(t,"loadResources",function(){return d}),n.d(t,"off",function(){return h}),n.d(t,"on",function(){return m}),n.d(t,"setDefaultNamespace",function(){return g}),n.d(t,"t",function(){return v}),n.d(t,"use",function(){return y});var r=n(830);t.default=r.a;var o=r.a.changeLanguage.bind(r.a),i=r.a.cloneInstance.bind(r.a),a=r.a.createInstance.bind(r.a),s=r.a.dir.bind(r.a),u=r.a.exists.bind(r.a),l=r.a.getFixedT.bind(r.a),c=r.a.init.bind(r.a),f=r.a.loadLanguages.bind(r.a),p=r.a.loadNamespaces.bind(r.a),d=r.a.loadResources.bind(r.a),h=r.a.off.bind(r.a),m=r.a.on.bind(r.a),g=r.a.setDefaultNamespace.bind(r.a),v=r.a.t.bind(r.a),y=r.a.use.bind(r.a)},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}function s(){}var u=n(40),l=n(80),c=n(831),f=n(832),p=n(833),d=n(834),h=n(835),m=n(836),g=n(837),v=n(264),y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];o(this,t);var a=i(this,e.call(this));if(a.options=Object(g.b)(n),a.services={},a.logger=u.a,a.modules={external:[]},r&&!a.isInitialized&&!n.isClone){var s;if(!a.options.initImmediate)return s=a.init(n,r),i(a,s);setTimeout(function(){a.init(n,r)},0)}return a}return a(t,e),t.prototype.init=function(){function e(e){return e?"function"===typeof e?new e:e:null}var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];if("function"===typeof n&&(r=n,n={}),this.options=b({},Object(g.a)(),this.options,Object(g.b)(n)),this.format=this.options.interpolation.format,r||(r=s),!this.options.isClone){this.modules.logger?u.a.init(e(this.modules.logger),this.options):u.a.init(null,this.options);var o=new p.a(this.options);this.store=new c.a(this.options.resources,this.options);var i=this.services;i.logger=u.a,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new d.a(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new h.a(this.options),i.backendConnector=new m.a(e(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.emit.apply(t,[e].concat(r))}),this.modules.languageDetector&&(i.languageDetector=e(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=e(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new f.a(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.emit.apply(t,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(t)})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}});var a=function(){t.changeLanguage(t.options.lng,function(e,n){t.isInitialized=!0,t.logger.log("initialized",t.options),t.emit("initialized",t.options),r(e,n)})};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),this},t.prototype.loadResources=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;if(this.options.resources)t(null);else{if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],r=function(t){if(t){e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){n.indexOf(e)<0&&n.push(e)})}};if(this.language)r(this.language);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return r(e)})}this.options.preload&&this.options.preload.forEach(function(e){return r(e)}),this.services.backendConnector.load(n,this.options.ns,t)}},t.prototype.reloadResources=function(e,t){e||(e=this.languages),t||(t=this.options.ns),this.services.backendConnector.reload(e,t)},t.prototype.use=function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&v.a.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this},t.prototype.changeLanguage=function(e,t){var n=this,r=function(e,r){n.translator.changeLanguage(r),r&&(n.emit("languageChanged",r),n.logger.log("languageChanged",r)),t&&t(e,function(){return n.t.apply(n,arguments)})},o=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(function(t){r(t,e)})};e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect())},t.prototype.getFixedT=function(e,t){var n=this,r=function e(t,r){for(var o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];var s=b({},r);return"object"!==("undefined"===typeof r?"undefined":y(r))&&(s=n.options.overloadTranslationOptionHandler([t,r].concat(i))),s.lng=s.lng||e.lng,s.lngs=s.lngs||e.lngs,s.ns=s.ns||e.ns,n.t(t,s)};return"string"===typeof e?r.lng=e:r.lngs=e,r.ns=t,r},t.prototype.t=function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)},t.prototype.exists=function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)},t.prototype.setDefaultNamespace=function(e){this.options.defaultNS=e},t.prototype.loadNamespaces=function(e,t){var n=this;if(!this.options.ns)return t&&t();"string"===typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(t)},t.prototype.loadLanguages=function(e,t){"string"===typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return n.indexOf(e)<0});if(!r.length)return t();this.options.preload=n.concat(r),this.loadResources(t)},t.prototype.dir=function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"},t.prototype.createInstance=function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},t.prototype.cloneInstance=function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,o=b({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new f.a(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))}),i.init(o,r),i.translator.options=i.options,i},t}(l.a);t.a=new T},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}var s=n(80),u=n(81),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};o(this,t);var a=i(this,e.call(this));return a.data=n||{},a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a}return a(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)},t.prototype.removeNamespaces=function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!==typeof n&&(i=i.concat(n)),n&&"string"===typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),u.d(this.data,i)},t.prototype.addResource=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u.h(this.data,a,r),o.silent||this.emit("added",e,t,n,r)},t.prototype.addResources=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"===typeof n[o]&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)},t.prototype.addResourceBundle=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);var s=u.d(this.data,a)||{};r?u.b(s,n,o):s=l({},s,n),u.h(this.data,a,s),i.silent||this.emit("added",e,t,n)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?l({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(s.a);t.a=c},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}var s=n(40),u=n(80),l=n(264),c=n(81),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var a=i(this,e.call(this));return c.a(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat"],n,a),a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=s.a.create("translator"),a}return a(t,e),t.prototype.changeLanguage=function(e){e&&(this.language=e)},t.prototype.exists=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res},t.prototype.extractFromKey=function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"===typeof o&&(o=[o]),{key:e,namespaces:o}},t.prototype.translate=function(e,t){var n=this;if("object"!==("undefined"===typeof t?"undefined":p(t))&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e||""===e)return"";"number"===typeof e&&(e=String(e)),"string"===typeof e&&(e=[e]);var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],t),i=o.key,a=o.namespaces,s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){var c=t.nsSeparator||this.options.nsSeparator;return s+c+i}return i}var d=this.resolve(e,t),h=d&&d.res,m=d&&d.usedKey||i,g=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b="string"!==typeof h&&"boolean"!==typeof h&&"number"!==typeof h;if(h&&b&&v.indexOf(g)<0&&(!y||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,t):"key '"+i+" ("+this.language+")' returned an object instead of string.";if(r){var T="[object Array]"===g?[]:{};for(var _ in h)if(Object.prototype.hasOwnProperty.call(h,_)){var E=""+m+r+_;T[_]=this.translate(E,f({},t,{joinArrays:!1,ns:a})),T[_]===E&&(T[_]=h[_])}h=T}}else if(y&&"[object Array]"===g)(h=h.join(y))&&(h=this.extendTranslation(h,e,t));else{var k=!1,w=!1;this.isValidLookup(h)||void 0===t.defaultValue||(k=!0,h=t.defaultValue),this.isValidLookup(h)||(w=!0,h=i);var x=t.defaultValue&&t.defaultValue!==h&&this.options.updateMissing;if(w||k||x){this.logger.log(x?"updateKey":"missingKey",u,s,i,x?t.defaultValue:h);var C=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var O=0;O<A.length;O++)C.push(A[O]);else"all"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(t.lng||this.language):C.push(t.lng||this.language);var S=function(e,r){n.options.missingKeyHandler?n.options.missingKeyHandler(e,s,r,x?t.defaultValue:h,x,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,s,r,x?t.defaultValue:h,x,t),n.emit("missingKey",e,s,r,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&t.count?C.forEach(function(e){n.pluralResolver.getPluralFormsOfKey(e,i).forEach(function(t){return S([e],t)})}):S(C,i))}h=this.extendTranslation(h,e,t,d),w&&h===i&&this.options.appendNamespaceToMissingKey&&(h=s+":"+i),w&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h},t.prototype.extendTranslation=function(e,t,n,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey);else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(f({},n,{interpolation:f({},this.options.interpolation,n.interpolation)}));var i=n.replace&&"string"!==typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(i=f({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,n.lng||this.language),!1!==n.nest&&(e=this.interpolator.nest(e,function(){return o.translate.apply(o,arguments)},n)),n.interpolation&&this.interpolator.reset()}var a=n.postProcess||this.options.postProcess,s="string"===typeof a?[a]:a;return void 0!==e&&null!==e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=l.a.handle(s,e,t,n,this)),e},t.prototype.resolve=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0,o=void 0,i=void 0,a=void 0;return"string"===typeof e&&(e=[e]),e.forEach(function(e){if(!t.isValidLookup(r)){var s=t.extractFromKey(e,n),u=s.key;o=u;var l=s.namespaces;t.options.fallbackNS&&(l=l.concat(t.options.fallbackNS));var c=void 0!==n.count&&"string"!==typeof n.count,f=void 0!==n.context&&"string"===typeof n.context&&""!==n.context,p=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language);l.forEach(function(e){t.isValidLookup(r)||(a=e,p.forEach(function(o){if(!t.isValidLookup(r)){i=o;var a=u,s=[a];if(t.i18nFormat&&t.i18nFormat.addLookupKeys)t.i18nFormat.addLookupKeys(s,u,o,e,n);else{var l=void 0;c&&(l=t.pluralResolver.getSuffix(o,n.count)),c&&f&&s.push(a+l),f&&s.push(a+=""+t.options.contextSeparator+n.context),c&&s.push(a+=l)}for(var p=void 0;p=s.pop();)t.isValidLookup(r)||(r=t.getResource(o,e,p,n))}}))})}}),{res:r,usedKey:o,usedLng:i,usedNS:a}},t.prototype.isValidLookup=function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(e,t,n,r)},t}(u.a);t.a=d},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var i=n(40),a=function(){function e(t){r(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=i.a.create("languageUtils")}return e.prototype.getScriptPartFromCode=function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))},e.prototype.getLanguagePartFromCode=function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])},e.prototype.formatLanguageCode=function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=o(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=o(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=o(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.getFallbackCodes=function(e,t){if(!e)return[];if("string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]},e.prototype.toResolveHierarchy=function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isWhitelisted(e)?o.push(e):n.logger.warn("rejecting non-whitelisted language code: "+e))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o},e}();t.a=a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e={};return a.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:s[t.fc]}})}),e}var i=n(40),a=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],s={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}},u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.languageUtils=t,this.options=n,this.logger=i.a.create("pluralResolver"),this.rules=o()}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return t&&t.numbers.length>1},e.prototype.getPluralFormsOfKey=function(e,t){var n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach(function(o){var i=n.getSuffix(e,o);r.push(""+t+i)}),r):r},e.prototype.getSuffix=function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_"+i.toString():a():"v2"===this.options.compatibilityJSON||2===r.numbers.length&&1===r.numbers[0]?a():2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: "+e),""},e}();t.a=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(81),i=n(40),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.logger=i.a.create("interpolator"),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||o.c),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?o.g(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o.g(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?o.g(t.nestingPrefix):t.nestingPrefixEscaped||o.g("$t("),this.nestingSuffix=t.nestingSuffix?o.g(t.nestingSuffix):t.nestingSuffixEscaped||o.g(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(e,"g");var t=""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,"g");var n=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(n,"g")},e.prototype.interpolate=function(e,t,n){function r(e){return e.replace(/\$/g,"$$$$")}var i=this,a=void 0,s=void 0,u=void 0,l=function(e){if(e.indexOf(i.formatSeparator)<0)return o.d(t,e);var r=e.split(i.formatSeparator),a=r.shift().trim(),s=r.join(i.formatSeparator).trim();return i.format(o.d(t,a),s,n)};for(this.resetRegExp(),u=0;(a=this.regexpUnescape.exec(e))&&(s=l(a[1].trim()),e=e.replace(a[0],s),this.regexpUnescape.lastIndex=0,!(++u>=this.maxReplaces)););for(u=0;a=this.regexp.exec(e);){if(void 0===(s=l(a[1].trim())))if("function"===typeof this.options.missingInterpolationHandler){var c=this.options.missingInterpolationHandler(e,a);s="string"===typeof c?c:""}else this.logger.warn("missed to pass in variable "+a[1]+" for interpolating "+e),s="";else"string"!==typeof s&&(s=o.e(s));if(s=r(this.escapeValue?this.escape(s):s),e=e.replace(a[0],s),this.regexp.lastIndex=0,++u>=this.maxReplaces)break}return e},e.prototype.nest=function(e,t){function n(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var r=n.join(",");r=this.interpolate(r,u),r=r.replace(/'/g,'"');try{u=JSON.parse(r),t&&(u=a({},t,u))}catch(t){this.logger.error("failed parsing options string in nesting for key "+e,t)}return e}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,s=void 0,u=a({},r);for(u.applyPostProcessor=!1;i=this.nestingRegexp.exec(e);){if((s=t(n.call(this,i[1].trim(),u),u))&&i[0]===e&&"string"!==typeof s)return s;"string"!==typeof s&&(s=o.e(s)),s||(this.logger.warn("missed to resolve "+i[1]+" for nesting "+e),s=""),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e},e}();t.a=s},function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}function s(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}var u=n(81),l=n(40),c=n(80),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){function t(n,r,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};o(this,t);var u=i(this,e.call(this));return u.backend=n,u.store=r,u.languageUtils=a.languageUtils,u.options=s,u.logger=l.a.create("backendConnector"),u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(a,s.backend,s),u}return a(t,e),t.prototype.queueLoad=function(e,t,n){var r=this,o=[],i=[],a=[],s=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var a=e+"|"+t;r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?i.indexOf(a)<0&&i.push(a):(r.state[a]=1,n=!1,i.indexOf(a)<0&&i.push(a),o.indexOf(a)<0&&o.push(a),s.indexOf(t)<0&&s.push(t)))}),n||a.push(e)}),(o.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:n}),{toLoad:o,pending:i,toLoadLanguages:a,toLoadNamespaces:s}},t.prototype.loaded=function(e,t,n){var r=this,o=e.split("|"),i=p(o,2),a=i[0],l=i[1];t&&this.emit("failedLoading",a,l,t),n&&this.store.addResourceBundle(a,l,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){u.f(n.loaded,[a],l),s(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(r.emit("loaded",n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments[5];return e.length?this.backend[n](e,t,function(s,u){if(s&&u&&r<5)return void setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i);a(s,u)}):a(null,{})},t.prototype.load=function(e,t,n){var r=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var o=this.queueLoad(e,t,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(function(e){r.loadOne(e)})},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources."),"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]),e.forEach(function(e){t.forEach(function(t){n.loadOne(e+"|"+t,"re")})})},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=p(r,2),i=o[0],a=o[1];this.read(i,a,"read",null,null,function(r,o){r&&t.logger.warn(n+"loading namespace "+a+" for language "+i+" failed",r),!r&&o&&t.logger.log(n+"loaded namespace "+a+" for language "+i,o),t.loaded(e,r,o)})},t.prototype.saveMissing=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,f({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r)},t}(c.a);t.a=d},function(e,t,n){"use strict";function r(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};return e[1]&&(t.defaultValue=e[1]),e[2]&&(t.tDescription=e[2]),t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function o(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}n.d(t,"a",function(){return r}),t.b=o},function(e,t,n){e.exports=n(839).default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:l.default}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(840),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(a),u=n(841),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n),this.type="backend"}return i(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=s.defaults(t,this.options||{},o())}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var o=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(o,n)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var o=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(o,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,function(r,o){if(o.status>=500&&o.status<600)return t("failed loading "+e,!0);if(o.status>=400&&o.status<500)return t("failed loading "+e,!1);var i=void 0,a=void 0;try{i=n.options.parse(r,e)}catch(t){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,i)})}},{key:"create",value:function(e,t,n,r){var o=this;"string"===typeof e&&(e=[e]);var i={};i[n]=r||"",e.forEach(function(e){var n=o.services.interpolator.interpolate(o.options.addPath,{lng:e,ns:t});o.options.ajax(n,o.options,function(e,t){},i)})}}]),e}();c.type="backend",t.default=c},function(e,t,n){"use strict";function r(e){return a.call(s.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}function o(e){return a.call(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=r,t.extend=o;var i=[],a=i.forEach,s=i.slice},function(e,t,n){"use strict";function r(e,t){if(t&&"object"===("undefined"===typeof t?"undefined":i(t))){var n="",r=encodeURIComponent;for(var o in t)n+="&"+r(o)+"="+r(t[o]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e}function o(e,t,n,o,a){o&&"object"===("undefined"===typeof o?"undefined":i(o))&&(a||(o._t=new Date),o=r("",o).slice(1)),t.queryStringParams&&(e=r(e,t.queryStringParams));try{var s;s=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0"),s.open(o?"POST":"GET",e,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,o&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=t.customHeaders;if(u)for(var l in u)s.setRequestHeader(l,u[l]);s.onreadystatechange=function(){s.readyState>3&&n&&n(s.responseText,s)},s.send(o)}catch(e){console&&console.log(e)}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);
//# sourceMappingURL=main.js.map