(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"/y+l":function(e,t,n){"use strict";var r=n("MgzW")||function(e){for(var t=1;t0)return" "+e}else if(t2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[k()],entities:new Array(1),blocks:[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({},N,e)}({parent:n,key:v(),type:e,depth:Math.max(0,Math.min(4,t))})]}},W=function e(t,n,r,i,a,c,s,u,l,p){var g=R,d=n.nodeName.toLowerCase(),y=t,v="unstyled",m=!1,b=a&&P(a,i,u),S=o({},I),x=void 0;if("#text"===d){var C=n.textContent,O=C.trim();if(i&&""===O&&n.parentElement){var T=n.parentElement.nodeName.toLowerCase();if("ol"===T||"ul"===T)return{chunk:o({},I),entityMap:t}}return""===O&&"pre"!==a?{chunk:function(e){var t=new Array(1);return e&&(t[0]=e),o({},I,{text:" ",inlines:[k()],entities:t})}(l),entityMap:t}:("pre"!==a&&(C=C.replace(E," ")),R=d,{chunk:{text:C,inlines:Array(C.length).fill(r),entities:Array(C.length).fill(l),blocks:[]},entityMap:t})}if(R=d,"br"===d)return"br"!==g||a&&"unstyled"!==b?{chunk:J(),entityMap:t}:{chunk:H("unstyled",s,p),entityMap:t};if("img"===d&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var K=n,N={};L.forEach(function(e){var t=K.getAttribute(e);t&&(N[e]=t)}),n.textContent="📷",l=f.__create("IMAGE","MUTABLE",N||{})}r=function(e,t,n){var r=M[e];if(r)n=n.add(r).toOrderedSet();else if(t instanceof HTMLElement){var o=t;n=n.withMutations(function(e){var t=o.style.fontWeight,n=o.style.fontStyle,r=o.style.textDecoration;_.indexOf(t)>=0?e.add("BOLD"):D.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===r&&e.add("UNDERLINE"),"line-through"===r&&e.add("STRIKETHROUGH"),"none"===r&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}return n}(d,n,r),"ul"!==d&&"ol"!==d||(i&&(s+=1),i=d),!w&&"li"===d&&n instanceof HTMLElement&&(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(A).some(function(n){e.classList.contains(n)&&(t=A[n])}),t}(n,s));var F=P(d,i,u),W=i&&"li"===a&&"li"===d,Y=(!a||w)&&-1!==c.indexOf(d);(W||Y)&&(x=(S=H(F,s,p)).blocks[0].key,a=d,m=!w),W&&(v="ul"===i?"unordered-list-item":"ordered-list-item");var z=n.firstChild;null!=z&&(d=z.nodeName.toLowerCase());for(var q=null;z;){z instanceof HTMLAnchorElement&&z.href&&U(z)?function(){var e=z,t={};B.forEach(function(n){var r=e.getAttribute(n);r&&(t[n]=r)}),t.url=new h(e.href).toString(),q=f.__create("LINK","MUTABLE",t||{})}():q=void 0;var V=e(y,z,r,i,a,c,s,u,q||l,w?x:null),X=V.chunk;y=V.entityMap,S=j(S,X,w);var G=z.nextSibling;!p&&G&&c.indexOf(d)>=0&&a&&(S=j(S,J())),G&&(d=G.nodeName.toLowerCase()),z=G}return m&&(S=j(S,H(v,s,p))),{chunk:S,entityMap:y}},Y=function(e,t,n,r){e=e.trim().replace(C,"").replace(O," ").replace(T,"").replace(K,"");var i=function(e){var t=e.get("unstyled").element,n=d([]);return e.forEach(function(e){e.aliasedElements&&e.aliasedElements.forEach(function(e){n=n.add(e)}),n=n.add(e.element)}),n.filter(function(e){return e&&e!==t}).toArray().sort()}(n),a=t(e);if(!a)return null;R=null;var c=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,i)?i:["div"],s=W(r,a,k(),"ul",null,c,-1,n),u=s.chunk,l=s.entityMap;return 0===u.text.indexOf("\r")&&(u={text:u.text.slice(1),inlines:u.inlines.slice(1),entities:u.entities.slice(1),blocks:u.blocks}),"\r"===u.text.slice(-1)&&(u.text=u.text.slice(0,-1),u.inlines=u.inlines.slice(0,-1),u.entities=u.entities.slice(0,-1),u.blocks.pop()),0===u.blocks.length&&u.blocks.push(o({},I,{type:"unstyled",depth:0})),u.text.split("\r").length===u.blocks.length+1&&u.blocks.unshift({type:"unstyled",depth:0}),{chunk:u,entityMap:l}};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,r=Y(e,t,n,f);if(null==r)return null;var o=r.chunk,i=r.entityMap;return{contentBlocks:function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,n=e.blocks,r=e.inlines,o=e.entities,i=w?u:s;return e.text.split("\r").reduce(function(e,a,s){a=S(a);var l=n[s],f=t+a.length,p=r.slice(t,f),g=o.slice(t,f),d=x(p.map(function(e,t){var n={style:e,entity:null};return g[t]&&(n.entity=g[t]),c.create(n)}));t=f+1;var h=l.depth,y=l.type,m=l.parent,b=l.key||v(),w=null;if(m){var k=e.cacheRef[m],C=e.contentBlocks[k];if(C.getChildKeys().isEmpty()&&C.getText()){var E=C.getCharacterList(),O=C.getText();w=v();var T=new u({key:w,text:O,characterList:E,parent:m,nextSibling:b});e.contentBlocks.push(T),C=C.withMutations(function(e){e.set("characterList",x()).set("text","").set("children",C.children.push(T.getKey()))})}e.contentBlocks[k]=C.set("children",C.children.push(b))}var K=new i({key:b,parent:m,type:y,depth:h,text:a,characterList:d,prevSibling:w||(0===s||n[s-1].parent!==m?null:n[s-1].key),nextSibling:s===n.length-1||n[s+1].parent!==m?null:n[s+1].key});return e.contentBlocks.push(K),e.cacheRef[K.key]=s,e},{cacheRef:{},contentBlocks:[]}).contentBlocks}(o),entityMap:i}}},"2NuI":function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,c,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,c,s],f=0;(u=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},"3Br+":function(e,t,n){"use strict";var r=n("3sOJ"),o=n("jLRO"),i=n("kWjT"),a=n("8d//");e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),c=n.getBlockForKey(r).getText()[a-1];return i(e,c?o.getUTF16Length(c,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},"3sOJ":function(e,t,n){"use strict";var r=n("MgzW")||function(e){for(var t=1;t0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return y(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return y(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return d(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),d(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var c=t.getSelection(),s=t.getCurrentContent(),u=t.getUndoStack(),l=n;c!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(u=u.push(s),l=l.set("selectionBefore",c)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var p=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(p=null);var g={currentContent:l,directionMap:i,undoStack:u,redoStack:f(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:p};return e.set(t,g)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function d(e,t,n){return g.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function h(e,t){return e.getBlockMap().map(function(n){return o.generate(e,n,t)}).toOrderedMap()}function y(e,t){var n=e.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=g},"5RSi":function(e,t,n){"use strict";var r=n("Iq8E"),o=n("gWRK");e.exports=function(e,t,n,i,a){var c=o(e.getSelection()),s=r.decode(t),u=s.blockKey,l=e.getBlockTree(u).getIn([s.decoratorKey,"leaves",s.leafKey]),f=r.decode(i),p=f.blockKey,g=e.getBlockTree(p).getIn([f.decoratorKey,"leaves",f.leafKey]),d=l.get("start"),h=g.get("start"),y=l?d+n:null,v=g?h+a:null;if(c.getAnchorKey()===u&&c.getAnchorOffset()===y&&c.getFocusKey()===p&&c.getFocusOffset()===v)return c;var m=!1;if(u===p){var b=l.get("end"),S=g.get("end");m=h===d&&S===b?a-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},"84lc":function(e,t,n){"use strict";var r=n("JPcv").List,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach(function(r,o){var i=0;(0,r.strategy)(e,function(e,t){(function(e,t,n){for(var r=t;ra.getBlockForKey(o).getText().length-i?(c=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:c,focusOffset:n})}},DYKh:function(e,t,n){"use strict";var r=n("V8dp"),o=n("bu5B");e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),s=o(e,t).getBlockMap(),u=s.keySeq(),l=u.indexOf(n),f=u.indexOf(a)+1;return r(s.slice(l,f).map(function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e}))}},DeIs:function(e,t,n){"use strict";var r=n("83KV"),o=n("MxAa");e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,c=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,c)),n}},DthY:function(e,t,n){"use strict";var r=n("MgzW")||function(e){for(var t=1;t0&&window.scrollTo(o.x,o.y+i+10)}else{n instanceof HTMLElement||y(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetHeight+o.y))>0&&s.setTop(r,s.getTop(r)+i+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),c=t.getText(),s=this.props.tree.size-1,u=m(this.props.selection,n);return this.props.tree.map(function(p,g){var d=p.get("leaves"),h=d.size-1,y=d.map(function(r,l){var f=i.encode(n,g,l),p=r.get("start"),d=r.get("end");return a.createElement(o,{key:f,offsetKey:f,block:t,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:c.slice(p,d),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:g===s&&l===h})}).toArray(),m=p.get("decoratorKey");if(null==m)return y;if(!e.props.decorator)return y;var b=v(e.props.decorator),S=b.getComponentForKey(m);if(!S)return y;var w=b.getPropsForKey(m),x=i.encode(n,g,0),k=c.slice(d.first().get("start"),d.last().get("end")),C=f.getHTMLDirIfDifferent(l.getDirection(k),e.props.direction);return a.createElement(S,r({},w,{contentState:e.props.contentState,decoratedText:k,dir:C,key:x,entityKey:t.getEntityAt(p.get("start")),offsetKey:x}),y)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return a.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(a.Component);e.exports=b},ExA7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},FcOR:function(e,t,n){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},HDyB:function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},HEBY:function(e,t,n){"use strict";(function(t){var r=n("3sOJ"),o=n("HezI"),i=n("ISee"),a=n("kWjT"),c=n("8d//");e.exports=function(e){var n=c(e,function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}}).call(this,n("yLpj"))},HKS5:function(e,t,n){"use strict";(function(t){var r=n("2NuI"),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0},a=5e3;e.exports=function(e,n){var c=0,s=[];e.forEach(function(u){!function(e,n){if(t.FileReader&&(!e.type||e.type in i)){if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void n(a)}var c=new FileReader;c.onload=function(){var e=c.result;"string"!==typeof e&&r(!1),n(e)},c.onerror=function(){n("")},c.readAsText(e)}else n("")}(u,function(t){c++,t&&s.push(t.slice(0,a)),c==e.length&&n(s.join("\r"))})})}}).call(this,n("yLpj"))},Hdlu:function(e,t,n){"use strict";var r=n("q1tI"),o=n("YVIB"),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},t}(r.Component);e.exports=i},HezI:function(e,t,n){"use strict";var r=n("jLRO"),o=n("158f"),i=n("2NuI");function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a=0;g--)if(!(null!=p&&g>0&&r.isSurrogatePair(p,g-1))){if(e.setStart(l,g),!a(o(e),n))break;s=l,u=g}if(-1===g||0===l.childNodes.length)break;f=c(l=l.childNodes[g])}return e.setStart(s,u),e}},HriT:function(e,t,n){"use strict";var r=new RegExp("\r","g");e.exports=function(e){return e.replace(r,"")}},I2Ug:function(e,t,n){"use strict";var r=n("JL7T"),o=n("JPcv"),i=n("VTBg"),a=n("2NuI"),c=o.OrderedMap,s=o.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t,n,o){"replace"===o&&a(!1);var l=n.getKey(),f=t.getKey();f===l&&a(!1);var p=e.getBlockMap(),g=t instanceof r,d=[t],h=p.delete(f);g&&(d=[],h=p.withMutations(function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===f}).takeWhile(function(e){var t=e.getKey(),o=t===f,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)}).forEach(function(t){d.push(t),e.delete(t.getKey())})}));var y=h.toSeq().takeUntil(function(e){return e===n}),v=h.toSeq().skipUntil(function(e){return e===n}).skip(1),m=d.map(function(e){return[e.getKey(),e]}),b=c();if("before"===o){var S=e.getBlockBefore(l);S&&S.getKey()===t.getKey()&&a(!1),b=y.concat([].concat(m,[[l,n]]),v).toOrderedMap()}else if("after"===o){var w=e.getBlockAfter(l);w&&w.getKey()===f&&a(!1),b=y.concat([[l,n]].concat(m),v).toOrderedMap()}return e.merge({blockMap:function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),c=n.getKey(),l=t.getParentKey(),f=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),g=n.getParentKey(),d=i?n.getNextSiblingKey():c,h=i?c:n.getPrevSiblingKey();return e.withMutations(function(e){u(l,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),u(p,e,function(e){return e.merge({nextSibling:f})}),u(f,e,function(e){return e.merge({prevSibling:p})}),u(d,e,function(e){return e.merge({prevSibling:a})}),u(h,e,function(e){return e.merge({nextSibling:a})}),u(g,e,function(e){var t=e.getChildKeys(),n=t.indexOf(c),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:s(o)})}),u(a,e,function(e){return e.merge({nextSibling:d,prevSibling:h,parent:g})})})}(b,t,n,o,g),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:f,focusKey:f})})}},I8OZ:function(e,t,n){"use strict";var r=n("fZAc"),o=n("mjHj"),i=n("2NuI"),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},ISR0:function(e,t,n){"use strict";var r=n("QvxS"),o=n("fyOY"),i=n("3sOJ"),a=n("kc9Y"),c=n("HKS5"),s=n("5RSi"),u=n("T401"),l=n("gWRK");var f={onDragEnd:function(e){e.exitCurrentMode()},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),f=e._latestEditorState,g=function(e,t){var n=null,r=null;if("function"===typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=l(n),r=l(r);var i=l(a(n));return s(t,i,r,i,r)}(t.nativeEvent,f);if(t.preventDefault(),e.exitCurrentMode(),null!=g){var d=n.getFiles();if(d.length>0){if(e.props.handleDroppedFiles&&u(e.props.handleDroppedFiles(g,d)))return;c(d,function(t){t&&e.update(p(f,g,t))})}else{var h=e._internalDrag?"internal":"external";e.props.handleDrop&&u(e.props.handleDrop(g,n,h))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(f,g)):e.update(p(f,g,n.getText())))}}}};function p(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=f},ISee:function(e,t,n){"use strict";var r=n("kc9Y"),o=n("zORg"),i=n("5RSi"),a=n("2NuI"),c=n("gWRK");function s(e,t,n){var i=t,s=r(i);if(null!=s||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var l=null;if(null!=s)l=s;else{var f=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);l=c(o(f))}return{key:l,offset:0}}var p=i.childNodes[n-1],g=null,d=null;if(o(p)){var h=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(p);g=c(o(h)),d=u(h)}else g=c(s),d=u(p);return{key:g,offset:d}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,u){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:i(e,c(r(n)),o,c(r(a)),u),needsRecovery:!1};var p=null,g=null,d=!0;return l?(p={key:c(r(n)),offset:o},g=s(t,a,u)):f?(g={key:c(r(a)),offset:u},p=s(t,n,o)):(p=s(t,n,o),g=s(t,a,u),n===a&&o===u&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,g.key,g.offset),needsRecovery:d}}},Idtq:function(e,t,n){"use strict";var r=n("Y3PQ");e.exports=r},Iq8E:function(e,t,n){"use strict";var r={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=r},"JI+E":function(e,t,n){"use strict";(function(t){var r=n("3sOJ"),o=n("TWoB"),i=n("jl2H");e.exports=function(e,n){if(i()===document.body){var a=t.getSelection(),c=e.editor;1===a.rangeCount&&o(c,a.anchorNode)&&o(c,a.focusNode)&&a.removeAllRanges()}var s=e._latestEditorState,u=s.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(n),e.update(r.acceptSelection(s,l))}}}).call(this,n("yLpj"))},JL7T:function(e,t,n){"use strict";var r=n("lFJn"),o=n("JPcv"),i=n("Taje"),a=o.List,c=o.Map,s=o.OrderedSet,u=o.Record,l=o.Repeat,f=s(),p={parent:null,characterList:a(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},g=function(e,t){return e.getStyle()===t.getStyle()},d=function(e,t){return e.getEntity()===t.getEntity()},h=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(r.EMPTY,n.length))),e},y=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,h(n)))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),g,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),d,e,t)},t}(u(p));e.exports=y},K4CH:function(e,t,n){var r;!function(o,i){"use strict";var a="model",c="name",s="type",u="vendor",l="version",f="mobile",p="tablet",g="smarttv",d=function(e){for(var t={},n=0;n0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3===i.length?"function"!==typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=c?c.replace(i[1],i[2]):void 0:this[i[0]]=c?i[1].call(this,c,i[2]):void 0:4===i.length&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||void 0;s+=2}},b=function(e,t){for(var n in t)if("object"===typeof t[n]&&t[n].length>0){for(var r=0;r2&&(e.model="iPad",e.type=p),e},this.getEngine=function(){var e={name:void 0,version:void 0};return m.call(e,r,a.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return m.call(e,r,a.os),c&&!e.name&&i&&"Unknown"!=i.platform&&(e.name=i.platform.replace(/chrome os/i,"Chromium OS").replace(/macos/i,"Mac OS")),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"===typeof e&&e.length>350?v(e,350):e,this},this.setUA(r),this};x.VERSION="0.7.35",x.BROWSER=d([c,l,"major"]),x.CPU=d(["architecture"]),x.DEVICE=d([a,u,s,"console",f,g,p,"wearable","embedded"]),x.ENGINE=x.OS=d([c,l]),"undefined"!==typeof t?("undefined"!==typeof e&&e.exports&&(t=e.exports=x),t.UAParser=x):n("PDX0")?void 0===(r=function(){return x}.call(t,n,t,e))||(e.exports=r):"undefined"!==typeof o&&(o.UAParser=x);var k="undefined"!==typeof o&&(o.jQuery||o.Zepto);if(k&&!k.ua){var C=new x;k.ua=C.getResult(),k.ua.get=function(){return C.getUA()},k.ua.set=function(e){C.setUA(e);var t=C.getResult();for(var n in t)k.ua[n]=t[n]}}}("object"===typeof window?window:this)},KL9H:function(e,t,n){"use strict";var r="Unknown",o={"Mac OS":"Mac OS X"};var i,a=(new(n("K4CH"))).getResult(),c=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),s={browserArchitecture:a.cpu.architecture||r,browserFullVersion:a.browser.version||r,browserMinorVersion:c.minor||r,browserName:a.browser.name||r,browserVersion:a.browser.major||r,deviceName:a.device.model||r,engineName:a.engine.name||r,engineVersion:a.engine.version||r,platformArchitecture:a.cpu.architecture||r,platformName:(i=a.os.name,o[i]||i||r),platformVersion:a.os.version||r,platformFullVersion:a.os.version||r};e.exports=s},L0q3:function(e,t,n){"use strict";var r=n("JPcv"),o=n("ohE5"),i=n("Taje"),a=r.List,c=r.Repeat,s=r.Record,u=o.thatReturnsTrue,l=s({start:null,end:null}),f=s({start:null,end:null,decoratorKey:null,leaves:null}),p={generate:function(e,t,n){var r=t.getLength();if(!r)return a.of(new f({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var o=[],s=n?n.getDecorations(t,e):a(c(null,r)),p=t.getCharacterList();return i(s,g,u,function(e,t){var n,r,c,d;o.push(new f({start:e,end:t,decoratorKey:s.get(e),leaves:(n=p.slice(e,t).toList(),r=e,c=[],d=n.map(function(e){return e.getStyle()}).toList(),i(d,g,u,function(e,t){c.push(new l({start:e+r,end:t+r}))}),a(c))}))}),a(o)},getFingerprint:function(e){return e.map(function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size}).join("-")}};function g(e,t){return e===t}e.exports=p},L2EA:function(e,t,n){"use strict";var r=n("YeVe"),o=n("JL7T"),i=n("JPcv"),a=n("Zf/v"),c=n("2NuI"),s=n("V8dp"),u=i.List,l=function(e,t,n,i,a,c){var s=n.first()instanceof o,l=[],f=i.size,p=n.get(a),g=i.first(),d=i.last(),h=d.getLength(),y=d.getKey(),v=s&&(!p.getChildKeys().isEmpty()||!g.getChildKeys().isEmpty());n.forEach(function(e,t){t===a?(v?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),c=n.first();return e.merge({text:i+c.getText(),characterList:a.concat(c.getCharacterList()),type:i?e.getType():c.getType(),data:c.getData()})}(e,c,i)),i.slice(v?0:1,f-1).forEach(function(e){return l.push(e)}),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),c=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(c),data:s.getData()})}(e,c,i))):l.push(e)});var m=r.createFromArray(l);return s&&(m=function(e,t,n,r){return e.withMutations(function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),c=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),s.forEach(function(e){return t.setIn([e,"parent"],c)}),c){var f=e.get(c).getChildKeys(),p=f.indexOf(o)+1,g=f.toArray();g.splice.apply(g,[p,0].concat(s)),t.setIn([c,"children"],u(g))}})}(m,0,p,g)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:y,anchorOffset:h,focusKey:y,focusOffset:h,isBackward:!1})})};e.exports=function(e,t,n){t.isCollapsed()||c(!1);var r=e.getBlockMap(),i=s(n),u=t.getStartKey(),f=t.getStartOffset(),p=r.get(u);return p instanceof o&&(p.getChildKeys().isEmpty()||c(!1)),1===i.size?function(e,t,n,r,o,i){var c=n.get(o),s=c.getText(),u=c.getCharacterList(),l=o,f=i+r.getText().length,p=c.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:a(u,r.getCharacterList(),i),data:r.getData()});return e.merge({blockMap:n.set(o,p),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})}(e,t,r,i.first(),u,f):l(e,t,r,i,u,f)}},LpQA:function(e,t,n){"use strict";var r=n("YeVe"),o=n("lFJn"),i=n("8uQm"),a=n("JL7T"),c=n("TzU/"),s=n("cX45"),u=n("JPcv"),l=n("hMpd"),f=n("rJY1"),p=n("HriT"),g=u.List,d=u.Record,h=u.Repeat,y=s.draft_tree_data_support?a:i,v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getEntityMap=function(){return c},t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},t.prototype.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,n){return c.__create(e,t,n),this},t.prototype.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},t.prototype.addEntity=function(e){return c.__add(e),this},t.prototype.getEntity=function(e){return c.__get(e)},t.createFromBlockArray=function(e,n){var o=Array.isArray(e)?e:e.contentBlocks,i=r.createFromArray(o),a=i.isEmpty()?new l:l.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||c,selectionBefore:a,selectionAfter:a})},t.createFromText=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(n).map(function(e){return e=p(e),new y({key:f(),text:e,type:"unstyled",characterList:g(h(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t}(d({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=v},M6rc:function(e,t,n){"use strict";var r=n("lFJn"),o=n("JPcv").Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),s=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),f=a.skipUntil(function(e,t){return t===c}).takeUntil(function(e,t){return t===u}).concat(o([[u,a.get(u)]])).map(function(e,t){var o,a;c===u?(o=s,a=l):(o=t===c?s:0,a=t===u?l:e.getLength());for(var f,p=e.getCharacterList();o0&&a!==c)return null;var s=a.getType(),u=i.getBlockBefore(o);if("code-block"===s&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==s)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=c},O4zn:function(e,t,n){"use strict";(function(t){var r=n("FcOR"),o=n("TWoB"),i=n("jl2H"),a=n("2NuI");function c(e,t){if(!e)return"[empty]";var n=function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return document.createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));var a=t.childNodes;for(var c=0;cu(t)&&r.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var l=t===e.focusNode;try{e.extend(t,n)}catch(o){throw r.logSelectionStateFailure({anonymizedDom:s(t,function(t){var n=[];return t===c&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:c?c.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:n},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),o}}else{var f=e.getRangeAt(0);f.setEnd(t,n),e.addRange(f.cloneRange())}}function f(e,t,n,o){var i=document.createRange();n>u(t)&&r.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),i.setStart(t,n),e.addRange(i)}e.exports=function(e,n,r,i,a){if(o(document.documentElement,n)){var c=t.getSelection(),s=e.getAnchorKey(),u=e.getAnchorOffset(),p=e.getFocusKey(),g=e.getFocusOffset(),d=e.getIsBackward();if(!c.extend&&d){var h=s,y=u;s=p,u=g,p=h,g=y,d=!1}var v=s===r&&i<=u&&a>=u,m=p===r&&i<=g&&a>=g;if(v&&m)return c.removeAllRanges(),f(c,n,u-i,e),void l(c,n,g-i,e);if(d){if(m&&(c.removeAllRanges(),f(c,n,g-i,e)),v){var b=c.focusNode,S=c.focusOffset;c.removeAllRanges(),f(c,n,u-i,e),l(c,b,S,e)}}else v&&(c.removeAllRanges(),f(c,n,u-i,e)),m&&l(c,n,g-i,e)}}}).call(this,n("yLpj"))},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},PFU8:function(e,t,n){"use strict";var r=n("MgzW")||function(e){for(var t=1;t0){var u=t[c-1];return u||o(!1),void u.children.push(s)}n.push(s)}),r({},e,{blocks:n})}};e.exports=a},PQhE:function(e,t,n){"use strict";var r=n("MgzW")||function(e){for(var t=1;t=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function u(e,t){var n=e.split(i);return n.length>1?n.some(function(e){return S.contains(e,t)}):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],t);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),l(">="+o,t)&&l("<="+i,t)}(e=n[0].trim(),t)}function l(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=g(e),a=i.modifier,c=i.rangeComponents;switch(a){case"<":return f(r,c);case"<=":return-1===(n=b(r,c))||0===n;case">=":return p(r,c);case">":return function(e,t){return 1===b(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);d(i)&&(r[o]=i+1+"");return p(e,n)&&f(e,r)}(r,c);default:return function(e,t){return 0===b(e,t)}(r,c)}}function f(e,t){return-1===b(e,t)}function p(e,t){var n=b(e,t);return 1===n||0===n}function g(e){var t=e.split(o),n=t[0].match(c);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function d(e){return!isNaN(e)&&isFinite(e)}function h(e){return!g(e).modifier}function y(e,t){for(var n=e.length;nt?1:e0},e}();e.exports=u},"R/W3":function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++rk,B));var U=D||o,J={className:j,"data-block":!0,"data-editor":d,"data-offset-key":L,key:T};void 0!==A&&(J=r({},J,{contentEditable:A,suppressContentEditableWarning:!0}));var H=a.createElement(F,J,a.createElement(U,R));x.push({block:H,wrapperTemplate:N,key:T,offsetKey:L}),k=N?O.getDepth():null,C=N}for(var W=[],Y=0;Y0?a.get(n-1):void 0,s=n=n&&(r={start:e,end:t})}),"object"!==typeof r&&i(!1),r}(a,l,n),g=p.start,d=p.end;g=e.start});1!=d.length&&i(!1);var h=d[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});s||(u?f=h.end:l=h.start);var y=r.getRemovalRange(l,f,t.getText().slice(h.start,h.end),h.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),c=r.getEndOffset(),s=t.getEntityAt(i),u=n.getEntityAt(c-1);if(!s&&!u)return r;var l=r;if(s&&s===u)l=a(e,t,l,o,s,!0,!0);else if(s&&u){var f=a(e,t,l,o,s,!1,!0),p=a(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var g=a(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:g.getStartOffset(),isBackward:!1})}else if(u){var d=a(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return l}},cX45:function(e,t,n){"use strict";var r=n("oPSa");e.exports=r},cmQj:function(e,t,n){"use strict";e.exports=function(e,t){e._internalDrag=!1,e.setMode("drag"),t.preventDefault()}},dyxW:function(e,t,n){"use strict";var r={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=r},"e/Ok":function(e,t,n){"use strict";var r=n("fyOY"),o=n("3sOJ"),i=n("6Xrj"),a=n("hyAj"),c=n("DeIs");e.exports=function(e,t){var n=e._latestEditorState,s=n.getSelection(),u=t.target,l=void 0;if(s.isCollapsed())t.preventDefault();else{u instanceof Node&&(l=c(i.getScrollParent(u)));var f=a(n);e.setClipboard(f),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(l),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(n))},0)}}},e5cp:function(e,t,n){var r=n("fmRc"),o=n("or5M"),i=n("HDyB"),a=n("seXi"),c=n("QqLw"),s=n("Z0cm"),u=n("DSRE"),l=n("c6wG"),f=1,p="[object Arguments]",g="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,m){var b=s(e),S=s(t),w=b?g:c(e),x=S?g:c(t),k=(w=w==p?d:w)==d,C=(x=x==p?d:x)==d,E=w==x;if(E&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(E&&!k)return m||(m=new r),b||l(e)?o(e,t,n,y,v,m):i(e,t,w,n,y,v,m);if(!(n&f)){var O=k&&h.call(e,"__wrapped__"),T=C&&h.call(t,"__wrapped__");if(O||T){var K=O?e.value():e,_=T?t.value():t;return m||(m=new r),v(K,_,n,y,m)}}return!!E&&(m||(m=new r),a(e,t,n,y,v,m))}},eOzY:function(e,t,n){"use strict";(function(t){n("YBdB"),e.exports=t.setImmediate}).call(this,n("yLpj"))},evZB:function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},fEyW:function(e,t,n){"use strict";var r=n("JL7T"),o=n("JPcv"),i=n("VTBg"),a=(o.List,o.Map),c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},s=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},f=function(e,t,n,r){return e.withMutations(function(e){c(t.getKey(),e,function(n){return n.merge({nextSibling:u(t,e,r),prevSibling:l(t,e,r)})}),c(n.getKey(),e,function(t){return t.merge({nextSibling:u(n,e,r),prevSibling:l(n,e,r)})}),s(t.getKey(),r).forEach(function(t){return c(t,e,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return e.get(t)}),nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})}),c(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),c(t.getPrevSiblingKey(),e,function(n){return n.merge({nextSibling:u(t,e,r)})}),c(n.getNextSiblingKey(),e,function(t){return t.merge({prevSibling:l(n,e,r)})}),c(n.getPrevSiblingKey(),e,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})}),s(n.getKey(),r).forEach(function(t){c(t,e,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return e.get(t)}),nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})}),function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n}(n,r).forEach(function(t){return c(t,e,function(t){return t.merge({nextSibling:u(t,e,r),prevSibling:l(t,e,r)})})})})},p=function(e,t,n){if(0===t)for(;tt;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n=e.getBlockMap(),o=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),g=n.get(o),d=n.get(u),h=g instanceof r,y=[];if(h){var v=d.getChildKeys(),m=s(u,n);d.getNextSiblingKey()&&(y=y.concat(m)),v.isEmpty()||(y=y.concat(m.concat([u]))),y=y.concat(s(i(d,n),n))}var b=void 0;b=g===d?p(g.getCharacterList(),c,l):g.getCharacterList().slice(0,c).concat(d.getCharacterList().slice(l));var S=g.merge({text:g.getText().slice(0,c)+d.getText().slice(l),characterList:b}),w=n.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===u}).filter(function(e,t){return-1===y.indexOf(t)}).concat(a([[u,null]])).map(function(e,t){return t===o?S:null}),x=n.merge(w).filter(function(e){return!!e});return h&&(x=f(x,g,d,n)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:c,focusKey:o,focusOffset:c,isBackward:!1})})}},fMZg:function(e,t,n){"use strict";var r=n("2NuI");e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){n.push({start:e,end:t})}),n.length||r(!1),n}},fZAc:function(e,t,n){"use strict";var r=n("mjHj"),o=n("2NuI"),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",c=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),s=new RegExp("["+i+a+"]");function u(e){var t=c.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?r.NEUTRAL:s.exec(t)?r.RTL:r.LTR}function f(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=l(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),f(e,t)}var g={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=g},faBS:function(e,t,n){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n("JPcv").Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},hpMJ:function(e,t,n){"use strict";function r(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var o=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:r(e.getEntityMap(),n):null}var a=t.getStartKey(),c=t.getStartOffset(),s=e.getBlockForKey(a);return n=c===s.getLength()?null:s.getEntityAt(c),r(e.getEntityMap(),n)}},hyAj:function(e,t,n){"use strict";var r=n("DYKh");e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},iatg:function(e,t,n){"use strict";var r=n("TWoB");e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},ilWa:function(e,t,n){"use strict";var r=n("JPcv"),o=n("vYwu");e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),c=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===s}).toOrderedMap().merge(r.OrderedMap([[s,i.get(s)]])).map(function(e,t){var r=t===a?c:0,i=t===s?u:e.getLength();return o(e,r,i,n)});return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},jH4x:function(e,t,n){"use strict";var r=n("3sOJ");e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},jLRO:function(e,t,n){"use strict";var r=n("2NuI"),o=55296,i=56319,a=56320,c=57343,s=/[\uD800-\uDFFF]/;function u(e){return o<=e&&e<=c}function l(e){return s.test(e)}function f(e,t){return 1+u(e.charCodeAt(t))}function p(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!l(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o=r)return""}else if(t<0){for(o=r;t<0&&00&&i0||null!==g;if(d&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(r.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&s(e.props.handleBeforeInput(t,n)))return;var h=o.replaceText(n.getCurrentContent(),n.getSelection(),t,a,g);e.update(i.push(n,h,"insert-characters"))}else d&&e.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=g},jl2H:function(e,t,n){"use strict";e.exports=function(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},jyDg:function(e,t,n){"use strict";(function(t){var r=n("cX45"),o=n("fyOY"),i=n("Iq8E"),a=n("3sOJ"),c=n("CYTE"),s=n("kc9Y"),u=n("gWRK"),l=c.isEngine("Gecko"),f="\n\n";e.exports=function(e){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=t.getSelection(),c=n.anchorNode,p=n.isCollapsed,g=c.nodeType!==Node.TEXT_NODE,d=c.nodeType!==Node.TEXT_NODE&&c.nodeType!==Node.ELEMENT_NODE;if(r.draft_killswitch_allow_nontextnodes){if(g)return}else if(d)return;if(c.nodeType===Node.TEXT_NODE&&(null!==c.previousSibling||null!==c.nextSibling)){var h=c.parentNode;c.nodeValue=h.textContent;for(var y=h.firstChild;null!==y;y=y.nextSibling)y!==c&&h.removeChild(y)}var v=c.textContent,m=e._latestEditorState,b=u(s(c)),S=i.decode(b),w=S.blockKey,x=S.decoratorKey,k=S.leafKey,C=m.getBlockTree(w).getIn([x,"leaves",k]),E=C.start,O=C.end,T=m.getCurrentContent(),K=T.getBlockForKey(w),_=K.getText().slice(E,O);if(v.endsWith(f)&&(v=v.slice(0,-1)),v!==_){var D,M,A,B,L=m.getSelection(),R=L.merge({anchorOffset:E,focusOffset:O,isBackward:!1}),I=K.getEntityAt(E),N=I&&T.getEntity(I),F="MUTABLE"===(N&&N.getMutability()),P=F?"spellcheck-change":"apply-entity",j=o.replaceText(T,R,v,K.getInlineStyleAt(E),F?K.getEntityAt(E):null);if(l)D=n.anchorOffset,M=n.focusOffset,B=(A=E+Math.min(D,M))+Math.abs(D-M),D=A,M=B;else{var U=v.length-_.length;A=L.getStartOffset(),B=L.getEndOffset(),D=p?B+U:A,M=B+U}var J=j.merge({selectionBefore:T.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:D,focusOffset:M})});e.update(a.push(m,J,P))}}}).call(this,n("yLpj"))},kDkJ:function(e,t,n){"use strict";var r=n("YeVe"),o=n("lFJn"),i=n("QvxS"),a=n("fyOY"),c=n("PQhE"),s=n("3sOJ"),u=n("Nx4+"),l=n("hpMJ"),f=n("HKS5"),p=n("T401"),g=n("RK+W");function d(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var h=n.getFiles(),y=n.getText();if(h.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(h)))return;return void f(h,function(t){if(t=t||y){var n=e._latestEditorState,i=g(t),f=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),d=c.processText(i,f,p),h=r.createFromArray(d),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);e.update(s.push(n,v,"insert-fragment"))}})}}var v=[],m=n.getText(),b=n.getHTML(),S=e._latestEditorState;if(!e.props.handlePastedText||!p(e.props.handlePastedText(m,b,S))){if(m&&(v=g(m)),!e.props.stripPastedStyles){var w=e.getClipboard();if(n.isRichText()&&w){if(-1!==b.indexOf(e.getEditorKey())||1===v.length&&1===w.size&&w.first().getText()===m)return void e.update(d(e._latestEditorState,w))}else if(w&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(v,w))return void e.update(d(e._latestEditorState,w));if(b){var x=c.processHTML(b,e.props.blockRenderMap);if(x){var k=x.contentBlocks,C=x.entityMap;if(k){var E=r.createFromArray(k);return void e.update(d(e._latestEditorState,E,C))}}}e.setClipboard(null)}if(v.length){var O=o.create({style:S.getCurrentInlineStyle(),entity:l(S.getCurrentContent(),S.getSelection())}),T=u.getCurrentBlockType(S),K=c.processText(v,O,T),_=r.createFromArray(K);e.update(d(e._latestEditorState,_))}}}},kWjT:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,c=0;if(t>i){var s=r.getKeyBefore(o);null==s?a=o:(a=s,c=r.getBlockForKey(s).getText().length)}else c=i-t;return n.merge({focusKey:a,focusOffset:c,isBackward:!0})}},kc9Y:function(e,t,n){"use strict";var r=n("zORg");e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},lFJn:function(e,t,n){"use strict";var r=n("JPcv"),o=r.Map,i=r.OrderedSet,a=r.Record,c=i(),s={style:c,entity:null},u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return l;var n=o({style:c,entity:null}).merge(e),r=f.get(n);if(r)return r;var i=new t(n);return f=f.set(n,i),i},t}(a(s)),l=new u,f=o([[o(s),l]]);u.EMPTY=l,e.exports=u},mjHj:function(e,t,n){"use strict";var r=n("2NuI"),o="LTR",i="RTL",a=null;function c(e){return e===o||e===i}function s(e){return c(e)||r(!1),e===o?"ltr":"rtl"}function u(e){a=e}var l={NEUTRAL:"NEUTRAL",LTR:o,RTL:i,isStrong:c,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return c(e)||r(!1),c(t)||r(!1),e===t?null:s(e)},setGlobalDir:u,initGlobalDir:function(){u(o)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1),a}};e.exports=l},oPSa:function(e,t,n){"use strict";e.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1}},ocgx:function(e,t,n){"use strict";var r=n("fyOY"),o=n("3sOJ"),i=n("DYKh");e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,c,s=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(s).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),c=t):c=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(u,a),p=r.removeRange(u,a,"backward"),g=p.getSelectionAfter(),d=g.getAnchorOffset()-1,h=g.merge({anchorOffset:d,focusOffset:d}),y=r.replaceWithFragment(p,h,f),v=o.push(e,y,"insert-fragment");return o.acceptSelection(v,c)}},or5M:function(e,t,n){var r=n("1hJj"),o=n("QoRX"),i=n("xYSL"),a=1,c=2;e.exports=function(e,t,n,s,u,l){var f=n&a,p=e.length,g=t.length;if(p!=g&&!(f&&g>p))return!1;var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var y=-1,v=!0,m=n&c?new r:void 0;for(l.set(e,t),l.set(t,e);++y0;){var l=u.pop(),f=l.parentRef,p=f.getChildKeys(),g=p.indexOf(l.key),d=Array.isArray(l.children);if(!d){d||y(!1);break}var h=l.children.map(k),v=new i(r({},w(l,t),{parent:f.getKey(),children:m(h.map(function(e){return e.key})),prevSibling:0===g?null:p.get(g-1),nextSibling:g===p.size-1?null:p.get(g+1)}));n=n.set(v.getKey(),v),u=C(u,h,v)}return n},S())}(a,t):function(e,t){return S(e.map(function(e){var n=new o(w(e,t));return[n.getKey(),n]}))}(n?u.fromRawTreeStateToRawState(e).blocks:a,t)};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=c.__create(o,i,a||{})}),n}(e),n=E(e,t),r=n.isEmpty()?new f:f.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},ujuU:function(e,t,n){"use strict";var r=n("3sOJ");e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},v83y:function(e,t,n){"use strict";var r=n("fyRy"),o=n("YeVe"),i=n("lFJn"),a=n("84lc"),c=n("8uQm"),s=n("LpQA"),u=n("rAV9"),l=n("0TRD"),f=n("6tyx"),p=n("DthY"),g=n("TzU/"),d=n("fyOY"),h=n("qnky"),y=n("3sOJ"),v=n("s8ra"),m=n("Nx4+"),b=n("hMpd"),S=n("/y+l"),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:g,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:s,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:d,RichUtils:m,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n("1qq2"),convertFromRaw:n("ueFs"),convertToRaw:S,genKey:n("rJY1"),getDefaultKeyBinding:n("AyB5"),getVisibleSelectionRect:n("zxN+")};e.exports=w},vYwu:function(e,t,n){"use strict";var r=n("lFJn");e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t-1}},xocI:function(e,t,n){"use strict";var r=n("CYTE"),o=n("2NuI"),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},yxyD:function(e,t,n){"use strict";var r=n("jLRO"),o=n("Taje"),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var c=[],s=t.map(function(e){return e.has(n)}).toList();return o(s,i,a,function(t,o){var i=e.getText();c.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})}),c}(e,t,n)});return Array.prototype.concat.apply(c,n.toJS())}},zORg:function(e,t,n){"use strict";e.exports=function e(t){if(t instanceof Element){var n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,i=c.bottom,a=c.left}else{var s=t[0];n=s.top,o=s.right,i=s.bottom,a=s.left}for(var u=1;u