1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3095,25476,46090,58333,80714],{3340:(t,e,r)=>{"use strict";var n=r(200867),i=r(19763),o=r(218621),u=r(36529);t.exports=function(t){var e=u(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),u=e.getAnchorOffset(),a=r.getBlockForKey(n).getText()[u-1];return o(t,a?i.getUTF16Length(a,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")}},4469:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317),o=r(462619),u=r(767504),a=r(785603),s=r(270408),c=r(222813),f=r(333304),l=o.isBrowser("Firefox");function h(t,e,r,o,u){var a=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,o);return i.push(t,a,"insert-characters",u)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t._latestEditorState,n=e.data;if(n){if(t.props.handleBeforeInput&&a(t.props.handleBeforeInput(n,r,e.timeStamp)))return void e.preventDefault();var o=r.getSelection(),p=o.getStartOffset(),d=o.getAnchorKey();if(!o.isCollapsed()){e.preventDefault(),t.update(h(r,n,r.getCurrentInlineStyle(),u(r.getCurrentContent(),r.getSelection()),!0));return}var y=h(r,n,r.getCurrentInlineStyle(),u(r.getCurrentContent(),r.getSelection()),!1),g=!1;if(!(g=s(t._latestCommittedEditorState))){var v=r.getBlockTree(d),_=y.getBlockTree(d);g=v.size!==_.size||v.zip(_).some(function(t){var e=t[0],r=t[1],i=e.get("start"),o=i+(i>=p?n.length:0),u=e.get("end"),a=u+(u>=p?n.length:0),s=r.get("start"),c=r.get("end"),f=r.get("decoratorKey");return e.get("decoratorKey")!==f||e.get("leaves").size!==r.get("leaves").size||o!==s||a!==c||null!=f&&c-s!=u-i})}if(g||(g=l&&("'"==n||"/"==n)),g||(g=c(y.getDirectionMap()).get(d)!==c(r.getDirectionMap()).get(d)),g){e.preventDefault(),y=i.set(y,{forceSelection:!0}
1),t.update(y);return}t._pendingStateFromBeforeInput=y=i.set(y,{nativelyRenderedContent:y.getCurrentContent()}),f(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},5621:(t,e,r)=>{"use strict";var n=r(462619),i=r(208189),o=n.isPlatform("Mac OS X"),u={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:u.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=u},17304:t=>{"use strict";var e=RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},21256: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)})}},24312:(t,e,r)=>{"use strict";var n=r(540317),i=r(523097),o=r(323975),u=r(295763);t.exports=function(t){var e=u(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),u=e.getAnchorOffset(),a=r.getBlockForKey(n).getText()[u];return o(t,a?i.getUTF16Length(a,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")}},26744:t=>{"use strict";var e={};t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(0x1000000*Math.random()).toString(32);return e[t]=!0,t}},30828:(t,e,r)=>{"use strict";var n=r(270149);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){a(t,e,r[e])})}return t}function u(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=r(897716),f=r(563229),l=r(510087),h=r(761486),p=r(617509),d=r(118963),y=r(178767),g=r(955911),v=r(299770),_=r(540317),m=r(847132),S=r(208252),b=r(619338),w=r(462619),k=r(783798),x=r(26744),E=r(619320),C=r(9237),O=r(625937),D=r(610843),K=r(725224),I=r(222813),M=w.isBrowser("IE"),A=!M,T={edit:d,composite:l,drag:p,cut:null,render:null},B=!1,z=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var r=e.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(m.Component),R=function(t){function e(e){var r;return a(u(r=t.call(this,e)||this),"_blockSelectEvents",void 0),a(u(r),"_clipboard",void 0),a(u(r),"_handler",void 0),a(u(r),"_dragCount",void 0),a(u(r),"_internalDrag",void 0),a(u(r),"_editorKey",void 0),a(u(r),"_placeholderAccessibilityID",void 0),a(u(r),"_latestEditorState",void 0),a(u(r),"_latestCommittedEditorState",void 0),a(u(r),"_pendingStateFromBeforeInput",void 0),a(u(r),"_onBeforeInput",void 0),a(u(r),"_onBlur",void 0),a(u(r),"_onCharacterData",void 0),a(u(r),"_onCompositionEnd",void 0),a(u(r),"_onCompositionStart",void 0),a(u(r),"_onCopy",void 0),a(u(r),"_onCut",void 0),a(u(r),"_onDragEnd",void 0),a(u(r),"_onDragOver",void 0),a(u(r),"_onDragStart",void 0),a(u(r),"_onDrop",void 0),a(u(r),"_onInput",void 0),a(u(r),"_onFocus",void 0),a(u(r),"_onKeyDown",void 0),a(u(r),"_onKeyPress",void 0),a(u(r),"_onKeyUp",void 0),a(u(r),"_onMouseDown",void 0),a(u(r),"_onMouseUp",void 0),a(u(r),"_onPaste",void 0),a(u(r),"_onSelect",void 0),a(u(r),"editor",void 0),a(u(r),"editorContainer",void 0),a(u(r),"focu
1s",void 0),a(u(r),"blur",void 0),a(u(r),"setMode",void 0),a(u(r),"exitCurrentMode",void 0),a(u(r),"restoreEditorDOM",void 0),a(u(r),"setClipboard",void 0),a(u(r),"getClipboard",void 0),a(u(r),"getEditorKey",void 0),a(u(r),"update",void 0),a(u(r),"onDragEnter",void 0),a(u(r),"onDragLeave",void 0),a(u(r),"_handleEditorContainerRef",function(t){r.editorContainer=t,r.editor=null!==t?t.firstChild:null}),a(u(r),"focus",function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),i=r.editor;if(i){var o=b.getScrollParent(i),u=t||C(o),a=u.x,s=u.y;K(i)||D(!1),i.focus(),o===window?window.scrollTo(a,s):S.setTop(o,s),n||r.update(_.forceSelection(e,e.getSelection()))}}),a(u(r),"blur",function(){var t=r.editor;t&&(K(t)||D(!1),t.blur())}),a(u(r),"setMode",function(t){var e=r.props,n=e.onPaste,i=e.onCut,u=e.onCopy,a=o({},T.edit);n&&(a.onPaste=n),i&&(a.onCut=i),u&&(a.onCopy=u),r._handler=o({},T,{edit:a})[t]}),a(u(r),"exitCurrentMode",function(){r.setMode("edit")}),a(u(r),"restoreEditorDOM",function(t){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(t)})}),a(u(r),"setClipboard",function(t){r._clipboard=t}),a(u(r),"getClipboard",function(){return r._clipboard}),a(u(r),"update",function(t){r._latestEditorState=t,r.props.onChange(t)}),a(u(r),"onDragEnter",function(){r._dragCount++}),a(u(r),"onDragLeave",function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()}),r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=e.editorKey||x(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=e.editorState,r._latestCommittedEditorState=e.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}s(e,t);var n=e.prototype;return n._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(y?y(function(){return n(e,r)}):n(e,r))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:I(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return m.createElement(g,t)}return null},n._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},n.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,u=t.customStyleFn,a=t.customStyleMap,s=t.editorState,c=t.preventScroll,l=t.readOnly,p=t.textAlignment,d=t.textDirectionality,y=k({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),g=this.props.role||"textbox",v="combobox"===g?!!this.props.ariaExpanded:null,_={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:o({},f,a),customStyleFn:u,editorKey:this._editorKey,editorState:s,preventScroll:c,textDirectionality:d};return m.createElement("div",{className:y},this._renderPlaceholder(),m.createElement("div",{className:k("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},m.createElement("div",{"aria-activedescendant":l?null:this.props.ariaActiveDescendantID,"aria-autocomplete":l?null:this.props.ariaAutoComplete,"aria-controls":l?null:this.props.ariaControl
vendor: 3,319 bytes, line 1
1s,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":l?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":l?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:k({notranslate:!l,"public/DraftEditor/content":!0}),contentEditable:!l,"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:l?null:g,spellCheck:A&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},m.createElement(z,{editor:this,editorState:s}),m.createElement(h,i({},_,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!B&&O("draft_ods_enabled")&&(B=!0,v.initODS()),this.setMode("edit"),M&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.g.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(m.Component);a(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=R},32101:(t,e,r)=>{"use strict";var n=r(822428),i=r(773252),o=r(843653),u=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!1);var a=null;if(null!=r&&(a=r.length),null==a||0===a)return t;var s=t.getBlockMap(),c=e.getStartKey(),f=e.getStartOffset(),l=s.get(c),h=l.getText(),p=l.merge({text:h.slice(0,f)+r+h.slice(f,l.getLength()),characterList:i(l.getCharacterList(),u(n,a).toList(),f)}),d=f+a;return t.merge({blockMap:s.set(c,p),selectionAfter:e.merge({anchorOffset:d,focusOffset:d})})}},36529:(t,e,r)=>{"use strict";var n=r(731651),i=r(893347)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),u=t.getCurrentContent(),a=o,s=o.getAnchorKey(),c=o.getFocusKey(),f=u.getBlockForKey(s);if(i&&"forward"===r&&s!==c)return u;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return u;if(i&&o.getAnchorOffset()===u.getBlockForKey(s).getLength()){var l=u.getBlockForKey(f.nextSibling);if(!l||0===l.getLength())return u}}else if(t.isSelectionAtStartOfContent())return u;if((a=e(t))===o)return u}return n.removeRange(u,a,r)}},38177:(t,e,r)=>{"use strict";var n=r(540317);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}
1)}},48339:(t,e,r)=>{"use strict";var n=r(902177),i=r(134364),o=r(582966),u=o.List,a=o.Map,s=o.OrderedSet,c=o.Record,f=o.Repeat,l=s(),h={parent:null,characterList:u(),data:a(),depth:0,key:"",text:"",type:"unstyled",children:u(),prevSibling:null,nextSibling:null},p=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},y=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=u(f(n.EMPTY,r.length))),t};t.exports=function(t){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return t.call(this,y(e))||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():l},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(t,e){i(this.getCharacterList(),p,t,e)},r.findEntityRanges=function(t,e){i(this.getCharacterList(),d,t,e)},e}(c(h))},49604:t=>{"use strict";t.exports={encode:function(t,e,r){return t+"-"+e+"-"+r},decode:function(t){var e=t.split("-").reverse(),r=e[0],n=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(n,10),leafKey:parseInt(r,10)}}}},52990:(t,e,r)=>{"use strict";var n=r(134364),i=r(768848),o=r(582966),u=o.List,a=o.Repeat,s=o.Record,c=function(){return!0},f=s({start:null,end:null}),l=s({start:null,end:null,decoratorKey:null,leaves:null});function h(t,e){return t===e}t.exports={generate:function(t,e,r){var i=e.getLength();if(!i)return u.of(new l({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}));var o=[],s=r?r.getDecorations(e,t):u(a(null,i)),p=e.getCharacterList();return n(s,h,c,function(t,e){var r,i,a;o.push(new l({start:t,end:e,decoratorKey:s.get(t),leaves:(r=p.slice(t,e).toList(),i=t,a=[],n(r.map(function(t){return t.getStyle()}).toList(),h,c,function(t,e){a.push(new f({start:t+i,end:e+i}))}),u(a))}))}),u(o)},fromJS:function(t){var e=t.leaves;return new l(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(r=o[n])>=0||(i[r]=t[r]);return i}(t,["leaves"]),{leaves:null!=e?u(Array.isArray(e)?e:i(e)).map(function(t){return f(t)}):null}))}}},64403:(t,e,r)=>{"use strict";var n=r(706065);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},68439:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(462155),o=r(902177),u=r(742315),a=r(48339),s=r(308907),c=r(881434),f=r(26744),l=r(768848),h=r(625937),p=r(582966),d=r(373562),y=p.List,g=p.Record,v=p.Repeat,_=p.Map,m=p.OrderedMap,S=g({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),b=h("draft_tree_data_support")?a:u;t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;
vendor: 5,042 bytes, line 1
1return r.getEntityMap=function(){return s},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(t){return this.getBlockMap().get(t)},r.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},r.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},r.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,r){return r===t}).skip(1).first()},r.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},r.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},r.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(t,e,r){return s.__create(t,e,r),this},r.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},r.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},r.addEntity=function(t){return s.__add(t),this},r.getEntity=function(t){return s.__get(t)},r.getAllEntities=function(){return s.__getAll()},r.loadWithEntities=function(t){return s.__loadWithEntities(t)},e.createFromBlockArray=function(t,r){var n=Array.isArray(t)?t:t.contentBlocks,o=i.createFromArray(n),u=o.isEmpty()?new c:c.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:r||s,selectionBefore:u,selectionAfter:u})},e.createFromText=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(r).map(function(t){return t=d(t),new b({key:f(),text:t,type:"unstyled",characterList:y(v(o.EMPTY,t.length))})});return e.createFromBlockArray(n)},e.fromJS=function(t){return new e(n({},t,{blockMap:m(t.blockMap).map(e.createContentBlockFromJS),selectionBefore:new c(t.selectionBefore),selectionAfter:new c(t.selectionAfter)}))},e.createContentBlockFromJS=function(t){var e=t.characterList;return new b(n({},t,{data:_(t.data),characterList:null!=e?y((Array.isArray(e)?e:l(e)).map(function(t){return o.fromJS(t)})):void 0}))},e}(S)},73254:(t,e,r)=>{"use strict";var n=r(709869),i=r(733973),o=r(822428),u=r(843653),a=o.OrderedMap,s=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(),a=r.getKey(),f=e.getParentKey(),l=e.getNextSiblingKey(),h=e.getPrevSiblingKey(),p=r.getParentKey(),d=o?r.getNextSiblingKey():a,y=o?a: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(h,t,function(t){return t.merge({nextSibling:l})}),c(l,t,function(t){return t.merge({prevSibling:h})}),c(d,t,function(t){return t.merge({prevSibling:u})}),c(y,t,function(t){return t.merge({nextSibling:u})}),c(p,t,function(t){var e=t.getChildKeys(),r=e.indexOf(a),n=e.toArray();return n.splice(o?r+1:0!==r?r-1:0,0,u),t.merge({children:s(n)})}),c(u,t,function(t){return t.merge({nextSibling:d,prevSibling:y,parent:p})})})};t.exports=function(t,e,r,o){"replace"===o&&u(!1);var s=r.getKey(),c=e.getKey();c===s&&u(!1);var l=t.getBlockMap(),h=e instanceof n,p=[e],d=l.delete(c);h&&(p=[],d=l.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&&t.getParentKey()&&(!n||e!==n);return!!(i||r&&e!==r||o)}).forEach(function(e){p.push(e),t.delete(e.getKey())})}));var y=d.toSeq().takeUntil(function(t){return t===r}),g=d.toSeq().skipUntil(function(t){return t===r}).skip(1),v=p.map(function(t){return[t.getKey(),t]}),_=a();if("before"===o){var m=t.getBlockBefore(s);m&&m.getKey()===e.getKey()&&u(!1),_=y.concat([].concat(v,[[s,r]]),g).toOrderedMap()}else if("after"===o){var S=t.getBlockAfter(s);S&&S.getKey()===c&&u(!1),_=y.concat([[s,r]].concat(v),g).toOrderedMap()}return t.merge({blockMap:f(_,e,r,o,h),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},79257:(t,e,r)=>{"use strict";var n=r(325291),i=r(720622),o=r(843653);function u(t,e,r){var u=e.getCharacterList(),a=r>0?u.get(r-1):void 0,s=r<u.count()?u.get(r):void 0,c=a?a.getEntity():void 0,f=s?s.getEntity():void 0;if(f&&f===c&&"MUTABLE"!==t.__get(f).getMutability()){for(var l,h,p=(i(u,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===f},function(t,e){t<=r&&e>=r&&(l={start:t,end:e})}),"object"!=typeof l&&o(!1),l),d=p.start,y=p.end;d<y;)h=u.get(d),u=u.set(d,n.applyEntity(h,null)),d++;return e.set("characterList",u)}return e}
1t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),i={},o=e.getStartKey(),a=e.getStartOffset(),s=r.get(o),c=u(n,s,a);c!==s&&(i[o]=c);var f=e.getEndKey(),l=e.getEndOffset(),h=r.get(f);o===f&&(h=c);var p=u(n,h,l);return(p!==h&&(i[f]=p),Object.keys(i).length)?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},93253:t=>{"use strict";t.exports=function(t,e,r,n){var i=e.getStartKey(),o=e.getEndKey(),u=t.getBlockMap(),a=u.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat([[o,u.get(o)]]).map(function(t){var e=t.getDepth()+r;return e=Math.max(0,Math.min(e,n)),t.set("depth",e)});return u=u.merge(a),t.merge({blockMap:u,selectionBefore:e,selectionAfter:e})}},94434:t=>{"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},97440:(t,e,r)=>{"use strict";var n=r(270149);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(347555),u=r(696082),a=r(847132),s=r(783798),c=r(763411),f=r(222813);t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var u=e.getCurrentContent(),a=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||u!==a||s!==c||r.mustForceSelection()},r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,l=t.customStyleMap,h=t.customStyleFn,p=t.editorState,d=t.editorKey,y=t.preventScroll,g=t.textDirectionality,v=p.getCurrentContent(),_=p.getSelection(),m=p.mustForceSelection(),S=p.getDecorator(),b=f(p.getDirectionMap()),w=v.getBlocksAsArray(),k=[],x=null,E=null,C=0;C<w.length;C++){var O=w[C],D=O.getKey(),K=O.getType(),I=r(O),M=void 0,A=void 0,T=void 0;I&&(M=I.component,A=I.props,T=I.editable);var B=g||b.get(D),z=u.encode(D,0,0),R={contentState:v,block:O,blockProps:A,blockStyleFn:n,customStyleMap:l,customStyleFn:h,decorator:S,direction:B,forceSelection:m,offsetKey:z,preventScroll:y,selection:_,tree:p.getBlockTree(D)},L=e.get(K)||e.get("unstyled"),F=L.wrapper,N=L.element||e.get("unstyled").element,q=O.getDepth(),P="";(n&&(P=n(O)),"li"===N)&&(P=c(P,s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===K,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===K,"public/DraftStyleDefault/reset":E!==F||null===x||q>x,"public/DraftStyleDefault/depth0":0===q,"public/DraftStyleDefault/depth1":1===q,"public/DraftStyleDefault/depth2":2===q,"public/DraftStyleDefault/depth3":3===q,"public/DraftStyleDefault/depth4":q>=4,"public/DraftStyleDefault/listLTR":"LTR"===B,"public/DraftStyleDefault/listRTL":"RTL"===B})));var j=M||o,U={className:P,"data-block":!0,"data-editor":d,"data-offset-key":z,key:D};void 0!==T&&(U=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},U,{contentEditable:T,suppressContentEditableWarning:!0}));var H=a.createElement(N,U,a.createElement(j,i({},R,{key:D})));k.push({block:H,wrapperTemplate:F,key:D,offsetKey:z}),x=F?O.getDepth():null,E=F}for(var W=[],J=0;J<k.length;){var V=k[J];if(V.wrapperTemplate){var G=[];do G.push(k[J].block),J++;while(J<k.length&&k[J].wrapperTemplate===V.wrapperTemplate);var X=a.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},G);W.push(X)}else W.push(V.block),J++}return a.createElement("div",{"data-contents":"true"},W)},e}(a.Component)},103476:t=>{"use strict";
1t.exports={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}}},105212:(t,e,r)=>{"use strict";var n=r(19763),i=r(574148),o=r(915760),u=r(843653);function a(t,e){for(var r=1/0,n=1/0,i=-1/0,o=-1/0,u=0;u<t.length;u++){var a=t[u];0!==a.width&&1!==a.width&&(r=Math.min(r,a.top),n=Math.min(n,a.bottom),i=Math.max(i,a.top),o=Math.max(o,a.bottom))}return i<=n&&i-r<e&&o-n<e}t.exports=function(t){t.collapsed||u(!1);var e,r,s,c,f,l,h=(t=t.cloneRange()).startContainer;1!==h.nodeType&&(h=h.parentNode);var p=(r=getComputedStyle(e=h),(c=(s=i(e)).createElement("div")).style.fontFamily=r.fontFamily,c.style.fontSize=r.fontSize,c.style.fontStyle=r.fontStyle,c.style.fontWeight=r.fontWeight,c.style.lineHeight=r.lineHeight,c.style.position="absolute",c.textContent="M",(f=s.body)||u(!1),f.appendChild(c),l=c.getBoundingClientRect(),f.removeChild(c),l.height),d=t.endContainer,y=t.endOffset;for(t.setStart(t.startContainer,0);a(o(t),p)&&(d=t.startContainer,y=t.startOffset,d.parentNode||u(!1),t.setStartBefore(d),1!==d.nodeType||"inline"===getComputedStyle(d).display););for(var g=d,v=y-1;;){for(var _=g.nodeValue,m=v;m>=0;m--)if(!(null!=_&&m>0&&n.isSurrogatePair(_,m-1)))if(t.setStart(g,m),a(o(t),p))d=g,y=m;else break;if(-1===m||0===g.childNodes.length)break;v=function(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}(g=g.childNodes[m])}return t.setStart(d,y),t}},108037:(t,e,r)=>{"use strict";var n=r(184733),i=r(843653),o=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},114055:t=>{"use strict";t.exports={getRemovalRange:function(t,e,r,n,i){var o,u=r.split(" ");u=u.map(function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<u.length-1)return t+" ";return t});for(var a=n,s=null,c=null,f=0;f<u.length;f++){if(t<(o=a+u[f].length)&&a<e)null!==s||(s=a),c=o;else if(null!==s)break;a=o}var l=n+r.length,h=s===n,p=c===l;return(!h&&p||h&&!p)&&("forward"===i?c!==l&&c++:s!==n&&s--),{start:s,end:c}}}},117641:(t,e,r)=>{"use strict";var n=r(621462),i=r(696932);t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},r.render=function(){var t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
1Focus":this.props.editorState.getSelection().getHasFocus()});return n.createElement("div",{className:t},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},e}(n.Component)},117908:(t,e,r)=>{"use strict";var n=r(902177),i=r(582966).List;t.exports=function(t,e){return i(t.map(function(t,r){var i=e[r];return n.create({style:t,entity:i})}))}},118963:(t,e,r)=>{"use strict";var n=r(462619),i=r(4469),o=r(269429),u=r(588918),a=r(169825),s=r(247096),c=r(220572),f=r(169090),l=r(270268),h=r(681164),p=r(162751),d=r(605419),y=r(133208),g=n.isBrowser("Chrome"),v=n.isBrowser("Firefox"),_=g||v?y:function(t){};t.exports={onBeforeInput:i,onBlur:o,onCompositionStart:u,onCopy:a,onCut:s,onDragOver:c,onDragStart:f,onFocus:l,onInput:h,onKeyDown:p,onPaste:d,onSelect:y,onMouseUp:_,onKeyUp:_}},123694:(t,e,r)=>{"use strict";var n=r(942583),i=r(277881),o=r(621462),u=r(843653),a=r(267922),s=r(354625).setDraftEditorSelection;t.exports=function(t){function e(){for(var e,r,n,i,o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(u))||this),i=void 0,(n="leaf")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r._setSelection=function(){var t,e=this.props.selection;if(null!=e&&e.getHasFocus()){var r=this.props,n=r.block,i=r.start,o=r.text,c=n.getKey(),f=i+o.length;if(e.hasEdgeWithin(c,i,f)){var l=this.leaf;l||u(!1);var h=l.firstChild;h||u(!1),h.nodeType===Node.TEXT_NODE?t=h:a(h)?t=l:(t=h.firstChild)||u(!1),s(e,t,c,i,f)}}},r.shouldComponentUpdate=function(t){var e=this.leaf;return e||u(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var u=this.props,a=u.customStyleMap,s=u.customStyleFn,c=u.offsetKey,f=u.styleSet,l=f.reduce(function(t,e){var r={},i=a[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),n(t,i,r)},{});return s&&(l=n(l,s(f,e))),o.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:l},o.createElement(i,null,r))},e}(o.Component)},126465:(t,e,r)=>{"use strict";var n=r(574148),i=r(171500);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=i(e);if(null!=r)return r;e=e.parentNode}return null}},127877:(t,e,r)=>{"use strict";var n=r(696082),i=r(222813);t.exports=function(t,e,r,o,u){var a=i(t.getSelection());if(!e||!o)return a;var s=n.decode(e),c=s.blockKey,f=t.getBlockTree(c),l=f&&f.getIn([s.decoratorKey,"leaves",s.leafKey]),h=n.decode(o),p=h.blockKey,d=t.getBlockTree(p),y=d&&d.getIn([h.decoratorKey,"leaves",h.leafKey]);if(!l||!y)return a;var g=l.get("start"),v=y.get("start"),_=l?g+r:null,m=y?v+u:null;if(a.getAnchorKey()===c&&a.getAnchorOffset()===_&&a.getFocusKey()===p&&a.getFocusOffset()===m)return a;var S=!1;if(c===p){var b=l.get("end"),w=y.get("end");S=v===g&&w===b?u<r:v<g}else S=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===p}).first()===p;return a.merge({anchorKey:c,anchorOffset:_,focusKey:p,focusOffset:m,isBackward:S})}},127966:(t,e,r)=>{"use strict";var n=r(523097).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var i=n(t,0,e.offset).length,o=i+n(t,e.offset,e.length).length,u=i;u<o;u++)r[u]=e.key}),r}},133208:(t,e,r)=>{"use strict";var n=r(363791),i=r(540317),o=r(561199),u=r(296979);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:Error().stack}),selectionState:JSON.stringify(e.toJS())})}return}var r=t.props.editorState,a=u(r,o(t)),s=a.selectionState;s!==r.getSelection()&&(r=a.needsRecovery?i.forceSelection(r,s):i.acceptSelection(r,s),t.update(r))}},133918:(t,e,r)=>{"use strict";var n=r(523097),i=r(789854),o=r(296682),u=r(610843);function a(t,e){for(var r=1/0,n=1/0,i=-1/0,o=-1/0,u=0;u<t.length;u++){var a=t[u];0!==a.width&&1!==a.width&&(r=Math.min(r,a.top),n=Math.min(n,a.bottom),i=Math.max(i,a.top),o=Math.max(o,a.bottom))}return i<=n&&i-r<e&&o-n<e}t.exports=function(t){t.collapsed||u(!1);var e,r,s,c,f,l,h=(t=t.cloneRange()).startContainer;1!==h.nodeType&&(h=h.parentNode);var p=(r=getComputedStyle(e=h),(c=(s=i(e)).createElement("div")).style.fontFamily=r.fontFamily,c.style.fontSize=r.fontSize,c.style.fontStyle=r.fontStyle,c.style.fontWeight=r.fontWeight,c.style.lineHeight=r.lineHeight,c.style.position="absolute",c.textContent="M",(f=s.body)||u(!1),f.appendChild(c),l=c.getBoundingClientRect(),f.removeChild(c),l.height),d=t.endContainer,y=t.endOffset;for(t.setStart(t.startContainer,0);a(o(t),p)&&(d=t.startContainer,y=t.startOffset,d.parentNode||u(!1),t.setStartBefore(d),1!==d.nodeType||"inline"===getComputedStyle(d).display););for(var g=d,v=y-1;;){for(var _=g.nodeValue,m=v;m>=0;m--)if(!(null!=_&&m>0&&n.isSurrogatePair(_,m-1)))if(t.setStart(g,m),a(o(t),p))d=g,y=m;else break;if(-1===m||0===g.childNodes.length)break;v=function(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}(g=g.childNodes[m])}return t.setStart(d,y),t}},134364:t=>{"use strict";
1t.exports=function(t,e,r,n){if(t.size){var i=0;t.reduce(function(t,o,u){return e(t,o)||(r(t)&&n(i,u),i=u),o}),r(t.last())&&n(i,t.count())}}},154243:(t,e,r)=>{"use strict";var n=r(745106);e.A=void 0;var i=r(822428),o=r(550954),u=n(r(866190)),a=n(r(830173)),s=RegExp("\r","g"),c=RegExp("\n","g"),f=RegExp(" ","g"),l=RegExp("\r","g"),h=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],p={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},d=function(t,e){return t&&!0===t.__isMiddleware?t(e):t},y=function(t,e,r){},g=function(t,e,r){return r},v=function(t,e){},_=function(t){return[]},m=function(t){if(null!=t)return t;throw Error("Got unexpected null or undefined")};function S(){return{text:"",inlines:[],entities:[],blocks:[]}}function b(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,i.Map)();return!0===r?{text:"\r",inlines:[(0,i.OrderedSet)()],entities:[,],blocks:[{type:t,data:n,depth:Math.max(0,Math.min(4,e))}],isNewline:!0}:{text:"\n",inlines:[(0,i.OrderedSet)()],entities:[,],blocks:[]}}function w(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.Map)();return{text:"\r",inlines:[(0,i.OrderedSet)()],entities:[,],blocks:[{type:t,data:r,depth:Math.max(0,Math.min(4,e))}]}}function k(t,e){switch(t){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":if("ol"===e)return"ordered-list-item";return"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function x(t,e,r){return k(t,r)}function E(t,e,r){var n=p[t];return n?r=r.add(n).toOrderedSet():e instanceof HTMLElement&&(r=r.withMutations(function(t){"bold"===e.style.fontWeight&&t.add("BOLD"),"italic"===e.style.fontStyle&&t.add("ITALIC"),"underline"===e.style.textDecoration&&t.add("UNDERLINE"),"line-through"===e.style.textDecoration&&t.add("STRIKETHROUGH")}).toOrderedSet()),r}function C(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.OrderedSet)();return E(t,e,r)}function O(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.text.slice(0,1),i=t.text.slice(-1),o="\r"!==t.text&&"\r"!==e.text,u="\r"===t.text&&!t.isNewline&&e.isNewline;if("\r"===i&&"\r"===n&&(o||u)&&(t.text=t.text.slice(0,-1),t.inlines.pop(),t.entities.pop(),t.blocks.pop()),"\r"===t.text.slice(-1)&&!0===r)if(" "===e.text||"\n"===e.text)return t;else(" "===n||"\n"===n)&&(e.text=e.text.slice(1),e.inlines.shift(),e.entities.shift());var a=0===t.text.length&&e.isNewline;return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks),isNewline:a}}var D=function(t){var e=t.htmlToStyle,r=void 0===e?g:e,n=t.htmlToEntity,p=void 0===n?v:n,D=t.textToEntity,K=void 0===D?_:D,I=t.htmlToBlock,M=void 0===I?y:I;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.genKey,g=o.ContentState.createFromText(""),D=function(t,e,r,n,u,p,d,y,g,v,_,x){var C=function(t,e,r,n,o,u,l,p,d,y,g){var v,_=g(t=t.trim().replace(s,"").replace(f," "));if(!_)return null;var m=(v=t,h.some(function(t){return -1!==v.indexOf("<".concat(t))}))?h.concat(["div"]):["div"],x=function t(e,r,n,o,u,s,f,l,h,p,d,y,g,v,_,m){var x,C,D=e.nodeName.toLowerCase(),K=!1,I="unstyled";if("#text"===D){var M,A=e.textContent;if(""===A.trim()&&null===o)return S();if(""===A.trim()&&"code-block"!==o)return M=[,],m&&(M[0]=m),{text:" ",inlines:[(0,i.OrderedSet)()],entities:M,blocks:[]};"code-block"!==o&&(A=A.replace(c," "));var T=Array(A.length).fill(m),B=0;return h(A,d,y,g,v).sort(a.default).forEach(function(t){var e=t.entity,r=t.offset,n=t.length,i=t.result,o=r+B;null==i&&(i=A.substr(o,n));var u=A.split("");u.splice.bind(u,o,n).apply(u,i.split("")),A=u.join(""),T.splice.bind(T,o,n).apply(T,Array(i.length).fill(e)),B+=i.length-n}),{text:A,inlines:Array(A.length).fill(r),entities:T,blocks:[]}}if("br"===D){var z=o;return null===z?b("unstyled",s,!0):b(z||"unstyled",s,_.flat)}var R=S();r=E(D,e,r),r=f(D,e,r),("ul"===D||"ol"===D)&&(n&&(s+=1),n=D,o=null);var L=p(D,e,n,o);if(!1===L)return S();if("string"==typeof(L=L||{})?(x=L,C=(0,i.Map)()):(x="string"==typeof L?L:L.type,C=L.data?(0,i.Map)(L.data):(0,i.Map)()),!o&&(-1!==u.indexOf(D)||x))R=w(x||k(D,n),s,C),o=x||k(D,n),K=!0;else if(n&&("ordered-list-item"===o||"unordered-list-item"===o)&&"li"===D){var F=k(D,n);R=w(F,s),o=F,K=!0,I="ul"===n?"unordered-list-item":"ordered-list-item"}else o&&"atomic"!==o&&"atomic"===x&&(o=x,K=!0,R=b(x,s,!0,C));var N=e.firstChild;null==N&&m&&("atomic"===x||"atomic"===o)&&(N=document.createTextNode("a")),null!=N&&(D=N.nodeName.toLowerCase());for(var q=null;N;){q=l(D,N,d,y,g,v),R=O(R,t(N,r,n,o,u,s,f,l,h,p,d,y,g,v,_,q||m),_.flat);var P=N.nextSibling;if(P&&u.indexOf(D)>=0&&o){var j=p(D,N,n,o),U=void 0,H=void 0;!1!==j&&("string"==typeof(j=j||{})?(U=j,H=(0,i.Map)()):(U=j.type||k(D,n),H=j.data?(0,i.Map)(j.data):(0,i.Map)()),R=O(R,b(U,s,_.flat,H),_.flat))}P&&(D=P.nodeName.toLowerCase()),N=P}return K&&(R=O(R,w(I,s,(0,i.Map)()),_.flat)),R}(_,(0,i.OrderedSet)(),"ul",null,m,-1,e,r,n,o,u,l,p,d,y);return 0===x.text.indexOf("\r")&&(x={text:x.text.slice(1),inlines:x.inlines.slice(1),entities:x.entities.slice(1),blocks:x.blocks}
1),"\r"===x.text.slice(-1)&&(x.text=x.text.slice(0,-1),x.inlines=x.inlines.slice(0,-1),x.entities=x.entities.slice(0,-1),x.blocks.pop()),0===x.blocks.length&&x.blocks.push({type:"unstyled",data:(0,i.Map)(),depth:0}),x.text.split("\r").length===x.blocks.length+1&&x.blocks.unshift({type:"unstyled",data:(0,i.Map)(),depth:0}),x}(t,e,r,n,u,p,d,y,g,v,_,x);if(null==C)return[];var D=0;return C.text.split("\r").map(function(t,e){t=t.replace(l,"");var r=D+t.length,n=m(C).inlines.slice(D,r),u=m(C).entities.slice(D,r),a=(0,i.List)(n.map(function(t,e){var r={style:t,entity:null};return u[e]&&(r.entity=u[e]),o.CharacterMetadata.create(r)}));return D=r+1,new o.ContentBlock({key:x(),type:m(C).blocks[e].type,data:m(C).blocks[e].data,depth:m(C).blocks[e].depth,text:t,characterList:a})})}(t,d(r,C),d(p,v),d(K,_),d(M,x),function(){if(g.createEntity){var t;return g=(t=g).createEntity.apply(t,arguments),g.getLastCreatedEntityKey()}return o.Entity.create.apply(o.Entity,arguments)},function(){if(g.getEntity){var t;return(t=g).getEntity.apply(t,arguments)}return o.Entity.get.apply(o.Entity,arguments)},function(){if(g.mergeEntityData){var t;g=(t=g).mergeEntityData.apply(t,arguments);return}o.Entity.mergeData.apply(o.Entity,arguments)},function(){if(g.replaceEntityData){var t;g=(t=g).replaceEntityData.apply(t,arguments);return}o.Entity.replaceData.apply(o.Entity,arguments)},e,n,y),I=o.BlockMapBuilder.createFromArray(D),A=D[0].getKey();return g.merge({blockMap:I,selectionBefore:o.SelectionState.createEmpty(A),selectionAfter:o.SelectionState.createEmpty(A)})}};e.A=function(){return arguments.length>=1&&"string"==typeof(arguments.length<=0?void 0:arguments[0])?D({}).apply(void 0,arguments):D.apply(void 0,arguments)}},155060:(t,e,r)=>{"use strict";var n=r(582966).List;t.exports=function(){function t(t){var e,r;r=void 0,(e="_decorators")in this?Object.defineProperty(this,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[e]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);return this._decorators.forEach(function(n,i){var o=0;(0,n.strategy)(t,function(t,e){(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0})(r,t,e)&&(function(t,e,r,n){for(var i=e;i<r;i++)t[i]=n}(r,t,e,i+"."+o),o++)},e)}),n(r)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}()},158845:(t,e,r)=>{"use strict";var n=r(184733),i=r(158875),o=r(543739),u=r(867612),a=r(502855),s=r(778114),c=r(94434),f=r(255476),l=r(665810),h=r(675838),p=r(732397),d=r(746661),y=r(387634),g=n.isBrowser("Chrome"),v=n.isBrowser("Firefox"),_=g||v?y:function(t){};t.exports={onBeforeInput:i,onBlur:o,onCompositionStart:u,onCopy:a,onCut:s,onDragOver:c,onDragStart:f,onFocus:l,onInput:h,onKeyDown:p,onPaste:d,onSelect:y,onMouseUp:_,onKeyUp:_}},158875:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867),o=r(184733),u=r(292506),a=r(434741),s=r(963586),c=r(729251),f=r(924162),l=o.isBrowser("Firefox");function h(t,e,r,o,u){var a=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,o);return i.push(t,a,"insert-characters",u)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t._latestEditorState,n=e.data;if(n){if(t.props.handleBeforeInput&&a(t.props.handleBeforeInput(n,r,e.timeStamp)))return void e.preventDefault();var o=r.getSelection(),p=o.getStartOffset(),d=o.getAnchorKey();if(!o.isCollapsed()){e.preventDefault(),t.update(h(r,n,r.getCurrentInlineStyle(),u(r.getCurrentContent(),r.getSelection()),!0));return}var y=h(r,n,r.getCurrentInlineStyle(),u(r.getCurrentContent(),r.getSelection()),!1),g=!1;if(!(g=s(t._latestCommittedEditorState))){var v=r.getBlockTree(d),_=y.getBlockTree(d);g=v.size!==_.size||v.zip(_).some(function(t){var e=t[0],r=t[1],i=e.get("start"),o=i+(i>=p?n.length:0),u=e.get("end"),a=u+(u>=p?n.length:0),s=r.get("start"),c=r.get("end"),f=r.get("decoratorKey");return e.get("decoratorKey")!==f||e.get("leaves").size!==r.get("leaves").size||o!==s||a!==c||null!=f&&c-s!=u-i})}if(g||(g=l&&("'"==n||"/"==n)),g||(g=c(y.getDirectionMap()).get(d)!==c(r.getDirectionMap()).get(d)),g){e.preventDefault(),y=i.set(y,{forceSelection:!0}
1),t.update(y);return}t._pendingStateFromBeforeInput=y=i.set(y,{nativelyRenderedContent:y.getCurrentContent()}),f(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},162751:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317),o=r(5621),u=r(291009),a=r(482161),s=r(462619),c=r(785603),f=r(207760),l=r(488028),h=r(184746),p=r(434044),d=r(293310),y=r(38177),g=r(451374),v=r(24312),_=r(366884),m=r(382819),S=o.isOptionKeyCommand,b=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,o=t._latestEditorState;function s(r){var n=t.props[r];return!!n&&(n(e),!0)}switch(r){case u.RETURN:if(e.preventDefault(),t.props.handleReturn&&c(t.props.handleReturn(e,o)))return;break;case u.ESC:if(e.preventDefault(),s("onEscape"))return;break;case u.TAB:if(s("onTab"))return;break;case u.UP:if(s("onUpArrow"))return;break;case u.RIGHT:if(s("onRightArrow"))return;break;case u.DOWN:if(s("onDownArrow"))return;break;case u.LEFT:if(s("onLeftArrow"))return;break;case u.SPACE:b&&S(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null==w||""===w){if(r===u.SPACE&&b&&S(e)){var k=n.replaceText(o.getCurrentContent(),o.getSelection(),"\xa0");t.update(i.push(o,k,"insert-characters"))}return}if("undo"===w)return void m(e,o,t.update);if(e.preventDefault(),!(t.props.handleKeyCommand&&c(t.props.handleKeyCommand(w,o,e.timeStamp)))){var x=function(t,e,r){switch(t){case"redo":return i.redo(e);case"delete":return v(e);case"delete-word":return h(e);case"backspace":return g(e);case"backspace-word":return l(e);case"backspace-to-start-of-line":return f(e,r);case"split-block":return p(e);case"transpose-characters":return _(e);case"move-selection-to-start-of-block":return y(e);case"move-selection-to-end-of-block":return d(e);case"secondary-cut":return a.cut(e);case"secondary-paste":return a.paste(e);default:return e}}(w,o,e);x!==o&&t.update(x)}}},167065:(t,e,r)=>{"use strict";var n=r(325291),i=r(822428).Map;function o(t,e,r,o){var u=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),f=e.getEndOffset(),l=u.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===c}).concat(i([[c,u.get(c)]])).map(function(t,e){a===c?(i=s,u=f):(i=e===a?s:0,u=e===c?f:t.getLength());for(var i,u,l,h=t.getCharacterList();i<u;)l=h.get(i),h=h.set(i,o?n.applyStyle(l,r):n.removeStyle(l,r)),i++;return t.set("characterList",h)});return t.merge({blockMap:u.merge(l),selectionBefore:e,selectionAfter:e})}t.exports={add:function(t,e,r){return o(t,e,r,!0)},remove:function(t,e,r){return o(t,e,r,!1)}}},169090:t=>{"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},169825:(t,e,r)=>{"use strict";var n=r(64403);t.exports=function(t,e){if(t._latestEditorState.getSelection().isCollapsed())return void e.preventDefault();t.setClipboard(n(t._latestEditorState))}},171500:(t,e,r)=>{"use strict";var n=r(828525);t.exports=function t(e){if(n(e)){var r=e.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<e.childNodes.length;i++){var o=t(e.childNodes[i]);if(o)return o}}return null}},178767:(t,e,r)=>{"use strict";t.exports=r(154669).unstable_flushControlled},180678:(t,e,r)=>{"use strict";var n=r(562833),i=r(123694),o=r(49604),u=r(822428),a=r(621462),s=r(696932);u.List,t.exports=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,e.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,u=t.customStyleFn,c=t.customStyleMap,f=t.decorator,l=t.direction,h=t.forceSelection,p=t.hasSelection,d=t.selection,y=t.tree,g=e.getKey(),v=e.getText(),_=y.size-1,m=this.props.children||y.map(function(t,s){var y=t.get("decoratorKey"),m=t.get("leaves"),S=m.size-1,b=m.map(function(t,r){var n=o.encode(g,s,r),f=t.get("start"),l=t.get("end");return a.createElement(i,{key:n,offsetKey:n,block:e,start:f,selection:p?d:null,forceSelection:h,text:v.slice(f,l),styleSet:e.getInlineStyleAt(f),customStyleMap:c,customStyleFn:u,isLast:y===_&&r===S})}).toArray();return y&&f?a.createElement(n,{block:e,children:b,contentState:r,decorator:f,decoratorKey:y,direction:l,leafSet:t,text:v,key:s}):b}).toArray();return a.createElement("div",{"data-offset-key":o.encode(g,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===l,"public/DraftStyleDefault/rtl":"RTL"===l})},m)},e}(a.Component)},184746:(t,e,r)=>{"use strict";var n=r(455981),i=r(540317),o=r(323975),u=r(295763);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);return o(t,n.getForward(u).length||1)},"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},186673:t=>{"use strict";
vendor: 24,606 bytes, line 1
1t.exports={getRemovalRange:function(t,e,r,n,i){var o,u=r.split(" ");u=u.map(function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<u.length-1)return t+" ";return t});for(var a=n,s=null,c=null,f=0;f<u.length;f++){if(t<(o=a+u[f].length)&&a<e)null!==s||(s=a),c=o;else if(null!==s)break;a=o}var l=n+r.length,h=s===n,p=c===l;return(!h&&p||h&&!p)&&("forward"===i?c!==l&&c++:s!==n&&s--),{start:s,end:c}}}},190657:(t,e,r)=>{"use strict";var n=r(822428).OrderedMap;t.exports={createFromArray:function(t){return n(t.map(function(t){return[t.getKey(),t]}))}}},199902:function(t){t.exports=function(){"use strict";var t,e,r,n,i,o,u,a,s,c,f=Array.prototype.slice;function l(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function h(t){return g(t)?t:G(t)}function p(t){return v(t)?t:X(t)}function d(t){return _(t)?t:Y(t)}function y(t){return g(t)&&!m(t)?t:Q(t)}function g(t){return!!(t&&t[b])}function v(t){return!!(t&&t[w])}function _(t){return!!(t&&t[k])}function m(t){return v(t)||_(t)}function S(t){return!!(t&&t[x])}l(p,h),l(d,h),l(y,h),h.isIterable=g,h.isKeyed=v,h.isIndexed=_,h.isAssociative=m,h.isOrdered=S,h.Keyed=p,h.Indexed=d,h.Set=y;var b="@@__IMMUTABLE_ITERABLE__@@",w="@@__IMMUTABLE_KEYED__@@",k="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",E="delete",C={},O={value:!1},D={value:!1};function K(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function M(){}function A(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function T(t){return void 0===t.size&&(t.size=t.__iterate(z)),t.size}function B(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||0xffffffff===r)return NaN;e=r}return e<0?T(t)+e:e}function z(){return!0}function R(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function L(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var F="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",q=F||N;function P(t){this.next=t}function j(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 U(){return{value:void 0,done:!0}}function H(t){return t&&"function"==typeof t.next}function W(t){var e=J(t);return e&&e.call(t)}function J(t){var e=t&&(F&&t[F]||t[N]);if("function"==typeof e)return e}function V(t){return t&&"number"==typeof t.length}function G(t){return null==t?ti():g(t)?t.toSeq():function(t){var e=ta(t)||"object"==typeof t&&new tt(t);if(!e)throw TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function X(t){return null==t?ti().toKeyedSeq():g(t)?v(t)?t.toSeq():t.fromEntrySeq():to(t)}function Y(t){return null==t?ti():g(t)?v(t)?t.entrySeq():t.toIndexedSeq():tu(t)}function Q(t){return(null==t?ti():!g(t)?tu(t):v(t)?t.entrySeq():t).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[q]=function(){return this},l(G,h),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(t,e){return ts(this,t,e,!0)},G.prototype.__iterator=function(t,e){return tc(this,t,e,!0)},l(X,G),X.prototype.toKeyedSeq=function(){return this},l(Y,G),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return ts(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return tc(this,t,e,!1)},l(Q,G),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},G.isSeq=tn,G.Keyed=X,G.Set=Q,G.Indexed=Y;var $="@@__IMMUTABLE_SEQ__@@";function Z(t){this._array=t,this.size=t.length}function tt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function te(t){this._iterable=t,this.size=t.length||t.size}function tr(t){this._iterator=t,this._iteratorCache=[]}function tn(t){return!!(t&&t[$])}function ti(){return t||(t=new Z([]))}function to(t){var e=Array.isArray(t)?new Z(t).fromEntrySeq():H(t)?new tr(t).fromEntrySeq():J(t)?new te(t).fromEntrySeq():"object"==typeof t?new tt(t):void 0;if(!e)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function tu(t){var e=ta(t);if(!e)throw TypeError("Expected Array or iterable object of values: "+t);return e}function ta(t){return V(t)?new Z(t):H(t)?new tr(t):J(t)?new te(t):void 0}function ts(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var a=i[r?o-u:u];if(!1===e(a[1],n?a[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function tc(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new P(function(){var t=i[r?o-u:u];return u++>o?U():j(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function tf(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,Y(r).map(function(n,i){return t(e,n,i,r)})):tl(r)?e.call(i,n,X(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):function t(e){return Array.isArray(e)?Y(e).map(t).toList():tl(e)?X(e).map(t).toMap():e}(t)}function tl(t){return t&&(t.constructor===Object||void 0===t.constructor)}function th(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 tp(t,e){if(t===e)return!0;if(!g(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||v(t)!==v(e)||_(t)!==_(e)||S(t)!==S(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!m(t);if(S(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&th(i[1],t)&&(r||th(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 u=!0,a=e.__iterate(function(e,n){if(r?!t.has(e):i?!th(e,t.get(n,C)):!th(t.get(n,C),e))return u=!1,!1});return u&&t.size===a}function td(t,r){if(!(this instanceof td))return new td(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(e)return e;e=this}}function ty(t,e){if(!t)throw Error(e)}function tg(t,e,n){if(!(this instanceof tg))return new tg(t,e,n);if(ty(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(r)return r;r=this}}function tv(){throw TypeError("Abstract")}function t_(){}function tm(){}function tS(){}G.prototype[$]=!0,l(Z,Y),Z.prototype.get=function(t,e){return this.has(t)?this._array[B(this,t)]:e},Z.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},Z.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new P(function(){return i>n?U():j(t,i,r[e?n-i++:i++])})},l(tt,X),tt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},tt.prototype.has=function(t){return this._object.hasOwnProperty(t)},tt.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},tt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new P(function(){var u=n[e?i-o:o];return o++>i?U():j(t,u,r[u])})},tt.prototype[x]=!0,l(te,Y),te.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r,n=W(this._iterable),i=0;if(H(n))for(;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},te.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!H(r))return new P(U);var n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value)})},l(tr,Y),tr.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},tr.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new P(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return j(t,i,n[i++])})},l(td,Y),td.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},td.prototype.get=function(t,e){return this.has(t)?this._value:e},td.prototype.includes=function(t){return th(this._value,t)},td.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:new td(this._value,L(e,r,r)-L(t,r,0))},td.prototype.reverse=function(){return this},td.prototype.indexOf=function(t){return th(this._value,t)?0:-1},td.prototype.lastIndexOf=function(t){return th(this._value,t)?this.size:-1},td.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},td.prototype.__iterator=function(t,e){var r=this,n=0;return new P(function(){return n<r.size?j(t,n++,r._value):U()})},td.prototype.equals=function(t){return t instanceof td?th(this._value,t._value):tp(t)},l(tg,Y),tg.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},tg.prototype.get=function(t,e){return this.has(t)?this._start+B(this,t)*this._step:e},tg.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tg.prototype.slice=function(t,e){var r;return R(t,e,this.size)?this:(t=L(t,this.size,0),(e=L(e,r=this.size,r))<=t)?new tg(0,0):new tg(this.get(t,this._end),this.get(e,this._end),this._step)},tg.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},tg.prototype.lastIndexOf=function(t){return this.indexOf(t)},tg.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},tg.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 P(function(){var u=i;return i+=e?-n:n,o>r?U():j(t,o++,u)})},tg.prototype.equals=function(t){return t instanceof tg?this._start===t._start&&this._end===t._end&&this._step===t._step:tp(this,t)},l(tv,h),l(t_,tv),l(tm,tv),l(tS,tv),tv.Keyed=t_,tv.Indexed=tm,tv.Set=tS;var tb="function"==typeof Math.imul&&-2===Math.imul(0xffffffff,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 tw(t){return t>>>1&0x40000000|0xbfffffff&t}function tk(t){if(!1===t||null==t||"function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=0xffffffff*t);t>0xffffffff;)t/=0xffffffff,r^=t;return tw(r)}if("string"===e){return t.length>tI?(void 0===(o=tT[i=t])&&(o=tx(i),tA===tM&&(tA=0,tT={}),tA++,tT[i]=o),o):tx(t)}if("function"==typeof t.hashCode)return t.hashCode();if("object"===e){var i,o,u,a=t;if(tO&&void 0!==(u=n.get(a))||void 0!==(u=a[tK])||!tC&&(void 0!==(u=a.propertyIsEnumerable&&a.propertyIsEnumerable[tK])||void 0!==(u=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(a))))return u;if(u=++tD,0x40000000&tD&&(tD=0),tO)n.set(a,u);else if(void 0!==tE&&!1===tE(a))throw Error("Non-extensible objects are not allowed as keys.");else if(tC)Object.defineProperty(a,tK,{enumerable:!1,configurable:!1,writable:!1,value:u});else if(void 0!==a.propertyIsEnumerable&&a.propertyIsEnumerable===a.constructor.prototype.propertyIsEnumerable)a.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},a.propertyIsEnumerable[tK]=u;else if(void 0!==a.nodeType)a[tK]=u;else throw Error("Unable to set a non-enumerable property on object.");return u}if("function"==typeof t.toString)return tx(t.toString());throw Error("Value type "+e+" cannot be hashed.")}function tx(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tw(e)}var tE=Object.isExtensible,tC=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),tO="function"==typeof WeakMap;tO&&(n=new WeakMap);var tD=0,tK="__immutablehash__";"function"==typeof Symbol&&(tK=Symbol(tK));var tI=16,tM=255,tA=0,tT={};function tB(t){ty(t!==1/0,"Cannot perform this action with an infinite size.")}function tz(t){return null==t?tG():tR(t)&&!S(t)?t:tG().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function tR(t){return!!(t&&t[tL])}l(tz,t_),tz.of=function(){var t=f.call(arguments,0);return tG().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},tz.prototype.toString=function(){return this.__toString("Map {","}")},tz.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},tz.prototype.set=function(t,e){return tX(this,t,e)},tz.prototype.setIn=function(t,e){return this.updateIn(t,C,function(){return e})},tz.prototype.remove=function(t){return tX(this,t,C)},tz.prototype.deleteIn=function(t){return this.updateIn(t,function(){return C})},tz.prototype.update=function(t,e,r){return 1==arguments.length?t(this):this.updateIn([t],e,r)},tz.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===C,u=r.next();if(u.done){var a=o?n:e,s=i(a);return s===a?e:s}ty(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?C:e.get(c,C),l=t(f,r,n,i);return l===f?e:l===C?e.remove(c):(o?tG():e).set(c,l)}(this,eq(t),e,r);return n===C?void 0:n},tz.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):tG()},tz.prototype.merge=function(){return tZ(this,void 0,arguments)},tz.prototype.mergeWith=function(t){var e=f.call(arguments,1);return tZ(this,t,e)},tz.prototype.mergeIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},tz.prototype.mergeDeep=function(){return tZ(this,t0,arguments)},tz.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return tZ(this,t1(t),e)},tz.prototype.mergeDeepIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},tz.prototype.sort=function(t){return ep(eK(this,t))},tz.prototype.sortBy=function(t,e){return ep(eK(this,e,t))},tz.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},tz.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},tz.prototype.asImmutable=function(){return this.__ensureOwner()},tz.prototype.wasAltered=function(){return this.__altered},tz.prototype.__iterator=function(t,e){return new tH(this,t,e)},tz.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},tz.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?tV(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},tz.isMap=tR;var tL="@@__IMMUTABLE_MAP__@@",tF=tz.prototype;function tN(t,e){this.ownerID=t,this.entries=e}function tq(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function tP(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function tj(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function tU(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function tH(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&tJ(t._root)}function tW(t,e){return j(t,e[0],e[1])}function tJ(t,e){return{node:t,index:0,__prev:e}}function tV(t,e,r,n){var i=Object.create(tF);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function tG(){return i||(i=tV(0))}function tX(t,e,r){if(t._root){var n,i,o=K(O),u=K(D);if(n=tY(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===C?-1:1:0)}else{if(r===C)return t;i=1,n=new tN(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?tV(i,n):tG()}function tY(t,e,r,n,i,o,u,a){return t?t.update(e,r,n,i,o,u,a):o===C?t:(I(a),I(u),new tU(e,n,[i,o]))}function tQ(t){return t.constructor===tU||t.constructor===tj}function t$(t,e,r,n,i){if(t.keyHash===n)return new tj(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&31,a=(0===r?n:n>>>r)&31,s=u===a?[t$(t,e,r+5,n,i)]:(o=new tU(e,n,i),u<a?[t,o]:[o,t]);return new tq(e,1<<u|1<<a,s)}function tZ(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],u=p(o);g(o)||(u=u.map(function(t){return tf(t)})),n.push(u)}return t2(t,e,n)}function t0(t,e,r){return t&&t.mergeDeep&&g(e)?t.mergeDeep(e):th(t,e)?t:e}function t1(t){return function(e,r,n){if(e&&e.mergeDeepWith&&g(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return th(e,i)?e:i}}function t2(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,C,function(t){return t===C?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 t3(t){return t-=t>>1&0x55555555,t=(t=(0x33333333&t)+(t>>2&0x33333333))+(t>>4)&0xf0f0f0f,t+=t>>8,127&(t+=t>>16)}function t6(t,e,r,n){var i=n?t:A(t);return i[e]=r,i}tF[tL]=!0,tF[E]=tF.remove,tF.removeIn=tF.deleteIn,tN.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tN.prototype.update=function(t,e,r,n,i,o,u){for(var a=i===C,s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),!a||1!==s.length){if(!l&&!a&&s.length>=t5){var h=t,p=s,d=n,y=i;h||(h=new M);for(var g=new tU(h,tk(d),[d,y]),v=0;v<p.length;v++){var _=p[v];g=g.update(h,0,void 0,_[0],_[1])}return g}var m=t&&t===this.ownerID,S=m?s:A(s);return(l?a?c===f-1?S.pop():S[c]=S.pop():S[c]=[n,i]:S.push([n,i]),m)?(this.entries=S,this):new tN(t,S)}},tq.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=1<<((0===t?e:e>>>t)&31),o=this.bitmap;return(o&i)==0?n:this.nodes[t3(o&i-1)].get(t+5,e,r,n)},tq.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=1<<a,c=this.bitmap,f=(c&s)!=0;if(!f&&i===C)return this;var l=t3(c&s-1),h=this.nodes,p=f?h[l]:void 0,d=tY(p,t,e+5,r,n,i,o,u);if(d===p)return this;if(!f&&d&&h.length>=t8){for(var y=t,g=h,v=c,_=a,m=d,S=0,b=Array(32),w=0;0!==v;w++,v>>>=1)b[w]=1&v?g[S++]:void 0;return b[_]=m,new tP(y,S+1,b)}if(f&&!d&&2===h.length&&tQ(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&tQ(d))return d;var k=t&&t===this.ownerID,x=f?d?c:c^s:c|s,E=f?d?t6(h,l,d,k):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,l,k):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,a=0;a<i;a++)a===e?(o[a]=r,u=-1):o[a]=t[a+u];return o}(h,l,d,k);return k?(this.bitmap=x,this.nodes=E,this):new tq(t,x,E)},tP.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=(0===t?e:e>>>t)&31,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},tP.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=i===C,c=this.nodes,f=c[a];if(s&&!f)return this;var l=tY(f,t,e+5,r,n,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h<t7)return function(t,e,r,n){for(var i=0,o=0,u=Array(r),a=0,s=1,c=e.length;a<c;a++,s<<=1){var f=e[a];void 0!==f&&a!==n&&(i|=s,u[o++]=f)}return new tq(t,i,u)}(t,c,h,a)}else h++;var p=t&&t===this.ownerID,d=t6(c,a,l,p);return p?(this.count=h,this.nodes=d,this):new tP(t,h,d)},tj.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tj.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=i===C;if(r!==this.keyHash)return a?this:(I(u),I(o),t$(this,t,e,r,[n,i]));for(var s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),a&&2===f)return new tU(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,p=h?s:A(s);return(l?a?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h)?(this.entries=p,this):new tj(t,this.keyHash,p)},tU.prototype.get=function(t,e,r,n){return th(r,this.entry[0])?this.entry[1]:n},tU.prototype.update=function(t,e,r,n,i,o,u){var a=i===C,s=th(n,this.entry[0]);return(s?i===this.entry[1]:a)?this:(I(u),a)?void I(o):s?t&&t===this.ownerID?(this.entry[1]=i,this):new tU(t,this.keyHash,[n,i]):(I(o),t$(this,t,e,tk(n),[n,i]))},tN.prototype.iterate=tj.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},tq.prototype.iterate=tP.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}},tU.prototype.iterate=function(t,e){return t(this.entry)},l(tH,P),tH.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 tW(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return tW(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 tW(t,o.entry);e=this._stack=tJ(o,e)}continue}e=this._stack=this._stack.__prev}return U()};var t5=8,t8=16,t7=8;function t4(t){var e=eu();if(null==t)return e;if(t9(t))return t;var r=d(t),n=r.size;return 0===n?e:(tB(n),n>0&&n<32)?eo(0,n,5,null,new er(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})})}function t9(t){return!!(t&&t[et])}l(t4,tm),t4.of=function(){return this(arguments)},t4.prototype.toString=function(){return this.__toString("List [","]")},t4.prototype.get=function(t,e){if((t=B(this,t))>=0&&t<this.size){var r=ec(this,t+=this._origin);return r&&r.array[31&t]}return e},t4.prototype.set=function(t,e){return function(t,e,r){if((e=B(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?ef(t,e).set(0,r):ef(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=K(D);return(e>=eh(t._capacity)?n=ea(n,t.__ownerID,0,e,r,o):i=ea(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):eo(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},t4.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t4.prototype.insert=function(t,e){return this.splice(t,0,e)},t4.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):eu()},t4.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){ef(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},t4.prototype.pop=function(){return ef(this,0,-1)},t4.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){ef(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},t4.prototype.shift=function(){return ef(this,1)},t4.prototype.merge=function(){return el(this,void 0,arguments)},t4.prototype.mergeWith=function(t){var e=f.call(arguments,1);return el(this,t,e)},t4.prototype.mergeDeep=function(){return el(this,t0,arguments)},t4.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return el(this,t1(t),e)},t4.prototype.setSize=function(t){return ef(this,0,t)},t4.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:ef(this,L(t,r,0),L(e,r,r))},t4.prototype.__iterator=function(t,e){var r=0,n=ei(this,e);return new P(function(){var e=n();return e===en?U():j(t,r++,e)})},t4.prototype.__iterate=function(t,e){for(var r,n=0,i=ei(this,e);(r=i())!==en&&!1!==t(r,n++,this););return n},t4.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?eo(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},t4.isList=t9;
1var et="@@__IMMUTABLE_LIST__@@",ee=t4.prototype;function er(t,e){this.array=t,this.ownerID=e}ee[et]=!0,ee[E]=ee.remove,ee.setIn=tF.setIn,ee.deleteIn=ee.removeIn=tF.removeIn,ee.update=tF.update,ee.updateIn=tF.updateIn,ee.mergeIn=tF.mergeIn,ee.mergeDeepIn=tF.mergeDeepIn,ee.withMutations=tF.withMutations,ee.asMutable=tF.asMutable,ee.asImmutable=tF.asImmutable,ee.wasAltered=tF.wasAltered,er.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n,i=r>>>e&31;if(i>=this.array.length)return new er([],t);var o=0===i;if(e>0){var u=this.array[i];if((n=u&&u.removeBefore(t,e-5,r))===u&&o)return this}if(o&&!n)return this;var a=es(this,t);if(!o)for(var s=0;s<i;s++)a.array[s]=void 0;return n&&(a.array[i]=n),a},er.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var u=es(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var en={};function ei(t,e){var r=t._origin,n=t._capacity,i=eh(n),o=t._tail;return function t(u,a,s){var c,f,l,h,p,d,y,g,v,_,m,S;return 0===a?(c=u,l=(f=s)===i?o&&o.array:c&&c.array,h=f>r?0:r-f,(p=n-f)>32&&(p=32),function(){if(h===p)return en;var t=e?--p:h++;return l&&l[t]}):(d=u,y=a,g=s,_=d&&d.array,m=g>r?0:r-g>>y,(S=(n-g>>y)+1)>32&&(S=32),function(){for(;;){if(v){var r=v();if(r!==en)return r;v=null}if(m===S)return en;var n=e?--S:m++;v=t(_&&_[n],y-5,g+(n<<y))}})}(t._root,t._level,0)}function eo(t,e,r,n,i,o,u){var a=Object.create(ee);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=u,a.__altered=!1,a}function eu(){return o||(o=eo(0,0,5))}function ea(t,e,r,n,i,o){var u,a=n>>>r&31,s=t&&a<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[a],f=ea(c,e,r-5,n,i,o);return f===c?t:((u=es(t,e)).array[a]=f,u)}return s&&t.array[a]===i?t:(I(o),u=es(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function es(t,e){return e&&t&&e===t.ownerID?t:new er(t?t.array.slice():[],e)}function ec(t,e){if(e>=eh(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&31],n-=5;return r}}function ef(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new M,i=t._origin,o=t._capacity,u=i+e,a=void 0===r?o:r<0?o+r:i+r;if(u===i&&a===o)return t;if(u>=a)return t.clear();for(var s=t._level,c=t._root,f=0;u+f<0;)c=new er(c&&c.array.length?[void 0,c]:[],n),s+=5,f+=1<<s;f&&(u+=f,i+=f,a+=f,o+=f);for(var l=eh(o),h=eh(a);h>=1<<s+5;)c=new er(c&&c.array.length?[c]:[],n),s+=5;var p=t._tail,d=h<l?ec(t,a-1):h>l?new er([],n):p;if(p&&h>l&&u<o&&p.array.length){for(var y=c=es(c,n),g=s;g>5;g-=5){var v=l>>>g&31;y=y.array[v]=es(y.array[v],n)}y.array[l>>
vendor: 31,669 bytes, line 1
1>5&31]=p}if(a<o&&(d=d&&d.removeAfter(n,0,a)),u>=h)u-=h,a-=h,s=5,c=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h<l){for(f=0;c;){var _=u>>>s&31;if(_!==h>>>s&31)break;_&&(f+=(1<<s)*_),s-=5,c=c.array[_]}c&&u>i&&(c=c.removeBefore(n,s,u-f)),c&&h<l&&(c=c.removeAfter(n,s,h-f)),f&&(u-=f,a-=f)}return t.__ownerID?(t.size=a-u,t._origin=u,t._capacity=a,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):eo(u,a,s,c,d)}function el(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var u=r[o],a=d(u);a.size>i&&(i=a.size),g(u)||(a=a.map(function(t){return tf(t)})),n.push(a)}return i>t.size&&(t=t.setSize(i)),t2(t,e,n)}function eh(t){return t<32?0:t-1>>>5<<5}function ep(t){return null==t?eg():ed(t)?t:eg().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function ed(t){return tR(t)&&S(t)}function ey(t,e,r,n){var i=Object.create(ep.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function eg(){return u||(u=ey(tG(),eu()))}function ev(t,e,r){var n,i,o=t._map,u=t._list,a=o.get(e),s=void 0!==a;if(r===C){if(!s)return t;u.size>=32&&u.size>=2*o.size?(n=(i=u.filter(function(t,e){return void 0!==t&&a!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===u.size-1?u.pop():u.set(a,void 0))}else if(s){if(r===u.get(a)[1])return t;n=o,i=u.set(a,[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):ey(n,i)}function e_(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function em(t){this._iter=t,this.size=t.size}function eS(t){this._iter=t,this.size=t.size}function eb(t){this._iter=t,this.size=t.size}function ew(t){var e=eL(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=eF,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(2===e){var n=t.__iterator(e,r);return new P(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(+(1!==e),r)},e}function ek(t,e,r){var n=eL(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,C);return o===C?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(2,i);return new P(function(){var i=o.next();if(i.done)return i;var u=i.value,a=u[0];return j(n,a,e.call(r,u[1],a,t),i)})},n}function ex(t,e){var r=eL(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ew(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=eF,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 eE(t,e,r,n){var i=eL(t);return n&&(i.has=function(n){var i=t.get(n,C);return i!==C&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,C);return o!==C&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,a=0;return t.__iterate(function(t,o,s){if(e.call(r,t,o,s))return a++,i(t,n?o:a-1,u)},o),a},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),a=0;return new P(function(){for(;;){var o=u.next();if(o.done)return o;var s=o.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return j(i,n?c:a++,f,o)}})},i}function eC(t,e,r,n){var i,o=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=o:r|=0),R(e,r,o))return t;var u=L(e,o,0),a=L(r,o,o);if(u!=u||a!=a)return eC(t.toSeq().cacheResult(),e,r,n);var s=a-u;s==s&&(i=s<0?0:s);var c=eL(t);return c.size=0===i?i:t.size&&i||void 0,!n&&tn(t)&&i>=0&&(c.get=function(e,r){return(e=B(this,e))>=0&&e<i?t.get(e+u,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===i)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;return t.__iterate(function(t,r){if(!(s&&(s=a++<u)))return c++,!1!==e(t,n?r:c-1,o)&&c!==i}),c},c.__iteratorUncached=function(e,r){if(0!==i&&r)return this.cacheResult().__iterator(e,r);var o=0!==i&&t.__iterator(e,r),a=0,s=0;return new P(function(){for(;a++<u;)o.next();if(++s>i)return U();var t=o.next();return n||1===e?t:0===e?j(e,s-1,void 0,t):j(e,s-1,t.value[1],t)})},c}function eO(t,e,r,n){var i=eL(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,s=0;return t.__iterate(function(t,o,c){if(!(a&&(a=e.call(r,t,o,c))))return s++,i(t,n?o:s-1,u)}),s},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(2,o),s=!0,c=0;return new P(function(){var t,o,f;do{if((t=a.next()).done)if(n||1===i)return t;else if(0===i)return j(i,c++,void 0,t);else return j(i,c++,t.value[1],t);var l=t.value;o=l[0],f=l[1],s&&(s=e.call(r,f,o,u))}while(s);return 2===i?t:j(i,o,f,t)})},i}function eD(t,e,r){var n=eL(t);return n.__iterateUncached=function(n,i){var o=0,u=!1;return!function t(a,s){var c=this;a.__iterate(function(i,a){return(!e||s<e)&&g(i)?t(i,s+1):!1===n(i,r?a:o++,c)&&(u=!0),!u},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],a=0;return new P(function(){for(;o;){var t=o.next();if(!1!==t.done){o=u.pop();continue}var s=t.value;if(2===n&&(s=s[1]),!((!e||u.length<e)&&g(s)))return r?t:j(n,a++,s,t);u.push(o),o=s.__iterator(n,i)}return U()})},n}function eK(t,e,r){e||(e=eN);var n=v(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?X(o):_(t)?Y(o):Q(o)}function eI(t,e,r){if(e||(e=eN),!r)return t.reduce(function(t,r){return eM(e,t,r)?r:t});var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return eM(e,t[1],r[1])?r:t});return n&&n[0]}function eM(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function eA(t,e,r){var n=eL(t);return n.size=new Z(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},n.__iteratorUncached=function(t,n){var i=r.map(function(t){return t=h(t),W(n?t.reverse():t)}),o=0,u=!1;return new P(function(){var r;return(u||(u=(r=i.map(function(t){return t.next()})).some(function(t){return t.done})),u)?U():j(t,o++,e.apply(null,r.map(function(t){return t.value})))})},n}function eT(t,e){return tn(t)?e:t.constructor(e)}function eB(t){if(t!==Object(t))throw TypeError("Expected [K, V] tuple: "+t)}function ez(t){return tB(t.size),T(t)}function eR(t){return v(t)?p:_(t)?d:y}function eL(t){return Object.create((v(t)?X:_(t)?Y:Q).prototype)}function eF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function eN(t,e){return t>e?1:t<e?-1:0}function eq(t){var e=W(t);if(!e){if(!V(t))throw TypeError("Expected iterable or array-like: "+t);e=W(h(t))}return e}function eP(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(eW.bind(void 0,t))}catch(t){}})(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=tz(o)},i=n.prototype=Object.create(ej);return i.constructor=n,n}l(ep,tz),ep.of=function(){return this(arguments)},ep.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ep.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},ep.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):eg()},ep.prototype.set=function(t,e){return ev(this,t,e)},ep.prototype.remove=function(t){return ev(this,t,C)},ep.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ep.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},ep.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},ep.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ey(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},ep.isOrderedMap=ed,ep.prototype[x]=!0,ep.prototype[E]=ep.prototype.remove,l(e_,X),e_.prototype.get=function(t,e){return this._iter.get(t,e)},e_.prototype.has=function(t){return this._iter.has(t)},e_.prototype.valueSeq=function(){return this._iter.valueSeq()},e_.prototype.reverse=function(){var t=this,e=ex(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e_.prototype.map=function(t,e){var r=this,n=ek(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e_.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?ez(this):0,function(i){return t(i,e?--r:r++,n)}),e)},e_.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?ez(this):0;return new P(function(){var i=r.next();return i.done?i:j(t,e?--n:n++,i.value,i)})},e_.prototype[x]=!0,l(em,Y),em.prototype.includes=function(t){return this._iter.includes(t)},em.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},em.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value,e)})},l(eS,Q),eS.prototype.has=function(t){return this._iter.includes(t)},eS.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},eS.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){var e=r.next();return e.done?e:j(t,e.value,e.value,e)})},l(eb,X),eb.prototype.entrySeq=function(){return this._iter.toSeq()},eb.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){eB(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},eb.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){eB(n);var i=g(n);return j(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},em.prototype.cacheResult=e_.prototype.cacheResult=eS.prototype.cacheResult=eb.prototype.cacheResult=eF,l(eP,t_),eP.prototype.toString=function(){return this.__toString(eH(this)+" {","}")},eP.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},eP.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},eP.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=eU(this,tG()))},eP.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+eH(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:eU(this,r)},eP.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:eU(this,e)},eP.prototype.wasAltered=function(){return this._map.wasAltered()},eP.prototype.__iterator=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},eP.prototype.__iterate=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},eP.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?eU(this,e,t):(this.__ownerID=t,this._map=e,this)};var ej=eP.prototype;function eU(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function eH(t){return t._name||t.constructor.name||"Record"}function eW(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ty(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function eJ(t){return null==t?e$():eV(t)&&!S(t)?t:e$().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function eV(t){return!!(t&&t[eG])}ej[E]=ej.remove,ej.deleteIn=ej.removeIn=tF.removeIn,ej.merge=tF.merge,ej.mergeWith=tF.mergeWith,ej.mergeIn=tF.mergeIn,ej.mergeDeep=tF.mergeDeep,ej.mergeDeepWith=tF.mergeDeepWith,ej.mergeDeepIn=tF.mergeDeepIn,ej.setIn=tF.setIn,ej.update=tF.update,ej.updateIn=tF.updateIn,ej.withMutations=tF.withMutations,ej.asMutable=tF.asMutable,ej.asImmutable=tF.asImmutable,l(eJ,tS),eJ.of=function(){return this(arguments)},eJ.fromKeys=function(t){return this(p(t).keySeq())},eJ.prototype.toString=function(){return this.__toString("Set {","}")},eJ.prototype.has=function(t){return this._map.has(t)},eJ.prototype.add=function(t){return eY(this,this._map.set(t,!0))},eJ.prototype.remove=function(t){return eY(this,this._map.remove(t))},eJ.prototype.clear=function(){return eY(this,this._map.clear())},eJ.prototype.union=function(){var t=f.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)y(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},eJ.prototype.intersect=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},eJ.prototype.subtract=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},eJ.prototype.merge=function(){return this.union.apply(this,arguments)},eJ.prototype.mergeWith=function(t){var e=f.call(arguments,1);return this.union.apply(this,e)},eJ.prototype.sort=function(t){return eZ(eK(this,t))},eJ.prototype.sortBy=function(t,e){return eZ(eK(this,e,t))},eJ.prototype.wasAltered=function(){return this._map.wasAltered()},eJ.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},eJ.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},eJ.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)},eJ.isSet=eV;var eG="@@__IMMUTABLE_SET__@@",eX=eJ.prototype;function eY(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 eQ(t,e){var r=Object.create(eX);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e$(){return a||(a=eQ(tG()))}function eZ(t){return null==t?e3():e0(t)?t:e3().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function e0(t){return eV(t)&&S(t)}eX[eG]=!0,eX[E]=eX.remove,eX.mergeDeep=eX.merge,eX.mergeDeepWith=eX.mergeWith,eX.withMutations=tF.withMutations,eX.asMutable=tF.asMutable,eX.asImmutable=tF.asImmutable,eX.__empty=e$,eX.__make=eQ,l(eZ,eJ),eZ.of=function(){return this(arguments)},eZ.fromKeys=function(t){return this(p(t).keySeq())},eZ.prototype.toString=function(){return this.__toString("OrderedSet {","}")},eZ.isOrderedSet=e0;var e1=eZ.prototype;function e2(t,e){var r=Object.create(e1);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e3(){return s||(s=e2(eg()))}function e6(t){return null==t?e9():e5(t)?t:e9().unshiftAll(t)}function e5(t){return!!(t&&t[e8])}e1[x]=!0,e1.__empty=e3,e1.__make=e2,l(e6,tm),e6.of=function(){return this(arguments)},e6.prototype.toString=function(){return this.__toString("Stack [","]")},e6.prototype.get=function(t,e){var r=this._head;for(t=B(this,t);r&&t--;)r=r.next;return r?r.value:e},e6.prototype.peek=function(){return this._head&&this._head.value},e6.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):e4(t,e)},e6.prototype.pushAll=function(t){if(0===(t=d(t)).size)return this;tB(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):e4(e,r)},e6.prototype.pop=function(){return this.slice(1)},e6.prototype.unshift=function(){return this.push.apply(this,arguments)},e6.prototype.unshiftAll=function(t){return this.pushAll(t)},e6.prototype.shift=function(){return this.pop.apply(this,arguments)},e6.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):e9()},e6.prototype.slice=function(t,e){if(R(t,e,this.size))return this;var r,n=L(t,this.size,0);if(L(e,r=this.size,r)!==this.size)return tm.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):e4(i,o)},e6.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?e4(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},e6.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},e6.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new P(function(){if(n){var e=n.value;return n=n.next,j(t,r++,e)}return U()})},e6.isStack=e5;var e8="@@__IMMUTABLE_STACK__@@",e7=e6.prototype;function e4(t,e,r,n){var i=Object.create(e7);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function e9(){return c||(c=e4(0))}function rt(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}e7[e8]=!0,e7.withMutations=tF.withMutations,e7.asMutable=tF.asMutable,e7.asImmutable=tF.asImmutable,e7.wasAltered=tF.wasAltered,h.Iterator=P,rt(h,{toArray:function(){tB(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new em(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 e_(this,!0)},toMap:function(){return tz(this.toKeyedSeq())},toObject:function(){tB(this.size);var t={};return this.__iterate(function(e,r){("string"!=typeof r||"__proto__"!==r&&"constructor"!==r)&&(t[r]=e)}),t},toOrderedMap:function(){return ep(this.toKeyedSeq())},toOrderedSet:function(){return eZ(v(this)?this.valueSeq():this)},toSet:function(){return eJ(v(this)?this.valueSeq():this)},toSetSeq:function(){return new eS(this)},toSeq:function(){return _(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return e6(v(this)?this.valueSeq():this)},toList:function(){return t4(v(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(){var t=f.call(arguments,0);return eT(this,function(t,e){var r=v(t),n=[t].concat(e).map(function(t){return g(t)?r&&(t=p(t)):t=r?to(t):tu(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&v(i)||_(t)&&_(i))return i}var o=new Z(n);return r?o=o.toKeyedSeq():_(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}(this,t))},includes:function(t){return this.some(function(e){return th(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){tB(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 eT(this,eE(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return tB(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){tB(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(0)},map:function(t,e){return eT(this,ek(this,t,e))},reduce:function(t,e,r){var n,i;return tB(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 eT(this,ex(this,!0))},slice:function(t,e){return eT(this,eC(this,t,e,!0))},some:function(t,e){return!this.every(ro(t),e)},sort:function(t){return eT(this,eK(this,t))},values:function(){return this.__iterator(1)},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 T(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){var r,n;return r=this,n=tz().asMutable(),r.__iterate(function(i,o){n.update(t.call(e,i,o,r),0,function(t){return t+1})}),n.asImmutable()},equals:function(t){return tp(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Z(t._cache);var e=t.toSeq().map(ri).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(ro(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(z)},flatMap:function(t,e){var r,n;return eT(this,(r=this,n=eR(r),r.toSeq().map(function(i,o){return n(t.call(e,i,o,r))}).flatten(!0)))},flatten:function(t){return eT(this,eD(this,t,!0))},fromEntrySeq:function(){return new eb(this)},get:function(t,e){return this.find(function(e,r){return th(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=eq(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,C):C)===C)return e}return n},groupBy:function(t,e){var r,n,i,o;return r=this,n=v(r),i=(S(r)?ep():tz()).asMutable(),r.__iterate(function(o,u){i.update(t.call(e,o,u,r),function(t){return(t=t||[]).push(n?[u,o]:o),t})}),o=eR(r),i.map(function(t){return eT(r,o(t))})},has:function(t){return this.get(t,C)!==C},hasIn:function(t){return this.getIn(t,C)!==C},isSubset:function(t){return t="function"==typeof t.includes?t:h(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:h(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return th(e,t)})},keySeq:function(){return this.toSeq().map(rn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return eI(this,t)},maxBy:function(t,e){return eI(this,e,t)},min:function(t){return eI(this,t?ru(t):rc)},minBy:function(t,e){return eI(this,e?ru(e):rc,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return eT(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return eT(this,eO(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(ro(t),e)},sortBy:function(t,e){return eT(this,eK(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return eT(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){var r,n;return eT(this,(r=this,(n=eL(r)).__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return r.__iterate(function(r,i,a){return t.call(e,r,i,a)&&++u&&n(r,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=r.__iterator(2,i),a=!0;return new P(function(){if(!a)return U();var r=u.next();if(r.done)return r;var i=r.value,s=i[0],c=i[1];return t.call(e,c,s,o)?2===n?r:j(n,s,c,r):(a=!1,U())})},n))},takeUntil:function(t,e){return this.takeWhile(ro(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,r,n=S(t),i=v(t),o=+!!n;return e=t.__iterate(i?n?function(t,e){o=31*o+rf(tk(t),tk(e))|0}:function(t,e){o=o+rf(tk(t),tk(e))|0}:n?function(t){o=31*o+tk(t)|0}:function(t){o=o+tk(t)|0}),r=tb(r=o,0xcc9e2d51),r=tb(r<<15|r>>>-15,0x1b873593),r=((r=tb(r<<13|r>>>-13,5))+0xe6546b64|0)^e,r=tb(r^r>>>16,0x85ebca6b),r=tw((r=tb(r^r>>>13,0xc2b2ae35))^r>>>16)}(this))}});var re=h.prototype;re[b]=!0,re[q]=re.values,re.__toJS=re.toArray,re.__toStringMapper=ra,re.inspect=re.toSource=function(){return this.toString()},re.chain=re.flatMap,re.contains=re.includes,rt(p,{flip:function(){return eT(this,ew(this))},mapEntries:function(t,e){var r=this,n=0;return eT(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return eT(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var rr=p.prototype;function rn(t,e){return e}function ri(t,e){return[e,t]}function ro(t){return function(){return!t.apply(this,arguments)}}function ru(t){return function(){return-t.apply(this,arguments)}}function ra(t){return"string"==typeof t?JSON.stringify(t):String(t)}function rs(){return A(arguments)}function rc(t,e){return t<e?1:t>e?-1:0}function rf(t,e){return t^e+0x9e3779b9+(t<<6)+(t>>2)}return rr[w]=!0,rr[q]=re.entries,rr.__toJS=re.toObject,rr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+ra(t)},rt(d,{toKeyedSeq:function(){return new e_(this,!1)},filter:function(t,e){return eT(this,eE(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.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return eT(this,ex(this,!1))},slice:function(t,e){return eT(this,eC(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=L(t,t<0?this.count():this.size,0);var n=this.slice(0,t);return eT(this,1===r?n:n.concat(A(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return eT(this,eD(this,t,!1))},get:function(t,e){return(t=B(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=B(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){var e,r;return eT(this,(e=this,(r=eL(e)).size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return e.__iterate(function(e,n){return(!o||!1!==r(t,o++,i))&&!1!==r(e,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=e.__iterator(1,n),u=0;return new P(function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?j(r,u++,t):j(r,u++,i.value,i)})},r))},interleave:function(){var t=[this].concat(A(arguments)),e=eA(this.toSeq(),Y.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),eT(this,r)},keySeq:function(){return tg(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return eT(this,eO(this,t,e,!1))},zip:function(){var t=[this].concat(A(arguments));return eT(this,eA(this,rs,t))},zipWith:function(t){var e=A(arguments);return e[0]=this,eT(this,eA(this,t,e))}}),d.prototype[k]=!0,d.prototype[x]=!0,rt(y,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),y.prototype.has=re.includes,y.prototype.contains=y.prototype.includes,rt(X,p.prototype),rt(Y,d.prototype),rt(Q,y.prototype),rt(t_,p.prototype),rt(tm,d.prototype),rt(tS,y.prototype),{Iterable:h,Seq:G,Collection:tv,Map:tz,OrderedMap:ep,List:t4,Stack:e6,Set:eJ,OrderedSet:eZ,Record:eP,Range:tg,Repeat:td,is:th,fromJS:tf}}()},200867:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(632692),u=r(756301),a=r(610075),s=r(976204),c=r(822428),f=c.OrderedSet,l=c.Record,h=c.Stack,p=c.OrderedMap,d=c.List,y=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:h(),selection:null,treeMap:null,undoStack:h()}),g=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,r){return e.createWithContent(u.createFromText(t),r)},e.createWithContent=function(t,r){if(0===t.getBlockMap().count())return e.createEmpty(r);var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:h(),redoStack:h(),decorator:r||null,selection:s.createEmpty(n)})},e.create=function(t){var r=t.currentContent,i=t.decorator;return new e(new y(n({},t,{treeMap:_(r,i),directionMap:a.getDirectionMap(r)})))},e.fromJS=function(t){return new e(new y(n({},t,{directionMap:null!=t.directionMap?p(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?f(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?u.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?h(t.redoStack.map(function(t){return u.fromJS(t)})):t.redoStack,selection:null!=t.selection?new s(t.selection):t.selection,treeMap:null!=t.treeMap?p(t.treeMap).map(function(t){return d(t).map(function(t){return o.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?h(t.undoStack.map(function(t){return u.fromJS(t)})):t.undoStack,currentContent:u.fromJS(t.currentContent)})))},e.set=function(t,r){return new e(t.getImmutable().withMutations(function(e){var n,i,u,a,s,c,f=e.get("decorator"),l=f;null===r.decorator?l=null:r.decorator&&(l=r.decorator);var h=r.currentContent||t.getCurrentContent();if(l!==f){var p,d,y,g,v,m,S=e.get("treeMap");m=l&&f?(p=h,d=h.getBlockMap(),y=S,g=l,v=f,y.merge(d.toSeq().filter(function(t){return g.getDecorations(t,p)!==v.getDecorations(t,p)}).map(function(t){return o.generate(p,t,g)}))):_(h,l),e.merge({decorator:l,treeMap:m,nativelyRenderedContent:null});return}h!==t.getCurrentContent()&&e.set("treeMap",(n=t,i=h.getBlockMap(),u=h.getEntity
1Map(),a=l,c=(s=n.getCurrentContent().set("entityMap",u)).getBlockMap(),n.getImmutable().get("treeMap").merge(i.toSeq().filter(function(t,e){return t!==c.get(e)}).map(function(t){return o.generate(s,t,a)})))),e.merge(r)}))};var t=e.prototype;function e(t){i(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})},t.getCurrentInlineStyle=function(){var t,e,r,n,i,o,u,a,s,c,f=this.getInlineStyleOverride();if(null!=f)return f;var l=this.getCurrentContent(),h=this.getSelection();return h.isCollapsed()?(t=l,r=(e=h).getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r),n>0?i.getInlineStyleAt(n-1):i.getLength()?i.getInlineStyleAt(0):m(t,r)):(o=l,a=(u=h).getStartKey(),s=u.getStartOffset(),s<(c=o.getBlockForKey(a)).getLength()?c.getInlineStyleAt(s):s>0?c.getInlineStyleAt(s-1):m(o,a))},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return v(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),v(t,e,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),i=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){var i,o,u=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(t.getCurrentContent()===r)return t;var s=a.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:s,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:u,inlineStyleOverride:null});var c=t.getSelection(),f=t.getCurrentContent(),l=t.getUndoStack(),p=r;c!==f.getSelectionAfter()||(i=t,(o=n)!==i.getLastChangeType()||"insert-characters"!==o&&"backspace-character"!==o&&"delete-character"!==o)?(l=l.push(f),p=p.set("selectionBefore",c)):("insert-characters"===n||"backspace-character"===n||"delete-character"===n)&&(p=p.set("selectionBefore",f.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var y={currentContent:p,directionMap:s,undoStack:l,redoStack:h(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:u,inlineStyleOverride:d};return e.set(t,y)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:r.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.get
vendor: 11,560 bytes, line 1
1SelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function v(t,e,r){return g.set(t,{selection:e,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function _(t,e){return t.getBlockMap().map(function(r){return o.generate(t,r,e)}).toOrderedMap()}function m(t,e){var r=t.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):f()}t.exports=g},202775:(t,e,r)=>{"use strict";var n=r(545485),i=r(709869),o=r(774061),u=r(563298),a=r(108037),s=r(893347),c=r(822428),f=r(17304),l=c.List,h=c.Repeat,p=s("draft_tree_data_support"),d=p?i:n;t.exports={processHTML:function(t,e){return o(t,a,e)},processText:function(t,e,r){return t.reduce(function(t,n,i){n=f(n);var o=u(),a={key:o,type:r,text:n,characterList:l(h(e,n.length))};if(p&&0!==i){var s=i-1;a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},a,{prevSibling:(t[s]=t[s].merge({nextSibling:o})).getKey()})}return t.push(new d(a)),t},[])}}},207650:(t,e,r)=>{"use strict";var n=r(200867),i=r(19763),o=r(631677),u=r(36529);t.exports=function(t){var e=u(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),u=e.getAnchorOffset(),a=r.getBlockForKey(n).getText()[u];return o(t,a?i.getUTF16Length(a,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")}},207760:(t,e,r)=>{"use strict";var n=r(540317),i=r(133918),o=r(380116),u=r(453899),a=r(295763);t.exports=function(t,e){var r=a(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 o(t,null,(n=i(n)).endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},208189:(t,e,r)=>{"use strict";var n=r(291009);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},217663:(t,e,r)=>{"use strict";var n=r(19763),i=r(822428).OrderedSet,o=n.substr,u=i();t.exports=function(t,e){var r=Array(t.length).fill(u);return e&&e.forEach(function(e){for(var n=o(t,0,e.offset).length,i=n+o(t,e.offset,e.length).length;n<i;)r[n]=r[n].add(e.style),n++}),r}},218621:(t,e,r)=>{"use strict";r(249973),t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),u=i,a=0;if(e>o){var s=n.getKeyBefore(i);null==s?u=i:(u=s,a=n.getBlockForKey(s).getText().length)}else a=o-e;return r.merge({focusKey:u,focusOffset:a,isBackward:!0})}},219784:(t,e,r)=>{"use strict";var n=r(251954),i=r(19763).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(o,u){var a=t.getText(),s=t.getEntityAt(o);r.push({offset:i(a.slice(0,o)),length:i(a.slice(o,u)),key:Number(e[n.stringify(s)])})}),r}},220572:t=>{"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},223808:(t,e,r)=>{"use strict";var n=r(48339),i=r(764243),o=r(582966);o.List;var u=o.Map,a=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},s=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){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},f=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},l=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},h=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};t.exports=function(t,e){if(e.isCollapsed())return t;var r,o,p=t.getBlockMap(),d=e.getStartKey(),y=e.getStartOffset(),g=e.getEndKey(),v=e.getEndOffset(),_=p.get(d),m=p.get(g),S=_ instanceof n,b=[];if(S){var w=m.getChildKeys(),k=s(g,p);m.getNextSiblingKey()&&(b=b.concat(k)),w.isEmpty()||(b=b.concat(k.concat([g]))),b=b.concat(s(i(m,p),p))}o=_===m?h(_.getCharacterList(),y,v):_.getCharacterList().slice(0,y).concat(m.getCharacterList().slice(v));var x=_.merge({text:_.getText().slice(0,y)+m.getText().slice(v),characterList:o}),E=S&&0===y&&0===v&&m.getParentKey()===d&&null==m.getPrevSiblingKey()?u([[d,null]]):p.toSeq().skipUntil(function(t,e){return e===d}).takeUntil(function(t,e){return e===g}).filter(function(t,e){return -1===b.indexOf(e)}).concat(u([[g,null]])).map(function(t,e){return e===d?x:null}),C=p.merge(E).filter(function(t){return!!t});return S&&_!==m&&(C=(r=C).withMutations(function(t){if(a(_.getKey(),t,function(e){return e.merge({nextSibling:f(e,t,p),prevSibling:l(e,t,p)})}),a(m.getKey(),t,function(e){return e.merge({nextSibling:f(e,t,p),prevSibling:l(e,t,p)})}),s(_.getKey(),p).forEach(function(e){return a(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:f(e,t,p),prevSibling:l(e,t,p)})})}),a(_.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:_.getPrevSiblingKey()})}),a(_.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:f(e,t,p)})}),a(m.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:l(e,t,p)})}),a(m.getPrevSiblingKey(),t,function(t){return t.merge({nextSibling:m.getNextSiblingKey()})}),s(m.getKey(),p).forEach(function(e){a(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:f(e,t,p),prevSibling:l(e,t,p)})})}),c(m,p).forEach(function(e){return a(e,t,function(e){return e.merge({nextSibling:f(e,t,p),prevSibling:l(e,t,p)})})}),null==r.get(_.getKey())&&null!=r.get(m.getKey())&&m.getParentKey()===_.getKey()&&null==m.getPrevSiblingKey()){var e=_.getPrevSiblingKey();a(m.getKey(),t,function(t){return t.merge({prevSibling:e})}),a(e,t,function(t){return t.merge({nextSibling:m.getKey()})});var n=e?r.get(e):null,i=n?n.getParentKey():null;if(_.getChildKeys().forEach(function(e){a(e,t,function(t){return t.merge({parent:i})})}),null!=i){var o=r.get(i);a(i,t,function(t){return t.merge({children:o.getChildKeys().concat(_.getChildKeys())})})}a(_.getChildKeys().find(function(t){return null===r.get(t).getNextSiblingKey()}),t,function(t){return t.merge({nextSibling:_.getNextSiblingKey()})})}})),t.merge({blockMap:C,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:y,focusKey:d,focusOffset:y,isBackward:!1})})}},226421:(t,e,r)=>{"use strict";var n=r(942583);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){u(t,e,r[e])})}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(180678),s=r(49604),c=r(621462),f=r(409850),l=r(477996),h=r(513876),p=r(80007),d=r(797078),y=r(822428),g=r(843653),v=r(989926);y.List;var _=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},m=function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()},S=function(t,e,r){var n=[],i=!0,o=!1,u=void 0;try{for(var a,f=r.reverse()[Symbol.iterator]();!(i=(a=f.next()).done);i=!0){var l=a.value;if(l.type!==e)break;n.push(l)}}catch(t){o=!0,u=t}finally{try{i||null==f.return||f.return()}finally{if(o)throw u}}r.splice(r.indexOf(n[0]),n.length+1);var h=n.reverse(),p=h[0].key;return r.push(c.cloneElement(t,{key:"".concat(p,"-wrap"),"data-offset-key":s.encode(p,0,0)},h)),r},b=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},w=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},k=function(t,e,r,n,i,u){var a={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:u},s=n(t);return s&&(a.className=s),void 0!==i.customEditable&&(a=o({},a,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),a};t.exports=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return u(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",c.createRef()),e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,i=e.tree,o=!r.getChildKeys().isEmpty(),u=r!==t.block||i!==t.tree||n!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection;return o||u},r.componentDidMount=function(){var t,e=this.props.selection,r=e.getEndKey();if(e.getHasFocus()&&r===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var i=l.getScrollParent(n),o=p(i);if(i===window){var u=h(n);(t=u.y+u.height-d().height)>0&&window.scrollTo(o.x,o.y+t+10)}else v(n)||g(!1),(t=n.offsetHeight+n.offsetTop-(i.offsetHeight+o.y))>0&&f.setTop(i,f.getTop(i)+t+10)}}},r.render=function(){var t=this,r=this.props,n=r.block,u=r.blockRenderMap,f=r.blockRendererFn,l=r.blockStyleFn,h=r.contentState,p=r.decorator,d=r.editorKey,y=r.editorState,g=r.customStyleFn,v=r.customStyleMap,x=r.direction,E=r.forceSelection,C=r.selection,O=r.tree,D=null;n.children.size&&(D=n.children.reduce(function(r,n){var i=s.encode(n,0,0),a=h.getBlockForKey(n),p=w(a,f),g=p.CustomComponent||e,v=b(a,u),_=v.Element,x=v.wrapperTemplate,E=k(a,d,i,l,p,null),C=o({},t.props,{tree:y.getBlockTree(n),blockProps:p.customProps,offsetKey:i,block:a});return r.push(c.createElement(_,E,c.createElement(g,C))),!x||m(a,h)||S(x,_,r),r},[]));var K=n.getKey(),I=s.encode(K,0,0),M=w(n,f),A=M.CustomComponent,T=null!=A?c.createElement(A,i({},this.props,{tree:y.getBlockTree(K),blockProps:M.customProps,offsetKey:I,block:n})):c.createElement(a,{block:n,children:D,contentState:h,customStyleFn:g,customStyleMap:v,decorator:p,direction:x,forceSelection:E,hasSelection:_(C,K),selection:C,tree:O});if(n.getParentKey())return T;var B=b(n,u).Element,z=k(n,d,I,l,M,this.wrapperRef);return c.createElement(B,z,T)},e}(c.Component)},231169:(t,e,r)=>{"use strict";var n=r(296682);t.exports=function(t){var e=n(t),r=0,i=0,o=0,u=0;if(e.length){if(e.length>1&&0===e[0].width){var a=e[1];r=a.top,i=a.right,o=a.bottom,u=a.left}else{var s=e[0];r=s.top,i=s.right,o=s.bottom,u=s.left}for(var c=1;c<e.length;c++){var f=e[c];0!==f.height&&0!==f.width&&(r=Math.min(r,f.top),i=Math.max(i,f.right),o=Math.max(o,f.bottom),u=Math.min(u,f.left))}}
1return{top:r,right:i,bottom:o,left:u,width:i-u,height:o-r}}},233584:(t,e,r)=>{"use strict";var n=r(270149),i=r(466855),o=r(847132),u=r(610843),a=r(994324),s=r(504255).setDraftEditorSelection;t.exports=function(t){function e(){for(var e,r,n,i,o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(u))||this),i=void 0,(n="leaf")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r._setSelection=function(){var t,e=this.props.selection;if(null!=e&&e.getHasFocus()){var r=this.props,n=r.block,i=r.start,o=r.text,c=n.getKey(),f=i+o.length;if(e.hasEdgeWithin(c,i,f)){var l=this.leaf;l||u(!1);var h=l.firstChild;h||u(!1),h.nodeType===Node.TEXT_NODE?t=h:a(h)?t=l:(t=h.firstChild)||u(!1),s(e,t,c,i,f)}}},r.shouldComponentUpdate=function(t){var e=this.leaf;return e||u(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var u=this.props,a=u.customStyleMap,s=u.customStyleFn,c=u.offsetKey,f=u.styleSet,l=f.reduce(function(t,e){var r={},i=a[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),n(t,i,r)},{});return s&&(l=n(l,s(f,e))),o.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:l},o.createElement(i,null,r))},e}(o.Component)},239789:(t,e,r)=>{"use strict";var n=r(693122);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,u=r.focusNode,a=r.focusOffset;return 0===r.rangeCount||null==i||null==u?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,i,o,u,a)}},247096:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317),o=r(619338),u=r(64403),a=r(9237),s=r(826155);t.exports=function(t,e){var r,c=t._latestEditorState,f=c.getSelection(),l=e.target;if(f.isCollapsed())return void e.preventDefault();s(l)&&(r=a(o.getScrollParent(l)));var h=u(c);t.setClipboard(h),t.setMode("cut"),setTimeout(function(){var e,o;t.restoreEditorDOM(r),t.exitCurrentMode(),t.update((e=c,o=n.removeRange(e.getCurrentContent(),e.getSelection(),"forward"),i.push(e,o,"remove-range")))},0)}},251954:t=>{"use strict";t.exports={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}}},255476:t=>{"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},262691:(t,e,r)=>{"use strict";var n=r(902177),i=r(582966).Map;function o(t,e,r,o){var u=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),f=e.getEndOffset(),l=u.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===c}).concat(i([[c,u.get(c)]])).map(function(t,e){a===c?(i=s,u=f):(i=e===a?s:0,u=e===c?f:t.getLength());for(var i,u,l,h=t.getCharacterList();i<u;)l=h.get(i),h=h.set(i,o?n.applyStyle(l,r):n.removeStyle(l,r)),i++;return t.set("characterList",h)});return t.merge({blockMap:u.merge(l),selectionBefore:e,selectionAfter:e})}t.exports={add:function(t,e,r){return o(t,e,r,!0)},remove:function(t,e,r){return o(t,e,r,!1)}}},267922:(t,e,r)=>{"use strict";var n=r(828525);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"BR"===t.nodeName}},269429:(t,e,r)=>{"use strict";var n=r(540317),i=r(12560),o=r(796163);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!t.props.preserveSelectionOnBlur&&o(r)===r.body){var u=r.defaultView.getSelection(),a=t.editor;1===u.rangeCount&&i(a,u.anchorNode)&&i(a,u.focusNode)&&u.removeAllRanges()}var s=t._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var f=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(n.acceptSelection(s,f))}}},270268:(t,e,r)=>{"use strict";var n=r(540317),i=r(462619);t.exports=function(t,e){var r=t._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var u=o.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),i.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,u)):t.update(n.acceptSelection(r,u))}}},270408:t=>{"use strict";
1t.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){return i===t.get("start")&&(o=!0,!0)})}),o}},277881:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(621462),u=r(184733),a=r(843653),s=r(828525),c=u.isBrowser("IE <= 11");t.exports=function(t){function e(e){var r;return i(n(r=t.call(this,e)||this),"_forceFlag",void 0),i(n(r),"_node",void 0),r._forceFlag=!1,r}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this._node,r=""===t.children;return(s(e)||a(!1),r)?c?"\n"!==e.textContent:"BR"!==e.tagName:e.textContent!==t.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var t,e,r=this;return""===this.props.children?this._forceFlag?(t=function(t){return r._node=t},c?o.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:t})):(e=function(t){return r._node=t},c?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return r._node=t}},this.props.children)},e}(o.Component)},289254:(t,e,r)=>{"use strict";var n=r(942583);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(226421),u=r(49604),a=r(621462),s=r(729251);t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var u=e.getCurrentContent(),a=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||u!==a||s!==c||r.mustForceSelection()},r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,f=t.customStyleFn,l=t.editorState,h=t.editorKey,p=t.textDirectionality,d=l.getCurrentContent(),y=l.getSelection(),g=l.mustForceSelection(),v=l.getDecorator(),_=s(l.getDirectionMap()),m=d.getBlocksAsArray()[0],S=[],b=m;b;){var w=b.getKey(),k={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:d,customStyleFn:f,customStyleMap:c,decorator:v,editorKey:h,editorState:l,forceSelection:g,selection:y,block:b,direction:p||_.get(w),tree:l.getBlockTree(w)},x=(e.get(b.getType())||e.get("unstyled")).wrapper;S.push({block:a.createElement(o,i({key:w},k)),wrapperTemplate:x,key:w,offsetKey:u.encode(w,0,0)});var E=b.getNextSiblingKey();b=E?d.getBlockForKey(E):null}for(var C=[],O=0;O<S.length;){var D=S[O];if(D.wrapperTemplate){var K=[];do K.push(S[O].block),O++;while(O<S.length&&S[O].wrapperTemplate===D.wrapperTemplate);var I=a.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},K);C.push(I)}else C.push(D.block),O++}return a.createElement("div",{"data-contents":"true"},C)},e}(a.Component)},290884:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e;return"undefined"!=typeof DOMParser?(null===(e=new DOMParser().parseFromString(t,"text/html"))||null===e.body)&&(e=r(t)):e=r(t),e.body};var r=function(t){var e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,e}},292506:(t,e,r)=>{"use strict";var n=r(350418).notEmptyKey;function i(t,e){return n(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){if(e.isCollapsed()){var r,n=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(n).getEntityAt(o-1))!==t.getBlockForKey(n).getEntityAt(o)?null:i(t.getEntity
vendor: 25,892 bytes, line 1
1Map(),r):null}var u=e.getStartKey(),a=e.getStartOffset(),s=t.getBlockForKey(u);return r=a===s.getLength()?null:s.getEntityAt(a),i(t.getEntityMap(),r)}},293310:(t,e,r)=>{"use strict";var n=r(540317);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})}},295763:(t,e,r)=>{"use strict";var n=r(791245),i=r(625937)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),u=t.getCurrentContent(),a=o,s=o.getAnchorKey(),c=o.getFocusKey(),f=u.getBlockForKey(s);if(i&&"forward"===r&&s!==c)return u;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return u;if(i&&o.getAnchorOffset()===u.getBlockForKey(s).getLength()){var l=u.getBlockForKey(f.nextSibling);if(!l||0===l.getLength())return u}}else if(t.isSelectionAtStartOfContent())return u;if((a=e(t))===o)return u}return n.removeRange(u,a,r)}},296682:(t,e,r)=>{"use strict";var n=r(462619),i=r(610843);t.exports=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var o,u=n===t.commonAncestorContainer;u?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a=Array.from(e.getClientRects());if(r.push(a),u)return r.reverse(),(o=[]).concat.apply(o,r);e.setEndBefore(n)}i(!1)}:function(t){return Array.from(t.getClientRects())}},296979:(t,e,r)=>{"use strict";var n=r(380116);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,u=r.focusNode,a=r.focusOffset;return 0===r.rangeCount||null==i||null==u?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,i,o,u,a)}},299770:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},308907:(t,e,r)=>{"use strict";var n=r(617432),i=r(582966),o=r(610843),u=r(627394),a=(0,i.Map)(),s=u();function c(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var f={getLastCreatedEntityKey:function(){return c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(t,e,r){return c("DraftEntity.create","contentState.createEntity"),f.__create(t,e,r)},add:function(t){return c("DraftEntity.add","contentState.addEntity"),f.__add(t)},get:function(t){return c("DraftEntity.get","contentState.getEntity"),f.__get(t)},__getAll:function(){return a},__loadWithEntities:function(t){a=t,s=u()},mergeData:function(t,e){return c("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(t,e)},replaceData:function(t,e){return c("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return s},__create:function(t,e,r){return f.__add(new n({type:t,mutability:e,data:r||{}}))},__add:function(t){return s=u(),a=a.set(s,t),s},__get:function(t){var e=a.get(t);return e||o(!1),e},__mergeData:function(t,e){var r=f.__get(t),n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},r.getData(),e),i=r.set("data",n);return a=a.set(t,i),i},__replaceData:function(t,e){var r=f.__get(t).set("data",e);return a=a.set(t,r),r}};t.exports=f},312246:(t,e,r)=>{"use strict";var n=r(621462),i=r(696932);t.exports=(0,r(822428).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:n.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}})},312326: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}},315789:(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(462619),o=r(599131),u=r(569230),a=r(582966),s=r(610843),c=r(222813),f=a.Map,l={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},h=i.isBrowser("IE <= 11");t.exports=function(){function t(t){var e=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=t,this.mutations=f();var r=u(t);r.MutationObserver&&!h?this.observer=new r.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,l):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=f(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return h?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";else if(""!==r.textContent)return r.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(o(t.target));this.mutations=this.mutations.set(r,e)}},t}()},323975:(t,e,r)=>{"use strict";r(454663),t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),u=t.getCurrentContent(),a=i;return e>u.getBlockForKey(i).getText().length-o?(a=u.getKeyAfter(i),r=0):r=o+e,n.merge({focusKey:a,focusOffset:r})}},325291:(t,e,r)=>{"use strict";var n=r(822428),i=n.Map,o=n.OrderedSet,u=n.Record,a=o(),s={style:a,entity:null},c=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,r){var n=t.set("style",t.getStyle().add(r));return e.create(n)},e.removeStyle=function(t,r){var n=t.set("style",t.getStyle().remove(r));return e.create(n)},e.applyEntity=function(t,r){var n=t.getEntity()===r?t:t.set("entity",r);return e.create(n)},e.create=function(t){if(!t)return f;var r=i({style:a,entity:null}).merge(t),n=l.get(r);if(n)return n;var o=new e(r);return l=l.set(r,o),o},e.fromJS=function(t){var r=t.style,n=t.entity;return new e({style:Array.isArray(r)?o(r):r,entity:Array.isArray(n)?o(n):n})},e}(u(s)),f=new c,l=i([[i(s),f]]);c.EMPTY=f,t.exports=c},333887:t=>{"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&t.nodeType===Node.ELEMENT_NODE}},339731:(t,e,r)=>{"use strict";var n=r(694279),i=r(79257);t.exports=function(t,e){var r=e.getStartKey(),o=e.getStartOffset(),u=e.getEndKey(),a=e.getEndOffset(),s=i(t,e).getBlockMap(),c=s.keySeq(),f=c.indexOf(r),l=c.indexOf(u)+1;return n(s.slice(f,l).map(function(t,e){var n=t.getText(),i=t.getCharacterList();return r===u?t.merge({text:n.slice(o,a),characterList:i.slice(o,a)}):e===r?t.merge({text:n.slice(o),characterList:i.slice(o)}):e===u?t.merge({text:n.slice(0,a),characterList:i.slice(0,a)}):t}))}},347555:(t,e,r)=>{"use strict";var n=r(270149);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(233584),u=r(696082),a=r(847132),s=r(208252),c=r(619338),f=r(98582),l=r(131667),h=r(783798),p=r(981778),d=r(9237),y=r(451356),g=r(610843),v=r(725224),_=r(222813),m=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e};t.exports=function(t){function e(){for(var e,r,n,i,o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(u))||this),i=void 0,(n="_node")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var t,e=this.props.selection,r=e.getEndKey();if(e.getHasFocus()&&r===this.props.block.getKey()){var n=this._node;if(null!=n){var i=c.getScrollParent(n),o=d(i);if(i===window){var u=p(n);(t=u.y+u.height-y().height)>0&&window.scrollTo(o.x,o.y+t+10)}else v(n)||g(!1),(t=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&s.setTop(i,s.getTop(i)+t+10)}}}},r._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),s=this.props.tree.size-1,c=m(this.props.selection,r);return this.props.tree.map(function(h,p){var d=h.get("leaves");if(0===d.size)return null;var y=d.size-1,g=d.map(function(i,f){var l=u.encode(r,p,f),h=i.get("start"),d=i.get("end");return a.createElement(o,{key:l,offsetKey:l,block:e,start:h,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(h,d),styleSet:e.getInlineStyleAt(h),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:p===s&&f===y})}).toArray(),v=h.get("decoratorKey");if(null==v||!t.props.decorator)return g;var m=_(t.props.decorator),S=m.getComponentForKey(v);if(!S)return g;var b=m.getPropsForKey(v),w=u.encode(r,p,0),k=d.first().get("start"),x=d.last().get("end"),E=n.slice(k,x),C=e.getEntityAt(h.get("start")),O=l.getHTMLDirIfDifferent(f.getDirection(E),t.props.direction),D={contentState:t.props.contentState,decoratedText:E,dir:O,start:k,end:x,blockKey:r,entityKey:C,offsetKey:w};return a.createElement(S,i({},b,D,{key:w}),g)}).toArray()},r.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,i=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return a.createElement("div",{"data-offset-key":n,className:i,ref:function(e){return t._node=e}},this._renderChildren())},e}(a.Component)},350418:t=>{"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},354625:(t,e,r)=>{"use strict";var n=r(951144),i=r(604433),o=r(184733),u=r(424866),a=r(891489),s=r(574148),c=r(843653),f=r(828525),l=o.isBrowser("IE");function h(t,e){for(var r=t,n=r;r;)if(f(r)&&n.hasAttribute("contenteditable"))return function(t,e){if(!t)return"[empty]";var r=function t(e,r){var n=void 0!==r?r(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return s(e).createTextNode("[text "+i+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var u=e.childNodes,a=0;a<u.length;a++)o.appendChild(t(u[a],r));return o}(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(f(r)||c(!1),r.outerHTML)}(r,e);else n=r=r.parentNode;return"Could not find contentEditable parent of node"}function p(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function d(t,e,r,n){var o=a();if(t.extend&&null!=e&&u(o,e)){r>p(e)&&i.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(u){throw i.logSelectionStateFailure({anonymizedDom:h(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:s,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 y(t,e,r,o){var u=s(e).createRange();if(r>p(e)&&(i.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),u.setStart(e,r),l)try{t.addRange(u)}catch(t){}else t.addRange(u)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=s(e);if(u(o.documentElement,e)){var a=o.defaultView.getSelection(),c=t.getAnchorKey(),f=t.getAnchorOffset(),l=t.getFocusKey(),h=t.getFocusOffset(),p=t.getIsBackward();if(!a.extend&&p){var g=c,v=f;c=l,f=h,l=g,h=v,p=!1}var _=c===r&&n<=f&&i>=f,m=l===r&&n<=h&&i>=h;if(_&&m){a.removeAllRanges(),y(a,e,f-n,t),d(a,e,h-n,t);return}if(p){if(m&&(a.removeAllRanges(),y(a,e,h-n,t)),_){var S=a.focusNode,b=a.focusOffset;a.removeAllRanges(),y(a,e,f-n,t),d(a,S,b,t)}}else _&&(a.removeAllRanges(),y(a,e,f-n,t)),m&&d(a,e,h-n,t)}},addFocusToSelection:d}},356554:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},359387:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o,u=r(902177),a=r(742315),s=r(48339),c=r(897716),f=r(308907),l=r(865425),h=r(783798),p=r(26744),d=r(692471),y=r(625937),g=r(582966),v=g.List,_=g.Map,m=g.OrderedSet,S=r(875299),b=r(994324),w=r(725224),k=r(845631),x=y("draft_tree_data_support"),E=RegExp("\r","g"),C=RegExp("\n","g"),O=RegExp("^\n","g"),D=RegExp(" ","g"),K=RegExp(" ?","g"),I=RegExp("​?","g"),M=["bold","bolder","500","600","700","800","900"],A=["light","lighter","normal","100","200","300","400"],T=["className","href","rel","target","title"],B=["alt","className","height","src","width"],z=(i(o={},h("public/DraftStyleDefault/depth0"),0),i(o,h("public/DraftStyleDefault/depth1"),1),i(o,h("public/DraftStyleDefault/depth2"),2),i(o,h("public/DraftStyleDefault/depth3"),3),i(o,h("public/DraftStyleDefault/depth4"),4),o),R=_({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),L=function(t){var e={};return t.mapKeys(function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach(function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)})}),_(e)},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(z).some(function(r){t.classList.contains(r)&&(e=z[r])}),e},N=function(t){if(!S(t)||!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new l(t.href),!0}catch(t){return!1}},q=function(t,e){if(!w(t))return e;var r=t.style.fontWeight,n=t.style.fontStyle,i=t.style.textDecoration;return e.withMutations(function(t){M.indexOf(r)>=0?t.add("BOLD"):A.indexOf(r)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},P=function(t){return"ul"===t||"ol"===t},j=function(){function t(t,e){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",f),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=f,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],m())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(x?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n({key:t.key||p(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var i,o=t[n],u=o.nodeName.toLowerCase();if("body"===u||P(u)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;P(u)&&(this.wrapper=u,P(s)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),e)),this.currentDepth=a,this.wrapper=s;continue}var c=this.blockTypeMap.get(u);if(void 0!==c){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var f=this.currentDepth,l=this.wrapper;this.wrapper="pre"===u?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(u,this.wrapper)||c[0]||"unstyled"),!x&&w(o)&&("unordered-list-item"===c||"ordered-list-item"===c)&&(this.currentDepth=F(o,this.currentDepth));var h=p(),d=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:h,childConfigs:d,type:c})),this.currentDepth=f,this.wrapper=l;continue}if("#text"===u){this._addTextNode(o,e);continue}if("br"===u){this._addBreakNode(o,e);continue}if(k(o)&&o.attributes.getNamedItem("src")&&o.attributes.getNamedItem("src").value){this._addImgNode(o,e);continue}if(N(o)){this._addAnchorNode(o,r,e);continue}var y=e;R.has(u)&&(y=y.add(R.get(u))),y=q(o,y);var g=w(i=o)&&i.style.fontFamily.includes("monospace")?"CODE":null;null!=g&&(y=y.add(g)),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),y))}return r},e._appendText=function(t,e){this.currentText+=t;var r,n=u.create({style:e,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==n?Math.min(e,n[0]):e)>(r=void 0!==(n=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(r,t-n[0]):r)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(e,r),this.characterList=this.characterList.slice(e,r))},e._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(O,"")).replace(C," ")),this._appendText(r,e)},e._addBreakNode=function(t,e){b(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(k(t)){var r={};B.forEach(function(e){var n=t.getAttribute(e);n&&(r[e]=n)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),y("draftjs_fix_paste_for_img")?"presentation"!==t.getAttribute("role")&&this._appendText("\uD83D\uDCF7",e):this._appendText("\uD83D\uDCF7",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,r){if(S(t)){var n={};T.forEach(function(e){var r=t.getAttribute(e);r&&(n[e]=r)}),n.url=new l(t.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",n||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,i=0;i<=r;i++){var o=t[i];o.parent=e,o.prevSibling=i>0?t[i-1].key:null,o.nextSibling=i<r?t[i+1].key:null,o.children=v(o.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new s(n({},o))),this._toContentBlocks(o.childConfigs,o.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return v(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),i=r.text,o=r.characterList;e.contentBlocks.push(new a(n({},t,{text:t.text+i,characterList:t.characterList.concat(o)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=v(),i=0;i<=e;i++){var o=t[i];r+=o.text,n=n.concat(o.characterList),""!==r&&"unstyled"!==o.type&&(r+="\n",n=n.push(n.last()));var u=this._extractTextFromBlockConfigs(o.childConfigs);r+=u.text,n=n.concat(u.characterList)}return{text:r,characterList:n}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=e(t=t.trim().replace(E,"").replace(D," ").replace(K,"").replace(I,""));return n?new j(L(r),function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks():null}},363791:t=>{"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},366884:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317),o=r(706065);t.exports=function(t){var e,r,u=t.getSelection();if(!u.isCollapsed())return t;var a=u.getAnchorOffset();if(0===a)return t;var s=u.getAnchorKey(),c=t.getCurrentContent(),f=c.getBlockForKey(s).getLength();if(f<=1)return t;a===f?(e=u.set("anchorOffset",a-1),r=u):r=(e=u.set("focusOffset",a+1)).set("anchorOffset",a+1);var l=o(c,e),h=n.removeRange(c,e,"backward"),p=h.getSelectionAfter(),d=p.getAnchorOffset()-1,y=p.merge({anchorOffset:d,focusOffset:d}),g=n.replaceWithFragment(h,y,l),v=i.push(t,g,"insert-fragment");return i.acceptSelection(v,r)}},369600:(t,e,r)=>{"use strict";var n=r(462155),i=r(48339),o=r(582966),u=r(312326),a=r(610843),s=r(862509),c=o.List,f=function(t,e,r,n,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(i),c=s.getText(),f=s.getCharacterList(),l=o+n.getText().length,h=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":h=n.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=n.getData()}var p=s.getType();c&&"unstyled"===p&&(p=n.getType());var d=s.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:u(f,n.getCharacterList(),o),type:p,data:h});return t.merge({blockMap:r.set(i,d),selectionBefore:e,selectionAfter:e.merge({anchorKey:i,anchorOffset:l,focusKey:i,focusOffset:l,isBackward:!1})})},l=function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.slice(0,e),u=i.slice(0,e),a=r.first();return t.merge({text:o+a.getText(),characterList:u.concat(a.getCharacterList()),type:o?t.getType():a.getType(),data:a.getData()})},h=function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,u=n.slice(e,o),a=i.slice(e,o),s=r.last();return s.merge({text:s.getText()+u,characterList:s.getCharacterList().concat(a),data:s.getData()})},p=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},d=function(t,e,r,o,u,a){var s,f=r.first()instanceof i,d=[],y=o.size,g=r.get(u),v=o.first(),_=o.last(),m=_.getLength(),S=_.getKey(),b=f&&(!g.getChildKeys().isEmpty()||!v.getChildKeys().isEmpty());r.forEach(function(t,e){if(e!==u)return void d.push(t);b?d.push(t):d.push(l(t,a,o)),o.slice(+!b,y-1).forEach(function(t){return d.push(t)}),d.push(h(t,a,o))});var w=n.createFromArray(d);return f&&(w=(s=w).withMutations(function(t){var e=g.getKey(),r=v.getKey(),n=g.getNextSiblingKey(),i=g.getParentKey(),o=p(v,s),u=o[o.length-1];if(t.get(r)?(t.setIn([e,"nextSibling"],r),t.setIn([r,"prevSibling"],e)):(t.setIn([e,"nextSibling"],v.getNextSiblingKey()),t.setIn([v.getNextSiblingKey(),"prevSibling"],e)),t.setIn([u,"nextSibling"],n),n&&t.setIn([n,"prevSibling"],u),o.forEach(function(e){return t.setIn([e,"parent"],i)}),i){var a=s.get(i).getChildKeys(),f=a.indexOf(e),l=a.toArray();l.splice.apply(l,[f+1,0].concat(o)),t.setIn([i,"children"],c(l))}})),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:S,anch
1orOffset:m,focusKey:S,focusOffset:m,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||a(!1);var o=t.getBlockMap(),u=s(r),c=e.getStartKey(),l=e.getStartOffset(),h=o.get(c);return(h instanceof i&&(h.getChildKeys().isEmpty()||a(!1)),1===u.size)?f(t,e,o,u.first(),c,l,n):d(t,e,o,u,c,l)}},371528:(t,e,r)=>{"use strict";var n=r(610843),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var u=0,a=[];t.forEach(function(s){!function(t,e){if(!r.g.FileReader||t.type&&!(t.type in o))return e("");if(""===t.type){var u="";i.test(t.name)&&(u=t.name.replace(i,"")),e(u);return}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&n(!1),e(t)},a.onerror=function(){e("")},a.readAsText(t)}(s,function(r){u++,r&&a.push(r.slice(0,5e3)),u==t.length&&e(a.join("\r"))})})}},373562:t=>{"use strict";var e=RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},378021:(t,e,r)=>{"use strict";var n=r(742315),i=r(48339),o=r(359387),u=r(26744),a=r(692471),s=r(625937),c=r(582966),f=r(373562),l=c.List,h=c.Repeat,p=s("draft_tree_data_support"),d=p?i:n;t.exports={processHTML:function(t,e){return o(t,a,e)},processText:function(t,e,r){return t.reduce(function(t,n,i){n=f(n);var o=u(),a={key:o,type:r,text:n,characterList:l(h(e,n.length))};if(p&&0!==i){var s=i-1;a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},a,{prevSibling:(t[s]=t[s].merge({nextSibling:o})).getKey()})}return t.push(new d(a)),t},[])}}},379552:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(190657),o=r(325291),u=r(545485),a=r(709869),s=r(731651),c=r(200867),f=r(563298),l=r(893347),h=r(822428),p=r(73254),d=l("draft_tree_data_support"),y=d?a:u,g=h.List,v=h.Repeat;t.exports={insertAtomicBlock:function(t,e,r){var u=t.getCurrentContent(),a=t.getSelection(),l=s.removeRange(u,a,"backward"),h=l.getSelectionAfter(),p=s.splitBlock(l,h),_=p.getSelectionAfter(),m=s.setBlockType(p,_,"atomic"),S=o.create({entity:e}),b={key:f(),type:"atomic",text:r,characterList:g(v(S,r.length))},w={key:f(),type:"unstyled"};d&&(b=n({},b,{nextSibling:w.key}),w=n({},w,{prevSibling:b.key}));var k=[new y(b),new y(w)],x=i.createFromArray(k),E=s.replaceWithFragment(m,_,x),C=E.merge({selectionBefore:a,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return c.push(t,C,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var i,o=t.getCurrentContent(),u=t.getSelection();if("before"===n||"after"===n){var a=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());i=p(o,e,a,n)}else{var f=s.removeRange(o,r,"backward"),l=f.getSelectionAfter(),h=f.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())i=p(f,e,h,"before");else if(l.getEndOffset()===h.getLength())i=p(f,e,h,"after");else{var d=s.splitBlock(f,l),y=d.getSelectionAfter(),g=d.getBlockForKey(y.getFocusKey());i=p(d,e,g,"before")}}var v=i.merge({selectionBefore:u,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return c.push(t,v,"move-block")}}},380116:(t,e,r)=>{"use strict";var n=r(599131),i=r(691722),o=r(127877),u=r(610843),a=r(333887),s=r(222813);function c(t,e,r){var o=e,c=n(o);if(null!=c||t&&(t===o||t.firstChild===o)||u(!1),t===o&&(a(o=o.firstChild)||u(!1),"true"!==o.getAttribute("data-contents")&&u(!1),r>0&&(r=o.childNodes.length)),0===r){var l=null;if(null!=c)l=c;else{var h=function(t){for(;t.firstChild&&(a(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||i(t.firstChild));)t=t.firstChild;return t}(o);l=s(i(h))}return{key:l,offset:0}}var p=o.childNodes[r-1],d=null,y=null;if(i(p)){var g=function(t){for(;
1t.lastChild&&(a(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(p);d=s(i(g)),y=f(g)}else d=s(c),y=f(p);return{key:d,offset:y}}function f(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,i,u,a){var f=r.nodeType===Node.TEXT_NODE,l=u.nodeType===Node.TEXT_NODE;if(f&&l)return{selectionState:o(t,s(n(r)),i,s(n(u)),a),needsRecovery:!1};var h=null,p=null,d=!0;return f?(h={key:s(n(r)),offset:i},p=c(e,u,a)):l?(p={key:s(n(u)),offset:a},h=c(e,r,i)):(h=c(e,r,i),p=c(e,u,a),r===u&&i===a&&(d=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:o(t,h.key,h.offset,p.key,p.offset),needsRecovery:d}}},380885:(t,e,r)=>{"use strict";var n=r(437445),i=r(822428);t.exports=function(t,e,r){var o=t.getBlockMap(),u=e.getStartKey(),a=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),f=o.skipUntil(function(t,e){return e===u}).takeUntil(function(t,e){return e===s}).toOrderedMap().merge(i.OrderedMap([[s,o.get(s)]])).map(function(t,e){var i=e===s?c:t.getLength();return n(t,e===u?a:0,i,r)});return t.merge({blockMap:o.merge(f),selectionBefore:e,selectionAfter:e})}},381267:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867),o=r(339731),u=r(729251),a=null;t.exports={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),s=null;if(r.isCollapsed()){var c=r.getAnchorKey(),f=e.getBlockForKey(c).getLength();if(f===r.getAnchorOffset()){var l=e.getKeyAfter(c);if(null==l)return t;s=r.set("focusKey",l).set("focusOffset",0)}else s=r.set("focusOffset",f)}else s=r;a=o(e,s=u(s));var h=n.removeRange(e,s,"forward");return h===e?t:i.push(t,h,"remove-range")},paste:function(t){if(!a)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),a);return i.push(t,e,"insert-fragment")}}},382819:(t,e,r)=>{"use strict";var n=r(540317);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"===e.getLastChangeType()){var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}));return}if(t.preventDefault(),!e.getNativelyRenderedContent())return void r(i);r(n.set(e,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)}},384110:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(462155),o=r(902177),u=r(742315),a=r(48339),s=r(791245),c=r(540317),f=r(26744),l=r(625937),h=r(582966),p=r(756008),d=l("draft_tree_data_support"),y=d?a:u,g=h.List,v=h.Repeat;t.exports={insertAtomicBlock:function(t,e,r){var u=t.getCurrentContent(),a=t.getSelection(),l=s.removeRange(u,a,"backward"),h=l.getSelectionAfter(),p=s.splitBlock(l,h),_=p.getSelectionAfter(),m=s.setBlockType(p,_,"atomic"),S=o.create({entity:e}),b={key:f(),type:"atomic",text:r,characterList:g(v(S,r.length))},w={key:f(),type:"unstyled"};d&&(b=n({},b,{nextSibling:w.key}),w=n({},w,{prevSibling:b.key}));var k=[new y(b),new y(w)],x=i.createFromArray(k),E=s.replaceWithFragment(m,_,x),C=E.merge({selectionBefore:a,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return c.push(t,C,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var i,o=t.getCurrentContent(),u=t.getSelection();if("before"===n||"after"===n){var a=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());i=p(o,e,a,n)}else{var f=s.removeRange(o,r,"backward"),l=f.getSelectionAfter(),h=f.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())i=p(f,e,h,"before");else if(l.getEndOffset()===h.getLength())i=p(f,e,h,"after");else{var d=s.splitBlock(f,l),y=d.getSelectionAfter(),g=d.getBlockForKey(y.getFocusKey());i=p(d,e,g,"before")}}var v=i.merge({selectionBefore:u,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return c.push(t,v,"move-block")}}},385701:(t,e,r)=>{"use strict";var n=r(828525);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"IMG"===t.nodeName}},387094:(t,e,r)=>{"use strict";var n=r(822428).List;t.exports=function(){function t(t){var e,r;r=void 0,(e="_decorators")in this?Object.defineProperty(this,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[e]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);
1return this._decorators.forEach(function(n,i){var o=0;(0,n.strategy)(t,function(t,e){(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0})(r,t,e)&&(function(t,e,r,n){for(var i=e;i<r;i++)t[i]=n}(r,t,e,i+"."+o),o++)},e)}),n(r)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}()},387634:(t,e,r)=>{"use strict";var n=r(604433),i=r(200867),o=r(596041),u=r(239789);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:Error().stack}),selectionState:JSON.stringify(e.toJS())})}return}var r=t.props.editorState,a=u(r,o(t)),s=a.selectionState;s!==r.getSelection()&&(r=a.needsRecovery?i.forceSelection(r,s):i.acceptSelection(r,s),t.update(r))}},388548:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},417081:(t,e,r)=>{"use strict";r(454663),t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n&&!e.get(n).getChildKeys().includes(r)||!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===r}))return!1;var i=t.getPrevSiblingKey();if(null!=i&&e.get(i).getNextSiblingKey()!==r)return!1;var o=t.getNextSiblingKey();return(null==o||e.get(o).getPrevSiblingKey()===r)&&(null===o||null===i||i!==o)&&(""==t.text||!(t.getChildKeys().size>0))},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return!1;for(var r=e.shift(),n=0,i=r.getKey(),o=[];null!=i;){var u=t.get(i),a=u.getChildKeys(),s=u.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==c)return!1;i=c.getKey()}else i=null!=u.getNextSiblingKey()?u.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every(function(r){return e.isValidBlock(r,t)})&&this.isConnectedTree(t)}}},427154:(t,e,r)=>{"use strict";t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},e}((0,r(822428).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}))},428370:(t,e,r)=>{"use strict";var n=r(530007),i=r(200867),o=r(218621),u=r(36529);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);return o(t,n.getBackward(u).length||1)},"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},434042:(t,e,r)=>{"use strict";var n=r(103476),i=r(523097).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(o,u){var a=t.getText(),s=t.getEntityAt(o);r.push({offset:i(a.slice(0,o)),length:i(a.slice(o,u)),key:Number(e[n.stringify(s)])})}),r}},434044:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},434741:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},437445:(t,e,r)=>{"use strict";var n=r(325291);t.exports=function(t,e,r,i){for(var o=e,u=t.getCharacterList();o<r;)u=u.set(o,n.applyEntity(u.get(o),i)),o++;return t.set("characterList",u)}},439543:(t,e,r)=>{"use strict";var n=r(19763),i=r(720622),o=function(t,e){return t===e},u=function(t){return!!t},a=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),r=e.flatten().toSet().map(function(r){var a;return a=[],i(e.map(function(t){return t.has(r)}).toList(),o,u,function(e,i){var o=t.getText();a.push({offset:n.strlen(o.slice(0,e)),length:n.strlen(o.slice(e,i)),style:r})}),a});return Array.prototype.concat.apply(a,r.toJS())}},444905:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}
1))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(545485),o=r(709869),u=r(756301),a=r(954237),s=r(635865);r(780619);var c=r(976204),f=r(855390),l=r(543936),h=r(217663),p=r(563298),d=r(893347),y=r(822428),g=r(843653),v=d("draft_tree_data_support"),_=y.List,m=y.Map,S=y.OrderedMap,b=function(t,e){var r=t.key,n=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||p(),data:m(i),characterList:w(t,e)}},w=function(t,e){var r=t.text,i=t.entityRanges;return f(h(r,t.inlineStyleRanges||[]),l(r,(i||[]).filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return n({},t,{key:e[t.key]})})))},k=function(t){return n({},t,{key:t.key||p()})},x=function(t,e,r){var i=e.map(function(t){return n({},t,{parentRef:r})});return t.concat(i.reverse())},E=function(t,e){var r,u=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),a=v&&!u?s.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?a.map(k).reduce(function(t,r,i){Array.isArray(r.children)||g(!1);var u=r.children.map(k),s=new o(n({},b(r,e),{prevSibling:0===i?null:a[i-1].key,nextSibling:i===a.length-1?null:a[i+1].key,children:_(u.map(function(t){return t.key}))}));t=t.set(s.getKey(),s);for(var c=x([],u,s);c.length>0;){var f=c.pop(),l=f.parentRef,h=l.getChildKeys(),p=h.indexOf(f.key),d=Array.isArray(f.children);if(!d){d||g(!1);break}var y=f.children.map(k),v=new o(n({},b(f,e),{parent:l.getKey(),children:_(y.map(function(t){return t.key})),prevSibling:0===p?null:h.get(p-1),nextSibling:p===h.size-1?null:h.get(p+1)}));t=t.set(v.getKey(),v),c=x(c,y,v)}return t},S()):(r=u?s.fromRawTreeStateToRawState(t).blocks:a,S(r.map(function(t){var r=new i(b(t,e));return[r.getKey(),r]})))},C=function(t){var e=t.entityMap,r={};return Object.keys(e).forEach(function(t){var n=e[t],i=n.type,o=n.mutability,u=n.data;r[t]=a.__create(i,o,u||{})}),r};t.exports=function(t){Array.isArray(t.blocks)||g(!1);var e=C(t),r=E(t,e),n=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new u({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},451374:(t,e,r)=>{"use strict";var n=r(540317),i=r(523097),o=r(453899),u=r(295763);t.exports=function(t){var e=u(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),u=e.getAnchorOffset(),a=r.getBlockForKey(n).getText()[u-1];return o(t,a?i.getUTF16Length(a,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")}},453899:(t,e,r)=>{"use strict";r(454663),t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),u=i,a=0;if(e>o){var s=n.getKeyBefore(i);null==s?u=i:(u=s,a=n.getBlockForKey(s).getText().length)}else a=o-e;return r.merge({focusKey:u,focusOffset:a,isBackward:!0})}},455981:(t,e,r)=>{"use strict";var n=r(46816).getPunctuation(),i="['‘’]",o="\\s|(?![_])"+n,u=RegExp("^(?:"+o+")*(?:"+i+"|(?!"+o+").)*(?:(?!"+o+").)"),a=RegExp("(?:(?!"+o+").)(?:"+i+"|(?!"+o+").)*(?:"+o+")*$");function s(t,e){var r=e?a.exec(t):u.exec(t);return r?r[0]:t}t.exports={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}}},462155:(t,e,r)=>{"use strict";var n=r(582966).OrderedMap;t.exports={createFromArray:function(t){return n(t.map(function(t){return[t.getKey(),t]}))}}},462815:(t,e,r)=>{"use strict";var n=r(200867);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}
1)}},466855:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(847132),u=r(462619),a=r(610843),s=r(333887),c=u.isBrowser("IE <= 11");t.exports=function(t){function e(e){var r;return i(n(r=t.call(this,e)||this),"_forceFlag",void 0),i(n(r),"_node",void 0),r._forceFlag=!1,r}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this._node,r=""===t.children;return(s(e)||a(!1),r)?c?"\n"!==e.textContent:"BR"!==e.tagName:e.textContent!==t.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var t,e,r=this;return""===this.props.children?this._forceFlag?(t=function(t){return r._node=t},c?o.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:t})):(e=function(t){return r._node=t},c?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return r._node=t}},this.props.children)},e}(o.Component)},469886:(t,e,r)=>{"use strict";var n=r(200867),i=r(105212),o=r(693122),u=r(218621),a=r(36529);t.exports=function(t,e){var r=a(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 o(t,null,(n=i(n)).endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},482161:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317),o=r(706065),u=r(222813),a=null;t.exports={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),s=null;if(r.isCollapsed()){var c=r.getAnchorKey(),f=e.getBlockForKey(c).getLength();if(f===r.getAnchorOffset()){var l=e.getKeyAfter(c);if(null==l)return t;s=r.set("focusKey",l).set("focusOffset",0)}else s=r.set("focusOffset",f)}else s=r;a=o(e,s=u(s));var h=n.removeRange(e,s,"forward");return h===e?t:i.push(t,h,"remove-range")},paste:function(t){if(!a)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),a);return i.push(t,e,"insert-fragment")}}},486327:(t,e,r)=>{"use strict";var n=r(932339);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=n(e.getRangeAt(0)),i=r.top,o=r.right,u=r.bottom,a=r.left;return 0===i&&0===o&&0===u&&0===a?null:r}},488028:(t,e,r)=>{"use strict";var n=r(455981),i=r(540317),o=r(453899),u=r(295763);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);return o(t,n.getBackward(u).length||1)},"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},502558:(t,e,r)=>{"use strict";var n=r(785199),i=r(668899),o=r(184733),u=o.isPlatform("Mac OS X"),a=u&&o.isBrowser("Firefox < 29"),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function f(t){return u&&t.altKey||c(t)}t.exports=function(t){switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return u&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return u&&c(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return u&&c(t)?"backspace-word":null;case 89:if(c(t))return u?"secondary-paste":"redo";return null;case 90:return(s(t)?t.shiftKey?"redo":"undo":null)||null;case i.RETURN:return"split-block";case i.DELETE:return!u&&t.shiftKey?null:f(t)?"delete-word":"delete";case i.BACKSPACE:return s(t)&&u?"backspace-to-start-of-line":f(t)?"backspace-word":"backspace";case i.LEFT:return a&&s(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return a&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},502855:(t,e,r)=>{"use strict";var n=r(849685);t.exports=function(t,e){if(t._latestEditorState.getSelection().isCollapsed())return void e.preventDefault();t.setClipboard(n(t._latestEditorState))}},503369:t=>{"use strict";
vendor: 10,498 bytes, line 1
1t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},504255:(t,e,r)=>{"use strict";var n=r(299770),i=r(363791),o=r(462619),u=r(12560),a=r(796163),s=r(789854),c=r(610843),f=r(333887),l=o.isBrowser("IE");function h(t,e){for(var r=t,n=r;r;)if(f(r)&&n.hasAttribute("contenteditable"))return function(t,e){if(!t)return"[empty]";var r=function t(e,r){var n=void 0!==r?r(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return s(e).createTextNode("[text "+i+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var u=e.childNodes,a=0;a<u.length;a++)o.appendChild(t(u[a],r));return o}(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(f(r)||c(!1),r.outerHTML)}(r,e);else n=r=r.parentNode;return"Could not find contentEditable parent of node"}function p(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function d(t,e,r,n){var o=a();if(t.extend&&null!=e&&u(o,e)){r>p(e)&&i.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(u){throw i.logSelectionStateFailure({anonymizedDom:h(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:s,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 y(t,e,r,o){var u=s(e).createRange();if(r>p(e)&&(i.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),u.setStart(e,r),l)try{t.addRange(u)}catch(t){}else t.addRange(u)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=s(e);if(u(o.documentElement,e)){var a=o.defaultView.getSelection(),c=t.getAnchorKey(),f=t.getAnchorOffset(),l=t.getFocusKey(),h=t.getFocusOffset(),p=t.getIsBackward();if(!a.extend&&p){var g=c,v=f;c=l,f=h,l=g,h=v,p=!1}var _=c===r&&n<=f&&i>=f,m=l===r&&n<=h&&i>=h;if(_&&m){a.removeAllRanges(),y(a,e,f-n,t),d(a,e,h-n,t);return}if(p){if(m&&(a.removeAllRanges(),y(a,e,h-n,t)),_){var S=a.focusNode,b=a.focusOffset;a.removeAllRanges(),y(a,e,f-n,t),d(a,S,b,t)}}else _&&(a.removeAllRanges(),y(a,e,f-n,t)),m&&d(a,e,h-n,t)}},addFocusToSelection:d}},510087:(t,e,r)=>{"use strict";var n=r(315789),i=r(791245),o=r(696082),u=r(540317),a=r(291009),s=r(462619),c=r(133208),f=r(561199),l=r(296979),h=r(767504),p=r(222813),d=s.isBrowser("IE"),y=!1,g=!1,v=null,_={onCompositionStart:function(t){g=!0,v||(v=new n(f(t))).start()},onCompositionEnd:function(t){y=!1,g=!1,setTimeout(function(){y||_.resolveComposition(t)},20)},onSelect:c,onKeyDown:function(t,e){if(!g){_.resolveComposition(t),t._onKeyDown(e);return}(e.which===a.RIGHT||e.which===a.LEFT)&&e.preventDefault()},onKeyPress:function(t,e){e.which===a.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!g){var e=p(v).stopAndFlushMutations();v=null,y=!0;var r=u.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!e.size)return void t.update(r);var n=r.getCurrentContent();e.forEach(function(t,e){var a=o.decode(e),s=a.blockKey,c=a.decoratorKey,f=a.leafKey,l=r.getBlockTree(s).getIn([c,"leaves",f]),p=l.start,d=l.end,y=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:p,focusOffset:d,isBackward:!1}),g=h(n,y),v=n.getBlockForKey(s).getInlineStyleAt(p);n=i.replaceText(n,y,t,v,g),r=u.set(r,{currentContent:n})});var a=l(r,f(t)).selectionState;t.restoreEditorDOM();var s=d?u.forceSelection(r,a):u.acceptSelection(r,a);t.update(u.push(s,n,"insert-characters"))}}};t.exports=_},530007:(t,e,r)=>{"use strict";var n=r(124910).getPunctuation(),i="['‘’]",o="\\s|(?![_])"+n,u=RegExp("^(?:"+o+")*(?:"+i+"|(?!"+o+").)*(?:(?!"+o+").)"),a=RegExp("(?:(?!"+o+").)(?:"+i+"|(?!"+o+").)*(?:"+o+")*$");function s(t,e){var r=e?a.exec(t):u.exec(t);return r?r[0]:t}t.exports={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}}},532871:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(742315),o=r(48339),u=r(68439),a=r(308907),s=r(776223);r(417081);var c=r(881434),f=r(117908),l=r(127966),h=r(767529),p=r(26744),d=r(625937),y=r(582966),g=r(610843),v=d("draft_tree_data_support"),_=y.List,m=y.Map,S=y.OrderedMap,b=function(t,e){var r=t.key,n=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||p(),data:m(i),characterList:w(t,e)}},w=function(t,e){var r=t.text,i=t.entityRanges;return f(h(r,t.inlineStyleRanges||[]),l(r,(i||[]).filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return n({},t,{key:e[t.key]})})))},k=function(t){return n({},t,{key:t.key||p()})},x=function(t,e,r){var i=e.map(function(t){return n({},t,{parentRef:r})});return t.concat(i.reverse())},E=function(t,e){var r,u=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),a=v&&!u?s.fromRawStateToRawTreeState(t).blocks:t.blocks;return v?a.map(k).reduce(function(t,r,i){Array.isArray(r.children)||g(!1);var u=r.children.map(k),s=new o(n({},b(r,e),{prevSibling:0===i?null:a[i-1].key,nextSibling:i===a.length-1?null:a[i+1].key,children:_(u.map(function(t){return t.key}))}));t=t.set(s.getKey(),s);for(var c=x([],u,s);c.length>0;){var f=c.pop(),l=f.parentRef,h=l.getChildKeys(),p=h.indexOf(f.key),d=Array.isArray(f.children);if(!d){d||g(!1);break}var y=f.children.map(k),v=new o(n({},b(f,e),{parent:l.getKey(),children:_(y.map(function(t){return t.key})),prevSibling:0===p?null:h.get(p-1),nextSibling:p===h.size-1?null:h.get(p+1)}));t=t.set(v.getKey(),v),c=x(c,y,v)}return t},S()):(r=u?s.fromRawTreeStateToRawState(t).blocks:a,S(r.map(function(t){var r=new i(b(t,e));return[r.getKey(),r]})))},C=function(t){var e=t.entityMap,r={};return Object.keys(e).forEach(function(t){var n=e[t],i=n.type,o=n.mutability,u=n.data;r[t]=a.__create(i,o,u||{})}),r};t.exports=function(t){Array.isArray(t.blocks)||g(!1);var e=C(t),r=E(t,e),n=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new u({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},538482:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867),o=r(339731);t.exports=function(t){var e,r,u=t.getSelection();if(!u.isCollapsed())return t;var a=u.getAnchorOffset();if(0===a)return t;var s=u.getAnchorKey(),c=t.getCurrentContent(),f=c.getBlockForKey(s).getLength();if(f<=1)return t;a===f?(e=u.set("anchorOffset",a-1),r=u):r=(e=u.set("focusOffset",a+1)).set("anchorOffset",a+1);var l=o(c,e),h=n.removeRange(c,e,"backward"),p=h.getSelectionAfter(),d=p.getAnchorOffset()-1,y=p.merge({anchorOffset:d,focusOffset:d}),g=n.replaceWithFragment(h,y,l),v=i.push(t,g,"insert-fragment");return i.acceptSelection(v,r)}},540315:t=>{"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},540317:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(52990),u=r(68439),a=r(610037),s=r(881434),c=r(582966),f=c.OrderedSet,l=c.Record,h=c.Stack,p=c.OrderedMap,d=c.List,y=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:h(),selection:null,treeMap:null,undoStack:h()}),g=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,r){return e.createWithContent(u.createFromText(t),r)},e.createWithContent=function(t,r){if(0===t.getBlockMap().count())return e.createEmpty(r);var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:h(),redoStack:h(),decorator:r||null,selection:s.createEmpty(n)})},e.create=function(t){var r=t.currentContent,i=t.decorator;return new e(new y(n({},t,{treeMap:_(r,i),directionMap:a.getDirectionMap(r)})))},e.fromJS=function(t){return new e(new y(n({},t,{directionMap:null!=t.directionMap?p(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?f(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?u.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?h(t.redoStack.map(function(t){return u.fromJS(t)})):t.redoStack,selection:null!=t.selection?new s(t.selection):t.selection,treeMap:null!=t.treeMap?p(t.treeMap).map(function(t){return d(t).map(function(t){return o.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?h(t.undoStack.map(function(t){return u.fromJS(t)})):t.undoStack,currentContent:u.fromJS(t.currentContent)})))},e.set=function(t,r){return new e(t.getImmutable().withMutations(function(e){var n,i,u,a,s,c,f=e.get("decorator"),l=f;null===r.decorator?l=null:r.decorator&&(l=r.decorator);var h=r.currentContent||t.getCurrentContent();if(l!==f){var p,d,y,g,v,m,S=e.get("treeMap");m=l&&f?(p=h,d=h.getBlockMap(),y=S,g=l,v=f,y.merge(d.toSeq().filter(function(t){return g.getDecorations(t,p)!==v.getDecorations(t,p)}).map(function(t){return o.generate(p,t,g)}))):_(h,l),e.merge({decorator:l,treeMap:m,nativelyRenderedContent:null});return}h!==t.getCurrentContent()&&e.set("treeMap",(n=t,i=h.getBlockMap(),u=h.getEntity
1Map(),a=l,c=(s=n.getCurrentContent().set("entityMap",u)).getBlockMap(),n.getImmutable().get("treeMap").merge(i.toSeq().filter(function(t,e){return t!==c.get(e)}).map(function(t){return o.generate(s,t,a)})))),e.merge(r)}))};var t=e.prototype;function e(t){i(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})},t.getCurrentInlineStyle=function(){var t,e,r,n,i,o,u,a,s,c,f=this.getInlineStyleOverride();if(null!=f)return f;var l=this.getCurrentContent(),h=this.getSelection();return h.isCollapsed()?(t=l,r=(e=h).getStartKey(),n=e.getStartOffset(),i=t.getBlockForKey(r),n>0?i.getInlineStyleAt(n-1):i.getLength()?i.getInlineStyleAt(0):m(t,r)):(o=l,a=(u=h).getStartKey(),s=u.getStartOffset(),s<(c=o.getBlockForKey(a)).getLength()?c.getInlineStyleAt(s):s>0?c.getInlineStyleAt(s-1):m(o,a))},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return v(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),v(t,e,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),i=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){var i,o,u=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(t.getCurrentContent()===r)return t;var s=a.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:s,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:u,inlineStyleOverride:null});var c=t.getSelection(),f=t.getCurrentContent(),l=t.getUndoStack(),p=r;c!==f.getSelectionAfter()||(i=t,(o=n)!==i.getLastChangeType()||"insert-characters"!==o&&"backspace-character"!==o&&"delete-character"!==o)?(l=l.push(f),p=p.set("selectionBefore",c)):("insert-characters"===n||"backspace-character"===n||"delete-character"===n)&&(p=p.set("selectionBefore",f.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var y={currentContent:p,directionMap:s,undoStack:l,redoStack:h(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:u,inlineStyleOverride:d};return e.set(t,y)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:r.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=a.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.get
vendor: 5,587 bytes, line 1
1SelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function v(t,e,r){return g.set(t,{selection:e,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function _(t,e){return t.getBlockMap().map(function(r){return o.generate(t,r,e)}).toOrderedMap()}function m(t,e){var r=t.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):f()}t.exports=g},540472:(t,e,r)=>{"use strict";var n=r(270149);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(738479),u=r(696082),a=r(847132),s=r(222813);t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var u=e.getCurrentContent(),a=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||u!==a||s!==c||r.mustForceSelection()},r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,f=t.customStyleFn,l=t.editorState,h=t.editorKey,p=t.textDirectionality,d=l.getCurrentContent(),y=l.getSelection(),g=l.mustForceSelection(),v=l.getDecorator(),_=s(l.getDirectionMap()),m=d.getBlocksAsArray()[0],S=[],b=m;b;){var w=b.getKey(),k={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:d,customStyleFn:f,customStyleMap:c,decorator:v,editorKey:h,editorState:l,forceSelection:g,selection:y,block:b,direction:p||_.get(w),tree:l.getBlockTree(w)},x=(e.get(b.getType())||e.get("unstyled")).wrapper;S.push({block:a.createElement(o,i({key:w},k)),wrapperTemplate:x,key:w,offsetKey:u.encode(w,0,0)});var E=b.getNextSiblingKey();b=E?d.getBlockForKey(E):null}for(var C=[],O=0;O<S.length;){var D=S[O];if(D.wrapperTemplate){var K=[];do K.push(S[O].block),O++;while(O<S.length&&S[O].wrapperTemplate===D.wrapperTemplate);var I=a.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},K);C.push(I)}else C.push(D.block),O++}return a.createElement("div",{"data-contents":"true"},C)},e}(a.Component)},543739:(t,e,r)=>{"use strict";var n=r(200867),i=r(424866),o=r(891489);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!t.props.preserveSelectionOnBlur&&o(r)===r.body){var u=r.defaultView.getSelection(),a=t.editor;1===u.rangeCount&&i(a,u.anchorNode)&&i(a,u.focusNode)&&u.removeAllRanges()}var s=t._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var f=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(n.acceptSelection(s,f))}}},543936:(t,e,r)=>{"use strict";var n=r(19763).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var i=n(t,0,e.offset).length,o=i+n(t,e.offset,e.length).length,u=i;u<o;u++)r[u]=e.key}),r}},544355:(t,e,r)=>{"use strict";var n=r(787503),i=r(582966);t.exports=function(t,e,r){var o=t.getBlockMap(),u=e.getStartKey(),a=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),f=o.skipUntil(function(t,e){return e===u}).takeUntil(function(t,e){return e===s}).toOrderedMap().merge(i.OrderedMap([[s,o.get(s)]])).map(function(t,e){var i=e===s?c:t.getLength();return n(t,e===u?a:0,i,r)});return t.merge({blockMap:o.merge(f),selectionBefore:e,selectionAfter:e})}},545396:()=>{},545485:(t,e,r)=>{"use strict";var n=r(325291),i=r(720622),o=r(822428),u=o.List,a=o.Map,s=o.OrderedSet,c=o.Record,f=o.Repeat,l=s(),h=c({key:"",type:"unstyled",text:"",characterList:u(),depth:0,data:a()}),p=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=u(f(n.EMPTY,r.length))),t};function d(t,e){return t.getStyle()===e.getStyle()}function y(t,e){return t.getEntity()===e.getEntity()}t.exports=function(t){function e(e){return t.call(this,p(e))||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():l},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.findStyleRanges=function(t,e){i(this.getCharacterList(),d,t,e)},r.findEntityRanges=function(t,e){i(this.getCharacterList(),y,t,e)},e}(h)},550954:(t,e,r)=>{"use strict";var n=r(379552),i=r(190657),o=r(325291),u=r(387094),a=r(545485),s=r(756301),c=r(312246),f=r(660807),l=r(557310),h=r(830801),p=r(954237),d=r(731651),y=r(427154),g=r(200867),v=r(785199),_=r(545396),m=r(931467),S=r(976204),b=r(903815),w=r(444905),k=r(563298),x=r(502558),E=r(486327);t.exports={Editor:l,EditorBlock:h,EditorState:g,CompositeDecorator:u,Entity:p,EntityInstance:y,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:a,ContentState:s,RawDraftContentState:_,SelectionState:S,AtomicBlockUtils:n,Ke
1yBindingUtil:v,Modifier:d,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:f,convertFromHTML:r(774061),convertFromRaw:w,convertToRaw:b,genKey:k,getDefaultKeyBinding:x,getVisibleSelectionRect:E}},557140:t=>{"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},557310:(t,e,r)=>{"use strict";var n=r(942583);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){a(t,e,r[e])})}return t}function u(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=r(312246),f=r(660807),l=r(955733),h=r(819920),p=r(601963),d=r(158845),y=r(724181),g=r(117641),v=r(951144),_=r(200867),m=r(621462),S=r(409850),b=r(477996),w=r(184733),k=r(696932),x=r(563298),E=r(502558),C=r(80007),O=r(893347),D=r(843653),K=r(989926),I=r(729251),M=w.isBrowser("IE"),A=!M,T={edit:d,composite:l,drag:p,cut:null,render:null},B=!1,z=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var r=e.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(m.Component),R=function(t){function e(e){var r;return a(u(r=t.call(this,e)||this),"_blockSelectEvents",void 0),a(u(r),"_clipboard",void 0),a(u(r),"_handler",void 0),a(u(r),"_dragCount",void 0),a(u(r),"_internalDrag",void 0),a(u(r),"_editorKey",void 0),a(u(r),"_placeholderAccessibilityID",void 0),a(u(r),"_latestEditorState",void 0),a(u(r),"_latestCommittedEditorState",void 0),a(u(r),"_pendingStateFromBeforeInput",void 0),a(u(r),"_onBeforeInput",void 0),a(u(r),"_onBlur",void 0),a(u(r),"_onCharacterData",void 0),a(u(r),"_onCompositionEnd",void 0),a(u(r),"_onCompositionStart",void 0),a(u(r),"_onCopy",void 0),a(u(r),"_onCut",void 0),a(u(r),"_onDragEnd",void 0),a(u(r),"_onDragOver",void 0),a(u(r),"_onDragStart",void 0),a(u(r),"_onDrop",void 0),a(u(r),"_onInput",void 0),a(u(r),"_onFocus",void 0),a(u(r),"_onKeyDown",void 0),a(u(r),"_onKeyPress",void 0),a(u(r),"_onKeyUp",void 0),a(u(r),"_onMouseDown",void 0),a(u(r),"_onMouseUp",void 0),a(u(r),"_onPaste",void 0),a(u(r),"_onSelect",void 0),a(u(r),"editor",void 0),a(u(r),"editorContainer",void 0),a(u(r),"focu
1s",void 0),a(u(r),"blur",void 0),a(u(r),"setMode",void 0),a(u(r),"exitCurrentMode",void 0),a(u(r),"restoreEditorDOM",void 0),a(u(r),"setClipboard",void 0),a(u(r),"getClipboard",void 0),a(u(r),"getEditorKey",void 0),a(u(r),"update",void 0),a(u(r),"onDragEnter",void 0),a(u(r),"onDragLeave",void 0),a(u(r),"_handleEditorContainerRef",function(t){r.editorContainer=t,r.editor=null!==t?t.firstChild:null}),a(u(r),"focus",function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),i=r.editor;if(i){var o=b.getScrollParent(i),u=t||C(o),a=u.x,s=u.y;K(i)||D(!1),i.focus(),o===window?window.scrollTo(a,s):S.setTop(o,s),n||r.update(_.forceSelection(e,e.getSelection()))}}),a(u(r),"blur",function(){var t=r.editor;t&&(K(t)||D(!1),t.blur())}),a(u(r),"setMode",function(t){var e=r.props,n=e.onPaste,i=e.onCut,u=e.onCopy,a=o({},T.edit);n&&(a.onPaste=n),i&&(a.onCut=i),u&&(a.onCopy=u),r._handler=o({},T,{edit:a})[t]}),a(u(r),"exitCurrentMode",function(){r.setMode("edit")}),a(u(r),"restoreEditorDOM",function(t){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(t)})}),a(u(r),"setClipboard",function(t){r._clipboard=t}),a(u(r),"getClipboard",function(){return r._clipboard}),a(u(r),"update",function(t){r._latestEditorState=t,r.props.onChange(t)}),a(u(r),"onDragEnter",function(){r._dragCount++}),a(u(r),"onDragLeave",function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()}),r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=e.editorKey||x(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=e.editorState,r._latestCommittedEditorState=e.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}s(e,t);var n=e.prototype;return n._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(y?y(function(){return n(e,r)}):n(e,r))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:I(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return m.createElement(g,t)}return null},n._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},n.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,u=t.customStyleFn,a=t.customStyleMap,s=t.editorState,c=t.preventScroll,l=t.readOnly,p=t.textAlignment,d=t.textDirectionality,y=k({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),g=this.props.role||"textbox",v="combobox"===g?!!this.props.ariaExpanded:null,_={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:o({},f,a),customStyleFn:u,editorKey:this._editorKey,editorState:s,preventScroll:c,textDirectionality:d};return m.createElement("div",{className:y},this._renderPlaceholder(),m.createElement("div",{className:k("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},m.createElement("div",{"aria-activedescendant":l?null:this.props.ariaActiveDescendantID,"aria-autocomplete":l?null:this.props.ariaAutoComplete,"aria-controls":l?null:this.props.ariaControl
vendor: 30,388 bytes, line 1
1s,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":l?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":l?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:k({notranslate:!l,"public/DraftEditor/content":!0}),contentEditable:!l,"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:l?null:g,spellCheck:A&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},m.createElement(z,{editor:this,editorState:s}),m.createElement(h,i({},_,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!B&&O("draft_ods_enabled")&&(B=!0,v.initODS()),this.setMode("edit"),M&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.g.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(m.Component);a(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=R},561199:(t,e,r)=>{"use strict";var n=r(610843),i=r(725224);t.exports=function(t){var e=t.editorContainer;return e||n(!1),i(e.firstChild)||n(!1),e.firstChild}},562833:(t,e,r)=>{"use strict";var n=r(942583);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(49604),u=r(621462),a=r(221324),s=r(481409);t.exports=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,e.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,f=t.decoratorKey,l=t.direction,h=t.leafSet,p=t.text,d=e.getKey(),y=h.get("leaves"),g=c.getComponentForKey(f),v=c.getPropsForKey(f),_=o.encode(d,parseInt(f,10),0),m=p.slice(y.first().get("start"),y.last().get("end")),S=s.getHTMLDirIfDifferent(a.getDirection(m),l);return u.createElement(g,i({},v,{contentState:n,decoratedText:m,dir:S,key:_,entityKey:e.getEntityAt(h.get("start")),offsetKey:_}),r)},e}(u.Component)},563229:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},563298:t=>{"use strict";var e={};t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(0x1000000*Math.random()).toString(32);return e[t]=!0,t}},568674:(t,e,r)=>{"use strict";var n=r(843653);t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){r.push({start:t,end:e})}),r.length||n(!1),r}},569230:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},572361:(t,e,r)=>{"use strict";var n=r(114055),i=r(568674),o=r(843653);function u(t,e,r,u,a,s,c){var f=r.getStartOffset(),l=r.getEndOffset(),h=t.__get(a).getMutability(),p=c?f:l;if("MUTABLE"===h)return r;var d=i(e,a).filter(function(t){return p<=t.end&&p>=t.start});1!=d.length&&o(!1);var y=d[0];if("IMMUTABLE"===h)return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1});s||(c?l=y.end:f=y.start);var g=n.getRemovalRange(f,l,e.getText().slice(y.start,y.end),y.start,u);return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}t.exports=function(t,e,r,n,i){var o=n.getStartOffset(),a=n.getEndOffset(),s=e.getEntityAt(o),c=r.getEntityAt(a-1);if(!s&&!c)return n;var f=n;if(s&&s===c)f=u(t,e,f,i,s,!0,!0);else if(s&&c){var l=u(t,e,f,i,s,!1,!0),h=u(t,r,f,i,c,!1,!1);f=f.merge({anchorOffset:l.getAnchorOffset(),focusOffset:h.getFocusOffset(),isBackward:!1})}else if(s){var p=u(t,e,f,i,s,!1,!0);f=f.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=u(t,r,f,i,c,!1,!1);f=f.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return f}},574148:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},577585:(t,e,r)=>{"use strict";var n=r(742315),i=r(48339),o=r(103476),u=r(434042),a=r(768773),s=r(610843),c=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:a(t),entityRanges:u(t,e),data:t.getData().toObject()}},f=function(t,e,r,o){if(t instanceof n)return void r.push(c(t,e));t instanceof i||s(!1);var u=t.getParentKey(),a=o[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},c(t,e),{children:[]});if(u)return void o[u].children.push(a);r.push(a)},l=function(t,e){var r=e.entityMap,n=[],i={},u={},a=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var n=t.getEntityAt(e),i=o.stringify(n);!u[i]&&(u[i]=n,r[i]="".concat(a),a++)}),f(t,r,n,i)}),{blocks:n,entityMap:r}},h=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach(function(e,r){var n=t.getEntity(o.unstringify(e));i[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:i}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=l(t,e),e=h(t,e)}},582966:function(t){t.exports=function(){"use strict";var t,e,r,n,i,o,u,a,s,c,f=Array.prototype.slice;function l(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function h(t){return g(t)?t:G(t)}function p(t){return v(t)?t:X(t)}function d(t){return _(t)?t:Y(t)}function y(t){return g(t)&&!m(t)?t:Q(t)}function g(t){return!!(t&&t[b])}function v(t){return!!(t&&t[w])}function _(t){return!!(t&&t[k])}function m(t){return v(t)||_(t)}function S(t){return!!(t&&t[x])}l(p,h),l(d,h),l(y,h),h.isIterable=g,h.isKeyed=v,h.isIndexed=_,h.isAssociative=m,h.isOrdered=S,h.Keyed=p,h.Indexed=d,h.Set=y;var b="@@__IMMUTABLE_ITERABLE__@@",w="@@__IMMUTABLE_KEYED__@@",k="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",E="delete",C={},O={value:!1},D={value:!1};function K(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function M(){}function A(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function T(t){return void 0===t.size&&(t.size=t.__iterate(z)),t.size}function B(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||0xffffffff===r)return NaN;e=r}return e<0?T(t)+e:e}function z(){return!0}function R(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function L(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var F="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",q=F||N;function P(t){this.next=t}function j(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 U(){return{value:void 0,done:!0}}function H(t){return t&&"function"==typeof t.next}function W(t){var e=J(t);return e&&e.call(t)}function J(t){var e=t&&(F&&t[F]||t[N]);if("function"==typeof e)return e}function V(t){return t&&"number"==typeof t.length}function G(t){return null==t?ti():g(t)?t.toSeq():function(t){var e=ta(t)||"object"==typeof t&&new tt(t);if(!e)throw TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function X(t){return null==t?ti().toKeyedSeq():g(t)?v(t)?t.toSeq():t.fromEntrySeq():to(t)}function Y(t){return null==t?ti():g(t)?v(t)?t.entrySeq():t.toIndexedSeq():tu(t)}function Q(t){return(null==t?ti():!g(t)?tu(t):v(t)?t.entrySeq():t).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[q]=function(){return this},l(G,h),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(t,e){return ts(this,t,e,!0)},G.prototype.__iterator=function(t,e){return tc(this,t,e,!0)},l(X,G),X.prototype.toKeyedSeq=function(){return this},l(Y,G),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return ts(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return tc(this,t,e,!1)},l(Q,G),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},G.isSeq=tn,G.Keyed=X,G.Set=Q,G.Indexed=Y;var $="@@__IMMUTABLE_SEQ__@@";function Z(t){this._array=t,this.size=t.length}function tt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function te(t){this._iterable=t,this.size=t.length||t.size}function tr(t){this._iterator=t,this._iteratorCache=[]}function tn(t){return!!(t&&t[$])}function ti(){return t||(t=new Z([]))}function to(t){var e=Array.isArray(t)?new Z(t).fromEntrySeq():H(t)?new tr(t).fromEntrySeq():J(t)?new te(t).fromEntrySeq():"object"==typeof t?new tt(t):void 0;if(!e)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function tu(t){var e=ta(t);if(!e)throw TypeError("Expected Array or iterable object of values: "+t);return e}function ta(t){return V(t)?new Z(t):H(t)?new tr(t):J(t)?new te(t):void 0}function ts(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var a=i[r?o-u:u];if(!1===e(a[1],n?a[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function tc(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new P(function(){var t=i[r?o-u:u];return u++>o?U():j(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function tf(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,Y(r).map(function(n,i){return t(e,n,i,r)})):tl(r)?e.call(i,n,X(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):function t(e){return Array.isArray(e)?Y(e).map(t).toList():tl(e)?X(e).map(t).toMap():e}(t)}function tl(t){return t&&(t.constructor===Object||void 0===t.constructor)}function th(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 tp(t,e){if(t===e)return!0;if(!g(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||v(t)!==v(e)||_(t)!==_(e)||S(t)!==S(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!m(t);if(S(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&th(i[1],t)&&(r||th(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 u=!0,a=e.__iterate(function(e,n){if(r?!t.has(e):i?!th(e,t.get(n,C)):!th(t.get(n,C),e))return u=!1,!1});return u&&t.size===a}function td(t,r){if(!(this instanceof td))return new td(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(e)return e;e=this}}function ty(t,e){if(!t)throw Error(e)}function tg(t,e,n){if(!(this instanceof tg))return new tg(t,e,n);if(ty(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(r)return r;r=this}}function tv(){throw TypeError("Abstract")}function t_(){}function tm(){}function tS(){}G.prototype[$]=!0,l(Z,Y),Z.prototype.get=function(t,e){return this.has(t)?this._array[B(this,t)]:e},Z.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},Z.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new P(function(){return i>n?U():j(t,i,r[e?n-i++:i++])})},l(tt,X),tt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},tt.prototype.has=function(t){return this._object.hasOwnProperty(t)},tt.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},tt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new P(function(){var u=n[e?i-o:o];return o++>i?U():j(t,u,r[u])})},tt.prototype[x]=!0,l(te,Y),te.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r,n=W(this._iterable),i=0;if(H(n))for(;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},te.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!H(r))return new P(U);var n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value)})},l(tr,Y),tr.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},tr.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new P(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return j(t,i,n[i++])})},l(td,Y),td.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},td.prototype.get=function(t,e){return this.has(t)?this._value:e},td.prototype.includes=function(t){return th(this._value,t)},td.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:new td(this._value,L(e,r,r)-L(t,r,0))},td.prototype.reverse=function(){return this},td.prototype.indexOf=function(t){return th(this._value,t)?0:-1},td.prototype.lastIndexOf=function(t){return th(this._value,t)?this.size:-1},td.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},td.prototype.__iterator=function(t,e){var r=this,n=0;return new P(function(){return n<r.size?j(t,n++,r._value):U()})},td.prototype.equals=function(t){return t instanceof td?th(this._value,t._value):tp(t)},l(tg,Y),tg.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},tg.prototype.get=function(t,e){return this.has(t)?this._start+B(this,t)*this._step:e},tg.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tg.prototype.slice=function(t,e){var r;return R(t,e,this.size)?this:(t=L(t,this.size,0),(e=L(e,r=this.size,r))<=t)?new tg(0,0):new tg(this.get(t,this._end),this.get(e,this._end),this._step)},tg.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},tg.prototype.lastIndexOf=function(t){return this.indexOf(t)},tg.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},tg.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 P(function(){var u=i;return i+=e?-n:n,o>r?U():j(t,o++,u)})},tg.prototype.equals=function(t){return t instanceof tg?this._start===t._start&&this._end===t._end&&this._step===t._step:tp(this,t)},l(tv,h),l(t_,tv),l(tm,tv),l(tS,tv),tv.Keyed=t_,tv.Indexed=tm,tv.Set=tS;var tb="function"==typeof Math.imul&&-2===Math.imul(0xffffffff,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 tw(t){return t>>>1&0x40000000|0xbfffffff&t}function tk(t){if(!1===t||null==t||"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^=0xffffffff*t);t>0xffffffff;)t/=0xffffffff,r^=t;return tw(r)}if("string"===e){return t.length>tI?(void 0===(o=tT[i=t])&&(o=tx(i),tA===tM&&(tA=0,tT={}),tA++,tT[i]=o),o):tx(t)}if("function"==typeof t.hashCode)return t.hashCode();if("object"===e){var i,o,u,a=t;if(tO&&void 0!==(u=n.get(a))||void 0!==(u=a[tK])||!tC&&(void 0!==(u=a.propertyIsEnumerable&&a.propertyIsEnumerable[tK])||void 0!==(u=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(a))))return u;if(u=++tD,0x40000000&tD&&(tD=0),tO)n.set(a,u);else if(void 0!==tE&&!1===tE(a))throw Error("Non-extensible objects are not allowed as keys.");else if(tC)Object.defineProperty(a,tK,{enumerable:!1,configurable:!1,writable:!1,value:u});else if(void 0!==a.propertyIsEnumerable&&a.propertyIsEnumerable===a.constructor.prototype.propertyIsEnumerable)a.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},a.propertyIsEnumerable[tK]=u;else if(void 0!==a.nodeType)a[tK]=u;else throw Error("Unable to set a non-enumerable property on object.");return u}if("function"==typeof t.toString)return tx(t.toString());throw Error("Value type "+e+" cannot be hashed.")}function tx(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tw(e)}var tE=Object.isExtensible,tC=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),tO="function"==typeof WeakMap;tO&&(n=new WeakMap);var tD=0,tK="__immutablehash__";"function"==typeof Symbol&&(tK=Symbol(tK));var tI=16,tM=255,tA=0,tT={};function tB(t){ty(t!==1/0,"Cannot perform this action with an infinite size.")}function tz(t){return null==t?tG():tR(t)&&!S(t)?t:tG().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function tR(t){return!!(t&&t[tL])}l(tz,t_),tz.prototype.toString=function(){return this.__toString("Map {","}")},tz.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},tz.prototype.set=function(t,e){return tX(this,t,e)},tz.prototype.setIn=function(t,e){return this.updateIn(t,C,function(){return e})},tz.prototype.remove=function(t){return tX(this,t,C)},tz.prototype.deleteIn=function(t){return this.updateIn(t,function(){return C})},tz.prototype.update=function(t,e,r){return 1==arguments.length?t(this):this.updateIn([t],e,r)},tz.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===C,u=r.next();if(u.done){var a=o?n:e,s=i(a);return s===a?e:s}ty(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?C:e.get(c,C),l=t(f,r,n,i);return l===f?e:l===C?e.remove(c):(o?tG():e).set(c,l)}(this,eq(t),e,r);return n===C?void 0:n},tz.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):tG()},tz.prototype.merge=function(){return tZ(this,void 0,arguments)},tz.prototype.mergeWith=function(t){var e=f.call(arguments,1);return tZ(this,t,e)},tz.prototype.mergeIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},tz.prototype.mergeDeep=function(){return tZ(this,t0,arguments)},tz.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return tZ(this,t1(t),e)},tz.prototype.mergeDeepIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},tz.prototype.sort=function(t){return ep(eK(this,t))},tz.prototype.sortBy=function(t,e){return ep(eK(this,e,t))},tz.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},tz.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},tz.prototype.asImmutable=function(){return this.__ensureOwner()},tz.prototype.wasAltered=function(){return this.__altered},tz.prototype.__iterator=function(t,e){return new tH(this,t,e)},tz.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},tz.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?tV(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},tz.isMap=tR;var tL="@@__IMMUTABLE_MAP__@@",tF=tz.prototype;function tN(t,e){this.ownerID=t,this.entries=e}function tq(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function tP(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function tj(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function tU(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function tH(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&tJ(t._root)}function tW(t,e){return j(t,e[0],e[1])}function tJ(t,e){return{node:t,index:0,__prev:e}}function tV(t,e,r,n){var i=Object.create(tF);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function tG(){return i||(i=tV(0))}function tX(t,e,r){if(t._root){var n,i,o=K(O),u=K(D);if(n=tY(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===C?-1:1:0)}else{if(r===C)return t;i=1,n=new tN(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?tV(i,n):tG()}function tY(t,e,r,n,i,o,u,a){return t?t.update(e,r,n,i,o,u,a):o===C?t:(I(a),I(u),new tU(e,n,[i,o]))}function tQ(t){return t.constructor===tU||t.constructor===tj}function t$(t,e,r,n,i){if(t.keyHash===n)return new tj(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&31,a=(0===r?n:n>>>r)&31,s=u===a?[t$(t,e,r+5,n,i)]:(o=new tU(e,n,i),u<a?[t,o]:[o,t]);return new tq(e,1<<u|1<<a,s)}function tZ(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],u=p(o);g(o)||(u=u.map(function(t){return tf(t)})),n.push(u)}return t2(t,e,n)}function t0(t,e,r){return t&&t.mergeDeep&&g(e)?t.mergeDeep(e):th(t,e)?t:e}function t1(t){return function(e,r,n){if(e&&e.mergeDeepWith&&g(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return th(e,i)?e:i}}function t2(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,C,function(t){return t===C?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 t3(t){return t-=t>>1&0x55555555,t=(t=(0x33333333&t)+(t>>2&0x33333333))+(t>>4)&0xf0f0f0f,t+=t>>8,127&(t+=t>>16)}function t6(t,e,r,n){var i=n?t:A(t);return i[e]=r,i}tF[tL]=!0,tF[E]=tF.remove,tF.removeIn=tF.deleteIn,tN.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tN.prototype.update=function(t,e,r,n,i,o,u){for(var a=i===C,s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),!a||1!==s.length){if(!l&&!a&&s.length>=t5){var h=t,p=s,d=n,y=i;h||(h=new M);for(var g=new tU(h,tk(d),[d,y]),v=0;v<p.length;v++){var _=p[v];g=g.update(h,0,void 0,_[0],_[1])}return g}var m=t&&t===this.ownerID,S=m?s:A(s);return(l?a?c===f-1?S.pop():S[c]=S.pop():S[c]=[n,i]:S.push([n,i]),m)?(this.entries=S,this):new tN(t,S)}},tq.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=1<<((0===t?e:e>>>t)&31),o=this.bitmap;return(o&i)==0?n:this.nodes[t3(o&i-1)].get(t+5,e,r,n)},tq.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=1<<a,c=this.bitmap,f=(c&s)!=0;if(!f&&i===C)return this;var l=t3(c&s-1),h=this.nodes,p=f?h[l]:void 0,d=tY(p,t,e+5,r,n,i,o,u);if(d===p)return this;if(!f&&d&&h.length>=t8){for(var y=t,g=h,v=c,_=a,m=d,S=0,b=Array(32),w=0;0!==v;w++,v>>>=1)b[w]=1&v?g[S++]:void 0;return b[_]=m,new tP(y,S+1,b)}if(f&&!d&&2===h.length&&tQ(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&tQ(d))return d;var k=t&&t===this.ownerID,x=f?d?c:c^s:c|s,E=f?d?t6(h,l,d,k):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,l,k):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,a=0;a<i;a++)a===e?(o[a]=r,u=-1):o[a]=t[a+u];return o}(h,l,d,k);return k?(this.bitmap=x,this.nodes=E,this):new tq(t,x,E)},tP.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=(0===t?e:e>>>t)&31,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},tP.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=i===C,c=this.nodes,f=c[a];if(s&&!f)return this;var l=tY(f,t,e+5,r,n,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h<t7)return function(t,e,r,n){for(var i=0,o=0,u=Array(r),a=0,s=1,c=e.length;a<c;a++,s<<=1){var f=e[a];void 0!==f&&a!==n&&(i|=s,u[o++]=f)}return new tq(t,i,u)}(t,c,h,a)}else h++;var p=t&&t===this.ownerID,d=t6(c,a,l,p);return p?(this.count=h,this.nodes=d,this):new tP(t,h,d)},tj.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tj.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=i===C;if(r!==this.keyHash)return a?this:(I(u),I(o),t$(this,t,e,r,[n,i]));for(var s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),a&&2===f)return new tU(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,p=h?s:A(s);return(l?a?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h)?(this.entries=p,this):new tj(t,this.keyHash,p)},tU.prototype.get=function(t,e,r,n){return th(r,this.entry[0])?this.entry[1]:n},tU.prototype.update=function(t,e,r,n,i,o,u){var a=i===C,s=th(n,this.entry[0]);return(s?i===this.entry[1]:a)?this:(I(u),a)?void I(o):s?t&&t===this.ownerID?(this.entry[1]=i,this):new tU(t,this.keyHash,[n,i]):(I(o),t$(this,t,e,tk(n),[n,i]))},tN.prototype.iterate=tj.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},tq.prototype.iterate=tP.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}},tU.prototype.iterate=function(t,e){return t(this.entry)},l(tH,P),tH.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 tW(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return tW(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 tW(t,o.entry);e=this._stack=tJ(o,e)}continue}e=this._stack=this._stack.__prev}return U()};var t5=8,t8=16,t7=8;function t4(t){var e=eu();if(null==t)return e;if(t9(t))return t;var r=d(t),n=r.size;return 0===n?e:(tB(n),n>0&&n<32)?eo(0,n,5,null,new er(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})})}function t9(t){return!!(t&&t[et])}l(t4,tm),t4.of=function(){return this(arguments)},t4.prototype.toString=function(){return this.__toString("List [","]")},t4.prototype.get=function(t,e){if((t=B(this,t))>=0&&t<this.size){var r=ec(this,t+=this._origin);return r&&r.array[31&t]}return e},t4.prototype.set=function(t,e){return function(t,e,r){if((e=B(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?ef(t,e).set(0,r):ef(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=K(D);return(e>=eh(t._capacity)?n=ea(n,t.__ownerID,0,e,r,o):i=ea(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):eo(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},t4.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t4.prototype.insert=function(t,e){return this.splice(t,0,e)},t4.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):eu()},t4.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){ef(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},t4.prototype.pop=function(){return ef(this,0,-1)},t4.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){ef(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},t4.prototype.shift=function(){return ef(this,1)},t4.prototype.merge=function(){return el(this,void 0,arguments)},t4.prototype.mergeWith=function(t){var e=f.call(arguments,1);return el(this,t,e)},t4.prototype.mergeDeep=function(){return el(this,t0,arguments)},t4.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return el(this,t1(t),e)},t4.prototype.setSize=function(t){return ef(this,0,t)},t4.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:ef(this,L(t,r,0),L(e,r,r))},t4.prototype.__iterator=function(t,e){var r=0,n=ei(this,e);return new P(function(){var e=n();return e===en?U():j(t,r++,e)})},t4.prototype.__iterate=function(t,e){for(var r,n=0,i=ei(this,e);(r=i())!==en&&!1!==t(r,n++,this););return n},t4.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?eo(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},t4.isList=t9;
1var et="@@__IMMUTABLE_LIST__@@",ee=t4.prototype;function er(t,e){this.array=t,this.ownerID=e}ee[et]=!0,ee[E]=ee.remove,ee.setIn=tF.setIn,ee.deleteIn=ee.removeIn=tF.removeIn,ee.update=tF.update,ee.updateIn=tF.updateIn,ee.mergeIn=tF.mergeIn,ee.mergeDeepIn=tF.mergeDeepIn,ee.withMutations=tF.withMutations,ee.asMutable=tF.asMutable,ee.asImmutable=tF.asImmutable,ee.wasAltered=tF.wasAltered,er.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n,i=r>>>e&31;if(i>=this.array.length)return new er([],t);var o=0===i;if(e>0){var u=this.array[i];if((n=u&&u.removeBefore(t,e-5,r))===u&&o)return this}if(o&&!n)return this;var a=es(this,t);if(!o)for(var s=0;s<i;s++)a.array[s]=void 0;return n&&(a.array[i]=n),a},er.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var u=es(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var en={};function ei(t,e){var r=t._origin,n=t._capacity,i=eh(n),o=t._tail;return function t(u,a,s){var c,f,l,h,p,d,y,g,v,_,m,S;return 0===a?(c=u,l=(f=s)===i?o&&o.array:c&&c.array,h=f>r?0:r-f,(p=n-f)>32&&(p=32),function(){if(h===p)return en;var t=e?--p:h++;return l&&l[t]}):(d=u,y=a,g=s,_=d&&d.array,m=g>r?0:r-g>>y,(S=(n-g>>y)+1)>32&&(S=32),function(){for(;;){if(v){var r=v();if(r!==en)return r;v=null}if(m===S)return en;var n=e?--S:m++;v=t(_&&_[n],y-5,g+(n<<y))}})}(t._root,t._level,0)}function eo(t,e,r,n,i,o,u){var a=Object.create(ee);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=u,a.__altered=!1,a}function eu(){return o||(o=eo(0,0,5))}function ea(t,e,r,n,i,o){var u,a=n>>>r&31,s=t&&a<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[a],f=ea(c,e,r-5,n,i,o);return f===c?t:((u=es(t,e)).array[a]=f,u)}return s&&t.array[a]===i?t:(I(o),u=es(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function es(t,e){return e&&t&&e===t.ownerID?t:new er(t?t.array.slice():[],e)}function ec(t,e){if(e>=eh(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&31],n-=5;return r}}function ef(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new M,i=t._origin,o=t._capacity,u=i+e,a=void 0===r?o:r<0?o+r:i+r;if(u===i&&a===o)return t;if(u>=a)return t.clear();for(var s=t._level,c=t._root,f=0;u+f<0;)c=new er(c&&c.array.length?[void 0,c]:[],n),s+=5,f+=1<<s;f&&(u+=f,i+=f,a+=f,o+=f);for(var l=eh(o),h=eh(a);h>=1<<s+5;)c=new er(c&&c.array.length?[c]:[],n),s+=5;var p=t._tail,d=h<l?ec(t,a-1):h>l?new er([],n):p;if(p&&h>l&&u<o&&p.array.length){for(var y=c=es(c,n),g=s;g>5;g-=5){var v=l>>>g&31;y=y.array[v]=es(y.array[v],n)}y.array[l>>
vendor: 31,249 bytes, line 1
1>5&31]=p}if(a<o&&(d=d&&d.removeAfter(n,0,a)),u>=h)u-=h,a-=h,s=5,c=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h<l){for(f=0;c;){var _=u>>>s&31;if(_!==h>>>s&31)break;_&&(f+=(1<<s)*_),s-=5,c=c.array[_]}c&&u>i&&(c=c.removeBefore(n,s,u-f)),c&&h<l&&(c=c.removeAfter(n,s,h-f)),f&&(u-=f,a-=f)}return t.__ownerID?(t.size=a-u,t._origin=u,t._capacity=a,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):eo(u,a,s,c,d)}function el(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var u=r[o],a=d(u);a.size>i&&(i=a.size),g(u)||(a=a.map(function(t){return tf(t)})),n.push(a)}return i>t.size&&(t=t.setSize(i)),t2(t,e,n)}function eh(t){return t<32?0:t-1>>>5<<5}function ep(t){return null==t?eg():ed(t)?t:eg().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function ed(t){return tR(t)&&S(t)}function ey(t,e,r,n){var i=Object.create(ep.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function eg(){return u||(u=ey(tG(),eu()))}function ev(t,e,r){var n,i,o=t._map,u=t._list,a=o.get(e),s=void 0!==a;if(r===C){if(!s)return t;u.size>=32&&u.size>=2*o.size?(n=(i=u.filter(function(t,e){return void 0!==t&&a!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===u.size-1?u.pop():u.set(a,void 0))}else if(s){if(r===u.get(a)[1])return t;n=o,i=u.set(a,[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):ey(n,i)}function e_(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function em(t){this._iter=t,this.size=t.size}function eS(t){this._iter=t,this.size=t.size}function eb(t){this._iter=t,this.size=t.size}function ew(t){var e=eL(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=eF,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(2===e){var n=t.__iterator(e,r);return new P(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(+(1!==e),r)},e}function ek(t,e,r){var n=eL(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,C);return o===C?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(2,i);return new P(function(){var i=o.next();if(i.done)return i;var u=i.value,a=u[0];return j(n,a,e.call(r,u[1],a,t),i)})},n}function ex(t,e){var r=eL(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ew(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=eF,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 eE(t,e,r,n){var i=eL(t);return n&&(i.has=function(n){var i=t.get(n,C);return i!==C&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,C);return o!==C&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,a=0;return t.__iterate(function(t,o,s){if(e.call(r,t,o,s))return a++,i(t,n?o:a-1,u)},o),a},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),a=0;return new P(function(){for(;;){var o=u.next();if(o.done)return o;var s=o.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return j(i,n?c:a++,f,o)}})},i}function eC(t,e,r,n){var i,o=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),R(e,r,o))return t;var u=L(e,o,0),a=L(r,o,o);if(u!=u||a!=a)return eC(t.toSeq().cacheResult(),e,r,n);var s=a-u;s==s&&(i=s<0?0:s);var c=eL(t);return c.size=0===i?i:t.size&&i||void 0,!n&&tn(t)&&i>=0&&(c.get=function(e,r){return(e=B(this,e))>=0&&e<i?t.get(e+u,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===i)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;return t.__iterate(function(t,r){if(!(s&&(s=a++<u)))return c++,!1!==e(t,n?r:c-1,o)&&c!==i}),c},c.__iteratorUncached=function(e,r){if(0!==i&&r)return this.cacheResult().__iterator(e,r);var o=0!==i&&t.__iterator(e,r),a=0,s=0;return new P(function(){for(;a++<u;)o.next();if(++s>i)return U();var t=o.next();return n||1===e?t:0===e?j(e,s-1,void 0,t):j(e,s-1,t.value[1],t)})},c}function eO(t,e,r,n){var i=eL(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,s=0;return t.__iterate(function(t,o,c){if(!(a&&(a=e.call(r,t,o,c))))return s++,i(t,n?o:s-1,u)}),s},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(2,o),s=!0,c=0;return new P(function(){var t,o,f;do{if((t=a.next()).done)if(n||1===i)return t;else if(0===i)return j(i,c++,void 0,t);else return j(i,c++,t.value[1],t);var l=t.value;o=l[0],f=l[1],s&&(s=e.call(r,f,o,u))}while(s);return 2===i?t:j(i,o,f,t)})},i}function eD(t,e,r){var n=eL(t);return n.__iterateUncached=function(n,i){var o=0,u=!1;return!function t(a,s){var c=this;a.__iterate(function(i,a){return(!e||s<e)&&g(i)?t(i,s+1):!1===n(i,r?a:o++,c)&&(u=!0),!u},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],a=0;return new P(function(){for(;o;){var t=o.next();if(!1!==t.done){o=u.pop();continue}var s=t.value;if(2===n&&(s=s[1]),!((!e||u.length<e)&&g(s)))return r?t:j(n,a++,s,t);u.push(o),o=s.__iterator(n,i)}return U()})},n}function eK(t,e,r){e||(e=eN);var n=v(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?X(o):_(t)?Y(o):Q(o)}function eI(t,e,r){if(e||(e=eN),!r)return t.reduce(function(t,r){return eM(e,t,r)?r:t});var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return eM(e,t[1],r[1])?r:t});return n&&n[0]}function eM(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function eA(t,e,r){var n=eL(t);return n.size=new Z(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},n.__iteratorUncached=function(t,n){var i=r.map(function(t){return t=h(t),W(n?t.reverse():t)}),o=0,u=!1;return new P(function(){var r;return(u||(u=(r=i.map(function(t){return t.next()})).some(function(t){return t.done})),u)?U():j(t,o++,e.apply(null,r.map(function(t){return t.value})))})},n}function eT(t,e){return tn(t)?e:t.constructor(e)}function eB(t){if(t!==Object(t))throw TypeError("Expected [K, V] tuple: "+t)}function ez(t){return tB(t.size),T(t)}function eR(t){return v(t)?p:_(t)?d:y}function eL(t){return Object.create((v(t)?X:_(t)?Y:Q).prototype)}function eF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function eN(t,e){return t>e?1:t<e?-1:0}function eq(t){var e=W(t);if(!e){if(!V(t))throw TypeError("Expected iterable or array-like: "+t);e=W(h(t))}return e}function eP(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(eW.bind(void 0,t))}catch(t){}})(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=tz(o)},i=n.prototype=Object.create(ej);return i.constructor=n,n}l(ep,tz),ep.of=function(){return this(arguments)},ep.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ep.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},ep.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):eg()},ep.prototype.set=function(t,e){return ev(this,t,e)},ep.prototype.remove=function(t){return ev(this,t,C)},ep.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ep.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},ep.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},ep.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ey(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},ep.isOrderedMap=ed,ep.prototype[x]=!0,ep.prototype[E]=ep.prototype.remove,l(e_,X),e_.prototype.get=function(t,e){return this._iter.get(t,e)},e_.prototype.has=function(t){return this._iter.has(t)},e_.prototype.valueSeq=function(){return this._iter.valueSeq()},e_.prototype.reverse=function(){var t=this,e=ex(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e_.prototype.map=function(t,e){var r=this,n=ek(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e_.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?ez(this):0,function(i){return t(i,e?--r:r++,n)}),e)},e_.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?ez(this):0;return new P(function(){var i=r.next();return i.done?i:j(t,e?--n:n++,i.value,i)})},e_.prototype[x]=!0,l(em,Y),em.prototype.includes=function(t){return this._iter.includes(t)},em.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},em.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value,e)})},l(eS,Q),eS.prototype.has=function(t){return this._iter.includes(t)},eS.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},eS.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){var e=r.next();return e.done?e:j(t,e.value,e.value,e)})},l(eb,X),eb.prototype.entrySeq=function(){return this._iter.toSeq()},eb.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){eB(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},eb.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){eB(n);var i=g(n);return j(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},em.prototype.cacheResult=e_.prototype.cacheResult=eS.prototype.cacheResult=eb.prototype.cacheResult=eF,l(eP,t_),eP.prototype.toString=function(){return this.__toString(eH(this)+" {","}")},eP.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},eP.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},eP.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=eU(this,tG()))},eP.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+eH(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:eU(this,r)},eP.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:eU(this,e)},eP.prototype.wasAltered=function(){return this._map.wasAltered()},eP.prototype.__iterator=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},eP.prototype.__iterate=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},eP.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?eU(this,e,t):(this.__ownerID=t,this._map=e,this)};var ej=eP.prototype;function eU(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function eH(t){return t._name||t.constructor.name||"Record"}function eW(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ty(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function eJ(t){return null==t?e$():eV(t)&&!S(t)?t:e$().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function eV(t){return!!(t&&t[eG])}ej[E]=ej.remove,ej.deleteIn=ej.removeIn=tF.removeIn,ej.merge=tF.merge,ej.mergeWith=tF.mergeWith,ej.mergeIn=tF.mergeIn,ej.mergeDeep=tF.mergeDeep,ej.mergeDeepWith=tF.mergeDeepWith,ej.mergeDeepIn=tF.mergeDeepIn,ej.setIn=tF.setIn,ej.update=tF.update,ej.updateIn=tF.updateIn,ej.withMutations=tF.withMutations,ej.asMutable=tF.asMutable,ej.asImmutable=tF.asImmutable,l(eJ,tS),eJ.of=function(){return this(arguments)},eJ.fromKeys=function(t){return this(p(t).keySeq())},eJ.prototype.toString=function(){return this.__toString("Set {","}")},eJ.prototype.has=function(t){return this._map.has(t)},eJ.prototype.add=function(t){return eY(this,this._map.set(t,!0))},eJ.prototype.remove=function(t){return eY(this,this._map.remove(t))},eJ.prototype.clear=function(){return eY(this,this._map.clear())},eJ.prototype.union=function(){var t=f.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)y(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},eJ.prototype.intersect=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},eJ.prototype.subtract=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},eJ.prototype.merge=function(){return this.union.apply(this,arguments)},eJ.prototype.mergeWith=function(t){var e=f.call(arguments,1);return this.union.apply(this,e)},eJ.prototype.sort=function(t){return eZ(eK(this,t))},eJ.prototype.sortBy=function(t,e){return eZ(eK(this,e,t))},eJ.prototype.wasAltered=function(){return this._map.wasAltered()},eJ.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},eJ.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},eJ.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)},eJ.isSet=eV;var eG="@@__IMMUTABLE_SET__@@",eX=eJ.prototype;function eY(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 eQ(t,e){var r=Object.create(eX);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e$(){return a||(a=eQ(tG()))}function eZ(t){return null==t?e3():e0(t)?t:e3().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function e0(t){return eV(t)&&S(t)}eX[eG]=!0,eX[E]=eX.remove,eX.mergeDeep=eX.merge,eX.mergeDeepWith=eX.mergeWith,eX.withMutations=tF.withMutations,eX.asMutable=tF.asMutable,eX.asImmutable=tF.asImmutable,eX.__empty=e$,eX.__make=eQ,l(eZ,eJ),eZ.of=function(){return this(arguments)},eZ.fromKeys=function(t){return this(p(t).keySeq())},eZ.prototype.toString=function(){return this.__toString("OrderedSet {","}")},eZ.isOrderedSet=e0;var e1=eZ.prototype;function e2(t,e){var r=Object.create(e1);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e3(){return s||(s=e2(eg()))}function e6(t){return null==t?e9():e5(t)?t:e9().unshiftAll(t)}function e5(t){return!!(t&&t[e8])}e1[x]=!0,e1.__empty=e3,e1.__make=e2,l(e6,tm),e6.of=function(){return this(arguments)},e6.prototype.toString=function(){return this.__toString("Stack [","]")},e6.prototype.get=function(t,e){var r=this._head;for(t=B(this,t);r&&t--;)r=r.next;return r?r.value:e},e6.prototype.peek=function(){return this._head&&this._head.value},e6.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):e4(t,e)},e6.prototype.pushAll=function(t){if(0===(t=d(t)).size)return this;tB(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):e4(e,r)},e6.prototype.pop=function(){return this.slice(1)},e6.prototype.unshift=function(){return this.push.apply(this,arguments)},e6.prototype.unshiftAll=function(t){return this.pushAll(t)},e6.prototype.shift=function(){return this.pop.apply(this,arguments)},e6.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):e9()},e6.prototype.slice=function(t,e){if(R(t,e,this.size))return this;var r,n=L(t,this.size,0);if(L(e,r=this.size,r)!==this.size)return tm.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):e4(i,o)},e6.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?e4(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},e6.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},e6.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new P(function(){if(n){var e=n.value;return n=n.next,j(t,r++,e)}return U()})},e6.isStack=e5;var e8="@@__IMMUTABLE_STACK__@@",e7=e6.prototype;function e4(t,e,r,n){var i=Object.create(e7);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function e9(){return c||(c=e4(0))}function rt(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}e7[e8]=!0,e7.withMutations=tF.withMutations,e7.asMutable=tF.asMutable,e7.asImmutable=tF.asImmutable,e7.wasAltered=tF.wasAltered,h.Iterator=P,rt(h,{toArray:function(){tB(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new em(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 e_(this,!0)},toMap:function(){return tz(this.toKeyedSeq())},toObject:function(){tB(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return ep(this.toKeyedSeq())},toOrderedSet:function(){return eZ(v(this)?this.valueSeq():this)},toSet:function(){return eJ(v(this)?this.valueSeq():this)},toSetSeq:function(){return new eS(this)},toSeq:function(){return _(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return e6(v(this)?this.valueSeq():this)},toList:function(){return t4(v(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(){var t=f.call(arguments,0);return eT(this,function(t,e){var r=v(t),n=[t].concat(e).map(function(t){return g(t)?r&&(t=p(t)):t=r?to(t):tu(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&v(i)||_(t)&&_(i))return i}var o=new Z(n);return r?o=o.toKeyedSeq():_(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}(this,t))},includes:function(t){return this.some(function(e){return th(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){tB(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 eT(this,eE(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 tB(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){tB(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(0)},map:function(t,e){return eT(this,ek(this,t,e))},reduce:function(t,e,r){var n,i;return tB(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 eT(this,ex(this,!0))},slice:function(t,e){return eT(this,eC(this,t,e,!0))},some:function(t,e){return!this.every(ro(t),e)},sort:function(t){return eT(this,eK(this,t))},values:function(){return this.__iterator(1)},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 T(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){var r,n;return r=this,n=tz().asMutable(),r.__iterate(function(i,o){n.update(t.call(e,i,o,r),0,function(t){return t+1})}),n.asImmutable()},equals:function(t){return tp(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Z(t._cache);var e=t.toSeq().map(ri).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(ro(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(z)},flatMap:function(t,e){var r,n;return eT(this,(r=this,n=eR(r),r.toSeq().map(function(i,o){return n(t.call(e,i,o,r))}).flatten(!0)))},flatten:function(t){return eT(this,eD(this,t,!0))},fromEntrySeq:function(){return new eb(this)},get:function(t,e){return this.find(function(e,r){return th(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=eq(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,C):C)===C)return e}return n},groupBy:function(t,e){var r,n,i,o;return r=this,n=v(r),i=(S(r)?ep():tz()).asMutable(),r.__iterate(function(o,u){i.update(t.call(e,o,u,r),function(t){return(t=t||[]).push(n?[u,o]:o),t})}),o=eR(r),i.map(function(t){return eT(r,o(t))})},has:function(t){return this.get(t,C)!==C},hasIn:function(t){return this.getIn(t,C)!==C},isSubset:function(t){return t="function"==typeof t.includes?t:h(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:h(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(rn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return eI(this,t)},maxBy:function(t,e){return eI(this,e,t)},min:function(t){return eI(this,t?ru(t):rc)},minBy:function(t,e){return eI(this,e?ru(e):rc,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return eT(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return eT(this,eO(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(ro(t),e)},sortBy:function(t,e){return eT(this,eK(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return eT(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){var r,n;return eT(this,(r=this,(n=eL(r)).__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return r.__iterate(function(r,i,a){return t.call(e,r,i,a)&&++u&&n(r,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=r.__iterator(2,i),a=!0;return new P(function(){if(!a)return U();var r=u.next();if(r.done)return r;var i=r.value,s=i[0],c=i[1];return t.call(e,c,s,o)?2===n?r:j(n,s,c,r):(a=!1,U())})},n))},takeUntil:function(t,e){return this.takeWhile(ro(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,r,n=S(t),i=v(t),o=+!!n;return e=t.__iterate(i?n?function(t,e){o=31*o+rf(tk(t),tk(e))|0}:function(t,e){o=o+rf(tk(t),tk(e))|0}:n?function(t){o=31*o+tk(t)|0}:function(t){o=o+tk(t)|0}),r=tb(r=o,0xcc9e2d51),r=tb(r<<15|r>>>-15,0x1b873593),r=((r=tb(r<<13|r>>>-13,5))+0xe6546b64|0)^e,r=tb(r^r>>>16,0x85ebca6b),r=tw((r=tb(r^r>>>13,0xc2b2ae35))^r>>>16)}(this))}});var re=h.prototype;re[b]=!0,re[q]=re.values,re.__toJS=re.toArray,re.__toStringMapper=ra,re.inspect=re.toSource=function(){return this.toString()},re.chain=re.flatMap,re.contains=re.includes;try{Object.defineProperty(re,"length",{get:function(){if(!h.noLengthWarning){var t;try{throw 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){}rt(p,{flip:function(){return eT(this,ew(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 th(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return th(e,t)})},mapEntries:function(t,e){var r=this,n=0;return eT(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return eT(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var rr=p.prototype;function rn(t,e){return e}function ri(t,e){return[e,t]}function ro(t){return function(){return!t.apply(this,arguments)}}function ru(t){return function(){return-t.apply(this,arguments)}}function ra(t){return"string"==typeof t?JSON.stringify(t):t}function rs(){return A(arguments)}function rc(t,e){return t<e?1:t>e?-1:0}function rf(t,e){return t^e+0x9e3779b9+(t<<6)+(t>>2)}return rr[w]=!0,rr[q]=re.entries,rr.__toJS=re.toObject,rr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+ra(t)},rt(d,{toKeyedSeq:function(){return new e_(this,!1)},filter:function(t,e){return eT(this,eE(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 eT(this,ex(this,!1))},slice:function(t,e){return eT(this,eC(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=L(t,t<0?this.count():this.size,0);var n=this.slice(0,t);return eT(this,1===r?n:n.concat(A(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 eT(this,eD(this,t,!1))},get:function(t,e){return(t=B(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=B(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){var e,r;return eT(this,(e=this,(r=eL(e)).size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return e.__iterate(function(e,n){return(!o||!1!==r(t,o++,i))&&!1!==r(e,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=e.__iterator(1,n),u=0;return new P(function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?j(r,u++,t):j(r,u++,i.value,i)})},r))},interleave:function(){var t=[this].concat(A(arguments)),e=eA(this.toSeq(),Y.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),eT(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return eT(this,eO(this,t,e,!1))},zip:function(){var t=[this].concat(A(arguments));return eT(this,eA(this,rs,t))},zipWith:function(t){var e=A(arguments);return e[0]=this,eT(this,eA(this,t,e))}}),d.prototype[k]=!0,d.prototype[x]=!0,rt(y,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),y.prototype.has=re.includes,rt(X,p.prototype),rt(Y,d.prototype),rt(Q,y.prototype),rt(t_,p.prototype),rt(tm,d.prototype),rt(tS,y.prototype),{Iterable:h,Seq:G,Collection:tv,Map:tz,OrderedMap:ep,List:t4,Stack:e6,Set:eJ,OrderedSet:eZ,Record:eP,Range:tg,Repeat:td,is:th,fromJS:tf}}()},588918:(t,e,r)=>{"use strict";var n=r(540317);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},595433:(t,e,r)=>{"use strict";var n=r(828525);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"A"===t.nodeName}},596041:(t,e,r)=>{"use strict";var n=r(843653),i=r(989926);t.exports=function(t){var e=t.editorContainer;return e||n(!1),i(e.firstChild)||n(!1),e.firstChild}},596761:t=>{"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},599131:(t,e,r)=>{"use strict";var n=r(789854),i=r(691722);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=i(e);if(null!=r)return r;e=e.parentNode}return null}},601963:(t,e,r)=>{"use strict";var n=r(120028),i=r(731651),o=r(200867),u=r(126465),a=r(574148),s=r(646334),c=r(846571),f=r(388548),l=r(434741),h=r(729251);function p(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:f(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function d(t,e,r){var n=i.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return o.push(t,n,"insert-fragment")}t.exports={onDragEnd:function(t){t.exitCurrentMode(),p(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),f=t._latestEditorState,y=function(t,e){var r=null,n=null,i=a(t.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(t.x,t.y);r=o.startContainer,n=o.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent,n=t.rangeOffset}r=h(r),n=h(n);var s=h(u(r));return c(e,s,n,s,n)}(e.nativeEvent,f);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=y){var g,v,_,m=r.getFiles();if(m.length>0){if(t.props.handleDroppedFiles&&l(t.props.handleDroppedFiles(y,m)))return;s(m,function(e){e&&t.update(d(f,y,e))});return}var S=t._internalDrag?"internal":"external";t.props.handleDrop&&l(t.props.handleDrop(y,r,S))||(t._internalDrag?t.update((g=f,v=y,_=i.moveText(g.getCurrentContent(),g.getSelection(),v),o.push(g,_,"insert-fragment"))):t.update(d(f,y,r.getText()))),p(t)}}}},604433:t=>{"use strict";
1t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},605419:(t,e,r)=>{"use strict";var n=r(462155),i=r(902177),o=r(274126),u=r(791245),a=r(378021),s=r(540317),c=r(837477),f=r(767504),l=r(371528),h=r(785603),p=r(540315);function d(t,e,r){var n=u.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new o(e.clipboardData);if(!r.isRichText()){var y=r.getFiles(),g=r.getText();if(y.length>0){if(t.props.handlePastedFiles&&h(t.props.handlePastedFiles(y)))return;l(y,function(e){if(e=e||g){var r=t._latestEditorState,o=p(e),l=i.create({style:r.getCurrentInlineStyle(),entity:f(r.getCurrentContent(),r.getSelection())}),h=c.getCurrentBlockType(r),d=a.processText(o,l,h),y=n.createFromArray(d),v=u.replaceWithFragment(r.getCurrentContent(),r.getSelection(),y);t.update(s.push(r,v,"insert-fragment"))}});return}}var v=[],_=r.getText(),m=r.getHTML(),S=t._latestEditorState;if(t.props.formatPastedText){var b=t.props.formatPastedText(_,m),w=b.text,k=b.html;_=w,m=k}if(!(t.props.handlePastedText&&h(t.props.handlePastedText(_,m,S)))){if(_&&(v=p(_)),!t.props.stripPastedStyles){var x,E,C,O=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&O){if((null==(C=m)?void 0:C.indexOf(t.getEditorKey()))!==-1||1===v.length&&1===O.size&&O.first().getText()===_)return void t.update(d(t._latestEditorState,O))}else{if(O&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&(x=v,E=O,x.length===E.size&&E.valueSeq().every(function(t,e){return t.getText()===x[e]})))return void t.update(d(t._latestEditorState,O))}if(m){var D=a.processHTML(m,t.props.blockRenderMap);if(D){var K=D.contentBlocks,I=D.entityMap;if(K){var M=n.createFromArray(K);t.update(d(t._latestEditorState,M,I));return}}}t.setClipboard(null)}if(v.length){var A=i.create({style:S.getCurrentInlineStyle(),entity:f(S.getCurrentContent(),S.getSelection())}),T=c.getCurrentBlockType(S),B=a.processText(v,A,T),z=n.createFromArray(B);t.update(d(t._latestEditorState,z))}}}},610037:(t,e,r)=>{"use strict";var n,i=r(681649),o=r(582966),u=r(222813),a=o.OrderedMap;t.exports={getDirectionMap:function(t,e){n?n.reset():n=new i;var r=t.getBlockMap(),s=r.valueSeq().map(function(t){return u(n).getDirection(t.getText())}),c=a(r.keySeq().zip(s));return null!=e&&o.is(e,c)?e:c}}},610075:(t,e,r)=>{"use strict";var n,i=r(497443),o=r(822428),u=r(729251),a=o.OrderedMap;t.exports={getDirectionMap:function(t,e){n?n.reset():n=new i;var r=t.getBlockMap(),s=r.valueSeq().map(function(t){return u(n).getDirection(t.getText())}),c=a(r.keySeq().zip(s));return null!=e&&o.is(e,c)?e:c}}},614343:t=>{"use strict";t.exports=function(t,e,r,n){var i=e.getStartKey(),o=e.getEndKey(),u=t.getBlockMap(),a=u.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat([[o,u.get(o)]]).map(function(t){var e=t.getDepth()+r;return e=Math.max(0,Math.min(e,n)),t.set("depth",e)});return u=u.merge(a),t.merge({blockMap:u,selectionBefore:e,selectionAfter:e})}},617432:(t,e,r)=>{"use strict";t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},e}((0,r(582966).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}))},617509:(t,e,r)=>{"use strict";var n=r(274126),i=r(791245),o=r(540317),u=r(599131),a=r(789854),s=r(371528),c=r(127877),f=r(569230),l=r(785603),h=r(222813);function p(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:f(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function d(t,e,r){var n=i.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return o.push(t,n,"insert-fragment")}t.exports={onDragEnd:function(t){t.exitCurrentMode(),p(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),f=t._latestEditorState,y=function(t,e){var r=null,n=null,i=a(t.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(t.x,t.y);r=o.startContainer,n=o.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent,n=t.rangeOffset}r=h(r),n=h(n);var s=h(u(r));return c(e,s,n,s,n)}(e.nativeEvent,f);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=y){var g,v,_,m=r.getFiles();if(m.length>0){if(t.props.handleDroppedFiles&&l(t.props.handleDroppedFiles(y,m)))return;s(m,function(e){e&&t.update(d(f,y,e))});return}var S=t._internalDrag?"internal":"external";t.props.handleDrop&&l(t.props.handleDrop(y,r,S))||(t._internalDrag?t.update((g=f,v=y,_=i.moveText(g.getCurrentContent(),g.getSelection(),v),o.push(g,_,"insert-fragment"))):t.update(d(f,y,r.getText()))),p(t)}}}},619320:(t,e,r)=>{"use strict";var n=r(5621),i=r(291009),o=r(462619),u=o.isPlatform("Mac OS X"),a=u&&o.isBrowser("Firefox < 29"),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function f(t){return u&&t.altKey||c(t)}t.exports=function(t){switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return u&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return u&&c(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return u&&c(t)?"backspace-word":null;case 89:if(c(t))return u?"secondary-paste":"redo";return null;case 90:return(s(t)?t.shiftKey?"redo":"undo":null)||null;case i.RETURN:return"split-block";case i.DELETE:return!u&&t.shiftKey?null:f(t)?"delete-word":"delete";case i.BACKSPACE:return s(t)&&u?"backspace-to-start-of-line":f(t)?"backspace-word":"backspace";case i.LEFT:return a&&s(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return a&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},625937:t=>{"use strict";
vendor: 24,155 bytes, line 1
1t.exports=function(t){return"undefined"!=typeof window&&!!window.__DRAFT_GKX&&!!window.__DRAFT_GKX[t]}},626256:function(t){t.exports=function(){"use strict";var t,e,r,n,i,o,u,a,s,c,f=Array.prototype.slice;function l(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function h(t){return g(t)?t:G(t)}function p(t){return v(t)?t:X(t)}function d(t){return _(t)?t:Y(t)}function y(t){return g(t)&&!m(t)?t:Q(t)}function g(t){return!!(t&&t[b])}function v(t){return!!(t&&t[w])}function _(t){return!!(t&&t[k])}function m(t){return v(t)||_(t)}function S(t){return!!(t&&t[x])}l(p,h),l(d,h),l(y,h),h.isIterable=g,h.isKeyed=v,h.isIndexed=_,h.isAssociative=m,h.isOrdered=S,h.Keyed=p,h.Indexed=d,h.Set=y;var b="@@__IMMUTABLE_ITERABLE__@@",w="@@__IMMUTABLE_KEYED__@@",k="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",E="delete",C={},O={value:!1},D={value:!1};function K(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function M(){}function A(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function T(t){return void 0===t.size&&(t.size=t.__iterate(z)),t.size}function B(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||0xffffffff===r)return NaN;e=r}return e<0?T(t)+e:e}function z(){return!0}function R(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function L(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var F="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",q=F||N;function P(t){this.next=t}function j(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 U(){return{value:void 0,done:!0}}function H(t){return t&&"function"==typeof t.next}function W(t){var e=J(t);return e&&e.call(t)}function J(t){var e=t&&(F&&t[F]||t[N]);if("function"==typeof e)return e}function V(t){return t&&"number"==typeof t.length}function G(t){return null==t?ti():g(t)?t.toSeq():function(t){var e=ta(t)||"object"==typeof t&&new tt(t);if(!e)throw TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function X(t){return null==t?ti().toKeyedSeq():g(t)?v(t)?t.toSeq():t.fromEntrySeq():to(t)}function Y(t){return null==t?ti():g(t)?v(t)?t.entrySeq():t.toIndexedSeq():tu(t)}function Q(t){return(null==t?ti():!g(t)?tu(t):v(t)?t.entrySeq():t).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[q]=function(){return this},l(G,h),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(t,e){return ts(this,t,e,!0)},G.prototype.__iterator=function(t,e){return tc(this,t,e,!0)},l(X,G),X.prototype.toKeyedSeq=function(){return this},l(Y,G),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return ts(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return tc(this,t,e,!1)},l(Q,G),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},G.isSeq=tn,G.Keyed=X,G.Set=Q,G.Indexed=Y;var $="@@__IMMUTABLE_SEQ__@@";function Z(t){this._array=t,this.size=t.length}function tt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function te(t){this._iterable=t,this.size=t.length||t.size}function tr(t){this._iterator=t,this._iteratorCache=[]}function tn(t){return!!(t&&t[$])}function ti(){return t||(t=new Z([]))}function to(t){var e=Array.isArray(t)?new Z(t).fromEntrySeq():H(t)?new tr(t).fromEntrySeq():J(t)?new te(t).fromEntrySeq():"object"==typeof t?new tt(t):void 0;if(!e)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function tu(t){var e=ta(t);if(!e)throw TypeError("Expected Array or iterable object of values: "+t);return e}function ta(t){return V(t)?new Z(t):H(t)?new tr(t):J(t)?new te(t):void 0}function ts(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var a=i[r?o-u:u];if(!1===e(a[1],n?a[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function tc(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new P(function(){var t=i[r?o-u:u];return u++>o?U():j(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function tf(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,Y(r).map(function(n,i){return t(e,n,i,r)})):tl(r)?e.call(i,n,X(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):function t(e){return Array.isArray(e)?Y(e).map(t).toList():tl(e)?X(e).map(t).toMap():e}(t)}function tl(t){return t&&(t.constructor===Object||void 0===t.constructor)}function th(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 tp(t,e){if(t===e)return!0;if(!g(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||v(t)!==v(e)||_(t)!==_(e)||S(t)!==S(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!m(t);if(S(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&th(i[1],t)&&(r||th(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 u=!0,a=e.__iterate(function(e,n){if(r?!t.has(e):i?!th(e,t.get(n,C)):!th(t.get(n,C),e))return u=!1,!1});return u&&t.size===a}function td(t,r){if(!(this instanceof td))return new td(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(e)return e;e=this}}function ty(t,e){if(!t)throw Error(e)}function tg(t,e,n){if(!(this instanceof tg))return new tg(t,e,n);if(ty(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(r)return r;r=this}}function tv(){throw TypeError("Abstract")}function t_(){}function tm(){}function tS(){}G.prototype[$]=!0,l(Z,Y),Z.prototype.get=function(t,e){return this.has(t)?this._array[B(this,t)]:e},Z.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},Z.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new P(function(){return i>n?U():j(t,i,r[e?n-i++:i++])})},l(tt,X),tt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},tt.prototype.has=function(t){return this._object.hasOwnProperty(t)},tt.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},tt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new P(function(){var u=n[e?i-o:o];return o++>i?U():j(t,u,r[u])})},tt.prototype[x]=!0,l(te,Y),te.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r,n=W(this._iterable),i=0;if(H(n))for(;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},te.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!H(r))return new P(U);var n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value)})},l(tr,Y),tr.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},tr.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new P(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return j(t,i,n[i++])})},l(td,Y),td.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},td.prototype.get=function(t,e){return this.has(t)?this._value:e},td.prototype.includes=function(t){return th(this._value,t)},td.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:new td(this._value,L(e,r,r)-L(t,r,0))},td.prototype.reverse=function(){return this},td.prototype.indexOf=function(t){return th(this._value,t)?0:-1},td.prototype.lastIndexOf=function(t){return th(this._value,t)?this.size:-1},td.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},td.prototype.__iterator=function(t,e){var r=this,n=0;return new P(function(){return n<r.size?j(t,n++,r._value):U()})},td.prototype.equals=function(t){return t instanceof td?th(this._value,t._value):tp(t)},l(tg,Y),tg.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},tg.prototype.get=function(t,e){return this.has(t)?this._start+B(this,t)*this._step:e},tg.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tg.prototype.slice=function(t,e){var r;return R(t,e,this.size)?this:(t=L(t,this.size,0),(e=L(e,r=this.size,r))<=t)?new tg(0,0):new tg(this.get(t,this._end),this.get(e,this._end),this._step)},tg.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},tg.prototype.lastIndexOf=function(t){return this.indexOf(t)},tg.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},tg.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 P(function(){var u=i;return i+=e?-n:n,o>r?U():j(t,o++,u)})},tg.prototype.equals=function(t){return t instanceof tg?this._start===t._start&&this._end===t._end&&this._step===t._step:tp(this,t)},l(tv,h),l(t_,tv),l(tm,tv),l(tS,tv),tv.Keyed=t_,tv.Indexed=tm,tv.Set=tS;var tb="function"==typeof Math.imul&&-2===Math.imul(0xffffffff,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 tw(t){return t>>>1&0x40000000|0xbfffffff&t}function tk(t){if(!1===t||null==t||"function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!=t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=0xffffffff*t);t>0xffffffff;)t/=0xffffffff,r^=t;return tw(r)}if("string"===e){return t.length>tI?(void 0===(o=tT[i=t])&&(o=tx(i),tA===tM&&(tA=0,tT={}),tA++,tT[i]=o),o):tx(t)}if("function"==typeof t.hashCode)return t.hashCode();if("object"===e){var i,o,u,a=t;if(tO&&void 0!==(u=n.get(a))||void 0!==(u=a[tK])||!tC&&(void 0!==(u=a.propertyIsEnumerable&&a.propertyIsEnumerable[tK])||void 0!==(u=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(a))))return u;if(u=++tD,0x40000000&tD&&(tD=0),tO)n.set(a,u);else if(void 0!==tE&&!1===tE(a))throw Error("Non-extensible objects are not allowed as keys.");else if(tC)Object.defineProperty(a,tK,{enumerable:!1,configurable:!1,writable:!1,value:u});else if(void 0!==a.propertyIsEnumerable&&a.propertyIsEnumerable===a.constructor.prototype.propertyIsEnumerable)a.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},a.propertyIsEnumerable[tK]=u;else if(void 0!==a.nodeType)a[tK]=u;else throw Error("Unable to set a non-enumerable property on object.");return u}if("function"==typeof t.toString)return tx(t.toString());throw Error("Value type "+e+" cannot be hashed.")}function tx(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tw(e)}var tE=Object.isExtensible,tC=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),tO="function"==typeof WeakMap;tO&&(n=new WeakMap);var tD=0,tK="__immutablehash__";"function"==typeof Symbol&&(tK=Symbol(tK));var tI=16,tM=255,tA=0,tT={};function tB(t){ty(t!==1/0,"Cannot perform this action with an infinite size.")}function tz(t){return null==t?tG():tR(t)&&!S(t)?t:tG().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function tR(t){return!!(t&&t[tL])}l(tz,t_),tz.of=function(){var t=f.call(arguments,0);return tG().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},tz.prototype.toString=function(){return this.__toString("Map {","}")},tz.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},tz.prototype.set=function(t,e){return tX(this,t,e)},tz.prototype.setIn=function(t,e){return this.updateIn(t,C,function(){return e})},tz.prototype.remove=function(t){return tX(this,t,C)},tz.prototype.deleteIn=function(t){return this.updateIn(t,function(){return C})},tz.prototype.update=function(t,e,r){return 1==arguments.length?t(this):this.updateIn([t],e,r)},tz.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===C,u=r.next();if(u.done){var a=o?n:e,s=i(a);return s===a?e:s}ty(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?C:e.get(c,C),l=t(f,r,n,i);return l===f?e:l===C?e.remove(c):(o?tG():e).set(c,l)}(this,eq(t),e,r);return n===C?void 0:n},tz.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):tG()},tz.prototype.merge=function(){return tZ(this,void 0,arguments)},tz.prototype.mergeWith=function(t){var e=f.call(arguments,1);return tZ(this,t,e)},tz.prototype.mergeIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},tz.prototype.mergeDeep=function(){return tZ(this,t0,arguments)},tz.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return tZ(this,t1(t),e)},tz.prototype.mergeDeepIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},tz.prototype.sort=function(t){return ep(eK(this,t))},tz.prototype.sortBy=function(t,e){return ep(eK(this,e,t))},tz.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},tz.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},tz.prototype.asImmutable=function(){return this.__ensureOwner()},tz.prototype.wasAltered=function(){return this.__altered},tz.prototype.__iterator=function(t,e){return new tH(this,t,e)},tz.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},tz.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?tV(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},tz.isMap=tR;var tL="@@__IMMUTABLE_MAP__@@",tF=tz.prototype;function tN(t,e){this.ownerID=t,this.entries=e}function tq(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function tP(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function tj(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function tU(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function tH(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&tJ(t._root)}function tW(t,e){return j(t,e[0],e[1])}function tJ(t,e){return{node:t,index:0,__prev:e}}function tV(t,e,r,n){var i=Object.create(tF);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function tG(){return i||(i=tV(0))}function tX(t,e,r){if(t._root){var n,i,o=K(O),u=K(D);if(n=tY(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===C?-1:1:0)}else{if(r===C)return t;i=1,n=new tN(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?tV(i,n):tG()}function tY(t,e,r,n,i,o,u,a){return t?t.update(e,r,n,i,o,u,a):o===C?t:(I(a),I(u),new tU(e,n,[i,o]))}function tQ(t){return t.constructor===tU||t.constructor===tj}function t$(t,e,r,n,i){if(t.keyHash===n)return new tj(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&31,a=(0===r?n:n>>>r)&31,s=u===a?[t$(t,e,r+5,n,i)]:(o=new tU(e,n,i),u<a?[t,o]:[o,t]);return new tq(e,1<<u|1<<a,s)}function tZ(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],u=p(o);g(o)||(u=u.map(function(t){return tf(t)})),n.push(u)}return t2(t,e,n)}function t0(t,e,r){return t&&t.mergeDeep&&g(e)?t.mergeDeep(e):th(t,e)?t:e}function t1(t){return function(e,r,n){if(e&&e.mergeDeepWith&&g(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return th(e,i)?e:i}}function t2(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,C,function(t){return t===C?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 t3(t){return t-=t>>1&0x55555555,t=(t=(0x33333333&t)+(t>>2&0x33333333))+(t>>4)&0xf0f0f0f,t+=t>>8,127&(t+=t>>16)}function t6(t,e,r,n){var i=n?t:A(t);return i[e]=r,i}tF[tL]=!0,tF[E]=tF.remove,tF.removeIn=tF.deleteIn,tN.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tN.prototype.update=function(t,e,r,n,i,o,u){for(var a=i===C,s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),!a||1!==s.length){if(!l&&!a&&s.length>=t5){var h=t,p=s,d=n,y=i;h||(h=new M);for(var g=new tU(h,tk(d),[d,y]),v=0;v<p.length;v++){var _=p[v];g=g.update(h,0,void 0,_[0],_[1])}return g}var m=t&&t===this.ownerID,S=m?s:A(s);return(l?a?c===f-1?S.pop():S[c]=S.pop():S[c]=[n,i]:S.push([n,i]),m)?(this.entries=S,this):new tN(t,S)}},tq.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=1<<((0===t?e:e>>>t)&31),o=this.bitmap;return(o&i)==0?n:this.nodes[t3(o&i-1)].get(t+5,e,r,n)},tq.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=1<<a,c=this.bitmap,f=(c&s)!=0;if(!f&&i===C)return this;var l=t3(c&s-1),h=this.nodes,p=f?h[l]:void 0,d=tY(p,t,e+5,r,n,i,o,u);if(d===p)return this;if(!f&&d&&h.length>=t8){for(var y=t,g=h,v=c,_=a,m=d,S=0,b=Array(32),w=0;0!==v;w++,v>>>=1)b[w]=1&v?g[S++]:void 0;return b[_]=m,new tP(y,S+1,b)}if(f&&!d&&2===h.length&&tQ(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&tQ(d))return d;var k=t&&t===this.ownerID,x=f?d?c:c^s:c|s,E=f?d?t6(h,l,d,k):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,l,k):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,a=0;a<i;a++)a===e?(o[a]=r,u=-1):o[a]=t[a+u];return o}(h,l,d,k);return k?(this.bitmap=x,this.nodes=E,this):new tq(t,x,E)},tP.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=(0===t?e:e>>>t)&31,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},tP.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=i===C,c=this.nodes,f=c[a];if(s&&!f)return this;var l=tY(f,t,e+5,r,n,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h<t7)return function(t,e,r,n){for(var i=0,o=0,u=Array(r),a=0,s=1,c=e.length;a<c;a++,s<<=1){var f=e[a];void 0!==f&&a!==n&&(i|=s,u[o++]=f)}return new tq(t,i,u)}(t,c,h,a)}else h++;var p=t&&t===this.ownerID,d=t6(c,a,l,p);return p?(this.count=h,this.nodes=d,this):new tP(t,h,d)},tj.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tj.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=i===C;if(r!==this.keyHash)return a?this:(I(u),I(o),t$(this,t,e,r,[n,i]));for(var s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),a&&2===f)return new tU(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,p=h?s:A(s);return(l?a?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h)?(this.entries=p,this):new tj(t,this.keyHash,p)},tU.prototype.get=function(t,e,r,n){return th(r,this.entry[0])?this.entry[1]:n},tU.prototype.update=function(t,e,r,n,i,o,u){var a=i===C,s=th(n,this.entry[0]);return(s?i===this.entry[1]:a)?this:(I(u),a)?void I(o):s?t&&t===this.ownerID?(this.entry[1]=i,this):new tU(t,this.keyHash,[n,i]):(I(o),t$(this,t,e,tk(n),[n,i]))},tN.prototype.iterate=tj.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},tq.prototype.iterate=tP.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}},tU.prototype.iterate=function(t,e){return t(this.entry)},l(tH,P),tH.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 tW(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return tW(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 tW(t,o.entry);e=this._stack=tJ(o,e)}continue}e=this._stack=this._stack.__prev}return U()};var t5=8,t8=16,t7=8;function t4(t){var e=eu();if(null==t)return e;if(t9(t))return t;var r=d(t),n=r.size;return 0===n?e:(tB(n),n>0&&n<32)?eo(0,n,5,null,new er(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})})}function t9(t){return!!(t&&t[et])}l(t4,tm),t4.of=function(){return this(arguments)},t4.prototype.toString=function(){return this.__toString("List [","]")},t4.prototype.get=function(t,e){if((t=B(this,t))>=0&&t<this.size){var r=ec(this,t+=this._origin);return r&&r.array[31&t]}return e},t4.prototype.set=function(t,e){return function(t,e,r){if((e=B(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?ef(t,e).set(0,r):ef(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=K(D);return(e>=eh(t._capacity)?n=ea(n,t.__ownerID,0,e,r,o):i=ea(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):eo(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},t4.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t4.prototype.insert=function(t,e){return this.splice(t,0,e)},t4.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):eu()},t4.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){ef(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},t4.prototype.pop=function(){return ef(this,0,-1)},t4.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){ef(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},t4.prototype.shift=function(){return ef(this,1)},t4.prototype.merge=function(){return el(this,void 0,arguments)},t4.prototype.mergeWith=function(t){var e=f.call(arguments,1);return el(this,t,e)},t4.prototype.mergeDeep=function(){return el(this,t0,arguments)},t4.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return el(this,t1(t),e)},t4.prototype.setSize=function(t){return ef(this,0,t)},t4.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:ef(this,L(t,r,0),L(e,r,r))},t4.prototype.__iterator=function(t,e){var r=0,n=ei(this,e);return new P(function(){var e=n();return e===en?U():j(t,r++,e)})},t4.prototype.__iterate=function(t,e){for(var r,n=0,i=ei(this,e);(r=i())!==en&&!1!==t(r,n++,this););return n},t4.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?eo(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},t4.isList=t9;
1var et="@@__IMMUTABLE_LIST__@@",ee=t4.prototype;function er(t,e){this.array=t,this.ownerID=e}ee[et]=!0,ee[E]=ee.remove,ee.setIn=tF.setIn,ee.deleteIn=ee.removeIn=tF.removeIn,ee.update=tF.update,ee.updateIn=tF.updateIn,ee.mergeIn=tF.mergeIn,ee.mergeDeepIn=tF.mergeDeepIn,ee.withMutations=tF.withMutations,ee.asMutable=tF.asMutable,ee.asImmutable=tF.asImmutable,ee.wasAltered=tF.wasAltered,er.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n,i=r>>>e&31;if(i>=this.array.length)return new er([],t);var o=0===i;if(e>0){var u=this.array[i];if((n=u&&u.removeBefore(t,e-5,r))===u&&o)return this}if(o&&!n)return this;var a=es(this,t);if(!o)for(var s=0;s<i;s++)a.array[s]=void 0;return n&&(a.array[i]=n),a},er.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var u=es(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var en={};function ei(t,e){var r=t._origin,n=t._capacity,i=eh(n),o=t._tail;return function t(u,a,s){var c,f,l,h,p,d,y,g,v,_,m,S;return 0===a?(c=u,l=(f=s)===i?o&&o.array:c&&c.array,h=f>r?0:r-f,(p=n-f)>32&&(p=32),function(){if(h===p)return en;var t=e?--p:h++;return l&&l[t]}):(d=u,y=a,g=s,_=d&&d.array,m=g>r?0:r-g>>y,(S=(n-g>>y)+1)>32&&(S=32),function(){for(;;){if(v){var r=v();if(r!==en)return r;v=null}if(m===S)return en;var n=e?--S:m++;v=t(_&&_[n],y-5,g+(n<<y))}})}(t._root,t._level,0)}function eo(t,e,r,n,i,o,u){var a=Object.create(ee);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=u,a.__altered=!1,a}function eu(){return o||(o=eo(0,0,5))}function ea(t,e,r,n,i,o){var u,a=n>>>r&31,s=t&&a<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[a],f=ea(c,e,r-5,n,i,o);return f===c?t:((u=es(t,e)).array[a]=f,u)}return s&&t.array[a]===i?t:(I(o),u=es(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function es(t,e){return e&&t&&e===t.ownerID?t:new er(t?t.array.slice():[],e)}function ec(t,e){if(e>=eh(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&31],n-=5;return r}}function ef(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new M,i=t._origin,o=t._capacity,u=i+e,a=void 0===r?o:r<0?o+r:i+r;if(u===i&&a===o)return t;if(u>=a)return t.clear();for(var s=t._level,c=t._root,f=0;u+f<0;)c=new er(c&&c.array.length?[void 0,c]:[],n),s+=5,f+=1<<s;f&&(u+=f,i+=f,a+=f,o+=f);for(var l=eh(o),h=eh(a);h>=1<<s+5;)c=new er(c&&c.array.length?[c]:[],n),s+=5;var p=t._tail,d=h<l?ec(t,a-1):h>l?new er([],n):p;if(p&&h>l&&u<o&&p.array.length){for(var y=c=es(c,n),g=s;g>5;g-=5){var v=l>>>g&31;y=y.array[v]=es(y.array[v],n)}y.array[l>>
vendor: 29,717 bytes, line 1
1>5&31]=p}if(a<o&&(d=d&&d.removeAfter(n,0,a)),u>=h)u-=h,a-=h,s=5,c=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h<l){for(f=0;c;){var _=u>>>s&31;if(_!==h>>>s&31)break;_&&(f+=(1<<s)*_),s-=5,c=c.array[_]}c&&u>i&&(c=c.removeBefore(n,s,u-f)),c&&h<l&&(c=c.removeAfter(n,s,h-f)),f&&(u-=f,a-=f)}return t.__ownerID?(t.size=a-u,t._origin=u,t._capacity=a,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):eo(u,a,s,c,d)}function el(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var u=r[o],a=d(u);a.size>i&&(i=a.size),g(u)||(a=a.map(function(t){return tf(t)})),n.push(a)}return i>t.size&&(t=t.setSize(i)),t2(t,e,n)}function eh(t){return t<32?0:t-1>>>5<<5}function ep(t){return null==t?eg():ed(t)?t:eg().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function ed(t){return tR(t)&&S(t)}function ey(t,e,r,n){var i=Object.create(ep.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function eg(){return u||(u=ey(tG(),eu()))}function ev(t,e,r){var n,i,o=t._map,u=t._list,a=o.get(e),s=void 0!==a;if(r===C){if(!s)return t;u.size>=32&&u.size>=2*o.size?(n=(i=u.filter(function(t,e){return void 0!==t&&a!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===u.size-1?u.pop():u.set(a,void 0))}else if(s){if(r===u.get(a)[1])return t;n=o,i=u.set(a,[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):ey(n,i)}function e_(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function em(t){this._iter=t,this.size=t.size}function eS(t){this._iter=t,this.size=t.size}function eb(t){this._iter=t,this.size=t.size}function ew(t){var e=eL(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=eF,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(2===e){var n=t.__iterator(e,r);return new P(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(+(1!==e),r)},e}function ek(t,e,r){var n=eL(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,C);return o===C?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(2,i);return new P(function(){var i=o.next();if(i.done)return i;var u=i.value,a=u[0];return j(n,a,e.call(r,u[1],a,t),i)})},n}function ex(t,e){var r=eL(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ew(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=eF,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 eE(t,e,r,n){var i=eL(t);return n&&(i.has=function(n){var i=t.get(n,C);return i!==C&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,C);return o!==C&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,a=0;return t.__iterate(function(t,o,s){if(e.call(r,t,o,s))return a++,i(t,n?o:a-1,u)},o),a},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),a=0;return new P(function(){for(;;){var o=u.next();if(o.done)return o;var s=o.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return j(i,n?c:a++,f,o)}})},i}function eC(t,e,r,n){var i,o=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=o:r|=0),R(e,r,o))return t;var u=L(e,o,0),a=L(r,o,o);if(u!=u||a!=a)return eC(t.toSeq().cacheResult(),e,r,n);var s=a-u;s==s&&(i=s<0?0:s);var c=eL(t);return c.size=0===i?i:t.size&&i||void 0,!n&&tn(t)&&i>=0&&(c.get=function(e,r){return(e=B(this,e))>=0&&e<i?t.get(e+u,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===i)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;return t.__iterate(function(t,r){if(!(s&&(s=a++<u)))return c++,!1!==e(t,n?r:c-1,o)&&c!==i}),c},c.__iteratorUncached=function(e,r){if(0!==i&&r)return this.cacheResult().__iterator(e,r);var o=0!==i&&t.__iterator(e,r),a=0,s=0;return new P(function(){for(;a++<u;)o.next();if(++s>i)return U();var t=o.next();return n||1===e?t:0===e?j(e,s-1,void 0,t):j(e,s-1,t.value[1],t)})},c}function eO(t,e,r,n){var i=eL(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,s=0;return t.__iterate(function(t,o,c){if(!(a&&(a=e.call(r,t,o,c))))return s++,i(t,n?o:s-1,u)}),s},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(2,o),s=!0,c=0;return new P(function(){var t,o,f;do{if((t=a.next()).done)if(n||1===i)return t;else if(0===i)return j(i,c++,void 0,t);else return j(i,c++,t.value[1],t);var l=t.value;o=l[0],f=l[1],s&&(s=e.call(r,f,o,u))}while(s);return 2===i?t:j(i,o,f,t)})},i}function eD(t,e,r){var n=eL(t);return n.__iterateUncached=function(n,i){var o=0,u=!1;return!function t(a,s){var c=this;a.__iterate(function(i,a){return(!e||s<e)&&g(i)?t(i,s+1):!1===n(i,r?a:o++,c)&&(u=!0),!u},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],a=0;return new P(function(){for(;o;){var t=o.next();if(!1!==t.done){o=u.pop();continue}var s=t.value;if(2===n&&(s=s[1]),!((!e||u.length<e)&&g(s)))return r?t:j(n,a++,s,t);u.push(o),o=s.__iterator(n,i)}return U()})},n}function eK(t,e,r){e||(e=eN);var n=v(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?X(o):_(t)?Y(o):Q(o)}function eI(t,e,r){if(e||(e=eN),!r)return t.reduce(function(t,r){return eM(e,t,r)?r:t});var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return eM(e,t[1],r[1])?r:t});return n&&n[0]}function eM(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function eA(t,e,r){var n=eL(t);return n.size=new Z(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},n.__iteratorUncached=function(t,n){var i=r.map(function(t){return t=h(t),W(n?t.reverse():t)}),o=0,u=!1;return new P(function(){var r;return(u||(u=(r=i.map(function(t){return t.next()})).some(function(t){return t.done})),u)?U():j(t,o++,e.apply(null,r.map(function(t){return t.value})))})},n}function eT(t,e){return tn(t)?e:t.constructor(e)}function eB(t){if(t!==Object(t))throw TypeError("Expected [K, V] tuple: "+t)}function ez(t){return tB(t.size),T(t)}function eR(t){return v(t)?p:_(t)?d:y}function eL(t){return Object.create((v(t)?X:_(t)?Y:Q).prototype)}function eF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function eN(t,e){return t>e?1:t<e?-1:0}function eq(t){var e=W(t);if(!e){if(!V(t))throw TypeError("Expected iterable or array-like: "+t);e=W(h(t))}return e}function eP(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(eW.bind(void 0,t))}catch(t){}})(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=tz(o)},i=n.prototype=Object.create(ej);return i.constructor=n,n}l(ep,tz),ep.of=function(){return this(arguments)},ep.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ep.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},ep.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):eg()},ep.prototype.set=function(t,e){return ev(this,t,e)},ep.prototype.remove=function(t){return ev(this,t,C)},ep.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ep.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},ep.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},ep.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ey(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},ep.isOrderedMap=ed,ep.prototype[x]=!0,ep.prototype[E]=ep.prototype.remove,l(e_,X),e_.prototype.get=function(t,e){return this._iter.get(t,e)},e_.prototype.has=function(t){return this._iter.has(t)},e_.prototype.valueSeq=function(){return this._iter.valueSeq()},e_.prototype.reverse=function(){var t=this,e=ex(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e_.prototype.map=function(t,e){var r=this,n=ek(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e_.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?ez(this):0,function(i){return t(i,e?--r:r++,n)}),e)},e_.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?ez(this):0;return new P(function(){var i=r.next();return i.done?i:j(t,e?--n:n++,i.value,i)})},e_.prototype[x]=!0,l(em,Y),em.prototype.includes=function(t){return this._iter.includes(t)},em.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},em.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value,e)})},l(eS,Q),eS.prototype.has=function(t){return this._iter.includes(t)},eS.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},eS.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){var e=r.next();return e.done?e:j(t,e.value,e.value,e)})},l(eb,X),eb.prototype.entrySeq=function(){return this._iter.toSeq()},eb.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){eB(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},eb.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){eB(n);var i=g(n);return j(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},em.prototype.cacheResult=e_.prototype.cacheResult=eS.prototype.cacheResult=eb.prototype.cacheResult=eF,l(eP,t_),eP.prototype.toString=function(){return this.__toString(eH(this)+" {","}")},eP.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},eP.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},eP.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=eU(this,tG()))},eP.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+eH(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:eU(this,r)},eP.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:eU(this,e)},eP.prototype.wasAltered=function(){return this._map.wasAltered()},eP.prototype.__iterator=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},eP.prototype.__iterate=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},eP.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?eU(this,e,t):(this.__ownerID=t,this._map=e,this)};var ej=eP.prototype;function eU(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function eH(t){return t._name||t.constructor.name||"Record"}function eW(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ty(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function eJ(t){return null==t?e$():eV(t)&&!S(t)?t:e$().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function eV(t){return!!(t&&t[eG])}ej[E]=ej.remove,ej.deleteIn=ej.removeIn=tF.removeIn,ej.merge=tF.merge,ej.mergeWith=tF.mergeWith,ej.mergeIn=tF.mergeIn,ej.mergeDeep=tF.mergeDeep,ej.mergeDeepWith=tF.mergeDeepWith,ej.mergeDeepIn=tF.mergeDeepIn,ej.setIn=tF.setIn,ej.update=tF.update,ej.updateIn=tF.updateIn,ej.withMutations=tF.withMutations,ej.asMutable=tF.asMutable,ej.asImmutable=tF.asImmutable,l(eJ,tS),eJ.of=function(){return this(arguments)},eJ.fromKeys=function(t){return this(p(t).keySeq())},eJ.prototype.toString=function(){return this.__toString("Set {","}")},eJ.prototype.has=function(t){return this._map.has(t)},eJ.prototype.add=function(t){return eY(this,this._map.set(t,!0))},eJ.prototype.remove=function(t){return eY(this,this._map.remove(t))},eJ.prototype.clear=function(){return eY(this,this._map.clear())},eJ.prototype.union=function(){var t=f.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)y(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},eJ.prototype.intersect=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},eJ.prototype.subtract=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},eJ.prototype.merge=function(){return this.union.apply(this,arguments)},eJ.prototype.mergeWith=function(t){var e=f.call(arguments,1);return this.union.apply(this,e)},eJ.prototype.sort=function(t){return eZ(eK(this,t))},eJ.prototype.sortBy=function(t,e){return eZ(eK(this,e,t))},eJ.prototype.wasAltered=function(){return this._map.wasAltered()},eJ.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},eJ.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},eJ.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)},eJ.isSet=eV;var eG="@@__IMMUTABLE_SET__@@",eX=eJ.prototype;function eY(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 eQ(t,e){var r=Object.create(eX);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e$(){return a||(a=eQ(tG()))}function eZ(t){return null==t?e3():e0(t)?t:e3().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function e0(t){return eV(t)&&S(t)}eX[eG]=!0,eX[E]=eX.remove,eX.mergeDeep=eX.merge,eX.mergeDeepWith=eX.mergeWith,eX.withMutations=tF.withMutations,eX.asMutable=tF.asMutable,eX.asImmutable=tF.asImmutable,eX.__empty=e$,eX.__make=eQ,l(eZ,eJ),eZ.of=function(){return this(arguments)},eZ.fromKeys=function(t){return this(p(t).keySeq())},eZ.prototype.toString=function(){return this.__toString("OrderedSet {","}")},eZ.isOrderedSet=e0;var e1=eZ.prototype;function e2(t,e){var r=Object.create(e1);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e3(){return s||(s=e2(eg()))}function e6(t){return null==t?e9():e5(t)?t:e9().unshiftAll(t)}function e5(t){return!!(t&&t[e8])}e1[x]=!0,e1.__empty=e3,e1.__make=e2,l(e6,tm),e6.of=function(){return this(arguments)},e6.prototype.toString=function(){return this.__toString("Stack [","]")},e6.prototype.get=function(t,e){var r=this._head;for(t=B(this,t);r&&t--;)r=r.next;return r?r.value:e},e6.prototype.peek=function(){return this._head&&this._head.value},e6.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):e4(t,e)},e6.prototype.pushAll=function(t){if(0===(t=d(t)).size)return this;tB(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):e4(e,r)},e6.prototype.pop=function(){return this.slice(1)},e6.prototype.unshift=function(){return this.push.apply(this,arguments)},e6.prototype.unshiftAll=function(t){return this.pushAll(t)},e6.prototype.shift=function(){return this.pop.apply(this,arguments)},e6.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):e9()},e6.prototype.slice=function(t,e){if(R(t,e,this.size))return this;var r,n=L(t,this.size,0);if(L(e,r=this.size,r)!==this.size)return tm.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):e4(i,o)},e6.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?e4(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},e6.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},e6.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new P(function(){if(n){var e=n.value;return n=n.next,j(t,r++,e)}return U()})},e6.isStack=e5;var e8="@@__IMMUTABLE_STACK__@@",e7=e6.prototype;function e4(t,e,r,n){var i=Object.create(e7);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function e9(){return c||(c=e4(0))}function rt(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}e7[e8]=!0,e7.withMutations=tF.withMutations,e7.asMutable=tF.asMutable,e7.asImmutable=tF.asImmutable,e7.wasAltered=tF.wasAltered,h.Iterator=P,rt(h,{toArray:function(){tB(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new em(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 e_(this,!0)},toMap:function(){return tz(this.toKeyedSeq())},toObject:function(){tB(this.size);var t={};return this.__iterate(function(e,r){("string"!=typeof r||"__proto__"!==r&&"constructor"!==r)&&(t[r]=e)}),t},toOrderedMap:function(){return ep(this.toKeyedSeq())},toOrderedSet:function(){return eZ(v(this)?this.valueSeq():this)},toSet:function(){return eJ(v(this)?this.valueSeq():this)},toSetSeq:function(){return new eS(this)},toSeq:function(){return _(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return e6(v(this)?this.valueSeq():this)},toList:function(){return t4(v(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(){var t=f.call(arguments,0);return eT(this,function(t,e){var r=v(t),n=[t].concat(e).map(function(t){return g(t)?r&&(t=p(t)):t=r?to(t):tu(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&v(i)||_(t)&&_(i))return i}var o=new Z(n);return r?o=o.toKeyedSeq():_(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}(this,t))},includes:function(t){return this.some(function(e){return th(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){tB(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 eT(this,eE(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return tB(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){tB(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(0)},map:function(t,e){return eT(this,ek(this,t,e))},reduce:function(t,e,r){var n,i;return tB(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 eT(this,ex(this,!0))},slice:function(t,e){return eT(this,eC(this,t,e,!0))},some:function(t,e){return!this.every(ro(t),e)},sort:function(t){return eT(this,eK(this,t))},values:function(){return this.__iterator(1)},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 T(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){var r,n;return r=this,n=tz().asMutable(),r.__iterate(function(i,o){n.update(t.call(e,i,o,r),0,function(t){return t+1})}),n.asImmutable()},equals:function(t){return tp(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Z(t._cache);var e=t.toSeq().map(ri).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(ro(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(z)},flatMap:function(t,e){var r,n;return eT(this,(r=this,n=eR(r),r.toSeq().map(function(i,o){return n(t.call(e,i,o,r))}).flatten(!0)))},flatten:function(t){return eT(this,eD(this,t,!0))},fromEntrySeq:function(){return new eb(this)},get:function(t,e){return this.find(function(e,r){return th(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=eq(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,C):C)===C)return e}return n},groupBy:function(t,e){var r,n,i,o;return r=this,n=v(r),i=(S(r)?ep():tz()).asMutable(),r.__iterate(function(o,u){i.update(t.call(e,o,u,r),function(t){return(t=t||[]).push(n?[u,o]:o),t})}),o=eR(r),i.map(function(t){return eT(r,o(t))})},has:function(t){return this.get(t,C)!==C},hasIn:function(t){return this.getIn(t,C)!==C},isSubset:function(t){return t="function"==typeof t.includes?t:h(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:h(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return th(e,t)})},keySeq:function(){return this.toSeq().map(rn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return eI(this,t)},maxBy:function(t,e){return eI(this,e,t)},min:function(t){return eI(this,t?ru(t):rc)},minBy:function(t,e){return eI(this,e?ru(e):rc,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return eT(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return eT(this,eO(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(ro(t),e)},sortBy:function(t,e){return eT(this,eK(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return eT(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){var r,n;return eT(this,(r=this,(n=eL(r)).__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return r.__iterate(function(r,i,a){return t.call(e,r,i,a)&&++u&&n(r,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=r.__iterator(2,i),a=!0;return new P(function(){if(!a)return U();var r=u.next();if(r.done)return r;var i=r.value,s=i[0],c=i[1];return t.call(e,c,s,o)?2===n?r:j(n,s,c,r):(a=!1,U())})},n))},takeUntil:function(t,e){return this.takeWhile(ro(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,r,n=S(t),i=v(t),o=+!!n;return e=t.__iterate(i?n?function(t,e){o=31*o+rf(tk(t),tk(e))|0}:function(t,e){o=o+rf(tk(t),tk(e))|0}:n?function(t){o=31*o+tk(t)|0}:function(t){o=o+tk(t)|0}),r=tb(r=o,0xcc9e2d51),r=tb(r<<15|r>>>-15,0x1b873593),r=((r=tb(r<<13|r>>>-13,5))+0xe6546b64|0)^e,r=tb(r^r>>>16,0x85ebca6b),r=tw((r=tb(r^r>>>13,0xc2b2ae35))^r>>>16)}(this))}});var re=h.prototype;re[b]=!0,re[q]=re.values,re.__toJS=re.toArray,re.__toStringMapper=ra,re.inspect=re.toSource=function(){return this.toString()},re.chain=re.flatMap,re.contains=re.includes,rt(p,{flip:function(){return eT(this,ew(this))},mapEntries:function(t,e){var r=this,n=0;return eT(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return eT(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var rr=p.prototype;function rn(t,e){return e}function ri(t,e){return[e,t]}function ro(t){return function(){return!t.apply(this,arguments)}}function ru(t){return function(){return-t.apply(this,arguments)}}function ra(t){return"string"==typeof t?JSON.stringify(t):String(t)}function rs(){return A(arguments)}function rc(t,e){return t<e?1:t>e?-1:0}function rf(t,e){return t^e+0x9e3779b9+(t<<6)+(t>>2)}return rr[w]=!0,rr[q]=re.entries,rr.__toJS=re.toObject,rr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+ra(t)},rt(d,{toKeyedSeq:function(){return new e_(this,!1)},filter:function(t,e){return eT(this,eE(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.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return eT(this,ex(this,!1))},slice:function(t,e){return eT(this,eC(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=L(t,t<0?this.count():this.size,0);var n=this.slice(0,t);return eT(this,1===r?n:n.concat(A(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return eT(this,eD(this,t,!1))},get:function(t,e){return(t=B(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=B(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){var e,r;return eT(this,(e=this,(r=eL(e)).size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return e.__iterate(function(e,n){return(!o||!1!==r(t,o++,i))&&!1!==r(e,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=e.__iterator(1,n),u=0;return new P(function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?j(r,u++,t):j(r,u++,i.value,i)})},r))},interleave:function(){var t=[this].concat(A(arguments)),e=eA(this.toSeq(),Y.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),eT(this,r)},keySeq:function(){return tg(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return eT(this,eO(this,t,e,!1))},zip:function(){var t=[this].concat(A(arguments));return eT(this,eA(this,rs,t))},zipWith:function(t){var e=A(arguments);return e[0]=this,eT(this,eA(this,t,e))}}),d.prototype[k]=!0,d.prototype[x]=!0,rt(y,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),y.prototype.has=re.includes,y.prototype.contains=y.prototype.includes,rt(X,p.prototype),rt(Y,d.prototype),rt(Q,y.prototype),rt(t_,p.prototype),rt(tm,d.prototype),rt(tS,y.prototype),{Iterable:h,Seq:G,Collection:tv,Map:tz,OrderedMap:ep,List:t4,Stack:e6,Set:eJ,OrderedSet:eZ,Record:eP,Range:tg,Repeat:td,is:th,fromJS:tf}}()},627394: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)})}},631677:(t,e,r)=>{"use strict";r(249973),t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),u=t.getCurrentContent(),a=i;return e>u.getBlockForKey(i).getText().length-o?(a=u.getKeyAfter(i),r=0):r=o+e,n.merge({focusKey:a,focusOffset:r})}},632692:(t,e,r)=>{"use strict";var n=r(720622),i=r(979210),o=r(822428),u=o.List,a=o.Repeat,s=o.Record,c=function(){return!0},f=s({start:null,end:null}),l=s({start:null,end:null,decoratorKey:null,leaves:null});function h(t,e){return t===e}t.exports={generate:function(t,e,r){var i=e.getLength();
1if(!i)return u.of(new l({start:0,end:0,decoratorKey:null,leaves:u.of(new f({start:0,end:0}))}));var o=[],s=r?r.getDecorations(e,t):u(a(null,i)),p=e.getCharacterList();return n(s,h,c,function(t,e){var r,i,a;o.push(new l({start:t,end:e,decoratorKey:s.get(t),leaves:(r=p.slice(t,e).toList(),i=t,a=[],n(r.map(function(t){return t.getStyle()}).toList(),h,c,function(t,e){a.push(new f({start:t+i,end:e+i}))}),u(a))}))}),u(o)},fromJS:function(t){var e=t.leaves;return new l(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(r=o[n])>=0||(i[r]=t[r]);return i}(t,["leaves"]),{leaves:null!=e?u(Array.isArray(e)?e:i(e)).map(function(t){return f(t)}):null}))}}},635865:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(563298),o=r(843653),u=function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var i=n.children;Array.isArray(i)||o(!1),r=r.concat([].concat(i.reverse()))}},a=function(t){if(!(t&&t.type))return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e}))};t.exports={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];return(Array.isArray(e)||o(!1),Array.isArray(e)&&e.length)?(u(e,function(t){var e=n({},t);a(t)&&(e.depth=e.depth||0,s(t),null!=t.children&&t.children.length>0)||(delete e.children,r.push(e))}),t.blocks=r,n({},t,{blocks:r})):t},fromRawStateToRawTreeState:function(t){var e=[],r=[];return t.blocks.forEach(function(t){var o=a(t),u=t.depth||0,s=n({},t,{children:[]});if(!o)return void e.push(s);var c=r[0];if(null==c&&0===u)e.push(s);else if(null==c||c.depth<u-1){var f={key:i(),text:"",depth:u-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(f),1===u?e.push(f):null!=c&&c.children.push(f),f.children.push(s)}else if(c.depth===u-1)c.children.push(s);else{for(;null!=c&&c.depth>=u;)r.shift(),c=r[0];u>0?c.children.push(s):e.push(s)}}),n({},t,{blocks:e})}}},636970:(t,e,r)=>{"use strict";var n=r(190657),i=r(709869),o=r(822428),u=r(773252),a=r(843653),s=r(694279),c=o.List,f=function(t,e,r,n,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(i),c=s.getText(),f=s.getCharacterList(),l=o+n.getText().length,h=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":h=n.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=n.getData()}var p=s.getType();c&&"unstyled"===p&&(p=n.getType());var d=s.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:u(f,n.getCharacterList(),o),type:p,data:h});return t.merge({blockMap:r.set(i,d),selectionBefore:e,selectionAfter:e.merge({anchorKey:i,anchorOffset:l,focusKey:i,focusOffset:l,isBackward:!1})})},l=function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.slice(0,e),u=i.slice(0,e),a=r.first();return t.merge({text:o+a.getText(),characterList:u.concat(a.getCharacterList()),type:o?t.getType():a.getType(),data:a.getData()})},h=function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,u=n.slice(e,o),a=i.slice(e,o),s=r.last();return s.merge({text:s.getText()+u,characterList:s.getCharacterList().concat(a),data:s.getData()})},p=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},d=function(t,e,r,o,u,a){var s,f=r.first()instanceof i,d=[],y=o.size,g=r.get(u),v=o.first(),_=o.last(),m=_.getLength(),S=_.getKey(),b=f&&(!g.getChildKeys().isEmpty()||!v.getChildKeys().isEmpty());r.forEach(function(t,e){if(e!==u)return void d.push(t);
1b?d.push(t):d.push(l(t,a,o)),o.slice(+!b,y-1).forEach(function(t){return d.push(t)}),d.push(h(t,a,o))});var w=n.createFromArray(d);return f&&(w=(s=w).withMutations(function(t){var e=g.getKey(),r=v.getKey(),n=g.getNextSiblingKey(),i=g.getParentKey(),o=p(v,s),u=o[o.length-1];if(t.get(r)?(t.setIn([e,"nextSibling"],r),t.setIn([r,"prevSibling"],e)):(t.setIn([e,"nextSibling"],v.getNextSiblingKey()),t.setIn([v.getNextSiblingKey(),"prevSibling"],e)),t.setIn([u,"nextSibling"],n),n&&t.setIn([n,"prevSibling"],u),o.forEach(function(e){return t.setIn([e,"parent"],i)}),i){var a=s.get(i).getChildKeys(),f=a.indexOf(e),l=a.toArray();l.splice.apply(l,[f+1,0].concat(o)),t.setIn([i,"children"],c(l))}})),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:S,anchorOffset:m,focusKey:S,focusOffset:m,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||a(!1);var o=t.getBlockMap(),u=s(r),c=e.getStartKey(),l=e.getStartOffset(),h=o.get(c);return(h instanceof i&&(h.getChildKeys().isEmpty()||a(!1)),1===u.size)?f(t,e,o,u.first(),c,l,n):d(t,e,o,u,c,l)}},646141:(t,e,r)=>{"use strict";var n=r(922008),i=r(582966),o=r(761844),u=n(r(290884)),a=n(r(789707)),s=RegExp("\r","g"),c=RegExp("\n","g"),f=RegExp(" ","g"),l=RegExp("\r","g")},646334:(t,e,r)=>{"use strict";var n=r(843653),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var u=0,a=[];t.forEach(function(s){!function(t,e){if(!r.g.FileReader||t.type&&!(t.type in o))return e("");
1if(""===t.type){var u="";i.test(t.name)&&(u=t.name.replace(i,"")),e(u);return}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&n(!1),e(t)},a.onerror=function(){e("")},a.readAsText(t)}(s,function(r){u++,r&&a.push(r.slice(0,5e3)),u==t.length&&e(a.join("\r"))})})}},646637:(t,e,r)=>{"use strict";var n=r(231169);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=n(e.getRangeAt(0)),i=r.top,o=r.right,u=r.bottom,a=r.left;return 0===i&&0===o&&0===u&&0===a?null:r}},657792:(t,e,r)=>{"use strict";var n=r(610843);t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){r.push({start:t,end:e})}),r.length||n(!1),r}},660807:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},665810:(t,e,r)=>{"use strict";var n=r(200867),i=r(184733);t.exports=function(t,e){var r=t._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var u=o.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),i.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,u)):t.update(n.acceptSelection(r,u))}}},675838:(t,e,r)=>{"use strict";var n=r(731651),i=r(49604),o=r(200867),u=r(184733),a=r(350418).notEmptyKey,s=r(126465),c=r(3340),f=r(729251),l=u.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t.editor.ownerDocument.defaultView.getSelection(),u=r.anchorNode,h=r.isCollapsed,p=(null==u?void 0:u.nodeType)!==Node.TEXT_NODE&&(null==u?void 0:u.nodeType)!==Node.ELEMENT_NODE;if(null!=u&&!p){if(u.nodeType===Node.TEXT_NODE&&(null!==u.previousSibling||null!==u.nextSibling)){var d=u.parentNode;if(null==d)return;u.nodeValue=d.textContent;for(var y=d.firstChild;null!=y;y=y.nextSibling)y!==u&&d.removeChild(y)}var g=u.textContent,v=t._latestEditorState,_=f(s(u)),m=i.decode(_),S=m.blockKey,b=m.decoratorKey,w=m.leafKey,k=v.getBlockTree(S).getIn([b,"leaves",w]),x=k.start,E=k.end,C=v.getCurrentContent(),O=C.getBlockForKey(S),D=O.getText().slice(x,E);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g===D){var K=e.nativeEvent.inputType;if(K){var I,M,A,T,B="deleteContentBackward"===K?c(v):v;B!==v&&(t.restoreEditorDOM(),t.update(B))}return}var z=v.getSelection(),R=z.merge({anchorOffset:x,focusOffset:E,isBackward:!1}),L=O.getEntityAt(x),F=a(L)?C.getEntity(L):null,N="MUTABLE"===(null!=F?F.getMutability():null),q=n.replaceText(C,R,g,O.getInlineStyleAt(x),N?O.getEntityAt(x):null);if(l)T=(A=x+Math.min(I=r.anchorOffset,M=r.focusOffset))+Math.abs(I-M),I=A,M=T;else{var P=g.length-D.length;A=z.getStartOffset(),T=z.getEndOffset(),I=h?T+P:A,M=T+P}var j=q.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:I,focusOffset:M})});t.update(o.push(v,j,N?"spellcheck-change":"apply-entity"))}}},681164:(t,e,r)=>{"use strict";var n=r(791245),i=r(696082),o=r(540317),u=r(462619),a=r(557140).notEmptyKey,s=r(599131),c=r(451374),f=r(222813),l=u.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t.editor.ownerDocument.defaultView.getSelection(),u=r.anchorNode,h=r.isCollapsed,p=(null==u?void 0:u.nodeType)!==Node.TEXT_NODE&&(null==u?void 0:u.nodeType)!==Node.ELEMENT_NODE;if(null!=u&&!p){if(u.nodeType===Node.TEXT_NODE&&(null!==u.previousSibling||null!==u.nextSibling)){var d=u.parentNode;if(null==d)return;u.nodeValue=d.textContent;for(var y=d.firstChild;null!=y;y=y.nextSibling)y!==u&&d.removeChild(y)}var g=u.textContent,v=t._latestEditorState,_=f(s(u)),m=i.decode(_),S=m.blockKey,b=m.decoratorKey,w=m.leafKey,k=v.getBlockTree(S).getIn([b,"leaves",w]),x=k.start,E=k.end,C=v.getCurrentContent(),O=C.getBlockForKey(S),D=O.getText().slice(x,E);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g===D){var K=e.nativeEvent.inputType;if(K){var I,M,A,T,B="deleteContentBackward"===K?c(v):v;B!==v&&(t.restoreEditorDOM(),t.update(B))}return}var z=v.getSelection(),R=z.merge({anchorOffset:x,focusOffset:E,isBackward:!1}),L=O.getEntityAt(x),F=a(L)?C.getEntity(L):null,N="MUTABLE"===(null!=F?F.getMutability():null),q=n.replaceText(C,R,g,O.getInlineStyleAt(x),N?O.getEntityAt(x):null);if(l)T=(A=x+Math.min(I=r.anchorOffset,M=r.focusOffset))+Math.abs(I-M),I=A,M=T;else{var P=g.length-D.length;A=z.getStartOffset(),T=z.getEndOffset(),I=h?T+P:A,M=T+P}
vendor: 5,414 bytes, line 1
1var j=q.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:I,focusOffset:M})});t.update(o.push(v,j,N?"spellcheck-change":"apply-entity"))}}},691722:(t,e,r)=>{"use strict";var n=r(333887);t.exports=function t(e){if(n(e)){var r=e.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<e.childNodes.length;i++){var o=t(e.childNodes[i]);if(o)return o}}return null}},692471:(t,e,r)=>{"use strict";var n=r(462619),i=r(610843),o=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},693122:(t,e,r)=>{"use strict";var n=r(126465),i=r(171500),o=r(846571),u=r(843653),a=r(828525),s=r(729251);function c(t,e,r){var o=e,c=n(o);if(null!=c||t&&(t===o||t.firstChild===o)||u(!1),t===o&&(a(o=o.firstChild)||u(!1),"true"!==o.getAttribute("data-contents")&&u(!1),r>0&&(r=o.childNodes.length)),0===r){var l=null;if(null!=c)l=c;else{var h=function(t){for(;t.firstChild&&(a(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||i(t.firstChild));)t=t.firstChild;return t}(o);l=s(i(h))}return{key:l,offset:0}}var p=o.childNodes[r-1],d=null,y=null;if(i(p)){var g=function(t){for(;t.lastChild&&(a(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(p);d=s(i(g)),y=f(g)}else d=s(c),y=f(p);return{key:d,offset:y}}function f(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,i,u,a){var f=r.nodeType===Node.TEXT_NODE,l=u.nodeType===Node.TEXT_NODE;if(f&&l)return{selectionState:o(t,s(n(r)),i,s(n(u)),a),needsRecovery:!1};var h=null,p=null,d=!0;return f?(h={key:s(n(r)),offset:i},p=c(e,u,a)):l?(p={key:s(n(u)),offset:a},h=c(e,r,i)):(h=c(e,r,i),p=c(e,u,a),r===u&&i===a&&(d=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:o(t,h.key,h.offset,p.key,p.offset),needsRecovery:d}}},694279:(t,e,r)=>{"use strict";var n=r(709869),i=r(563298),o=r(822428).OrderedMap,u=function(t){var e,r={};return o(t.withMutations(function(t){t.forEach(function(n,o){var u=n.getKey(),a=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),f=n.getParentKey(),l=i();if(r[u]=l,a&&(t.get(a)?t.setIn([a,"prevSibling"],l):t.setIn([u,"nextSibling"],null)),s&&(t.get(s)?t.setIn([s,"nextSibling"],l):t.setIn([u,"prevSibling"],null)),f&&t.get(f)){var h=t.get(f).getChildKeys();t.setIn([f,"children"],h.set(h.indexOf(n.getKey()),l))}else t.setIn([u,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],l),t.setIn([u,"prevSibling"],r[e.getKey()])),e=t.get(u);c.forEach(function(e){t.get(e)?t.setIn([e,"parent"],l):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.exports=function(t){return t.first()instanceof n?u(t):o(t.toArray().map(function(t){var e=i();return[e,t.set("key",e)]}))}},696082:t=>{"use strict";t.exports={encode:function(t,e,r){return t+"-"+e+"-"+r},decode:function(t){var e=t.split("-").reverse(),r=e[0],n=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(n,10),leafKey:parseInt(r,10)}}}},706065:(t,e,r)=>{"use strict";var n=r(862509),i=r(877743);t.exports=function(t,e){var r=e.getStartKey(),o=e.getStartOffset(),u=e.getEndKey(),a=e.getEndOffset(),s=i(t,e).getBlockMap(),c=s.keySeq(),f=c.indexOf(r),l=c.indexOf(u)+1;return n(s.slice(f,l).map(function(t,e){var n=t.getText(),i=t.getCharacterList();return r===u?t.merge({text:n.slice(o,a),characterList:i.slice(o,a)}):e===r?t.merge({text:n.slice(o),characterList:i.slice(o)}):e===u?t.merge({text:n.slice(0,a),characterList:i.slice(0,a)}):t}))}},709869:(t,e,r)=>{"use strict";var n=r(325291),i=r(720622),o=r(822428),u=o.List,a=o.Map,s=o.OrderedSet,c=o.Record,f=o.Repeat,l=s(),h={parent:null,characterList:u(),data:a(),depth:0,key:"",text:"",type:"unstyled",children:u(),prevSibling:null,nextSibling:null},p=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},y=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=u(f(n.EMPTY,r.length))),t};t.exports=function(t){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return t.call(this,y(e))||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():l},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(t,e){i(this.getCharacterList(),p,t,e)},r.findEntityRanges=function(t,e){i(this.getCharacterList(),d,t,e)},e}(c(h))},720622:t=>{"use strict";
1t.exports=function(t,e,r,n){if(t.size){var i=0;t.reduce(function(t,o,u){return e(t,o)||(r(t)&&n(i,u),i=u),o}),r(t.last())&&n(i,t.count())}}},724181:(t,e,r)=>{"use strict";t.exports=r(447993).unstable_flushControlled},725224:t=>{"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},731651:(t,e,r)=>{"use strict";var n=r(325291),i=r(167065),o=r(380885),u=r(572361),a=r(339731),s=r(822428),c=r(636970),f=r(32101),l=r(843653),h=r(950239),p=r(79257),d=r(794830),y=r(902303),g=s.OrderedSet,v={replaceText:function(t,e,r,i,o){var u=d(p(t,e),e),a=n.create({style:i||g(),entity:o||null});return f(u,u.getSelectionAfter(),r,a)},insertText:function(t,e,r,n,i){return e.isCollapsed()||l(!1),v.replaceText(t,e,r,n,i)},moveText:function(t,e,r){var n=a(t,e),i=v.removeRange(t,e,"backward");return v.replaceWithFragment(i,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=d(p(t,e),e);return c(i,i.getSelectionAfter(),r,n)},removeRange:function(t,e,r){e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),i=e.getFocusKey(),o=t.getBlockForKey(n);var n,i,o,a=t.getBlockForKey(i),s=e.getStartOffset(),c=e.getEndOffset(),f=o.getEntityAt(s),l=a.getEntityAt(c-1);
vendor: 28,586 bytes, line 1
1if(n===i&&f&&f===l){var h=u(t.getEntityMap(),o,a,e,r);return d(t,h)}return d(p(t,e),e)},splitBlock:function(t,e){var r=d(p(t,e),e);return y(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,r){return i.add(t,e,r)},removeInlineStyle:function(t,e,r){return i.remove(t,e,r)},setBlockType:function(t,e,r){return h(t,e,function(t){return t.merge({type:r,depth:0})})},setBlockData:function(t,e,r){return h(t,e,function(t){return t.merge({data:r})})},mergeBlockData:function(t,e,r){return h(t,e,function(t){return t.merge({data:t.getData().merge(r)})})},applyEntity:function(t,e,r){return o(p(t,e),e,r)}};t.exports=v},732397:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867),o=r(785199),u=r(668899),a=r(381267),s=r(184733),c=r(434741),f=r(469886),l=r(428370),h=r(979940),p=r(356554),d=r(893968),y=r(462815),g=r(3340),v=r(207650),_=r(538482),m=r(988613),S=o.isOptionKeyCommand,b=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,o=t._latestEditorState;function s(r){var n=t.props[r];return!!n&&(n(e),!0)}switch(r){case u.RETURN:if(e.preventDefault(),t.props.handleReturn&&c(t.props.handleReturn(e,o)))return;break;case u.ESC:if(e.preventDefault(),s("onEscape"))return;break;case u.TAB:if(s("onTab"))return;break;case u.UP:if(s("onUpArrow"))return;break;case u.RIGHT:if(s("onRightArrow"))return;break;case u.DOWN:if(s("onDownArrow"))return;break;case u.LEFT:if(s("onLeftArrow"))return;break;case u.SPACE:b&&S(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null==w||""===w){if(r===u.SPACE&&b&&S(e)){var k=n.replaceText(o.getCurrentContent(),o.getSelection(),"\xa0");t.update(i.push(o,k,"insert-characters"))}return}if("undo"===w)return void m(e,o,t.update);if(e.preventDefault(),!(t.props.handleKeyCommand&&c(t.props.handleKeyCommand(w,o,e.timeStamp)))){var x=function(t,e,r){switch(t){case"redo":return i.redo(e);case"delete":return v(e);case"delete-word":return h(e);case"backspace":return g(e);case"backspace-word":return l(e);case"backspace-to-start-of-line":return f(e,r);case"split-block":return p(e);case"transpose-characters":return _(e);case"move-selection-to-start-of-block":return y(e);case"move-selection-to-end-of-block":return d(e);case"secondary-cut":return a.cut(e);case"secondary-paste":return a.paste(e);default:return e}}(w,o,e);x!==o&&t.update(x)}}},733973:(t,e,r)=>{"use strict";var n=r(709869);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var u=o.getParentKey();o=u?e.get(u):null}return o?o.getNextSiblingKey():null}},738479:(t,e,r)=>{"use strict";var n=r(270149);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){u(t,e,r[e])})}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(767804),s=r(696082),c=r(847132),f=r(208252),l=r(619338),h=r(981778),p=r(9237),d=r(451356),y=r(582966),g=r(610843),v=r(725224);y.List;var _=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},m=function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()},S=function(t,e,r){var n=[],i=!0,o=!1,u=void 0;try{for(var a,f=r.reverse()[Symbol.iterator]();!(i=(a=f.next()).done);i=!0){var l=a.value;if(l.type!==e)break;n.push(l)}}catch(t){o=!0,u=t}finally{try{i||null==f.return||f.return()}finally{if(o)throw u}}r.splice(r.indexOf(n[0]),n.length+1);var h=n.reverse(),p=h[0].key;return r.push(c.cloneElement(t,{key:"".concat(p,"-wrap"),"data-offset-key":s.encode(p,0,0)},h)),r},b=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},w=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},k=function(t,e,r,n,i,u){var a={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:u},s=n(t);return s&&(a.className=s),void 0!==i.customEditable&&(a=o({},a,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),a};t.exports=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return u(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",c.createRef()),e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,i=e.tree,o=!r.getChildKeys().isEmpty(),u=r!==t.block||i!==t.tree||n!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection;return o||u},r.componentDidMount=function(){var t,e=this.props.selection,r=e.getEndKey();if(e.getHasFocus()&&r===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var i=l.getScrollParent(n),o=p(i);if(i===window){var u=h(n);(t=u.y+u.height-d().height)>0&&window.scrollTo(o.x,o.y+t+10)}else v(n)||g(!1),(t=n.offsetHeight+n.offsetTop-(i.offsetHeight+o.y))>0&&f.setTop(i,f.getTop(i)+t+10)}}},r.render=function(){var t=this,r=this.props,n=r.block,u=r.blockRenderMap,f=r.blockRendererFn,l=r.blockStyleFn,h=r.contentState,p=r.decorator,d=r.editorKey,y=r.editorState,g=r.customStyleFn,v=r.customStyleMap,x=r.direction,E=r.forceSelection,C=r.selection,O=r.tree,D=null;n.children.size&&(D=n.children.reduce(function(r,n){var i=s.encode(n,0,0),a=h.getBlockForKey(n),p=w(a,f),g=p.CustomComponent||e,v=b(a,u),_=v.Element,x=v.wrapperTemplate,E=k(a,d,i,l,p,null),C=o({},t.props,{tree:y.getBlockTree(n),blockProps:p.customProps,offsetKey:i,block:a});return r.push(c.createElement(_,E,c.createElement(g,C))),!x||m(a,h)||S(x,_,r),r},[]));var K=n.getKey(),I=s.encode(K,0,0),M=w(n,f),A=M.CustomComponent,T=null!=A?c.createElement(A,i({},this.props,{tree:y.getBlockTree(K),blockProps:M.customProps,offsetKey:I,block:n})):c.createElement(a,{block:n,children:D,contentState:h,customStyleFn:g,customStyleMap:v,decorator:p,direction:x,forceSelection:E,hasSelection:_(C,K),selection:C,tree:O});if(n.getParentKey())return T;var B=b(n,u).Element,z=k(n,d,I,l,M,this.wrapperRef);return c.createElement(B,z,T)},e}(c.Component)},742315:(t,e,r)=>{"use strict";var n=r(902177),i=r(134364),o=r(582966),u=o.List,a=o.Map,s=o.OrderedSet,c=o.Record,f=o.Repeat,l=s(),h=c({key:"",type:"unstyled",text:"",characterList:u(),depth:0,data:a()}),p=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=u(f(n.EMPTY,r.length))),t};function d(t,e){return t.getStyle()===e.getStyle()}function y(t,e){return t.getEntity()===e.getEntity()}t.exports=function(t){function e(e){return t.call(this,p(e))||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():l},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.findStyleRanges=function(t,e){i(this.getCharacterList(),d,t,e)},r.findEntityRanges=function(t,e){i(this.getCharacterList(),y,t,e)},e}(h)},746331:(t,e,r)=>{"use strict";var n=r(582966),i=r(312326),o=r(610843),u=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!1);var a=null;if(null!=r&&(a=r.length),null==a||0===a)return t;var s=t.getBlockMap(),c=e.getStartKey(),f=e.getStartOffset(),l=s.get(c),h=l.getText(),p=l.merge({text:h.slice(0,f)+r+h.slice(f,l.getLength()),characterList:i(l.getCharacterList(),u(n,a).toList(),f)}),d=f+a;return t.merge({blockMap:s.set(c,p),selectionAfter:e.merge({anchorOffset:d,focusOffset:d})})}},746661:(t,e,r)=>{"use strict";var n=r(190657),i=r(325291),o=r(120028),u=r(731651),a=r(202775),s=r(200867),c=r(931467),f=r(292506),l=r(646334),h=r(434741),p=r(596761);function d(t,e,r){var n=u.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new o(e.clipboardData);if(!r.isRichText()){var y=r.getFiles(),g=r.getText();if(y.length>0){if(t.props.handlePastedFiles&&h(t.props.handlePastedFiles(y)))return;l(y,function(e){if(e=e||g){var r=t._latestEditorState,o=p(e),l=i.create({style:r.getCurrentInlineStyle(),entity:f(r.getCurrentContent(),r.getSelection())}),h=c.getCurrentBlockType(r),d=a.processText(o,l,h),y=n.createFromArray(d),v=u.replaceWithFragment(r.getCurrentContent(),r.getSelection(),y);t.update(s.push(r,v,"insert-fragment"))}});return}}var v=[],_=r.getText(),m=r.getHTML(),S=t._latestEditorState;if(t.props.formatPastedText){var b=t.props.formatPastedText(_,m),w=b.text,k=b.html;_=w,m=k}if(!(t.props.handlePastedText&&h(t.props.handlePastedText(_,m,S)))){if(_&&(v=p(_)),!t.props.stripPastedStyles){var x,E,C,O=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&O){if((null==(C=m)?void 0:C.indexOf(t.getEditorKey()))!==-1||1===v.length&&1===O.size&&O.first().getText()===_)return void t.update(d(t._latestEditorState,O))}else{if(O&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&(x=v,E=O,x.length===E.size&&E.valueSeq().every(function(t,e){return t.getText()===x[e]})))return void t.update(d(t._latestEditorState,O))}if(m){var D=a.processHTML(m,t.props.blockRenderMap);if(D){var K=D.contentBlocks,I=D.entityMap;if(K){var M=n.createFromArray(K);t.update(d(t._latestEditorState,M,I));return}}}t.setClipboard(null)}if(v.length){var A=i.create({style:S.getCurrentInlineStyle(),entity:f(S.getCurrentContent(),S.getSelection())}),T=c.getCurrentBlockType(S),B=a.processText(v,A,T),z=n.createFromArray(B);t.update(d(t._latestEditorState,z))}}}},756008:(t,e,r)=>{"use strict";var n=r(48339),i=r(764243),o=r(582966),u=r(610843),a=o.OrderedMap,s=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(),a=r.getKey(),f=e.getParentKey(),l=e.getNextSiblingKey(),h=e.getPrevSiblingKey(),p=r.getParentKey(),d=o?r.getNextSiblingKey():a,y=o?a: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(h,t,function(t){return t.merge({nextSibling:l})}),c(l,t,function(t){return t.merge({prevSibling:h})}),c(d,t,function(t){return t.merge({prevSibling:u})}),c(y,t,function(t){return t.merge({nextSibling:u})}),c(p,t,function(t){var e=t.getChildKeys(),r=e.indexOf(a),n=e.toArray();return n.splice(o?r+1:0!==r?r-1:0,0,u),t.merge({children:s(n)})}),c(u,t,function(t){return t.merge({nextSibling:d,prevSibling:y,parent:p})})})};t.exports=function(t,e,r,o){"replace"===o&&u(!1);var s=r.getKey(),c=e.getKey();c===s&&u(!1);var l=t.getBlockMap(),h=e instanceof n,p=[e],d=l.delete(c);h&&(p=[],d=l.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&&t.getParentKey()&&(!n||e!==n);return!!(i||r&&e!==r||o)}).forEach(function(e){p.push(e),t.delete(e.getKey())})}));var y=d.toSeq().takeUntil(function(t){return t===r}),g=d.toSeq().skipUntil(function(t){return t===r}).skip(1),v=p.map(function(t){return[t.getKey(),t]}),_=a();if("before"===o){var m=t.getBlockBefore(s);m&&m.getKey()===e.getKey()&&u(!1),_=y.concat([].concat(v,[[s,r]]),g).toOrderedMap()}else if("after"===o){var S=t.getBlockAfter(s);S&&S.getKey()===c&&u(!1),_=y.concat([[s,r]].concat(v),g).toOrderedMap()}return t.merge({blockMap:f(_,e,r,o,h),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},756301:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(190657),o=r(325291),u=r(545485),a=r(709869),s=r(954237),c=r(976204),f=r(563298),l=r(979210),h=r(893347),p=r(822428),d=r(17304),y=p.List,g=p.Record,v=p.Repeat,_=p.Map,m=p.OrderedMap,S=g({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),b=h("draft_tree_data_support")?a:u;t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getEntityMap=function(){return s},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(t){return this.getBlockMap().get(t)},r.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},r.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},r.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,r){return r===t}).skip(1).first()},r.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},r.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},r.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(t,e,r){return s.__create(t,e,r),this},r.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},r.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},r.addEntity=function(t){return s.__add(t),this},r.getEntity=function(t){return s.__get(t)},r.getAllEntities=function(){return s.__getAll()},r.loadWithEntities=function(t){return s.__loadWithEntities(t)},e.createFromBlockArray=function(t,r){var n=Array.isArray(t)?t:t.contentBlocks,o=i.createFromArray(n),u=o.isEmpty()?new c:c.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:r||s,selectionBefore:u,selectionAfter:u})},e.createFromText=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(r).map(function(t){return t=d(t),new b({key:f(),text:t,type:"unstyled",characterList:y(v(o.EMPTY,t.length))})});return e.createFromBlockArray(n)},e.fromJS=function(t){return new e(n({},t,{blockMap:m(t.blockMap).map(e.createContentBlockFromJS),selectionBefore:new c(t.selectionBefore),selectionAfter:new c(t.selectionAfter)}))},e.createContentBlockFromJS=function(t){var e=t.characterList;return new b(n({},t,{data:_(t.data),characterList:null!=e?y((Array.isArray(e)?e:l(e)).map(function(t){return o.fromJS(t)})):void 0}))},e}(S)},761486:(t,e,r)=>{"use strict";var n=r(625937)("draft_tree_data_support");t.exports=r(n?540472:97440)},761844:(t,e,r)=>{"use strict";var n=r(384110),i=r(462155),o=r(902177),u=r(155060),a=r(742315),s=r(68439),c=r(897716),f=r(563229),l=r(30828),h=r(347555),p=r(308907),d=r(791245),y=r(617432),g=r(540317),v=r(5621),_=r(941378),m=r(837477),S=r(881434),b=r(577585),w=r(532871),k=r(26744),x=r(619320),E=r(646637);t.exports={Editor:l,EditorBlock:h,EditorState:g,CompositeDecorator:u,Entity:p,EntityInstance:y,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:a,ContentState:s,RawDraftContentState:_,SelectionState:S,AtomicBlockUtils:n,KeyBindingUtil:v,Modifier:d,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:f,convertFromHTML:r(359387),convertFromRaw:w,convertToRaw:b,genKey:k,getDefaultKeyBinding:x,getVisibleSelectionRect:E}},764243:(t,e,r)=>{"use strict";var n=r(48339);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var u=o.getParentKey();o=u?e.get(u):null}return o?o.getNextSiblingKey():null}},767504:(t,e,r)=>{"use strict";var n=r(557140).notEmptyKey;function i(t,e){return n(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){if(e.isCollapsed()){var r,n=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(n).getEntityAt(o-1))!==t.getBlockForKey(n).getEntityAt(o)?null:i(t.getEntityMap(),r):null}var u=e.getStartKey(),a=e.getStartOffset(),s=t.getBlockForKey(u);return r=a===s.getLength()?null:s.getEntityAt(a),i(t.getEntityMap(),r)}},767529:(t,e,r)=>{"use strict";var n=r(523097),i=r(582966).OrderedSet,o=n.substr,u=i();t.exports=function(t,e){var r=Array(t.length).fill(u);return e&&e.forEach(function(e){for(var n=o(t,0,e.offset).length,i=n+o(t,e.offset,e.length).length;n<i;)r[n]=r[n].add(e.style),n++}),r}},767804:(t,e,r)=>{"use strict";var n=r(848311),i=r(233584),o=r(696082),u=r(582966),a=r(847132),s=r(783798);u.List,t.exports=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,e.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,u=t.customStyleFn,c=t.customStyleMap,f=t.decorator,l=t.direction,h=t.forceSelection,p=t.hasSelection,d=t.selection,y=t.tree,g=e.getKey(),v=e.getText(),_=y.size-1,m=this.props.children||y.map(function(t,s){var y=t.get("decoratorKey"),m=t.get("leaves"),S=m.size-1,b=m.map(function(t,r){var n=o.encode(g,s,r),f=t.get("start"),l=t.get("end");return a.createElement(i,{key:n,offsetKey:n,block:e,start:f,selection:p?d:null,forceSelection:h,text:v.slice(f,l),styleSet:e.getInlineStyleAt(f),customStyleMap:c,customStyleFn:u,isLast:y===_&&r===S})}).toArray();return y&&f?a.createElement(n,{block:e,children:b,contentState:r,decorator:f,decoratorKey:y,direction:l,leafSet:t,text:v,key:s}):b}).toArray();return a.createElement("div",{"data-offset-key":o.encode(g,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===l,"public/DraftStyleDefault/rtl":"RTL"===l})},m)},e}(a.Component)},768773:(t,e,r)=>{"use strict";var n=r(523097),i=r(134364),o=function(t,e){return t===e},u=function(t){return!!t},a=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),r=e.flatten().toSet().map(function(r){var a;return a=[],i(e.map(function(t){return t.has(r)}).toList(),o,u,function(e,i){var o=t.getText();a.push({offset:n.strlen(o.slice(0,e)),length:n.strlen(o.slice(e,i)),style:r})}),a});return Array.prototype.concat.apply(a,r.toJS())}},768848:t=>{"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},773252: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}},774061:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o,u=r(325291),a=r(545485),s=r(709869),c=r(312246),f=r(954237),l=r(891091),h=r(696932),p=r(563298),d=r(108037),y=r(893347),g=r(822428),v=g.List,_=g.Map,m=g.OrderedSet,S=r(595433),b=r(267922),w=r(989926),k=r(385701),x=y("draft_tree_data_support"),E=RegExp("\r","g"),C=RegExp("\n","g"),O=RegExp("^\n","g"),D=RegExp(" ","g"),K=RegExp(" ?","g"),I=RegExp("​?","g"),M=["bold","bolder","500","600","700","800","900"],A=["light","lighter","normal","100","200","300","400"],T=["className","href","rel","target","title"],B=["alt","className","height","src","width"],z=(i(o={},h("public/DraftStyleDefault/depth0"),0),i(o,h("public/DraftStyleDefault/depth1"),1),i(o,h("public/DraftStyleDefault/depth2"),2),i(o,h("public/DraftStyleDefault/depth3"),3),i(o,h("public/DraftStyleDefault/depth4"),4),o),R=_({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),L=function(t){var e={};return t.mapKeys(function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach(function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)})}),_(e)},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(z).some(function(r){t.classList.contains(r)&&(e=z[r])}),e},N=function(t){if(!S(t)||!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new l(t.href),!0}catch(t){return!1}},q=function(t,e){if(!w(t))return e;var r=t.style.fontWeight,n=t.style.fontStyle,i=t.style.textDecoration;return e.withMutations(function(t){M.indexOf(r)>=0?t.add("BOLD"):A.indexOf(r)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},P=function(t){return"ul"===t||"ol"===t},j=function(){function t(t,e){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",f),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=f,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],m())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(x?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n({key:t.key||p(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var i,o=t[n],u=o.nodeName.toLowerCase();if("body"===u||P(u)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;P(u)&&(this.wrapper=u,P(s)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),e)),this.currentDepth=a,this.wrapper=s;continue}var c=this.blockTypeMap.get(u);if(void 0!==c){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var f=this.currentDepth,l=this.wrapper;this.wrapper="pre"===u?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(u,this.wrapper)||c[0]||"unstyled"),!x&&w(o)&&("unordered-list-item"===c||"ordered-list-item"===c)&&(this.currentDepth=F(o,this.currentDepth));var h=p(),d=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:h,childConfigs:d,type:c})),this.currentDepth=f,this.wrapper=l;continue}if("#text"===u){this._addTextNode(o,e);continue}if("br"===u){this._addBreakNode(o,e);continue}if(k(o)&&o.attributes.getNamedItem("src")&&o.attributes.getNamedItem("src").value){this._addImgNode(o,e);continue}if(N(o)){this._addAnchorNode(o,r,e);continue}var y=e;R.has(u)&&(y=y.add(R.get(u))),y=q(o,y);var g=w(i=o)&&i.style.fontFamily.includes("monospace")?"CODE":null;null!=g&&(y=y.add(g)),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),y))}return r},e._appendText=function(t,e){this.currentText+=t;var r,n=u.create({style:e,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==n?Math.min(e,n[0]):e)>(r=void 0!==(n=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(r,t-n[0]):r)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(e,r),this.characterList=this.characterList.slice(e,r))},e._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(O,"")).replace(C," ")),this._appendText(r,e)},e._addBreakNode=function(t,e){b(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(k(t)){var r={};B.forEach(function(e){var n=t.getAttribute(e);n&&(r[e]=n)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),y("draftjs_fix_paste_for_img")?"presentation"!==t.getAttribute("role")&&this._appendText("\uD83D\uDCF7",e):this._appendText("\uD83D\uDCF7",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,r){if(S(t)){var n={};T.forEach(function(e){var r=t.getAttribute(e);r&&(n[e]=r)}),n.url=new l(t.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",n||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,i=0;i<=r;i++){var o=t[i];o.parent=e,o.prevSibling=i>0?t[i-1].key:null,o.nextSibling=i<r?t[i+1].key:null,o.children=v(o.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new s(n({},o))),this._toContentBlocks(o.childConfigs,o.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return v(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),i=r.text,o=r.characterList;e.contentBlocks.push(new a(n({},t,{text:t.text+i,characterList:t.characterList.concat(o)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=v(),i=0;i<=e;i++){var o=t[i];r+=o.text,n=n.concat(o.characterList),""!==r&&"unstyled"!==o.type&&(r+="\n",n=n.push(n.last()));var u=this._extractTextFromBlockConfigs(o.childConfigs);r+=u.text,n=n.concat(u.characterList)}return{text:r,characterList:n}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=e(t=t.trim().replace(E,"").replace(D," ").replace(K,"").replace(I,""));return n?new j(L(r),function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks():null}},776223:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}
1))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}var i=r(26744),o=r(610843),u=function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var i=n.children;Array.isArray(i)||o(!1),r=r.concat([].concat(i.reverse()))}},a=function(t){if(!(t&&t.type))return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e}))};t.exports={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];return(Array.isArray(e)||o(!1),Array.isArray(e)&&e.length)?(u(e,function(t){var e=n({},t);a(t)&&(e.depth=e.depth||0,s(t),null!=t.children&&t.children.length>0)||(delete e.children,r.push(e))}),t.blocks=r,n({},t,{blocks:r})):t},fromRawStateToRawTreeState:function(t){var e=[],r=[];return t.blocks.forEach(function(t){var o=a(t),u=t.depth||0,s=n({},t,{children:[]});if(!o)return void e.push(s);var c=r[0];if(null==c&&0===u)e.push(s);else if(null==c||c.depth<u-1){var f={key:i(),text:"",depth:u-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(f),1===u?e.push(f):null!=c&&c.children.push(f),f.children.push(s)}else if(c.depth===u-1)c.children.push(s);else{for(;null!=c&&c.depth>=u;)r.shift(),c=r[0];u>0?c.children.push(s):e.push(s)}}),n({},t,{blocks:e})}}},778114:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867),o=r(477996),u=r(849685),a=r(80007),s=r(503369);t.exports=function(t,e){var r,c=t._latestEditorState,f=c.getSelection(),l=e.target;if(f.isCollapsed())return void e.preventDefault();s(l)&&(r=a(o.getScrollParent(l)));var h=u(c);t.setClipboard(h),t.setMode("cut"),setTimeout(function(){var e,o;t.restoreEditorDOM(r),t.exitCurrentMode(),t.update((e=c,o=n.removeRange(e.getCurrentContent(),e.getSelection(),"forward"),i.push(e,o,"remove-range")))},0)}},780619:(t,e,r)=>{"use strict";r(249973),t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n&&!e.get(n).getChildKeys().includes(r)||!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===r}))return!1;var i=t.getPrevSiblingKey();if(null!=i&&e.get(i).getNextSiblingKey()!==r)return!1;var o=t.getNextSiblingKey();return(null==o||e.get(o).getPrevSiblingKey()===r)&&(null===o||null===i||i!==o)&&(""==t.text||!(t.getChildKeys().size>0))},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return!1;for(var r=e.shift(),n=0,i=r.getKey(),o=[];null!=i;){var u=t.get(i),a=u.getChildKeys(),s=u.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==c)return!1;i=c.getKey()}else i=null!=u.getNextSiblingKey()?u.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every(function(r){return e.isValidBlock(r,t)})&&this.isConnectedTree(t)}}},785199:(t,e,r)=>{"use strict";var n=r(184733),i=r(969103),o=n.isPlatform("Mac OS X"),u={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:u.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=u},785603:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},787503:(t,e,r)=>{"use strict";var n=r(902177);t.exports=function(t,e,r,i){for(var o=e,u=t.getCharacterList();o<r;)u=u.set(o,n.applyEntity(u.get(o),i)),o++;return t.set("characterList",u)}},789707:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e){return t.offset===e.offset?e.length-t.length:t.offset-e.offset}},789854:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},791245:(t,e,r)=>{"use strict";var n=r(902177),i=r(262691),o=r(544355),u=r(865531),a=r(706065),s=r(582966),c=r(369600),f=r(746331),l=r(610843),h=r(998889),p=r(877743),d=r(223808),y=r(974461),g=s.OrderedSet,v={replaceText:function(t,e,r,i,o){var u=d(p(t,e),e),a=n.create({style:i||g(),entity:o||null});return f(u,u.getSelectionAfter(),r,a)},insertText:function(t,e,r,n,i){return e.isCollapsed()||l(!1),v.replaceText(t,e,r,n,i)},moveText:function(t,e,r){var n=a(t,e),i=v.removeRange(t,e,"backward");return v.replaceWithFragment(i,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=d(p(t,e),e);return c(i,i.getSelectionAfter(),r,n)},removeRange:function(t,e,r){e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),i=e.getFocusKey(),o=t.getBlockForKey(n);var n,i,o,a=t.getBlockForKey(i),s=e.getStartOffset(),c=e.getEndOffset(),f=o.getEntityAt(s),l=a.getEntityAt(c-1);
vendor: 28,145 bytes, line 1
1if(n===i&&f&&f===l){var h=u(t.getEntityMap(),o,a,e,r);return d(t,h)}return d(p(t,e),e)},splitBlock:function(t,e){var r=d(p(t,e),e);return y(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,r){return i.add(t,e,r)},removeInlineStyle:function(t,e,r){return i.remove(t,e,r)},setBlockType:function(t,e,r){return h(t,e,function(t){return t.merge({type:r,depth:0})})},setBlockData:function(t,e,r){return h(t,e,function(t){return t.merge({data:r})})},mergeBlockData:function(t,e,r){return h(t,e,function(t){return t.merge({data:t.getData().merge(r)})})},applyEntity:function(t,e,r){return o(p(t,e),e,r)}};t.exports=v},794830:(t,e,r)=>{"use strict";var n=r(709869),i=r(733973),o=r(822428);o.List;var u=o.Map,a=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},s=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){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},f=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},l=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},h=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};t.exports=function(t,e){if(e.isCollapsed())return t;var r,o,p=t.getBlockMap(),d=e.getStartKey(),y=e.getStartOffset(),g=e.getEndKey(),v=e.getEndOffset(),_=p.get(d),m=p.get(g),S=_ instanceof n,b=[];if(S){var w=m.getChildKeys(),k=s(g,p);m.getNextSiblingKey()&&(b=b.concat(k)),w.isEmpty()||(b=b.concat(k.concat([g]))),b=b.concat(s(i(m,p),p))}o=_===m?h(_.getCharacterList(),y,v):_.getCharacterList().slice(0,y).concat(m.getCharacterList().slice(v));var x=_.merge({text:_.getText().slice(0,y)+m.getText().slice(v),characterList:o}),E=S&&0===y&&0===v&&m.getParentKey()===d&&null==m.getPrevSiblingKey()?u([[d,null]]):p.toSeq().skipUntil(function(t,e){return e===d}).takeUntil(function(t,e){return e===g}).filter(function(t,e){return -1===b.indexOf(e)}).concat(u([[g,null]])).map(function(t,e){return e===d?x:null}),C=p.merge(E).filter(function(t){return!!t});return S&&_!==m&&(C=(r=C).withMutations(function(t){if(a(_.getKey(),t,function(e){return e.merge({nextSibling:f(e,t,p),prevSibling:l(e,t,p)})}),a(m.getKey(),t,function(e){return e.merge({nextSibling:f(e,t,p),prevSibling:l(e,t,p)})}),s(_.getKey(),p).forEach(function(e){return a(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:f(e,t,p),prevSibling:l(e,t,p)})})}),a(_.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:_.getPrevSiblingKey()})}),a(_.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:f(e,t,p)})}),a(m.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:l(e,t,p)})}),a(m.getPrevSiblingKey(),t,function(t){return t.merge({nextSibling:m.getNextSiblingKey()})}),s(m.getKey(),p).forEach(function(e){a(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:f(e,t,p),prevSibling:l(e,t,p)})})}),c(m,p).forEach(function(e){return a(e,t,function(e){return e.merge({nextSibling:f(e,t,p),prevSibling:l(e,t,p)})})}),null==r.get(_.getKey())&&null!=r.get(m.getKey())&&m.getParentKey()===_.getKey()&&null==m.getPrevSiblingKey()){var e=_.getPrevSiblingKey();a(m.getKey(),t,function(t){return t.merge({prevSibling:e})}),a(e,t,function(t){return t.merge({nextSibling:m.getKey()})});var n=e?r.get(e):null,i=n?n.getParentKey():null;if(_.getChildKeys().forEach(function(e){a(e,t,function(t){return t.merge({parent:i})})}),null!=i){var o=r.get(i);a(i,t,function(t){return t.merge({children:o.getChildKeys().concat(_.getChildKeys())})})}a(_.getChildKeys().find(function(t){return null===r.get(t).getNextSiblingKey()}),t,function(t){return t.merge({nextSibling:_.getNextSiblingKey()})})}})),t.merge({blockMap:C,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:y,focusKey:d,focusOffset:y,isBackward:!1})})}},819920:(t,e,r)=>{"use strict";var n=r(893347)("draft_tree_data_support");t.exports=r(n?289254:973862)},822428:function(t){t.exports=function(){"use strict";var t,e,r,n,i,o,u,a,s,c,f=Array.prototype.slice;function l(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function h(t){return g(t)?t:G(t)}function p(t){return v(t)?t:X(t)}function d(t){return _(t)?t:Y(t)}function y(t){return g(t)&&!m(t)?t:Q(t)}function g(t){return!!(t&&t[b])}function v(t){return!!(t&&t[w])}function _(t){return!!(t&&t[k])}function m(t){return v(t)||_(t)}function S(t){return!!(t&&t[x])}l(p,h),l(d,h),l(y,h),h.isIterable=g,h.isKeyed=v,h.isIndexed=_,h.isAssociative=m,h.isOrdered=S,h.Keyed=p,h.Indexed=d,h.Set=y;var b="@@__IMMUTABLE_ITERABLE__@@",w="@@__IMMUTABLE_KEYED__@@",k="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",E="delete",C={},O={value:!1},D={value:!1};function K(t){return t.value=!1,t}function I(t){t&&(t.value=!0)}function M(){}function A(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function T(t){return void 0===t.size&&(t.size=t.__iterate(z)),t.size}function B(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||0xffffffff===r)return NaN;e=r}return e<0?T(t)+e:e}function z(){return!0}function R(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function L(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var F="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",q=F||N;function P(t){this.next=t}function j(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 U(){return{value:void 0,done:!0}}function H(t){return t&&"function"==typeof t.next}function W(t){var e=J(t);return e&&e.call(t)}function J(t){var e=t&&(F&&t[F]||t[N]);if("function"==typeof e)return e}function V(t){return t&&"number"==typeof t.length}function G(t){return null==t?ti():g(t)?t.toSeq():function(t){var e=ta(t)||"object"==typeof t&&new tt(t);if(!e)throw TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function X(t){return null==t?ti().toKeyedSeq():g(t)?v(t)?t.toSeq():t.fromEntrySeq():to(t)}function Y(t){return null==t?ti():g(t)?v(t)?t.entrySeq():t.toIndexedSeq():tu(t)}function Q(t){return(null==t?ti():!g(t)?tu(t):v(t)?t.entrySeq():t).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[q]=function(){return this},l(G,h),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(t,e){return ts(this,t,e,!0)},G.prototype.__iterator=function(t,e){return tc(this,t,e,!0)},l(X,G),X.prototype.toKeyedSeq=function(){return this},l(Y,G),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return ts(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return tc(this,t,e,!1)},l(Q,G),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},G.isSeq=tn,G.Keyed=X,G.Set=Q,G.Indexed=Y;var $="@@__IMMUTABLE_SEQ__@@";function Z(t){this._array=t,this.size=t.length}function tt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function te(t){this._iterable=t,this.size=t.length||t.size}function tr(t){this._iterator=t,this._iteratorCache=[]}function tn(t){return!!(t&&t[$])}function ti(){return t||(t=new Z([]))}function to(t){var e=Array.isArray(t)?new Z(t).fromEntrySeq():H(t)?new tr(t).fromEntrySeq():J(t)?new te(t).fromEntrySeq():"object"==typeof t?new tt(t):void 0;if(!e)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function tu(t){var e=ta(t);if(!e)throw TypeError("Expected Array or iterable object of values: "+t);return e}function ta(t){return V(t)?new Z(t):H(t)?new tr(t):J(t)?new te(t):void 0}function ts(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var a=i[r?o-u:u];if(!1===e(a[1],n?a[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function tc(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new P(function(){var t=i[r?o-u:u];return u++>o?U():j(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function tf(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,Y(r).map(function(n,i){return t(e,n,i,r)})):tl(r)?e.call(i,n,X(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):function t(e){return Array.isArray(e)?Y(e).map(t).toList():tl(e)?X(e).map(t).toMap():e}(t)}function tl(t){return t&&(t.constructor===Object||void 0===t.constructor)}function th(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 tp(t,e){if(t===e)return!0;if(!g(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||v(t)!==v(e)||_(t)!==_(e)||S(t)!==S(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!m(t);if(S(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&th(i[1],t)&&(r||th(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 u=!0,a=e.__iterate(function(e,n){if(r?!t.has(e):i?!th(e,t.get(n,C)):!th(t.get(n,C),e))return u=!1,!1});return u&&t.size===a}function td(t,r){if(!(this instanceof td))return new td(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(e)return e;e=this}}function ty(t,e){if(!t)throw Error(e)}function tg(t,e,n){if(!(this instanceof tg))return new tg(t,e,n);if(ty(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(r)return r;r=this}}function tv(){throw TypeError("Abstract")}function t_(){}function tm(){}function tS(){}G.prototype[$]=!0,l(Z,Y),Z.prototype.get=function(t,e){return this.has(t)?this._array[B(this,t)]:e},Z.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},Z.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new P(function(){return i>n?U():j(t,i,r[e?n-i++:i++])})},l(tt,X),tt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},tt.prototype.has=function(t){return this._object.hasOwnProperty(t)},tt.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},tt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new P(function(){var u=n[e?i-o:o];return o++>i?U():j(t,u,r[u])})},tt.prototype[x]=!0,l(te,Y),te.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r,n=W(this._iterable),i=0;if(H(n))for(;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},te.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!H(r))return new P(U);var n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value)})},l(tr,Y),tr.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},tr.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new P(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return j(t,i,n[i++])})},l(td,Y),td.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},td.prototype.get=function(t,e){return this.has(t)?this._value:e},td.prototype.includes=function(t){return th(this._value,t)},td.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:new td(this._value,L(e,r,r)-L(t,r,0))},td.prototype.reverse=function(){return this},td.prototype.indexOf=function(t){return th(this._value,t)?0:-1},td.prototype.lastIndexOf=function(t){return th(this._value,t)?this.size:-1},td.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},td.prototype.__iterator=function(t,e){var r=this,n=0;return new P(function(){return n<r.size?j(t,n++,r._value):U()})},td.prototype.equals=function(t){return t instanceof td?th(this._value,t._value):tp(t)},l(tg,Y),tg.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},tg.prototype.get=function(t,e){return this.has(t)?this._start+B(this,t)*this._step:e},tg.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tg.prototype.slice=function(t,e){var r;return R(t,e,this.size)?this:(t=L(t,this.size,0),(e=L(e,r=this.size,r))<=t)?new tg(0,0):new tg(this.get(t,this._end),this.get(e,this._end),this._step)},tg.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},tg.prototype.lastIndexOf=function(t){return this.indexOf(t)},tg.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},tg.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 P(function(){var u=i;return i+=e?-n:n,o>r?U():j(t,o++,u)})},tg.prototype.equals=function(t){return t instanceof tg?this._start===t._start&&this._end===t._end&&this._step===t._step:tp(this,t)},l(tv,h),l(t_,tv),l(tm,tv),l(tS,tv),tv.Keyed=t_,tv.Indexed=tm,tv.Set=tS;var tb="function"==typeof Math.imul&&-2===Math.imul(0xffffffff,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 tw(t){return t>>>1&0x40000000|0xbfffffff&t}function tk(t){if(!1===t||null==t||"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^=0xffffffff*t);t>0xffffffff;)t/=0xffffffff,r^=t;return tw(r)}if("string"===e){return t.length>tI?(void 0===(o=tT[i=t])&&(o=tx(i),tA===tM&&(tA=0,tT={}),tA++,tT[i]=o),o):tx(t)}if("function"==typeof t.hashCode)return t.hashCode();if("object"===e){var i,o,u,a=t;if(tO&&void 0!==(u=n.get(a))||void 0!==(u=a[tK])||!tC&&(void 0!==(u=a.propertyIsEnumerable&&a.propertyIsEnumerable[tK])||void 0!==(u=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(a))))return u;if(u=++tD,0x40000000&tD&&(tD=0),tO)n.set(a,u);else if(void 0!==tE&&!1===tE(a))throw Error("Non-extensible objects are not allowed as keys.");else if(tC)Object.defineProperty(a,tK,{enumerable:!1,configurable:!1,writable:!1,value:u});else if(void 0!==a.propertyIsEnumerable&&a.propertyIsEnumerable===a.constructor.prototype.propertyIsEnumerable)a.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},a.propertyIsEnumerable[tK]=u;else if(void 0!==a.nodeType)a[tK]=u;else throw Error("Unable to set a non-enumerable property on object.");return u}if("function"==typeof t.toString)return tx(t.toString());throw Error("Value type "+e+" cannot be hashed.")}function tx(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tw(e)}var tE=Object.isExtensible,tC=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),tO="function"==typeof WeakMap;tO&&(n=new WeakMap);var tD=0,tK="__immutablehash__";"function"==typeof Symbol&&(tK=Symbol(tK));var tI=16,tM=255,tA=0,tT={};function tB(t){ty(t!==1/0,"Cannot perform this action with an infinite size.")}function tz(t){return null==t?tG():tR(t)&&!S(t)?t:tG().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function tR(t){return!!(t&&t[tL])}l(tz,t_),tz.prototype.toString=function(){return this.__toString("Map {","}")},tz.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},tz.prototype.set=function(t,e){return tX(this,t,e)},tz.prototype.setIn=function(t,e){return this.updateIn(t,C,function(){return e})},tz.prototype.remove=function(t){return tX(this,t,C)},tz.prototype.deleteIn=function(t){return this.updateIn(t,function(){return C})},tz.prototype.update=function(t,e,r){return 1==arguments.length?t(this):this.updateIn([t],e,r)},tz.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===C,u=r.next();if(u.done){var a=o?n:e,s=i(a);return s===a?e:s}ty(o||e&&e.set,"invalid keyPath");var c=u.value,f=o?C:e.get(c,C),l=t(f,r,n,i);return l===f?e:l===C?e.remove(c):(o?tG():e).set(c,l)}(this,eq(t),e,r);return n===C?void 0:n},tz.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):tG()},tz.prototype.merge=function(){return tZ(this,void 0,arguments)},tz.prototype.mergeWith=function(t){var e=f.call(arguments,1);return tZ(this,t,e)},tz.prototype.mergeIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},tz.prototype.mergeDeep=function(){return tZ(this,t0,arguments)},tz.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return tZ(this,t1(t),e)},tz.prototype.mergeDeepIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tG(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},tz.prototype.sort=function(t){return ep(eK(this,t))},tz.prototype.sortBy=function(t,e){return ep(eK(this,e,t))},tz.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},tz.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},tz.prototype.asImmutable=function(){return this.__ensureOwner()},tz.prototype.wasAltered=function(){return this.__altered},tz.prototype.__iterator=function(t,e){return new tH(this,t,e)},tz.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},tz.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?tV(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},tz.isMap=tR;var tL="@@__IMMUTABLE_MAP__@@",tF=tz.prototype;function tN(t,e){this.ownerID=t,this.entries=e}function tq(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function tP(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function tj(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function tU(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function tH(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&tJ(t._root)}function tW(t,e){return j(t,e[0],e[1])}function tJ(t,e){return{node:t,index:0,__prev:e}}function tV(t,e,r,n){var i=Object.create(tF);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function tG(){return i||(i=tV(0))}function tX(t,e,r){if(t._root){var n,i,o=K(O),u=K(D);if(n=tY(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===C?-1:1:0)}else{if(r===C)return t;i=1,n=new tN(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?tV(i,n):tG()}function tY(t,e,r,n,i,o,u,a){return t?t.update(e,r,n,i,o,u,a):o===C?t:(I(a),I(u),new tU(e,n,[i,o]))}function tQ(t){return t.constructor===tU||t.constructor===tj}function t$(t,e,r,n,i){if(t.keyHash===n)return new tj(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&31,a=(0===r?n:n>>>r)&31,s=u===a?[t$(t,e,r+5,n,i)]:(o=new tU(e,n,i),u<a?[t,o]:[o,t]);return new tq(e,1<<u|1<<a,s)}function tZ(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],u=p(o);g(o)||(u=u.map(function(t){return tf(t)})),n.push(u)}return t2(t,e,n)}function t0(t,e,r){return t&&t.mergeDeep&&g(e)?t.mergeDeep(e):th(t,e)?t:e}function t1(t){return function(e,r,n){if(e&&e.mergeDeepWith&&g(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return th(e,i)?e:i}}function t2(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,C,function(t){return t===C?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 t3(t){return t-=t>>1&0x55555555,t=(t=(0x33333333&t)+(t>>2&0x33333333))+(t>>4)&0xf0f0f0f,t+=t>>8,127&(t+=t>>16)}function t6(t,e,r,n){var i=n?t:A(t);return i[e]=r,i}tF[tL]=!0,tF[E]=tF.remove,tF.removeIn=tF.deleteIn,tN.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tN.prototype.update=function(t,e,r,n,i,o,u){for(var a=i===C,s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),!a||1!==s.length){if(!l&&!a&&s.length>=t5){var h=t,p=s,d=n,y=i;h||(h=new M);for(var g=new tU(h,tk(d),[d,y]),v=0;v<p.length;v++){var _=p[v];g=g.update(h,0,void 0,_[0],_[1])}return g}var m=t&&t===this.ownerID,S=m?s:A(s);return(l?a?c===f-1?S.pop():S[c]=S.pop():S[c]=[n,i]:S.push([n,i]),m)?(this.entries=S,this):new tN(t,S)}},tq.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=1<<((0===t?e:e>>>t)&31),o=this.bitmap;return(o&i)==0?n:this.nodes[t3(o&i-1)].get(t+5,e,r,n)},tq.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=1<<a,c=this.bitmap,f=(c&s)!=0;if(!f&&i===C)return this;var l=t3(c&s-1),h=this.nodes,p=f?h[l]:void 0,d=tY(p,t,e+5,r,n,i,o,u);if(d===p)return this;if(!f&&d&&h.length>=t8){for(var y=t,g=h,v=c,_=a,m=d,S=0,b=Array(32),w=0;0!==v;w++,v>>>=1)b[w]=1&v?g[S++]:void 0;return b[_]=m,new tP(y,S+1,b)}if(f&&!d&&2===h.length&&tQ(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&tQ(d))return d;var k=t&&t===this.ownerID,x=f?d?c:c^s:c|s,E=f?d?t6(h,l,d,k):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}(h,l,k):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,a=0;a<i;a++)a===e?(o[a]=r,u=-1):o[a]=t[a+u];return o}(h,l,d,k);return k?(this.bitmap=x,this.nodes=E,this):new tq(t,x,E)},tP.prototype.get=function(t,e,r,n){void 0===e&&(e=tk(r));var i=(0===t?e:e>>>t)&31,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},tP.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=(0===e?r:r>>>e)&31,s=i===C,c=this.nodes,f=c[a];if(s&&!f)return this;var l=tY(f,t,e+5,r,n,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h<t7)return function(t,e,r,n){for(var i=0,o=0,u=Array(r),a=0,s=1,c=e.length;a<c;a++,s<<=1){var f=e[a];void 0!==f&&a!==n&&(i|=s,u[o++]=f)}return new tq(t,i,u)}(t,c,h,a)}else h++;var p=t&&t===this.ownerID,d=t6(c,a,l,p);return p?(this.count=h,this.nodes=d,this):new tP(t,h,d)},tj.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(th(r,i[o][0]))return i[o][1];return n},tj.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=tk(n));var a=i===C;if(r!==this.keyHash)return a?this:(I(u),I(o),t$(this,t,e,r,[n,i]));for(var s=this.entries,c=0,f=s.length;c<f&&!th(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(I(u),(a||!l)&&I(o),a&&2===f)return new tU(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,p=h?s:A(s);return(l?a?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h)?(this.entries=p,this):new tj(t,this.keyHash,p)},tU.prototype.get=function(t,e,r,n){return th(r,this.entry[0])?this.entry[1]:n},tU.prototype.update=function(t,e,r,n,i,o,u){var a=i===C,s=th(n,this.entry[0]);return(s?i===this.entry[1]:a)?this:(I(u),a)?void I(o):s?t&&t===this.ownerID?(this.entry[1]=i,this):new tU(t,this.keyHash,[n,i]):(I(o),t$(this,t,e,tk(n),[n,i]))},tN.prototype.iterate=tj.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},tq.prototype.iterate=tP.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}},tU.prototype.iterate=function(t,e){return t(this.entry)},l(tH,P),tH.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 tW(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return tW(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 tW(t,o.entry);e=this._stack=tJ(o,e)}continue}e=this._stack=this._stack.__prev}return U()};var t5=8,t8=16,t7=8;function t4(t){var e=eu();if(null==t)return e;if(t9(t))return t;var r=d(t),n=r.size;return 0===n?e:(tB(n),n>0&&n<32)?eo(0,n,5,null,new er(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})})}function t9(t){return!!(t&&t[et])}l(t4,tm),t4.of=function(){return this(arguments)},t4.prototype.toString=function(){return this.__toString("List [","]")},t4.prototype.get=function(t,e){if((t=B(this,t))>=0&&t<this.size){var r=ec(this,t+=this._origin);return r&&r.array[31&t]}return e},t4.prototype.set=function(t,e){return function(t,e,r){if((e=B(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?ef(t,e).set(0,r):ef(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=K(D);return(e>=eh(t._capacity)?n=ea(n,t.__ownerID,0,e,r,o):i=ea(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):eo(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},t4.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t4.prototype.insert=function(t,e){return this.splice(t,0,e)},t4.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):eu()},t4.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){ef(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},t4.prototype.pop=function(){return ef(this,0,-1)},t4.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){ef(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},t4.prototype.shift=function(){return ef(this,1)},t4.prototype.merge=function(){return el(this,void 0,arguments)},t4.prototype.mergeWith=function(t){var e=f.call(arguments,1);return el(this,t,e)},t4.prototype.mergeDeep=function(){return el(this,t0,arguments)},t4.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return el(this,t1(t),e)},t4.prototype.setSize=function(t){return ef(this,0,t)},t4.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:ef(this,L(t,r,0),L(e,r,r))},t4.prototype.__iterator=function(t,e){var r=0,n=ei(this,e);return new P(function(){var e=n();return e===en?U():j(t,r++,e)})},t4.prototype.__iterate=function(t,e){for(var r,n=0,i=ei(this,e);(r=i())!==en&&!1!==t(r,n++,this););return n},t4.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?eo(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},t4.isList=t9;
1var et="@@__IMMUTABLE_LIST__@@",ee=t4.prototype;function er(t,e){this.array=t,this.ownerID=e}ee[et]=!0,ee[E]=ee.remove,ee.setIn=tF.setIn,ee.deleteIn=ee.removeIn=tF.removeIn,ee.update=tF.update,ee.updateIn=tF.updateIn,ee.mergeIn=tF.mergeIn,ee.mergeDeepIn=tF.mergeDeepIn,ee.withMutations=tF.withMutations,ee.asMutable=tF.asMutable,ee.asImmutable=tF.asImmutable,ee.wasAltered=tF.wasAltered,er.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n,i=r>>>e&31;if(i>=this.array.length)return new er([],t);var o=0===i;if(e>0){var u=this.array[i];if((n=u&&u.removeBefore(t,e-5,r))===u&&o)return this}if(o&&!n)return this;var a=es(this,t);if(!o)for(var s=0;s<i;s++)a.array[s]=void 0;return n&&(a.array[i]=n),a},er.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var u=es(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var en={};function ei(t,e){var r=t._origin,n=t._capacity,i=eh(n),o=t._tail;return function t(u,a,s){var c,f,l,h,p,d,y,g,v,_,m,S;return 0===a?(c=u,l=(f=s)===i?o&&o.array:c&&c.array,h=f>r?0:r-f,(p=n-f)>32&&(p=32),function(){if(h===p)return en;var t=e?--p:h++;return l&&l[t]}):(d=u,y=a,g=s,_=d&&d.array,m=g>r?0:r-g>>y,(S=(n-g>>y)+1)>32&&(S=32),function(){for(;;){if(v){var r=v();if(r!==en)return r;v=null}if(m===S)return en;var n=e?--S:m++;v=t(_&&_[n],y-5,g+(n<<y))}})}(t._root,t._level,0)}function eo(t,e,r,n,i,o,u){var a=Object.create(ee);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=u,a.__altered=!1,a}function eu(){return o||(o=eo(0,0,5))}function ea(t,e,r,n,i,o){var u,a=n>>>r&31,s=t&&a<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[a],f=ea(c,e,r-5,n,i,o);return f===c?t:((u=es(t,e)).array[a]=f,u)}return s&&t.array[a]===i?t:(I(o),u=es(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function es(t,e){return e&&t&&e===t.ownerID?t:new er(t?t.array.slice():[],e)}function ec(t,e){if(e>=eh(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&31],n-=5;return r}}function ef(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new M,i=t._origin,o=t._capacity,u=i+e,a=void 0===r?o:r<0?o+r:i+r;if(u===i&&a===o)return t;if(u>=a)return t.clear();for(var s=t._level,c=t._root,f=0;u+f<0;)c=new er(c&&c.array.length?[void 0,c]:[],n),s+=5,f+=1<<s;f&&(u+=f,i+=f,a+=f,o+=f);for(var l=eh(o),h=eh(a);h>=1<<s+5;)c=new er(c&&c.array.length?[c]:[],n),s+=5;var p=t._tail,d=h<l?ec(t,a-1):h>l?new er([],n):p;if(p&&h>l&&u<o&&p.array.length){for(var y=c=es(c,n),g=s;g>5;g-=5){var v=l>>>g&31;y=y.array[v]=es(y.array[v],n)}y.array[l>>
vendor: 29,159 bytes, line 1
1>5&31]=p}if(a<o&&(d=d&&d.removeAfter(n,0,a)),u>=h)u-=h,a-=h,s=5,c=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h<l){for(f=0;c;){var _=u>>>s&31;if(_!==h>>>s&31)break;_&&(f+=(1<<s)*_),s-=5,c=c.array[_]}c&&u>i&&(c=c.removeBefore(n,s,u-f)),c&&h<l&&(c=c.removeAfter(n,s,h-f)),f&&(u-=f,a-=f)}return t.__ownerID?(t.size=a-u,t._origin=u,t._capacity=a,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):eo(u,a,s,c,d)}function el(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var u=r[o],a=d(u);a.size>i&&(i=a.size),g(u)||(a=a.map(function(t){return tf(t)})),n.push(a)}return i>t.size&&(t=t.setSize(i)),t2(t,e,n)}function eh(t){return t<32?0:t-1>>>5<<5}function ep(t){return null==t?eg():ed(t)?t:eg().withMutations(function(e){var r=p(t);tB(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function ed(t){return tR(t)&&S(t)}function ey(t,e,r,n){var i=Object.create(ep.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function eg(){return u||(u=ey(tG(),eu()))}function ev(t,e,r){var n,i,o=t._map,u=t._list,a=o.get(e),s=void 0!==a;if(r===C){if(!s)return t;u.size>=32&&u.size>=2*o.size?(n=(i=u.filter(function(t,e){return void 0!==t&&a!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===u.size-1?u.pop():u.set(a,void 0))}else if(s){if(r===u.get(a)[1])return t;n=o,i=u.set(a,[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):ey(n,i)}function e_(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function em(t){this._iter=t,this.size=t.size}function eS(t){this._iter=t,this.size=t.size}function eb(t){this._iter=t,this.size=t.size}function ew(t){var e=eL(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=eF,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(2===e){var n=t.__iterator(e,r);return new P(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(+(1!==e),r)},e}function ek(t,e,r){var n=eL(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,C);return o===C?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(2,i);return new P(function(){var i=o.next();if(i.done)return i;var u=i.value,a=u[0];return j(n,a,e.call(r,u[1],a,t),i)})},n}function ex(t,e){var r=eL(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ew(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=eF,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 eE(t,e,r,n){var i=eL(t);return n&&(i.has=function(n){var i=t.get(n,C);return i!==C&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,C);return o!==C&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,a=0;return t.__iterate(function(t,o,s){if(e.call(r,t,o,s))return a++,i(t,n?o:a-1,u)},o),a},i.__iteratorUncached=function(i,o){var u=t.__iterator(2,o),a=0;return new P(function(){for(;;){var o=u.next();if(o.done)return o;var s=o.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return j(i,n?c:a++,f,o)}})},i}function eC(t,e,r,n){var i,o=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),R(e,r,o))return t;var u=L(e,o,0),a=L(r,o,o);if(u!=u||a!=a)return eC(t.toSeq().cacheResult(),e,r,n);var s=a-u;s==s&&(i=s<0?0:s);var c=eL(t);return c.size=0===i?i:t.size&&i||void 0,!n&&tn(t)&&i>=0&&(c.get=function(e,r){return(e=B(this,e))>=0&&e<i?t.get(e+u,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===i)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;return t.__iterate(function(t,r){if(!(s&&(s=a++<u)))return c++,!1!==e(t,n?r:c-1,o)&&c!==i}),c},c.__iteratorUncached=function(e,r){if(0!==i&&r)return this.cacheResult().__iterator(e,r);var o=0!==i&&t.__iterator(e,r),a=0,s=0;return new P(function(){for(;a++<u;)o.next();if(++s>i)return U();var t=o.next();return n||1===e?t:0===e?j(e,s-1,void 0,t):j(e,s-1,t.value[1],t)})},c}function eO(t,e,r,n){var i=eL(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,s=0;return t.__iterate(function(t,o,c){if(!(a&&(a=e.call(r,t,o,c))))return s++,i(t,n?o:s-1,u)}),s},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(2,o),s=!0,c=0;return new P(function(){var t,o,f;do{if((t=a.next()).done)if(n||1===i)return t;else if(0===i)return j(i,c++,void 0,t);else return j(i,c++,t.value[1],t);var l=t.value;o=l[0],f=l[1],s&&(s=e.call(r,f,o,u))}while(s);return 2===i?t:j(i,o,f,t)})},i}function eD(t,e,r){var n=eL(t);return n.__iterateUncached=function(n,i){var o=0,u=!1;return!function t(a,s){var c=this;a.__iterate(function(i,a){return(!e||s<e)&&g(i)?t(i,s+1):!1===n(i,r?a:o++,c)&&(u=!0),!u},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],a=0;return new P(function(){for(;o;){var t=o.next();if(!1!==t.done){o=u.pop();continue}var s=t.value;if(2===n&&(s=s[1]),!((!e||u.length<e)&&g(s)))return r?t:j(n,a++,s,t);u.push(o),o=s.__iterator(n,i)}return U()})},n}function eK(t,e,r){e||(e=eN);var n=v(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?X(o):_(t)?Y(o):Q(o)}function eI(t,e,r){if(e||(e=eN),!r)return t.reduce(function(t,r){return eM(e,t,r)?r:t});var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return eM(e,t[1],r[1])?r:t});return n&&n[0]}function eM(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function eA(t,e,r){var n=eL(t);return n.size=new Z(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},n.__iteratorUncached=function(t,n){var i=r.map(function(t){return t=h(t),W(n?t.reverse():t)}),o=0,u=!1;return new P(function(){var r;return(u||(u=(r=i.map(function(t){return t.next()})).some(function(t){return t.done})),u)?U():j(t,o++,e.apply(null,r.map(function(t){return t.value})))})},n}function eT(t,e){return tn(t)?e:t.constructor(e)}function eB(t){if(t!==Object(t))throw TypeError("Expected [K, V] tuple: "+t)}function ez(t){return tB(t.size),T(t)}function eR(t){return v(t)?p:_(t)?d:y}function eL(t){return Object.create((v(t)?X:_(t)?Y:Q).prototype)}function eF(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function eN(t,e){return t>e?1:t<e?-1:0}function eq(t){var e=W(t);if(!e){if(!V(t))throw TypeError("Expected iterable or array-like: "+t);e=W(h(t))}return e}function eP(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(eW.bind(void 0,t))}catch(t){}})(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=tz(o)},i=n.prototype=Object.create(ej);return i.constructor=n,n}l(ep,tz),ep.of=function(){return this(arguments)},ep.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ep.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},ep.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):eg()},ep.prototype.set=function(t,e){return ev(this,t,e)},ep.prototype.remove=function(t){return ev(this,t,C)},ep.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ep.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},ep.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},ep.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ey(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},ep.isOrderedMap=ed,ep.prototype[x]=!0,ep.prototype[E]=ep.prototype.remove,l(e_,X),e_.prototype.get=function(t,e){return this._iter.get(t,e)},e_.prototype.has=function(t){return this._iter.has(t)},e_.prototype.valueSeq=function(){return this._iter.valueSeq()},e_.prototype.reverse=function(){var t=this,e=ex(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e_.prototype.map=function(t,e){var r=this,n=ek(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e_.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?ez(this):0,function(i){return t(i,e?--r:r++,n)}),e)},e_.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?ez(this):0;return new P(function(){var i=r.next();return i.done?i:j(t,e?--n:n++,i.value,i)})},e_.prototype[x]=!0,l(em,Y),em.prototype.includes=function(t){return this._iter.includes(t)},em.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},em.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new P(function(){var e=r.next();return e.done?e:j(t,n++,e.value,e)})},l(eS,Q),eS.prototype.has=function(t){return this._iter.includes(t)},eS.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},eS.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){var e=r.next();return e.done?e:j(t,e.value,e.value,e)})},l(eb,X),eb.prototype.entrySeq=function(){return this._iter.toSeq()},eb.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){eB(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},eb.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new P(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){eB(n);var i=g(n);return j(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},em.prototype.cacheResult=e_.prototype.cacheResult=eS.prototype.cacheResult=eb.prototype.cacheResult=eF,l(eP,t_),eP.prototype.toString=function(){return this.__toString(eH(this)+" {","}")},eP.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},eP.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},eP.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=eU(this,tG()))},eP.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+eH(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:eU(this,r)},eP.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:eU(this,e)},eP.prototype.wasAltered=function(){return this._map.wasAltered()},eP.prototype.__iterator=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},eP.prototype.__iterate=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},eP.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?eU(this,e,t):(this.__ownerID=t,this._map=e,this)};var ej=eP.prototype;function eU(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function eH(t){return t._name||t.constructor.name||"Record"}function eW(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ty(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function eJ(t){return null==t?e$():eV(t)&&!S(t)?t:e$().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function eV(t){return!!(t&&t[eG])}ej[E]=ej.remove,ej.deleteIn=ej.removeIn=tF.removeIn,ej.merge=tF.merge,ej.mergeWith=tF.mergeWith,ej.mergeIn=tF.mergeIn,ej.mergeDeep=tF.mergeDeep,ej.mergeDeepWith=tF.mergeDeepWith,ej.mergeDeepIn=tF.mergeDeepIn,ej.setIn=tF.setIn,ej.update=tF.update,ej.updateIn=tF.updateIn,ej.withMutations=tF.withMutations,ej.asMutable=tF.asMutable,ej.asImmutable=tF.asImmutable,l(eJ,tS),eJ.of=function(){return this(arguments)},eJ.fromKeys=function(t){return this(p(t).keySeq())},eJ.prototype.toString=function(){return this.__toString("Set {","}")},eJ.prototype.has=function(t){return this._map.has(t)},eJ.prototype.add=function(t){return eY(this,this._map.set(t,!0))},eJ.prototype.remove=function(t){return eY(this,this._map.remove(t))},eJ.prototype.clear=function(){return eY(this,this._map.clear())},eJ.prototype.union=function(){var t=f.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)y(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},eJ.prototype.intersect=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},eJ.prototype.subtract=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return y(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},eJ.prototype.merge=function(){return this.union.apply(this,arguments)},eJ.prototype.mergeWith=function(t){var e=f.call(arguments,1);return this.union.apply(this,e)},eJ.prototype.sort=function(t){return eZ(eK(this,t))},eJ.prototype.sortBy=function(t,e){return eZ(eK(this,e,t))},eJ.prototype.wasAltered=function(){return this._map.wasAltered()},eJ.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},eJ.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},eJ.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)},eJ.isSet=eV;var eG="@@__IMMUTABLE_SET__@@",eX=eJ.prototype;function eY(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 eQ(t,e){var r=Object.create(eX);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e$(){return a||(a=eQ(tG()))}function eZ(t){return null==t?e3():e0(t)?t:e3().withMutations(function(e){var r=y(t);tB(r.size),r.forEach(function(t){return e.add(t)})})}function e0(t){return eV(t)&&S(t)}eX[eG]=!0,eX[E]=eX.remove,eX.mergeDeep=eX.merge,eX.mergeDeepWith=eX.mergeWith,eX.withMutations=tF.withMutations,eX.asMutable=tF.asMutable,eX.asImmutable=tF.asImmutable,eX.__empty=e$,eX.__make=eQ,l(eZ,eJ),eZ.of=function(){return this(arguments)},eZ.fromKeys=function(t){return this(p(t).keySeq())},eZ.prototype.toString=function(){return this.__toString("OrderedSet {","}")},eZ.isOrderedSet=e0;var e1=eZ.prototype;function e2(t,e){var r=Object.create(e1);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e3(){return s||(s=e2(eg()))}function e6(t){return null==t?e9():e5(t)?t:e9().unshiftAll(t)}function e5(t){return!!(t&&t[e8])}e1[x]=!0,e1.__empty=e3,e1.__make=e2,l(e6,tm),e6.of=function(){return this(arguments)},e6.prototype.toString=function(){return this.__toString("Stack [","]")},e6.prototype.get=function(t,e){var r=this._head;for(t=B(this,t);r&&t--;)r=r.next;return r?r.value:e},e6.prototype.peek=function(){return this._head&&this._head.value},e6.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):e4(t,e)},e6.prototype.pushAll=function(t){if(0===(t=d(t)).size)return this;tB(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):e4(e,r)},e6.prototype.pop=function(){return this.slice(1)},e6.prototype.unshift=function(){return this.push.apply(this,arguments)},e6.prototype.unshiftAll=function(t){return this.pushAll(t)},e6.prototype.shift=function(){return this.pop.apply(this,arguments)},e6.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):e9()},e6.prototype.slice=function(t,e){if(R(t,e,this.size))return this;var r,n=L(t,this.size,0);if(L(e,r=this.size,r)!==this.size)return tm.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):e4(i,o)},e6.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?e4(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},e6.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},e6.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new P(function(){if(n){var e=n.value;return n=n.next,j(t,r++,e)}return U()})},e6.isStack=e5;var e8="@@__IMMUTABLE_STACK__@@",e7=e6.prototype;function e4(t,e,r,n){var i=Object.create(e7);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function e9(){return c||(c=e4(0))}function rt(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}e7[e8]=!0,e7.withMutations=tF.withMutations,e7.asMutable=tF.asMutable,e7.asImmutable=tF.asImmutable,e7.wasAltered=tF.wasAltered,h.Iterator=P,rt(h,{toArray:function(){tB(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new em(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 e_(this,!0)},toMap:function(){return tz(this.toKeyedSeq())},toObject:function(){tB(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return ep(this.toKeyedSeq())},toOrderedSet:function(){return eZ(v(this)?this.valueSeq():this)},toSet:function(){return eJ(v(this)?this.valueSeq():this)},toSetSeq:function(){return new eS(this)},toSeq:function(){return _(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return e6(v(this)?this.valueSeq():this)},toList:function(){return t4(v(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(){var t=f.call(arguments,0);return eT(this,function(t,e){var r=v(t),n=[t].concat(e).map(function(t){return g(t)?r&&(t=p(t)):t=r?to(t):tu(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&v(i)||_(t)&&_(i))return i}var o=new Z(n);return r?o=o.toKeyedSeq():_(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}(this,t))},includes:function(t){return this.some(function(e){return th(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){tB(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 eT(this,eE(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 tB(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){tB(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(0)},map:function(t,e){return eT(this,ek(this,t,e))},reduce:function(t,e,r){var n,i;return tB(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 eT(this,ex(this,!0))},slice:function(t,e){return eT(this,eC(this,t,e,!0))},some:function(t,e){return!this.every(ro(t),e)},sort:function(t){return eT(this,eK(this,t))},values:function(){return this.__iterator(1)},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 T(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){var r,n;return r=this,n=tz().asMutable(),r.__iterate(function(i,o){n.update(t.call(e,i,o,r),0,function(t){return t+1})}),n.asImmutable()},equals:function(t){return tp(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Z(t._cache);var e=t.toSeq().map(ri).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(ro(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(z)},flatMap:function(t,e){var r,n;return eT(this,(r=this,n=eR(r),r.toSeq().map(function(i,o){return n(t.call(e,i,o,r))}).flatten(!0)))},flatten:function(t){return eT(this,eD(this,t,!0))},fromEntrySeq:function(){return new eb(this)},get:function(t,e){return this.find(function(e,r){return th(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=eq(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,C):C)===C)return e}return n},groupBy:function(t,e){var r,n,i,o;return r=this,n=v(r),i=(S(r)?ep():tz()).asMutable(),r.__iterate(function(o,u){i.update(t.call(e,o,u,r),function(t){return(t=t||[]).push(n?[u,o]:o),t})}),o=eR(r),i.map(function(t){return eT(r,o(t))})},has:function(t){return this.get(t,C)!==C},hasIn:function(t){return this.getIn(t,C)!==C},isSubset:function(t){return t="function"==typeof t.includes?t:h(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:h(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(rn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return eI(this,t)},maxBy:function(t,e){return eI(this,e,t)},min:function(t){return eI(this,t?ru(t):rc)},minBy:function(t,e){return eI(this,e?ru(e):rc,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return eT(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return eT(this,eO(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(ro(t),e)},sortBy:function(t,e){return eT(this,eK(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return eT(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){var r,n;return eT(this,(r=this,(n=eL(r)).__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return r.__iterate(function(r,i,a){return t.call(e,r,i,a)&&++u&&n(r,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=r.__iterator(2,i),a=!0;return new P(function(){if(!a)return U();var r=u.next();if(r.done)return r;var i=r.value,s=i[0],c=i[1];return t.call(e,c,s,o)?2===n?r:j(n,s,c,r):(a=!1,U())})},n))},takeUntil:function(t,e){return this.takeWhile(ro(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,r,n=S(t),i=v(t),o=+!!n;return e=t.__iterate(i?n?function(t,e){o=31*o+rf(tk(t),tk(e))|0}:function(t,e){o=o+rf(tk(t),tk(e))|0}:n?function(t){o=31*o+tk(t)|0}:function(t){o=o+tk(t)|0}),r=tb(r=o,0xcc9e2d51),r=tb(r<<15|r>>>-15,0x1b873593),r=((r=tb(r<<13|r>>>-13,5))+0xe6546b64|0)^e,r=tb(r^r>>>16,0x85ebca6b),r=tw((r=tb(r^r>>>13,0xc2b2ae35))^r>>>16)}(this))}});var re=h.prototype;re[b]=!0,re[q]=re.values,re.__toJS=re.toArray,re.__toStringMapper=ra,re.inspect=re.toSource=function(){return this.toString()},re.chain=re.flatMap,re.contains=re.includes;try{Object.defineProperty(re,"length",{get:function(){if(!h.noLengthWarning){var t;try{throw 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){}rt(p,{flip:function(){return eT(this,ew(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 th(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return th(e,t)})},mapEntries:function(t,e){var r=this,n=0;return eT(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return eT(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var rr=p.prototype;function rn(t,e){return e}function ri(t,e){return[e,t]}function ro(t){return function(){return!t.apply(this,arguments)}}function ru(t){return function(){return-t.apply(this,arguments)}}function ra(t){return"string"==typeof t?JSON.stringify(t):t}function rs(){return A(arguments)}function rc(t,e){return t<e?1:t>e?-1:0}function rf(t,e){return t^e+0x9e3779b9+(t<<6)+(t>>2)}return rr[w]=!0,rr[q]=re.entries,rr.__toJS=re.toObject,rr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+ra(t)},rt(d,{toKeyedSeq:function(){return new e_(this,!1)},filter:function(t,e){return eT(this,eE(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 eT(this,ex(this,!1))},slice:function(t,e){return eT(this,eC(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=L(t,t<0?this.count():this.size,0);var n=this.slice(0,t);return eT(this,1===r?n:n.concat(A(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 eT(this,eD(this,t,!1))},get:function(t,e){return(t=B(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=B(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){var e,r;return eT(this,(e=this,(r=eL(e)).size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return e.__iterate(function(e,n){return(!o||!1!==r(t,o++,i))&&!1!==r(e,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=e.__iterator(1,n),u=0;return new P(function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?j(r,u++,t):j(r,u++,i.value,i)})},r))},interleave:function(){var t=[this].concat(A(arguments)),e=eA(this.toSeq(),Y.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),eT(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return eT(this,eO(this,t,e,!1))},zip:function(){var t=[this].concat(A(arguments));return eT(this,eA(this,rs,t))},zipWith:function(t){var e=A(arguments);return e[0]=this,eT(this,eA(this,t,e))}}),d.prototype[k]=!0,d.prototype[x]=!0,rt(y,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),y.prototype.has=re.includes,rt(X,p.prototype),rt(Y,d.prototype),rt(Q,y.prototype),rt(t_,p.prototype),rt(tm,d.prototype),rt(tS,y.prototype),{Iterable:h,Seq:G,Collection:tv,Map:tz,OrderedMap:ep,List:t4,Stack:e6,Set:eJ,OrderedSet:eZ,Record:eP,Range:tg,Repeat:td,is:th,fromJS:tf}}()},826155:t=>{"use strict";
1t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},828525:t=>{"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&t.nodeType===Node.ELEMENT_NODE}},830173:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e){return t.offset===e.offset?e.length-t.length:t.offset-e.offset}},830801:(t,e,r)=>{"use strict";var n=r(942583);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(123694),u=r(49604),a=r(621462),s=r(409850),c=r(477996),f=r(221324),l=r(481409),h=r(696932),p=r(513876),d=r(80007),y=r(797078),g=r(843653),v=r(989926),_=r(729251),m=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e};t.exports=function(t){function e(){for(var e,r,n,i,o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(u))||this),i=void 0,(n="_node")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var t,e=this.props.selection,r=e.getEndKey();if(e.getHasFocus()&&r===this.props.block.getKey()){var n=this._node;if(null!=n){var i=c.getScrollParent(n),o=d(i);if(i===window){var u=p(n);(t=u.y+u.height-y().height)>0&&window.scrollTo(o.x,o.y+t+10)}else v(n)||g(!1),(t=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&s.setTop(i,s.getTop(i)+t+10)}}}},r._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),s=this.props.tree.size-1,c=m(this.props.selection,r);return this.props.tree.map(function(h,p){var d=h.get("leaves");if(0===d.size)return null;var y=d.size-1,g=d.map(function(i,f){var l=u.encode(r,p,f),h=i.get("start"),d=i.get("end");return a.createElement(o,{key:l,offsetKey:l,block:e,start:h,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(h,d),styleSet:e.getInlineStyleAt(h),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:p===s&&f===y})}).toArray(),v=h.get("decoratorKey");if(null==v||!t.props.decorator)return g;var m=_(t.props.decorator),S=m.getComponentForKey(v);if(!S)return g;var b=m.getPropsForKey(v),w=u.encode(r,p,0),k=d.first().get("start"),x=d.last().get("end"),E=n.slice(k,x),C=e.getEntityAt(h.get("start")),O=l.getHTMLDirIfDifferent(f.getDirection(E),t.props.direction),D={contentState:t.props.contentState,decoratedText:E,dir:O,start:k,end:x,blockKey:r,entityKey:C,offsetKey:w};return a.createElement(S,i({},b,D,{key:w}
vendor: 4,646 bytes, line 1
1),g)}).toArray()},r.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,i=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return a.createElement("div",{"data-offset-key":n,className:i,ref:function(e){return t._node=e}},this._renderChildren())},e}(a.Component)},837477:(t,e,r)=>{"use strict";var n=r(791245),i=r(540317),o=r(93253),u=r(222813),a={currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=i.push(t,e,"insert-characters");return i.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var u=r.getBlockMap().delete(o.getKey()),s=r.merge({blockMap:u,selectionAfter:e});if(s!==r)return i.push(t,s,"remove-range")}var c=a.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),o=e.getStartKey(),u=r.getBlockForKey(o).getLength();if(e.getStartOffset()<u)return null;var a=r.getBlockAfter(o);if(!a||"atomic"!==a.getType())return null;var s=e.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),c=n.removeRange(r,s,"forward");return c!==r?i.push(t,c,"remove-range"):null},onTab:function(t,e,r){var n=e.getSelection(),u=n.getAnchorKey();if(u!==n.getFocusKey())return e;var a=e.getCurrentContent(),s=a.getBlockForKey(u),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var f=s.getDepth();if(!t.shiftKey&&f===r)return e;var l=o(a,n,t.shiftKey?-1:1,r);return i.push(e,l,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),o=r.getStartKey(),a=r.getEndKey(),s=t.getCurrentContent(),c=r;if(o!==a&&0===r.getEndOffset()){var f=u(s.getBlockBefore(a));a=f.getKey(),c=c.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:a,focusOffset:f.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile(function(t,e){return e!==o}).reverse().skipWhile(function(t,e){return e!==a}).some(function(t){return"atomic"===t.getType()}))return t;var l=s.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,n.setBlockType(s,c,l),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?a.toggleBlockType(t,"code-block"):a.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r,o=t.getSelection(),u=t.getCurrentInlineStyle();if(o.isCollapsed())return i.setInlineStyleOverride(t,u.has(e)?u.remove(e):u.add(e));var a=t.getCurrentContent();return r=u.has(e)?n.removeInlineStyle(a,o,e):n.applyInlineStyle(a,o,e),i.push(t,r,"change-inline-style")},toggleLink:function(t,e,r){var o=n.applyEntity(t.getCurrentContent(),e,r);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var i=e.getAnchorKey(),o=t.getCurrentContent(),u=o.getBlockForKey(i).getType(),a=o.getBlockBefore(i);if("code-block"===u&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==u)return n.setBlockType(o,e,"unstyled")}return null}};t.exports=a},845631:(t,e,r)=>{"use strict";var n=r(333887);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"IMG"===t.nodeName}},846571:(t,e,r)=>{"use strict";var n=r(49604),i=r(729251);t.exports=function(t,e,r,o,u){var a=i(t.getSelection());if(!e||!o)return a;var s=n.decode(e),c=s.blockKey,f=t.getBlockTree(c),l=f&&f.getIn([s.decoratorKey,"leaves",s.leafKey]),h=n.decode(o),p=
1h.blockKey,d=t.getBlockTree(p),y=d&&d.getIn([h.decoratorKey,"leaves",h.leafKey]);if(!l||!y)return a;var g=l.get("start"),v=y.get("start"),_=l?g+r:null,m=y?v+u:null;if(a.getAnchorKey()===c&&a.getAnchorOffset()===_&&a.getFocusKey()===p&&a.getFocusOffset()===m)return a;var S=!1;if(c===p){var b=l.get("end"),w=y.get("end");S=v===g&&w===b?u<r:v<g}else S=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===p}).first()===p;return a.merge({anchorKey:c,anchorOffset:_,focusKey:p,focusOffset:m,isBackward:S})}},848311:(t,e,r)=>{"use strict";var n=r(270149);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(696082),u=r(847132),a=r(98582),s=r(131667);t.exports=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,e.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,f=t.decoratorKey,l=t.direction,h=t.leafSet,p=t.text,d=e.getKey(),y=h.get("leaves"),g=c.getComponentForKey(f),v=c.getPropsForKey(f),_=o.encode(d,parseInt(f,10),0),m=p.slice(y.first().get("start"),y.last().get("end")),S=s.getHTMLDirIfDifferent(a.getDirection(m),l);return u.createElement(g,i({},v,{contentState:n,decoratedText:m,dir:S,key:_,entityKey:e.getEntityAt(h.get("start")),offsetKey:_}),r)},e}(u.Component)},849685:(t,e,r)=>{"use strict";var n=r(339731);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},855390:(t,e,r)=>{"use strict";var n=r(325291),i=r(822428).List;t.exports=function(t,e){return i(t.map(function(t,r){var i=e[r];return n.create({style:t,entity:i})}))}},862509:(t,e,r)=>{"use strict";var n=r(48339),i=r(26744),o=r(582966).OrderedMap,u=function(t){var e,r={};return o(t.withMutations(function(t){t.forEach(function(n,o){var u=n.getKey(),a=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),f=n.getParentKey(),l=i();if(r[u]=l,a&&(t.get(a)?t.setIn([a,"prevSibling"],l):t.setIn([u,"nextSibling"],null)),s&&(t.get(s)?t.setIn([s,"nextSibling"],l):t.setIn([u,"prevSibling"],null)),f&&t.get(f)){var h=t.get(f).getChildKeys();t.setIn([f,"children"],h.set(h.indexOf(n.getKey()),l))}else t.setIn([u,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],l),t.setIn([u,"prevSibling"],r[e.getKey()])),e=t.get(u);c.forEach(function(e){t.get(e)?t.setIn([e,"parent"],l):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.exports=function(t){return t.first()instanceof n?u(t):o(t.toArray().map(function(t){var e=i();return[e,t.set("key",e)]}))}},865531:(t,e,r)=>{"use strict";var n=r(186673),i=r(657792),o=r(610843);function u(t,e,r,u,a,s,c){var f=r.getStartOffset(),l=r.getEndOffset(),h=t.__get(a).getMutability(),p=c?f:l;if("MUTABLE"===h)return r;var d=i(e,a).filter(function(t){return p<=t.end&&p>=t.start});1!=d.length&&o(!1);var y=d[0];if("IMMUTABLE"===h)return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1});s||(c?l=y.end:f=y.start);var g=n.getRemovalRange(f,l,e.getText().slice(y.start,y.end),y.start,u);return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}t.exports=function(t,e,r,n,i){var o=n.getStartOffset(),a=n.getEndOffset(),s=e.getEntityAt(o),c=r.getEntityAt(a-1);if(!s&&!c)return n;var f=n;if(s&&s===c)f=u(t,e,f,i,s,!0,!0);else if(s&&c){var l=u(t,e,f,i,s,!1,!0),h=u(t,r,f,i,c,!1,!1);f=f.merge({anchorOffset:l.getAnchorOffset(),focusOffset:h.getFocusOffset(),isBackward:!1})}else if(s){var p=u(t,e,f,i,s,!1,!0);f=f.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=u(t,r,f,i,c,!1,!1);f=f.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return f}},866190:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e;return"undefined"!=typeof DOMParser?(null===(e=new DOMParser().parseFromString(t,"text/html"))||null===e.body)&&(e=r(t)):e=r(t),e.body};var r=function(t){var e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,e}},867612:(t,e,r)=>{"use strict";var n=r(200867);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},875299:(t,e,r)=>{"use strict";var n=r(333887);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"A"===t.nodeName}},877743:(t,e,r)=>{"use strict";
1var n=r(902177),i=r(134364),o=r(610843);function u(t,e,r){var u=e.getCharacterList(),a=r>0?u.get(r-1):void 0,s=r<u.count()?u.get(r):void 0,c=a?a.getEntity():void 0,f=s?s.getEntity():void 0;if(f&&f===c&&"MUTABLE"!==t.__get(f).getMutability()){for(var l,h,p=(i(u,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===f},function(t,e){t<=r&&e>=r&&(l={start:t,end:e})}),"object"!=typeof l&&o(!1),l),d=p.start,y=p.end;d<y;)h=u.get(d),u=u.set(d,n.applyEntity(h,null)),d++;return e.set("characterList",u)}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),i={},o=e.getStartKey(),a=e.getStartOffset(),s=r.get(o),c=u(n,s,a);c!==s&&(i[o]=c);var f=e.getEndKey(),l=e.getEndOffset(),h=r.get(f);o===f&&(h=c);var p=u(n,h,l);return(p!==h&&(i[f]=p),Object.keys(i).length)?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},881434:(t,e,r)=>{"use strict";t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===t){var o=this.getStartOffset(),u=this.getEndOffset();return e<=o&&o<=r||e<=u&&u<=r}if(t!==n&&t!==i)return!1;var a=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=a&&r>=a},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}((0,r(582966).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}))},893347:t=>{"use strict";t.exports=function(t){return"undefined"!=typeof window&&!!window.__DRAFT_GKX&&!!window.__DRAFT_GKX[t]}},893968:(t,e,r)=>{"use strict";var n=r(200867);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}
vendor: 13,404 bytes, line 1
1)}},897716:(t,e,r)=>{"use strict";var n=r(847132),i=r(783798);t.exports=(0,r(582966).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:n.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}})},902177:(t,e,r)=>{"use strict";var n=r(582966),i=n.Map,o=n.OrderedSet,u=n.Record,a=o(),s={style:a,entity:null},c=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,r){var n=t.set("style",t.getStyle().add(r));return e.create(n)},e.removeStyle=function(t,r){var n=t.set("style",t.getStyle().remove(r));return e.create(n)},e.applyEntity=function(t,r){var n=t.getEntity()===r?t:t.set("entity",r);return e.create(n)},e.create=function(t){if(!t)return f;var r=i({style:a,entity:null}).merge(t),n=l.get(r);if(n)return n;var o=new e(r);return l=l.set(r,o),o},e.fromJS=function(t){var r=t.style,n=t.entity;return new e({style:Array.isArray(r)?o(r):r,entity:Array.isArray(n)?o(n):n})},e}(u(s)),f=new c,l=i([[i(s),f]]);c.EMPTY=f,t.exports=c},902303:(t,e,r)=>{"use strict";var n=r(709869),i=r(563298),o=r(822428),u=r(843653),a=r(950239),s=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(),l=o.get(r),h=l.getText();if(!h){var p=l.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return a(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var d=e.getAnchorOffset(),y=l.getCharacterList(),g=i(),v=l instanceof n,_=l.merge({text:h.slice(0,d),characterList:y.slice(0,d)}),m=_.merge({key:g,text:h.slice(d),characterList:y.slice(d),data:c()}),S=o.toSeq().takeUntil(function(t){return t===l}),b=o.toSeq().skipUntil(function(t){return t===l}).rest(),w=S.concat([[r,_],[g,m]],b).toOrderedMap();return v&&(l.getChildKeys().isEmpty()||u(!1),w=w.withMutations(function(t){var e=_.getKey(),r=m.getKey();f(_.getParentKey(),t,function(t){var n=t.getChildKeys(),i=n.indexOf(e)+1,o=n.toArray();return o.splice(i,0,r),t.merge({children:s(o)})}),f(_.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:r})}),f(e,t,function(t){return t.merge({nextSibling:r})}),f(r,t,function(t){return t.merge({prevSibling:e})})})),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},903815:(t,e,r)=>{"use strict";var n=r(545485),i=r(709869),o=r(251954),u=r(219784),a=r(439543),s=r(843653),c=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:a(t),entityRanges:u(t,e),data:t.getData().toObject()}},f=function(t,e,r,o){if(t instanceof n)return void r.push(c(t,e));t instanceof i||s(!1);var u=t.getParentKey(),a=o[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},c(t,e),{children:[]});if(u)return void o[u].children.push(a);r.push(a)},l=function(t,e){var r=e.entityMap,n=[],i={},u={},a=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var n=t.getEntityAt(e),i=o.stringify(n);!u[i]&&(u[i]=n,r[i]="".concat(a),a++)}),f(t,r,n,i)}),{blocks:n,entityMap:r}},h=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach(function(e,r){var n=t.getEntity(o.unstringify(e));i[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:i}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=l(t,e),e=h(t,e)}},911667:(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(184733),o=r(126465),u=r(388548),a=r(822428),s=r(843653),c=r(729251),f=a.Map,l={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},h=i.isBrowser("IE <= 11");t.exports=function(){function t(t){var e=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=t,this.mutations=f();var r=u(t);r.MutationObserver&&!h?this.observer=new r.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,l):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=f(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return h?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";else if(""!==r.textContent)return r.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(o(t.target));this.mutations=this.mutations.set(r,e)}},t}()},915760:(t,e,r)=>{"use strict";var n=r(184733),i=r(843653);t.exports=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var o,u=n===t.commonAncestorContainer;u?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a=Array.from(e.getClientRects());if(r.push(a),u)return r.reverse(),(o=[]).concat.apply(o,r);e.setEndBefore(n)}i(!1)}:function(t){return Array.from(t.getClientRects())}},931467:(t,e,r)=>{"use strict";var n=r(731651),i=r(200867),o=r(614343),u=r(729251),a={currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=i.push(t,e,"insert-characters");return i.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var u=r.getBlockMap().delete(o.getKey()),s=r.merge({blockMap:u,selectionAfter:e});if(s!==r)return i.push(t,s,"remove-range")}var c=a.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),o=e.getStartKey(),u=r.getBlockForKey(o).getLength();if(e.getStartOffset()<u)return null;var a=r.getBlockAfter(o);if(!a||"atomic"!==a.getType())return null;var s=e.merge({focusKey:a.getKey(),focusOffset:a.getLength()}),c=n.removeRange(r,s,"forward");return c!==r?i.push(t,c,"remove-range"):null},onTab:function(t,e,r){var n=e.getSelection(),u=n.getAnchorKey();if(u!==n.getFocusKey())return e;var a=e.getCurrentContent(),s=a.getBlockForKey(u),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var f=s.getDepth();if(!t.shiftKey&&f===r)return e;var l=o(a,n,t.shiftKey?-1:1,r);return i.push(e,l,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),o=r.getStartKey(),a=r.getEndKey(),s=t.getCurrentContent(),c=r;if(o!==a&&0===r.getEndOffset()){var f=u(s.getBlockBefore(a));a=f.getKey(),c=c.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:a,focusOffset:f.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile(function(t,e){return e!==o}).reverse().skipWhile(function(t,e){return e!==a}).some(function(t){return"atomic"===t.getType()}))return t;var l=s.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,n.setBlockType(s,c,l),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?a.toggleBlockType(t,"code-block"):a.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r,o=t.getSelection(),u=t.getCurrentInlineStyle();if(o.isCollapsed())return i.setInlineStyleOverride(t,u.has(e)?u.remove(e):u.add(e));var a=t.getCurrentContent();return r=u.has(e)?n.removeInlineStyle(a,o,e):n.applyInlineStyle(a,o,e),i.push(t,r,"change-inline-style")},toggleLink:function(t,e,r){var o=n.applyEntity(t.getCurrentContent(),e,r);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var i=e.getAnchorKey(),o=t.getCurrentContent(),u=o.getBlockForKey(i).getType(),a=o.getBlockBefore(i);if("code-block"===u&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==u)return n.setBlockType(o,e,"unstyled")}return null}};t.exports=a},932339:(t,e,r)=>{"use strict";var n=r(915760);t.exports=function(t){var e=n(t),r=0,i=0,o=0,u=0;if(e.length){if(e.length>1&&0===e[0].width){var a=e[1];r=a.top,i=a.right,o=a.bottom,u=a.left}else{var s=e[0];r=s.top,i=s.right,o=s.bottom,u=s.left}for(var c=1;c<e.length;c++){var f=e[c];0!==f.height&&0!==f.width&&(r=Math.min(r,f.top),i=Math.max(i,f.right),o=Math.max(o,f.bottom),u=Math.min(u,f.left))}}return{top:r,right:i,bottom:o,left:u,width:i-u,height:o-r}}},941378:()=>{},950239:(t,e,r)=>{"use strict";var n=r(822428).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),u=t.getBlockMap(),a=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(a),selectionBefore:e,selectionAfter:e})}},951144:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},954237:(t,e,r)=>{"use strict";var n=r(427154),i=r(822428),o=r(843653),u=r(21256),a=(0,i.Map)(),s=u();function c(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var f={getLastCreatedEntityKey:function(){return c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(t,e,r){return c("DraftEntity.create","contentState.createEntity"),f.__create(t,e,r)},add:function(t){return c("DraftEntity.add","contentState.addEntity"),f.__add(t)},get:function(t){return c("DraftEntity.get","contentState.getEntity"),f.__get(t)},__getAll:function(){return a},__loadWithEntities:function(t){a=t,s=u()},mergeData:function(t,e){return c("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(t,e)},replaceData:function(t,e){return c("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return s},__create:function(t,e,r){return f.__add(new n({type:t,mutability:e,data:r||{}}))},__add:function(t){return s=u(),a=a.set(s,t),s},__get:function(t){var e=a.get(t);return e||o(!1),e},__mergeData:function(t,e){var r=f.__get(t),n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},r.getData(),e),i=r.set("data",n);return a=a.set(t,i),i},__replaceData:function(t,e){var r=f.__get(t).set("data",e);return a=a.set(t,r),r}};t.exports=f},955733:(t,e,r)=>{"use strict";
1var n=r(911667),i=r(731651),o=r(49604),u=r(200867),a=r(668899),s=r(184733),c=r(387634),f=r(596041),l=r(239789),h=r(292506),p=r(729251),d=s.isBrowser("IE"),y=!1,g=!1,v=null,_={onCompositionStart:function(t){g=!0,v||(v=new n(f(t))).start()},onCompositionEnd:function(t){y=!1,g=!1,setTimeout(function(){y||_.resolveComposition(t)},20)},onSelect:c,onKeyDown:function(t,e){if(!g){_.resolveComposition(t),t._onKeyDown(e);return}(e.which===a.RIGHT||e.which===a.LEFT)&&e.preventDefault()},onKeyPress:function(t,e){e.which===a.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!g){var e=p(v).stopAndFlushMutations();v=null,y=!0;var r=u.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!e.size)return void t.update(r);var n=r.getCurrentContent();e.forEach(function(t,e){var a=o.decode(e),s=a.blockKey,c=a.decoratorKey,f=a.leafKey,l=r.getBlockTree(s).getIn([c,"leaves",f]),p=l.start,d=l.end,y=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:p,focusOffset:d,isBackward:!1}),g=h(n,y),v=n.getBlockForKey(s).getInlineStyleAt(p);n=i.replaceText(n,y,t,v,g),r=u.set(r,{currentContent:n})});var a=l(r,f(t)).selectionState;t.restoreEditorDOM();var s=d?u.forceSelection(r,a):u.acceptSelection(r,a);t.update(u.push(s,n,"insert-characters"))}}};t.exports=_},955911:(t,e,r)=>{"use strict";var n=r(847132),i=r(783798);t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},r.render=function(){var t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
1Focus":this.props.editorState.getSelection().getHasFocus()});return n.createElement("div",{className:t},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},e}(n.Component)},963586: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){return i===t.get("start")&&(o=!0,!0)})}),o}},969103:(t,e,r)=>{"use strict";var n=r(668899);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},973862:(t,e,r)=>{"use strict";var n=r(942583);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(830801),u=r(49604),a=r(621462),s=r(696932),c=r(903993),f=r(729251);t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var u=e.getCurrentContent(),a=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||u!==a||s!==c||r.mustForceSelection()},r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,l=t.customStyleMap,h=t.customStyleFn,p=t.editorState,d=t.editorKey,y=t.preventScroll,g=t.textDirectionality,v=p.getCurrentContent(),_=p.getSelection(),m=p.mustForceSelection(),S=p.getDecorator(),b=f(p.getDirectionMap()),w=v.getBlocksAsArray(),k=[],x=null,E=null,C=0;C<w.length;C++){var O=w[C],D=O.getKey(),K=O.getType(),I=r(O),M=void 0,A=void 0,T=void 0;I&&(M=I.component,A=I.props,T=I.editable);var B=g||b.get(D),z=u.encode(D,0,0),R={contentState:v,block:O,blockProps:A,blockStyleFn:n,customStyleMap:l,customStyleFn:h,decorator:S,direction:B,forceSelection:m,offsetKey:z,preventScroll:y,selection:_,tree:p.getBlockTree(D)},L=e.get(K)||e.get("unstyled"),F=L.wrapper,N=L.element||e.get("unstyled").element,q=O.getDepth(),P="";(n&&(P=n(O)),"li"===N)&&(P=c(P,s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===K,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===K,"public/DraftStyleDefault/reset":E!==F||null===x||q>x,"public/DraftStyleDefault/depth0":0===q,"public/DraftStyleDefault/depth1":1===q,"public/DraftStyleDefault/depth2":2===q,"public/DraftStyleDefault/depth3":3===q,"public/DraftStyleDefault/depth4":q>=4,"public/DraftStyleDefault/listLTR":"LTR"===B,"public/DraftStyleDefault/listRTL":"RTL"===B})));var j=M||o,U={className:P,"data-block":!0,"data-editor":d,"data-offset-key":z,key:D};void 0!==T&&(U=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return t}({},U,{contentEditable:T,suppressContentEditableWarning:!0}));var H=a.createElement(N,U,a.createElement(j,i({},R,{key:D})));k.push({block:H,wrapperTemplate:F,key:D,offsetKey:z}),x=F?O.getDepth():null,E=F}for(var W=[],J=0;J<k.length;){var V=k[J];if(V.wrapperTemplate){var G=[];do G.push(k[J].block),J++;while(J<k.length&&k[J].wrapperTemplate===V.wrapperTemplate);var X=a.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},G);W.push(X)}else W.push(V.block),J++}return a.createElement("div",{"data-contents":"true"},W)},e}(a.Component)},974461:(t,e,r)=>{"use strict";
1var n=r(48339),i=r(26744),o=r(582966),u=r(610843),a=r(998889),s=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(),l=o.get(r),h=l.getText();if(!h){var p=l.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return a(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var d=e.getAnchorOffset(),y=l.getCharacterList(),g=i(),v=l instanceof n,_=l.merge({text:h.slice(0,d),characterList:y.slice(0,d)}),m=_.merge({key:g,text:h.slice(d),characterList:y.slice(d),data:c()}),S=o.toSeq().takeUntil(function(t){return t===l}),b=o.toSeq().skipUntil(function(t){return t===l}).rest(),w=S.concat([[r,_],[g,m]],b).toOrderedMap();return v&&(l.getChildKeys().isEmpty()||u(!1),w=w.withMutations(function(t){var e=_.getKey(),r=m.getKey();f(_.getParentKey(),t,function(t){var n=t.getChildKeys(),i=n.indexOf(e)+1,o=n.toArray();return o.splice(i,0,r),t.merge({children:s(o)})}),f(_.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:r})}),f(e,t,function(t){return t.merge({nextSibling:r})}),f(r,t,function(t){return t.merge({prevSibling:e})})})),t.merge({blockMap:w,selectionBefore:e,selectionAfter:e.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},976204:(t,e,r)=>{"use strict";t.exports=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===t){var o=this.getStartOffset(),u=this.getEndOffset();return e<=o&&o<=r||e<=u&&u<=r}if(t!==n&&t!==i)return!1;var a=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=a&&r>=a},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}((0,r(822428).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}))},979210:t=>{"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},979940:(t,e,r)=>{"use strict";var n=r(530007),i=r(200867),o=r(631677),u=r(36529);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);return o(t,n.getForward(u).length||1)},"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},988613:(t,e,r)=>{"use strict";var n=r(200867);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"===e.getLastChangeType()){var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}));return}if(t.preventDefault(),!e.getNativelyRenderedContent())return void r(i);r(n.set(e,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)}},989926:t=>{"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},994324:(t,e,r)=>{"use strict";var n=r(333887);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"BR"===t.nodeName}},998889:(t,e,r)=>{"use strict";var n=r(582966).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),u=t.getBlockMap(),a=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(a),selectionBefore:e,selectionAfter:e})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.