(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[93558],{96278:function(z){z.exports={root:"root___7VXfh",colorWeak:"colorWeak___2fQ5G","ant-layout":"ant-layout___2lk2i",globalSpin:"globalSpin___3wjkL","ant-table":"ant-table___3MoMQ","ant-table-thead":"ant-table-thead___2F4eD","ant-table-tbody":"ant-table-tbody___1iFAX",formBox:"formBox___1MR6m",hrefModal:"hrefModal___GOUPi",shop:"shop___3KrmS"}},93558:function(z,P,o){"use strict";o.r(P),o.d(P,{default:function(){return a}});var x=o(71194),b=o(50146),v=o(67294),A=o(28216),p=o(85589),B=o.n(p),S=o(96278),d=o.n(S),f=o(85893),h,s,a=(h=(0,A.$j)(c=>{var i=c.commondesign;return{commondesign:i}}),h(s=class extends v.PureComponent{constructor(){super(...arguments);this.state={visible:!1,editorState:""},this.handleEditorChange=i=>{this.setState({editorState:i})}}componentDidMount(){var i=this.props.commondesign,r=i.Editor,u=r.visible,E=r.editCon,C=r.callback,l=r.callClose;this.setState({visible:u,editorState:p.EditorState.createFrom(E)})}render(){var i=this.props,r=i.commondesign,u=i.dispatch,E=r.Editor.callback,C=E===void 0?()=>{}:E,l=this.state,g=l.visible,D=l.editorState,F=T=>{this.setState({visible:!1}),u({type:"commondesign/setState",payload:{Editor:{visible:!1,callback:()=>{},callClose:()=>{}}}})},y=T=>{C(D.toHTML()),this.setState({visible:!1}),u({type:"commondesign/setState",payload:{Editor:{visible:!1,callback:()=>{},callClose:()=>{}}}})},L=["undo","redo","separator","font-size","line-height","letter-spacing","separator","text-color","bold","italic","underline","strike-through","separator","superscript","subscript","remove-styles","emoji","text-align","separator","headings","list-ul","list-ol","blockquote","code","separator","link","separator","hr","separator","separator","clear"];return(0,f.jsx)(b.Z,{title:"\u5BCC\u6587\u672C",visible:g,onOk:y,width:880,onCancel:F,maskClosable:!1,zIndex:1002,className:d().hrefModal,children:(0,f.jsx)(B(),{controls:L,value:D,onChange:this.handleEditorChange,onSave:this.submitContent})})}})||s)},28126:function(z,P,o){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.getFromHTMLConfig=P.getToHTMLConfig=P.blocks=P.getHexColor=P.defaultFontFamilies=P.namedColors=void 0;var x=Object.assign||function(w){for(var H=1;H=0||!Object.prototype.hasOwnProperty.call(w,U)||(j[U]=w[U]);return j}var B=P.namedColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},S=function(H){return H.split("-")[1]},d=function(H){return H+"px"},f=function(H){return H.replace("px","")},h=["style"],s=["style","href","target","alt","title","id","controls","autoplay","loop","poster"],a=function(H){return Object.keys(H).reduce(function(j,U){return j+" "+U+'="'+H[U]+'"'},"").replace(/^\s$/,"")},c=P.defaultFontFamilies=[{name:"Araial",family:"Arial, Helvetica, sans-serif"},{name:"Georgia",family:"Georgia, serif"},{name:"Impact",family:"Impact, serif"},{name:"Monospace",family:'"Courier New", Courier, monospace'},{name:"Tahoma",family:"tahoma, arial, 'Hiragino Sans GB', \u5B8B\u4F53, sans-serif"}],i=P.getHexColor=function(H){if(H=H.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(H))return H;if(B[H])return B[H];if(H.indexOf("rgb")===0){var j=H.split(","),U=j.length<3?null:"#"+[j[0],j[1],j[2]].map(function(O){var re=parseInt(O.replace(/\D/g,""),10).toString(16);return re.length===1?"0"+re:re}).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(U)?U:null}else return null},r=P.blocks={"header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6",unstyled:"p",blockquote:"blockquote"},u=Object.keys(r),E=u.map(function(w){return r[w]}),C=function(H,j,U){if(!H||!H.key)return v.default.createElement("p",null);var O=j.getBlockForKey(H.key),re=U.class,Q=p(U,["class"]);if(Q.className=re,!O)return v.default.createElement("p",null);var ue=O.getEntityAt(0);if(!ue)return v.default.createElement("p",null);var Se=j.getEntity(ue),ye=Se.getType().toLowerCase(),V=H.data,Be=V.float,ze=V.alignment,Le=Se.getData(),Ue=Le.url,ot=Le.link,at=Le.link_target,_e=Le.width,Ze=Le.height,Te=Le.meta;if(ye==="image"){var Ge={},Ye="";return Be?(Ge.float=Be,Ye+=" float-"+Be):ze&&(Ge.textAlign=ze,Ye+=" align-"+ze),ot?v.default.createElement("div",{className:"media-wrap image-wrap"+Ye,style:Ge},v.default.createElement("a",{style:{display:"inline-block"},href:ot,target:at},v.default.createElement("img",x({},Q,Te,{src:Ue,width:_e,height:Ze,style:{width:_e,height:Ze}})))):v.default.createElement("div",{className:"media-wrap image-wrap"+Ye,style:Ge},v.default.createElement("img",x({},Q,Te,{src:Ue,width:_e,height:Ze,style:{width:_e,height:Ze}})))}else return ye==="audio"?v.default.createElement("div",{className:"media-wrap audio-wrap"},v.default.createElement("audio",x({controls:!0},Q,Te,{src:Ue}))):ye==="video"?v.default.createElement("div",{className:"media-wrap video-wrap"},v.default.createElement("video",x({controls:!0},Q,Te,{src:Ue,width:_e,height:Ze}))):ye==="embed"?v.default.createElement("div",{className:"media-wrap embed-wrap"},v.default.createElement("div",{dangerouslySetInnerHTML:{__html:Ue}})):ye==="hr"?v.default.createElement("hr",null):v.default.createElement("p",null)},l=function(H){return function(j,U){var O=H.entityExportFn,re=j.type.toLowerCase();if(O){var Q=O(j,U);if(Q)return Q}if(re==="link"){var ue=j.data.nodeAttributes||{},Se=ue.class,ye=p(ue,["class"]);return ye.className=Se,v.default.createElement("a",x({href:j.data.href,target:j.data.target},ye))}}},g=function(H){return function(j){var U=H.unitExportFn||d;if(H.styleExportFn){var O=H.styleExportFn(j,H);if(O)return O}if(j=j.toLowerCase(),j==="strikethrough")return v.default.createElement("span",{style:{textDecoration:"line-through"}});if(j==="superscript")return v.default.createElement("sup",null);if(j==="subscript")return v.default.createElement("sub",null);if(j.indexOf("color-")===0)return v.default.createElement("span",{style:{color:"#"+S(j)}});if(j.indexOf("bgcolor-")===0)return v.default.createElement("span",{style:{backgroundColor:"#"+S(j)}});if(j.indexOf("fontsize-")===0)return v.default.createElement("span",{style:{fontSize:U(S(j),"font-size","html")}});if(j.indexOf("lineheight-")===0)return v.default.createElement("span",{style:{lineHeight:U(S(j),"line-height","html")}});if(j.indexOf("letterspacing-")===0)return v.default.createElement("span",{style:{letterSpacing:U(S(j),"letter-spacing","html")}});if(j.indexOf("fontfamily-")===0){var re=H.fontFamilies.find(function(Q){return Q.name.toLowerCase()===S(j)});return re?v.default.createElement("span",{style:{fontFamily:re.family}}):void 0}}},D=function(H){return function(j){var U=H.blockExportFn,O=H.contentState;if(U){var re=U(O,j);if(re)return re}var Q="",ue=j.type.toLowerCase(),Se=j.data,ye=Se.textAlign,V=Se.textIndent,Be=Se.nodeAttributes,ze=Be===void 0?{}:Be,Le=a(ze);if((ye||V)&&(Q=' style="',ye&&(Q+="text-align:"+ye+";"),V&&!isNaN(V)&&V>0&&(Q+="text-indent:"+V*2+"em;"),Q+='"'),ue==="atomic")return C(j,O,ze);if(ue==="code-block"){var Ue=O.getBlockBefore(j.key),ot=O.getBlockAfter(j.key),at=Ue&&Ue.getType(),_e=ot&&ot.getType(),Ze="",Te="";return at!=="code-block"?Ze="":Ze="",_e!=="code-block"?Te="":Te="
",{start:Ze,end:Te}}else{if(r[ue])return{start:"<"+r[ue]+Q+Le+">",end:""};if(ue==="unordered-list-item")return{start:"",end:"",nest:v.default.createElement("ul",null)};if(ue==="ordered-list-item")return{start:"",end:"",nest:v.default.createElement("ol",null)}}}},F=function(H,j){return function(U,O,re){if(!O||!O.style)return re;var Q=H.unitImportFn||f,ue=re;return[].forEach.call(O.style,function(Se){if(U==="span"&&Se==="color"){var ye=i(O.style.color);ue=ye?ue.add("COLOR-"+ye.replace("#","").toUpperCase()):ue}else if(U==="span"&&Se==="background-color"){var V=i(O.style.backgroundColor);ue=V?ue.add("BGCOLOR-"+V.replace("#","").toUpperCase()):ue}else if(U==="span"&&Se==="font-size")ue=ue.add("FONTSIZE-"+Q(O.style.fontSize,"font-size",j));else if(U==="span"&&Se==="line-height"&&!isNaN(parseFloat(O.style.lineHeight,10)))ue=ue.add("LINEHEIGHT-"+Q(O.style.lineHeight,"line-height",j));else if(U==="span"&&Se==="letter-spacing"&&!isNaN(parseFloat(O.style.letterSpacing,10)))ue=ue.add("LETTERSPACING-"+Q(O.style.letterSpacing,"letter-spacing",j));else if(U==="span"&&Se==="text-decoration")O.style.textDecoration==="line-through"?ue=ue.add("STRIKETHROUGH"):O.style.textDecoration==="underline"&&(ue=ue.add("UNDERLINE"));else if(U==="span"&&Se==="font-family"){var Be=H.fontFamilies.find(function(ze){return ze.family.toLowerCase()===O.style.fontFamily.toLowerCase()});if(!Be)return;ue=ue.add("FONTFAMILY-"+Be.name.toUpperCase())}}),U==="sup"?ue=ue.add("SUPERSCRIPT"):U==="sub"&&(ue=ue.add("SUBSCRIPT")),H.styleImportFn&&(ue=H.styleImportFn(U,O,ue,j)||ue),ue}},y=function(H,j){return function(U,O,re){if(H&&H.entityImportFn){var Q=H.entityImportFn(U,O,re,j);if(Q)return Q}U=U.toLowerCase();var ue=O.alt,Se=O.title,ye=O.id,V=O.controls,Be=O.autoplay,ze=O.loop,Le=O.poster,Ue={},ot={};if(ye&&(Ue.id=ye),ue&&(Ue.alt=ue),Se&&(Ue.title=Se),V&&(Ue.controls=V),Be&&(Ue.autoPlay=Be),ze&&(Ue.loop=ze),Le&&(Ue.poster=Le),O.attributes&&Object.keys(O.attributes).forEach(function(nt){var be=O.attributes[nt];s.indexOf(be.name)===-1&&(ot[be.name]=be.value)}),U==="a"&&!O.querySelectorAll("img").length){var at=O.getAttribute("href"),_e=O.getAttribute("target");return re("LINK","MUTABLE",{href:at,target:_e,nodeAttributes:ot})}else{if(U==="audio")return re("AUDIO","IMMUTABLE",{url:O.getAttribute("src"),meta:Ue,nodeAttributes:ot});if(U==="video")return re("VIDEO","IMMUTABLE",{url:O.getAttribute("src"),meta:Ue,nodeAttributes:ot});if(U==="img"){var Ze=O.parentNode,Te={meta:Ue},Ge=O.style,Ye=Ge.width,ut=Ge.height;return Te.url=O.getAttribute("src"),Ye&&(Te.width=Ye),ut&&(Te.height=ut),Ze.nodeName.toLowerCase()==="a"&&(Te.link=Ze.getAttribute("href"),Te.link_target=Ze.getAttribute("target")),re("IMAGE","IMMUTABLE",Te)}else{if(U==="hr")return re("HR","IMMUTABLE",{});if(O.parentNode&&O.parentNode.classList.contains("embed-wrap")){var bt=O.innerHTML||O.outerHTML;if(bt)return re("EMBED","IMMUTABLE",{url:bt})}}}}},L=function(H,j){return function(U,O){if(H&&H.blockImportFn){var re=H.blockImportFn(U,O,j);if(re)return re}var Q={},ue=O.style||{};if(O.attributes&&Object.keys(O.attributes).forEach(function(ye){var V=O.attributes[ye];h.indexOf(V.name)===-1&&(Q[V.name]=V.value)}),O.classList&&O.classList.contains("media-wrap"))return{type:"atomic",data:{nodeAttributes:Q,float:ue.float,alignment:ue.textAlign}};if(U==="img")return{type:"atomic",data:{nodeAttributes:Q,float:ue.float,alignment:ue.textAlign}};if(U==="hr")return{type:"atomic",data:{nodeAttributes:Q}};if(U==="pre")return O.innerHTML=O.innerHTML.replace(//g,"").replace(/<\/code>/g,""),{type:"code-block",data:{nodeAttributes:Q}};if(E.indexOf(U)!==-1){var Se={nodeAttributes:Q};return ue.textAlign&&(Se.textAlign=ue.textAlign),ue.textIndent&&(Se.textIndent=/^\d+em$/.test(ue.textIndent)?Math.ceil(parseInt(ue.textIndent,10)/2):1),{type:u[E.indexOf(U)],data:Se}}}},T=P.getToHTMLConfig=function(H){return{styleToHTML:g(H),entityToHTML:l(H),blockToHTML:D(H)}},I=P.getFromHTMLConfig=function(H){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unknow";return{htmlToStyle:F(H,j),htmlToEntity:y(H,j),htmlToBlock:L(H,j)}}},36444:function(z,P,o){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.convertRawToEditorState=P.convertEditorStateToRaw=P.convertHTMLToEditorState=P.convertEditorStateToHTML=P.convertHTMLToRaw=P.convertRawToHTML=void 0;var x=Object.assign||function(a){for(var c=1;c=0)&&(!Object.prototype.propertyIsEnumerable.call(i,E)||(u[E]=i[E]))}return u}f.exports=c},function(f,h,s){"use strict";var a=s(30);function c(i){var r=i.getSelection();return r.isCollapsed()?null:a(i.getCurrentContent(),r)}f.exports=c},function(f,h){f.exports=d},function(f,h,s){var a=s(36),c=s(37),i=s(38);function r(u,E){return a(u)||c(u,E)||i()}f.exports=r},function(f,h){function s(a,c){if(a==null)return{};var i={},r=Object.keys(a),u,E;for(E=0;E=0)&&(i[u]=a[u]);return i}f.exports=s},function(f,h){function s(a,c){return f.exports=s=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},s(a,c)}f.exports=s},function(f,h){function s(a){if(Array.isArray(a)){for(var c=0,i=new Array(a.length);c0&&arguments[0]!==void 0?arguments[0]:L;return a(this,U),c(this,j.call(this,w(O)))}return U.prototype.getKey=function(){return this.get("key")},U.prototype.getType=function(){return this.get("type")},U.prototype.getText=function(){return this.get("text")},U.prototype.getCharacterList=function(){return this.get("characterList")},U.prototype.getLength=function(){return this.getText().length},U.prototype.getDepth=function(){return this.get("depth")},U.prototype.getData=function(){return this.get("data")},U.prototype.getInlineStyleAt=function(re){var Q=this.getCharacterList().get(re);return Q?Q.getStyle():y},U.prototype.getEntityAt=function(re){var Q=this.getCharacterList().get(re);return Q?Q.getEntity():null},U.prototype.getChildKeys=function(){return this.get("children")},U.prototype.getParentKey=function(){return this.get("parent")},U.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},U.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},U.prototype.findStyleRanges=function(re,Q){E(this.getCharacterList(),T,re,Q)},U.prototype.findEntityRanges=function(re,Q){E(this.getCharacterList(),I,re,Q)},U}(D(L));f.exports=H},function(f,h,s){"use strict";var a={},c=Math.pow(2,24);function i(){for(var r=void 0;r===void 0||a.hasOwnProperty(r)||!isNaN(+r);)r=Math.floor(Math.random()*c).toString(32);return a[r]=!0,r}f.exports=i},function(f,h,s){"use strict";var a=s(19),c=s(20),i=s(35);function r(C,l){var g=C.getBlockMap(),D=C.getEntityMap(),F={},y=l.getStartKey(),L=l.getStartOffset(),T=g.get(y),I=E(D,T,L);I!==T&&(F[y]=I);var w=l.getEndKey(),H=l.getEndOffset(),j=g.get(w);y===w&&(j=I);var U=E(D,j,H);return U!==j&&(F[w]=U),Object.keys(F).length?C.merge({blockMap:g.merge(F),selectionAfter:l}):C.set("selectionAfter",l)}function u(C,l,g){var D;return c(C,function(F,y){return F.getEntity()===y.getEntity()},function(F){return F.getEntity()===l},function(F,y){F<=g&&y>=g&&(D={start:F,end:y})}),typeof D!="object"&&i(!1),D}function E(C,l,g){var D=l.getCharacterList(),F=g>0?D.get(g-1):void 0,y=g1){var X=Xe.EditorState.push(n,Xe.Modifier.removeRange(n.getCurrentContent(),n.getSelection(),"backward"),"remove-range");W.setValue(X)}},Me=function(R,W,n){if(n.editorProps.readOnly||n.editorProps.disabled)return"handled";if(window&&window.__BRAFT_DRAGING__IMAGE__){var K=Xe.EditorState.forceSelection(n.state.editorState,R);return K=be.ContentUtils.insertMedias(K,[window.__BRAFT_DRAGING__IMAGE__.mediaData]),K=be.ContentUtils.removeBlock(K,window.__BRAFT_DRAGING__IMAGE__.block,K.getSelection()),window.__BRAFT_DRAGING__IMAGE__=null,n.lockOrUnlockEditor(!0),n.setValue(K),"handled"}else if(!W||!W.getText())return"handled";return"not-handled"},We=function(R,W){var n=r()({},W.constructor.defaultProps.media,W.editorProps.media),K=n.pasteImage,X=n.validateFn,ie=n.imagePasteLimit;return K&&R.slice(0,ie).forEach(function(Y){if(Y&&Y.type.indexOf("image")>-1&&W.braftFinder){var se=X?X(Y):!0;se instanceof Promise?se.then(function(){W.braftFinder.uploadImage(Y,function(de){W.isLiving&&W.setValue(be.ContentUtils.insertMedias(W.state.editorState,[de]))})}):se&&W.braftFinder.uploadImage(Y,function(de){W.isLiving&&W.setValue(be.ContentUtils.insertMedias(W.state.editorState,[de]))})}}),R[0]&&R[0].type.indexOf("image")>-1&&K?"handled":"not-handled"},lt=function(R,W,n){return n.editorProps.handleDroppedFiles&&n.editorProps.handleDroppedFiles(R,W,n)==="handled"?"handled":We(W,n)},me=function(R,W){return W.editorProps.handlePastedFiles&&W.editorProps.handlePastedFiles(R,W)==="handled"?"handled":We(R,W)},it=function(R,W){var n=le()(W.state.editorState);if(n&&n.toArray)try{var K=Xe.ContentState.createFromBlockArray(n.toArray()),X=Xe.EditorState.createWithContent(K),ie=R.clipboardData||window.clipboardData||R.originalEvent.clipboardData;X.setConvertOptions(W.state.editorState.convertOptions),ie.setData("text/html",X.toHTML()),ie.setData("text/plain",X.toText()),R.preventDefault()}catch(Y){console.warn(Y)}},qe=function(R,W,n,K){if(K.editorProps.handlePastedText&&K.editorProps.handlePastedText(R,W,n,K)==="handled")return"handled";if(!W||K.editorProps.stripPastedStyles)return!1;var X=be.ColorUtils.detectColorsFromHTMLString(W);return K.setState({tempColors:[].concat(Q()(K.state.tempColors),Q()(X)).filter(function(ie){return K.editorProps.colors.indexOf(ie)===-1}).filter(function(ie,Y,se){return se.indexOf(ie)===Y})},function(){K.setValue(be.ContentUtils.insertHTML(n,W,"paste"))}),"handled"},ft=[],dt=[],pt=[],Tt=[],wt=[],Ot=[],Dt=[],jt=[],Bt=[],Qt=[],J=[],ae=[],N=function(R,W){return W?R.map(function(n){return!n.includeEditors&&!n.excludeEditors?n.data:n.includeEditors?n.includeEditors.indexOf(W)!==-1?n.data:!1:n.excludeEditors?n.excludeEditors.indexOf(W)!==-1?!1:n.data:!1}).filter(function(n){return n}):R.filter(function(n){return!n.includeEditors}).map(function(n){return n.data})},_=function(R){return N(pt,R)},Z=function(R){return N(ft,R)},fe=function(R){return N(dt,R,"decorators")},xe=function(R){return N(Tt,R)},Ce=function(R){return N(wt,R)},Ee=function(R){var W={};return N(Ot,R).forEach(function(n){W[n.inlineStyleName]=n.styleMap}),W},we=function(R){return N(Dt,R)},ge=function(R,W){return function(n,K,X){return N(Bt,W).forEach(function(ie){ie.importer&&ie.importer(n,K)&&(X=X.add(ie.inlineStyleName))}),R?R(n,K,X):X}},je=function(R,W){return function(n){n=n.toUpperCase();var K=R?R(n):void 0;return K||(N(Qt,W).find(function(X){if(X.inlineStyleName===n)return K=X.exporter,!0}),K)}},Qe=function(R,W){return function(n,K,X,ie){var Y=R?R(n,K,X,ie):null;return Y||(N(jt,W).find(function(se){var de=se.importer?se.importer(n,K,ie):null;return de&&(Y=X(se.entityType,de.mutability||"MUTABLE",de.data||{})),!!de}),Y)}},Oe=function(R,W){return function(n,K){var X=R?R(n,K):void 0;if(X)return X;var ie=n.type.toUpperCase();return N(jt,W).find(function(Y){if(Y.entityType===ie)return X=Y.exporter?Y.exporter(n,K):void 0,!0}),X}},He=function(R,W){return function(n,K,X){var ie=R?R(n,K,X):null;return ie||(N(J,W).find(function(Y){var se=Y.importer?Y.importer(n,K,X):void 0;return se&&(ie=se),!!se}),ie)}},Re=function(R,W){return function(n,K){var X=R?R(n,K):null;return X||(N(ae,W).find(function(ie){var Y=ie.exporter?ie.exporter(n,K):void 0;return Y&&(X=Y),!!Y}),X)}},ke=function q(R){if(R instanceof Array)return R.forEach(q),!1;if(!R||!R.type||typeof R.type!="string")return!1;var W=R.includeEditors,n=R.excludeEditors;if(R.type==="control")ft.push({includeEditors:W,excludeEditors:n,data:R.control});else if(R.type==="inline-style"){var K=R.name.toUpperCase();R.control&&ft.push({includeEditors:W,excludeEditors:n,data:r()({key:K,type:"inline-style",command:K},R.control)}),R.style&&Ot.push({includeEditors:W,excludeEditors:n,data:{inlineStyleName:K,styleMap:R.style}}),R.styleFn&&Dt.push({includeEditors:W,excludeEditors:n,data:{inlineStyleName:K,styleFn:R.styleFn}}),R.importer&&Bt.push({includeEditors:W,excludeEditors:n,data:{inlineStyleName:K,importer:R.importer}}),Qt.push({includeEditors:W,excludeEditors:n,data:{inlineStyleName:K,exporter:R.exporter?R.exporter(R):V.a.createElement("span",{style:R.style})}})}else if(R.type!=="block-style"){if(R.type==="entity"){var X=R.name.toUpperCase();R.control&&ft.push({includeEditors:W,excludeEditors:n,data:typeof R.control=="function"?R.control:r()({key:X,type:"entity",command:X,data:{mutability:R.mutability||"MUTABLE",data:R.data||{}}},R.control)}),jt.push({includeEditors:W,excludeEditors:n,data:{entityType:X,importer:R.importer,exporter:R.exporter}}),dt.push({includeEditors:W,excludeEditors:n,data:{type:"entity",decorator:{key:X,component:R.component}}})}else if(R.type==="block"){var ie=R.name;R.renderMap&&Tt.push({includeEditors:W,excludeEditors:n,data:{blockType:ie,renderMap:R.renderMap}}),R.rendererFn&&wt.push({includeEditors:W,excludeEditors:n,data:{blockType:ie,rendererFn:R.rendererFn}}),R.importer&&J.push({includeEditors:W,excludeEditors:n,data:{blockType:ie,importer:R.importer}}),R.exporter&&ae.push({includeEditors:W,excludeEditors:n,data:{blockType:ie,exporter:R.exporter}})}else if(R.type!=="atomic")if(R.type==="decorator"){var Y=R.decorator;Y&&Y.strategy&&Y.component?dt.push({includeEditors:W,excludeEditors:n,data:{type:"strategy",decorator:Y}}):Y&&Y.getDecorations&&dt.push({includeEditors:W,excludeEditors:n,data:{type:"class",decorator:Y}})}else R.type==="prop-interception"&&pt.push({includeEditors:W,excludeEditors:n,data:R.interceptor})}},gt=function(R){return R.use=ke,R},mt=function(q,R){var W=Object(Et.Map)({atomic:{element:""},"code-block":{element:"code",wrapper:V.a.createElement("pre",{className:"braft-code-block"})}});try{var n=xe(q.editorId);W=n.reduce(function(K,X){return K.merge(typeof X.renderMap=="function"?X.renderMap(q):X.renderMap)},W),R&&(typeof R=="function"?W=W.merge(R(q)):W=W.merge(R)),W=Xe.DefaultDraftBlockRenderMap.merge(W)}catch(K){console.warn(K)}return W},Ne=s(11),rt=s.n(Ne),It=s(24),et=s.n(It),ht=s(45),kt=s(46),_t=function(q){var R=q.active,W=q.onClick,n=q.className;return V.a.createElement("div",{onClick:function(){return W()},className:"bf-switch "+n+(R?" active":"")})},Kt=function(q,R){return[{key:"undo",title:q.controls.undo,text:V.a.createElement("i",{className:"bfi-undo"}),type:"editor-method",command:"undo"},{key:"redo",title:q.controls.redo,text:V.a.createElement("i",{className:"bfi-redo"}),type:"editor-method",command:"redo"},{key:"remove-styles",title:q.controls.removeStyles,text:V.a.createElement("i",{className:"bfi-format_clear"}),type:"editor-method",command:"removeSelectionInlineStyles"},{key:"hr",title:q.controls.hr,text:V.a.createElement("i",{className:"bfi-hr"}),type:"editor-method",command:"insertHorizontalLine"},{key:"bold",title:q.controls.bold,text:V.a.createElement("i",{className:"bfi-bold"}),type:"inline-style",command:"bold"},{key:"italic",title:q.controls.italic,text:V.a.createElement("i",{className:"bfi-italic"}),type:"inline-style",command:"italic"},{key:"underline",title:q.controls.underline,text:V.a.createElement("i",{className:"bfi-underlined"}),type:"inline-style",command:"underline"},{key:"strike-through",title:q.controls.strikeThrough,text:V.a.createElement("i",{className:"bfi-strikethrough"}),type:"inline-style",command:"strikethrough"},{key:"superscript",title:q.controls.superScript,text:V.a.createElement("i",{className:"bfi-superscript"}),type:"inline-style",command:"superscript"},{key:"subscript",title:q.controls.subScript,text:V.a.createElement("i",{className:"bfi-subscript"}),type:"inline-style",command:"subscript"},{key:"headings",title:q.controls.headings,type:"headings"},{key:"blockquote",title:q.controls.blockQuote,text:V.a.createElement("i",{className:"bfi-quote"}),type:"block-type",command:"blockquote"},{key:"code",title:q.controls.code,text:V.a.createElement("i",{className:"bfi-code"}),type:"block-type",command:"code-block"},{key:"list-ul",title:q.controls.unorderedList,text:V.a.createElement("i",{className:"bfi-list"}),type:"block-type",command:"unordered-list-item"},{key:"list-ol",title:q.controls.orderedList,text:V.a.createElement("i",{className:"bfi-list-numbered"}),type:"block-type",command:"ordered-list-item"},{key:"link",title:q.controls.link,type:"link"},{key:"text-color",title:q.controls.color,type:"text-color"},{key:"line-height",title:q.controls.lineHeight,type:"line-height"},{key:"letter-spacing",title:q.controls.letterSpacing,type:"letter-spacing"},{key:"text-indent",title:q.controls.textIndent,type:"text-indent"},{key:"font-size",title:q.controls.fontSize,type:"font-size"},{key:"font-family",title:q.controls.fontFamily,type:"font-family"},{key:"text-align",title:q.controls.textAlign,type:"text-align"},{key:"media",title:q.controls.media,text:V.a.createElement("i",{className:"bfi-media"}),type:"media"},{key:"emoji",title:q.controls.emoji,text:V.a.createElement("i",{className:"bfi-emoji"}),type:"emoji"},{key:"clear",title:q.controls.clear,text:V.a.createElement("i",{className:"bfi-clear_all"}),type:"editor-method",command:"clearEditorContent"},{key:"fullscreen",title:R.state.isFullscreen?q.controls.exitFullscreen:q.controls.fullscreen,text:V.a.createElement("i",{className:R.state.isFullscreen?"bfi-fullscreen-exit":"bfi-fullscreen"}),type:"editor-method",command:"toggleFullscreen"},{key:"modal",type:"modal"},{key:"button",type:"button"},{key:"dropdown",type:"dropdown"},{key:"component",type:"component"}]},Vt={"float-left":{text:V.a.createElement("span",{"data-float":"left"},"\uE91E"),command:"setImageFloat|left"},"float-right":{text:V.a.createElement("span",{"data-float":"right"},"\uE914"),command:"setImageFloat|right"},"align-left":{text:V.a.createElement("span",{"data-align":"left"},"\uE027"),command:"setImageAlignment|left"},"align-center":{text:V.a.createElement("span",{"data-align":"center"},"\uE028"),command:"setImageAlignment|center"},"align-right":{text:V.a.createElement("span",{"data-align":"right"},"\uE029"),command:"setImageAlignment|right"},size:{text:V.a.createElement("span",null,"\uE3C2"),command:"toggleSizeEditor"},link:{text:V.a.createElement("span",null,"\uE91A"),command:"toggleLinkEditor"},remove:{text:V.a.createElement("span",null,"\uE9AC"),command:"removeImage"}},cn=function(q){j()(R,q);function R(){var W,n;l()(this,R);for(var K=arguments.length,X=new Array(K),ie=0;ien.zoom?(Ve=Math.floor(de*n.zoom),n.setState({tempWidth:Ve}),Je=de):se/de1&&arguments[1]!==void 0?arguments[1]:{},W=Ee(q.editorId);return r()({SUPERSCRIPT:{position:"relative",top:"-8px",fontSize:"11px"},SUBSCRIPT:{position:"relative",bottom:"-8px",fontSize:"11px"}},W,R)},pn=function(R){return R.split("-")[1]},Jn=function(q,R){return function(W,n){var K={},X=R.fontFamilies,ie=R.unitExportFn,Y=R.customStyleFn,se=we(q.editorId);return se.forEach(function(de){K=de.styleFn?de.styleFn(W,n,K):K}),K=Y?Y(W,n,K):{},W.forEach(function(de){de.indexOf("COLOR-")===0?K.color="#"+pn(de):de.indexOf("BGCOLOR-")===0?K.backgroundColor="#"+pn(de):de.indexOf("FONTSIZE-")===0?K.fontSize=ie(pn(de),"font-size","editor"):de.indexOf("LINEHEIGHT-")===0?K.lineHeight=ie(pn(de),"line-height","editor"):de.indexOf("LETTERSPACING-")===0?K.letterSpacing=ie(pn(de),"letter-spacing","editor"):de.indexOf("TEXTINDENT-")===0?K.textIndent=ie(pn(de),"text-indent","editor"):de.indexOf("FONTFAMILY-")===0&&(K.fontFamily=(X.find(function(Ve){return Ve.name.toUpperCase()===pn(de)})||{}).family||"")}),K}},Wt=s(18),an=s.n(Wt),kn=function(q){var R=q.children,W=q.entityKey,n=q.contentState,K=n.getEntity(W).getData(),X=K.href,ie=K.target;return V.a.createElement("span",{className:"bf-link-wrap"},V.a.createElement("a",{onClick:function(se){return $n(se,X)},className:"bf-link",href:X,target:ie},R))},$n=function(R,W){if(R.getModifierState("Control")||R.getModifierState("Meta")){var n=document.createElement("a");n.href=W,n.target=R.currentTarget.target,n.click()}},Fn="-";an.a.prototype.getDecorations=function(q,R){var W=Array(q.getText().length).fill(null);return this.decorators.forEach(function(n,K){n.getDecorations(q,R).forEach(function(X,ie){!X||(X=K+Fn+X,W[ie]=X)})}),Ut.a.List(W)};var _n=[{type:"entity",decorator:{key:"LINK",component:kn}}],jn=function(R){return function(W,n,K){W.findEntityRanges(function(X){var ie=X.getEntity();return ie!==null&&K.getEntity(ie).getType()===R},n)}},Er=function(q){var R=fe(q),W=[].concat(_n,Q()(R.filter(function(X){return X.type==="entity"}))),n=R.filter(function(X){return X.type==="strategy"}),K=R.filter(function(X){return X.type==="class"});return new an.a([].concat(Q()(K.map(function(X){return X.decorator})),[new Xe.CompositeDecorator(n.map(function(X){return X.decorator})),new Xe.CompositeDecorator(W.map(function(X){return{strategy:jn(X.decorator.key),component:X.decorator.component}}))]))},Wn=mt,xn=yr,Zn=Ar,hn=xt,Pn=Jn,qt=Er,Lt=s(53),Sr=s(54),qn=s(55),Tn=[],Dn=!1,Kn=!1,Yt={resolve:function(R){var W=be.BaseUtils.UniqueIndex();return Tn.push({id:W,eventHandler:R}),W},unresolve:function(R){Tn=Tn.filter(function(W){return W.id!==R})}};!Dn&&(typeof window=="undefined"?"undefined":c()(window))==="object"&&(window.addEventListener("resize",function(q){clearTimeout(Kn),Kn=setTimeout(function(){Tn.map(function(R){typeof R.eventHandler=="function"&&R.eventHandler(q)}),Kn=!1},100)}),Dn=!0);var Gt=function(q){j()(R,q);function R(){var W,n;l()(this,R);for(var K=arguments.length,X=new Array(K),ie=0;ie-1&&(se=de),n.props.editor.setValue(be.ContentUtils.toggleSelectionAlignment(n.props.editorState,se)),n.props.editor.requestFocus()}),n}return D()(R,[{key:"componentWillReceiveProps",value:function(n){this.setState({currentAlignment:be.ContentUtils.getSelectionBlockData(n.editorState,"textAlign")})}},{key:"render",value:function(){var n=this,K=[this.props.language.controls.alignLeft,this.props.language.controls.alignCenter,this.props.language.controls.alignRight,this.props.language.controls.alignJustify];return V.a.createElement(gn,null,this.props.textAligns.map(function(X,ie){return V.a.createElement("button",{type:"button",key:ie,"data-title":K[ie],"data-alignment":X,className:"control-item button "+(X===n.state.currentAlignment?"active":null),onClick:n.setAlignment},V.a.createElement("i",{className:"bfi-align-"+X}))}))}}]),R}(V.a.Component),Ir=s(62),ir=function(R,W){var n=R.currentTarget.dataset.emoji,K=W.hooks("insert-emoji",n)(n);if(K===!1)return!1;typeof K=="string"&&(n=K),W.editor.setValue(be.ContentUtils.insertText(W.editorState,n)),W.editor.requestFocus()},ar=function(q){return V.a.createElement(Gt,{caption:q.defaultCaption,autoHide:!0,showArrow:!1,getContainerNode:q.getContainerNode,title:q.language.controls.emoji,className:"control-item dropdown bf-emoji-dropdown"},V.a.createElement("div",{className:"bf-emojis-wrap"},V.a.createElement("ul",{className:"bf-emojis"},q.emojis.map(function(R,W){return V.a.createElement("li",{key:W,"data-emoji":R,onClick:function(K){return ir(K,q)}},R)}))))},un=s(63),Yn=function(R,W){var n=R.currentTarget.dataset.size,K=W.hooks("toggle-letter-spacing",n)(n);if(K===!1)return!1;isNaN(K)||(n=K),W.editor.setValue(be.ContentUtils.toggleSelectionLetterSpacing(W.editorState,n)),W.editor.requestFocus()},ur=function(q){var R=null,W=null,n=null;return q.letterSpacings.find(function(K){return be.ContentUtils.selectionHasInlineStyle(q.editorState,"LETTERSPACING-"+K)?(R=K,W=K,!0):!1}),V.a.createElement(Gt,{autoHide:!0,caption:R||q.defaultCaption,getContainerNode:q.getContainerNode,title:q.language.controls.letterSpacing,ref:function(X){return n=X},className:"control-item dropdown bf-letter-spacing-dropdown"},V.a.createElement("ul",{className:"bf-letter-spacings"},q.letterSpacings.map(function(K,X){return V.a.createElement("li",{key:X,className:K===W?"active":null,"data-size":K,onClick:function(Y){Yn(Y,q),n.hide()}},K)})))},lr=function(q){j()(R,q);function R(){var W,n;l()(this,R);for(var K=arguments.length,X=new Array(K),ie=0;ie=6,className:"control-item button button-indent-increase".concat(n>0&&n<6?" active":""),onClick:this.increaseIndent},V.a.createElement("i",{className:"bfi-indent-increase"})),V.a.createElement("button",{key:1,type:"button","data-title":K.controls.decreaseIndent,disabled:n<=0,className:"control-item button button-indent-decrease",onClick:this.decreaseIndent},V.a.createElement("i",{className:"bfi-indent-decrease"})))}}]),R}(V.a.Component),Xt={"inline-style":"toggle-inline-style","block-type":"change-block-type","editor-method":"exec-editor-command"},zt={superscript:"subscript",subscript:"superscript"},Un=function(R,W,n,K){return n=n.map(function(X){return typeof X=="function"?X(R):X}),K=K.map(function(X){return typeof X=="function"?X(R):X}),n.length===0&&K.length===0?W:W.map(function(X){return K.find(function(ie){return ie.replace===(X.key||X)})||n.find(function(ie){return ie.replace===(X.key||X)})||X}).concat(n.length?"separator":"").concat(n.filter(function(X){return!X.replace})).concat(K.filter(function(X){return typeof X=="string"||!X.replace}))},sr=function(q){j()(R,q);function R(){var W,n;l()(this,R);for(var K=arguments.length,X=new Array(K),ie=0;ie2&&arguments[2]!==void 0?arguments[2]:{},ie=this.props.hooks(Xt[K]||K,n)(n),Y=this.props.editorState;if(ie===!1)return!1;if(typeof ie=="string"&&(n=ie),K==="inline-style"){var se=zt[n];se&&be.ContentUtils.selectionHasInlineStyle(Y,se)&&(Y=be.ContentUtils.toggleSelectionInlineStyle(Y,se)),this.props.editor.setValue(be.ContentUtils.toggleSelectionInlineStyle(Y,n))}else K==="block-type"?this.props.editor.setValue(be.ContentUtils.toggleSelectionBlockType(Y,n)):K==="entity"?this.props.editor.setValue(be.ContentUtils.toggleSelectionEntity(Y,{type:n,mutability:X.mutability||"MUTABLE",data:X.data||{}})):K==="editor-method"&&this.props.editor[n]&&this.props.editor[n]()}},{key:"render",value:function(){var n=this,K=this.props,X=K.editor,ie=K.editorId,Y=K.editorState,se=K.className,de=K.style,Ve=K.controls,Je=K.media,$e=K.extendControls,ct=K.language,yt=K.hooks,Ht=K.colors,Pt=K.colorPicker,Ct=K.colorPickerTheme,Ft=K.colorPickerAutoHide,vn=K.headings,ln=K.fontSizes,sn=K.fontFamilies,tn=K.emojis,mn=K.getContainerNode,On=K.lineHeights,nn=K.letterSpacings,yn=K.textAligns,Rn=K.textBackgroundColor,Mt=K.allowInsertLinkText,$t=K.defaultLinkTarget,e=be.ContentUtils.getSelectionBlockType(Y),t={editor:X,editorId:ie,editorState:Y,language:ct,getContainerNode:mn,hooks:yt},m=[],k=Kt(ct,X),M=Z(ie),G=Un(t,Ve,M,$e);return this.allControls=G,V.a.createElement("div",{className:"bf-controlbar ".concat(se||""),style:de,onMouseDown:this.preventDefault},G.map(function($,ne){var ce=typeof $=="string"?$:$.key;if(typeof ce!="string"||m.indexOf(ce)>-1)return null;if(ce.toLowerCase()==="separator")return V.a.createElement("span",{key:ne,className:"separator-line"});var ee=k.find(function(De){return De.key.toLowerCase()===ce.toLowerCase()});if(typeof $!="string"&&(ee=r()({},ee,$)),!ee)return null;if(m.push(ce),ee.type==="headings")return V.a.createElement(nr,rt()({key:ne,headings:vn,current:e,onChange:function(Pe){return n.applyControl(Pe,"block-type")}},t));if(ee.type==="text-color")return V.a.createElement(br,rt()({key:ne,colors:Ht,colorPicker:Pt,theme:Ct,autoHide:Ft,enableBackgroundColor:Rn},t));if(ee.type==="font-size")return V.a.createElement(rr,rt()({key:ne,fontSizes:ln,defaultCaption:ee.title},t));if(ee.type==="line-height")return V.a.createElement(Bn,rt()({key:ne,lineHeights:On,defaultCaption:ee.title},t));if(ee.type==="letter-spacing")return V.a.createElement(ur,rt()({key:ne,letterSpacings:nn,defaultCaption:ee.title},t));if(ee.type==="text-indent")return V.a.createElement(lr,rt()({key:ne,defaultCaption:ee.title},t));if(ee.type==="font-family")return V.a.createElement(Qn,rt()({key:ne,fontFamilies:sn,defaultCaption:ee.title},t));if(ee.type==="emoji")return V.a.createElement(ar,rt()({key:ne,emojis:tn,defaultCaption:ee.text},t));if(ee.type==="link")return V.a.createElement(wn,rt()({key:ne,defaultLinkTarget:$t,allowInsertLinkText:Mt},t));if(ee.type==="text-align")return V.a.createElement(At,rt()({key:ne,textAligns:yn},t));if(ee.type==="media")return!Je.image&&!Je.video&&!Je.audio?null:V.a.createElement("button",{type:"button",key:ne,"data-title":ee.title,disabled:ee.disabled,className:"control-item media button",onClick:n.openBraftFinder},ee.text);if(ee.type==="dropdown")return V.a.createElement(Gt,rt()({key:ne,className:"control-item extend-control-item dropdown ".concat(ee.className||""),caption:ee.text,htmlCaption:ee.html,showArrow:ee.showArrow,title:ee.title,arrowActive:ee.arrowActive,theme:ee.theme,autoHide:ee.autoHide,disabled:ee.disabled,ref:ee.ref},t),ee.component);if(ee.type==="modal")return V.a.createElement("button",{type:"button",key:ne,"data-title":ee.title,disabled:ee.disabled,className:"control-item extend-control-item button ".concat(ee.className||""),dangerouslySetInnerHTML:ee.html?{__html:ee.html}:null,onClick:function(Pe){ee.modal&&ee.modal.id&&(n.extendedModals[ee.modal.id]?(n.extendedModals[ee.modal.id].active=!0,n.extendedModals[ee.modal.id].update(r()({},ee.modal,{language:ct}))):(n.extendedModals[ee.modal.id]=on(r()({},ee.modal,{language:ct})),ee.modal.onCreate&&ee.modal.onCreate(n.extendedModals[ee.modal.id]))),ee.onClick&&ee.onClick(Pe)}},ee.html?null:ee.text);if(ee.type==="component")return V.a.createElement("div",{key:ne,className:"component-wrapper ".concat(ee.className||"")},ee.component);if(ee.type==="button")return V.a.createElement("button",{type:"button",key:ne,"data-title":ee.title,disabled:ee.disabled,className:"control-item button ".concat(ee.className||""),dangerouslySetInnerHTML:ee.html?{__html:ee.html}:null,onClick:function(Pe){return ee.onClick&&ee.onClick(Pe)}},ee.html?null:ee.text);if(ee){var he=!1;return ee.command==="undo"?he=Y.getUndoStack().size===0:ee.command==="redo"&&(he=Y.getRedoStack().size===0),V.a.createElement("button",{type:"button",key:ne,disabled:he,"data-title":ee.title,className:n.getControlItemClassName({type:ee.type,command:ee.command}),onClick:function(){return n.applyControl(ee.command,ee.type,ee.data)}},ee.text)}}))}},{key:"preventDefault",value:function(n){var K=n.target.tagName.toLowerCase();K==="input"||K==="label"||n.preventDefault()}}]),R}(V.a.Component),kr=function(R){return function(W){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R[W]||function(){return n}}},cr=function(R,W){return R.filter(function(n){return!W.find(function(K){return K.toLowerCase()===n.toLowerCase()})}).filter(function(n,K,X){return X.indexOf(n)===K})},St=function(R,W){return[].concat(Q()(R.controls),Q()(R.extendControls)).find(function(n){return n===W||n.key===W})&&R.excludeControls.indexOf(W)===-1},En=function(R){var W=R.editorId||R.id,n=r()({},te.converts,R.converts,{fontFamilies:R.fontFamilies});return n.styleImportFn=ge(n.styleImportFn,W),n.styleExportFn=je(n.styleExportFn,W),n.entityImportFn=Qe(n.entityImportFn,W),n.entityExportFn=Oe(n.entityExportFn,W),n.blockImportFn=He(n.blockImportFn,W),n.blockExportFn=Re(n.blockExportFn,W),n},Mn=function(q){j()(R,q);function R(W){var n;l()(this,R),n=y()(this,T()(R).call(this,W)),O()(w()(n),"onChange",function(Y,se){Y instanceof Xe.EditorState||(Y=Xe.EditorState.set(Y,{decorator:n.editorDecorators})),Y.convertOptions||Y.setConvertOptions(En(n.editorProps)),n.setState({editorState:Y},function(){n.props.onChange&&n.props.onChange(Y),se&&se(Y)})}),O()(w()(n),"getDraftInstance",function(){return n.draftInstance}),O()(w()(n),"getFinderInstance",function(){return n.braftFinder}),O()(w()(n),"getValue",function(){return n.state.editorState}),O()(w()(n),"setValue",function(Y,se){return n.onChange(Y,se)}),O()(w()(n),"forceRender",function(){var Y=n.state.editorState.getSelection();n.setValue(Xe.EditorState.set(n.state.editorState,{decorator:n.editorDecorators}),function(){n.setValue(Xe.EditorState.forceSelection(n.state.editorState,Y))})}),O()(w()(n),"onTab",function(Y){Ae("tab",n.state.editorState,w()(n))==="handled"&&Y.preventDefault(),n.editorProps.onTab&&n.editorProps.onTab(Y)}),O()(w()(n),"onFocus",function(){n.isFocused=!0,n.editorProps.onFocus&&n.editorProps.onFocus(n.state.editorState)}),O()(w()(n),"onBlur",function(){n.isFocused=!1,n.editorProps.onBlur&&n.editorProps.onBlur(n.state.editorState)}),O()(w()(n),"requestFocus",function(){setTimeout(function(){return n.draftInstance.focus()},0)}),O()(w()(n),"handleKeyCommand",function(Y,se){return Ae(Y,se,w()(n))}),O()(w()(n),"handleReturn",function(Y,se){return ve(Y,se,w()(n))}),O()(w()(n),"handleBeforeInput",function(Y,se){return Fe(Y,se,w()(n))}),O()(w()(n),"handleDrop",function(Y,se){return Me(Y,se,w()(n))}),O()(w()(n),"handleDroppedFiles",function(Y,se){return lt(Y,se,w()(n))}),O()(w()(n),"handlePastedFiles",function(Y){return me(Y,w()(n))}),O()(w()(n),"handleCopyContent",function(Y){return it(Y,w()(n))}),O()(w()(n),"handlePastedText",function(Y,se,de){return qe(Y,se,de,w()(n))}),O()(w()(n),"handleCompositionStart",function(Y){return Ie(Y,w()(n))}),O()(w()(n),"undo",function(){n.setValue(be.ContentUtils.undo(n.state.editorState))}),O()(w()(n),"redo",function(){n.setValue(be.ContentUtils.redo(n.state.editorState))}),O()(w()(n),"removeSelectionInlineStyles",function(){n.setValue(be.ContentUtils.removeSelectionInlineStyles(n.state.editorState))}),O()(w()(n),"insertHorizontalLine",function(){n.setValue(be.ContentUtils.insertHorizontalLine(n.state.editorState))}),O()(w()(n),"clearEditorContent",function(){n.setValue(be.ContentUtils.clear(n.state.editorState),function(Y){n.setValue(be.ContentUtils.toggleSelectionIndent(Y,0))})}),O()(w()(n),"toggleFullscreen",function(Y){n.setState({isFullscreen:typeof Y!="undefined"?Y:!n.state.isFullscreen},function(){n.editorProps.onFullscreen&&n.editorProps.onFullscreen(n.state.isFullscreen)})}),O()(w()(n),"setEditorContainerNode",function(Y){n.containerNode=Y}),n.editorProps=n.getEditorProps(W),n.editorDecorators=qt(n.editorProps.editorId||n.editorProps.id),n.isFocused=!1,n.isLiving=!1,n.braftFinder=null,n.valueInitialized=!!(n.props.defaultValue||n.props.value);var K=(n.props.defaultValue||n.props.value)instanceof Xe.EditorState?n.props.defaultValue||n.props.value:Xe.EditorState.createEmpty(n.editorDecorators);K.setConvertOptions(En(n.editorProps));var X=[];if(be.ContentUtils.isEditorState(K)){var ie=be.ColorUtils.detectColorsFromDraftState(K.toRAW(!0));K.setConvertOptions(En(n.editorProps)),X=cr(ie,n.editorProps.colors)}return n.state={tempColors:X,editorState:K,isFullscreen:!1,draftProps:{}},n.containerNode=null,n}return D()(R,[{key:"getEditorProps",value:function(n){var K=this;n=n||this.props;var X=n,ie=X.value,Y=X.defaultValue,se=X.onChange,de=E()(X,["value","defaultValue","onChange"]),Ve=_(de.editorId||de.id);if(Ve.length===0)return de;var Je=Object(Et.Map)(de);return Ve.forEach(function($e){Je=Je.merge(Object(Et.Map)($e(Je.toJS(),K)||{}))}),Je.toJS()}},{key:"componentWillMount",value:function(){if(St(this.editorProps,"media")){var n=this.editorProps,K=n.language,X=n.media,ie=r()({},te.media,X),Y=ie.uploadFn,se=ie.validateFn,de=ie.items;this.braftFinder=new nt.a({items:de,language:K,uploader:Y,validator:se}),this.forceUpdate()}}},{key:"componentDidMount",value:function(){this.isLiving=!0}},{key:"componentDidUpdate",value:function(n,K){K.editorState!==this.state.editorState&&this.state.editorState.setConvertOptions(En(this.editorProps))}},{key:"componentWillReceiveProps",value:function(n){var K=this;this.editorProps=this.getEditorProps(n);var X=n.value,ie=this.editorProps,Y=ie.media,se=ie.language,de=this.getEditorProps();if(!St(de,"media")&&St(this.editorProps,"media")&&!this.braftFinder){var Ve=r()({},te.media,Y),Je=Ve.uploadFn,$e=Ve.validateFn,ct=Ve.items;this.braftFinder=new nt.a({items:ct,language:se,uploader:Je,validator:$e}),this.forceUpdate()}Y&&Y.items&&this.braftFinder&&this.braftFinder.setItems(Y.items);var yt;if(!this.valueInitialized&&typeof this.props.defaultValue=="undefined"&&be.ContentUtils.isEditorState(n.defaultValue)?yt=n.defaultValue:be.ContentUtils.isEditorState(X)&&(yt=X),yt)if(yt&&yt!==this.state.editorState){var Ht=be.ColorUtils.detectColorsFromDraftState(yt.toRAW(!0));yt.setConvertOptions(En(this.editorProps)),this.setState({tempColors:cr([].concat(Q()(this.state.tempColors),Q()(Ht)),de.colors),editorState:yt},function(){K.props.onChange&&K.props.onChange(yt)})}else this.setState({editorState:yt})}},{key:"componentWillUnmount",value:function(){this.isLiving=!1,this.controlBarInstance&&this.controlBarInstance.closeBraftFinder()}},{key:"lockOrUnlockEditor",value:function(n){this.setState({editorLocked:n})}},{key:"render",value:function(){var n=this,K=this.editorProps,X=K.id,ie=K.editorId,Y=K.controls,se=K.excludeControls,de=K.extendControls,Ve=K.readOnly,Je=K.disabled,$e=K.media,ct=K.language,yt=K.colors,Ht=K.colorPicker,Pt=K.colorPickerTheme,Ct=K.colorPickerAutoHide,Ft=K.hooks,vn=K.fontSizes,ln=K.fontFamilies,sn=K.emojis,tn=K.placeholder,mn=K.fixPlaceholder,On=K.headings,nn=K.imageControls,yn=K.imageResizable,Rn=K.imageEqualRatio,Mt=K.lineHeights,$t=K.letterSpacings,e=K.textAligns,t=K.textBackgroundColor,m=K.allowInsertLinkText,k=K.defaultLinkTarget,M=K.extendAtomics,G=K.className,$=K.style,ne=K.controlBarClassName,ce=K.controlBarStyle,ee=K.contentClassName,he=K.contentStyle,De=K.stripPastedStyles,Pe=K.componentBelowControlBar,tt=this.state,st=tt.isFullscreen,vt=tt.editorState;ie=ie||X,Ft=kr(Ft),Y=Y.filter(function(pr){return se.indexOf(pr)===-1}),ct=(typeof ct=="function"?ct(ut,"braft-editor"):ut[ct])||ut[te.language];var en=$e&&$e.externals?r()({},te.media.externals,$e.externals):te.media.externals,rn=$e&&$e.accepts?r()({},te.media.accepts,$e.accepts):te.media.accepts;$e=r()({},te.media,$e,{externalMedias:en,accepts:rn}),$e.uploadFn||($e.video=!1,$e.audio=!1);var zn={editor:this,editorState:vt,braftFinder:this.braftFinder,ref:function(Fr){return n.controlBarInstance=Fr},getContainerNode:function(){return n.containerNode},className:ne,style:ce,colors:[].concat(Q()(yt),Q()(this.state.tempColors)),colorPicker:Ht,colorPickerTheme:Pt,colorPickerAutoHide:Ct,hooks:Ft,editorId:ie,media:$e,controls:Y,language:ct,extendControls:de,headings:On,fontSizes:vn,fontFamilies:ln,emojis:sn,lineHeights:Mt,letterSpacings:$t,textAligns:e,textBackgroundColor:t,allowInsertLinkText:m,defaultLinkTarget:k},Rr=vt.convertOptions.unitExportFn,dr={editor:this,editorId:ie,hooks:Ft,editorState:vt,containerNode:this.containerNode,imageControls:nn,imageResizable:yn,language:ct,extendAtomics:M,imageEqualRatio:Rn},Lr=xn(dr,this.editorProps.blockRendererFn),Nr=Wn(dr,this.editorProps.blockRenderMap),Pr=Zn(this.editorProps.blockStyleFn),Kr=hn(dr,this.editorProps.customStyleMap),Ur=Pn(dr,{fontFamilies:ln,unitExportFn:Rr,customStyleFn:this.editorProps.customStyleFn}),zr=Ke(this.editorProps.keyBindingFn),Or={};(this.state.editorLocked||this.editorProps.disabled||this.editorProps.readOnly||this.editorProps.draftProps.readOnly)&&(Or.readOnly=!0),tn&&mn&&vt.isEmpty()&&vt.getCurrentContent().getFirstBlock().getType()!=="unstyled"&&(tn="");var Hr=r()({ref:function(Fr){n.draftInstance=Fr},editorState:vt,handleKeyCommand:this.handleKeyCommand,handleReturn:this.handleReturn,handleBeforeInput:this.handleBeforeInput,handleDrop:this.handleDrop,handleDroppedFiles:this.handleDroppedFiles,handlePastedText:this.handlePastedText,handlePastedFiles:this.handlePastedFiles,onChange:this.onChange,onTab:this.onTab,onFocus:this.onFocus,onBlur:this.onBlur,blockRenderMap:Nr,blockRendererFn:Lr,blockStyleFn:Pr,customStyleMap:Kr,customStyleFn:Ur,keyBindingFn:zr,placeholder:tn,stripPastedStyles:De},this.editorProps.draftProps,Or);return V.a.createElement("div",{style:$,ref:this.setEditorContainerNode,className:"bf-container ".concat(G).concat(Je?" disabled":"").concat(Ve?" read-only":"").concat(st?" fullscreen":"")},V.a.createElement(sr,zn),Pe,V.a.createElement("div",{onCompositionStart:this.handleCompositionStart,className:"bf-content ".concat(ee),onCopy:this.handleCopyContent,style:he},V.a.createElement(Xe.Editor,Hr)))}}]),R}(V.a.Component);O()(Mn,"defaultProps",te);var Nt=s(14);s.d(h,"EditorState",function(){return Xe.EditorState}),s.d(h,"getDecorators",function(){return qt}),Xe.EditorState.prototype.setConvertOptions=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.convertOptions=q},Xe.EditorState.prototype.toHTML=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=this.convertOptions||{};return Object(Nt.convertEditorStateToHTML)(this,r()({},R,q))},Xe.EditorState.prototype.toRAW=function(q){return q?Object(Nt.convertEditorStateToRaw)(this):JSON.stringify(Object(Nt.convertEditorStateToRaw)(this))},Xe.EditorState.prototype.toText=function(){return this.getCurrentContent().getPlainText()},Xe.EditorState.prototype.isEmpty=function(){return!this.getCurrentContent().hasText()},Mn.createEditorState=Xe.EditorState.createFrom=function(q){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.unitExportFn=R.unitExportFn||Mn.defaultProps.converts.unitExportFn,R.styleImportFn=ge(R.styleImportFn,R.editorId),R.entityImportFn=Qe(R.entityImportFn,R.editorId),R.blockImportFn=He(R.blockImportFn,R.editorId);var W=null;if(q instanceof Xe.EditorState)W=q;else if(c()(q)==="object"&&q&&q.blocks&&q.entityMap)W=Object(Nt.convertRawToEditorState)(q,qt(R.editorId));else if(typeof q=="string")try{/^(-)?\d+$/.test(q)?W=Object(Nt.convertHTMLToEditorState)(q,qt(R.editorId),R,"create"):W=Xe.EditorState.createFrom(JSON.parse(q),R)}catch(n){W=Object(Nt.convertHTMLToEditorState)(q,qt(R.editorId),R,"create")}else typeof q=="number"?W=Object(Nt.convertHTMLToEditorState)(q.toLocaleString().replace(/,/g,""),qt(R.editorId),R,"create"):W=Xe.EditorState.createEmpty(qt(R.editorId));return R.styleExportFn=je(R.styleExportFn,R.editorId),R.entityExportFn=Oe(R.entityExportFn,R.editorId),R.blockExportFn=Re(R.blockExportFn,R.editorId),W.setConvertOptions(R),W};var fr=h.default=gt(Mn)},function(f,h){},,function(f,h){},,,function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){},function(f,h){}])})},42017:function(z,P,o){(function(b,v){if(!0)z.exports=v(o(67294));else var A,p})(window,function(x){return function(b){var v={};function A(p){if(v[p])return v[p].exports;var B=v[p]={i:p,l:!1,exports:{}};return b[p].call(B.exports,B,B.exports,A),B.l=!0,B.exports}return A.m=b,A.c=v,A.d=function(p,B,S){A.o(p,B)||Object.defineProperty(p,B,{enumerable:!0,get:S})},A.r=function(p){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},A.t=function(p,B){if(B&1&&(p=A(p)),B&8||B&4&&typeof p=="object"&&p&&p.__esModule)return p;var S=Object.create(null);if(A.r(S),Object.defineProperty(S,"default",{enumerable:!0,value:p}),B&2&&typeof p!="string")for(var d in p)A.d(S,d,function(f){return p[f]}.bind(null,d));return S},A.n=function(p){var B=p&&p.__esModule?function(){return p.default}:function(){return p};return A.d(B,"a",B),B},A.o=function(p,B){return Object.prototype.hasOwnProperty.call(p,B)},A.p="/",A(A.s=20)}([function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var p=v.compressImage=function(S){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1280,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:800;return new Promise(function(h,s){var a=new Image;a.src=S,a.onerror=function(c){s(c)},a.onload=function(){try{var c=document.createElement("canvas"),i=this.width>d||this.height>f?this.width>this.height?d/this.width:f/this.height:1;c.width=this.width*i,c.height=this.height*i;var r=c.getContext("2d");r.drawImage(this,0,0,c.width,c.height),h({url:c.toDataURL("image/png",1),width:c.width,height:c.height})}catch(u){s(u)}}})}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var p=v.UniqueIndex=function(){return isNaN(window.__BRAFT_MM_UNIQUE_INDEX__)?window.__BRAFT_MM_UNIQUE_INDEX__=1:window.__BRAFT_MM_UNIQUE_INDEX__+=1,window.__BRAFT_MM_UNIQUE_INDEX__}},function(b,v){b.exports=x},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"Kald\u0131r",cancel:"\u0130ptal",confirm:"Onayla",insert:"Se\xE7ilenleri ekle",width:"Geni\u015Flik",height:"Y\xFCkseklik",image:"Resim",video:"G\xF6r\xFCnt\xFC",audio:"Ses",embed:"Nesne g\xF6m",caption:"Kitapl\u0131k",dragTip:"T\u0131kla ya da dosya s\xFCr\xFCkle",dropTip:"Y\xFCklemek i\xE7in s\xFCr\xFCkleyin",selectAll:"T\xFCm\xFCn\xFC se\xE7",deselect:"Se\xE7imi kald\u0131r",removeSelected:"Se\xE7ilenleri kald\u0131r",externalInputPlaceHolder:"Kaynak ad\u0131|Kaynak ba\u011Flant\u0131s\u0131",externalInputTip:`Kaynak as\u0131n\u0131 ve ba\u011Flant\u0131s\u0131n\u0131 "|" ile ay\u0131r\u0131n ve Enter' a bas\u0131n.`,addLocalFile:"Yerel' den ekle",addExternalSource:"Harici kaynaktan ekle",unnamedItem:"Adland\u0131r\u0131lmam\u0131\u015F giri\u015F",confirmInsert:"Se\xE7ilenleri ekle"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"\u524A\u9664\u3059\u308B",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D\u3059\u308B",insert:"\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u633F\u5165",width:"\u5E45",height:"\u8EAB\u9577",image:"\u7D75",video:"\u30D3\u30C7\u30AA",audio:"\u97F3\u58F0",embed:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2",caption:"\u30E1\u30C7\u30A3\u30A2\u30E9\u30A4\u30D6\u30E9\u30EA\u30FC",dragTip:"\u30D5\u30A1\u30A4\u30EB\u3092\u3053\u306E\u4F4D\u7F6E\u307E\u3067\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059",dropTip:"\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3059\u308B\u30DE\u30A6\u30B9\u3092\u653E\u3057\u307E\u3059",selectAll:"\u3059\u3079\u3066\u9078\u629E",deselect:"\u9078\u629E\u3092\u89E3\u9664",removeSelected:"\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u524A\u9664",externalInputPlaceHolder:"\u30EA\u30BD\u30FC\u30B9\u540D|\u30EA\u30BD\u30FC\u30B9\u30A2\u30C9\u30EC\u30B9",externalInputTip:'\u30EA\u30BD\u30FC\u30B9\u540D\u3068\u30EA\u30BD\u30FC\u30B9\u30A2\u30C9\u30EC\u30B9\u306F "|"\u3067\u533A\u5207\u308A\u307E\u3059\u3002',addLocalFile:"\u30ED\u30FC\u30AB\u30EB\u30EA\u30BD\u30FC\u30B9\u3092\u8FFD\u52A0\u3059\u308B",addExternalSource:"\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30EA\u30BD\u30FC\u30B9\u3092\u8FFD\u52A0\u3059\u308B",unnamedItem:"\u540D\u524D\u306E\u306A\u3044\u30A2\u30A4\u30C6\u30E0",confirmInsert:"\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u633F\u5165"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"\uC0AD\uC81C",cancel:"\uCDE8\uC18C",confirm:"\uD655\uC778",insert:"\uC120\uD0DD\uD55C\uD56D\uBAA9\uC0BD\uC785",width:"\uB108\uBE44",height:"\uB192\uC774",image:"\uADF8\uB9BC",video:"\uBE44\uB514\uC624",audio:"\uC624\uB514\uC624",embed:"\uC784\uBCA0\uB514\uB4DC\uBBF8\uB514\uC5B4",caption:"\uBBF8\uB514\uC5B4\uB77C\uC774\uBE0C\uB7EC\uB9AC",dragTip:"\uD30C\uC77C\uC744 \uD074\uB9AD\uD558\uAC70\uB098\uC774 \uC9C0\uC810\uC73C\uB85C \uB4DC\uB798\uADF8\uD558\uC2ED\uC2DC\uC624.",dropTip:"\uC5C5\uB85C\uB4DC\uD558\uB824\uBA74\uB9C8\uC6B0\uC2A4\uB97C\uB193\uC73C\uC2ED\uC2DC\uC624.",selectAll:"\uBAA8\uB450 \uC120\uD0DD",deselect:"\uC120\uD0DD \uCDE8\uC18C",removeSelected:"\uC120\uD0DD\uD55C \uD56D\uBAA9 \uC0AD\uC81C",externalInputPlaceHolder:"\uB9AC\uC18C\uC2A4 \uC774\uB984 | \uB9AC\uC18C\uC2A4 \uC8FC\uC18C",externalInputTip:'\uC790\uC6D0 \uC774\uB984\uACFC \uC790\uC6D0 \uC8FC\uC18C\uB97C "|"',addLocalFile:"\uB85C\uCEEC \uB9AC\uC18C\uC2A4 \uCD94\uAC00",addExternalSource:"\uB124\uD2B8\uC6CC\uD06C \uB9AC\uC18C\uC2A4 \uCD94\uAC00",unnamedItem:"\uC774\uB984\uC5C6\uB294 \uD56D\uBAA9",confirmInsert:"\uC120\uD0DD\uD55C \uD56D\uBAA9 \uC0BD\uC785"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"Usu\u0144",cancel:"Anuluj",confirm:"Potwierd\u017A",insert:"Wstaw wybrane elementy",width:"Szeroko\u015B\u0107",height:"Wysoko\u015B\u0107",image:"Obraz",video:"Wideo",audio:"D\u017Awi\u0119k",embed:"Obiekt",caption:"Biblioteka medi\xF3w",dragTip:"Kliknij lub przenie\u015B tu pliki",dropTip:"Upu\u015B\u0107 aby doda\u0107 plik",selectAll:"Zaznacz wszystko",deselect:"Odznacz",removeSelected:"Usu\u0144 wybrane",externalInputPlaceHolder:"Nazwa \u017Ar\xF3d\u0142a|Adres URL",externalInputTip:'Oddziel nazw\u0119 i adres URL \u017Ar\xF3d\u0142a z pomoc\u0105 "|", Potwierd\u017A Enter-em',addLocalFile:"Dodaj z komputera",addExternalSource:"Dodaj z Internetu",unnamedItem:"Bez nazwy",confirmInsert:"Dodaj wybrane elementy"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"\u5220\u9664",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",insert:"\u63D2\u5165\u6240\u9009\u9879\u76EE",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",embed:"\u5D4C\u5165\u5F0F\u5A92\u4F53",caption:"\u5A92\u4F53\u5E93",dragTip:"\u70B9\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u81F3\u6B64",dropTip:"\u653E\u5F00\u9F20\u6807\u4EE5\u4E0A\u4F20",selectAll:"\u9009\u62E9\u5168\u90E8",deselect:"\u53D6\u6D88\u9009\u62E9",removeSelected:"\u5220\u9664\u9009\u4E2D\u9879\u76EE",externalInputPlaceHolder:"\u8D44\u6E90\u540D\u79F0|\u8D44\u6E90\u5730\u5740",externalInputTip:"\u4F7F\u7528\u201C|\u201D\u5206\u9694\u8D44\u6E90\u540D\u79F0\u548C\u8D44\u6E90\u5730\u5740",addLocalFile:"\u6DFB\u52A0\u672C\u5730\u8D44\u6E90",addExternalSource:"\u6DFB\u52A0\u7F51\u7EDC\u8D44\u6E90",unnamedItem:"\u672A\u547D\u540D\u9879\u76EE",confirmInsert:"\u63D2\u5165\u9009\u4E2D\u9879\u76EE"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"\u5220\u9664",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",insert:"\u63D2\u5165\u6240\u9009\u9879\u76EE",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",embed:"\u5D4C\u5165\u5F0F\u5A92\u4F53",caption:"\u5A92\u4F53\u5E93",dragTip:"\u70B9\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u81F3\u6B64",dropTip:"\u653E\u5F00\u9F20\u6807\u4EE5\u4E0A\u4F20",selectAll:"\u9009\u62E9\u5168\u90E8",deselect:"\u53D6\u6D88\u9009\u62E9",removeSelected:"\u5220\u9664\u9009\u4E2D\u9879\u76EE",externalInputPlaceHolder:"\u8D44\u6E90\u540D\u79F0|\u8D44\u6E90\u5730\u5740",externalInputTip:"\u4F7F\u7528\u201C|\u201D\u5206\u9694\u8D44\u6E90\u540D\u79F0\u548C\u8D44\u6E90\u5730\u5740",addLocalFile:"\u6DFB\u52A0\u672C\u5730\u8D44\u6E90",addExternalSource:"\u6DFB\u52A0\u7F51\u7EDC\u8D44\u6E90",unnamedItem:"\u672A\u547D\u540D\u9879\u76EE",confirmInsert:"\u63D2\u5165\u9009\u4E2D\u9879\u76EE"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default={remove:"Remove",cancel:"Cancel",confirm:"Confirm",insert:"Insert Selected Items",width:"Width",height:"Height",image:"Image",video:"Video",audio:"Audio",embed:"Embed",caption:"Media Library",dragTip:"Click Or Drag Files Here",dropTip:"Drop To Upload",selectAll:"Select All",deselect:"Deselect",removeSelected:"Remove Selected Items",externalInputPlaceHolder:"Source Name|Source URL",externalInputTip:'Split source name and source URL with "|", confirm by hit Enter.',addLocalFile:"Add from local",addExternalSource:"Add from Internet",unnamedItem:"Unnamed Item",confirmInsert:"Insert selected items"}},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var p=A(9),B=l(p),S=A(8),d=l(S),f=A(7),h=l(f),s=A(6),a=l(s),c=A(5),i=l(c),r=A(4),u=l(r),E=A(3),C=l(E);function l(g){return g&&g.__esModule?g:{default:g}}v.default={en:B.default,zh:d.default,"zh-hant":h.default,pl:a.default,kr:i.default,jpn:u.default,tr:C.default}},function(b,v){b.exports=function(A){var p=typeof window!="undefined"&&window.location;if(!p)throw new Error("fixUrls requires window.location");if(!A||typeof A!="string")return A;var B=p.protocol+"//"+p.host,S=B+p.pathname.replace(/\/[^\/]*$/,"/"),d=A.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(f,h){var s=h.trim().replace(/^"(.*)"$/,function(c,i){return i}).replace(/^'(.*)'$/,function(c,i){return i});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s))return f;var a;return s.indexOf("//")===0?a=s:s.indexOf("/")===0?a=B+s:a=S+s.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"});return d}},function(b,v,A){var p={},B=function(I){var w;return function(){return typeof w=="undefined"&&(w=I.apply(this,arguments)),w}},S=B(function(){return window&&document&&document.all&&!window.atob}),d=function(I){return document.querySelector(I)},f=function(I){var w={};return function(H){if(typeof H=="function")return H();if(typeof w[H]=="undefined"){var j=d.call(this,H);if(window.HTMLIFrameElement&&j instanceof window.HTMLIFrameElement)try{j=j.contentDocument.head}catch(U){j=null}w[H]=j}return w[H]}}(),h=null,s=0,a=[],c=A(11);b.exports=function(I,w){if(typeof DEBUG!="undefined"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");w=w||{},w.attrs=typeof w.attrs=="object"?w.attrs:{},!w.singleton&&typeof w.singleton!="boolean"&&(w.singleton=S()),w.insertInto||(w.insertInto="head"),w.insertAt||(w.insertAt="bottom");var H=r(I,w);return i(H,w),function(U){for(var O=[],re=0;re=0&&a.splice(w,1)}function C(I){var w=document.createElement("style");return I.attrs.type===void 0&&(I.attrs.type="text/css"),g(w,I.attrs),u(I,w),w}function l(I){var w=document.createElement("link");return I.attrs.type===void 0&&(I.attrs.type="text/css"),I.attrs.rel="stylesheet",g(w,I.attrs),u(I,w),w}function g(I,w){Object.keys(w).forEach(function(H){I.setAttribute(H,w[H])})}function D(I,w){var H,j,U,O;if(w.transform&&I.css)if(O=w.transform(I.css),O)I.css=O;else return function(){};if(w.singleton){var re=s++;H=h||(h=C(w)),j=y.bind(null,H,re,!1),U=y.bind(null,H,re,!0)}else I.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(H=l(w),j=T.bind(null,H,w),U=function(){E(H),H.href&&URL.revokeObjectURL(H.href)}):(H=C(w),j=L.bind(null,H),U=function(){E(H)});return j(I),function(ue){if(ue){if(ue.css===I.css&&ue.media===I.media&&ue.sourceMap===I.sourceMap)return;j(I=ue)}else U()}}var F=function(){var I=[];return function(w,H){return I[w]=H,I.filter(Boolean).join(` `)}}();function y(I,w,H,j){var U=H?"":j.css;if(I.styleSheet)I.styleSheet.cssText=F(w,U);else{var O=document.createTextNode(U),re=I.childNodes;re[w]&&I.removeChild(re[w]),re.length?I.insertBefore(O,re[w]):I.appendChild(O)}}function L(I,w){var H=w.css,j=w.media;if(j&&I.setAttribute("media",j),I.styleSheet)I.styleSheet.cssText=H;else{for(;I.firstChild;)I.removeChild(I.firstChild);I.appendChild(document.createTextNode(H))}}function T(I,w,H){var j=H.css,U=H.sourceMap,O=w.convertToAbsoluteUrls===void 0&&U;(w.convertToAbsoluteUrls||O)&&(j=c(j)),U&&(j+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(U))))+" */");var re=new Blob([j],{type:"text/css"}),Q=I.href;I.href=URL.createObjectURL(re),Q&&URL.revokeObjectURL(Q)}},function(b,v){b.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBsIAAAC8AAAAYGNtYXBWNv1DAAABHAAAANRnYXNwAAAAEAAAAfAAAAAIZ2x5ZtZLKCQAAAH4AAAPTGhlYWQT25ZrAAARRAAAADZoaGVhB8ID3gAAEXwAAAAkaG10eGoAC+sAABGgAAAAdGxvY2EqcC3wAAASFAAAADxtYXhwACcAewAAElAAAAAgbmFtZZlKCfsAABJwAAABhnBvc3QAAwAAAAAT+AAAACAAAwPsAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADprAPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAuAAAACoAIAAEAAoAAQAg4DTgN+BC4V3iQ+gN6Mno/ukD6QjpD+kT6RjpHOkm6YDprP/9//8AAAAAACDgNOA34ELhXeJD6A3oyej+6QHpB+kO6RHpFukc6SbpgOms//3//wAB/+Mf0B/OH8Qeqh3FF/wXQRcNFwsXCBcDFwIXABb9FvQWmxZwAAMAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIBAACBAwAC1QADAAcAAAEzESMhETMRAlaqqv6qqgLV/awCVP2sAAABAVYAgQMqAtUAAgAACQIBVgHU/iwC1f7W/tYAAQCqACsDVgOBAC4AAAEyFx4BFxYVFAcOAQcGIyInLgEnJjUzFBceARcWMzI3PgE3NjU0Jy4BJyYjFSc3AgBGPz5dGxsbG10+PkdGPz5dGxtWFBRFLy81NS8vRRQUFBRFLy811tYC1RsbXD4+Rkc+Pl0bGxsbXT4+RzYuL0UUFBQURS8uNjUvLkYUFKzW1gAAAwBWAAEDqgNVABsANwA7AAAlMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NgMhFSECAEY/Pl0bGxsbXT4+R0Y/Pl0bGxsbXT4+R1hOTnMiISEic05NWVhOTnMiISEic05NfQGs/lRVGxtdPj5HRj4/XRsbGxtdPz5GRz4+XRsbAwAiIXRNTlhZTU50ISEhIXROTVlYTk10ISL+gFQAAAABAKoAAQOAA1UAHwAAATMRIREUBisBIiY1ESE1IxUUBiMhIiY9ATQ2MyEyFhUDAID+qhgSVhIYAaoqGBL+ABIaGhICABIYAwH+qv6AEhgYEgHWqioSGhoSqhIYGBIAAAABAIAAAwOAA1UAMwAAJTIWFRQGIyImNTwBNyUOASMiJjU0NjMyFhclLgE1NDYzMhYVFAYjIiYnBR4BFRQGBwU+AQMAM0lJMzNJAv7SEiwaNExLNRktEgEsAQNLNTRMSzUZLRL+1AEDAgIBMBAs/UkzM0tLMwcPBrAREUs1NEwSEK4HDwg0TEw0NUsTEbAIDwcIDwewDxEAAAMAVgArA6oDVQACAAYAGgAALQI3FTM1FyERFAYjISImNREhNTQ2OwEyFhUBgAFA/sAqrFQBADAk/VQkMAEAMCSsJDCr1qrWVlZW/dYkMjIkAipWJDAwJAAEAIAAgQOAAtUAAwAHAAsADwAAEyEVIRU1IRUBNSEVJTUhFYADAP0AAwD9AAMA/QADAALVVKxWVv6sVFSqVlYABABVACIDqwN3AAQAIQA9AEIAACUzESMREyIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMRIicuAScmNTQ3PgE3NjMyFx4BFxYVFAcOAQcGAzM1IxUB1VZWK1hOTnQhIiIhdE5OWFhOTnQhIiIhdE5OWEc+Pl0aGxsaXT4+R0c+Pl0aGxsaXT4+clZW9wEA/wACgCEic05OWFlNTnQhIiIhdE5NWVhOTnMiIf0AGxtdPj5HRj8+XBsbGxtcPj9GRz4+XRsbAdZVVQAABABVACIDqwN3AAQAIQA9AFIAACUzNSMVEyIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMRIicuAScmNTQ3PgE3NjMyFx4BFxYVFAcOAQcGAyIGFTM0NjMyFhUUBhUzNDY1NCYjAdVWVitYTk50ISIiIXROTlhYTk50ISIiIXROTlhHPj5dGhsbGl0+PkdHPj5dGhsbGl0+PkdHZFYyIyMygFaAZEfNVVUCqiEic05OWFlNTnQhIiIhdE5NWVhOTnMiIf0AGxtdPj5HRj8+XBsbGxtcPj9GRz4+XRsbAlZkRyMyMiNALWhIPVBHZAAAAgBVAM0DqwLNAAUACwAAASc3JwkBJTcnNwkBAZHExDz/AAEAARrExDwBAP8AAQnExDz/AP8APMTEPP8A/wAAAAMAVQAiA6sDdwAcACsAOgAAASIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMBNDc+ATc2MzIWFwEuATUBIiYnAR4BFRQHDgEHBiMCAFhOTXQiIiIidE1OWFhOTXQiIiIidE1OWP6rGxtcPj9GOmot/iIjJQFVOmotAd4jJRsbXD4/RgN3ISJ0Tk1YWE5OdCEiIiF0Tk5YWE1OdCIh/lZGPj5dGxslI/4iLWo6/qomIwHeLWs5Rz4+XRsbAAAAAAMAgADNA4ACzQADAAcACwAANyE1ITUhNSE1FSE1gAMA/QADAP0AAwDNVYBV1lZWAAEAZAAlA1wDXABEAAABERQHBgcGBwYjIicmJyYnJjU0NzY3Njc2MzIXEQURFAcGBwYHBiMiJyYnJicmNTQ3Njc2NzYzMhcRNDc2NyU2MzIXFhUDXBERGhkaGRYXGRoZGhEREREaGRoZFzMr/oURERoZGhkXFhkaGRoRERERGhkaGRY0KwoJDwGbBggUDg4DLP3WGBQTCgsFBQUFCwoTFBgZExQKCwUFEwEKdv6iGRMTCwsFBQUFCwsTExkZExMLCgYFEwHeDw0MBX8CDg4UAAAEAHUAQgOJA1YALwA8AGIAeAAAAS4BBw4BJy4BJy4BBwYiJyYGBw4BJyYGBxQVHAEVFBUeATM2MzoBMzIzMjY3PAE1BSImNTQ2MzIWFRQGJyUqASM8ATU6ATMUFhUUFxwBFQYHFAYHDgEnLgE3PgE3OgEzPAE1BT4BNzoBMxQWBw4BJy4BNz4BNzoBMwKBARkZChUJCxcEFEMvBw8HHikMDCgdFyILCxgWNDM0ZzQzNBsaAf77L0FBMDBAQDEBtx8/IDRoNgEBAQENCxVFICIlBgc3JAcNCf7OAQICEyQTAwUFSiMmOAIBOiYHEAkCzhcaAQEBAwIJCC0fCAEBBhgbGxYGBBMVKCgpUCgoKQ8VARcaSpRK7T8uMEA/LzBAARchPyAKEgkzMjNmMjMzFCwRIBAOD0IjJjQDN2053QwUCi5dLSUsBgVEJig+BAAAAAAEAAAAAAQAA0AAGwAzAE8AUwAAARQXHgEXFjMyNz4BNzY1NCcuAScmIyIHDgEHBgEjLgEjISIGByMiBhURFBYzITI2NRE0JgEiJy4BJyY1NDc+ATc2MzIXHgEXFhUUBw4BBwYBIzUzATAQETgmJisrJiY4ERAQETgmJisrJiY4ERACkOAMJDD/ADAkDOAaJiYaA4AaJib+Jjs0M00XFhYXTTM0Ozs0M00XFhYXTTM0AYWAgAFgKyYmOBEQEBE4JiYrKyYmOBEQEBE4JiYBNTBQUDAmGv3AGiYmGgJAGib9hBYXTTM0Ozs0M00XFhYXTTM0Ozs0M00XFgG8QAABAJEAogOAAt4ABgAAAScHFwEnAQGAszzvAgA8/jwBGrM87wIAPP48AAAAAAEA4gCAAx4CyQAmAAABNzY0JyYiDwEnJiIHBhQfAQcGFBceATMyNj8BFx4BMzI2NzY0LwECPOINDQwkDOLiDCQMDQ3i4g0NBhAICBAG4uIGEAgIEAYNDeIBq+IMIw0MDOLiDAwNIwzi4g0jDAcGBgfh4QcGBgcMIw3iAAACAIAAYwNqA00AIgAvAAABIyc+ATU0Jy4BJyYjIgcOAQcGFRQXHgEXFjMyNjcXFRc3JyEiJjU0NjMyFhUUBiMClSEMHyQWFkszMjo5MzJLFhYWFksyMzk0XCUL1j/V/wBPcXFPUHBwUAF3DCRdMzoyM0sWFhYWSzMyOjkyM0sWFiQfDCLUP9VxT1BwcFBPcQACAGQAIgOcA3cATQBZAAABPgE1NCYnNz4BLwEuAQ8BLgEvAS4BKwEiBg8BDgEHJyYGDwEGFh8BDgEVFBYXBw4BHwEeAT8BHgEfAR4BOwEyNj8BPgE3FxY2PwE2JicFIiY1NDYzMhYVFAYDPQECAgFaBgMEVQQPB2oRJBQQAQwIqggMARAUJBFqBw8EVQQDBloBAgIBWgYDBFUEDwdqESQUEAEMCKoIDAEQFCQRagcPBFUEAwb+aT5XVz4+V1cBowoVCwsUC0YFDweUBwUDKgwVCHIHCgoHcggVDCoDBQeUBw8FRgsVCgsVCkYFEAeTBwUCKw0VCHEICgoIcQgVDSsDBgeTBxAFJlg+PldXPj5YAAEA1QCiAysC9wALAAABIREjESE1IREzESEDK/8AVv8AAQBWAQABov8AAQBVAQD/AAAAAAAJAAAAQAQAA0AAAwAHAAsADwATABcAGwAfACIAABMRIREBIzUzNSM1MzUjNTMBIREhEyM1MzUjNTM1IzUzBRElAAQA/MCAgICAgIACQP4AAgDAgICAgICA/cABAANA/QADAP1AgICAgID9gAKA/YCAgICAgID+gMAAAAAABgBA/8ADwAPAABkAIQA5AEcAVQBjAAABLgEnLgEnLgEjISIGFREUFjMhMjY1ETQmJyceARcjNR4BExQGIyEiJjURNDYzMDM6ATMyMRUUFjsBAyEiJjU0NjMhMhYVFAYnISImNTQ2MyEyFhUUBichIiY1NDYzITIWFRQGA5YRLRkaMxcnKQv+ECEvLyEC4CEvDhyFFyUNmhEphgkH/SAHCQkHTU66TU4TDeCg/kANExMNAcANExMN/kANExMNAcANExMN/kANExMNAcANExMC2xczGhktERwOLyH8oCEvLyECcAspJzYXKRGaDSX86AcJCQcDYAcJ4A0T/gATDQ0TEw0NE4ATDQ0TEw0NE4ATDQ0TEw0NEwAAAAcAAP/ABAADRgALABcAIwAvADsARwBTAAAlNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYBNDYzMhYVFAYjIiYBoDgoKDg4KCg4/mA4KCg4OCgoOANAOCgoODgoKDj9OjgoKDg4KCg4Akw4KCg4OCgoOP20OCgoODgoKDgCTDgoKDg4KCg4ICg4OCgoODgByCg4OCgoODgoKDg4KCg4OAFOKDg4KCg4OP3cKDg4KCg4OCgoODgoKDg4AnQoODgoKDg4AAUAfAAAA4QDVQAiAC0AOABGAFQAAAEjNTQmKwEiBh0BIyIGFRQWOwERFBYzITI2NREzMjY1NCYjJTQ2OwEyFh0BIzUBFAYjISImNREhEQEiBh0BFBYzMjY9ATQmMyIGHQEUFjMyNj0BNCYDXZtEMJwwRJsQFxcQJ0QwAYQwRCcQFxcQ/i8WEJwQFugBXRcQ/nwQFwHS/skQFhYQEBcXjBAXFxAQFhYCuicwREQwJxcQEBb+BzBERDAB+RYQEBcnEBcXECcn/ZMQFhYQAfn+BwGEFxDoEBcXEOgQFxcQ6BAXFxDoEBcAAAABAAAAAQAANAmLwV8PPPUACwQAAAAAANheKPcAAAAA2F4o9wAA/8AEAAPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAAdBAAAAAAAAAAAAAAAAgAAAAQAAQAEAAFWBAAAqgQAAFYEAACqBAAAgAQAAFYEAACABAAAVQQAAFUEAABVBAAAVQQAAIAEAABkBAAAdQQAAAAEAACRBAAA4gQAAIAEAABkBAAA1QQAAAAEAABABAAAAAQAAHwAAAAAAAoAFAAeADIAQACIAOYBFgFiAY4BrgIUAowCrAMMAyQDjAQ0BLIEyAUGBU4F1gXwBi4GugcyB6YAAQAAAB0AeQAJAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(b,v){b.exports=function(B){var S=[];return S.toString=function(){return this.map(function(f){var h=A(f,B);return f[2]?"@media "+f[2]+"{"+h+"}":h}).join("")},S.i=function(d,f){typeof d=="string"&&(d=[[null,d,""]]);for(var h={},s=0;s1?y[0]:l.props.language.unnamedItem;y=y.length>1?y[1]:y[0];var I=L==="IMAGE"?y:null;l.controller.addItems([{thumbnail:I,url:y,name:T,type:L,id:new Date().getTime()+"_"+(0,f.UniqueIndex)(),uploading:!1,uploadProgress:1,selected:!0}]),l.setState({showExternalForm:!1,external:{url:"",type:"IMAGE"}})}},l.toggleExternalForm=function(){l.setState({showExternalForm:!l.state.showExternalForm})},l.cancelInsert=function(){l.props.onCancel&&l.props.onCancel()},l.confirmInsert=function(){var D=l.controller.getSelectedItems();if(l.props.onBeforeInsert){var F=l.props.onBeforeInsert(D);F&&F instanceof Array?(l.controller.deselectAllItems(),l.props.onInsert&&l.props.onInsert(F)):F!==!1&&(l.controller.deselectAllItems(),l.props.onInsert&&l.props.onInsert(D))}else l.controller.deselectAllItems(),l.props.onInsert&&l.props.onInsert(D)},l.dragCounter=0,l.controller=l.props.controller;var g=l.controller.getItems();return l.state={draging:!1,error:!1,confirmable:g.find(function(D){var F=D.selected;return F}),external:{url:"",type:"IMAGE"},fileAccept:"",showExternalForm:!1,allowExternal:!1,items:g},l.changeListenerId=l.controller.onChange(function(D){l.setState({items:D,confirmable:D.find(function(F){var y=F.selected;return y})}),l.props.onChange&&l.props.onChange(D)}),l}return B(E,[{key:"mapPropsToState",value:function(l){var g=l.accepts,D=l.externals;g=p({},i,g);var F=g?[g.image,g.video,g.audio].filter(function(L){return L}).join(","):[i.image,i.video,i.audio].join(","),y={url:"",type:D.image?"IMAGE":D.audio?"AUDIO":D.video?"VIDEO":D.embed?"EMBED":""};return{fileAccept:F,external:y,allowExternal:D&&(D.image||D.audio||D.video||D.embed)}}},{key:"componentDidMount",value:function(){this.setState(this.mapPropsToState(this.props))}},{key:"componentWillReceiveProps",value:function(l){this.setState(this.mapPropsToState(l))}},{key:"componentWillUnmount",value:function(){this.controller.offChange(this.changeListenerId)}},{key:"render",value:function(){var l=this.props,g=l.language,D=l.externals,F=this.state,y=F.items,L=F.draging,T=F.confirmable,I=F.fileAccept,w=F.external,H=F.showExternalForm,j=F.allowExternal;return d.default.createElement("div",{className:"braft-finder"},d.default.createElement("div",{onDragEnter:this.handleDragEnter,onDragOver:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDragDrop,className:"bf-uploader"},d.default.createElement("div",{className:"bf-drag-uploader "+(L||!y.length?"active ":" ")+(L?"draging":"")},d.default.createElement("span",{className:"bf-drag-tip"},d.default.createElement("input",{accept:I,onChange:this.reslovePickedFiles,multiple:!0,type:"file"}),L?g.dropTip:g.dragTip)),y.length?d.default.createElement("div",{className:"bf-list-wrap"},d.default.createElement("div",{className:"bf-list-tools"},d.default.createElement("span",{onClick:this.selectAllItems,className:"bf-select-all"},d.default.createElement("i",{className:"braft-icon-done"})," ",g.selectAll),d.default.createElement("span",{onClick:this.deselectAllItems,disabled:!T,className:"bf-deselect-all"},d.default.createElement("i",{className:"braft-icon-close"})," ",g.deselect),d.default.createElement("span",{onClick:this.removeSelectedItems,disabled:!T,className:"bf-remove-selected"},d.default.createElement("i",{className:"braft-icon-bin"})," ",g.removeSelected)),this.buildItemList()):null,H&&j?d.default.createElement("div",{className:"bf-add-external"},d.default.createElement("div",{className:"bf-external-form"},d.default.createElement("div",{className:"bf-external-input"},d.default.createElement("div",null,d.default.createElement("input",{onKeyDown:this.confirmAddExternal,value:w.url,onChange:this.inputExternal,placeholder:g.externalInputPlaceHolder})),d.default.createElement("button",{type:"button",onClick:this.confirmAddExternal,disabled:!w.url.trim().length},g.confirm)),d.default.createElement("div",{"data-type":w.type,className:"bf-switch-external-type"},D.image?d.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"IMAGE"},g.image):null,D.audio?d.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"AUDIO"},g.audio):null,D.video?d.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"VIDEO"},g.video):null,D.embed?d.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"EMBED"},g.embed):null),d.default.createElement("span",{className:"bf-external-tip"},g.externalInputTip))):null),d.default.createElement("footer",{className:"bf-manager-footer"},d.default.createElement("div",{className:"pull-left"},j?d.default.createElement("span",{onClick:this.toggleExternalForm,className:"bf-toggle-external-form"},H?d.default.createElement("span",{className:"bf-bottom-text"},d.default.createElement("i",{className:"braft-icon-add"})," ",g.addLocalFile):d.default.createElement("span",{className:"bf-bottom-text"},d.default.createElement("i",{className:"braft-icon-add"})," ",g.addExternalSource)):null),d.default.createElement("div",{className:"pull-right"},d.default.createElement("button",{onClick:this.confirmInsert,className:"button button-insert",disabled:!T},g.insert),d.default.createElement("button",{onClick:this.cancelInsert,className:"button button-cancel"},g.cancel))))}},{key:"buildItemList",value:function(){var l=this;return d.default.createElement("ul",{className:"bf-list"},d.default.createElement("li",{className:"bf-add-item"},d.default.createElement("i",{className:"braft-icon-add"}),d.default.createElement("input",{accept:this.state.fileAccept,onChange:this.reslovePickedFiles,multiple:!0,type:"file"})),this.state.items.map(function(g,D){var F=null,y=g.uploading&&!l.props.hideProgress?d.default.createElement("div",{className:"bf-item-uploading"},d.default.createElement("div",{className:"bf-item-uploading-bar",style:{width:g.uploadProgress/1+"%"}})):"";switch(g.type){case"IMAGE":F=d.default.createElement("div",{className:"bf-image"},y,d.default.createElement("img",{src:g.thumbnail||g.url}));break;case"VIDEO":F=d.default.createElement("div",{className:"bf-icon bf-video",title:g.url},y,d.default.createElement("i",{className:"braft-icon-film"}),d.default.createElement("span",null,g.name||g.url));break;case"AUDIO":F=d.default.createElement("div",{className:"bf-icon bf-audio",title:g.url},y,d.default.createElement("i",{className:"braft-icon-music"}),d.default.createElement("span",null,g.name||g.url));break;case"EMBED":F=d.default.createElement("div",{className:"bf-icon bf-embed",title:g.url},y,d.default.createElement("i",{className:"braft-icon-code"}),d.default.createElement("span",null,g.name||l.props.language.embed));break;default:F=d.default.createElement("a",{className:"bf-icon bf-file",title:g.url,href:g.url},y,d.default.createElement("i",{className:"braft-icon-file-text"}),d.default.createElement("span",null,g.name||g.url));break}var L=["bf-item"];return g.selected&&L.push("active"),g.uploading&&L.push("uploading"),g.error&&L.push("error"),d.default.createElement("li",{key:D,title:g.name,"data-id":g.id,className:L.join(" "),onClick:l.toggleSelectItem},F,d.default.createElement("span",{"data-id":g.id,onClick:l.removeItem,className:"bf-item-remove braft-icon-close"}),d.default.createElement("span",{className:"bf-item-title"},g.name))}))}}]),E}(d.default.Component);r.defaultProps={accepts:i,externals:{image:!0,video:!0,audio:!0,embed:!0}},v.default=r},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var p=Object.assign||function(c){for(var i=1;i0&&arguments[0]!==void 0?arguments[0]:{};f(this,c),a.call(this),this.items=i.items||[],this.uploadFn=i.uploader,this.validateFn=i.validator||h,this.changeListeners=[]},a=function(){var i=this;this.setProps=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.items=r.items||i.items||[],i.uploadFn=r.uploader,i.validateFn=r.validator||h},this.getMediaItem=function(r){return i.items.find(function(u){return u.id===r})},this.getSelectedItems=function(){return i.items.filter(function(r){return r.selected})},this.getItems=function(){return i.items},this.setItems=function(r){i.items=r.map(function(u){return p({},u,{id:u.id.toString()})})||[],i.applyChange(),i.uploadItems()},this.addMediaItem=function(r){i.addItems([r])},this.addItems=function(r){i.items=[].concat(d(i.items),d(r.map(function(u){return p({},u,{id:u.id.toString()})}))),i.applyChange(),i.uploadItems()},this.selectMediaItem=function(r){var u=i.getMediaItem(r);if(u&&(u.uploading||u.error))return!1;i.setMediaItemState(r,{selected:!0})},this.selectAllItems=function(){i.items=i.items.filter(function(r){return!r.error&&!r.uploading}).map(function(r){return p({},r,{selected:!0})}),i.applyChange()},this.deselectMediaItem=function(r){i.setMediaItemState(r,{selected:!1})},this.deselectAllItems=function(){i.items=i.items.map(function(r){return p({},r,{selected:!1})}),i.applyChange()},this.removeMediaItem=function(r){i.items=i.items.filter(function(u){return u.id!==r}),i.applyChange()},this.removeItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.items=i.items.filter(function(u){return!r.includes(u.id)}),i.applyChange()},this.removeSelectedItems=function(){i.items=i.items.filter(function(r){return!r.selected}),i.applyChange()},this.removeErrorItems=function(){i.items=i.items.filter(function(r){return!r.error}),i.applyChange()},this.removeAllItems=function(){i.items=[],i.applyChange()},this.setMediaItemState=function(r,u){i.items=i.items.map(function(E){return E.id===r?p({},E,u):E}),i.applyChange()},this.reuploadErrorItems=function(){i.uploadItems(!0)},this.uploadItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;i.items.forEach(function(u,E){if(u.uploading||u.url||!r&&u.error)return!1;if(u.type==="IMAGE")i.createThumbnail(u),i.uploadFn=i.uploadFn||i.createInlineImage;else if(!i.uploadFn)return i.setMediaItemState(u.id,{error:1}),!1;i.setMediaItemState(u.id,{uploading:!0,uploadProgress:0,error:0}),i.uploadFn({id:u.id,file:u.file,success:function(l){i.handleUploadSuccess(u.id,l)},progress:function(l){i.setMediaItemState(u.id,{uploading:!0,uploadProgress:l})},error:function(l){i.setMediaItemState(u.id,{uploading:!1,error:2})}})})},this.createThumbnail=function(r){var u=r.id,E=r.file;(0,S.compressImage)(URL.createObjectURL(E),226,226).then(function(C){i.setMediaItemState(u,{thumbnail:C.url})})},this.createInlineImage=function(r){(0,S.compressImage)(URL.createObjectURL(r.file),1280,800).then(function(u){r.success({url:u.url})}).catch(function(u){r.error(u)})},this.handleUploadSuccess=function(r,u){i.setMediaItemState(r,p({},u,{file:null,uploadProgress:1,uploading:!1,selected:!1}));var E=i.getMediaItem(u.id||r);E.onReady&&E.onReady(E)},this.applyChange=function(){i.changeListeners.forEach(function(r){var u=r.callback;return u(i.items)})},this.uploadImage=function(r,u){var E=new Date().getTime()+"_"+(0,B.UniqueIndex)();i.addMediaItem({type:"IMAGE",id:E,file:r,name:E,size:r.size,uploadProgress:0,uploading:!1,selected:!1,error:0,onReady:u})},this.uploadImageRecursively=function(r,u){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;r[E]&&r[E].type.indexOf("image")>-1?i.uploadImage(r[E],function(C){u&&u(C),E0&&arguments[0]!==void 0?arguments[0]:{},I=p({},L.superProps,T),w=(typeof I.language=="function"?I.language(c.default,"braft-finder"):c.default[I.language])||c.default.zh;return S.default.createElement(s.default,p({},I,{language:w,controller:L}))}};v.default=D,v.ImageUtils=r}])})},74652:function(z,P){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var o=0,x=P.UniqueIndex=function(){return o+=1}},29884:function(z,P){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var o={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},x=function(S){if(S=S.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(S))return S;if(b[S])return b[S];if(S.indexOf("rgb")===0){var d=S.split(","),f=d.length<3?null:"#"+[d[0],d[1],d[2]].map(function(h){var s=parseInt(h.replace(/\D/g,""),10).toString(16);return s.length===1?"0"+s:s}).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(f)?f:null}else return null},b=P.namedColors=o,v=P.getHexColor=x,A=P.detectColorsFromHTMLString=function(S){return typeof S!="string"?[]:(S.match(/color:[^;]{3,24};/g)||[]).map(v).filter(function(d){return d})},p=P.detectColorsFromDraftState=function(S){var d=[];return!S||!S.blocks||!S.blocks.length?d:(S.blocks.forEach(function(f){f&&f.inlineStyleRanges&&f.inlineStyleRanges.length&&f.inlineStyleRanges.forEach(function(h){h.style&&h.style.indexOf("COLOR-")>=0&&d.push("#"+h.style.split("COLOR-")[1])})}),d.filter(function(f){return f}))}},17517:function(z,P,o){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.redo=P.undo=P.handleKeyCommand=P.clear=P.setMediaPosition=P.removeMedia=P.setMediaData=P.insertMedias=P.insertHorizontalLine=P.insertAtomicBlock=P.insertHTML=P.insertText=P.toggleSelectionLetterSpacing=P.toggleSelectionFontFamily=P.toggleSelectionLineHeight=P.toggleSelectionFontSize=P.toggleSelectionBackgroundColor=P.toggleSelectionColor=P.decreaseSelectionIndent=P.increaseSelectionIndent=P.toggleSelectionIndent=P.toggleSelectionAlignment=P.removeSelectionInlineStyles=P.toggleSelectionInlineStyle=P.selectionHasInlineStyle=P.getSelectionInlineStyle=P.toggleSelectionLink=P.toggleSelectionEntity=P.getSelectionEntityData=P.getSelectionEntityType=P.toggleSelectionBlockType=P.getSelectionText=P.getSelectionBlockType=P.getSelectionBlockData=P.setSelectionBlockData=P.getSelectedBlocks=P.updateEachCharacterOfSelection=P.getSelectionBlock=P.removeBlock=P.selectNextBlock=P.selectBlock=P.selectionContainsStrictBlock=P.selectionContainsBlockType=P.isSelectionCollapsed=P.createEditorState=P.createEmptyEditorState=P.isEditorState=P.registerStrictBlockType=void 0;var x=o(9041),b=o(5252),v=o(36444),A=o(43393),p=B(A);function B(Ke){return Ke&&Ke.__esModule?Ke:{default:Ke}}var S=["atomic"],d=P.registerStrictBlockType=function(te){S.indexOf(te)===-1&&S.push(te)},f=P.isEditorState=function(te){return te instanceof x.EditorState},h=P.createEmptyEditorState=function(te){return x.EditorState.createEmpty(te)},s=P.createEditorState=function(te,oe){return x.EditorState.createWithContent(te,oe)},a=P.isSelectionCollapsed=function(te){return te.getSelection().isCollapsed()},c=P.selectionContainsBlockType=function(te,oe){return g(te).find(function(le){return le.getType()===oe})},i=P.selectionContainsStrictBlock=function(te){return g(te).find(function(oe){return~S.indexOf(oe.getType())})},r=P.selectBlock=function(te,oe){var le=oe.getKey();return x.EditorState.forceSelection(te,new x.SelectionState({anchorKey:le,anchorOffset:0,focusKey:le,focusOffset:oe.getLength()}))},u=P.selectNextBlock=function(te,oe){var le=te.getCurrentContent().getBlockAfter(oe.getKey());return le?r(te,le):te},E=P.removeBlock=function(te,oe){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pe=void 0,Ae=void 0,ve=oe.getKey();return pe=x.Modifier.removeRange(te.getCurrentContent(),new x.SelectionState({anchorKey:ve,anchorOffset:0,focusKey:ve,focusOffset:oe.getLength()}),"backward"),pe=x.Modifier.setBlockType(pe,pe.getSelectionAfter(),"unstyled"),Ae=x.EditorState.push(te,pe,"remove-range"),x.EditorState.forceSelection(Ae,le||pe.getSelectionAfter())},C=P.getSelectionBlock=function(te){return te.getCurrentContent().getBlockForKey(te.getSelection().getAnchorKey())},l=P.updateEachCharacterOfSelection=function(te,oe){var le=te.getSelection(),pe=te.getCurrentContent(),Ae=pe.getBlockMap(),ve=g(te);if(ve.length===0)return te;var Fe=le.getStartKey(),Ie=le.getStartOffset(),Me=le.getEndKey(),We=le.getEndOffset(),lt=Ae.map(function(me){if(ve.indexOf(me)===-1)return me;var it=me.getKey(),qe=me.getCharacterList(),ft=null;return it===Fe&&it===Me?ft=qe.map(function(dt,pt){return pt>=Ie&&pt=Ie?oe(dt):dt}):it===Me?ft=qe.map(function(dt,pt){return pt2&&arguments[2]!==void 0?arguments[2]:"",pe=te;return oe=le+oe.toUpperCase(),le&&(pe=l(pe,function(Ae){return Ae.toJS().style.reduce(function(ve,Fe){return Fe.indexOf(le)===0&&oe!==Fe?x.CharacterMetadata.removeStyle(ve,Fe):ve},Ae)})),x.RichUtils.toggleInlineStyle(pe,oe)},Q=P.removeSelectionInlineStyles=function(te){return l(te,function(oe){return oe.merge({style:p.default.OrderedSet([])})})},ue=P.toggleSelectionAlignment=function(te,oe){return D(te,{textAlign:F(te,"textAlign")!==oe?oe:void 0})},Se=P.toggleSelectionIndent=function(te,oe){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6;return oe<0||oe>le||isNaN(oe)?te:D(te,{textIndent:oe||void 0})},ye=P.increaseSelectionIndent=function(te){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,le=F(te,"textIndent")||0;return Se(te,le+1,oe)},V=P.decreaseSelectionIndent=function(te){var oe=F(te,"textIndent")||0;return Se(te,oe-1)},Be=P.toggleSelectionColor=function(te,oe){return re(te,oe.replace("#",""),"COLOR-")},ze=P.toggleSelectionBackgroundColor=function(te,oe){return re(te,oe.replace("#",""),"BGCOLOR-")},Le=P.toggleSelectionFontSize=function(te,oe){return re(te,oe,"FONTSIZE-")},Ue=P.toggleSelectionLineHeight=function(te,oe){return re(te,oe,"LINEHEIGHT-")},ot=P.toggleSelectionFontFamily=function(te,oe){return re(te,oe,"FONTFAMILY-")},at=P.toggleSelectionLetterSpacing=function(te,oe){return re(te,oe,"LETTERSPACING-")},_e=P.insertText=function(te,oe,le,pe){var Ae=te.getSelection(),ve=y(te);if(ve==="atomic")return te;var Fe=void 0,Ie=te.getCurrentContent();return pe&&pe.type&&(Ie=Ie.createEntity(pe.type,pe.mutability||"MUTABLE",pe.data||entityData),Fe=Ie.getLastCreatedEntityKey()),Ae.isCollapsed()?x.EditorState.push(te,x.Modifier.insertText(Ie,Ae,oe,le,Fe),"insert-text"):x.EditorState.push(te,x.Modifier.replaceText(Ie,Ae,oe,le,Fe),"replace-text")},Ze=P.insertHTML=function(te,oe,le){if(!oe)return te;var pe=te.getSelection(),Ae=te.getCurrentContent(),ve=te.convertOptions||{};try{var Fe=(0,x.convertFromRaw)((0,v.convertHTMLToRaw)(oe,ve,le)),Ie=Fe.blockMap;return x.EditorState.push(te,x.Modifier.replaceWithFragment(Ae,pe,Ie),"insert-fragment")}catch(Me){return console.warn(Me),te}},Te=P.insertAtomicBlock=function Ke(te,oe){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(i(te))return Ke(u(te,C(te)),oe,le,pe);var Ae=te.getSelection(),ve=te.getCurrentContent();if(!Ae.isCollapsed()||y(te)==="atomic")return te;var Fe=ve.createEntity(oe,le?"IMMUTABLE":"MUTABLE",pe),Ie=Fe.getLastCreatedEntityKey(),Me=x.AtomicBlockUtils.insertAtomicBlock(te,Ie," ");return Me},Ge=P.insertHorizontalLine=function(te){return Te(te,"HR")},Ye=P.insertMedias=function(te){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return oe.length?oe.reduce(function(le,pe){var Ae=pe.url,ve=pe.link,Fe=pe.link_target,Ie=pe.name,Me=pe.type,We=pe.width,lt=pe.height,me=pe.meta;return Te(le,Me,!0,{url:Ae,link:ve,link_target:Fe,name:Ie,type:Me,width:We,height:lt,meta:me})},te):te},ut=P.setMediaData=function(te,oe,le){return x.EditorState.push(te,te.getCurrentContent().mergeEntityData(oe,le),"change-block-data")},bt=P.removeMedia=function(te,oe){return E(te,oe)},nt=P.setMediaPosition=function(te,oe,le){var pe={},Ae=le.float,ve=le.alignment;return typeof Ae!="undefined"&&(pe.float=oe.getData().get("float")===Ae?null:Ae),typeof ve!="undefined"&&(pe.alignment=oe.getData().get("alignment")===ve?null:ve),D(r(te,oe),pe)},be=P.clear=function(te){var oe=te.getCurrentContent(),le=oe.getFirstBlock(),pe=oe.getLastBlock(),Ae=new x.SelectionState({anchorKey:le.getKey(),anchorOffset:0,focusKey:pe.getKey(),focusOffset:pe.getLength(),hasFocus:!0});return x.RichUtils.toggleBlockType(x.EditorState.push(te,x.Modifier.removeRange(oe,Ae,"backward"),"remove-range"),"unstyled")},Xe=P.handleKeyCommand=function(te,oe){return x.RichUtils.handleKeyCommand(te,oe)},Et=P.undo=function(te){return x.EditorState.undo(te)},Ut=P.redo=function(te){return x.EditorState.redo(te)}},32452:function(z,P,o){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.ColorUtils=P.BaseUtils=P.ContentUtils=void 0;var x=o(17517),b=S(x),v=o(74652),A=S(v),p=o(29884),B=S(p);function S(s){if(s&&s.__esModule)return s;var a={};if(s!=null)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(a[c]=s[c]);return a.default=s,a}var d=P.ContentUtils=b,f=P.BaseUtils=A,h=P.ColorUtils=B},34561:function(z,P,o){"use strict";o.r(P),o.d(P,{convertFromHTML:function(){return Qt},convertToHTML:function(){return Te},parseHTML:function(){return ut}});var x=o(41143),b=o.n(x),v=o(67294),A=o(97762),p=o(9041);function B(J,ae){(ae==null||ae>J.length)&&(ae=J.length);for(var N=0,_=new Array(ae);N=J.offset&&ae+N<=J.offset+J.length;if(Ee)return Object.assign({},J,{length:J.length+xe});var we=J.offset>=ae&&J.offset+J.length<=ae+N&&Z>0;if(we)return Object.assign({},J,{offset:J.offset+Z});var ge=J.offsetae&&Z>0;if(ge)return[Object.assign({},J,{length:ae-J.offset}),Object.assign({},J,{offset:ae+Z,length:J.offset-ae+J.length})];var je=J.offset>=ae&&J.offset+J.length>ae+N&&ae+N>J.offset&&fe>0;return je?[Object.assign({},J,{offset:J.offset+Z,length:ae+N-J.offset}),Object.assign({},J,{offset:ae+N+Z+fe,length:J.offset+J.length-(ae+N)})]:J}var c=function(J,ae){return J.offset===ae.offset?ae.length-J.length:J.offset-ae.offset},i={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\n":"
"},r=function(J){for(var ae=s(J.text),N=J.entityRanges.sort(c),_=J.inlineStyleRanges.sort(c),Z="",fe=function(Ee){var we=ae[Ee];if(i[we]!==void 0){var ge=i[we],je=s(Z).length;Z+=ge;var Qe=function(He){return a(He,je,we.length,ge.length,0,0)};N=N.map(Qe),_=_.map(Qe)}else Z+=we},xe=0;xe1,"convertToHTML: Element of type ".concat(J.type," must render children")),b()(ae.length<3,"convertToHTML: Element of type ".concat(J.type," cannot use carriage return character")),{start:ae[0],end:ae[1]}}function l(J){return v.isValidElement(J)&&v.Children.count(J.props.children)>0}function g(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(J==null||typeof J=="string")return J;if(v.isValidElement(J)){if(l(J))return A.renderToStaticMarkup(J);var N=C(J);if(ae!==null&&u(N)==="object"){var _=N.start,Z=N.end;return _+ae+Z}return N}if(b()(Object.prototype.hasOwnProperty.call(J,"start")&&Object.prototype.hasOwnProperty.call(J,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),ae!==null){var fe=J.start,xe=J.end;return fe+ae+xe}return J}var D=function J(ae){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"start";if(v.isValidElement(ae)){var _=C(ae);if(typeof _=="string")return 0;var Z=_[N].length,fe=v.Children.toArray(ae.props.children)[0];return Z+(fe&&v.isValidElement(fe)?J(fe,N):0)}return u(ae)==="object"&&ae[N]?ae[N].length:0},F=D,y=function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=arguments.length>1?arguments[1]:void 0;return N},L=function(J,ae){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y,_=s(J.text),Z=N;if(N.__isMiddleware&&(Z=N(y)),Object.prototype.hasOwnProperty.call(J,"entityRanges")&&J.entityRanges.length>0){for(var fe=J.entityRanges.sort(c),xe=J.inlineStyleRanges,Ce=function(ge){var je=fe[ge],Qe=ae[je.key],Oe=_.slice(je.offset,je.offset+je.length).join(""),He=Z(Qe,Oe),Re=g(He,Oe),ke=void 0;!!Re||Re===""?ke=s(Re):ke=Oe;var gt=F(He,"start"),mt=F(He,"end"),Ne=function(et,ht){return ht>ge||Object.prototype.hasOwnProperty.call(et,"style")?a(et,je.offset,je.length,ke.length,gt,mt):et},rt=function(et){return et.reduce(function(ht,kt,_t){var Kt=Ne(kt,_t);return Array.isArray(Kt)?ht.concat(Kt):ht.concat([Kt])},[])};fe=rt(fe),xe=rt(xe),_=[].concat(s(_.slice(0,je.offset)),s(ke),s(_.slice(je.offset+je.length)))},Ee=0;Ee=_.offset&&ae<_.offset+_.length})},O=function(ae,N){var _=ae.offset<=N.offset,Z=ae.offset+ae.length>=N.offset+N.length;return _&&Z},re=function(ae,N){var _=N.offset+N.length,Z=ae.offset+ae.length;return _-Z},Q=function(ae,N){for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:ye;b()(J!=null,"Expected raw block to be non-null");var N;ae.__isMiddleware===!0?N=ae(w):N=I(T(ae),T(w));for(var _="",Z=[],fe=J.inlineStyleRanges.sort(c),xe=s(J.text),Ce=0;Ce0}function Le(J){return b()(J!=null,"Expected block HTML value to be non-null"),typeof J=="string"?J:v.isValidElement(J)?ze(J)?A.renderToStaticMarkup(J):C(J):Object.prototype.hasOwnProperty.call(J,"element")&&v.isValidElement(J.element)?Object.assign({},J,C(J.element)):(b()(Object.prototype.hasOwnProperty.call(J,"start")&&Object.prototype.hasOwnProperty.call(J,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),J)}function Ue(J,ae){if(b()(J!=null,"Expected block HTML value to be non-null"),typeof J.nest=="function"){var N=C(J.nest(ae)),_=N.start,Z=N.end;return Object.assign({},J,{nestStart:_,nestEnd:Z})}if(v.isValidElement(J.nest)){var fe=C(J.nest),xe=fe.start,Ce=fe.end;return Object.assign({},J,{nestStart:xe,nestEnd:Ce})}return b()(Object.prototype.hasOwnProperty.call(J,"nestStart")&&Object.prototype.hasOwnProperty.call(J,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),J}var ot=["1","a","i"],at={unstyled:v.createElement("p",null),paragraph:v.createElement("p",null),"header-one":v.createElement("h1",null),"header-two":v.createElement("h2",null),"header-three":v.createElement("h3",null),"header-four":v.createElement("h4",null),"header-five":v.createElement("h5",null),"header-six":v.createElement("h6",null),"code-block":v.createElement("pre",null),blockquote:v.createElement("blockquote",null),"unordered-list-item":{element:v.createElement("li",null),nest:v.createElement("ul",null)},"ordered-list-item":{element:v.createElement("li",null),nest:function(ae){var N=ot[ae%3];return v.createElement("ol",{type:N})}},media:v.createElement("figure",null),atomic:v.createElement("figure",null)},_e=function(ae,N){return N},Ze=function(ae){var N=ae.styleToHTML,_=N===void 0?{}:N,Z=ae.blockToHTML,fe=Z===void 0?{}:Z,xe=ae.entityToHTML,Ce=xe===void 0?_e:xe;return function(Ee){b()(Ee!=null,"Expected contentState to be non-null");var we;fe.__isMiddleware===!0?we=fe(Be(at)):we=I(Be(fe),Be(at));var ge=(0,p.convertToRaw)(Ee),je=[],Qe=ge.blocks.map(function(Oe){var He=Oe.type,Re=Oe.depth,ke="",gt="",mt=we(Oe);if(!mt)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(Oe.type));if(!mt.nest)ke=je.reduceRight(function(kt,_t){return kt+Ue(we(_t),Re).nestEnd},""),je=[];else for(;Re+1!==je.length||He!==je[Re].type;)if(Re+1===je.length){var Ne=je[Re];ke+=Ue(we(Ne),Re).nestEnd,gt+=Ue(we(Oe),Re).nestStart,je[Re]=Oe}else if(Re+12&&arguments[2]!==void 0?arguments[2]:!1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:(0,Ge.Map)();return N===!0?{text:"\r",inlines:[(0,Ge.OrderedSet)()],entities:new Array(1),blocks:[{type:J,data:_,depth:Math.max(0,Math.min(be,ae))}],isNewline:!0}:{text:` `,inlines:[(0,Ge.OrderedSet)()],entities:new Array(1),blocks:[]}}function it(J,ae){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,Ge.Map)();return{text:"\r",inlines:[(0,Ge.OrderedSet)()],entities:new Array(1),blocks:[{type:J,data:N,depth:Math.max(0,Math.min(be,ae))}]}}function qe(J,ae){switch(J){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return ae==="ol"?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function ft(J,ae,N){return qe(J,N)}function dt(J,ae,N){var _=oe[J];if(_)N=N.add(_).toOrderedSet();else if(ae instanceof HTMLElement){var Z=ae;N=N.withMutations(function(fe){Z.style.fontWeight==="bold"&&fe.add("BOLD"),Z.style.fontStyle==="italic"&&fe.add("ITALIC"),Z.style.textDecoration==="underline"&&fe.add("UNDERLINE"),Z.style.textDecoration==="line-through"&&fe.add("STRIKETHROUGH")}).toOrderedSet()}return N}function pt(J,ae){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,Ge.OrderedSet)();return dt(J,ae,N)}function Tt(J,ae){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=ae.text.slice(0,1),Z=J.text.slice(-1),fe=Z==="\r"&&_==="\r",xe=J.text!=="\r"&&ae.text!=="\r",Ce=J.text==="\r"&&!J.isNewline&&ae.isNewline;if(fe&&(xe||Ce)&&(J.text=J.text.slice(0,-1),J.inlines.pop(),J.entities.pop(),J.blocks.pop()),J.text.slice(-1)==="\r"&&N===!0){if(ae.text===nt||ae.text===` `)return J;(_===nt||_===` `)&&(ae.text=ae.text.slice(1),ae.inlines.shift(),ae.entities.shift())}var Ee=J.text.length===0&&ae.isNewline;return{text:J.text+ae.text,inlines:J.inlines.concat(ae.inlines),entities:J.entities.concat(ae.entities),blocks:J.blocks.concat(ae.blocks),isNewline:Ee}}function wt(J){return te.some(function(ae){return J.indexOf("<".concat(ae))!==-1})}function Ot(J,ae,N,_,Z,fe,xe,Ce,Ee,we,ge,je,Qe,Oe,He,Re){var ke=J.nodeName.toLowerCase(),gt=!1,mt="unstyled";if(ke==="#text"){var Ne=J.textContent;if(Ne.trim()===""&&_===null)return We();if(Ne.trim()===""&&_!=="code-block")return lt(Re);_!=="code-block"&&(Ne=Ne.replace(Et,nt));var rt=Array(Ne.length).fill(Re),It=0,et=Ee(Ne,ge,je,Qe,Oe).sort(c);return et.forEach(function(Sn){var Hn=Sn.entity,fn=Sn.offset,An=Sn.length,dn=Sn.result,Cn=fn+It;dn==null&&(dn=Ne.substr(Cn,An));var bn=Ne.split("");bn.splice.bind(bn,Cn,An).apply(bn,dn.split("")),Ne=bn.join(""),rt.splice.bind(rt,Cn,An).apply(rt,Array(dn.length).fill(Hn)),It+=dn.length-An}),{text:Ne,inlines:Array(Ne.length).fill(ae),entities:rt,blocks:[]}}if(ke==="br"){var ht=_;return ht===null?me("unstyled",fe,!0):me(ht||"unstyled",fe,He.flat)}var kt=We(),_t=null;ae=dt(ke,J,ae),ae=xe(ke,J,ae),(ke==="ul"||ke==="ol")&&(N&&(fe+=1),N=ke,_=null);var Kt=we(ke,J,N,_),Vt,cn;if(Kt===!1)return We();if(Kt=Kt||{},typeof Kt=="string"?(Vt=Kt,cn=(0,Ge.Map)()):(Vt=typeof Kt=="string"?Kt:Kt.type,cn=Kt.data?(0,Ge.Map)(Kt.data):(0,Ge.Map)()),!_&&(Z.indexOf(ke)!==-1||Vt))kt=it(Vt||qe(ke,N),fe,cn),_=Vt||qe(ke,N),gt=!0;else if(N&&(_==="ordered-list-item"||_==="unordered-list-item")&&ke==="li"){var Ln=qe(ke,N);kt=it(Ln,fe),_=Ln,gt=!0,mt=N==="ul"?"unordered-list-item":"ordered-list-item"}else _&&_!=="atomic"&&Vt==="atomic"&&(_=Vt,gt=!0,kt=me(Vt,fe,!0,cn));var Rt=J.firstChild;Rt==null&&Re&&(Vt==="atomic"||_==="atomic")&&(Rt=document.createTextNode("a")),Rt!=null&&(ke=Rt.nodeName.toLowerCase());for(var In=null;Rt;){In=Ce(ke,Rt,ge,je,Qe,Oe),_t=Ot(Rt,ae,N,_,Z,fe,xe,Ce,Ee,we,ge,je,Qe,Oe,He,In||Re),kt=Tt(kt,_t,He.flat);var Zt=Rt.nextSibling;if(Zt&&Z.indexOf(ke)>=0&&_){var Jt=we(ke,Rt,N,_),on=void 0,Nn=void 0;Jt!==!1&&(Jt=Jt||{},typeof Jt=="string"?(on=Jt,Nn=(0,Ge.Map)()):(on=Jt.type||qe(ke,N),Nn=Jt.data?(0,Ge.Map)(Jt.data):(0,Ge.Map)()),kt=Tt(kt,me(on,fe,He.flat,Nn),He.flat))}Zt&&(ke=Zt.nodeName.toLowerCase()),Rt=Zt}return gt&&(kt=Tt(kt,it(mt,fe,(0,Ge.Map)()),He.flat)),kt}function Dt(J,ae,N,_,Z,fe,xe,Ce,Ee,we,ge){J=J.trim().replace(Xe,"").replace(Ut,nt);var je=ge(J);if(!je)return null;var Qe=wt(J)?te.concat(["div"]):["div"],Oe=Ot(je,(0,Ge.OrderedSet)(),"ul",null,Qe,-1,ae,N,_,Z,fe,xe,Ce,Ee,we);return Oe.text.indexOf("\r")===0&&(Oe={text:Oe.text.slice(1),inlines:Oe.inlines.slice(1),entities:Oe.entities.slice(1),blocks:Oe.blocks}),Oe.text.slice(-1)==="\r"&&(Oe.text=Oe.text.slice(0,-1),Oe.inlines=Oe.inlines.slice(0,-1),Oe.entities=Oe.entities.slice(0,-1),Oe.blocks.pop()),Oe.blocks.length===0&&Oe.blocks.push({type:"unstyled",data:(0,Ge.Map)(),depth:0}),Oe.text.split("\r").length===Oe.blocks.length+1&&Oe.blocks.unshift({type:"unstyled",data:(0,Ge.Map)(),depth:0}),Oe}function jt(J,ae,N,_,Z,fe,xe,Ce,Ee,we,ge,je){var Qe=Dt(J,ae,N,_,Z,fe,xe,Ce,Ee,we,ge,je);if(Qe==null)return[];var Oe=0;return Qe.text.split("\r").map(function(He,Re){He=Me(He);var ke=Oe+He.length,gt=Ie(Qe).inlines.slice(Oe,ke),mt=Ie(Qe).entities.slice(Oe,ke),Ne=(0,Ge.List)(gt.map(function(rt,It){var et={style:rt,entity:null};return mt[It]&&(et.entity=mt[It]),p.CharacterMetadata.create(et)}));return Oe=ke+1,new p.ContentBlock({key:je(),type:Ie(Qe).blocks[Re].type,data:Ie(Qe).blocks[Re].data,depth:Ie(Qe).blocks[Re].depth,text:He,characterList:Ne})})}var Bt=function(ae){var N=ae.htmlToStyle,_=N===void 0?Ae:N,Z=ae.htmlToEntity,fe=Z===void 0?ve:Z,xe=ae.textToEntity,Ce=xe===void 0?Fe:xe,Ee=ae.htmlToBlock,we=Ee===void 0?pe:Ee;return function(ge){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{flat:!1},Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut,Oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p.genKey,He=p.ContentState.createFromText(""),Re=function(){if(He.createEntity){var ht;return He=(ht=He).createEntity.apply(ht,arguments),He.getLastCreatedEntityKey()}return p.Entity.create.apply(p.Entity,arguments)},ke=function(){if(He.getEntity){var ht;return(ht=He).getEntity.apply(ht,arguments)}return p.Entity.get.apply(p.Entity,arguments)},gt=function(){if(He.mergeEntityData){var ht;He=(ht=He).mergeEntityData.apply(ht,arguments);return}p.Entity.mergeData.apply(p.Entity,arguments)},mt=function(){if(He.replaceEntityData){var ht;He=(ht=He).replaceEntityData.apply(ht,arguments);return}p.Entity.replaceData.apply(p.Entity,arguments)},Ne=jt(ge,le(_,pt),le(fe,ve),le(Ce,Fe),le(we,ft),Re,ke,gt,mt,je,Qe,Oe),rt=p.BlockMapBuilder.createFromArray(Ne),It=Ne[0].getKey();return He.merge({blockMap:rt,selectionBefore:p.SelectionState.createEmpty(It),selectionAfter:p.SelectionState.createEmpty(It)})}},Qt=function(){return arguments.length>=1&&typeof(arguments.length<=0?void 0:arguments[0])=="string"?Bt({}).apply(void 0,arguments):Bt.apply(void 0,arguments)}},19785:function(z,P,o){"use strict";var x=o(27418),b=x||function(l){for(var g=1;g0&&arguments[0]!==void 0?arguments[0]:c;return x(this,l),b(this,C.call(this,u(g)))}return l.prototype.getKey=function(){return this.get("key")},l.prototype.getType=function(){return this.get("type")},l.prototype.getText=function(){return this.get("text")},l.prototype.getCharacterList=function(){return this.get("characterList")},l.prototype.getLength=function(){return this.getText().length},l.prototype.getDepth=function(){return this.get("depth")},l.prototype.getData=function(){return this.get("data")},l.prototype.getInlineStyleAt=function(D){var F=this.getCharacterList().get(D);return F?F.getStyle():a},l.prototype.getEntityAt=function(D){var F=this.getCharacterList().get(D);return F?F.getEntity():null},l.prototype.getChildKeys=function(){return this.get("children")},l.prototype.getParentKey=function(){return this.get("parent")},l.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},l.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},l.prototype.findStyleRanges=function(D,F){B(this.getCharacterList(),i,D,F)},l.prototype.findEntityRanges=function(D,F){B(this.getCharacterList(),r,D,F)},l}(h(c));z.exports=E},66912:function(z,P,o){"use strict";function x(F,y){if(!(F instanceof y))throw new TypeError("Cannot call a class as a function")}function b(F,y){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:F}function v(F,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);F.prototype=Object.create(y&&y.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(F,y):F.__proto__=y)}var A=o(10329),p=o(4516),B=o(2641),S=o(67953),d=o(82222),f=o(36105),h=o(43393),s=o(25110),a=o(25027),c=o(55283),i=h.List,r=h.Record,u=h.Repeat,E=f.draft_tree_data_support,C={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},l=E?S:B,g=r(C),D=function(F){v(y,F);function y(){return x(this,y),b(this,F.apply(this,arguments))}return y.prototype.getEntityMap=function(){return d},y.prototype.getBlockMap=function(){return this.get("blockMap")},y.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},y.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},y.prototype.getBlockForKey=function(T){var I=this.getBlockMap().get(T);return I},y.prototype.getKeyBefore=function(T){return this.getBlockMap().reverse().keySeq().skipUntil(function(I){return I===T}).skip(1).first()},y.prototype.getKeyAfter=function(T){return this.getBlockMap().keySeq().skipUntil(function(I){return I===T}).skip(1).first()},y.prototype.getBlockAfter=function(T){return this.getBlockMap().skipUntil(function(I,w){return w===T}).skip(1).first()},y.prototype.getBlockBefore=function(T){return this.getBlockMap().reverse().skipUntil(function(I,w){return w===T}).skip(1).first()},y.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},y.prototype.getFirstBlock=function(){return this.getBlockMap().first()},y.prototype.getLastBlock=function(){return this.getBlockMap().last()},y.prototype.getPlainText=function(T){return this.getBlockMap().map(function(I){return I?I.getText():""}).join(T||` `)},y.prototype.getLastCreatedEntityKey=function(){return d.__getLastCreatedEntityKey()},y.prototype.hasText=function(){var T=this.getBlockMap();return T.size>1||T.first().getLength()>0},y.prototype.createEntity=function(T,I,w){return d.__create(T,I,w),this},y.prototype.mergeEntityData=function(T,I){return d.__mergeData(T,I),this},y.prototype.replaceEntityData=function(T,I){return d.__replaceData(T,I),this},y.prototype.addEntity=function(T){return d.__add(T),this},y.prototype.getEntity=function(T){return d.__get(T)},y.createFromBlockArray=function(T,I){var w=Array.isArray(T)?T:T.contentBlocks,H=A.createFromArray(w),j=H.isEmpty()?new s:s.createEmpty(H.first().getKey());return new y({blockMap:H,entityMap:I||d,selectionBefore:j,selectionAfter:j})},y.createFromText=function(T){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,w=T.split(I),H=w.map(function(j){return j=c(j),new l({key:a(),text:j,type:"unstyled",characterList:i(u(p.EMPTY,j.length))})});return y.createFromBlockArray(H)},y}(g);z.exports=D},13483:function(z,P,o){"use strict";var x=o(4516),b=o(43393),v=b.Map,A={add:function(S,d,f){return p(S,d,f,!0)},remove:function(S,d,f){return p(S,d,f,!1)}};function p(B,S,d,f){var h=B.getBlockMap(),s=S.getStartKey(),a=S.getStartOffset(),c=S.getEndKey(),i=S.getEndOffset(),r=h.skipUntil(function(u,E){return E===s}).takeUntil(function(u,E){return E===c}).concat(v([[c,h.get(c)]])).map(function(u,E){var C,l;s===c?(C=a,l=i):(C=E===s?a:0,l=E===c?i:u.getLength());for(var g=u.getCharacterList(),D;C0&&window.scrollTo(U.x,U.y+O+g)}else{H instanceof HTMLElement||C(!1);var Se=H.offsetHeight+H.offsetTop,ye=j.offsetHeight+U.y;O=Se-ye,O>0&&h.setTop(j,h.getTop(j)+O+g)}}},L.prototype._renderChildren=function(){var I=this,w=this.props.block,H=w.getKey(),j=w.getText(),U=this.props.tree.size-1,O=D(this.props.selection,H);return this.props.tree.map(function(re,Q){var ue=re.get("leaves"),Se=ue.size-1,ye=ue.map(function(_e,Ze){var Te=S.encode(H,Q,Ze),Ge=_e.get("start"),Ye=_e.get("end");return d.createElement(B,{key:Te,offsetKey:Te,block:w,start:Ge,selection:O?I.props.selection:null,forceSelection:I.props.forceSelection,text:j.slice(Ge,Ye),styleSet:w.getInlineStyleAt(Ge),customStyleMap:I.props.customStyleMap,customStyleFn:I.props.customStyleFn,isLast:Q===U&&Ze===Se})}).toArray(),V=re.get("decoratorKey");if(V==null||!I.props.decorator)return ye;var Be=l(I.props.decorator),ze=Be.getComponentForKey(V);if(!ze)return ye;var Le=Be.getPropsForKey(V),Ue=S.encode(H,Q,0),ot=j.slice(ue.first().get("start"),ue.last().get("end")),at=c.getHTMLDirIfDifferent(a.getDirection(ot),I.props.direction);return d.createElement(ze,b({},Le,{contentState:I.props.contentState,decoratedText:ot,dir:at,key:Ue,entityKey:w.getEntityAt(re.get("start")),offsetKey:Ue}),ye)}).toArray()},L.prototype.render=function(){var I=this.props,w=I.direction,H=I.offsetKey,j=i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":w==="LTR","public/DraftStyleDefault/rtl":w==="RTL"});return d.createElement("div",{"data-offset-key":H,className:j},this._renderChildren())},L}(d.Component);z.exports=F},33418:function(z,P,o){"use strict";var x=o(36105),b=o(42307),v=o(14289),A=o(25399),p=o(42128),B=o(42177),S=o(40258),d=20,f=!1,h=!1,s="",a={onBeforeInput:function(i,r){s=(s||"")+r.data},onCompositionStart:function(i){h=!0},onCompositionEnd:function(i){f=!1,h=!1,setTimeout(function(){f||a.resolveComposition(i)},d)},onKeyDown:function(i,r){if(!h){a.resolveComposition(i),i._onKeyDown(r);return}(r.which===A.RIGHT||r.which===A.LEFT)&&r.preventDefault()},onKeyPress:function(i,r){r.which===A.RETURN&&r.preventDefault()},resolveComposition:function(i){if(!h){f=!0;var r=s;s="";var u=v.set(i._latestEditorState,{inCompositionMode:!1}),E=u.getCurrentInlineStyle(),C=p(u.getCurrentContent(),u.getSelection()),l=!r||S(u)||E.size>0||C!==null;if(l&&i.restoreEditorDOM(),i.exitCurrentMode(),r){if(x.draft_handlebeforeinput_composed_text&&i.props.handleBeforeInput&&B(i.props.handleBeforeInput(r,u)))return;var g=b.replaceText(u.getCurrentContent(),u.getSelection(),r,E,C);i.update(v.push(u,g,"insert-characters"));return}l&&i.update(v.set(u,{nativelyRenderedContent:null,forceSelection:!0}))}}};z.exports=a},88795:function(z,P,o){"use strict";var x=o(27418),b=x||function(r){for(var u=1;uue;nt=s(nt,c(ze,bt,be,_e))}var Xe=Ue||B,Et={className:nt,"data-block":!0,"data-editor":T,"data-offset-key":Ze,key:Be};at!==void 0&&(Et=b({},Et,{contentEditable:at,suppressContentEditableWarning:!0}));var Ut=f.createElement(ut,Et,f.createElement(Xe,Te));Q.push({block:Ut,wrapperTemplate:Ye,key:Be,offsetKey:Ze}),Ye?ue=V.getDepth():ue=null,Se=Ye}for(var Ke=[],te=0;te0){if(i.props.handleDroppedFiles&&S(i.props.handleDroppedFiles(C,l)))return;p(l,function(D){D&&i.update(a(E,C,D))});return}var g=i._internalDrag?"internal":"external";if(!(i.props.handleDrop&&S(i.props.handleDrop(C,u,g)))){if(i._internalDrag){i.update(s(E,C));return}i.update(a(E,C,u.getText()))}}}};function s(c,i){var r=b.moveText(c.getCurrentContent(),c.getSelection(),i);return v.push(c,r,"insert-fragment")}function a(c,i,r){var u=b.insertText(c.getCurrentContent(),i,r,c.getCurrentInlineStyle());return v.push(c,u,"insert-fragment")}z.exports=h},19394:function(z,P,o){"use strict";var x=o(26396),b=o(43421),v=o(6155),A=o(69328),p=o(88922),B=o(39499),S=o(80981),d=o(62186),f=o(29971),h=o(46397),s=o(6089),a=o(14507),c={onBeforeInput:x,onBlur:b,onCompositionStart:v,onCopy:A,onCut:p,onDragOver:B,onDragStart:S,onFocus:d,onInput:f,onKeyDown:h,onPaste:s,onSelect:a};z.exports=c},42282:function(z,P,o){"use strict";var x=o(27418);function b(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function v(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function A(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var p=o(80052),B=o(67294),S=o(73935),d=o(73759),f=o(45412),h=function(s){A(a,s);function a(){return b(this,a),v(this,s.apply(this,arguments))}return a.prototype._setSelection=function(){var i=this.props.selection;if(!(i==null||!i.getHasFocus())){var r=this.props,u=r.block,E=r.start,C=r.text,l=u.getKey(),g=E+C.length;if(!!i.hasEdgeWithin(l,E,g)){var D=S.findDOMNode(this);D||d(!1);var F=D.firstChild;F||d(!1);var y=void 0;F.nodeType===Node.TEXT_NODE?y=F:F.tagName==="BR"?y=D:(y=F.firstChild,y||d(!1)),f(i,y,l,E,g)}}},a.prototype.shouldComponentUpdate=function(i){var r=S.findDOMNode(this.leaf);return r||d(!1),r.textContent!==i.text||i.styleSet!==this.props.styleSet||i.forceSelection},a.prototype.componentDidUpdate=function(){this._setSelection()},a.prototype.componentDidMount=function(){this._setSelection()},a.prototype.render=function(){var i=this,r=this.props.block,u=this.props.text;u.endsWith(` `)&&this.props.isLast&&(u+=` `);var E=this.props,C=E.customStyleMap,l=E.customStyleFn,g=E.offsetKey,D=E.styleSet,F=D.reduce(function(L,T){var I={},w=C[T];return w!==void 0&&L.textDecoration!==w.textDecoration&&(I.textDecoration=[L.textDecoration,w.textDecoration].join(" ").trim()),x(L,w,I)},{});if(l){var y=l(D,r);F=x(F,y)}return B.createElement("span",{"data-offset-key":g,ref:function(T){return i.leaf=T},style:F},B.createElement(p,null,u))},a}(B.Component);z.exports=h},28094:function(z,P,o){"use strict";function x(S,d){if(!(S instanceof d))throw new TypeError("Cannot call a class as a function")}function b(S,d){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:S}function v(S,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);S.prototype=Object.create(d&&d.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(S,d):S.__proto__=d)}var A=o(67294),p=o(62620),B=function(S){v(d,S);function d(){return x(this,d),b(this,S.apply(this,arguments))}return d.prototype.shouldComponentUpdate=function(h){return this.props.text!==h.text||this.props.editorState.getSelection().getHasFocus()!==h.editorState.getSelection().getHasFocus()},d.prototype.render=function(){var h=this.props.editorState.getSelection().getHasFocus(),s=p({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":h}),a={whiteSpace:"pre-wrap"};return A.createElement("div",{className:s},A.createElement("div",{className:p("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:a},this.props.text))},d}(A.Component);z.exports=B},80052:function(z,P,o){"use strict";function x(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}function b(c,i){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:c}function v(c,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);c.prototype=Object.create(i&&i.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(c,i):c.__proto__=i)}var A=o(67294),p=o(73935),B=o(4856),S=o(73759),d=B.isBrowser("IE <= 11");function f(c){return d?c.textContent===` `:c.tagName==="BR"}var h=d?A.createElement("span",{key:"A","data-text":"true"},` `):A.createElement("br",{key:"A","data-text":"true"}),s=d?A.createElement("span",{key:"B","data-text":"true"},` `):A.createElement("br",{key:"B","data-text":"true"}),a=function(c){v(i,c);function i(r){x(this,i);var u=b(this,c.call(this,r));return u._forceFlag=!1,u}return i.prototype.shouldComponentUpdate=function(u){var E=p.findDOMNode(this),C=u.children==="";return E instanceof Element||S(!1),C?!f(E):E.textContent!==u.children},i.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},i.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},i.prototype.render=function(){return this.props.children===""?this._forceFlag?h:s:A.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},i}(A.Component);z.exports=a},82222:function(z,P,o){"use strict";var x=o(27418),b=x||function(s){for(var a=1;a0)return" "+u}else if(E0){var u=h[i-1];u||v(!1),u.children.push(r);return}s.push(r)}),b({},f,{blocks:s})}};z.exports=S},33337:function(z,P,o){"use strict";var x=o(43393),b=o(7902),v=o(22045),A=x.OrderedMap,p,B={getDirectionMap:function(d,f){p?p.reset():p=new b;var h=d.getBlockMap(),s=h.valueSeq().map(function(c){return v(p).getDirection(c.getText())}),a=A(h.keySeq().zip(s));return f!=null&&x.is(f,a)?f:a}};z.exports=B},14289:function(z,P,o){"use strict";var x=o(27418),b=x||function(y){for(var L=1;L0?w.getInlineStyleAt(I-1):w.getLength()?w.getInlineStyleAt(0):F(y,T)}function D(y,L){var T=L.getStartKey(),I=L.getStartOffset(),w=y.getBlockForKey(T);return I0?w.getInlineStyleAt(I-1):F(y,T)}function F(y,L){var T=y.getBlockMap().reverse().skipUntil(function(I,w){return w===L}).skip(1).skipUntil(function(I,w){return I.getLength()}).first();return T?T.getInlineStyleAt(T.getLength()-1):f()}z.exports=i},47387:function(z,P,o){"use strict";var x=o(4856),b=x.isPlatform("Mac OS X"),v={isCtrlKeyCommand:function(p){return!!p.ctrlKey&&!p.altKey},isOptionKeyCommand:function(p){return b&&p.altKey},hasCommandModifier:function(p){return b?!!p.metaKey&&!p.altKey:v.isCtrlKeyCommand(p)}};z.exports=v},41947:function(z,P,o){"use strict";var x=o(42307),b=o(14289),v=o(25110),A=o(1665),p=o(22045),B={currentBlockContainsLink:function(d){var f=d.getSelection(),h=d.getCurrentContent(),s=h.getEntityMap();return h.getBlockForKey(f.getAnchorKey()).getCharacterList().slice(f.getStartOffset(),f.getEndOffset()).some(function(a){var c=a.getEntity();return!!c&&s.__get(c).getType()==="LINK"})},getCurrentBlockType:function(d){var f=d.getSelection();return d.getCurrentContent().getBlockForKey(f.getStartKey()).getType()},getDataObjectForLinkURL:function(d){return{url:d.toString()}},handleKeyCommand:function(d,f){switch(f){case"bold":return B.toggleInlineStyle(d,"BOLD");case"italic":return B.toggleInlineStyle(d,"ITALIC");case"underline":return B.toggleInlineStyle(d,"UNDERLINE");case"code":return B.toggleCode(d);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return B.onBackspace(d);case"delete":case"delete-word":case"delete-to-end-of-block":return B.onDelete(d);default:return null}},insertSoftNewline:function(d){var f=x.insertText(d.getCurrentContent(),d.getSelection(),` `,d.getCurrentInlineStyle(),null),h=b.push(d,f,"insert-characters");return b.forceSelection(h,f.getSelectionAfter())},onBackspace:function(d){var f=d.getSelection();if(!f.isCollapsed()||f.getAnchorOffset()||f.getFocusOffset())return null;var h=d.getCurrentContent(),s=f.getStartKey(),a=h.getBlockBefore(s);if(a&&a.getType()==="atomic"){var c=h.getBlockMap().delete(a.getKey()),i=h.merge({blockMap:c,selectionAfter:f});if(i!==h)return b.push(d,i,"remove-range")}var r=B.tryToRemoveBlockStyle(d);return r?b.push(d,r,"change-block-type"):null},onDelete:function(d){var f=d.getSelection();if(!f.isCollapsed())return null;var h=d.getCurrentContent(),s=f.getStartKey(),a=h.getBlockForKey(s),c=a.getLength();if(f.getStartOffset()0&&c!==i)return null;var r=c.getType(),u=a.getBlockBefore(s);if(r==="code-block"&&u&&u.getType()==="code-block"&&u.getLength()!==0)return null;if(r!=="unstyled")return x.setBlockType(a,f,"unstyled")}return null}};z.exports=B},83751:function(z,P,o){"use strict";var x=o(42307),b=o(14289),v=o(88687),A=o(22045),p=null,B={cut:function(d){var f=d.getCurrentContent(),h=d.getSelection(),s=null;if(h.isCollapsed()){var a=h.getAnchorKey(),c=f.getBlockForKey(a).getLength();if(c===h.getAnchorOffset())return d;s=h.set("focusOffset",c)}else s=h;s=A(s),p=v(f,s);var i=x.removeRange(f,s,"forward");return i===f?d:b.push(d,i,"remove-range")},paste:function(d){if(!p)return d;var f=x.replaceWithFragment(d.getCurrentContent(),d.getSelection(),p);return b.push(d,f,"insert-fragment")}};z.exports=B},25110:function(z,P,o){"use strict";function x(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function b(f,h){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:f}function v(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}var A=o(43393),p=A.Record,B={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},S=p(B),d=function(f){v(h,f);function h(){return x(this,h),b(this,f.apply(this,arguments))}return h.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},h.prototype.getAnchorKey=function(){return this.get("anchorKey")},h.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},h.prototype.getFocusKey=function(){return this.get("focusKey")},h.prototype.getFocusOffset=function(){return this.get("focusOffset")},h.prototype.getIsBackward=function(){return this.get("isBackward")},h.prototype.getHasFocus=function(){return this.get("hasFocus")},h.prototype.hasEdgeWithin=function(a,c,i){var r=this.getAnchorKey(),u=this.getFocusKey();if(r===u&&r===a){var E=this.getStartOffset(),C=this.getEndOffset();return c<=C&&E<=i}if(a!==r&&a!==u)return!1;var l=a===r?this.getAnchorOffset():this.getFocusOffset();return c<=l&&i>=l},h.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},h.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},h.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},h.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},h.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},h.createEmpty=function(a){return new h({anchorKey:a,anchorOffset:0,focusKey:a,focusOffset:0,isBackward:!1,hasFocus:!1})},h}(S);z.exports=d},1665:function(z){"use strict";function P(o,x,b,v){var A=x.getStartKey(),p=x.getEndKey(),B=o.getBlockMap(),S=B.toSeq().skipUntil(function(d,f){return f===A}).takeUntil(function(d,f){return f===p}).concat([[p,B.get(p)]]).map(function(d){var f=d.getDepth()+b;return f=Math.max(0,Math.min(f,v)),d.set("depth",f)});return B=B.merge(S),o.merge({blockMap:B,selectionBefore:x,selectionAfter:x})}z.exports=P},2835:function(z,P,o){"use strict";var x=o(4516);function b(v,A,p,B){for(var S=v.getCharacterList();A=0?Fe.add("BOLD"):re.indexOf(Ie)>=0&&Fe.remove("BOLD"),Me==="italic"?Fe.add("ITALIC"):Me==="normal"&&Fe.remove("ITALIC"),We==="underline"&&Fe.add("UNDERLINE"),We==="line-through"&&Fe.add("STRIKETHROUGH"),We==="none"&&(Fe.remove("UNDERLINE"),Fe.remove("STRIKETHROUGH"))}).toOrderedSet()}return pe},Ze=function(oe,le,pe){var Ae=oe.text.slice(-1),ve=le.text.slice(0,1);if(Ae==="\r"&&ve==="\r"&&!pe&&(oe.text=oe.text.slice(0,-1),oe.inlines.pop(),oe.entities.pop(),oe.blocks.pop()),Ae==="\r"){if(le.text===L||le.text===` `)return oe;(ve===L||ve===` `)&&(le.text=le.text.slice(1),le.inlines.shift(),le.entities.shift())}return{text:oe.text+le.text,inlines:oe.inlines.concat(le.inlines),entities:oe.entities.concat(le.entities),blocks:oe.blocks.concat(le.blocks)}},Te=function(oe,le){return le.some(function(pe){return oe.indexOf("<"+pe)!==-1})},Ge=function(oe){oe instanceof HTMLAnchorElement||C(!1);var le=oe.protocol;return le==="http:"||le==="https:"||le==="mailto:"},Ye=function(oe){var le=new Array(1);return oe&&(le[0]=oe),x({},Be,{text:L,inlines:[F()],entities:le})},ut=function(){return x({},Be,{text:` `,inlines:[F()],entities:new Array(1)})},bt=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x({},ze,oe)},nt=function(oe,le){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return{text:"\r",inlines:[F()],entities:new Array(1),blocks:[bt({parent:pe,key:u(),type:oe,depth:Math.max(0,Math.min(T,le))})]}},be=function(oe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(ue).some(function(pe){oe.classList.contains(pe)&&(le=ue[pe])}),le},Xe=function te(oe,le,pe,Ae,ve,Fe,Ie,Me,We,lt){var me=V,it=le.nodeName.toLowerCase(),qe=oe,ft="unstyled",dt=!1,pt=ve&&at(ve,Ae,Me),Tt=x({},Be),wt=null,Ot=void 0;if(it==="#text"){var Dt=le.textContent,jt=Dt.trim();if(Ae&&jt===""&&le.parentElement){var Bt=le.parentElement.nodeName.toLowerCase();if(Bt==="ol"||Bt==="ul")return{chunk:x({},Be),entityMap:oe}}return jt===""&&ve!=="pre"?{chunk:Ye(We),entityMap:oe}:(ve!=="pre"&&(Dt=Dt.replace(w,L)),V=it,{chunk:{text:Dt,inlines:Array(Dt.length).fill(pe),entities:Array(Dt.length).fill(We),blocks:[]},entityMap:oe})}if(V=it,it==="br")return me==="br"&&(!ve||pt==="unstyled")?{chunk:nt("unstyled",Ie,lt),entityMap:oe}:{chunk:ut(),entityMap:oe};if(it==="img"&&le instanceof HTMLImageElement&&le.attributes.getNamedItem("src")&&le.attributes.getNamedItem("src").value){var Qt=le,J={};ye.forEach(function(ge){var je=Qt.getAttribute(ge);je&&(J[ge]=je)}),le.textContent="\u{1F4F7}",We=f.__create("IMAGE","MUTABLE",J||{})}pe=_e(it,le,pe),(it==="ul"||it==="ol")&&(Ae&&(Ie+=1),Ae=it),!g&&it==="li"&&le instanceof HTMLElement&&(Ie=be(le,Ie));var ae=at(it,Ae,Me),N=Ae&&ve==="li"&&it==="li",_=(!ve||g)&&Fe.indexOf(it)!==-1;(N||_)&&(Tt=nt(ae,Ie,lt),Ot=Tt.blocks[0].key,ve=it,dt=!g),N&&(ft=Ae==="ul"?"unordered-list-item":"ordered-list-item");var Z=le.firstChild;Z!=null&&(it=Z.nodeName.toLowerCase());for(var fe=null;Z;){Z instanceof HTMLAnchorElement&&Z.href&&Ge(Z)?function(){var ge=Z,je={};Se.forEach(function(Qe){var Oe=ge.getAttribute(Qe);Oe&&(je[Qe]=Oe)}),je.url=new i(ge.href).toString(),fe=f.__create("LINK","MUTABLE",je||{})}():fe=void 0;var xe=te(qe,Z,pe,Ae,ve,Fe,Ie,Me,fe||We,g?Ot:null),Ce=xe.chunk,Ee=xe.entityMap;wt=Ce,qe=Ee,Tt=Ze(Tt,wt,g);var we=Z.nextSibling;!lt&&we&&Fe.indexOf(it)>=0&&ve&&(Tt=Ze(Tt,ut())),we&&(it=we.nodeName.toLowerCase()),Z=we}return dt&&(Tt=Ze(Tt,nt(ft,Ie,lt))),{chunk:Tt,entityMap:qe}},Et=function(oe,le,pe,Ae){oe=oe.trim().replace(I,"").replace(H,L).replace(j,"").replace(U,"");var ve=Ue(pe),Fe=le(oe);if(!Fe)return null;V=null;var Ie=Te(oe,ve)?ve:["div"],Me=Xe(Ae,Fe,F(),"ul",null,Ie,-1,pe),We=Me.chunk,lt=Me.entityMap;return We.text.indexOf("\r")===0&&(We={text:We.text.slice(1),inlines:We.inlines.slice(1),entities:We.entities.slice(1),blocks:We.blocks}),We.text.slice(-1)==="\r"&&(We.text=We.text.slice(0,-1),We.inlines=We.inlines.slice(0,-1),We.entities=We.entities.slice(0,-1),We.blocks.pop()),We.blocks.length===0&&We.blocks.push(x({},Be,{type:"unstyled",depth:0})),We.text.split("\r").length===We.blocks.length+1&&We.blocks.unshift({type:"unstyled",depth:0}),{chunk:We,entityMap:lt}},Ut=function(oe){if(!oe||!oe.text||!Array.isArray(oe.blocks))return null;var le={cacheRef:{},contentBlocks:[]},pe=0,Ae=oe.blocks,ve=oe.inlines,Fe=oe.entities,Ie=g?S:B;return oe.text.split("\r").reduce(function(Me,We,lt){We=l(We);var me=Ae[lt],it=pe+We.length,qe=ve.slice(pe,it),ft=Fe.slice(pe,it),dt=D(qe.map(function(_,Z){var fe={style:_,entity:null};return ft[Z]&&(fe.entity=ft[Z]),p.create(fe)}));pe=it+1;var pt=me.depth,Tt=me.type,wt=me.parent,Ot=me.key||u(),Dt=null;if(wt){var jt=Me.cacheRef[wt],Bt=Me.contentBlocks[jt];if(Bt.getChildKeys().isEmpty()&&Bt.getText()){var Qt=Bt.getCharacterList(),J=Bt.getText();Dt=u();var ae=new S({key:Dt,text:J,characterList:Qt,parent:wt,nextSibling:Ot});Me.contentBlocks.push(ae),Bt=Bt.withMutations(function(_){_.set("characterList",D()).set("text","").set("children",Bt.children.push(ae.getKey()))})}Me.contentBlocks[jt]=Bt.set("children",Bt.children.push(Ot))}var N=new Ie({key:Ot,parent:wt,type:Tt,depth:pt,text:We,characterList:dt,prevSibling:Dt||(lt===0||Ae[lt-1].parent!==wt?null:Ae[lt-1].key),nextSibling:lt===Ae.length-1||Ae[lt+1].parent!==wt?null:Ae[lt+1].key});return Me.contentBlocks.push(N),Me.cacheRef[N.key]=lt,Me},le).contentBlocks},Ke=function(oe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d,Ae=Et(oe,le,pe,f);if(Ae==null)return null;var ve=Ae.chunk,Fe=Ae.entityMap,Ie=Ut(ve);return{contentBlocks:Ie,entityMap:Fe}};z.exports=Ke},99607:function(z,P,o){"use strict";var x=o(27418),b=x||function(j){for(var U=1;U0;){var Be=V.pop(),ze=Be.parentRef,Le=ze.getChildKeys(),Ue=Le.indexOf(Be.key),ot=Array.isArray(Be.children);if(!ot){ot||r(!1);break}var at=Be.children.map(F),_e=new A(b({},g(Be,O),{parent:ze.getKey(),children:E(at.map(function(Ze){return Ze.key})),prevSibling:Ue===0?null:Le.get(Ue-1),nextSibling:Ue===Le.size-1?null:Le.get(Ue+1)}));re=re.set(_e.getKey(),_e),V=y(V,at,_e)}return re},l())},T=function(U,O){return l(U.map(function(re){var Q=new v(g(re,O));return[Q.getKey(),Q]}))},I=function(U,O){var re=Array.isArray(U.blocks[0].children),Q=u&&!re?d.fromRawStateToRawTreeState(U).blocks:U.blocks;return u?L(Q,O):T(re?d.fromRawTreeStateToRawState(U).blocks:Q,O)},w=function(U){var O=U.entityMap,re={};return Object.keys(O).forEach(function(Q){var ue=O[Q],Se=ue.type,ye=ue.mutability,V=ue.data;re[Q]=B.__create(Se,ye,V||{})}),re},H=function(U){Array.isArray(U.blocks)||r(!1);var O=w(U),re=I(U,O),Q=re.isEmpty()?new h:h.createEmpty(re.first().getKey());return new p({blockMap:re,entityMap:O,selectionBefore:Q,selectionAfter:Q})};z.exports=H},86019:function(z,P,o){"use strict";var x=o(4516),b=o(43393),v=b.List;function A(p,B){var S=p.map(function(d,f){var h=B[f];return x.create({style:d,entity:h})});return v(S)}z.exports=A},67134:function(z,P,o){"use strict";var x=o(38935),b=x.substr;function v(A,p){var B=Array(A.length).fill(null);return p&&p.forEach(function(S){for(var d=b(A,0,S.offset).length,f=d+b(A,S.offset,S.length).length,h=d;h0){if(r.props.handlePastedFiles&&h(r.props.handlePastedFiles(C)))return;f(C,function(Q){if(Q=Q||l,!!Q){var ue=r._latestEditorState,Se=s(Q),ye=b.create({style:ue.getCurrentInlineStyle(),entity:d(ue.getCurrentContent(),ue.getSelection())}),V=S.getCurrentBlockType(ue),Be=p.processText(Se,ye,V),ze=x.createFromArray(Be),Le=A.replaceWithFragment(ue.getCurrentContent(),ue.getSelection(),ze);r.update(B.push(ue,Le,"insert-fragment"))}});return}}var g=[],D=E.getText(),F=E.getHTML(),y=r._latestEditorState;if(!(r.props.handlePastedText&&h(r.props.handlePastedText(D,F,y)))){if(D&&(g=s(D)),!r.props.stripPastedStyles){var L=r.getClipboard();if(E.isRichText()&&L){if(F.indexOf(r.getEditorKey())!==-1||g.length===1&&L.size===1&&L.first().getText()===D){r.update(c(r._latestEditorState,L));return}}else if(L&&E.types.includes("com.apple.webarchive")&&!E.types.includes("text/html")&&i(g,L)){r.update(c(r._latestEditorState,L));return}if(F){var T=p.processHTML(F,r.props.blockRenderMap);if(T){var I=T.contentBlocks,w=T.entityMap;if(I){var H=x.createFromArray(I);r.update(c(r._latestEditorState,H,w));return}}}r.setClipboard(null)}if(g.length){var j=b.create({style:y.getCurrentInlineStyle(),entity:d(y.getCurrentContent(),y.getSelection())}),U=S.getCurrentBlockType(y),O=p.processText(g,j,U),re=x.createFromArray(O);r.update(c(r._latestEditorState,re))}}}function c(r,u,E){var C=A.replaceWithFragment(r.getCurrentContent(),r.getSelection(),u);return B.push(r,C.set("entityMap",E),"insert-fragment")}function i(r,u){return r.length===u.size&&u.valueSeq().every(function(E,C){return E.getText()===r[C]})}z.exports=a},14507:function(z,P,o){"use strict";var x=o(14289),b=o(73935),v=o(1244),A=o(73759);function p(B){if(!(B._blockSelectEvents||B._latestEditorState!==B.props.editorState)){var S=B.props.editorState,d=b.findDOMNode(B.editorContainer);d||A(!1),d.firstChild instanceof HTMLElement||A(!1);var f=v(S,d.firstChild),h=f.selectionState;h!==S.getSelection()&&(f.needsRecovery?S=x.forceSelection(S,h):S=x.acceptSelection(S,h),B.update(S))}}z.exports=p},56265:function(z,P,o){"use strict";var x=o(86155),b=o(38935),v=b.strlen;function A(p,B){var S=[];return p.findEntityRanges(function(d){return!!d.getEntity()},function(d,f){var h=p.getText(),s=p.getEntityAt(d);S.push({offset:v(h.slice(0,d)),length:v(h.slice(d,f)),key:Number(B[x.stringify(s)])})}),S}z.exports=A},31487:function(z,P,o){"use strict";var x=o(38935),b=o(29407),v=function(f,h){return f===h},A=function(f){return!!f},p=[];function B(d,f,h){var s=[],a=f.map(function(c){return c.has(h)}).toList();return b(a,v,A,function(c,i){var r=d.getText();s.push({offset:x.strlen(r.slice(0,c)),length:x.strlen(r.slice(c,i)),style:h})}),s}function S(d){var f=d.getCharacterList().map(function(s){return s.getStyle()}).toList(),h=f.flatten().toSet().map(function(s){return B(d,f,s)});return Array.prototype.concat.apply(p,h.toJS())}z.exports=S},88182:function(z,P,o){"use strict";var x=o(38935),b=o(6092),v=o(73759);function A(d){var f=getComputedStyle(d),h=document.createElement("div");h.style.fontFamily=f.fontFamily,h.style.fontSize=f.fontSize,h.style.fontStyle=f.fontStyle,h.style.fontWeight=f.fontWeight,h.style.lineHeight=f.lineHeight,h.style.position="absolute",h.textContent="M";var s=document.body;s||v(!1),s.appendChild(h);var a=h.getBoundingClientRect();return s.removeChild(h),a.height}function p(d,f){for(var h=Infinity,s=Infinity,a=-Infinity,c=-Infinity,i=0;i=0;u--)if(!(r!=null&&u>0&&x.isSurrogatePair(r,u-1)))if(d.setStart(c,u),p(b(d),h))s=c,a=u;else break;if(u===-1||c.childNodes.length===0)break;c=c.childNodes[u],i=B(c)}while(!0);return d.setStart(s,a),d}z.exports=S},69270:function(z,P,o){"use strict";var x=o(93578);function b(v){for(var A=v;A&&A!==document.documentElement;){var p=x(A);if(p!=null)return p;A=A.parentNode}return null}z.exports=b},29407:function(z){"use strict";function P(o,x,b,v){if(!!o.size){var A=0;o.reduce(function(p,B,S){return x(p,B)||(b(p)&&v(A,S),A=S),B}),b(o.last())&&v(A,o.count())}}z.exports=P},25027:function(z){"use strict";var P={},o=Math.pow(2,24);function x(){for(var b=void 0;b===void 0||P.hasOwnProperty(b)||!isNaN(+b);)b=Math.floor(Math.random()*o).toString(32);return P[b]=!0,b}z.exports=x},81446:function(z,P,o){"use strict";var x=o(5195),b=o(64994),v=o(73759);function A(B,S,d,f,h){var s=f.getStartOffset(),a=f.getEndOffset(),c=S.getEntityAt(s),i=d.getEntityAt(a-1);if(!c&&!i)return f;var r=f;if(c&&c===i)r=p(B,S,r,h,c,!0,!0);else if(c&&i){var u=p(B,S,r,h,c,!1,!0),E=p(B,d,r,h,i,!1,!1);r=r.merge({anchorOffset:u.getAnchorOffset(),focusOffset:E.getFocusOffset(),isBackward:!1})}else if(c){var C=p(B,S,r,h,c,!1,!0);r=r.merge({anchorOffset:C.getStartOffset(),isBackward:!1})}else if(i){var l=p(B,d,r,h,i,!1,!1);r=r.merge({focusOffset:l.getEndOffset(),isBackward:!1})}return r}function p(B,S,d,f,h,s,a){var c=d.getStartOffset(),i=d.getEndOffset(),r=B.__get(h),u=r.getMutability(),E=a?c:i;if(u==="MUTABLE")return d;var C=b(S,h).filter(function(D){return E<=D.end&&E>=D.start});C.length!=1&&v(!1);var l=C[0];if(u==="IMMUTABLE")return d.merge({anchorOffset:l.start,focusOffset:l.end,isBackward:!1});s||(a?i=l.end:c=l.start);var g=x.getRemovalRange(c,i,S.getText().slice(l.start,l.end),l.start,f);return d.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}z.exports=A},88687:function(z,P,o){"use strict";var x=o(98555),b=o(14017),v=function(p,B){var S=B.getStartKey(),d=B.getStartOffset(),f=B.getEndKey(),h=B.getEndOffset(),s=b(p,B),a=s.getBlockMap(),c=a.keySeq(),i=c.indexOf(S),r=c.indexOf(f)+1;return x(a.slice(i,r).map(function(u,E){var C=u.getText(),l=u.getCharacterList();return S===f?u.merge({text:C.slice(d,h),characterList:l.slice(d,h)}):E===S?u.merge({text:C.slice(d),characterList:l.slice(d)}):E===f?u.merge({text:C.slice(0,h),characterList:l.slice(0,h)}):u}))};z.exports=v},41714:function(z,P,o){"use strict";var x=o(47387),b=o(25399),v=o(4856),A=v.isPlatform("Mac OS X"),p=v.isPlatform("Windows"),B=A&&v.isBrowser("Firefox < 29"),S=x.hasCommandModifier,d=x.isCtrlKeyCommand;function f(i){return A&&i.altKey||d(i)}function h(i){return S(i)?i.shiftKey?"redo":"undo":null}function s(i){return p&&i.shiftKey?null:f(i)?"delete-word":"delete"}function a(i){return S(i)&&A?"backspace-to-start-of-line":f(i)?"backspace-word":"backspace"}function c(i){switch(i.keyCode){case 66:return S(i)?"bold":null;case 68:return d(i)?"delete":null;case 72:return d(i)?"backspace":null;case 73:return S(i)?"italic":null;case 74:return S(i)?"code":null;case 75:return!p&&d(i)?"secondary-cut":null;case 77:return d(i)?"split-block":null;case 79:return d(i)?"split-block":null;case 84:return A&&d(i)?"transpose-characters":null;case 85:return S(i)?"underline":null;case 87:return A&&d(i)?"backspace-word":null;case 89:return d(i)?p?"redo":"secondary-paste":null;case 90:return h(i)||null;case b.RETURN:return"split-block";case b.DELETE:return s(i);case b.BACKSPACE:return a(i);case b.LEFT:return B&&S(i)?"move-selection-to-start-of-block":null;case b.RIGHT:return B&&S(i)?"move-selection-to-end-of-block":null;default:return null}}z.exports=c},1244:function(z,P,o){"use strict";var x=o(8101);function b(v,A){var p=o.g.getSelection();return p.rangeCount===0?{selectionState:v.getSelection().set("hasFocus",!1),needsRecovery:!1}:x(v,A,p.anchorNode,p.anchorOffset,p.focusNode,p.focusOffset)}z.exports=b},8101:function(z,P,o){"use strict";var x=o(69270),b=o(93578),v=o(94486),A=o(73759),p=o(22045);function B(s,a,c,i,r,u){var E=c.nodeType===Node.TEXT_NODE,C=r.nodeType===Node.TEXT_NODE;if(E&&C)return{selectionState:v(s,p(x(c)),i,p(x(r)),u),needsRecovery:!1};var l=null,g=null,D=!0;return E?(l={key:p(x(c)),offset:i},g=f(a,r,u)):C?(g={key:p(x(r)),offset:u},l=f(a,c,i)):(l=f(a,c,i),g=f(a,r,u),c===r&&i===u&&(D=!!c.firstChild&&c.firstChild.nodeName!=="BR")),{selectionState:v(s,l.key,l.offset,g.key,g.offset),needsRecovery:D}}function S(s){for(;s.firstChild&&(s.firstChild instanceof Element&&s.firstChild.getAttribute("data-blocks")==="true"||b(s.firstChild));)s=s.firstChild;return s}function d(s){for(;s.lastChild&&(s.lastChild instanceof Element&&s.lastChild.getAttribute("data-blocks")==="true"||b(s.lastChild));)s=s.lastChild;return s}function f(s,a,c){var i=a,r=x(i);if(r!=null||s&&(s===i||s.firstChild===i)||A(!1),s===i&&(i=i.firstChild,i instanceof Element&&i.getAttribute("data-contents")==="true"||A(!1),c>0&&(c=i.childNodes.length)),c===0){var u=null;if(r!=null)u=r;else{var E=S(i);u=p(b(E))}return{key:u,offset:0}}var C=i.childNodes[c-1],l=null,g=null;if(!b(C))l=p(r),g=h(C);else{var D=d(C);l=p(b(D)),g=h(D)}return{key:l,offset:g}}function h(s){var a=s.textContent;return a===` `?0:a.length}z.exports=B},42128:function(z){"use strict";function P(x,b){var v;if(b.isCollapsed()){var A=b.getAnchorKey(),p=b.getAnchorOffset();return p>0?(v=x.getBlockForKey(A).getEntityAt(p-1),v!==x.getBlockForKey(A).getEntityAt(p)?null:o(x.getEntityMap(),v)):null}var B=b.getStartKey(),S=b.getStartOffset(),d=x.getBlockForKey(B);return v=S===d.getLength()?null:d.getEntityAt(S),o(x.getEntityMap(),v)}function o(x,b){if(b){var v=x.__get(b);return v.getMutability()==="MUTABLE"?b:null}return null}z.exports=P},94882:function(z,P,o){"use strict";var x=o(88687);function b(v){var A=v.getSelection();return A.isCollapsed()?null:x(v.getCurrentContent(),A)}z.exports=b},39506:function(z,P,o){"use strict";var x=o(67953),b=function(A,p){var B=A instanceof x;if(!B)return null;var S=A.getNextSiblingKey();if(S)return S;var d=A.getParentKey();if(!d)return null;for(var f=p.get(d);f&&!f.getNextSiblingKey();){var h=f.getParentKey();f=h?p.get(h):null}return f?f.getNextSiblingKey():null};z.exports=b},98056:function(z,P,o){"use strict";var x=o(6092);function b(v){var A=x(v),p=0,B=0,S=0,d=0;if(A.length){if(A.length>1&&A[0].width===0){var f=A[1];p=f.top,B=f.right,S=f.bottom,d=f.left}else{var h=A[0];p=h.top,B=h.right,S=h.bottom,d=h.left}for(var s=1;sp){var d=v.getKeyBefore(A);if(d==null)B=A;else{B=d;var f=v.getBlockForKey(d);S=f.getText().length}}else S=p-x;return b.merge({focusKey:B,focusOffset:S,isBackward:!0})}z.exports=P},19417:function(z){"use strict";function P(o,x){var b=o.getSelection(),v=b.getStartKey(),A=b.getStartOffset(),p=o.getCurrentContent(),B=v,S,d=p.getBlockForKey(v);return x>d.getText().length-A?(B=p.getKeyAfter(v),S=0):S=A+x,b.merge({focusKey:B,focusOffset:S})}z.exports=P},98555:function(z,P,o){"use strict";var x=o(67953),b=o(43393),v=o(25027),A=b.OrderedMap,p=function(f){var h={},s=void 0;return A(f.withMutations(function(a){a.forEach(function(c,i){var r=c.getKey(),u=c.getNextSiblingKey(),E=c.getPrevSiblingKey(),C=c.getChildKeys(),l=c.getParentKey(),g=v();if(h[r]=g,u){var D=a.get(u);D?a.setIn([u,"prevSibling"],g):a.setIn([r,"nextSibling"],null)}if(E){var F=a.get(E);F?a.setIn([E,"nextSibling"],g):a.setIn([r,"prevSibling"],null)}if(l&&a.get(l)){var y=a.get(l),L=y.getChildKeys();a.setIn([l,"children"],L.set(L.indexOf(c.getKey()),g))}else a.setIn([r,"parent"],null),s&&(a.setIn([s.getKey(),"nextSibling"],g),a.setIn([r,"prevSibling"],h[s.getKey()])),s=a.get(r);C.forEach(function(T){var I=a.get(T);I?a.setIn([T,"parent"],g):a.setIn([r,"children"],c.getChildKeys().filter(function(w){return w!==T}))})})}).toArray().map(function(a){return[h[a.getKey()],a.set("key",h[a.getKey()])]}))},B=function(f){return A(f.toArray().map(function(h){var s=v();return[s,h.set("key",s)]}))},S=function(f){var h=f.first()instanceof x;return h?p(f):B(f)};z.exports=S},14017:function(z,P,o){"use strict";var x=o(4516),b=o(29407),v=o(73759);function A(S,d){var f=S.getBlockMap(),h=S.getEntityMap(),s={},a=d.getStartKey(),c=d.getStartOffset(),i=f.get(a),r=B(h,i,c);r!==i&&(s[a]=r);var u=d.getEndKey(),E=d.getEndOffset(),C=f.get(u);a===u&&(C=r);var l=B(h,C,E);return l!==C&&(s[u]=l),Object.keys(s).length?S.merge({blockMap:f.merge(s),selectionAfter:d}):S.set("selectionAfter",d)}function p(S,d,f){var h;return b(S,function(s,a){return s.getEntity()===a.getEntity()},function(s){return s.getEntity()===d},function(s,a){s<=f&&a>=f&&(h={start:s,end:a})}),typeof h!="object"&&v(!1),h}function B(S,d,f){var h=d.getCharacterList(),s=f>0?h.get(f-1):void 0,a=fu;)r=r.pop(),E--;else{var C=r.slice(0,u),l=r.slice(E);r=C.concat(l).toList()}return r};z.exports=a},14730:function(z,P,o){"use strict";var x=o(42307);function b(v,A,p){var B=v.getSelection(),S=v.getCurrentContent(),d=B;if(B.isCollapsed()){if(p==="forward"){if(v.isSelectionAtEndOfContent())return S}else if(v.isSelectionAtStartOfContent())return S;if(d=A(v),d===B)return S}return x.removeRange(S,d,p)}z.exports=b},55283:function(z){"use strict";var P=new RegExp("\r","g");function o(x){return x.replace(P,"")}z.exports=o},45412:function(z,P,o){"use strict";var x=o(97432),b=o(67476),v=o(31003),A=o(73759);function p(a,c){if(!a)return"[empty]";var i=B(a,c);return i.nodeType===Node.TEXT_NODE?i.textContent:(i instanceof Element||A(!1),i.outerHTML)}function B(a,c){var i=c!==void 0?c(a):[];if(a.nodeType===Node.TEXT_NODE){var r=a.textContent.length;return document.createTextNode("[text "+r+(i.length?" | "+i.join(", "):"")+"]")}var u=a.cloneNode();u.nodeType===1&&i.length&&u.setAttribute("data-labels",i.join(", "));for(var E=a.childNodes,C=0;C=l,I=g===i&&r<=D&&u>=D;if(T&&I){E.removeAllRanges(),s(E,c,l-r,a),h(E,c,D-r,a);return}if(!F)T&&(E.removeAllRanges(),s(E,c,l-r,a)),I&&h(E,c,D-r,a);else if(I&&(E.removeAllRanges(),s(E,c,D-r,a)),T){var w=E.focusNode,H=E.focusOffset;E.removeAllRanges(),s(E,c,l-r,a),h(E,w,H,a)}}}function h(a,c,i,r){var u=v();if(a.extend&&b(u,c)){i>d(c)&&x.logSelectionStateFailure({anonymizedDom:S(c),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(r.toJS())});var E=c===a.focusNode;try{a.extend(c,i)}catch(l){throw x.logSelectionStateFailure({anonymizedDom:S(c,function(g){var D=[];return g===u&&D.push("active element"),g===a.anchorNode&&D.push("selection anchor node"),g===a.focusNode&&D.push("selection focus node"),D}),extraParams:JSON.stringify({activeElementName:u?u.nodeName:null,nodeIsFocus:c===a.focusNode,nodeWasFocus:E,selectionRangeCount:a.rangeCount,selectionAnchorNodeName:a.anchorNode?a.anchorNode.nodeName:null,selectionAnchorOffset:a.anchorOffset,selectionFocusNodeName:a.focusNode?a.focusNode.nodeName:null,selectionFocusOffset:a.focusOffset,message:l?""+l:null,offset:i},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),l}}else{var C=a.getRangeAt(0);C.setEnd(c,i),a.addRange(C.cloneRange())}}function s(a,c,i,r){var u=document.createRange();i>d(c)&&x.logSelectionStateFailure({anonymizedDom:S(c),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(r.toJS())}),u.setStart(c,i),a.addRange(u)}z.exports=f},36043:function(z,P,o){"use strict";var x=o(67953),b=o(43393),v=o(25027),A=o(73759),p=b.List,B=b.Map,S=function(s,a,c){if(!!s){var i=a.get(s);!i||a.set(s,c(i))}},d=function(s,a,c){return s.withMutations(function(i){var r=a.getKey(),u=c.getKey();S(a.getParentKey(),i,function(E){var C=E.getChildKeys(),l=C.indexOf(r)+1,g=C.toArray();return g.splice(l,0,u),E.merge({children:p(g)})}),S(a.getNextSiblingKey(),i,function(E){return E.merge({prevSibling:u})}),S(r,i,function(E){return E.merge({nextSibling:u})}),S(u,i,function(E){return E.merge({prevSibling:r})})})},f=function(s,a){a.isCollapsed()||A(!1);var c=a.getAnchorKey(),i=a.getAnchorOffset(),r=s.getBlockMap(),u=r.get(c),E=u.getText(),C=u.getCharacterList(),l=v(),g=u instanceof x,D=u.merge({text:E.slice(0,i),characterList:C.slice(0,i)}),F=D.merge({key:l,text:E.slice(i),characterList:C.slice(i),data:B()}),y=r.toSeq().takeUntil(function(I){return I===u}),L=r.toSeq().skipUntil(function(I){return I===u}).rest(),T=y.concat([[c,D],[l,F]],L).toOrderedMap();return g&&(u.getChildKeys().isEmpty()||A(!1),T=d(T,D,F)),s.merge({blockMap:T,selectionBefore:a,selectionAfter:a.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})};z.exports=f},44300:function(z){"use strict";var P=/\r\n?|\n/g;function o(x){return x.split(P)}z.exports=o},5252:function(z,P,o){(function(x,b){z.exports=b(o(9041),o(43393))})(typeof self!="undefined"?self:this,function(x,b){return function(v){function A(B){if(p[B])return p[B].exports;var S=p[B]={i:B,l:!1,exports:{}};return v[B].call(S.exports,S,S.exports,A),S.l=!0,S.exports}var p={};return A.m=v,A.c=p,A.d=function(B,S,d){A.o(B,S)||Object.defineProperty(B,S,{configurable:!1,enumerable:!0,get:d})},A.n=function(B){var S=B&&B.__esModule?function(){return B.default}:function(){return B};return A.d(S,"a",S),S},A.o=function(B,S){return Object.prototype.hasOwnProperty.call(B,S)},A.p="",A(A.s=3)}([function(v,A){v.exports=x},function(v,A,p){"use strict";function B(F){var y=F.getSelection(),L=F.getCurrentContent(),T=y.getStartKey(),I=y.getEndKey(),w=L.getBlockMap();return w.toSeq().skipUntil(function(H,j){return j===T}).takeUntil(function(H,j){return j===I}).concat([[I,w.get(I)]])}function S(F){return B(F).toList()}function d(F){if(F)return S(F).get(0)}function f(F){if(F){var y=d(F),L=F.getCurrentContent(),T=L.getBlockMap().toSeq().toList(),I=0;if(T.forEach(function(w,H){w.get("key")===y.get("key")&&(I=H-1)}),I>-1)return T.get(I)}}function h(F){return F?F.getCurrentContent().getBlockMap().toList():new g.List}function s(F){var y=S(F);if(!y.some(function(L){return L.type!==y.get(0).type}))return y.get(0).type}function a(F){var y=l.RichUtils.tryToRemoveBlockStyle(F);return y?l.EditorState.push(F,y,"change-block-type"):F}function c(F){var y="",L=F.getSelection(),T=L.getAnchorOffset(),I=L.getFocusOffset(),w=S(F);if(w.size>0){if(L.getIsBackward()){var H=T;T=I,I=H}for(var j=0;j0)for(var T=0;T=0}),L}var I=y.getStartOffset(),w=y.getEndOffset(),H=(0,l.getSelectedBlocksList)(F);if(H.size>0){var j=function(){for(var U={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},O=0;O0)return I.get(0)}function c(F,y){var L=F.getCurrentInlineStyle().toList(),T=L.filter(function(I){return I.startsWith(y.toLowerCase())});if(T&&T.size>0)return T.get(0)}function i(F,y){if(F&&y&&y.length>0){var L=function(){var T=F.getSelection(),I={};if(T.isCollapsed())return y.forEach(function(O){I[O]=c(F,O)}),{v:I};var w=T.getStartOffset(),H=T.getEndOffset(),j=(0,l.getSelectedBlocksList)(F);if(j.size>0){for(var U=0;U0)return(0,s.changeDepth)(a,-1,E)}}}function S(a){return a.which===13&&(a.getModifierState("Shift")||a.getModifierState("Alt")||a.getModifierState("Control"))}function d(a,c){return S(c)?a.getSelection().isCollapsed()?f.RichUtils.insertSoftNewline(a):(0,h.addLineBreakRemovingSelection)(a):B(a)}Object.defineProperty(A,"__esModule",{value:!0}),A.default=d;var f=p(0),h=p(1),s=p(2)}])})},44891:function(z,P,o){"use strict";function x(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}var b=o(51006),v=o(89825),A=o(60139),p=new RegExp(`\r `,"g"),B=` `,S={"text/rtf":1,"text/html":1};function d(h){if(h.kind=="file")return h.getAsFile()}var f=function(){function h(s){x(this,h),this.data=s,this.types=s.types?v(s.types):[]}return h.prototype.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(a){return S[a]})},h.prototype.getText=function(){var a;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(a=this.data.getData("text/plain")):a=this.data.getData("Text")),a?a.replace(p,B):null},h.prototype.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},h.prototype.isLink=function(){return this.types.some(function(a){return a.indexOf("Url")!=-1||a.indexOf("text/uri-list")!=-1||a.indexOf("text/x-moz-url")})},h.prototype.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var a=this.data.getData("text/x-moz-url").split(` `);return a[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},h.prototype.isImage=function(){var a=this.types.some(function(u){return u.indexOf("application/x-moz-file")!=-1});if(a)return!0;for(var c=this.getFiles(),i=0;i0},h}();z.exports=f},25399:function(z){"use strict";z.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},51006:function(z){"use strict";var P={isImage:function(b){return o(b)[0]==="image"},isJpeg:function(b){var v=o(b);return P.isImage(b)&&(v[1]==="jpeg"||v[1]==="pjpeg")}};function o(x){return x.split("/")}z.exports=P},65994:function(z){"use strict";function P(x,b){return!!b&&(x===b.documentElement||x===b.body)}var o={getTop:function(b){var v=b.ownerDocument;return P(b,v)?v.body.scrollTop||v.documentElement.scrollTop:b.scrollTop},setTop:function(b,v){var A=b.ownerDocument;P(b,A)?A.body.scrollTop=A.documentElement.scrollTop=v:b.scrollTop=v},getLeft:function(b){var v=b.ownerDocument;return P(b,v)?v.body.scrollLeft||v.documentElement.scrollLeft:b.scrollLeft},setLeft:function(b,v){var A=b.ownerDocument;P(b,A)?A.body.scrollLeft=A.documentElement.scrollLeft=v:b.scrollLeft=v}};z.exports=o},19051:function(z,P,o){"use strict";var x=o(85466);function b(A,p){var B=v.get(A,p);return B==="auto"||B==="scroll"}var v={get:x,getScrollParent:function(p){if(!p)return null;for(var B=p.ownerDocument;p&&p!==B.body;){if(b(p,"overflow")||b(p,"overflowY")||b(p,"overflowX"))return p;p=p.parentNode}return B.defaultView||B.parentWindow}};z.exports=v},65724:function(z){"use strict";var P=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;\u30FB\u3001\u3002\u3008-\u3011\u3014-\u301F\uFF1A-\uFF1F\uFF01-\uFF0F\uFF3B-\uFF40\uFF5B-\uFF65\u2E2E\u061F\u066A-\u066C\u061B\u060C\u060D\uFD3E\uFD3F\u1801\u0964\u104A\u104B\u2010-\u2027\u2030-\u205E\xA1-\xB1\xB4-\xB8\xBA\xBB\xBF]`;z.exports={getPunctuation:function(){return P}}},61425:function(z){"use strict";function P(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}var o=function(){function x(b){P(this,x),this._uri=b}return x.prototype.toString=function(){return this._uri},x}();z.exports=o},54191:function(z,P,o){"use strict";var x=o(16633),b=o(73759),v={L:"A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u01BA\u01BB\u01BC-\u01BF\u01C0-\u01C3\u01C4-\u0293\u0294\u0295-\u02AF\u02B0-\u02B8\u02BB-\u02C1\u02D0-\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376-\u0377\u037A\u037B-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0482\u048A-\u052F\u0531-\u0556\u0559\u055A-\u055F\u0561-\u0587\u0589\u0903\u0904-\u0939\u093B\u093D\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096F\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09CE\u09D7\u09DC-\u09DD\u09DF-\u09E1\u09E6-\u09EF\u09F0-\u09F1\u09F4-\u09F9\u09FA\u0A03\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0AD0\u0AE0-\u0AE1\u0AE6-\u0AEF\u0AF0\u0B02-\u0B03\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B70\u0B71\u0B72-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BEF\u0BF0-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C59\u0C60-\u0C61\u0C66-\u0C6F\u0C7F\u0C82-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CBE\u0CBF\u0CC0-\u0CC4\u0CC6\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF2\u0D02-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D57\u0D60-\u0D61\u0D66-\u0D6F\u0D70-\u0D75\u0D79\u0D7A-\u0D7F\u0D82-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF3\u0DF4\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E46\u0E4F\u0E50-\u0E59\u0E5A-\u0E5B\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F01-\u0F03\u0F04-\u0F12\u0F13\u0F14\u0F15-\u0F17\u0F1A-\u0F1F\u0F20-\u0F29\u0F2A-\u0F33\u0F34\u0F36\u0F38\u0F3E-\u0F3F\u0F40-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FCF\u0FD0-\u0FD4\u0FD5-\u0FD8\u0FD9-\u0FDA\u1000-\u102A\u102B-\u102C\u1031\u1038\u103B-\u103C\u103F\u1040-\u1049\u104A-\u104F\u1050-\u1055\u1056-\u1057\u105A-\u105D\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106D\u106E-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108C\u108E\u108F\u1090-\u1099\u109A-\u109C\u109E-\u109F\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FB\u10FC\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u1368\u1369-\u137C\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166D-\u166E\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EB-\u16ED\u16EE-\u16F0\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7-\u17C8\u17D4-\u17D6\u17D7\u17D8-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1946-\u194F\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C0\u19C1-\u19C7\u19C8-\u19C9\u19D0-\u19D9\u19DA\u1A00-\u1A16\u1A19-\u1A1A\u1A1E-\u1A1F\u1A20-\u1A54\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AA6\u1AA7\u1AA8-\u1AAD\u1B04\u1B05-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B45-\u1B4B\u1B50-\u1B59\u1B5A-\u1B60\u1B61-\u1B6A\u1B74-\u1B7C\u1B82\u1B83-\u1BA0\u1BA1\u1BA6-\u1BA7\u1BAA\u1BAE-\u1BAF\u1BB0-\u1BB9\u1BBA-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1BFC-\u1BFF\u1C00-\u1C23\u1C24-\u1C2B\u1C34-\u1C35\u1C3B-\u1C3F\u1C40-\u1C49\u1C4D-\u1C4F\u1C50-\u1C59\u1C5A-\u1C77\u1C78-\u1C7D\u1C7E-\u1C7F\u1CC0-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF2-\u1CF3\u1CF5-\u1CF6\u1D00-\u1D2B\u1D2C-\u1D6A\u1D6B-\u1D77\u1D78\u1D79-\u1D9A\u1D9B-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2134\u2135-\u2138\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2C7B\u2C7C-\u2C7D\u2C7E-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005\u3006\u3007\u3021-\u3029\u302E-\u302F\u3031-\u3035\u3038-\u303A\u303B\u303C\u3041-\u3096\u309D-\u309E\u309F\u30A1-\u30FA\u30FC-\u30FE\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u3191\u3192-\u3195\u3196-\u319F\u31A0-\u31BA\u31F0-\u31FF\u3200-\u321C\u3220-\u3229\u322A-\u3247\u3248-\u324F\u3260-\u327B\u327F\u3280-\u3289\u328A-\u32B0\u32C0-\u32CB\u32D0-\u32FE\u3300-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA014\uA015\uA016-\uA48C\uA4D0-\uA4F7\uA4F8-\uA4FD\uA4FE-\uA4FF\uA500-\uA60B\uA60C\uA610-\uA61F\uA620-\uA629\uA62A-\uA62B\uA640-\uA66D\uA66E\uA680-\uA69B\uA69C-\uA69D\uA6A0-\uA6E5\uA6E6-\uA6EF\uA6F2-\uA6F7\uA722-\uA76F\uA770\uA771-\uA787\uA789-\uA78A\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B1\uA7F7\uA7F8-\uA7F9\uA7FA\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA823-\uA824\uA827\uA830-\uA835\uA836-\uA837\uA840-\uA873\uA880-\uA881\uA882-\uA8B3\uA8B4-\uA8C3\uA8CE-\uA8CF\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8F8-\uA8FA\uA8FB\uA900-\uA909\uA90A-\uA925\uA92E-\uA92F\uA930-\uA946\uA952-\uA953\uA95F\uA960-\uA97C\uA983\uA984-\uA9B2\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uA9C1-\uA9CD\uA9CF\uA9D0-\uA9D9\uA9DE-\uA9DF\uA9E0-\uA9E4\uA9E6\uA9E7-\uA9EF\uA9F0-\uA9F9\uA9FA-\uA9FE\uAA00-\uAA28\uAA2F-\uAA30\uAA33-\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA5F\uAA60-\uAA6F\uAA70\uAA71-\uAA76\uAA77-\uAA79\uAA7A\uAA7B\uAA7D\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAADD\uAADE-\uAADF\uAAE0-\uAAEA\uAAEB\uAAEE-\uAAEF\uAAF0-\uAAF1\uAAF2\uAAF3-\uAAF4\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5B\uAB5C-\uAB5F\uAB64-\uAB65\uABC0-\uABE2\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEB\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uE000-\uF8FF\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFF6F\uFF70\uFF71-\uFF9D\uFF9E-\uFF9F\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",R:"\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05D0-\u05EA\u05EB-\u05EF\u05F0-\u05F2\u05F3-\u05F4\u05F5-\u05FF\u07C0-\u07C9\u07CA-\u07EA\u07F4-\u07F5\u07FA\u07FB-\u07FF\u0800-\u0815\u081A\u0824\u0828\u082E-\u082F\u0830-\u083E\u083F\u0840-\u0858\u085C-\u085D\u085E\u085F-\u089F\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB37\uFB38-\uFB3C\uFB3D\uFB3E\uFB3F\uFB40-\uFB41\uFB42\uFB43-\uFB44\uFB45\uFB46-\uFB4F",AL:"\u0608\u060B\u060D\u061B\u061C\u061D\u061E-\u061F\u0620-\u063F\u0640\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070E\u070F\u0710\u0712-\u072F\u074B-\u074C\u074D-\u07A5\u07B1\u07B2-\u07BF\u08A0-\u08B2\u08B3-\u08E3\uFB50-\uFBB1\uFBB2-\uFBC1\uFBC2-\uFBD2\uFBD3-\uFD3D\uFD40-\uFD4F\uFD50-\uFD8F\uFD90-\uFD91\uFD92-\uFDC7\uFDC8-\uFDCF\uFDF0-\uFDFB\uFDFC\uFDFE-\uFDFF\uFE70-\uFE74\uFE75\uFE76-\uFEFC\uFEFD-\uFEFE"},A=new RegExp("["+v.L+v.R+v.AL+"]"),p=new RegExp("["+v.R+v.AL+"]");function B(c){var i=A.exec(c);return i==null?null:i[0]}function S(c){var i=B(c);return i==null?x.NEUTRAL:p.exec(i)?x.RTL:x.LTR}function d(c,i){if(i=i||x.NEUTRAL,!c.length)return i;var r=S(c);return r===x.NEUTRAL?i:r}function f(c,i){return i||(i=x.getGlobalDir()),x.isStrong(i)||b(!1),d(c,i)}function h(c,i){return f(c,i)===x.LTR}function s(c,i){return f(c,i)===x.RTL}var a={firstStrongChar:B,firstStrongCharDir:S,resolveBlockDir:d,getDirection:f,isDirectionLTR:h,isDirectionRTL:s};z.exports=a},16633:function(z,P,o){"use strict";var x=o(73759),b="NEUTRAL",v="LTR",A="RTL",p=null;function B(c){return c===v||c===A}function S(c){return B(c)||x(!1),c===v?"ltr":"rtl"}function d(c,i){return B(c)||x(!1),B(i)||x(!1),c===i?null:S(c)}function f(c){p=c}function h(){f(v)}function s(){return p||this.initGlobalDir(),p||x(!1),p}var a={NEUTRAL:b,LTR:v,RTL:A,isStrong:B,getHTMLDir:S,getHTMLDirIfDifferent:d,setGlobalDir:f,initGlobalDir:h,getGlobalDir:s};z.exports=a},7902:function(z,P,o){"use strict";function x(B,S){if(!(B instanceof S))throw new TypeError("Cannot call a class as a function")}var b=o(54191),v=o(16633),A=o(73759),p=function(){function B(S){x(this,B),S?v.isStrong(S)||A(!1):S=v.getGlobalDir(),this._defaultDir=S,this.reset()}return B.prototype.reset=function(){this._lastDir=this._defaultDir},B.prototype.getDirection=function(d){return this._lastDir=b.getDirection(d,this._lastDir),this._lastDir},B}();z.exports=p},38935:function(z,P,o){"use strict";var x=o(73759),b=55296,v=56319,A=56320,p=57343,B=/[\uD800-\uDFFF]/;function S(u){return b<=u&&u<=p}function d(u,E){if(0<=E&&El||C<=0)return"";var g=0;if(E>0){for(;E>0&&g=l)return""}else if(E<0){for(g=l;E<0&&00&&D=|~>|~|>|)?\s*(.+)/,B=/^(\d*)(.*)/;function S(T,I){var w=T.split(v);return w.length>1?w.some(function(H){return L.contains(H,I)}):(T=w[0].trim(),d(T,I))}function d(T,I){var w=T.split(A);if(w.length>0&&w.length<=2||x(!1),w.length===1)return f(w[0],I);var H=w[0],j=w[1];return C(H)&&C(j)||x(!1),f(">="+H,I)&&f("<="+j,I)}function f(T,I){if(T=T.trim(),T==="")return!0;var w=I.split(b),H=u(T),j=H.modifier,U=H.rangeComponents;switch(j){case"<":return h(w,U);case"<=":return s(w,U);case">=":return c(w,U);case">":return i(w,U);case"~":case"~>":return r(w,U);default:return a(w,U)}}function h(T,I){return y(T,I)===-1}function s(T,I){var w=y(T,I);return w===-1||w===0}function a(T,I){return y(T,I)===0}function c(T,I){var w=y(T,I);return w===1||w===0}function i(T,I){return y(T,I)===1}function r(T,I){var w=I.slice(),H=I.slice();H.length>1&&H.pop();var j=H.length-1,U=parseInt(H[j],10);return E(U)&&(H[j]=U+1+""),c(T,w)&&h(T,H)}function u(T){var I=T.split(b),w=I[0].match(p);return w||x(!1),{modifier:w[1],rangeComponents:[w[2]].concat(I.slice(1))}}function E(T){return!isNaN(T)&&isFinite(T)}function C(T){return!u(T).modifier}function l(T,I){for(var w=T.length;wI?1:T-1;function o(x){return x=x||document,x.scrollingElement?x.scrollingElement:!P&&x.compatMode==="CSS1Compat"?x.documentElement:x.body}z.exports=o},55258:function(z,P,o){"use strict";var x=o(23123);function b(v){var A=x(v);return{x:A.left,y:A.top,width:A.right-A.left,height:A.bottom-A.top}}z.exports=b},23123:function(z,P,o){"use strict";var x=o(67476);function b(v){var A=v.ownerDocument.documentElement;if(!("getBoundingClientRect"in v)||!x(A,v))return{left:0,right:0,top:0,bottom:0};var p=v.getBoundingClientRect();return{left:Math.round(p.left)-A.clientLeft,right:Math.round(p.right)-A.clientLeft,top:Math.round(p.top)-A.clientTop,bottom:Math.round(p.bottom)-A.clientTop}}z.exports=b},79749:function(z,P,o){"use strict";var x=o(35179),b=o(30787);function v(A){var p=x(A.ownerDocument||A.document);A.Window&&A instanceof A.Window&&(A=p);var B=b(A),S=A===p?A.ownerDocument.documentElement:A,d=A.scrollWidth-S.clientWidth,f=A.scrollHeight-S.clientHeight;return B.x=Math.max(0,Math.min(B.x,d)),B.y=Math.max(0,Math.min(B.y,f)),B}z.exports=v},85466:function(z,P,o){"use strict";var x=o(52297),b=o(89349);function v(p){return p==null?p:String(p)}function A(p,B){var S=void 0;if(window.getComputedStyle&&(S=window.getComputedStyle(p,null),S))return v(S.getPropertyValue(b(B)));if(document.defaultView&&document.defaultView.getComputedStyle){if(S=document.defaultView.getComputedStyle(p,null),S)return v(S.getPropertyValue(b(B)));if(B==="display")return"none"}return p.currentStyle?v(B==="float"?p.currentStyle.cssFloat||p.currentStyle.styleFloat:p.currentStyle[x(B)]):v(p.style&&p.style[x(B)])}z.exports=A},30787:function(z){"use strict";function P(o){return o.Window&&o instanceof o.Window?{x:o.pageXOffset||o.document.documentElement.scrollLeft,y:o.pageYOffset||o.document.documentElement.scrollTop}:{x:o.scrollLeft,y:o.scrollTop}}z.exports=P},70746:function(z){"use strict";function P(){var b=void 0;return document.documentElement&&(b=document.documentElement.clientWidth),!b&&document.body&&(b=document.body.clientWidth),b||0}function o(){var b=void 0;return document.documentElement&&(b=document.documentElement.clientHeight),!b&&document.body&&(b=document.body.clientHeight),b||0}function x(){return{width:window.innerWidth||P(),height:window.innerHeight||o()}}x.withoutScrollbars=function(){return{width:P(),height:o()}},z.exports=x},89349:function(z){"use strict";var P=/([A-Z])/g;function o(x){return x.replace(P,"-$1").toLowerCase()}z.exports=o},73759:function(z){"use strict";var P=function(b){};function o(x,b,v,A,p,B,S,d){if(P(b),!x){var f;if(b===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[v,A,p,B,S,d],s=0;f=new Error(b.replace(/%s/g,function(){return h[s++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}z.exports=o},20901:function(z){"use strict";function P(o){var x=o?o.ownerDocument||o:document,b=x.defaultView||window;return!!(o&&(typeof b.Node=="function"?o instanceof b.Node:typeof o=="object"&&typeof o.nodeType=="number"&&typeof o.nodeName=="string"))}z.exports=P},52334:function(z,P,o){"use strict";var x=o(20901);function b(v){return x(v)&&v.nodeType==3}z.exports=b},71108:function(z){"use strict";function P(o){o||(o="");var x=void 0,b=arguments.length;if(b>1)for(var v=1;v>>0;if(""+m!==t||m===4294967295)return NaN;t=m}return t<0?T(e)+t:t}function w(){return!0}function H(e,t,m){return(e===0||m!==void 0&&e<=-m)&&(t===void 0||m!==void 0&&t>=m)}function j(e,t){return O(e,t,0)}function U(e,t){return O(e,t,t)}function O(e,t,m){return e===void 0?m:e<0?Math.max(0,t+e):t===void 0?e:Math.min(t,e)}var re=0,Q=1,ue=2,Se=typeof Symbol=="function"&&Symbol.iterator,ye="@@iterator",V=Se||ye;function Be(e){this.next=e}Be.prototype.toString=function(){return"[Iterator]"},Be.KEYS=re,Be.VALUES=Q,Be.ENTRIES=ue,Be.prototype.inspect=Be.prototype.toSource=function(){return this.toString()},Be.prototype[V]=function(){return this};function ze(e,t,m,k){var M=e===0?t:e===1?m:[t,m];return k?k.value=M:k={value:M,done:!1},k}function Le(){return{value:void 0,done:!0}}function Ue(e){return!!_e(e)}function ot(e){return e&&typeof e.next=="function"}function at(e){var t=_e(e);return t&&t.call(e)}function _e(e){var t=e&&(Se&&e[Se]||e[ye]);if(typeof t=="function")return t}function Ze(e){return e&&typeof e.length=="number"}o(Te,x);function Te(e){return e==null?te():p(e)?e.toSeq():pe(e)}Te.of=function(){return Te(arguments)},Te.prototype.toSeq=function(){return this},Te.prototype.toString=function(){return this.__toString("Seq {","}")},Te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Te.prototype.__iterate=function(e,t){return ve(this,e,t,!0)},Te.prototype.__iterator=function(e,t){return Fe(this,e,t,!0)},o(Ge,Te);function Ge(e){return e==null?te().toKeyedSeq():p(e)?B(e)?e.toSeq():e.fromEntrySeq():oe(e)}Ge.prototype.toKeyedSeq=function(){return this},o(Ye,Te);function Ye(e){return e==null?te():p(e)?B(e)?e.entrySeq():e.toIndexedSeq():le(e)}Ye.of=function(){return Ye(arguments)},Ye.prototype.toIndexedSeq=function(){return this},Ye.prototype.toString=function(){return this.__toString("Seq [","]")},Ye.prototype.__iterate=function(e,t){return ve(this,e,t,!1)},Ye.prototype.__iterator=function(e,t){return Fe(this,e,t,!1)},o(ut,Te);function ut(e){return(e==null?te():p(e)?B(e)?e.entrySeq():e:le(e)).toSetSeq()}ut.of=function(){return ut(arguments)},ut.prototype.toSetSeq=function(){return this},Te.isSeq=Ut,Te.Keyed=Ge,Te.Set=ut,Te.Indexed=Ye;var bt="@@__IMMUTABLE_SEQ__@@";Te.prototype[bt]=!0,o(nt,Ye);function nt(e){this._array=e,this.size=e.length}nt.prototype.get=function(e,t){return this.has(e)?this._array[I(this,e)]:t},nt.prototype.__iterate=function(e,t){for(var m=this._array,k=m.length-1,M=0;M<=k;M++)if(e(m[t?k-M:M],M,this)===!1)return M+1;return M},nt.prototype.__iterator=function(e,t){var m=this._array,k=m.length-1,M=0;return new Be(function(){return M>k?Le():ze(e,M,m[t?k-M++:M++])})},o(be,Ge);function be(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}be.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},be.prototype.has=function(e){return this._object.hasOwnProperty(e)},be.prototype.__iterate=function(e,t){for(var m=this._object,k=this._keys,M=k.length-1,G=0;G<=M;G++){var $=k[t?M-G:G];if(e(m[$],$,this)===!1)return G+1}return G},be.prototype.__iterator=function(e,t){var m=this._object,k=this._keys,M=k.length-1,G=0;return new Be(function(){var $=k[t?M-G:G];return G++>M?Le():ze(e,$,m[$])})},be.prototype[c]=!0,o(Xe,Ye);function Xe(e){this._iterable=e,this.size=e.length||e.size}Xe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var m=this._iterable,k=at(m),M=0;if(ot(k))for(var G;!(G=k.next()).done&&e(G.value,M++,this)!==!1;);return M},Xe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var m=this._iterable,k=at(m);if(!ot(k))return new Be(Le);var M=0;return new Be(function(){var G=k.next();return G.done?G:ze(e,M++,G.value)})},o(Et,Ye);function Et(e){this._iterator=e,this._iteratorCache=[]}Et.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var m=this._iterator,k=this._iteratorCache,M=0;M=k.length){var G=m.next();if(G.done)return G;k[M]=G.value}return ze(e,M,k[M++])})};function Ut(e){return!!(e&&e[bt])}var Ke;function te(){return Ke||(Ke=new nt([]))}function oe(e){var t=Array.isArray(e)?new nt(e).fromEntrySeq():ot(e)?new Et(e).fromEntrySeq():Ue(e)?new Xe(e).fromEntrySeq():typeof e=="object"?new be(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=Ae(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function pe(e){var t=Ae(e)||typeof e=="object"&&new be(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function Ae(e){return Ze(e)?new nt(e):ot(e)?new Et(e):Ue(e)?new Xe(e):void 0}function ve(e,t,m,k){var M=e._cache;if(M){for(var G=M.length-1,$=0;$<=G;$++){var ne=M[m?G-$:$];if(t(ne[1],k?ne[0]:$,e)===!1)return $+1}return $}return e.__iterateUncached(t,m)}function Fe(e,t,m,k){var M=e._cache;if(M){var G=M.length-1,$=0;return new Be(function(){var ne=M[m?G-$:$];return $++>G?Le():ze(t,k?ne[0]:$-1,ne[1])})}return e.__iteratorUncached(t,m)}function Ie(e,t){return t?Me(t,e,"",{"":e}):We(e)}function Me(e,t,m,k){return Array.isArray(t)?e.call(k,m,Ye(t).map(function(M,G){return Me(e,M,G,t)})):lt(t)?e.call(k,m,Ge(t).map(function(M,G){return Me(e,M,G,t)})):t}function We(e){return Array.isArray(e)?Ye(e).map(We).toList():lt(e)?Ge(e).map(We).toMap():e}function lt(e){return e&&(e.constructor===Object||e.constructor===void 0)}function me(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(typeof e.equals=="function"&&typeof t.equals=="function"&&e.equals(t))}function it(e,t){if(e===t)return!0;if(!p(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||B(e)!==B(t)||S(e)!==S(t)||f(e)!==f(t))return!1;if(e.size===0&&t.size===0)return!0;var m=!d(e);if(f(e)){var k=e.entries();return t.every(function(ce,ee){var he=k.next().value;return he&&me(he[1],ce)&&(m||me(he[0],ee))})&&k.next().done}var M=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{M=!0;var G=e;e=t,t=G}var $=!0,ne=t.__iterate(function(ce,ee){if(m?!e.has(ce):M?!me(ce,e.get(ee,C)):!me(e.get(ee,C),ce))return $=!1,!1});return $&&e.size===ne}o(qe,Ye);function qe(e,t){if(!(this instanceof qe))return new qe(e,t);if(this._value=e,this.size=t===void 0?Infinity:Math.max(0,t),this.size===0){if(ft)return ft;ft=this}}qe.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},qe.prototype.get=function(e,t){return this.has(e)?this._value:t},qe.prototype.includes=function(e){return me(this._value,e)},qe.prototype.slice=function(e,t){var m=this.size;return H(e,t,m)?this:new qe(this._value,U(t,m)-j(e,m))},qe.prototype.reverse=function(){return this},qe.prototype.indexOf=function(e){return me(this._value,e)?0:-1},qe.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},qe.prototype.__iterate=function(e,t){for(var m=0;m1?" by "+this._step:"")+" ]"},pt.prototype.get=function(e,t){return this.has(e)?this._start+I(this,e)*this._step:t},pt.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&mm?Le():ze(e,G++,$)})},pt.prototype.equals=function(e){return e instanceof pt?this._start===e._start&&this._end===e._end&&this._step===e._step:it(this,e)};var Tt;o(wt,x);function wt(){throw TypeError("Abstract")}o(Ot,wt);function Ot(){}o(Dt,wt);function Dt(){}o(jt,wt);function jt(){}wt.Keyed=Ot,wt.Indexed=Dt,wt.Set=jt;var Bt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,m){t=t|0,m=m|0;var k=t&65535,M=m&65535;return k*M+((t>>>16)*M+k*(m>>>16)<<16>>>0)|0};function Qt(e){return e>>>1&1073741824|e&3221225471}function J(e){if(e===!1||e===null||e===void 0||typeof e.valueOf=="function"&&(e=e.valueOf(),e===!1||e===null||e===void 0))return 0;if(e===!0)return 1;var t=typeof e;if(t==="number"){var m=e|0;for(m!==e&&(m^=e*4294967295);e>4294967295;)e/=4294967295,m^=e;return Qt(m)}if(t==="string")return e.length>je?ae(e):N(e);if(typeof e.hashCode=="function")return e.hashCode();if(t==="object")return _(e);if(typeof e.toString=="function")return N(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=He[e];return t===void 0&&(t=N(e),Oe===Qe&&(Oe=0,He={}),Oe++,He[e]=t),t}function N(e){for(var t=0,m=0;m0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ce=typeof WeakMap=="function",Ee;Ce&&(Ee=new WeakMap);var we=0,ge="__immutablehash__";typeof Symbol=="function"&&(ge=Symbol(ge));var je=16,Qe=255,Oe=0,He={};function Re(e){dt(e!==Infinity,"Cannot perform this action with an infinite size.")}o(ke,Ot);function ke(e){return e==null?Rt():gt(e)&&!f(e)?e:Rt().withMutations(function(t){var m=b(e);Re(m.size),m.forEach(function(k,M){return t.set(M,k)})})}ke.prototype.toString=function(){return this.__toString("Map {","}")},ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ke.prototype.set=function(e,t){return In(this,e,t)},ke.prototype.setIn=function(e,t){return this.updateIn(e,C,function(){return t})},ke.prototype.remove=function(e){return In(this,e,C)},ke.prototype.deleteIn=function(e){return this.updateIn(e,function(){return C})},ke.prototype.update=function(e,t,m){return arguments.length===1?e(this):this.updateIn([e],t,m)},ke.prototype.updateIn=function(e,t,m){m||(m=t,t=void 0);var k=bn(this,lr(e),t,m);return k===C?void 0:k},ke.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Rt()},ke.prototype.merge=function(){return fn(this,void 0,arguments)},ke.prototype.mergeWith=function(e){var t=P.call(arguments,1);return fn(this,e,t)},ke.prototype.mergeIn=function(e){var t=P.call(arguments,1);return this.updateIn(e,Rt(),function(m){return typeof m.merge=="function"?m.merge.apply(m,t):t[t.length-1]})},ke.prototype.mergeDeep=function(){return fn(this,An,arguments)},ke.prototype.mergeDeepWith=function(e){var t=P.call(arguments,1);return fn(this,dn(e),t)},ke.prototype.mergeDeepIn=function(e){var t=P.call(arguments,1);return this.updateIn(e,Rt(),function(m){return typeof m.mergeDeep=="function"?m.mergeDeep.apply(m,t):t[t.length-1]})},ke.prototype.sort=function(e){return Lt(Bn(this,e))},ke.prototype.sortBy=function(e,t){return Lt(Bn(this,t,e))},ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new y)},ke.prototype.asImmutable=function(){return this.__ensureOwner()},ke.prototype.wasAltered=function(){return this.__altered},ke.prototype.__iterator=function(e,t){return new _t(this,e,t)},ke.prototype.__iterate=function(e,t){var m=this,k=0;return this._root&&this._root.iterate(function(M){return k++,e(M[1],M[0],m)},t),k},ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?cn(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)};function gt(e){return!!(e&&e[mt])}ke.isMap=gt;var mt="@@__IMMUTABLE_MAP__@@",Ne=ke.prototype;Ne[mt]=!0,Ne[i]=Ne.remove,Ne.removeIn=Ne.deleteIn;function rt(e,t){this.ownerID=e,this.entries=t}rt.prototype.get=function(e,t,m,k){for(var M=this.entries,G=0,$=M.length;G<$;G++)if(me(m,M[G][0]))return M[G][1];return k},rt.prototype.update=function(e,t,m,k,M,G,$){for(var ne=M===C,ce=this.entries,ee=0,he=ce.length;ee=mr)return Nn(e,ce,k,M);var Pe=e&&e===this.ownerID,tt=Pe?ce:L(ce);return De?ne?ee===he-1?tt.pop():tt[ee]=tt.pop():tt[ee]=[k,M]:tt.push([k,M]),Pe?(this.entries=tt,this):new rt(e,tt)}};function It(e,t,m){this.ownerID=e,this.bitmap=t,this.nodes=m}It.prototype.get=function(e,t,m,k){t===void 0&&(t=J(m));var M=1<<((e===0?t:t>>>e)&E),G=this.bitmap;return(G&M)==0?k:this.nodes[Xn(G&M-1)].get(e+r,t,m,k)},It.prototype.update=function(e,t,m,k,M,G,$){m===void 0&&(m=J(k));var ne=(t===0?m:m>>>t)&E,ce=1<=yr)return Hn(e,Pe,ee,ne,st);if(he&&!st&&Pe.length===2&&Jt(Pe[De^1]))return Pe[De^1];if(he&&st&&Pe.length===1&&Jt(st))return st;var vt=e&&e===this.ownerID,en=he?st?ee:ee^ce:ee|ce,rn=he?st?hr(Pe,De,st,vt):vr(Pe,De,vt):gr(Pe,De,st,vt);return vt?(this.bitmap=en,this.nodes=rn,this):new It(e,en,rn)};function et(e,t,m){this.ownerID=e,this.count=t,this.nodes=m}et.prototype.get=function(e,t,m,k){t===void 0&&(t=J(m));var M=(e===0?t:t>>>e)&E,G=this.nodes[M];return G?G.get(e+r,t,m,k):k},et.prototype.update=function(e,t,m,k,M,G,$){m===void 0&&(m=J(k));var ne=(t===0?m:m>>>t)&E,ce=M===C,ee=this.nodes,he=ee[ne];if(ce&&!he)return this;var De=Zt(he,e,t+r,m,k,M,G,$);if(De===he)return this;var Pe=this.count;if(!he)Pe++;else if(!De&&(Pe--,Pe>>m)&E,$=(m===0?k:k>>>m)&E,ne,ce=G===$?[on(e,t,m+r,k,M)]:(ne=new kt(t,k,M),G<$?[e,ne]:[ne,e]);return new It(t,1<>>=1)$[ne]=m&1?t[G++]:void 0;return $[k]=M,new et(e,G+1,$)}function fn(e,t,m){for(var k=[],M=0;M>1&1431655765),e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e=e+(e>>8),e=e+(e>>16),e&127}function hr(e,t,m,k){var M=k?e:L(e);return M[t]=m,M}function gr(e,t,m,k){var M=e.length+1;if(k&&t+1===M)return e[t]=m,e;for(var G=new Array(M),$=0,ne=0;ne0&&k=0&&e>>t&E;if(k>=this.array.length)return new an([],e);var M=k===0,G;if(t>0){var $=this.array[k];if(G=$&&$.removeBefore(e,t-r,m),G===$&&M)return this}if(M&&!G)return this;var ne=xn(this,e);if(!M)for(var ce=0;ce>>t&E;if(k>=this.array.length)return this;var M;if(t>0){var G=this.array[k];if(M=G&&G.removeAfter(e,t-r,m),M===G&&k===this.array.length-1)return this}var $=xn(this,e);return $.array.splice(k+1),M&&($.array[k]=M),$};var kn={};function $n(e,t){var m=e._origin,k=e._capacity,M=qt(k),G=e._tail;return $(e._root,e._level,0);function $(ee,he,De){return he===0?ne(ee,De):ce(ee,he,De)}function ne(ee,he){var De=he===M?G&&G.array:ee&&ee.array,Pe=he>m?0:m-he,tt=k-he;return tt>u&&(tt=u),function(){if(Pe===tt)return kn;var st=t?--tt:Pe++;return De&&De[st]}}function ce(ee,he,De){var Pe,tt=ee&&ee.array,st=De>m?0:m-De>>he,vt=(k-De>>he)+1;return vt>u&&(vt=u),function(){do{if(Pe){var en=Pe();if(en!==kn)return en;Pe=null}if(st===vt)return kn;var rn=t?--vt:st++;Pe=$(tt&&tt[rn],he-r,De+(rn<=e.size||t<0)return e.withMutations(function($){t<0?hn($,t).set(0,m):hn($,0,t+1).set(t,m)});t+=e._origin;var k=e._tail,M=e._root,G=D(g);return t>=qt(e._capacity)?k=Wn(k,e.__ownerID,0,t,m,G):M=Wn(M,e.__ownerID,e._level,t,m,G),G.value?e.__ownerID?(e._root=M,e._tail=k,e.__hash=void 0,e.__altered=!0,e):Fn(e._origin,e._capacity,e._level,M,k):e}function Wn(e,t,m,k,M,G){var $=k>>>m&E,ne=e&&$0){var ee=e&&e.array[$],he=Wn(ee,t,m-r,k,M,G);return he===ee?e:(ce=xn(e,t),ce.array[$]=he,ce)}return ne&&e.array[$]===M?e:(F(G),ce=xn(e,t),M===void 0&&$===ce.array.length-1?ce.array.pop():ce.array[$]=M,ce)}function xn(e,t){return t&&e&&t===e.ownerID?e:new an(e?e.array.slice():[],t)}function Zn(e,t){if(t>=qt(e._capacity))return e._tail;if(t<1<0;)m=m.array[t>>>k&E],k-=r;return m}}function hn(e,t,m){t!==void 0&&(t=t|0),m!==void 0&&(m=m|0);var k=e.__ownerID||new y,M=e._origin,G=e._capacity,$=M+t,ne=m===void 0?G:m<0?G+m:M+m;if($===M&&ne===G)return e;if($>=ne)return e.clear();for(var ce=e._level,ee=e._root,he=0;$+he<0;)ee=new an(ee&&ee.array.length?[void 0,ee]:[],k),ce+=r,he+=1<=1<De?new an([],k):tt;if(tt&&Pe>De&&$r;en-=r){var rn=De>>>en&E;vt=vt.array[rn]=xn(vt.array[rn],k)}vt.array[De>>>r&E]=tt}if(ne=Pe)$-=Pe,ne-=Pe,ce=r,ee=null,st=st&&st.removeBefore(k,0,$);else if($>M||Pe>>ce&E;if(zn!==Pe>>>ce&E)break;zn&&(he+=(1<M&&(ee=ee.removeBefore(k,ce,$-he)),ee&&PeM&&(M=ne.size),p($)||(ne=ne.map(function(ce){return Ie(ce)})),k.push(ne)}return M>e.size&&(e=e.setSize(M)),Cn(e,t,k)}function qt(e){return e>>r<=u&&M.size>=k.size*2?(ce=M.filter(function(ee,he){return ee!==void 0&&G!==he}),ne=ce.toKeyedSeq().map(function(ee){return ee[0]}).flip().toMap(),e.__ownerID&&(ne.__ownerID=ce.__ownerID=e.__ownerID)):(ne=k.remove(t),ce=G===M.size-1?M.pop():M.set(G,void 0))}else if($){if(m===M.get(G)[1])return e;ne=k,ce=M.set(G,[t,m])}else ne=k.set(t,M.size),ce=M.set(M.size,[t,m]);return e.__ownerID?(e.size=ne.size,e._map=ne,e._list=ce,e.__hash=void 0,e):qn(ne,ce)}o(Yt,Ge);function Yt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}Yt.prototype.get=function(e,t){return this._iter.get(e,t)},Yt.prototype.has=function(e){return this._iter.has(e)},Yt.prototype.valueSeq=function(){return this._iter.valueSeq()},Yt.prototype.reverse=function(){var e=this,t=tr(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Yt.prototype.map=function(e,t){var m=this,k=er(this,e,t);return this._useKeys||(k.valueSeq=function(){return m._iter.toSeq().map(e,t)}),k},Yt.prototype.__iterate=function(e,t){var m=this,k;return this._iter.__iterate(this._useKeys?function(M,G){return e(M,G,m)}:(k=t?ir(this):0,function(M){return e(M,t?--k:k++,m)}),t)},Yt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var m=this._iter.__iterator(Q,t),k=t?ir(this):0;return new Be(function(){var M=m.next();return M.done?M:ze(e,t?--k:k++,M.value,M)})},Yt.prototype[c]=!0,o(Gt,Ye);function Gt(e){this._iter=e,this.size=e.size}Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var m=this,k=0;return this._iter.__iterate(function(M){return e(M,k++,m)},t)},Gt.prototype.__iterator=function(e,t){var m=this._iter.__iterator(Q,t),k=0;return new Be(function(){var M=m.next();return M.done?M:ze(e,k++,M.value,M)})},o(gn,ut);function gn(e){this._iter=e,this.size=e.size}gn.prototype.has=function(e){return this._iter.includes(e)},gn.prototype.__iterate=function(e,t){var m=this;return this._iter.__iterate(function(k){return e(k,k,m)},t)},gn.prototype.__iterator=function(e,t){var m=this._iter.__iterator(Q,t);return new Be(function(){var k=m.next();return k.done?k:ze(e,k.value,k.value,k)})},o(wn,Ge);function wn(e){this._iter=e,this.size=e.size}wn.prototype.entrySeq=function(){return this._iter.toSeq()},wn.prototype.__iterate=function(e,t){var m=this;return this._iter.__iterate(function(k){if(k){Ir(k);var M=p(k);return e(M?k.get(1):k[1],M?k.get(0):k[0],m)}},t)},wn.prototype.__iterator=function(e,t){var m=this._iter.__iterator(Q,t);return new Be(function(){for(;;){var k=m.next();if(k.done)return k;var M=k.value;if(M){Ir(M);var G=p(M);return ze(e,G?M.get(0):M[0],G?M.get(1):M[1],k)}}})},Gt.prototype.cacheResult=Yt.prototype.cacheResult=gn.prototype.cacheResult=wn.prototype.cacheResult=Yn;function Cr(e){var t=un(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var m=e.reverse.apply(this);return m.flip=function(){return e.reverse()},m},t.has=function(m){return e.includes(m)},t.includes=function(m){return e.has(m)},t.cacheResult=Yn,t.__iterateUncached=function(m,k){var M=this;return e.__iterate(function(G,$){return m($,G,M)!==!1},k)},t.__iteratorUncached=function(m,k){if(m===ue){var M=e.__iterator(m,k);return new Be(function(){var G=M.next();if(!G.done){var $=G.value[0];G.value[0]=G.value[1],G.value[1]=$}return G})}return e.__iterator(m===Q?re:Q,k)},t}function er(e,t,m){var k=un(e);return k.size=e.size,k.has=function(M){return e.has(M)},k.get=function(M,G){var $=e.get(M,C);return $===C?G:t.call(m,$,M,e)},k.__iterateUncached=function(M,G){var $=this;return e.__iterate(function(ne,ce,ee){return M(t.call(m,ne,ce,ee),ce,$)!==!1},G)},k.__iteratorUncached=function(M,G){var $=e.__iterator(ue,G);return new Be(function(){var ne=$.next();if(ne.done)return ne;var ce=ne.value,ee=ce[0];return ze(M,ee,t.call(m,ce[1],ee,e),ne)})},k}function tr(e,t){var m=un(e);return m._iter=e,m.size=e.size,m.reverse=function(){return e},e.flip&&(m.flip=function(){var k=Cr(e);return k.reverse=function(){return e.flip()},k}),m.get=function(k,M){return e.get(t?k:-1-k,M)},m.has=function(k){return e.has(t?k:-1-k)},m.includes=function(k){return e.includes(k)},m.cacheResult=Yn,m.__iterate=function(k,M){var G=this;return e.__iterate(function($,ne){return k($,ne,G)},!M)},m.__iterator=function(k,M){return e.__iterator(k,!M)},m}function nr(e,t,m,k){var M=un(e);return k&&(M.has=function(G){var $=e.get(G,C);return $!==C&&!!t.call(m,$,G,e)},M.get=function(G,$){var ne=e.get(G,C);return ne!==C&&t.call(m,ne,G,e)?ne:$}),M.__iterateUncached=function(G,$){var ne=this,ce=0;return e.__iterate(function(ee,he,De){if(t.call(m,ee,he,De))return ce++,G(ee,k?he:ce-1,ne)},$),ce},M.__iteratorUncached=function(G,$){var ne=e.__iterator(ue,$),ce=0;return new Be(function(){for(;;){var ee=ne.next();if(ee.done)return ee;var he=ee.value,De=he[0],Pe=he[1];if(t.call(m,Pe,De,e))return ze(G,k?De:ce++,Pe,ee)}})},M}function Tr(e,t,m){var k=ke().asMutable();return e.__iterate(function(M,G){k.update(t.call(m,M,G,e),0,function($){return $+1})}),k.asImmutable()}function Dr(e,t,m){var k=B(e),M=(f(e)?Lt():ke()).asMutable();e.__iterate(function($,ne){M.update(t.call(m,$,ne,e),function(ce){return ce=ce||[],ce.push(k?[ne,$]:$),ce})});var G=ar(e);return M.map(function($){return At(e,G($))})}function Vn(e,t,m,k){var M=e.size;if(t!==void 0&&(t=t|0),m!==void 0&&(m=m|0),H(t,m,M))return e;var G=j(t,M),$=U(m,M);if(G!==G||$!==$)return Vn(e.toSeq().cacheResult(),t,m,k);var ne=$-G,ce;ne===ne&&(ce=ne<0?0:ne);var ee=un(e);return ee.size=ce===0?ce:e.size&&ce||void 0,!k&&Ut(e)&&ce>=0&&(ee.get=function(he,De){return he=I(this,he),he>=0&&hece)return Le();var vt=Pe.next();return k||he===Q?vt:he===re?ze(he,st-1,void 0,vt):ze(he,st-1,vt.value[1],vt)})},ee}function br(e,t,m){var k=un(e);return k.__iterateUncached=function(M,G){var $=this;if(G)return this.cacheResult().__iterate(M,G);var ne=0;return e.__iterate(function(ce,ee,he){return t.call(m,ce,ee,he)&&++ne&&M(ce,ee,$)}),ne},k.__iteratorUncached=function(M,G){var $=this;if(G)return this.cacheResult().__iterator(M,G);var ne=e.__iterator(ue,G),ce=!0;return new Be(function(){if(!ce)return Le();var ee=ne.next();if(ee.done)return ee;var he=ee.value,De=he[0],Pe=he[1];return t.call(m,Pe,De,$)?M===ue?ee:ze(M,De,Pe,ee):(ce=!1,Le())})},k}function xr(e,t,m,k){var M=un(e);return M.__iterateUncached=function(G,$){var ne=this;if($)return this.cacheResult().__iterate(G,$);var ce=!0,ee=0;return e.__iterate(function(he,De,Pe){if(!(ce&&(ce=t.call(m,he,De,Pe))))return ee++,G(he,k?De:ee-1,ne)}),ee},M.__iteratorUncached=function(G,$){var ne=this;if($)return this.cacheResult().__iterator(G,$);var ce=e.__iterator(ue,$),ee=!0,he=0;return new Be(function(){var De,Pe,tt;do{if(De=ce.next(),De.done)return k||G===Q?De:G===re?ze(G,he++,void 0,De):ze(G,he++,De.value[1],De);var st=De.value;Pe=st[0],tt=st[1],ee&&(ee=t.call(m,tt,Pe,ne))}while(ee);return G===ue?De:ze(G,Pe,tt,De)})},M}function wr(e,t){var m=B(e),k=[e].concat(t).map(function($){return p($)?m&&($=b($)):$=m?oe($):le(Array.isArray($)?$:[$]),$}).filter(function($){return $.size!==0});if(k.length===0)return e;if(k.length===1){var M=k[0];if(M===e||m&&B(M)||S(e)&&S(M))return M}var G=new nt(k);return m?G=G.toKeyedSeq():S(e)||(G=G.toSetSeq()),G=G.flatten(!0),G.size=k.reduce(function($,ne){if($!==void 0){var ce=ne.size;if(ce!==void 0)return $+ce}},0),G}function rr(e,t,m){var k=un(e);return k.__iterateUncached=function(M,G){var $=0,ne=!1;function ce(ee,he){var De=this;ee.__iterate(function(Pe,tt){return(!t||he0}function Qn(e,t,m){var k=un(e);return k.size=new nt(m).map(function(M){return M.size}).min(),k.__iterate=function(M,G){for(var $=this.__iterator(Q,G),ne,ce=0;!(ne=$.next()).done&&M(ne.value,ce++,this)!==!1;);return ce},k.__iteratorUncached=function(M,G){var $=m.map(function(ee){return ee=x(ee),at(G?ee.reverse():ee)}),ne=0,ce=!1;return new Be(function(){var ee;return ce||(ee=$.map(function(he){return he.next()}),ce=ee.some(function(he){return he.done})),ce?Le():ze(M,ne++,t.apply(null,ee.map(function(he){return he.value})))})},k}function At(e,t){return Ut(e)?t:e.constructor(t)}function Ir(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function ir(e){return Re(e.size),T(e)}function ar(e){return B(e)?b:S(e)?v:A}function un(e){return Object.create((B(e)?Ge:S(e)?Ye:ut).prototype)}function Yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Te.prototype.cacheResult.call(this)}function ur(e,t){return e>t?1:e=0;m--)t={value:arguments[m],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):ct(e,t)},de.prototype.pushAll=function(e){if(e=v(e),e.size===0)return this;Re(e.size);var t=this.size,m=this._head;return e.reverse().forEach(function(k){t++,m={value:k,next:m}}),this.__ownerID?(this.size=t,this._head=m,this.__hash=void 0,this.__altered=!0,this):ct(t,m)},de.prototype.pop=function(){return this.slice(1)},de.prototype.unshift=function(){return this.push.apply(this,arguments)},de.prototype.unshiftAll=function(e){return this.pushAll(e)},de.prototype.shift=function(){return this.pop.apply(this,arguments)},de.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ht()},de.prototype.slice=function(e,t){if(H(e,t,this.size))return this;var m=j(e,this.size),k=U(t,this.size);if(k!==this.size)return Dt.prototype.slice.call(this,e,t);for(var M=this.size-m,G=this._head;m--;)G=G.next;return this.__ownerID?(this.size=M,this._head=G,this.__hash=void 0,this.__altered=!0,this):ct(M,G)},de.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ct(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},de.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var m=0,k=this._head;k&&e(k.value,m++,this)!==!1;)k=k.next;return m},de.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var m=0,k=this._head;return new Be(function(){if(k){var M=k.value;return k=k.next,ze(e,m++,M)}return Le()})};function Ve(e){return!!(e&&e[Je])}de.isStack=Ve;var Je="@@__IMMUTABLE_STACK__@@",$e=de.prototype;$e[Je]=!0,$e.withMutations=Ne.withMutations,$e.asMutable=Ne.asMutable,$e.asImmutable=Ne.asImmutable,$e.wasAltered=Ne.wasAltered;function ct(e,t,m,k){var M=Object.create($e);return M.size=e,M._head=t,M.__ownerID=m,M.__hash=k,M.__altered=!1,M}var yt;function Ht(){return yt||(yt=ct(0))}function Pt(e,t){var m=function(k){e.prototype[k]=t[k]};return Object.keys(t).forEach(m),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(m),e}x.Iterator=Be,Pt(x,{toArray:function(){Re(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,m){e[m]=t}),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&typeof e.toJS=="function"?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&typeof e.toJSON=="function"?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Yt(this,!0)},toMap:function(){return ke(this.toKeyedSeq())},toObject:function(){Re(this.size);var e={};return this.__iterate(function(t,m){e[m]=t}),e},toOrderedMap:function(){return Lt(this.toKeyedSeq())},toOrderedSet:function(){return n(B(this)?this.valueSeq():this)},toSet:function(){return St(B(this)?this.valueSeq():this)},toSetSeq:function(){return new gn(this)},toSeq:function(){return S(this)?this.toIndexedSeq():B(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return de(B(this)?this.valueSeq():this)},toList:function(){return xt(B(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return this.size===0?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=P.call(arguments,0);return At(this,wr(this,e))},includes:function(e){return this.some(function(t){return me(t,e)})},entries:function(){return this.__iterator(ue)},every:function(e,t){Re(this.size);var m=!0;return this.__iterate(function(k,M,G){if(!e.call(t,k,M,G))return m=!1,!1}),m},filter:function(e,t){return At(this,nr(this,e,t,!0))},find:function(e,t,m){var k=this.findEntry(e,t);return k?k[1]:m},findEntry:function(e,t){var m;return this.__iterate(function(k,M,G){if(e.call(t,k,M,G))return m=[M,k],!1}),m},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Re(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Re(this.size),e=e!==void 0?""+e:",";var t="",m=!0;return this.__iterate(function(k){m?m=!1:t+=e,t+=k!=null?k.toString():""}),t},keys:function(){return this.__iterator(re)},map:function(e,t){return At(this,er(this,e,t))},reduce:function(e,t,m){Re(this.size);var k,M;return arguments.length<2?M=!0:k=t,this.__iterate(function(G,$,ne){M?(M=!1,k=G):k=e.call(m,k,G,$,ne)}),k},reduceRight:function(e,t,m){var k=this.toKeyedSeq().reverse();return k.reduce.apply(k,arguments)},reverse:function(){return At(this,tr(this,!0))},slice:function(e,t){return At(this,Vn(this,e,t,!0))},some:function(e,t){return!this.every(sn(e),t)},sort:function(e){return At(this,Bn(this,e))},values:function(){return this.__iterator(Q)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(e,t){return T(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return Tr(this,e,t)},equals:function(e){return it(this,e)},entrySeq:function(){var e=this;if(e._cache)return new nt(e._cache);var t=e.toSeq().map(ln).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(sn(e),t)},findLast:function(e,t,m){return this.toKeyedSeq().reverse().find(e,t,m)},first:function(){return this.find(w)},flatMap:function(e,t){return At(this,Mr(this,e,t))},flatten:function(e){return At(this,rr(this,e,!0))},fromEntrySeq:function(){return new wn(this)},get:function(e,t){return this.find(function(m,k){return me(k,e)},void 0,t)},getIn:function(e,t){for(var m=this,k=lr(e),M;!(M=k.next()).done;){var G=M.value;if(m=m&&m.get?m.get(G,C):C,m===C)return t}return m},groupBy:function(e,t){return Dr(this,e,t)},has:function(e){return this.get(e,C)!==C},hasIn:function(e){return this.getIn(e,C)!==C},isSubset:function(e){return e=typeof e.includes=="function"?e:x(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset=="function"?e:x(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(vn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Gn(this,e)},maxBy:function(e,t){return Gn(this,t,e)},min:function(e){return Gn(this,e?tn(e):nn)},minBy:function(e,t){return Gn(this,t?tn(t):nn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return At(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return At(this,xr(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(sn(e),t)},sortBy:function(e,t){return At(this,Bn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return At(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return At(this,br(this,e,t))},takeUntil:function(e,t){return this.takeWhile(sn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=yn(this))}});var Ct=x.prototype;Ct[h]=!0,Ct[V]=Ct.values,Ct.__toJS=Ct.toArray,Ct.__toStringMapper=mn,Ct.inspect=Ct.toSource=function(){return this.toString()},Ct.chain=Ct.flatMap,Ct.contains=Ct.includes,function(){try{Object.defineProperty(Ct,"length",{get:function(){if(!x.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(e.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Pt(b,{flip:function(){return At(this,Cr(this))},findKey:function(e,t){var m=this.findEntry(e,t);return m&&m[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return me(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return me(t,e)})},mapEntries:function(e,t){var m=this,k=0;return At(this,this.toSeq().map(function(M,G){return e.call(t,[G,M],k++,m)}).fromEntrySeq())},mapKeys:function(e,t){var m=this;return At(this,this.toSeq().flip().map(function(k,M){return e.call(t,k,M,m)}).flip())}});var Ft=b.prototype;Ft[s]=!0,Ft[V]=Ct.entries,Ft.__toJS=Ct.toObject,Ft.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+mn(e)},Pt(v,{toKeyedSeq:function(){return new Yt(this,!1)},filter:function(e,t){return At(this,nr(this,e,t,!1))},findIndex:function(e,t){var m=this.findEntry(e,t);return m?m[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return t===void 0?-1:t},reverse:function(){return At(this,tr(this,!1))},slice:function(e,t){return At(this,Vn(this,e,t,!1))},splice:function(e,t){var m=arguments.length;if(t=Math.max(t|0,0),m===0||m===2&&!t)return this;e=j(e,e<0?this.count():this.size);var k=this.slice(0,e);return At(this,m===1?k:k.concat(L(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var m=this.toKeyedSeq().findLastKey(e,t);return m===void 0?-1:m},first:function(){return this.get(0)},flatten:function(e){return At(this,rr(this,e,!1))},get:function(e,t){return e=I(this,e),e<0||this.size===Infinity||this.size!==void 0&&e>this.size?t:this.find(function(m,k){return k===e},void 0,t)},has:function(e){return e=I(this,e),e>=0&&(this.size!==void 0?this.size===Infinity||et?-1:0}function yn(e){if(e.size===Infinity)return 0;var t=f(e),m=B(e),k=t?1:0,M=e.__iterate(m?t?function(G,$){k=31*k+Mt(J(G),J($))|0}:function(G,$){k=k+Mt(J(G),J($))|0}:t?function(G){k=31*k+J(G)|0}:function(G){k=k+J(G)|0});return Rn(M,k)}function Rn(e,t){return t=Bt(t,3432918353),t=Bt(t<<15|t>>>-15,461845907),t=Bt(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Bt(t^t>>>16,2246822507),t=Bt(t^t>>>13,3266489909),t=Qt(t^t>>>16),t}function Mt(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var $t={Iterable:x,Seq:Te,Collection:wt,Map:ke,OrderedMap:Lt,List:xt,Stack:de,Set:St,OrderedSet:n,Record:Xt,Range:pt,Repeat:qe,is:me,fromJS:Ie};return $t})},38698:function(z,P,o){"use strict";/** @license React v17.0.2 * react-dom-server.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var x=o(27418),b=o(67294);function v(N){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+N,Z=1;Zw;w++)I[w]=w+1;I[15]=0;var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,j=Object.prototype.hasOwnProperty,U={},O={};function re(N){return j.call(O,N)?!0:j.call(U,N)?!1:H.test(N)?O[N]=!0:(U[N]=!0,!1)}function Q(N,_,Z,fe){if(Z!==null&&Z.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return fe?!1:Z!==null?!Z.acceptsBooleans:(N=N.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-");default:return!1}}function ue(N,_,Z,fe){if(_===null||typeof _=="undefined"||Q(N,_,Z,fe))return!0;if(fe)return!1;if(Z!==null)switch(Z.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function Se(N,_,Z,fe,xe,Ce,Ee){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=fe,this.attributeNamespace=xe,this.mustUseProperty=Z,this.propertyName=N,this.type=_,this.sanitizeURL=Ce,this.removeEmptyString=Ee}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(N){ye[N]=new Se(N,0,!1,N,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(N){var _=N[0];ye[_]=new Se(_,1,!1,N[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(N){ye[N]=new Se(N,2,!1,N.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(N){ye[N]=new Se(N,2,!1,N,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(N){ye[N]=new Se(N,3,!1,N.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(N){ye[N]=new Se(N,3,!0,N,null,!1,!1)}),["capture","download"].forEach(function(N){ye[N]=new Se(N,4,!1,N,null,!1,!1)}),["cols","rows","size","span"].forEach(function(N){ye[N]=new Se(N,6,!1,N,null,!1,!1)}),["rowSpan","start"].forEach(function(N){ye[N]=new Se(N,5,!1,N.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function Be(N){return N[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(N){var _=N.replace(V,Be);ye[_]=new Se(_,1,!1,N,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(N){var _=N.replace(V,Be);ye[_]=new Se(_,1,!1,N,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(N){var _=N.replace(V,Be);ye[_]=new Se(_,1,!1,N,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(N){ye[N]=new Se(N,1,!1,N.toLowerCase(),null,!1,!1)}),ye.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(N){ye[N]=new Se(N,1,!1,N.toLowerCase(),null,!0,!0)});var ze=/["'&<>]/;function Le(N){if(typeof N=="boolean"||typeof N=="number")return""+N;N=""+N;var _=ze.exec(N);if(_){var Z="",fe,xe=0;for(fe=_.index;febt))throw Error(v(301));if(N===_e)if(Ye=!0,N={action:Z,next:null},ut===null&&(ut=new Map),Z=ut.get(_),Z===void 0)ut.set(_,N);else{for(_=Z;_.next!==null;)_=_.next;_.next=N}}function pe(){}var Ae=null,ve={readContext:function(N){var _=Ae.threadID;return L(N,_),N[_]},useContext:function(N){nt();var _=Ae.threadID;return L(N,_),N[_]},useMemo:oe,useReducer:te,useRef:function(N){_e=nt(),Te=Xe();var _=Te.memoizedState;return _===null?(N={current:N},Te.memoizedState=N):_},useState:function(N){return te(Ke,N)},useLayoutEffect:function(){},useCallback:function(N,_){return oe(function(){return N},_)},useImperativeHandle:pe,useEffect:pe,useDebugValue:pe,useDeferredValue:function(N){return nt(),N},useTransition:function(){return nt(),[function(N){N()},!1]},useOpaqueIdentifier:function(){return(Ae.identifierPrefix||"")+"R:"+(Ae.uniqueID++).toString(36)},useMutableSource:function(N,_){return nt(),_(N._source)}},Fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ie(N){switch(N){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Me={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},We=x({menuitem:!0},Me),lt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(N){me.forEach(function(_){_=_+N.charAt(0).toUpperCase()+N.substring(1),lt[_]=lt[N]})});var it=/([A-Z])/g,qe=/^ms-/,ft=b.Children.toArray,dt=F.ReactCurrentDispatcher,pt={listing:!0,pre:!0,textarea:!0},Tt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt={},Ot={};function Dt(N){if(N==null)return N;var _="";return b.Children.forEach(N,function(Z){Z!=null&&(_+=Z)}),_}var jt=Object.prototype.hasOwnProperty,Bt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Qt(N,_){if(N===void 0)throw Error(v(152,D(_)||"Component"))}function J(N,_,Z){function fe(Ee,we){var ge=we.prototype&&we.prototype.isReactComponent,je=T(we,_,Z,ge),Qe=[],Oe=!1,He={isMounted:function(){return!1},enqueueForceUpdate:function(){if(Qe===null)return null},enqueueReplaceState:function(It,et){Oe=!0,Qe=[et]},enqueueSetState:function(It,et){if(Qe===null)return null;Qe.push(et)}};if(ge){if(ge=new we(Ee.props,je,He),typeof we.getDerivedStateFromProps=="function"){var Re=we.getDerivedStateFromProps.call(null,Ee.props,ge.state);Re!=null&&(ge.state=x({},ge.state,Re))}}else if(_e={},ge=we(Ee.props,je,He),ge=Et(we,Ee.props,ge,je),ge==null||ge.render==null){N=ge,Qt(N,we);return}if(ge.props=Ee.props,ge.context=je,ge.updater=He,He=ge.state,He===void 0&&(ge.state=He=null),typeof ge.UNSAFE_componentWillMount=="function"||typeof ge.componentWillMount=="function")if(typeof ge.componentWillMount=="function"&&typeof we.getDerivedStateFromProps!="function"&&ge.componentWillMount(),typeof ge.UNSAFE_componentWillMount=="function"&&typeof we.getDerivedStateFromProps!="function"&&ge.UNSAFE_componentWillMount(),Qe.length){He=Qe;var ke=Oe;if(Qe=null,Oe=!1,ke&&He.length===1)ge.state=He[0];else{Re=ke?He[0]:ge.state;var gt=!0;for(ke=ke?1:0;ke=we))throw Error(v(304));var ge=new Uint16Array(we);for(ge.set(Ee),I=ge,I[0]=Ce+1,Ee=Ce;Ee=ge.children.length){var je=ge.footer;if(je!==""&&(this.previousWasTextNode=!1),this.stack.pop(),ge.type==="select")this.currentSelectValue=null;else if(ge.type!=null&&ge.type.type!=null&&ge.type.type.$$typeof===d)this.popProvider(ge.type);else if(ge.type===s){this.suspenseDepth--;var Qe=Ce.pop();if(Ee){Ee=!1;var Oe=ge.fallbackFrame;if(!Oe)throw Error(v(303));this.stack.push(Oe),Ce[this.suspenseDepth]+="";continue}else Ce[this.suspenseDepth]+=Qe}Ce[this.suspenseDepth]+=je}else{var He=ge.children[ge.childIndex++],Re="";try{Re+=this.render(He,ge.context,ge.domNamespace)}catch(ke){throw ke!=null&&typeof ke.then=="function"?Error(v(294)):ke}finally{}Ce.length<=this.suspenseDepth&&Ce.push(""),Ce[this.suspenseDepth]+=Re}}return Ce[0]}finally{dt.current=xe,Ae=fe,Ut()}},_.render=function(Z,fe,xe){if(typeof Z=="string"||typeof Z=="number")return xe=""+Z,xe===""?"":this.makeStaticMarkup?Le(xe):this.previousWasTextNode?""+Le(xe):(this.previousWasTextNode=!0,Le(xe));if(fe=J(Z,fe,this.threadID),Z=fe.child,fe=fe.context,Z===null||Z===!1)return"";if(!b.isValidElement(Z)){if(Z!=null&&Z.$$typeof!=null)throw xe=Z.$$typeof,Error(xe===A?v(257):v(258,xe.toString()));return Z=ft(Z),this.stack.push({type:null,domNamespace:xe,children:Z,childIndex:0,context:fe,footer:""}),""}var Ce=Z.type;if(typeof Ce=="string")return this.renderDOM(Z,fe,xe);switch(Ce){case l:case C:case B:case S:case a:case p:return Z=ft(Z.props.children),this.stack.push({type:null,domNamespace:xe,children:Z,childIndex:0,context:fe,footer:""}),"";case s:throw Error(v(294));case E:throw Error(v(343))}if(typeof Ce=="object"&&Ce!==null)switch(Ce.$$typeof){case h:_e={};var Ee=Ce.render(Z.props,Z.ref);return Ee=Et(Ce.render,Z.props,Ee,Z.ref),Ee=ft(Ee),this.stack.push({type:null,domNamespace:xe,children:Ee,childIndex:0,context:fe,footer:""}),"";case c:return Z=[b.createElement(Ce.type,x({ref:Z.ref},Z.props))],this.stack.push({type:null,domNamespace:xe,children:Z,childIndex:0,context:fe,footer:""}),"";case d:return Ce=ft(Z.props.children),xe={type:Z,domNamespace:xe,children:Ce,childIndex:0,context:fe,footer:""},this.pushProvider(Z),this.stack.push(xe),"";case f:Ce=Z.type,Ee=Z.props;var we=this.threadID;return L(Ce,we),Ce=ft(Ee.children(Ce[we])),this.stack.push({type:Z,domNamespace:xe,children:Ce,childIndex:0,context:fe,footer:""}),"";case u:throw Error(v(338));case i:return Ce=Z.type,Ee=Ce._init,Ce=Ee(Ce._payload),Z=[b.createElement(Ce,x({ref:Z.ref},Z.props))],this.stack.push({type:null,domNamespace:xe,children:Z,childIndex:0,context:fe,footer:""}),""}throw Error(v(130,Ce==null?Ce:typeof Ce,""))},_.renderDOM=function(Z,fe,xe){var Ce=Z.type.toLowerCase();if(xe===Fe.html&&Ie(Ce),!wt.hasOwnProperty(Ce)){if(!Tt.test(Ce))throw Error(v(65,Ce));wt[Ce]=!0}var Ee=Z.props;if(Ce==="input")Ee=x({type:void 0},Ee,{defaultChecked:void 0,defaultValue:void 0,value:Ee.value!=null?Ee.value:Ee.defaultValue,checked:Ee.checked!=null?Ee.checked:Ee.defaultChecked});else if(Ce==="textarea"){var we=Ee.value;if(we==null){we=Ee.defaultValue;var ge=Ee.children;if(ge!=null){if(we!=null)throw Error(v(92));if(Array.isArray(ge)){if(!(1>=ge.length))throw Error(v(93));ge=ge[0]}we=""+ge}we==null&&(we="")}Ee=x({},Ee,{value:void 0,children:""+we})}else if(Ce==="select")this.currentSelectValue=Ee.value!=null?Ee.value:Ee.defaultValue,Ee=x({},Ee,{value:void 0});else if(Ce==="option"){ge=this.currentSelectValue;var je=Dt(Ee.children);if(ge!=null){var Qe=Ee.value!=null?Ee.value+"":je;if(we=!1,Array.isArray(ge)){for(var Oe=0;Oe":(et+=">",we="");e:{if(ge=Ee.dangerouslySetInnerHTML,ge!=null){if(ge.__html!=null){ge=ge.__html;break e}}else if(ge=Ee.children,typeof ge=="string"||typeof ge=="number"){ge=Le(ge);break e}ge=null}return ge!=null?(Ee=[],pt.hasOwnProperty(Ce)&&ge.charAt(0)===` `&&(et+=` `),et+=ge):Ee=ft(Ee.children),Z=Z.type,xe=xe==null||xe==="http://www.w3.org/1999/xhtml"?Ie(Z):xe==="http://www.w3.org/2000/svg"&&Z==="foreignObject"?"http://www.w3.org/1999/xhtml":xe,this.stack.push({domNamespace:xe,type:Ce,children:Ee,childIndex:0,context:fe,footer:we}),this.previousWasTextNode=!1,et},N}();P.renderToNodeStream=function(){throw Error(v(207))},P.renderToStaticMarkup=function(N,_){N=new ae(N,!0,_);try{return N.read(Infinity)}finally{N.destroy()}},P.renderToStaticNodeStream=function(){throw Error(v(208))},P.renderToString=function(N,_){N=new ae(N,!1,_);try{return N.read(Infinity)}finally{N.destroy()}},P.version="17.0.2"},97762:function(z,P,o){"use strict";z.exports=o(38698)},24889:function(z,P,o){var x=o(34155);(function(b,v){"use strict";if(b.setImmediate)return;var A=1,p={},B=!1,S=b.document,d;function f(g){typeof g!="function"&&(g=new Function(""+g));for(var D=new Array(arguments.length-1),F=0;F0?me.length===2?typeof me[1]==S?this[me[0]]=me[1].call(this,qe):this[me[0]]=me[1]:me.length===3?typeof me[1]===S&&!(me[1].exec&&me[1].test)?this[me[0]]=qe?me[1].call(this,qe,me[2]):v:this[me[0]]=qe?qe.replace(me[1],me[2]):v:me.length===4&&(this[me[0]]=qe?me[3].call(this,qe.replace(me[1],me[2])):v):this[me]=qe||v;Ie+=2}},Ut=function(ve,Fe){for(var Ie in Fe)if(typeof Fe[Ie]===f&&Fe[Ie].length>0){for(var Me=0;Me2&&(me[a]="iPad",me[i]=g),me},this.getEngine=function(){var me={};return me[c]=v,me[u]=v,Et.call(me,Me,lt.engine),me},this.getOS=function(){var me={};return me[c]=v,me[u]=v,Et.call(me,Me,lt.os),!me[c]&&We&&We.platform!="Unknown"&&(me[c]=We.platform.replace(/chrome os/i,Te).replace(/macos/i,Ge)),me},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Me},this.setUA=function(me){return Me=typeof me===h&&me.length>L?Xe(me,L):me,this},this.setUA(Me),this};le.VERSION=A,le.BROWSER=ut([c,u,s]),le.CPU=ut([E]),le.DEVICE=ut([a,r,i,C,l,D,g,F,y]),le.ENGINE=le.OS=ut([c,u]),typeof P!==d?(d!=="object"&&z.exports&&(P=z.exports=le),P.UAParser=le):S==="function"&&o.amdO?(x=function(){return le}.call(P,o,P,z),x!==v&&(z.exports=x)):typeof b!==d&&(b.UAParser=le);var pe=typeof b!==d&&(b.jQuery||b.Zepto);if(pe&&!pe.ua){var Ae=new le;pe.ua=Ae.getResult(),pe.ua.get=function(){return Ae.getUA()},pe.ua.set=function(ve){Ae.setUA(ve);var Fe=Ae.getResult();for(var Ie in Fe)pe.ua[Ie]=Fe[Ie]}}})(typeof window=="object"?window:this)}}]);