aldehyde 0.2.155 → 0.2.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.01a0b7dbabd823a67a31.js +2 -0
- package/dist/bundle.01a0b7dbabd823a67a31.js.LICENSE.txt +30 -0
- package/dist/bundle.01a0b7dbabd823a67a31.js.gz +0 -0
- package/dist/bundle.021f784b1c84781461d2.js +1 -0
- package/dist/bundle.03c542ca824e205fe307.js +2 -0
- package/dist/bundle.03c542ca824e205fe307.js.LICENSE.txt +27 -0
- package/dist/bundle.03c542ca824e205fe307.js.gz +0 -0
- package/dist/bundle.15cb660c34802f6cccf5.js +1 -0
- package/dist/bundle.15cb660c34802f6cccf5.js.gz +0 -0
- package/dist/bundle.1efe3c525f7cb5289934.js +1 -0
- package/dist/bundle.1efe3c525f7cb5289934.js.gz +0 -0
- package/dist/bundle.23c961ccfebfb418bb3f.js +1 -0
- package/dist/bundle.23c961ccfebfb418bb3f.js.gz +0 -0
- package/dist/bundle.2465eaaa7b912bcdfa45.js +2 -0
- package/dist/bundle.2465eaaa7b912bcdfa45.js.LICENSE.txt +32 -0
- package/dist/bundle.2465eaaa7b912bcdfa45.js.gz +0 -0
- package/dist/bundle.320c02187dd135005102.js +2 -0
- package/dist/bundle.320c02187dd135005102.js.LICENSE.txt +6 -0
- package/dist/bundle.320c02187dd135005102.js.gz +0 -0
- package/dist/bundle.35a4af7e2d0da1942d79.js +10 -0
- package/dist/bundle.35a4af7e2d0da1942d79.js.gz +0 -0
- package/dist/bundle.3b2c7bdbe61a4cf963e4.js +1 -0
- package/dist/bundle.3b2c7bdbe61a4cf963e4.js.gz +0 -0
- package/dist/bundle.3f9072b1629cdb384b46.js +2 -0
- package/dist/bundle.3f9072b1629cdb384b46.js.LICENSE.txt +5 -0
- package/dist/bundle.3f9072b1629cdb384b46.js.gz +0 -0
- package/dist/bundle.46e2295b5360a725bcd5.js +1 -0
- package/dist/bundle.46e2295b5360a725bcd5.js.gz +0 -0
- package/dist/bundle.492530b9d526ae515db6.js +2 -0
- package/dist/bundle.492530b9d526ae515db6.js.LICENSE.txt +7 -0
- package/dist/bundle.492530b9d526ae515db6.js.gz +0 -0
- package/dist/bundle.4c3c988531c3cf360b87.js +1 -0
- package/dist/bundle.4c3c988531c3cf360b87.js.gz +0 -0
- package/dist/bundle.4da1a8a32161584fc0af.js +1 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js +5 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js.LICENSE.txt +10 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js.gz +0 -0
- package/dist/bundle.5e6cccd06b34a0e3a2ff.js +1 -0
- package/dist/bundle.5e6cccd06b34a0e3a2ff.js.gz +0 -0
- package/dist/bundle.61cf0615267bbaa0da3d.js +2 -0
- package/dist/bundle.61cf0615267bbaa0da3d.js.LICENSE.txt +16 -0
- package/dist/bundle.61cf0615267bbaa0da3d.js.gz +0 -0
- package/dist/bundle.66521244df6a9af1f8d7.js +1 -0
- package/dist/bundle.66521244df6a9af1f8d7.js.gz +0 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js +2 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js.LICENSE.txt +17 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js.gz +0 -0
- package/dist/bundle.7fd0f10501de7fdda584.js +1 -0
- package/dist/bundle.7fd0f10501de7fdda584.js.gz +0 -0
- package/dist/bundle.8241d8d05e35988dd480.js +1 -0
- package/dist/bundle.8241d8d05e35988dd480.js.gz +0 -0
- package/dist/bundle.840e28984e710e12f467.js +75 -0
- package/dist/bundle.840e28984e710e12f467.js.LICENSE.txt +8 -0
- package/dist/bundle.840e28984e710e12f467.js.gz +0 -0
- package/dist/bundle.a049dc8814bbbf59160f.js +1 -0
- package/dist/bundle.a049dc8814bbbf59160f.js.gz +0 -0
- package/dist/bundle.a40e498a0d3d2ac8fb3c.js +1 -0
- package/dist/bundle.a40e498a0d3d2ac8fb3c.js.gz +0 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js +2 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js.LICENSE.txt +8 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js.gz +0 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js +2 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js.LICENSE.txt +5 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js.gz +0 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js +2 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js.LICENSE.txt +5 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js.gz +0 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js +2 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js.LICENSE.txt +22 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js.gz +0 -0
- package/dist/bundle.cf6a1933769c2aee4e6e.js +1 -0
- package/dist/bundle.cf6a1933769c2aee4e6e.js.gz +0 -0
- package/dist/bundle.e760a70171cf0ae4567b.js +1 -0
- package/dist/bundle.e760a70171cf0ae4567b.js.gz +0 -0
- package/dist/bundle.f2b373e87dc8616576e5.js +2 -0
- package/dist/bundle.f2b373e87dc8616576e5.js.LICENSE.txt +1 -0
- package/dist/bundle.f2b373e87dc8616576e5.js.gz +0 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js +2 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js.LICENSE.txt +41 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js.gz +0 -0
- package/dist/bundle.fa1e5bf8d58b99ef68e5.js +2 -0
- package/dist/bundle.fa1e5bf8d58b99ef68e5.js.LICENSE.txt +1 -0
- package/dist/bundle.fa1e5bf8d58b99ef68e5.js.gz +0 -0
- package/dist/bundle.fe9c09b8ace9c3117b0a.js +1 -0
- package/dist/bundle.fe9c09b8ace9c3117b0a.js.gz +0 -0
- package/dist/bundle.feaa17bec2057a4ee54f.js +1 -0
- package/dist/bundle.feaa17bec2057a4ee54f.js.gz +0 -0
- package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css +12 -0
- package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css.gz +0 -0
- package/dist/css/common-901df6b21f13391f2a53.css +56 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
- package/dist/css/main-d450a9a253ac65933d37.css +1071 -0
- package/dist/css/main-d450a9a253ac65933d37.css.gz +0 -0
- package/dist/images/logo-54b328b7.png +0 -0
- package/dist/index.html +4 -0
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +7 -42
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/select/index.d.ts +30 -0
- package/lib/controls/select/index.d.ts.map +1 -0
- package/lib/controls/select/index.js +145 -0
- package/lib/controls/select/index.js.map +1 -0
- package/lib/tmpl/hc-data-source.d.ts +1 -0
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.js +28 -3
- package/lib/tmpl/hc-data-source.js.map +1 -1
- package/lib/tmpl/hcservice-v3.js +7 -7
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/superagent.d.ts.map +1 -1
- package/lib/tmpl/superagent.js +21 -9
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/units/index.js +5 -3
- package/lib/units/index.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/entry-control.tsx +10 -91
- package/src/aldehyde/controls/select/index.tsx +215 -0
- package/src/aldehyde/tmpl/hc-data-source.tsx +357 -349
- package/src/aldehyde/tmpl/hcservice-v3.tsx +7 -7
- package/src/aldehyde/tmpl/interface.tsx +1 -1
- package/src/aldehyde/tmpl/superagent.js +18 -10
- package/src/aldehyde/units/index.tsx +5 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[689],{85889:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),c=n(56840),l=n(65224),u=n(49938),s=n(12242),f=n(6991),p=n(47282),d=n(9404),g=n(46059),h=p("draft_tree_data_support"),y=h?l:c,v=d.List,m=d.Repeat,S={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),c=e.getSelection(),l=u.removeRange(o,c,"backward"),p=l.getSelectionAfter(),d=u.splitBlock(l,p),g=d.getSelectionAfter(),S=u.setBlockType(d,g,"atomic"),b=a.create({entity:t}),k={key:f(),type:"atomic",text:n,characterList:v(m(b,n.length))},C={key:f(),type:"unstyled"};h&&(k=r({},k,{nextSibling:C.key}),C=r({},C,{prevSibling:k.key}));var _=[new y(k),new y(C)],E=i.createFromArray(_),O=u.replaceWithFragment(S,g,E),D=O.merge({selectionBefore:c,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return s.push(e,D,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=g(i,t,c,r)}else{var l=u.removeRange(i,n,"backward"),f=l.getSelectionAfter(),p=l.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=g(l,t,p,"before");else if(f.getEndOffset()===p.getLength())o=g(l,t,p,"after");else{var d=u.splitBlock(l,f),h=d.getSelectionAfter(),y=d.getBlockForKey(h.getFocusKey());o=g(d,t,y,"before")}}var v=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return s.push(e,v,"move-block")}};e.exports=S},95748:function(e,t,n){var r=n(9404).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},19981:function(e,t,n){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}var o=n(18227),i=n(679),a=n(9404),c=a.List,l=a.Repeat,u=a.Record,s=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return c.of(new p({start:0,end:0,decoratorKey:null,leaves:c.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):c(l(null,r)),u=t.getCharacterList();return o(a,g,s,(function(e,t){var n,r,l,d;i.push(new p({start:e,end:t,decoratorKey:a.get(e),leaves:(n=u.slice(e,t).toList(),r=e,l=[],d=n.map((function(e){return e.getStyle()})).toList(),o(d,g,s,(function(e,t){l.push(new f({start:e+r,end:t+r}))})),c(l))}))})),c(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?c(Array.isArray(t)?t:i(t)).map((function(e){return f(e)})):null}))}};function g(e,t){return e===t}e.exports=d},23018:function(e,t,n){var r=n(9404),o=r.Map,i=r.OrderedSet,a=r.Record,c=i(),l={style:c,entity:null},u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return s;var t=o({style:c,entity:null}).merge(e),n=f.get(t);if(n)return n;var i=new r(t);return f=f.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},r}(a(l)),s=new u,f=o([[o(l),s]]);u.EMPTY=s,e.exports=u},69083:function(e,t,n){var r=n(9404).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},56840:function(e,t,n){var r=n(23018),o=n(18227),i=n(9404),a=i.List,c=i.Map,l=i.OrderedSet,u=i.Record,s=i.Repeat,f=l(),p=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:c()}));function d(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=p},65224:function(e,t,n){var r=n(23018),o=n(18227),i=n(9404),a=i.List,c=i.Map,l=i.OrderedSet,u=i.Record,s=i.Repeat,f=l(),p={parent:null,characterList:a(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},g=function(e,t){return e.getEntity()===t.getEntity()},h=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.getChildKeys=function(){return this.get("children")},c.getParentKey=function(){return this.get("parent")},c.getPrevSiblingKey=function(){return this.get("prevSibling")},c.getNextSiblingKey=function(){return this.get("nextSibling")},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},i}(u(p));e.exports=h},97656:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),c=n(56840),l=n(65224),u=n(11608),s=n(91381),f=n(6991),p=n(679),d=n(47282),g=n(9404),h=n(91721),y=g.List,v=g.Record,m=g.Repeat,S=g.Map,b=g.OrderedMap,k=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),C=d("draft_tree_data_support")?l:c,_=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=o.prototype;return c.getEntityMap=function(){return u},c.getBlockMap=function(){return this.get("blockMap")},c.getSelectionBefore=function(){return this.get("selectionBefore")},c.getSelectionAfter=function(){return this.get("selectionAfter")},c.getBlockForKey=function(e){return this.getBlockMap().get(e)},c.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},c.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},c.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},c.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},c.getBlocksAsArray=function(){return this.getBlockMap().toArray()},c.getFirstBlock=function(){return this.getBlockMap().first()},c.getLastBlock=function(){return this.getBlockMap().last()},c.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},c.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},c.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},c.createEntity=function(e,t,n){return u.__create(e,t,n),this},c.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},c.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},c.addEntity=function(e){return u.__add(e),this},c.getEntity=function(e){return u.__get(e)},c.getAllEntities=function(){return u.__getAll()},c.loadWithEntities=function(e){return u.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new s:s.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=h(e),new C({key:f(),text:e,type:"unstyled",characterList:y(m(a.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:b(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new s(e.selectionBefore),selectionAfter:new s(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new C(r({},e,{data:S(e.data),characterList:null!=t?y((Array.isArray(t)?t:p(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(k);e.exports=_},94092:function(e,t,n){var r=n(23018),o=n(9404).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),l=t.getStartOffset(),u=t.getEndKey(),s=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;c===u?(o=l,a=s):(o=t===c?l:0,a=t===u?s:e.getLength());for(var f,p=e.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return e.set("characterList",p)}));return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}e.exports=i},47378:function(e,t,n){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}var o=n(14134),i=n(88372),a=n(35389),c=n(9404),l=n(90646),u=n(56408),s=c.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=s();var n=a(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=s(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},13387:function(e,t,n){var r=n(96540),o=n(98003),i=(0,n(9404).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},87918:function(e){e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},35143:function(e,t,n){var r=n(85889),o=n(95748),i=n(23018),a=n(69083),c=n(56840),l=n(97656),u=n(13387),s=n(87918),f=n(63299),p=n(81124),d=n(11608),g=n(49938),h=n(5407),y=n(12242),v=n(59414),m=n(66429),S=n(7018),b=n(91381),k=n(7470),C=n(50428),_=n(6991),E=n(57811),O=n(30894),D={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,RawDraftContentState:m,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:g,RichUtils:S,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:s,convertFromHTML:n(24712),convertFromRaw:C,convertToRaw:k,genKey:_,getDefaultKeyBinding:E,getVisibleSelectionRect:O};e.exports=D},63299:function(e,t,n){var r=n(45228);function o(){return o=r||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},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(13387),s=n(87918),f=n(13136),p=n(79777),d=n(42474),g=n(97784),h=n(74576),y=n(49884),v=n(953),m=n(12242),S=n(96540),b=n(93529),k=n(2935),C=n(14134),_=n(98003),E=n(6991),O=n(57811),D=n(97392),x=n(47282),w=n(90646),K=n(55291),T=n(56408),M=C.isBrowser("IE"),B=!M,A={edit:g,composite:f,drag:d,cut:null,render:null},F=!1,R=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(S.Component),L=function(e){function t(t){var n;return c(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),c(a(n),"_clipboard",void 0),c(a(n),"_handler",void 0),c(a(n),"_dragCount",void 0),c(a(n),"_internalDrag",void 0),c(a(n),"_editorKey",void 0),c(a(n),"_placeholderAccessibilityID",void 0),c(a(n),"_latestEditorState",void 0),c(a(n),"_latestCommittedEditorState",void 0),c(a(n),"_pendingStateFromBeforeInput",void 0),c(a(n),"_onBeforeInput",void 0),c(a(n),"_onBlur",void 0),c(a(n),"_onCharacterData",void 0),c(a(n),"_onCompositionEnd",void 0),c(a(n),"_onCompositionStart",void 0),c(a(n),"_onCopy",void 0),c(a(n),"_onCut",void 0),c(a(n),"_onDragEnd",void 0),c(a(n),"_onDragOver",void 0),c(a(n),"_onDragStart",void 0),c(a(n),"_onDrop",void 0),c(a(n),"_onInput",void 0),c(a(n),"_onFocus",void 0),c(a(n),"_onKeyDown",void 0),c(a(n),"_onKeyPress",void 0),c(a(n),"_onKeyUp",void 0),c(a(n),"_onMouseDown",void 0),c(a(n),"_onMouseUp",void 0),c(a(n),"_onPaste",void 0),c(a(n),"_onSelect",void 0),c(a(n),"editor",void 0),c(a(n),"editorContainer",void 0),c(a(n),"focus",void 0),c(a(n),"blur",void 0),c(a(n),"setMode",void 0),c(a(n),"exitCurrentMode",void 0),c(a(n),"restoreEditorDOM",void 0),c(a(n),"setClipboard",void 0),c(a(n),"getClipboard",void 0),c(a(n),"getEditorKey",void 0),c(a(n),"update",void 0),c(a(n),"onDragEnter",void 0),c(a(n),"onDragLeave",void 0),c(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),c(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=k.getScrollParent(o),a=e||D(i),c=a.x,l=a.y;K(o)||w(!1),o.focus(),i===window?window.scrollTo(c,l):b.setTop(i,l),r||n.update(m.forceSelection(t,t.getSelection()))}})),c(a(n),"blur",(function(){var e=n.editor;e&&(K(e)||w(!1),e.blur())})),c(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,c=i({},A.edit);r&&(c.onPaste=r),o&&(c.onCut=o),a&&(c.onCopy=a);var l=i({},A,{edit:c});n._handler=l[e]})),c(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),c(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),c(a(n),"setClipboard",(function(e){n._clipboard=e})),c(a(n),"getClipboard",(function(){return n._clipboard})),c(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),c(a(n),"onDragEnter",(function(){n._dragCount++})),c(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}l(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(h?h((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return S.createElement(y,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,c=e.customStyleMap,l=e.editorState,u=e.preventScroll,f=e.readOnly,d=e.textAlignment,g=e.textDirectionality,h=_({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),y=this.props.role||"textbox",v="combobox"===y?!!this.props.ariaExpanded:null,m={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},s,c),customStyleFn:a,editorKey:this._editorKey,editorState:l,preventScroll:u,textDirectionality:g};return S.createElement("div",{className:h},this._renderPlaceholder(),S.createElement("div",{className:_("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},S.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:_({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:y,spellCheck:B&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},S.createElement(R,{editor:this,editorState:l}),S.createElement(p,o({},m,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!F&&x("draft_ods_enabled")&&(F=!0,v.initODS()),this.setMode("edit"),M&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(S.Component);c(L,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=L},81124:function(e,t,n){var r=n(45228);function o(){return o=r||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},o.apply(this,arguments)}var i=n(55203),a=n(3885),c=n(96540),l=n(93529),u=n(2935),s=n(68307),f=n(55822),p=n(98003),d=n(78527),g=n(97392),h=n(41401),y=n(90646),v=n(55291),m=n(56408),S=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},b=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var b=r.prototype;return b.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||S(e.selection,e.block.getKey())&&e.forceSelection},b.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=u.getScrollParent(n),i=g(o);if(o===window){var a=d(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else v(n)||y(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},b._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,u=S(this.props.selection,n);return this.props.tree.map((function(p,d){var g=p.get("leaves");if(0===g.size)return null;var h=g.size-1,y=g.map((function(o,s){var f=a.encode(n,d,s),p=o.get("start"),g=o.get("end");return c.createElement(i,{key:f,offsetKey:f,block:t,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,g),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===l&&s===h})})).toArray(),v=p.get("decoratorKey");if(null==v)return y;if(!e.props.decorator)return y;var S=m(e.props.decorator),b=S.getComponentForKey(v);if(!b)return y;var k=S.getPropsForKey(v),C=a.encode(n,d,0),_=g.first().get("start"),E=g.last().get("end"),O=r.slice(_,E),D=t.getEntityAt(p.get("start")),x=f.getHTMLDirIfDifferent(s.getDirection(O),e.props.direction),w={contentState:e.props.contentState,decoratedText:O,dir:x,start:_,end:E,blockKey:n,entityKey:D,offsetKey:C};return c.createElement(b,o({},k,w,{key:C}),y)})).toArray()},b.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return c.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(c.Component);e.exports=b},22784:function(e,t,n){var r=n(45228);function o(){return o=r||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},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(84379),l=n(3885),u=n(96540),s=n(93529),f=n(2935),p=n(78527),d=n(97392),g=n(41401),h=n(9404),y=n(90646),v=n(55291),m=(h.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),S=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},b=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},k=function(e,t,n,r,o,a){var c={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},l=r(e);return l&&(c.className=l),void 0!==o.customEditable&&(c=i({},c,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),c},C=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",u.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=r.prototype;return h.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||m(e.selection,e.block.getKey())&&e.forceSelection;return i||a},h.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=d(o);if(o===window){var a=p(n);(r=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{v(n)||y(!1);var c=n;(r=c.offsetHeight+c.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},h.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,s=t.blockRendererFn,f=t.blockStyleFn,p=t.contentState,d=t.decorator,g=t.editorKey,h=t.editorState,y=t.customStyleFn,v=t.customStyleMap,C=t.direction,_=t.forceSelection,E=t.selection,O=t.tree,D=null;n.children.size&&(D=n.children.reduce((function(t,n){var o=l.encode(n,0,0),c=p.getBlockForKey(n),d=b(c,s),y=d.CustomComponent||r,v=S(c,a),m=v.Element,C=v.wrapperTemplate,_=k(c,g,o,f,d,null),E=i({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return t.push(u.createElement(m,_,u.createElement(y,E))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(c,p)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var c,s=n.reverse()[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){var f=c.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(u.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":l.encode(d,0,0)},p))}(C,m,t),t}),[]));var x=n.getKey(),w=l.encode(x,0,0),K=b(n,s),T=K.CustomComponent,M=null!=T?u.createElement(T,o({},this.props,{tree:h.getBlockTree(x),blockProps:K.customProps,offsetKey:w,block:n})):u.createElement(c,{block:n,children:D,contentState:p,customStyleFn:y,customStyleMap:v,decorator:d,direction:C,forceSelection:_,hasSelection:m(E,x),selection:E,tree:O});if(n.getParentKey())return M;var B=S(n,a).Element,A=k(n,g,w,f,K,this.wrapperRef);return u.createElement(B,A,M)},r}(u.Component);e.exports=C},13136:function(e,t,n){var r=n(47378),o=n(49938),i=n(3885),a=n(12242),c=n(45852),l=n(14134),u=n(16207),s=n(63564),f=n(80120),p=n(9927),d=n(56408),g=l.isBrowser("IE"),h=!1,y=!1,v=null,m={onCompositionStart:function(e){y=!0,function(e){v||(v=new r(s(e))).start()}(e)},onCompositionEnd:function(e){h=!1,y=!1,setTimeout((function(){h||m.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!y)return m.resolveComposition(e),void e._onKeyDown(t);t.which!==c.RIGHT&&t.which!==c.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===c.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!y){var t=d(v).stopAndFlushMutations();v=null,h=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var c=i.decode(t),l=c.blockKey,u=c.decoratorKey,s=c.leafKey,f=n.getBlockTree(l).getIn([u,"leaves",s]),d=f.start,g=f.end,h=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:d,focusOffset:g,isBackward:!1}),y=p(r,h),v=r.getBlockForKey(l).getInlineStyleAt(d);r=o.replaceText(r,h,e,v,y),n=a.set(n,{currentContent:r})}));var c=f(n,s(e)).selectionState;e.restoreEditorDOM();var l=g?a.forceSelection(n,c):a.acceptSelection(n,c);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=m},93659:function(e,t,n){var r=n(45228);function o(){return o=r||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},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(81124),l=n(3885),u=n(96540),s=n(98003),f=n(50798),p=n(56408),d=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},g=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||l!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,s=e.customStyleFn,g=e.editorState,h=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=g.getCurrentContent(),S=g.getSelection(),b=g.mustForceSelection(),k=g.getDecorator(),C=p(g.getDirectionMap()),_=m.getBlocksAsArray(),E=[],O=null,D=null,x=0;x<_.length;x++){var w=_[x],K=w.getKey(),T=w.getType(),M=n(w),B=void 0,A=void 0,F=void 0;M&&(B=M.component,A=M.props,F=M.editable);var R=v||C.get(K),L=l.encode(K,0,0),I={contentState:m,block:w,blockProps:A,blockStyleFn:r,customStyleMap:a,customStyleFn:s,decorator:k,direction:R,forceSelection:b,offsetKey:L,preventScroll:y,selection:S,tree:g.getBlockTree(K)},P=t.get(T)||t.get("unstyled"),N=P.wrapper,j=P.element||t.get("unstyled").element,U=w.getDepth(),H="";r&&(H=r(w)),"li"===j&&(H=f(H,d(T,U,D!==N||null===O||U>O,R)));var W=B||c,z={className:H,"data-block":!0,"data-editor":h,"data-offset-key":L,key:K};void 0!==F&&(z=i({},z,{contentEditable:F,suppressContentEditableWarning:!0}));var J=u.createElement(j,z,u.createElement(W,o({},I,{key:K})));E.push({block:J,wrapperTemplate:N,key:K,offsetKey:L}),O=N?w.getDepth():null,D=N}for(var G=[],q=0;q<E.length;){var V=E[q];if(V.wrapperTemplate){var X=[];do{X.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===V.wrapperTemplate);var Y=u.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},X);G.push(Y)}else G.push(V.block),q++}return u.createElement("div",{"data-contents":"true"},G)},r}(u.Component);e.exports=g},79777:function(e,t,n){var r=n(47282)("draft_tree_data_support");e.exports=n(r?71803:93659)},71803:function(e,t,n){var r=n(45228);function o(){return o=r||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},o.apply(this,arguments)}var i=n(22784),a=n(3885),c=n(96540),l=n(56408),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||l!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,u=e.customStyleMap,s=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,g=f.getCurrentContent(),h=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=l(f.getDirectionMap()),S=[],b=g.getBlocksAsArray()[0];b;){var k=b.getKey(),C={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:g,customStyleFn:s,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:h,block:b,direction:d||m.get(k),tree:f.getBlockTree(k)},_=(t.get(b.getType())||t.get("unstyled")).wrapper;S.push({block:c.createElement(i,o({key:k},C)),wrapperTemplate:_,key:k,offsetKey:a.encode(k,0,0)});var E=b.getNextSiblingKey();b=E?g.getBlockForKey(E):null}for(var O=[],D=0;D<S.length;){var x=S[D];if(x.wrapperTemplate){var w=[];do{w.push(S[D].block),D++}while(D<S.length&&S[D].wrapperTemplate===x.wrapperTemplate);var K=c.cloneElement(x.wrapperTemplate,{key:x.key+"-wrap","data-offset-key":x.offsetKey},w);O.push(K)}else O.push(x.block),D++}return c.createElement("div",{"data-contents":"true"},O)},r}(c.Component);e.exports=u},71988:function(e,t,n){var r=n(45228);function o(){return o=r||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},o.apply(this,arguments)}var i=n(3885),a=n(96540),c=n(68307),l=n(55822),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,u=e.decorator,s=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,g=t.getKey(),h=p.get("leaves"),y=u.getComponentForKey(s),v=u.getPropsForKey(s),m=i.encode(g,parseInt(s,10),0),S=d.slice(h.first().get("start"),h.last().get("end")),b=l.getHTMLDirIfDifferent(c.getDirection(S),f);return a.createElement(y,o({},v,{contentState:r,decoratedText:S,dir:b,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),n)},r}(a.Component);e.exports=u},42474:function(e,t,n){var r=n(92395),o=n(49938),i=n(12242),a=n(88372),c=n(19677),l=n(723),u=n(79450),s=n(35389),f=n(73680),p=n(56408),d={onDragEnd:function(e){e.exitCurrentMode(),g(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),s=e._latestEditorState,d=function(e,t){var n=null,r=null,o=c(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var l=p(a(n));return u(t,l,r,l,r)}(t.nativeEvent,s);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var y=n.getFiles();if(y.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(d,y)))return;l(y,(function(t){t&&e.update(h(s,d,t))}))}else{var v=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(d,n,v))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(s,d)):e.update(h(s,d,n.getText()))),g(e)}}}};function g(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:s(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function h(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},97784:function(e,t,n){var r=n(14134),o=n(73722),i=n(18058),a=n(87141),c=n(3694),l=n(73919),u=n(16127),s=n(74861),f=n(44447),p=n(5091),d=n(48136),g=n(72208),h=n(16207),y=r.isBrowser("Chrome"),v=r.isBrowser("Firefox"),m=y||v?h:function(e){},S={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:c,onCut:l,onDragOver:u,onDragStart:s,onFocus:f,onInput:p,onKeyDown:d,onPaste:g,onSelect:h,onMouseUp:m,onKeyUp:m};e.exports=S},74576:function(e,t,n){var r=n(40961).unstable_flushControlled;e.exports=r},55203:function(e,t,n){var r=n(45228),o=n(16268),i=n(96540),a=n(90646),c=n(12623),l=n(94660).setDraftEditorSelection,u=function(e){var t,n;function u(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=u.prototype;return s._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),u=r+o.length;if(e.hasEdgeWithin(i,r,u)){var s=this.leaf;s||a(!1);var f,p=s.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?f=p:c(p)?f=s:(f=p.firstChild)||a(!1),l(e,f,i,r,u)}}},s.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},s.componentDidUpdate=function(){this._setSelection()},s.componentDidMount=function(){this._setSelection()},s.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,c=a.customStyleMap,l=a.customStyleFn,u=a.offsetKey,s=a.styleSet,f=s.reduce((function(e,t){var n={},o=c[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(l){var p=l(s,t);f=r(f,p)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:f},i.createElement(o,null,n))},u}(i.Component);e.exports=u},84379:function(e,t,n){var r=n(71988),o=n(55203),i=n(3885),a=n(9404),c=n(96540),l=n(98003),u=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,u=e.customStyleMap,s=e.decorator,f=e.direction,p=e.forceSelection,d=e.hasSelection,g=e.selection,h=e.tree,y=t.getKey(),v=t.getText(),m=h.size-1,S=this.props.children||h.map((function(e,l){var h=e.get("decoratorKey"),S=e.get("leaves"),b=S.size-1,k=S.map((function(e,n){var r=i.encode(y,l,n),s=e.get("start"),f=e.get("end");return c.createElement(o,{key:r,offsetKey:r,block:t,start:s,selection:d?g:null,forceSelection:p,text:v.slice(s,f),styleSet:t.getInlineStyleAt(s),customStyleMap:u,customStyleFn:a,isLast:h===m&&n===b})})).toArray();return h&&s?c.createElement(r,{block:t,children:k,contentState:n,decorator:s,decoratorKey:h,direction:f,leafSet:e,text:v,key:l}):k})).toArray();return c.createElement("div",{"data-offset-key":i.encode(y,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},S)},a}(c.Component));e.exports=u},49884:function(e,t,n){var r=n(96540),o=n(98003),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},16268:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(96540),a=n(14134),c=n(90646),l=n(93816),u=a.isBrowser("IE <= 11"),s=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||c(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},s.componentDidMount=function(){this._forceFlag=!this._forceFlag},s.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},s.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=s},953:function(e){e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},11608:function(e,t,n){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}var o=n(5407),i=n(9404),a=n(90646),c=n(24809),l=(0,i.Map)(),u=c();function s(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return s("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return s("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return s("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return s("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,u=c()},mergeData:function(e,t){return s("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return s("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return f.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=c(),l=l.set(u,e),u},__get:function(e){var t=l.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=f.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",o);return l=l.set(e,i),i},__replaceData:function(e,t){var n=f.__get(e).set("data",t);return l=l.set(e,n),n}};e.exports=f},5407:function(e,t,n){var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},68382:function(e){e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,c=r,l=null,u=null,s=0;s<i.length;s++){if(e<(a=c+i[s].length)&&c<t)null!==l||(l=c),u=a;else if(null!==l)break;c=a}var f=r+n.length,p=l===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:l!==r&&l--),{start:l,end:u}}}},67204:function(e){e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},49938:function(e,t,n){var r=n(23018),o=n(94092),i=n(16416),a=n(80508),c=n(30866),l=n(9404),u=n(19127),s=n(3136),f=n(90646),p=n(5462),d=n(86044),g=n(54435),h=n(53222),y=l.OrderedSet,v={replaceText:function(e,t,n,o,i){var a=d(e,t),c=g(a,t),l=r.create({style:o||y(),entity:i||null});return s(c,c.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),v.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=c(e,t),o=v.removeRange(e,t,"backward");return v.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(e,t),i=g(o,t);return u(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,c;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),c=e.getBlockForKey(o);var l=t.getStartOffset(),u=t.getEndOffset(),s=i.getEntityAt(l),f=c.getEntityAt(u-1);if(r===o&&s&&s===f){var p=a(e.getEntityMap(),i,c,t,n);return g(e,p)}var h=d(e,t);return g(h,t)},splitBlock:function(e,t){var n=d(e,t),r=g(n,t);return h(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return i(r,t,n)}};e.exports=v},3885:function(e){var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},50046:function(e,t,n){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}var o=n(56840),i=n(65224),a=n(24712),c=n(6991),l=n(19248),u=n(47282),s=n(9404),f=n(91721),p=s.List,d=s.Repeat,g=u("draft_tree_data_support"),h=g?i:o,y={processHTML:function(e,t){return a(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=f(o);var a=c(),l={key:a,type:n,text:o,characterList:p(d(t,o.length))};if(g&&0!==i){var u=i-1;l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new h(l)),e}),[])}};e.exports=y},73998:function(e,t,n){var r="['‘’]",o="\\s|(?![_])"+n(77405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function c(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var l={getBackward:function(e){return c(e,!0)},getForward:function(e){return c(e,!1)}};e.exports=l},91439:function(e){var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},62396:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6991),a=n(90646),c=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},l={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var o=[].concat(e).reverse();o.length;){var i=o.pop();s=void 0,s=r({},u=i),c(u)&&(s.depth=s.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(u),null!=u.children&&u.children.length>0)||(delete s.children,n.push(s));var l=i.children;Array.isArray(l)||a(!1),o=o.concat([].concat(l.reverse()))}var u,s}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=c(e),a=e.depth||0,l=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(l);else if(null==u||u.depth<a-1){var s={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===a?t.push(s):null!=u&&u.children.push(s),s.children.push(l)}else if(u.depth===a-1)u.children.push(l);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},72490:function(e,t,n){n(14594),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();return(null==i||t.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&o.unshift(c);var l=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},3914:function(e,t,n){var r,o=n(61708),i=n(9404),a=n(56408),c=i.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=c(n.keySeq().zip(l));return null!=t&&i.is(t,u)?t:u}};e.exports=l},12242:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(19981),a=n(97656),c=n(3914),l=n(91381),u=n(9404),s=u.OrderedSet,f=u.Record,p=u.Stack,d=u.OrderedMap,g=u.List,h=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),y=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:l.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=r({},e,{treeMap:m(n,e.decorator),directionMap:c.getDirectionMap(n)});return new t(new h(o))},t.fromJS=function(e){return new t(new h(r({},e,{directionMap:null!=e.directionMap?d(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?s(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map((function(e){return a.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new l(e.selection):e.selection,treeMap:null!=e.treeMap?d(e.treeMap).map((function(e){return g(e).map((function(e){return i.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map((function(e){return a.fromJS(e)}))):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||e.getCurrentContent();if(o!==r){var c,l=t.get("treeMap");return c=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return i.generate(e,t,r)})))}(a,a.getBlockMap(),l,o,r):m(a,o),void t.merge({decorator:o,treeMap:c,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return i.generate(o,e,r)})))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):S(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):S(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return v(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),v(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=c.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),s=n;a!==l.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(u=u.push(l),s=s.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(s=s.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var d={currentContent:s,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function v(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function S(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):s()}e.exports=y},59414:function(e,t,n){var r=n(14134),o=n(83174),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},66429:function(){},7018:function(e,t,n){var r=n(49938),o=n(12242),i=n(60286),a=n(56408),c={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return c.toggleInlineStyle(e,"BOLD");case"italic":return c.toggleInlineStyle(e,"ITALIC");case"underline":return c.toggleInlineStyle(e,"UNDERLINE");case"code":return c.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var u=c.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var c=n.getBlockAfter(i);if(!c||"atomic"!==c.getType())return null;var l=t.merge({focusKey:c.getKey(),focusOffset:c.getLength()}),u=r.removeRange(n,l,"forward");return u!==n?o.push(e,u,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var c=t.getCurrentContent(),l=c.getBlockForKey(a),u=l.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var s=l.getDepth();if(!e.shiftKey&&s===n)return t;var f=i(c,r,e.shiftKey?-1:1,n);return o.push(t,f,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),c=n.getEndKey(),l=e.getCurrentContent(),u=n;if(i!==c&&0===n.getEndOffset()){var s=a(l.getBlockBefore(c));c=s.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:c,focusOffset:s.getLength(),isBackward:!1})}if(l.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==c})).some((function(e){return"atomic"===e.getType()})))return e;var f=l.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(l,u,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?c.toggleBlockType(e,"code-block"):c.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,c=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(c,n,t):r.applyInlineStyle(c,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),c=i.getBlockBefore(o);if("code-block"===a&&c&&"code-block"===c.getType()&&0!==c.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=c},45170:function(e,t,n){var r=n(49938),o=n(12242),i=n(30866),a=n(56408),c=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var u=n.getAnchorKey(),s=t.getBlockForKey(u).getLength();if(s===n.getAnchorOffset()){var f=t.getKeyAfter(u);if(null==f)return e;l=n.set("focusKey",f).set("focusOffset",0)}else l=n.set("focusOffset",s)}else l=n;l=a(l),c=i(t,l);var p=r.removeRange(t,l,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!c)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),c);return o.push(e,t,"insert-fragment")}};e.exports=l},91381:function(e,t,n){var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var c=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=c&&n>=c},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},60286:function(e){e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),c=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(c),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},41952:function(e,t,n){var r=n(23018);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},16416:function(e,t,n){var r=n(41952),o=n(9404);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),s=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===l})).toOrderedMap().merge(o.OrderedMap([[l,i.get(l)]])).map((function(e,t){var o=t===a?c:0,i=t===l?u:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(s),selectionBefore:t,selectionAfter:t})}},7470:function(e,t,n){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}var o=n(56840),i=n(65224),a=n(91439),c=n(77862),l=n(20702),u=n(90646),s=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:c(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,c=[],l={},f={},p=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);f[o]||(f[o]=r,n[o]="".concat(p),p++)})),function(e,t,n,a){if(e instanceof o)n.push(s(e,t));else{e instanceof i||u(!1);var c=e.getParentKey(),l=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},s(e,t),{children:[]});c?a[c].children.push(l):n.push(l)}}(e,n,c,l)})),{blocks:c,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},24712:function(e,t,n){var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(23018),c=n(56840),l=n(65224),u=n(13387),s=n(11608),f=n(25324),p=n(98003),d=n(6991),g=n(19248),h=n(47282),y=n(9404),v=y.List,m=y.Map,S=y.OrderedSet,b=n(20316),k=n(12623),C=n(55291),_=n(7296),E=h("draft_tree_data_support"),O=new RegExp("\r","g"),D=new RegExp("\n","g"),x=new RegExp("^\n","g"),w=new RegExp(" ","g"),K=new RegExp(" ?","g"),T=new RegExp("​?","g"),M=["bold","bolder","500","600","700","800","900"],B=["light","lighter","normal","100","200","300","400"],A=["className","href","rel","target","title"],F=["alt","className","height","src","width"],R=(i(r={},p("public/DraftStyleDefault/depth0"),0),i(r,p("public/DraftStyleDefault/depth1"),1),i(r,p("public/DraftStyleDefault/depth2"),2),i(r,p("public/DraftStyleDefault/depth3"),3),i(r,p("public/DraftStyleDefault/depth4"),4),r),L=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),I=function(e){return C(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some((function(n){e.classList.contains(n)&&(t=R[n])})),t},N=function(e){if(!b(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new f(t.href),!0}catch(e){return!1}},j=function(e){if(!_(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!C(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){M.indexOf(r)>=0?e.add("BOLD"):B.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},W=function(){function e(e,t){i(this,"characterList",v()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",s),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=s,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],S())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,c=this.wrapper;H(i)&&(this.wrapper=i,H(c)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=c}else{var l=this.blockTypeMap.get(i);if(void 0===l)if("#text"!==i)if("br"!==i)if(j(o))this._addImgNode(o,t);else if(N(o))this._addAnchorNode(o,n,t);else{var u=t;L.has(i)&&(u=u.add(L.get(i))),u=U(o,u);var s=I(o);null!=s&&(u=u.add(s)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof l&&(l=this.disambiguate(i,this.wrapper)||l[0]||"unstyled"),!E&&C(o)&&("unordered-list-item"===l||"ordered-list-item"===l)){var g=o;this.currentDepth=P(g,this.currentDepth)}var h=d(),y=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:y,type:l})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(x,"")).replace(D," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){k(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(_(e)){var n=e,r={};F.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),h("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(b(e)){var r=e,o={};A.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=v(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new l(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return v(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,i=n.characterList;t.contentBlocks.push(new c(o({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=v(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:g)(e=e.trim().replace(O,"").replace(w," ").replace(K,"").replace(T,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),m(t)}(t);return new W(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},50428:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(56840),a=n(65224),c=n(97656),l=n(11608),u=n(62396),s=(n(72490),n(91381)),f=n(40803),p=n(52401),d=n(33830),g=n(6991),h=n(47282),y=n(9404),v=n(90646),m=h("draft_tree_data_support"),S=y.List,b=y.Map,k=y.OrderedMap,C=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||g(),data:b(o),characterList:_(e,t)}},_=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(d(n,i||[]),p(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||g()})},O=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||v(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=l.__create(o,i,a||{})})),n}(e),n=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=m&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!m)return function(e,t){return k(e.map((function(e){var n=new i(C(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t);var c=function(e,t){return e.map(E).reduce((function(n,o,i){Array.isArray(o.children)||v(!1);var c=o.children.map(E),l=new a(r({},C(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:S(c.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var u=O([],c,l);u.length>0;){var s=u.pop(),f=s.parentRef,p=f.getChildKeys(),d=p.indexOf(s.key),g=Array.isArray(s.children);if(!g){g||v(!1);break}var h=s.children.map(E),y=new a(r({},C(s,t),{parent:f.getKey(),children:S(h.map((function(e){return e.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(y.getKey(),y),u=O(u,h,y)}return n}),k())}(o,t);return c}(e,t),o=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new c({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},40803:function(e,t,n){var r=n(23018),o=n(9404).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},52401:function(e,t,n){var r=n(50580).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},33830:function(e,t,n){var r=n(50580),o=n(9404).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},51103:function(e){e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},73722:function(e,t,n){var r=n(49938),o=n(12242),i=n(14134),a=n(9927),c=n(73680),l=n(17759),u=n(56408),s=n(19765),f=i.isBrowser("Firefox");function p(e,t,n,i,a){var c=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,c,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),g=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var h,y=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),v=!1;if(v||(v=l(e._latestCommittedEditorState)),!v){var m=n.getBlockTree(g),S=y.getBlockTree(g);v=m.size!==S.size||m.zip(S).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=d?r.length:0),a=t.get("end"),c=a+(a>=d?r.length:0),l=n.get("start"),u=n.get("end"),s=n.get("decoratorKey");return t.get("decoratorKey")!==s||t.get("leaves").size!==n.get("leaves").size||i!==l||c!==u||null!=s&&u-l!=a-o}))}if(v||(h=r,v=f&&("'"==h||"/"==h)),v||(v=u(y.getDirectionMap()).get(g)!==u(n.getDirectionMap()).get(g)),v)return t.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,s((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},18058:function(e,t,n){var r=n(12242),o=n(4909),i=n(69758);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),c=e.editor;1===a.rangeCount&&o(c,a.anchorNode)&&o(c,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,u=l.getSelection();if(u.getHasFocus()){var s=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,s))}}},87141:function(e,t,n){var r=n(12242);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694:function(e,t,n){var r=n(31296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},73919:function(e,t,n){var r=n(49938),o=n(12242),i=n(2935),a=n(31296),c=n(97392),l=n(64316);e.exports=function(e,t){var n,u=e._latestEditorState,s=u.getSelection(),f=t.target;if(s.isCollapsed())t.preventDefault();else{if(l(f)){var p=f;n=c(i.getScrollParent(p))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))}),0)}}},16127:function(e){e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},74861:function(e){e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},44447:function(e,t,n){var r=n(12242),o=n(14134);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},5091:function(e,t,n){var r=n(49938),o=n(3885),i=n(12242),a=n(14134),c=n(51103).notEmptyKey,l=n(88372),u=n(47381),s=n(56408),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var g=a.parentNode;if(null==g)return;a.nodeValue=g.textContent;for(var h=g.firstChild;null!=h;h=h.nextSibling)h!==a&&g.removeChild(h)}var y=a.textContent,v=e._latestEditorState,m=s(l(a)),S=o.decode(m),b=S.blockKey,k=S.decoratorKey,C=S.leafKey,_=v.getBlockTree(b).getIn([k,"leaves",C]),E=_.start,O=_.end,D=v.getCurrentContent(),x=D.getBlockForKey(b),w=x.getText().slice(E,O);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==w){var K,T,M,B,A=v.getSelection(),F=A.merge({anchorOffset:E,focusOffset:O,isBackward:!1}),R=x.getEntityAt(E),L=c(R)?D.getEntity(R):null,I="MUTABLE"===(null!=L?L.getMutability():null),P=I?"spellcheck-change":"apply-entity",N=r.replaceText(D,F,y,x.getInlineStyleAt(E),I?x.getEntityAt(E):null);if(f)K=n.anchorOffset,T=n.focusOffset,B=(M=E+Math.min(K,T))+Math.abs(K-T),K=M,T=B;else{var j=y.length-w.length;M=A.getStartOffset(),B=A.getEndOffset(),K=p?B+j:M,T=B+j}var U=N.merge({selectionBefore:D.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:K,focusOffset:T})});e.update(i.push(v,U,P))}else{var H=t.nativeEvent.inputType;if(H){var W=function(e,t){return"deleteContentBackward"===e?u(t):t}(H,v);if(W!==v)return e.restoreEditorDOM(),void e.update(W)}}}}},48136:function(e,t,n){var r=n(49938),o=n(12242),i=n(59414),a=n(45852),c=n(45170),l=n(14134),u=n(73680),s=n(88771),f=n(94143),p=n(70525),d=n(64071),g=n(15169),h=n(20070),y=n(47381),v=n(2383),m=n(25935),S=n(8976),b=i.isOptionKeyCommand,k=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:k&&b(t)&&t.preventDefault()}var C=e.props.keyBindingFn(t);if(null!=C&&""!==C)if("undo"!==C){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(C,i,t.timeStamp))){var _=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return v(t);case"delete-word":return p(t);case"backspace":return y(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return s(t,n);case"split-block":return d(t);case"transpose-characters":return m(t);case"move-selection-to-start-of-block":return h(t);case"move-selection-to-end-of-block":return g(t);case"secondary-cut":return c.cut(t);case"secondary-paste":return c.paste(t);default:return t}}(C,i,t);_!==i&&e.update(_)}}else S(t,i,e.update);else if(n===a.SPACE&&k&&b(t)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,E,"insert-characters"))}}},72208:function(e,t,n){var r=n(95748),o=n(23018),i=n(92395),a=n(49938),c=n(50046),l=n(12242),u=n(7018),s=n(9927),f=n(723),p=n(73680),d=n(73676);function g(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var h=n.getFiles(),y=n.getText();if(h.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(h)))return;return void f(h,(function(t){if(t=t||y){var n=e._latestEditorState,i=d(t),f=o.create({style:n.getCurrentInlineStyle(),entity:s(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),g=c.processText(i,f,p),h=r.createFromArray(g),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);e.update(l.push(n,v,"insert-fragment"))}}))}}var v=[],m=n.getText(),S=n.getHTML(),b=e._latestEditorState;if(e.props.formatPastedText){var k=e.props.formatPastedText(m,S);m=k.text,S=k.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(m,S,b))){if(m&&(v=d(m)),!e.props.stripPastedStyles){var C,_=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&_){if(-1!==(null===(C=S)||void 0===C?void 0:C.indexOf(e.getEditorKey()))||1===v.length&&1===_.size&&_.first().getText()===m)return void e.update(g(e._latestEditorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(v,_))return void e.update(g(e._latestEditorState,_));if(S){var E=c.processHTML(S,e.props.blockRenderMap);if(E){var O=E.contentBlocks,D=E.entityMap;if(O){var x=r.createFromArray(O);return void e.update(g(e._latestEditorState,x,D))}}}e.setClipboard(null)}if(v.length){var w=o.create({style:b.getCurrentInlineStyle(),entity:s(b.getCurrentContent(),b.getSelection())}),K=u.getCurrentBlockType(b),T=c.processText(v,w,K),M=r.createFromArray(T);e.update(g(e._latestEditorState,M))}}}},16207:function(e,t,n){var r=n(67204),o=n(12242),i=n(63564),a=n(80120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,c=a(n,i(e)),l=c.selectionState;l!==n.getSelection()&&(n=c.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},77862:function(e,t,n){var r=n(91439),o=n(50580).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var c=e.getText(),l=e.getEntityAt(i);n.push({offset:o(c.slice(0,i)),length:o(c.slice(i,a)),key:Number(t[r.stringify(l)])})})),n}},20702:function(e,t,n){var r=n(50580),o=n(18227),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var c=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,i,a,(function(t,o){var i=e.getText();c.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),c}(e,t,n)}));return Array.prototype.concat.apply(c,n.toJS())}},85989:function(e,t,n){var r=n(50580),o=n(19677),i=n(25377),a=n(90646);function c(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var c=e[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<t&&i-r<t}function l(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var c=r.getBoundingClientRect();return i.removeChild(r),c.height}(t),u=e.endContainer,s=e.endOffset;for(e.setStart(e.startContainer,0);c(i(e),n)&&(u=e.startContainer,s=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var f=u,p=s-1;;){for(var d=f.nodeValue,g=p;g>=0;g--)if(!(null!=d&&g>0&&r.isSurrogatePair(d,g-1))){if(e.setStart(f,g),!c(i(e),n))break;u=f,s=g}if(-1===g||0===f.childNodes.length)break;p=l(f=f.childNodes[g])}return e.setStart(u,s),e}},88372:function(e,t,n){var r=n(19677),o=n(74453);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},18227:function(e){e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},6991:function(e){var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},80508:function(e,t,n){var r=n(68382),o=n(69311),i=n(90646);function a(e,t,n,a,c,l,u){var s=n.getStartOffset(),f=n.getEndOffset(),p=e.__get(c).getMutability(),d=u?s:f;if("MUTABLE"===p)return n;var g=o(t,c).filter((function(e){return d<=e.end&&d>=e.start}));1!=g.length&&i(!1);var h=g[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});l||(u?f=h.end:s=h.start);var y=r.getRemovalRange(s,f,t.getText().slice(h.start,h.end),h.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),c=r.getEndOffset(),l=t.getEntityAt(i),u=n.getEntityAt(c-1);if(!l&&!u)return r;var s=r;if(l&&l===u)s=a(e,t,s,o,l,!0,!0);else if(l&&u){var f=a(e,t,s,o,l,!1,!0),p=a(e,n,s,o,u,!1,!1);s=s.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var d=a(e,t,s,o,l,!1,!0);s=s.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var g=a(e,n,s,o,u,!1,!1);s=s.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return s}},63564:function(e,t,n){var r=n(90646),o=n(55291);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},30866:function(e,t,n){var r=n(53310),o=n(86044);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),l=o(e,t).getBlockMap(),u=l.keySeq(),s=u.indexOf(n),f=u.indexOf(a)+1;return r(l.slice(s,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},19677:function(e){e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},57811:function(e,t,n){var r=n(59414),o=n(45852),i=n(14134),a=i.isPlatform("Mac OS X"),c=a&&i.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function s(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:s(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":s(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},80120:function(e,t,n){var r=n(29215);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,c=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,c)}},29215:function(e,t,n){var r=n(88372),o=n(74453),i=n(79450),a=n(90646),c=n(93816),l=n(56408);function u(e,t,n){var i=t,u=r(i);if(null!=u||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,c(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var f=null;if(null!=u)f=u;else{var p=function(e){for(;e.firstChild&&(c(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);f=l(o(p))}return{key:f,offset:0}}var d=i.childNodes[n-1],g=null,h=null;if(o(d)){var y=function(e){for(;e.lastChild&&(c(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);g=l(o(y)),h=s(y)}else g=l(u),h=s(d);return{key:g,offset:h}}function s(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,c){var s=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(s&&f)return{selectionState:i(e,l(r(n)),o,l(r(a)),c),needsRecovery:!1};var p=null,d=null,g=!0;return s?(p={key:l(r(n)),offset:o},d=u(t,a,c)):f?(d={key:l(r(a)),offset:c},p=u(t,n,o)):(p=u(t,n,o),d=u(t,a,c),n===a&&o===c&&(g=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,d.key,d.offset),needsRecovery:g}}},9927:function(e,t,n){var r=n(51103).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),c=t.getStartOffset(),l=e.getBlockForKey(a);return n=c===l.getLength()?null:l.getEntityAt(c),o(e.getEntityMap(),n)}},31296:function(e,t,n){var r=n(30866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},7376:function(e,t,n){var r=n(65224);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},679:function(e){e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},64658:function(e,t,n){var r=n(25377);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,i=c.bottom,a=c.left}else{var l=t[0];n=l.top,o=l.right,i=l.bottom,a=l.left}for(var u=1;u<t.length;u++){var s=t[u];0!==s.height&&0!==s.width&&(n=Math.min(n,s.top),o=Math.max(o,s.right),i=Math.max(i,s.bottom),a=Math.min(a,s.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},25377:function(e,t,n){var r=n(14134),o=n(90646),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,c=Array.from(t.getClientRects());if(n.push(c),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},69311:function(e,t,n){var r=n(90646);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},19248:function(e,t,n){var r=n(14134),o=n(90646),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},74453:function(e,t,n){var r=n(93816);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=e(n.childNodes[i]);if(a)return a}}return null}},723:function(e,t,n){var r=n(90646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,c=[];e.forEach((function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var c=new FileReader;c.onload=function(){var e=c.result;"string"!=typeof e&&r(!1),t(e)},c.onerror=function(){t("")},c.readAsText(e)}}(l,(function(n){a++,n&&c.push(n.slice(0,5e3)),a==e.length&&t(c.join("\r"))}))}))}},79450:function(e,t,n){var r=n(3885),o=n(56408);e.exports=function(e,t,n,i,a){var c=o(e.getSelection());if(!t||!i)return c;var l=r.decode(t),u=l.blockKey,s=e.getBlockTree(u),f=s&&s.getIn([l.decoratorKey,"leaves",l.leafKey]),p=r.decode(i),d=p.blockKey,g=e.getBlockTree(d),h=g&&g.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!h)return c;var y=f.get("start"),v=h.get("start"),m=f?y+n:null,S=h?v+a:null;if(c.getAnchorKey()===u&&c.getAnchorOffset()===m&&c.getFocusKey()===d&&c.getFocusOffset()===S)return c;var b=!1;if(u===d){var k=f.get("end"),C=h.get("end");b=v===y&&C===k?a<n:v<y}else b=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===u||e===d})).first()===d;return c.merge({anchorKey:u,anchorOffset:m,focusKey:d,focusOffset:S,isBackward:b})}},30894:function(e,t,n){var r=n(64658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,c=o.bottom,l=o.left;return 0===i&&0===a&&0===c&&0===l?null:o}},35389:function(e){e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},47282:function(e){e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}}}]);
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see bundle.3f9072b1629cdb384b46.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[651],{19127:function(t,e,r){"use strict";var n=r(95748),i=r(65224),o=r(9404),u=r(56269),s=r(90646),a=r(53310),c=o.List;t.exports=function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||s(!1);var f=t.getBlockMap(),h=a(r),l=e.getStartKey(),p=e.getStartOffset(),g=f.get(l);return g instanceof i&&(g.getChildKeys().isEmpty()||s(!1)),1===h.size?function(t,e,r,n,i,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",a=r.get(i),c=a.getText(),f=a.getCharacterList(),h=i,l=o+n.getText().length,p=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":p=n.getData().merge(a.getData());break;case"REPLACE_WITH_NEW_DATA":p=n.getData()}var g=a.getType();c&&"unstyled"===g&&(g=n.getType());var v=a.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:u(f,n.getCharacterList(),o),type:g,data:p});return t.merge({blockMap:r.set(i,v),selectionBefore:e,selectionAfter:e.merge({anchorKey:h,anchorOffset:l,focusKey:h,focusOffset:l,isBackward:!1})})}(t,e,f,h.first(),l,p,o):function(t,e,r,o,u,s){var a=r.first()instanceof i,f=[],h=o.size,l=r.get(u),p=o.first(),g=o.last(),v=g.getLength(),_=g.getKey(),d=a&&(!l.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());r.forEach((function(t,e){e===u?(d?f.push(t):f.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.slice(0,e),u=i.slice(0,e),s=r.first();return t.merge({text:o+s.getText(),characterList:u.concat(s.getCharacterList()),type:o?t.getType():s.getType(),data:s.getData()})}(t,s,o)),o.slice(d?0:1,h-1).forEach((function(t){return f.push(t)})),f.push(function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,u=n.slice(e,o),s=i.slice(e,o),a=r.last();return a.merge({text:a.getText()+u,characterList:a.getCharacterList().concat(s),data:a.getData()})}(t,s,o))):f.push(t)}));var y=n.createFromArray(f);return a&&(y=function(t,e,r,n){return t.withMutations((function(e){var i=r.getKey(),o=n.getKey(),u=r.getNextSiblingKey(),s=r.getParentKey(),a=function(t,e){var r=t.getKey(),n=t,i=[];for(e.get(r)&&i.push(r);n&&n.getNextSiblingKey();){var o=n.getNextSiblingKey();if(!o)break;i.push(o),n=e.get(o)}return i}(n,t),f=a[a.length-1];if(e.get(o)?(e.setIn([i,"nextSibling"],o),e.setIn([o,"prevSibling"],i)):(e.setIn([i,"nextSibling"],n.getNextSiblingKey()),e.setIn([n.getNextSiblingKey(),"prevSibling"],i)),e.setIn([f,"nextSibling"],u),u&&e.setIn([u,"prevSibling"],f),a.forEach((function(t){return e.setIn([t,"parent"],s)})),s){var h=t.get(s).getChildKeys(),l=h.indexOf(i)+1,p=h.toArray();p.splice.apply(p,[l,0].concat(a)),e.setIn([s,"children"],c(p))}}))}(y,0,l,p)),t.merge({blockMap:y,selectionBefore:e,selectionAfter:e.merge({anchorKey:_,anchorOffset:v,focusKey:_,focusOffset:v,isBackward:!1})})}(t,e,f,h,l,p)}},56269:function(t){"use strict";t.exports=function(t,e,r){var n=t;if(r===n.count())e.forEach((function(t){n=n.push(t)}));else if(0===r)e.reverse().forEach((function(t){n=n.unshift(t)}));else{var i=n.slice(0,r),o=n.slice(r);n=i.concat(e,o).toList()}return n}},3136:function(t,e,r){"use strict";var n=r(9404),i=r(56269),o=r(90646),u=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!1);var s=null;if(null!=r&&(s=r.length),null==s||0===s)return t;var a=t.getBlockMap(),c=e.getStartKey(),f=e.getStartOffset(),h=a.get(c),l=h.getText(),p=h.merge({text:l.slice(0,f)+r+l.slice(f,h.getLength()),characterList:i(h.getCharacterList(),u(n,s).toList(),f)}),g=f+s;return t.merge({blockMap:a.set(c,p),selectionAfter:e.merge({anchorOffset:g,focusOffset:g})})}},93816:function(t){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},73680:function(t){"use strict";t.exports=function(t){return"handled"===t||!0===t}},20316:function(t,e,r){"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&n(t)&&"A"===t.nodeName}},12623:function(t,e,r){"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&n(t)&&"BR"===t.nodeName}},55291:function(t){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},7296:function(t,e,r){"use strict";var n=r(93816);t.exports=function(t){return!(!t||!t.ownerDocument)&&n(t)&&"IMG"===t.nodeName}},64316:function(t){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},17759:function(t){"use strict";t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),i=e.getStartOffset(),o=!1;return n.some((function(t){return i===t.get("start")?(o=!0,!0):i<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");return i===e&&(o=!0,!0)}))})),o}},83174:function(t,e,r){"use strict";var n=r(45852);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},88771:function(t,e,r){"use strict";var n=r(12242),i=r(85989),o=r(29215),u=r(58488),s=r(5188);t.exports=function(t,e){var r=s(t,(function(t){var r=t.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return u(t,1);var n=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return n=i(n),o(t,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState}),"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},94143:function(t,e,r){"use strict";var n=r(73998),i=r(12242),o=r(58488),u=r(5188);t.exports=function(t){var e=u(t,(function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return o(t,1);var i=e.getStartKey(),u=t.getCurrentContent().getBlockForKey(i).getText().slice(0,r),s=n.getBackward(u);return o(t,s.length||1)}),"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},70525:function(t,e,r){"use strict";var n=r(73998),i=r(12242),o=r(77800),u=r(5188);t.exports=function(t){var e=u(t,(function(t){var e=t.getSelection(),r=e.getStartOffset(),i=e.getStartKey(),u=t.getCurrentContent().getBlockForKey(i).getText().slice(r),s=n.getForward(u);return o(t,s.length||1)}),"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},64071:function(t,e,r){"use strict";var n=r(49938),i=r(12242);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},15169:function(t,e,r){"use strict";var n=r(12242);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}},20070:function(t,e,r){"use strict";var n=r(12242);t.exports=function(t){var e=t.getSelection(),r=e.getStartKey();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},47381:function(t,e,r){"use strict";var n=r(12242),i=r(50580),o=r(58488),u=r(5188);t.exports=function(t){var e=u(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),u=e.getAnchorOffset(),s=r.getBlockForKey(n).getText()[u-1];return o(t,s?i.getUTF16Length(s,0):1)}),"backward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},2383:function(t,e,r){"use strict";var n=r(12242),i=r(50580),o=r(77800),u=r(5188);t.exports=function(t){var e=u(t,(function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),u=e.getAnchorOffset(),s=r.getBlockForKey(n).getText()[u];return o(t,s?i.getUTF16Length(s,0):1)}),"forward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},25935:function(t,e,r){"use strict";var n=r(49938),i=r(12242),o=r(30866);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var r=e.getAnchorOffset();if(0===r)return t;var u,s,a=e.getAnchorKey(),c=t.getCurrentContent(),f=c.getBlockForKey(a).getLength();if(f<=1)return t;r===f?(u=e.set("anchorOffset",r-1),s=e):s=(u=e.set("focusOffset",r+1)).set("anchorOffset",r+1);var h=o(c,u),l=n.removeRange(c,u,"backward"),p=l.getSelectionAfter(),g=p.getAnchorOffset()-1,v=p.merge({anchorOffset:g,focusOffset:g}),_=n.replaceWithFragment(l,v,h),d=i.push(t,_,"insert-fragment");return i.acceptSelection(d,s)}},8976:function(t,e,r){"use strict";var n=r(12242);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(r(n.set(e,{nativelyRenderedContent:null})),setTimeout((function(){r(i)}),0)):r(i);else{var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}))}}},5462:function(t,e,r){"use strict";var n=r(9404).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),u=t.getBlockMap(),s=u.toSeq().skipUntil((function(t,e){return e===i})).takeUntil((function(t,e){return e===o})).concat(n([[o,u.get(o)]])).map(r);return t.merge({blockMap:u.merge(s),selectionBefore:e,selectionAfter:e})}},46059:function(t,e,r){"use strict";var n=r(65224),i=r(7376),o=r(9404),u=r(90646),s=o.OrderedMap,a=o.List,c=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},f=function(t,e,r,n,i){if(!i)return t;var o="after"===n,u=e.getKey(),s=r.getKey(),f=e.getParentKey(),h=e.getNextSiblingKey(),l=e.getPrevSiblingKey(),p=r.getParentKey(),g=o?r.getNextSiblingKey():s,v=o?s:r.getPrevSiblingKey();return t.withMutations((function(t){c(f,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(u))})})),c(l,t,(function(t){return t.merge({nextSibling:h})})),c(h,t,(function(t){return t.merge({prevSibling:l})})),c(g,t,(function(t){return t.merge({prevSibling:u})})),c(v,t,(function(t){return t.merge({nextSibling:u})})),c(p,t,(function(t){var e=t.getChildKeys(),r=e.indexOf(s),n=o?r+1:0!==r?r-1:0,i=e.toArray();return i.splice(n,0,u),t.merge({children:a(i)})})),c(u,t,(function(t){return t.merge({nextSibling:g,prevSibling:v,parent:p})}))}))};t.exports=function(t,e,r,o){"replace"===o&&u(!1);var a=r.getKey(),c=e.getKey();c===a&&u(!1);var h=t.getBlockMap(),l=e instanceof n,p=[e],g=h.delete(c);l&&(p=[],g=h.withMutations((function(t){var r=e.getNextSiblingKey(),n=i(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===c})).takeWhile((function(t){var e=t.getKey(),i=e===c,o=r&&e!==r,u=!r&&t.getParentKey()&&(!n||e!==n);return!!(i||o||u)})).forEach((function(e){p.push(e),t.delete(e.getKey())}))})));var v=g.toSeq().takeUntil((function(t){return t===r})),_=g.toSeq().skipUntil((function(t){return t===r})).skip(1),d=p.map((function(t){return[t.getKey(),t]})),y=s();if("before"===o){var m=t.getBlockBefore(a);m&&m.getKey()===e.getKey()&&u(!1),y=v.concat([].concat(d,[[a,r]]),_).toOrderedMap()}else if("after"===o){var w=t.getBlockAfter(a);w&&w.getKey()===c&&u(!1),y=v.concat([[a,r]].concat(d),_).toOrderedMap()}return t.merge({blockMap:f(y,e,r,o,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},58488:function(t,e,r){"use strict";r(14594),t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),u=i,s=0;if(e>o){var a=n.getKeyBefore(i);null==a?u=i:(u=a,s=n.getBlockForKey(a).getText().length)}else s=o-e;return r.merge({focusKey:u,focusOffset:s,isBackward:!0})}},77800:function(t,e,r){"use strict";r(14594),t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),u=t.getCurrentContent(),s=i;return e>u.getBlockForKey(i).getText().length-o?(s=u.getKeyAfter(i),r=0):r=o+e,n.merge({focusKey:s,focusOffset:r})}},53310:function(t,e,r){"use strict";var n=r(65224),i=r(6991),o=r(9404).OrderedMap;t.exports=function(t){return t.first()instanceof n?function(t){var e,r={};return o(t.withMutations((function(t){t.forEach((function(n,o){var u=n.getKey(),s=n.getNextSiblingKey(),a=n.getPrevSiblingKey(),c=n.getChildKeys(),f=n.getParentKey(),h=i();if(r[u]=h,s&&(t.get(s)?t.setIn([s,"prevSibling"],h):t.setIn([u,"nextSibling"],null)),a&&(t.get(a)?t.setIn([a,"nextSibling"],h):t.setIn([u,"prevSibling"],null)),f&&t.get(f)){var l=t.get(f).getChildKeys();t.setIn([f,"children"],l.set(l.indexOf(n.getKey()),h))}else t.setIn([u,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],h),t.setIn([u,"prevSibling"],r[e.getKey()])),e=t.get(u);c.forEach((function(e){t.get(e)?t.setIn([e,"parent"],h):t.setIn([u,"children"],n.getChildKeys().filter((function(t){return t!==e})))}))}))})).toArray().map((function(t){return[r[t.getKey()],t.set("key",r[t.getKey()])]})))}(t):function(t){return o(t.toArray().map((function(t){var e=i();return[e,t.set("key",e)]})))}(t)}},86044:function(t,e,r){"use strict";var n=r(23018),i=r(18227),o=r(90646);function u(t,e,r){var u=e.getCharacterList(),s=r>0?u.get(r-1):void 0,a=r<u.count()?u.get(r):void 0,c=s?s.getEntity():void 0,f=a?a.getEntity():void 0;if(f&&f===c&&"MUTABLE"!==t.__get(f).getMutability()){for(var h,l=function(t,e,r){var n;return i(t,(function(t,e){return t.getEntity()===e.getEntity()}),(function(t){return t.getEntity()===e}),(function(t,e){t<=r&&e>=r&&(n={start:t,end:e})})),"object"!=typeof n&&o(!1),n}(u,f,r),p=l.start,g=l.end;p<g;)h=u.get(p),u=u.set(p,n.applyEntity(h,null)),p++;return e.set("characterList",u)}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),i={},o=e.getStartKey(),s=e.getStartOffset(),a=r.get(o),c=u(n,a,s);c!==a&&(i[o]=c);var f=e.getEndKey(),h=e.getEndOffset(),l=r.get(f);o===f&&(l=c);var p=u(n,l,h);return p!==l&&(i[f]=p),Object.keys(i).length?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},54435:function(t,e,r){"use strict";var n=r(65224),i=r(7376),o=r(9404),u=(o.List,o.Map),s=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},a=function(t,e){var r=[];if(!t)return r;for(var n=e.get(t);n&&n.getParentKey();){var i=n.getParentKey();i&&r.push(i),n=i?e.get(i):null}return r},c=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getNextSiblingKey();n&&!e.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},f=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getPrevSiblingKey();n&&!e.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n};t.exports=function(t,e){if(e.isCollapsed())return t;var r,o=t.getBlockMap(),h=e.getStartKey(),l=e.getStartOffset(),p=e.getEndKey(),g=e.getEndOffset(),v=o.get(h),_=o.get(p),d=v instanceof n,y=[];if(d){var m=_.getChildKeys(),w=a(p,o);_.getNextSiblingKey()&&(y=y.concat(w)),m.isEmpty()||(y=y.concat(w.concat([p]))),y=y.concat(a(i(_,o),o))}r=v===_?function(t,e,r){if(0===e)for(;e<r;)t=t.shift(),e++;else if(r===t.count())for(;r>e;)t=t.pop(),r--;else{var n=t.slice(0,e),i=t.slice(r);t=n.concat(i).toList()}return t}(v.getCharacterList(),l,g):v.getCharacterList().slice(0,l).concat(_.getCharacterList().slice(g));var S=v.merge({text:v.getText().slice(0,l)+_.getText().slice(g),characterList:r}),x=d&&0===l&&0===g&&_.getParentKey()===h&&null==_.getPrevSiblingKey()?u([[h,null]]):o.toSeq().skipUntil((function(t,e){return e===h})).takeUntil((function(t,e){return e===p})).filter((function(t,e){return-1===y.indexOf(e)})).concat(u([[p,null]])).map((function(t,e){return e===h?S:null})),b=o.merge(x).filter((function(t){return!!t}));return d&&v!==_&&(b=function(t,e,r,n){return t.withMutations((function(o){if(s(e.getKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:f(t,o,n)})})),s(r.getKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:f(t,o,n)})})),a(e.getKey(),n).forEach((function(t){return s(t,o,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return o.get(t)})),nextSibling:c(t,o,n),prevSibling:f(t,o,n)})}))})),s(e.getNextSiblingKey(),o,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),s(e.getPrevSiblingKey(),o,(function(t){return t.merge({nextSibling:c(t,o,n)})})),s(r.getNextSiblingKey(),o,(function(t){return t.merge({prevSibling:f(t,o,n)})})),s(r.getPrevSiblingKey(),o,(function(t){return t.merge({nextSibling:r.getNextSiblingKey()})})),a(r.getKey(),n).forEach((function(t){s(t,o,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return o.get(t)})),nextSibling:c(t,o,n),prevSibling:f(t,o,n)})}))})),function(t,e){var r=[];if(!t)return r;for(var n=i(t,e);n&&e.get(n);){var o=e.get(n);r.push(n),n=o.getParentKey()?i(o,e):null}return r}(r,n).forEach((function(t){return s(t,o,(function(t){return t.merge({nextSibling:c(t,o,n),prevSibling:f(t,o,n)})}))})),null==t.get(e.getKey())&&null!=t.get(r.getKey())&&r.getParentKey()===e.getKey()&&null==r.getPrevSiblingKey()){var u=e.getPrevSiblingKey();s(r.getKey(),o,(function(t){return t.merge({prevSibling:u})})),s(u,o,(function(t){return t.merge({nextSibling:r.getKey()})}));var h=u?t.get(u):null,l=h?h.getParentKey():null;if(e.getChildKeys().forEach((function(t){s(t,o,(function(t){return t.merge({parent:l})}))})),null!=l){var p=t.get(l);s(l,o,(function(t){return t.merge({children:p.getChildKeys().concat(e.getChildKeys())})}))}s(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),o,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))}(b,v,_,o)),t.merge({blockMap:b,selectionBefore:e,selectionAfter:e.merge({anchorKey:h,anchorOffset:l,focusKey:h,focusOffset:l,isBackward:!1})})}},5188:function(t,e,r){"use strict";var n=r(49938),i=r(47282)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),u=t.getCurrentContent(),s=o,a=o.getAnchorKey(),c=o.getFocusKey(),f=u.getBlockForKey(a);if(i&&"forward"===r&&a!==c)return u;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return u;if(i&&o.getAnchorOffset()===u.getBlockForKey(a).getLength()){var h=u.getBlockForKey(f.nextSibling);if(!h||0===h.getLength())return u}}else if(t.isSelectionAtStartOfContent())return u;if((s=e(t))===o)return u}return n.removeRange(u,s,r)}},91721:function(t){"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},94660:function(t,e,r){"use strict";var n=r(953),i=r(67204),o=r(14134),u=r(4909),s=r(69758),a=r(19677),c=r(90646),f=r(93816),h=o.isBrowser("IE");function l(t,e){if(!t)return"[empty]";var r=p(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(f(r)||c(!1),r.outerHTML)}function p(t,e){var r=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var n=t.textContent.length;return a(t).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var o=t.childNodes,u=0;u<o.length;u++)i.appendChild(p(o[u],e));return i}function g(t,e){for(var r=t,n=r;r;){if(f(r)&&n.hasAttribute("contenteditable"))return l(r,e);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function v(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function _(t,e,r,n){var o=s();if(t.extend&&null!=e&&u(o,e)){r>v(e)&&i.logSelectionStateFailure({anonymizedDom:g(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var a=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(u){throw i.logSelectionStateFailure({anonymizedDom:g(e,(function(e){var r=[];return e===o&&r.push("active element"),e===t.anchorNode&&r.push("selection anchor node"),e===t.focusNode&&r.push("selection focus node"),r})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:a,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:u?""+u:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),u}}else if(e&&t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r),t.addRange(c.cloneRange())}}function d(t,e,r,o){var u=a(e).createRange();if(r>v(e)&&(i.logSelectionStateFailure({anonymizedDom:g(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),u.setStart(e,r),h)try{t.addRange(u)}catch(t){}else t.addRange(u)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=a(e);if(u(o.documentElement,e)){var s=o.defaultView.getSelection(),c=t.getAnchorKey(),f=t.getAnchorOffset(),h=t.getFocusKey(),l=t.getFocusOffset(),p=t.getIsBackward();if(!s.extend&&p){var g=c,v=f;c=h,f=l,h=g,l=v,p=!1}var y=c===r&&n<=f&&i>=f,m=h===r&&n<=l&&i>=l;if(y&&m)return s.removeAllRanges(),d(s,e,f-n,t),void _(s,e,l-n,t);if(p){if(m&&(s.removeAllRanges(),d(s,e,l-n,t)),y){var w=s.focusNode,S=s.focusOffset;s.removeAllRanges(),d(s,e,f-n,t),_(s,w,S,t)}}else y&&(s.removeAllRanges(),d(s,e,f-n,t)),m&&_(s,e,l-n,t)}},addFocusToSelection:_}},53222:function(t,e,r){"use strict";var n=r(65224),i=r(6991),o=r(9404),u=r(90646),s=r(5462),a=o.List,c=o.Map,f=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}};t.exports=function(t,e){e.isCollapsed()||u(!1);var r=e.getAnchorKey(),o=t.getBlockMap(),h=o.get(r),l=h.getText();if(!l){var p=h.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return s(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var g=e.getAnchorOffset(),v=h.getCharacterList(),_=i(),d=h instanceof n,y=h.merge({text:l.slice(0,g),characterList:v.slice(0,g)}),m=y.merge({key:_,text:l.slice(g),characterList:v.slice(g),data:c()}),w=o.toSeq().takeUntil((function(t){return t===h})),S=o.toSeq().skipUntil((function(t){return t===h})).rest(),x=w.concat([[r,y],[_,m]],S).toOrderedMap();return d&&(h.getChildKeys().isEmpty()||u(!1),x=function(t,e,r){return t.withMutations((function(t){var n=e.getKey(),i=r.getKey();f(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),r=e.indexOf(n)+1,o=e.toArray();return o.splice(r,0,i),t.merge({children:a(o)})})),f(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:i})})),f(n,t,(function(t){return t.merge({nextSibling:i})})),f(i,t,(function(t){return t.merge({prevSibling:n})}))}))}(x,y,m)),t.merge({blockMap:x,selectionBefore:e,selectionAfter:e.merge({anchorKey:_,anchorOffset:0,focusKey:_,focusOffset:0,isBackward:!1})})}},73676:function(t){"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},24809:function(t){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},92395:function(t,e,r){"use strict";var n=r(2505),i=r(71864),o=r(59395),u=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function a(t){if("file"==t.kind)return t.getAsFile()}var c=function(){function t(t){this.data=t,this.types=t.types?i(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return s[t]}))},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(u,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),r=0;r<e.length;r++){var i=e[r].type;if(!n.isImage(i))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(a).filter(o.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=c},45852:function(t){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},2505:function(t){"use strict";var e={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var n=r(t);return e.isImage(t)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(t){return t.split("/")}t.exports=e},93529:function(t){"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}};t.exports=r},2935:function(t,e,r){"use strict";function n(t,e){var r=i.get(t,e);return"auto"===r||"scroll"===r}var i={get:r(46892),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(n(t,"overflow")||n(t,"overflowY")||n(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},77405:function(t){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},25324:function(t){"use strict";var e=function(){function t(t){var e,r;r=void 0,(e="_uri")in this?Object.defineProperty(this,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[e]=r,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},68307:function(t,e,r){"use strict";var n=r(55822),i=r(90646),o="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",u="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+o+u+"]"),a=new RegExp("["+o+u+"]");function c(t){var e=s.exec(t);return null==e?null:e[0]}function f(t){var e=c(t);return null==e?n.NEUTRAL:a.exec(e)?n.RTL:n.LTR}function h(t,e){if(e=e||n.NEUTRAL,!t.length)return e;var r=f(t);return r===n.NEUTRAL?e:r}function l(t,e){return e||(e=n.getGlobalDir()),n.isStrong(e)||i(!1),h(t,e)}var p={firstStrongChar:c,firstStrongCharDir:f,resolveBlockDir:h,getDirection:l,isDirectionLTR:function(t,e){return l(t,e)===n.LTR},isDirectionRTL:function(t,e){return l(t,e)===n.RTL}};t.exports=p},55822:function(t,e,r){"use strict";var n=r(90646),i="LTR",o="RTL",u=null;function s(t){return t===i||t===o}function a(t){return s(t)||n(!1),t===i?"ltr":"rtl"}function c(t){u=t}var f={NEUTRAL:"NEUTRAL",LTR:i,RTL:o,isStrong:s,getHTMLDir:a,getHTMLDirIfDifferent:function(t,e){return s(t)||n(!1),s(e)||n(!1),t===e?null:a(t)},setGlobalDir:c,initGlobalDir:function(){c(i)},getGlobalDir:function(){return u||this.initGlobalDir(),u||n(!1),u}};t.exports=f},61708:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(68307),o=r(55822),u=r(90646),s=function(){function t(t){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),t?o.isStrong(t)||u(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=i.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},50580:function(t,e,r){"use strict";var n=r(90646),i=55296,o=57343,u=/[\uD800-\uDFFF]/;function s(t){return i<=t&&t<=o}function a(t){return u.test(t)}function c(t,e){return 1+s(t.charCodeAt(e))}function f(t,e,r){if(e=e||0,r=void 0===r?1/0:r||0,!a(t))return t.substr(e,r);var n=t.length;if(n<=0||e>n||r<=0)return"";var i=0;if(e>0){for(;e>0&&i<n;e--)i+=c(t,i);if(i>=n)return""}else if(e<0){for(i=n;e<0&&0<i;e++)i-=c(t,i-1);i<0&&(i=0)}var o=n;if(r<n)for(o=i;r>0&&o<n;r--)o+=c(t,o);return t.substring(i,o)}var h={getCodePoints:function(t){for(var e=[],r=0;r<t.length;r+=c(t,r))e.push(t.codePointAt(r));return e},getUTF16Length:c,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:s,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||n(!1),e+1===t.length)return!1;var r=t.charCodeAt(e),u=t.charCodeAt(e+1);return i<=r&&r<=56319&&56320<=u&&u<=o},strlen:function(t){if(!a(t))return t.length;for(var e=0,r=0;r<t.length;r+=c(t,r))e++;return e},substring:function(t,e,r){(e=e||0)<0&&(e=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-e);return f(t,e=e<r?e:r,n)},substr:f};t.exports=h},14134:function(t,e,r){"use strict";var n=r(94534),i=r(50953),o=r(83731),u=r(94793);function s(t,e,r,n){if(t===r)return!0;if(!r.startsWith(t))return!1;var o=r.slice(t.length);return!!e&&(o=n?n(o):o,i.contains(o,e))}function a(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}var c={isBrowser:function(t){return s(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){return s(n.browserArchitecture,null,t)},isDevice:function(t){return s(n.deviceName,null,t)},isEngine:function(t){return s(n.engineName,n.engineVersion,t)},isPlatform:function(t){return s(n.platformName,n.platformFullVersion,t,a)},isPlatformArchitecture:function(t){return s(n.platformArchitecture,null,t)}};t.exports=o(c,u)},94534:function(t,e,r){"use strict";var n,i="Unknown",o=(new(r(77232))).getResult(),u=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(o.browser.version),s={browserArchitecture:o.cpu.architecture||i,browserFullVersion:o.browser.version||i,browserMinorVersion:u.minor||i,browserName:o.browser.name||i,browserVersion:o.browser.major||i,deviceName:o.device.model||i,engineName:o.engine.name||i,engineVersion:o.engine.version||i,platformArchitecture:o.cpu.architecture||i,platformName:(n=o.os.name,{"Mac OS":"Mac OS X"}[n]||n||i),platformVersion:o.os.version||i,platformFullVersion:o.os.version||i};t.exports=s},50953:function(t,e,r){"use strict";var n=r(90646),i=/\./,o=/\|\|/,u=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,a=/^(\d*)(.*)/;function c(t,e){if(""===(t=t.trim()))return!0;var r,n=e.split(i),o=l(t),u=o.modifier,s=o.rangeComponents;switch(u){case"<":return f(n,s);case"<=":return-1===(r=y(n,s))||0===r;case">=":return h(n,s);case">":return 1===y(n,s);case"~":case"~>":return function(t,e){var r=e.slice(),n=e.slice();n.length>1&&n.pop();var i=n.length-1,o=parseInt(n[i],10);return p(o)&&(n[i]=o+1+""),h(t,r)&&f(t,n)}(n,s);default:return function(t,e){return 0===y(t,e)}(n,s)}}function f(t,e){return-1===y(t,e)}function h(t,e){var r=y(t,e);return 1===r||0===r}function l(t){var e=t.split(i),r=e[0].match(s);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(e.slice(1))}}function p(t){return!isNaN(t)&&isFinite(t)}function g(t){return!l(t).modifier}function v(t,e){for(var r=t.length;r<e;r++)t[r]="0"}function _(t,e){var r=t.match(a)[1],n=e.match(a)[1],i=parseInt(r,10),o=parseInt(n,10);return p(i)&&p(o)&&i!==o?d(i,o):d(t,e)}function d(t,e){return typeof t!=typeof e&&n(!1),t>e?1:t<e?-1:0}function y(t,e){for(var r=function(t,e){v(t=t.slice(),(e=e.slice()).length);for(var r=0;r<e.length;r++){var n=e[r].match(/^[x*]$/i);if(n&&(e[r]=t[r]="0","*"===n[0]&&r===e.length-1))for(var i=r;i<t.length;i++)t[i]="0"}return v(e,t.length),[t,e]}(t,e),n=r[0],i=r[1],o=0;o<i.length;o++){var u=_(n[o],i[o]);if(u)return u}return 0}var m={contains:function(t,e){return function(t,e){var r=t.split(o);return r.length>1?r.some((function(t){return m.contains(t,e)})):function(t,e){var r=t.split(u);if(r.length>0&&r.length<=2||n(!1),1===r.length)return c(r[0],e);var i=r[0],o=r[1];return g(i)&&g(o)||n(!1),c(">="+i,e)&&c("<="+o,e)}(t=r[0].trim(),e)}(t.trim(),e.trim())}};t.exports=m},8748:function(t){"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,(function(t,e){return e.toUpperCase()}))}},4909:function(t,e,r){"use strict";var n=r(95423);t.exports=function t(e,r){return!(!e||!r)&&(e===r||!n(e)&&(n(r)?t(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}},71864:function(t,e,r){"use strict";var n=r(90646);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&n(!1),"number"!=typeof e&&n(!1),0===e||e-1 in t||n(!1),"function"==typeof t.callee&&n(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var r=Array(e),i=0;i<e;i++)r[i]=t[i];return r}(t):[t]}},98003:function(t){"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},59395:function(t){"use strict";function e(t){return function(){return t}}var r=function(){};r.thatReturns=e,r.thatReturnsFalse=e(!1),r.thatReturnsTrue=e(!0),r.thatReturnsNull=e(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},69758:function(t){"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},59824:function(t){"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},78527:function(t,e,r){"use strict";var n=r(17078);t.exports=function(t){var e=n(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},17078:function(t,e,r){"use strict";var n=r(4909);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!n(e,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-e.clientLeft,right:Math.round(r.right)-e.clientLeft,top:Math.round(r.top)-e.clientTop,bottom:Math.round(r.bottom)-e.clientTop}}},97392:function(t,e,r){"use strict";var n=r(59824),i=r(37458);t.exports=function(t){var e=n(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var r=i(t),o=t===e?t.ownerDocument.documentElement:t,u=t.scrollWidth-o.clientWidth,s=t.scrollHeight-o.clientHeight;return r.x=Math.max(0,Math.min(r.x,u)),r.y=Math.max(0,Math.min(r.y,s)),r}},46892:function(t,e,r){"use strict";var n=r(8748),i=r(13998);function o(t){return null==t?t:String(t)}t.exports=function(t,e){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(t,null)))return o(r.getPropertyValue(i(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(t,null))return o(r.getPropertyValue(i(e)));if("display"===e)return"none"}return t.currentStyle?o("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[n(e)]):o(t.style&&t.style[n(e)])}},37458:function(t){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},41401:function(t){"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:e(),height:r()}},t.exports=n},13998:function(t){"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},90646:function(t){"use strict";t.exports=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(o=new Error(e.replace(/%s/g,(function(){return String(n[u++])})))).name="Invariant Violation"}throw o.framesToPop=1,o}}},15504:function(t){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},95423:function(t,e,r){"use strict";var n=r(15504);t.exports=function(t){return n(t)&&3==t.nodeType}},50798:function(t){"use strict";t.exports=function(t){var e=t||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var i=arguments[n];i&&(e=(e?e+" ":"")+i)}return e}},83731:function(t){"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){if(!t)return null;var i={};for(var o in t)e.call(t,o)&&(i[o]=r.call(n,t[o],o,t));return i}},94793:function(t){"use strict";t.exports=function(t){var e={};return function(r){return e.hasOwnProperty(r)||(e[r]=t.call(this,r)),e[r]}}},56408:function(t){"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},19765:function(t,e,r){"use strict";r(42791),t.exports=r.g.setImmediate},14594:function(t,e,r){"use strict";var n=r(59395);t.exports=n},9404:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return u(t)?t:J(t)}function n(t){return s(t)?t:G(t)}function i(t){return a(t)?t:X(t)}function o(t){return u(t)&&!c(t)?t:$(t)}function u(t){return!(!t||!t[h])}function s(t){return!(!t||!t[l])}function a(t){return!(!t||!t[p])}function c(t){return s(t)||a(t)}function f(t){return!(!t||!t[g])}e(n,r),e(i,r),e(o,r),r.isIterable=u,r.isKeyed=s,r.isIndexed=a,r.isAssociative=c,r.isOrdered=f,r.Keyed=n,r.Indexed=i,r.Set=o;var h="@@__IMMUTABLE_ITERABLE__@@",l="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",g="@@__IMMUTABLE_ORDERED__@@",v="delete",_=5,d=1<<_,y=d-1,m={},w={value:!1},S={value:!1};function x(t){return t.value=!1,t}function b(t){t&&(t.value=!0)}function O(){}function E(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function I(t){return void 0===t.size&&(t.size=t.__iterate(D)),t.size}function K(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?I(t)+e:e}function D(){return!0}function A(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function z(t,e){return k(t,e,0)}function M(t,e){return k(t,e,e)}function k(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var C=0,T=1,L=2,N="function"==typeof Symbol&&Symbol.iterator,q="@@iterator",R=N||q;function j(t){this.next=t}function P(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function B(){return{value:void 0,done:!0}}function U(t){return!!V(t)}function W(t){return t&&"function"==typeof t.next}function F(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(N&&t[N]||t[q]);if("function"==typeof e)return e}function H(t){return t&&"number"==typeof t.length}function J(t){return null==t?ut():u(t)?t.toSeq():function(t){var e=ct(t)||"object"==typeof t&&new rt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function G(t){return null==t?ut().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():st(t)}function X(t){return null==t?ut():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():at(t)}function $(t){return(null==t?ut():u(t)?s(t)?t.entrySeq():t:at(t)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=C,j.VALUES=T,j.ENTRIES=L,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[R]=function(){return this},e(J,r),J.of=function(){return J(arguments)},J.prototype.toSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq {","}")},J.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},J.prototype.__iterate=function(t,e){return ft(this,t,e,!0)},J.prototype.__iterator=function(t,e){return ht(this,t,e,!0)},e(G,J),G.prototype.toKeyedSeq=function(){return this},e(X,J),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(t,e){return ft(this,t,e,!1)},X.prototype.__iterator=function(t,e){return ht(this,t,e,!1)},e($,J),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},J.isSeq=ot,J.Keyed=G,J.Set=$,J.Indexed=X;var Y,Z,Q,tt="@@__IMMUTABLE_SEQ__@@";function et(t){this._array=t,this.size=t.length}function rt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function it(t){this._iterator=t,this._iteratorCache=[]}function ot(t){return!(!t||!t[tt])}function ut(){return Y||(Y=new et([]))}function st(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():W(t)?new it(t).fromEntrySeq():U(t)?new nt(t).fromEntrySeq():"object"==typeof t?new rt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function at(t){var e=ct(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ct(t){return H(t)?new et(t):W(t)?new it(t):U(t)?new nt(t):void 0}function ft(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[r?o-u:u];if(!1===e(s[1],n?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function ht(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new j((function(){var t=i[r?o-u:u];return u++>o?{value:void 0,done:!0}:P(e,n?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,r)}function lt(t,e){return e?pt(e,t,"",{"":t}):gt(t)}function pt(t,e,r,n){return Array.isArray(e)?t.call(n,r,X(e).map((function(r,n){return pt(t,r,n,e)}))):vt(e)?t.call(n,r,G(e).map((function(r,n){return pt(t,r,n,e)}))):e}function gt(t){return Array.isArray(t)?X(t).map(gt).toList():vt(t)?G(t).map(gt).toMap():t}function vt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function _t(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function dt(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||a(t)!==a(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!c(t);if(f(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&_t(i[1],t)&&(r||_t(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var h=!0,l=e.__iterate((function(e,n){if(r?!t.has(e):i?!_t(e,t.get(n,m)):!_t(t.get(n,m),e))return h=!1,!1}));return h&&t.size===l}function yt(t,e){if(!(this instanceof yt))return new yt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Z)return Z;Z=this}}function mt(t,e){if(!t)throw new Error(e)}function wt(t,e,r){if(!(this instanceof wt))return new wt(t,e,r);if(mt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Q)return Q;Q=this}}function St(){throw TypeError("Abstract")}function xt(){}function bt(){}function Ot(){}J.prototype[tt]=!0,e(et,X),et.prototype.get=function(t,e){return this.has(t)?this._array[K(this,t)]:e},et.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},et.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new j((function(){return i>n?{value:void 0,done:!0}:P(t,i,r[e?n-i++:i++])}))},e(rt,G),rt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},rt.prototype.has=function(t){return this._object.hasOwnProperty(t)},rt.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(!1===t(r[u],u,this))return o+1}return o},rt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new j((function(){var u=n[e?i-o:o];return o++>i?{value:void 0,done:!0}:P(t,u,r[u])}))},rt.prototype[g]=!0,e(nt,X),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=F(this._iterable),n=0;if(W(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=F(this._iterable);if(!W(r))return new j(B);var n=0;return new j((function(){var e=r.next();return e.done?e:P(t,n++,e.value)}))},e(it,X),it.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var u=r.value;if(i[o]=u,!1===t(u,o++,this))break}return o},it.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new j((function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return P(t,i,n[i++])}))},e(yt,X),yt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},yt.prototype.get=function(t,e){return this.has(t)?this._value:e},yt.prototype.includes=function(t){return _t(this._value,t)},yt.prototype.slice=function(t,e){var r=this.size;return A(t,e,r)?this:new yt(this._value,M(e,r)-z(t,r))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return _t(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return _t(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},yt.prototype.__iterator=function(t,e){var r=this,n=0;return new j((function(){return n<r.size?P(t,n++,r._value):{value:void 0,done:!0}}))},yt.prototype.equals=function(t){return t instanceof yt?_t(this._value,t._value):dt(t)},e(wt,X),wt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},wt.prototype.get=function(t,e){return this.has(t)?this._start+K(this,t)*this._step:e},wt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},wt.prototype.slice=function(t,e){return A(t,e,this.size)?this:(t=z(t,this.size),(e=M(e,this.size))<=t?new wt(0,0):new wt(this.get(t,this._end),this.get(e,this._end),this._step))},wt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},wt.prototype.lastIndexOf=function(t){return this.indexOf(t)},wt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},wt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new j((function(){var u=i;return i+=e?-n:n,o>r?{value:void 0,done:!0}:P(t,o++,u)}))},wt.prototype.equals=function(t){return t instanceof wt?this._start===t._start&&this._end===t._end&&this._step===t._step:dt(this,t)},e(St,r),e(xt,St),e(bt,St),e(Ot,St),St.Keyed=xt,St.Indexed=bt,St.Set=Ot;var Et="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function It(t){return t>>>1&1073741824|3221225471&t}function Kt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return It(r)}if("string"===e)return t.length>Lt?function(t){var e=Rt[t];return void 0===e&&(e=Dt(t),qt===Nt&&(qt=0,Rt={}),qt++,Rt[t]=e),e}(t):Dt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(kt&&void 0!==(e=Mt.get(t)))return e;if(void 0!==(e=t[Tt]))return e;if(!zt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Tt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Ct,1073741824&Ct&&(Ct=0),kt)Mt.set(t,e);else{if(void 0!==At&&!1===At(t))throw new Error("Non-extensible objects are not allowed as keys.");if(zt)Object.defineProperty(t,Tt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Tt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Tt]=e}}return e}(t);if("function"==typeof t.toString)return Dt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Dt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return It(e)}var At=Object.isExtensible,zt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var Mt,kt="function"==typeof WeakMap;kt&&(Mt=new WeakMap);var Ct=0,Tt="__immutablehash__";"function"==typeof Symbol&&(Tt=Symbol(Tt));var Lt=16,Nt=255,qt=0,Rt={};function jt(t){mt(t!==1/0,"Cannot perform this action with an infinite size.")}function Pt(t){return null==t?te():Bt(t)&&!f(t)?t:te().withMutations((function(e){var r=n(t);jt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Bt(t){return!(!t||!t[Wt])}e(Pt,xt),Pt.prototype.toString=function(){return this.__toString("Map {","}")},Pt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Pt.prototype.set=function(t,e){return ee(this,t,e)},Pt.prototype.setIn=function(t,e){return this.updateIn(t,m,(function(){return e}))},Pt.prototype.remove=function(t){return ee(this,t,m)},Pt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return m}))},Pt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Pt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=ce(this,or(t),e,r);return n===m?void 0:n},Pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):te()},Pt.prototype.merge=function(){return oe(this,void 0,arguments)},Pt.prototype.mergeWith=function(e){return oe(this,e,t.call(arguments,1))},Pt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,te(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))},Pt.prototype.mergeDeep=function(){return oe(this,ue,arguments)},Pt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return oe(this,se(e),r)},Pt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,te(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))},Pt.prototype.sort=function(t){return ke(Ge(this,t))},Pt.prototype.sortBy=function(t,e){return ke(Ge(this,e,t))},Pt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Pt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Pt.prototype.asImmutable=function(){return this.__ensureOwner()},Pt.prototype.wasAltered=function(){return this.__altered},Pt.prototype.__iterator=function(t,e){return new $t(this,t,e)},Pt.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},Pt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Pt.isMap=Bt;var Ut,Wt="@@__IMMUTABLE_MAP__@@",Ft=Pt.prototype;function Vt(t,e){this.ownerID=t,this.entries=e}function Ht(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Jt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Gt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Xt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function $t(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Zt(t._root)}function Yt(t,e){return P(t,e[0],e[1])}function Zt(t,e){return{node:t,index:0,__prev:e}}function Qt(t,e,r,n){var i=Object.create(Ft);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function te(){return Ut||(Ut=Qt(0))}function ee(t,e,r){var n,i;if(t._root){var o=x(w),u=x(S);if(n=re(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===m?-1:1:0)}else{if(r===m)return t;i=1,n=new Vt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Qt(i,n):te()}function re(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===m?t:(b(s),b(u),new Xt(e,n,[i,o]))}function ne(t){return t.constructor===Xt||t.constructor===Gt}function ie(t,e,r,n,i){if(t.keyHash===n)return new Gt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&y,s=(0===r?n:n>>>r)&y;return new Ht(e,1<<u|1<<s,u===s?[ie(t,e,r+_,n,i)]:(o=new Xt(e,n,i),u<s?[t,o]:[o,t]))}function oe(t,e,r){for(var i=[],o=0;o<r.length;o++){var s=r[o],a=n(s);u(s)||(a=a.map((function(t){return lt(t)}))),i.push(a)}return ae(t,e,i)}function ue(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):_t(t,e)?t:e}function se(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return _t(e,i)?e:i}}function ae(t,e,r){return 0===(r=r.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var n=e?function(r,n){t.update(n,m,(function(t){return t===m?r:e(t,r,n)}))}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)})):t.constructor(r[0])}function ce(t,e,r,n){var i=t===m,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}mt(i||t&&t.set,"invalid keyPath");var a=o.value,c=i?m:t.get(a,m),f=ce(c,e,r,n);return f===c?t:f===m?t.remove(a):(i?te():t).set(a,f)}function fe(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function he(t,e,r,n){var i=n?t:E(t);return i[e]=r,i}Ft[Wt]=!0,Ft[v]=Ft.remove,Ft.removeIn=Ft.deleteIn,Vt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Vt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===m,a=this.entries,c=0,f=a.length;c<f&&!_t(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(b(u),(s||!h)&&b(o),!s||1!==a.length){if(!h&&!s&&a.length>=le)return function(t,e,r,n){t||(t=new O);for(var i=new Xt(t,Kt(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}(t,a,n,i);var l=t&&t===this.ownerID,p=l?a:E(a);return h?s?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),l?(this.entries=p,this):new Vt(t,p)}},Ht.prototype.get=function(t,e,r,n){void 0===e&&(e=Kt(r));var i=1<<((0===t?e:e>>>t)&y),o=this.bitmap;return o&i?this.nodes[fe(o&i-1)].get(t+_,e,r,n):n},Ht.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=Kt(n));var s=(0===e?r:r>>>e)&y,a=1<<s,c=this.bitmap,f=!!(c&a);if(!f&&i===m)return this;var h=fe(c&a-1),l=this.nodes,p=f?l[h]:void 0,g=re(p,t,e+_,r,n,i,o,u);if(g===p)return this;if(!f&&g&&l.length>=pe)return function(t,e,r,n,i){for(var o=0,u=new Array(d),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Jt(t,o+1,u)}(t,l,c,s,g);if(f&&!g&&2===l.length&&ne(l[1^h]))return l[1^h];if(f&&g&&1===l.length&&ne(g))return g;var v=t&&t===this.ownerID,w=f?g?c:c^a:c|a,S=f?g?he(l,h,g,v):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(l,h,v):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}(l,h,g,v);return v?(this.bitmap=w,this.nodes=S,this):new Ht(t,w,S)},Jt.prototype.get=function(t,e,r,n){void 0===e&&(e=Kt(r));var i=(0===t?e:e>>>t)&y,o=this.nodes[i];return o?o.get(t+_,e,r,n):n},Jt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=Kt(n));var s=(0===e?r:r>>>e)&y,a=i===m,c=this.nodes,f=c[s];if(a&&!f)return this;var h=re(f,t,e+_,r,n,i,o,u);if(h===f)return this;var l=this.count;if(f){if(!h&&--l<ge)return function(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new Ht(t,i,u)}(t,c,l,s)}else l++;var p=t&&t===this.ownerID,g=he(c,s,h,p);return p?(this.count=l,this.nodes=g,this):new Jt(t,l,g)},Gt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Gt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=Kt(n));var s=i===m;if(r!==this.keyHash)return s?this:(b(u),b(o),ie(this,t,e,r,[n,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!_t(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(b(u),(s||!h)&&b(o),s&&2===f)return new Xt(t,this.keyHash,a[1^c]);var l=t&&t===this.ownerID,p=l?a:E(a);return h?s?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),l?(this.entries=p,this):new Gt(t,this.keyHash,p)},Xt.prototype.get=function(t,e,r,n){return _t(r,this.entry[0])?this.entry[1]:n},Xt.prototype.update=function(t,e,r,n,i,o,u){var s=i===m,a=_t(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(b(u),s?void b(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new Xt(t,this.keyHash,[n,i]):(b(o),ie(this,t,e,Kt(n),[n,i])))},Vt.prototype.iterate=Gt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Ht.prototype.iterate=Jt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Xt.prototype.iterate=function(t,e){return t(this.entry)},e($t,j),$t.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return Yt(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return Yt(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return Yt(t,o.entry);e=this._stack=Zt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var le=d/4,pe=d/2,ge=d/4;function ve(t){var e=Ee();if(null==t)return e;if(_e(t))return t;var r=i(t),n=r.size;return 0===n?e:(jt(n),n>0&&n<d?Oe(0,n,_,null,new me(r.toArray())):e.withMutations((function(t){t.setSize(n),r.forEach((function(e,r){return t.set(r,e)}))})))}function _e(t){return!(!t||!t[de])}e(ve,bt),ve.of=function(){return this(arguments)},ve.prototype.toString=function(){return this.__toString("List [","]")},ve.prototype.get=function(t,e){if((t=K(this,t))>=0&&t<this.size){var r=De(this,t+=this._origin);return r&&r.array[t&y]}return e},ve.prototype.set=function(t,e){return function(t,e,r){if((e=K(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?Ae(t,e).set(0,r):Ae(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o=x(S);return e>=Me(t._capacity)?n=Ie(n,t.__ownerID,0,e,r,o):i=Ie(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Oe(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},ve.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},ve.prototype.insert=function(t,e){return this.splice(t,0,e)},ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=_,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ee()},ve.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){Ae(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},ve.prototype.pop=function(){return Ae(this,0,-1)},ve.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){Ae(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},ve.prototype.shift=function(){return Ae(this,1)},ve.prototype.merge=function(){return ze(this,void 0,arguments)},ve.prototype.mergeWith=function(e){return ze(this,e,t.call(arguments,1))},ve.prototype.mergeDeep=function(){return ze(this,ue,arguments)},ve.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ze(this,se(e),r)},ve.prototype.setSize=function(t){return Ae(this,0,t)},ve.prototype.slice=function(t,e){var r=this.size;return A(t,e,r)?this:Ae(this,z(t,r),M(e,r))},ve.prototype.__iterator=function(t,e){var r=0,n=be(this,e);return new j((function(){var e=n();return e===xe?{value:void 0,done:!0}:P(t,r++,e)}))},ve.prototype.__iterate=function(t,e){for(var r,n=0,i=be(this,e);(r=i())!==xe&&!1!==t(r,n++,this););return n},ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Oe(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},ve.isList=_e;var de="@@__IMMUTABLE_LIST__@@",ye=ve.prototype;function me(t,e){this.array=t,this.ownerID=e}ye[de]=!0,ye[v]=ye.remove,ye.setIn=Ft.setIn,ye.deleteIn=ye.removeIn=Ft.removeIn,ye.update=Ft.update,ye.updateIn=Ft.updateIn,ye.mergeIn=Ft.mergeIn,ye.mergeDeepIn=Ft.mergeDeepIn,ye.withMutations=Ft.withMutations,ye.asMutable=Ft.asMutable,ye.asImmutable=Ft.asImmutable,ye.wasAltered=Ft.wasAltered,me.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&y;if(n>=this.array.length)return new me([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-_,r))===u&&o)return this}if(o&&!i)return this;var s=Ke(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},me.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&y;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-_,r))===o&&i===this.array.length-1)return this}var u=Ke(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var we,Se,xe={};function be(t,e){var r=t._origin,n=t._capacity,i=Me(n),o=t._tail;return u(t._root,t._level,0);function u(t,s,a){return 0===s?function(t,u){var s=u===i?o&&o.array:t&&t.array,a=u>r?0:r-u,c=n-u;return c>d&&(c=d),function(){if(a===c)return xe;var t=e?--c:a++;return s&&s[t]}}(t,a):function(t,i,o){var s,a=t&&t.array,c=o>r?0:r-o>>i,f=1+(n-o>>i);return f>d&&(f=d),function(){for(;;){if(s){var t=s();if(t!==xe)return t;s=null}if(c===f)return xe;var r=e?--f:c++;s=u(a&&a[r],i-_,o+(r<<i))}}}(t,s,a)}}function Oe(t,e,r,n,i,o,u){var s=Object.create(ye);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Ee(){return we||(we=Oe(0,0,_))}function Ie(t,e,r,n,i,o){var u,s=n>>>r&y,a=t&&s<t.array.length;if(!a&&void 0===i)return t;if(r>0){var c=t&&t.array[s],f=Ie(c,e,r-_,n,i,o);return f===c?t:((u=Ke(t,e)).array[s]=f,u)}return a&&t.array[s]===i?t:(b(o),u=Ke(t,e),void 0===i&&s===u.array.length-1?u.array.pop():u.array[s]=i,u)}function Ke(t,e){return e&&t&&e===t.ownerID?t:new me(t?t.array.slice():[],e)}function De(t,e){if(e>=Me(t._capacity))return t._tail;if(e<1<<t._level+_){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&y],n-=_;return r}}function Ae(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new O,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new me(c&&c.array.length?[void 0,c]:[],n),f+=1<<(a+=_);f&&(u+=f,i+=f,s+=f,o+=f);for(var h=Me(o),l=Me(s);l>=1<<a+_;)c=new me(c&&c.array.length?[c]:[],n),a+=_;var p=t._tail,g=l<h?De(t,s-1):l>h?new me([],n):p;if(p&&l>h&&u<o&&p.array.length){for(var v=c=Ke(c,n),d=a;d>_;d-=_){var m=h>>>d&y;v=v.array[m]=Ke(v.array[m],n)}v.array[h>>>_&y]=p}if(s<o&&(g=g&&g.removeAfter(n,0,s)),u>=l)u-=l,s-=l,a=_,c=null,g=g&&g.removeBefore(n,0,u);else if(u>i||l<h){for(f=0;c;){var w=u>>>a&y;if(w!==l>>>a&y)break;w&&(f+=(1<<a)*w),a-=_,c=c.array[w]}c&&u>i&&(c=c.removeBefore(n,a,u-f)),c&&l<h&&(c=c.removeAfter(n,a,l-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=g,t.__hash=void 0,t.__altered=!0,t):Oe(u,s,a,c,g)}function ze(t,e,r){for(var n=[],o=0,s=0;s<r.length;s++){var a=r[s],c=i(a);c.size>o&&(o=c.size),u(a)||(c=c.map((function(t){return lt(t)}))),n.push(c)}return o>t.size&&(t=t.setSize(o)),ae(t,e,n)}function Me(t){return t<d?0:t-1>>>_<<_}function ke(t){return null==t?Le():Ce(t)?t:Le().withMutations((function(e){var r=n(t);jt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Ce(t){return Bt(t)&&f(t)}function Te(t,e,r,n){var i=Object.create(ke.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Le(){return Se||(Se=Te(te(),Ee()))}function Ne(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===m){if(!a)return t;u.size>=d&&u.size>=2*o.size?(n=(i=u.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):Te(n,i)}function qe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Re(t){this._iter=t,this.size=t.size}function je(t){this._iter=t,this.size=t.size}function Pe(t){this._iter=t,this.size=t.size}function Be(t){var e=rr(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=nr,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(e===L){var n=t.__iterator(e,r);return new j((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===T?C:T,r)},e}function Ue(t,e,r){var n=rr(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,m);return o===m?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(L,i);return new j((function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return P(n,s,e.call(r,u[1],s,t),i)}))},n}function We(t,e){var r=rr(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Be(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=nr,r.__iterate=function(e,r){var n=this;return t.__iterate((function(t,r){return e(t,r,n)}),!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function Fe(t,e,r,n){var i=rr(t);return n&&(i.has=function(n){var i=t.get(n,m);return i!==m&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,m);return o!==m&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate((function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)}),o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(L,o),s=0;return new j((function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(r,f,c,t))return P(i,n?c:s++,f,o)}}))},i}function Ve(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),A(e,r,i))return t;var o=z(e,i),u=M(r,i);if(o!=o||u!=u)return Ve(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a==a&&(s=a<0?0:a);var c=rr(t);return c.size=0===s?s:t.size&&s||void 0,!n&&ot(t)&&s>=0&&(c.get=function(e,r){return(e=K(this,e))>=0&&e<s?t.get(e+o,r):r}),c.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,c=0;return t.__iterate((function(t,r){if(!a||!(a=u++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==s})),c},c.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new j((function(){for(;u++<o;)i.next();if(++a>s)return{value:void 0,done:!0};var t=i.next();return n||e===T?t:P(e,a-1,e===C?void 0:t.value[1],t)}))},c}function He(t,e,r,n){var i=rr(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return a++,i(t,n?o:a-1,u)})),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(L,o),a=!0,c=0;return new j((function(){var t,o,f;do{if((t=s.next()).done)return n||i===T?t:P(i,c++,i===C?void 0:t.value[1],t);var h=t.value;o=h[0],f=h[1],a&&(a=e.call(r,f,o,u))}while(a);return i===L?t:P(i,o,f,t)}))},i}function Je(t,e,r){var n=rr(t);return n.__iterateUncached=function(n,i){var o=0,s=!1;return function t(a,c){var f=this;a.__iterate((function(i,a){return(!e||c<e)&&u(i)?t(i,c+1):!1===n(i,r?a:o++,f)&&(s=!0),!s}),i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),s=[],a=0;return new j((function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;if(n===L&&(c=c[1]),e&&!(s.length<e)||!u(c))return r?t:P(n,a++,c,t);s.push(o),o=c.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}}))},n}function Ge(t,e,r){e||(e=ir);var n=s(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).toArray();return o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?G(o):a(t)?X(o):$(o)}function Xe(t,e,r){if(e||(e=ir),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return $e(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return $e(e,t,r)?r:t}))}function $e(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Ye(t,e,n){var i=rr(t);return i.size=new et(n).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(T,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map((function(t){return t=r(t),F(i?t.reverse():t)})),u=0,s=!1;return new j((function(){var r;return s||(r=o.map((function(t){return t.next()})),s=r.some((function(t){return t.done}))),s?{value:void 0,done:!0}:P(t,u++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function Ze(t,e){return ot(t)?e:t.constructor(e)}function Qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function tr(t){return jt(t.size),I(t)}function er(t){return s(t)?n:a(t)?i:o}function rr(t){return Object.create((s(t)?G:a(t)?X:$).prototype)}function nr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):J.prototype.cacheResult.call(this)}function ir(t,e){return t>e?1:t<e?-1:0}function or(t){var e=F(t);if(!e){if(!H(t))throw new TypeError("Expected iterable or array-like: "+t);e=F(r(t))}return e}function ur(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);(function(t,e){try{e.forEach(fr.bind(void 0,t))}catch(t){}})(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Pt(o)},i=n.prototype=Object.create(sr);return i.constructor=n,n}e(ke,Pt),ke.of=function(){return this(arguments)},ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ke.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Le()},ke.prototype.set=function(t,e){return Ne(this,t,e)},ke.prototype.remove=function(t){return Ne(this,t,m)},ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ke.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},ke.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},ke.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},ke.isOrderedMap=Ce,ke.prototype[g]=!0,ke.prototype[v]=ke.prototype.remove,e(qe,G),qe.prototype.get=function(t,e){return this._iter.get(t,e)},qe.prototype.has=function(t){return this._iter.has(t)},qe.prototype.valueSeq=function(){return this._iter.valueSeq()},qe.prototype.reverse=function(){var t=this,e=We(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},qe.prototype.map=function(t,e){var r=this,n=Ue(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},qe.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?tr(this):0,function(i){return t(i,e?--r:r++,n)}),e)},qe.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(T,e),n=e?tr(this):0;return new j((function(){var i=r.next();return i.done?i:P(t,e?--n:n++,i.value,i)}))},qe.prototype[g]=!0,e(Re,X),Re.prototype.includes=function(t){return this._iter.includes(t)},Re.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)},Re.prototype.__iterator=function(t,e){var r=this._iter.__iterator(T,e),n=0;return new j((function(){var e=r.next();return e.done?e:P(t,n++,e.value,e)}))},e(je,$),je.prototype.has=function(t){return this._iter.includes(t)},je.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},je.prototype.__iterator=function(t,e){var r=this._iter.__iterator(T,e);return new j((function(){var e=r.next();return e.done?e:P(t,e.value,e.value,e)}))},e(Pe,G),Pe.prototype.entrySeq=function(){return this._iter.toSeq()},Pe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Qe(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},Pe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(T,e);return new j((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Qe(n);var i=u(n);return P(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},Re.prototype.cacheResult=qe.prototype.cacheResult=je.prototype.cacheResult=Pe.prototype.cacheResult=nr,e(ur,xt),ur.prototype.toString=function(){return this.__toString(cr(this)+" {","}")},ur.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},ur.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},ur.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=ar(this,te()))},ur.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+cr(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:ar(this,r)},ur.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:ar(this,e)},ur.prototype.wasAltered=function(){return this._map.wasAltered()},ur.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)},ur.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)},ur.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?ar(this,e,t):(this.__ownerID=t,this._map=e,this)};var sr=ur.prototype;function ar(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function cr(t){return t._name||t.constructor.name||"Record"}function fr(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){mt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function hr(t){return null==t?yr():lr(t)&&!f(t)?t:yr().withMutations((function(e){var r=o(t);jt(r.size),r.forEach((function(t){return e.add(t)}))}))}function lr(t){return!(!t||!t[gr])}sr[v]=sr.remove,sr.deleteIn=sr.removeIn=Ft.removeIn,sr.merge=Ft.merge,sr.mergeWith=Ft.mergeWith,sr.mergeIn=Ft.mergeIn,sr.mergeDeep=Ft.mergeDeep,sr.mergeDeepWith=Ft.mergeDeepWith,sr.mergeDeepIn=Ft.mergeDeepIn,sr.setIn=Ft.setIn,sr.update=Ft.update,sr.updateIn=Ft.updateIn,sr.withMutations=Ft.withMutations,sr.asMutable=Ft.asMutable,sr.asImmutable=Ft.asImmutable,e(hr,Ot),hr.of=function(){return this(arguments)},hr.fromKeys=function(t){return this(n(t).keySeq())},hr.prototype.toString=function(){return this.__toString("Set {","}")},hr.prototype.has=function(t){return this._map.has(t)},hr.prototype.add=function(t){return _r(this,this._map.set(t,!0))},hr.prototype.remove=function(t){return _r(this,this._map.remove(t))},hr.prototype.clear=function(){return _r(this,this._map.clear())},hr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var r=0;r<e.length;r++)o(e[r]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},hr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.every((function(t){return t.includes(r)}))||t.remove(r)}))}))},hr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.some((function(t){return t.includes(r)}))&&t.remove(r)}))}))},hr.prototype.merge=function(){return this.union.apply(this,arguments)},hr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},hr.prototype.sort=function(t){return mr(Ge(this,t))},hr.prototype.sortBy=function(t,e){return mr(Ge(this,e,t))},hr.prototype.wasAltered=function(){return this._map.wasAltered()},hr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)},hr.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},hr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},hr.isSet=lr;var pr,gr="@@__IMMUTABLE_SET__@@",vr=hr.prototype;function _r(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function dr(t,e){var r=Object.create(vr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function yr(){return pr||(pr=dr(te()))}function mr(t){return null==t?Or():wr(t)?t:Or().withMutations((function(e){var r=o(t);jt(r.size),r.forEach((function(t){return e.add(t)}))}))}function wr(t){return lr(t)&&f(t)}vr[gr]=!0,vr[v]=vr.remove,vr.mergeDeep=vr.merge,vr.mergeDeepWith=vr.mergeWith,vr.withMutations=Ft.withMutations,vr.asMutable=Ft.asMutable,vr.asImmutable=Ft.asImmutable,vr.__empty=yr,vr.__make=dr,e(mr,hr),mr.of=function(){return this(arguments)},mr.fromKeys=function(t){return this(n(t).keySeq())},mr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},mr.isOrderedSet=wr;var Sr,xr=mr.prototype;function br(t,e){var r=Object.create(xr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Or(){return Sr||(Sr=br(Le()))}function Er(t){return null==t?Mr():Ir(t)?t:Mr().unshiftAll(t)}function Ir(t){return!(!t||!t[Dr])}xr[g]=!0,xr.__empty=Or,xr.__make=br,e(Er,bt),Er.of=function(){return this(arguments)},Er.prototype.toString=function(){return this.__toString("Stack [","]")},Er.prototype.get=function(t,e){var r=this._head;for(t=K(this,t);r&&t--;)r=r.next;return r?r.value:e},Er.prototype.peek=function(){return this._head&&this._head.value},Er.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):zr(t,e)},Er.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;jt(t.size);var e=this.size,r=this._head;return t.reverse().forEach((function(t){e++,r={value:t,next:r}})),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):zr(e,r)},Er.prototype.pop=function(){return this.slice(1)},Er.prototype.unshift=function(){return this.push.apply(this,arguments)},Er.prototype.unshiftAll=function(t){return this.pushAll(t)},Er.prototype.shift=function(){return this.pop.apply(this,arguments)},Er.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):Mr()},Er.prototype.slice=function(t,e){if(A(t,e,this.size))return this;var r=z(t,this.size);if(M(e,this.size)!==this.size)return bt.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):zr(n,i)},Er.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?zr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Er.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Er.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new j((function(){if(n){var e=n.value;return n=n.next,P(t,r++,e)}return{value:void 0,done:!0}}))},Er.isStack=Ir;var Kr,Dr="@@__IMMUTABLE_STACK__@@",Ar=Er.prototype;function zr(t,e,r,n){var i=Object.create(Ar);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Mr(){return Kr||(Kr=zr(0))}function kr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}Ar[Dr]=!0,Ar.withMutations=Ft.withMutations,Ar.asMutable=Ft.asMutable,Ar.asImmutable=Ft.asImmutable,Ar.wasAltered=Ft.wasAltered,r.Iterator=j,kr(r,{toArray:function(){jt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,r){t[r]=e})),t},toIndexedSeq:function(){return new Re(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new qe(this,!0)},toMap:function(){return Pt(this.toKeyedSeq())},toObject:function(){jt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t},toOrderedMap:function(){return ke(this.toKeyedSeq())},toOrderedSet:function(){return mr(s(this)?this.valueSeq():this)},toSet:function(){return hr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new je(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Er(s(this)?this.valueSeq():this)},toList:function(){return ve(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Ze(this,function(t,e){var r=s(t),i=[t].concat(e).map((function(t){return u(t)?r&&(t=n(t)):t=r?st(t):at(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&s(o)||a(t)&&a(o))return o}var c=new et(i);return r?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),c}(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return _t(e,t)}))},entries:function(){return this.__iterator(L)},every:function(t,e){jt(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return Ze(this,Fe(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1})),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return jt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){jt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(C)},map:function(t,e){return Ze(this,Ue(this,t,e))},reduce:function(t,e,r){var n,i;return jt(this.size),arguments.length<2?i=!0:n=e,this.__iterate((function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)})),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Ze(this,We(this,!0))},slice:function(t,e){return Ze(this,Ve(this,t,e,!0))},some:function(t,e){return!this.every(qr(t),e)},sort:function(t){return Ze(this,Ge(this,t))},values:function(){return this.__iterator(T)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return I(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Pt().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return dt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(Nr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(qr(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(D)},flatMap:function(t,e){return Ze(this,function(t,e,r){var n=er(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Ze(this,Je(this,t,!0))},fromEntrySeq:function(){return new Pe(this)},get:function(t,e){return this.find((function(e,r){return _t(r,t)}),void 0,e)},getIn:function(t,e){for(var r,n=this,i=or(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,m):m)===m)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=s(t),i=(f(t)?ke():Pt()).asMutable();t.__iterate((function(o,u){i.update(e.call(r,o,u,t),(function(t){return(t=t||[]).push(n?[u,o]:o),t}))}));var o=er(t);return i.map((function(e){return Ze(t,o(e))}))}(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},isSubset:function(t){return t="function"==typeof t.includes?t:r(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Lr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Xe(this,t)},maxBy:function(t,e){return Xe(this,e,t)},min:function(t){return Xe(this,t?Rr(t):Br)},minBy:function(t,e){return Xe(this,e?Rr(e):Br,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ze(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ze(this,He(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(qr(t),e)},sortBy:function(t,e){return Ze(this,Ge(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ze(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ze(this,function(t,e,r){var n=rr(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate((function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)})),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(L,i),s=!0;return new j((function(){if(!s)return{value:void 0,done:!0};var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?n===L?t:P(n,a,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(qr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=f(t),r=s(t),n=e?1:0;return function(t,e){return e=Et(e,3432918353),e=Et(e<<15|e>>>-15,461845907),e=Et(e<<13|e>>>-13,5),e=Et((e=e+3864292196^t)^e>>>16,2246822507),It((e=Et(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+Ur(Kt(t),Kt(e))|0}:function(t,e){n=n+Ur(Kt(t),Kt(e))|0}:e?function(t){n=31*n+Kt(t)|0}:function(t){n=n+Kt(t)|0}),n)}(this))}});var Cr=r.prototype;Cr[h]=!0,Cr[R]=Cr.values,Cr.__toJS=Cr.toArray,Cr.__toStringMapper=jr,Cr.inspect=Cr.toSource=function(){return this.toString()},Cr.chain=Cr.flatMap,Cr.contains=Cr.includes,function(){try{Object.defineProperty(Cr,"length",{get:function(){if(!r.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),kr(n,{flip:function(){return Ze(this,Be(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return _t(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return _t(e,t)}))},mapEntries:function(t,e){var r=this,n=0;return Ze(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Ze(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var Tr=n.prototype;function Lr(t,e){return e}function Nr(t,e){return[e,t]}function qr(t){return function(){return!t.apply(this,arguments)}}function Rr(t){return function(){return-t.apply(this,arguments)}}function jr(t){return"string"==typeof t?JSON.stringify(t):t}function Pr(){return E(arguments)}function Br(t,e){return t<e?1:t>e?-1:0}function Ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)}return Tr[l]=!0,Tr[R]=Cr.entries,Tr.__toJS=Cr.toObject,Tr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+jr(t)},kr(i,{toKeyedSeq:function(){return new qe(this,!1)},filter:function(t,e){return Ze(this,Fe(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Ze(this,We(this,!1))},slice:function(t,e){return Ze(this,Ve(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=z(t,t<0?this.count():this.size);var n=this.slice(0,t);return Ze(this,1===r?n:n.concat(E(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return Ze(this,Je(this,t,!1))},get:function(t,e){return(t=K(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=K(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ze(this,function(t,e){var r=rr(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(T,n),u=0;return new j((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?P(r,u++,e):P(r,u++,i.value,i)}))},r}(this,t))},interleave:function(){var t=[this].concat(E(arguments)),e=Ye(this.toSeq(),X.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Ze(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ze(this,He(this,t,e,!1))},zip:function(){return Ze(this,Ye(this,Pr,[this].concat(E(arguments))))},zipWith:function(t){var e=E(arguments);return e[0]=this,Ze(this,Ye(this,t,e))}}),i.prototype[p]=!0,i.prototype[g]=!0,kr(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Cr.includes,kr(G,n.prototype),kr(X,i.prototype),kr($,o.prototype),kr(xt,n.prototype),kr(bt,i.prototype),kr(Ot,o.prototype),{Iterable:r,Seq:J,Collection:St,Map:Pt,OrderedMap:ke,List:ve,Stack:Er,Set:hr,OrderedSet:mr,Record:ur,Range:wt,Repeat:yt,is:_t,fromJS:lt}}()},45228:function(t){"use strict";var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,u,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),a=1;a<arguments.length;a++){for(var c in o=Object(arguments[a]))r.call(o,c)&&(s[c]=o[c]);if(e){u=e(o);for(var f=0;f<u.length;f++)n.call(o,u[f])&&(s[u[f]]=o[u[f]])}}return s}},42791:function(t,e,r){!function(t,e){"use strict";if(!t.setImmediate){var r,n,i,o,u,s=1,a={},c=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){({env:{}}).nextTick((function(){p(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?(o="setImmediate$"+Math.random()+"$",u=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&p(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",u,!1):t.attachEvent("onmessage",u),r=function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):r=function(t){setTimeout(p,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return a[s]=i,r(s),s++},h.clearImmediate=l}function l(t){delete a[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=a[t];if(e){c=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(undefined,r)}}(e)}finally{l(t),c=!1}}}}}("undefined"==typeof self?void 0===r.g?this:r.g:self)}}]);
|
|
Binary file
|