vendor: 12,252 bytes, lines 1-3
1"use strict";(globalThis.webpackChunknapoleon=globalThis.webpackChunknapoleon||[]).push([[9550],{6766:A=>{A.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},10435:(A,k,t)=>{var O=t(46084);function K(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function T(f,d){f.prototype=Object.create(d.prototype),f.prototype.constructor=f,f.__proto__=d}function s(f,d,n){return d in f?Object.defineProperty(f,d,{value:n,enumerable:!0,configurable:!0,writable:!0}):f[d]=n,f}var v=t(34412),D=t(81924),C=t(74480),m=t(64847),g=t(63076).setDraftEditorSelection,p=function(f){T(d,f);function d(){for(var c,u=arguments.length,o=new Array(u),r=0;r<u;r++)o[r]=arguments[r];return c=f.call.apply(f,[this].concat(o))||this,s(K(c),"leaf",void 0),c}var n=d.prototype;return n._setSelection=function(){var u=this.props.selection;if(!(u==null||!u.getHasFocus())){var o=this.props,r=o.block,e=o.start,l=o.text,i=r.getKey(),h=e+l.length;if(u.hasEdgeWithin(i,e,h)){var x=this.leaf;x||C(!1);var B=x.firstChild;B||C(!1);var M;B.nodeType===Node.TEXT_NODE?M=B:m(B)?M=x:(M=B.firstChild,M||C(!1)),g(u,M,i,e,h)}}},n.shouldComponentUpdate=function(u){var o=this.leaf;o||C(!1);var r=o.textContent!==u.text||u.styleSet!==this.props.styleSet||u.forceSelection;return r},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var u=this,o=this.props.block,r=this.props.text;r.endsWith(` 2`)&&this.props.isLast&&(r+=` 3`);var e=this.props,l=e.customStyleMap,i=e.customStyleFn,h=e.offsetKey,x=e.styleSet,B=x.reduce(function(F,L){var S={},y=l[L];return y!==void 0&&F.textDecoration!==y.textDecoration&&(S.textDecoration=[F.textDecoration,y.textDecoration].join(" ").trim()),O(F,y,S)},{});if(i){var M=i(x,o);B=O(B,M)}return D.createElement("span",{"data-offset-key":h,ref:function(L){return u.leaf=L},style:B},D.createElement(v,null,r))},d}(D.Component);A.exports=p},12781:(A,k,t)=>{function O(e){for(var l=1;l<arguments.length;l++){var i=arguments[l]!=null?arguments[l]:{},h=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(i).filter(function(x){return Object.getOwnPropertyDescriptor(i,x).enumerable}))),h.forEach(function(x){K(e,x,i[x])})}return e}function K(e,l,i){return l in e?Object.defineProperty(e,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[l]=i,e}function T(e,l){if(e==null)return{};var i={},h=Object.keys(e),x,B;for(B=0;B<h.length;B++)x=h[B],!(l.indexOf(x)>=0)&&(i[x]=e[x]);return i}var s=t(95731),v=t(12583),D=t(21829),C=D.List,m=D.Repeat,g=D.Record,p=function(){return!0},f={start:null,end:null},d=g(f),n={start:null,end:null,decoratorKey:null,leaves:null},c=g(n),u={generate:function(l,i,h){var x=i.getLength();if(!x)return C.of(new c({start:0,end:0,decoratorKey:null,leaves:C.of(new d({start:0,end:0}))}));var B=[],M=h?h.getDecorations(i,l):C(m(null,x)),F=i.getCharacterList();return s(M,r,p,function(L,S){B.push(new c({start:L,end:S,decoratorKey:M.get(L),leaves:o(F.slice(L,S).toList(),L)}))}),C(B)},fromJS:function(l){var i=l.leaves,h=T(l,["leaves"]);return new c(O({},h,{leaves:i!=null?C(Array.isArray(i)?i:v(i)).map(function(x){return d(x)}):null}))}};function o(e,l){var i=[],h=e.map(function(x){return x.getStyle()}).toList();return s(h,r,p,function(x,B){i.push(new d({start:x+l,end:B+l}))}),C(i)}function r(e,l){return e===l}A.exports=u},15652:(A,k,t)=>{var O=t(46084);function K(){return K=O||function(B){for(var M=1;M<arguments.length;M++){var F=arguments[M];for(var L in F)Object.prototype.hasOwnProperty.call(F,L)&&(B[L]=F[L])}return B},K.apply(this,arguments)}function T(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function s(B,M){B.prototype=Object.create(M.prototype),B.prototype.constructor=B,B.__proto__=M}function v(B,M,F){return M in B?Object.defineProperty(B,M,{value:F,enumerable:!0,configurable:!0,writable:!0}):B[M]=F,B}var D=t(10435),C=t(83437),m=t(81924),g=t(66919),p=t(95189),f=t(41733),d=t(52628),n=t(20157),c=t(9565),u=t(99166),o=t(75211),r=t(74480),e=t(14491),l=t(92866),i=10,h=function(M,F){return M.getAnchorKey()===F||M.getFocusKey()===F},x=function(B){s(M,B);function M(){for(var L,S=arguments.length,y=new Array(S),E=0;E<S;E++)y[E]=arguments[E];return L=B.call.apply(B,[this].concat(y))||this,v(T(L),"_node",void 0),L}var F=M.prototype;return F.shouldComponentUpdate=function(S){return this.props.block!==S.block||this.props.tree!==S.tree||this.props.direction!==S.direction||h(S.selection,S.block.getKey())&&S.forceSelection},F.componentDidMount=function(){if(!this.props.preventScroll){var S=this.props.selection,y=S.getEndKey();if(!(!S.getHasFocus()||y!==this.props.block.getKey())){var E=this._node;if(E!=null){var b=p.getScrollParent(E),R=u(b),P;if(b===window){var w=c(E),W=w.y+w.height,I=o().height;P=W-I,P>0&&window.scrollTo(R.x,R.y+P+i)}else{e(E)||r(!1);var H=E.offsetHeight+E.offsetTop,N=b.offsetTop+b.offsetHeight,U=N+R.y;P=H-U,P>0&&g.setTop(b,g.getTop(b)+P+i)}}}}},F._renderChildren=function(){var S=this,y=this.props.block,E=y.getKey(),b=y.getText(),R=this.props.tree.size-1,P=h(this.props.selection,E);return this.props.tree.map(function(w,W){var I=w.get("leaves");if(I.size===0)return null;var H=I.size-1,N=I.map(function(q,tt){var et=C.encode(E,W,tt),$=q.get("start"),nt=q.get("end");return m.createElement(D,{key:et,offsetKey:et,block:y,start:$,selection:P?S.props.selection:null,forceSelection:S.props.forceSelection,text:b.slice($,nt),styleSet:y.getInlineStyleAt($),customStyleMap:S.props.customStyleMap,customStyleFn:S.props.customStyleFn,isLast:W===R&&tt===H})}).toArray(),U=w.get("decoratorKey");if(U==null||!S.props.decorator)return N;var a=l(S.props.decorator),j=a.getComponentForKey(U);if(!j)return N;var z=a.getPropsForKey(U),V=C.encode(E,W,0),G=I.first().get("start"),X=I.last().get("end"),J=b.slice(G,X),Q=y.getEntityAt(w.get("start")),Y=d.getHTMLDirIfDifferent(f.getDirection(J),S.props.direction),Z={contentState:S.props.contentState,decoratedText:J,dir:Y,start:G,end:X,blockKey:E,entityKey:Q,offsetKey:V};return m.createElement(j,K({},z,Z,{key:V}),N)}).toArray()},F.render=function(){var S=this,y=this.props,E=y.direction,b=y.offsetKey,R=n({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":E==="LTR","public/DraftStyleDefault/rtl":E==="RTL"});return m.createElement("div",{"data-offset-key":b,className:R,ref:function(w){return S._node=w}},this._renderChildren())},M}(m.Component);A.exports=x},21755:(A,k,t)=>{var O=t(46084);function K(){return K=O||function(c){for(var u=1;u<arguments.length;u++){var o=arguments[u];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(c[r]=o[r])}return c},K.apply(this,arguments)}function T(c){for(var u=1;u<arguments.length;u++){var o=arguments[u]!=null?arguments[u]:{},r=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),r.forEach(function(e){s(c,e,o[e])})}return c}function s(c,u,o){return u in c?Object.defineProperty(c,u,{value:o,enumerable:!0,configurable:!0,writable:!0}):c[u]=o,c}function v(c,u){c.prototype=Object.create(u.prototype),c.prototype.constructor=c,c.__proto__=u}var D=t(15652),C=t(83437),m=t(81924),g=t(20157),p=t(24844),f=t(92866),d=function(u,o,r,e){return g({"public/DraftStyleDefault/unorderedListItem":u==="unordered-list-item","public/DraftStyleDefault/orderedListItem":u==="ordered-list-item","public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":o===0,"public/DraftStyleDefault/depth1":o===1,"public/DraftStyleDefault/depth2":o===2,"public/DraftStyleDefault/depth3":o===3,"public/DraftStyleDefault/depth4":o>=4,"public/DraftStyleDefault/listLTR":e==="LTR","public/DraftStyleDefault/listRTL":e==="RTL"})},n=function(c){v(u,c);function u(){return c.apply(this,arguments)||this}var o=u.prototype;return o.shouldComponentUpdate=function(e){var l=this.props.editorState,i=e.editorState,h=l.getDirectionMap(),x=i.getDirectionMap();if(h!==x)return!0;var B=l.getSelection().getHasFocus(),M=i.getSelection().getHasFocus();if(B!==M)return!0;var F=i.getNativelyRenderedContent(),L=l.isInCompositionMode(),S=i.isInCompositionMode();if(l===i||F!==null&&i.getCurrentContent()===F||L&&S)return!1;var y=l.getCurrentContent(),E=i.getCurrentContent(),b=l.getDecorator(),R=i.getDecorator();return L!==S||y!==E||b!==R||i.mustForceSelection()},o.render=function(){for(var e=this.props,l=e.blockRenderMap,i=e.blockRendererFn,h=e.blockStyleFn,x=e.customStyleMap,B=e.customStyleFn,M=e.editorState,F=e.editorKey,L=e.preventScroll,S=e.textDirectionality,y=M.getCurrentContent(),E=M.getSelection(),b=M.mustForceSelection(),R=M.getDecorator(),P=f(M.getDirectionMap()),w=y.getBlocksAsArray(),W=[],I=null,H=null,N=0;N<w.length;N++){var U=w[N],a=U.getKey(),j=U.getType(),z=i(U),V=void 0,G=void 0,X=void 0;z&&(V=z.component,G=z.props,X=z.editable);var J=S||P.get(a),Q=C.encode(a,0,0),Y={contentState:y,block:U,blockProps:G,blockStyleFn:h,customStyleMap:x,customStyleFn:B,decorator:R,direction:J,forceSelection:b,offsetKey:Q,preventScroll:L,selection:E,tree:M.getBlockTree(a)},Z=l.get(j)||l.get("unstyled"),q=Z.wrapper,tt=Z.element||l.get("unstyled").element,et=U.getDepth(),$="";if(h&&($=h(U)),tt==="li"){var nt=H!==q||I===null||et>I;$=p($,d(j,et,nt,J))}var lt=V||D,st={className:$,"data-block":!0,"data-editor":F,"data-offset-key":Q,key:a};X!==void 0&&(st=T({},st,{contentEditable:X,suppressContentEditableWarning:!0}));var at=m.createElement(tt,st,m.createElement(lt,K({},Y,{key:a})));W.push({block:at,wrapperTemplate:q,key:a,offsetKey:Q}),q?I=U.getDepth():I=null,H=q}for(var ot=[],rt=0;rt<W.length;){var _=W[rt];if(_.wrapperTemplate){var it=[];do it.push(W[rt].block),rt++;while(rt<W.length&&W[rt].wrapperTemplate===_.wrapperTemplate);var ct=m.cloneElement(_.wrapperTemplate,{key:_.key+"-wrap","data-offset-key":_.offsetKey},it);ot.push(ct)}else ot.push(_.block),rt++}return m.createElement("div",{"data-contents":"true"},ot)},u}(m.Component);A.exports=n},23847:(A,k,t)=>{var O=t(24257),K=t(45156),T=t(80458),s=t(27547),v=t(87976),D=t(73624),C=t(65707),m=t(6766),g=t(56163),p=t(15652),f=t(46008),d=t(40498),n=t(39167),c=t(91698),u=t(13878),o=t(24093),r=t(10410),e=t(40021),l=t(93390),i=t(83292),h=t(56079),x=t(91123),B=t(6350),M=t(41960),F={Editor:g,EditorBlock:p,EditorState:c,CompositeDecorator:s,Entity:f,EntityInstance:n,BlockMapBuilder:K,CharacterMetadata:T,ContentBlock:v,ContentState:D,RawDraftContentState:o,SelectionState:e,AtomicBlockUtils:O,KeyBindingUtil:u,Modifier:d,RichUtils:r,DefaultDraftBlockRenderMap:C,DefaultDraftInlineStyle:m,convertFromHTML:M,convertFromRaw:i,convertToRaw:l,genKey:h,getDefaultKeyBinding:x,getVisibleSelectionRect:B};A.exports=F},24257:(A,k,t)=>{function O(e){for(var l=1;l<arguments.length;l++){var i=arguments[l]!=null?arguments[l]:{},h=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(i).filter(function(x){return Object.getOwnPropertyDescriptor(i,x).enumerable}))),h.forEach(function(x){K(e,x,i[x])})}return e}function K(e,l,i){return l in e?Object.defineProperty(e,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[l]=i,e}var T=t(45156),s=t(80458),v=t(87976),D=t(42664),C=t(40498),m=t(91698),g=t(56079),p=t(73042),f=t(21829),d=t(24299),n=p("draft_tree_data_support"),c=n?D:v,u=f.List,o=f.Repeat,r={insertAtomicBlock:function(l,i,h){var x=l.getCurrentContent(),B=l.getSelection(),M=C.removeRange(x,B,"backward"),F=M.getSelectionAfter(),L=C.splitBlock(M,F),S=L.getSelectionAfter(),y=C.setBlockType(L,S,"atomic"),E=s.create({entity:i}),b={key:g(),type:"atomic",text:h,characterList:u(o(E,h.length))},R={key:g(),type:"unstyled"};n&&(b=O({},b,{nextSibling:R.key}),R=O({},R,{prevSibling:b.key}));var P=[new c(b),new c(R)],w=T.createFromArray(P),W=C.replaceWithFragment(y,S,w),I=W.merge({selectionBefore:B,selectionAfter:W.getSelectionAfter().set("hasFocus",!0)});return m.push(l,I,"insert-fragment")},moveAtomicBlock:function(l,i,h,x){var B=l.getCurrentContent(),M=l.getSelection(),F;
3if(x==="before"||x==="after"){var L=B.getBlockForKey(x==="before"?h.getStartKey():h.getEndKey());F=d(B,i,L,x)}else{var S=C.removeRange(B,h,"backward"),y=S.getSelectionAfter(),E=S.getBlockForKey(y.getFocusKey());if(y.getStartOffset()===0)F=d(S,i,E,"before");else if(y.getEndOffset()===E.getLength())F=d(S,i,E,"after");else{var b=C.splitBlock(S,y),R=b.getSelectionAfter(),P=b.getBlockForKey(R.getFocusKey());F=d(b,i,P,"before")}}var w=F.merge({selectionBefore:M,selectionAfter:F.getSelectionAfter().set("hasFocus",!0)});return m.push(l,w,"move-block")}};A.exports=r},27502:(A,k,t)=>{var O=t(66611),K=O.getPunctuation(),T="['\u2018\u2019]",s="\\s|(?![_])"+K,v="^(?:"+s+")*(?:"+T+"|(?!"+s+").)*(?:(?!"+s+").)",D=new RegExp(v),C="(?:(?!"+s+").)(?:"+T+"|(?!"+s+").)*(?:"+s+")*$",m=new RegExp(C);function g(f,d){var n=d?m.exec(f):D.exec(f);return n?n[0]:f}var p={getBackward:function(d){return g(d,!0)},getForward:function(d){return g(d,!1)}};A.exports=p},27547:(A,k,t)=>{function O(m,g,p){return g in m?Object.defineProperty(m,g,{value:p,enumerable:!0,configurable:!0,writable:!0}):m[g]=p,m}var K=t(21829),T=K.List,s=".",v=function(){function m(p){O(this,"_decorators",void 0),this._decorators=p.slice()}var g=m.prototype;return g.getDecorations=function(f,d){var n=Array(f.getText().length).fill(null);return this._decorators.forEach(function(c,u){var o=0,r=c.strategy,e=function(i,h){D(n,i,h)&&(C(n,i,h,u+s+o),o++)};r(f,e,d)}),T(n)},g.getComponentForKey=function(f){var d=parseInt(f.split(s)[0],10);return this._decorators[d].component},g.getPropsForKey=function(f){var d=parseInt(f.split(s)[0],10);return this._decorators[d].props},m}();function D(m,g,p){for(var f=g;f<p;f++)if(m[f]!=null)return!1;return!0}function C(m,g,p,f){for(var d=g;d<p;d++)m[d]=f}A.exports=v},34412:(A,k,t)=>{function O(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function K(n,c){n.prototype=Object.create(c.prototype),n.prototype.constructor=n,n.__proto__=c}function T(n,c,u){return c in n?Object.defineProperty(n,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[c]=u,n}var s=t(81924),v=t(55464),D=t(74480),C=t(27320),m=v.isBrowser("IE <= 11");function g(n){return m?n.textContent===` 4`:n.tagName==="BR"}var p=function(c){return m?s.createElement("span",{key:"A","data-text":"true",ref:c},` 5`):s.createElement("br",{key:"A","data-text":"true",ref:c})},f=function(c){return m?s.createElement("span",{key:"B","data-text":"true",ref:c},` 6`):s.createElement("br",{key:"B","data-text":"true",ref:c})},d=function(n){K(c,n);function c(o){var r;return r=n.call(this,o)||this,T(O(r),"_forceFlag",void 0),T(O(r),"_node",void 0),r._forceFlag=!1,r}var u=c.prototype;return u.shouldComponentUpdate=function(r){var e=this._node,l=r.children==="";C(e)||D(!1);var i=e;return l?!g(i):i.textContent!==r.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var r=this;return this.props.children===""?this._forceFlag?p(function(e){return r._node=e}):f(function(e){return r._node=e}):s.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(l){return r._node=l}},this.props.children)},c}(s.Component);A.exports=d},39167:(A,k,t)=>{function O(D,C){D.prototype=Object.create(C.prototype),D.prototype.constructor=D,D.__proto__=C}var K=t(21829),T=K.Record,s=T({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),v=function(D){O(C,D);function C(){return D.apply(this,arguments)||this}var m=C.prototype;return m.getType=function(){return this.get("type")},m.getMutability=function(){return this.get("mutability")},m.getData=function(){return this.get("data")},C}(s);A.exports=v},40498:(A,k,t)=>{var O=t(80458),K=t(58892),T=t(76672),s=t(32188),v=t(23122),D=t(21829),C=t(44567),m=t(13344),g=t(74480),p=t(72534),f=t(73756),d=t(15395),n=t(95238),c=D.OrderedSet,u={replaceText:function(r,e,l,i,h){var x=f(r,e),B=d(x,e),M=O.create({style:i||c(),entity:h||null});return m(B,B.getSelectionAfter(),l,M)},insertText:function(r,e,l,i,h){return e.isCollapsed()||g(!1),u.replaceText(r,e,l,i,h)},moveText:function(r,e,l){var i=v(r,e),h=u.removeRange(r,e,"backward");return u.replaceWithFragment(h,l,i)},replaceWithFragment:function(r,e,l){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",h=f(r,e),x=d(h,e);return C(x,x.getSelectionAfter(),l,i)},removeRange:function(r,e,l){var i,h,x,B;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),i=e.getAnchorKey(),h=e.getFocusKey(),x=r.getBlockForKey(i),B=r.getBlockForKey(h);var M=e.getStartOffset(),F=e.getEndOffset(),L=x.getEntityAt(M),S=B.getEntityAt(F-1);
vendor: 18,692 bytes, lines 6-7
6if(i===h&&L&&L===S){var y=s(r.getEntityMap(),x,B,e,l);return d(r,y)}var E=f(r,e);return d(E,e)},splitBlock:function(r,e){var l=f(r,e),i=d(l,e);return n(i,i.getSelectionAfter())},applyInlineStyle:function(r,e,l){return K.add(r,e,l)},removeInlineStyle:function(r,e,l){return K.remove(r,e,l)},setBlockType:function(r,e,l){return p(r,e,function(i){return i.merge({type:l,depth:0})})},setBlockData:function(r,e,l){return p(r,e,function(i){return i.merge({data:l})})},mergeBlockData:function(r,e,l){return p(r,e,function(i){return i.merge({data:i.getData().merge(l)})})},applyEntity:function(r,e,l){var i=f(r,e);return T(i,e,l)}};A.exports=u},41936:(A,k,t)=>{var O=t(90354),K=t(40498),T=t(83437),s=t(91698),v=t(914),D=t(55464),C=t(16111),m=t(5996),g=t(42392),p=t(71559),f=t(92866),d=D.isBrowser("IE"),n=20,c=!1,u=!1,o=null;function r(l){o||(o=new O(m(l)),o.start())}var e={onCompositionStart:function(i){u=!0,r(i)},onCompositionEnd:function(i){c=!1,u=!1,setTimeout(function(){c||e.resolveComposition(i)},n)},onSelect:C,onKeyDown:function(i,h){if(!u){e.resolveComposition(i),i._onKeyDown(h);return}(h.which===v.RIGHT||h.which===v.LEFT)&&h.preventDefault()},onKeyPress:function(i,h){h.which===v.RETURN&&h.preventDefault()},resolveComposition:function(i){if(!u){var h=f(o).stopAndFlushMutations();o=null,c=!0;var x=s.set(i._latestEditorState,{inCompositionMode:!1});if(i.exitCurrentMode(),!h.size){i.update(x);return}var B=x.getCurrentContent();h.forEach(function(S,y){var E=T.decode(y),b=E.blockKey,R=E.decoratorKey,P=E.leafKey,w=x.getBlockTree(b).getIn([R,"leaves",P]),W=w.start,I=w.end,H=x.getSelection().merge({anchorKey:b,focusKey:b,anchorOffset:W,focusOffset:I,isBackward:!1}),N=p(B,H),U=B.getBlockForKey(b).getInlineStyleAt(W);B=K.replaceText(B,H,S,U,N),x=s.set(x,{currentContent:B})});var M=g(x,m(i)),F=M.selectionState;i.restoreEditorDOM();var L=d?s.forceSelection(x,F):s.acceptSelection(x,F);i.update(s.push(L,B,"insert-characters"))}}};A.exports=e},42664:(A,k,t)=>{function O(o,r){o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.__proto__=r}var K=t(80458),T=t(95731),s=t(21829),v=s.List,D=s.Map,C=s.OrderedSet,m=s.Record,g=s.Repeat,p=C(),f={parent:null,characterList:v(),data:D(),depth:0,key:"",text:"",type:"unstyled",children:v(),prevSibling:null,nextSibling:null},d=function(r,e){return r.getStyle()===e.getStyle()},n=function(r,e){return r.getEntity()===e.getEntity()},c=function(r){if(!r)return r;var e=r.characterList,l=r.text;return l&&!e&&(r.characterList=v(g(K.EMPTY,l.length))),r},u=function(o){O(r,o);function r(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f;return o.call(this,c(l))||this}var e=r.prototype;return e.getKey=function(){return this.get("key")},e.getType=function(){return this.get("type")},e.getText=function(){return this.get("text")},e.getCharacterList=function(){return this.get("characterList")},e.getLength=function(){return this.getText().length},e.getDepth=function(){return this.get("depth")},e.getData=function(){return this.get("data")},e.getInlineStyleAt=function(i){var h=this.getCharacterList().get(i);return h?h.getStyle():p},e.getEntityAt=function(i){var h=this.getCharacterList().get(i);return h?h.getEntity():null},e.getChildKeys=function(){return this.get("children")},e.getParentKey=function(){return this.get("parent")},e.getPrevSiblingKey=function(){return this.get("prevSibling")},e.getNextSiblingKey=function(){return this.get("nextSibling")},e.findStyleRanges=function(i,h){T(this.getCharacterList(),d,i,h)},e.findEntityRanges=function(i,h){T(this.getCharacterList(),n,i,h)},r}(m(f));A.exports=u},44732:(A,k,t)=>{function O(g){for(var p=1;p<arguments.length;p++){var f=arguments[p]!=null?arguments[p]:{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(n){return Object.getOwnPropertyDescriptor(f,n).enumerable}))),d.forEach(function(n){K(g,n,f[n])})}return g}function K(g,p,f){return p in g?Object.defineProperty(g,p,{value:f,enumerable:!0,configurable:!0,writable:!0}):g[p]=f,g}var T=t(56079),s=t(74480),v=function(p,f){for(var d=[].concat(p).reverse();d.length;){var n=d.pop();f(n);var c=n.children;Array.isArray(c)||s(!1),d=d.concat([].concat(c.reverse()))}},D=function(p){if(!(p&&p.type))return!1;var f=p.type;return f==="unordered-list-item"||f==="ordered-list-item"},C=function(p){Array.isArray(p.children)&&(p.children=p.children.map(function(f){return f.type===p.type?O({},f,{depth:(p.depth||0)+1}):f}))},m={fromRawTreeStateToRawState:function(p){var f=p.blocks,d=[];return Array.isArray(f)||s(!1),!Array.isArray(f)||!f.length?p:(v(f,function(n){var c=O({},n);D(n)&&(c.depth=c.depth||0,C(n),n.children!=null&&n.children.length>0)||(delete c.children,d.push(c))}),p.blocks=d,O({},p,{blocks:d}))},fromRawStateToRawTreeState:function(p){var f=[],d=[];return p.blocks.forEach(function(n){var c=D(n),u=n.depth||0,o=O({},n,{children:[]});if(!c){f.push(o);return}var r=d[0];if(r==null&&u===0)f.push(o);else if(r==null||r.depth<u-1){var e={key:T(),text:"",depth:u-1,type:n.type,children:[],entityRanges:[],inlineStyleRanges:[]};d.unshift(e),u===1?f.push(e):r?.children.push(e),e.children.push(o)}else if(r.depth===u-1)r.children.push(o);else{for(;r!=null&&r.depth>=u;)d.shift(),r=d[0];u>0?r.children.push(o):f.push(o)}}),O({},p,{blocks:f})}};A.exports=m},45156:(A,k,t)=>{var O=t(21829),K=O.OrderedMap,T={createFromArray:function(v){return K(v.map(function(D){return[D.getKey(),D]}))}};A.exports=T},46008:(A,k,t)=>{function O(d){for(var n=1;n<arguments.length;n++){var c=arguments[n]!=null?arguments[n]:{},u=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(c).filter(function(o){return Object.getOwnPropertyDescriptor(c,o).enumerable}))),u.forEach(function(o){K(d,o,c[o])})}return d}function K(d,n,c){return n in d?Object.defineProperty(d,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):d[n]=c,d}var T=t(39167),s=t(21829),v=t(74480),D=t(24169),C=s.Map,m=C(),g=D();function p(d,n){console.warn("WARNING: "+d+` will be deprecated soon! 7Please use "`+n+'" instead.')}var f={getLastCreatedEntityKey:function(){return p("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(n,c,u){return p("DraftEntity.create","contentState.createEntity"),f.__create(n,c,u)},add:function(n){return p("DraftEntity.add","contentState.addEntity"),f.__add(n)},get:function(n){return p("DraftEntity.get","contentState.getEntity"),f.__get(n)},__getAll:function(){return m},__loadWithEntities:function(n){m=n,g=D()},mergeData:function(n,c){return p("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(n,c)},replaceData:function(n,c){return p("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(n,c)},__getLastCreatedEntityKey:function(){return g},__create:function(n,c,u){return f.__add(new T({type:n,mutability:c,data:u||{}}))},__add:function(n){return g=D(),m=m.set(g,n),g},__get:function(n){var c=m.get(n);return c||v(!1),c},__mergeData:function(n,c){var u=f.__get(n),o=O({},u.getData(),c),r=u.set("data",o);return m=m.set(n,r),r},__replaceData:function(n,c){var u=f.__get(n),o=u.set("data",c);return m=m.set(n,o),o}};A.exports=f},53642:(A,k,t)=>{var O=t(24496),K={isValidBlock:function(s,v){var D=s.getKey(),C=s.getParentKey();if(C!=null){var m=v.get(C);if(!m.getChildKeys().includes(D))return!1}var g=s.getChildKeys().map(function(c){return v.get(c)});if(!g.every(function(c){return c.getParentKey()===D}))return!1;var p=s.getPrevSiblingKey();if(p!=null){var f=v.get(p);if(f.getNextSiblingKey()!==D)return!1}var d=s.getNextSiblingKey();if(d!=null){var n=v.get(d);if(n.getPrevSiblingKey()!==D)return!1}return!(d!==null&&p!==null&&p===d||s.text!=""&&s.getChildKeys().size>0)},isConnectedTree:function(s){var v=s.toArray().filter(function(u){return u.getParentKey()==null&&u.getPrevSiblingKey()==null});if(v.length!==1)return!1;for(var D=v.shift(),C=0,m=D.getKey(),g=[];m!=null;){var p=s.get(m),f=p.getChildKeys(),d=p.getNextSiblingKey();if(f.size>0){d!=null&&g.unshift(d);var n=f.map(function(u){return s.get(u)}),c=n.find(function(u){return u.getPrevSiblingKey()==null});if(c==null)return!1;m=c.getKey()}else p.getNextSiblingKey()!=null?m=p.getNextSiblingKey():m=g.shift();C++}return C===s.size},isValidTree:function(s){var v=this,D=s.toArray();return D.every(function(C){return v.isValidBlock(C,s)})?this.isConnectedTree(s):!1}};A.exports=K},56163:(A,k,t)=>{var O=t(46084);function K(){return K=O||function(I){for(var H=1;H<arguments.length;H++){var N=arguments[H];for(var U in N)Object.prototype.hasOwnProperty.call(N,U)&&(I[U]=N[U])}return I},K.apply(this,arguments)}function T(I){for(var H=1;H<arguments.length;H++){var N=arguments[H]!=null?arguments[H]:{},U=Object.keys(N);typeof Object.getOwnPropertySymbols=="function"&&(U=U.concat(Object.getOwnPropertySymbols(N).filter(function(a){return Object.getOwnPropertyDescriptor(N,a).enumerable}))),U.forEach(function(a){v(I,a,N[a])})}return I}function s(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function v(I,H,N){return H in I?Object.defineProperty(I,H,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[H]=N,I}function D(I,H){I.prototype=Object.create(H.prototype),I.prototype.constructor=I,I.__proto__=H}var C=t(65707),m=t(6766),g=t(41936),p=t(66689),f=t(64682),d=t(83064),n=t(88112),c=t(62844),u=t(87801),o=t(91698),r=t(81924),e=t(66919),l=t(95189),i=t(55464),h=t(20157),x=t(56079),B=t(91123),M=t(99166),F=t(73042),L=t(74480),S=t(14491),y=t(92866),E=i.isBrowser("IE"),b=!E,R={edit:d,composite:g,drag:f,cut:null,render:null},P=!1,w=function(I){D(H,I);function H(){return I.apply(this,arguments)||this}var N=H.prototype;return N.render=function(){return null},N.componentDidMount=function(){this._update()},N.componentDidUpdate=function(){this._update()},N._update=function(){var a=this.props.editor;a._latestEditorState=this.props.editorState,a._blockSelectEvents=!0},H}(r.Component),W=function(I){D(H,I);function H(U){var a;return a=I.call(this,U)||this,v(s(a),"_blockSelectEvents",void 0),v(s(a),"_clipboard",void 0),v(s(a),"_handler",void 0),v(s(a),"_dragCount",void 0),v(s(a),"_internalDrag",void 0),v(s(a),"_editorKey",void 0),v(s(a),"_placeholderAccessibilityID",void 0),v(s(a),"_latestEditorState",void 0),v(s(a),"_latestCommittedEditorState",void 0),v(s(a),"_pendingStateFromBeforeInput",void 0),v(s(a),"_onBeforeInput",void 0),v(s(a),"_onBlur",void 0),v(s(a),"_onCharacterData",void 0),v(s(a),"_onCompositionEnd",void 0),v(s(a),"_onCompositionStart",void 0),v(s(a),"_onCopy",void 0),v(s(a),"_onCut",void 0),v(s(a),"_onDragEnd",void 0),v(s(a),"_onDragOver",void 0),v(s(a),"_onDragStart",void 0),v(s(a),"_onDrop",void 0),v(s(a),"_onInput",void 0),v(s(a),"_onFocus",void 0),v(s(a),"_onKeyDown",void 0),v(s(a),"_onKeyPress",void 0),v(s(a),"_onKeyUp",void 0),v(s(a),"_onMouseDown",void 0),v(s(a),"_onMouseUp",void 0),v(s(a),"_onPaste",void 0),v(s(a),"_onSelect",void 0),v(s(a),"editor",void 0),v(s(a),"editorContainer",void 0),v(s(a),"focus",void 0),v(s(a),"blur",void 0),v(s(a),"setMode",void 0),v(s(a),"exitCurrentMode",void 0),v(s(a),"restoreEditorDOM",void 0),v(s(a),"setClipboard",void 0),v(s(a),"getClipboard",void 0),v(s(a),"getEditorKey",void 0),v(s(a),"update",void 0),v(s(a),"onDragEnter",void 0),v(s(a),"onDragLeave",void 0),v(s(a),"_handleEditorContainerRef",function(j){a.editorContainer=j,a.editor=j!==null?j.firstChild:null}),v(s(a),"focus",function(j){var z=a.props.editorState,V=z.getSelection().getHasFocus(),G=a.editor;if(G){var X=l.getScrollParent(G),J=j||M(X),Q=J.x,Y=J.y;S(G)||L(!1),G.focus(),X===window?window.scrollTo(Q,Y):e.setTop(X,Y),V||a.update(o.forceSelection(z,z.getSelection()))}}),v(s(a),"blur",function(){var j=a.editor;j&&(S(j)||L(!1),j.blur())}),v(s(a),"setMode",function(j){var z=a.props,V=z.onPaste,G=z.onCut,X=z.onCopy,J=T({},R.edit);V&&(J.onPaste=V),G&&(J.onCut=G),X&&(J.onCopy=X);var Q=T({},R,{edit:J});a._handler=Q[j]}),v(s(a),"exitCurrentMode",function(){a.setMode("edit")}),v(s(a),"restoreEditorDOM",function(j){a.setState({contentsKey:a.state.contentsKey+1},function(){a.focus(j)})}),v(s(a),"setClipboard",function(j){a._clipboard=j}),v(s(a),"getClipboard",function(){return a._clipboard}),v(s(a),"update",function(j){a._latestEditorState=j,a.props.onChange(j)}),v(s(a),"onDragEnter",function(){a._dragCount++}),v(s(a),"onDragLeave",function(){a._dragCount--,a._dragCount===0&&a.exitCurrentMode()}),a._blockSelectEvents=!1,a._clipboard=null,a._handler=null,a._dragCount=0,a._editorKey=U.editorKey||x(),a._placeholderAccessibilityID="placeholder-"+a._editorKey,a._latestEditorState=U.editorState,a._latestCommittedEditorState=U.editorState,a._onBeforeInput=a._buildHandler("onBeforeInput"),a._onBlur=a._buildHandler("onBlur"),a._onCharacterData=a._buildHandler("onCharacterData"),a._onCompositionEnd=a._buildHandler("onCompositionEnd"),a._onCompositionStart=a._buildHandler("onCompositionStart"),a._onCopy=a._buildHandler("onCopy"),a._onCut=a._buildHandler("onCut"),a._onDragEnd=a._buildHandler("onDragEnd"),a._onDragOver=a._buildHandler("onDragOver"),a._onDragStart=a._buildHandler("onDragStart"),a._onDrop=a._buildHandler("onDrop"),a._onInput=a._buildHandler("onInput"),a._onFocus=a._buildHandler("onFocus"),a._onKeyDown=a._buildHandler("onKeyDown"),a._onKeyPress=a._buildHandler("onKeyPress"),a._onKeyUp=a._buildHandler("onKeyUp"),a._onMouseDown=a._buildHandler("onMouseDown"),a._onMouseUp=a._buildHandler("onMouseUp"),a._onPaste=a._buildHandler("onPaste"),a._onSelect=a._buildHandler("onSelect"),a.getEditorKey=function(){return a._editorKey},a.state={contentsKey:0},a}var N=H.prototype;return N._buildHandler=function(a){var j=this;return function(z){if(!j.props.readOnly){var V=j._handler&&j._handler[a];V&&(n?n(function(){return V(j,z)}):V(j,z))}}},N._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},N._renderPlaceholder=function(){if(this._showPlaceholder()){var a={text:y(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return r.createElement(c,a)}return null},N._renderARIADescribedBy=function(){var a=this.props.ariaDescribedBy||"",j=this._showPlaceholder()?this._placeholderAccessibilityID:"";return a.replace("{{editor_id_placeholder}}",j)||void 0},N.render=function(){var a=this.props,j=a.blockRenderMap,z=a.blockRendererFn,V=a.blockStyleFn,G=a.customStyleFn,X=a.customStyleMap,J=a.editorState,Q=a.preventScroll,Y=a.readOnly,Z=a.textAlignment,q=a.textDirectionality,tt=h({"DraftEditor/root":!0,"DraftEditor/alignLeft":Z==="left","DraftEditor/alignRight":Z==="right","DraftEditor/alignCenter":Z==="center"}),et={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},$=this.props.role||"textbox",nt=$==="combobox"?!!this.props.ariaExpanded:null,lt={blockRenderMap:j,blockRendererFn:z,blockStyleFn:V,customStyleMap:T({},m,X),customStyleFn:G,editorKey:this._editorKey,editorState:J,preventScroll:Q,textDirectionality:q};return r.createElement("div",{className:tt},this._renderPlaceholder(),r.createElement("div",{className:h("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},r.createElement("div",{"aria-activedescendant":Y?null:this.props.ariaActiveDescendantID,"aria-autocomplete":Y?null:this.props.ariaAutoComplete,"aria-controls":Y?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":Y?null:nt,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":Y?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:h({notranslate:!Y,"public/DraftEditor/content":!0}),contentEditable:!Y,"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:Y?null:$,spellCheck:b&&this.props.spellCheck,style:et,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},r.createElement(w,{editor:this,editorState:J}),r.createElement(p,K({},lt,{key:"contents"+this.state.contentsKey})))))},N.componentDidMount=function(){this._blockSelectEvents=!1,!P&&F("draft_ods_enabled")&&(P=!0,u.initODS()),this.setMode("edit"),E&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):t.g.execCommand("AutoUrlDetect",!1,!1))},N.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},H}(r.Component);v(W,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:C,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:B,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),A.exports=W},58892:(A,k,t)=>{var O=t(80458),K=t(21829),T=K.Map,s={add:function(C,m,g){return v(C,m,g,!0)},remove:function(C,m,g){return v(C,m,g,!1)}};function v(D,C,m,g){var p=D.getBlockMap(),f=C.getStartKey(),d=C.getStartOffset(),n=C.getEndKey(),c=C.getEndOffset(),u=p.skipUntil(function(o,r){return r===f}).takeUntil(function(o,r){return r===n}).concat(T([[n,p.get(n)]])).map(function(o,r){var e,l;f===n?(e=d,l=c):(e=r===f?d:0,l=r===n?c:o.getLength());for(var i=o.getCharacterList(),h;e<l;)h=i.get(e),i=i.set(e,g?O.applyStyle(h,m):O.removeStyle(h,m)),e++;return o.set("characterList",i)});return D.merge({blockMap:p.merge(u),selectionBefore:C,selectionAfter:C})}A.exports=s},62844:(A,k,t)=>{function O(v,D){v.prototype=Object.create(D.prototype),v.prototype.constructor=v,v.__proto__=D}var K=t(81924),T=t(20157),s=function(v){O(D,v);function D(){return v.apply(this,arguments)||this}var C=D.prototype;return C.shouldComponentUpdate=function(g){return this.props.text!==g.text||this.props.editorState.getSelection().getHasFocus()!==g.editorState.getSelection().getHasFocus()},C.render=function(){var g=this.props.editorState.getSelection().getHasFocus(),p=T({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
7Focus":g}),f={whiteSpace:"pre-wrap"};return K.createElement("div",{className:p},K.createElement("div",{className:T("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:f},this.props.text))},D}(K.Component);A.exports=s},64682:(A,k,t)=>{var O=t(4069),K=t(40498),T=t(91698),s=t(73620),v=t(65853),D=t(90515),C=t(55386),m=t(23037),g=t(6128),p=t(92866);function f(o,r){var e=null,l=null,i=v(o.currentTarget);if(typeof i.caretRangeFromPoint=="function"){var h=i.caretRangeFromPoint(o.x,o.y);e=h.startContainer,l=h.startOffset}else if(o.rangeParent)e=o.rangeParent,l=o.rangeOffset;else return null;e=p(e),l=p(l);var x=p(s(e));return C(r,x,l,x,l)}var d={onDragEnd:function(r){r.exitCurrentMode(),n(r)},onDrop:function(r,e){var l=new O(e.nativeEvent.dataTransfer),i=r._latestEditorState,h=f(e.nativeEvent,i);if(e.preventDefault(),r._dragCount=0,r.exitCurrentMode(),h!=null){var x=l.getFiles();if(x.length>0){if(r.props.handleDroppedFiles&&g(r.props.handleDroppedFiles(h,x)))return;D(x,function(M){M&&r.update(u(i,h,M))});return}var B=r._internalDrag?"internal":"external";r.props.handleDrop&&g(r.props.handleDrop(h,l,B))||(r._internalDrag?r.update(c(i,h)):r.update(u(i,h,l.getText()))),n(r)}}};function n(o){o._internalDrag=!1;var r=o.editorContainer;if(r){var e=new MouseEvent("mouseup",{view:m(r),bubbles:!0,cancelable:!0});r.dispatchEvent(e)}}function c(o,r){var e=K.moveText(o.getCurrentContent(),o.getSelection(),r);return T.push(o,e,"insert-fragment")}function u(o,r,e){var l=K.insertText(o.getCurrentContent(),r,e,o.getCurrentInlineStyle());return T.push(o,l,"insert-fragment")}A.exports=d},65707:(A,k,t)=>{var O=t(81924),K=t(20157),T=t(21829),s=T.Map,v=O.createElement("ul",{className:K("public/DraftStyleDefault/ul")}),D=O.createElement("ol",{className:K("public/DraftStyleDefault/ol")}),C=O.createElement("pre",{className:K("public/DraftStyleDefault/pre")}),m=s({"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:v},"ordered-list-item":{element:"li",wrapper:D},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:C},unstyled:{element:"div",aliasedElements:["p"]}});A.exports=m},66302:A=>{var k={getRemovalRange:function(O,K,T,s,v){var D=T.split(" ");D=D.map(function(o,r){if(v==="forward"){if(r>0)return" "+o}else if(r<D.length-1)return o+" ";return o});for(var C=s,m,g,p=null,f=null,d=0;d<D.length;d++){if(g=D[d],m=C+g.length,O<m&&C<K)p!==null||(p=C),f=m;else if(p!==null)break;C=m}var n=s+T.length,c=p===s,u=f===n;return(!c&&u||c&&!u)&&(v==="forward"?f!==n&&f++:p!==s&&p--),{start:p,end:f}}};A.exports=k},66689:(A,k,t)=>{var O=t(73042),K=O("draft_tree_data_support");A.exports=t(K?66747:21755)},66747:(A,k,t)=>{var O=t(46084);function K(){return K=O||function(g){for(var p=1;p<arguments.length;p++){var f=arguments[p];for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(g[d]=f[d])}return g},K.apply(this,arguments)}function T(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,g.__proto__=p}var s=t(68416),v=t(83437),D=t(81924),C=t(92866),m=function(g){T(p,g);function p(){return g.apply(this,arguments)||this}var f=p.prototype;return f.shouldComponentUpdate=function(n){var c=this.props.editorState,u=n.editorState,o=c.getDirectionMap(),r=u.getDirectionMap();if(o!==r)return!0;var e=c.getSelection().getHasFocus(),l=u.getSelection().getHasFocus();if(e!==l)return!0;var i=u.getNativelyRenderedContent(),h=c.isInCompositionMode(),x=u.isInCompositionMode();if(c===u||i!==null&&u.getCurrentContent()===i||h&&x)return!1;var B=c.getCurrentContent(),M=u.getCurrentContent(),F=c.getDecorator(),L=u.getDecorator();return h!==x||B!==M||F!==L||u.mustForceSelection()},f.render=function(){for(var n=this.props,c=n.blockRenderMap,u=n.blockRendererFn,o=n.blockStyleFn,r=n.customStyleMap,e=n.customStyleFn,l=n.editorState,i=n.editorKey,h=n.textDirectionality,x=l.getCurrentContent(),B=l.getSelection(),M=l.mustForceSelection(),F=l.getDecorator(),L=C(l.getDirectionMap()),S=x.getBlocksAsArray(),y=S[0],E=[],b=y;b;){var R=b.getKey(),P={blockRenderMap:c,blockRendererFn:u,blockStyleFn:o,contentState:x,customStyleFn:e,customStyleMap:r,decorator:F,editorKey:i,editorState:l,forceSelection:M,selection:B,block:b,direction:h||L.get(R),tree:l.getBlockTree(R)},w=c.get(b.getType())||c.get("unstyled"),W=w.wrapper;E.push({block:D.createElement(s,K({key:R},P)),wrapperTemplate:W,key:R,offsetKey:v.encode(R,0,0)});var I=b.getNextSiblingKey();b=I?x.getBlockForKey(I):null}for(var H=[],N=0;N<E.length;){var U=E[N];if(U.wrapperTemplate){var a=[];do a.push(E[N].block),N++;while(N<E.length&&E[N].wrapperTemplate===U.wrapperTemplate);var j=D.cloneElement(U.wrapperTemplate,{key:U.key+"-wrap","data-offset-key":U.offsetKey},a);H.push(j)}else H.push(U.block),N++}return D.createElement("div",{"data-contents":"true"},H)},p}(D.Component);A.exports=m},66782:(A,k,t)=>{function O(o){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{},l=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(e).filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),l.forEach(function(i){K(o,i,e[i])})}return o}function K(o,r,e){return r in o?Object.defineProperty(o,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[r]=e,o}var T=t(87976),s=t(42664),v=t(41960),D=t(56079),C=t(3e4),m=t(73042),g=t(21829),p=t(13801),f=g.List,d=g.Repeat,n=m("draft_tree_data_support"),c=n?s:T,u={processHTML:function(r,e){return v(r,C,e)},processText:function(r,e,l){return r.reduce(function(i,h,x){h=p(h);var B=D(),M={key:B,type:l,text:h,characterList:f(d(e,h.length))};if(n&&x!==0){var F=x-1,L=i[F]=i[F].merge({nextSibling:B});M=O({},M,{prevSibling:L.getKey()})}return i.push(new c(M)),i},[])}};A.exports=u},68416:(A,k,t)=>{var O=t(46084);function K(){return K=O||function(S){for(var y=1;y<arguments.length;y++){var E=arguments[y];for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(S[b]=E[b])}return S},K.apply(this,arguments)}function T(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function s(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,S.__proto__=y}function v(S){for(var y=1;y<arguments.length;y++){var E=arguments[y]!=null?arguments[y]:{},b=Object.keys(E);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(E).filter(function(R){return Object.getOwnPropertyDescriptor(E,R).enumerable}))),b.forEach(function(R){D(S,R,E[R])})}return S}function D(S,y,E){return y in S?Object.defineProperty(S,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[y]=E,S}var C=t(98331),m=t(83437),g=t(81924),p=t(66919),f=t(95189),d=t(9565),n=t(99166),c=t(75211),u=t(21829),o=t(74480),r=t(14491),e=10,l=u.List,i=function(y,E){return y.getAnchorKey()===E||y.getFocusKey()===E},h=function(y,E){var b=y.getNextSiblingKey();return b?E.getBlockForKey(b).getType()===y.getType():!1},x=function(y,E,b){var R=[],P=!0,w=!1,W=void 0;try{for(var I=b.reverse()[Symbol.iterator](),H;!(P=(H=I.next()).done);P=!0){var N=H.value;if(N.type!==E)break;R.push(N)}}catch(j){w=!0,W=j}finally{try{!P&&I.return!=null&&I.return()}finally{if(w)throw W}}b.splice(b.indexOf(R[0]),R.length+1);var U=R.reverse(),a=U[0].key;return b.push(g.cloneElement(y,{key:"".concat(a,"-wrap"),"data-offset-key":m.encode(a,0,0)},U)),b},B=function(y,E){var b=E.get(y.getType())||E.get("unstyled"),R=b.wrapper,P=b.element||E.get("unstyled").element;return{Element:P,wrapperTemplate:R}},M=function(y,E){var b=E(y);if(!b)return{};var R=b.component,P=b.props,w=b.editable;return{CustomComponent:R,customProps:P,customEditable:w}},F=function(y,E,b,R,P,w){var W={"data-block":!0,"data-editor":E,"data-offset-key":b,key:y.getKey(),ref:w},I=R(y);return I&&(W.className=I),P.customEditable!==void 0&&(W=v({},W,{contentEditable:P.customEditable,suppressContentEditableWarning:!0})),W},L=function(S){s(y,S);function y(){for(var b,R=arguments.length,P=new Array(R),w=0;w<R;w++)P[w]=arguments[w];return b=S.call.apply(S,[this].concat(P))||this,D(T(b),"wrapperRef",g.createRef()),b}var E=y.prototype;return E.shouldComponentUpdate=function(R){var P=this.props,w=P.block,W=P.direction,I=P.tree,H=!w.getChildKeys().isEmpty(),N=w!==R.block||I!==R.tree||W!==R.direction||i(R.selection,R.block.getKey())&&R.forceSelection;return H||N},E.componentDidMount=function(){var R=this.props.selection,P=R.getEndKey();if(!(!R.getHasFocus()||P!==this.props.block.getKey())){var w=this.wrapperRef.current;if(w){var W=f.getScrollParent(w),I=n(W),H;if(W===window){var N=d(w),U=N.y+N.height,a=c().height;H=U-a,H>0&&window.scrollTo(I.x,I.y+H+e)}else{r(w)||o(!1);var j=w,z=j.offsetHeight+j.offsetTop,V=W.offsetHeight+I.y;H=z-V,H>0&&p.setTop(W,p.getTop(W)+H+e)}}}},E.render=function(){var R=this,P=this.props,w=P.block,W=P.blockRenderMap,I=P.blockRendererFn,H=P.blockStyleFn,N=P.contentState,U=P.decorator,a=P.editorKey,j=P.editorState,z=P.customStyleFn,V=P.customStyleMap,G=P.direction,X=P.forceSelection,J=P.selection,Q=P.tree,Y=null;w.children.size&&(Y=w.children.reduce(function(at,ot){var rt=m.encode(ot,0,0),_=N.getBlockForKey(ot),it=M(_,I),ct=it.CustomComponent||y,ut=B(_,W),ft=ut.Element,dt=ut.wrapperTemplate,pt=F(_,a,rt,H,it,null),vt=v({},R.props,{tree:j.getBlockTree(ot),blockProps:it.customProps,offsetKey:rt,block:_});return at.push(g.createElement(ft,pt,g.createElement(ct,vt))),!dt||h(_,N)||x(dt,ft,at),at},[]));var Z=w.getKey(),q=m.encode(Z,0,0),tt=M(w,I),et=tt.CustomComponent,$=et!=null?g.createElement(et,K({},this.props,{tree:j.getBlockTree(Z),blockProps:tt.customProps,offsetKey:q,block:w})):g.createElement(C,{block:w,children:Y,contentState:N,customStyleFn:z,customStyleMap:V,decorator:U,direction:G,forceSelection:X,hasSelection:i(J,Z),selection:J,tree:Q});if(w.getParentKey())return $;var nt=B(w,W),lt=nt.Element,st=F(w,a,q,H,tt,this.wrapperRef);return g.createElement(lt,st,$)},y}(g.Component);A.exports=L},69103:A=>{var k={stringify:function(O){return"_"+String(O)},unstringify:function(O){return O.slice(1)}};A.exports=k},73624:(A,k,t)=>{function O(M){for(var F=1;F<arguments.length;F++){var L=arguments[F]!=null?arguments[F]:{},S=Object.keys(L);typeof Object.getOwnPropertySymbols=="function"&&(S=S.concat(Object.getOwnPropertySymbols(L).filter(function(y){return Object.getOwnPropertyDescriptor(L,y).enumerable}
vendor: 4,185 bytes, lines 7-8
7))),S.forEach(function(y){K(M,y,L[y])})}return M}function K(M,F,L){return F in M?Object.defineProperty(M,F,{value:L,enumerable:!0,configurable:!0,writable:!0}):M[F]=L,M}function T(M,F){M.prototype=Object.create(F.prototype),M.prototype.constructor=M,M.__proto__=F}var s=t(45156),v=t(80458),D=t(87976),C=t(42664),m=t(46008),g=t(40021),p=t(56079),f=t(12583),d=t(73042),n=t(21829),c=t(13801),u=n.List,o=n.Record,r=n.Repeat,e=n.Map,l=n.OrderedMap,i={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},h=o(i),x=d("draft_tree_data_support")?C:D,B=function(M){T(F,M);function F(){return M.apply(this,arguments)||this}var L=F.prototype;return L.getEntityMap=function(){return m},L.getBlockMap=function(){return this.get("blockMap")},L.getSelectionBefore=function(){return this.get("selectionBefore")},L.getSelectionAfter=function(){return this.get("selectionAfter")},L.getBlockForKey=function(y){var E=this.getBlockMap().get(y);return E},L.getKeyBefore=function(y){return this.getBlockMap().reverse().keySeq().skipUntil(function(E){return E===y}).skip(1).first()},L.getKeyAfter=function(y){return this.getBlockMap().keySeq().skipUntil(function(E){return E===y}).skip(1).first()},L.getBlockAfter=function(y){return this.getBlockMap().skipUntil(function(E,b){return b===y}).skip(1).first()},L.getBlockBefore=function(y){return this.getBlockMap().reverse().skipUntil(function(E,b){return b===y}).skip(1).first()},L.getBlocksAsArray=function(){return this.getBlockMap().toArray()},L.getFirstBlock=function(){return this.getBlockMap().first()},L.getLastBlock=function(){return this.getBlockMap().last()},L.getPlainText=function(y){return this.getBlockMap().map(function(E){return E?E.getText():""}).join(y||` 8`)},L.getLastCreatedEntityKey=function(){return m.__getLastCreatedEntityKey()},L.hasText=function(){var y=this.getBlockMap();return y.size>1||escape(y.first().getText()).replace(/%u200B/g,"").length>0},L.createEntity=function(y,E,b){return m.__create(y,E,b),this},L.mergeEntityData=function(y,E){return m.__mergeData(y,E),this},L.replaceEntityData=function(y,E){return m.__replaceData(y,E),this},L.addEntity=function(y){return m.__add(y),this},L.getEntity=function(y){return m.__get(y)},L.getAllEntities=function(){return m.__getAll()},L.loadWithEntities=function(y){return m.__loadWithEntities(y)},F.createFromBlockArray=function(y,E){var b=Array.isArray(y)?y:y.contentBlocks,R=s.createFromArray(b),P=R.isEmpty()?new g:g.createEmpty(R.first().getKey());return new F({blockMap:R,entityMap:E||m,selectionBefore:P,selectionAfter:P})},F.createFromText=function(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,b=y.split(E),R=b.map(function(P){return P=c(P),new x({key:p(),text:P,type:"unstyled",characterList:u(r(v.EMPTY,P.length))})});return F.createFromBlockArray(R)},F.fromJS=function(y){return new F(O({},y,{blockMap:l(y.blockMap).map(F.createContentBlockFromJS),selectionBefore:new g(y.selectionBefore),selectionAfter:new g(y.selectionAfter)}))},F.createContentBlockFromJS=function(y){var E=y.characterList;return new x(O({},y,{data:e(y.data),characterList:E!=null?u((Array.isArray(E)?E:f(E)).map(function(b){return v.fromJS(b)})):void 0}))},F}(h);A.exports=B},80458:(A,k,t)=>{function O(d,n){d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.__proto__=n}var K=t(21829),T=K.Map,s=K.OrderedSet,v=K.Record,D=s(),C={style:D,entity:null},m=v(C),g=function(d){O(n,d);function n(){return d.apply(this,arguments)||this}var c=n.prototype;return c.getStyle=function(){return this.get("style")},c.getEntity=function(){return this.get("entity")},c.hasStyle=function(o){return this.getStyle().includes(o)},n.applyStyle=function(o,r){var e=o.set("style",o.getStyle().add(r));return n.create(e)},n.removeStyle=function(o,r){var e=o.set("style",o.getStyle().remove(r));return n.create(e)},n.applyEntity=function(o,r){var e=o.getEntity()===r?o:o.set("entity",r);return n.create(e)},n.create=function(o){if(!o)return p;var r={style:D,entity:null},e=T(r).merge(o),l=f.get(e);if(l)return l;var i=new n(e);return f=f.set(e,i),i},n.fromJS=function(o){var r=o.style,e=o.entity;return new n({style:Array.isArray(r)?s(r):r,entity:Array.isArray(e)?
8s(e):e})},n}(m),p=new g,f=T([[T(C),p]]);g.EMPTY=p,A.exports=g},83064:(A,k,t)=>{var O=t(55464),K=t(81498),T=t(98890),s=t(68069),v=t(84622),D=t(90111),C=t(93599),m=t(52429),g=t(94367),p=t(76451),f=t(2824),d=t(84688),n=t(16111),c=O.isBrowser("Chrome"),u=O.isBrowser("Firefox"),o=c||u?n:function(e){},r={onBeforeInput:K,onBlur:T,onCompositionStart:s,onCopy:v,onCut:D,onDragOver:C,onDragStart:m,onFocus:g,onInput:p,onKeyDown:f,onPaste:d,onSelect:n,onMouseUp:o,onKeyUp:o};A.exports=r},83437:A=>{var k="-",t={encode:function(K,T,s){return K+k+T+k+s},decode:function(K){var T=K.split(k).reverse(),s=T[0],v=T[1],D=T.slice(2);return{blockKey:D.reverse().join(k),decoratorKey:parseInt(v,10),leafKey:parseInt(s,10)}}};A.exports=t},83972:A=>{A.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},87801:A=>{A.exports={initODS:function(){},handleExtensionCausedError:function(){}}},87976:(A,k,t)=>{function O(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var K=t(80458),T=t(95731),s=t(21829),v=s.List,D=s.Map,C=s.OrderedSet,m=s.Record,g=s.Repeat,p=C(),f={key:"",type:"unstyled",text:"",characterList:v(),depth:0,data:D()},d=m(f),n=function(e){if(!e)return e;var l=e.characterList,i=e.text;return i&&!l&&(e.characterList=v(g(K.EMPTY,i.length))),e},c=function(r){O(e,r);function e(i){return r.call(this,n(i))||this}var l=e.prototype;return l.getKey=function(){return this.get("key")},l.getType=function(){return this.get("type")},l.getText=function(){return this.get("text")},l.getCharacterList=function(){return this.get("characterList")},l.getLength=function(){return this.getText().length},l.getDepth=function(){return this.get("depth")},l.getData=function(){return this.get("data")},l.getInlineStyleAt=function(h){var x=this.getCharacterList().get(h);return x?x.getStyle():p},l.getEntityAt=function(h){var x=this.getCharacterList().get(h);return x?x.getEntity():null},l.findStyleRanges=function(h,x){T(this.getCharacterList(),u,h,x)},l.findEntityRanges=function(h,x){T(this.getCharacterList(),o,h,x)},e}(d);function u(r,e){return r.getStyle()===e.getStyle()}function o(r,e){return r.getEntity()===e.getEntity()}A.exports=c},88112:(A,k,t)=>{var O=t(8942),K=O.unstable_flushControlled;A.exports=K},88308:(A,k,t)=>{var O=t(46084);function K(){return K=O||function(g){for(var p=1;p<arguments.length;p++){var f=arguments[p];for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(g[d]=f[d])}return g},K.apply(this,arguments)}function T(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,g.__proto__=p}var s=t(83437),v=t(81924),D=t(41733),C=t(52628),m=function(g){T(p,g);function p(){return g.apply(this,arguments)||this}var f=p.prototype;return f.render=function(){var n=this.props,c=n.block,u=n.children,o=n.contentState,r=n.decorator,e=n.decoratorKey,l=n.direction,i=n.leafSet,h=n.text,x=c.getKey(),B=i.get("leaves"),M=r.getComponentForKey(e),F=r.getPropsForKey(e),L=s.encode(x,parseInt(e,10),0),S=h.slice(B.first().get("start"),B.last().get("end")),y=C.getHTMLDirIfDifferent(D.getDirection(S),l);return v.createElement(M,K({},F,{contentState:o,decoratedText:S,dir:y,key:L,entityKey:c.getEntityAt(i.get("start")),offsetKey:L}),u)},p}(v.Component);A.exports=m},90354:(A,k,t)=>{function O(d,n,c){return n in d?Object.defineProperty(d,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):d[n]=c,d}var K=t(55464),T=t(73620),s=t(23037),v=t(21829),D=t(74480),C=t(92866),m=v.Map,g={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=K.isBrowser("IE <= 11"),f=function(){function d(c){var u=this;O(this,"observer",void 0),O(this,"container",void 0),O(this,"mutations",void 0),O(this,"onCharData",void 0),this.container=c,this.mutations=m();var o=s(c);o.MutationObserver&&!p?this.observer=new o.MutationObserver(function(r){return u.registerMutations(r)}):this.onCharData=function(r){r.target instanceof Node||D(!1),u.registerMutation({type:"characterData",target:r.target})}}var n=d.prototype;return n.start=function(){this.observer?this.observer.observe(this.container,g):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},n.stopAndFlushMutations=function(){var u=this.observer;u?(this.registerMutations(u.takeRecords()),u.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var o=this.mutations;return this.mutations=m(),o},n.registerMutations=function(u){for(var o=0;o<u.length;o++)this.registerMutation(u[o])},n.getMutationTextContent=function(u){var o=u.type,r=u.target,e=u.removedNodes;if(o==="characterData"){if(r.textContent!=="")return p?r.textContent.replace(` 9`,""):r.textContent}else if(o==="childList"){if(e&&e.length)return"";if(r.textContent!=="")return r.textContent}return null},n.registerMutation=function(u){var o=this.getMutationTextContent(u);if(o!=null){var r=C(T(u.target));this.mutations=this.mutations.set(r,o)}},d}();A.exports=f},98331:(A,k,t)=>{function O(p,f){p.prototype=Object.create(f.prototype),p.prototype.constructor=p,p.__proto__=f}var K=t(88308),T=t(10435),s=t(83437),v=t(21829),D=t(81924),C=t(20157),m=v.List,g=function(p){O(f,p);function f(){return p.apply(this,arguments)||this}var d=f.prototype;return d.render=function(){var c=this.props,u=c.block,o=c.contentState,r=c.customStyleFn,e=c.customStyleMap,l=c.decorator,i=c.direction,h=c.forceSelection,x=c.hasSelection,B=c.selection,M=c.tree,F=u.getKey(),L=u.getText(),S=M.size-1,y=this.props.children||M.map(function(E,b){var R=E.get("decoratorKey"),P=E.get("leaves"),w=P.size-1,W=P.map(function(I,H){var N=s.encode(F,b,H),U=I.get("start"),a=I.get("end");return D.createElement(T,{key:N,offsetKey:N,block:u,start:U,selection:x?B:null,forceSelection:h,text:L.slice(U,a),styleSet:u.getInlineStyleAt(U),customStyleMap:e,customStyleFn:r,isLast:R===S&&H===w})}).toArray();
9return!R||!l?W:D.createElement(K,{block:u,children:W,contentState:o,decorator:l,decoratorKey:R,direction:i,leafSet:E,text:L,key:b})}).toArray();return D.createElement("div",{"data-offset-key":s.encode(F,0,0),className:C({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":i==="LTR","public/DraftStyleDefault/rtl":i==="RTL"})},y)},f}(D.Component);A.exports=g}}]);
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.