filesbox/web/dist/93558.d842ee8c.async.js
2024-07-26 14:10:54 +08:00

582 lines
452 KiB
JavaScript

(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<arguments.length;H++){var j=arguments[H];for(var U in j)Object.prototype.hasOwnProperty.call(j,U)&&(w[U]=j[U])}return w},b=o(67294),v=A(b);function A(w){return w&&w.__esModule?w:{default:w}}function p(w,H){var j={};for(var U in w)H.indexOf(U)>=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="<pre"+Le+"><code>":Ze="",_e!=="code-block"?Te="</code></pre>":Te="<br/>",{start:Ze,end:Te}}else{if(r[ue])return{start:"<"+r[ue]+Q+Le+">",end:"</"+r[ue]+">"};if(ue==="unordered-list-item")return{start:"<li"+Q+Le+">",end:"</li>",nest:v.default.createElement("ul",null)};if(ue==="ordered-list-item")return{start:"<li"+Q+Le+">",end:"</li>",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(/<code(.*?)>/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<arguments.length;c++){var i=arguments[c];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])}return a},b=o(34561),v=o(28126),A=o(9041),p={fontFamilies:v.defaultFontFamilies},B=P.convertRawToHTML=function(c,i){i=x({},p,i);try{var r=(0,A.convertFromRaw)(c);return i.contentState=r,(0,b.convertToHTML)((0,v.getToHTMLConfig)(i))(r)}catch(u){return console.warn(u),""}},S=P.convertHTMLToRaw=function(c,i,r){i=x({},p,i);try{var u=(0,b.convertFromHTML)((0,v.getFromHTMLConfig)(i,r))(c);return(0,A.convertToRaw)(u)}catch(E){return console.warn(E),{}}},d=P.convertEditorStateToHTML=function(c,i){i=x({},p,i);try{var r=c.getCurrentContent();return i.contentState=r,(0,b.convertToHTML)((0,v.getToHTMLConfig)(i))(r)}catch(u){return console.warn(u),""}},f=P.convertHTMLToEditorState=function(c,i,r,u){r=x({},p,r);try{return A.EditorState.createWithContent((0,b.convertFromHTML)((0,v.getFromHTMLConfig)(r,u))(c),i)}catch(E){return console.warn(E),A.EditorState.createEmpty(i)}},h=P.convertEditorStateToRaw=function(c){return(0,A.convertToRaw)(c.getCurrentContent())},s=P.convertRawToEditorState=function(c,i){try{return A.EditorState.createWithContent((0,A.convertFromRaw)(c),i)}catch(r){return console.warn(r),A.EditorState.createEmpty(i)}}},85589:function(z,P,o){(function(b,v){if(!0)z.exports=v(o(67294),o(32452),o(9041),o(43393),o(36444),o(73935),o(42017),o(5252));else var A,p})(window,function(x,b,v,A,p,B,S,d){return function(f){var h={};function s(a){if(h[a])return h[a].exports;var c=h[a]={i:a,l:!1,exports:{}};return f[a].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=f,s.c=h,s.d=function(a,c,i){s.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:i})},s.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,c){if(c&1&&(a=s(a)),c&8||c&4&&typeof a=="object"&&a&&a.__esModule)return a;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:a}),c&2&&typeof a!="string")for(var r in a)s.d(i,r,function(u){return a[u]}.bind(null,r));return i},s.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(c,"a",c),c},s.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)},s.p="/",s(s.s=39)}([function(f,h){f.exports=x},function(f,h){function s(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}f.exports=s},function(f,h){function s(a,c,i){return c in a?Object.defineProperty(a,c,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[c]=i,a}f.exports=s},function(f,h){f.exports=b},function(f,h){function s(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")}f.exports=s},function(f,h,s){var a=s(2);function c(i){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{},E=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(E=E.concat(Object.getOwnPropertySymbols(u).filter(function(C){return Object.getOwnPropertyDescriptor(u,C).enumerable}))),E.forEach(function(C){a(i,C,u[C])})}return i}f.exports=c},function(f,h){f.exports=v},function(f,h){function s(c,i){for(var r=0;r<i.length;r++){var u=i[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(c,u.key,u)}}function a(c,i,r){return i&&s(c.prototype,i),r&&s(c,r),c}f.exports=a},function(f,h,s){var a=s(15),c=s(1);function i(r,u){return u&&(a(u)==="object"||typeof u=="function")?u:c(r)}f.exports=i},function(f,h){function s(a){return f.exports=s=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},s(a)}f.exports=s},function(f,h,s){var a=s(26);function c(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),r&&a(i,r)}f.exports=c},function(f,h){function s(){return f.exports=s=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var i=arguments[c];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])}return a},s.apply(this,arguments)}f.exports=s},function(f,h,s){var a=s(27),c=s(28),i=s(29);function r(u){return a(u)||c(u)||i()}f.exports=r},function(f,h){f.exports=A},function(f,h){f.exports=p},function(f,h){function s(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(r){return typeof r}:s=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},s(c)}function a(c){return typeof Symbol=="function"&&s(Symbol.iterator)==="symbol"?f.exports=a=function(r){return s(r)}:f.exports=a=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":s(r)},a(c)}f.exports=a},function(f,h){f.exports=B},function(f,h){f.exports=S},function(f,h,s){var a=s(13),c="-";function i(r){this.decorators=a.List(r)}i.prototype.getDecorations=function(r){var u=Array(r.getText().length).fill(null);return this.decorators.forEach(function(E,C){var l=E.getDecorations(r);l.forEach(function(g,D){!g||(g=C+c+g,u[D]=g)})}),a.List(u)},i.prototype.getComponentForKey=function(r){var u=this.getDecoratorForKey(r);return u.getComponentForKey(this.getInnerKey(r))},i.prototype.getPropsForKey=function(r){var u=this.getDecoratorForKey(r);return u.getPropsForKey(this.getInnerKey(r))},i.prototype.getDecoratorForKey=function(r){var u=r.split(c),E=Number(u[0]);return this.decorators.get(E)},i.prototype.getInnerKey=function(r){var u=r.split(c);return u.slice(1).join(c)},f.exports=i},function(f,h,s){"use strict";function a(T,I){if(!(T instanceof I))throw new TypeError("Cannot call a class as a function")}function c(T,I){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:T}function i(T,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);T.prototype=Object.create(I&&I.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(T,I):T.__proto__=I)}var r=s(13),u=r.Map,E=r.OrderedSet,C=r.Record,l=E(),g={style:l,entity:null},D=C(g),F=function(T){i(I,T);function I(){return a(this,I),c(this,T.apply(this,arguments))}return I.prototype.getStyle=function(){return this.get("style")},I.prototype.getEntity=function(){return this.get("entity")},I.prototype.hasStyle=function(H){return this.getStyle().includes(H)},I.applyStyle=function(H,j){var U=H.set("style",H.getStyle().add(j));return I.create(U)},I.removeStyle=function(H,j){var U=H.set("style",H.getStyle().remove(j));return I.create(U)},I.applyEntity=function(H,j){var U=H.getEntity()===j?H:H.set("entity",j);return I.create(U)},I.create=function(H){if(!H)return y;var j={style:l,entity:null},U=u(j).merge(H),O=L.get(U);if(O)return O;var re=new I(U);return L=L.set(U,re),re},I}(D),y=new F,L=u([[u(g),y]]);F.EMPTY=y,f.exports=F},function(f,h,s){"use strict";function a(c,i,r,u){if(!!c.size){var E=0;c.reduce(function(C,l,g){return i(C,l)||(r(C)&&u(E,g),E=g),l}),r(c.last())&&u(E,c.count())}}f.exports=a},function(f,h,s){var a=s(25);function c(i,r){if(i==null)return{};var u=a(i,r),E,C;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(C=0;C<l.length;C++)E=l[C],!(r.indexOf(E)>=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<r.length;E++)u=r[E],!(c.indexOf(u)>=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);c<a.length;c++)i[c]=a[c];return i}}f.exports=s},function(f,h){function s(a){if(Symbol.iterator in Object(a)||Object.prototype.toString.call(a)==="[object Arguments]")return Array.from(a)}f.exports=s},function(f,h){function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}f.exports=s},function(f,h,s){"use strict";var a=s(31),c=s(34),i=function(u,E){var C=E.getStartKey(),l=E.getStartOffset(),g=E.getEndKey(),D=E.getEndOffset(),F=c(u,E),y=F.getBlockMap(),L=y.keySeq(),T=L.indexOf(C),I=L.indexOf(g)+1;return a(y.slice(T,I).map(function(w,H){var j=w.getText(),U=w.getCharacterList();return C===g?w.merge({text:j.slice(l,D),characterList:U.slice(l,D)}):H===C?w.merge({text:j.slice(l),characterList:U.slice(l)}):H===g?w.merge({text:j.slice(0,D),characterList:U.slice(0,D)}):w}))};f.exports=i},function(f,h,s){"use strict";var a=s(32),c=s(13),i=s(33),r=c.OrderedMap,u=function(g){var D={},F=void 0;return r(g.withMutations(function(y){y.forEach(function(L,T){var I=L.getKey(),w=L.getNextSiblingKey(),H=L.getPrevSiblingKey(),j=L.getChildKeys(),U=L.getParentKey(),O=i();if(D[I]=O,w){var re=y.get(w);re?y.setIn([w,"prevSibling"],O):y.setIn([I,"nextSibling"],null)}if(H){var Q=y.get(H);Q?y.setIn([H,"nextSibling"],O):y.setIn([I,"prevSibling"],null)}if(U&&y.get(U)){var ue=y.get(U),Se=ue.getChildKeys();y.setIn([U,"children"],Se.set(Se.indexOf(L.getKey()),O))}else y.setIn([I,"parent"],null),F&&(y.setIn([F.getKey(),"nextSibling"],O),y.setIn([I,"prevSibling"],D[F.getKey()])),F=y.get(I);j.forEach(function(ye){var V=y.get(ye);V?y.setIn([ye,"parent"],O):y.setIn([I,"children"],L.getChildKeys().filter(function(Be){return Be!==ye}))})})}).toArray().map(function(y){return[D[y.getKey()],y.set("key",D[y.getKey()])]}))},E=function(g){return r(g.toArray().map(function(D){var F=i();return[F,D.set("key",F)]}))},C=function(g){var D=g.first()instanceof a;return D?u(g):E(g)};f.exports=C},function(f,h,s){"use strict";function a(j,U){if(!(j instanceof U))throw new TypeError("Cannot call a class as a function")}function c(j,U){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:j}function i(j,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);j.prototype=Object.create(U&&U.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(j,U):j.__proto__=U)}var r=s(19),u=s(13),E=s(20),C=u.List,l=u.Map,g=u.OrderedSet,D=u.Record,F=u.Repeat,y=g(),L={parent:null,characterList:C(),data:l(),depth:0,key:"",text:"",type:"unstyled",children:C(),prevSibling:null,nextSibling:null},T=function(U,O){return U.getStyle()===O.getStyle()},I=function(U,O){return U.getEntity()===O.getEntity()},w=function(U){if(!U)return U;var O=U.characterList,re=U.text;return re&&!O&&(U.characterList=C(F(r.EMPTY,re.length))),U},H=function(j){i(U,j);function U(){var O=arguments.length>0&&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=g<D.count()?D.get(g):void 0,L=F?F.getEntity():void 0,T=y?y.getEntity():void 0;if(T&&T===L){var I=C.__get(T);if(I.getMutability()!=="MUTABLE"){for(var w=u(D,T,g),H=w.start,j=w.end,U;H<j;)U=D.get(H),D=D.set(H,a.applyEntity(U,null)),H++;return l.set("characterList",D)}}return l}f.exports=r},function(f,h,s){"use strict";var a=function(r){};function c(i,r,u,E,C,l,g,D){if(a(r),!i){var F;if(r===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 y=[u,E,C,l,g,D],L=0;F=new Error(r.replace(/%s/g,function(){return y[L++]})),F.name="Invariant Violation"}throw F.framesToPop=1,F}}f.exports=c},function(f,h){function s(a){if(Array.isArray(a))return a}f.exports=s},function(f,h){function s(a,c){var i=[],r=!0,u=!1,E=void 0;try{for(var C=a[Symbol.iterator](),l;!(r=(l=C.next()).done)&&(i.push(l.value),!(c&&i.length===c));r=!0);}catch(g){u=!0,E=g}finally{try{!r&&C.return!=null&&C.return()}finally{if(u)throw E}}return i}f.exports=s},function(f,h){function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}f.exports=s},function(f,h,s){"use strict";s.r(h);var a=s(15),c=s.n(a),i=s(5),r=s.n(i),u=s(21),E=s.n(u),C=s(4),l=s.n(C),g=s(7),D=s.n(g),F=s(8),y=s.n(F),L=s(9),T=s.n(L),I=s(1),w=s.n(I),H=s(10),j=s.n(H),U=s(2),O=s.n(U),re=s(12),Q=s.n(re),ue=s(40),Se=s(42),ye=s(0),V=s.n(ye),Be={base:{remove:"Remove",cancel:"Cancel",confirm:"Confirm",inert:"Insert",width:"Width",height:"Height"},controls:{clear:"Clear",undo:"Undo",redo:"Redo",fontSize:"Font Size",color:"Color",textColor:"Text",tempColors:"Temp Colors",backgroundColor:"Background",bold:"Bold",lineHeight:"Line Height",letterSpacing:"Letter Spacing",textIndent:"Text Indent",increaseIndent:"Increase Indent",decreaseIndent:"Decrease Indent",italic:"Italic",underline:"Underline",strikeThrough:"Strike Through",fontFamily:"Font Family",textAlign:"Text Alignment",alignLeft:"Left Alignment",alignCenter:"Center Alignment",alignRight:"Right Alignment",alignJustify:"Justify Alignment",floatLeft:"Left Float",floatRight:"Right Float",superScript:"Super Script",subScript:"Sub Script",removeStyles:"Remove Styles",headings:"Headings",header:"Header",normal:"Normal",orderedList:"Ordered List",unorderedList:"Unordered List",blockQuote:"Quote",code:"Code",link:"Link",unlink:"Unlink",hr:"Horizontal Line",media:"Media",mediaLibirary:"Media Library",emoji:"Emoji",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen"},linkEditor:{textInputPlaceHolder:"Input link text",linkInputPlaceHolder:"Input link URL",inputWithEnterPlaceHolder:"Input link URL and press Enter",openInNewWindow:"Open in new window",removeLink:"Remove Link"},audioPlayer:{title:"Play Audio"},videoPlayer:{title:"Play Video",embedTitle:"Embed Media"},media:{image:"Image",video:"Video",audio:"Audio",embed:"Embed"}},ze={base:{remove:"\u5220\u9664",cancel:"\u53D6\u6D88",confirm:"\u786E\u5B9A",inert:"\u63D2\u5165",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"},controls:{clear:"\u6E05\u9664\u5185\u5BB9",undo:"\u64A4\u9500",redo:"\u91CD\u505A",fontSize:"\u5B57\u53F7",lineHeight:"\u884C\u9AD8",letterSpacing:"\u5B57\u95F4\u8DDD",textIndent:"\u6BB5\u843D\u7F29\u8FDB",increaseIndent:"\u589E\u52A0\u7F29\u8FDB",decreaseIndent:"\u51CF\u5C11\u7F29\u8FDB",border:"\u8FB9\u6846",color:"\u989C\u8272",textColor:"\u6587\u5B57\u989C\u8272",backgroundColor:"\u80CC\u666F\u989C\u8272",tempColors:"\u4E34\u65F6\u989C\u8272",bold:"\u52A0\u7C97",italic:"\u659C\u4F53",underline:"\u4E0B\u5212\u7EBF",strikeThrough:"\u5220\u9664\u7EBF",fontFamily:"\u5B57\u4F53",textAlign:"\u6587\u672C\u5BF9\u9F50",alignLeft:"\u5C45\u5DE6",alignCenter:"\u5C45\u4E2D",alignRight:"\u5C45\u53F3",alignJustify:"\u4E24\u7AEF",floatLeft:"\u5DE6\u6D6E\u52A8",floatRight:"\u53F3\u6D6E\u52A8",superScript:"\u4E0A\u6807",subScript:"\u4E0B\u6807",removeStyles:"\u6E05\u9664\u6837\u5F0F",headings:"\u6807\u9898",header:"\u6807\u9898",normal:"\u5E38\u89C4",orderedList:"\u6709\u5E8F\u5217\u8868",unorderedList:"\u65E0\u5E8F\u5217\u8868",blockQuote:"\u5F15\u7528",code:"\u4EE3\u7801",link:"\u94FE\u63A5",unlink:"\u6E05\u9664\u94FE\u63A5",hr:"\u6C34\u5E73\u7EBF",media:"\u5A92\u4F53",mediaLibirary:"\u5A92\u4F53\u5E93",emoji:"\u5C0F\u8868\u60C5",fullscreen:"\u5168\u5C4F",exitFullscreen:"\u9000\u51FA\u5168\u5C4F"},linkEditor:{textInputPlaceHolder:"\u8F93\u5165\u94FE\u63A5\u6587\u5B57",linkInputPlaceHolder:"\u8F93\u5165\u94FE\u63A5\u5730\u5740",inputWithEnterPlaceHolder:"\u8F93\u5165\u94FE\u63A5\u5730\u5740\u5E76\u56DE\u8F66",openInNewWindow:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00",removeLink:"\u79FB\u9664\u94FE\u63A5"},audioPlayer:{title:"\u64AD\u653E\u97F3\u9891\u6587\u4EF6"},videoPlayer:{title:"\u64AD\u653E\u89C6\u9891\u6587\u4EF6",embedTitle:"\u5D4C\u5165\u5F0F\u5A92\u4F53"},media:{image:"\u56FE\u50CF",video:"\u89C6\u9891",audio:"\u97F3\u9891",embed:"\u5D4C\u5165\u5F0F\u5A92\u4F53"}},Le={base:{remove:"\u522A\u9664",cancel:"\u53D6\u6D88",confirm:"\u78BA\u5B9A",inert:"\u63D2\u5165",width:"\u5BEC\u5EA6",height:"\u9AD8\u5EA6"},controls:{clear:"\u6E05\u9664\u5185\u5BB9",undo:"\u5FA9\u539F",redo:"\u53D6\u6D88\u5FA9\u539F",fontSize:"\u5B57\u578B\u5927\u5C0F",color:"\u984F\u8272",textColor:"\u6587\u5B57\u984F\u8272",backgroundColor:"\u80CC\u666F\u984F\u8272",tempColors:"\u81E8\u6642\u984F\u8272",bold:"\u7C97\u9AD4",lineHeight:"\u884C\u9AD8",letterSpacing:"\u5B57\u9593\u8DDD",textIndent:"\u6BB5\u843D\u7E2E\u9032",increaseIndent:"\u589E\u52A0\u7E2E\u9032",decreaseIndent:"\u51CF\u5C11\u7E2E\u9032",border:"\u908A\u6846",italic:"\u659C\u9AD4",underline:"\u5E95\u7DDA",strikeThrough:"\u522A\u9664\u7DDA",fontFamily:"\u5B57\u9AD4",textAlign:"\u6587\u5B57\u5C0D\u9F4A",alignLeft:"\u7F6E\u5DE6",alignCenter:"\u7F6E\u4E2D",alignRight:"\u7F6E\u53F3",alignJustify:"\u5DE6\u53F3\u5C0D\u9F4A",floatLeft:"\u5DE6\u6D6E\u52D5",floatRight:"\u53F3\u6D6E\u52D5",superScript:"\u4E0A\u6A19",subScript:"\u4E0B\u6A19",removeStyles:"\u6E05\u9664\u6A23\u5F0F",headings:"\u6A19\u984C",header:"\u6A19\u984C",normal:"\u5E38\u898F",orderedList:"\u6709\u5E8F\u5217\u8868",unorderedList:"\u7121\u5E8F\u5217\u8868",blockQuote:"\u5F15\u7528",code:"\u7A0B\u5F0F\u78BC",link:"\u9023\u7D50",unlink:"\u6E05\u9664\u9023\u7D50",hr:"\u6C34\u5E73\u7DDA",media:"\u5A92\u9AD4",mediaLibirary:"\u5A92\u9AD4\u5EAB",emoji:"\u8868\u60C5\u7B26\u865F",fullscreen:"\u5168\u87A2\u5E55",exitFullscreen:"\u9000\u51FA\u5168\u87A2\u5E55"},linkEditor:{textInputPlaceHolder:"\u8F38\u5165\u9023\u7D50\u6587\u5B57",linkInputPlaceHolder:"\u8F38\u5165\u9023\u7D50\u5730\u5740",inputWithEnterPlaceHolder:"\u8F38\u5165\u9023\u7D50\u5730\u5740\u4E26\u63DB\u884C",openInNewWindow:"\u5728\u65B0\u8996\u7A97\u6253\u958B",removeLink:"\u79FB\u9664\u9023\u7D50"},audioPlayer:{title:"\u64AD\u653E\u97F3\u6A94"},videoPlayer:{title:"\u64AD\u653E\u5F71\u7247",embedTitle:"\u5D4C\u5165\u5F0F\u5A92\u9AD4"},media:{image:"\u5716\u7247",video:"\u5F71\u7247",audio:"\u97F3\u6A94",embed:"\u5D4C\u5165\u5F0F\u5A92\u9AD4"}},Ue={base:{remove:"Usu\u0144",cancel:"Anuluj",confirm:"Potwierd\u017A",inert:"Wstaw",width:"Szeroko\u015B\u0107",height:"Wysoko\u015B\u0107"},controls:{clear:"Wyczy\u015B\u0107",undo:"Cofnij",redo:"Przywr\xF3\u0107",fontSize:"Wielko\u015B\u0107",color:"Kolor",textColor:"Kolor tekstu",tempColors:"Kolory",backgroundColor:"T\u0142o",bold:"Pogrubienie",lineHeight:"Wysoko\u015B\u0107 linii",letterSpacing:"Odst\u0119p znak\xF3w",textIndent:"Wci\u0119cie tekstu",increaseIndent:"Zwi\u0119ksz wci\u0119cie",decreaseIndent:"Zmniejsz wci\u0119cie",italic:"Italiki",underline:"Podkre\u015Blenie",strikeThrough:"Przekre\u015Blenie",fontFamily:"Czcionka",textAlign:"Wyr\xF3wnanie tekstu",alignLeft:"Do lewej",alignCenter:"Wycentruj",alignRight:"Do prawej",alignJustify:"Wyjustuj",floatLeft:"Do lewej",floatRight:"Do prawej",superScript:"Superskrypt",subScript:"Subskrypt",removeStyles:"Usu\u0144 stylowanie",headings:"Nag\u0142\xF3wki",header:"Nag\u0142\xF3wek",normal:"Normalny",orderedList:"Lista uporz\u0105dkowana",unorderedList:"Lista nieuporz\u0105dkowana",blockQuote:"Cytat",code:"Kod",link:"Link",unlink:"Usu\u0144 link",hr:"Linia pozioma",media:"Media",mediaLibirary:"Biblioteka medi\xF3w",emoji:"Emoji"},linkEditor:{textInputPlaceHolder:"Wpisz tekst linku",linkInputPlaceHolder:"Wpisz Adres URL",inputWithEnterPlaceHolder:"Wpisz adres URL i naci\u015Bnij Enter",openInNewWindow:"Otw\xF3rz w nowym oknie",removeLink:"Usu\u0144 link"},audioPlayer:{title:"Odtw\xF3rz audio"},videoPlayer:{title:"Odtw\xF3rz wideo",embedTitle:"Tytu\u0142"},media:{image:"Obraz",video:"Wideo",audio:"Audio",embed:"Obiekt osadzony"}},ot={base:{remove:"\uC0AD\uC81C",cancel:"\uCDE8\uC18C",confirm:"\uACB0\uC815",inert:"\uC0BD\uC785",width:"\uB108\uBE44",height:"\uB192\uC774"},controls:{clear:"\uCF58\uD150\uCE20\uC9C0\uC6B0\uAE30",undo:"\uCDE8\uC18C",redo:"\uB2E4\uC2DC\uD558\uAE30",fontSize:"\uAE00\uC790\uD06C\uAE30",lineHeight:"\uD589\uB192\uC774",letterSpacing:"\uB2E8\uC5B4\uAC04\uACA9",textIndent:"\uB2E8\uB77D\uB4E4\uC5EC\uC4F0\uAE30",increaseIndent:"\uB4E4\uC5EC\uC4F0\uAE30\uB298\uB9AC\uAE30",decreaseIndent:"\uB4E4\uC5EC\uC4F0\uAE30\uC904\uC774\uAE30",border:"\uAD6D\uACBD",color:"\uC0C9\uC0C1",textColor:"\uD14D\uC2A4\uD2B8\uC0C9\uC0C1",backgroundColor:"\uBC30\uACBD\uC0C9\uC0C1",tempColors:"\uC784\uC2DC\uC0C9",bold:"\uAD75\uAC8C",italic:"\uAE30\uC6B8\uC784\uAF34",underline:"\uBC11\uC904",strikeThrough:"\uCDE8\uC18C\uC120",fontFamily:"\uAE00\uAF34",textAlign:"\uD14D\uC2A4\uD2B8\uC815\uB82C",alignLeft:"\uC67C\uCABD",alignCenter:"\uC911\uC2EC",alignRight:"\uC624\uB978\uCABD",alignJustify:"\uC591\uCABD\uB05D",floatLeft:"\uB5A0\uB2E4\uB2C8\uAE30",floatRight:"\uC624\uB978\uCABD\uBD80\uB3D9",superScript:"\uC704\uCCA8\uC790",subScript:"\uCCA8\uC790",removeStyles:"\uC2A4\uD0C0\uC77C\uC9C0\uC6B0\uAE30",headings:"\uC81C\uBAA9",header:"\uC81C\uBAA9",normal:"\uC7AC\uB798\uC2DD",orderedList:"\uC21C\uC11C\uAC00\uC9C0\uC815\uB41C\uBAA9\uB85D",unorderedList:"\uC815\uB82C\uB418\uC9C0\uC54A\uC740\uBAA9\uB85D",blockQuote:"\uCC38\uACE0\uBB38\uD5CC",code:"\uCF54\uB4DC",link:"\uB9C1\uD06C",unlink:"\uB9C1\uD06C\uC0AD\uC81C",hr:"\uC218\uD3C9\uC120",media:"\uBBF8\uB514\uC5B4",mediaLibirary:"\uBBF8\uB514\uC5B4\uB77C\uC774\uBE0C\uB7EC\uB9AC",emoji:"\uC791\uC740\uD45C\uD604",fullscreen:"\uC804\uCCB4\uD654\uBA74",exitFullscreen:"\uC804\uCCB4\uD654\uBA74\uC885\uB8CC"},linkEditor:{textInputPlaceHolder:"\uB9C1\uD06C\uD14D\uC2A4\uD2B8\uC785\uB825",linkInputPlaceHolder:"\uB9C1\uD06C\uC8FC\uC18C\uC785\uB825",inputWithEnterPlaceHolder:"\uB9C1\uD06C\uC8FC\uC18C\uC785\uB825.",openInNewWindow:"\uC0C8\uCC3D\uC5F4\uAE30",removeLink:"\uB9C1\uD06C\uC0AD\uC81C"},audioPlayer:{title:"\uC624\uB514\uC624\uD30C\uC77C\uC7AC\uC0DD"},videoPlayer:{title:"\uBE44\uB514\uC624\uD30C\uC77C\uC7AC\uC0DD",embedTitle:"\uC784\uBCA0\uB514\uB4DC\uBBF8\uB514\uC5B4"},media:{image:"\uC774\uBBF8\uC9C0",video:"\uBE44\uB514\uC624",audio:"\uC624\uB514\uC624",embed:"\uC784\uBCA0\uB514\uB4DC\uBBF8\uB514\uC5B4"}},at={base:{remove:"Kald\u0131r",cancel:"\u0130ptal",confirm:"Onayla",inert:"Ekle",width:"Geni\u015Flik",height:"Y\xFCkseklik"},controls:{clear:"Temizle",undo:"Geri al",redo:"\u0130leri al",fontSize:"Yaz\u0131 boyutu",color:"Renk",textColor:"Yaz\u0131 rengi",tempColors:"Ge\xE7ici renkler",backgroundColor:"Arkaplan",bold:"Kal\u0131n",lineHeight:"Sat\u0131r y\xFCksekli\u011Fi",letterSpacing:"Harf aral\u0131\u011F\u0131",textIndent:"\xC7entik aral\u0131\u011F\u0131",increaseIndent:"\xC7enti\u011Fi geni\u015Flet",decreaseIndent:"\xC7enti\u011Fi daralt",italic:"E\u011Fik",underline:"Alt\u0131 \xE7izili",strikeThrough:"\xDCst\xFC \xE7izili",fontFamily:"Yaz\u0131 tipi",textAlign:"Metin Hizalama",alignLeft:"Sola hizala",alignCenter:"Ortaya hizala",alignRight:"Sa\u011Fa hizala",alignJustify:"Her iki tarafa hizala",floatLeft:"Sola yat\u0131r",floatRight:"Sa\u011Fa yat\u0131r",superScript:"Ana kod",subScript:"Alt kod",removeStyles:"Stilleri kald\u0131r",headings:"Ba\u015Fl\u0131klar",header:"Ba\u015Fl\u0131k",normal:"Normal",orderedList:"S\u0131ral\u0131 liste",unorderedList:"S\u0131ras\u0131z liste",blockQuote:"Al\u0131nt\u0131",code:"Kod",link:"Ba\u011Flant\u0131",unlink:"Ba\u011Flant\u0131y\u0131 kald\u0131r",hr:"Yatay \xE7izgi",media:"Medya",mediaLibirary:"K\xFCt\xFCphane",emoji:"\u0130fade",fullscreen:"Tam ekran",exitFullscreen:"Tam ekrandan \xE7\u0131k"},linkEditor:{textInputPlaceHolder:"Ba\u011Flant\u0131 metnini girin",linkInputPlaceHolder:"Ba\u011Flant\u0131 URL' si girin",inputWithEnterPlaceHolder:"Ba\u011Flant\u0131 URL'si girin ve Enter' a bas\u0131n",openInNewWindow:"Yeni pencerede a\xE7",removeLink:"Ba\u011Flant\u0131y\u0131 kald\u0131r"},audioPlayer:{title:"Ses \xE7al"},videoPlayer:{title:"G\xF6r\xFCnt\xFC oynat",embedTitle:"G\xF6r\xFCnt\xFCy\xFC g\xF6m"},media:{image:"Resim",video:"G\xF6r\xFCnt\xFC",audio:"Ses",embed:"G\xF6m\xFCl\xFC nesne"}},_e={base:{remove:"\u524A\u9664",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u6C7A\u5B9A",inert:"\u633F\u5165",width:"\u5E45",height:"\u9AD8\u3055"},controls:{clear:"\u30AF\u30EA\u30A2\u30B3\u30F3\u30C6\u30F3\u30C4",undo:"\u30AD\u30E3\u30F3\u30BB\u30EB",redo:"\u30AD\u30E3\u30F3\u30BB\u30EB",fontSize:"\u30D5\u30A9\u30F3\u30C8\u30B5\u30A4\u30BA",lineHeight:"\u30D5\u30A9\u30F3\u30C8\u30B5\u30A4\u30BA",letterSpacing:"\u30EF\u30FC\u30C9\u9593\u9694",textIndent:"\u6BB5\u843D\u306E\u30A4\u30F3\u30C7\u30F3\u30C8",increaseIndent:"\u30A4\u30F3\u30C7\u30F3\u30C8\u3092\u5897\u3084\u3059",decreaseIndent:"\u30A4\u30F3\u30C7\u30F3\u30C8\u3092\u6E1B\u3089\u3059",border:"\u56FD\u5883",color:"\u8272",textColor:"\u30C6\u30AD\u30B9\u30C8\u306E\u8272",backgroundColor:"\u80CC\u666F\u8272",tempColors:"\u4EEE\u8272",bold:"\u592A\u5B57",italic:"\u30A4\u30BF\u30EA\u30C3\u30AF\u4F53",underline:"\u4E0B\u7DDA",strikeThrough:"\u53D6\u308A\u6D88\u3057\u7DDA",fontFamily:"\u30D5\u30A9\u30F3\u30C8",textAlign:"\u30C6\u30AD\u30B9\u30C8\u306E\u914D\u7F6E",alignLeft:"\u5DE6",alignCenter:"\u4E2D\u592E\u63C3\u3048",alignRight:"\u53F3\u306B\u7ACB\u3064",alignJustify:"\u4E21\u7AEF",floatLeft:"\u5DE6\u30D5\u30ED\u30FC\u30C6\u30A3\u30F3\u30B0",floatRight:"\u53F3\u30D5\u30ED\u30FC\u30C6\u30A3\u30F3\u30B0",superScript:"\u4E0A\u4ED8\u304D",subScript:"\u4E0B\u4ED8\u304D\u6587\u5B57",removeStyles:"\u30AF\u30EA\u30A2\u30B9\u30BF\u30A4\u30EB",headings:"\u5F79\u8077",header:"\u5F79\u8077",normal:"\u5F93\u6765\u306E",orderedList:"\u9806\u5E8F\u4ED8\u304D\u30EA\u30B9\u30C8",unorderedList:"\u756A\u53F7\u306A\u3057\u30EA\u30B9\u30C8",blockQuote:"\u53C2\u7167",code:"\u30B3\u30FC\u30C9",link:"\u30EA\u30F3\u30AF",unlink:"\u30EA\u30F3\u30AF\u3092\u89E3\u9664",hr:"\u6A2A\u7DDA",media:"\u30E1\u30C7\u30A3\u30A2",mediaLibirary:"\u30E1\u30C7\u30A3\u30A2\u30E9\u30A4\u30D6\u30E9\u30EA\u30FC",emoji:"\u5C0F\u3055\u306A\u8868\u73FE",fullscreen:"\u5168\u753B\u9762",exitFullscreen:"\u5168\u753B\u9762\u3092\u9000\u304F"},linkEditor:{textInputPlaceHolder:"\u30EA\u30F3\u30AF\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B",linkInputPlaceHolder:"\u30EA\u30F3\u30AF\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B",inputWithEnterPlaceHolder:"\u30EA\u30F3\u30AF\u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066\u623B\u308A\u307E\u3059",openInNewWindow:"\u65B0\u3057\u3044\u30A6\u30A3\u30F3\u30C9\u30A6\u3067\u958B\u304F",removeLink:"\u65B0\u3057\u3044\u30A6\u30A3\u30F3\u30C9\u30A6\u3067\u958B\u304F"},audioPlayer:{title:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u3092\u518D\u751F\u3059\u308B"},videoPlayer:{title:"\u30D3\u30C7\u30AA\u30D5\u30A1\u30A4\u30EB\u3092\u518D\u751F\u3059\u308B",embedTitle:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2"},media:{image:"\u753B\u50CF",video:"\u30D3\u30C7\u30AA",audio:"\u97F3\u58F0",embed:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2"}},Ze={base:{remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",insert:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C",width:"\u0428\u0438\u0440\u0438\u043D\u0430",height:"\u0412\u044B\u0441\u043E\u0442\u0430"},controls:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",fontSize:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",color:"\u0426\u0432\u0435\u0442",textColor:"\u0426\u0432\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u0430",tempColors:"Temp Colors",backgroundColor:"\u0426\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",bold:"\u0416\u0438\u0440\u043D\u044B\u0439",lineHeight:"\u041C\u0435\u0436\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",letterSpacing:"\u041C\u0435\u0436\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0439 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",textIndent:"\u041E\u0442\u0441\u0442\u0443\u043F",increaseIndent:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u043E\u0442\u0441\u0442\u0443\u043F",decreaseIndent:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u043E\u0442\u0441\u0442\u0443\u043F",italic:"\u041A\u0443\u0440\u0441\u0438\u0432",underline:"\u041F\u043E\u0434\u0447\u0435\u0440\u043A\u043D\u0443\u0442\u044B\u0439",strikeThrough:"\u041F\u0435\u0440\u0435\u0447\u0435\u0440\u043A\u043D\u0443\u0442\u044B\u0439",fontFamily:"\u0428\u0440\u0438\u0444\u0442",textAlign:"\u0420\u0430\u0441\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u043A\u0441\u0442\u0430",alignLeft:"\u041F\u043E \u043B\u0435\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",alignCenter:"\u041F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",alignRight:"\u041F\u043E \u043F\u0440\u0430\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",alignJustify:"\u041F\u043E \u0448\u0438\u0440\u0438\u043D\u0435",floatLeft:"\u041E\u0431\u0442\u0435\u043A\u0430\u043D\u0438\u0435 \u0441\u043B\u0435\u0432\u0430",floatRight:"\u041E\u0431\u0442\u0435\u043A\u0430\u043D\u0438\u0435 \u0441\u043F\u0440\u0430\u0432\u0430",superScript:"\u041D\u0430\u0434\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441",subScript:"\u041F\u043E\u0434\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441",removeStyles:"\u0423\u0431\u0440\u0430\u0442\u044C \u0441\u0442\u0438\u043B\u0438",headings:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0438",header:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",normal:"\u041E\u0431\u044B\u0447\u043D\u044B\u0439",orderedList:"\u0423\u043F\u043E\u0440\u044F\u0434\u043E\u0447\u0435\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A",unorderedList:"\u041D\u0435\u0443\u043F\u043E\u0440\u044F\u0434\u043E\u0447\u0435\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A",blockQuote:"\u0426\u0438\u0442\u0430\u0442\u0430",code:"\u041A\u043E\u0434",link:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",unlink:"\u0423\u0431\u0440\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",hr:"\u0413\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u043B\u0438\u043D\u0438\u044F",media:"\u041C\u0435\u0434\u0438\u0430",mediaLibirary:"\u041C\u0435\u0434\u0438\u0430 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430",emoji:"Emoji",fullscreen:"\u041F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",exitFullscreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430"},linkEditor:{textInputPlaceHolder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u0441\u0441\u044B\u043B\u043A\u0438",linkInputPlaceHolder:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",inputWithEnterPlaceHolder:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u0438 \u043D\u0430\u0436\u0430\u0442\u044C Enter",openInNewWindow:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043D\u043E\u0432\u043E\u043C \u043E\u043A\u043D\u0435",removeLink:"\u0423\u0431\u0440\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443"},audioPlayer:{title:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0430\u0443\u0434\u0438\u043E\u0444\u0430\u0439\u043B"},videoPlayer:{title:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E\u0444\u0430\u0439\u043B",embedTitle:"Embed Media"},media:{image:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430",video:"\u0412\u0438\u0434\u0435\u043E",audio:"\u0410\u0443\u0434\u0438\u043E",embed:"\u0412\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u043E\u0435"}},Te={base:{remove:"Supprimer",cancel:"Annuler",confirm:"Confirmer",inert:"Ins\xE9rer",width:"Largeur",height:"Hauteur"},controls:{clear:"Effacer",undo:"Annuler",redo:"Refaire",fontSize:"Taille de police",color:"Couleur",textColor:"Texte",tempColors:"Couleurs temporaire",backgroundColor:"Couleur d'arri\xE8re plan",bold:"Gras",lineHeight:"Hauteur de ligne",letterSpacing:"Espacement des lettres",textIndent:"Indentation du texte",increaseIndent:"Augmenter l'indentation",decreaseIndent:"R\xE9duire l'indentation",italic:"Italique",underline:"Souligner",strikeThrough:"Barrer",fontFamily:"Police d'\xE9criture",textAlign:"Alignement du texte",alignLeft:"Aligner \xE0 gauche",alignCenter:"Aligner au centre",alignRight:"Aligner \xE0 droite",alignJustify:"Justifier",floatLeft:"D\xE9placer \xE0 gauche",floatRight:"D\xE9placer \xE0 droite",superScript:"Super-script",subScript:"Sous-script",removeStyles:"Supprimer les styles",headings:"Titres",header:"Ent\xEAtes",normal:"Normal",orderedList:"Liste ordonn\xE9e",unorderedList:"Liste non-ordonn\xE9e",blockQuote:"Citation",code:"Code",link:"Ins\xE9rer un lien",unlink:"Supprimer le lien",hr:"Ligne horizontale",media:"M\xE9dia",mediaLibirary:"Biblioth\xEAque",emoji:"Emoji",fullscreen:"Plein \xE9cran",exitFullscreen:"Quitter le plein \xE9cran"},linkEditor:{textInputPlaceHolder:"Ins\xE9rer le texte \xE0 afficher",linkInputPlaceHolder:"Ins\xE9rer le lien URL",inputWithEnterPlaceHolder:"Ins\xE9rer le lien URL puis appuyer sur Entr\xE9e",openInNewWindow:"Ouvrir dans une nouvelle fen\xEAtre",removeLink:"Supprimer le lien"},audioPlayer:{title:"Lancer le son audio"},videoPlayer:{title:"Lancer la video",embedTitle:"Int\xE9grer m\xE9dia"},media:{image:"Image",video:"Vid\xE9o",audio:"Audio",embed:"Int\xE9gr\xE9"}},Ge={base:{remove:"Remover",cancel:"Cancelar",confirm:"Confirmar",inert:"Inserir",width:"Largura",height:"Altura"},controls:{clear:"Limpar",undo:"Desfazer",redo:"Refazer",fontSize:"Tamanho da Fonte",color:"Cor",textColor:"Texto",tempColors:"Temp Colors",backgroundColor:"Cor de Fundo",bold:"Negrito",lineHeight:"Altura da LinhaLine Height",letterSpacing:"Espa\xE7amento entre Letras",textIndent:"Identa\xE7\xE3o de Texto",increaseIndent:"Aumentar Identa\xE7\xE3o",decreaseIndent:"Diminuir Ident\xE7\xE3o",italic:"It\xE1lico",underline:"Sublinhado",strikeThrough:"Riscado",fontFamily:"Fam\xEDlia da Fonte",textAlign:"Alinhamento de Texto",alignLeft:"Alinhamento \xE0 Esquerda",alignCenter:"Alinhamento Centralizado",alignRight:"Alinhamento \xE0 Direita",alignJustify:"Alinhamento Justificado",floatLeft:"Flutua\xE7\xE3o \xE0 Esquerda",floatRight:"Flutua\xE7\xE3o \xE0 Direita",superScript:"Sobrescrito",subScript:"Subscrito",removeStyles:"Remover Estilos",headings:"Cabe\xE7alhos",header:"Cabe\xE7alho",normal:"Normal",orderedList:"Lista Ordenada",unorderedList:"Lista N\xE3o Ordenada",blockQuote:"Cita\xE7\xE3o",code:"C\xF3digo",link:"Link",unlink:"Remover Link",hr:"Linha Horizontal",media:"M\xEDdia",mediaLibirary:"Biblioteca de M\xEDdia",emoji:"Emoji",fullscreen:"Tela Cheia",exitFullscreen:"Sair de Tela Cheia"},linkEditor:{textInputPlaceHolder:"Insira o texto do link",linkInputPlaceHolder:"Insira a URL do link",inputWithEnterPlaceHolder:"Insira a URL do link e aperte Enter",openInNewWindow:"Abrir em nova janela",removeLink:"Remover Link"},audioPlayer:{title:"Tocar \xC1udio"},videoPlayer:{title:"Tocar V\xEDdeo",embedTitle:"M\xEDdia Embutida"},media:{image:"Imagem",video:"V\xEDdeo",audio:"\xC1udio",embed:"Embutido"}},Ye={base:{remove:"X\xF3a b\u1ECF",cancel:"H\u1EE7y b\u1ECF",confirm:"X\xE1c nh\u1EADn",inert:"Ch\xE8n v\xE0o",width:"\u0110\u1ED9 r\u1ED9ng",height:"\u0110\u1ED9 cao"},controls:{clear:"X\xF3a to\xE0n b\u1ED9 n\u1ED9i dung",undo:"H\u1EE7y b\u1ECF",redo:"L\xE0m l\u1EA1i",fontSize:"Size ch\u1EEF",lineHeight:"\u0110\u1ED9 cao h\xE0ng",letterSpacing:"Kho\u1EA3ng c\xE1ch ch\u1EEF",textIndent:"Kho\u1EA3ng c\xE1ch \u0111o\u1EA1n v\u0103n",increaseIndent:"T\u0103ng kho\u1EA3ng c\xE1ch",decreaseIndent:"Gi\u1EA3m kho\u1EA3ng c\xE1ch",border:"\u0110\u01B0\u1EDDng vi\u1EC1n",color:"M\xE0u s\u1EAFc",textColor:"M\xE0u ch\u1EEF",backgroundColor:"M\xE0u n\u1EC1n",tempColors:"M\xE0u t\u1EA1m th\u1EDDi",bold:"T\xF4 \u0111\u1EADm",italic:"In nghi\xEAng",underline:"G\u1EA1ch d\u01B0\u1EDBi",strikeThrough:"X\xF3a g\u1EA1ch d\u01B0\u1EDBi",fontFamily:"Font ch\u1EEF",textAlign:"C\u0103n ch\u1EC9nh v\u0103n b\u1EA3n",alignLeft:"C\u0103n tr\xE1i",alignCenter:"C\u0103n gi\u1EEFa",alignRight:"C\u0103n ph\u1EA3i",alignJustify:"Hai l\u1EC1",floatLeft:"Float left",floatRight:"Float right",superScript:"Ch\u1EC9 s\u1ED1 tr\xEAn",subScript:"Ch\u1EC9 s\u1ED1 d\u01B0\u1EDBi",removeStyles:"X\xF3a style",headings:"Ti\xEAu \u0111\u1EC1",header:"Ti\xEAu \u0111\u1EC1",normal:"Quy t\u1EAFc th\xF4ng th\u01B0\u1EDDng",orderedList:"Ki\u1EC3u s\u1EAFp x\u1EBFp",unorderedList:"Ki\u1EC3u kh\xF4ng s\u1EAFp x\u1EBFp",blockQuote:"Tr\xEDch d\u1EABn",code:"Code",link:"Li\xEAn k\u1EBFt",unlink:"G\u1EE1 li\xEAn k\u1EBFt",hr:"Horizontal line",media:"Media",mediaLibirary:"Kho media",emoji:"Bi\u1EC3u t\u01B0\u1EE3ng c\u1EA3m x\xFAc",fullscreen:"To\xE0n m\xE0n h\xECnh",exitFullscreen:"Tho\xE1t kh\u1ECFi ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh"},linkEditor:{textInputPlaceHolder:"Nh\u1EADp v\u0103n b\u1EA3n li\xEAn k\u1EBFt",linkInputPlaceHolder:"Nh\u1EADp \u0111\u1ECBa ch\u1EC9 li\xEAn k\u1EBFt",inputWithEnterPlaceHolder:"Nh\u1EADp \u0111\u1ECBa ch\u1EC9 li\xEAn k\u1EBFt v\xE0 Enter",openInNewWindow:"M\u1EDF trong tab m\u1EDBi",removeLink:"G\u1EE1 li\xEAn k\u1EBFt"},audioPlayer:{title:"Ph\xE1t t\u1EC7p \xE2m thanh"},videoPlayer:{title:"Ph\xE1t t\u1EC7p video",embedTitle:"Media nh\xFAng"},media:{image:"H\xECnh \u1EA3nh",video:"Video",audio:"\xC2m thanh",embed:"Media nh\xFAng"}},ut={en:Be,zh:ze,"zh-hant":Le,pl:Ue,kr:ot,tr:at,jpn:_e,ru:Ze,fr:Te,"pt-br":Ge,"vi-vn":Ye},bt=s(17),nt=s.n(bt),be=s(3),Xe=s(6),Et=s(13),Ut=s.n(Et),Ke=function(q){return function(R){return R.keyCode===83&&(Xe.KeyBindingUtil.hasCommandModifier(R)||Xe.KeyBindingUtil.isCtrlKeyCommand(R))?"braft-save":q&&q(R)||Object(Xe.getDefaultKeyBinding)(R)}},te={language:"zh",controls:["undo","redo","separator","font-size","line-height","letter-spacing","separator","text-color","bold","italic","underline","strike-through","separator","superscript","subscript","remove-styles","emoji","separator","text-indent","text-align","separator","headings","list-ul","list-ol","blockquote","code","separator","media","link","table","split","hr","separator","clear","separator","fullscreen"],excludeControls:[],extendControls:[],extendAtomics:[],componentBelowControlBar:null,media:{pasteImage:!0,imagePasteLimit:5,image:!0,video:!0,audio:!0,uploadFn:null,validateFn:null,onBeforeDeselect:null,onDeselect:null,onBeforeSelect:null,onSelect:null,onBeforeRemove:null,onRemove:null,onCancel:null,onFileSelect:null,onBeforeInsert:null,onInsert:null,onChange:null,accepts:{image:"image/png,image/jpeg,image/gif,image/webp,image/apng,image/svg",video:"video/mp4",audio:"audio/mp3"},externals:{audio:!0,video:!0,image:!0,embed:!0}},imageControls:["float-left","float-right","align-left","align-center","align-right","link","size","remove"],imageResizable:!0,imageEqualRatio:!0,colors:["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#61a951","#16a085","#07a9fe","#003ba5","#8e44ad","#f32784","#c0392b","#d35400","#f39c12","#fdda00"],colorPicker:null,colorPickerTheme:"dark",colorPickerAutoHide:!0,codeTabIndents:2,headings:["header-one","header-two","header-three","header-four","header-five","header-six","unstyled"],textAligns:["left","center","right","justify"],textBackgroundColor:!0,allowInsertLinkText:!1,defaultLinkTarget:"",letterSpacings:[0,1,2,3,4,5,6],lineHeights:[1,1.2,1.5,1.75,2,2.5,3,4],fontSizes:[12,14,16,18,20,24,28,30,32,36,40,48,56,64,72,96,120,144],fontFamilies:[{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'}],converts:{unitExportFn:function(R,W){return W==="line-height"?R:"".concat(R,"px")}},emojis:["\u{1F923}","\u{1F64C}","\u{1F49A}","\u{1F49B}","\u{1F44F}","\u{1F609}","\u{1F4AF}","\u{1F495}","\u{1F49E}","\u{1F498}","\u{1F499}","\u{1F49D}","\u{1F5A4}","\u{1F49C}","\u2764\uFE0F","\u{1F60D}","\u{1F63B}","\u{1F493}","\u{1F497}","\u{1F60B}","\u{1F607}","\u{1F602}","\u{1F639}","\u{1F618}","\u{1F496}","\u{1F601}","\u{1F600}","\u{1F91E}","\u{1F632}","\u{1F604}","\u{1F60A}","\u{1F44D}","\u{1F60C}","\u{1F603}","\u{1F605}","\u270C\uFE0F","\u{1F917}","\u{1F48B}","\u{1F617}","\u{1F63D}","\u{1F61A}","\u{1F920}","\u{1F619}","\u{1F63A}","\u{1F444}","\u{1F638}","\u{1F60F}","\u{1F63C}","\u{1F44C}","\u{1F60E}","\u{1F606}","\u{1F61B}","\u{1F64F}","\u{1F91D}","\u{1F642}","\u{1F911}","\u{1F61D}","\u{1F610}","\u{1F611}","\u{1F924}","\u{1F624}","\u{1F643}","\u{1F921}","\u{1F636}","\u{1F62A}","\u{1F634}","\u{1F635}","\u{1F613}","\u{1F44A}","\u{1F626}","\u{1F637}","\u{1F910}","\u{1F61C}","\u{1F913}","\u{1F47B}","\u{1F625}","\u{1F644}","\u{1F914}","\u{1F912}","\u{1F641}","\u{1F614}","\u{1F62F}","\u2639\uFE0F","\u2620\uFE0F","\u{1F630}","\u{1F629}","\u{1F616}","\u{1F615}","\u{1F612}","\u{1F623}","\u{1F622}","\u{1F62E}","\u{1F63F}","\u{1F927}","\u{1F62B}","\u{1F925}","\u{1F61E}","\u{1F62C}","\u{1F44E}","\u{1F480}","\u{1F633}","\u{1F628}","\u{1F915}","\u{1F922}","\u{1F631}","\u{1F62D}","\u{1F620}","\u{1F608}","\u{1F627}","\u{1F494}","\u{1F61F}","\u{1F640}","\u{1F4A9}","\u{1F47F}","\u{1F621}","\u{1F63E}","\u{1F595}"],stripPastedStyles:!1,triggerChangeOnMount:!0,className:"",style:{},controlBarClassName:"",controlBarStyle:{},contentClassName:"",contentStyle:{},draftProps:{},hooks:{},onChange:null,onFocus:null,onBlur:null,onTab:null,onDelete:null,onSave:null,fixPlaceholder:!1},oe=s(22),le=s.n(oe),pe=s(23),Ae=function(R,W,n){if(n.editorProps.handleKeyCommand&&n.editorProps.handleKeyCommand(R,W,n)==="handled")return"handled";if(R==="braft-save")return n.editorProps.onSave&&n.editorProps.onSave(W),"handled";var K=n.editorProps,X=K.controls,ie=K.excludeControls,Y=(X.indexOf("text-indent")!==0||X.find(function(Ht){return Ht.key==="text-indent"}))&&ie.indexOf("text-indent")===-1,se=W.getSelection().getStartOffset(),de=W.getSelection().getEndOffset(),Ve=se===0&&de===0;if(R==="backspace"){if(n.editorProps.onDelete&&n.editorProps.onDelete(W)===!1)return"handled";var Je=be.ContentUtils.getSelectionBlockType(W);Y&&Ve&&Je!=="code-block"&&n.setValue(be.ContentUtils.decreaseSelectionIndent(W))}if(R==="tab"){var $e=be.ContentUtils.getSelectionBlockType(W);if($e==="code-block")return n.setValue(be.ContentUtils.insertText(W," ".repeat(n.editorProps.codeTabIndents))),"handled";if($e==="ordered-list-item"||$e==="unordered-list-item"){var ct=Xe.RichUtils.onTab(event,W,4);return ct!==W&&n.setValue(ct),"handled"}else if($e!=="atomic"&&Y&&Ve)return n.setValue(be.ContentUtils.increaseSelectionIndent(W)),"handled"}var yt=be.ContentUtils.handleKeyCommand(W,R);return yt?(n.setValue(yt),"handled"):"not-handled"},ve=function(R,W,n){if(n.editorProps.handleReturn&&n.editorProps.handleReturn(R,W,n)==="handled")return"handled";var K=be.ContentUtils.getSelectionBlock(W),X=K.getType();if(X==="unordered-list-item"||X==="ordered-list-item")return K.getLength()===0?(n.setValue(be.ContentUtils.toggleSelectionBlockType(W,"unstyled")),"handled"):"not-handled";if(X==="code-block")return R.which===13&&(R.getModifierState("Shift")||R.getModifierState("Alt")||R.getModifierState("Control"))?(n.setValue(be.ContentUtils.toggleSelectionBlockType(W,"unstyled")),"handled"):"not-handled";if(X==="blockquote"&&R.which===13)if(R.getModifierState("Shift")||R.getModifierState("Alt")||R.getModifierState("Control"))R.which=0;else return n.setValue(Xe.RichUtils.insertSoftNewline(W)),"handled";var ie=Object(pe.handleNewLine)(W,R);return ie?(n.setValue(ie),"handled"):"not-handled"},Fe=function(R,W,n){return n.editorProps.handleBeforeInput&&n.editorProps.handleBeforeInput(R,W,n)==="handled"?"handled":"not-handled"},Ie=function(R,W){var n=W.state.editorState,K=be.ContentUtils.getSelectedBlocks(n);if(K&&K.length>1){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;ie<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"state",{toolbarVisible:!1,toolbarOffset:0,linkEditorVisible:!1,sizeEditorVisible:!1,tempLink:null,tempWidth:null,tempHeight:null}),O()(w()(n),"initialLeft",void 0),O()(w()(n),"initialTop",void 0),O()(w()(n),"initialWidth",void 0),O()(w()(n),"initialHeight",void 0),O()(w()(n),"reSizeType",void 0),O()(w()(n),"zoom",void 0),O()(w()(n),"changeSize",function(Y){var se=n.reSizeType;n.initialLeft||(n.initialLeft=Y.screenX,n.initialTop=Y.screenY),se==="rightbottom"&&(n.initialHeight+=Y.screenY-n.initialTop,n.initialWidth+=Y.screenX-n.initialLeft),se==="leftbottom"&&(n.initialHeight+=Y.screenY-n.initialTop,n.initialWidth+=-Y.screenX+n.initialLeft),n.initialLeft=Y.screenX,n.initialTop=Y.screenY}),O()(w()(n),"moveImage",function(Y){n.changeSize(Y),n.setState({tempWidth:Math.abs(n.initialWidth),tempHeight:Math.abs(n.initialHeight)})}),O()(w()(n),"upImage",function(){var Y=n.props.imageEqualRatio;Y?n.confirmImageSizeEqualRatio():n.confirmImageSize(),document.removeEventListener("mousemove",n.moveImage),document.removeEventListener("mouseup",n.upImage)}),O()(w()(n),"repareChangeSize",function(Y){return function(se){n.reSizeType=Y;var de=n.imageElement.getBoundingClientRect();n.initialLeft=n.initialTop=0,n.initialWidth=de.width,n.initialHeight=de.height,n.zoom=de.width/de.height,se.preventDefault(),document.addEventListener("mousemove",n.moveImage),document.addEventListener("mouseup",n.upImage)}}),O()(w()(n),"preventDragEvent",function(Y){Y.stopPropagation(),Y.preventDefault()}),O()(w()(n),"handleDragStart",function(){return n.props.editor.editorProps.readOnly||n.props.editor.editorProps.disabled?!1:(window.__BRAFT_DRAGING__IMAGE__={block:n.props.block,mediaData:r()({type:"IMAGE"},n.props.mediaData)},n.setState({toolbarVisible:!1},function(){n.unlockEditor()}),!0)}),O()(w()(n),"handleDragEnd",function(){return window.__BRAFT_DRAGING__IMAGE__=null,!1}),O()(w()(n),"executeCommand",function(Y){if(typeof Y=="string"){var se=Y.split("|"),de=et()(se,2),Ve=de[0],Je=de[1];n[Ve]&&n[Ve](Je)}else typeof Y=="function"&&Y(n.props.block,n.props.mediaData,n.props.editor.getValue())}),O()(w()(n),"removeImage",function(){n.props.editor.setValue(be.ContentUtils.removeBlock(n.props.editor.getValue(),n.props.block)),n.unlockEditor()}),O()(w()(n),"toggleLinkEditor",function(){n.setState({linkEditorVisible:!n.state.linkEditorVisible,sizeEditorVisible:!1})}),O()(w()(n),"toggleSizeEditor",function(){n.setState({linkEditorVisible:!1,sizeEditorVisible:!n.state.sizeEditorVisible})}),O()(w()(n),"handleLinkInputKeyDown",function(Y){if(Y.keyCode===13)n.confirmImageLink();else return}),O()(w()(n),"setImageLink",function(Y){n.setState({tempLink:Y.currentTarget.value})}),O()(w()(n),"confirmImageLink",function(){var Y=n.state.tempLink,se=n.props.hooks("set-image-link",Y)(Y);if(se===!1)return!1;typeof se=="string"&&(Y=se),Y!==null&&(n.props.editor.setValue(be.ContentUtils.setMediaData(n.props.editor.getValue(),n.props.entityKey,{link:Y})),window.setImmediate(n.props.editor.forceRender))}),O()(w()(n),"handleSizeInputKeyDown",function(Y){if(Y.keyCode===13)n.confirmImageSize();else return}),O()(w()(n),"setImageWidth",function(Y){var se=Y.currentTarget,de=se.value;de&&!isNaN(de)&&(de=de+"px"),n.setState({tempWidth:de})}),O()(w()(n),"setImageHeight",function(Y){var se=Y.currentTarget,de=se.value;de&&!isNaN(de)&&(de=de+"px"),n.setState({tempHeight:de})}),O()(w()(n),"confirmImageSize",function(){var Y=n.state,se=Y.tempWidth,de=Y.tempHeight,Ve={};se!==null&&(Ve.width=se),de!==null&&(Ve.height=de);var Je=n.props.hooks("set-image-size",Ve)(Ve);if(Je===!1)return!1;Je&&(Je.width||Je.height)&&(Ve=Je),n.props.editor.setValue(be.ContentUtils.setMediaData(n.props.editor.getValue(),n.props.entityKey,Ve)),window.setImmediate(n.props.editor.forceRender)}),O()(w()(n),"confirmImageSizeEqualRatio",function(){var Y=n.state,se=Y.tempWidth,de=Y.tempHeight,Ve,Je,$e={};se/de>n.zoom?(Ve=Math.floor(de*n.zoom),n.setState({tempWidth:Ve}),Je=de):se/de<n.zoom&&(Je=Math.floor(se/n.zoom),n.setState({tempHeight:Je}),Ve=se),Ve!==null&&($e.width=Ve),Je!==null&&($e.height=Je);var ct=n.props.hooks("set-image-size",$e)($e);if(ct===!1)return!1;ct&&(ct.width||ct.height)&&($e=ct),n.props.editor.setValue(be.ContentUtils.setMediaData(n.props.editor.getValue(),n.props.entityKey,$e)),window.setImmediate(n.props.editor.forceRender)}),O()(w()(n),"setImageFloat",function(Y){var se=n.props.hooks("set-image-float",Y)(Y);if(se===!1)return!1;typeof se=="string"&&(Y=se),n.props.editor.setValue(be.ContentUtils.setMediaPosition(n.props.editor.getValue(),n.props.block,{float:Y})),n.unlockEditor()}),O()(w()(n),"setImageAlignment",function(Y){var se=n.props.hooks("set-image-alignment",Y)(Y);if(se===!1)return!1;typeof se=="string"&&(Y=se),n.props.editor.setValue(be.ContentUtils.setMediaPosition(n.props.editor.getValue(),n.props.block,{alignment:Y})),n.unlockEditor()}),O()(w()(n),"showToolbar",function(Y){if(n.props.editor.editorProps.readOnly||n.props.editor.editorProps.disabled)return!1;Y.preventDefault(),n.state.toolbarVisible||n.setState({toolbarVisible:!0},function(){n.lockEditor(),n.setState({toolbarOffset:n.calcToolbarOffset()})})}),O()(w()(n),"hideToolbar",function(Y){Y.preventDefault(),n.setState({toolbarVisible:!1},function(){n.unlockEditor()})}),n}return D()(R,[{key:"render",value:function(){var n=this,K=this.props,X=K.mediaData,ie=K.language,Y=K.imageControls,se=K.imageResizable,de=this.state,Ve=de.toolbarVisible,Je=de.toolbarOffset,$e=de.linkEditorVisible,ct=de.sizeEditorVisible,yt=de.tempWidth,Ht=de.tempHeight,Pt=this.props.block.getData(),Ct=Pt.get("float"),Ft=Pt.get("alignment"),vn=X.url,ln=X.link,sn=X.link_target,tn=X.width,mn=X.height,On=X.meta,nn={},yn=!1;Ct?Ft=null:Ft==="left"?(nn.float="left",yn=!0):Ft==="right"?(nn.float="right",yn=!0):Ft==="center"?nn.textAlign="center":(nn.float="left",yn=!0);var Rn=Y.map(function(Mt,$t){return typeof Mt=="string"&&Vt[Mt]?V.a.createElement("a",{className:Mt==="link"&&ln?"active":"",key:$t,onClick:function(){return n.executeCommand(Vt[Mt].command)}},Vt[Mt].text):Mt&&(Mt.render||Mt.text)?Mt.render?Mt.render(X,n.props.block):V.a.createElement("a",{key:$t,onClick:function(){return Mt.onClick&&n.executeCommand(Mt.onClick)}},Mt.text):null});return V.a.createElement("div",{className:"bf-media"},V.a.createElement("div",{style:nn,draggable:!0,onMouseEnter:this.showToolbar,onMouseMove:this.showToolbar,onMouseLeave:this.hideToolbar,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,ref:function($t){return n.mediaEmbederInstance=$t},className:"bf-image"},Ve?V.a.createElement("div",{style:{marginLeft:Je},ref:function($t){return n.toolbarElement=$t},"data-float":Ct,"data-align":Ft,className:"bf-media-toolbar"},$e?V.a.createElement("div",{className:"bf-image-link-editor"},V.a.createElement("div",{className:"editor-input-group"},V.a.createElement("input",{type:"text",placeholder:ie.linkEditor.inputWithEnterPlaceHolder,onKeyDown:this.handleLinkInputKeyDown,onChange:this.setImageLink,defaultValue:ln}),V.a.createElement("button",{type:"button",onClick:this.confirmImageLink},ie.base.confirm)),V.a.createElement("div",{className:"switch-group"},V.a.createElement(_t,{active:sn==="_blank",onClick:function(){return n.setImageLinkTarget(sn)}}),V.a.createElement("label",null,ie.linkEditor.openInNewWindow))):null,ct?V.a.createElement("div",{className:"bf-image-size-editor"},V.a.createElement("div",{className:"editor-input-group"},V.a.createElement("input",{type:"text",placeholder:ie.base.width,onKeyDown:this.handleSizeInputKeyDown,onChange:this.setImageWidth,defaultValue:tn}),V.a.createElement("input",{type:"text",placeholder:ie.base.height,onKeyDown:this.handleSizeInputKeyDown,onChange:this.setImageHeight,defaultValue:mn}),V.a.createElement("button",{type:"button",onClick:this.confirmImageSize},ie.base.confirm))):null,Rn,V.a.createElement("i",{style:{marginLeft:Je*-1},className:"bf-media-toolbar-arrow"})):null,V.a.createElement("div",{style:{position:"relative",width:"".concat(tn,"px"),height:"".concat(mn,"px"),display:"inline-block"}},V.a.createElement("img",rt()({ref:function($t){return n.imageElement=$t},src:vn,width:tn,height:mn},On)),Ve&&se?V.a.createElement("div",{className:"bf-csize-icon right-bottom",onMouseDown:this.repareChangeSize("rightbottom")}):null,Ve&&se?V.a.createElement("div",{className:"bf-csize-icon left-bottom",onMouseDown:this.repareChangeSize("leftbottom")}):null,V.a.createElement("div",{className:"bf-pre-csize ".concat(this.reSizeType),style:{width:"".concat(yt,"px"),height:"".concat(Ht,"px")}}))),yn&&V.a.createElement("div",{className:"clearfix",style:{clear:"both",height:0,lineHeight:0,float:"none"}}))}},{key:"lockEditor",value:function(){this.props.editor.lockOrUnlockEditor(!0)}},{key:"unlockEditor",value:function(){this.props.editor.lockOrUnlockEditor(!1)}},{key:"calcToolbarOffset",value:function(){var n=this.props,K=n.getContainerNode,X=n.containerNode,ie=K?K():X;if(!ie)return 0;var Y=ie.querySelector(".bf-content").getBoundingClientRect(),se=this.toolbarElement.getBoundingClientRect(),de=this.imageElement.getBoundingClientRect(),Ve=Y.right-(de.right-de.width/2+se.width/2),Je=de.left+de.width/2-se.width/2-Y.left;return Ve<10?Ve-10:Je<10?Je*-1+10:0}},{key:"setImageLinkTarget",value:function(n){var K=this.props.hooks("set-image-link-target",n)(n);if(K===!1)return!1;typeof K=="string"&&(n=K),n=n==="_blank"?"":"_blank",this.props.editor.setValue(be.ContentUtils.setMediaData(this.props.editor.getValue(),this.props.entityKey,{link_target:n})),window.setImmediate(this.props.editor.forceRender)}}]),R}(V.a.Component),Ln=s(47),Rt=s(48),In=s(16),Zt=s.n(In),Jt=function(q){j()(R,q);function R(W){var n;return l()(this,R),n=y()(this,T()(R).call(this,W)),O()(w()(n),"handleTransitionEnd",function(){if(!n.rootElement||!n.rootElement.classList)return!1;n.rootElement.classList.contains("active")||Zt.a.unmountComponentAtNode(n.rootElement)&&n.rootElement.parentNode.removeChild(n.rootElement)}),O()(w()(n),"handleMouseDown",function(K){var X=K.target.tagName.toLowerCase();if(X==="input"||X==="textarea")return!1;K.preventDefault()}),O()(w()(n),"handleCancel",function(){n.props.closeOnCancel&&n.close(),n.props.onCancel&&n.props.onCancel()}),O()(w()(n),"handleConfirm",function(){n.props.closeOnConfirm&&n.close(),n.props.onConfirm&&n.props.onConfirm()}),O()(w()(n),"handleMaskClick",function(){n.props.closeOnBlur&&n.close(),n.props.onBlue&&n.props.onBlue()}),O()(w()(n),"close",function(){n.unrenderComponent(),n.props.onClose&&n.props.onClose()}),n.active=!1,n.componentId="BRAFT-MODAL-"+be.BaseUtils.UniqueIndex(),n}return D()(R,[{key:"componentDidMount",value:function(){this.props.visible&&(this.active=!0,this.renderComponent(this.props))}},{key:"componentWillReceiveProps",value:function(n){this.props.visible&&!n.visible?this.unrenderComponent():(this.props.visible||n.visible)&&(this.active=!0,this.renderComponent(n))}},{key:"render",value:function(){return null}},{key:"unrenderComponent",value:function(){this.active=!1,this.activeId&&window.clearImmediate(this.activeId),this.rootElement&&this.rootElement.classList&&this.rootElement.classList.remove("active")}},{key:"renderComponent",value:function(n){var K=this;if(!this.active)return!1;var X=n.title,ie=n.className,Y=n.width,se=n.height,de=n.children,Ve=n.component,Je=n.confirmable,$e=n.showFooter,ct=n.showCancel,yt=n.showConfirm,Ht=n.showClose,Pt=n.cancelText,Ct=n.confirmText,Ft=n.bottomText,vn=n.language;typeof ct=="undefined"&&(ct=!0),typeof Ht=="undefined"&&(Ht=!0),typeof yt=="undefined"&&(yt=!0),typeof $e=="undefined"&&($e=!0);var ln=V.a.createElement("div",{onMouseDown:this.handleMouseDown,className:"bf-modal "+(ie||"")},V.a.createElement("div",{className:"bf-modal-mask",onClick:this.handleMaskClick}),V.a.createElement("div",{onTransitionEnd:this.handleTransitionEnd,style:{width:Y,height:se},className:"bf-modal-content"},V.a.createElement("div",{className:"bf-modal-header"},V.a.createElement("h3",{className:"bf-modal-caption"},X),Ht&&V.a.createElement("button",{type:"button",onClick:this.close,className:"bf-modal-close-button"},V.a.createElement("i",{className:"bfi-close"}))),V.a.createElement("div",{className:"bf-modal-body"},de||Ve),$e?V.a.createElement("div",{className:"bf-modal-footer"},V.a.createElement("div",{className:"bf-modal-addon-text"},Ft),V.a.createElement("div",{className:"bf-modal-buttons"},ct&&V.a.createElement("button",{type:"button",onClick:this.handleCancel,className:"bf-modal-cancel"},Pt||vn.base.cancel),yt&&V.a.createElement("button",{type:"button",onClick:this.handleConfirm,className:"bf-modal-confirm "+(Je?"":"disabled")},Ct||vn.base.confirm))):null));this.rootElement=document.querySelector("#"+this.componentId),this.rootElement||(this.rootElement=document.createElement("div"),this.rootElement.id=this.componentId,this.rootElement.className="bf-modal-root",document.body.appendChild(this.rootElement)),Zt.a.render(ln,this.rootElement),this.activeId=window.setImmediate(function(){K.rootElement.classList.add("active")})}}]),R}(V.a.Component);O()(Jt,"defaultProps",{showFooter:!0,closeOnBlur:!0});var on=function(R){var W=document.createElement("div");W.style.display="none",document.body.appendChild(W),R=r()({visible:!0,closeOnConfirm:!0,closeOnCancel:!0},R);var n=function(){Zt.a.unmountComponentAtNode(W)&&W.parentNode.removeChild(W)},K=function(){R.onConfirm&&R.onConfirm()},X=function(){R.onCancel&&R.onCancel()},ie=function(){n(),R.onClose&&R.onClose()},Y=Zt.a.render(V.a.createElement(Jt,rt()({},R,{onConfirm:K,onCancel:X,onClose:ie})),W);return Y.destroy=n,Y.update=Y.renderComponent,Y},Nn=s(49),Sn=function(R,W,n){return on({title:R,component:W,language:n,showFooter:!1})},Hn={video:"bfi-film",audio:"bfi-music",embed:"bfi-code"},fn=function(q){var R=q.title,W=q.type,n=q.language,K=q.name,X=q.url,ie=q.poster,Y=q.children,se=q.onRemove;return V.a.createElement("div",{className:"bf-player-holder ".concat(W)},V.a.createElement("div",{className:"icon-badge"},V.a.createElement("i",{className:Hn[W]}),V.a.createElement("span",{className:"text"},n.media[W])),V.a.createElement("button",{onMouseDown:se,className:"button-remove"},V.a.createElement("i",{className:"bfi-close"})),V.a.createElement("button",{onMouseDown:function(){return Sn(K?"".concat(R,":").concat(K):R,Y,n)},className:"button-play"},V.a.createElement("i",{className:"bfi-play_arrow"})),K?V.a.createElement("h5",{className:"bf-name"},K):null,V.a.createElement("h6",{className:"bf-url"},X),ie?V.a.createElement("div",{className:"bf-poster",style:{backgroundImage:"url(".concat(ie,")")}}):null)},An=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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"removeVideo",function(){n.props.editor.setValue(be.ContentUtils.removeBlock(n.props.editorState,n.props.block))}),n}return D()(R,[{key:"render",value:function(){var n=this.props,K=n.mediaData,X=n.language,ie=K.url,Y=K.name,se=K.meta;return V.a.createElement("div",{className:"bf-video-wrap"},V.a.createElement(fn,{type:"video",onRemove:this.removeVideo,poster:se&&se.poster||"",language:X,url:ie,name:Y,title:X.videoPlayer.title},V.a.createElement("div",{className:"bf-video-player"},V.a.createElement("video",{controls:!0,poster:se&&se.poster||""},V.a.createElement("source",{src:ie})))))}}]),R}(V.a.Component),dn=s(50),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;ie<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"removeAudio",function(){n.props.editor.setValue(be.ContentUtils.removeBlock(n.props.editorState,n.props.block))}),n}return D()(R,[{key:"render",value:function(){var n=this.props,K=n.mediaData,X=n.language,ie=K.url,Y=K.name,se=K.meta;return V.a.createElement("div",{className:"bf-audio-wrap"},V.a.createElement(fn,{type:"audio",onRemove:this.removeAudio,poster:se&&se.poster||"",language:X,url:ie,name:Y,title:X.audioPlayer.title},V.a.createElement("div",{className:"bf-audio-player"},V.a.createElement("audio",{controls:!0,src:ie}))))}}]),R}(V.a.Component),bn=s(51),Xn=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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"removeEmbed",function(){n.props.editor.setValue(be.ContentUtils.removeBlock(n.props.editorState,n.props.block))}),n}return D()(R,[{key:"render",value:function(){var n=this.props,K=n.mediaData,X=n.language,ie=K.name,Y=K.url,se=K.meta;return V.a.createElement("div",{className:"bf-embed-wrap"},V.a.createElement(fn,{type:"embed",onRemove:this.removeEmbed,poster:se&&se.poster||"",language:X,url:Y,name:ie,title:X.videoPlayer.embedTitle},V.a.createElement("div",{className:"bf-embed-player",dangerouslySetInnerHTML:{__html:Y}})))}}]),R}(V.a.Component),hr=s(52),gr=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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"removeHorizontalLine",function(){n.props.editor.setValue(be.ContentUtils.removeBlock(n.props.editorState,n.props.block))}),n}return D()(R,[{key:"render",value:function(){return V.a.createElement("div",{className:"bf-hr"},V.a.createElement("div",{className:"bf-media-toolbar"},V.a.createElement("a",{onClick:this.removeHorizontalLine},"\uE9AC")))}}]),R}(V.a.Component),vr=function q(){var R=this;l()(this,q),O()(this,"superProps",void 0),O()(this,"customBlockRendererFn",void 0),O()(this,"getRenderFn",function(W,n){return R.superProps=W,R.customBlockRendererFn=n,R.blockRendererFn}),O()(this,"renderAtomicBlock",function(W){var n=R.superProps,K=W.block.getEntityAt(0);if(!K)return null;var X=W.contentState.getEntity(K),ie=X.getData(),Y=X.getType(),se=r()({},n,{block:W.block,mediaData:ie,entityKey:K});if(Y==="IMAGE")return V.a.createElement(cn,se);if(Y==="AUDIO")return V.a.createElement(Cn,se);if(Y==="VIDEO")return V.a.createElement(An,se);if(Y==="EMBED")return V.a.createElement(Xn,se);if(Y==="HR")return V.a.createElement(gr,se);if(n.extendAtomics){for(var de=n.extendAtomics,Ve=0;Ve<de.length;Ve++)if(Y===de[Ve].type){var Je=de[Ve].component;return V.a.createElement(Je,se)}}return null}),O()(this,"blockRendererFn",function(W){var n=R.customBlockRendererFn,K=R.superProps,X=W.getType(),ie=null;if(n&&(ie=n(W,K)||null),ie)return ie;var Y=Ce(K.editorId);return Y.find(function(se){if(se.blockType===X||se.blockType instanceof RegExp&&se.blockType.test(X))return ie=se.rendererFn?se.rendererFn(K):null,!0}),ie||(X==="atomic"&&(ie={component:R.renderAtomicBlock,editable:!1}),ie)})},mr=new vr,yr=mr.getRenderFn,Ar=function(q){return function(R){var W=R.getData()&&R.getData().get("textAlign"),n=R.getData()&&R.getData().get("textIndent"),K=R.getData()&&R.getData().get("float"),X="";return W&&(X="bfa-".concat(W)),n&&n!==0&&(X+=" bftd-".concat(n)),K&&(X+=" bff-".concat(K)),q&&(X+=q(R)||""),X}},xt=function(q){var R=arguments.length>1&&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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"responsiveResolveId",null),O()(w()(n),"dropDownHandlerElement",null),O()(w()(n),"dropDownContentElement",null),O()(w()(n),"state",{active:!1,offset:0}),O()(w()(n),"fixDropDownPosition",function(){var Y=n.props.getContainerNode().getBoundingClientRect(),se=n.dropDownHandlerElement.getBoundingClientRect(),de=n.dropDownContentElement.getBoundingClientRect(),Ve=0,Je=se.right-se.width/2+de.width/2,$e=se.left+se.width/2-de.width/2;Je=Y.right-Je,$e=$e-Y.left,Je<10?Ve=Je-10:$e<10&&(Ve=$e*-1+10),Ve!==n.state.offset&&n.setState({offset:Ve})}),O()(w()(n),"registerClickEvent",function(Y){var se=n.props.autoHide,de=n.state.active;if(n.dropDownContentElement.contains(Y.target)||n.dropDownHandlerElement.contains(Y.target))return!1;se&&de&&n.hide()}),O()(w()(n),"toggle",function(){n.setState({active:!n.state.active})}),O()(w()(n),"show",function(){n.setState({active:!0})}),O()(w()(n),"hide",function(){n.setState({active:!1})}),n}return D()(R,[{key:"componentDidMount",value:function(){document&&(document.body.addEventListener("click",this.registerClickEvent),this.responsiveResolveId=Yt.resolve(this.fixDropDownPosition))}},{key:"componentWillReceiveProps",value:function(n){!this.props.disabled&&n.disabled&&this.hide()}},{key:"componentDidUpdate",value:function(n){!n.active&&this.state.active&&this.fixDropDownPosition()}},{key:"componentWillUnmount",value:function(){document&&(document.body.removeEventListener("click",this.registerClickEvent),Yt.unresolve(this.responsiveResolveId))}},{key:"render",value:function(){var n=this,K=this.state,X=K.active,ie=K.offset,Y=this.props,se=Y.caption,de=Y.htmlCaption,Ve=Y.title,Je=Y.disabled,$e=Y.showArrow,ct=Y.arrowActive,yt=Y.className,Ht=Y.children,Pt=Y.theme;return Je&&(X=!1),Pt==="light"&&(yt=" light-theme "+yt),V.a.createElement("div",{className:"bf-dropdown "+(X?"active ":"")+(Je?"disabled ":"")+yt},de?V.a.createElement("button",{type:"button",className:"dropdown-handler","data-title":Ve,onClick:this.toggle,dangerouslySetInnerHTML:de?{__html:de}:null,ref:function(Ft){return n.dropDownHandlerElement=Ft}}):V.a.createElement("button",{type:"button",className:"dropdown-handler","data-title":Ve,onClick:this.toggle,ref:function(Ft){return n.dropDownHandlerElement=Ft}},V.a.createElement("span",null,se),$e!==!1?V.a.createElement("i",{className:"bfi-drop-down"}):null),V.a.createElement("div",{className:"dropdown-content",style:{marginLeft:ie},ref:function(Ft){return n.dropDownContentElement=Ft}},V.a.createElement("i",{style:{marginLeft:ie*-1},className:"dropdown-arrow"+(ct?" active":"")}),V.a.createElement("div",{className:"dropdown-content-inner"},Ht)))}}]),R}(V.a.Component),gn=function(q){return V.a.Fragment?V.a.createElement(V.a.Fragment,null,q.children):V.a.createElement("div",{className:"control-item-group"},q.children)},wn=function(q){j()(R,q);function R(W){var n;return l()(this,R),n=y()(this,T()(R).call(this,W)),O()(w()(n),"dropDownInstance",null),O()(w()(n),"handeKeyDown",function(K){if(K.keyCode===13)return n.handleConfirm(),K.preventDefault(),!1}),O()(w()(n),"handleTnputText",function(K){n.setState({text:K.currentTarget.value})}),O()(w()(n),"handleInputLink",function(K){n.setState({href:K.currentTarget.value})}),O()(w()(n),"setTarget",function(){n.setState({target:n.state.target==="_blank"?"":"_blank"})}),O()(w()(n),"handleCancel",function(){n.dropDownInstance.hide()}),O()(w()(n),"handleUnlink",function(){n.dropDownInstance.hide(),n.props.editor.setValue(be.ContentUtils.toggleSelectionLink(n.props.editorState,!1))}),O()(w()(n),"handleConfirm",function(){var K=n.state,X=K.text,ie=K.href,Y=K.target,se=K.textSelected,de=n.props.hooks("toggle-link",{href:ie,target:Y})({href:ie,target:Y});if(n.dropDownInstance.hide(),n.props.editor.requestFocus(),de===!1)return!1;de&&(typeof de.href=="string"&&(ie=de.href),typeof de.target=="string"&&(Y=de.target)),se?ie?n.props.editor.setValue(be.ContentUtils.toggleSelectionLink(n.props.editorState,ie,Y)):n.props.editor.setValue(be.ContentUtils.toggleSelectionLink(n.props.editorState,!1)):n.props.editor.setValue(be.ContentUtils.insertText(n.props.editorState,X||ie,null,{type:"LINK",data:{href:ie,target:Y}}))}),n.state={text:"",href:"",target:W.defaultLinkTarget||"",textSelected:!1},n}return D()(R,[{key:"componentWillReceiveProps",value:function(n){var K=be.ContentUtils.getSelectionEntityData(n.editorState,"LINK"),X=K.href,ie=K.target,Y=!be.ContentUtils.isSelectionCollapsed(this.props.editorState)&&be.ContentUtils.getSelectionBlockType(this.props.editorState)!=="atomic",se="";Y&&(se=be.ContentUtils.getSelectionText(this.props.editorState)),this.setState({textSelected:Y,text:se,href:X||"",target:typeof ie=="undefined"?n.defaultLinkTarget||"":ie||""})}},{key:"render",value:function(){var n=this,K=this.props.allowInsertLinkText,X=this.state,ie=X.text,Y=X.href,se=X.target,de=X.textSelected,Ve=V.a.createElement("i",{className:"bfi-link"});return V.a.createElement(gn,null,V.a.createElement(Gt,{key:0,caption:Ve,title:this.props.language.controls.link,autoHide:!0,getContainerNode:this.props.getContainerNode,showArrow:!1,ref:function($e){return n.dropDownInstance=$e},className:"control-item dropdown link-editor-dropdown"},V.a.createElement("div",{className:"bf-link-editor"},K?V.a.createElement("div",{className:"input-group"},V.a.createElement("input",{type:"text",value:ie,spellCheck:!1,disabled:de,placeholder:this.props.language.linkEditor.textInputPlaceHolder,onKeyDown:this.handeKeyDown,onChange:this.handleTnputText})):null,V.a.createElement("div",{className:"input-group"},V.a.createElement("input",{type:"text",value:Y,spellCheck:!1,placeholder:this.props.language.linkEditor.linkInputPlaceHolder,onKeyDown:this.handeKeyDown,onChange:this.handleInputLink})),V.a.createElement("div",{className:"switch-group"},V.a.createElement(_t,{active:se==="_blank",onClick:this.setTarget}),V.a.createElement("label",null,this.props.language.linkEditor.openInNewWindow)),V.a.createElement("div",{className:"buttons"},V.a.createElement("a",{onClick:this.handleUnlink,className:"primary button-remove-link pull-left"},V.a.createElement("i",{className:"bfi-close"}),V.a.createElement("span",null,this.props.language.linkEditor.removeLink)),V.a.createElement("button",{type:"button",onClick:this.handleConfirm,className:"primary pull-right"},this.props.language.base.confirm),V.a.createElement("button",{type:"button",onClick:this.handleCancel,className:"default pull-right"},this.props.language.base.cancel)))),V.a.createElement("button",{key:1,type:"button","data-title":this.props.language.controls.unlink,className:"control-item button",onClick:this.handleUnlink,disabled:!de||!Y},V.a.createElement("i",{className:"bfi-link-off"})))}}]),R}(V.a.Component),Cr=s(56),er=function(R){return[{key:"header-one",title:R.controls.header+" 1",text:V.a.createElement("h1",null,R.controls.header," 1"),type:"block-type",command:"header-one"},{key:"header-two",title:R.controls.header+" 2",text:V.a.createElement("h2",null,R.controls.header," 2"),type:"block-type",command:"header-two"},{key:"header-three",title:R.controls.header+" 3",text:V.a.createElement("h3",null,R.controls.header," 3"),type:"block-type",command:"header-three"},{key:"header-four",title:R.controls.header+" 4",text:V.a.createElement("h4",null,R.controls.header," 4"),type:"block-type",command:"header-four"},{key:"header-five",title:R.controls.header+" 5",text:V.a.createElement("h5",null,R.controls.header," 5"),type:"block-type",command:"header-five"},{key:"header-six",title:R.controls.header+" 6",text:V.a.createElement("h6",null,R.controls.header," 6"),type:"block-type",command:"header-six"},{key:"unstyled",title:R.controls.normal,text:R.controls.normal,type:"block-type",command:"unstyled"}]},tr={"header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-fiv":"h5","header-six":"h6",unstyled:"p",blockquote:"blockquote"},nr=function(q){var R=null,W=er(q.language).filter(function(X){return q.headings.indexOf(X.key)!==-1}),n=W.findIndex(function(X){return X.command===q.current}),K=W[n]?W[n].title:q.language.controls.normal;return V.a.createElement(Gt,{caption:K,autoHide:!0,getContainerNode:q.getContainerNode,title:q.language.controls.headings,arrowActive:n===0,ref:function(ie){return R=ie},className:"control-item dropdown headings-dropdown"},V.a.createElement("ul",{className:"menu"},W.map(function(X,ie){var Y=q.current===X.command;return V.a.createElement("li",{key:ie,className:"menu-item"+(Y?" active":""),onClick:function(){q.onChange(X.command,X.type),R.hide()}},X.text)})))},Tr=s(57),Dr=s(58),Vn=function(q){return V.a.createElement("div",{className:"bf-colors-wrap"},V.a.createElement("ul",{className:"bf-colors"},q.presetColors.map(function(R,W){var n=q.color&&R.toLowerCase()===q.color.toLowerCase()?"color-item active":"color-item";return V.a.createElement("li",{key:W,title:R,className:n,style:{color:R},"data-color":R.replace("#",""),onClick:function(X){q.onChange(X.currentTarget.dataset.color,!0)}})})))},br=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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"state",{colorType:"color"}),O()(w()(n),"switchColorType",function(Y){var se=Y.currentTarget;n.setState({colorType:se.dataset.type})}),O()(w()(n),"toggleColor",function(Y,se){if(Y){var de=n.props.hooks("toggle-text-".concat(n.state.colorType),Y)(Y);if(de===!1)return!1;typeof de=="string"&&(Y=de),n.state.colorType==="color"?n.props.editor.setValue(be.ContentUtils.toggleSelectionColor(n.props.editorState,Y)):n.props.editor.setValue(be.ContentUtils.toggleSelectionBackgroundColor(n.props.editorState,Y))}se&&(n.dropDownInstance.hide(),n.props.editor.requestFocus())}),n}return D()(R,[{key:"render",value:function(){var n=this,K={},X=null,ie=this.state.colorType,Y=this.props.editorState.getCurrentInlineStyle().toJS();Y.forEach(function(Ve){Ve.indexOf("COLOR-")===0&&(K.color="#"+Ve.split("-")[1],ie==="color"&&(X=K.color)),Ve.indexOf("BGCOLOR-")===0&&(K.backgroundColor="#"+Ve.split("-")[1],ie==="background-color"&&(X=K.backgroundColor))});var se=V.a.createElement("i",{style:K,className:"bfi-text-color"},V.a.createElement("span",{className:"path1"}),V.a.createElement("span",{className:"path2"})),de=this.props.colorPicker||Vn;return V.a.createElement(Gt,{caption:se,title:this.props.language.controls.color,showArrow:!1,autoHide:this.props.autoHide,theme:this.props.theme,getContainerNode:this.props.getContainerNode,ref:function(Je){return n.dropDownInstance=Je},className:"control-item dropdown text-color-dropdown"},V.a.createElement("div",{className:"bf-text-color-picker-wrap"},V.a.createElement("div",{className:"bf-color-switch-buttons",style:this.props.enableBackgroundColor?{}:{display:"none"}},V.a.createElement("button",{type:"button","data-type":"color",className:ie==="color"?"active":"",onClick:this.switchColorType},this.props.language.controls.textColor),V.a.createElement("button",{type:"button","data-type":"background-color",className:ie==="background-color"?"active":"",onClick:this.switchColorType},this.props.language.controls.backgroundColor)),V.a.createElement(de,{width:200,color:X,disableAlpha:!0,presetColors:this.props.colors,onChange:this.toggleColor})))}}]),R}(V.a.Component),xr=s(59),wr=function(R,W){var n=R.currentTarget.dataset.size,K=W.hooks("toggle-font-size",n)(n);if(K===!1)return!1;isNaN(n)||(n=K),W.editor.setValue(be.ContentUtils.toggleSelectionFontSize(W.editorState,n)),W.editor.requestFocus()},rr=function(q){var R=null,W=null,n=null;return q.fontSizes.find(function(K){return be.ContentUtils.selectionHasInlineStyle(q.editorState,"FONTSIZE-"+K)?(R=K,W=K,!0):!1}),V.a.createElement(Gt,{autoHide:!0,caption:R||q.defaultCaption,getContainerNode:q.getContainerNode,title:q.language.controls.fontSize,ref:function(X){return n=X},className:"control-item dropdown bf-font-size-dropdown"},V.a.createElement("ul",{className:"bf-font-sizes"},q.fontSizes.map(function(K,X){return V.a.createElement("li",{key:X,className:K===W?"active":null,"data-size":K,onClick:function(Y){wr(Y,q),n.hide()}},K)})))},Mr=s(60),Br=function(R,W){var n=R.currentTarget.dataset.size,K=W.hooks("toggle-line-height",n)(n);if(K===!1)return!1;isNaN(K)||(n=K),W.editor.setValue(be.ContentUtils.toggleSelectionLineHeight(W.editorState,n)),W.editor.requestFocus()},Bn=function(q){var R=null,W=null,n=null;return q.lineHeights.find(function(K){return be.ContentUtils.selectionHasInlineStyle(q.editorState,"LINEHEIGHT-"+K)?(R=K,W=K,!0):!1}),V.a.createElement(Gt,{autoHide:!0,caption:R||q.defaultCaption,getContainerNode:q.getContainerNode,title:q.language.controls.lineHeight,ref:function(X){return n=X},className:"control-item dropdown bf-line-height-dropdown"},V.a.createElement("ul",{className:"bf-line-heights"},q.lineHeights.map(function(K,X){return V.a.createElement("li",{key:X,className:K===W?"active":null,"data-size":K,onClick:function(Y){Br(Y,q),n.hide()}},K)})))},Gn=s(61),or=function(R,W){var n=R.currentTarget.dataset.name,K=W.hooks("toggle-font-family",n)(n,W.fontFamilies);if(K===!1)return!1;typeof K=="string"&&(n=K),W.editor.setValue(be.ContentUtils.toggleSelectionFontFamily(W.editorState,n)),W.editor.requestFocus()},Qn=function(q){var R=null,W=null,n=null;return q.fontFamilies.find(function(K,X){return be.ContentUtils.selectionHasInlineStyle(q.editorState,"FONTFAMILY-"+K.name)?(R=K.name,W=X,!0):!1}),V.a.createElement(Gt,{caption:R||q.defaultCaption,getContainerNode:q.getContainerNode,title:q.language.controls.fontFamily,autoHide:!0,arrowActive:W===0,ref:function(X){return n=X},className:"control-item dropdown font-family-dropdown"},V.a.createElement("ul",{className:"menu"},q.fontFamilies.map(function(K,X){return V.a.createElement("li",{key:X,className:"menu-item "+(X===W?"active":""),"data-name":K.name,onClick:function(Y){or(Y,q),n.hide()}},V.a.createElement("span",{style:{fontFamily:K.family}},K.name))})))},At=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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"state",{currentAlignment:void 0}),O()(w()(n),"setAlignment",function(Y){var se=Y.currentTarget.dataset.alignment,de=n.props.hooks("toggle-text-alignment",se)(se);n.props.textAligns.indexOf(de)>-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<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"state",{currentIndent:0}),O()(w()(n),"increaseIndent",function(){n.props.editor.setValue(be.ContentUtils.increaseSelectionIndent(n.props.editorState)),n.props.editor.requestFocus()}),O()(w()(n),"decreaseIndent",function(){n.props.editor.setValue(be.ContentUtils.decreaseSelectionIndent(n.props.editorState)),n.props.editor.requestFocus()}),n}return D()(R,[{key:"componentWillReceiveProps",value:function(n){this.setState({currentIndent:be.ContentUtils.getSelectionBlockData(n.editorState,"textIndent")||0})}},{key:"render",value:function(){var n=this.state.currentIndent,K=this.props.language;return V.a.createElement(gn,null,V.a.createElement("button",{key:0,type:"button","data-title":K.controls.increaseIndent,disabled:n>=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;ie<K;ie++)X[ie]=arguments[ie];return n=y()(this,(W=T()(R)).call.apply(W,[this].concat(X))),O()(w()(n),"allControls",[]),O()(w()(n),"mediaLibiraryModal",null),O()(w()(n),"extendedModals",{}),O()(w()(n),"openBraftFinder",function(){if(!n.props.braftFinder||!n.props.braftFinder.ReactComponent||n.props.hooks("open-braft-finder")()===!1)return!1;var Y=n.props.media,se=n.props.braftFinder.ReactComponent;n.mediaLibiraryModal=on({title:n.props.language.controls.mediaLibirary,language:n.props.language,width:640,showFooter:!1,className:Y.modalClassName,component:V.a.createElement(se,{accepts:Y.accepts,onCancel:n.closeBraftFinder,onInsert:n.insertMedias,onChange:Y.onChange,externals:Y.externals,onBeforeSelect:n.bindBraftFinderHook("select-medias"),onBeforeDeselect:n.bindBraftFinderHook("deselect-medias"),onBeforeRemove:n.bindBraftFinderHook("remove-medias"),onBeforeInsert:n.bindBraftFinderHook("insert-medias"),onFileSelect:n.bindBraftFinderHook("select-files")})})}),O()(w()(n),"bindBraftFinderHook",function(Y){return function(){return n.props.hooks(Y,arguments.length<=0?void 0:arguments[0]).apply(void 0,arguments)}}),O()(w()(n),"insertMedias",function(Y){n.props.editor.setValue(be.ContentUtils.insertMedias(n.props.editorState,Y)),n.props.editor.requestFocus(),n.props.media.onInsert&&n.props.media.onInsert(Y),n.closeBraftFinder()}),O()(w()(n),"closeBraftFinder",function(){n.props.media.onCancel&&n.props.media.onCancel(),n.mediaLibiraryModal&&n.mediaLibiraryModal.close()}),n}return D()(R,[{key:"componentDidUpdate",value:function(){var n=this,K=this.props.language;this.allControls.forEach(function(X){X.type==="modal"&&X.modal&&X.modal.id&&n.extendedModals[X.modal.id]&&n.extendedModals[X.modal.id].update(r()({},X.modal,{language:K}))})}},{key:"getControlItemClassName",value:function(n){var K="control-item button",X=n.type,ie=n.command;return(X==="inline-style"&&be.ContentUtils.selectionHasInlineStyle(this.props.editorState,ie)||X==="block-type"&&be.ContentUtils.getSelectionBlockType(this.props.editorState)===ie||X==="entity"&&be.ContentUtils.getSelectionEntityType(this.props.editorState)===ie)&&(K+=" active"),K}},{key:"applyControl",value:function(n,K){var X=arguments.length>2&&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<H.length;re++){var Q=H[re],ue=p[Q.id];ue.refs--,O.push(ue)}if(U){var Se=r(U,w);i(Se,w)}for(var re=0;re<O.length;re++){var ue=O[re];if(ue.refs===0){for(var ye=0;ye<ue.parts.length;ye++)ue.parts[ye]();delete p[ue.id]}}}};function i(I,w){for(var H=0;H<I.length;H++){var j=I[H],U=p[j.id];if(U){U.refs++;for(var O=0;O<U.parts.length;O++)U.parts[O](j.parts[O]);for(;O<j.parts.length;O++)U.parts.push(D(j.parts[O],w))}else{for(var re=[],O=0;O<j.parts.length;O++)re.push(D(j.parts[O],w));p[j.id]={id:j.id,refs:1,parts:re}}}}function r(I,w){for(var H=[],j={},U=0;U<I.length;U++){var O=I[U],re=w.base?O[0]+w.base:O[0],Q=O[1],ue=O[2],Se=O[3],ye={css:Q,media:ue,sourceMap:Se};j[re]?j[re].parts.push(ye):H.push(j[re]={id:re,parts:[ye]})}return H}function u(I,w){var H=f(I.insertInto);if(!H)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var j=a[a.length-1];if(I.insertAt==="top")j?j.nextSibling?H.insertBefore(w,j.nextSibling):H.appendChild(w):H.insertBefore(w,H.firstChild),a.push(w);else if(I.insertAt==="bottom")H.appendChild(w);else if(typeof I.insertAt=="object"&&I.insertAt.before){var U=f(I.insertInto+" "+I.insertAt.before);H.insertBefore(w,U)}else throw new Error(`[Style Loader]
Invalid value for parameter 'insertAt' ('options.insertAt') found.
Must be 'top', 'bottom', or Object.
(https://github.com/webpack-contrib/style-loader#insertat)
`)}function E(I){if(I.parentNode===null)return!1;I.parentNode.removeChild(I);var w=a.indexOf(I);w>=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;s<this.length;s++){var a=this[s][0];typeof a=="number"&&(h[a]=!0)}for(s=0;s<d.length;s++){var c=d[s];(typeof c[0]!="number"||!h[c[0]])&&(f&&!c[2]?c[2]=f:f&&(c[2]="("+c[2]+") and ("+f+")"),S.push(c))}},S};function A(B,S){var d=B[1]||"",f=B[3];if(!f)return d;if(S&&typeof btoa=="function"){var h=p(f),s=f.sources.map(function(a){return"/*# sourceURL="+f.sourceRoot+a+" */"});return[d].concat(s).concat([h]).join(`
`)}return[d].join(`
`)}function p(B){var S=btoa(unescape(encodeURIComponent(JSON.stringify(B)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,"+S;return"/*# "+d+" */"}},function(b,v){b.exports=function(p){return typeof p!="string"?p:(/^['"].*['"]$/.test(p)&&(p=p.slice(1,-1)),/["'() \t\n]/.test(p)?'"'+p.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':p)}},function(b,v,A){var p=A(15);v=b.exports=A(14)(!1),v.push([b.i,`@font-face {
font-family: 'bf-icons';
src: url(`+p(A(13))+`) format("truetype");
font-weight: normal;
font-style: normal; }
.braft-finder [class^="braft-icon-"], .braft-finder [class*=" braft-icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'bf-icons' !important;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; }
.braft-finder .braft-icon-code:before {
content: "\\E903"; }
.braft-finder .braft-icon-pause:before {
content: "\\E034"; }
.braft-finder .braft-icon-play_arrow:before {
content: "\\E037"; }
.braft-finder .braft-icon-bin:before {
content: "\\E9AC"; }
.braft-finder .braft-icon-replay:before {
content: "\\E042"; }
.braft-finder .braft-icon-close:before {
content: "\\E913"; }
.braft-finder .braft-icon-music:before {
content: "\\E90E"; }
.braft-finder .braft-icon-camera:before {
content: "\\E911"; }
.braft-finder .braft-icon-file-text:before {
content: "\\E926"; }
.braft-finder .braft-icon-film:before {
content: "\\E91C"; }
.braft-finder .braft-icon-paste:before {
content: "\\E92D"; }
.braft-finder .braft-icon-spinner:before {
content: "\\E980"; }
.braft-finder .braft-icon-media:before {
content: "\\E90F"; }
.braft-finder .braft-icon-add:before {
content: "\\E918"; }
.braft-finder .braft-icon-done:before {
content: "\\E912"; }
.braft-finder .braft-icon-drop-down:before {
content: "\\E906"; }
.braft-finder .braft-icon-drop-up:before {
content: "\\E909"; }
.braft-finder .braft-icon-help:before {
content: "\\E902"; }
.braft-finder .braft-icon-info:before {
content: "\\E901"; }
.braft-finder .braft-icon-menu:before {
content: "\\E908"; }
.pull-left {
float: left; }
.pull-right {
float: right; }
.braft-finder .bf-uploader {
position: relative;
height: 370px;
margin: 0; }
.braft-finder .bf-uploader.draging .bf-list-wrap,
.braft-finder .bf-uploader.draging .bf-add-external {
pointer-events: none; }
.braft-finder .bf-uploader input::-webkit-input-placeholder {
color: #ccc; }
.braft-finder .bf-uploader input::-moz-placeholder {
color: #ccc; }
.braft-finder .bf-uploader input::-ms-input-placeholder {
color: #ccc; }
.braft-finder .bf-list-wrap {
position: relative;
height: 370px; }
.braft-finder .bf-list-tools {
z-index: 1;
position: absolute;
top: 0;
right: 0;
left: 0;
height: 20px;
padding: 0 15px;
background-color: #fff; }
.braft-finder .bf-list-tools span {
height: 26px;
font-size: 12px;
line-height: 20px;
cursor: pointer;
user-select: none; }
.braft-finder .bf-list-tools span[disabled] {
opacity: .3;
pointer-events: none; }
.braft-finder .bf-list-tools .bf-select-all,
.braft-finder .bf-list-tools .bf-deselect-all {
float: left;
margin-right: 5px;
color: #bbb; }
.braft-finder .bf-list-tools .bf-select-all:hover,
.braft-finder .bf-list-tools .bf-deselect-all:hover {
color: #3498db; }
.braft-finder .bf-list-tools .bf-remove-selected {
float: right;
color: #e74c3c; }
.braft-finder .bf-list-tools .bf-remove-selected:hover {
color: #c92e1e; }
.braft-finder .bf-list {
position: absolute;
z-index: 1;
top: 30px;
right: 0;
left: 0;
bottom: 0;
margin: 0;
padding: 0 10px;
list-style: none;
overflow: auto; }
.braft-finder .bf-list::-webkit-scrollbar {
width: 5px;
height: 5px;
background-color: #fff; }
.braft-finder .bf-list::-webkit-scrollbar-track {
background-color: #fff; }
.braft-finder .bf-list::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.1); }
.braft-finder .bf-item,
.braft-finder .bf-add-item {
position: relative;
display: block;
float: left;
width: 113px;
height: 113px;
margin: 5px;
overflow: hidden;
border-radius: 3px; }
.braft-finder .bf-item.uploading {
pointer-events: none; }
.braft-finder .bf-item.error::before {
display: block;
content: "\\E901"; }
.braft-finder .bf-item.error::after {
position: absolute;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(231, 76, 60, 0.8);
content: ''; }
.braft-finder .bf-item.error:hover::after {
background-color: rgba(231, 76, 60, 0.9); }
.braft-finder .bf-item.error .bf-item-uploading {
display: none; }
.braft-finder .bf-add-item {
background-color: #ecedef;
color: #999; }
.braft-finder .bf-add-item:hover {
background-color: #e1e2e3; }
.braft-finder .bf-add-item i {
display: block;
width: 113px;
height: 113px;
font-size: 48px;
line-height: 113px;
text-align: center; }
.braft-finder .bf-add-item input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer; }
.braft-finder .bf-item::before {
display: none;
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 113px;
height: 113px;
color: #fff;
font-size: 48px;
font-family: 'bf-icons';
line-height: 113px;
text-align: center; }
.braft-finder .bf-item::after {
position: absolute;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(52, 152, 219, 0);
content: ''; }
.braft-finder .bf-item:hover::after {
background-color: rgba(52, 152, 219, 0.3); }
.braft-finder .bf-item:hover .bf-item-remove {
display: block; }
.braft-finder .bf-item.active::before {
display: block;
content: "\\E912"; }
.braft-finder .bf-item.active::after {
background-color: rgba(52, 152, 219, 0.6); }
.braft-finder .bf-item.active:hover::after {
background-color: rgba(52, 152, 219, 0.8); }
.braft-finder .bf-item.active:hover .bf-item-remove {
display: none; }
.braft-finder .bf-item-uploading {
box-sizing: border-box;
position: absolute;
z-index: 3;
top: 52px;
left: 10px;
width: 93px;
height: 10px;
overflow: hidden;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 5px;
box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.5); }
.braft-finder .bf-item-uploading-bar {
height: 10px;
background-color: #3498db;
border-radius: 0; }
.braft-finder .bf-item-remove {
display: none;
position: absolute;
z-index: 2;
top: 0;
right: 0;
width: 28px;
height: 28px;
color: #fff;
font-size: 18px;
line-height: 28px;
text-align: center;
cursor: pointer; }
.braft-finder .bf-item-remove:hover {
color: #e74c3c; }
.braft-finder .bf-item-title {
display: none;
box-sizing: border-box;
position: absolute;
z-index: 2;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
padding: 0 5px;
overflow: hidden;
background-image: linear-gradient(rgba(0, 0, 0, 0), black);
color: #fff;
font-size: 12px;
line-height: 55px;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap; }
.braft-finder .bf-image {
width: 100%;
height: 100%;
background-color: #eee;
user-select: none; }
.braft-finder .bf-image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover; }
.braft-finder .bf-video {
background-color: #8e44ad; }
.braft-finder .bf-audio {
background-color: #f39c12; }
.braft-finder .bf-embed {
background-color: #f1c40f; }
.braft-finder .bf-icon {
display: block;
width: 113px;
height: 113px;
overflow: hidden;
color: #fff;
text-align: center;
text-decoration: none; }
.braft-finder .bf-icon i, .braft-finder .bf-icon span {
display: block; }
.braft-finder .bf-icon i {
margin-top: 35px;
font-size: 24px; }
.braft-finder .bf-icon span {
width: 103px;
margin: 10px auto;
overflow: hidden;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap; }
.braft-finder .bf-drag-uploader {
box-sizing: border-box;
position: absolute;
z-index: 2;
top: 0;
right: 15px;
left: 15px;
height: 100%;
background-color: #fff;
border: dashed 1px #bbb;
text-align: center;
opacity: 0;
pointer-events: none; }
.braft-finder .bf-drag-uploader:hover, .braft-finder .bf-drag-uploader.draging {
background-color: #f1f2f3; }
.braft-finder .bf-drag-uploader.active {
opacity: 1;
pointer-events: auto; }
.braft-finder .bf-uploader-buttons {
height: 370px;
margin: auto;
text-align: center; }
.braft-finder .bf-drag-tip {
display: inline-block;
margin-top: 150px;
color: #ccc;
text-align: center;
font-size: 28px;
font-weight: normal;
line-height: 40px; }
.braft-finder .bf-drag-tip input {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
color: #fff;
text-indent: -100px;
cursor: pointer; }
.braft-finder .bf-manager-footer {
height: 36px;
margin: 10px 0;
padding: 0 15px; }
.braft-finder .bf-manager-footer .button {
float: right;
height: 36px;
margin-left: 5px;
padding: 0 35px;
font-size: 12px;
font-weight: 700;
border: none;
border-radius: 3px;
cursor: pointer; }
.braft-finder .bf-manager-footer .button-insert {
color: #fff;
background-color: #3498db; }
.braft-finder .bf-manager-footer .button-insert:hover {
background-color: #2084c7; }
.braft-finder .bf-manager-footer .button-insert[disabled] {
opacity: .3;
pointer-events: none;
filter: grayscale(0.4); }
.braft-finder .bf-manager-footer .button-cancel {
color: #999;
background-color: #e8e8e9; }
.braft-finder .bf-manager-footer .button-cancel:hover {
background-color: #d8d8d9; }
.braft-finder .bf-toggle-external-form {
color: #666;
font-size: 12px;
line-height: 36px; }
.braft-finder .bf-toggle-external-form span {
color: #bbb;
line-height: 16px;
cursor: pointer;
user-select: none; }
.braft-finder .bf-toggle-external-form span:hover {
color: #3498db; }
.braft-finder .bf-toggle-external-form span i {
position: relative;
top: 2px;
font-size: 16px; }
.braft-finder .bf-add-external {
position: absolute;
z-index: 3;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #fff; }
.braft-finder .bf-add-external input {
border: solid 1px rgba(0, 0, 0, 0.3);
border: solid 0.5px rgba(0, 0, 0, 0.3);
box-shadow: none; }
.braft-finder .bf-add-external input:focus {
border-color: #3498db;
box-shadow: none; }
.braft-finder .bf-external-form {
width: 500px;
max-width: 90%;
margin: 91px auto 0 auto; }
.braft-finder .bf-external-input {
position: relative;
width: 100%;
height: 40px;
margin-bottom: 10px; }
.braft-finder .bf-external-input div {
position: absolute;
top: 0;
right: 85px;
left: 0;
height: 40px; }
.braft-finder .bf-external-input input,
.braft-finder .bf-external-input textarea {
display: block;
box-sizing: border-box;
width: 100%;
height: 40px;
padding: 0 10px;
border: none;
border-radius: 3px;
outline: none;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
color: #999;
font-size: 18px; }
.braft-finder .bf-external-input input:focus,
.braft-finder .bf-external-input textarea:focus {
box-shadow: inset 0 0 0 1px #3498db; }
.braft-finder .bf-external-input textarea {
height: 100px;
font-size: 14px; }
.braft-finder .bf-external-input button {
position: absolute;
top: 0;
right: 0;
width: 80px;
height: 40px;
background-color: #3498db;
border: none;
border-radius: 3px;
color: #fff;
font-size: 14px;
font-weight: bold;
cursor: pointer; }
.braft-finder .bf-external-input button:disabled {
opacity: .3;
pointer-events: none;
filter: grayscale(0.4); }
.braft-finder .bf-external-input button:hover {
background-color: #2084c7; }
.braft-finder .bf-switch-external-type {
overflow: hidden;
text-align: center; }
.braft-finder .bf-switch-external-type button {
width: auto;
height: 30px;
margin: 10px 5px;
padding: 0 10px;
background-color: #e8e9ea;
border: none;
border-radius: 3px;
color: #999;
font-size: 12px;
cursor: pointer; }
.braft-finder .bf-switch-external-type button:hover {
background-color: #d8d9da; }
.braft-finder .bf-switch-external-type button:only-child {
display: none; }
.braft-finder .bf-switch-external-type[data-type="IMAGE"] [data-type="IMAGE"],
.braft-finder .bf-switch-external-type[data-type="VIDEO"] [data-type="VIDEO"],
.braft-finder .bf-switch-external-type[data-type="AUDIO"] [data-type="AUDIO"],
.braft-finder .bf-switch-external-type[data-type="EMBED"] [data-type="EMBED"],
.braft-finder .bf-switch-external-type[data-type="FILE"] [data-type="FILE"] {
background-color: #3498db;
color: #fff; }
.braft-finder .bf-external-tip {
display: block;
margin-top: 15px;
color: #ccc;
font-size: 12px;
text-align: center; }
`,""])},function(b,v,A){var p=A(16);typeof p=="string"&&(p=[[b.i,p,""]]);var B,S,d={hmr:!0};d.transform=B,d.insertInto=void 0;var f=A(12)(p,d);p.locals&&(b.exports=p.locals)},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var p=Object.assign||function(u){for(var E=1;E<arguments.length;E++){var C=arguments[E];for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&(u[l]=C[l])}return u},B=function(){function u(E,C){for(var l=0;l<C.length;l++){var g=C[l];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(E,g.key,g)}}return function(E,C,l){return C&&u(E.prototype,C),l&&u(E,l),E}}();A(17);var S=A(2),d=h(S),f=A(1);function h(u){return u&&u.__esModule?u:{default:u}}function s(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}function a(u,E){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:u}function c(u,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);u.prototype=Object.create(E&&E.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(u,E):u.__proto__=E)}var i={image:"image/png,image/jpeg,image/gif,image/webp,image/apng,image/svg",video:"video/mp4",audio:"audio/mp3"},r=function(u){c(E,u);function E(C){s(this,E);var l=a(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C));l.toggleSelectItem=function(D){var F=D.currentTarget.dataset.id,y=l.controller.getMediaItem(F);if(!y)return!1;y.selected?(!l.props.onBeforeDeselect||l.props.onBeforeDeselect([y],l.controller.getItems())!==!1)&&(l.controller.deselectMediaItem(F),l.props.onDeselect&&l.props.onDeselect([y],l.controller.getItems())):(!l.props.onBeforeSelect||l.props.onBeforeSelect([y],l.controller.getItems())!==!1)&&(l.controller.selectMediaItem(F),l.props.onSelect&&l.props.onSelect([y],l.controller.getItems()))},l.removeItem=function(D){var F=D.currentTarget.dataset.id,y=l.controller.getMediaItem(F);if(!y)return!1;(!l.props.onBeforeRemove||l.props.onBeforeRemove([y],l.controller.getItems())!==!1)&&(l.controller.removeMediaItem(F),l.props.onRemove&&l.props.onRemove([y],l.controller.getItems())),D.stopPropagation()},l.selectAllItems=function(){var D=l.controller.getItems();(!l.props.onBeforeSelect||l.props.onBeforeSelect(D,D)!==!1)&&(l.controller.selectAllItems(),l.props.onSelect&&l.props.onSelect(D,D))},l.deselectAllItems=function(){var D=l.controller.getItems();(!l.props.onBeforeDeselect||l.props.onBeforeDeselect(D,D)!==!1)&&(l.controller.deselectAllItems(),l.props.onDeselect&&l.props.onDeselect(D,D))},l.removeSelectedItems=function(){var D=l.controller.getSelectedItems();(!l.props.onBeforeRemove||l.props.onBeforeRemove(D,l.controller.getItems())!==!1)&&(l.controller.removeSelectedItems(),l.props.onRemove&&l.props.onRemove(D,l.controller.getItems()))},l.handleDragLeave=function(D){D.preventDefault(),l.dragCounter--,l.dragCounter===0&&l.setState({draging:!1})},l.handleDragDrop=function(D){D.preventDefault(),l.dragCounter=0,l.setState({draging:!1}),l.reslovePickedFiles(D)},l.handleDragEnter=function(D){D.preventDefault(),l.dragCounter++,l.setState({draging:!0})},l.reslovePickedFiles=function(D){D.persist();var F=D.type==="drop"?D.dataTransfer:D.target,y=F.files;if(l.props.onFileSelect){var L=l.props.onFileSelect(y);if(L===!1)return!1;(L instanceof FileList||L instanceof Array)&&(y=L)}var T=p({},i,l.props.accepts);l.controller.resolveFiles({files:y,onItemReady:function(w){var H=w.id;return l.controller.selectMediaItem(H)},onAllReady:function(){return D.target.value=null}},0,T)},l.inputExternal=function(D){l.setState({external:p({},l.state.external,{url:D.target.value})})},l.switchExternalType=function(D){l.setState({external:p({},l.state.external,{type:D.target.dataset.type})})},l.confirmAddExternal=function(D){if(D.target.nodeName.toLowerCase()==="button"||D.keyCode===13){var F=l.state.external,y=F.url,L=F.type;y=y.split("|");var T=y.length>1?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;i<arguments.length;i++){var r=arguments[i];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(c[u]=r[u])}return c},B=A(1),S=A(0);function d(c){if(Array.isArray(c)){for(var i=0,r=Array(c.length);i<c.length;i++)r[i]=c[i];return r}else return Array.from(c)}function f(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}var h=function(){return!0},s=function c(){var i=arguments.length>0&&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),E<r.length-1&&i.uploadImageRecursively(r,u,E+1)}):E<r.length-1&&i.uploadImageRecursively(r,u,E+1)},this.addResolvedFiles=function(r,u,E){var C={id:new Date().getTime()+"_"+(0,B.UniqueIndex)(),file:r.files[u],name:r.files[u].name,size:r.files[u].size,uploadProgress:0,uploading:!1,selected:!1,error:0,onReady:function(g){r.onItemReady&&r.onItemReady(g)}};r.files[u].type.indexOf("image/")===0&&E.image?(C.type="IMAGE",i.addMediaItem(C)):r.files[u].type.indexOf("video/")===0&&E.video?(C.type="VIDEO",i.addMediaItem(C)):r.files[u].type.indexOf("audio/")===0&&E.audio&&(C.type="AUDIO",i.addMediaItem(C)),setTimeout(function(){i.resolveFiles(r,u+1,E)},60)},this.resolveFiles=function(r,u,E){if(u<r.files.length){var C=i.validateFn(r.files[u]);C instanceof Promise?C.then(function(){i.addResolvedFiles(r,u,E)}):C&&i.addResolvedFiles(r,u,E)}else r.onAllReady&&r.onAllReady()},this.onChange=function(r){var u=(0,B.UniqueIndex)();return i.changeListeners.push({id:u,callback:r}),u},this.offChange=function(r){i.changeListeners=i.changeListeners.filter(function(u){var E=u.id;return E!==r})}};v.default=s},function(b,v,A){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.ImageUtils=void 0;var p=Object.assign||function(y){for(var L=1;L<arguments.length;L++){var T=arguments[L];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(y[I]=T[I])}return y},B=A(2),S=E(B),d=A(19),f=E(d),h=A(18),s=E(h),a=A(10),c=E(a),i=A(0),r=u(i);function u(y){if(y&&y.__esModule)return y;var L={};if(y!=null)for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&(L[T]=y[T]);return L.default=y,L}function E(y){return y&&y.__esModule?y:{default:y}}function C(y,L){if(!(y instanceof L))throw new TypeError("Cannot call a class as a function")}function l(y,L){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:y}function g(y,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);y.prototype=Object.create(L&&L.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(y,L):y.__proto__=L)}var D=function(y){g(L,y);function L(T){C(this,L);var I=l(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,T));return F.call(I),I.superProps=T,I}return L}(f.default),F=function(){var L=this;this.ReactComponent=function(){var T=arguments.length>0&&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<We?oe(dt):dt}):it===Fe?ft=qe.map(function(dt,pt){return pt>=Ie?oe(dt):dt}):it===Me?ft=qe.map(function(dt,pt){return pt<We?oe(dt):dt}):ft=qe.map(function(dt){return oe(dt)}),me.merge({characterList:ft})});return x.EditorState.push(te,pe.merge({blockMap:lt,selectionBefore:le,selectionAfter:le}),"update-selection-character-list")},g=P.getSelectedBlocks=function(te){var oe=te.getSelection(),le=te.getCurrentContent(),pe=oe.getStartKey(),Ae=oe.getEndKey(),ve=pe===Ae,Fe=le.getBlockForKey(pe),Ie=[Fe];if(!ve)for(var Me=pe;Me!==Ae;){var We=le.getBlockAfter(Me);Ie.push(We),Me=We.getKey()}return Ie},D=P.setSelectionBlockData=function(te,oe,le){var pe=le?oe:Object.assign({},F(te).toJS(),oe);return Object.keys(pe).forEach(function(Ae){pe.hasOwnProperty(Ae)&&pe[Ae]===void 0&&delete pe[Ae]}),(0,b.setBlockData)(te,pe)},F=P.getSelectionBlockData=function(te,oe){var le=C(te).getData();return oe?le.get(oe):le},y=P.getSelectionBlockType=function(te){return C(te).getType()},L=P.getSelectionText=function(te){var oe=te.getSelection(),le=te.getCurrentContent();if(oe.isCollapsed()||y(te)==="atomic")return"";var pe=oe.getAnchorKey(),Ae=le.getBlockForKey(pe),ve=oe.getStartOffset(),Fe=oe.getEndOffset();return Ae.getText().slice(ve,Fe)},T=P.toggleSelectionBlockType=function(te,oe){return i(te)?te:x.RichUtils.toggleBlockType(te,oe)},I=P.getSelectionEntityType=function(te){var oe=(0,b.getSelectionEntity)(te);if(oe){var le=te.getCurrentContent().getEntity(oe);return le?le.get("type"):null}return null},w=P.getSelectionEntityData=function(te,oe){var le=(0,b.getSelectionEntity)(te);if(le){var pe=te.getCurrentContent().getEntity(le);return pe&&pe.get("type")===oe?pe.getData():{}}else return{}},H=P.toggleSelectionEntity=function(te,oe){var le=te.getCurrentContent(),pe=te.getSelection();if(pe.isCollapsed()||y(te)==="atomic")return te;if(!oe||!oe.type||I(te)===oe.type)return x.EditorState.push(te,x.Modifier.applyEntity(le,pe,null),"apply-entity");try{var Ae=le.createEntity(oe.type,oe.mutability,oe.data),ve=Ae.getLastCreatedEntityKey(),Fe=x.EditorState.set(te,{currentContent:Ae});return x.EditorState.push(Fe,x.Modifier.applyEntity(Ae,pe,ve),"apply-entity")}catch(Ie){return console.warn(Ie),te}},j=P.toggleSelectionLink=function(te,oe,le){var pe=te.getCurrentContent(),Ae=te.getSelection(),ve={href:oe,target:le};if(Ae.isCollapsed()||y(te)==="atomic")return te;if(oe===!1)return x.RichUtils.toggleLink(te,Ae,null);oe===null&&delete ve.href;try{var Fe=pe.createEntity("LINK","MUTABLE",ve),Ie=Fe.getLastCreatedEntityKey(),Me=x.EditorState.set(te,{currentContent:Fe});return Me=x.RichUtils.toggleLink(Me,Ae,Ie),Me=x.EditorState.forceSelection(Me,Ae.merge({anchorOffset:Ae.getEndOffset(),focusOffset:Ae.getEndOffset()})),Me=x.EditorState.push(Me,x.Modifier.insertText(Me.getCurrentContent(),Me.getSelection(),""),"insert-text"),Me}catch(We){return console.warn(We),te}},U=P.getSelectionInlineStyle=function(te){return te.getCurrentInlineStyle()},O=P.selectionHasInlineStyle=function(te,oe){return U(te).has(oe.toUpperCase())},re=P.toggleSelectionInlineStyle=function(te,oe){var le=arguments.length>2&&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<ae;N++)_[N]=J[N];return _}function S(J){if(Array.isArray(J))return B(J)}function d(J){if(typeof Symbol!="undefined"&&J[Symbol.iterator]!=null||J["@@iterator"]!=null)return Array.from(J)}function f(J,ae){if(!!J){if(typeof J=="string")return B(J,ae);var N=Object.prototype.toString.call(J).slice(8,-1);if(N==="Object"&&J.constructor&&(N=J.constructor.name),N==="Map"||N==="Set")return Array.from(J);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return B(J,ae)}}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(J){return S(J)||d(J)||f(J)||h()}function a(J,ae,N,_,Z,fe){var xe=_-N,Ce=ae+N<=J.offset;if(Ce)return Object.assign({},J,{offset:J.offset+xe});var Ee=ae>=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.offset<ae&&J.offset+J.length<=ae+N&&J.offset+J.length>ae&&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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","\n":"<br/>"},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;xe<ae.length;xe++)fe(xe);return Object.assign({},J,{text:Z,inlineStyleRanges:_,entityRanges:N})};function u(J){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},u(J)}var E=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function C(J){if(E.indexOf(J.type)!==-1)return A.renderToStaticMarkup(J);var ae=A.renderToStaticMarkup(v.cloneElement(J,{},"\r")).split("\r");return b()(ae.length>1,"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<fe.length;Ee++)Ce(Ee);return Object.assign({},J,{text:_.join(""),inlineStyleRanges:xe,entityRanges:fe})}return J},T=function(J){return function(ae){return typeof J=="function"?J(ae):J[ae]}},I=function(J,ae){return function(){var N=J.apply(void 0,arguments);return N!=null?N:ae.apply(void 0,arguments)}};function w(J){switch(J){case"BOLD":return v.createElement("strong",null);case"ITALIC":return v.createElement("em",null);case"UNDERLINE":return v.createElement("u",null);case"CODE":return v.createElement("code",null);default:return{start:"",end:""}}}var H=function(ae,N){return ae.filter(function(_){return!N.some(function(Z){return Z.style===_.style})})},j=function(ae,N){return N.reduceRight(function(_,Z){var fe=_[_.length-1];return b()(fe.style===Z.style,"Style ".concat(fe.style," to be removed doesn't match expected ").concat(Z.style)),_.slice(0,-1)},ae)},U=function(ae,N){return N.filter(function(_){return ae>=_.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;_<ae.length;)if(N.every(O.bind(null,ae[_])))_++;else return ae.slice(_);return[]},ue=function(ae,N,_){return N+g(ae(_.style)).start},Se=function(ae,N,_){return g(ae(_.style)).end+N},ye=function(ae){return function(N){return ae(N)}};ye.__isMiddleware=!0;var V=function(J){var ae=arguments.length>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;Ce<xe.length;Ce++){var Ee=U(Ce,fe),we=H(Z,Ee),ge=H(Ee,Z),je=H(Z,we),Qe=Q(je,ge),Oe=Qe.concat(ge).sort(re),He=Oe.reduce(ue.bind(null,N),""),Re=we.concat(Qe).reduce(Se.bind(null,N),"");_+=Re+He+xe[Ce],Z=j(Z,Qe.concat(we)),Z=Z.concat(Oe),b()(Z.length===Ee.length,"Character ".concat(Ce,": ").concat(Z.length-Ee.length," styles left on stack that should no longer be there"))}return _=Z.reduceRight(function(ke,gt){return ke+g(N(gt.style)).end},_),_},Be=function(J){return function(ae){return typeof J=="function"?J(ae):J[ae.type]}};function ze(J){return v.isValidElement(J)&&v.Children.count(J.props.children)>0}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+1<je.length){var rt=je[je.length-1];ke+=Ue(we(rt),Re).nestEnd,je=je.slice(0,-1)}else gt+=Ue(we(Oe),Re).nestStart,je.push(Oe);var It=V(L(r(Oe),ge.entityMap,Ce),_),et=Le(we(Oe)),ht;return typeof et=="string"?ht=et:ht=et.start+It+et.end,It.length===0&&Object.prototype.hasOwnProperty.call(et,"empty")&&(v.isValidElement(et.empty)?ht=A.renderToStaticMarkup(et.empty):ht=et.empty),ke+gt+ht}).join("");return Qe=je.reduce(function(Oe,He){return Oe+Ue(we(He),He.depth).nestEnd},Qe),Qe}},Te=function(){for(var J=arguments.length,ae=new Array(J),N=0;N<J;N++)ae[N]=arguments[N];return ae.length===1&&Object.prototype.hasOwnProperty.call(ae[0],"_map")&&ae[0].getBlockMap!=null?Ze({}).apply(void 0,ae):Ze.apply(void 0,ae)},Ge=o(43393),Ye=function(ae){var N=document.implementation.createHTMLDocument("");return N.documentElement.innerHTML=ae,N};function ut(J){var ae;if(typeof DOMParser!="undefined"){var N=new DOMParser;ae=N.parseFromString(J,"text/html"),(ae===null||ae.body===null)&&(ae=Ye(J))}else ae=Ye(J);return ae.body}var bt="&nbsp;",nt=" ",be=4,Xe=new RegExp("\r","g"),Et=new RegExp(`
`,"g"),Ut=new RegExp(bt,"g"),Ke=new RegExp("\r","g"),te=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],oe={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},le=function(ae,N){return ae&&ae.__isMiddleware===!0?ae(N):ae},pe=function(ae,N,_){},Ae=function(ae,N,_){return _},ve=function(ae,N){},Fe=function(ae){return[]},Ie=function(ae){if(ae!=null)return ae;throw new Error("Got unexpected null or undefined")},Me=function(ae){return ae.replace(Ke,"")};function We(){return{text:"",inlines:[],entities:[],blocks:[]}}function lt(J){var ae=new Array(1);return J&&(ae[0]=J),{text:nt,inlines:[(0,Ge.OrderedSet)()],entities:ae,blocks:[]}}function me(J,ae){var N=arguments.length>2&&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;g<arguments.length;g++){var D=arguments[g];for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&(l[F]=D[F])}return l},v=o(10329),A=o(4516),p=o(2641),B=o(67953),S=o(36105),d=o(42307),f=o(14289),h=o(43393),s=o(25110),a=o(25027),c=o(61173),i=S.draft_tree_data_support,r=i?B:p,u=h.List,E=h.Repeat,C={insertAtomicBlock:function(g,D,F){var y=g.getCurrentContent(),L=g.getSelection(),T=d.removeRange(y,L,"backward"),I=T.getSelectionAfter(),w=d.splitBlock(T,I),H=w.getSelectionAfter(),j=d.setBlockType(w,H,"atomic"),U=A.create({entity:D}),O={key:a(),type:"atomic",text:F,characterList:u(E(U,F.length))},re={key:a(),type:"unstyled"};i&&(O=b({},O,{nextSibling:re.key}),re=b({},re,{prevSibling:O.key}));var Q=[new r(O),new r(re)],ue=v.createFromArray(Q),Se=d.replaceWithFragment(j,H,ue),ye=Se.merge({selectionBefore:L,selectionAfter:Se.getSelectionAfter().set("hasFocus",!0)});return f.push(g,ye,"insert-fragment")},moveAtomicBlock:function(g,D,F,y){var L=g.getCurrentContent(),T=g.getSelection(),I=void 0;if(y==="before"||y==="after"){var w=L.getBlockForKey(y==="before"?F.getStartKey():F.getEndKey());I=c(L,D,w,y)}else{var H=d.removeRange(L,F,"backward"),j=H.getSelectionAfter(),U=H.getBlockForKey(j.getFocusKey());if(j.getStartOffset()===0)I=c(H,D,U,"before");else if(j.getEndOffset()===U.getLength())I=c(H,D,U,"after");else{var O=d.splitBlock(H,j),re=O.getSelectionAfter(),Q=O.getBlockForKey(re.getFocusKey());I=c(O,D,Q,"before")}}var ue=I.merge({selectionBefore:T,selectionAfter:I.getSelectionAfter().set("hasFocus",!0)});return f.push(g,ue,"move-block")}};z.exports=C},10329:function(z,P,o){"use strict";var x=o(43393),b=x.OrderedMap,v={createFromArray:function(p){return b(p.map(function(B){return[B.getKey(),B]}))}};z.exports=v},34365:function(z,P,o){"use strict";var x=o(43393),b=o(60139),v=o(29407),A=x.List,p=x.Repeat,B=x.Record,S=b.thatReturnsTrue,d="-",f={start:null,end:null},h=B(f),s={start:null,end:null,decoratorKey:null,leaves:null},a=B(s),c={generate:function(E,C,l){var g=C.getLength();if(!g)return A.of(new a({start:0,end:0,decoratorKey:null,leaves:A.of(new h({start:0,end:0}))}));var D=[],F=l?l.getDecorations(C,E):A(p(null,g)),y=C.getCharacterList();return v(F,r,S,function(L,T){D.push(new a({start:L,end:T,decoratorKey:F.get(L),leaves:i(y.slice(L,T).toList(),L)}))}),A(D)},getFingerprint:function(E){return E.map(function(C){var l=C.get("decoratorKey"),g=l!==null?l+"."+(C.get("end")-C.get("start")):"";return""+g+"."+C.get("leaves").size}).join(d)}};function i(u,E){var C=[],l=u.map(function(g){return g.getStyle()}).toList();return v(l,r,S,function(g,D){C.push(new h({start:g+E,end:D+E}))}),A(C)}function r(u,E){return u===E}z.exports=c},4516:function(z,P,o){"use strict";function x(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function b(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function v(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var A=o(43393),p=A.Map,B=A.OrderedSet,S=A.Record,d=B(),f={style:d,entity:null},h=S(f),s=function(i){v(r,i);function r(){return x(this,r),b(this,i.apply(this,arguments))}return r.prototype.getStyle=function(){return this.get("style")},r.prototype.getEntity=function(){return this.get("entity")},r.prototype.hasStyle=function(E){return this.getStyle().includes(E)},r.applyStyle=function(E,C){var l=E.set("style",E.getStyle().add(C));return r.create(l)},r.removeStyle=function(E,C){var l=E.set("style",E.getStyle().remove(C));return r.create(l)},r.applyEntity=function(E,C){var l=E.getEntity()===C?E:E.set("entity",C);return r.create(l)},r.create=function(E){if(!E)return a;var C={style:d,entity:null},l=p(C).merge(E),g=c.get(l);if(g)return g;var D=new r(l);return c=c.set(l,D),D},r}(h),a=new s,c=p([[p(f),a]]);s.EMPTY=a,z.exports=s},25369:function(z,P,o){"use strict";function x(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}var b=o(43393),v=b.List,A=".",p=function(){function d(f){x(this,d),this._decorators=f.slice()}return d.prototype.getDecorations=function(h,s){var a=Array(h.getText().length).fill(null);return this._decorators.forEach(function(c,i){var r=0,u=c.strategy,E=function(l,g){B(a,l,g)&&(S(a,l,g,i+A+r),r++)};u(h,E,s)}),v(a)},d.prototype.getComponentForKey=function(h){var s=parseInt(h.split(A)[0],10);return this._decorators[s].component},d.prototype.getPropsForKey=function(h){var s=parseInt(h.split(A)[0],10);return this._decorators[s].props},d}();function B(d,f,h){for(var s=f;s<h;s++)if(d[s]!=null)return!1;return!0}function S(d,f,h,s){for(var a=f;a<h;a++)d[a]=s}z.exports=p},2641:function(z,P,o){"use strict";function x(l,g){if(!(l instanceof g))throw new TypeError("Cannot call a class as a function")}function b(l,g){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:l}function v(l,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);l.prototype=Object.create(g&&g.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(l,g):l.__proto__=g)}var A=o(4516),p=o(43393),B=o(29407),S=p.List,d=p.Map,f=p.OrderedSet,h=p.Record,s=p.Repeat,a=f(),c={key:"",type:"unstyled",text:"",characterList:S(),depth:0,data:d()},i=h(c),r=function(g){if(!g)return g;var D=g.characterList,F=g.text;return F&&!D&&(g.characterList=S(s(A.EMPTY,F.length))),g},u=function(l){v(g,l);function g(D){return x(this,g),b(this,l.call(this,r(D)))}return g.prototype.getKey=function(){return this.get("key")},g.prototype.getType=function(){return this.get("type")},g.prototype.getText=function(){return this.get("text")},g.prototype.getCharacterList=function(){return this.get("characterList")},g.prototype.getLength=function(){return this.getText().length},g.prototype.getDepth=function(){return this.get("depth")},g.prototype.getData=function(){return this.get("data")},g.prototype.getInlineStyleAt=function(F){var y=this.getCharacterList().get(F);return y?y.getStyle():a},g.prototype.getEntityAt=function(F){var y=this.getCharacterList().get(F);return y?y.getEntity():null},g.prototype.findStyleRanges=function(F,y){B(this.getCharacterList(),E,F,y)},g.prototype.findEntityRanges=function(F,y){B(this.getCharacterList(),C,F,y)},g}(i);function E(l,g){return l.getStyle()===g.getStyle()}function C(l,g){return l.getEntity()===g.getEntity()}z.exports=u},67953:function(z,P,o){"use strict";function x(C,l){if(!(C instanceof l))throw new TypeError("Cannot call a class as a function")}function b(C,l){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:C}function v(C,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);C.prototype=Object.create(l&&l.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(C,l):C.__proto__=l)}var A=o(4516),p=o(43393),B=o(29407),S=p.List,d=p.Map,f=p.OrderedSet,h=p.Record,s=p.Repeat,a=f(),c={parent:null,characterList:S(),data:d(),depth:0,key:"",text:"",type:"unstyled",children:S(),prevSibling:null,nextSibling:null},i=function(l,g){return l.getStyle()===g.getStyle()},r=function(l,g){return l.getEntity()===g.getEntity()},u=function(l){if(!l)return l;var g=l.characterList,D=l.text;return D&&!g&&(l.characterList=S(s(A.EMPTY,D.length))),l},E=function(C){v(l,C);function l(){var g=arguments.length>0&&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;C<l;)D=g.get(C),g=g.set(C,f?x.applyStyle(D,d):x.removeStyle(D,d)),C++;return u.set("characterList",g)});return B.merge({blockMap:h.merge(r),selectionBefore:S,selectionAfter:S})}z.exports=A},526:function(z,P,o){"use strict";var x=o(43393),b=x.Map,v=o(67294),A=o(62620),p=v.createElement("ul",{className:A("public/DraftStyleDefault/ul")}),B=v.createElement("ol",{className:A("public/DraftStyleDefault/ol")}),S=v.createElement("pre",{className:A("public/DraftStyleDefault/pre")}),d=b({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:p},"ordered-list-item":{element:"li",wrapper:B},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:S},unstyled:{element:"div",aliasedElements:["p"]}});z.exports=d},37619:function(z){"use strict";z.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},9041:function(z,P,o){"use strict";var x=o(19785),b=o(10329),v=o(4516),A=o(25369),p=o(2641),B=o(66912),S=o(526),d=o(37619),f=o(87210),h=o(37898),s=o(82222),a=o(42307),c=o(39006),i=o(14289),r=o(47387),u=o(41947),E=o(25110),C=o(79981),l=o(67841),g=o(99607),D=o(25027),F=o(41714),y=o(96629),L={Editor:f,EditorBlock:h,EditorState:i,CompositeDecorator:A,Entity:s,EntityInstance:c,BlockMapBuilder:b,CharacterMetadata:v,ContentBlock:p,ContentState:B,SelectionState:E,AtomicBlockUtils:x,KeyBindingUtil:r,Modifier:a,RichUtils:u,DefaultDraftBlockRenderMap:S,DefaultDraftInlineStyle:d,convertFromHTML:l,convertFromRaw:g,convertToRaw:C,genKey:D,getDefaultKeyBinding:F,getVisibleSelectionRect:y};z.exports=L},87210:function(z,P,o){"use strict";var x=o(27418),b=x||function(U){for(var O=1;O<arguments.length;O++){var re=arguments[O];for(var Q in re)Object.prototype.hasOwnProperty.call(re,Q)&&(U[Q]=re[Q])}return U};function v(U,O){if(!(U instanceof O))throw new TypeError("Cannot call a class as a function")}function A(U,O){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:U}function p(U,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);U.prototype=Object.create(O&&O.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(U,O):U.__proto__=O)}var B=o(526),S=o(37619),d=o(33418),f=o(87791),h=o(61494),s=o(19394),a=o(28094),c=o(14289),i=o(67294),r=o(73935),u=o(65994),E=o(19051),C=o(4856),l=o(62620),g=o(60139),D=o(25027),F=o(41714),y=o(79749),L=o(73759),T=o(22045),I=C.isBrowser("IE"),w=!I,H={edit:s,composite:d,drag:h,cut:null,render:null},j=function(U){p(O,U);function O(re){v(this,O);var Q=A(this,U.call(this,re));return Q.focus=function(ue){var Se=Q.props.editorState,ye=Se.getSelection().getHasFocus(),V=r.findDOMNode(Q.editor);if(!!V){var Be=E.getScrollParent(V),ze=ue||y(Be),Le=ze.x,Ue=ze.y;V instanceof HTMLElement||L(!1),V.focus(),Be===window?window.scrollTo(Le,Ue):u.setTop(Be,Ue),ye||Q.update(c.forceSelection(Se,Se.getSelection()))}},Q.blur=function(){var ue=r.findDOMNode(Q.editor);ue instanceof HTMLElement||L(!1),ue.blur()},Q.setMode=function(ue){Q._handler=H[ue]},Q.exitCurrentMode=function(){Q.setMode("edit")},Q.restoreEditorDOM=function(ue){Q.setState({contentsKey:Q.state.contentsKey+1},function(){Q.focus(ue)})},Q.setClipboard=function(ue){Q._clipboard=ue},Q.getClipboard=function(){return Q._clipboard},Q.update=function(ue){Q._latestEditorState=ue,Q.props.onChange(ue)},Q.onDragEnter=function(){Q._dragCount++},Q.onDragLeave=function(){Q._dragCount--,Q._dragCount===0&&Q.exitCurrentMode()},Q._blockSelectEvents=!1,Q._clipboard=null,Q._handler=null,Q._dragCount=0,Q._editorKey=re.editorKey||D(),Q._placeholderAccessibilityID="placeholder-"+Q._editorKey,Q._latestEditorState=re.editorState,Q._latestCommittedEditorState=re.editorState,Q._onBeforeInput=Q._buildHandler("onBeforeInput"),Q._onBlur=Q._buildHandler("onBlur"),Q._onCharacterData=Q._buildHandler("onCharacterData"),Q._onCompositionEnd=Q._buildHandler("onCompositionEnd"),Q._onCompositionStart=Q._buildHandler("onCompositionStart"),Q._onCopy=Q._buildHandler("onCopy"),Q._onCut=Q._buildHandler("onCut"),Q._onDragEnd=Q._buildHandler("onDragEnd"),Q._onDragOver=Q._buildHandler("onDragOver"),Q._onDragStart=Q._buildHandler("onDragStart"),Q._onDrop=Q._buildHandler("onDrop"),Q._onInput=Q._buildHandler("onInput"),Q._onFocus=Q._buildHandler("onFocus"),Q._onKeyDown=Q._buildHandler("onKeyDown"),Q._onKeyPress=Q._buildHandler("onKeyPress"),Q._onKeyUp=Q._buildHandler("onKeyUp"),Q._onMouseDown=Q._buildHandler("onMouseDown"),Q._onMouseUp=Q._buildHandler("onMouseUp"),Q._onPaste=Q._buildHandler("onPaste"),Q._onSelect=Q._buildHandler("onSelect"),Q.getEditorKey=function(){return Q._editorKey},Q.state={contentsKey:0},Q}return O.prototype._buildHandler=function(Q){var ue=this;return function(Se){if(!ue.props.readOnly){var ye=ue._handler&&ue._handler[Q];ye&&ye(ue,Se)}}},O.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},O.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var Q={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return i.createElement(a,Q)}return null},O.prototype.render=function(){var Q=this,ue=this.props,Se=ue.blockRenderMap,ye=ue.blockRendererFn,V=ue.blockStyleFn,Be=ue.customStyleFn,ze=ue.customStyleMap,Le=ue.editorState,Ue=ue.readOnly,ot=ue.textAlignment,at=ue.textDirectionality,_e=l({"DraftEditor/root":!0,"DraftEditor/alignLeft":ot==="left","DraftEditor/alignRight":ot==="right","DraftEditor/alignCenter":ot==="center"}),Ze={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},Te=this.props.role||"textbox",Ge=Te==="combobox"?!!this.props.ariaExpanded:null,Ye={blockRenderMap:Se,blockRendererFn:ye,blockStyleFn:V,customStyleMap:b({},S,ze),customStyleFn:Be,editorKey:this._editorKey,editorState:Le,key:"contents"+this.state.contentsKey,textDirectionality:at};return i.createElement("div",{className:_e},this._renderPlaceholder(),i.createElement("div",{className:l("DraftEditor/editorContainer"),ref:function(bt){return Q.editorContainer=bt}},i.createElement("div",{"aria-activedescendant":Ue?null:this.props.ariaActiveDescendantID,"aria-autocomplete":Ue?null:this.props.ariaAutoComplete,"aria-controls":Ue?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":Ue?null:Ge,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:l({notranslate:!Ue,"public/DraftEditor/content":!0}),contentEditable:!Ue,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:function(bt){return Q.editor=bt},role:Ue?null:Te,spellCheck:w&&this.props.spellCheck,style:Ze,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},i.createElement(f,Ye))))},O.prototype.componentDidMount=function(){this.setMode("edit"),I&&document.execCommand("AutoUrlDetect",!1,!1)},O.prototype.componentWillUpdate=function(Q){this._blockSelectEvents=!0,this._latestEditorState=Q.editorState},O.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},O}(i.Component);j.defaultProps={blockRenderMap:B,blockRendererFn:g.thatReturnsNull,blockStyleFn:g.thatReturns(""),keyBindingFn:F,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},z.exports=j},37898:function(z,P,o){"use strict";var x=o(27418),b=x||function(y){for(var L=1;L<arguments.length;L++){var T=arguments[L];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(y[I]=T[I])}return y};function v(y,L){if(!(y instanceof L))throw new TypeError("Cannot call a class as a function")}function A(y,L){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:y}function p(y,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);y.prototype=Object.create(L&&L.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(y,L):y.__proto__=L)}var B=o(42282),S=o(22146),d=o(67294),f=o(73935),h=o(65994),s=o(19051),a=o(54191),c=o(16633),i=o(62620),r=o(55258),u=o(79749),E=o(70746),C=o(73759),l=o(22045),g=10,D=function(L,T){return L.getAnchorKey()===T||L.getFocusKey()===T},F=function(y){p(L,y);function L(){return v(this,L),A(this,y.apply(this,arguments))}return L.prototype.shouldComponentUpdate=function(I){return this.props.block!==I.block||this.props.tree!==I.tree||this.props.direction!==I.direction||D(I.selection,I.block.getKey())&&I.forceSelection},L.prototype.componentDidMount=function(){var I=this.props.selection,w=I.getEndKey();if(!(!I.getHasFocus()||w!==this.props.block.getKey())){var H=f.findDOMNode(this),j=s.getScrollParent(H),U=u(j),O=void 0;if(j===window){var re=r(H),Q=re.y+re.height,ue=E().height;O=Q-ue,O>0&&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;u<arguments.length;u++){var E=arguments[u];for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(r[C]=E[C])}return r};function v(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function A(r,u){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:r}function p(r,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);r.prototype=Object.create(u&&u.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(r,u):r.__proto__=u)}var B=o(37898),S=o(22146),d=o(14289),f=o(67294),h=o(62620),s=o(71108),a=o(22045),c=function(u,E,C,l){return h({"public/DraftStyleDefault/unorderedListItem":u==="unordered-list-item","public/DraftStyleDefault/orderedListItem":u==="ordered-list-item","public/DraftStyleDefault/reset":C,"public/DraftStyleDefault/depth0":E===0,"public/DraftStyleDefault/depth1":E===1,"public/DraftStyleDefault/depth2":E===2,"public/DraftStyleDefault/depth3":E===3,"public/DraftStyleDefault/depth4":E===4,"public/DraftStyleDefault/listLTR":l==="LTR","public/DraftStyleDefault/listRTL":l==="RTL"})},i=function(r){p(u,r);function u(){return v(this,u),A(this,r.apply(this,arguments))}return u.prototype.shouldComponentUpdate=function(C){var l=this.props.editorState,g=C.editorState,D=l.getDirectionMap(),F=g.getDirectionMap();if(D!==F)return!0;var y=l.getSelection().getHasFocus(),L=g.getSelection().getHasFocus();if(y!==L)return!0;var T=g.getNativelyRenderedContent(),I=l.isInCompositionMode(),w=g.isInCompositionMode();if(l===g||T!==null&&g.getCurrentContent()===T||I&&w)return!1;var H=l.getCurrentContent(),j=g.getCurrentContent(),U=l.getDecorator(),O=g.getDecorator();return I!==w||H!==j||U!==O||g.mustForceSelection()},u.prototype.render=function(){for(var C=this.props,l=C.blockRenderMap,g=C.blockRendererFn,D=C.blockStyleFn,F=C.customStyleMap,y=C.customStyleFn,L=C.editorState,T=C.editorKey,I=C.textDirectionality,w=L.getCurrentContent(),H=L.getSelection(),j=L.mustForceSelection(),U=L.getDecorator(),O=a(L.getDirectionMap()),re=w.getBlocksAsArray(),Q=[],ue=null,Se=null,ye=0;ye<re.length;ye++){var V=re[ye],Be=V.getKey(),ze=V.getType(),Le=g(V),Ue=void 0,ot=void 0,at=void 0;Le&&(Ue=Le.component,ot=Le.props,at=Le.editable);var _e=I||O.get(Be),Ze=S.encode(Be,0,0),Te={contentState:w,block:V,blockProps:ot,blockStyleFn:D,customStyleMap:F,customStyleFn:y,decorator:U,direction:_e,forceSelection:j,key:Be,offsetKey:Ze,selection:H,tree:L.getBlockTree(Be)},Ge=l.get(ze)||l.get("unstyled"),Ye=Ge.wrapper,ut=Ge.element||l.get("unstyled").element,bt=V.getDepth(),nt="";if(D&&(nt=D(V)),ut==="li"){var be=Se!==Ye||ue===null||bt>ue;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;te<Q.length;){var oe=Q[te];if(oe.wrapperTemplate){var le=[];do le.push(Q[te].block),te++;while(te<Q.length&&Q[te].wrapperTemplate===oe.wrapperTemplate);var pe=f.cloneElement(oe.wrapperTemplate,{key:oe.key+"-wrap","data-offset-key":oe.offsetKey},le);Ke.push(pe)}else Ke.push(oe.block),te++}return f.createElement("div",{"data-contents":"true"},Ke)},u}(f.Component);z.exports=i},87791:function(z,P,o){"use strict";var x=o(88795);z.exports=x},61494:function(z,P,o){"use strict";var x=o(44891),b=o(42307),v=o(14289),A=o(69270),p=o(21738),B=o(94486),S=o(42177),d=o(22045);function f(c,i){var r=null,u=null;if(typeof document.caretRangeFromPoint=="function"){var E=document.caretRangeFromPoint(c.x,c.y);r=E.startContainer,u=E.startOffset}else if(c.rangeParent)r=c.rangeParent,u=c.rangeOffset;else return null;r=d(r),u=d(u);var C=d(A(r));return B(i,C,u,C,u)}var h={onDragEnd:function(i){i.exitCurrentMode()},onDrop:function(i,r){var u=new x(r.nativeEvent.dataTransfer),E=i._latestEditorState,C=f(r.nativeEvent,E);if(r.preventDefault(),i.exitCurrentMode(),C!=null){var l=u.getFiles();if(l.length>0){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;a<arguments.length;a++){var c=arguments[a];for(var i in c)Object.prototype.hasOwnProperty.call(c,i)&&(s[i]=c[i])}return s},v=o(39006),A=o(43393),p=o(73759),B=A.Map,S=B(),d=0;function f(s,a){console.warn("WARNING: "+s+` will be deprecated soon!
Please use "`+a+'" instead.')}var h={getLastCreatedEntityKey:function(){return f("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),h.__getLastCreatedEntityKey()},create:function(a,c,i){return f("DraftEntity.create","contentState.createEntity"),h.__create(a,c,i)},add:function(a){return f("DraftEntity.add","contentState.addEntity"),h.__add(a)},get:function(a){return f("DraftEntity.get","contentState.getEntity"),h.__get(a)},mergeData:function(a,c){return f("DraftEntity.mergeData","contentState.mergeEntityData"),h.__mergeData(a,c)},replaceData:function(a,c){return f("DraftEntity.replaceData","contentState.replaceEntityData"),h.__replaceData(a,c)},__getLastCreatedEntityKey:function(){return""+d},__create:function(a,c,i){return h.__add(new v({type:a,mutability:c,data:i||{}}))},__add:function(a){var c=""+ ++d;return S=S.set(c,a),c},__get:function(a){var c=S.get(a);return c||p(!1),c},__mergeData:function(a,c){var i=h.__get(a),r=b({},i.getData(),c),u=i.set("data",r);return S=S.set(a,u),u},__replaceData:function(a,c){var i=h.__get(a),r=i.set("data",c);return S=S.set(a,r),r}};z.exports=h},39006:function(z,P,o){"use strict";function x(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function b(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function v(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var A=o(43393),p=A.Record,B=p({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),S=function(d){v(f,d);function f(){return x(this,f),b(this,d.apply(this,arguments))}return f.prototype.getType=function(){return this.get("type")},f.prototype.getMutability=function(){return this.get("mutability")},f.prototype.getData=function(){return this.get("data")},f}(B);z.exports=S},5195:function(z){"use strict";var P={getRemovalRange:function(x,b,v,A,p){var B=v.split(" ");B=B.map(function(u,E){if(p==="forward"){if(E>0)return" "+u}else if(E<B.length-1)return u+" ";return u});for(var S=A,d,f,h=null,s=null,a=0;a<B.length;a++){if(f=B[a],d=S+f.length,x<d&&S<b)h!==null||(h=S),s=d;else if(h!==null)break;S=d}var c=A+v.length,i=h===A,r=s===c;return(!i&&r||i&&!r)&&(p==="forward"?s!==c&&s++:h!==A&&h--),{start:h,end:s}}};z.exports=P},44247:function(z){"use strict";var P={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1};z.exports=P},36105:function(z,P,o){"use strict";var x=o(44247);z.exports=x},97432:function(z){"use strict";z.exports={logSelectionStateFailure:function(){return null}}},42307:function(z,P,o){"use strict";var x=o(4516),b=o(13483),v=o(36105),A=o(43393),p=o(68750),B=o(81446),S=o(88687),d=o(54542),f=o(18467),h=o(73759),s=o(57429),a=o(14017),c=o(54879),i=o(36043),r=A.OrderedSet,u={replaceText:function(C,l,g,D,F){var y=a(C,l),L=c(y,l),T=x.create({style:D||r(),entity:F||null});return f(L,L.getSelectionAfter(),g,T)},insertText:function(C,l,g,D,F){return l.isCollapsed()||h(!1),u.replaceText(C,l,g,D,F)},moveText:function(C,l,g){var D=S(C,l),F=u.removeRange(C,l,"backward");return u.replaceWithFragment(F,g,D)},replaceWithFragment:function(C,l,g){var D=a(C,l),F=c(D,l);return d(F,F.getSelectionAfter(),g)},removeRange:function(C,l,g){var D=void 0,F=void 0,y=void 0,L=void 0;l.getIsBackward()&&(l=l.merge({anchorKey:l.getFocusKey(),anchorOffset:l.getFocusOffset(),focusKey:l.getAnchorKey(),focusOffset:l.getAnchorOffset(),isBackward:!1})),D=l.getAnchorKey(),F=l.getFocusKey(),y=C.getBlockForKey(D),L=C.getBlockForKey(F);var T=l.getStartOffset(),I=l.getEndOffset(),w=y.getEntityAt(T),H=L.getEntityAt(I-1);if(D===F&&w&&w===H){var j=B(C.getEntityMap(),y,L,l,g);return c(C,j)}var U=l;v.draft_segmented_entities_behavior&&(U=B(C.getEntityMap(),y,L,l,g));var O=a(C,U);return c(O,U)},splitBlock:function(C,l){var g=a(C,l),D=c(g,l);return i(D,D.getSelectionAfter())},applyInlineStyle:function(C,l,g){return b.add(C,l,g)},removeInlineStyle:function(C,l,g){return b.remove(C,l,g)},setBlockType:function(C,l,g){return s(C,l,function(D){return D.merge({type:g,depth:0})})},setBlockData:function(C,l,g){return s(C,l,function(D){return D.merge({data:g})})},mergeBlockData:function(C,l,g){return s(C,l,function(D){return D.merge({data:D.getData().merge(g)})})},applyEntity:function(C,l,g){var D=a(C,l);return p(D,l,g)}};z.exports=u},22146:function(z){"use strict";var P="-",o={encode:function(b,v,A){return b+P+v+P+A},decode:function(b){var v=b.split(P),A=v[0],p=v[1],B=v[2];return{blockKey:A,decoratorKey:parseInt(p,10),leafKey:parseInt(B,10)}}};z.exports=o},45712:function(z,P,o){"use strict";var x=o(27418),b=x||function(E){for(var C=1;C<arguments.length;C++){var l=arguments[C];for(var g in l)Object.prototype.hasOwnProperty.call(l,g)&&(E[g]=l[g])}return E},v=o(4516),A=o(2641),p=o(67953),B=o(36105),S=o(43393),d=o(67841),f=o(25027),h=o(69769),s=o(55283),a=S.List,c=S.Repeat,i=B.draft_tree_data_support,r=i?p:A,u={processHTML:function(C,l){return d(C,h,l)},processText:function(C,l,g){return C.reduce(function(D,F,y){F=s(F);var L=f(),T={key:L,type:g,text:F,characterList:a(c(l,F.length))};if(i&&y!==0){var I=y-1,w=D[I]=D[I].merge({nextSibling:L});T=b({},T,{prevSibling:w.getKey()})}return D.push(new r(T)),D},[])}};z.exports=u},73932:function(z,P,o){"use strict";var x=o(65724),b=x.getPunctuation(),v="['\u2018\u2019]",A="\\s|(?![_])"+b,p="^(?:"+A+")*(?:"+v+"|(?!"+A+").)*(?:(?!"+A+").)",B=new RegExp(p),S="(?:(?!"+A+").)(?:"+v+"|(?!"+A+").)*(?:"+A+")*$",d=new RegExp(S);function f(s,a){var c=a?d.exec(s):B.exec(s);return c?c[0]:s}var h={getBackward:function(a){return f(a,!0)},getForward:function(a){return f(a,!1)}};z.exports=h},86155:function(z){"use strict";var P={stringify:function(x){return"_"+String(x)},unstringify:function(x){return x.slice(1)}};z.exports=P},68957:function(z,P,o){"use strict";var x=o(27418),b=x||function(d){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var s in h)Object.prototype.hasOwnProperty.call(h,s)&&(d[s]=h[s])}return d},v=o(73759),A=function(f,h){for(var s=[].concat(f).reverse();s.length;){var a=s.pop();h(a);var c=a.children;Array.isArray(c)||v(!1),s=s.concat([].concat(c.reverse()))}},p=function(f){if(!(f&&f.type))return!1;var h=f.type;return h==="unordered-list-item"||h==="ordered-list-item"},B=function(f){Array.isArray(f.children)&&(f.children=f.children.map(function(h){return h.type===f.type?b({},h,{depth:(f.depth||0)+1}):h}))},S={fromRawTreeStateToRawState:function(f){var h=f.blocks,s=[];return Array.isArray(h)||v(!1),!Array.isArray(h)||!h.length?f:(A(h,function(a){var c=b({},a);p(a)&&(c.depth=c.depth||0,B(a)),delete c.children,s.push(c)}),f.blocks=s,b({},f,{blocks:s}))},fromRawStateToRawTreeState:function(f){var h={},s=[];return f.blocks.forEach(function(a){var c=p(a),i=a.depth||0,r=b({},a,{children:[]});if(!c){h={},s.push(r);return}if(h[i]=r,i>0){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;L<arguments.length;L++){var T=arguments[L];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(y[I]=T[I])}return y};function v(y,L){if(!(y instanceof L))throw new TypeError("Cannot call a class as a function")}var A=o(34365),p=o(66912),B=o(33337),S=o(43393),d=o(25110),f=S.OrderedSet,h=S.Record,s=S.Stack,a={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:s(),selection:null,treeMap:null,undoStack:s()},c=h(a),i=function(){y.createEmpty=function(T){return y.createWithContent(p.createFromText(""),T)},y.createWithContent=function(T,I){var w=T.getBlockMap().first().getKey();return y.create({currentContent:T,undoStack:s(),redoStack:s(),decorator:I||null,selection:d.createEmpty(w)})},y.create=function(T){var I=T.currentContent,w=T.decorator,H=b({},T,{treeMap:u(I,w),directionMap:B.getDirectionMap(I)});return new y(new c(H))},y.set=function(T,I){var w=T.getImmutable().withMutations(function(H){var j=H.get("decorator"),U=j;I.decorator===null?U=null:I.decorator&&(U=I.decorator);var O=I.currentContent||T.getCurrentContent();if(U!==j){var re=H.get("treeMap"),Q;U&&j?Q=C(O,O.getBlockMap(),re,U,j):Q=u(O,U),H.merge({decorator:U,treeMap:Q,nativelyRenderedContent:null});return}var ue=T.getCurrentContent();O!==ue&&H.set("treeMap",E(T,O.getBlockMap(),O.getEntityMap(),U)),H.merge(I)});return new y(w)},y.prototype.toJS=function(){return this.getImmutable().toJS()},y.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},y.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},y.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},y.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},y.prototype.getSelection=function(){return this.getImmutable().get("selection")},y.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},y.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},y.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},y.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},y.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},y.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},y.setInlineStyleOverride=function(T,I){return y.set(T,{inlineStyleOverride:I})},y.prototype.getCurrentInlineStyle=function(){var T=this.getInlineStyleOverride();if(T!=null)return T;var I=this.getCurrentContent(),w=this.getSelection();return w.isCollapsed()?g(I,w):D(I,w)},y.prototype.getBlockTree=function(T){return this.getImmutable().getIn(["treeMap",T])},y.prototype.isSelectionAtStartOfContent=function(){var T=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(T,0,0)},y.prototype.isSelectionAtEndOfContent=function(){var T=this.getCurrentContent(),I=T.getBlockMap(),w=I.last(),H=w.getLength();return this.getSelection().hasEdgeWithin(w.getKey(),H,H)},y.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},y.acceptSelection=function(T,I){return r(T,I,!1)},y.forceSelection=function(T,I){return I.getHasFocus()||(I=I.set("hasFocus",!0)),r(T,I,!0)},y.moveSelectionToEnd=function(T){var I=T.getCurrentContent(),w=I.getLastBlock(),H=w.getKey(),j=w.getLength();return y.acceptSelection(T,new d({anchorKey:H,anchorOffset:j,focusKey:H,focusOffset:j,isBackward:!1}))},y.moveFocusToEnd=function(T){var I=y.moveSelectionToEnd(T);return y.forceSelection(I,I.getSelection())},y.push=function(T,I,w){if(T.getCurrentContent()===I)return T;var H=w!=="insert-characters",j=B.getDirectionMap(I,T.getDirectionMap());if(!T.getAllowUndo())return y.set(T,{currentContent:I,directionMap:j,lastChangeType:w,selection:I.getSelectionAfter(),forceSelection:H,inlineStyleOverride:null});var U=T.getSelection(),O=T.getCurrentContent(),re=T.getUndoStack(),Q=I;U!==O.getSelectionAfter()||l(T,w)?(re=re.push(O),Q=Q.set("selectionBefore",U)):(w==="insert-characters"||w==="backspace-character"||w==="delete-character")&&(Q=Q.set("selectionBefore",O.getSelectionBefore()));var ue=T.getInlineStyleOverride(),Se=["adjust-depth","change-block-type","split-block"];Se.indexOf(w)===-1&&(ue=null);var ye={currentContent:Q,directionMap:j,undoStack:re,redoStack:s(),lastChangeType:w,selection:I.getSelectionAfter(),forceSelection:H,inlineStyleOverride:ue};return y.set(T,ye)},y.undo=function(T){if(!T.getAllowUndo())return T;var I=T.getUndoStack(),w=I.peek();if(!w)return T;var H=T.getCurrentContent(),j=B.getDirectionMap(w,T.getDirectionMap());return y.set(T,{currentContent:w,directionMap:j,undoStack:I.shift(),redoStack:T.getRedoStack().push(H),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:H.getSelectionBefore()})},y.redo=function(T){if(!T.getAllowUndo())return T;var I=T.getRedoStack(),w=I.peek();if(!w)return T;var H=T.getCurrentContent(),j=B.getDirectionMap(w,T.getDirectionMap());return y.set(T,{currentContent:w,directionMap:j,undoStack:T.getUndoStack().push(H),redoStack:I.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:w.getSelectionAfter()})};function y(L){v(this,y),this._immutable=L}return y.prototype.getImmutable=function(){return this._immutable},y}();function r(y,L,T){return i.set(y,{selection:L,forceSelection:T,nativelyRenderedContent:null,inlineStyleOverride:null})}function u(y,L){return y.getBlockMap().map(function(T){return A.generate(y,T,L)}).toOrderedMap()}function E(y,L,T,I){var w=y.getCurrentContent().set("entityMap",T),H=w.getBlockMap(),j=y.getImmutable().get("treeMap");return j.merge(L.toSeq().filter(function(U,O){return U!==H.get(O)}).map(function(U){return A.generate(w,U,I)}))}function C(y,L,T,I,w){return T.merge(L.toSeq().filter(function(H){return I.getDecorations(H,y)!==w.getDecorations(H,y)}).map(function(H){return A.generate(y,H,I)}))}function l(y,L){var T=y.getLastChangeType();return L!==T||L!=="insert-characters"&&L!=="backspace-character"&&L!=="delete-character"}function g(y,L){var T=L.getStartKey(),I=L.getStartOffset(),w=y.getBlockForKey(T);return I>0?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 I<w.getLength()?w.getInlineStyleAt(I):I>0?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()<c)return null;var i=h.getBlockAfter(s);if(!i||i.getType()!=="atomic")return null;var r=f.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),u=x.removeRange(h,r,"forward");return u!==h?b.push(d,u,"remove-range"):null},onTab:function(d,f,h){var s=f.getSelection(),a=s.getAnchorKey();if(a!==s.getFocusKey())return f;var c=f.getCurrentContent(),i=c.getBlockForKey(a),r=i.getType();if(r!=="unordered-list-item"&&r!=="ordered-list-item")return f;d.preventDefault();var u=c.getBlockBefore(a);if(!u)return f;var E=u.getType();if(E!=="unordered-list-item"&&E!=="ordered-list-item")return f;var C=i.getDepth();if(!d.shiftKey&&C===h)return f;h=Math.min(u.getDepth()+1,h);var l=A(c,s,d.shiftKey?-1:1,h);return b.push(f,l,"adjust-depth")},toggleBlockType:function(d,f){var h=d.getSelection(),s=h.getStartKey(),a=h.getEndKey(),c=d.getCurrentContent(),i=h;if(s!==a&&h.getEndOffset()===0){var r=p(c.getBlockBefore(a));a=r.getKey(),i=i.merge({anchorKey:s,anchorOffset:h.getStartOffset(),focusKey:a,focusOffset:r.getLength(),isBackward:!1})}var u=c.getBlockMap().skipWhile(function(C,l){return l!==s}).reverse().skipWhile(function(C,l){return l!==a}).some(function(C){return C.getType()==="atomic"});if(u)return d;var E=c.getBlockForKey(s).getType()===f?"unstyled":f;return b.push(d,x.setBlockType(c,i,E),"change-block-type")},toggleCode:function(d){var f=d.getSelection(),h=f.getAnchorKey(),s=f.getFocusKey();return f.isCollapsed()||h!==s?B.toggleBlockType(d,"code-block"):B.toggleInlineStyle(d,"CODE")},toggleInlineStyle:function(d,f){var h=d.getSelection(),s=d.getCurrentInlineStyle();if(h.isCollapsed())return b.setInlineStyleOverride(d,s.has(f)?s.remove(f):s.add(f));var a=d.getCurrentContent(),c;return s.has(f)?c=x.removeInlineStyle(a,h,f):c=x.applyInlineStyle(a,h,f),b.push(d,c,"change-inline-style")},toggleLink:function(d,f,h){var s=x.applyEntity(d.getCurrentContent(),f,h);return b.push(d,s,"apply-entity")},tryToRemoveBlockStyle:function(d){var f=d.getSelection(),h=f.getAnchorOffset();if(f.isCollapsed()&&h===0){var s=f.getAnchorKey(),a=d.getCurrentContent(),c=a.getBlockForKey(s),i=a.getFirstBlock();if(c.getLength()>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<p;)S=S.set(A,x.applyEntity(S.get(A),B)),A++;return v.set("characterList",S)}z.exports=b},68750:function(z,P,o){"use strict";var x=o(43393),b=o(2835);function v(A,p,B){var S=A.getBlockMap(),d=p.getStartKey(),f=p.getStartOffset(),h=p.getEndKey(),s=p.getEndOffset(),a=S.skipUntil(function(c,i){return i===d}).takeUntil(function(c,i){return i===h}).toOrderedMap().merge(x.OrderedMap([[h,S.get(h)]])).map(function(c,i){var r=i===d?f:0,u=i===h?s:c.getLength();return b(c,r,u,B)});return A.merge({blockMap:S.merge(a),selectionBefore:p,selectionAfter:p})}z.exports=v},79981:function(z,P,o){"use strict";var x=o(27418),b=x||function(i){for(var r=1;r<arguments.length;r++){var u=arguments[r];for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(i[E]=u[E])}return i},v=o(2641),A=o(67953),p=o(86155),B=o(56265),S=o(31487),d=o(73759),f=function(r,u){return{key:r.getKey(),text:r.getText(),type:r.getType(),depth:r.getDepth(),inlineStyleRanges:S(r),entityRanges:B(r,u),data:r.getData().toObject()}},h=function(r,u,E,C){if(r instanceof v){E.push(f(r,u));return}r instanceof A||d(!1);var l=r.getParentKey(),g=C[r.getKey()]=b({},f(r,u),{children:[]});if(l){C[l].children.push(g);return}E.push(g)},s=function(r,u){var E=u.entityMap,C=[],l={},g={},D=0;return r.getBlockMap().forEach(function(F){F.findEntityRanges(function(y){return y.getEntity()!==null},function(y){var L=F.getEntityAt(y),T=p.stringify(L);g[T]||(g[T]=L,E[T]=""+D,D++)}),h(F,E,C,l)}),{blocks:C,entityMap:E}},a=function(r,u){var E=u.blocks,C=u.entityMap,l={};return Object.keys(C).forEach(function(g,D){var F=r.getEntity(p.unstringify(g));l[D]={type:F.getType(),mutability:F.getMutability(),data:F.getData()}}),{blocks:E,entityMap:l}},c=function(r){var u={entityMap:{},blocks:[]};return u=s(r,u),u=a(r,u),u};z.exports=c},67841:function(z,P,o){"use strict";var x=v||function(te){for(var oe=1;oe<arguments.length;oe++){var le=arguments[oe];for(var pe in le)Object.prototype.hasOwnProperty.call(le,pe)&&(te[pe]=le[pe])}return te},b,v=o(27418);function A(te,oe,le){return oe in te?Object.defineProperty(te,oe,{value:le,enumerable:!0,configurable:!0,writable:!0}):te[oe]=le,te}var p=o(4516),B=o(2641),S=o(67953),d=o(526),f=o(82222),h=o(36105),s=o(43393),a=o(43393),c=a.Set,i=o(61425),r=o(62620),u=o(25027),E=o(69769),C=o(73759),l=o(55283),g=h.draft_tree_data_support,D=s.List,F=s.OrderedSet,y="&nbsp;",L=" ",T=4,I=new RegExp("\r","g"),w=new RegExp(`
`,"g"),H=new RegExp(y,"g"),j=new RegExp("&#13;?","g"),U=new RegExp("&#8203;?","g"),O=["bold","bolder","500","600","700","800","900"],re=["light","lighter","100","200","300","400"],Q={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},ue=(b={},A(b,r("public/DraftStyleDefault/depth0"),0),A(b,r("public/DraftStyleDefault/depth1"),1),A(b,r("public/DraftStyleDefault/depth2"),2),A(b,r("public/DraftStyleDefault/depth3"),3),A(b,r("public/DraftStyleDefault/depth4"),4),b),Se=["className","href","rel","target","title"],ye=["alt","className","height","src","width"],V=void 0,Be={text:"",inlines:[],entities:[],blocks:[]},ze={children:D(),depth:0,key:"",type:""},Le=function(oe,le){return oe==="li"?le==="ol"?"ordered-list-item":"unordered-list-item":null},Ue=function(oe){var le=oe.get("unstyled").element,pe=c([]);return oe.forEach(function(Ae){Ae.aliasedElements&&Ae.aliasedElements.forEach(function(ve){pe=pe.add(ve)}),pe=pe.add(Ae.element)}),pe.filter(function(Ae){return Ae&&Ae!==le}).toArray().sort()},ot=function(oe,le,pe){for(var Ae=0;Ae<pe.length;Ae++){var ve=pe[Ae](oe,le);if(ve)return ve}return null},at=function(oe,le,pe){var Ae=pe.filter(function(ve){return ve.element===oe||ve.wrapper===oe||ve.aliasedElements&&ve.aliasedElements.some(function(Fe){return Fe===oe})}).keySeq().toSet().toArray().sort();switch(Ae.length){case 0:return"unstyled";case 1:return Ae[0];default:return ot(oe,le,[Le])||"unstyled"}},_e=function(oe,le,pe){var Ae=Q[oe];if(Ae)pe=pe.add(Ae).toOrderedSet();else if(le instanceof HTMLElement){var ve=le;pe=pe.withMutations(function(Fe){var Ie=ve.style.fontWeight,Me=ve.style.fontStyle,We=ve.style.textDecoration;O.indexOf(Ie)>=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;U<arguments.length;U++){var O=arguments[U];for(var re in O)Object.prototype.hasOwnProperty.call(O,re)&&(j[re]=O[re])}return j},v=o(2641),A=o(67953),p=o(66912),B=o(82222),S=o(36105),d=o(68957),f=o(43393),h=o(25110),s=o(86019),a=o(67134),c=o(59672),i=o(25027),r=o(73759),u=S.draft_tree_data_support,E=f.List,C=f.Map,l=f.OrderedMap,g=function(U,O){var re=U.key,Q=U.type,ue=U.data,Se=U.text,ye=U.depth,V={text:Se,depth:ye||0,type:Q||"unstyled",key:re||i(),data:C(ue),characterList:D(U,O)};return V},D=function(U,O){var re=U.text,Q=U.entityRanges,ue=U.inlineStyleRanges,Se=Q||[],ye=ue||[];return s(c(re,ye),a(re,Se.filter(function(V){return O.hasOwnProperty(V.key)}).map(function(V){return b({},V,{key:O[V.key]})})))},F=function(U){return b({},U,{key:U.key||i()})},y=function(U,O,re){var Q=O.map(function(ue){return b({},ue,{parentRef:re})});return U.concat(Q.reverse())},L=function(U,O){return U.map(F).reduce(function(re,Q,ue){Array.isArray(Q.children)||r(!1);var Se=Q.children.map(F),ye=new A(b({},g(Q,O),{prevSibling:ue===0?null:U[ue-1].key,nextSibling:ue===U.length-1?null:U[ue+1].key,children:E(Se.map(function(Ze){return Ze.key}))}));re=re.set(ye.getKey(),ye);for(var V=y([],Se,ye);V.length>0;){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;h<f;h++)B[h]=S.key}),B}z.exports=v},59672:function(z,P,o){"use strict";var x=o(43393),b=x.OrderedSet,v=o(38935),A=v.substr,p=b();function B(S,d){var f=Array(S.length).fill(p);return d&&d.forEach(function(h){for(var s=A(S,0,h.offset).length,a=s+A(S,h.offset,h.length).length;s<a;)f[s]=f[s].add(h.style),s++}),f}z.exports=B},26396:function(z,P,o){"use strict";var x=o(34365),b=o(42307),v=o(14289),A=o(4856),p=o(42128),B=o(42177),S=o(40258),d=o(22045),f=o(56926),h="'",s="/",a=A.isBrowser("Firefox");function c(u){return a&&(u==h||u==s)}function i(u,E,C,l){var g=b.replaceText(u.getCurrentContent(),u.getSelection(),E,C,l);return v.push(u,g,"insert-characters")}function r(u,E){u._pendingStateFromBeforeInput!==void 0&&(u.update(u._pendingStateFromBeforeInput),u._pendingStateFromBeforeInput=void 0);var C=u._latestEditorState,l=E.data;if(!!l){if(u.props.handleBeforeInput&&B(u.props.handleBeforeInput(l,C))){E.preventDefault();return}var g=C.getSelection(),D=g.getStartOffset(),F=g.getEndOffset(),y=g.getAnchorKey();if(!g.isCollapsed()){E.preventDefault();var L=C.getCurrentContent().getPlainText().slice(D,F);l===L?u.update(v.forceSelection(C,g.merge({focusOffset:F}))):u.update(i(C,l,C.getCurrentInlineStyle(),p(C.getCurrentContent(),C.getSelection())));return}var T=i(C,l,C.getCurrentInlineStyle(),p(C.getCurrentContent(),C.getSelection())),I=!1;if(I||(I=S(u._latestCommittedEditorState)),!I){var w=o.g.getSelection();if(w.anchorNode&&w.anchorNode.nodeType===Node.TEXT_NODE){var H=w.anchorNode.parentNode;I=H.nodeName==="SPAN"&&H.firstChild.nodeType===Node.TEXT_NODE&&H.firstChild.nodeValue.indexOf(" ")!==-1}}if(!I){var j=x.getFingerprint(C.getBlockTree(y)),U=x.getFingerprint(T.getBlockTree(y));I=j!==U}if(I||(I=c(l)),I||(I=d(T.getDirectionMap()).get(y)!==d(C.getDirectionMap()).get(y)),I){E.preventDefault(),u.update(T);return}T=v.set(T,{nativelyRenderedContent:T.getCurrentContent()}),u._pendingStateFromBeforeInput=T,f(function(){u._pendingStateFromBeforeInput!==void 0&&(u.update(u._pendingStateFromBeforeInput),u._pendingStateFromBeforeInput=void 0)})}}z.exports=r},43421:function(z,P,o){"use strict";var x=o(14289),b=o(67476),v=o(31003);function A(p,B){if(v()===document.body){var S=o.g.getSelection(),d=p.editor;S.rangeCount===1&&b(d,S.anchorNode)&&b(d,S.focusNode)&&S.removeAllRanges()}var f=p._latestEditorState,h=f.getSelection();if(!!h.getHasFocus()){var s=h.set("hasFocus",!1);p.props.onBlur&&p.props.onBlur(B),p.update(x.acceptSelection(f,s))}}z.exports=A},6155:function(z,P,o){"use strict";var x=o(14289);function b(v,A){v.setMode("composite"),v.update(x.set(v._latestEditorState,{inCompositionMode:!0})),v._onCompositionStart(A)}z.exports=b},69328:function(z,P,o){"use strict";var x=o(94882);function b(v,A){var p=v._latestEditorState,B=p.getSelection();if(B.isCollapsed()){A.preventDefault();return}v.setClipboard(x(v._latestEditorState))}z.exports=b},88922:function(z,P,o){"use strict";var x=o(42307),b=o(14289),v=o(19051),A=o(94882),p=o(79749);function B(d,f){var h=d._latestEditorState,s=h.getSelection(),a=f.target,c=void 0;if(s.isCollapsed()){f.preventDefault();return}a instanceof Node&&(c=p(v.getScrollParent(a)));var i=A(h);d.setClipboard(i),d.setMode("cut"),setTimeout(function(){d.restoreEditorDOM(c),d.exitCurrentMode(),d.update(S(h))},0)}function S(d){var f=x.removeRange(d.getCurrentContent(),d.getSelection(),"forward");return b.push(d,f,"remove-range")}z.exports=B},39499:function(z){"use strict";function P(o,x){o._internalDrag=!1,o.setMode("drag"),x.preventDefault()}z.exports=P},80981:function(z){"use strict";function P(o){o._internalDrag=!0,o.setMode("drag")}z.exports=P},62186:function(z,P,o){"use strict";var x=o(14289),b=o(4856);function v(A,p){var B=A._latestEditorState,S=B.getSelection();if(!S.getHasFocus()){var d=S.set("hasFocus",!0);A.props.onFocus&&A.props.onFocus(p),b.isBrowser("Chrome < 60.0.3081.0")?A.update(x.forceSelection(B,d)):A.update(x.acceptSelection(B,d))}}z.exports=v},29971:function(z,P,o){"use strict";var x=o(36105),b=o(42307),v=o(22146),A=o(14289),p=o(4856),B=o(69270),S=o(22045),d=p.isEngine("Gecko"),f=`
`;function h(s){s._pendingStateFromBeforeInput!==void 0&&(s.update(s._pendingStateFromBeforeInput),s._pendingStateFromBeforeInput=void 0);var a=o.g.getSelection(),c=a.anchorNode,i=a.isCollapsed,r=c.nodeType!==Node.TEXT_NODE,u=c.nodeType!==Node.TEXT_NODE&&c.nodeType!==Node.ELEMENT_NODE;if(x.draft_killswitch_allow_nontextnodes){if(r)return}else if(u)return;if(c.nodeType===Node.TEXT_NODE&&(c.previousSibling!==null||c.nextSibling!==null)){var E=c.parentNode;c.nodeValue=E.textContent;for(var C=E.firstChild;C!==null;C=C.nextSibling)C!==c&&E.removeChild(C)}var l=c.textContent,g=s._latestEditorState,D=S(B(c)),F=v.decode(D),y=F.blockKey,L=F.decoratorKey,T=F.leafKey,I=g.getBlockTree(y).getIn([L,"leaves",T]),w=I.start,H=I.end,j=g.getCurrentContent(),U=j.getBlockForKey(y),O=U.getText().slice(w,H);if(l.endsWith(f)&&(l=l.slice(0,-1)),l!==O){var re=g.getSelection(),Q=re.merge({anchorOffset:w,focusOffset:H,isBackward:!1}),ue=U.getEntityAt(w),Se=ue&&j.getEntity(ue),ye=Se&&Se.getMutability(),V=ye==="MUTABLE",Be=V?"spellcheck-change":"apply-entity",ze=b.replaceText(j,Q,l,U.getInlineStyleAt(w),V?U.getEntityAt(w):null),Le,Ue,ot,at;if(d)Le=a.anchorOffset,Ue=a.focusOffset,ot=w+Math.min(Le,Ue),at=ot+Math.abs(Le-Ue),Le=ot,Ue=at;else{var _e=l.length-O.length;ot=re.getStartOffset(),at=re.getEndOffset(),Le=i?at+_e:ot,Ue=at+_e}var Ze=ze.merge({selectionBefore:j.getSelectionAfter(),selectionAfter:re.merge({anchorOffset:Le,focusOffset:Ue})});s.update(A.push(g,Ze,Be))}}z.exports=h},46397:function(z,P,o){"use strict";var x=o(42307),b=o(14289),v=o(47387),A=o(25399),p=o(83751),B=o(4856),S=o(42177),d=o(49779),f=o(51050),h=o(13767),s=o(77978),a=o(67217),c=o(8425),i=o(62800),r=o(13998),u=o(53318),E=o(87051),C=v.isOptionKeyCommand,l=B.isBrowser("Chrome");function g(F,y){switch(F){case"redo":return b.redo(y);case"delete":return r(y);case"delete-word":return h(y);case"backspace":return i(y);case"backspace-word":return f(y);case"backspace-to-start-of-line":return d(y);case"split-block":return s(y);case"transpose-characters":return u(y);case"move-selection-to-start-of-block":return c(y);case"move-selection-to-end-of-block":return a(y);case"secondary-cut":return p.cut(y);case"secondary-paste":return p.paste(y);default:return y}}function D(F,y){var L=y.which,T=F._latestEditorState;switch(L){case A.RETURN:if(y.preventDefault(),F.props.handleReturn&&S(F.props.handleReturn(y,T)))return;break;case A.ESC:y.preventDefault(),F.props.onEscape&&F.props.onEscape(y);return;case A.TAB:F.props.onTab&&F.props.onTab(y);return;case A.UP:F.props.onUpArrow&&F.props.onUpArrow(y);return;case A.RIGHT:F.props.onRightArrow&&F.props.onRightArrow(y);return;case A.DOWN:F.props.onDownArrow&&F.props.onDownArrow(y);return;case A.LEFT:F.props.onLeftArrow&&F.props.onLeftArrow(y);return;case A.SPACE:if(l&&C(y)){y.preventDefault();var I=x.replaceText(T.getCurrentContent(),T.getSelection(),"\xA0");F.update(b.push(T,I,"insert-characters"));return}}var w=F.props.keyBindingFn(y);if(!!w){if(w==="undo"){E(y,T,F.update);return}if(y.preventDefault(),!(F.props.handleKeyCommand&&S(F.props.handleKeyCommand(w,T)))){var H=g(w,T);H!==T&&F.update(H)}}}z.exports=D},6089:function(z,P,o){"use strict";var x=o(10329),b=o(4516),v=o(44891),A=o(42307),p=o(45712),B=o(14289),S=o(41947),d=o(42128),f=o(21738),h=o(42177),s=o(44300);function a(r,u){u.preventDefault();var E=new v(u.clipboardData);if(!E.isRichText()){var C=E.getFiles(),l=E.getText();if(C.length>0){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<d.length;i++){var r=d[i];r.width===0||r.width===1||(h=Math.min(h,r.top),s=Math.min(s,r.bottom),a=Math.max(a,r.top),c=Math.max(c,r.bottom))}return a<=s&&a-h<f&&c-s<f}function B(d){switch(d.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return d.length;default:return d.childNodes.length}}function S(d){d.collapsed||v(!1),d=d.cloneRange();var f=d.startContainer;f.nodeType!==1&&(f=f.parentNode);var h=A(f),s=d.endContainer,a=d.endOffset;for(d.setStart(d.startContainer,0);p(b(d),h)&&(s=d.startContainer,a=d.startOffset,s.parentNode||v(!1),d.setStartBefore(s),!(s.nodeType===1&&getComputedStyle(s).display!=="inline")););var c=s,i=a-1;do{for(var r=c.nodeValue,u=i;u>=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;s<A.length;s++){var a=A[s];a.height!==0&&a.width!==0&&(p=Math.min(p,a.top),B=Math.max(B,a.right),S=Math.max(S,a.bottom),d=Math.min(d,a.left))}}return{top:p,right:B,bottom:S,left:d,width:B-d,height:S-p}}z.exports=b},6092:function(z,P,o){"use strict";var x=o(4856),b=o(73759),v=x.isBrowser("Chrome");function A(B){for(var S=B.cloneRange(),d=[],f=B.endContainer;f!=null;f=f.parentNode){var h=f===B.commonAncestorContainer;h?S.setStart(B.startContainer,B.startOffset):S.setStart(S.endContainer,0);var s=Array.from(S.getClientRects());if(d.push(s),h){var a;return d.reverse(),(a=[]).concat.apply(a,d)}S.setEndBefore(f)}b(!1)}var p=v?A:function(B){return Array.from(B.getClientRects())};z.exports=p},64994:function(z,P,o){"use strict";var x=o(73759);function b(v,A){var p=[];return v.findEntityRanges(function(B){return B.getEntity()===A},function(B,S){p.push({start:B,end:S})}),p.length||x(!1),p}z.exports=b},69769:function(z,P,o){"use strict";var x=o(4856),b=o(73759),v=x.isBrowser("IE <= 9");function A(p){var B,S=null;return!v&&document.implementation&&document.implementation.createHTMLDocument&&(B=document.implementation.createHTMLDocument("foo"),B.documentElement||b(!1),B.documentElement.innerHTML=p,S=B.getElementsByTagName("body")[0]),S}z.exports=A},93578:function(z){"use strict";function P(o){if(o instanceof Element){var x=o.getAttribute("data-offset-key");if(x)return x;for(var b=0;b<o.childNodes.length;b++){var v=P(o.childNodes[b]);if(v)return v}}return null}z.exports=P},21738:function(z,P,o){"use strict";var x=o(73759),b=/\.textClipping$/,v={"text/plain":!0,"text/html":!0,"text/rtf":!0},A=5e3;function p(S,d){var f=0,h=[];S.forEach(function(s){B(s,function(a){f++,a&&h.push(a.slice(0,A)),f==S.length&&d(h.join("\r"))})})}function B(S,d){if(!o.g.FileReader||S.type&&!(S.type in v)){d("");return}if(S.type===""){var f="";b.test(S.name)&&(f=S.name.replace(b,"")),d(f);return}var h=new FileReader;h.onload=function(){var s=h.result;typeof s!="string"&&x(!1),d(s)},h.onerror=function(){d("")},h.readAsText(S)}z.exports=p},94486:function(z,P,o){"use strict";var x=o(22146),b=o(22045);function v(A,p,B,S,d){var f=b(A.getSelection()),h=x.decode(p),s=h.blockKey,a=A.getBlockTree(s).getIn([h.decoratorKey,"leaves",h.leafKey]),c=x.decode(S),i=c.blockKey,r=A.getBlockTree(i).getIn([c.decoratorKey,"leaves",c.leafKey]),u=a.get("start"),E=r.get("start"),C=a?u+B:null,l=r?E+d:null,g=f.getAnchorKey()===s&&f.getAnchorOffset()===C&&f.getFocusKey()===i&&f.getFocusOffset()===l;if(g)return f;var D=!1;if(s===i){var F=a.get("end"),y=r.get("end");E===u&&y===F?D=d<B:D=E<u}else{var L=A.getCurrentContent().getBlockMap().keySeq().skipUntil(function(T){return T===s||T===i}).first();D=L===i}return f.merge({anchorKey:s,anchorOffset:C,focusKey:i,focusOffset:l,isBackward:D})}z.exports=v},96629:function(z,P,o){"use strict";var x=o(98056);function b(v){var A=v.getSelection();if(!A.rangeCount)return null;var p=A.getRangeAt(0),B=x(p),S=B.top,d=B.right,f=B.bottom,h=B.left;return S===0&&d===0&&f===0&&h===0?null:B}z.exports=b},54542:function(z,P,o){"use strict";var x=o(10329),b=o(67953),v=o(43393),A=o(40779),p=o(73759),B=o(98555),S=v.List,d=function(u,E,C,l,g,D){var F=C.get(g),y=F.getText(),L=F.getCharacterList(),T=g,I=D+l.getText().length,w=F.merge({text:y.slice(0,D)+l.getText()+y.slice(D),characterList:A(L,l.getCharacterList(),D),data:l.getData()});return u.merge({blockMap:C.set(g,w),selectionBefore:E,selectionAfter:E.merge({anchorKey:T,anchorOffset:I,focusKey:T,focusOffset:I,isBackward:!1})})},f=function(u,E,C){var l=u.getText(),g=u.getCharacterList(),D=l.slice(0,E),F=g.slice(0,E),y=C.first();return u.merge({text:D+y.getText(),characterList:F.concat(y.getCharacterList()),type:D?u.getType():y.getType(),data:y.getData()})},h=function(u,E,C){var l=u.getText(),g=u.getCharacterList(),D=l.length,F=l.slice(E,D),y=g.slice(E,D),L=C.last();return L.merge({text:L.getText()+F,characterList:L.getCharacterList().concat(y),data:L.getData()})},s=function(u,E){var C=u.getKey(),l=u,g=[];for(E.get(C)&&g.push(C);l&&l.getNextSiblingKey();){var D=l.getNextSiblingKey();if(!D)break;g.push(D),l=E.get(D)}return g},a=function(u,E,C,l){return u.withMutations(function(g){var D=C.getKey(),F=l.getKey(),y=C.getNextSiblingKey(),L=C.getParentKey(),T=s(l,u),I=T[T.length-1];if(g.get(F)?(g.setIn([D,"nextSibling"],F),g.setIn([F,"prevSibling"],D)):(g.setIn([D,"nextSibling"],l.getNextSiblingKey()),g.setIn([l.getNextSiblingKey(),"prevSibling"],D)),g.setIn([I,"nextSibling"],y),y&&g.setIn([y,"prevSibling"],I),T.forEach(function(re){return g.setIn([re,"parent"],L)}),L){var w=u.get(L),H=w.getChildKeys(),j=H.indexOf(D),U=j+1,O=H.toArray();O.splice.apply(O,[U,0].concat(T)),g.setIn([L,"children"],S(O))}})},c=function(u,E,C,l,g,D){var F=C.first()instanceof b,y=[],L=l.size,T=C.get(g),I=l.first(),w=l.last(),H=w.getLength(),j=w.getKey(),U=F&&(!T.getChildKeys().isEmpty()||!I.getChildKeys().isEmpty());C.forEach(function(re,Q){if(Q!==g){y.push(re);return}U?y.push(re):y.push(f(re,D,l)),l.slice(U?0:1,L-1).forEach(function(ue){return y.push(ue)}),y.push(h(re,D,l))});var O=x.createFromArray(y);return F&&(O=a(O,C,T,I)),u.merge({blockMap:O,selectionBefore:E,selectionAfter:E.merge({anchorKey:j,anchorOffset:H,focusKey:j,focusOffset:H,isBackward:!1})})},i=function(u,E,C){E.isCollapsed()||p(!1);var l=u.getBlockMap(),g=B(C),D=E.getStartKey(),F=E.getStartOffset(),y=l.get(D);return y instanceof b&&(y.getChildKeys().isEmpty()||p(!1)),g.size===1?d(u,E,l,g.first(),D,F):c(u,E,l,g,D,F)};z.exports=i},40779:function(z){"use strict";function P(o,x,b){if(b===o.count())x.forEach(function(p){o=o.push(p)});else if(b===0)x.reverse().forEach(function(p){o=o.unshift(p)});else{var v=o.slice(0,b),A=o.slice(b);o=v.concat(x,A).toList()}return o}z.exports=P},18467:function(z,P,o){"use strict";var x=o(43393),b=o(40779),v=o(73759),A=x.Repeat;function p(B,S,d,f){S.isCollapsed()||v(!1);var h=d.length;if(!h)return B;var s=B.getBlockMap(),a=S.getStartKey(),c=S.getStartOffset(),i=s.get(a),r=i.getText(),u=i.merge({text:r.slice(0,c)+d+r.slice(c,i.getLength()),characterList:b(i.getCharacterList(),A(f,h).toList(),c)}),E=c+h;return B.merge({blockMap:s.set(a,u),selectionAfter:S.merge({anchorOffset:E,focusOffset:E})})}z.exports=p},42177:function(z){"use strict";function P(o){return o==="handled"||o===!0}z.exports=P},40258:function(z){"use strict";function P(o){var x=o.getSelection(),b=x.getAnchorKey(),v=o.getBlockTree(b),A=x.getStartOffset(),p=!1;return v.some(function(B){return A===B.get("start")?(p=!0,!0):A<B.get("end")?B.get("leaves").some(function(S){var d=S.get("start");return A===d?(p=!0,!0):!1}):!1}),p}z.exports=P},49779:function(z,P,o){"use strict";var x=o(14289),b=o(88182),v=o(8101),A=o(53268),p=o(14730);function B(S){var d=p(S,function(f){var h=f.getSelection();if(h.isCollapsed()&&h.getAnchorOffset()===0)return A(f,1);var s=o.g.getSelection(),a=s.getRangeAt(0);return a=b(a),v(f,null,a.endContainer,a.endOffset,a.startContainer,a.startOffset).selectionState},"backward");return d===S.getCurrentContent()?S:x.push(S,d,"remove-range")}z.exports=B},51050:function(z,P,o){"use strict";var x=o(73932),b=o(14289),v=o(53268),A=o(14730);function p(B){var S=A(B,function(d){var f=d.getSelection(),h=f.getStartOffset();if(h===0)return v(d,1);var s=f.getStartKey(),a=d.getCurrentContent(),c=a.getBlockForKey(s).getText().slice(0,h),i=x.getBackward(c);return v(d,i.length||1)},"backward");return S===B.getCurrentContent()?B:b.push(B,S,"remove-range")}z.exports=p},13767:function(z,P,o){"use strict";var x=o(73932),b=o(14289),v=o(19417),A=o(14730);function p(B){var S=A(B,function(d){var f=d.getSelection(),h=f.getStartOffset(),s=f.getStartKey(),a=d.getCurrentContent(),c=a.getBlockForKey(s).getText().slice(h),i=x.getForward(c);return v(d,i.length||1)},"forward");return S===B.getCurrentContent()?B:b.push(B,S,"remove-range")}z.exports=p},77978:function(z,P,o){"use strict";var x=o(42307),b=o(14289);function v(A){var p=x.splitBlock(A.getCurrentContent(),A.getSelection());return b.push(A,p,"split-block")}z.exports=v},67217:function(z,P,o){"use strict";var x=o(14289);function b(v){var A=v.getSelection(),p=A.getEndKey(),B=v.getCurrentContent(),S=B.getBlockForKey(p).getLength();return x.set(v,{selection:A.merge({anchorKey:p,anchorOffset:S,focusKey:p,focusOffset:S,isBackward:!1}),forceSelection:!0})}z.exports=b},8425:function(z,P,o){"use strict";var x=o(14289);function b(v){var A=v.getSelection(),p=A.getStartKey();return x.set(v,{selection:A.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1}),forceSelection:!0})}z.exports=b},62800:function(z,P,o){"use strict";var x=o(14289),b=o(38935),v=o(53268),A=o(14730);function p(B){var S=A(B,function(f){var h=f.getSelection(),s=f.getCurrentContent(),a=h.getAnchorKey(),c=h.getAnchorOffset(),i=s.getBlockForKey(a).getText()[c-1];return v(f,i?b.getUTF16Length(i,0):1)},"backward");if(S===B.getCurrentContent())return B;var d=B.getSelection();return x.push(B,S.set("selectionBefore",d),d.isCollapsed()?"backspace-character":"remove-range")}z.exports=p},13998:function(z,P,o){"use strict";var x=o(14289),b=o(38935),v=o(19417),A=o(14730);function p(B){var S=A(B,function(f){var h=f.getSelection(),s=f.getCurrentContent(),a=h.getAnchorKey(),c=h.getAnchorOffset(),i=s.getBlockForKey(a).getText()[c];return v(f,i?b.getUTF16Length(i,0):1)},"forward");if(S===B.getCurrentContent())return B;var d=B.getSelection();return x.push(B,S.set("selectionBefore",d),d.isCollapsed()?"delete-character":"remove-range")}z.exports=p},53318:function(z,P,o){"use strict";var x=o(42307),b=o(14289),v=o(88687);function A(p){var B=p.getSelection();if(!B.isCollapsed())return p;var S=B.getAnchorOffset();if(S===0)return p;var d=B.getAnchorKey(),f=p.getCurrentContent(),h=f.getBlockForKey(d),s=h.getLength();if(s<=1)return p;var a,c;S===s?(a=B.set("anchorOffset",S-1),c=B):(a=B.set("focusOffset",S+1),c=a.set("anchorOffset",S+1));var i=v(f,a),r=x.removeRange(f,a,"backward"),u=r.getSelectionAfter(),E=u.getAnchorOffset()-1,C=u.merge({anchorOffset:E,focusOffset:E}),l=x.replaceWithFragment(r,C,i),g=b.push(p,l,"insert-fragment");return b.acceptSelection(g,c)}z.exports=A},87051:function(z,P,o){"use strict";var x=o(14289);function b(v,A,p){var B=x.undo(A);if(A.getLastChangeType()==="spellcheck-change"){var S=B.getCurrentContent();p(x.set(B,{nativelyRenderedContent:S}));return}if(v.preventDefault(),!A.getNativelyRenderedContent()){p(B);return}p(x.set(A,{nativelyRenderedContent:null})),setTimeout(function(){p(B)},0)}z.exports=b},57429:function(z,P,o){"use strict";var x=o(43393),b=x.Map;function v(A,p,B){var S=p.getStartKey(),d=p.getEndKey(),f=A.getBlockMap(),h=f.toSeq().skipUntil(function(s,a){return a===S}).takeUntil(function(s,a){return a===d}).concat(b([[d,f.get(d)]])).map(B);return A.merge({blockMap:f.merge(h),selectionBefore:p,selectionAfter:p})}z.exports=v},61173:function(z,P,o){"use strict";var x=o(67953),b=o(43393),v=o(39506),A=o(73759),p=b.OrderedMap,B=b.List,S=function(s,a,c){if(!!s){var i=a.get(s);!i||a.set(s,c(i))}},d=function(s,a,c,i,r){if(!r)return s;var u=i==="after",E=a.getKey(),C=c.getKey(),l=a.getParentKey(),g=a.getNextSiblingKey(),D=a.getPrevSiblingKey(),F=c.getParentKey(),y=u?c.getNextSiblingKey():C,L=u?C:c.getPrevSiblingKey();return s.withMutations(function(T){S(l,T,function(I){var w=I.getChildKeys();return I.merge({children:w.delete(w.indexOf(E))})}),S(D,T,function(I){return I.merge({nextSibling:g})}),S(g,T,function(I){return I.merge({prevSibling:D})}),S(y,T,function(I){return I.merge({prevSibling:E})}),S(L,T,function(I){return I.merge({nextSibling:E})}),S(F,T,function(I){var w=I.getChildKeys(),H=w.indexOf(C),j=u?H+1:H!==0?H-1:0,U=w.toArray();return U.splice(j,0,E),I.merge({children:B(U)})}),S(E,T,function(I){return I.merge({nextSibling:y,prevSibling:L,parent:F})})})},f=function(s,a,c,i){i==="replace"&&A(!1);var r=c.getKey(),u=a.getKey();u===r&&A(!1);var E=s.getBlockMap(),C=a instanceof x,l=[a],g=E.delete(u);C&&(l=[],g=E.withMutations(function(w){var H=a.getNextSiblingKey(),j=v(a,w);w.toSeq().skipUntil(function(U){return U.getKey()===u}).takeWhile(function(U){var O=U.getKey(),re=O===u,Q=H&&O!==H,ue=!H&&U.getParentKey()&&(!j||O!==j);return!!(re||Q||ue)}).forEach(function(U){l.push(U),w.delete(U.getKey())})}));var D=g.toSeq().takeUntil(function(w){return w===c}),F=g.toSeq().skipUntil(function(w){return w===c}).skip(1),y=l.map(function(w){return[w.getKey(),w]}),L=p();if(i==="before"){var T=s.getBlockBefore(r);!T||T.getKey()!==a.getKey()||A(!1),L=D.concat([].concat(y,[[r,c]]),F).toOrderedMap()}else if(i==="after"){var I=s.getBlockAfter(r);!I||I.getKey()!==u||A(!1),L=D.concat([[r,c]].concat(y),F).toOrderedMap()}return s.merge({blockMap:d(L,a,c,i,C),selectionBefore:s.getSelectionAfter(),selectionAfter:s.getSelectionAfter().merge({anchorKey:u,focusKey:u})})};z.exports=f},53268:function(z){"use strict";function P(o,x){var b=o.getSelection(),v=o.getCurrentContent(),A=b.getStartKey(),p=b.getStartOffset(),B=A,S=0;if(x>p){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=f<h.count()?h.get(f):void 0,c=s?s.getEntity():void 0,i=a?a.getEntity():void 0;if(i&&i===c){var r=S.__get(i);if(r.getMutability()!=="MUTABLE"){for(var u=p(h,i,f),E=u.start,C=u.end,l;E<C;)l=h.get(E),h=h.set(E,x.applyEntity(l,null)),E++;return d.set("characterList",h)}}return d}z.exports=A},54879:function(z,P,o){"use strict";var x=o(67953),b=o(43393),v=o(39506),A=b.List,p=b.Map,B=function(r,u,E){if(!!r){var C=u.get(r);!C||u.set(r,E(C))}},S=function(r,u){var E=[];if(!r)return E;for(var C=u.get(r);C&&C.getParentKey();){var l=C.getParentKey();l&&E.push(l),C=l?u.get(l):null}return E},d=function(r,u){var E=[];if(!r)return E;for(var C=v(r,u);C&&u.get(C);){var l=u.get(C);E.push(C),C=l.getParentKey()?v(l,u):null}return E},f=function(r,u,E){if(!r)return null;for(var C=E.get(r.getKey()).getNextSiblingKey();C&&!u.get(C);)C=E.get(C).getNextSiblingKey()||null;return C},h=function(r,u,E){if(!r)return null;for(var C=E.get(r.getKey()).getPrevSiblingKey();C&&!u.get(C);)C=E.get(C).getPrevSiblingKey()||null;return C},s=function(r,u,E,C){return r.withMutations(function(l){B(u.getKey(),l,function(g){return g.merge({nextSibling:f(u,l,C),prevSibling:h(u,l,C)})}),B(E.getKey(),l,function(g){return g.merge({nextSibling:f(E,l,C),prevSibling:h(E,l,C)})}),S(u.getKey(),C).forEach(function(g){return B(g,l,function(D){return D.merge({children:D.getChildKeys().filter(function(F){return l.get(F)}),nextSibling:f(D,l,C),prevSibling:h(D,l,C)})})}),B(u.getNextSiblingKey(),l,function(g){return g.merge({prevSibling:u.getPrevSiblingKey()})}),B(u.getPrevSiblingKey(),l,function(g){return g.merge({nextSibling:f(u,l,C)})}),B(E.getNextSiblingKey(),l,function(g){return g.merge({prevSibling:h(E,l,C)})}),B(E.getPrevSiblingKey(),l,function(g){return g.merge({nextSibling:E.getNextSiblingKey()})}),S(E.getKey(),C).forEach(function(g){B(g,l,function(D){return D.merge({children:D.getChildKeys().filter(function(F){return l.get(F)}),nextSibling:f(D,l,C),prevSibling:h(D,l,C)})})}),d(E,C).forEach(function(g){return B(g,l,function(D){return D.merge({nextSibling:f(D,l,C),prevSibling:h(D,l,C)})})})})},a=function(r,u){if(u.isCollapsed())return r;var E=r.getBlockMap(),C=u.getStartKey(),l=u.getStartOffset(),g=u.getEndKey(),D=u.getEndOffset(),F=E.get(C),y=E.get(g),L=F instanceof x,T=[];if(L){var I=y.getChildKeys(),w=S(g,E);y.getNextSiblingKey()&&(T=T.concat(w)),I.isEmpty()||(T=T.concat(w.concat([g]))),T=T.concat(S(v(y,E),E))}var H=void 0;F===y?H=c(F.getCharacterList(),l,D):H=F.getCharacterList().slice(0,l).concat(y.getCharacterList().slice(D));var j=F.merge({text:F.getText().slice(0,l)+y.getText().slice(D),characterList:H}),U=E.toSeq().skipUntil(function(re,Q){return Q===C}).takeUntil(function(re,Q){return Q===g}).filter(function(re,Q){return T.indexOf(Q)===-1}).concat(p([[g,null]])).map(function(re,Q){return Q===C?j:null}),O=E.merge(U).filter(function(re){return!!re});return L&&(O=s(O,F,y,E)),r.merge({blockMap:O,selectionBefore:u,selectionAfter:u.merge({anchorKey:C,anchorOffset:l,focusKey:C,focusOffset:l,isBackward:!1})})},c=function(r,u,E){if(u===0)for(;u<E;)r=r.shift(),u++;else if(E===r.count())for(;E>u;)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<E.length;C++)u.appendChild(B(E[C],c));return u}function S(a,c){for(var i=a;i;){if(i instanceof Element&&i.hasAttribute("contenteditable"))return p(i,c);i=i.parentNode}return"Could not find contentEditable parent of node"}function d(a){return a.nodeValue===null?a.childNodes.length:a.nodeValue.length}function f(a,c,i,r,u){if(!!b(document.documentElement,c)){var E=o.g.getSelection(),C=a.getAnchorKey(),l=a.getAnchorOffset(),g=a.getFocusKey(),D=a.getFocusOffset(),F=a.getIsBackward();if(!E.extend&&F){var y=C,L=l;C=g,l=D,g=y,D=L,F=!1}var T=C===i&&r<=l&&u>=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;j<w.size;j+=1){var U=j===0?T:0,O=j===w.size-1?I:w.get(j).getText().length;y+=w.get(j).getText().slice(U,O)}}return y}function i(F){var y=F.getCurrentContent(),L=F.getSelection(),T=l.Modifier.removeRange(y,L,"forward"),I=T.getSelectionAfter(),w=T.getBlockForKey(I.getStartKey());return T=l.Modifier.insertText(T,I,`
`,w.getInlineStyleAt(I.getStartOffset()),null),l.EditorState.push(F,T,"insert-fragment")}function r(F){var y=l.Modifier.splitBlock(F.getCurrentContent(),F.getSelection());return a(l.EditorState.push(F,y,"split-block"))}function u(F){var y=F.getCurrentContent().getBlockMap().toList(),L=F.getSelection().merge({anchorKey:y.first().get("key"),anchorOffset:0,focusKey:y.last().get("key"),focusOffset:y.last().getLength()}),T=l.Modifier.removeRange(F.getCurrentContent(),L,"forward");return l.EditorState.push(F,T,"remove-range")}function E(F,y){var L=l.Modifier.setBlockData(F.getCurrentContent(),F.getSelection(),y);return l.EditorState.push(F,L,"change-block-data")}function C(F){var y=new g.Map({}),L=S(F);if(L&&L.size>0)for(var T=0;T<L.size;T+=1){var I=function(w){var H=L.get(w).getData();if(!H||H.size===0)return y=y.clear(),"break";if(w===0)y=H;else if(y.forEach(function(j,U){H.get(U)&&H.get(U)===j||(y=y.delete(U))}),y.size===0)return y=y.clear(),"break"}(T);if(I==="break")break}return y}Object.defineProperty(A,"__esModule",{value:!0}),A.blockRenderMap=void 0,A.getSelectedBlocksMap=B,A.getSelectedBlocksList=S,A.getSelectedBlock=d,A.getBlockBeforeSelectedBlock=f,A.getAllBlocks=h,A.getSelectedBlocksType=s,A.removeSelectedBlocksStyle=a,A.getSelectionText=c,A.addLineBreakRemovingSelection=i,A.insertNewUnstyledBlock=r,A.clearEditorContent=u,A.setBlockData=E,A.getSelectedBlocksMetadata=C;var l=p(0),g=p(6),D=(0,g.Map)({code:{element:"pre"}});A.blockRenderMap=l.DefaultDraftBlockRenderMap.merge(D)},function(v,A,p){"use strict";function B(s){if(s){var a=s.getType();return a==="unordered-list-item"||a==="ordered-list-item"}return!1}function S(s,a,c){var i=s.getSelection(),r=s.getCurrentContent(),u=r.getBlockMap(),E=(0,h.getSelectedBlocksMap)(s).map(function(C){var l=C.getDepth()+a;return l=Math.max(0,Math.min(l,c)),C.set("depth",l)});return u=u.merge(E),r.merge({blockMap:u,selectionBefore:i,selectionAfter:i})}function d(s,a,c){var i=s.getSelection(),r=void 0;r=i.getIsBackward()?i.getFocusKey():i.getAnchorKey();var u=s.getCurrentContent(),E=u.getBlockForKey(r),C=E.getType();if(C!=="unordered-list-item"&&C!=="ordered-list-item")return s;var l=u.getBlockBefore(r);if(!l||l.getType()!==C)return s;var g=E.getDepth();if(a===1&&g===c)return s;var D=Math.min(l.getDepth()+1,c),F=S(s,a,D);return f.EditorState.push(s,F,"adjust-depth")}Object.defineProperty(A,"__esModule",{value:!0}),A.isListBlock=B,A.changeDepth=d;var f=p(0),h=p(1)},function(v,A,p){v.exports=p(4)},function(v,A,p){"use strict";var B=p(5),S=p(1),d=p(7),f=function(s){return s&&s.__esModule?s:{default:s}}(d),h=p(2);v.exports={getSelectedBlocksMap:S.getSelectedBlocksMap,getSelectedBlocksList:S.getSelectedBlocksList,getSelectedBlock:S.getSelectedBlock,getBlockBeforeSelectedBlock:S.getBlockBeforeSelectedBlock,getAllBlocks:S.getAllBlocks,getSelectedBlocksType:S.getSelectedBlocksType,removeSelectedBlocksStyle:S.removeSelectedBlocksStyle,getSelectionText:S.getSelectionText,addLineBreakRemovingSelection:S.addLineBreakRemovingSelection,insertNewUnstyledBlock:S.insertNewUnstyledBlock,clearEditorContent:S.clearEditorContent,setBlockData:S.setBlockData,getSelectedBlocksMetadata:S.getSelectedBlocksMetadata,blockRenderMap:S.blockRenderMap,getEntityRange:B.getEntityRange,getCustomStyleMap:B.getCustomStyleMap,toggleCustomInlineStyle:B.toggleCustomInlineStyle,getSelectionEntity:B.getSelectionEntity,extractInlineStyle:B.extractInlineStyle,removeAllInlineStyles:B.removeAllInlineStyles,getSelectionInlineStyle:B.getSelectionInlineStyle,getSelectionCustomInlineStyle:B.getSelectionCustomInlineStyle,handleNewLine:f.default,isListBlock:h.isListBlock,changeDepth:h.changeDepth}},function(v,A,p){"use strict";function B(F,y,L){return y in F?Object.defineProperty(F,y,{value:L,enumerable:!0,configurable:!0,writable:!0}):F[y]=L,F}function S(F){var y=F.getSelection();if(y.isCollapsed()){var L={},T=F.getCurrentInlineStyle().toList().toJS();if(T)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(U){L[U]=T.indexOf(U)>=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;O<H.size;O+=1){var re=O===0?I:0,Q=O===H.size-1?w:H.get(O).getText().length;re===Q&&re===0?(re=1,Q=2):re===Q&&(re-=1);for(var ue=re;ue<Q;ue+=1)(function(Se){var ye=H.get(O).getInlineStyleAt(Se);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(V){U[V]=U[V]&&ye.get(V)===V})})(ue)}return{v:U}}();if((j===void 0?"undefined":E(j))==="object")return j.v}return{}}function d(F){var y=void 0,L=F.getSelection(),T=L.getStartOffset(),I=L.getEndOffset();T===I&&T===0?I=1:T===I&&(T-=1);for(var w=(0,l.getSelectedBlock)(F),H=T;H<I;H+=1){var j=w.getEntityAt(H);if(!j){y=void 0;break}if(H===T)y=j;else if(y!==j){y=void 0;break}}return y}function f(F,y){var L=(0,l.getSelectedBlock)(F),T=void 0;return L.findEntityRanges(function(I){return I.get("entity")===y},function(I,w){T={start:I,end:w,text:L.get("text").slice(I,w)}}),T}function h(F,y,L){var T=F.getSelection(),I=Object.keys(g[y]).reduce(function(U,O){return C.Modifier.removeInlineStyle(U,T,O)},F.getCurrentContent()),w=C.EditorState.push(F,I,"changeinline-style"),H=F.getCurrentInlineStyle();if(T.isCollapsed()&&(w=H.reduce(function(U,O){return C.RichUtils.toggleInlineStyle(U,O)},w)),y==="SUPERSCRIPT"||y=="SUBSCRIPT")H.has(L)||(w=C.RichUtils.toggleInlineStyle(w,L));else{var j=y==="bgcolor"?"backgroundColor":y;H.has(j+"-"+L)||(w=C.RichUtils.toggleInlineStyle(w,y.toLowerCase()+"-"+L),D(y,j,L))}return w}function s(F){F&&F.getCurrentContent().getBlockMap().map(function(y){return y.get("characterList")}).toList().flatten().forEach(function(y){y&&y.indexOf("color-")===0?D("color","color",y.substr(6)):y&&y.indexOf("bgcolor-")===0?D("bgcolor","backgroundColor",y.substr(8)):y&&y.indexOf("fontsize-")===0?D("fontSize","fontSize",+y.substr(9)):y&&y.indexOf("fontfamily-")===0&&D("fontFamily","fontFamily",y.substr(11))})}function a(F,y,L){var T=F.getInlineStyleAt(L).toList(),I=T.filter(function(w){return w.startsWith(y.toLowerCase())});if(I&&I.size>0)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;U<j.size;U+=1)(function(O){var re=O===0?w:0,Q=O===j.size-1?H:j.get(O).getText().length;re===Q&&re===0?(re=1,Q=2):re===Q&&(re-=1);for(var ue=re;ue<Q;ue+=1)(function(Se){Se===re?y.forEach(function(ye){I[ye]=a(j.get(O),ye,Se)}):y.forEach(function(ye){I[ye]&&I[ye]!==a(j.get(O),ye,Se)&&(I[ye]=void 0)})})(ue)})(U);return{v:I}}}();if((L===void 0?"undefined":E(L))==="object")return L.v}return{}}function r(F){var y=F.getCurrentInlineStyle(),L=F.getCurrentContent();return y.forEach(function(T){L=C.Modifier.removeInlineStyle(L,F.getSelection(),T)}),C.EditorState.push(F,L,"change-inline-style")}Object.defineProperty(A,"__esModule",{value:!0}),A.getCustomStyleMap=void 0;var u=Object.assign||function(F){for(var y=1;y<arguments.length;y++){var L=arguments[y];for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&(F[T]=L[T])}return F},E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};A.getSelectionInlineStyle=S,A.getSelectionEntity=d,A.getEntityRange=f,A.toggleCustomInlineStyle=h,A.extractInlineStyle=s,A.getSelectionCustomInlineStyle=i,A.removeAllInlineStyles=r;var C=p(0),l=p(1),g={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}},D=function(F,y,L){g[F][F.toLowerCase()+"-"+L]=B({},""+y,L)};A.getCustomStyleMap=function(){return u({},g.color,g.bgcolor,g.fontSize,g.fontFamily,{CODE:g.CODE,SUPERSCRIPT:g.SUPERSCRIPT,SUBSCRIPT:g.SUBSCRIPT})}},function(v,A){v.exports=b},function(v,A,p){"use strict";function B(a){var c=a.getSelection();if(c.isCollapsed()){var i=a.getCurrentContent(),r=c.getStartKey(),u=i.getBlockForKey(r);if(!(0,s.isListBlock)(u)&&u.getType()!=="unstyled"&&u.getLength()===c.getStartOffset())return(0,h.insertNewUnstyledBlock)(a);if((0,s.isListBlock)(u)&&u.getLength()===0){var E=u.getDepth();if(E===0)return(0,h.removeSelectedBlocksStyle)(a);if(E>0)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;i<c.length;i++){var r=c[i].type;if(!b.isImage(r))return!1}return!0},h.prototype.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},h.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(d).filter(A.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},h.prototype.hasFiles=function(){return this.getFiles().length>0},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&&E<u.length||x(!1),E+1===u.length)return!1;var C=u.charCodeAt(E),l=u.charCodeAt(E+1);return b<=C&&C<=v&&A<=l&&l<=p}function f(u){return B.test(u)}function h(u,E){return 1+S(u.charCodeAt(E))}function s(u){if(!f(u))return u.length;for(var E=0,C=0;C<u.length;C+=h(u,C))E++;return E}function a(u,E,C){if(E=E||0,C=C===void 0?Infinity:C||0,!f(u))return u.substr(E,C);var l=u.length;if(l<=0||E>l||C<=0)return"";var g=0;if(E>0){for(;E>0&&g<l;E--)g+=h(u,g);if(g>=l)return""}else if(E<0){for(g=l;E<0&&0<g;E++)g-=h(u,g-1);g<0&&(g=0)}var D=l;if(C<l)for(D=g;C>0&&D<l;C--)D+=h(u,D);return u.substring(g,D)}function c(u,E,C){E=E||0,C=C===void 0?Infinity:C||0,E<0&&(E=0),C<0&&(C=0);var l=Math.abs(C-E);return E=E<C?E:C,a(u,E,l)}function i(u){for(var E=[],C=0;C<u.length;C+=h(u,C))E.push(u.codePointAt(C));return E}var r={getCodePoints:i,getUTF16Length:h,hasSurrogateUnit:f,isCodeUnitInSurrogateRange:S,isSurrogatePair:d,strlen:s,substring:c,substr:a};z.exports=r},4856:function(z,P,o){"use strict";var x=o(95845),b=o(59859),v=o(79467),A=o(51767);function p(d,f,h,s){if(d===h)return!0;if(!h.startsWith(d))return!1;var a=h.slice(d.length);return f?(a=s?s(a):a,b.contains(a,f)):!1}function B(d){return x.platformName==="Windows"?d.replace(/^\s*NT/,""):d}var S={isBrowser:function(f){return p(x.browserName,x.browserFullVersion,f)},isBrowserArchitecture:function(f){return p(x.browserArchitecture,null,f)},isDevice:function(f){return p(x.deviceName,null,f)},isEngine:function(f){return p(x.engineName,x.engineVersion,f)},isPlatform:function(f){return p(x.platformName,x.platformFullVersion,f,B)},isPlatformArchitecture:function(f){return p(x.platformArchitecture,null,f)}};z.exports=v(S,A)},95845:function(z,P,o){"use strict";var x=o(42238),b="Unknown",v={"Mac OS":"Mac OS X"};function A(h){return v[h]||h}function p(h){if(!h)return{major:"",minor:""};var s=h.split(".");return{major:s[0],minor:s[1]}}var B=new x,S=B.getResult(),d=p(S.browser.version),f={browserArchitecture:S.cpu.architecture||b,browserFullVersion:S.browser.version||b,browserMinorVersion:d.minor||b,browserName:S.browser.name||b,browserVersion:S.browser.major||b,deviceName:S.device.model||b,engineName:S.engine.name||b,engineVersion:S.engine.version||b,platformArchitecture:S.cpu.architecture||b,platformName:A(S.os.name)||b,platformVersion:S.os.version||b,platformFullVersion:S.os.version||b};z.exports=f},59859:function(z,P,o){"use strict";var x=o(73759),b=/\./,v=/\|\|/,A=/\s+\-\s+/,p=/^(<=|<|=|>=|~>|~|>|)?\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;w<I;w++)T[w]="0"}function g(T,I){T=T.slice(),I=I.slice(),l(T,I.length);for(var w=0;w<I.length;w++){var H=I[w].match(/^[x*]$/i);if(H&&(I[w]=T[w]="0",H[0]==="*"&&w===I.length-1))for(var j=w;j<T.length;j++)T[j]="0"}return l(I,T.length),[T,I]}function D(T,I){var w=T.match(B)[1],H=I.match(B)[1],j=parseInt(w,10),U=parseInt(H,10);return E(j)&&E(U)&&j!==U?F(j,U):F(T,I)}function F(T,I){return typeof T!=typeof I&&x(!1),T>I?1:T<I?-1:0}function y(T,I){for(var w=g(T,I),H=w[0],j=w[1],U=0;U<j.length;U++){var O=D(H[U],j[U]);if(O)return O}return 0}var L={contains:function(I,w){return S(I.trim(),w.trim())}};z.exports=L},52297:function(z){"use strict";var P=/-(.)/g;function o(x){return x.replace(P,function(b,v){return v.toUpperCase()})}z.exports=o},67476:function(z,P,o){"use strict";var x=o(52334);function b(v,A){return!v||!A?!1:v===A?!0:x(v)?!1:x(A)?b(v,A.parentNode):"contains"in v?v.contains(A):v.compareDocumentPosition?!!(v.compareDocumentPosition(A)&16):!1}z.exports=b},89825:function(z,P,o){"use strict";var x=o(73759);function b(p){var B=p.length;if(!Array.isArray(p)&&(typeof p=="object"||typeof p=="function")||x(!1),typeof B!="number"&&x(!1),B===0||B-1 in p||x(!1),typeof p.callee=="function"&&x(!1),p.hasOwnProperty)try{return Array.prototype.slice.call(p)}catch(f){}for(var S=Array(B),d=0;d<B;d++)S[d]=p[d];return S}function v(p){return!!p&&(typeof p=="object"||typeof p=="function")&&"length"in p&&!("setInterval"in p)&&typeof p.nodeType!="number"&&(Array.isArray(p)||"callee"in p||"item"in p)}function A(p){return v(p)?Array.isArray(p)?p.slice():b(p):[p]}z.exports=A},62620:function(z){"use strict";function P(x){return typeof x=="object"?Object.keys(x).filter(function(b){return x[b]}).map(o).join(" "):Array.prototype.map.call(arguments,o).join(" ")}function o(x){return x.replace(/\//g,"-")}z.exports=P},60139:function(z){"use strict";function P(x){return function(){return x}}var o=function(){};o.thatReturns=P,o.thatReturnsFalse=P(!1),o.thatReturnsTrue=P(!0),o.thatReturnsNull=P(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(x){return x},z.exports=o},31003:function(z){"use strict";function P(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(x){return o.body}}z.exports=P},35179:function(z){"use strict";var P=typeof navigator!="undefined"&&navigator.userAgent.indexOf("AppleWebKit")>-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<b;v++)x=arguments[v],x&&(o=(o?o+" ":"")+x);return o}z.exports=P},79467:function(z){"use strict";var P=Object.prototype.hasOwnProperty;function o(x,b,v){if(!x)return null;var A={};for(var p in x)P.call(x,p)&&(A[p]=b.call(v,x[p],p,x));return A}z.exports=o},51767:function(z){"use strict";function P(o){var x={};return function(b){return x.hasOwnProperty(b)||(x[b]=o.call(this,b)),x[b]}}z.exports=P},22045:function(z){"use strict";var P=function(x){if(x!=null)return x;throw new Error("Got unexpected null or undefined")};z.exports=P},56926:function(z,P,o){"use strict";o(24889),z.exports=o.g.setImmediate},43393:function(z){(function(P,o){z.exports=o()})(this,function(){"use strict";var P=Array.prototype.slice;function o(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function x(e){return p(e)?e:Te(e)}o(b,x);function b(e){return B(e)?e:Ge(e)}o(v,x);function v(e){return S(e)?e:Ye(e)}o(A,x);function A(e){return p(e)&&!d(e)?e:ut(e)}function p(e){return!!(e&&e[h])}function B(e){return!!(e&&e[s])}function S(e){return!!(e&&e[a])}function d(e){return B(e)||S(e)}function f(e){return!!(e&&e[c])}x.isIterable=p,x.isKeyed=B,x.isIndexed=S,x.isAssociative=d,x.isOrdered=f,x.Keyed=b,x.Indexed=v,x.Set=A;var h="@@__IMMUTABLE_ITERABLE__@@",s="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_INDEXED__@@",c="@@__IMMUTABLE_ORDERED__@@",i="delete",r=5,u=1<<r,E=u-1,C={},l={value:!1},g={value:!1};function D(e){return e.value=!1,e}function F(e){e&&(e.value=!0)}function y(){}function L(e,t){t=t||0;for(var m=Math.max(0,e.length-t),k=new Array(m),M=0;M<m;M++)k[M]=e[M+t];return k}function T(e){return e.size===void 0&&(e.size=e.__iterate(w)),e.size}function I(e,t){if(typeof t!="number"){var m=t>>>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;)if(e(k[M],M++,this)===!1)return M;for(var G;!(G=m.next()).done;){var $=G.value;if(k[M]=$,e($,M++,this)===!1)break}return M},Et.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var m=this._iterator,k=this._iteratorCache,M=0;return new Be(function(){if(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;m<this.size;m++)if(e(this._value,m,this)===!1)return m+1;return m},qe.prototype.__iterator=function(e,t){var m=this,k=0;return new Be(function(){return k<m.size?ze(e,k++,m._value):Le()})},qe.prototype.equals=function(e){return e instanceof qe?me(this._value,e._value):it(e)};var ft;function dt(e,t){if(!e)throw new Error(t)}o(pt,Ye);function pt(e,t,m){if(!(this instanceof pt))return new pt(e,t,m);if(dt(m!==0,"Cannot step a Range by 0"),e=e||0,t===void 0&&(t=Infinity),m=m===void 0?1:Math.abs(m),t<e&&(m=-m),this._start=e,this._end=t,this._step=m,this.size=Math.max(0,Math.ceil((t-e)/m-1)+1),this.size===0){if(Tt)return Tt;Tt=this}}pt.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" 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<this.size&&t===Math.floor(t)},pt.prototype.slice=function(e,t){return H(e,t,this.size)?this:(e=j(e,this.size),t=U(t,this.size),t<=e?new pt(0,0):new pt(this.get(e,this._end),this.get(t,this._end),this._step))},pt.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var m=t/this._step;if(m>=0&&m<this.size)return m}return-1},pt.prototype.lastIndexOf=function(e){return this.indexOf(e)},pt.prototype.__iterate=function(e,t){for(var m=this.size-1,k=this._step,M=t?this._start+m*k:this._start,G=0;G<=m;G++){if(e(M,G,this)===!1)return G+1;M+=t?-k:k}return G},pt.prototype.__iterator=function(e,t){var m=this.size-1,k=this._step,M=t?this._start+m*k:this._start,G=0;return new Be(function(){var $=M;return M+=t?-k:k,G>m?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;m<e.length;m++)t=31*t+e.charCodeAt(m)|0;return Qt(t)}function _(e){var t;if(Ce&&(t=Ee.get(e),t!==void 0)||(t=e[ge],t!==void 0)||!fe&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ge],t!==void 0||(t=xe(e),t!==void 0)))return t;if(t=++we,we&1073741824&&(we=0),Ce)Ee.set(e,t);else{if(Z!==void 0&&Z(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(fe)Object.defineProperty(e,ge,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ge]=t;else if(e.nodeType!==void 0)e[ge]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var Z=Object.isExtensible,fe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function xe(e){if(e&&e.nodeType>0)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<he&&!me(k,ce[ee][0]);ee++);var De=ee<he;if(De?ce[ee][1]===M:ne)return this;if(F($),(ne||!De)&&F(G),!(ne&&ce.length===1)){if(!De&&!ne&&ce.length>=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<<ne,ee=this.bitmap,he=(ee&ce)!=0;if(!he&&M===C)return this;var De=Xn(ee&ce-1),Pe=this.nodes,tt=he?Pe[De]:void 0,st=Zt(tt,e,t+r,m,k,M,G,$);if(st===tt)return this;if(!he&&st&&Pe.length>=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<Ar))return Sn(e,ee,Pe,ne);var tt=e&&e===this.ownerID,st=hr(ee,ne,De,tt);return tt?(this.count=Pe,this.nodes=st,this):new et(e,Pe,st)};function ht(e,t,m){this.ownerID=e,this.keyHash=t,this.entries=m}ht.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},ht.prototype.update=function(e,t,m,k,M,G,$){m===void 0&&(m=J(k));var ne=M===C;if(m!==this.keyHash)return ne?this:(F($),F(G),on(this,e,t,m,[k,M]));for(var ce=this.entries,ee=0,he=ce.length;ee<he&&!me(k,ce[ee][0]);ee++);var De=ee<he;if(De?ce[ee][1]===M:ne)return this;if(F($),(ne||!De)&&F(G),ne&&he===2)return new kt(e,this.keyHash,ce[ee^1]);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 ht(e,this.keyHash,tt)};function kt(e,t,m){this.ownerID=e,this.keyHash=t,this.entry=m}kt.prototype.get=function(e,t,m,k){return me(m,this.entry[0])?this.entry[1]:k},kt.prototype.update=function(e,t,m,k,M,G,$){var ne=M===C,ce=me(k,this.entry[0]);if(ce?M===this.entry[1]:ne)return this;if(F($),ne){F(G);return}return ce?e&&e===this.ownerID?(this.entry[1]=M,this):new kt(e,this.keyHash,[k,M]):(F(G),on(this,e,t,J(k),[k,M]))},rt.prototype.iterate=ht.prototype.iterate=function(e,t){for(var m=this.entries,k=0,M=m.length-1;k<=M;k++)if(e(m[t?M-k:k])===!1)return!1},It.prototype.iterate=et.prototype.iterate=function(e,t){for(var m=this.nodes,k=0,M=m.length-1;k<=M;k++){var G=m[t?M-k:k];if(G&&G.iterate(e,t)===!1)return!1}},kt.prototype.iterate=function(e,t){return e(this.entry)},o(_t,Be);function _t(e,t,m){this._type=t,this._reverse=m,this._stack=e._root&&Vt(e._root)}_t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var m=t.node,k=t.index++,M;if(m.entry){if(k===0)return Kt(e,m.entry)}else if(m.entries){if(M=m.entries.length-1,k<=M)return Kt(e,m.entries[this._reverse?M-k:k])}else if(M=m.nodes.length-1,k<=M){var G=m.nodes[this._reverse?M-k:k];if(G){if(G.entry)return Kt(e,G.entry);t=this._stack=Vt(G,t)}continue}t=this._stack=this._stack.__prev}return Le()};function Kt(e,t){return ze(e,t[0],t[1])}function Vt(e,t){return{node:e,index:0,__prev:t}}function cn(e,t,m,k){var M=Object.create(Ne);return M.size=e,M._root=t,M.__ownerID=m,M.__hash=k,M.__altered=!1,M}var Ln;function Rt(){return Ln||(Ln=cn(0))}function In(e,t,m){var k,M;if(e._root){var G=D(l),$=D(g);if(k=Zt(e._root,e.__ownerID,0,void 0,t,m,G,$),!$.value)return e;M=e.size+(G.value?m===C?-1:1:0)}else{if(m===C)return e;M=1,k=new rt(e.__ownerID,[[t,m]])}return e.__ownerID?(e.size=M,e._root=k,e.__hash=void 0,e.__altered=!0,e):k?cn(M,k):Rt()}function Zt(e,t,m,k,M,G,$,ne){return e?e.update(t,m,k,M,G,$,ne):G===C?e:(F(ne),F($),new kt(t,k,[M,G]))}function Jt(e){return e.constructor===kt||e.constructor===ht}function on(e,t,m,k,M){if(e.keyHash===k)return new ht(t,k,[e.entry,M]);var G=(m===0?e.keyHash:e.keyHash>>>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<<G|1<<$,ce)}function Nn(e,t,m,k){e||(e=new y);for(var M=new kt(e,J(m),[m,k]),G=0;G<t.length;G++){var $=t[G];M=M.update(e,0,void 0,$[0],$[1])}return M}function Sn(e,t,m,k){for(var M=0,G=0,$=new Array(m),ne=0,ce=1,ee=t.length;ne<ee;ne++,ce<<=1){var he=t[ne];he!==void 0&&ne!==k&&(M|=ce,$[G++]=he)}return new It(e,M,$)}function Hn(e,t,m,k,M){for(var G=0,$=new Array(u),ne=0;m!==0;ne++,m>>>=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<m.length;M++){var G=m[M],$=b(G);p(G)||($=$.map(function(ne){return Ie(ne)})),k.push($)}return Cn(e,t,k)}function An(e,t,m){return e&&e.mergeDeep&&p(t)?e.mergeDeep(t):me(e,t)?e:t}function dn(e){return function(t,m,k){if(t&&t.mergeDeepWith&&p(m))return t.mergeDeepWith(e,m);var M=e(t,m,k);return me(t,M)?t:M}}function Cn(e,t,m){return m=m.filter(function(k){return k.size!==0}),m.length===0?e:e.size===0&&!e.__ownerID&&m.length===1?e.constructor(m[0]):e.withMutations(function(k){for(var M=t?function($,ne){k.update(ne,C,function(ce){return ce===C?$:t(ce,$,ne)})}:function($,ne){k.set(ne,$)},G=0;G<m.length;G++)m[G].forEach(M)})}function bn(e,t,m,k){var M=e===C,G=t.next();if(G.done){var $=M?m:e,ne=k($);return ne===$?e:ne}dt(M||e&&e.set,"invalid keyPath");var ce=G.value,ee=M?C:e.get(ce,C),he=bn(ee,t,m,k);return he===ee?e:he===C?e.remove(ce):(M?Rt():e).set(ce,he)}function Xn(e){return e=e-(e>>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;ne<M;ne++)ne===t?(G[ne]=m,$=-1):G[ne]=e[ne+$];return G}function vr(e,t,m){var k=e.length-1;if(m&&t===k)return e.pop(),e;for(var M=new Array(k),G=0,$=0;$<k;$++)$===t&&(G=1),M[$]=e[$+G];return M}var mr=u/4,yr=u/2,Ar=u/4;o(xt,Dt);function xt(e){var t=jn();if(e==null)return t;if(pn(e))return e;var m=v(e),k=m.size;return k===0?t:(Re(k),k>0&&k<u?Fn(0,k,r,null,new an(m.toArray())):t.withMutations(function(M){M.setSize(k),m.forEach(function(G,$){return M.set($,G)})}))}xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if(e=I(this,e),e>=0&&e<this.size){e+=this._origin;var m=Zn(this,e);return m&&m.array[e&E]}return t},xt.prototype.set=function(e,t){return Er(this,e,t)},xt.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):jn()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(m){hn(m,0,t+e.length);for(var k=0;k<e.length;k++)m.set(t+k,e[k])})},xt.prototype.pop=function(){return hn(this,0,-1)},xt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){hn(t,-e.length);for(var m=0;m<e.length;m++)t.set(m,e[m])})},xt.prototype.shift=function(){return hn(this,1)},xt.prototype.merge=function(){return Pn(this,void 0,arguments)},xt.prototype.mergeWith=function(e){var t=P.call(arguments,1);return Pn(this,e,t)},xt.prototype.mergeDeep=function(){return Pn(this,An,arguments)},xt.prototype.mergeDeepWith=function(e){var t=P.call(arguments,1);return Pn(this,dn(e),t)},xt.prototype.setSize=function(e){return hn(this,0,e)},xt.prototype.slice=function(e,t){var m=this.size;return H(e,t,m)?this:hn(this,j(e,m),U(t,m))},xt.prototype.__iterator=function(e,t){var m=0,k=$n(this,t);return new Be(function(){var M=k();return M===kn?Le():ze(e,m++,M)})},xt.prototype.__iterate=function(e,t){for(var m=0,k=$n(this,t),M;(M=k())!==kn&&e(M,m++,this)!==!1;);return m},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Fn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)};function pn(e){return!!(e&&e[Jn])}xt.isList=pn;var Jn="@@__IMMUTABLE_LIST__@@",Wt=xt.prototype;Wt[Jn]=!0,Wt[i]=Wt.remove,Wt.setIn=Ne.setIn,Wt.deleteIn=Wt.removeIn=Ne.removeIn,Wt.update=Ne.update,Wt.updateIn=Ne.updateIn,Wt.mergeIn=Ne.mergeIn,Wt.mergeDeepIn=Ne.mergeDeepIn,Wt.withMutations=Ne.withMutations,Wt.asMutable=Ne.asMutable,Wt.asImmutable=Ne.asImmutable,Wt.wasAltered=Ne.wasAltered;function an(e,t){this.array=e,this.ownerID=t}an.prototype.removeBefore=function(e,t,m){if(m===t?1<<t:this.array.length===0)return this;var k=m>>>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<k;ce++)ne.array[ce]=void 0;return G&&(ne.array[k]=G),ne},an.prototype.removeAfter=function(e,t,m){if(m===(t?1<<t:0)||this.array.length===0)return this;var k=m-1>>>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<<he))}while(!0)}}}function Fn(e,t,m,k,M,G,$){var ne=Object.create(Wt);return ne.size=t-e,ne._origin=e,ne._capacity=t,ne._level=m,ne._root=k,ne._tail=M,ne.__ownerID=G,ne.__hash=$,ne.__altered=!1,ne}var _n;function jn(){return _n||(_n=Fn(0,0,r))}function Er(e,t,m){if(t=I(e,t),t!==t)return e;if(t>=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&&$<e.array.length;if(!ne&&M===void 0)return e;var ce;if(m>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<<e._level+r){for(var m=e._root,k=e._level;m&&k>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<<ce;he&&($+=he,M+=he,ne+=he,G+=he);for(var De=qt(G),Pe=qt(ne);Pe>=1<<ce+r;)ee=new an(ee&&ee.array.length?[ee]:[],k),ce+=r;var tt=e._tail,st=Pe<De?Zn(e,ne-1):Pe>De?new an([],k):tt;if(tt&&Pe>De&&$<G&&tt.array.length){ee=xn(ee,k);for(var vt=ee,en=ce;en>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<G&&(st=st&&st.removeAfter(k,0,ne)),$>=Pe)$-=Pe,ne-=Pe,ce=r,ee=null,st=st&&st.removeBefore(k,0,$);else if($>M||Pe<De){for(he=0;ee;){var zn=$>>>ce&E;if(zn!==Pe>>>ce&E)break;zn&&(he+=(1<<ce)*zn),ce-=r,ee=ee.array[zn]}ee&&$>M&&(ee=ee.removeBefore(k,ce,$-he)),ee&&Pe<De&&(ee=ee.removeAfter(k,ce,Pe-he)),he&&($-=he,ne-=he)}return e.__ownerID?(e.size=ne-$,e._origin=$,e._capacity=ne,e._level=ce,e._root=ee,e._tail=st,e.__hash=void 0,e.__altered=!0,e):Fn($,ne,ce,ee,st)}function Pn(e,t,m){for(var k=[],M=0,G=0;G<m.length;G++){var $=m[G],ne=v($);ne.size>M&&(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<u?0:e-1>>>r<<r}o(Lt,ke);function Lt(e){return e==null?Dn():Sr(e)?e:Dn().withMutations(function(t){var m=b(e);Re(m.size),m.forEach(function(k,M){return t.set(M,k)})})}Lt.of=function(){return this(arguments)},Lt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Lt.prototype.get=function(e,t){var m=this._map.get(e);return m!==void 0?this._list.get(m)[1]:t},Lt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Dn()},Lt.prototype.set=function(e,t){return Kn(this,e,t)},Lt.prototype.remove=function(e){return Kn(this,e,C)},Lt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Lt.prototype.__iterate=function(e,t){var m=this;return this._list.__iterate(function(k){return k&&e(k[1],k[0],m)},t)},Lt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Lt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),m=this._list.__ensureOwner(e);return e?qn(t,m,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=m,this)};function Sr(e){return gt(e)&&f(e)}Lt.isOrderedMap=Sr,Lt.prototype[c]=!0,Lt.prototype[i]=Lt.prototype.remove;function qn(e,t,m,k){var M=Object.create(Lt.prototype);return M.size=e?e.size:0,M._map=e,M._list=t,M.__ownerID=m,M.__hash=k,M}var Tn;function Dn(){return Tn||(Tn=qn(Rt(),jn()))}function Kn(e,t,m){var k=e._map,M=e._list,G=k.get(t),$=G!==void 0,ne,ce;if(m===C){if(!$)return e;M.size>=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&&he<ce?e.get(he+G,De):De}),ee.__iterateUncached=function(he,De){var Pe=this;if(ce===0)return 0;if(De)return this.cacheResult().__iterate(he,De);var tt=0,st=!0,vt=0;return e.__iterate(function(en,rn){if(!(st&&(st=tt++<G)))return vt++,he(en,k?rn:vt-1,Pe)!==!1&&vt!==ce}),vt},ee.__iteratorUncached=function(he,De){if(ce!==0&&De)return this.cacheResult().__iterator(he,De);var Pe=ce!==0&&e.__iterator(he,De),tt=0,st=0;return new Be(function(){for(;tt++<G;)Pe.next();if(++st>ce)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||he<t)&&p(Pe)?ce(Pe,he+1):M(Pe,m?tt:$++,De)===!1&&(ne=!0),!ne},G)}return ce(e,0),$},k.__iteratorUncached=function(M,G){var $=e.__iterator(M,G),ne=[],ce=0;return new Be(function(){for(;$;){var ee=$.next();if(ee.done!==!1){$=ne.pop();continue}var he=ee.value;if(M===ue&&(he=he[1]),(!t||ne.length<t)&&p(he))ne.push($),$=he.__iterator(M,G);else return m?ee:ze(M,ce++,he,ee)}return Le()})},k}function Mr(e,t,m){var k=ar(e);return e.toSeq().map(function(M,G){return k(t.call(m,M,G,e))}).flatten(!0)}function Br(e,t){var m=un(e);return m.size=e.size&&e.size*2-1,m.__iterateUncached=function(k,M){var G=this,$=0;return e.__iterate(function(ne,ce){return(!$||k(t,$++,G)!==!1)&&k(ne,$++,G)!==!1},M),$},m.__iteratorUncached=function(k,M){var G=e.__iterator(Q,M),$=0,ne;return new Be(function(){return(!ne||$%2)&&(ne=G.next(),ne.done)?ne:$%2?ze(k,$++,t):ze(k,$++,ne.value,ne)})},m}function Bn(e,t,m){t||(t=ur);var k=B(e),M=0,G=e.toSeq().map(function($,ne){return[ne,$,M++,m?m($,ne,e):$]}).toArray();return G.sort(function($,ne){return t($[3],ne[3])||$[2]-ne[2]}).forEach(k?function($,ne){G[ne].length=2}:function($,ne){G[ne]=$[1]}),k?Ge(G):S(e)?Ye(G):ut(G)}function Gn(e,t,m){if(t||(t=ur),m){var k=e.toSeq().map(function(M,G){return[M,m(M,G,e)]}).reduce(function(M,G){return or(t,M[1],G[1])?G:M});return k&&k[0]}else return e.reduce(function(M,G){return or(t,M,G)?G:M})}function or(e,t,m){var k=e(m,t);return k===0&&m!==t&&(m==null||m!==m)||k>0}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<t?-1:0}function lr(e){var t=at(e);if(!t){if(!Ze(e))throw new TypeError("Expected iterable or array-like: "+e);t=at(x(e))}return t}o(Xt,Ot);function Xt(e,t){var m,k=function($){if($ instanceof k)return $;if(!(this instanceof k))return new k($);if(!m){m=!0;var ne=Object.keys(e);kr(M,ne),M.size=ne.length,M._name=t,M._keys=ne,M._defaultValues=e}this._map=ke($)},M=k.prototype=Object.create(zt);return M.constructor=k,k}Xt.prototype.toString=function(){return this.__toString(sr(this)+" {","}")},Xt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Xt.prototype.get=function(e,t){if(!this.has(e))return t;var m=this._defaultValues[e];return this._map?this._map.get(e,m):m},Xt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Un(this,Rt()))},Xt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+sr(this));var m=this._map&&this._map.set(e,t);return this.__ownerID||m===this._map?this:Un(this,m)},Xt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Un(this,t)},Xt.prototype.wasAltered=function(){return this._map.wasAltered()},Xt.prototype.__iterator=function(e,t){var m=this;return b(this._defaultValues).map(function(k,M){return m.get(M)}).__iterator(e,t)},Xt.prototype.__iterate=function(e,t){var m=this;return b(this._defaultValues).map(function(k,M){return m.get(M)}).__iterate(e,t)},Xt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Un(this,t,e):(this.__ownerID=e,this._map=t,this)};var zt=Xt.prototype;zt[i]=zt.remove,zt.deleteIn=zt.removeIn=Ne.removeIn,zt.merge=Ne.merge,zt.mergeWith=Ne.mergeWith,zt.mergeIn=Ne.mergeIn,zt.mergeDeep=Ne.mergeDeep,zt.mergeDeepWith=Ne.mergeDeepWith,zt.mergeDeepIn=Ne.mergeDeepIn,zt.setIn=Ne.setIn,zt.update=Ne.update,zt.updateIn=Ne.updateIn,zt.withMutations=Ne.withMutations,zt.asMutable=Ne.asMutable,zt.asImmutable=Ne.asImmutable;function Un(e,t,m){var k=Object.create(Object.getPrototypeOf(e));return k._map=t,k.__ownerID=m,k}function sr(e){return e._name||e.constructor.name||"Record"}function kr(e,t){try{t.forEach(cr.bind(void 0,e))}catch(m){}}function cr(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(m){dt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,m)}})}o(St,jt);function St(e){return e==null?W():En(e)&&!f(e)?e:W().withMutations(function(t){var m=A(e);Re(m.size),m.forEach(function(k){return t.add(k)})})}St.of=function(){return this(arguments)},St.fromKeys=function(e){return this(b(e).keySeq())},St.prototype.toString=function(){return this.__toString("Set {","}")},St.prototype.has=function(e){return this._map.has(e)},St.prototype.add=function(e){return fr(this,this._map.set(e,!0))},St.prototype.remove=function(e){return fr(this,this._map.remove(e))},St.prototype.clear=function(){return fr(this,this._map.clear())},St.prototype.union=function(){var e=P.call(arguments,0);return e=e.filter(function(t){return t.size!==0}),e.length===0?this:this.size===0&&!this.__ownerID&&e.length===1?this.constructor(e[0]):this.withMutations(function(t){for(var m=0;m<e.length;m++)A(e[m]).forEach(function(k){return t.add(k)})})},St.prototype.intersect=function(){var e=P.call(arguments,0);if(e.length===0)return this;e=e.map(function(m){return A(m)});var t=this;return this.withMutations(function(m){t.forEach(function(k){e.every(function(M){return M.includes(k)})||m.remove(k)})})},St.prototype.subtract=function(){var e=P.call(arguments,0);if(e.length===0)return this;e=e.map(function(m){return A(m)});var t=this;return this.withMutations(function(m){t.forEach(function(k){e.some(function(M){return M.includes(k)})&&m.remove(k)})})},St.prototype.merge=function(){return this.union.apply(this,arguments)},St.prototype.mergeWith=function(e){var t=P.call(arguments,1);return this.union.apply(this,t)},St.prototype.sort=function(e){return n(Bn(this,e))},St.prototype.sortBy=function(e,t){return n(Bn(this,t,e))},St.prototype.wasAltered=function(){return this._map.wasAltered()},St.prototype.__iterate=function(e,t){var m=this;return this._map.__iterate(function(k,M){return e(M,M,m)},t)},St.prototype.__iterator=function(e,t){return this._map.map(function(m,k){return k}).__iterator(e,t)},St.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)};function En(e){return!!(e&&e[Mn])}St.isSet=En;var Mn="@@__IMMUTABLE_SET__@@",Nt=St.prototype;Nt[Mn]=!0,Nt[i]=Nt.remove,Nt.mergeDeep=Nt.merge,Nt.mergeDeepWith=Nt.mergeWith,Nt.withMutations=Ne.withMutations,Nt.asMutable=Ne.asMutable,Nt.asImmutable=Ne.asImmutable,Nt.__empty=W,Nt.__make=q;function fr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function q(e,t){var m=Object.create(Nt);return m.size=e?e.size:0,m._map=e,m.__ownerID=t,m}var R;function W(){return R||(R=q(Rt()))}o(n,St);function n(e){return e==null?se():K(e)?e:se().withMutations(function(t){var m=A(e);Re(m.size),m.forEach(function(k){return t.add(k)})})}n.of=function(){return this(arguments)},n.fromKeys=function(e){return this(b(e).keySeq())},n.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function K(e){return En(e)&&f(e)}n.isOrderedSet=K;var X=n.prototype;X[c]=!0,X.__empty=se,X.__make=ie;function ie(e,t){var m=Object.create(X);return m.size=e?e.size:0,m._map=e,m.__ownerID=t,m}var Y;function se(){return Y||(Y=ie(Dn()))}o(de,Dt);function de(e){return e==null?Ht():Ve(e)?e:Ht().unshiftAll(e)}de.of=function(){return this(arguments)},de.prototype.toString=function(){return this.__toString("Stack [","]")},de.prototype.get=function(e,t){var m=this._head;for(e=I(this,e);m&&e--;)m=m.next;return m?m.value:t},de.prototype.peek=function(){return this._head&&this._head.value},de.prototype.push=function(){if(arguments.length===0)return this;for(var e=this.size+arguments.length,t=this._head,m=arguments.length-1;m>=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||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return At(this,Br(this,e))},interleave:function(){var e=[this].concat(L(arguments)),t=Qn(this.toSeq(),Ye.of,e),m=t.flatten(!0);return t.size&&(m.size=t.size*e.length),At(this,m)},last:function(){return this.get(-1)},skipWhile:function(e,t){return At(this,xr(this,e,t,!1))},zip:function(){var e=[this].concat(L(arguments));return At(this,Qn(this,On,e))},zipWith:function(e){var t=L(arguments);return t[0]=this,At(this,Qn(this,e,t))}}),v.prototype[a]=!0,v.prototype[c]=!0,Pt(A,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),A.prototype.has=Ct.includes,Pt(Ge,b.prototype),Pt(Ye,v.prototype),Pt(ut,A.prototype),Pt(Ot,b.prototype),Pt(Dt,v.prototype),Pt(jt,A.prototype);function vn(e,t){return t}function ln(e,t){return[t,e]}function sn(e){return function(){return!e.apply(this,arguments)}}function tn(e){return function(){return-e.apply(this,arguments)}}function mn(e){return typeof e=="string"?JSON.stringify(e):e}function On(){return L(arguments)}function nn(e,t){return e<t?1:e>t?-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;Z<arguments.length;Z++)_+="&args[]="+encodeURIComponent(arguments[Z]);return"Minified React error #"+N+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var A=60106,p=60107,B=60108,S=60114,d=60109,f=60110,h=60112,s=60113,a=60120,c=60115,i=60116,r=60121,u=60117,E=60119,C=60129,l=60131;if(typeof Symbol=="function"&&Symbol.for){var g=Symbol.for;A=g("react.portal"),p=g("react.fragment"),B=g("react.strict_mode"),S=g("react.profiler"),d=g("react.provider"),f=g("react.context"),h=g("react.forward_ref"),s=g("react.suspense"),a=g("react.suspense_list"),c=g("react.memo"),i=g("react.lazy"),r=g("react.block"),u=g("react.fundamental"),E=g("react.scope"),C=g("react.debug_trace_mode"),l=g("react.legacy_hidden")}function D(N){if(N==null)return null;if(typeof N=="function")return N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case p:return"Fragment";case A:return"Portal";case S:return"Profiler";case B:return"StrictMode";case s:return"Suspense";case a:return"SuspenseList"}if(typeof N=="object")switch(N.$$typeof){case f:return(N.displayName||"Context")+".Consumer";case d:return(N._context.displayName||"Context")+".Provider";case h:var _=N.render;return _=_.displayName||_.name||"",N.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case c:return D(N.type);case r:return D(N._render);case i:_=N._payload,N=N._init;try{return D(N(_))}catch(Z){}}return null}var F=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y={};function L(N,_){for(var Z=N._threadCount|0;Z<=_;Z++)N[Z]=N._currentValue2,N._threadCount=Z+1}function T(N,_,Z,fe){if(fe&&(fe=N.contextType,typeof fe=="object"&&fe!==null))return L(fe,Z),fe[Z];if(N=N.contextTypes){Z={};for(var xe in N)Z[xe]=_[xe];_=Z}else _=y;return _}for(var I=new Uint16Array(16),w=0;15>w;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;fe<N.length;fe++){switch(N.charCodeAt(fe)){case 34:_="&quot;";break;case 38:_="&amp;";break;case 39:_="&#x27;";break;case 60:_="&lt;";break;case 62:_="&gt;";break;default:continue}xe!==fe&&(Z+=N.substring(xe,fe)),xe=fe+1,Z+=_}N=xe!==fe?Z+N.substring(xe,fe):Z}return N}function Ue(N,_){var Z=ye.hasOwnProperty(N)?ye[N]:null,fe;return(fe=N!=="style")&&(fe=Z!==null?Z.type===0:!(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N")),fe||ue(N,_,Z,!1)?"":Z!==null?(N=Z.attributeName,fe=Z.type,fe===3||fe===4&&_===!0?N+'=""':(Z.sanitizeURL&&(_=""+_),N+'="'+(Le(_)+'"'))):re(N)?N+'="'+(Le(_)+'"'):""}function ot(N,_){return N===_&&(N!==0||1/N==1/_)||N!==N&&_!==_}var at=typeof Object.is=="function"?Object.is:ot,_e=null,Ze=null,Te=null,Ge=!1,Ye=!1,ut=null,bt=0;function nt(){if(_e===null)throw Error(v(321));return _e}function be(){if(0<bt)throw Error(v(312));return{memoizedState:null,queue:null,next:null}}function Xe(){return Te===null?Ze===null?(Ge=!1,Ze=Te=be()):(Ge=!0,Te=Ze):Te.next===null?(Ge=!1,Te=Te.next=be()):(Ge=!0,Te=Te.next),Te}function Et(N,_,Z,fe){for(;Ye;)Ye=!1,bt+=1,Te=null,Z=N(_,fe);return Ut(),Z}function Ut(){_e=null,Ye=!1,Ze=null,bt=0,Te=ut=null}function Ke(N,_){return typeof _=="function"?_(N):_}function te(N,_,Z){if(_e=nt(),Te=Xe(),Ge){var fe=Te.queue;if(_=fe.dispatch,ut!==null&&(Z=ut.get(fe),Z!==void 0)){ut.delete(fe),fe=Te.memoizedState;do fe=N(fe,Z.action),Z=Z.next;while(Z!==null);return Te.memoizedState=fe,[fe,_]}return[Te.memoizedState,_]}return N=N===Ke?typeof _=="function"?_():_:Z!==void 0?Z(_):_,Te.memoizedState=N,N=Te.queue={last:null,dispatch:null},N=N.dispatch=le.bind(null,_e,N),[Te.memoizedState,N]}function oe(N,_){if(_e=nt(),Te=Xe(),_=_===void 0?null:_,Te!==null){var Z=Te.memoizedState;if(Z!==null&&_!==null){var fe=Z[1];e:if(fe===null)fe=!1;else{for(var xe=0;xe<fe.length&&xe<_.length;xe++)if(!at(_[xe],fe[xe])){fe=!1;break e}fe=!0}if(fe)return Z[0]}}return N=N(),Te.memoizedState=[N,_],N}function le(N,_,Z){if(!(25>bt))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<He.length;ke++){var mt=He[ke];mt=typeof mt=="function"?mt.call(ge,Re,Ee.props,je):mt,mt!=null&&(gt?(gt=!1,Re=x({},Re,mt)):x(Re,mt))}ge.state=Re}}else Qe=null;if(N=ge.render(),Qt(N,we),typeof ge.getChildContext=="function"&&(Ee=we.childContextTypes,typeof Ee=="object")){var Ne=ge.getChildContext();for(var rt in Ne)if(!(rt in Ee))throw Error(v(108,D(we)||"Unknown",rt))}Ne&&(_=x({},_,Ne))}for(;b.isValidElement(N);){var xe=N,Ce=xe.type;if(typeof Ce!="function")break;fe(xe,Ce)}return{child:N,context:_}}var ae=function(){function N(Z,fe,xe){b.isValidElement(Z)?Z.type!==p?Z=[Z]:(Z=Z.props.children,Z=b.isValidElement(Z)?[Z]:ft(Z)):Z=ft(Z),Z={type:null,domNamespace:Fe.html,children:Z,childIndex:0,context:y,footer:""};var Ce=I[0];if(Ce===0){var Ee=I;Ce=Ee.length;var we=2*Ce;if(!(65536>=we))throw Error(v(304));var ge=new Uint16Array(we);for(ge.set(Ee),I=ge,I[0]=Ce+1,Ee=Ce;Ee<we-1;Ee++)I[Ee]=Ee+1;I[we-1]=0}else I[0]=I[Ce];this.threadID=Ce,this.stack=[Z],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=fe,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=xe&&xe.identifierPrefix||""}var _=N.prototype;return _.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var Z=this.threadID;I[Z]=I[0],I[0]=Z}},_.pushProvider=function(Z){var fe=++this.contextIndex,xe=Z.type._context,Ce=this.threadID;L(xe,Ce);var Ee=xe[Ce];this.contextStack[fe]=xe,this.contextValueStack[fe]=Ee,xe[Ce]=Z.props.value},_.popProvider=function(){var Z=this.contextIndex,fe=this.contextStack[Z],xe=this.contextValueStack[Z];this.contextStack[Z]=null,this.contextValueStack[Z]=null,this.contextIndex--,fe[this.threadID]=xe},_.clearProviders=function(){for(var Z=this.contextIndex;0<=Z;Z--)this.contextStack[Z][this.threadID]=this.contextValueStack[Z]},_.read=function(Z){if(this.exhausted)return null;var fe=Ae;Ae=this;var xe=dt.current;dt.current=ve;try{for(var Ce=[""],Ee=!1;Ce[0].length<Z;){if(this.stack.length===0){this.exhausted=!0;var we=this.threadID;I[we]=I[0],I[0]=we;break}var ge=this.stack[this.stack.length-1];if(Ee||ge.childIndex>=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<ge.length;Oe++)if(""+ge[Oe]===Qe){we=!0;break}}else we=""+ge===Qe;Ee=x({selected:void 0,children:void 0},Ee,{selected:we,children:je})}}if(we=Ee){if(We[Ce]&&(we.children!=null||we.dangerouslySetInnerHTML!=null))throw Error(v(137,Ce));if(we.dangerouslySetInnerHTML!=null){if(we.children!=null)throw Error(v(60));if(!(typeof we.dangerouslySetInnerHTML=="object"&&"__html"in we.dangerouslySetInnerHTML))throw Error(v(61))}if(we.style!=null&&typeof we.style!="object")throw Error(v(62))}we=Ee,ge=this.makeStaticMarkup,je=this.stack.length===1,Qe="<"+Z.type;e:if(Ce.indexOf("-")===-1)Oe=typeof we.is=="string";else switch(Ce){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":Oe=!1;break e;default:Oe=!0}for(et in we)if(jt.call(we,et)){var He=we[et];if(He!=null){if(et==="style"){var Re=void 0,ke="",gt="";for(Re in He)if(He.hasOwnProperty(Re)){var mt=Re.indexOf("--")===0,Ne=He[Re];if(Ne!=null){if(mt)var rt=Re;else if(rt=Re,Ot.hasOwnProperty(rt))rt=Ot[rt];else{var It=rt.replace(it,"-$1").toLowerCase().replace(qe,"-ms-");rt=Ot[rt]=It}ke+=gt+rt+":",gt=Re,mt=Ne==null||typeof Ne=="boolean"||Ne===""?"":mt||typeof Ne!="number"||Ne===0||lt.hasOwnProperty(gt)&&lt[gt]?(""+Ne).trim():Ne+"px",ke+=mt,gt=";"}}He=ke||null}Re=null,Oe?Bt.hasOwnProperty(et)||(Re=et,Re=re(Re)&&He!=null?Re+'="'+(Le(He)+'"'):""):Re=Ue(et,He),Re&&(Qe+=" "+Re)}}ge||je&&(Qe+=' data-reactroot=""');var et=Qe;we="",Me.hasOwnProperty(Ce)?et+="/>":(et+=">",we="</"+Z.type+">");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;F<D.length;F++)D[F]=arguments[F+1];var y={callback:g,args:D};return p[A]=y,d(A),A++}function h(g){delete p[g]}function s(g){var D=g.callback,F=g.args;switch(F.length){case 0:D();break;case 1:D(F[0]);break;case 2:D(F[0],F[1]);break;case 3:D(F[0],F[1],F[2]);break;default:D.apply(v,F);break}}function a(g){if(B)setTimeout(a,0,g);else{var D=p[g];if(D){B=!0;try{s(D)}finally{h(g),B=!1}}}}function c(){d=function(g){x.nextTick(function(){a(g)})}}function i(){if(b.postMessage&&!b.importScripts){var g=!0,D=b.onmessage;return b.onmessage=function(){g=!1},b.postMessage("","*"),b.onmessage=D,g}}function r(){var g="setImmediate$"+Math.random()+"$",D=function(F){F.source===b&&typeof F.data=="string"&&F.data.indexOf(g)===0&&a(+F.data.slice(g.length))};b.addEventListener?b.addEventListener("message",D,!1):b.attachEvent("onmessage",D),d=function(F){b.postMessage(g+F,"*")}}function u(){var g=new MessageChannel;g.port1.onmessage=function(D){var F=D.data;a(F)},d=function(D){g.port2.postMessage(D)}}function E(){var g=S.documentElement;d=function(D){var F=S.createElement("script");F.onreadystatechange=function(){a(D),F.onreadystatechange=null,g.removeChild(F),F=null},g.appendChild(F)}}function C(){d=function(g){setTimeout(a,0,g)}}var l=Object.getPrototypeOf&&Object.getPrototypeOf(b);l=l&&l.setTimeout?l:b,{}.toString.call(b.process)==="[object process]"?c():i()?r():b.MessageChannel?u():S&&"onreadystatechange"in S.createElement("script")?E():C(),l.setImmediate=f,l.clearImmediate=h})(typeof self=="undefined"?typeof o.g=="undefined"?this:o.g:self)},42238:function(z,P,o){var x;(function(b,v){"use strict";var A="0.7.34",p="",B="?",S="function",d="undefined",f="object",h="string",s="major",a="model",c="name",i="type",r="vendor",u="version",E="architecture",C="console",l="mobile",g="tablet",D="smarttv",F="wearable",y="embedded",L=350,T="Amazon",I="Apple",w="ASUS",H="BlackBerry",j="Browser",U="Chrome",O="Edge",re="Firefox",Q="Google",ue="Huawei",Se="LG",ye="Microsoft",V="Motorola",Be="Opera",ze="Samsung",Le="Sharp",Ue="Sony",ot="Viera",at="Xiaomi",_e="Zebra",Ze="Facebook",Te="Chromium OS",Ge="Mac OS",Ye=function(ve,Fe){var Ie={};for(var Me in ve)Fe[Me]&&Fe[Me].length%2==0?Ie[Me]=Fe[Me].concat(ve[Me]):Ie[Me]=ve[Me];return Ie},ut=function(ve){for(var Fe={},Ie=0;Ie<ve.length;Ie++)Fe[ve[Ie].toUpperCase()]=ve[Ie];return Fe},bt=function(ve,Fe){return typeof ve===h?nt(Fe).indexOf(nt(ve))!==-1:!1},nt=function(ve){return ve.toLowerCase()},be=function(ve){return typeof ve===h?ve.replace(/[^\d\.]/g,p).split(".")[0]:v},Xe=function(ve,Fe){if(typeof ve===h)return ve=ve.replace(/^\s\s*/,p),typeof Fe===d?ve:ve.substring(0,L)},Et=function(ve,Fe){for(var Ie=0,Me,We,lt,me,it,qe;Ie<Fe.length&&!it;){var ft=Fe[Ie],dt=Fe[Ie+1];for(Me=We=0;Me<ft.length&&!it&&ft[Me];)if(it=ft[Me++].exec(ve),it)for(lt=0;lt<dt.length;lt++)qe=it[++We],me=dt[lt],typeof me===f&&me.length>0?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;Me<Fe[Ie].length;Me++)if(bt(Fe[Ie][Me],ve))return Ie===B?v:Ie}else if(bt(Fe[Ie],ve))return Ie===B?v:Ie;return ve},Ke={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0","7":"NT 6.1","8":"NT 6.2","8.1":"NT 6.3","10":["NT 6.4","NT 10.0"],RT:"ARM"},oe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,Be+" Mini"]],[/\bopr\/([\w\.]+)/i],[u,[c,Be]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,u],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[u,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+j],u],[/\bfocus\/([\w\.]+)/i],[u,[c,re+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,Be+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,Be+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI "+j]],[/fxios\/([-\w\.]+)/i],[u,[c,re]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+j]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+j],u],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,u],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,Ze],u],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,u],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,U+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,U+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[u,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,Ut,Ke]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,re+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,u],[/(cobalt)\/([\w\.]+)/i],[c,[u,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,nt]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,p,nt]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,nt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[r,ze],[i,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[r,ze],[i,l]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[r,I],[i,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[r,I],[i,g]],[/(macintosh);/i],[a,[r,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[r,Le],[i,l]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[r,ue],[i,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[r,ue],[i,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[r,at],[i,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[r,at],[i,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[r,"OPPO"],[i,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[r,"Vivo"],[i,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[r,"Realme"],[i,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[r,V],[i,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[r,V],[i,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[r,Se],[i,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[r,Se],[i,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[r,"Lenovo"],[i,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[r,"Nokia"],[i,l]],[/(pixel c)\b/i],[a,[r,Q],[i,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[r,Q],[i,l]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[r,Ue],[i,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[r,Ue],[i,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[r,"OnePlus"],[i,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[r,T],[i,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[r,T],[i,l]],[/(playbook);[-\w\),; ]+(rim)/i],[a,r,[i,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[r,H],[i,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[r,w],[i,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[r,w],[i,l]],[/(nexus 9)/i],[a,[r,"HTC"],[i,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[r,[a,/_/g," "],[i,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[r,"Acer"],[i,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[r,"Meizu"],[i,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[r,a,[i,l]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[r,a,[i,g]],[/(surface duo)/i],[a,[r,ye],[i,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[r,"Fairphone"],[i,l]],[/(u304aa)/i],[a,[r,"AT&T"],[i,l]],[/\bsie-(\w*)/i],[a,[r,"Siemens"],[i,l]],[/\b(rct\w+) b/i],[a,[r,"RCA"],[i,g]],[/\b(venue[\d ]{2,7}) b/i],[a,[r,"Dell"],[i,g]],[/\b(q(?:mv|ta)\w+) b/i],[a,[r,"Verizon"],[i,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[r,"Barnes & Noble"],[i,g]],[/\b(tm\d{3}\w+) b/i],[a,[r,"NuVision"],[i,g]],[/\b(k88) b/i],[a,[r,"ZTE"],[i,g]],[/\b(nx\d{3}j) b/i],[a,[r,"ZTE"],[i,l]],[/\b(gen\d{3}) b.+49h/i],[a,[r,"Swiss"],[i,l]],[/\b(zur\d{3}) b/i],[a,[r,"Swiss"],[i,g]],[/\b((zeki)?tb.*\b) b/i],[a,[r,"Zeki"],[i,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[r,"Dragon Touch"],a,[i,g]],[/\b(ns-?\w{0,9}) b/i],[a,[r,"Insignia"],[i,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[r,"NextBook"],[i,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[r,"Voice"],a,[i,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[r,"LvTel"],a,[i,l]],[/\b(ph-1) /i],[a,[r,"Essential"],[i,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[r,"Envizen"],[i,g]],[/\b(trio[-\w\. ]+) b/i],[a,[r,"MachSpeed"],[i,g]],[/\btu_(1491) b/i],[a,[r,"Rotor"],[i,g]],[/(shield[\w ]+) b/i],[a,[r,"Nvidia"],[i,g]],[/(sprint) (\w+)/i],[r,a,[i,l]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[r,ye],[i,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[r,_e],[i,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[r,_e],[i,l]],[/smart-tv.+(samsung)/i],[r,[i,D]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[r,ze],[i,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[r,Se],[i,D]],[/(apple) ?tv/i],[r,[a,I+" TV"],[i,D]],[/crkey/i],[[a,U+"cast"],[r,Q],[i,D]],[/droid.+aft(\w)( bui|\))/i],[a,[r,T],[i,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[r,Le],[i,D]],[/(bravia[\w ]+)( bui|\))/i],[a,[r,Ue],[i,D]],[/(mitv-\w{5}) bui/i],[a,[r,at],[i,D]],[/Hbbtv.*(technisat) (.*);/i],[r,a,[i,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[r,Xe],[a,Xe],[i,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,D]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[r,a,[i,C]],[/droid.+; (shield) bui/i],[a,[r,"Nvidia"],[i,C]],[/(playstation [345portablevi]+)/i],[a,[r,Ue],[i,C]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[r,ye],[i,C]],[/((pebble))app/i],[r,a,[i,F]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[r,I],[i,F]],[/droid.+; (glass) \d/i],[a,[r,Q],[i,F]],[/droid.+; (wt63?0{2,3})\)/i],[a,[r,_e],[i,F]],[/(quest( 2| pro)?)/i],[a,[r,Ze],[i,F]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[r,[i,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[i,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[i,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,l]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[r,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,O+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,u],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,u],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[u,Ut,te]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[u,Ut,te]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,Ge],[u,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[u,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,u],[/\(bb(10);/i],[u,[c,H]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,re+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[u,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[u,[c,U+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,Te],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,u],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],u],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,u]]},le=function(ve,Fe){if(typeof ve===f&&(Fe=ve,ve=v),!(this instanceof le))return new le(ve,Fe).getResult();var Ie=typeof b!==d&&b.navigator?b.navigator:v,Me=ve||(Ie&&Ie.userAgent?Ie.userAgent:p),We=Ie&&Ie.userAgentData?Ie.userAgentData:v,lt=Fe?Ye(oe,Fe):oe;return this.getBrowser=function(){var me={};return me[c]=v,me[u]=v,Et.call(me,Me,lt.browser),me[s]=be(me[u]),Ie&&Ie.brave&&typeof Ie.brave.isBrave==S&&(me[c]="Brave"),me},this.getCPU=function(){var me={};return me[E]=v,Et.call(me,Me,lt.cpu),me},this.getDevice=function(){var me={};return me[r]=v,me[a]=v,me[i]=v,Et.call(me,Me,lt.device),!me[i]&&We&&We.mobile&&(me[i]=l),me[a]=="Macintosh"&&Ie&&typeof Ie.standalone!==d&&Ie.maxTouchPoints&&Ie.maxTouchPoints>2&&(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)}}]);