if (self.CavalryLogger) { CavalryLogger.start_js(["scsZj"]); }

__d("DraftJsEventsTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:DraftJsEventsLoggerConfig",this.$DraftJsEventsTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:DraftJsEventsLoggerConfig",this.$DraftJsEventsTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$DraftJsEventsTypedLogger1={};return this};h.prototype.updateData=function(j){this.$DraftJsEventsTypedLogger1=babelHelpers["extends"]({},this.$DraftJsEventsTypedLogger1,j);return this};h.prototype.setAnonymizedDom=function(j){this.$DraftJsEventsTypedLogger1.anonymized_dom=j;return this};h.prototype.setEvent=function(j){this.$DraftJsEventsTypedLogger1.event=j;return this};h.prototype.setExtraParams=function(j){this.$DraftJsEventsTypedLogger1.extra_params=j;return this};h.prototype.setScriptPath=function(j){this.$DraftJsEventsTypedLogger1.script_path=j;return this};h.prototype.setSelectionState=function(j){this.$DraftJsEventsTypedLogger1.selection_state=j;return this};h.prototype.setVC=function(j){this.$DraftJsEventsTypedLogger1.vc=j;return this};var i={anonymized_dom:true,event:true,extra_params:true,script_path:true,selection_state:true,vc:true};f.exports=h}),null);
__d("DraftEditorTextNode.react",["invariant","React","ReactDOM","UserAgent"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("UserAgent").isBrowser("IE <= 11");function l(p){return k?p.textContent==="\n":p.tagName==="BR"}var m=k?c("React").createElement("span",{key:"A","data-text":"true"},"\n"):c("React").createElement("br",{key:"A","data-text":"true"}),n=k?c("React").createElement("span",{key:"B","data-text":"true"},"\n"):c("React").createElement("br",{key:"B","data-text":"true"});i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;function o(p){j.constructor.call(this,p);this.$DraftEditorTextNode1=false}o.prototype.shouldComponentUpdate=function(p){var q=c("ReactDOM").findDOMNode(this),r=p.children==="";q instanceof Element||h(0);if(r)return!l(q);return q.textContent!==p.children};o.prototype.componentDidMount=function(){this.$DraftEditorTextNode1=!this.$DraftEditorTextNode1};o.prototype.componentDidUpdate=function(){this.$DraftEditorTextNode1=!this.$DraftEditorTextNode1};o.prototype.render=function(){if(this.props.children==="")return this.$DraftEditorTextNode1?m:n;return c("React").createElement("span",{key:this.$DraftEditorTextNode1?"A":"B","data-text":"true"},this.props.children)};f.exports=o}),null);
__d("DraftJsDebugLogging",["CurrentUser","DraftJsEventsTypedLogger","ScriptPath"],(function a(b,c,d,e,f,g){"use strict";f.exports={logSelectionStateFailure:function h(i){var j=i.anonymizedDom,k=i.extraParams,l=i.selectionState;if(c("CurrentUser").isEmployee())new(c("DraftJsEventsTypedLogger"))().setEvent("selection_state_failure").setAnonymizedDom(j).setExtraParams(k).setScriptPath(c("ScriptPath").getScriptPath()).setSelectionState(l).log()}}}),null);
__d("setDraftEditorSelection",["invariant","DraftJsDebugLogging","containsNode","getActiveElement"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(p,q){if(!p)return"[empty]";var r=j(p,q);if(r.nodeType===Node.TEXT_NODE)return r.textContent;r instanceof Element||h(0);return r.outerHTML}function j(p,q){__p&&__p();var r=q!==undefined?q(p):[];if(p.nodeType===Node.TEXT_NODE){var s=p.textContent.length;return document.createTextNode("[text "+s+(r.length?" | "+r.join(", "):"")+"]")}var t=p.cloneNode();if(t.nodeType===1&&r.length)t.setAttribute("data-labels",r.join(", "));var u=p.childNodes;for(var v=0;v<u.length;v++)t.appendChild(j(u[v],q));return t}function k(p,q){var r=p;while(r)if(r instanceof Element&&r.hasAttribute("contenteditable"))return i(r,q);else r=r.parentNode;return"Could not find contentEditable parent of node"}function l(p){return p.nodeValue===null?p.childNodes.length:p.nodeValue.length}function m(p,q,r,s,t){__p&&__p();if(!c("containsNode")(document.documentElement,q))return;var u=b.getSelection(),v=p.getAnchorKey(),w=p.getAnchorOffset(),x=p.getFocusKey(),y=p.getFocusOffset(),z=p.getIsBackward();if(!u.extend&&z){var A=v,B=w;v=x;w=y;x=A;y=B;z=false}var C=v===r&&s<=w&&t>=w,D=x===r&&s<=y&&t>=y;if(C&&D){u.removeAllRanges();o(u,q,w-s,p);n(u,q,y-s,p);return}if(!z){if(C){u.removeAllRanges();o(u,q,w-s,p)}if(D)n(u,q,y-s,p)}else{if(D){u.removeAllRanges();o(u,q,y-s,p)}if(C){var E=u.focusNode,F=u.focusOffset;u.removeAllRanges();o(u,q,w-s,p);n(u,E,F,p)}}}function n(p,q,r,s){__p&&__p();var t=c("getActiveElement")();if(p.extend&&c("containsNode")(t,q)){if(r>l(q))c("DraftJsDebugLogging").logSelectionStateFailure({anonymizedDom:k(q),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(s.toJS())});var u=q===p.focusNode;try{p.extend(q,r)}catch(v){c("DraftJsDebugLogging").logSelectionStateFailure({anonymizedDom:k(q,function(x){var y=[];if(x===t)y.push("active element");if(x===p.anchorNode)y.push("selection anchor node");if(x===p.focusNode)y.push("selection focus node");return y}),extraParams:JSON.stringify({activeElementName:t?t.nodeName:null,nodeIsFocus:q===p.focusNode,nodeWasFocus:u,selectionRangeCount:p.rangeCount,selectionAnchorNodeName:p.anchorNode?p.anchorNode.nodeName:null,selectionAnchorOffset:p.anchorOffset,selectionFocusNodeName:p.focusNode?p.focusNode.nodeName:null,selectionFocusOffset:p.focusOffset,message:v?""+v:null,offset:r},null,2),selectionState:JSON.stringify(s.toJS(),null,2)});throw v}}else{var w=p.getRangeAt(0);w.setEnd(q,r);p.addRange(w.cloneRange())}}function o(p,q,r,s){var t=document.createRange();if(r>l(q))c("DraftJsDebugLogging").logSelectionStateFailure({anonymizedDom:k(q),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(s.toJS())});t.setStart(q,r);p.addRange(t)}f.exports=m}),null);
__d("DraftEditorLeaf.react",["invariant","DraftEditorTextNode.react","React","ReactDOM","setDraftEditorSelection"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.$DraftEditorLeaf1=function(){__p&&__p();var l=this.props.selection;if(l==null||!l.getHasFocus())return;var m=this.props,n=m.block,o=m.start,p=m.text,q=n.getKey(),r=o+p.length;if(!l.hasEdgeWithin(q,o,r))return;var s=c("ReactDOM").findDOMNode(this);s||h(0);var t=s.firstChild;t||h(0);var u=void 0;if(t.nodeType===Node.TEXT_NODE)u=t;else if(t.tagName==="BR")u=s;else{u=t.firstChild;u||h(0)}c("setDraftEditorSelection")(l,u,q,o,r)};k.prototype.shouldComponentUpdate=function(l){var m=c("ReactDOM").findDOMNode(this.leaf);m||h(0);return m.textContent!==l.text||l.styleSet!==this.props.styleSet||l.forceSelection};k.prototype.componentDidUpdate=function(){this.$DraftEditorLeaf1()};k.prototype.componentDidMount=function(){this.$DraftEditorLeaf1()};k.prototype.render=function(){__p&&__p();var l=this.props.block,m=this.props.text;if(m.endsWith("\n")&&this.props.isLast)m+="\n";var n=this.props,o=n.customStyleMap,p=n.customStyleFn,q=n.offsetKey,r=n.styleSet,s=r.reduce(function(u,v){var w={},x=o[v];if(x!==undefined&&u.textDecoration!==x.textDecoration)w.textDecoration=[u.textDecoration,x.textDecoration].join(" ").trim();return Object.assign(u,x,w)},{});if(p){var t=p(r,l);s=Object.assign(s,t)}return c("React").createElement("span",{"data-offset-key":q,ref:function(u){return this.leaf=u}.bind(this),style:s},c("React").createElement(c("DraftEditorTextNode.react"),null,m))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("DraftOffsetKey",[],(function a(b,c,d,e,f,g){"use strict";var h="-",i={encode:function j(k,l,m){return k+h+l+h+m},decode:function j(k){var l=k.split(h),m=l[0],n=l[1],o=l[2];return{blockKey:m,decoratorKey:parseInt(n,10),leafKey:parseInt(o,10)}}};f.exports=i}),null);
__d("DraftEditorBlock.react",["cx","invariant","DraftEditorLeaf.react","DraftOffsetKey","React","ReactDOM","Scroll","Style","UnicodeBidi","UnicodeBidiDirection","getElementPosition","getScrollPosition","getViewportDimensions","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=10,m=function m(o,p){return o.getAnchorKey()===p||o.getFocusKey()===p};j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;n.prototype.shouldComponentUpdate=function(o){return this.props.block!==o.block||this.props.tree!==o.tree||this.props.direction!==o.direction||m(o.selection,o.block.getKey())&&o.forceSelection};n.prototype.componentDidMount=function(){__p&&__p();var o=this.props.selection,p=o.getEndKey();if(!o.getHasFocus()||p!==this.props.block.getKey())return;var q=c("ReactDOM").findDOMNode(this),r=c("Style").getScrollParent(q),s=c("getScrollPosition")(r),t=void 0;if(r===window){var u=c("getElementPosition")(q),v=u.y+u.height,w=c("getViewportDimensions")().height;t=v-w;if(t>0)window.scrollTo(s.x,s.y+t+l)}else{q instanceof HTMLElement||i(0);var x=q.offsetHeight+q.offsetTop,y=r.offsetHeight+s.y;t=x-y;if(t>0)c("Scroll").setTop(r,c("Scroll").getTop(r)+t+l)}};n.prototype.$DraftEditorBlock1=function(){__p&&__p();var o=this.props.block,p=o.getKey(),q=o.getText(),r=this.props.tree.size-1,s=m(this.props.selection,p);return this.props.tree.map(function(t,u){__p&&__p();var v=t.get("leaves"),w=v.size-1,x=v.map(function(F,G){var H=c("DraftOffsetKey").encode(p,u,G),I=F.get("start"),J=F.get("end");return c("React").createElement(c("DraftEditorLeaf.react"),{key:H,offsetKey:H,block:o,start:I,selection:s?this.props.selection:null,forceSelection:this.props.forceSelection,text:q.slice(I,J),styleSet:o.getInlineStyleAt(I),customStyleMap:this.props.customStyleMap,customStyleFn:this.props.customStyleFn,isLast:u===r&&G===w})}.bind(this)).toArray(),y=t.get("decoratorKey");if(y==null)return x;if(!this.props.decorator)return x;var z=c("nullthrows")(this.props.decorator),A=z.getComponentForKey(y);if(!A)return x;var B=z.getPropsForKey(y),C=c("DraftOffsetKey").encode(p,u,0),D=q.slice(v.first().get("start"),v.last().get("end")),E=c("UnicodeBidiDirection").getHTMLDirIfDifferent(c("UnicodeBidi").getDirection(D),this.props.direction);return c("React").createElement(A,babelHelpers["extends"]({},B,{contentState:this.props.contentState,decoratedText:D,dir:E,key:C,entityKey:o.getEntityAt(t.get("start")),offsetKey:C}),x)}.bind(this)).toArray()};n.prototype.render=function(){var o=this.props,p=o.direction,q=o.offsetKey,r="_1mf"+(p==="LTR"?" _1mj":"")+(p==="RTL"?" _1mk":"");return c("React").createElement("div",{"data-offset-key":q,className:r},this.$DraftEditorBlock1())};function n(){j.apply(this,arguments)}f.exports=n}),null);
__d("DraftEditorContents-core.react",["cx","DraftEditorBlock.react","DraftOffsetKey","EditorState","React","joinClasses","nullthrows"],(function a(b,c,d,e,f,aa,ba){"use strict";__p&&__p();var g,h,i=function i(k,l,m,n){return(k==="unordered-list-item"?"_3kpz":"")+(k==="ordered-list-item"?" _3kp_":"")+(m?" _3kq0":"")+(l===0?" _3kq1":"")+(l===1?" _3kq2":"")+(l===2?" _3kq3":"")+(l===3?" _3kq4":"")+(l===4?" _3kq5":"")+(n==="LTR"?" _3kq6":"")+(n==="RTL"?" _3kq7":"")};g=babelHelpers.inherits(j,c("React").Component);h=g&&g.prototype;j.prototype.shouldComponentUpdate=function(k){__p&&__p();var l=this.props.editorState,m=k.editorState,n=l.getDirectionMap(),o=m.getDirectionMap();if(n!==o)return true;var p=l.getSelection().getHasFocus(),q=m.getSelection().getHasFocus();if(p!==q)return true;var r=m.getNativelyRenderedContent(),s=l.isInCompositionMode(),t=m.isInCompositionMode();if(l===m||r!==null&&m.getCurrentContent()===r||s&&t)return false;var u=l.getCurrentContent(),v=m.getCurrentContent(),w=l.getDecorator(),x=m.getDecorator();return s!==t||u!==v||w!==x||m.mustForceSelection()};j.prototype.render=function(){__p&&__p();var k=this.props,l=k.blockRenderMap,m=k.blockRendererFn,n=k.blockStyleFn,o=k.customStyleMap,p=k.customStyleFn,q=k.editorState,r=k.editorKey,s=k.textDirectionality,t=q.getCurrentContent(),u=q.getSelection(),v=q.mustForceSelection(),w=q.getDecorator(),x=c("nullthrows")(q.getDirectionMap()),y=t.getBlocksAsArray(),z=[],A=null,B=null;for(var C=0;C<y.length;C++){var D=y[C],E=D.getKey(),F=D.getType(),G=m(D),H=void 0,I=void 0,J=void 0;if(G){H=G.component;I=G.props;J=G.editable}var K=s?s:x.get(E),L=c("DraftOffsetKey").encode(E,0,0),M={contentState:t,block:D,blockProps:I,blockStyleFn:n,customStyleMap:o,customStyleFn:p,decorator:w,direction:K,forceSelection:v,key:E,offsetKey:L,selection:u,tree:q.getBlockTree(E)},N=l.get(F)||l.get("unstyled"),O=N.wrapper,P=N.element||l.get("unstyled").element,Q=D.getDepth(),R="";if(n)R=n(D);if(P==="li"){var S=B!==O||A===null||Q>A;R=c("joinClasses")(R,i(F,Q,S,K))}var T=H||c("DraftEditorBlock.react"),U={className:R,"data-block":true,"data-editor":r,"data-offset-key":L,key:E};if(J!==undefined)U=babelHelpers["extends"]({},U,{contentEditable:J,suppressContentEditableWarning:true});var V=c("React").createElement(P,U,c("React").createElement(T,M));z.push({block:V,wrapperTemplate:O,key:E,offsetKey:L});if(O)A=D.getDepth();else A=null;B=O}var W=[];for(var X=0;X<z.length;){var Y=z[X];if(Y.wrapperTemplate){var Z=[];do{Z.push(z[X].block);X++}while(X<z.length&&z[X].wrapperTemplate===Y.wrapperTemplate);var $=c("React").cloneElement(Y.wrapperTemplate,{key:Y.key+"-wrap","data-offset-key":Y.offsetKey},Z);W.push($)}else{W.push(Y.block);X++}}return c("React").createElement("div",{"data-contents":"true"},W)};function j(){g.apply(this,arguments)}f.exports=j}),null);
__d("DraftEditorDecoratedLeaves.react",["DraftOffsetKey","React","UnicodeBidi","UnicodeBidiDirection"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){var k=this.props,l=k.block,m=k.children,n=k.contentState,o=k.decorator,p=k.decoratorKey,q=k.direction,r=k.leafSet,s=k.text,t=l.getKey(),u=r.get("leaves"),v=o.getComponentForKey(p),w=o.getPropsForKey(p),x=c("DraftOffsetKey").encode(t,parseInt(p,10),0),y=s.slice(u.first().get("start"),u.last().get("end")),z=c("UnicodeBidiDirection").getHTMLDirIfDifferent(c("UnicodeBidi").getDirection(y),q);return c("React").createElement(v,babelHelpers["extends"]({},w,{contentState:n,decoratedText:y,dir:z,key:x,entityKey:l.getEntityAt(r.get("start")),offsetKey:x}),m)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("DraftEditorNode.react",["cx","DraftEditorDecoratedLeaves.react","DraftEditorLeaf.react","DraftOffsetKey","immutable","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("immutable").List;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){var m=this.props,n=m.block,o=m.contentState,p=m.customStyleFn,q=m.customStyleMap,r=m.decorator,s=m.direction,t=m.forceSelection,u=m.hasSelection,v=m.selection,w=m.tree,x=n.getKey(),y=n.getText(),z=w.size-1,A=this.props.children||w.map(function(B,C){var D=B.get("decoratorKey"),E=B.get("leaves"),F=E.size-1,G=E.map(function(H,I){var J=c("DraftOffsetKey").encode(x,C,I),K=H.get("start"),L=H.get("end");return c("React").createElement(c("DraftEditorLeaf.react"),{key:J,offsetKey:J,block:n,start:K,selection:u?v:null,forceSelection:t,text:y.slice(K,L),styleSet:n.getInlineStyleAt(K),customStyleMap:q,customStyleFn:p,isLast:D===z&&I===F})}).toArray();if(!D||!r)return G;return c("React").createElement(c("DraftEditorDecoratedLeaves.react"),{block:n,children:G,contentState:o,decorator:r,decoratorKey:D,direction:s,leafSet:B,text:y,key:C})}).toArray();return c("React").createElement("div",{"data-offset-key":c("DraftOffsetKey").encode(x,0,0),className:"_1mf"+(s==="LTR"?" _1mj":"")+(s==="RTL"?" _1mk":"")},A)};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("DraftEditorBlockNode.react",["invariant","DraftEditorNode.react","DraftOffsetKey","EditorState","immutable","React","ReactDOM","Scroll","Style","getElementPosition","getScrollPosition","getViewportDimensions"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=10,l=c("immutable").List,m=function m(t,u){return t.getAnchorKey()===u||t.getFocusKey()===u},n=function n(t,u){var v=t.getNextSiblingKey();return v?u.getBlockForKey(v).getType()===t.getType():false},o=function o(t,u,v){__p&&__p();var w=[];for(var x=v.reverse(),y=Array.isArray(x),z=0,x=y?x:x[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var A;if(y){if(z>=x.length)break;A=x[z++]}else{z=x.next();if(z.done)break;A=z.value}var B=A;if(B.type!==u)break;w.push(B)}v.splice(v.indexOf(w[0]),w.length+1);var C=w.reverse(),D=C[0].key;v.push(c("React").cloneElement(t,{key:D+"-wrap","data-offset-key":c("DraftOffsetKey").encode(D,0,0)},C));return v},p=function p(t,u){var v=u.get(t.getType())||u.get("unstyled"),w=v.wrapper,x=v.element||u.get("unstyled").element;return{Element:x,wrapperTemplate:w}},q=function q(t,u){var v=u(t);if(!v)return{};var w=v.component,x=v.props,y=v.editable;return{CustomComponent:w,customProps:x,customEditable:y}},r=function r(t,u,v,w,x){var y={"data-block":true,"data-editor":u,"data-offset-key":v,key:t.getKey()},z=w(t);if(z)y.className=z;if(x.customEditable!==undefined)y=babelHelpers["extends"]({},y,{contentEditable:x.customEditable,suppressContentEditableWarning:true});return y};i=babelHelpers.inherits(s,c("React").Component);j=i&&i.prototype;s.prototype.shouldComponentUpdate=function(t){var u=this.props,v=u.block,w=u.direction,x=u.tree,y=!v.getChildKeys().isEmpty(),z=v!==t.block||x!==t.tree||w!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection;return y||z};s.prototype.componentDidMount=function(){__p&&__p();var t=this.props.selection,u=t.getEndKey();if(!t.getHasFocus()||u!==this.props.block.getKey())return;var v=c("ReactDOM").findDOMNode(this),w=c("Style").getScrollParent(v),x=c("getScrollPosition")(w),y=void 0;if(w===window){var z=c("getElementPosition")(v),A=z.y+z.height,B=c("getViewportDimensions")().height;y=A-B;if(y>0)window.scrollTo(x.x,x.y+y+k)}else{v instanceof HTMLElement||h(0);var C=v.offsetHeight+v.offsetTop,D=w.offsetHeight+x.y;y=C-D;if(y>0)c("Scroll").setTop(w,c("Scroll").getTop(w)+y+k)}};s.prototype.render=function(){__p&&__p();var t=this.props,u=t.block,v=t.blockRenderMap,w=t.blockRendererFn,x=t.blockStyleFn,y=t.contentState,z=t.decorator,A=t.editorKey,B=t.editorState,C=t.customStyleFn,D=t.customStyleMap,E=t.direction,F=t.forceSelection,G=t.selection,H=t.tree,I=null;if(u.children.size)I=u.children.reduce(function(P,Q){var K=c("DraftOffsetKey").encode(Q,0,0),R=y.getBlockForKey(Q),S=q(R,w),T=S.CustomComponent||s,U=p(R,v),N=U.Element,V=U.wrapperTemplate,O=r(R,A,K,x,S),W=babelHelpers["extends"]({},this.props,{tree:B.getBlockTree(Q),blockProps:S.customProps,offsetKey:K,block:R});P.push(c("React").createElement(N,O,c("React").createElement(T,W)));if(!V||n(R,y))return P;o(V,N,P);return P}.bind(this),[]);var J=u.getKey(),K=c("DraftOffsetKey").encode(J,0,0),L=c("React").createElement(c("DraftEditorNode.react"),{block:u,children:I,contentState:y,customStyleFn:C,customStyleMap:D,decorator:z,direction:E,forceSelection:F,hasSelection:m(G,J),selection:G,tree:H});if(u.getParentKey())return L;var M=p(u,v),N=M.Element,O=r(u,A,K,x,q(u,w));return c("React").createElement(N,O,L)};function s(){i.apply(this,arguments)}f.exports=s}),null);
__d("DraftEditorContentsExperimental.react",["DraftEditorBlockNode.react","DraftOffsetKey","EditorState","React","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.shouldComponentUpdate=function(k){__p&&__p();var l=this.props.editorState,m=k.editorState,n=l.getDirectionMap(),o=m.getDirectionMap();if(n!==o)return true;var p=l.getSelection().getHasFocus(),q=m.getSelection().getHasFocus();if(p!==q)return true;var r=m.getNativelyRenderedContent(),s=l.isInCompositionMode(),t=m.isInCompositionMode();if(l===m||r!==null&&m.getCurrentContent()===r||s&&t)return false;var u=l.getCurrentContent(),v=m.getCurrentContent(),w=l.getDecorator(),x=m.getDecorator();return s!==t||u!==v||w!==x||m.mustForceSelection()};j.prototype.render=function(){__p&&__p();var k=this.props,l=k.blockRenderMap,m=k.blockRendererFn,n=k.blockStyleFn,o=k.customStyleMap,p=k.customStyleFn,q=k.editorState,r=k.editorKey,s=k.textDirectionality,t=q.getCurrentContent(),u=q.getSelection(),v=q.mustForceSelection(),w=q.getDecorator(),x=c("nullthrows")(q.getDirectionMap()),y=t.getBlocksAsArray(),z=y[0],A=[],B=z;while(B){var C=B.getKey(),D={blockRenderMap:l,blockRendererFn:m,blockStyleFn:n,contentState:t,customStyleFn:p,customStyleMap:o,decorator:w,editorKey:r,editorState:q,forceSelection:v,selection:u,block:B,direction:s?s:x.get(C),tree:q.getBlockTree(C)},E=l.get(B.getType())||l.get("unstyled"),F=E.wrapper;A.push({block:c("React").createElement(c("DraftEditorBlockNode.react"),babelHelpers["extends"]({key:C},D)),wrapperTemplate:F,key:C,offsetKey:c("DraftOffsetKey").encode(C,0,0)});var G=B.getNextSiblingKey();B=G?t.getBlockForKey(G):null}var H=[];for(var I=0;I<A.length;){var J=A[I];if(J.wrapperTemplate){var K=[];do{K.push(A[I].block);I++}while(I<A.length&&A[I].wrapperTemplate===J.wrapperTemplate);var L=c("React").cloneElement(J.wrapperTemplate,{key:J.key+"-wrap","data-offset-key":J.offsetKey},K);H.push(L)}else{H.push(J.block);I++}}return c("React").createElement("div",{"data-contents":"true"},H)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("DraftEditorContents.react",["gkx","DraftEditorContentsExperimental.react","DraftEditorContents-core.react"],(function a(b,c,d,e,f,g){"use strict";var h=c("gkx")("AT7I-kBaiZBk-5ySRgJaDBW6tSXkDwvlqxCLLVy7xjKFQh4OpQOjZpy_bJOblZZDQOjyMyX8JeUF5aALSjx2ACRN");f.exports=h?c("DraftEditorContentsExperimental.react"):c("DraftEditorContents-core.react")}),null);
__d("DraftODS",["cx","BanzaiODS","CurrentUser","fbjs/lib/CSSCore"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("CurrentUser").isEmployee()?".employee":"",j={init:function k(){document.addEventListener("input",function(l){if(l.target.nodeType===1&&c("fbjs/lib/CSSCore").hasClass(l.target,"_5rpu"))c("BanzaiODS").bumpEntityKey("draft_js","input_events"+i)})}};f.exports=j}),null);
__d("DefaultDraftBlockRenderMap",["cx","immutable","React"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("immutable").Map,j=c("React").createElement("ul",{className:"_1bv0"}),k=c("React").createElement("ol",{className:"_1bv1"}),l=c("React").createElement("pre",{className:"_1bv2"}),m=i({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:j},"ordered-list-item":{element:"li",wrapper:k},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:l},unstyled:{element:"div",aliasedElements:["p"]}});f.exports=m}),null);
__d("DefaultDraftInlineStyle",[],(function a(b,c,d,e,f,g){"use strict";f.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}}),null);
__d("getEntityKeyForSelection",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(j,k){__p&&__p();var l;if(k.isCollapsed()){var m=k.getAnchorKey(),n=k.getAnchorOffset();if(n>0){l=j.getBlockForKey(m).getEntityAt(n-1);if(l!==j.getBlockForKey(m).getEntityAt(n))return null;return i(j.getEntityMap(),l)}return null}var o=k.getStartKey(),p=k.getStartOffset(),q=j.getBlockForKey(o);l=p===q.getLength()?null:q.getEntityAt(p);return i(j.getEntityMap(),l)}function i(j,k){if(k){var l=j.__get(k);return l.getMutability()==="MUTABLE"?k:null}return null}f.exports=h}),null);
__d("isEventHandled",[],(function a(b,c,d,e,f,g){"use strict";function h(i){return i==="handled"||i===true}f.exports=h}),null);
__d("isSelectionAtLeafStart",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){__p&&__p();var j=i.getSelection(),k=j.getAnchorKey(),l=i.getBlockTree(k),m=j.getStartOffset(),n=false;l.some(function(o){__p&&__p();if(m===o.get("start")){n=true;return true}if(m<o.get("end"))return o.get("leaves").some(function(p){var q=p.get("start");if(m===q){n=true;return true}return false});return false});return n}f.exports=h}),null);
__d("DraftEditorCompositionHandler",["DraftModifier","EditorState","Keys","getEntityKeyForSelection","gkx","isEventHandled","isSelectionAtLeafStart"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=20,i=false,j=false,k="",l={onBeforeInput:function m(n,o){k=(k||"")+o.data},onCompositionStart:function m(n){j=true},onCompositionEnd:function m(n){i=false;j=false;setTimeout(function(){if(!i)l.resolveComposition(n)},h)},onKeyDown:function m(n,o){if(!j){l.resolveComposition(n);n._onKeyDown(o);return}if(o.which===c("Keys").RIGHT||o.which===c("Keys").LEFT)o.preventDefault()},onKeyPress:function m(n,o){if(o.which===c("Keys").RETURN)o.preventDefault()},resolveComposition:function m(n){__p&&__p();if(j)return;i=true;var o=k;k="";var p=c("EditorState").set(n._latestEditorState,{inCompositionMode:false}),q=p.getCurrentInlineStyle(),r=c("getEntityKeyForSelection")(p.getCurrentContent(),p.getSelection()),s=!o||c("isSelectionAtLeafStart")(p)||q.size>0||r!==null;if(s)n.restoreEditorDOM();n.exitCurrentMode();if(o){if(c("gkx")("AT4jBaTBzRYWAA8oybsDztxwiWb9Je6Ni1Zs7j6Be7i903PJcYxWjBm6VmCRmSERiUtQwjG1NtMNd-IjzhQ-KM-ZjR33VQC_LUaQqKcsVkKJAw")&&n.props.handleBeforeInput&&c("isEventHandled")(n.props.handleBeforeInput(o,p)))return;var t=c("DraftModifier").replaceText(p.getCurrentContent(),p.getSelection(),o,q,r);n.update(c("EditorState").push(p,t,"insert-characters"));return}if(s)n.update(c("EditorState").set(p,{nativelyRenderedContent:null,forceSelection:true}))}};f.exports=l}),null);
__d("getSelectionOffsetKeyForNode",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){__p&&__p();if(i instanceof Element){var j=i.getAttribute("data-offset-key");if(j)return j;for(var k=0;k<i.childNodes.length;k++){var l=h(i.childNodes[k]);if(l)return l}}return null}f.exports=h}),null);
__d("findAncestorOffsetKey",["getSelectionOffsetKeyForNode"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){var j=i;while(j&&j!==document.documentElement){var k=c("getSelectionOffsetKeyForNode")(j);if(k!=null)return k;j=j.parentNode}return null}f.exports=h}),null);
__d("getTextContentFromFiles",["invariant"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=/\.textClipping$/,j={"text/plain":true,"text/html":true,"text/rtf":true},k=5e3;function l(n,o){var p=0,q=[];n.forEach(function(r){m(r,function(s){p++;s&&q.push(s.slice(0,k));if(p==n.length)o(q.join("\r"))})})}function m(n,o){__p&&__p();if(!b.FileReader||n.type&&!(n.type in j)){o("");return}if(n.type===""){var p="";if(i.test(n.name))p=n.name.replace(i,"");o(p);return}var q=new FileReader();q.onload=function(){var r=q.result;typeof r==="string"||h(0);o(r)};q.onerror=function(){o("")};q.readAsText(n)}f.exports=l}),null);
__d("getUpdatedSelectionState",["DraftOffsetKey","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j,k,l,m){__p&&__p();var n=c("nullthrows")(i.getSelection()),o=c("DraftOffsetKey").decode(j),p=o.blockKey,q=i.getBlockTree(p).getIn([o.decoratorKey,"leaves",o.leafKey]),r=c("DraftOffsetKey").decode(l),s=r.blockKey,t=i.getBlockTree(s).getIn([r.decoratorKey,"leaves",r.leafKey]),u=q.get("start"),v=t.get("start"),w=q?u+k:null,x=t?v+m:null,y=n.getAnchorKey()===p&&n.getAnchorOffset()===w&&n.getFocusKey()===s&&n.getFocusOffset()===x;if(y)return n;var z=false;if(p===s){var A=q.get("end"),B=t.get("end");if(v===u&&B===A)z=m<k;else z=v<u}else{var C=i.getCurrentContent().getBlockMap().keySeq().skipUntil(function(D){return D===p||D===s}).first();z=C===s}return n.merge({anchorKey:p,anchorOffset:w,focusKey:s,focusOffset:x,isBackward:z})}f.exports=h}),null);
__d("DraftEditorDragHandler",["DataTransfer","DraftModifier","EditorState","findAncestorOffsetKey","getTextContentFromFiles","getUpdatedSelectionState","isEventHandled","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(event,l){__p&&__p();var m=null,n=null;if(typeof document.caretRangeFromPoint==="function"){var o=document.caretRangeFromPoint(event.x,event.y);m=o.startContainer;n=o.startOffset}else if(event.rangeParent){m=event.rangeParent;n=event.rangeOffset}else return null;m=c("nullthrows")(m);n=c("nullthrows")(n);var p=c("nullthrows")(c("findAncestorOffsetKey")(m));return c("getUpdatedSelectionState")(l,p,n,p,n)}var i={onDragEnd:function l(m){m.exitCurrentMode()},onDrop:function l(m,n){__p&&__p();var o=new(c("DataTransfer"))(n.nativeEvent.dataTransfer),p=m._latestEditorState,q=h(n.nativeEvent,p);n.preventDefault();m.exitCurrentMode();if(q==null)return;var r=o.getFiles();if(r.length>0){if(m.props.handleDroppedFiles&&c("isEventHandled")(m.props.handleDroppedFiles(q,r)))return;c("getTextContentFromFiles")(r,function(t){t&&m.update(k(p,q,t))});return}var s=m._internalDrag?"internal":"external";if(m.props.handleDrop&&c("isEventHandled")(m.props.handleDrop(q,o,s)))return;if(m._internalDrag){m.update(j(p,q));return}m.update(k(p,q,o.getText()))}};function j(l,m){var n=c("DraftModifier").moveText(l.getCurrentContent(),l.getSelection(),m);return c("EditorState").push(l,n,"insert-fragment")}function k(l,m,n){var o=c("DraftModifier").insertText(l.getCurrentContent(),m,n,l.getCurrentInlineStyle());return c("EditorState").push(l,o,"insert-fragment")}f.exports=i}),null);
__d("editOnBeforeInput",["BlockTree","DraftModifier","EditorState","UserAgent","getEntityKeyForSelection","isEventHandled","isSelectionAtLeafStart","nullthrows","setImmediate"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h="'",i="/",j=c("UserAgent").isBrowser("Firefox");function k(n){return j&&(n==h||n==i)}function l(n,o,p,q){var r=c("DraftModifier").replaceText(n.getCurrentContent(),n.getSelection(),o,p,q);return c("EditorState").push(n,r,"insert-characters")}function m(n,o){__p&&__p();if(n._pendingStateFromBeforeInput!==undefined){n.update(n._pendingStateFromBeforeInput);n._pendingStateFromBeforeInput=undefined}var p=n._latestEditorState,q=o.data;if(!q)return;if(n.props.handleBeforeInput&&c("isEventHandled")(n.props.handleBeforeInput(q,p))){o.preventDefault();return}var r=p.getSelection(),s=r.getStartOffset(),t=r.getEndOffset(),u=r.getAnchorKey();if(!r.isCollapsed()){o.preventDefault();var v=p.getCurrentContent().getPlainText().slice(s,t);if(q===v)n.update(c("EditorState").forceSelection(p,r.merge({focusOffset:t})));else n.update(l(p,q,p.getCurrentInlineStyle(),c("getEntityKeyForSelection")(p.getCurrentContent(),p.getSelection())));return}var w=l(p,q,p.getCurrentInlineStyle(),c("getEntityKeyForSelection")(p.getCurrentContent(),p.getSelection())),x=false;if(!x)x=c("isSelectionAtLeafStart")(n._latestCommittedEditorState);if(!x){var y=b.getSelection();if(y.anchorNode&&y.anchorNode.nodeType===Node.TEXT_NODE){var z=y.anchorNode.parentNode;x=z.nodeName==="SPAN"&&z.firstChild.nodeType===Node.TEXT_NODE&&z.firstChild.nodeValue.indexOf("\t")!==-1}}if(!x){var A=c("BlockTree").getFingerprint(p.getBlockTree(u)),B=c("BlockTree").getFingerprint(w.getBlockTree(u));x=A!==B}if(!x)x=k(q);if(!x)x=c("nullthrows")(w.getDirectionMap()).get(u)!==c("nullthrows")(p.getDirectionMap()).get(u);if(x){o.preventDefault();n.update(w);return}w=c("EditorState").set(w,{nativelyRenderedContent:w.getCurrentContent()});n._pendingStateFromBeforeInput=w;c("setImmediate")(function(){if(n._pendingStateFromBeforeInput!==undefined){n.update(n._pendingStateFromBeforeInput);n._pendingStateFromBeforeInput=undefined}})}f.exports=m}),null);
__d("editOnBlur",["EditorState","containsNode","getActiveElement"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j){__p&&__p();if(c("getActiveElement")()===document.body){var k=b.getSelection(),l=i.editor;if(k.rangeCount===1&&c("containsNode")(l,k.anchorNode)&&c("containsNode")(l,k.focusNode))k.removeAllRanges()}var m=i._latestEditorState,n=m.getSelection();if(!n.getHasFocus())return;var o=n.set("hasFocus",false);i.props.onBlur&&i.props.onBlur(j);i.update(c("EditorState").acceptSelection(m,o))}f.exports=h}),null);
__d("editOnCompositionStart",["EditorState"],(function a(b,c,d,e,f,g){"use strict";function h(i,j){i.setMode("composite");i.update(c("EditorState").set(i._latestEditorState,{inCompositionMode:true}));i._onCompositionStart(j)}f.exports=h}),null);
__d("getFragmentFromSelection",["getContentStateFragment"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j=i.getSelection();if(j.isCollapsed())return null;return c("getContentStateFragment")(i.getCurrentContent(),j)}f.exports=h}),null);
__d("editOnCopy",["getFragmentFromSelection"],(function a(b,c,d,e,f,g){"use strict";function h(i,j){var k=i._latestEditorState,l=k.getSelection();if(l.isCollapsed()){j.preventDefault();return}i.setClipboard(c("getFragmentFromSelection")(i._latestEditorState))}f.exports=h}),null);
__d("editOnCut",["DraftModifier","EditorState","Style","getFragmentFromSelection","getScrollPosition"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(j,k){__p&&__p();var l=j._latestEditorState,m=l.getSelection(),n=k.target,o=void 0;if(m.isCollapsed()){k.preventDefault();return}if(n instanceof Node)o=c("getScrollPosition")(c("Style").getScrollParent(n));var p=c("getFragmentFromSelection")(l);j.setClipboard(p);j.setMode("cut");setTimeout(function(){j.restoreEditorDOM(o);j.exitCurrentMode();j.update(i(l))},0)}function i(j){var k=c("DraftModifier").removeRange(j.getCurrentContent(),j.getSelection(),"forward");return c("EditorState").push(j,k,"remove-range")}f.exports=h}),null);
__d("editOnDragOver",[],(function a(b,c,d,e,f,g){"use strict";function h(i,j){i._internalDrag=false;i.setMode("drag");j.preventDefault()}f.exports=h}),null);
__d("editOnDragStart",[],(function a(b,c,d,e,f,g){"use strict";function h(i){i._internalDrag=true;i.setMode("drag")}f.exports=h}),null);
__d("editOnFocus",["EditorState","UserAgent"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j){var k=i._latestEditorState,l=k.getSelection();if(l.getHasFocus())return;var m=l.set("hasFocus",true);i.props.onFocus&&i.props.onFocus(j);if(c("UserAgent").isBrowser("Chrome < 60.0.3081.0"))i.update(c("EditorState").forceSelection(k,m));else i.update(c("EditorState").acceptSelection(k,m))}f.exports=h}),null);
__d("editOnInput",["DraftModifier","DraftOffsetKey","EditorState","UserAgent","findAncestorOffsetKey","gkx","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("UserAgent").isEngine("Gecko"),i="\n\n";function j(k){__p&&__p();if(k._pendingStateFromBeforeInput!==undefined){k.update(k._pendingStateFromBeforeInput);k._pendingStateFromBeforeInput=undefined}var l=b.getSelection(),m=l.anchorNode,n=l.isCollapsed,o=m.nodeType!==Node.TEXT_NODE,p=m.nodeType!==Node.TEXT_NODE&&m.nodeType!==Node.ELEMENT_NODE;if(c("gkx")("AT5-KQB0Xj_CDLWUIMILzoGYzlpu0hwpg4CPaxfzm51RfcOYLYkvJCug0it-P2OAOdRH1lNv4lP4oODRvdq9nXftShx8XbKClVLq-dwF7Ip31Q")){if(o)return}else if(p)return;if(m.nodeType===Node.TEXT_NODE&&(m.previousSibling!==null||m.nextSibling!==null)){var q=m.parentNode;m.nodeValue=q.textContent;for(var r=q.firstChild;r!==null;r=r.nextSibling)if(r!==m)q.removeChild(r)}var s=m.textContent,t=k._latestEditorState,u=c("nullthrows")(c("findAncestorOffsetKey")(m)),v=c("DraftOffsetKey").decode(u),w=v.blockKey,x=v.decoratorKey,y=v.leafKey,z=t.getBlockTree(w).getIn([x,"leaves",y]),A=z.start,B=z.end,C=t.getCurrentContent(),D=C.getBlockForKey(w),E=D.getText().slice(A,B);if(s.endsWith(i))s=s.slice(0,-1);if(s===E)return;var F=t.getSelection(),G=F.merge({anchorOffset:A,focusOffset:B,isBackward:false}),H=D.getEntityAt(A),I=H&&C.getEntity(H),J=I&&I.getMutability(),K=J==="MUTABLE",L=K?"spellcheck-change":"apply-entity",M=c("DraftModifier").replaceText(C,G,s,D.getInlineStyleAt(A),K?D.getEntityAt(A):null),N,O,P,Q;if(h){N=l.anchorOffset;O=l.focusOffset;P=A+Math.min(N,O);Q=P+Math.abs(N-O);N=P;O=Q}else{var R=s.length-E.length;P=F.getStartOffset();Q=F.getEndOffset();N=n?Q+R:P;O=Q+R}var S=M.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:F.merge({anchorOffset:N,focusOffset:O})});k.update(c("EditorState").push(t,S,L))}f.exports=j}),null);
__d("KeyBindingUtil",["UserAgent"],(function a(b,c,d,e,f,g){"use strict";var h=c("UserAgent").isPlatform("Mac OS X"),i={isCtrlKeyCommand:function j(k){return!!k.ctrlKey&&!k.altKey},isOptionKeyCommand:function j(k){return h&&k.altKey},hasCommandModifier:function j(k){return h?!!k.metaKey&&!k.altKey:i.isCtrlKeyCommand(k)}};f.exports=i}),null);
__d("SecondaryClipboard",["DraftModifier","EditorState","getContentStateFragment","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=null,i={cut:function j(k){__p&&__p();var l=k.getCurrentContent(),m=k.getSelection(),n=null;if(m.isCollapsed()){var o=m.getAnchorKey(),p=l.getBlockForKey(o).getLength();if(p===m.getAnchorOffset())return k;n=m.set("focusOffset",p)}else n=m;n=c("nullthrows")(n);h=c("getContentStateFragment")(l,n);var q=c("DraftModifier").removeRange(l,n,"forward");if(q===l)return k;return c("EditorState").push(k,q,"remove-range")},paste:function j(k){if(!h)return k;var l=c("DraftModifier").replaceWithFragment(k.getCurrentContent(),k.getSelection(),h);return c("EditorState").push(k,l,"insert-fragment")}};f.exports=i}),null);
__d("getRangeClientRects",["invariant","UserAgent"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("UserAgent").isBrowser("Chrome");function j(l){__p&&__p();var m=l.cloneRange(),n=[];for(var o=l.endContainer;o!=null;o=o.parentNode){var p=o===l.commonAncestorContainer;if(p)m.setStart(l.startContainer,l.startOffset);else m.setStart(m.endContainer,0);var q=Array.from(m.getClientRects());n.push(q);if(p){var r;n.reverse();return(r=[]).concat.apply(r,n)}m.setEndBefore(o)}h(0)}var k=i?j:function(l){return Array.from(l.getClientRects())};f.exports=k}),null);
__d("expandRangeToStartOfLine",["invariant","UnicodeUtils","getRangeClientRects"],(function a(b,c,d,e,f,g,h){__p&&__p();function i(m){__p&&__p();var n=getComputedStyle(m),o=document.createElement("div");o.style.fontFamily=n.fontFamily;o.style.fontSize=n.fontSize;o.style.fontStyle=n.fontStyle;o.style.fontWeight=n.fontWeight;o.style.lineHeight=n.lineHeight;o.style.position="absolute";o.textContent="M";var p=document.body;p||h(0);p.appendChild(o);var q=o.getBoundingClientRect();p.removeChild(o);return q.height}function j(m,n){__p&&__p();var o=Infinity,p=Infinity,q=-Infinity,r=-Infinity;for(var s=0;s<m.length;s++){var t=m[s];if(t.width===0||t.width===1)continue;o=Math.min(o,t.top);p=Math.min(p,t.bottom);q=Math.max(q,t.top);r=Math.max(r,t.bottom)}return q<=p&&q-o<n&&r-p<n}function k(m){switch(m.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return m.length;default:return m.childNodes.length}}function l(m){__p&&__p();m.collapsed||h(0);m=m.cloneRange();var n=m.startContainer;if(n.nodeType!==1)n=n.parentNode;var o=i(n),p=m.endContainer,q=m.endOffset;m.setStart(m.startContainer,0);while(j(c("getRangeClientRects")(m),o)){p=m.startContainer;q=m.startOffset;p.parentNode||h(0);m.setStartBefore(p);if(p.nodeType===1&&getComputedStyle(p).display!=="inline")break}var r=p,s=q-1;do{var t=r.nodeValue;for(var u=s;u>=0;u--){if(t!=null&&u>0&&c("UnicodeUtils").isSurrogatePair(t,u-1))continue;m.setStart(r,u);if(j(c("getRangeClientRects")(m),o)){p=r;q=u}else break}if(u===-1||r.childNodes.length===0)break;r=r.childNodes[u];s=k(r)}while(true);m.setStart(p,q);return m}f.exports=l}),null);
__d("getDraftEditorSelectionWithNodes",["invariant","findAncestorOffsetKey","getSelectionOffsetKeyForNode","getUpdatedSelectionState","nullthrows"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(n,o,p,q,r,s){__p&&__p();var t=p.nodeType===Node.TEXT_NODE,u=r.nodeType===Node.TEXT_NODE;if(t&&u)return{selectionState:c("getUpdatedSelectionState")(n,c("nullthrows")(c("findAncestorOffsetKey")(p)),q,c("nullthrows")(c("findAncestorOffsetKey")(r)),s),needsRecovery:false};var v=null,w=null,x=true;if(t){v={key:c("nullthrows")(c("findAncestorOffsetKey")(p)),offset:q};w=l(o,r,s)}else if(u){w={key:c("nullthrows")(c("findAncestorOffsetKey")(r)),offset:s};v=l(o,p,q)}else{v=l(o,p,q);w=l(o,r,s);if(p===r&&q===s)x=!!p.firstChild&&p.firstChild.nodeName!=="BR"}return{selectionState:c("getUpdatedSelectionState")(n,v.key,v.offset,w.key,w.offset),needsRecovery:x}}function j(n){while(n.firstChild&&(n.firstChild instanceof Element&&n.firstChild.getAttribute("data-blocks")==="true"||c("getSelectionOffsetKeyForNode")(n.firstChild)))n=n.firstChild;return n}function k(n){while(n.lastChild&&(n.lastChild instanceof Element&&n.lastChild.getAttribute("data-blocks")==="true"||c("getSelectionOffsetKeyForNode")(n.lastChild)))n=n.lastChild;return n}function l(n,o,p){__p&&__p();var q=o,r=c("findAncestorOffsetKey")(q);r!=null||n&&(n===q||n.firstChild===q)||h(0);if(n===q){q=q.firstChild;q instanceof Element&&q.getAttribute("data-contents")==="true"||h(0);if(p>0)p=q.childNodes.length}if(p===0){var s=null;if(r!=null)s=r;else{var t=j(q);s=c("nullthrows")(c("getSelectionOffsetKeyForNode")(t))}return{key:s,offset:0}}var u=q.childNodes[p-1],v=null,w=null;if(!c("getSelectionOffsetKeyForNode")(u)){v=c("nullthrows")(r);w=m(u)}else{var x=k(u);v=c("nullthrows")(c("getSelectionOffsetKeyForNode")(x));w=m(x)}return{key:v,offset:w}}function m(n){var o=n.textContent;return o==="\n"?0:o.length}f.exports=i}),null);
__d("moveSelectionBackward",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j){__p&&__p();var k=i.getSelection(),l=i.getCurrentContent(),m=k.getStartKey(),n=k.getStartOffset(),o=m,p=0;if(j>n){var q=l.getKeyBefore(m);if(q==null)o=m;else{o=q;var r=l.getBlockForKey(q);p=r.getText().length}}else p=n-j;return k.merge({focusKey:o,focusOffset:p,isBackward:true})}f.exports=h}),null);
__d("removeTextWithStrategy",["DraftModifier"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j,k){__p&&__p();var l=i.getSelection(),m=i.getCurrentContent(),n=l;if(l.isCollapsed()){if(k==="forward"){if(i.isSelectionAtEndOfContent())return m}else if(i.isSelectionAtStartOfContent())return m;n=j(i);if(n===l)return m}return c("DraftModifier").removeRange(m,n,k)}f.exports=h}),null);
__d("keyCommandBackspaceToStartOfLine",["EditorState","expandRangeToStartOfLine","getDraftEditorSelectionWithNodes","moveSelectionBackward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){__p&&__p();var j=c("removeTextWithStrategy")(i,function(k){var l=k.getSelection();if(l.isCollapsed()&&l.getAnchorOffset()===0)return c("moveSelectionBackward")(k,1);var m=b.getSelection(),n=m.getRangeAt(0);n=c("expandRangeToStartOfLine")(n);return c("getDraftEditorSelectionWithNodes")(k,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");if(j===i.getCurrentContent())return i;return c("EditorState").push(i,j,"remove-range")}f.exports=h}),null);
__d("DraftRemovableWord",["TokenizeUtil"],(function a(b,c,d,e,f,g){"use strict";var h=c("TokenizeUtil").getPunctuation(),i="['\u2018\u2019]",j="\\s|(?![_])"+h,k="^(?:"+j+")*(?:"+i+"|(?!"+j+").)*(?:(?!"+j+").)",l=new RegExp(k),m="(?:(?!"+j+").)(?:"+i+"|(?!"+j+").)*(?:"+j+")*$",n=new RegExp(m);function o(q,r){var s=r?n.exec(q):l.exec(q);return s?s[0]:q}var p={getBackward:function q(r){return o(r,true)},getForward:function q(r){return o(r,false)}};f.exports=p}),null);
__d("keyCommandBackspaceWord",["DraftRemovableWord","EditorState","moveSelectionBackward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){var j=c("removeTextWithStrategy")(i,function(k){var l=k.getSelection(),m=l.getStartOffset();if(m===0)return c("moveSelectionBackward")(k,1);var n=l.getStartKey(),o=k.getCurrentContent(),p=o.getBlockForKey(n).getText().slice(0,m),q=c("DraftRemovableWord").getBackward(p);return c("moveSelectionBackward")(k,q.length||1)},"backward");if(j===i.getCurrentContent())return i;return c("EditorState").push(i,j,"remove-range")}f.exports=h}),null);
__d("moveSelectionForward",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j){var k=i.getSelection(),l=k.getStartKey(),m=k.getStartOffset(),n=i.getCurrentContent(),o=l,p,q=n.getBlockForKey(l);if(j>q.getText().length-m){o=n.getKeyAfter(l);p=0}else p=m+j;return k.merge({focusKey:o,focusOffset:p})}f.exports=h}),null);
__d("keyCommandDeleteWord",["DraftRemovableWord","EditorState","moveSelectionForward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j=c("removeTextWithStrategy")(i,function(k){var l=k.getSelection(),m=l.getStartOffset(),n=l.getStartKey(),o=k.getCurrentContent(),p=o.getBlockForKey(n).getText().slice(m),q=c("DraftRemovableWord").getForward(p);return c("moveSelectionForward")(k,q.length||1)},"forward");if(j===i.getCurrentContent())return i;return c("EditorState").push(i,j,"remove-range")}f.exports=h}),null);
__d("keyCommandInsertNewline",["DraftModifier","EditorState"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j=c("DraftModifier").splitBlock(i.getCurrentContent(),i.getSelection());return c("EditorState").push(i,j,"split-block")}f.exports=h}),null);
__d("keyCommandMoveSelectionToEndOfBlock",["EditorState"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j=i.getSelection(),k=j.getEndKey(),l=i.getCurrentContent(),m=l.getBlockForKey(k).getLength();return c("EditorState").set(i,{selection:j.merge({anchorKey:k,anchorOffset:m,focusKey:k,focusOffset:m,isBackward:false}),forceSelection:true})}f.exports=h}),null);
__d("keyCommandMoveSelectionToStartOfBlock",["EditorState"],(function a(b,c,d,e,f,g){"use strict";function h(i){var j=i.getSelection(),k=j.getStartKey();return c("EditorState").set(i,{selection:j.merge({anchorKey:k,anchorOffset:0,focusKey:k,focusOffset:0,isBackward:false}),forceSelection:true})}f.exports=h}),null);
__d("keyCommandPlainBackspace",["EditorState","UnicodeUtils","moveSelectionBackward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){var j=c("removeTextWithStrategy")(i,function(l){var k=l.getSelection(),m=l.getCurrentContent(),n=k.getAnchorKey(),o=k.getAnchorOffset(),p=m.getBlockForKey(n).getText()[o-1];return c("moveSelectionBackward")(l,p?c("UnicodeUtils").getUTF16Length(p,0):1)},"backward");if(j===i.getCurrentContent())return i;var k=i.getSelection();return c("EditorState").push(i,j.set("selectionBefore",k),k.isCollapsed()?"backspace-character":"remove-range")}f.exports=h}),null);
__d("keyCommandPlainDelete",["EditorState","UnicodeUtils","moveSelectionForward","removeTextWithStrategy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){var j=c("removeTextWithStrategy")(i,function(l){var k=l.getSelection(),m=l.getCurrentContent(),n=k.getAnchorKey(),o=k.getAnchorOffset(),p=m.getBlockForKey(n).getText()[o];return c("moveSelectionForward")(l,p?c("UnicodeUtils").getUTF16Length(p,0):1)},"forward");if(j===i.getCurrentContent())return i;var k=i.getSelection();return c("EditorState").push(i,j.set("selectionBefore",k),k.isCollapsed()?"delete-character":"remove-range")}f.exports=h}),null);
__d("keyCommandTransposeCharacters",["DraftModifier","EditorState","getContentStateFragment"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i){__p&&__p();var j=i.getSelection();if(!j.isCollapsed())return i;var k=j.getAnchorOffset();if(k===0)return i;var l=j.getAnchorKey(),m=i.getCurrentContent(),n=m.getBlockForKey(l),o=n.getLength();if(o<=1)return i;var p,q;if(k===o){p=j.set("anchorOffset",k-1);q=j}else{p=j.set("focusOffset",k+1);q=p.set("anchorOffset",k+1)}var r=c("getContentStateFragment")(m,p),s=c("DraftModifier").removeRange(m,p,"backward"),t=s.getSelectionAfter(),u=t.getAnchorOffset()-1,v=t.merge({anchorOffset:u,focusOffset:u}),w=c("DraftModifier").replaceWithFragment(s,v,r),x=c("EditorState").push(i,w,"insert-fragment");return c("EditorState").acceptSelection(x,q)}f.exports=h}),null);
__d("keyCommandUndo",["EditorState"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j,k){__p&&__p();var l=c("EditorState").undo(j);if(j.getLastChangeType()==="spellcheck-change"){var m=l.getCurrentContent();k(c("EditorState").set(l,{nativelyRenderedContent:m}));return}i.preventDefault();if(!j.getNativelyRenderedContent()){k(l);return}k(c("EditorState").set(j,{nativelyRenderedContent:null}));setTimeout(function(){k(l)},0)}f.exports=h}),null);
__d("editOnKeyDown",["DraftModifier","EditorState","KeyBindingUtil","Keys","SecondaryClipboard","UserAgent","isEventHandled","keyCommandBackspaceToStartOfLine","keyCommandBackspaceWord","keyCommandDeleteWord","keyCommandInsertNewline","keyCommandMoveSelectionToEndOfBlock","keyCommandMoveSelectionToStartOfBlock","keyCommandPlainBackspace","keyCommandPlainDelete","keyCommandTransposeCharacters","keyCommandUndo"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("KeyBindingUtil").isOptionKeyCommand,i=c("UserAgent").isBrowser("Chrome");function j(l,m){__p&&__p();switch(l){case"redo":return c("EditorState").redo(m);case"delete":return c("keyCommandPlainDelete")(m);case"delete-word":return c("keyCommandDeleteWord")(m);case"backspace":return c("keyCommandPlainBackspace")(m);case"backspace-word":return c("keyCommandBackspaceWord")(m);case"backspace-to-start-of-line":return c("keyCommandBackspaceToStartOfLine")(m);case"split-block":return c("keyCommandInsertNewline")(m);case"transpose-characters":return c("keyCommandTransposeCharacters")(m);case"move-selection-to-start-of-block":return c("keyCommandMoveSelectionToStartOfBlock")(m);case"move-selection-to-end-of-block":return c("keyCommandMoveSelectionToEndOfBlock")(m);case"secondary-cut":return c("SecondaryClipboard").cut(m);case"secondary-paste":return c("SecondaryClipboard").paste(m);default:return m}}function k(l,m){__p&&__p();var n=m.which,o=l._latestEditorState;function p(t){var u=l.props[t];if(u){u(m);return true}else return false}switch(n){case c("Keys").RETURN:m.preventDefault();if(l.props.handleReturn&&c("isEventHandled")(l.props.handleReturn(m,o)))return;break;case c("Keys").ESC:m.preventDefault();if(p("onEscape"))return;break;case c("Keys").TAB:if(p("onTab"))return;break;case c("Keys").UP:if(p("onUpArrow"))return;break;case c("Keys").RIGHT:if(p("onRightArrow"))return;break;case c("Keys").DOWN:if(p("onDownArrow"))return;break;case c("Keys").LEFT:if(p("onLeftArrow"))return;break;case c("Keys").SPACE:if(i&&h(m)){m.preventDefault();var q=c("DraftModifier").replaceText(o.getCurrentContent(),o.getSelection(),"\xa0");l.update(c("EditorState").push(o,q,"insert-characters"));return}}var r=l.props.keyBindingFn(m);if(!r)return;if(r==="undo"){c("keyCommandUndo")(m,o,l.update);return}m.preventDefault();if(l.props.handleKeyCommand&&c("isEventHandled")(l.props.handleKeyCommand(r,o)))return;var s=j(r,o);if(s!==o)l.update(s)}f.exports=k}),null);
__d("getSafeBodyFromHTML",["invariant","UserAgent"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("UserAgent").isBrowser("IE <= 9");function j(k){var l,m=null;if(!i&&document.implementation&&document.implementation.createHTMLDocument){l=document.implementation.createHTMLDocument("foo");l.documentElement||h(0);l.documentElement.innerHTML=k;m=l.getElementsByTagName("body")[0]}return m}f.exports=j}),null);
__d("convertFromHTMLToContentBlocks",["cx","invariant","CharacterMetadata","ContentBlock","ContentBlockNode","DefaultDraftBlockRenderMap","DraftEntity","immutable","URI","generateRandomKey","getSafeBodyFromHTML","gkx","sanitizeDraftText"],(function aa(ba,a,ca,da,ea,fa,ga,ha){"use strict";__p&&__p();var b,ia=a("immutable").Set,c=a("gkx")("AT7I-kBaiZBk-5ySRgJaDBW6tSXkDwvlqxCLLVy7xjKFQh4OpQOjZpy_bJOblZZDQOjyMyX8JeUF5aALSjx2ACRN"),d=a("immutable").List,e=a("immutable").OrderedSet,ja="&nbsp;",f=" ",ka=4,la=new RegExp("\r","g"),ma=new RegExp("\n","g"),na=new RegExp(ja,"g"),oa=new RegExp("&#13;?","g"),pa=new RegExp("&#8203;?","g"),qa=["bold","bolder","500","600","700","800","900"],ra=["light","lighter","100","200","300","400"],sa={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},g=(b={},b._3kq1=0,b._3kq2=1,b._3kq3=2,b._3kq4=3,b._3kq5=4,b),ta=["className","href","rel","target","title"],ua=["alt","className","height","src","width"],h=void 0,i={text:"",inlines:[],entities:[],blocks:[]},va={children:d(),depth:0,key:"",type:""},j=function j(u,v){if(u==="li")return v==="ol"?"ordered-list-item":"unordered-list-item";return null},k=function k(u){var v=u.get("unstyled").element,w=ia([]);u.forEach(function(x){if(x.aliasedElements)x.aliasedElements.forEach(function(y){w=w.add(y)});w=w.add(x.element)});return w.filter(function(x){return x&&x!==v}).toArray().sort()},l=function l(u,v,w){for(var x=0;x<w.length;x++){var y=w[x](u,v);if(y)return y}return null},m=function m(u,v,w){var x=w.filter(function(y){return y.element===u||y.wrapper===u||y.aliasedElements&&y.aliasedElements.some(function(z){return z===u})}).keySeq().toSet().toArray().sort();switch(x.length){case 0:return"unstyled";case 1:return x[0];default:return l(u,v,[j])||"unstyled"}},n=function n(u,v,w){__p&&__p();var x,y=sa[u];if(y)w=w.add(y).toOrderedSet();else if(v instanceof HTMLElement)(function(){__p&&__p();var z=v;w=w.withMutations(function(A){__p&&__p();var B=z.style.fontWeight,C=z.style.fontStyle,D=z.style.textDecoration;if(qa.indexOf(B)>=0)A.add("BOLD");else if(ra.indexOf(B)>=0)A.remove("BOLD");if(C==="italic")A.add("ITALIC");else if(C==="normal")A.remove("ITALIC");if(D==="underline")A.add("UNDERLINE");if(D==="line-through")A.add("STRIKETHROUGH");if(D==="none"){A.remove("UNDERLINE");A.remove("STRIKETHROUGH")}}).toOrderedSet()})();return w},o=function o(u,v,w){__p&&__p();var x=u.text.slice(-1),y=v.text.slice(0,1);if(x==="\r"&&y==="\r"&&!w){u.text=u.text.slice(0,-1);u.inlines.pop();u.entities.pop();u.blocks.pop()}if(x==="\r")if(v.text===f||v.text==="\n")return u;else if(y===f||y==="\n"){v.text=v.text.slice(1);v.inlines.shift();v.entities.shift()}return{text:u.text+v.text,inlines:u.inlines.concat(v.inlines),entities:u.entities.concat(v.entities),blocks:u.blocks.concat(v.blocks)}},p=function p(u,v){return v.some(function(w){return u.indexOf("<"+w)!==-1})},q=function q(u){u instanceof HTMLAnchorElement||ha(0);var v=u.protocol;return v==="http:"||v==="https:"||v==="mailto:"},wa=function wa(u){var v=new Array(1);if(u)v[0]=u;return babelHelpers["extends"]({},i,{text:f,inlines:[e()],entities:v})},r=function r(){return babelHelpers["extends"]({},i,{text:"\n",inlines:[e()],entities:new Array(1)})},xa=function xa(){var u=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return babelHelpers["extends"]({},va,u)},s=function s(u,v){var w=arguments.length<=2||arguments[2]===undefined?null:arguments[2];return{text:"\r",inlines:[e()],entities:new Array(1),blocks:[xa({parent:w,key:a("generateRandomKey")(),type:u,depth:Math.max(0,Math.min(ka,v))})]}},ya=function ya(u){var v=arguments.length<=1||arguments[1]===undefined?0:arguments[1];Object.keys(g).some(function(w){if(u.classList.contains(w))v=g[w]});return v},t=function t(u,v,w,x,y,z,A,B,C,D){__p&&__p();var Ca,E,F=h,G=v.nodeName.toLowerCase(),H=u,I="unstyled",J=false,K=y&&m(y,x,B),L=babelHelpers["extends"]({},i),M=null,N=void 0;if(G==="#text"){var O=v.textContent,P=O.trim();if(x&&P===""&&v.parentElement){var Q=v.parentElement.nodeName.toLowerCase();if(Q==="ol"||Q==="ul")return{chunk:babelHelpers["extends"]({},i),entityMap:u}}if(P===""&&y!=="pre")return{chunk:wa(C),entityMap:u};if(y!=="pre")O=O.replace(ma,f);h=G;return{chunk:{text:O,inlines:Array(O.length).fill(w),entities:Array(O.length).fill(C),blocks:[]},entityMap:u}}h=G;if(G==="br"){if(F==="br"&&(!y||K==="unstyled"))return{chunk:s("unstyled",A,D),entityMap:u};return{chunk:r(),entityMap:u}}if(G==="img"&&v instanceof HTMLImageElement&&v.attributes.getNamedItem("src")&&v.attributes.getNamedItem("src").value)(function(){var X=v,Y={};ua.forEach(function(Z){var $=X.getAttribute(Z);if($)Y[Z]=$});v.textContent="\ud83d\udcf7";C=a("DraftEntity").__create("IMAGE","MUTABLE",Y||{})})();w=n(G,v,w);if(G==="ul"||G==="ol"){if(x)A+=1;x=G}if(!c&&G==="li"&&v instanceof HTMLElement)A=ya(v,A);var R=m(G,x,B),S=x&&y==="li"&&G==="li",T=(!y||c)&&z.indexOf(G)!==-1;if(S||T){L=s(R,A,D);N=L.blocks[0].key;y=G;J=!c}if(S)I=x==="ul"?"unordered-list-item":"ordered-list-item";var U=v.firstChild;if(U!=null)G=U.nodeName.toLowerCase();var V=null;while(U){if(U instanceof HTMLAnchorElement&&U.href&&q(U))(function(){var X=U,Y={};ta.forEach(function(Z){var $=X.getAttribute(Z);if($)Y[Z]=$});Y.url=new(a("URI"))(X.href).toString();V=a("DraftEntity").__create("LINK","MUTABLE",Y||{})})();else V=undefined;var Da=t(H,U,w,x,y,z,A,B,V||C,c?N:null),Ea=Da.chunk,Fa=Da.entityMap;M=Ea;H=Fa;L=o(L,M,c);var W=U.nextSibling;if(!D&&W&&z.indexOf(G)>=0&&y)L=o(L,r());if(W)G=W.nodeName.toLowerCase();U=W}if(J)L=o(L,s(I,A,D));return{chunk:L,entityMap:H}},za=function za(u,v,w,x){__p&&__p();u=u.trim().replace(la,"").replace(na,f).replace(oa,"").replace(pa,"");var y=k(w),z=v(u);if(!z)return null;h=null;var A=p(u,y)?y:["div"],B=t(x,z,e(),"ul",null,A,-1,w),C=B.chunk,D=B.entityMap;if(C.text.indexOf("\r")===0)C={text:C.text.slice(1),inlines:C.inlines.slice(1),entities:C.entities.slice(1),blocks:C.blocks};if(C.text.slice(-1)==="\r"){C.text=C.text.slice(0,-1);C.inlines=C.inlines.slice(0,-1);C.entities=C.entities.slice(0,-1);C.blocks.pop()}if(C.blocks.length===0)C.blocks.push(babelHelpers["extends"]({},i,{type:"unstyled",depth:0}));if(C.text.split("\r").length===C.blocks.length+1)C.blocks.unshift({type:"unstyled",depth:0});return{chunk:C,entityMap:D}},Aa=function Aa(u){__p&&__p();if(!u||!u.text||!Array.isArray(u.blocks))return null;var v={cacheRef:{},contentBlocks:[]},w=0,x=u.blocks,y=u.inlines,z=u.entities,A=c?a("ContentBlockNode"):a("ContentBlock");return u.text.split("\r").reduce(function(B,C,D){__p&&__p();var Ca;C=a("sanitizeDraftText")(C);var E=x[D],F=w+C.length,G=y.slice(w,F),H=z.slice(w,F),I=d(G.map(function(P,D){var Q={style:P,entity:null};if(H[D])Q.entity=H[D];return a("CharacterMetadata").create(Q)}));w=F+1;var J=E.depth,K=E.type,L=E.parent,M=E.key||a("generateRandomKey")(),N=null;if(L)(function(){__p&&__p();var P,Q=B.cacheRef[L],R=B.contentBlocks[Q];if(R.getChildKeys().isEmpty()&&R.getText())(function(){var S=R.getCharacterList(),T=R.getText();N=a("generateRandomKey")();var U=new(a("ContentBlockNode"))({key:N,text:T,characterList:S,parent:L,nextSibling:M});B.contentBlocks.push(U);R=R.withMutations(function(E){E.set("characterList",d()).set("text","").set("children",R.children.push(U.getKey()))})})();B.contentBlocks[Q]=R.set("children",R.children.push(M))})();var O=new A({key:M,parent:L,type:K,depth:J,text:C,characterList:I,prevSibling:N||(D===0||x[D-1].parent!==L?null:x[D-1].key),nextSibling:D===x.length-1||x[D+1].parent!==L?null:x[D+1].key});B.contentBlocks.push(O);B.cacheRef[O.key]=D;return B},v).contentBlocks},Ba=function Ba(u){var v=arguments.length<=1||arguments[1]===undefined?a("getSafeBodyFromHTML"):arguments[1],w=arguments.length<=2||arguments[2]===undefined?a("DefaultDraftBlockRenderMap"):arguments[2],x=za(u,v,w,a("DraftEntity"));if(x==null)return null;var y=x.chunk,z=x.entityMap,A=Aa(y);return{contentBlocks:A,entityMap:z}};ea.exports=Ba}),null);
__d("DraftPasteProcessor",["CharacterMetadata","ContentBlock","ContentBlockNode","immutable","convertFromHTMLToContentBlocks","generateRandomKey","getSafeBodyFromHTML","gkx","sanitizeDraftText"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("immutable").List,i=c("immutable").Repeat,j=c("gkx")("AT7I-kBaiZBk-5ySRgJaDBW6tSXkDwvlqxCLLVy7xjKFQh4OpQOjZpy_bJOblZZDQOjyMyX8JeUF5aALSjx2ACRN"),k=j?c("ContentBlockNode"):c("ContentBlock"),l={processHTML:function m(n,o){return c("convertFromHTMLToContentBlocks")(n,c("getSafeBodyFromHTML"),o)},processText:function m(n,o,p){return n.reduce(function(q,r,s){r=c("sanitizeDraftText")(r);var t=c("generateRandomKey")(),u={key:t,type:p,text:r,characterList:h(i(o,r.length))};if(j&&s!==0){var v=s-1,w=q[v]=q[v].merge({nextSibling:t});u=babelHelpers["extends"]({},u,{prevSibling:w.getKey()})}q.push(new k(u));return q},[])}};f.exports=l}),null);
__d("adjustBlockDepthForContentState",[],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(i,j,k,l){var m=j.getStartKey(),n=j.getEndKey(),o=i.getBlockMap(),p=o.toSeq().skipUntil(function(q,r){return r===m}).takeUntil(function(q,r){return r===n}).concat([[n,o.get(n)]]).map(function(q){var r=q.getDepth()+k;r=Math.max(0,Math.min(r,l));return q.set("depth",r)});o=o.merge(p);return i.merge({blockMap:o,selectionBefore:j,selectionAfter:j})}f.exports=h}),null);
__d("RichTextEditorUtil",["DraftModifier","EditorState","SelectionState","adjustBlockDepthForContentState","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={currentBlockContainsLink:function i(j){var k=j.getSelection(),l=j.getCurrentContent(),m=l.getEntityMap();return l.getBlockForKey(k.getAnchorKey()).getCharacterList().slice(k.getStartOffset(),k.getEndOffset()).some(function(n){var o=n.getEntity();return!!o&&m.__get(o).getType()==="LINK"})},getCurrentBlockType:function i(j){var k=j.getSelection();return j.getCurrentContent().getBlockForKey(k.getStartKey()).getType()},getDataObjectForLinkURL:function i(j){return{url:j.toString()}},handleKeyCommand:function i(j,k){switch(k){case"bold":return h.toggleInlineStyle(j,"BOLD");case"italic":return h.toggleInlineStyle(j,"ITALIC");case"underline":return h.toggleInlineStyle(j,"UNDERLINE");case"code":return h.toggleCode(j);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return h.onBackspace(j);case"delete":case"delete-word":case"delete-to-end-of-block":return h.onDelete(j);default:return null}},insertSoftNewline:function i(j){var k=c("DraftModifier").insertText(j.getCurrentContent(),j.getSelection(),"\n",j.getCurrentInlineStyle(),null),l=c("EditorState").push(j,k,"insert-characters");return c("EditorState").forceSelection(l,k.getSelectionAfter())},onBackspace:function i(j){__p&&__p();var k=j.getSelection();if(!k.isCollapsed()||k.getAnchorOffset()||k.getFocusOffset())return null;var l=j.getCurrentContent(),m=k.getStartKey(),n=l.getBlockBefore(m);if(n&&n.getType()==="atomic"){var o=l.getBlockMap()["delete"](n.getKey()),p=l.merge({blockMap:o,selectionAfter:k});if(p!==l)return c("EditorState").push(j,p,"remove-range")}var q=h.tryToRemoveBlockStyle(j);if(q)return c("EditorState").push(j,q,"change-block-type");return null},onDelete:function i(j){__p&&__p();var k=j.getSelection();if(!k.isCollapsed())return null;var l=j.getCurrentContent(),m=k.getStartKey(),n=l.getBlockForKey(m),o=n.getLength();if(k.getStartOffset()<o)return null;var p=l.getBlockAfter(m);if(!p||p.getType()!=="atomic")return null;var q=k.merge({focusKey:p.getKey(),focusOffset:p.getLength()}),r=c("DraftModifier").removeRange(l,q,"forward");if(r!==l)return c("EditorState").push(j,r,"remove-range");return null},onTab:function i(event,j,k){__p&&__p();var l=j.getSelection(),m=l.getAnchorKey();if(m!==l.getFocusKey())return j;var n=j.getCurrentContent(),o=n.getBlockForKey(m),p=o.getType();if(p!=="unordered-list-item"&&p!=="ordered-list-item")return j;event.preventDefault();var q=n.getBlockBefore(m);if(!q)return j;var r=q.getType();if(r!=="unordered-list-item"&&r!=="ordered-list-item")return j;var s=o.getDepth();if(!event.shiftKey&&s===k)return j;k=Math.min(q.getDepth()+1,k);var t=c("adjustBlockDepthForContentState")(n,l,event.shiftKey?-1:1,k);return c("EditorState").push(j,t,"adjust-depth")},toggleBlockType:function i(j,k){__p&&__p();var l=j.getSelection(),m=l.getStartKey(),n=l.getEndKey(),o=j.getCurrentContent(),p=l;if(m!==n&&l.getEndOffset()===0){var q=c("nullthrows")(o.getBlockBefore(n));n=q.getKey();p=p.merge({anchorKey:m,anchorOffset:l.getStartOffset(),focusKey:n,focusOffset:q.getLength(),isBackward:false})}var r=o.getBlockMap().skipWhile(function(t,u){return u!==m}).reverse().skipWhile(function(t,u){return u!==n}).some(function(t){return t.getType()==="atomic"});if(r)return j;var s=o.getBlockForKey(m).getType()===k?"unstyled":k;return c("EditorState").push(j,c("DraftModifier").setBlockType(o,p,s),"change-block-type")},toggleCode:function i(j){var k=j.getSelection(),l=k.getAnchorKey(),m=k.getFocusKey();if(k.isCollapsed()||l!==m)return h.toggleBlockType(j,"code-block");return h.toggleInlineStyle(j,"CODE")},toggleInlineStyle:function i(j,k){var l=j.getSelection(),m=j.getCurrentInlineStyle();if(l.isCollapsed())return c("EditorState").setInlineStyleOverride(j,m.has(k)?m.remove(k):m.add(k));var n=j.getCurrentContent(),o;if(m.has(k))o=c("DraftModifier").removeInlineStyle(n,l,k);else o=c("DraftModifier").applyInlineStyle(n,l,k);return c("EditorState").push(j,o,"change-inline-style")},toggleLink:function i(j,k,l){var m=c("DraftModifier").applyEntity(j.getCurrentContent(),k,l);return c("EditorState").push(j,m,"apply-entity")},tryToRemoveBlockStyle:function i(j){__p&&__p();var k=j.getSelection(),l=k.getAnchorOffset();if(k.isCollapsed()&&l===0){var m=k.getAnchorKey(),n=j.getCurrentContent(),o=n.getBlockForKey(m),p=n.getFirstBlock();if(o.getLength()>0&&o!==p)return null;var q=o.getType(),r=n.getBlockBefore(m);if(q==="code-block"&&r&&r.getType()==="code-block"&&r.getLength()!==0)return null;if(q!=="unstyled")return c("DraftModifier").setBlockType(n,k,"unstyled")}return null}};f.exports=h}),null);
__d("editOnPaste",["BlockMapBuilder","CharacterMetadata","DataTransfer","DraftModifier","DraftPasteProcessor","EditorState","RichTextEditorUtil","getEntityKeyForSelection","getTextContentFromFiles","isEventHandled","splitTextIntoTextBlocks"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(k,l){__p&&__p();l.preventDefault();var m=new(c("DataTransfer"))(l.clipboardData);if(!m.isRichText()){var n=m.getFiles(),o=m.getText();if(n.length>0){if(k.props.handlePastedFiles&&c("isEventHandled")(k.props.handlePastedFiles(n)))return;c("getTextContentFromFiles")(n,function(C){C=C||o;if(!C)return;var s=k._latestEditorState,D=c("splitTextIntoTextBlocks")(C),y=c("CharacterMetadata").create({style:s.getCurrentInlineStyle(),entity:c("getEntityKeyForSelection")(s.getCurrentContent(),s.getSelection())}),z=c("RichTextEditorUtil").getCurrentBlockType(s),q=c("DraftPasteProcessor").processText(D,y,z),E=c("BlockMapBuilder").createFromArray(q),F=c("DraftModifier").replaceWithFragment(s.getCurrentContent(),s.getSelection(),E);k.update(c("EditorState").push(s,F,"insert-fragment"))});return}}var p=[],q=m.getText(),r=m.getHTML(),s=k._latestEditorState;if(k.props.handlePastedText&&c("isEventHandled")(k.props.handlePastedText(q,r,s)))return;if(q)p=c("splitTextIntoTextBlocks")(q);if(!k.props.stripPastedStyles){var t=k.getClipboard();if(m.isRichText()&&t){if(r.indexOf(k.getEditorKey())!==-1||p.length===1&&t.size===1&&t.first().getText()===q){k.update(i(k._latestEditorState,t));return}}else if(t&&m.types.includes("com.apple.webarchive")&&!m.types.includes("text/html")&&j(p,t)){k.update(i(k._latestEditorState,t));return}if(r){var u=c("DraftPasteProcessor").processHTML(r,k.props.blockRenderMap);if(u){var v=u.contentBlocks,w=u.entityMap;if(v){var x=c("BlockMapBuilder").createFromArray(v);k.update(i(k._latestEditorState,x,w));return}}}k.setClipboard(null)}if(p.length){var y=c("CharacterMetadata").create({style:s.getCurrentInlineStyle(),entity:c("getEntityKeyForSelection")(s.getCurrentContent(),s.getSelection())}),z=c("RichTextEditorUtil").getCurrentBlockType(s),A=c("DraftPasteProcessor").processText(p,y,z),B=c("BlockMapBuilder").createFromArray(A);k.update(i(k._latestEditorState,B))}}function i(k,l,m){var n=c("DraftModifier").replaceWithFragment(k.getCurrentContent(),k.getSelection(),l);return c("EditorState").push(k,n.set("entityMap",m),"insert-fragment")}function j(k,l){return k.length===l.size&&l.valueSeq().every(function(m,n){return m.getText()===k[n]})}f.exports=h}),null);
__d("getDraftEditorSelection",["getDraftEditorSelectionWithNodes"],(function a(b,c,d,e,f,g){"use strict";function h(i,j){var k=b.getSelection();if(k.rangeCount===0)return{selectionState:i.getSelection().set("hasFocus",false),needsRecovery:false};return c("getDraftEditorSelectionWithNodes")(i,j,k.anchorNode,k.anchorOffset,k.focusNode,k.focusOffset)}f.exports=h}),null);
__d("editOnSelect",["invariant","EditorState","ReactDOM","getDraftEditorSelection"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j){__p&&__p();if(j._blockSelectEvents||j._latestEditorState!==j.props.editorState)return;var k=j.props.editorState,l=c("ReactDOM").findDOMNode(j.editorContainer);l||h(0);l.firstChild instanceof HTMLElement||h(0);var m=c("getDraftEditorSelection")(k,l.firstChild),n=m.selectionState;if(n!==k.getSelection()){if(m.needsRecovery)k=c("EditorState").forceSelection(k,n);else k=c("EditorState").acceptSelection(k,n);j.update(k)}}f.exports=i}),null);
__d("DraftEditorEditHandler",["editOnBeforeInput","editOnBlur","editOnCompositionStart","editOnCopy","editOnCut","editOnDragOver","editOnDragStart","editOnFocus","editOnInput","editOnKeyDown","editOnPaste","editOnSelect"],(function a(b,c,d,e,f,g){"use strict";var h={onBeforeInput:c("editOnBeforeInput"),onBlur:c("editOnBlur"),onCompositionStart:c("editOnCompositionStart"),onCopy:c("editOnCopy"),onCut:c("editOnCut"),onDragOver:c("editOnDragOver"),onDragStart:c("editOnDragStart"),onFocus:c("editOnFocus"),onInput:c("editOnInput"),onKeyDown:c("editOnKeyDown"),onPaste:c("editOnPaste"),onSelect:c("editOnSelect")};f.exports=h}),null);
__d("DraftEditorPlaceholder.react",["cx","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.shouldComponentUpdate=function(l){return this.props.text!==l.text||this.props.editorState.getSelection().getHasFocus()!==l.editorState.getSelection().getHasFocus()};k.prototype.render=function(){var l=this.props.editorState.getSelection().getHasFocus(),m="_1p1t"+(l?" _1p1u":""),n={whiteSpace:"pre-wrap"};return c("React").createElement("div",{className:m},c("React").createElement("div",{className:"_1p1v",id:this.props.accessibilityID,style:n},this.props.text))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("getDefaultKeyBinding",["KeyBindingUtil","Keys","UserAgent"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("UserAgent").isPlatform("Mac OS X"),i=h&&c("UserAgent").isBrowser("Firefox < 29"),j=c("KeyBindingUtil").hasCommandModifier,k=c("KeyBindingUtil").isCtrlKeyCommand;function l(q){return h&&q.altKey||k(q)}function m(q){if(!j(q))return null;return q.shiftKey?"redo":"undo"}function n(q){if(!h&&q.shiftKey)return null;return l(q)?"delete-word":"delete"}function o(q){if(j(q)&&h)return"backspace-to-start-of-line";return l(q)?"backspace-word":"backspace"}function p(q){__p&&__p();switch(q.keyCode){case 66:return j(q)?"bold":null;case 68:return k(q)?"delete":null;case 72:return k(q)?"backspace":null;case 73:return j(q)?"italic":null;case 74:return j(q)?"code":null;case 75:return h&&k(q)?"secondary-cut":null;case 77:return k(q)?"split-block":null;case 79:return k(q)?"split-block":null;case 84:return h&&k(q)?"transpose-characters":null;case 85:return j(q)?"underline":null;case 87:return h&&k(q)?"backspace-word":null;case 89:if(k(q))return h?"secondary-paste":"redo";return null;case 90:return m(q)||null;case c("Keys").RETURN:return"split-block";case c("Keys").DELETE:return n(q);case c("Keys").BACKSPACE:return o(q);case c("Keys").LEFT:return i&&j(q)?"move-selection-to-start-of-block":null;case c("Keys").RIGHT:return i&&j(q)?"move-selection-to-end-of-block":null;default:return null}}f.exports=p}),null);
__d("DraftEditor.react",["cx","invariant","DefaultDraftBlockRenderMap","DefaultDraftInlineStyle","DraftEditorCompositionHandler","DraftEditorContents.react","DraftEditorDragHandler","DraftEditorEditHandler","DraftEditorPlaceholder.react","DraftODS","EditorState","React","ReactDOM","Scroll","Style","UserAgent","emptyFunction","generateRandomKey","getDefaultKeyBinding","getScrollPosition","gkx","nullthrows"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("UserAgent").isBrowser("IE"),m=!l,n={edit:c("DraftEditorEditHandler"),composite:c("DraftEditorCompositionHandler"),drag:c("DraftEditorDragHandler"),cut:null,render:null},o=false;j=babelHelpers.inherits(p,c("React").Component);k=j&&j.prototype;function p(q){__p&&__p();k.constructor.call(this,q);this.focus=function(r){__p&&__p();var s=this.props.editorState,t=s.getSelection().getHasFocus(),u=c("ReactDOM").findDOMNode(this.editor);if(!u)return;var v=c("Style").getScrollParent(u),w=r||c("getScrollPosition")(v),x=w.x,y=w.y;u instanceof HTMLElement||i(0);u.focus();if(v===window)window.scrollTo(x,y);else c("Scroll").setTop(v,y);if(!t)this.update(c("EditorState").forceSelection(s,s.getSelection()))}.bind(this);this.blur=function(){var r=c("ReactDOM").findDOMNode(this.editor);r instanceof HTMLElement||i(0);r.blur()}.bind(this);this.setMode=function(r){this._handler=n[r]}.bind(this);this.exitCurrentMode=function(){this.setMode("edit")}.bind(this);this.restoreEditorDOM=function(r){this.setState({contentsKey:this.state.contentsKey+1},function(){this.focus(r)}.bind(this))}.bind(this);this.setClipboard=function(r){this._clipboard=r}.bind(this);this.getClipboard=function(){return this._clipboard}.bind(this);this.update=function(r){this._latestEditorState=r;this.props.onChange(r)}.bind(this);this.onDragEnter=function(){this._dragCount++}.bind(this);this.onDragLeave=function(){this._dragCount--;if(this._dragCount===0)this.exitCurrentMode()}.bind(this);this._blockSelectEvents=false;this._clipboard=null;this._handler=null;this._dragCount=0;this._editorKey=q.editorKey||c("generateRandomKey")();this._placeholderAccessibilityID="placeholder-"+this._editorKey;this._latestEditorState=q.editorState;this._latestCommittedEditorState=q.editorState;this._onBeforeInput=this._buildHandler("onBeforeInput");this._onBlur=this._buildHandler("onBlur");this._onCharacterData=this._buildHandler("onCharacterData");this._onCompositionEnd=this._buildHandler("onCompositionEnd");this._onCompositionStart=this._buildHandler("onCompositionStart");this._onCopy=this._buildHandler("onCopy");this._onCut=this._buildHandler("onCut");this._onDragEnd=this._buildHandler("onDragEnd");this._onDragOver=this._buildHandler("onDragOver");this._onDragStart=this._buildHandler("onDragStart");this._onDrop=this._buildHandler("onDrop");this._onInput=this._buildHandler("onInput");this._onFocus=this._buildHandler("onFocus");this._onKeyDown=this._buildHandler("onKeyDown");this._onKeyPress=this._buildHandler("onKeyPress");this._onKeyUp=this._buildHandler("onKeyUp");this._onMouseDown=this._buildHandler("onMouseDown");this._onMouseUp=this._buildHandler("onMouseUp");this._onPaste=this._buildHandler("onPaste");this._onSelect=this._buildHandler("onSelect");this.getEditorKey=function(){return this._editorKey}.bind(this);this.state={contentsKey:0}}p.prototype._buildHandler=function(q){__p&&__p();var r=c("ReactDOM").unstable_flushControlled;return function(s){var t,u=this;if(!this.props.readOnly)(function(){var v=u._handler&&u._handler[q];if(v)if(r&&c("gkx")("AT4saWbUVNNP0xfVrGFK4Od7asqAk6KYaZ-OXTpPRONiG7_7sK-oz8vKP6N655DcRvOu63kZiUbSNUB61u9ZSfYK"))r(function(){return v(this,s)}.bind(u));else v(u,s)})()}.bind(this)};p.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()};p.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var q={text:c("nullthrows")(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return c("React").createElement(c("DraftEditorPlaceholder.react"),q)}return null};p.prototype.render=function(){var q=this.props,r=q.blockRenderMap,s=q.blockRendererFn,t=q.blockStyleFn,u=q.customStyleFn,v=q.customStyleMap,w=q.editorState,x=q.readOnly,y=q.textAlignment,z=q.textDirectionality,A="_5rp7"+(y==="left"?" _5rp8":"")+(y==="right"?" _5rp9":"")+(y==="center"?" _5rpa":""),B={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},C=this.props.role||"textbox",D=C==="combobox"?!!this.props.ariaExpanded:null,E={blockRenderMap:r,blockRendererFn:s,blockStyleFn:t,customStyleMap:babelHelpers["extends"]({},c("DefaultDraftInlineStyle"),v),customStyleFn:u,editorKey:this._editorKey,editorState:w,key:"contents"+this.state.contentsKey,textDirectionality:z};return c("React").createElement("div",{className:A},this._renderPlaceholder(),c("React").createElement("div",{className:"_5rpb",ref:function(F){return this.editorContainer=F}.bind(this)},c("React").createElement("div",{"aria-activedescendant":x?null:this.props.ariaActiveDescendantID,"aria-autocomplete":x?null:this.props.ariaAutoComplete,"aria-controls":x?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":x?null:D,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:(!x?"notranslate":"")+" _5rpu",contentEditable:!x,"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:function(F){return this.editor=F}.bind(this),role:x?null:C,spellCheck:m&&this.props.spellCheck,style:B,suppressContentEditableWarning:true,tabIndex:this.props.tabIndex},c("React").createElement(c("DraftEditorContents.react"),E))))};p.prototype.componentDidMount=function(){if(!o&&c("gkx")("AT60Qhny9fC3BpbI8ZQSvDSWTGcUliA-72QFfXtmX6zOJHm8k3Eh1sQgzLifAxrJandLHat-LCVV6kN9-xliHn1Q")){o=true;c("DraftODS").init()}this.setMode("edit");if(l)document.execCommand("AutoUrlDetect",false,false)};p.prototype.componentWillUpdate=function(q){this._blockSelectEvents=true;this._latestEditorState=q.editorState};p.prototype.componentDidUpdate=function(){this._blockSelectEvents=false;this._latestCommittedEditorState=this.props.editorState};p.defaultProps={blockRenderMap:c("DefaultDraftBlockRenderMap"),blockRendererFn:c("emptyFunction").thatReturnsNull,blockStyleFn:c("emptyFunction").thatReturns(""),keyBindingFn:c("getDefaultKeyBinding"),readOnly:false,spellCheck:false,stripPastedStyles:false};f.exports=p}),null);
__d("GroupTypeaheadTypeEnum",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({USER:"user",PAGE:"page",APP:"app",GROUP:"group",EVENT:"event",PLACE:"place",GROUP_RULE:"group_rule"})}),null);
__d("insertMentionIntoEditorState",["DraftModifier","EditorState","GroupTypeaheadTypeEnum","gkx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h="@\uff20\ufe68";function i(l,m,n,o){var p=m.getSelection(),q=m.getCurrentContent(),r=p.getAnchorKey(),s=p.getAnchorOffset(),t=q.getBlockMap().get(r),u=p.getStartOffset(),v=t.getText().substr(u-n,n),w=j(l,v),x=s-k(t.getText().substr(0,s),w,n);q=o(q,l);var y=q.getLastCreatedEntityKey(),z=c("DraftModifier").replaceText(q,p.set("anchorOffset",x),w,m.getCurrentInlineStyle(),y);return c("EditorState").push(m,z,"insert-fragment")}function j(l,m){__p&&__p();if(l.getType()===c("GroupTypeaheadTypeEnum").GROUP_RULE)return l.getSubtitle();if(!c("gkx")("AT4eVhAyXs5l-SdU2eMzGAtYZHW_8azbWQtRzBkQx-hxEYvZmrk9VzKrNwtfnQLv-dOZuBnZ683myig4JsVLktUm"))return l.getTitle();m=m.toLowerCase();if(h.includes(m.substring(0,1)))m=m.substring(1,m.length);if(l.getTitle().toLowerCase().startsWith(m))return l.getTitle();else if(l.getSubtitle().toLowerCase().startsWith(m))return"@"+l.getSubtitle();else if(l.getTitle().toLowerCase().includes(m))return l.getTitle();else if(l.getSubtitle().toLowerCase().includes(m))return"@"+l.getSubtitle();return l.getTitle()}function k(l,m,n){for(var o=n;o<=m.length;o++)if(l.substr(-o)==m.substr(0,o))n=o;return n}f.exports=i}),null);
__d("AbstractMentionsTextEditor.react",["DraftEditor.react","React","SearchableEntry","TypeaheadNavigation","clearImmediate","getOrCreateDOMID","insertMentionIntoEditorState","setImmediate","uniqueID"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("React").PropTypes,k=5,l="handled",m="not-handled";h=babelHelpers.inherits(n,c("React").Component);i=h&&h.prototype;function n(o,p){"use strict";__p&&__p();i.constructor.call(this,o,p);this.__onShowMentions=function(q,r){__p&&__p();if(!this.$AbstractMentionsTextEditor2)return;var s=r||0;if(!q||!q.length){this.setState({highlightedMentionable:null,activeDescendantID:null,mentionableEntries:null,characterOffset:0});return}var t=q.slice(0,this.props.maxResults),u=this.props.typeaheadViewProps;if(u&&u.mentionSortFn)t.sort(u.mentionSortFn);var v=null;if(this.props.autoHighlight||this.state.highlightedMentionable!==null)v=q[0];this.setState({highlightedMentionable:v,mentionableEntries:t,characterOffset:s});if(this.props.onShowMentions)this.props.onShowMentions(t,s)}.bind(this);this.$AbstractMentionsTextEditor8=function(q){this.setState(this.$AbstractMentionsTextEditor12());this.props.onBlur&&this.props.onBlur(q)}.bind(this);this.$AbstractMentionsTextEditor7=function(q){this.props.mentionsSource&&this.props.mentionsSource.bootstrap();this.props.onFocus&&this.props.onFocus(q)}.bind(this);this.$AbstractMentionsTextEditor13=function(q,r){if(this.state.highlightedMentionable){this.$AbstractMentionsTextEditor10(this.state.highlightedMentionable,q);return l}else if(this.props.handleContentReturn&&this.props.handleContentReturn(q,r))return l;return m}.bind(this);this.$AbstractMentionsTextEditor6=function(q){var r=this.state.highlightedMentionable;if(r){q.preventDefault();this.$AbstractMentionsTextEditor10(r,q)}else if(this.props.onTab)this.props.onTab(q)}.bind(this);this.$AbstractMentionsTextEditor5=function(q){if(this.props.onEscape)this.props.onEscape(q);if(this.state.mentionableEntries){q.stopPropagation();q.nativeEvent.isPropagationStopped=true;this.setState(this.$AbstractMentionsTextEditor12())}}.bind(this);this.$AbstractMentionsTextEditor11=function(q){var r=this.state.mentionableEntries;if(r){q.preventDefault();c("TypeaheadNavigation").moveUp(r,this.state.highlightedMentionable,this.$AbstractMentionsTextEditor9)}else this.props.onUpArrow&&this.props.onUpArrow(q)}.bind(this);this.$AbstractMentionsTextEditor4=function(q){var r=this.state.mentionableEntries;if(r){q.preventDefault();c("TypeaheadNavigation").moveDown(r,this.state.highlightedMentionable,this.$AbstractMentionsTextEditor9)}else this.props.onDownArrow&&this.props.onDownArrow(q)}.bind(this);this.$AbstractMentionsTextEditor9=function(q){this.setState({highlightedMentionable:q})}.bind(this);this.$AbstractMentionsTextEditor14=function(q){var r=c("getOrCreateDOMID")(q);this.setState({ariaActiveDescendantID:r})}.bind(this);this.$AbstractMentionsTextEditor10=function(q,r){var s=c("insertMentionIntoEditorState")(q,this.props.editorState,this.state.characterOffset,this.props.mentionCreationForContentStateFn);this.props.onChange(s);this.setState(this.$AbstractMentionsTextEditor12());var t=this.props.onAddMention,u=this.state.mentionableEntries;if(t&&u){var v=u.indexOf(q);t(q,v,r)}}.bind(this);this.__onShowMentions=this.__onShowMentions.bind(this);this.$AbstractMentionsTextEditor4=this.$AbstractMentionsTextEditor4.bind(this);this.$AbstractMentionsTextEditor5=this.$AbstractMentionsTextEditor5.bind(this);this.$AbstractMentionsTextEditor6=this.$AbstractMentionsTextEditor6.bind(this);this.$AbstractMentionsTextEditor7=this.$AbstractMentionsTextEditor7.bind(this);this.$AbstractMentionsTextEditor8=this.$AbstractMentionsTextEditor8.bind(this);this.$AbstractMentionsTextEditor9=this.$AbstractMentionsTextEditor9.bind(this);this.$AbstractMentionsTextEditor10=this.$AbstractMentionsTextEditor10.bind(this);this.$AbstractMentionsTextEditor11=this.$AbstractMentionsTextEditor11.bind(this);this.state=this.$AbstractMentionsTextEditor12()}n.prototype.componentWillMount=function(){"use strict";this.$AbstractMentionsTextEditor2=true;this.$AbstractMentionsTextEditor1=c("uniqueID")();this.$AbstractMentionsTextEditor3=[]};n.prototype.componentWillUnmount=function(){"use strict";this.$AbstractMentionsTextEditor2=false;this.$AbstractMentionsTextEditor3.forEach(function(o){return c("clearImmediate")(o)});this.$AbstractMentionsTextEditor3=[]};n.prototype.$AbstractMentionsTextEditor12=function(){"use strict";return{highlightedMentionable:null,mentionableEntries:null,characterOffset:0}};n.prototype.shouldComponentUpdate=function(o,p){"use strict";return this.props.editorState!==o.editorState||this.props.placeholder!==o.placeholder||this.props.readOnly!==o.readOnly||this.state.mentionableEntries!==p.mentionableEntries||this.state.highlightedMentionable!==p.highlightedMentionable||this.state.ariaActiveDescendantID!==p.ariaActiveDescendantID};n.prototype.componentDidUpdate=function(o){__p&&__p();var p,q=this;"use strict";var r=this.props.editorState;if(r===o.editorState)return;var s=r.getSelection();if(s.getHasFocus()&&s.isCollapsed()){var t;(function(){t=r.getCurrentContent();var u=q.props.mentionsSource;if(u)q.$AbstractMentionsTextEditor3.push(c("setImmediate")(function(){u.search(t,s,this.__onShowMentions)}.bind(q)))})()}};n.prototype.blur=function(){"use strict";this.refs.abstractTextEditor.blur()};n.prototype.focus=function(){"use strict";this.refs.abstractTextEditor.focus()};n.prototype.$AbstractMentionsTextEditor15=function(){"use strict";var o=this.state.mentionableEntries;if(!o||!o.length)return null;var p=this.props.mentionResultsComponent;return c("React").createElement(p,babelHelpers["extends"]({},this.props.mentionResultsProps,{viewID:this.$AbstractMentionsTextEditor1,selection:this.props.editorState.getSelection(),contextComponent:this,characterOffset:this.state.characterOffset,mentionableEntries:o||[],highlightedMentionable:this.state.highlightedMentionable,onMentionSelect:this.$AbstractMentionsTextEditor10,onMentionHighlight:this.$AbstractMentionsTextEditor9,onMentionRenderHighlight:this.$AbstractMentionsTextEditor14}))};n.prototype.exitCurrentMode=function(){"use strict";this.refs.abstractTextEditor&&this.refs.abstractTextEditor.exitCurrentMode()};n.prototype.render=function(){"use strict";var o=this.state.mentionableEntries,p=!!(o&&o.length),q=this.props.readOnly?null:"-1",r=this.props.role||"combobox",s=this.props.ariaAutoComplete||"list";return c("React").createElement("div",{ref:"container",className:this.props.className,tabIndex:q},c("React").createElement(c("DraftEditor.react"),babelHelpers["extends"]({},this.props,{ref:"abstractTextEditor",role:r,ariaActiveDescendantID:this.state.ariaActiveDescendantID,ariaAutoComplete:s,ariaControls:this.$AbstractMentionsTextEditor1,ariaExpanded:p,ariaHasPopup:p,editorState:this.props.editorState,onBlur:this.$AbstractMentionsTextEditor8,onChange:this.props.onChange,onFocus:this.$AbstractMentionsTextEditor7,onTab:this.$AbstractMentionsTextEditor6,onEscape:this.$AbstractMentionsTextEditor5,onDownArrow:this.$AbstractMentionsTextEditor4,onUpArrow:this.$AbstractMentionsTextEditor11,handleReturn:this.$AbstractMentionsTextEditor13})),this.$AbstractMentionsTextEditor15())};n.prototype.isShowingMentionables=function(){"use strict";return!!this.state.mentionableEntries};n.defaultProps=babelHelpers["extends"]({},c("DraftEditor.react").defaultProps,{autoHighlight:true,maxResults:k});n.propTypes={mentionsSource:j.object,mentionCreationForContentStateFn:j.func.isRequired,mentionResultsComponent:j.func.isRequired,mentionResultsProps:j.object,excludedEntries:j.object,handleContentReturn:j.func,onAddMention:j.func,onShowMentions:j.func,autoHighlight:j.bool,maxResults:j.number,webDriverTestID:j.string};f.exports=n}),null);