1/*! For license information please see 479.38aac6a7.chunk.js.LICENSE.txt */ 2(self.webpackChunksolar_react=self.webpackChunksolar_react||[]).push([[479],{37272:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(47313),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},a=n(17469),l=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};l.displayName="MenuFoldOutlined";var s=o.forwardRef(l)},59529:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(47313),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},a=n(17469),l=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};l.displayName="MenuUnfoldOutlined";var s=o.forwardRef(l)},61318:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(29439),o=n(47313);function i(){var e=o.useReducer((function(e){return e+1}),0);return(0,r.Z)(e,2)[1]}},28709:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(87462),o=n(4942),i=n(93433),a=n(46123),l=n.n(a),s=n(14903),c=n(47313),u=n(74714),f=n(67251),d=n(48138),p=n(67440),h=n(37142),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=function(e){var t,n,o=e.prefixCls,i=e.separator,a=void 0===i?"/":i,l=e.children,s=e.overlay,f=e.dropdownProps,d=g(e,["prefixCls","separator","children","overlay","dropdownProps"]),m=(0,c.useContext(u.E_).getPrefixCls)("breadcrumb",o);return t="href"in d?c.createElement("a",(0,r.Z)({className:"".concat(m,"-link")},d),l):c.createElement("span",(0,r.Z)({className:"".concat(m,"-link")},d),l),n=t,t=s?c.createElement(h.Z,(0,r.Z)({overlay:s,placement:"bottom"},f),c.createElement("span",{className:"".concat(m,"-overlay-link")},n,c.createElement(p.Z,null))):n,void 0!==l&&null!==l?c.createElement("li",null,t,a&&c.createElement("span",{className:"".concat(m,"-separator")},a)):null};m.__ANT_BREADCRUMB_ITEM=!0;var y=m,v=function(e){var t=e.children,n=(0,c.useContext(u.E_).getPrefixCls)("breadcrumb");return c.createElement("span",{className:"".concat(n,"-separator")},t||"/")};v.__ANT_BREADCRUMB_SEPARATOR=!0;var b=v,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function E(e,t,n,r){var o=n.indexOf(e)===n.length-1,i=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return o?c.createElement("span",null,i):c.createElement("a",{href:"#/".concat(r.join("/"))},i)}var w=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},S=function(e,t,n){var r=(0,i.Z)(e),o=w(t||"",n);return o&&r.push(o),r},k=function(e){var t,n=e.prefixCls,i=e.separator,a=void 0===i?"/":i,p=e.style,h=e.className,g=e.routes,m=e.children,v=e.itemRender,b=void 0===v?E:v,k=e.params,x=void 0===k?{}:k,C=A(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),_=c.useContext(u.E_),I=_.getPrefixCls,O=_.direction,T=I("breadcrumb",n);if(g&&g.length>0){var M=[];t=g.map((function(e){var t,n=w(e.path,x);return n&&M.push(n),e.children&&e.children.length&&(t=c.createElement(f.Z,{items:e.children.map((function(e){return{key:e.path||e.breadcrumbName,label:b(e,x,g,S(M,e.path,x))}}))})),c.createElement(y,{overlay:t,separator:a,key:n||e.breadcrumbName},b(e,x,g,M))}))}else m&&(t=(0,s.Z)(m).map((function(e,t){return e?(0,d.Tm)(e,{separator:a,key:t}):e})));var B=l()(T,(0,o.Z)({},"".concat(T,"-rtl"),"rtl"===O),h);return c.createElement("nav",(0,r.Z)({className:B,style:p},C),c.createElement("ol",null,t))};k.Item=y,k.Separator=b;var x=k},38012:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.getFromHTMLConfig=t.getToHTMLConfig=t.blocks=t.getHexColor=t.defaultFontFamilies=t.namedColors=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(47313),a=(r=i)&&r.__esModule?r:{default:r};function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var s=t.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"},c=function(e){return e.split("-")[1]},u=function(e){return e+"px"},f=function(e){return e.replace("px","")},d=["style"],p=["style","href","target","alt","title","id","controls","autoplay","loop","poster"],h=(t.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"}],t.getHexColor=function(e){if(e=e.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(e))return e;if(s[e])return s[e];if(0===e.indexOf("rgb")){var t=e.split(","),n=t.length<3?null:"#"+[t[0],t[1],t[2]].map((function(e){var t=parseInt(e.replace(/\D/g,""),10).toString(16);return 1===t.length?"0"+t:t})).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(n)?n:null}return null}),g=t.blocks={"header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6",unstyled:"p",blockquote:"blockquote"},m=Object.keys(g),y=m.map((function(e){return g[e]})),v=function(e){return function(t,n){var r=e.entityExportFn,i=t.type.toLowerCase();if(r){var s=r(t,n);if(s)return s}if("link"===i){var c=t.data.nodeAttributes||{},u=c.class,f=l(c,["class"]);return f.className=u,a.default.createElement("a",o({href:t.data.href,target:t.data.target},f))}}},b=function(e){return function(t){var n=e.unitExportFn||u;if(e.styleExportFn){var r=e.styleExportFn(t,e);if(r)return r}if("strikethrough"===(t=t.toLowerCase()))return a.default.createElement("span",{style:{textDecoration:"line-through"}});if("superscript"===t)return a.default.createElement("sup",null);if("subscript"===t)return a.default.createElement("sub",null);if(0===t.indexOf("color-"))return a.default.createElement("span",{style:{color:"#"+c(t)}});if(0===t.indexOf("bgcolor-"))return a.default.createElement("span",{style:{backgroundColor:"#"+c(t)}});if(0===t.indexOf("fontsize-"))return a.default.createElement("span",{style:{fontSize:n(c(t),"font-size","html")}});if(0===t.indexOf("lineheight-"))return a.default.createElement("span",{style:{lineHeight:n(c(t),"line-height","html")}});if(0===t.indexOf("letterspacing-"))return a.default.createElement("span",{style:{letterSpacing:n(c(t),"letter-spacing","html")}});if(0===t.indexOf("fontfamily-")){var o=e.fontFamilies.find((function(e){return e.name.toLowerCase()===c(t)}));if(!o)return;return a.default.createElement("span",{style:{fontFamily:o.family}})}}},A=function(e){return function(t){var n=e.blockExportFn,r=e.contentState;if(n){var i=n(r,t);if(i)return i}var s,c="",u=t.type.toLowerCase(),f=t.data,d=f.textAlign,p=f.textIndent,h=f.nodeAttributes,m=void 0===h?{}:h,y=(s=m,Object.keys(s).reduce((function(e,t){return e+" "+t+'="'+s[t]+'"'}),"").replace(/^\s$/,""));if((d||p)&&(c=' style="',d&&(c+="text-align:"+d+";"),p&&!isNaN(p)&&p>0&&(c+="text-indent:"+2*p+"em;"),c+='"'),"atomic"===u)return function(e,t,n){if(!e||!e.key)return a.default.createElement("p",null);
2var r=t.getBlockForKey(e.key),i=n.class,s=l(n,["class"]);if(s.className=i,!r)return a.default.createElement("p",null);var c=r.getEntityAt(0);if(!c)return a.default.createElement("p",null);var u=t.getEntity(c),f=u.getType().toLowerCase(),d=e.data,p=d.float,h=d.alignment,g=u.getData(),m=g.url,y=g.link,v=g.link_target,b=g.width,A=g.height,E=g.meta;if("image"===f){var w={},S="";return p?(w.float=p,S+=" float-"+p):h&&(w.textAlign=h,S+=" align-"+h),y?a.default.createElement("div",{className:"media-wrap image-wrap"+S,style:w},a.default.createElement("a",{style:{display:"inline-block"},href:y,target:v},a.default.createElement("img",o({},s,E,{src:m,width:b,height:A,style:{width:b,height:A}})))):a.default.createElement("div",{className:"media-wrap image-wrap"+S,style:w},a.default.createElement("img",o({},s,E,{src:m,width:b,height:A,style:{width:b,height:A}})))}return"audio"===f?a.default.createElement("div",{className:"media-wrap audio-wrap"},a.default.createElement("audio",o({controls:!0},s,E,{src:m}))):"video"===f?a.default.createElement("div",{className:"media-wrap video-wrap"},a.default.createElement("video",o({controls:!0},s,E,{src:m,width:b,height:A}))):"embed"===f?a.default.createElement("div",{className:"media-wrap embed-wrap"},a.default.createElement("div",{dangerouslySetInnerHTML:{__html:m}})):"hr"===f?a.default.createElement("hr",null):a.default.createElement("p",null)}(t,r,m);if("code-block"===u){var v=r.getBlockBefore(t.key),b=r.getBlockAfter(t.key);return{start:"code-block"!==(v&&v.getType())?"<pre"+y+"><code>":"",end:"code-block"!==(b&&b.getType())?"</code></pre>":"<br/>"}}return g[u]?{start:"<"+g[u]+c+y+">",end:"</"+g[u]+">"}:"unordered-list-item"===u?{start:"<li"+c+y+">",end:"</li>",nest:a.default.createElement("ul",null)}:"ordered-list-item"===u?{start:"<li"+c+y+">",end:"</li>",nest:a.default.createElement("ol",null)}:void 0}},E=function(e,t){return function(n,r,o){if(!r||!r.style)return o;var i=e.unitImportFn||f,a=o;return[].forEach.call(r.style,(function(o){if("span"===n&&"color"===o){var l=h(r.style.color);a=l?a.add("COLOR-"+l.replace("#","").toUpperCase()):a}else if("span"===n&&"background-color"===o){var s=h(r.style.backgroundColor);a=s?a.add("BGCOLOR-"+s.replace("#","").toUpperCase()):a}else if("span"===n&&"font-size"===o)a=a.add("FONTSIZE-"+i(r.style.fontSize,"font-size",t));else if("span"!==n||"line-height"!==o||isNaN(parseFloat(r.style.lineHeight,10)))if("span"!==n||"letter-spacing"!==o||isNaN(parseFloat(r.style.letterSpacing,10))){if("span"===n&&"text-decoration"===o)"line-through"===r.style.textDecoration?a=a.add("STRIKETHROUGH"):"underline"===r.style.textDecoration&&(a=a.add("UNDERLINE"));else if("span"===n&&"font-family"===o){var c=e.fontFamilies.find((function(e){return e.family.toLowerCase()===r.style.fontFamily.toLowerCase()}));if(!c)return;a=a.add("FONTFAMILY-"+c.name.toUpperCase())}}else a=a.add("LETTERSPACING-"+i(r.style.letterSpacing,"letter-spacing",t));else a=a.add("LINEHEIGHT-"+i(r.style.lineHeight,"line-height",t))})),"sup"===n?a=a.add("SUPERSCRIPT"):"sub"===n&&(a=a.add("SUBSCRIPT")),e.styleImportFn&&(a=e.styleImportFn(n,r,a,t)||a),a}},w=function(e,t){return function(n,r,o){if(e&&e.entityImportFn){var i=e.entityImportFn(n,r,o,t);if(i)return i}n=n.toLowerCase();var a=r.alt,l=r.title,s=r.id,c=r.controls,u=r.autoplay,f=r.loop,d=r.poster,h={},g={};if(s&&(h.id=s),a&&(h.alt=a),l&&(h.title=l),c&&(h.controls=c),u&&(h.autoPlay=u),f&&(h.loop=f),d&&(h.poster=d),r.attributes&&Object.keys(r.attributes).forEach((function(e){var t=r.attributes[e];-1===p.indexOf(t.name)&&(g[t.name]=t.value)})),"a"===n&&!r.querySelectorAll("img").length)return o("LINK","MUTABLE",{href:r.getAttribute("href"),target:r.getAttribute("target"),nodeAttributes:g});if("audio"===n)return o("AUDIO","IMMUTABLE",{url:r.getAttribute("src"),meta:h,nodeAttributes:g});if("video"===n)return o("VIDEO","IMMUTABLE",{url:r.getAttribute("src"),meta:h,nodeAttributes:g});if("img"===n){var m=r.parentNode,y={meta:h},v=r.style,b=v.width,A=v.height;return y.url=r.getAttribute("src"),b&&(y.width=b),A&&(y.height=A),"a"===m.nodeName.toLowerCase()&&(y.link=m.getAttribute("href"),y.link_target=m.getAttribute("target")),o("IMAGE","IMMUTABLE",y)}if("hr"===n)return o("HR","IMMUTABLE",{});if(r.parentNode&&r.parentNode.classList.contains("embed-wrap")){var E=r.innerHTML||r.outerHTML;if(E)return o("EMBED","IMMUTABLE",{url:E})}}},S=function(e,t){return function(n,r){if(e&&e.blockImportFn){var o=e.blockImportFn(n,r,t);if(o)return o}var i={},a=r.style||{};
2if(r.attributes&&Object.keys(r.attributes).forEach((function(e){var t=r.attributes[e];-1===d.indexOf(t.name)&&(i[t.name]=t.value)})),r.classList&&r.classList.contains("media-wrap"))return{type:"atomic",data:{nodeAttributes:i,float:a.float,alignment:a.textAlign}};if("img"===n)return{type:"atomic",data:{nodeAttributes:i,float:a.float,alignment:a.textAlign}};if("hr"===n)return{type:"atomic",data:{nodeAttributes:i}};if("pre"===n)return r.innerHTML=r.innerHTML.replace(/<code(.*?)>/g,"").replace(/<\/code>/g,""),{type:"code-block",data:{nodeAttributes:i}};if(-1!==y.indexOf(n)){var l={nodeAttributes:i};return a.textAlign&&(l.textAlign=a.textAlign),a.textIndent&&(l.textIndent=/^\d+em$/.test(a.textIndent)?Math.ceil(parseInt(a.textIndent,10)/2):1),{type:m[y.indexOf(n)],data:l}}}};t.getToHTMLConfig=function(e){return{styleToHTML:b(e),entityToHTML:v(e),blockToHTML:A(e)}},t.getFromHTMLConfig=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknow";return{htmlToStyle:E(e,t),htmlToEntity:w(e,t),htmlToBlock:S(e,t)}}},92808:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertRawToEditorState=t.convertEditorStateToRaw=t.convertHTMLToEditorState=t.convertEditorStateToHTML=t.convertHTMLToRaw=t.convertRawToHTML=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(40436),i=n(38012),a=n(52500),l={fontFamilies:i.defaultFontFamilies};t.convertRawToHTML=function(e,t){t=r({},l,t);try{var n=(0,a.convertFromRaw)(e);return t.contentState=n,(0,o.convertToHTML)((0,i.getToHTMLConfig)(t))(n)}catch(s){return console.warn(s),""}},t.convertHTMLToRaw=function(e,t,n){t=r({},l,t);try{var s=(0,o.convertFromHTML)((0,i.getFromHTMLConfig)(t,n))(e);return(0,a.convertToRaw)(s)}catch(c){return console.warn(c),{}}},t.convertEditorStateToHTML=function(e,t){t=r({},l,t);try{var n=e.getCurrentContent();return t.contentState=n,(0,o.convertToHTML)((0,i.getToHTMLConfig)(t))(n)}catch(a){return console.warn(a),""}},t.convertHTMLToEditorState=function(e,t,n,s){n=r({},l,n);try{return a.EditorState.createWithContent((0,o.convertFromHTML)((0,i.getFromHTMLConfig)(n,s))(e),t)}catch(c){return console.warn(c),a.EditorState.createEmpty(t)}},t.convertEditorStateToRaw=function(e){return(0,a.convertToRaw)(e.getCurrentContent())},t.convertRawToEditorState=function(e,t){try{return a.EditorState.createWithContent((0,a.convertFromRaw)(e),t)}catch(n){return console.warn(n),a.EditorState.createEmpty(t)}}},19747:function(e,t,n){var r;window,r=function(e,t,n,r,o,i,a,l){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=39)}([function(t,n){t.exports=e},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(2);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);
2"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}},function(e,t){e.exports=n},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(15),o=n(1);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?o(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(26);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(27),o=n(28),i=n(29);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(t){return"function"===typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t,n){var r=n(13),o="-";function i(e){this.decorators=r.List(e)}i.prototype.getDecorations=function(e){var t=Array(e.getText().length).fill(null);return this.decorators.forEach((function(n,r){n.getDecorations(e).forEach((function(e,n){e&&(e=r+o+e,t[n]=e)}))})),r.List(t)},i.prototype.getComponentForKey=function(e){return this.getDecoratorForKey(e).getComponentForKey(this.getInnerKey(e))},i.prototype.getPropsForKey=function(e){return this.getDecoratorForKey(e).getPropsForKey(this.getInnerKey(e))},i.prototype.getDecoratorForKey=function(e){var t=e.split(o),n=Number(t[0]);return this.decorators.get(n)},i.prototype.getInnerKey=function(e){return e.split(o).slice(1).join(o)},e.exports=i},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=n(13),a=i.Map,l=i.OrderedSet,s=i.Record,c=l(),u={style:c,entity:null},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return d;var n=a({style:c,entity:null}).merge(e),r=p.get(n);if(r)return r;var o=new t(n);return p=p.set(n,o),o},t}(s(u)),d=new f,p=a([[a(u),d]]);f.EMPTY=d,e.exports=f},function(e,t,n){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},function(e,t,n){var r=n(25);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";var r=n(30);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},function(e,t){e.exports=l},function(e,t,n){var r=n(36),o=n(37),i=n(38);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}}
2,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(31),o=n(34);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=o(e,t).getBlockMap(),c=s.keySeq(),u=c.indexOf(n),f=c.indexOf(a)+1;return r(s.slice(u,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,l),characterList:o.slice(i,l)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,l),characterList:o.slice(0,l)}):e})))}},function(e,t,n){"use strict";var r=n(32),o=n(13),i=n(33),a=o.OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t={},n=void 0;return a(e.withMutations((function(e){e.forEach((function(r,o){var a=r.getKey(),l=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),f=i();if(t[a]=f,l&&(e.get(l)?e.setIn([l,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),f))}else e.setIn([a,"parent"],null),n&&(e.setIn([n.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],t[n.getKey()])),n=e.get(a);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]})))}(e):function(e){return a(e.toArray().map((function(e){var t=i();return[t,e.set("key",t)]})))}(e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=n(19),a=n(13),l=n(20),s=a.List,c=a.Map,u=a.OrderedSet,f=a.Record,d=a.Repeat,p=u(),h={parent:null,characterList:s(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null},g=function(e,t){return e.getStyle()===t.getStyle()},m=function(e,t){return e.getEntity()===t.getEntity()},y=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=s(d(i.EMPTY,n.length))),e},v=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return r(this,t),o(this,e.call(this,y(n)))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){l(this.getCharacterList(),g,e,t)},t.prototype.findEntityRanges=function(e,t){l(this.getCharacterList(),m,e,t)},t}(f(h));e.exports=v},function(e,t,n){"use strict";var r={},o=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||r.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*o).toString(32);return r[e]=!0,e}},function(e,t,n){"use strict";var r=n(19),o=n(20),i=n(35);function a(e,t,n){var a=t.getCharacterList(),l=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,c=l?l.getEntity():void 0,u=s?s.getEntity():void 0;if(u&&u===c&&"MUTABLE"!==e.__get(u).getMutability()){for(var f,d=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!==typeof r&&i(!1),r}(a,u,n),p=d.start,h=d.end;p<h;)f=a.get(p),a=a.set(p,r.applyEntity(f,null)),p++;return t.set("characterList",a)}return t}
2e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),l=t.getStartOffset(),s=n.get(i),c=a(r,s,l);c!==s&&(o[i]=c);var u=t.getEndKey(),f=t.getEndOffset(),d=n.get(u);i===u&&(d=c);var p=a(r,d,f);return p!==d&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n.n(r),i=n(5),a=n.n(i),l=n(21),s=n.n(l),c=n(4),u=n.n(c),f=n(7),d=n.n(f),p=n(8),h=n.n(p),g=n(9),m=n.n(g),y=n(1),v=n.n(y),b=n(10),A=n.n(b),E=n(2),w=n.n(E),S=n(12),k=n.n(S),x=(n(40),n(42),n(0)),C=n.n(x),_={en:{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"}},zh:{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"}},"zh-hant":{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:"\u9
2023\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"}},pl:{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"}},kr:{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\u
2c774\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"}},tr:{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"}},jpn:{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"}}
2,ru:{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"}},fr:{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"}},"pt-br":{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"}}
2,"vi-vn":{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"}}},I=n(17),O=n.n(I),T=n(3),M=n(6),B=n(13),D=n.n(B),L={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(e,t){return"line-height"===t?e:"".concat(e,"px")}},emojis:["\ud83e\udd23","\ud83d\ude4c","\ud83d\udc9a","\ud83d\udc9b","\ud83d\udc4f","\ud83d\ude09","\ud83d\udcaf","\ud83d\udc95","\ud83d\udc9e","\ud83d\udc98","\ud83d\udc99","\ud83d\udc9d","\ud83d\udda4","\ud83d\udc9c","\u2764\ufe0f","\ud83d\ude0d","\ud83d\ude3b","\ud83d\udc93","\ud83d\udc97","\ud83d\ude0b","\ud83d\ude07","\ud83d\ude02","\ud83d\ude39","\ud83d\ude18","\ud83d\udc96","\ud83d\ude01","\ud83d\ude00","\ud83e\udd1e","\ud83d\ude32","\ud83d\ude04","\ud83d\ude0a","\ud83d\udc4d","\ud83d\ude0c","\ud83d\ude03","\ud83d\ude05","\u270c\ufe0f","\ud83e\udd17","\ud83d\udc8b","\ud83d\ude17","\ud83d\ude3d","\ud83d\ude1a","\ud83e\udd20","\ud83d\ude19","\ud83d\ude3a","\ud83d\udc44","\ud83d\ude38","\ud83d\ude0f","\ud83d\ude3c","\ud83d\udc4c","\ud83d\ude0e","\ud83d\ude06","\ud83d\ude1b","\ud83d\ude4f","\ud83e\udd1d","\ud83d\ude42","\ud83e\udd11","\ud83d\ude1d","\ud83d\ude10","\ud83d\ude11","\ud83e\udd24","\ud83d\ude24","\ud83d\ude43","\ud83e\udd21","\ud83d\ude36","\ud83d\ude2a","\ud83d\ude34","\ud83d\ude35","\ud83d\ude13","\ud83d\udc4a","\ud83d\ude26","\ud83d\ude37","\ud83e\udd10","\ud83d\ude1c","\ud83e\udd13","\ud83d\udc7b","\ud83d\ude25","\ud83d\ude44","\ud83e\udd14","\ud83e\udd12","\ud83d\ude41","\ud83d\ude14","\ud83d\ude2f","\u2639\ufe0f","\u2620\ufe0f","\ud83d\ude30","\ud83d\ude29","\ud83d\ude16","\ud83d\ude15","\ud83d\ude12","\ud83d\ude23","\ud83d\ude22","\ud83d\ude2e","\ud83d\ude3f","\ud83e\udd27","\ud83d\ude2b","\ud83e\udd25","\ud83d\ude1e","\ud83d\ude2c","\ud83d\udc4e","\ud83d\udc80","\ud83d\ude33","\ud83d\ude28","\ud83e\udd15","\ud83e\udd22","\ud83d\ude31","\ud83d\ude2d","\ud83d\ude20","\ud83d\ude08","\ud83d\ude27","\ud83d\udc94","\ud83d\ude1f","\ud83d\ude40","\ud83d\udca9","\ud83d\udc7f","\ud83d\ude21","\ud83d\ude3e","\ud83d\udd95"],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},N=n(22),F=n.n(N),R=n(23),P=function(e,t,n){if(n.editorProps.handleKeyCommand&&"handled"===n.editorProps.handleKeyCommand(e,t,n
2))return"handled";if("braft-save"===e)return n.editorProps.onSave&&n.editorProps.onSave(t),"handled";var r=n.editorProps,o=r.controls,i=r.excludeControls,a=(0!==o.indexOf("text-indent")||o.find((function(e){return"text-indent"===e.key})))&&-1===i.indexOf("text-indent"),l=t.getSelection().getStartOffset(),s=t.getSelection().getEndOffset(),c=0===l&&0===s;if("backspace"===e){if(n.editorProps.onDelete&&!1===n.editorProps.onDelete(t))return"handled";var u=T.ContentUtils.getSelectionBlockType(t);a&&c&&"code-block"!==u&&n.setValue(T.ContentUtils.decreaseSelectionIndent(t))}if("tab"===e){var f=T.ContentUtils.getSelectionBlockType(t);if("code-block"===f)return n.setValue(T.ContentUtils.insertText(t," ".repeat(n.editorProps.codeTabIndents))),"handled";if("ordered-list-item"===f||"unordered-list-item"===f){var d=M.RichUtils.onTab(event,t,4);return d!==t&&n.setValue(d),"handled"}if("atomic"!==f&&a&&c)return n.setValue(T.ContentUtils.increaseSelectionIndent(t)),"handled"}var p=T.ContentUtils.handleKeyCommand(t,e);return p?(n.setValue(p),"handled"):"not-handled"},K=function(e,t){var n=a()({},t.constructor.defaultProps.media,t.editorProps.media),r=n.pasteImage,o=n.validateFn,i=n.imagePasteLimit;return r&&e.slice(0,i).forEach((function(e){if(e&&e.type.indexOf("image")>-1&&t.braftFinder){var n=!o||o(e);n instanceof Promise?n.then((function(){t.braftFinder.uploadImage(e,(function(e){t.isLiving&&t.setValue(T.ContentUtils.insertMedias(t.state.editorState,[e]))}))})):n&&t.braftFinder.uploadImage(e,(function(e){t.isLiving&&t.setValue(T.ContentUtils.insertMedias(t.state.editorState,[e]))}))}})),e[0]&&e[0].type.indexOf("image")>-1&&r?"handled":"not-handled"},z=[],U=[],j=[],H=[],V=[],q=[],Q=[],W=[],G=[],Y=[],J=[],X=[],Z=function(e,t){return t?e.map((function(e){return e.includeEditors||e.excludeEditors?e.includeEditors?-1!==e.includeEditors.indexOf(t)&&e.data:!!e.excludeEditors&&-1===e.excludeEditors.indexOf(t)&&e.data:e.data})).filter((function(e){return e})):e.filter((function(e){return!e.includeEditors})).map((function(e){return e.data}))},$=function(e){var t={};return Z(q,e).forEach((function(e){t[e.inlineStyleName]=e.styleMap})),t},ee=function(e,t){return function(n,r,o){return Z(G,t).forEach((function(e){e.importer&&e.importer(n,r)&&(o=o.add(e.inlineStyleName))})),e?e(n,r,o):o}},te=function(e,t){return function(n){n=n.toUpperCase();var r=e?e(n):void 0;return r||(Z(Y,t).find((function(e){if(e.inlineStyleName===n)return r=e.exporter,!0})),r)}},ne=function(e,t){return function(n,r,o,i){var a=e?e(n,r,o,i):null;return a||(Z(W,t).find((function(e){var t=e.importer?e.importer(n,r,i):null;return t&&(a=o(e.entityType,t.mutability||"MUTABLE",t.data||{})),!!t})),a)}},re=function(e,t){return function(n,r){var o=e?e(n,r):void 0;if(o)return o;var i=n.type.toUpperCase();return Z(W,t).find((function(e){if(e.entityType===i)return o=e.exporter?e.exporter(n,r):void 0,!0})),o}},oe=function(e,t){return function(n,r,o){var i=e?e(n,r,o):null;return i||(Z(J,t).find((function(e){var t=e.importer?e.importer(n,r,o):void 0;return t&&(i=t),!!t})),i)}},ie=function(e,t){return function(n,r){var o=e?e(n,r):null;return o||(Z(X,t).find((function(e){var t=e.exporter?e.exporter(n,r):void 0;return t&&(o=t),!!t})),o)}},ae=function e(t){if(t instanceof Array)return t.forEach(e),!1;if(!t||!t.type||"string"!==typeof t.type)return!1;var n=t.includeEditors,r=t.excludeEditors;if("control"===t.type)z.push({includeEditors:n,excludeEditors:r,data:t.control});else if("inline-style"===t.type){var o=t.name.toUpperCase();t.control&&z.push({includeEditors:n,excludeEditors:r,data:a()({key:o,type:"inline-style",command:o},t.control)}),t.style&&q.push({includeEditors:n,excludeEditors:r,data:{inlineStyleName:o,styleMap:t.style}}),t.styleFn&&Q.push({includeEditors:n,excludeEditors:r,data:{inlineStyleName:o,styleFn:t.styleFn}}),t.importer&&G.push({includeEditors:n,excludeEditors:r,data:{inlineStyleName:o,importer:t.importer}}),Y.push({includeEditors:n,excludeEditors:r,data:{inlineStyleName:o,exporter:t.exporter?t.exporter(t):C.a.createElement("span",{style:t.style})}})}else if("block-style"===t.type);else if("entity"===t.type){var i=t.name.toUpperCase();t.control&&z.push({includeEditors:n,excludeEditors:r,data:"function"===typeof t.control?t.control:a()({key:i,type:"entity",command:i,data:{mutability:t.mutability||"MUTABLE",data:t.data||{}}},t.control)}
2),W.push({includeEditors:n,excludeEditors:r,data:{entityType:i,importer:t.importer,exporter:t.exporter}}),U.push({includeEditors:n,excludeEditors:r,data:{type:"entity",decorator:{key:i,component:t.component}}})}else if("block"===t.type){var l=t.name;t.renderMap&&H.push({includeEditors:n,excludeEditors:r,data:{blockType:l,renderMap:t.renderMap}}),t.rendererFn&&V.push({includeEditors:n,excludeEditors:r,data:{blockType:l,rendererFn:t.rendererFn}}),t.importer&&J.push({includeEditors:n,excludeEditors:r,data:{blockType:l,importer:t.importer}}),t.exporter&&X.push({includeEditors:n,excludeEditors:r,data:{blockType:l,exporter:t.exporter}})}else if("atomic"===t.type);else if("decorator"===t.type){var s=t.decorator;s&&s.strategy&&s.component?U.push({includeEditors:n,excludeEditors:r,data:{type:"strategy",decorator:s}}):s&&s.getDecorations&&U.push({includeEditors:n,excludeEditors:r,data:{type:"class",decorator:s}})}else"prop-interception"===t.type&&j.push({includeEditors:n,excludeEditors:r,data:t.interceptor})},le=n(11),se=n.n(le),ce=n(24),ue=n.n(ce),fe=(n(45),n(46),function(e){var t=e.active,n=e.onClick,r=e.className;return C.a.createElement("div",{onClick:function(){return n()},className:"bf-switch "+r+(t?" active":"")})}),de={"float-left":{text:C.a.createElement("span",{"data-float":"left"},"\ue91e"),command:"setImageFloat|left"},"float-right":{text:C.a.createElement("span",{"data-float":"right"},"\ue914"),command:"setImageFloat|right"},"align-left":{text:C.a.createElement("span",{"data-align":"left"},"\ue027"),command:"setImageAlignment|left"},"align-center":{text:C.a.createElement("span",{"data-align":"center"},"\ue028"),command:"setImageAlignment|center"},"align-right":{text:C.a.createElement("span",{"data-align":"right"},"\ue029"),command:"setImageAlignment|right"},size:{text:C.a.createElement("span",null,"\ue3c2"),command:"toggleSizeEditor"},link:{text:C.a.createElement("span",null,"\ue91a"),command:"toggleLinkEditor"},remove:{text:C.a.createElement("span",null,"\ue9ac"),command:"removeImage"}},pe=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"state",{toolbarVisible:!1,toolbarOffset:0,linkEditorVisible:!1,sizeEditorVisible:!1,tempLink:null,tempWidth:null,tempHeight:null}),w()(v()(n),"initialLeft",void 0),w()(v()(n),"initialTop",void 0),w()(v()(n),"initialWidth",void 0),w()(v()(n),"initialHeight",void 0),w()(v()(n),"reSizeType",void 0),w()(v()(n),"zoom",void 0),w()(v()(n),"changeSize",(function(e){var t=n.reSizeType;n.initialLeft||(n.initialLeft=e.screenX,n.initialTop=e.screenY),"rightbottom"===t&&(n.initialHeight+=e.screenY-n.initialTop,n.initialWidth+=e.screenX-n.initialLeft),"leftbottom"===t&&(n.initialHeight+=e.screenY-n.initialTop,n.initialWidth+=-e.screenX+n.initialLeft),n.initialLeft=e.screenX,n.initialTop=e.screenY})),w()(v()(n),"moveImage",(function(e){n.changeSize(e),n.setState({tempWidth:Math.abs(n.initialWidth),tempHeight:Math.abs(n.initialHeight)})})),w()(v()(n),"upImage",(function(){n.props.imageEqualRatio?n.confirmImageSizeEqualRatio():n.confirmImageSize(),document.removeEventListener("mousemove",n.moveImage),document.removeEventListener("mouseup",n.upImage)})),w()(v()(n),"repareChangeSize",(function(e){return function(t){n.reSizeType=e;var r=n.imageElement.getBoundingClientRect();n.initialLeft=n.initialTop=0,n.initialWidth=r.width,n.initialHeight=r.height,n.zoom=r.width/r.height,t.preventDefault(),document.addEventListener("mousemove",n.moveImage),document.addEventListener("mouseup",n.upImage)}})),w()(v()(n),"preventDragEvent",(function(e){e.stopPropagation(),e.preventDefault()})),w()(v()(n),"handleDragStart",(function(){return!n.props.editor.editorProps.readOnly&&!n.props.editor.editorProps.disabled&&(window.__BRAFT_DRAGING__IMAGE__={block:n.props.block,mediaData:a()({type:"IMAGE"},n.props.mediaData)},n.setState({toolbarVisible:!1},(function(){n.unlockEditor()})),!0)})),w()(v()(n),"handleDragEnd",(function(){return window.__BRAFT_DRAGING__IMAGE__=null,!1})),w()(v()(n),"executeCommand",(function(e){if("string"===typeof e){var t=e.split("|"),r=ue()(t,2),o=r[0],i=r[1];n[o]&&n[o](i)}else"function"===typeof e&&e(n.props.block,n.props.mediaData,n.props.editor.getValue())})),w()(v()(n),"removeImage",(function(){n.props.editor.setValue(T.ContentUtils.removeBlock(n.props.editor.getValue(),n.props.block)),n.unlockEditor()})),w()(v()(n),"toggleLinkEditor",(function(){n.setState({linkEditorVisible:!n.state.linkEditorVisible,sizeEditorVisible:!1})}
2)),w()(v()(n),"toggleSizeEditor",(function(){n.setState({linkEditorVisible:!1,sizeEditorVisible:!n.state.sizeEditorVisible})})),w()(v()(n),"handleLinkInputKeyDown",(function(e){13===e.keyCode&&n.confirmImageLink()})),w()(v()(n),"setImageLink",(function(e){n.setState({tempLink:e.currentTarget.value})})),w()(v()(n),"confirmImageLink",(function(){var e=n.state.tempLink,t=n.props.hooks("set-image-link",e)(e);if(!1===t)return!1;"string"===typeof t&&(e=t),null!==e&&(n.props.editor.setValue(T.ContentUtils.setMediaData(n.props.editor.getValue(),n.props.entityKey,{link:e})),window.setImmediate(n.props.editor.forceRender))})),w()(v()(n),"handleSizeInputKeyDown",(function(e){13===e.keyCode&&n.confirmImageSize()})),w()(v()(n),"setImageWidth",(function(e){var t=e.currentTarget.value;t&&!isNaN(t)&&(t+="px"),n.setState({tempWidth:t})})),w()(v()(n),"setImageHeight",(function(e){var t=e.currentTarget.value;t&&!isNaN(t)&&(t+="px"),n.setState({tempHeight:t})})),w()(v()(n),"confirmImageSize",(function(){var e=n.state,t=e.tempWidth,r=e.tempHeight,o={};null!==t&&(o.width=t),null!==r&&(o.height=r);var i=n.props.hooks("set-image-size",o)(o);if(!1===i)return!1;i&&(i.width||i.height)&&(o=i),n.props.editor.setValue(T.ContentUtils.setMediaData(n.props.editor.getValue(),n.props.entityKey,o)),window.setImmediate(n.props.editor.forceRender)})),w()(v()(n),"confirmImageSizeEqualRatio",(function(){var e,t,r=n.state,o=r.tempWidth,i=r.tempHeight,a={};o/i>n.zoom?(e=Math.floor(i*n.zoom),n.setState({tempWidth:e}),t=i):o/i<n.zoom&&(t=Math.floor(o/n.zoom),n.setState({tempHeight:t}),e=o),null!==e&&(a.width=e),null!==t&&(a.height=t);var l=n.props.hooks("set-image-size",a)(a);if(!1===l)return!1;l&&(l.width||l.height)&&(a=l),n.props.editor.setValue(T.ContentUtils.setMediaData(n.props.editor.getValue(),n.props.entityKey,a)),window.setImmediate(n.props.editor.forceRender)})),w()(v()(n),"setImageFloat",(function(e){var t=n.props.hooks("set-image-float",e)(e);if(!1===t)return!1;"string"===typeof t&&(e=t),n.props.editor.setValue(T.ContentUtils.setMediaPosition(n.props.editor.getValue(),n.props.block,{float:e})),n.unlockEditor()})),w()(v()(n),"setImageAlignment",(function(e){var t=n.props.hooks("set-image-alignment",e)(e);if(!1===t)return!1;"string"===typeof t&&(e=t),n.props.editor.setValue(T.ContentUtils.setMediaPosition(n.props.editor.getValue(),n.props.block,{alignment:e})),n.unlockEditor()})),w()(v()(n),"showToolbar",(function(e){if(n.props.editor.editorProps.readOnly||n.props.editor.editorProps.disabled)return!1;e.preventDefault(),n.state.toolbarVisible||n.setState({toolbarVisible:!0},(function(){n.lockEditor(),n.setState({toolbarOffset:n.calcToolbarOffset()})}))})),w()(v()(n),"hideToolbar",(function(e){e.preventDefault(),n.setState({toolbarVisible:!1},(function(){n.unlockEditor()}))})),n}return A()(t,e),d()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.mediaData,r=t.language,o=t.imageControls,i=t.imageResizable,a=this.state,l=a.toolbarVisible,s=a.toolbarOffset,c=a.linkEditorVisible,u=a.sizeEditorVisible,f=a.tempWidth,d=a.tempHeight,p=this.props.block.getData(),h=p.get("float"),g=p.get("alignment"),m=n.url,y=n.link,v=n.link_target,b=n.width,A=n.height,E=n.meta,w={},S=!1;h?g=null:"left"===g?(w.float="left",S=!0):"right"===g?(w.float="right",S=!0):"center"===g?w.textAlign="center":(w.float="left",S=!0);var k=o.map((function(t,r){return"string"===typeof t&&de[t]?C.a.createElement("a",{className:"link"===t&&y?"active":"",key:r,onClick:function(){return e.executeCommand(de[t].command)}},de[t].text):t&&(t.render||t.text)?t.render?t.render(n,e.props.block):C.a.createElement("a",{key:r,onClick:function(){return t.onClick&&e.executeCommand(t.onClick)}},t.text):null}));return C.a.createElement("div",{className:"bf-media"},C.a.createElement("div",{style:w,draggable:!0,onMouseEnter:this.showToolbar,onMouseMove:this.showToolbar,onMouseLeave:this.hideToolbar,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,ref:function(t){return e.mediaEmbederInstance=t},className:"bf-image"},l?C.a.createElement("div",{style:{marginLeft:s},ref:function(t){return e.toolbarElement=t},"data-float":h,"data-align":g,className:"bf-media-toolbar"},c?C.a.createElement("div",{className:"bf-image-link-editor"},C.a.createElement("div",{className:"editor-input-group"},C.a.createElement("input",{type:"text",placeholder:r.linkEditor.inputWithEnterPlaceHolder,onKeyDown:this.handleLinkInputKeyDown,onChange:this.setImageLink,defaultValue:y}),C.a.createElement("button",{type:"button",onClick:this.confirmImageLink},r.base.confirm)),C.a.createElement("div",{className:"switch-group"},C.a.createElement(fe,{active:"_blank"===v,onClick:function(){return e.setImageLinkTarget(v)}}),C.a.createElement("label",null,r.linkEditor.openInNewWindow))):null,u?C.a.createElement("div",{className:"bf-image-size-editor"},C.a.createElement("div",{className:"editor-input-group"},C.a.createElement("input",{type:"text",placeholder:r.base.width,onKeyDown:this.handleSizeInputKeyDown,onChange:this.setImageWidth,defaultValue:b}),C.a.createElement("input",{type:"text",placeholder:r.base.height,onKeyDown:this.handleSizeInputKeyDown,onChange:this.setImageHeight,defaultValue:A}),C.a.createElement("button",{type:"button",onClick:this.confirmImageSize},r.base.confirm))):null,k,C.a.createElement("i",{style:{marginLeft:-1*s},className:"bf-media-toolbar-arrow"})):null,C.a.createElement("div",{style:{position:"relative",width:"".concat(b,"px"),height:"".concat(A,"px"),display:"inline-block"}},C.a.createElement("img",se()({ref:function(t){return e.imageElement=t},src:m,width:b,height:A},E)),l&&i?C.a.createElement("div",{className:"bf-csize-icon right-bottom",onMouseDown:this.repareChangeSize("rightbottom")}):null,l&&i?C.a.createElement("div",{className:"bf-csize-icon left-bottom",onMouseDown:this.repareChangeSize("leftbottom")}):null,C.a.createElement("div",{className:"bf-pre-csize ".concat(this.reSizeType),style:{width:"".concat(f,"px"),height:"".concat(d,"px")}}))),S&&C.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 e=this.props,t=e.getContainerNode,n=e.containerNode,r=t?t():n;if(!r)return 0;var o=r.querySelector(".bf-content").getBoundingClientRect(),i=this.toolbarElement.getBoundingClientRect(),a=this.imageElement.getBoundingClientRect(),l=o.right-(a.right-a.width/2+i.width/2),s=a.left+a.width/2-i.width/2-o.left;return l<10?l-10:s<10?-1*s+10:0}},{key:"setImageLinkTarget",value:function(e){var t=this.props.hooks("set-image-link-target",e)(e);if(!1===t)return!1;"string"===typeof t&&(e=t),e="_blank"===e?"":"_blank",this.props.editor.setValue(T.ContentUtils.setMediaData(this.props.editor.getValue(),this.props.entityKey,{link_target:e})),window.setImmediate(this.props.editor.forceRender)}}]),t}(C.a.Component),he=(n(47),n(48),n(16)),ge=n.n(he),me=function(e){function t(e){var n;return u()(this,t),n=h()(this,m()(t).call(this,e)),w()(v()(n),"handleTransitionEnd",(function(){if(!n.rootElement||!n.rootElement.classList)return!1;n.rootElement.classList.contains("active")||ge.a.unmountComponentAtNode(n.rootElement)&&n.rootElement.parentNode.removeChild(n.rootElement)})),w()(v()(n),"handleMouseDown",(function(e){var t=e.target.tagName.toLowerCase();if("input"===t||"textarea"===t)return!1;e.preventDefault()})),w()(v()(n),"handleCancel",(function(){n.props.closeOnCancel&&n.close(),n.props.onCancel&&n.props.onCancel()})),w()(v()(n),"handleConfirm",(function(){n.props.closeOnConfirm&&n.close(),n.props.onConfirm&&n.props.onConfirm()}
2)),w()(v()(n),"handleMaskClick",(function(){n.props.closeOnBlur&&n.close(),n.props.onBlue&&n.props.onBlue()})),w()(v()(n),"close",(function(){n.unrenderComponent(),n.props.onClose&&n.props.onClose()})),n.active=!1,n.componentId="BRAFT-MODAL-"+T.BaseUtils.UniqueIndex(),n}return A()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.props.visible&&(this.active=!0,this.renderComponent(this.props))}},{key:"componentWillReceiveProps",value:function(e){this.props.visible&&!e.visible?this.unrenderComponent():(this.props.visible||e.visible)&&(this.active=!0,this.renderComponent(e))}},{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(e){var t=this;if(!this.active)return!1;var n=e.title,r=e.className,o=e.width,i=e.height,a=e.children,l=e.component,s=e.confirmable,c=e.showFooter,u=e.showCancel,f=e.showConfirm,d=e.showClose,p=e.cancelText,h=e.confirmText,g=e.bottomText,m=e.language;"undefined"===typeof u&&(u=!0),"undefined"===typeof d&&(d=!0),"undefined"===typeof f&&(f=!0),"undefined"===typeof c&&(c=!0);var y=C.a.createElement("div",{onMouseDown:this.handleMouseDown,className:"bf-modal "+(r||"")},C.a.createElement("div",{className:"bf-modal-mask",onClick:this.handleMaskCl
2ick}),C.a.createElement("div",{onTransitionEnd:this.handleTransitionEnd,style:{width:o,height:i},className:"bf-modal-content"},C.a.createElement("div",{className:"bf-modal-header"},C.a.createElement("h3",{className:"bf-modal-caption"},n),d&&C.a.createElement("button",{type:"button",onClick:this.close,className:"bf-modal-close-button"},C.a.createElement("i",{className:"bfi-close"}))),C.a.createElement("div",{className:"bf-modal-body"},a||l),c?C.a.createElement("div",{className:"bf-modal-footer"},C.a.createElement("div",{className:"bf-modal-addon-text"},g),C.a.createElement("div",{className:"bf-modal-buttons"},u&&C.a.createElement("button",{type:"button",onClick:this.handleCancel,className:"bf-modal-cancel"},p||m.base.cancel),f&&C.a.createElement("button",{type:"button",onClick:this.handleConfirm,className:"bf-modal-confirm "+(s?"":"disabled")},h||m.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)),ge.a.render(y,this.rootElement),this.activeId=window.setImmediate((function(){t.rootElement.classList.add("active")}))}}]),t}(C.a.Component);w()(me,"defaultProps",{showFooter:!0,closeOnBlur:!0});var ye=function(e){var t=document.createElement("div");t.style.display="none",document.body.appendChild(t),e=a()({visible:!0,closeOnConfirm:!0,closeOnCancel:!0},e);var n=function(){ge.a.unmountComponentAtNode(t)&&t.parentNode.removeChild(t)},r=ge.a.render(C.a.createElement(me,se()({},e,{onConfirm:function(){e.onConfirm&&e.onConfirm()},onCancel:function(){e.onCancel&&e.onCancel()},onClose:function(){n(),e.onClose&&e.onClose()}})),t);return r.destroy=n,r.update=r.renderComponent,r},ve=(n(49),{video:"bfi-film",audio:"bfi-music",embed:"bfi-code"}),be=function(e){var t=e.title,n=e.type,r=e.language,o=e.name,i=e.url,a=e.poster,l=e.children,s=e.onRemove;return C.a.createElement("div",{className:"bf-player-holder ".concat(n)},C.a.createElement("div",{className:"icon-badge"},C.a.createElement("i",{className:ve[n]}),C.a.createElement("span",{className:"text"},r.media[n])),C.a.createElement("button",{onMouseDown:s,className:"button-remove"},C.a.createElement("i",{className:"bfi-close"})),C.a.createElement("button",{onMouseDown:function(){return function(e,t,n){return ye({title:e,component:t,language:n,showFooter:!1})}(o?"".concat(t,":").concat(o):t,l,r)},className:"button-play"},C.a.createElement("i",{className:"bfi-play_arrow"})),o?C.a.createElement("h5",{className:"bf-name"},o):null,C.a.createElement("h6",{className:"bf-url"},i),a?C.a.createElement("div",{className:"bf-poster",style:{backgroundImage:"url(".concat(a,")")}}):null)},Ae=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"removeVideo",(function(){n.props.editor.setValue(T.ContentUtils.removeBlock(n.props.editorState,n.props.block))})),n}return A()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.mediaData,n=e.language,r=t.url,o=t.name,i=t.meta;return C.a.createElement("div",{className:"bf-video-wrap"},C.a.createElement(be,{type:"video",onRemove:this.removeVideo,poster:i&&i.poster||"",language:n,url:r,name:o,title:n.videoPlayer.title},C.a.createElement("div",{className:"bf-video-player"},C.a.createElement("video",{controls:!0,poster:i&&i.poster||""},C.a.createElement("source",{src:r})))))}}]),t}(C.a.Component),Ee=(n(50),function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"removeAudio",(function(){n.props.editor.setValue(T.ContentUtils.removeBlock(n.props.editorState,n.props.block))})),n}return A()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.mediaData,n=e.language,r=t.url,o=t.name,i=t.meta;return C.a.createElement("div",{className:"bf-audio-wrap"},C.a.createElement(be,{type:"audio",onRemove:this.removeAudio,poster:i&&i.poster||"",language:n,url:r,name:o,title:n.audioPlayer.title},C.a.createElement("div",{className:"bf-audio-player"},C.a.createElement("audio",{controls:!0,src:r}))))}}]),t}(C.a.Component)),we=(n(51),function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"removeEmbed",(function(){n.props.editor.setValue(T.ContentUtils.removeBlock(n.props.editorState,n.props.block))})),n}return A()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.mediaData,n=e.language,r=t.name,o=t.url,i=t.meta;return C.a.createElement("div",{className:"bf-embed-wrap"},C.a.createElement(be,{type:"embed",onRemove:this.removeEmbed,poster:i&&i.poster||"",language:n,url:o,name:r,title:n.videoPlayer.embedTitle},C.a.createElement("div",{className:"bf-embed-player",dangerouslySetInnerHTML:{__html:o}})))}}]),t}(C.a.Component)),Se=(n(52),function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"removeHorizontalLine",(function(){n.props.editor.setValue(T.ContentUtils.removeBlock(n.props.editorState,n.props.block))})),n}return A()(t,e),d()(t,[{key:"render",value:function(){return C.a.createElement("div",{className:"bf-hr"},C.a.createElement("div",{className:"bf-media-toolbar"},C.a.createElement("a",{onClick:this.removeHorizontalLine},"\ue9ac")))}}]),t}(C.a.Component)),ke=(new function e(){var t=this;u()(this,e),w()(this,"superProps",void 0),w()(this,"customBlockRendererFn",void 0),w()(this,"getRenderFn",(function(e,n){return t.superProps=e,t.customBlockRendererFn=n,t.blockRendererFn})),w()(this,"renderAtomicBlock",(function(e){var n=t.superProps,r=e.block.getEntityAt(0);if(!r)return null;var o=e.contentState.getEntity(r),i=o.getData(),l=o.getType(),s=a()({},n,{block:e.block,mediaData:i,entityKey:r});if("IMAGE"===l)return C.a.createElement(pe,s);if("AUDIO"===l)return C.a.createElement(Ee,s);if("VIDEO"===l)return C.a.createElement(Ae,s);if("EMBED"===l)return C.a.createElement(we,s);if("HR"===l)return C.a.createElement(Se,s);if(n.extendAtomics)for(var c=n.extendAtomics,u=0;u<c.length;u++)if(l===c[u].type){var f=c[u].component;return C.a.createElement(f,s)}return null})),w()(this,"blockRendererFn",(function(e){var n,r=t.customBlockRendererFn,o=t.superProps,i=e.getType(),a=null;return r&&(a=r(e,o)||null),a||((n=o.editorId,Z(V,n)).find((function(e){if(e.blockType===i||e.blockType instanceof RegExp&&e.blockType.test(i))return a=e.rendererFn?e.rendererFn(o):null,!0})),a||("atomic"===i&&(a={component:t.renderAtomicBlock,editable:!1}),a))}))}).getRenderFn,xe=function(e){return e.split("-")[1]},Ce=n(18),_e=n.n(Ce),Ie=function(e,t){if(e.getModifierState("Control")||e.getModifierState("Meta")){var n=document.createElement("a");n.href=t,n.target=e.currentTarget.target,n.click()}};_e.a.prototype.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);
2return this.decorators.forEach((function(r,o){r.getDecorations(e,t).forEach((function(e,t){e&&(e=o+"-"+e,n[t]=e)}))})),D.a.List(n)};var Oe=[{type:"entity",decorator:{key:"LINK",component:function(e){var t=e.children,n=e.entityKey,r=e.contentState.getEntity(n).getData(),o=r.href,i=r.target;return C.a.createElement("span",{className:"bf-link-wrap"},C.a.createElement("a",{onClick:function(e){return Ie(e,o)},className:"bf-link",href:o,target:i},t))}}}],Te=function(e,t){var n,r=Object(B.Map)({atomic:{element:""},"code-block":{element:"code",wrapper:C.a.createElement("pre",{className:"braft-code-block"})}});try{r=(n=e.editorId,Z(H,n)).reduce((function(t,n){return t.merge("function"===typeof n.renderMap?n.renderMap(e):n.renderMap)}),r),t&&(r="function"===typeof t?r.merge(t(e)):r.merge(t)),r=M.DefaultDraftBlockRenderMap.merge(r)}catch(o){console.warn(o)}return r},Me=ke,Be=function(e){return function(t){var n=t.getData()&&t.getData().get("textAlign"),r=t.getData()&&t.getData().get("textIndent"),o=t.getData()&&t.getData().get("float"),i="";return n&&(i="bfa-".concat(n)),r&&0!==r&&(i+=" bftd-".concat(r)),o&&(i+=" bff-".concat(o)),e&&(i+=e(t)||""),i}},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$(e.editorId);return a()({SUPERSCRIPT:{position:"relative",top:"-8px",fontSize:"11px"},SUBSCRIPT:{position:"relative",bottom:"-8px",fontSize:"11px"}},n,t)},Le=function(e,t){return function(n,r){var o,i={},a=t.fontFamilies,l=t.unitExportFn,s=t.customStyleFn;return(o=e.editorId,Z(Q,o)).forEach((function(e){i=e.styleFn?e.styleFn(n,r,i):i})),i=s?s(n,r,i):{},n.forEach((function(e){0===e.indexOf("COLOR-")?i.color="#"+xe(e):0===e.indexOf("BGCOLOR-")?i.backgroundColor="#"+xe(e):0===e.indexOf("FONTSIZE-")?i.fontSize=l(xe(e),"font-size","editor"):0===e.indexOf("LINEHEIGHT-")?i.lineHeight=l(xe(e),"line-height","editor"):0===e.indexOf("LETTERSPACING-")?i.letterSpacing=l(xe(e),"letter-spacing","editor"):0===e.indexOf("TEXTINDENT-")?i.textIndent=l(xe(e),"text-indent","editor"):0===e.indexOf("FONTFAMILY-")&&(i.fontFamily=(a.find((function(t){return t.name.toUpperCase()===xe(e)}))||{}).family||"")})),i}},Ne=function(e){var t=function(e){return Z(U,e)}(e),n=[].concat(Oe,k()(t.filter((function(e){return"entity"===e.type})))),r=t.filter((function(e){return"strategy"===e.type})),o=t.filter((function(e){return"class"===e.type}));return new _e.a([].concat(k()(o.map((function(e){return e.decorator}))),[new M.CompositeDecorator(r.map((function(e){return e.decorator}))),new M.CompositeDecorator(n.map((function(e){return{strategy:(t=e.decorator.key,function(e,n,r){e.findEntityRanges((function(e){var n=e.getEntity();return null!==n&&r.getEntity(n).getType()===t}),n)}),component:e.decorator.component};var t})))]))},Fe=(n(53),n(54),n(55),[]),Re=!1,Pe=!1,Ke=function(e){var t=T.BaseUtils.UniqueIndex();return Fe.push({id:t,eventHandler:e}),t},ze=function(e){Fe=Fe.filter((function(t){return t.id!==e}))};Re||"object"!==("undefined"===typeof window?"undefined":o()(window))||(window.addEventListener("resize",(function(e){clearTimeout(Pe),Pe=setTimeout((function(){Fe.map((function(t){"function"===typeof t.eventHandler&&t.eventHandler(e)})),Pe=!1}),100)})),Re=!0);var Ue=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"responsiveResolveId",null),w()(v()(n),"dropDownHandlerElement",null),w()(v()(n),"dropDownContentElement",null),w()(v()(n),"state",{active:!1,offset:0}),w()(v()(n),"fixDropDownPosition",(function(){var e=n.props.getContainerNode().getBoundingClientRect(),t=n.dropDownHandlerElement.getBoundingClientRect(),r=n.dropDownContentElement.getBoundingClientRect(),o=0,i=t.right-t.width/2+r.width/2,a=t.left+t.width/2-r.width/2;i=e.right-i,a-=e.left,i<10?o=i-10:a<10&&(o=-1*a+10),o!==n.state.offset&&n.setState({offset:o})})),w()(v()(n),"registerClickEvent",(function(e){var t=n.props.autoHide,r=n.state.active;if(n.dropDownContentElement.contains(e.target)||n.dropDownHandlerElement.contains(e.target))return!1;t&&r&&n.hide()})),w()(v()(n),"toggle",(function(){n.setState({active:!n.state.active})})),w()(v()(n),"show",(function(){n.setState({active:!0})}
2)),w()(v()(n),"hide",(function(){n.setState({active:!1})})),n}return A()(t,e),d()(t,[{key:"componentDidMount",value:function(){document&&(document.body.addEventListener("click",this.registerClickEvent),this.responsiveResolveId=Ke(this.fixDropDownPosition))}},{key:"componentWillReceiveProps",value:function(e){!this.props.disabled&&e.disabled&&this.hide()}},{key:"componentDidUpdate",value:function(e){!e.active&&this.state.active&&this.fixDropDownPosition()}},{key:"componentWillUnmount",value:function(){document&&(document.body.removeEventListener("click",this.registerClickEvent),ze(this.responsiveResolveId))}},{key:"render",value:function(){var e=this,t=this.state,n=t.active,r=t.offset,o=this.props,i=o.caption,a=o.htmlCaption,l=o.title,s=o.disabled,c=o.showArrow,u=o.arrowActive,f=o.className,d=o.children;return s&&(n=!1),"light"===o.theme&&(f=" light-theme "+f),C.a.createElement("div",{className:"bf-dropdown "+(n?"active ":"")+(s?"disabled ":"")+f},a?C.a.createElement("button",{type:"button",className:"dropdown-handler","data-title":l,onClick:this.toggle,dangerouslySetInnerHTML:a?{__html:a}:null,ref:function(t){return e.dropDownHandlerElement=t}}):C.a.createElement("button",{type:"button",className:"dropdown-handler","data-title":l,onClick:this.toggle,ref:function(t){return e.dropDownHandlerElement=t}},C.a.createElement("span",null,i),!1!==c?C.a.createElement("i",{className:"bfi-drop-down"}):null),C.a.createElement("div",{className:"dropdown-content",style:{marginLeft:r},ref:function(t){return e.dropDownContentElement=t}},C.a.createElement("i",{style:{marginLeft:-1*r},className:"dropdown-arrow"+(u?" active":"")}),C.a.createElement("div",{className:"dropdown-content-inner"},d)))}}]),t}(C.a.Component),je=function(e){return C.a.Fragment?C.a.createElement(C.a.Fragment,null,e.children):C.a.createElement("div",{className:"control-item-group"},e.children)},He=function(e){function t(e){var n;return u()(this,t),n=h()(this,m()(t).call(this,e)),w()(v()(n),"dropDownInstance",null),w()(v()(n),"handeKeyDown",(function(e){if(13===e.keyCode)return n.handleConfirm(),e.preventDefault(),!1})),w()(v()(n),"handleTnputText",(function(e){n.setState({text:e.currentTarget.value})})),w()(v()(n),"handleInputLink",(function(e){n.setState({href:e.currentTarget.value})})),w()(v()(n),"setTarget",(function(){n.setState({target:"_blank"===n.state.target?"":"_blank"})})),w()(v()(n),"handleCancel",(function(){n.dropDownInstance.hide()})),w()(v()(n),"handleUnlink",(function(){n.dropDownInstance.hide(),n.props.editor.setValue(T.ContentUtils.toggleSelectionLink(n.props.editorState,!1))})),w()(v()(n),"handleConfirm",(function(){var e=n.state,t=e.text,r=e.href,o=e.target,i=e.textSelected,a=n.props.hooks("toggle-link",{href:r,target:o})({href:r,target:o});if(n.dropDownInstance.hide(),n.props.editor.requestFocus(),!1===a)return!1;a&&("string"===typeof a.href&&(r=a.href),"string"===typeof a.target&&(o=a.target)),i?r?n.props.editor.setValue(T.ContentUtils.toggleSelectionLink(n.props.editorState,r,o)):n.props.editor.setValue(T.ContentUtils.toggleSelectionLink(n.props.editorState,!1)):n.props.editor.setValue(T.ContentUtils.insertText(n.props.editorState,t||r,null,{type:"LINK",data:{href:r,target:o}}))})),n.state={text:"",href:"",target:e.defaultLinkTarget||"",textSelected:!1},n}return A()(t,e),d()(t,[{key:"componentWillReceiveProps",value:function(e){var t=T.ContentUtils.getSelectionEntityData(e.editorState,"LINK"),n=t.href,r=t.target,o=!T.ContentUtils.isSelectionCollapsed(this.props.editorState)&&"atomic"!==T.ContentUtils.getSelectionBlockType(this.props.editorState),i="";o&&(i=T.ContentUtils.getSelectionText(this.props.editorState)),this.setState({textSelected:o,text:i,href:n||"",target:"undefined"===typeof r?e.defaultLinkTarget||"":r||""})}},{key:"render",value:function(){var e=this,t=this.props.allowInsertLinkText,n=this.state,r=n.text,o=n.href,i=n.target,a=n.textSelected,l=C.a.createElement("i",{className:"bfi-link"});return C.a.createElement(je,null,C.a.createElement(Ue,{key:0,caption:l,title:this.props.language.controls.link,autoHide:!0,getContainerNode:this.props.getContainerNode,showArrow:!1,ref:function(t){return e.dropDownInstance=t},className:"control-item dropdown link-editor-dropdown"},C.a.createElement("div",{className:"bf-link-editor"},t?C.a.createElement("div",{className:"input-group"},C.a.createElement("input",{type:"text",value:r,spellCheck:!1,disabled:a,placeholder:this.props.language.linkEditor.textInputPlaceHolder,onKeyDown:this.handeKeyDown,onChange:this.handleTnputText})):null,C.a.createElement("div",{className:"input-group"},C.a.createElement("input",{type:"text",value:o,spellCheck:!1,placeholder:this.props.language.linkEditor.linkInputPlaceHolder,onKeyDown:this.handeKeyDown,onChange:this.handleInputLink}
2)),C.a.createElement("div",{className:"switch-group"},C.a.createElement(fe,{active:"_blank"===i,onClick:this.setTarget}),C.a.createElement("label",null,this.props.language.linkEditor.openInNewWindow)),C.a.createElement("div",{className:"buttons"},C.a.createElement("a",{onClick:this.handleUnlink,className:"primary button-remove-link pull-left"},C.a.createElement("i",{className:"bfi-close"}),C.a.createElement("span",null,this.props.language.linkEditor.removeLink)),C.a.createElement("button",{type:"button",onClick:this.handleConfirm,className:"primary pull-right"},this.props.language.base.confirm),C.a.createElement("button",{type:"button",onClick:this.handleCancel,className:"default pull-right"},this.props.language.base.cancel)))),C.a.createElement("button",{key:1,type:"button","data-title":this.props.language.controls.unlink,className:"control-item button",onClick:this.handleUnlink,disabled:!a||!o},C.a.createElement("i",{className:"bfi-link-off"})))}}]),t}(C.a.Component),Ve=(n(56),function(e){var t,n=null,r=(t=e.language,[{key:"header-one",title:t.controls.header+" 1",text:C.a.createElement("h1",null,t.controls.header," 1"),type:"block-type",command:"header-one"},{key:"header-two",title:t.controls.header+" 2",text:C.a.createElement("h2",null,t.controls.header," 2"),type:"block-type",command:"header-two"},{key:"header-three",title:t.controls.header+" 3",text:C.a.createElement("h3",null,t.controls.header," 3"),type:"block-type",command:"header-three"},{key:"header-four",title:t.controls.header+" 4",text:C.a.createElement("h4",null,t.controls.header," 4"),type:"block-type",command:"header-four"},{key:"header-five",title:t.controls.header+" 5",text:C.a.createElement("h5",null,t.controls.header," 5"),type:"block-type",command:"header-five"},{key:"header-six",title:t.controls.header+" 6",text:C.a.createElement("h6",null,t.controls.header," 6"),type:"block-type",command:"header-six"},{key:"unstyled",title:t.controls.normal,text:t.controls.normal,type:"block-type",command:"unstyled"}]).filter((function(t){return-1!==e.headings.indexOf(t.key)})),o=r.findIndex((function(t){return t.command===e.current})),i=r[o]?r[o].title:e.language.controls.normal;return C.a.createElement(Ue,{caption:i,autoHide:!0,getContainerNode:e.getContainerNode,title:e.language.controls.headings,arrowActive:0===o,ref:function(e){return n=e},className:"control-item dropdown headings-dropdown"},C.a.createElement("ul",{className:"menu"},r.map((function(t,r){var o=e.current===t.command;return C.a.createElement("li",{key:r,className:"menu-item"+(o?" active":""),onClick:function(){e.onChange(t.command,t.type),n.hide()}},t.text)}))))}),qe=(n(57),n(58),function(e){return C.a.createElement("div",{className:"bf-colors-wrap"},C.a.createElement("ul",{className:"bf-colors"},e.presetColors.map((function(t,n){var r=e.color&&t.toLowerCase()===e.color.toLowerCase()?"color-item active":"color-item";return C.a.createElement("li",{key:n,title:t,className:r,style:{color:t},"data-color":t.replace("#",""),onClick:function(t){e.onChange(t.currentTarget.dataset.color,!0)}})}))))}),Qe=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"state",{colorType:"color"}),w()(v()(n),"switchColorType",(function(e){var t=e.currentTarget;n.setState({colorType:t.dataset.type})})),w()(v()(n),"toggleColor",(function(e,t){if(e){var r=n.props.hooks("toggle-text-".concat(n.state.colorType),e)(e);if(!1===r)return!1;"string"===typeof r&&(e=r),"color"===n.state.colorType?n.props.editor.setValue(T.ContentUtils.toggleSelectionColor(n.props.editorState,e)):n.props.editor.setValue(T.ContentUtils.toggleSelectionBackgroundColor(n.props.editorState,e))}t&&(n.dropDownInstance.hide(),n.props.editor.requestFocus())})),n}return A()(t,e),d()(t,[{key:"render",value:function(){var e=this,t={},n=null,r=this.state.colorType;this.props.editorState.getCurrentInlineStyle().toJS().forEach((function(e){0===e.indexOf("COLOR-")&&(t.color="#"+e.split("-")[1],"color"===r&&(n=t.color)),0===e.indexOf("BGCOLOR-")&&(t.backgroundColor="#"+e.split("-")[1],"background-color"===r&&(n=t.backgroundColor))}));var o=C.a.createElement("i",{style:t,className:"bfi-text-color"},C.a.createElement("span",{className:"path1"}),C.a.createElement("span",{className:"path2"})),i=this.props.colorPicker||qe;return C.a.createElement(Ue,{caption:o,title:this.props.language.controls.color,showArrow:!1,autoHide:this.props.autoHide,theme:this.props.theme,getContainerNode:this.props.getContainerNode,ref:function(t){return e.dropDownInstance=t},className:"control-item dropdown text-color-dropdown"},C.a.createElement("div",{className:"bf-text-color-picker-wrap"},C.a.createElement("div",{className:"bf-color-switch-buttons",style:this.props.enableBackgroun
2dColor?{}:{display:"none"}},C.a.createElement("button",{type:"button","data-type":"color",className:"color"===r?"active":"",onClick:this.switchColorType},this.props.language.controls.textColor),C.a.createElement("button",{type:"button","data-type":"background-color",className:"background-color"===r?"active":"",onClick:this.switchColorType},this.props.language.controls.backgroundColor)),C.a.createElement(i,{width:200,color:n,disableAlpha:!0,presetColors:this.props.colors,onChange:this.toggleColor})))}}]),t}(C.a.Component),We=(n(59),function(e){var t=null,n=null,r=null;return e.fontSizes.find((function(r){return!!T.ContentUtils.selectionHasInlineStyle(e.editorState,"FONTSIZE-"+r)&&(t=r,n=r,!0)})),C.a.createElement(Ue,{autoHide:!0,caption:t||e.defaultCaption,getContainerNode:e.getContainerNode,title:e.language.controls.fontSize,ref:function(e){return r=e},className:"control-item dropdown bf-font-size-dropdown"},C.a.createElement("ul",{className:"bf-font-sizes"},e.fontSizes.map((function(t,o){return C.a.createElement("li",{key:o,className:t===n?"active":null,"data-size":t,onClick:function(t){(function(e,t){var n=e.currentTarget.dataset.size,r=t.hooks("toggle-font-size",n)(n);if(!1===r)return!1;isNaN(n)||(n=r),t.editor.setValue(T.ContentUtils.toggleSelectionFontSize(t.editorState,n)),t.editor.requestFocus()})(t,e),r.hide()}},t)}))))}),Ge=(n(60),function(e){var t=null,n=null,r=null;return e.lineHeights.find((function(r){return!!T.ContentUtils.selectionHasInlineStyle(e.editorState,"LINEHEIGHT-"+r)&&(t=r,n=r,!0)})),C.a.createElement(Ue,{autoHide:!0,caption:t||e.defaultCaption,getContainerNode:e.getContainerNode,title:e.language.controls.lineHeight,ref:function(e){return r=e},className:"control-item dropdown bf-line-height-dropdown"},C.a.createElement("ul",{className:"bf-line-heights"},e.lineHeights.map((function(t,o){return C.a.createElement("li",{key:o,className:t===n?"active":null,"data-size":t,onClick:function(t){(function(e,t){var n=e.currentTarget.dataset.size,r=t.hooks("toggle-line-height",n)(n);if(!1===r)return!1;isNaN(r)||(n=r),t.editor.setValue(T.ContentUtils.toggleSelectionLineHeight(t.editorState,n)),t.editor.requestFocus()})(t,e),r.hide()}},t)}))))}),Ye=(n(61),function(e){var t=null,n=null,r=null;return e.fontFamilies.find((function(r,o){return!!T.ContentUtils.selectionHasInlineStyle(e.editorState,"FONTFAMILY-"+r.name)&&(t=r.name,n=o,!0)})),C.a.createElement(Ue,{caption:t||e.defaultCaption,getContainerNode:e.getContainerNode,title:e.language.controls.fontFamily,autoHide:!0,arrowActive:0===n,ref:function(e){return r=e},className:"control-item dropdown font-family-dropdown"},C.a.createElement("ul",{className:"menu"},e.fontFamilies.map((function(t,o){return C.a.createElement("li",{key:o,className:"menu-item "+(o===n?"active":""),"data-name":t.name,onClick:function(t){(function(e,t){var n=e.currentTarget.dataset.name,r=t.hooks("toggle-font-family",n)(n,t.fontFamilies);if(!1===r)return!1;"string"===typeof r&&(n=r),t.editor.setValue(T.ContentUtils.toggleSelectionFontFamily(t.editorState,n)),t.editor.requestFocus()})(t,e),r.hide()}},C.a.createElement("span",{style:{fontFamily:t.family}},t.name))}))))}),Je=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"state",{currentAlignment:void 0}),w()(v()(n),"setAlignment",(function(e){var t=e.currentTarget.dataset.alignment,r=n.props.hooks("toggle-text-alignment",t)(t);n.props.textAligns.indexOf(r)>-1&&(t=r),n.props.editor.setValue(T.ContentUtils.toggleSelectionAlignment(n.props.editorState,t)),n.props.editor.requestFocus()})),n}return A()(t,e),d()(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({currentAlignment:T.ContentUtils.getSelectionBlockData(e.editorState,"textAlign")})}},{key:"render",value:function(){var e=this,t=[this.props.language.controls.alignLeft,this.props.language.controls.alignCenter,this.props.language.controls.alignRight,this.props.language.controls.alignJustify];return C.a.createElement(je,null,this.props.textAligns.map((function(n,r){return C.a.createElement("button",{type:"button",key:r,"data-title":t[r],"data-alignment":n,className:"control-item button "+(n===e.state.currentAlignment?"active":null),onClick:e.setAlignment},C.a.createElement("i",{className:"bfi-align-"+n}))}
2)))}}]),t}(C.a.Component),Xe=(n(62),function(e){return C.a.createElement(Ue,{caption:e.defaultCaption,autoHide:!0,showArrow:!1,getContainerNode:e.getContainerNode,title:e.language.controls.emoji,className:"control-item dropdown bf-emoji-dropdown"},C.a.createElement("div",{className:"bf-emojis-wrap"},C.a.createElement("ul",{className:"bf-emojis"},e.emojis.map((function(t,n){return C.a.createElement("li",{key:n,"data-emoji":t,onClick:function(t){return function(e,t){var n=e.currentTarget.dataset.emoji,r=t.hooks("insert-emoji",n)(n);if(!1===r)return!1;"string"===typeof r&&(n=r),t.editor.setValue(T.ContentUtils.insertText(t.editorState,n)),t.editor.requestFocus()}(t,e)}},t)})))))}),Ze=(n(63),function(e){var t=null,n=null,r=null;return e.letterSpacings.find((function(r){return!!T.ContentUtils.selectionHasInlineStyle(e.editorState,"LETTERSPACING-"+r)&&(t=r,n=r,!0)})),C.a.createElement(Ue,{autoHide:!0,caption:t||e.defaultCaption,getContainerNode:e.getContainerNode,title:e.language.controls.letterSpacing,ref:function(e){return r=e},className:"control-item dropdown bf-letter-spacing-dropdown"},C.a.createElement("ul",{className:"bf-letter-spacings"},e.letterSpacings.map((function(t,o){return C.a.createElement("li",{key:o,className:t===n?"active":null,"data-size":t,onClick:function(t){(function(e,t){var n=e.currentTarget.dataset.size,r=t.hooks("toggle-letter-spacing",n)(n);if(!1===r)return!1;isNaN(r)||(n=r),t.editor.setValue(T.ContentUtils.toggleSelectionLetterSpacing(t.editorState,n)),t.editor.requestFocus()})(t,e),r.hide()}},t)}))))}),$e=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"state",{currentIndent:0}),w()(v()(n),"increaseIndent",(function(){n.props.editor.setValue(T.ContentUtils.increaseSelectionIndent(n.props.editorState)),n.props.editor.requestFocus()})),w()(v()(n),"decreaseIndent",(function(){n.props.editor.setValue(T.ContentUtils.decreaseSelectionIndent(n.props.editorState)),n.props.editor.requestFocus()})),n}return A()(t,e),d()(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({currentIndent:T.ContentUtils.getSelectionBlockData(e.editorState,"textIndent")||0})}},{key:"render",value:function(){var e=this.state.currentIndent,t=this.props.language;return C.a.createElement(je,null,C.a.createElement("button",{key:0,type:"button","data-title":t.controls.increaseIndent,disabled:e>=6,className:"control-item button button-indent-increase".concat(e>0&&e<6?" active":""),onClick:this.increaseIndent},C.a.createElement("i",{className:"bfi-indent-increase"})),C.a.createElement("button",{key:1,type:"button","data-title":t.controls.decreaseIndent,disabled:e<=0,className:"control-item button button-indent-decrease",onClick:this.decreaseIndent},C.a.createElement("i",{className:"bfi-indent-decrease"})))}}]),t}(C.a.Component),et={"inline-style":"toggle-inline-style","block-type":"change-block-type","editor-method":"exec-editor-command"},tt={superscript:"subscript",subscript:"superscript"},nt=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=h()(this,(e=m()(t)).call.apply(e,[this].concat(o))),w()(v()(n),"allControls",[]),w()(v()(n),"mediaLibiraryModal",null),w()(v()(n),"extendedModals",{}),w()(v()(n),"openBraftFinder",(function(){if(!n.props.braftFinder||!n.props.braftFinder.ReactComponent)return!1;if(!1===n.props.hooks("open-braft-finder")())return!1;var e=n.props.media,t=n.props.braftFinder.ReactComponent;n.mediaLibiraryModal=ye({title:n.props.language.controls.mediaLibirary,language:n.props.language,width:640,showFooter:!1,className:e.modalClassName,component:C.a.createElement(t,{accepts:e.accepts,onCancel:n.closeBraftFinder,onInsert:n.insertMedias,onChange:e.onChange,externals:e.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")})})})),w()(v()(n),"bindBraftFinderHook",(function(e){return function(){return n.props.hooks(e,arguments.length<=0?void 0:arguments[0]).apply(void 0,arguments)}})),w()(v()(n),"insertMedias",(function(e){n.props.editor.setValue(T.ContentUtils.insertMedias(n.props.editorState,e)),n.props.editor.requestFocus(),n.props.media.onInsert&&n.props.media.onInsert(e),n.closeBraftFinder()})),w()(v()(n),"closeBraftFinder",(function(){n.props.media.onCancel&&n.props.media.onCancel(),n.mediaLibiraryMo
2dal&&n.mediaLibiraryModal.close()})),n}return A()(t,e),d()(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.props.language;this.allControls.forEach((function(n){"modal"===n.type&&n.modal&&n.modal.id&&e.extendedModals[n.modal.id]&&e.extendedModals[n.modal.id].update(a()({},n.modal,{language:t}))}))}},{key:"getControlItemClassName",value:function(e){var t="control-item button",n=e.type,r=e.command;return("inline-style"===n&&T.ContentUtils.selectionHasInlineStyle(this.props.editorState,r)||"block-type"===n&&T.ContentUtils.getSelectionBlockType(this.props.editorState)===r||"entity"===n&&T.ContentUtils.getSelectionEntityType(this.props.editorState)===r)&&(t+=" active"),t}},{key:"applyControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.props.hooks(et[t]||t,e)(e),o=this.props.editorState;if(!1===r)return!1;if("string"===typeof r&&(e=r),"inline-style"===t){var i=tt[e];i&&T.ContentUtils.selectionHasInlineStyle(o,i)&&(o=T.ContentUtils.toggleSelectionInlineStyle(o,i)),this.props.editor.setValue(T.ContentUtils.toggleSelectionInlineStyle(o,e))}else"block-type"===t?this.props.editor.setValue(T.ContentUtils.toggleSelectionBlockType(o,e)):"entity"===t?this.props.editor.setValue(T.ContentUtils.toggleSelectionEntity(o,{type:e,mutability:n.mutability||"MUTABLE",data:n.data||{}})):"editor-method"===t&&this.props.editor[e]&&this.props.editor[e]()}},{key:"render",value:function(){var e=this,t=this.props,n=t.editor,r=t.editorId,o=t.editorState,i=t.className,l=t.style,s=t.controls,c=t.media,u=t.extendControls,f=t.language,d=t.hooks,p=t.colors,h=t.colorPicker,g=t.colorPickerTheme,m=t.colorPickerAutoHide,y=t.headings,v=t.fontSizes,b=t.fontFamilies,A=t.emojis,E=t.getContainerNode,w=t.lineHeights,S=t.letterSpacings,k=t.textAligns,x=t.textBackgroundColor,_=t.allowInsertLinkText,I=t.defaultLinkTarget,O=T.ContentUtils.getSelectionBlockType(o),M={editor:n,editorId:r,editorState:o,language:f,getContainerNode:E,hooks:d},B=[],D=function(e,t){return[{key:"undo",title:e.controls.undo,text:C.a.createElement("i",{className:"bfi-undo"}
2),type:"editor-method",command:"undo"},{key:"redo",title:e.controls.redo,text:C.a.createElement("i",{className:"bfi-redo"}),type:"editor-method",command:"redo"},{key:"remove-styles",title:e.controls.removeStyles,text:C.a.createElement("i",{className:"bfi-format_clear"}),type:"editor-method",command:"removeSelectionInlineStyles"},{key:"hr",title:e.controls.hr,text:C.a.createElement("i",{className:"bfi-hr"}),type:"editor-method",command:"insertHorizontalLine"},{key:"bold",title:e.controls.bold,text:C.a.createElement("i",{className:"bfi-bold"}),type:"inline-style",command:"bold"},{key:"italic",title:e.controls.italic,text:C.a.createElement("i",{className:"bfi-italic"}),type:"inline-style",command:"italic"},{key:"underline",title:e.controls.underline,text:C.a.createElement("i",{className:"bfi-underlined"}),type:"inline-style",command:"underline"},{key:"strike-through",title:e.controls.strikeThrough,text:C.a.createElement("i",{className:"bfi-strikethrough"}),type:"inline-style",command:"strikethrough"},{key:"superscript",title:e.controls.superScript,text:C.a.createElement("i",{className:"bfi-superscript"}),type:"inline-style",command:"superscript"},{key:"subscript",title:e.controls.subScript,text:C.a.createElement("i",{className:"bfi-subscript"}),type:"inline-style",command:"subscript"},{key:"headings",title:e.controls.headings,type:"headings"},{key:"blockquote",title:e.controls.blockQuote,text:C.a.createElement("i",{className:"bfi-quote"}),type:"block-type",command:"blockquote"},{key:"code",title:e.controls.code,text:C.a.createElement("i",{className:"bfi-code"}),type:"block-type",command:"code-block"},{key:"list-ul",title:e.controls.unorderedList,text:C.a.createElement("i",{className:"bfi-list"}),type:"block-type",command:"unordered-list-item"},{key:"list-ol",title:e.controls.orderedList,text:C.a.createElement("i",{className:"bfi-list-numbered"}),type:"block-type",command:"ordered-list-item"},{key:"link",title:e.controls.link,type:"link"},{key:"text-color",title:e.controls.color,type:"text-color"},{key:"line-height",title:e.controls.lineHeight,type:"line-height"},{key:"letter-spacing",title:e.controls.letterSpacing,type:"letter-spacing"},{key:"text-indent",title:e.controls.textIndent,type:"text-indent"},{key:"font-size",title:e.controls.fontSize,type:"font-size"},{key:"font-family",title:e.controls.fontFamily,type:"font-family"},{key:"text-align",title:e.controls.textAlign,type:"text-align"},{key:"media",title:e.controls.media,text:C.a.createElement("i",{className:"bfi-media"}),type:"media"},{key:"emoji",title:e.controls.emoji,text:C.a.createElement("i",{className:"bfi-emoji"}),type:"emoji"},{key:"clear",title:e.controls.clear,text:C.a.createElement("i",{className:"bfi-clear_all"}),type:"editor-method",command:"clearEditorContent"},{key:"fullscreen",title:t.state.isFullscreen?e.controls.exitFullscreen:e.controls.fullscreen,text:C.a.createElement("i",{className:t.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"}]}(f,n),L=function(e){return Z(z,e)}(r),N=function(e,t,n,r){return n=n.map((function(t){return"function"===typeof t?t(e):t})),r=r.map((function(t){return"function"===typeof t?t(e):t})),0===n.length&&0===r.length?t:t.map((function(e){return r.find((function(t){return t.replace===(e.key||e)}))||n.find((function(t){return t.replace===(e.key||e)}))||e})).concat(n.length?"separator":"").concat(n.filter((function(e){return!e.replace}))).concat(r.filter((function(e){return"string"===typeof e||!e.replace})))}(M,s,L,u);return this.allControls=N,C.a.createElement("div",{className:"bf-controlbar ".concat(i||""),style:l,onMouseDown:this.preventDefault},N.map((function(t,n){var r="string"===typeof t?t:t.key;if("string"!==typeof r)return null;if(B.indexOf(r)>-1)return null;if("separator"===r.toLowerCase())return C.a.createElement("span",{key:n,className:"separator-line"});var i=D.find((function(e){return e.key.toLowerCase()===r.toLowerCase()}));if("string"!==typeof t&&(i=a()({},i,t)),!i)return null;if(B.push(r),"headings"===i.type)return C.a.createElement(Ve,se()({key:n,headings:y,current:O,onChange:function(t){return e.applyControl(t,"block-type")}},M));if("text-color"===i.type)return C.a.createElement(Qe,se()({key:n,colors:p,colorPicker:h,theme:g,autoHide:m,enableBackgroun
2dColor:x},M));if("font-size"===i.type)return C.a.createElement(We,se()({key:n,fontSizes:v,defaultCaption:i.title},M));if("line-height"===i.type)return C.a.createElement(Ge,se()({key:n,lineHeights:w,defaultCaption:i.title},M));if("letter-spacing"===i.type)return C.a.createElement(Ze,se()({key:n,letterSpacings:S,defaultCaption:i.title},M));if("text-indent"===i.type)return C.a.createElement($e,se()({key:n,defaultCaption:i.title},M));if("font-family"===i.type)return C.a.createElement(Ye,se()({key:n,fontFamilies:b,defaultCaption:i.title},M));if("emoji"===i.type)return C.a.createElement(Xe,se()({key:n,emojis:A,defaultCaption:i.text},M));if("link"===i.type)return C.a.createElement(He,se()({key:n,defaultLinkTarget:I,allowInsertLinkText:_},M));if("text-align"===i.type)return C.a.createElement(Je,se()({key:n,textAligns:k},M));if("media"===i.type)return c.image||c.video||c.audio?C.a.createElement("button",{type:"button",key:n,"data-title":i.title,disabled:i.disabled,className:"control-item media button",onClick:e.openBraftFinder},i.text):null;if("dropdown"===i.type)return C.a.createElement(Ue,se()({key:n,className:"control-item extend-control-item dropdown ".concat(i.className||""),caption:i.text,htmlCaption:i.html,showArrow:i.showArrow,title:i.title,arrowActive:i.arrowActive,theme:i.theme,autoHide:i.autoHide,disabled:i.disabled,ref:i.ref},M),i.component);if("modal"===i.type)return C.a.createElement("button",{type:"button",key:n,"data-title":i.title,disabled:i.disabled,className:"control-item extend-control-item button ".concat(i.className||""),dangerouslySetInnerHTML:i.html?{__html:i.html}:null,onClick:function(t){i.modal&&i.modal.id&&(e.extendedModals[i.modal.id]?(e.extendedModals[i.modal.id].active=!0,e.extendedModals[i.modal.id].update(a()({},i.modal,{language:f}))):(e.extendedModals[i.modal.id]=ye(a()({},i.modal,{language:f})),i.modal.onCreate&&i.modal.onCreate(e.extendedModals[i.modal.id]))),i.onClick&&i.onClick(t)}},i.html?null:i.text);if("component"===i.type)return C.a.createElement("div",{key:n,className:"component-wrapper ".concat(i.className||"")},i.component);if("button"===i.type)return C.a.createElement("button",{type:"button",key:n,"data-title":i.title,disabled:i.disabled,className:"control-item button ".concat(i.className||""),dangerouslySetInnerHTML:i.html?{__html:i.html}:null,onClick:function(e){return i.onClick&&i.onClick(e)}},i.html?null:i.text);if(i){var l=!1;return"undo"===i.command?l=0===o.getUndoStack().size:"redo"===i.command&&(l=0===o.getRedoStack().size),C.a.createElement("button",{type:"button",key:n,disabled:l,"data-title":i.title,className:e.getControlItemClassName({type:i.type,command:i.command}),onClick:function(){return e.applyControl(i.command,i.type,i.data)}},i.text)}})))}},{key:"preventDefault",value:function(e){var t=e.target.tagName.toLowerCase();"input"===t||"label"===t||e.preventDefault()}}]),t}(C.a.Component),rt=function(e,t){return e.filter((function(e){return!t.find((function(t){return t.toLowerCase()===e.toLowerCase()}))})).filter((function(e,t,n){return n.indexOf(e)===t}))},ot=function(e,t){return[].concat(k()(e.controls),k()(e.extendControls)).find((function(e){return e===t||e.key===t}))&&-1===e.excludeControls.indexOf(t)},it=function(e){var t=e.editorId||e.id,n=a()({},L.converts,e.converts,{fontFamilies:e.fontFamilies});return n.styleImportFn=ee(n.styleImportFn,t),n.styleExportFn=te(n.styleExportFn,t),n.entityImportFn=ne(n.entityImportFn,t),n.entityExportFn=re(n.entityExportFn,t),n.blockImportFn=oe(n.blockImportFn,t),n.blockExportFn=ie(n.blockExportFn,t),n},at=function(e){function t(e){var n;u()(this,t),n=h()(this,m()(t).call(this,e)),w()(v()(n),"onChange",(function(e,t){e instanceof M.EditorState||(e=M.EditorState.set(e,{decorator:n.editorDecorators})),e.convertOptions||e.setConvertOptions(it(n.editorProps)),n.setState({editorState:e},(function(){n.props.onChange&&n.props.onChange(e),t&&t(e)}))})),w()(v()(n),"getDraftInstance",(function(){return n.draftInstance})),w()(v()(n),"getFinderInstance",(function(){return n.braftFinder})),w()(v()(n),"getValue",(function(){return n.state.editorState})),w()(v()(n),"setValue",(function(e,t){return n.onChange(e,t)})),w()(v()(n),"forceRender",(function(){var e=n.state.editorState.getSelection();n.setValue(M.EditorState.set(n.state.editorState,{decorator:n.editorDecorators}),(function(){n.setValue(M.EditorState.forceSelection(n.state.editorState,e))}))})),w()(v()(n),"onTab",(function(e){"handled"===P("tab",n.state.editorState,v()(n))&&e.preventDefault(),n.editorProps.onTab&&n.editorProps.onTab(e)})),w()(v()(n),"onFocus",(function(){n.isFocused=!0,n.editorProps.onFocus&&n.editorProps.onFocus(n.state.editorState)})),w()(v()(n),"onBlur",(function(){n.isFocused=!1,n.editorProps.onBlur&&n.editorProps.onBlur(n.state.editorState)})),w()(v()(n),"requestFocus",(function(){setTimeout((function(){return n.draftInstance.focus()}),0)})),w()(v()(n),"handleKeyCommand",(function(e,t){return P(e,t,v()(n))})),w()(v()(n),"handleReturn",(function(e,t){return function(e,t,n){if(n.editorProps.handleReturn&&"handled"===n.editorProps.handleReturn(e,t,n))return"handled";var r=T.ContentUtils.getSelectionBlock(t),o=r.getType();if("unordered-list-item"===o||"ordered-list-item"===o)return 0===r.getLength()?(n.setValue(T.ContentUtils.toggleSelectionBlockType(t,"unstyled")),"handled"):"not-handled";if("code-block"===o)return 13===e.which&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))?(n.setValue(T.ContentUtils.toggleSelectionBlockType(t,"unstyled")),"handled"):"not-handled";if("blockquote"===o&&13===e.which){if(!(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control")))return n.setValue(M.RichUtils.insertSoftNewline(t)),"handled";e.which=0}var i=Object(R.handleNewLine)(t,e);return i?(n.setValue(i),"handled"):"not-handled"}(e,t,v()(n))})),w()(v()(n),"handleBeforeInput",(function(e,t){return function(e,t,n){return n.editorProps.handleBeforeInput&&"handled"===n.editorProps.handleBeforeInput(e,t,n)?"handled":"not-handled"}(e,t,v()(n))})),w()(v()(n),"handleDrop",(function(e,t){return function(e,t,n){if(n.editorProps.readOnly||n.editorProps.disabled)return"handled";if(window&&window.__BRAFT_DRAGING__IMAGE__){var r=M.EditorState.forceSelection(n.state.editorState,e);return r=T.ContentUtils.insertMedias(r,[window.__BRAFT_DRAGING__IMAGE__.mediaData]),r=T.ContentUtils.removeBlock(r,window.__BRAFT_DRAGING__IMAGE__.block,r.getSelection()),window.__BRAFT_DRAGING__IMAGE__=null,n.lockOrUnlockEditor(!0),n.setValue(r),"handled"}return t&&t.getText()?"not-handled":"handled"}(e,t,v()(n))})),w()(v()(n),"handleDroppedFiles",(function(e,t){return function(e,t,n){return n.editorProps.handleDroppedFiles&&"handled"===n.editorProps.handleDroppedFiles(e,t,n
2)?"handled":K(t,n)}(e,t,v()(n))})),w()(v()(n),"handlePastedFiles",(function(e){return function(e,t){return t.editorProps.handlePastedFiles&&"handled"===t.editorProps.handlePastedFiles(e,t)?"handled":K(e,t)}(e,v()(n))})),w()(v()(n),"handleCopyContent",(function(e){return function(e,t){var n=F()(t.state.editorState);if(n&&n.toArray)try{var r=M.ContentState.createFromBlockArray(n.toArray()),o=M.EditorState.createWithContent(r),i=e.clipboardData||window.clipboardData||e.originalEvent.clipboardData;o.setConvertOptions(t.state.editorState.convertOptions),i.setData("text/html",o.toHTML()),i.setData("text/plain",o.toText()),e.preventDefault()}catch(a){console.warn(a)}}(e,v()(n))})),w()(v()(n),"handlePastedText",(function(e,t,r){return function(e,t,n,r){if(r.editorProps.handlePastedText&&"handled"===r.editorProps.handlePastedText(e,t,n,r))return"handled";if(!t||r.editorProps.stripPastedStyles)return!1;var o=T.ColorUtils.detectColorsFromHTMLString(t);return r.setState({tempColors:[].concat(k()(r.state.tempColors),k()(o)).filter((function(e){return-1===r.editorProps.colors.indexOf(e)})).filter((function(e,t,n){return n.indexOf(e)===t}))},(function(){r.setValue(T.ContentUtils.insertHTML(n,t,"paste"))})),"handled"}(e,t,r,v()(n))})),w()(v()(n),"handleCompositionStart",(function(e){return function(e,t){var n=t.state.editorState,r=T.ContentUtils.getSelectedBlocks(n);if(r&&r.length>1){var o=M.EditorState.push(n,M.Modifier.removeRange(n.getCurrentContent(),n.getSelection(),"backward"),"remove-range");t.setValue(o)}}(0,v()(n))})),w()(v()(n),"undo",(function(){n.setValue(T.ContentUtils.undo(n.state.editorState))})),w()(v()(n),"redo",(function(){n.setValue(T.ContentUtils.redo(n.state.editorState))})),w()(v()(n),"removeSelectionInlineStyles",(function(){n.setValue(T.ContentUtils.removeSelectionInlineStyles(n.state.editorState))})),w()(v()(n),"insertHorizontalLine",(function(){n.setValue(T.ContentUtils.insertHorizontalLine(n.state.editorState))})),w()(v()(n),"clearEditorContent",(function(){n.setValue(T.ContentUtils.clear(n.state.editorState),(function(e){n.setValue(T.ContentUtils.toggleSelectionIndent(e,0))}))})),w()(v()(n),"toggleFullscreen",(function(e){n.setState({isFullscreen:"undefined"!==typeof e?e:!n.state.isFullscreen},(function(){n.editorProps.onFullscreen&&n.editorProps.onFullscreen(n.state.isFullscreen)}))})),w()(v()(n),"setEditorContainerNode",(function(e){n.containerNode=e})),n.editorProps=n.getEditorProps(e),n.editorDecorators=Ne(n.editorProps.editorId||n.editorProps.id),n.isFocused=!1,n.isLiving=!1,n.braftFinder=null,n.valueInitialized=!(!n.props.defaultValue&&!n.props.value);var r=(n.props.defaultValue||n.props.value)instanceof M.EditorState?n.props.defaultValue||n.props.value:M.EditorState.createEmpty(n.editorDecorators);r.setConvertOptions(it(n.editorProps));var o=[];if(T.ContentUtils.isEditorState(r)){var i=T.ColorUtils.detectColorsFromDraftState(r.toRAW(!0));r.setConvertOptions(it(n.editorProps)),o=rt(i,n.editorProps.colors)}return n.state={tempColors:o,editorState:r,isFullscreen:!1,draftProps:{}},n.containerNode=null,n}return A()(t,e),d()(t,[{key:"getEditorProps",value:function(e){var t,n=this,r=e=e||this.props,o=(r.value,r.defaultValue,r.onChange,s()(r,["value","defaultValue","onChange"])),i=(t=o.editorId||o.id,Z(j,t));if(0===i.length)return o;var a=Object(B.Map)(o);return i.forEach((function(e){a=a.merge(Object(B.Map)(e(a.toJS(),n)||{}))})),a.toJS()}},{key:"componentWillMount",value:function(){if(ot(this.editorProps,"media")){var e=this.editorProps,t=e.language,n=e.media,r=a()({},L.media,n),o=r.uploadFn,i=r.validateFn,l=r.items;this.braftFinder=new O.a({items:l,language:t,uploader:o,validator:i}),this.forceUpdate()}}},{key:"componentDidMount",value:function(){this.isLiving=!0}},{key:"componentDidUpdate",value:function(e,t){t.editorState!==this.state.editorState&&this.state.editorState.setConvertOptions(it(this.editorProps))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.editorProps=this.getEditorProps(e);var n,r=e.value,o=this.editorProps,i=o.media,l=o.language,s=this.getEditorProps();if(!ot(s,"media")&&ot(this.editorProps,"media")&&!this.braftFinder){var c=a()({},L.media,i),u=c.uploadFn,f=c.validateFn,d=c.items;this.braftFinder=new O.a({items:d,language:l,uploader:u,validator:f}),this.forceUpdate()}if(i&&i.items&&this.braftFinder&&this.braftFinder.setItems(i.items),!this.valueInitialized&&"undefined"===typeof this.props.defaultValue&&T.ContentUtils.isEditorState(e.defaultValue)?n=e.defaultValue:T.ContentUtils.isEditorState(r)&&(n=r),n)if(n&&n!==this.state.editorState){var p=T.ColorUtils.detectColorsFromDraftState(n.toRAW(!0));n.setConvertOptions(it(this.editorProps)),this.setState({tempColors:rt([].concat(k()(this.state.tempColors),k()(p)),s.colors),editorState:n},(function(){t.props.onChange&&t.props.onChange(n)}))}else this.setState({editorState:n})}},{key:"componentWillUnmount",value:function(){this.isLiving=!1,this.controlBarInstance&&this.controlBarInstance.closeBraftFinder()}},{key:"lockOrUnlockEditor",value:function(e){this.setState({editorLocked:e})}},{key:"render",value:function(){var e=this,t=this.editorProps,n=t.id,r=t.editorId,o=t.controls,i=t.excludeControls,l=t.extendControl
2s,s=t.readOnly,c=t.disabled,u=t.media,f=t.language,d=t.colors,p=t.colorPicker,h=t.colorPickerTheme,g=t.colorPickerAutoHide,m=t.hooks,y=t.fontSizes,v=t.fontFamilies,b=t.emojis,A=t.placeholder,E=t.fixPlaceholder,w=t.headings,S=t.imageControls,x=t.imageResizable,I=t.imageEqualRatio,O=t.lineHeights,T=t.letterSpacings,B=t.textAligns,D=t.textBackgroundColor,N=t.allowInsertLinkText,F=t.defaultLinkTarget,R=t.extendAtomics,P=t.className,K=t.style,z=t.controlBarClassName,U=t.controlBarStyle,j=t.contentClassName,H=t.contentStyle,V=t.stripPastedStyles,q=t.componentBelowControlBar,Q=this.state,W=Q.isFullscreen,G=Q.editorState;r=r||n,m=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[t]||function(){return n}}}(m),o=o.filter((function(e){return-1===i.indexOf(e)})),f=("function"===typeof f?f(_,"braft-editor"):_[f])||_[L.language];var Y=u&&u.externals?a()({},L.media.externals,u.externals):L.media.externals,J=u&&u.accepts?a()({},L.media.accepts,u.accepts):L.media.accepts;(u=a()({},L.media,u,{externalMedias:Y,accepts:J})).uploadFn||(u.video=!1,u.audio=!1);var X,Z={editor:this,editorState:G,braftFinder:this.braftFinder,ref:function(t){return e.controlBarInstance=t},getContainerNode:function(){return e.containerNode},className:z,style:U,colors:[].concat(k()(d),k()(this.state.tempColors)),colorPicker:p,colorPickerTheme:h,colorPickerAutoHide:g,hooks:m,editorId:r,media:u,controls:o,language:f,extendControls:l,headings:w,fontSizes:y,fontFamilies:v,emojis:b,lineHeights:O,letterSpacings:T,textAligns:B,textBackgroundColor:D,allowInsertLinkText:N,defaultLinkTarget:F},$=G.convertOptions.unitExportFn,ee={editor:this,editorId:r,hooks:m,editorState:G,containerNode:this.containerNode,imageControls:S,imageResizable:x,language:f,extendAtomics:R,imageEqualRatio:I},te=Me(ee,this.editorProps.blockRendererFn),ne=Te(ee,this.editorProps.blockRenderMap),re=Be(this.editorProps.blockStyleFn),oe=De(ee,this.editorProps.customStyleMap),ie=Le(ee,{fontFamilies:v,unitExportFn:$,customStyleFn:this.editorProps.customStyleFn}),ae=(X=this.editorProps.keyBindingFn,function(e){return 83===e.keyCode&&(M.KeyBindingUtil.hasCommandModifier(e)||M.KeyBindingUtil.isCtrlKeyCommand(e))?"braft-save":X&&X(e)||Object(M.getDefaultKeyBinding)(e)}),le={};(this.state.editorLocked||this.editorProps.disabled||this.editorProps.readOnly||this.editorProps.draftProps.readOnly)&&(le.readOnly=!0),A&&E&&G.isEmpty()&&"unstyled"!==G.getCurrentContent().getFirstBlock().getType()&&(A="");var se=a()({ref:function(t){e.draftInstance=t},editorState:G,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:ne,blockRendererFn:te,blockStyleFn:re,customStyleMap:oe,customStyleFn:ie,keyBindingFn:ae,placeholder:A,stripPastedStyles:V},this.editorProps.draftProps,le);return C.a.createElement("div",{style:K,ref:this.setEditorContainerNode,className:"bf-container ".concat(P).concat(c?" disabled":"").concat(s?" read-only":"").concat(W?" fullscreen":"")},C.a.createElement(nt,Z),q,C.a.createElement("div",{onCompositionStart:this.handleCompositionStart,className:"bf-content ".concat(j),onCopy:this.handleCopyContent,style:H},C.a.createElement(M.Editor,se)))}}]),t}(C.a.Component);w()(at,"defaultProps",L);var lt,st=n(14);n.d(t,"EditorState",(function(){return M.EditorState})),n.d(t,"getDecorators",(function(){return Ne})),M.EditorState.prototype.setConvertOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.convertOptions=e},M.EditorState.prototype.toHTML=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.convertOptions||{};return Object(st.convertEditorStateToHTML)(this,a()({},t,e))},M.EditorState.prototype.toRAW=function(e){return e?Object(st.convertEditorStateToRaw)(this):JSON.stringify(Object(st.convertEditorStateToRaw)(this))},M.EditorState.prototype.toText=function(){return this.getCurrentContent().getPlainText()},M.EditorState.prototype.isEmpty=function(){return!this.getCurrentContent().hasText()},at.createEditorState=M.EditorState.createFrom=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.unitExportFn=t.unitExportFn||at.defaultProps.converts.unitExportFn,t.styleImportFn=ee(t.styleImportFn,t.editorId),t.entityImportFn=ne(t.entityImportFn,t.editorId),t.blockImportFn=oe(t.blockImportFn,t.editorId);var n=null;if(e instanceof M.EditorState)n=e;else if("object"===o()(e)&&e&&e.blocks&&e.entityMap)n=Object(st.convertRawToEditorState)(e,Ne(t.editorId));else if("string"===typeof e)try{n=/^(-)?\d+$/.test(e)?Object(st.convertHTMLToEditorState)(e,Ne(t.editorId),t,"create"):M.EditorState.createFrom(JSON.parse(e),t)}catch(r){n=Object(st.convertHTMLToEditorState)(e,Ne(t.editorId),t,"create")}else n="number"===typeof e?Object(st.convertHTMLToEditorState)(e.toLocaleStr
2ing().replace(/,/g,""),Ne(t.editorId),t,"create"):M.EditorState.createEmpty(Ne(t.editorId));return t.styleExportFn=te(t.styleExportFn,t.editorId),t.entityExportFn=re(t.entityExportFn,t.editorId),t.blockExportFn=ie(t.blockExportFn,t.editorId),n.setConvertOptions(t),n},t.default=((lt=at).use=ae,lt)},function(e,t){},,function(e,t){},,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}])},e.exports=r(n(47313),n(22040),n(52500),n(15986),n(92808),n(1168),n(85099),n(61635))},85099:function(e,t,n){var r;window,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=20)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compressImage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1280,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:800;return new Promise((function(r,o){var i=new Image;i.src=e,i.onerror=function(e){o(e)},i.onload=function(){try{var e=document.createElement("canvas"),i=this.width>t||this.height>n?this.width>this.height?t/this.width:n/this.height:1;e.width=this.width*i,e.height=this.height*i,e.getContext("2d").drawImage(this,0,0,e.width,e.height),r({url:e.toDataURL("image/png",1),width:e.width,height:e.height})}catch(a){o(a)}}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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:"\u9
2078\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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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\u
26e90\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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(9)),o=u(n(8)),i=u(n(7)),a=u(n(6)),l=u(n(5)),s=u(n(4)),c=u(n(3));function u(e){return e&&e.__esModule?e:{default:e}}t.default={en:r.default,zh:o.default,"zh-hant":i.default,pl:a.default,kr:l.default,jpn:s.default,tr:c.default}},function(e,t){e.exports=function(e){var t="undefined"!==typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!==typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){var r={},o=function(e){var t;return function(){return"undefined"===typeof t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),i=function(e){return document.querySelector(e)},a=function(e){var t={};return function(e){if("function"===typeof e)return e();if("undefined"===typeof t[e]){var n=i.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(r){n=null}t[e]=n}return t[e]}}(),l=null,s=0,c=[],u=n(11);function f(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(y(o.parts[a],t))}else{var l=[];for(a=0;a<o.parts.length;a++)l.push(y(o.parts[a],t));r[o.id]={id:o.id,refs:1,parts:l}}}}function d(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function p(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!==typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function g(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),m(t,e.attrs),p(e,t),t}
2function m(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=s++;n=l||(l=g(t)),r=b.bind(null,n,a,!1),o=b.bind(null,n,a,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=E.bind(null,n,t),o=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=A.bind(null,n),o=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||"boolean"===typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return f(n,t),function(e){for(var o=[],i=0;i<n.length;i++){var a=n[i];(l=r[a.id]).refs--,o.push(l)}for(e&&f(d(e,t),t),i=0;i<o.length;i++){var l;if(0===(l=o[i]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete r[l.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function A(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function E(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=u(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t){e.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+R1hOTnMiISEic05NWVhOTn
2MiISEic05NfQGs/lRVGxtdPj5HRj4/XRsbGxtdPz5GRz4+XRsbAwAiIXRNTlhZTU50ISEhIXROTVlYTk10ISL+gFQAAAABAKoAAQOAA1UAHwAAATMRIREUBisBIiY1ESE1IxUUBiMhIiY9ATQ2MyEyFhUDAID+qhgSVhIYAaoqGBL+ABIaGhICABIYAwH+qv6AEhgYEgHWqioSGhoSqhIYGBIAAAABAIAAAwOAA1UAMwAAJTIWFRQGIyImNTwBNyUOASMiJjU0NjMyFhclLgE1NDYzMhYVFAYjIiYnBR4BFRQGBwU+AQMAM0lJMzNJAv7SEiwaNExLNRktEgEsAQNLNTRMSzUZLRL+1AEDAgIBMBAs/UkzM0tLMwcPBrAREUs1NEwSEK4HDwg0TEw0NUsTEbAIDwcIDwewDxEAAAMAVgArA6oDVQACAAYAGgAALQI3FTM1FyERFAYjISImNREhNTQ2OwEyFhUBgAFA/sAqrFQBADAk/VQkMAEAMCSsJDCr1qrWVlZW/dYkMjIkAipWJDAwJAAEAIAAgQOAAtUAAwAHAAsADwAAEyEVIRU1IRUBNSEVJTUhFYADAP0AAwD9AAMA/QADAALVVKxWVv6sVFSqVlYABABVACIDqwN3AAQAIQA9AEIAACUzESMREyIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMRIicuAScmNTQ3PgE3NjMyFx4BFxYVFAcOAQcGAzM1IxUB1VZWK1hOTnQhIiIhdE5OWFhOTnQhIiIhdE5OWEc+Pl0aGxsaXT4+R0c+Pl0aGxsaXT4+clZW9wEA/wACgCEic05OWFlNTnQhIiIhdE5NWVhOTnMiIf0AGxtdPj5HRj8+XBsbGxtcPj9GRz4+XRsbAdZVVQAABABVACIDqwN3AAQAIQA9AFIAACUzNSMVEyIHDgEHBhUUFx4BFxYzMjc+ATc2NTQnLgEnJiMRIicuAScmNTQ3PgE3NjMyFx4BFxYVFAcOAQcGAyIGFTM0NjMyFhUUBhUzNDY1NCYjAdVWVitYTk50ISIiIXROTlhYTk50ISIiIXROTlhHPj5dGhsbGl0+PkdHPj5dGhsbGl0+PkdHZFYyIyMygFaAZEfNVVUCqiEic05OWFlNTnQhIiIhdE5NWVhOTn
2MiIf0AGxtdPj5HRj8+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(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];
2if(!o)return r;if(t&&"function"===typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(a).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"===typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"===typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t){e.exports=function(e){return"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){var r=n(15);(e.exports=n(14)(!1)).push([e.i,"@font-face {\n font-family: 'bf-icons';\n src: url("+r(n(13))+') format("truetype");\n font-weight: normal;\n font-style: normal; }\n\n.braft-finder [class^="braft-icon-"], .braft-finder [class*=" braft-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'bf-icons\' !important;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n\n.braft-finder .braft-icon-code:before {\n content: "\\E903"; }\n\n.braft-finder .braft-icon-pause:before {\n content: "\\E034"; }\n\n.braft-finder .braft-icon-play_arrow:before {\n content: "\\E037"; }\n\n.braft-finder .braft-icon-bin:before {\n content: "\\E9AC"; }\n\n.braft-finder .braft-icon-replay:before {\n content: "\\E042"; }\n\n.braft-finder .braft-icon-close:before {\n content: "\\E913"; }\n\n.braft-finder .braft-icon-music:before {\n content: "\\E90E"; }\n\n.braft-finder .braft-icon-camera:before {\n content: "\\E911"; }\n\n.braft-finder .braft-icon-file-text:before {\n content: "\\E926"; }\n\n.braft-finder .braft-icon-film:before {\n content: "\\E91C"; }\n\n.braft-finder .braft-icon-paste:before {\n content: "\\E92D"; }\n\n.braft-finder .braft-icon-spinner:before {\n content: "\\E980"; }\n\n.braft-finder .braft-icon-media:before {\n content: "\\E90F"; }\n\n.braft-finder .braft-icon-add:before {\n content: "\\E918"; }\n\n.braft-finder .braft-icon-done:before {\n content: "\\E912"; }\n\n.braft-finder .braft-icon-drop-down:before {\n content: "\\E906"; }\n\n.braft-finder .braft-icon-drop-up:before {\n content: "\\E909"; }\n\n.braft-finder .braft-icon-help:before {\n content: "\\E902"; }\n\n.braft-finder .braft-icon-info:before {\n content: "\\E901"; }\n\n.braft-finder .braft-icon-menu:before {\n content: "\\E908"; }\n\n.pull-left {\n float: left; }\n\n.pull-right {\n float: right; }\n\n.braft-finder .bf-uploader {\n position: relative;\n height: 370px;\n margin: 0; }\n .braft-finder .bf-uploader.draging .bf-list-wrap,\n .braft-finder .bf-uploader.draging .bf-add-external {\n pointer-events: none; }\n .braft-finder .bf-uploader input::-webkit-input-placeholder {\n color: #ccc; }\n .braft-finder .bf-uploader input::-moz-placeholder {\n color: #ccc; }\n .braft-finder .bf-uploader input::-ms-input-placeholder {\n color: #ccc; }\n\n.braft-finder .bf-list-wrap {\n position: relative;\n height: 370px; }\n\n.braft-finder .bf-list-tools {\n z-index: 1;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n height: 20px;\n padding: 0 15px;\n background-color: #fff; }\n .braft-finder .bf-list-tools span {\n height: 26px;\n font-size: 12px;\n line-height: 20px;\n cursor: pointer;\n user-select: none; }\n .braft-finder .bf-list-tools span[disabled] {\n opacity: .3;\n pointer-events: none; }\n .braft-finder .bf-list-tools .bf-select-all,\n .braft-finder .bf-list-tools .bf-deselect-all {\n float: left;\n margin-right: 5px;\n color: #bbb; }\n .braft-finder .bf-list-tools .bf-select-all:hover,\n .braft-finder .bf-list-tools .bf-deselect-all:hover {\n color: #3498db; }\n .braft-finder .bf-list-tools .bf-remove-selected {\n float: right;\n color: #e74c3c; }\n .braft-finder .bf-list-tools .bf-remove-selected:hover {\n color: #c92e1e; }\n\n.braft-finder .bf-list {\n position: absolute;\n z-index: 1;\n top: 30px;\n right: 0;\n left: 0;\n bottom: 0;\n margin: 0;\n padding: 0 10px;\n list-style: none;\n overflow: auto; }\n .braft-finder .bf-list::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n background-color: #fff; }\n .braft-finder .bf-list::-webkit-scrollbar-track {\n background-color: #fff; }\n .braft-finder .bf-list::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.1); }\n\n.braft-finder .bf-item,\n.braft-finder .bf-add-item {\n position: relative;\n display: block;\n float: left;\n width: 113px;\n height: 113px;\n margin: 5px;\n overflow: hidden;\n border-radius: 3px; }\n\n.braft-finder .bf-item.uploading {\n pointer-events: none; }\n\n.braft-finder .bf-item.error::before {\n display: block;\n content: "\\E901"; }\n\n.braft-finder .bf-item.error::after {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(231, 76, 60, 0.8);\n content: \'\'; }\n\n.braft-finder .bf-item.error:hover::after {\n background-color: rgba(231, 76, 60, 0.9); }\n\n.braft-finder .bf-item.error .bf-item-uploading {\n display: none; }\n\n.braft-finder .bf-add-item {\n background-color: #ecedef;
2\n color: #999; }\n .braft-finder .bf-add-item:hover {\n background-color: #e1e2e3; }\n .braft-finder .bf-add-item i {\n display: block;\n width: 113px;\n height: 113px;\n font-size: 48px;\n line-height: 113px;\n text-align: center; }\n .braft-finder .bf-add-item input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer; }\n\n.braft-finder .bf-item::before {\n display: none;\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 113px;\n height: 113px;\n color: #fff;\n font-size: 48px;\n font-family: \'bf-icons\';\n line-height: 113px;\n text-align: center; }\n\n.braft-finder .bf-item::after {\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(52, 152, 219, 0);\n content: \'\'; }\n\n.braft-finder .bf-item:hover::after {\n background-color: rgba(52, 152, 219, 0.3); }\n\n.braft-finder .bf-item:hover .bf-item-remove {\n display: block; }\n\n.braft-finder .bf-item.active::before {\n display: block;\n content: "\\E912"; }\n\n.braft-finder .bf-item.active::after {\n background-color: rgba(52, 152, 219, 0.6); }\n\n.braft-finder .bf-item.active:hover::after {\n background-color: rgba(52, 152, 219, 0.8); }\n\n.braft-finder .bf-item.active:hover .bf-item-remove {\n display: none; }\n\n.braft-finder .bf-item-uploading {\n box-sizing: border-box;\n position: absolute;\n z-index: 3;\n top: 52px;\n left: 10px;\n width: 93px;\n height: 10px;\n overflow: hidden;\n background-color: rgba(255, 255, 255, 0.3);\n border-radius: 5px;\n box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.5); }\n\n.braft-finder .bf-item-uploading-bar {\n height: 10px;\n background-color: #3498db;\n border-radius: 0; }\n\n.braft-finder .bf-item-remove {\n display: none;\n position: absolute;\n z-index: 2;\n top: 0;\n right: 0;\n width: 28px;\n height: 28px;\n color: #fff;\n font-size: 18px;\n line-height: 28px;\n text-align: center;\n cursor: pointer; }\n .braft-finder .bf-item-remove:hover {\n color: #e74c3c; }\n\n.braft-finder .bf-item-title {\n display: none;\n box-sizing: border-box;\n position: absolute;\n z-index: 2;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 40px;\n padding: 0 5px;\n overflow: hidden;\n background-image: linear-gradient(rgba(0, 0, 0, 0), black);\n color: #fff;\n font-size: 12px;\n line-height: 55px;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap; }\n\n.braft-finder .bf-image {\n width: 100%;\n height: 100%;\n background-color: #eee;\n user-select: none; }\n .braft-finder .bf-image img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover; }\n\n.braft-finder .bf-video {\n background-color: #8e44ad; }\n\n.braft-finder .bf-audio {\n background-color: #f39c12; }\n\n.braft-finder .bf-embed {\n background-color: #f1c40f; }\n\n.braft-finder .bf-icon {\n display: block;\n width: 113px;\n height: 113px;\n overflow: hidden;\n color: #fff;\n text-align: center;\n text-decoration: none; }\n .braft-finder .bf-icon i, .braft-finder .bf-icon span {\n display: block; }\n .braft-finder .bf-icon i {\n margin-top: 35px;\n font-size: 24px; }\n .braft-finder .bf-icon span {\n width: 103px;\n margin: 10px auto;\n overflow: hidden;\n font-size: 12px;\n text-overflow: ellipsis;\n white-space: nowrap; }\n\n.braft-finder .bf-drag-uploader {\n box-sizing: border-box;\n position: absolute;\n z-index: 2;\n top: 0;\n right: 15px;\n left: 15px;\n height: 100%;\n background-color: #fff;\n border: dashed 1px #bbb;\n text-align: center;\n opacity: 0;\n pointer-events: none; }\n .braft-finder .bf-drag-uploader:hover, .braft-finder .bf-drag-uploader.draging {\n background-color: #f1f2f3; }\n .braft-finder .bf-drag-uploader.active {\n opacity: 1;\n pointer-events: auto; }\n\n.braft-finder .bf-uploader-buttons {\n height: 370px;\n margin: auto;\n text-align: center; }\n\n.braft-finder .bf-drag-tip {\n display: inline-block;\n margin-top: 150px;\n color: #ccc;\n text-align: center;\n font-size: 28px;\n font-weight: normal;\n line-height: 40px; }\n .braft-finder .bf-drag-tip input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n color: #fff;\n text-indent: -100px;\n cursor: pointer; }\n\n.braft-finder .bf-manager-footer {\n height: 36px;\n margin: 10px 0;\n padding: 0 15px; }\n .braft-finder .bf-manager-footer .button {\n float: right;\n height: 36px;\n margin-left: 5px;\n padding: 0 35px;\n font-size: 12px;\n font-weight: 700;\n border: none;\n border-radius: 3px;\n cursor: pointer; }\n .braft-finder .bf-manager-footer .button-insert {\n color: #fff;\n background-color: #3498db; }\n .braft-finder .bf-manager-footer .button-insert:hover {\n background-color: #2084c7; }\n .braft-finder .bf-manager-footer .button-insert[disabled] {\n opacity: .3;\n pointer-events: none;\n filter: grayscale(0.4); }\n .braft-finder .bf-manager-footer .button-cancel {\n color: #999;\n background-color: #e8e8e9; }\n .braft-finder .bf-manager-footer .button-cancel:hover {\n background-color: #d8d8d9; }\n\n.braft-finder .bf-toggle-external-form {\n color: #666;\n font-size: 12px;\n line-height: 36px; }\n .braft-finder .bf-toggle-external-form span {\n color: #bbb;\n line-height: 16px;\n cursor: pointer;\n user-select: none; }\n .braft-finder .bf-toggle-external-form span:hover {\n color: #3498db; }\n .braft-finder .bf-toggle-external-form span i {\n position: relative;\n top: 2px;\n font-size: 16px; }\n\n.braft-finder .bf-add-external {\n position: absolute;\n z-index: 3;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #fff; }\n .braft-finder .bf-add-external input {\n border: solid 1px rgba(0, 0, 0, 0.3);\n border: solid 0.5px rgba(0, 0, 0, 0.3);\n box-shadow: none; }\n .braft-finder .bf-add-external input:focus {\n border-color: #3498db;\n box-shadow: none; }\n\n.braft-finder .bf-external-form {\n width: 500px;\n max-width: 90%;\n margin: 91px auto 0 auto; }\n\n.braft-finder .bf-external-input {\n position: relative;\n width: 100%;\n height: 40px;\n margin-bottom: 10px; }\n .braft-finder .bf-external-input div {\n position: absolute;\n top: 0;\n right: 85px;\n left: 0;\n height: 40px; }\n .braft-finder .bf-external-input input,\n .braft-finder .bf-external-input textarea {\n display: block;\n box-sizing: border-box;\n width: 100%;\n height: 40px;\n padding: 0 10px;\n border: none;\n border-radius: 3px;\n outline: none;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);\n color: #999;\n font-size: 18px; }\n .braft-finder .bf-external-input input:focus,\n .braft-finder .bf-external-input textarea:focus {\n box-shadow: inset 0 0 0 1px #3498db; }\n .braft-finder .bf-external-input textarea {\n height: 100px;\n font-size: 14px; }\n .braft-finder .bf-external-input button {\n position: absolute;\n top: 0;\n right: 0;\n width: 80px;\n height: 40px;\n background-color: #3498db;\n border: none;\n border-radius: 3px;\n color: #fff;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer; }\n .braft-finder .bf-external-input button:disabled {\n opacity: .3;\n pointer-events: none;\n filter: grayscale(0.4); }\n .braft-finder .bf-external-input button:hover {\n background-color: #2084c7; }\n\n.braft-finder .bf-switch-external-type {\n overflow: hidden;\n text-align: center; }\n .braft-finder .bf-switch-external-type button {\n width: auto;\n height: 30px;\n margin: 10px 5px;\n padding: 0 10px;\n background-color: #e8e9ea;\n border: none;\n border-radius: 3px;\n color: #999;\n font-size: 12px;\n cursor: pointer; }\n .braft-finder .bf-switch-external-type button:hover {\n background-color: #d8d9da; }\n .braft-finder .bf-switch-external-type button:only-child {\n display: none; }\n .braft-finder .bf-switch-external-type[data-type="IMAGE"] [data-type="IMAGE"],\n .braft-finder .bf-switch-external-type[data-type="VIDEO"] [data-type="VIDEO"],\n .braft-finder .bf-switch-external-type[data-type="AUDIO"] [data-type="AUDIO"],\n .braft-finder .bf-switch-external-type[data-type="EMBED"] [data-type="EMBED"],\n .braft-finder .bf-switch-external-type[data-type="FILE"] [data-type="FILE"] {\n background-color: #3498db;\n color: #fff; }\n\n.braft-finder .bf-external-tip {\n display: block;\n margin-top: 15px;\n color: #ccc;\n font-size: 12px;\n text-align: center; }\n',""])},function(e,t,n){var r=n(16);"string"===typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(12)(r,o),r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(17);var i,a=n(2),l=(i=a)&&i.__esModule?i:{default:i},s=n(1),c={image:"image/png,image/jpeg,image/gif,image/webp,image/apng,image/svg",video:"video/mp4",audio:"audio/mp3"},u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.toggleSelectItem=function(e){var t=e.currentTarget.dataset.id,r=n.controller.getMediaItem(t);if(!r)return!1;r.selected?n.props.onBeforeDeselect&&!1===n.props.onBeforeDeselect([r],n.controller.getItems())||(n.controller.deselectMediaItem(t),n.props.onDeselect&&n.props.onDeselect([r],n.controller.getItems())):n.props.onBeforeSelect&&!1===n.props.onBeforeSelect([r],n.controller.getItems())||(n.controller.selectMediaItem(t),n.props.onSelect&&n.props.onSelect([r],n.controller.getItems()))},n.removeItem=function(e){var t=e.currentTarget.dataset.id,r=n.controller.getMediaItem(t);if(!r)return!1;n.props.onBeforeRemove&&!1===n.props.onBeforeRemove([r],n.controller.getItems())||(n.controller.removeMediaItem(t),n.props.onRemove&&n.props.onRemove([r],n.controller.getItems())),e.stopPropagation()},n.selectAllItems=function(){var e=n.controller.getItems();n.props.onBeforeSelect&&!1===n.props.onBeforeSelect(e,e)||(n.controller.selectAllItems(),n.props.onSelect&&n.props.onSelect(e,e))},n.deselectAllItems=function(){var e=n.controller.getItems();n.props.onBeforeDeselect&&!1===n.props.onBeforeDeselect(e,e)||(n.controller.deselectAllItems(),n.props.onDeselect&&n.props.onDeselect(e,e))},n.removeSelectedItems=function(){var e=n.controller.getSelectedItems();n.props.onBeforeRemove&&!1===n.props.onBeforeRemove(e,n.controller.getItems())||(n.controller.removeSelectedItems(),n.props.onRemove&&n.props.onRemove(e,n.controller.getItems()))},n.handleDragLeave=function(e){e.preventDefault(),n.dragCounter--,0===n.dragCounter&&n.setState({draging:!1})},n.handleDragDrop=function(e){e.preventDefault(),n.dragCounter=0,n.setState({draging:!1}),n.reslovePickedFiles(e)},n.handleDragEnter=function(e){e.preventDefault(),n.dragCounter++,n.setState({draging:!0})},n.reslovePickedFiles=function(e){e.persist();var t=("drop"===e.type?e.dataTransfer:e.target).files;if(n.props.onFileSelect){var o=n.props.onFileSelect(t);if(!1===o)return!1;(o instanceof FileList||o instanceof Array)&&(t=o)}var i=r({},c,n.props.accepts);n.controller.resolveFiles({files:t,onItemReady:function(e){var t=e.id;return n.controller.selectMediaItem(t)},onAllReady:function(){return e.target.value=null}},0,i)},n.inputExternal=function(e){n.setState({external:r({},n.state.external,{url:e.target.value})})},n.switchExternalType=function(e){n.setState({external:r({},n.state.external,{type:e.target.dataset.type})})},n.confirmAddExternal=function(e){if("button"===e.target.nodeName.toLowerCase()||13===e.keyCode){var t=n.state.external,r=t.url,o=t.type,i=(r=r.split("|")).length>1?r[0]:n.props.language.unnamedItem;r=r.length>1?r[1]:r[0];var a="IMAGE"===o?r:null;n.controller.addItems([{thumbnail:a,url:r,name:i,type:o,id:(new Date).getTime()+"_"+(0,s.UniqueIndex)(),uploading:!1,uploadProgress:1,selected:!0}]),n.setState({showExternalForm:!1,external:{url:"",type:"IMAGE"}})}},n.toggleExternalForm=function(){n.setState({showExternalForm:!n.state.showExternalForm})},n.cancelInsert=function(){n.props.onCancel&&n.props.onCancel()},n.confirmInsert=function(){var e=n.controller.getSelectedItems();if(n.props.onBeforeInsert){var t=n.props.onBeforeInsert(e);t&&t instanceof Array?(n.controller.deselectAllItems(),n.props.onInsert&&n.props.onInsert(t)):!1!==t&&(n.controller.deselectAllItems(),n.props.onInsert&&n.props.onInsert(e))}else n.controller.deselectAllItems(),n.props.onInsert&&n.props.onInsert(e)},n.dragCounter=0,n.controller=n.props.controller;var o=n.controller.getItems();return n.state={draging:!1,error:!1,confirmable:o.find((function(e){return e.selected})),external:{url:"",type:"IMAGE"},fileAccept:"",showExternalForm:!1,allowExternal:!1,items:o},n.changeListenerId=n.controller.onChange((function(e){n.setState({items:e,confirmable:e.find((function(e){return e.selected}))}),n.props.onChange&&n.props.onChange(e)}
2)),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"mapPropsToState",value:function(e){var t=e.accepts,n=e.externals;return{fileAccept:(t=r({},c,t))?[t.image,t.video,t.audio].filter((function(e){return e})).join(","):[c.image,c.video,c.audio].join(","),external:{url:"",type:n.image?"IMAGE":n.audio?"AUDIO":n.video?"VIDEO":n.embed?"EMBED":""},allowExternal:n&&(n.image||n.audio||n.video||n.embed)}}},{key:"componentDidMount",value:function(){this.setState(this.mapPropsToState(this.props))}},{key:"componentWillReceiveProps",value:function(e){this.setState(this.mapPropsToState(e))}},{key:"componentWillUnmount",value:function(){this.controller.offChange(this.changeListenerId)}},{key:"render",value:function(){var e=this.props,t=e.language,n=e.externals,r=this.state,o=r.items,i=r.draging,a=r.confirmable,s=r.fileAccept,c=r.external,u=r.showExternalForm,f=r.allowExternal;return l.default.createElement("div",{className:"braft-finder"},l.default.createElement("div",{onDragEnter:this.handleDragEnter,onDragOver:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDragDrop,className:"bf-uploader"},l.default.createElement("div",{className:"bf-drag-uploader "+(i||!o.length?"active ":" ")+(i?"draging":"")},l.default.createElement("span",{className:"bf-drag-tip"},l.default.createElement("input",{accept:s,onChange:this.reslovePickedFiles,multiple:!0,type:"file"}),i?t.dropTip:t.dragTip)),o.length?l.default.createElement("div",{className:"bf-list-wrap"},l.default.createElement("div",{className:"bf-list-tools"},l.default.createElement("span",{onClick:this.selectAllItems,className:"bf-select-all"},l.default.createElement("i",{className:"braft-icon-done"})," ",t.selectAll),l.default.createElement("span",{onClick:this.deselectAllItems,disabled:!a,className:"bf-deselect-all"},l.default.createElement("i",{className:"braft-icon-close"})," ",t.deselect),l.default.createElement("span",{onClick:this.removeSelectedItems,disabled:!a,className:"bf-remove-selected"},l.default.createElement("i",{className:"braft-icon-bin"})," ",t.removeSelected)),this.buildItemList()):null,u&&f?l.default.createElement("div",{className:"bf-add-external"},l.default.createElement("div",{className:"bf-external-form"},l.default.createElement("div",{className:"bf-external-input"},l.default.createElement("div",null,l.default.createElement("input",{onKeyDown:this.confirmAddExternal,value:c.url,onChange:this.inputExternal,placeholder:t.externalInputPlaceHolder})),l.default.createElement("button",{type:"button",onClick:this.confirmAddExternal,disabled:!c.url.trim().length},t.confirm)),l.default.createElement("div",{"data-type":c.type,className:"bf-switch-external-type"},n.image?l.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"IMAGE"},t.image):null,n.audio?l.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"AUDIO"},t.audio):null,n.video?l.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"VIDEO"},t.video):null,n.embed?l.default.createElement("button",{type:"button",onClick:this.switchExternalType,"data-type":"EMBED"},t.embed):null),l.default.createElement("span",{className:"bf-external-tip"},t.externalInputTip))):null),l.default.createElement("footer",{className:"bf-manager-footer"},l.default.createElement("div",{className:"pull-left"},f?l.default.createElement("span",{onClick:this.toggleExternalForm,className:"bf-toggle-external-form"},u?l.default.createElement("span",{className:"bf-bottom-text"},l.default.createElement("i",{className:"braft-icon-add"})," ",t.addLocalFile):l.default.createElement("span",{className:"bf-bottom-text"},l.default.createElement("i",{className:"braft-icon-add"})," ",t.addExternalSource)):null),l.default.createElement("div",{className:"pull-right"},l.default.createElement("button",{onClick:this.confirmInsert,className:"button button-insert",disabled:!a},t.insert),l.default.createElement("button",{onClick:this.cancelInsert,className:"button button-cancel"},t.cancel))))}},{key:"buildItemList",value:function(){var e=this;return l.default.createElement("ul",{className:"bf-list"},l.default.createElement("li",{className:"bf-add-item"},l.default.createElement("i",{className:"braft-icon-add"}),l.default.createElement("input",{accept:this.state.fileAccept,onChange:this.reslovePickedFiles,multiple:!0,type:"file"})),this.state.items.map((function(t,n){var r=null,o=t.uploading&&!e.props.hideProgress?l.default.createElement("div",{className:"bf-item-uploading"},l.default.createElement("div",{className:"bf-item-uploading-bar",style:{width:t.uploadProgress/1+"%"}})):"";switch(t.type){case"IMAGE":r=l.default.createElement("div",{className:"bf-image"},o,l.default.createElement("img",{src:t.thumbnail||t.url}));break;case"VIDEO":r=l.default.createElement("div",{className:"bf-icon bf-video",title:t.url},o,l.default.createElement("i",{className:"braft-icon-film"}),l.default.createElement("span",null,t.name||t.url));break;case"AUDIO":r=l.default.createElement("div",{className:"bf-icon bf-audio",title:t.url},o,l.default.createElement("i",{className:"braft-icon-music"}),l.default.createElement("span",null,t.name||t.url));break;case"EMBED":r=l.default.createElement("div",{className:"bf-icon bf-embed",title:t.url},o,l.default.createElement("i",{className:"braft-icon-code"}),l.default.createElement("span",null,t.name||e.props.language.embed));break;default:r=l.default.createElement("a",{className:"bf-icon bf-file",title:t.url,href:t.url},o,l.default.createElement("i",{className:"braft-icon-file-text"}),l.default.createElement("span",null,t.name||t.url))}var i=["bf-item"];return t.selected&&i.push("active"),t.uploading&&i.push("uploading"),t.error&&i.push("error"),l.default.createElement("li",{key:n,title:t.name,"data-id":t.id,className:i.join(" "),onClick:e.toggleSelectItem},r,l.default.createElement("span",{"data-id":t.id,onClick:e.removeItem,className:"bf-item-remove braft-icon-close"}),l.default.createElement("span",{className:"bf-item-title"},t.name))})))}}]),t}(l.default.Component);u.defaultProps={accepts:c,externals:{image:!0,video:!0,audio:!0,embed:!0}},t.default=u},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),i=n(0);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){return!0},c=function(){var e=this;this.setProps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.items=t.items||e.items||[],e.uploadFn=t.uploader,e.validateFn=t.validator||s},this.getMediaItem=function(t){return e.items.find((function(e){return e.id===t}))},this.getSelectedItems=function(){return e.items.filter((function(e){return e.selected}))},this.getItems=function(){return e.items},this.setItems=function(t){e.items=t.map((function(e){return r({},e,{id:e.id.toString()})}))||[],e.applyChange(),e.uploadItems()},this.addMediaItem=function(t){e.addItems([t])},this.addItems=function(t){e.items=[].concat(a(e.items),a(t.map((function(e){return r({},e,{id:e.id.toString()})})))),e.applyChange(),e.uploadItems()},this.selectMediaItem=function(t){var n=e.getMediaItem(t);if(n&&(n.uploading||n.error))return!1;e.setMediaItemState(t,{selected:!0})},this.selectAllItems=function(){e.items=e.items.filter((function(e){return!e.error&&!e.uploading})).map((function(e){return r({},e,{selected:!0})})),e.applyChange()},this.deselectMediaItem=function(t){e.setMediaItemState(t,{selected:!1})},this.deselectAllItems=function(){e.items=e.items.map((function(e){return r({},e,{selected:!1})})),e.applyChange()},this.removeMediaItem=function(t){e.items=e.items.filter((function(e){return e.id!==t})),e.applyChange()},this.removeItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.items=e.items.filter((function(e){return!t.includes(e.id)}
2)),e.applyChange()},this.removeSelectedItems=function(){e.items=e.items.filter((function(e){return!e.selected})),e.applyChange()},this.removeErrorItems=function(){e.items=e.items.filter((function(e){return!e.error})),e.applyChange()},this.removeAllItems=function(){e.items=[],e.applyChange()},this.setMediaItemState=function(t,n){e.items=e.items.map((function(e){return e.id===t?r({},e,n):e})),e.applyChange()},this.reuploadErrorItems=function(){e.uploadItems(!0)},this.uploadItems=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.items.forEach((function(n,r){if(n.uploading||n.url)return!1;if(!t&&n.error)return!1;if("IMAGE"===n.type)e.createThumbnail(n),e.uploadFn=e.uploadFn||e.createInlineImage;else if(!e.uploadFn)return e.setMediaItemState(n.id,{error:1}),!1;e.setMediaItemState(n.id,{uploading:!0,uploadProgress:0,error:0}),e.uploadFn({id:n.id,file:n.file,success:function(t){e.handleUploadSuccess(n.id,t)},progress:function(t){e.setMediaItemState(n.id,{uploading:!0,uploadProgress:t})},error:function(t){e.setMediaItemState(n.id,{uploading:!1,error:2})}})}))},this.createThumbnail=function(t){var n=t.id,r=t.file;(0,i.compressImage)(URL.createObjectURL(r),226,226).then((function(t){e.setMediaItemState(n,{thumbnail:t.url})}))},this.createInlineImage=function(e){(0,i.compressImage)(URL.createObjectURL(e.file),1280,800).then((function(t){e.success({url:t.url})})).catch((function(t){e.error(t)}))},this.handleUploadSuccess=function(t,n){e.setMediaItemState(t,r({},n,{file:null,uploadProgress:1,uploading:!1,selected:!1}));var o=e.getMediaItem(n.id||t);o.onReady&&o.onReady(o)},this.applyChange=function(){e.changeListeners.forEach((function(t){return(0,t.callback)(e.items)}))},this.uploadImage=function(t,n){var r=(new Date).getTime()+"_"+(0,o.UniqueIndex)();e.addMediaItem({type:"IMAGE",id:r,file:t,name:r,size:t.size,uploadProgress:0,uploading:!1,selected:!1,error:0,onReady:n})},this.uploadImageRecursively=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]&&t[r].type.indexOf("image")>-1?e.uploadImage(t[r],(function(o){n&&n(o),r<t.length-1&&e.uploadImageRecursively(t,n,r+1)})):r<t.length-1&&e.uploadImageRecursively(t,n,r+1)},this.addResolvedFiles=function(t,n,r){var i={id:(new Date).getTime()+"_"+(0,o.UniqueIndex)(),file:t.files[n],name:t.files[n].name,size:t.files[n].size,uploadProgress:0,uploading:!1,selected:!1,error:0,onReady:function(e){t.onItemReady&&t.onItemReady(e)}};0===t.files[n].type.indexOf("image/")&&r.image?(i.type="IMAGE",e.addMediaItem(i)):0===t.files[n].type.indexOf("video/")&&r.video?(i.type="VIDEO",e.addMediaItem(i)):0===t.files[n].type.indexOf("audio/")&&r.audio&&(i.type="AUDIO",e.addMediaItem(i)),setTimeout((function(){e.resolveFiles(t,n+1,r)}),60)},this.resolveFiles=function(t,n,r){if(n<t.files.length){var o=e.validateFn(t.files[n]);o instanceof Promise?o.then((function(){e.addResolvedFiles(t,n,r)})):o&&e.addResolvedFiles(t,n,r)}else t.onAllReady&&t.onAllReady()},this.onChange=function(t){var n=(0,o.UniqueIndex)();return e.changeListeners.push({id:n,callback:t}),n},this.offChange=function(t){e.changeListeners=e.changeListeners.filter((function(e){return e.id!==t}))}};t.default=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,e),c.call(this),this.items=t.items||[],this.uploadFn=t.uploader,this.validateFn=t.validator||s,this.changeListeners=[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageUtils=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(2)),i=c(n(19)),a=c(n(18)),l=c(n(10)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return f.call(n),n.superProps=e,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default),f=function(){var e=this;this.ReactComponent=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r({},e.superProps,t),i=("function"===typeof n.language?n.language(l.default,"braft-finder"):l.default[n.language])||l.default.zh;return o.default.createElement(a.default,r({},n,{language:i,controller:e}))}};t.default=u,t.ImageUtils=s}])},e.exports=r(n(47313))},78485:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.UniqueIndex=function(){return n+=1}},70926:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.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"},r=t.getHexColor=function(e){if(e=e.replace("color:","").replace(";","").replace(" ",""),/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(e))return e;if(n[e])return n[e];if(0===e.indexOf("rgb")){var t=e.split(","),r=t.length<3?null:"#"+[t[0],t[1],t[2]].map((function(e){var t=parseInt(e.replace(/\D/g,""),10).toString(16);return 1===t.length?"0"+t:t})).join("");return/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(r)?r:null}return null};t.detectColorsFromHTMLString=function(e){return"string"!==typeof e?[]:(e.match(/color:[^;]{3,24};/g)||[]).map(r).filter((function(e){return e}))},t.detectColorsFromDraftState=function(e){var t=[];return e&&e.blocks&&e.blocks.length?(e.blocks.forEach((function(e){e&&e.inlineStyleRanges&&e.inlineStyleRanges.length&&e.inlineStyleRanges.forEac
2h((function(e){e.style&&e.style.indexOf("COLOR-")>=0&&t.push("#"+e.style.split("COLOR-")[1])}))})),t.filter((function(e){return e}))):t}},73112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redo=t.undo=t.handleKeyCommand=t.clear=t.setMediaPosition=t.removeMedia=t.setMediaData=t.insertMedias=t.insertHorizontalLine=t.insertAtomicBlock=t.insertHTML=t.insertText=t.toggleSelectionLetterSpacing=t.toggleSelectionFontFamily=t.toggleSelectionLineHeight=t.toggleSelectionFontSize=t.toggleSelectionBackgroundColor=t.toggleSelectionColor=t.decreaseSelectionIndent=t.increaseSelectionIndent=t.toggleSelectionIndent=t.toggleSelectionAlignment=t.removeSelectionInlineStyles=t.toggleSelectionInlineStyle=t.selectionHasInlineStyle=t.getSelectionInlineStyle=t.toggleSelectionLink=t.toggleSelectionEntity=t.getSelectionEntityData=t.getSelectionEntityType=t.toggleSelectionBlockType=t.getSelectionText=t.getSelectionBlockType=t.getSelectionBlockData=t.setSelectionBlockData=t.getSelectedBlocks=t.updateEachCharacterOfSelection=t.getSelectionBlock=t.removeBlock=t.selectNextBlock=t.selectBlock=t.selectionContainsStrictBlock=t.selectionContainsBlockType=t.isSelectionCollapsed=t.createEditorState=t.createEmptyEditorState=t.isEditorState=t.registerStrictBlockType=void 0;var r,o=n(52500),i=n(61635),a=n(92808),l=n(15986),s=(r=l)&&r.__esModule?r:{default:r};var c=["atomic"],u=(t.registerStrictBlockType=function(e){-1===c.indexOf(e)&&c.push(e)},t.isEditorState=function(e){return e instanceof o.EditorState},t.createEmptyEditorState=function(e){return o.EditorState.createEmpty(e)},t.createEditorState=function(e,t){return o.EditorState.createWithContent(e,t)},t.isSelectionCollapsed=function(e){return e.getSelection().isCollapsed()},t.selectionContainsBlockType=function(e,t){return m(e).find((function(e){return e.getType()===t}))},t.selectionContainsStrictBlock=function(e){return m(e).find((function(e){return~c.indexOf(e.getType())}))}),f=t.selectBlock=function(e,t){var n=t.getKey();return o.EditorState.forceSelection(e,new o.SelectionState({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:t.getLength()}))},d=t.selectNextBlock=function(e,t){var n=e.getCurrentContent().getBlockAfter(t.getKey());return n?f(e,n):e},p=t.removeBlock=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=void 0,i=void 0,a=t.getKey();return r=o.Modifier.removeRange(e.getCurrentContent(),new o.SelectionState({anchorKey:a,anchorOffset:0,focusKey:a,focusOffset:t.getLength()}),"backward"),r=o.Modifier.setBlockType(r,r.getSelectionAfter(),"unstyled"),i=o.EditorState.push(e,r,"remove-range"),o.EditorState.forceSelection(i,n||r.getSelectionAfter())},h=t.getSelectionBlock=function(e){return e.getCurrentContent().getBlockForKey(e.getSelection().getAnchorKey())},g=t.updateEachCharacterOfSelection=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=r.getBlockMap(),a=m(e);if(0===a.length)return e;var l=n.getStartKey(),s=n.getStartOffset(),c=n.getEndKey(),u=n.getEndOffset(),f=i.map((function(e){if(-1===a.indexOf(e))return e;var n=e.getKey(),r=e.getCharacterList(),o=null;return o=n===l&&n===c?r.map((function(e,n){return n>=s&&n<u?t(e):e})):n===l?r.map((function(e,n){return n>=s?t(e):e})):n===c?r.map((function(e,n){return n<u?t(e):e})):r.map((function(e){return t(e)})),e.merge({characterList:o})}));return o.EditorState.push(e,r.merge({blockMap:f,selectionBefore:n,selectionAfter:n}),"update-selection-character-list")},m=t.getSelectedBlocks=function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=r===o,a=[n.getBlockForKey(r)];if(!i)for(var l=r;l!==o;){var s=n.getBlockAfter(l);a.push(s),l=s.getKey()}return a},y=t.setSelectionBlockData=function(e,t,n){var r=n?t:Object.assign({},v(e).toJS(),t);return Object.keys(r).forEach((function(e){r.hasOwnProperty(e)&&void 0===r[e]&&delete r[e]})),(0,i.setBlockData)(e,r)},v=t.getSelectionBlockData=function(e,t){var n=h(e).getData();return t?n.get(t):n},b=t.getSelectionBlockType=function(e){return h(e).getType()},A=(t.getSelectionText=function(e){var t=e.getSelection(),n=e.getCurrentContent();if(t.isCollapsed()||"atomic"===b(e))return"";var r=t.getAnchorKey(),o=n.getBlockForKey(r),i=t.getStartOffset(),a=t.getEndOffset();return o.getText().slice(i,a)},t.toggleSelectionBlockType=function(e,t){return u(e)?e:o.RichUtils.toggleBlockType(e,t)},t.getSelectionEntityType=function(e){var t=(0,i.getSelectionEntity)(e);if(t){var n=e.getCurrentContent().getEntity(t);return n?n.get("type"):null}return null}),E=(t.getSelectionEntityData=function(e,t){var n=(0,i.getSelectionEntity)(e);if(n){var r=e.getCurrentContent().getEntity(n);return r&&r.get("type")===t?r.getData():{}}return{}},t.toggleSelectionEntity=function(e,t){var n=e.getCurrentContent(),r=e.getSelection();if(r.isCollapsed()||"atomic"===b(e))return e;if(!t||!t.type||A(e)===t.type)return o.EditorState.push(e,o.Modifier.applyEntity(n,r,null),"apply-entity");try{var i=n.createEntity(t.type,t.mutability,t.data),a=i.getLastCreatedEntityKey(),l=o.EditorState.set(e,{currentContent:i});return o.EditorState.push(l,o.Modifier.applyEntity(i,r,a),"apply-entity")}catch(s){return console.warn(s),e}},t.toggleSelectionLink=function(e,t,n){var r=e.getCurrentContent(),i=e.getSelection(),a={href:t,target:n};if(i.isCollapsed()||"atomic"===b(e))return e;if(!1===t)return o.RichUtils.toggleLink(e,i,null);null===t&&delete a.href;try{var l=r.createEntity("LINK","MUTABLE",a),s=l.getLastCreatedEntityKey(),c=o.EditorState.set(e,{currentContent:l});return c=o.RichUtils.toggleLink(c,i,s),c=o.EditorState.forceSelection(c,i.merge({anchorOffset:i.getEndOffset(),focusOffset:i.getEndOffset()})),c=o.EditorState.push(c,o.Modifier.insertText(c.getCurrentContent(),c.getSelection(),""),"insert-text")}catch(u){return console.warn(u),e}},t.getSelectionInlineStyle=function(e){return e.getCurrentInlineStyle()}),w=(t.selectionHasInlineStyle=function(e,t){return E(e).has(t.toUpperCase())},t.toggleSelectionInlineStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=e;return t=n+t.toUpperCase(),n&&(r=g(r,(function(e){return e.toJS().style.reduce((function(e,r){return 0===r.indexOf(n)&&t!==r?o.CharacterMetadata.removeStyle(e,r):e}),e)}))),o.RichUtils.toggleInlineStyle(r,t)}),S=(t.removeSelectionInlineStyles=function(e){return g(e,(function(e){return e.merge({style:s.default.OrderedSet([])})}))},t.toggleSelectionAlignment=function(e,t){return y(e,{textAlign:v(e,"textAlign")!==t?t:void 0})},t.toggleSelectionIndent=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;return t<0||t>n||isNaN(t)?e:y(e,{textIndent:t||void 0})}
2),k=(t.increaseSelectionIndent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=v(e,"textIndent")||0;return S(e,n+1,t)},t.decreaseSelectionIndent=function(e){var t=v(e,"textIndent")||0;return S(e,t-1)},t.toggleSelectionColor=function(e,t){return w(e,t.replace("#",""),"COLOR-")},t.toggleSelectionBackgroundColor=function(e,t){return w(e,t.replace("#",""),"BGCOLOR-")},t.toggleSelectionFontSize=function(e,t){return w(e,t,"FONTSIZE-")},t.toggleSelectionLineHeight=function(e,t){return w(e,t,"LINEHEIGHT-")},t.toggleSelectionFontFamily=function(e,t){return w(e,t,"FONTFAMILY-")},t.toggleSelectionLetterSpacing=function(e,t){return w(e,t,"LETTERSPACING-")},t.insertText=function(e,t,n,r){var i=e.getSelection();if("atomic"===b(e))return e;var a=void 0,l=e.getCurrentContent();return r&&r.type&&(a=(l=l.createEntity(r.type,r.mutability||"MUTABLE",r.data||entityData)).getLastCreatedEntityKey()),i.isCollapsed()?o.EditorState.push(e,o.Modifier.insertText(l,i,t,n,a),"insert-text"):o.EditorState.push(e,o.Modifier.replaceText(l,i,t,n,a),"replace-text")},t.insertHTML=function(e,t,n){if(!t)return e;var r=e.getSelection(),i=e.getCurrentContent(),l=e.convertOptions||{};try{var s=(0,o.convertFromRaw)((0,a.convertHTMLToRaw)(t,l,n)).blockMap;return o.EditorState.push(e,o.Modifier.replaceWithFragment(i,r,s),"insert-fragment")}catch(c){return console.warn(c),e}},t.insertAtomicBlock=function e(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(u(t))return e(d(t,h(t)),n,r,i);var a=t.getSelection(),l=t.getCurrentContent();if(!a.isCollapsed()||"atomic"===b(t))return t;var s=l.createEntity(n,r?"IMMUTABLE":"MUTABLE",i),c=s.getLastCreatedEntityKey(),f=o.AtomicBlockUtils.insertAtomicBlock(t,c," ");return f});t.insertHorizontalLine=function(e){return k(e,"HR")},t.insertMedias=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length?t.reduce((function(e,t){var n=t.url,r=t.link,o=t.link_target,i=t.name,a=t.type,l=t.width,s=t.height,c=t.meta;return k(e,a,!0,{url:n,link:r,link_target:o,name:i,type:a,width:l,height:s,meta:c})}),e):e},t.setMediaData=function(e,t,n){return o.EditorState.push(e,e.getCurrentContent().mergeEntityData(t,n),"change-block-data")},t.removeMedia=function(e,t){return p(e,t)},t.setMediaPosition=function(e,t,n){var r={},o=n.float,i=n.alignment;return"undefined"!==typeof o&&(r.float=t.getData().get("float")===o?null:o),"undefined"!==typeof i&&(r.alignment=t.getData().get("alignment")===i?null:i),y(f(e,t),r)},t.clear=function(e){var t=e.getCurrentContent(),n=t.getFirstBlock(),r=t.getLastBlock(),i=new o.SelectionState({anchorKey:n.getKey(),anchorOffset:0,focusKey:r.getKey(),focusOffset:r.getLength(),hasFocus:!0});return o.RichUtils.toggleBlockType(o.EditorState.push(e,o.Modifier.removeRange(t,i,"backward"),"remove-range"),"unstyled")},t.handleKeyCommand=function(e,t){return o.RichUtils.handleKeyCommand(e,t)},t.undo=function(e){return o.EditorState.undo(e)},t.redo=function(e){return o.EditorState.redo(e)}},22040:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorUtils=t.BaseUtils=t.ContentUtils=void 0;var r=a(n(73112)),o=a(n(78485)),i=a(n(70926));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.ContentUtils=r,t.BaseUtils=o,t.ColorUtils=i},40436:function(e,t,n){"use strict";n.r(t),n.d(t,{convertFromHTML:function(){return he},convertToHTML:function(){return z},parseHTML:function(){return H}});var r=n(36993),o=n.n(r),i=n(47313),a=n(84389),l=n(52500);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t,n,r,o,i){var a=r-n;return t+n<=e.offset?Object.assign({},e,{offset:e.offset+a}):t>=e.offset&&t+n<=e.offset+e.length?Object.assign({},e,{length:e.length+a}):e.offset>=t&&e.offset+e.length<=t+n&&o>0?Object.assign({},e,{offset:e.offset+o}):e.offset<t&&e.offset+e.length<=t+n&&e.offset+e.length>t&&o>0?[Object.assign({},e,{length:t-e.offset}),Object.assign({},e,{offset:t+o,length:e.offset-t+e.length})]:e.offset>=t&&e.offset+e.length>t+n&&t+n>e.offset&&i>0?[Object.assign({},e,{offset:e.offset+o,length:t+n-e.offset}),Object.assign({},e,{offset:t+n+o+i,length:e.offset+e.length-(t+n)})]:e}var f=function(e,t){return e.offset===t.offset?t.length-e.length:e.offset-t.offset},d={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\n":"<br/>"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var h=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function g(e){if(-1!==h.indexOf(e.type))return a.renderToStaticMarkup(e);var t=a.renderToStaticMarkup(i.cloneElement(e,{},"\r")).split("\r");return o()(t.length>1,"convertToHTML: Element of type ".concat(e.type," must render children")),o()(t.length<3,"convertToHTML: Element of type ".concat(e.type," cannot use carriage return character")),{start:t[0],end:t[1]}}function m(e){return i.isValidElement(e)&&i.Children.count(e.props.children)>0}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(void 0===e||null===e)return e;if("string"===typeof e)return e;if(i.isValidElement(e)){if(m(e))return a.renderToStaticMarkup(e);var n=g(e);if(null!==t&&"object"===p(n)){var r=n.start,l=n.end;return r+t+l}return n}if(o()(Object.prototype.hasOwnProperty.call(e,"start")&&Object.prototype.hasOwnProperty.call(e,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),null!==t){var s=e.start,c=e.end;return s+t+c}return e}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";if(i.isValidElement(t)){var r=g(t);if("string"===typeof r)return 0;var o=r[n].length,a=i.Children.toArray(t.props.children)[0];return o+(a&&i.isValidElement(a)?e(a,n):0)}return"object"===p(t)&&t[n]?t[n].length:0},b=function(){var e=arguments.length>1?arguments[1]:void 0;return e},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b,r=c(e.text),o=n;if(n.__isMiddleware&&(o=n(b)),Object.prototype.hasOwnProperty.call(e,"entityRanges")&&e.entityRanges.length>0){for(var i=e.entityRanges.sort(f),a=e.inlineStyleRanges,l=function(e){var n=i[e],l=t[n.key],s=r.slice(n.offset,n.offset+n.length).join(""),f=o(l,s),d=y(f,s),p=void 0;p=d||""===d?c(d):s;var h=v(f,"start"),g=v(f,"end"),m=function(t){return t.reduce((function(t,r,o){var i=function(t,r){return r>e||Object.prototype.hasOwnProperty.call(t,"style")?u(t,n.offset,n.length,p.length,h,g):t}(r,o);return Array.isArray(i)?t.concat(i):t.concat([i])}),[])};
2i=m(i),a=m(a),r=[].concat(c(r.slice(0,n.offset)),c(p),c(r.slice(n.offset+n.length)))},s=0;s<i.length;s++)l(s);return Object.assign({},e,{text:r.join(""),inlineStyleRanges:a,entityRanges:i})}return e},E=function(e){return function(t){return"function"===typeof e?e(t):e[t]}},w=function(e,t){return function(){var n=e.apply(void 0,arguments);return void 0!==n&&null!==n?n:t.apply(void 0,arguments)}};function S(e){switch(e){case"BOLD":return i.createElement("strong",null);case"ITALIC":return i.createElement("em",null);case"UNDERLINE":return i.createElement("u",null);case"CODE":return i.createElement("code",null);default:return{start:"",end:""}}}var k=function(e,t){return e.filter((function(e){return!t.some((function(t){return t.style===e.style}))}))},x=function(e,t){return t.reduceRight((function(e,t){var n=e[e.length-1];return o()(n.style===t.style,"Style ".concat(n.style," to be removed doesn't match expected ").concat(t.style)),e.slice(0,-1)}),e)},C=function(e,t){return t.filter((function(t){return e>=t.offset&&e<t.offset+t.length}))},_=function(e,t){var n=e.offset<=t.offset,r=e.offset+e.length>=t.offset+t.length;return n&&r},I=function(e,t){return t.offset+t.length-(e.offset+e.length)},O=function(e,t){for(var n=0;n<e.length;){if(!t.every(_.bind(null,e[n])))return e.slice(n);n++}return[]},T=function(e,t,n){return t+y(e(n.style)).start},M=function(e,t,n){return y(e(n.style)).end+t},B=function(e){return function(t){return e(t)}};B.__isMiddleware=!0;var D=function(e){return function(t){return"function"===typeof e?e(t):e[t.type]}};function L(e){return o()(null!==e&&void 0!==e,"Expected block HTML value to be non-null"),"string"===typeof e?e:i.isValidElement(e)?(t=e,i.isValidElement(t)&&i.Children.count(t.props.children)>0?a.renderToStaticMarkup(e):g(e)):Object.prototype.hasOwnProperty.call(e,"element")&&i.isValidElement(e.element)?Object.assign({},e,g(e.element)):(o()(Object.prototype.hasOwnProperty.call(e,"start")&&Object.prototype.hasOwnProperty.call(e,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),e);var t}function N(e,t){if(o()(null!==e&&void 0!==e,"Expected block HTML value to be non-null"),"function"===typeof e.nest){var n=g(e.nest(t)),r=n.start,a=n.end;return Object.assign({},e,{nestStart:r,nestEnd:a})}if(i.isValidElement(e.nest)){var l=g(e.nest),s=l.start,c=l.end;return Object.assign({},e,{nestStart:s,nestEnd:c})}return o()(Object.prototype.hasOwnProperty.call(e,"nestStart")&&Object.prototype.hasOwnProperty.call(e,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),e}var F=["1","a","i"],R={unstyled:i.createElement("p",null),paragraph:i.createElement("p",null),"header-one":i.createElement("h1",null),"header-two":i.createElement("h2",null),"header-three":i.createElement("h3",null),"header-four":i.createElement("h4",null),"header-five":i.createElement("h5",null),"header-six":i.createElement("h6",null),"code-block":i.createElement("pre",null),blockquote:i.createElement("blockquote",null),"unordered-list-item":{element:i.createElement("li",null),nest:i.createElement("ul",null)},"ordered-list-item":{element:i.createElement("li",null),nest:function(e){var t=F[e%3];return i.createElement("ol",{type:t})}},media:i.createElement("figure",null),atomic:i.createElement("figure",null)},P=function(e,t){return t},K=function(e){var t=e.styleToHTML,n=void 0===t?{}:t,r=e.blockToHTML,s=void 0===r?{}:r,p=e.entityToHTML,h=void 0===p?P:p;return function(e){var t;o()(null!==e&&void 0!==e,"Expected contentState to be non-null"),t=!0===s.__isMiddleware?s(D(R)):w(D(s),D(R));var r=(0,l.convertToRaw)(e),p=[],g=r.blocks.map((function(e){var l=e.type,s=e.depth,g="",m="",v=t(e);if(!v)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(e.type));if(v.nest)for(;s+1!==p.length||l!==p[s].type;)if(s+1===p.length){var b=p[s];g+=N(t(b),s).nestEnd,m+=N(t(e),s).nestStart,p[s]=e}else if(s+1<p.length){var _=p[p.length-1];g+=N(t(_),s).nestEnd,p=p.slice(0,-1)}else m+=N(t(e),s).nestStart,p.push(e);else g=p.reduceRight((function(e,n){return e+N(t(n),s).nestEnd}),""),p=[];var D,F=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;o()(null!==e&&void 0!==e,"Expected raw block to be non-null"),t=!0===n.__isMiddleware?n(S):w(E(n),E(S));for(var r="",i=[],a=e.inlineStyleRanges.sort(f),l=c(e.text),s=0;s<l.length;s++){var u=C(s,a),d=k(i,u),p=k(u,i),h=k(i,d),g=O(h,p),m=g.concat(p).sort(I),v=m.reduce(T.bind(null,t),"");r+=d.concat(g).reduce(M.bind(null,t),"")+v+l[s],i=(i=x(i,g.concat(d))).concat(m),o()(i.length===u.length,"Character ".concat(s,": ").concat(i.length-u.length," styles left on stack that should no longer be there"))}return i.reduceRight((function(e,n){return e+y(t(n.style)).end}),r)}(A(function(e){for(var t=c(e.text),n=e.entityRanges.sort(f),r=e.inlineStyleRanges.sort(f),o="",i=function(e){var i=t[e];if(void 0!==d[i]){var a=d[i],l=c(o).length;o+=a;var s=function(e){return u(e,l,i.length,a.length,0,0)};n=n.map(s),r=r.map(s)}else o+=i},a=0;a<t.length;a++)i(a);return Object.assign({},e,{text:o,inlineStyleRanges:r,entityRanges:n})}(e),r.entityMap,h),n),R=L(t(e));return D="string"===typeof R?R:R.start+F+R.end,0===F.length&&Object.prototype.hasOwnProperty.call(R,"empty")&&(D=i.isValidElement(R.empty)?a.renderToStaticMarkup(R.empty):R.empty),g+m+D})).join("");return g=p.reduce((function(e,n){return e+N(t(n),n.depth).nestEnd}),g)}},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Object.prototype.hasOwnProperty.call(t[0],"_map")&&null!=t[0].getBlockMap?K({}).apply(void 0,t):K.apply(void 0,t)},U=n(15986),j=function(e){var t=document.implementation.createHTMLDocument("");return t.documentElement.innerHTML=e,t};function H(e){var t;"undefined"!==typeof DOMParser?null!==(t=(new DOMParser).parseFromString(e,"text/html"))&&null!==t.body||(t=j(e)):t=j(e);return t.body}var V=" ",q=new RegExp("\r","g"),Q=new RegExp("\n","g"),W=new RegExp(" ","g"),G=new RegExp("\r","g"),Y=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],J={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},X=function(e,t){return e&&!0===e.__isMiddleware?e(t):e},Z=function(e,t,n){},$=function(e,t,n){return n},ee=function(e,t){},te=function(e){return[]},ne=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")};function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,U.Map)();return!0===n?{text:"\r",inlines:[(0,U.OrderedSet)()],entities:new Array(1),blocks:[{type:e,data:r,depth:Math.max(0,Math.min(4,t))}],isNewline:!0}
2:{text:"\n",inlines:[(0,U.OrderedSet)()],entities:new Array(1),blocks:[]}}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,U.Map)();return{text:"\r",inlines:[(0,U.OrderedSet)()],entities:new Array(1),blocks:[{type:e,data:n,depth:Math.max(0,Math.min(4,t))}]}}function ie(e,t){switch(e){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"ol"===t?"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 ae(e,t,n){return ie(e,n)}function le(e,t,n){var r=J[e];if(r)n=n.add(r).toOrderedSet();else if(t instanceof HTMLElement){var o=t;n=n.withMutations((function(e){"bold"===o.style.fontWeight&&e.add("BOLD"),"italic"===o.style.fontStyle&&e.add("ITALIC"),"underline"===o.style.textDecoration&&e.add("UNDERLINE"),"line-through"===o.style.textDecoration&&e.add("STRIKETHROUGH")})).toOrderedSet()}return n}function se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,U.OrderedSet)();return le(e,t,n)}function ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.text.slice(0,1),o=e.text.slice(-1),i="\r"===o&&"\r"===r,a="\r"!==e.text&&"\r"!==t.text,l="\r"===e.text&&!e.isNewline&&t.isNewline;if(i&&(a||l)&&(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===e.text.slice(-1)&&!0===n){if(t.text===V||"\n"===t.text)return e;r!==V&&"\n"!==r||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}var s=0===e.text.length&&t.isNewline;return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks),isNewline:s}}function ue(e,t,n,r,o,i,a,l,s,c,u,d,p,h,g,m){var y=e.nodeName.toLowerCase(),v=!1,b="unstyled";if("#text"===y){var A=e.textContent;if(""===A.trim()&&null===r)return{text:"",inlines:[],entities:[],blocks:[]};if(""===A.trim()&&"code-block"!==r)return function(e){var t=new Array(1);return e&&(t[0]=e),{text:V,inlines:[(0,U.OrderedSet)()],entities:t,blocks:[]}}(m);"code-block"!==r&&(A=A.replace(Q,V));var E=Array(A.length).fill(m),w=0;return s(A,u,d,p,h).sort(f).forEach((function(e){var t=e.entity,n=e.offset,r=e.length,o=e.result,i=n+w;null!==o&&void 0!==o||(o=A.substr(i,r));var a=A.split("");a.splice.bind(a,i,r).apply(a,o.split("")),A=a.join(""),E.splice.bind(E,i,r).apply(E,Array(o.length).fill(t)),w+=o.length-r})),{text:A,inlines:Array(A.length).fill(t),entities:E,blocks:[]}}if("br"===y){var S=r;return null===S?re("unstyled",i,!0):re(S||"unstyled",i,g.flat)}var k={text:"",inlines:[],entities:[],blocks:[]};t=a(y,e,t=le(y,e,t)),"ul"!==y&&"ol"!==y||(n&&(i+=1),n=y,r=null);var x,C,_=c(y,e,n,r);if(!1===_)return{text:"",inlines:[],entities:[],blocks:[]};if("string"===typeof(_=_||{})?(x=_,C=(0,U.Map)()):(x="string"===typeof _?_:_.type,C=_.data?(0,U.Map)(_.data):(0,U.Map)()),r||-1===o.indexOf(y)&&!x)if(!n||"ordered-list-item"!==r&&"unordered-list-item"!==r||"li"!==y)r&&"atomic"!==r&&"atomic"===x&&(r=x,v=!0,k=re(x,i,!0,C));else{var I=ie(y,n);k=oe(I,i),r=I,v=!0,b="ul"===n?"unordered-list-item":"ordered-list-item"}else k=oe(x||ie(y,n),i,C),r=x||ie(y,n),v=!0;var O=e.firstChild;null!=O||!m||"atomic"!==x&&"atomic"!==r||(O=document.createTextNode("a")),null!=O&&(y=O.nodeName.toLowerCase());for(var T=null;O;){T=l(y,O,u,d,p,h),k=ce(k,ue(O,t,n,r,o,i,a,l,s,c,u,d,p,h,g,T||m),g.flat);var M=O.nextSibling;if(M&&o.indexOf(y)>=0&&r){var B=c(y,O,n,r),D=void 0,L=void 0;!1!==B&&("string"===typeof(B=B||{})?(D=B,L=(0,U.Map)()):(D=B.type||ie(y,n),L=B.data?(0,U.Map)(B.data):(0,U.Map)()),k=ce(k,re(D,i,g.flat,L),g.flat))}M&&(y=M.nodeName.toLowerCase()),O=M}return v&&(k=ce(k,oe(b,i,(0,U.Map)()),g.flat)),k}function fe(e,t,n,r,o,i,a,l,s,c,u){var f=u(e=e.trim().replace(q,"").replace(W,V));if(!f)return null;var d=function(e){return Y.some((function(t){return-1!==e.indexOf("<".concat(t))}))}(e)?Y.concat(["div"]):["div"],p=ue(f,(0,U.OrderedSet)(),"ul",null,d,-1,t,n,r,o,i,a,l,s,c);return 0===p.text.indexOf("\r")&&(p={text:p.text.slice(1),inlines:p.inlines.slice(1),entities:p.entities.slice(1),blocks:p.blocks}
2),"\r"===p.text.slice(-1)&&(p.text=p.text.slice(0,-1),p.inlines=p.inlines.slice(0,-1),p.entities=p.entities.slice(0,-1),p.blocks.pop()),0===p.blocks.length&&p.blocks.push({type:"unstyled",data:(0,U.Map)(),depth:0}),p.text.split("\r").length===p.blocks.length+1&&p.blocks.unshift({type:"unstyled",data:(0,U.Map)(),depth:0}),p}function de(e,t,n,r,o,i,a,s,c,u,f,d){var p=fe(e,t,n,r,o,i,a,s,c,u,f);if(null==p)return[];var h=0;return p.text.split("\r").map((function(e,t){e=e.replace(G,"");var n=h+e.length,r=ne(p).inlines.slice(h,n),o=ne(p).entities.slice(h,n),i=(0,U.List)(r.map((function(e,t){var n={style:e,entity:null};return o[t]&&(n.entity=o[t]),l.CharacterMetadata.create(n)})));return h=n+1,new l.ContentBlock({key:d(),type:ne(p).blocks[t].type,data:ne(p).blocks[t].data,depth:ne(p).blocks[t].depth,text:e,characterList:i})}))}var pe=function(e){var t=e.htmlToStyle,n=void 0===t?$:t,r=e.htmlToEntity,o=void 0===r?ee:r,i=e.textToEntity,a=void 0===i?te:i,s=e.htmlToBlock,c=void 0===s?Z:s;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.genKey,s=l.ContentState.createFromText(""),u=function(){var e;return s.createEntity?(s=(e=s).createEntity.apply(e,arguments)).getLastCreatedEntityKey():l.Entity.create.apply(l.Entity,arguments)},f=function(){var e;return s.getEntity?(e=s).getEntity.apply(e,arguments):l.Entity.get.apply(l.Entity,arguments)},d=function(){var e;s.mergeEntityData?s=(e=s).mergeEntityData.apply(e,arguments):l.Entity.mergeData.apply(l.Entity,arguments)},p=function(){var e;s.replaceEntityData?s=(e=s).replaceEntityData.apply(e,arguments):l.Entity.replaceData.apply(l.Entity,arguments)},h=de(e,X(n,se),X(o,ee),X(a,te),X(c,ae),u,f,d,p,t,r,i),g=l.BlockMapBuilder.createFromArray(h),m=h[0].getKey();return s.merge({blockMap:g,selectionBefore:l.SelectionState.createEmpty(m),selectionAfter:l.SelectionState.createEmpty(m)})}},he=function(){return arguments.length>=1&&"string"===typeof(arguments.length<=0?void 0:arguments[0])?pe({}).apply(void 0,arguments):pe.apply(void 0,arguments)}},18005:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3980),i=n(21866),a=n(35038),l=n(34615),s=n(82300),c=n(13284),u=n(89690),f=n(15986),d=(n(58977),n(34354)),p=n(14126),h=s.draft_tree_data_support,g=h?l:a,m=f.List,y=f.Repeat,v={insertAtomicBlock:function(e,t,n){var a=e.getCurrentContent(),l=e.getSelection(),s=c.removeRange(a,l,"backward"),f=s.getSelectionAfter(),p=c.splitBlock(s,f),v=p.getSelectionAfter(),b=c.setBlockType(p,v,"atomic"),A=i.create({entity:t}),E={key:d(),type:"atomic",text:n,characterList:m(y(A,n.length))},w={key:d(),type:"unstyled"};h&&(E=r({},E,{nextSibling:w.key}),w=r({},w,{prevSibling:E.key}));var S=[new g(E),new g(w)],k=o.createFromArray(S),x=c.replaceWithFragment(b,v,k),C=x.merge({selectionBefore:l,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return u.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o=e.getCurrentContent(),i=e.getSelection(),a=void 0;if("before"===r||"after"===r){var l=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());a=p(o,t,l,r)}else{var s=c.removeRange(o,n,"backward"),f=s.getSelectionAfter(),d=s.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())a=p(s,t,d,"before");else if(f.getEndOffset()===d.getLength())a=p(s,t,d,"after");else{var h=c.splitBlock(s,f),g=h.getSelectionAfter(),m=h.getBlockForKey(g.getFocusKey());a=p(h,t,m,"before")}}var y=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return u.push(e,y,"move-block")}};e.exports=v},3980:function(e,t,n){"use strict";var r=n(15986).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},994:function(e,t,n){"use strict";var r=n(15986),o=n(840),i=n(81111),a=r.List,l=r.Repeat,s=r.Record,c=o.thatReturnsTrue,u=s({start:null,end:null}),f=s({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return a.of(new f({start:0,end:0,decoratorKey:null,leaves:a.of(new u({start:0,end:0}))}
2));var o=[],s=n?n.getDecorations(t,e):a(l(null,r)),d=t.getCharacterList();return i(s,h,c,(function(e,t){o.push(new f({start:e,end:t,decoratorKey:s.get(e),leaves:p(d.slice(e,t).toList(),e)}))})),a(o)},getFingerprint:function(e){return e.map((function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size})).join("-")}};function p(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return i(r,h,c,(function(e,r){n.push(new u({start:e+t,end:r+t}))})),a(n)}function h(e,t){return e===t}e.exports=d},21866:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=n(15986),a=i.Map,l=i.OrderedSet,s=i.Record,c=l(),u={style:c,entity:null},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return d;var n=a({style:c,entity:null}).merge(e),r=p.get(n);if(r)return r;var o=new t(n);return p=p.set(n,o),o},t}(s(u)),d=new f,p=a([[a(u),d]]);f.EMPTY=d,e.exports=f},21993:function(e,t,n){"use strict";var r=n(15986).List,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},e.prototype.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},e.prototype.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},35038:function(e,t,n){"use strict";var r=n(21866),o=n(15986),i=n(81111),a=o.List,l=o.Map,s=o.OrderedSet,c=o.Record,u=o.Repeat,f=s(),d=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:l()}),p=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(n)))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),h,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),g,e,t)},t}(d);function h(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=p},34615:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=n(21866),a=n(15986),l=n(81111),s=a.List,c=a.Map,u=a.OrderedSet,f=a.Record,d=a.Repeat,p=u(),h={parent:null,characterList:s(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null},g=function(e,t){return e.getStyle()===t.getStyle()},m=function(e,t){return e.getEntity()===t.getEntity()},y=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=s(d(i.EMPTY,n.length))),e},v=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return r(this,t),o(this,e.call(this,y(n)))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){l(this.getCharacterList(),g,e,t)},t.prototype.findEntityRanges=function(e,t){l(this.getCharacterList(),m,e,t)},t}(f(h));e.exports=v},43281:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=n(3980),a=n(21866),l=n(35038),s=n(34615),c=n(5112),u=n(82300),f=n(15986),d=n(58977),p=n(34354),h=n(28720),g=f.List,m=f.Record,y=f.Repeat,v=u.draft_tree_data_support?s:l,b=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
2(t,e),t.prototype.getEntityMap=function(){return c},t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},t.prototype.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,n){return c.__create(e,t,n),this},t.prototype.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},t.prototype.addEntity=function(e){return c.__add(e),this},t.prototype.getEntity=function(e){return c.__get(e)},t.createFromBlockArray=function(e,n){var r=Array.isArray(e)?e:e.contentBlocks,o=i.createFromArray(r),a=o.isEmpty()?new d:d.createEmpty(o.first().getKey());return new t({blockMap:o,entityMap:n||c,selectionBefore:a,selectionAfter:a})},t.createFromText=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(n),o=r.map((function(e){return e=h(e),new v({key:p(),text:e,type:"unstyled",characterList:g(y(a.EMPTY,e.length))})}));return t.createFromBlockArray(o)},t}(m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=b},2254:function(e,t,n){"use strict";var r=n(21866),o=n(15986).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),l=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===l})).takeUntil((function(e,t){return t===c})).concat(o([[c,a.get(c)]])).map((function(e,t){var o,a;l===c?(o=s,a=u):(o=t===l?s:0,a=t===c?u:e.getLength());for(var f,d=e.getCharacterList();o<a;)f=d.get(o),d=d.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}e.exports=i},60128:function(e,t,n){"use strict";var r=n(15986).Map,o=n(47313),i=n(37827),a=r({"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:o.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},10269:function(e){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},52500:function(e,t,n){"use strict";var r=n(18005),o=n(3980),i=n(21866),a=n(21993),l=n(35038),s=n(43281),c=n(60128),u=n(10269),f=n(97496),d=n(21795),p=n(5112),h=n(13284),g=n(50842),m=n(89690),y=n(17293),v=n(84859),b=n(58977),A=n(17348),E={Editor:f,EditorBlock:d,EditorState:m,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:l,ContentState:s,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:v,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:u,convertFromHTML:n(76189),convertFromRaw:n(95741),convertToRaw:A,genKey:n(34354),getDefaultKeyBinding:n(18498),getVisibleSelectionRect:n(30640)};e.exports=E},97496:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=n(60128),i=n(10269),a=n(53207),l=n(98219),s=n(41985),c=n(71413),u=n(30776),f=n(89690),d=n(47313),p=n(1168),h=n(17219),g=n(9026),m=n(18258),y=n(37827),v=n(840),b=n(34354),A=n(18498),E=n(37541),w=n(87405),S=n(45338),k=m.isBrowser("IE"),x=!k,C={edit:c,composite:a,drag:s,cut:null,render:null},_=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));
2return r.focus=function(e){var t=r.props.editorState,n=t.getSelection().getHasFocus(),o=p.findDOMNode(r.editor);if(o){var i=g.getScrollParent(o),a=e||E(i),l=a.x,s=a.y;o instanceof HTMLElement||w(!1),o.focus(),i===window?window.scrollTo(l,s):h.setTop(i,s),n||r.update(f.forceSelection(t,t.getSelection()))}},r.blur=function(){var e=p.findDOMNode(r.editor);e instanceof HTMLElement||w(!1),e.blur()},r.setMode=function(e){r._handler=C[e]},r.exitCurrentMode=function(){r.setMode("edit")},r.restoreEditorDOM=function(e){r.setState({contentsKey:r.state.contentsKey+1},(function(){r.focus(e)}))},r.setClipboard=function(e){r._clipboard=e},r.getClipboard=function(){return r._clipboard},r.update=function(e){r._latestEditorState=e,r.props.onChange(e)},r.onDragEnter=function(){r._dragCount++},r.onDragLeave=function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()},r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=n.editorKey||b(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=n.editorState,r._latestCommittedEditorState=n.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&r(t,n)}}},t.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},t.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:S(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return d.createElement(u,e)}return null},t.prototype.render=function(){var e=this,t=this.props,n=t.blockRenderMap,o=t.blockRendererFn,a=t.blockStyleFn,s=t.customStyleFn,c=t.customStyleMap,u=t.editorState,f=t.readOnly,p=t.textAlignment,h=t.textDirectionality,g=y({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),m=this.props.role||"textbox",v="combobox"===m?!!this.props.ariaExpanded:null,b={blockRenderMap:n,blockRendererFn:o,blockStyleFn:a,customStyleMap:r({},i,c),customStyleFn:s,editorKey:this._editorKey,editorState:u,key:"contents"+this.state.contentsKey,textDirectionality:h};return d.createElement("div",{className:g},this._renderPlaceholder(),d.createElement("div",{className:y("DraftEditor/editorContainer"),ref:function(t){return e.editorContainer=t}},d.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":f?null:v,"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:y({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"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(t){return e.editor=t},role:f?null:m,spellCheck:x&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},d.createElement(l,b))))},t.prototype.componentDidMount=function(){this.setMode("edit"),k&&document.execCommand("AutoUrlDetect",!1,!1)},t.prototype.componentWillUpdate=function(e){this._blockSelectEvents=!0,this._latestEditorState=e.editorState},t.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},t}(d.Component);_.defaultProps={blockRenderMap:o,blockRendererFn:v.thatReturnsNull,blockStyleFn:v.thatReturns(""),keyBindingFn:A,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},e.exports=_},21795:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var a=n(18389),l=n(44519),s=n(47313),c=n(1168),u=n(17219),f=n(9026),d=n(13014),p=n(47821),h=n(37827),g=n(21604),m=n(37541),y=n(39349),v=n(87405),b=n(45338),A=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},E=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||A(e.selection,e.block.getKey())&&e.forceSelection},t.prototype.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=c.findDOMNode(this),r=f.getScrollParent(n),o=m(r),i=void 0;if(r===window){var a=g(n);(i=a.y+a.height-y().height)>0&&window.scrollTo(o.x,o.y+i+10)}else{n instanceof HTMLElement||v(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetHeight+o.y))>0&&u.setTop(r,u.getTop(r)+i+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),o=t.getText(),i=this.props.tree.size-1,c=A(this.props.selection,n);return this.props.tree.map((function(u,f){var h=u.get("leaves"),g=h.size-1,m=h.map((function(r,u){var d=l.encode(n,f,u),p=r.get("start"),h=r.get("end");return s.createElement(a,{key:d,offsetKey:d,block:t,start:p,selection:c?e.props.selection:null,forceSelection:e.props.forceSelection,text:o.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===i&&u===g})})).toArray(),y=u.get("decoratorKey");if(null==y)return m;if(!e.props.decorator)return m;var v=b(e.props.decorator),A=v.getComponentForKey(y);if(!A)return m;var E=v.getPropsForKey(y),w=l.encode(n,f,0),S=o.slice(h.first().get("start"),h.last().get("end")),k=p.getHTMLDirIfDifferent(d.getDirection(S),e.props.direction);return s.createElement(A,r({},E,{contentState:e.props.contentState,decoratedText:S,dir:k,key:w,entityKey:t.getEntityAt(u.get("start")),offsetKey:w}
2),m)})).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=E},53207:function(e,t,n){"use strict";var r=n(82300),o=n(13284),i=n(89690),a=n(43058),l=n(33574),s=n(97146),c=n(62165),u=!1,f=!1,d="",p={onBeforeInput:function(e,t){d=(d||"")+t.data},onCompositionStart:function(e){f=!0},onCompositionEnd:function(e){u=!1,f=!1,setTimeout((function(){u||p.resolveComposition(e)}),20)},onKeyDown:function(e,t){if(!f)return p.resolveComposition(e),void e._onKeyDown(t);t.which!==a.RIGHT&&t.which!==a.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===a.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!f){u=!0;var t=d;d="";var n=i.set(e._latestEditorState,{inCompositionMode:!1}),a=n.getCurrentInlineStyle(),p=l(n.getCurrentContent(),n.getSelection()),h=!t||c(n)||a.size>0||null!==p;if(h&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(r.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&s(e.props.handleBeforeInput(t,n)))return;var g=o.replaceText(n.getCurrentContent(),n.getSelection(),t,a,p);e.update(i.push(n,g,"insert-characters"))}else h&&e.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}
2))}}};e.exports=p},51635:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var a=n(21795),l=n(44519),s=(n(89690),n(47313)),c=n(37827),u=n(66005),f=n(45338),d=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":4===t,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},t.prototype.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,o=e.blockStyleFn,i=e.customStyleMap,c=e.customStyleFn,p=e.editorState,h=e.editorKey,g=e.textDirectionality,m=p.getCurrentContent(),y=p.getSelection(),v=p.mustForceSelection(),b=p.getDecorator(),A=f(p.getDirectionMap()),E=m.getBlocksAsArray(),w=[],S=null,k=null,x=0;x<E.length;x++){var C=E[x],_=C.getKey(),I=C.getType(),O=n(C),T=void 0,M=void 0,B=void 0;O&&(T=O.component,M=O.props,B=O.editable);var D=g||A.get(_),L=l.encode(_,0,0),N={contentState:m,block:C,blockProps:M,blockStyleFn:o,customStyleMap:i,customStyleFn:c,decorator:b,direction:D,forceSelection:v,key:_,offsetKey:L,selection:y,tree:p.getBlockTree(_)},F=t.get(I)||t.get("unstyled"),R=F.wrapper,P=F.element||t.get("unstyled").element,K=C.getDepth(),z="";if(o&&(z=o(C)),"li"===P)z=u(z,d(I,K,k!==R||null===S||K>S,D));var U=T||a,j={className:z,"data-block":!0,"data-editor":h,"data-offset-key":L,key:_};void 0!==B&&(j=r({},j,{contentEditable:B,suppressContentEditableWarning:!0}));var H=s.createElement(P,j,s.createElement(U,N));w.push({block:H,wrapperTemplate:R,key:_,offsetKey:L}),S=R?C.getDepth():null,k=R}for(var V=[],q=0;q<w.length;){var Q=w[q];if(Q.wrapperTemplate){var W=[];do{W.push(w[q].block),q++}while(q<w.length&&w[q].wrapperTemplate===Q.wrapperTemplate);var G=s.cloneElement(Q.wrapperTemplate,{key:Q.key+"-wrap","data-offset-key":Q.offsetKey},W);V.push(G)}else V.push(Q.block),q++}return s.createElement("div",{"data-contents":"true"},V)},t}(s.Component);e.exports=p},98219:function(e,t,n){"use strict";var r=n(51635);e.exports=r},41985:function(e,t,n){"use strict";var r=n(61767),o=n(13284),i=n(89690),a=n(84117),l=n(4763),s=n(97685),c=n(97146),u=n(45338);var f={onDragEnd:function(e){e.exitCurrentMode()},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),f=e._latestEditorState,p=function(e,t){var n=null,r=null;if("function"===typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=u(n),r=u(r);var i=u(a(n));return s(t,i,r,i,r)}(t.nativeEvent,f);if(t.preventDefault(),e.exitCurrentMode(),null!=p){var h=n.getFiles();if(h.length>0){if(e.props.handleDroppedFiles&&c(e.props.handleDroppedFiles(p,h)))return;l(h,(function(t){t&&e.update(d(f,p,t))}))}else{var g=e._internalDrag?"internal":"external";e.props.handleDrop&&c(e.props.handleDrop(p,n,g))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(f,p)):e.update(d(f,p,n.getText())))}}}};function d(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=f},71413:function(e,t,n){"use strict";var r={onBeforeInput:n(35352),onBlur:n(92258),onCompositionStart:n(20678),onCopy:n(74977),onCut:n(70076),onDragOver:n(74844),onDragStart:n(80110),onFocus:n(49914),onInput:n(13774),onKeyDown:n(12196),onPaste:n(19358),onSelect:n(35518)};e.exports=r},18389:function(e,t,n){"use strict";var r=n(71843);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var a=n(27439),l=n(47313),s=n(1168),c=n(87405),u=n(53413),f=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var l=s.findDOMNode(this);l||c(!1);var f=l.firstChild;f||c(!1);var d=void 0;f.nodeType===Node.TEXT_NODE?d=f:"BR"===f.tagName?d=l:(d=f.firstChild)||c(!1),u(e,d,i,r,a)}}},t.prototype.shouldComponentUpdate=function(e){var t=s.findDOMNode(this.leaf);return t||c(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var o=this.props,i=o.customStyleMap,s=o.customStyleFn,c=o.offsetKey,u=o.styleSet,f=u.reduce((function(e,t){var n={},o=i[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(s){var d=s(u,t);f=r(f,d)}return l.createElement("span",{"data-offset-key":c,ref:function(t){return e.leaf=t},style:f},l.createElement(a,null,n))},t}(l.Component);e.exports=f},30776:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=n(47313),a=n(37827),l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=a({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
2Focus":e});return i.createElement("div",{className:t},i.createElement("div",{className:a("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},t}(i.Component);e.exports=l},27439:function(e,t,n){"use strict";var r=n(47313),o=n(1168),i=n(18258),a=n(87405),l=i.isBrowser("IE <= 11");var s=l?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),c=l?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this,n));return r._forceFlag=!1,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this),n=""===e.children;return t instanceof Element||a(!1),n?!function(e){return l?"\n"===e.textContent:"BR"===e.tagName}(t):t.textContent!==e.children},t.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},t.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?s:c:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t}(r.Component);e.exports=u},5112:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(50842),i=n(15986),a=n(87405),l=(0,i.Map)(),s=0;function c(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var u={getLastCreatedEntityKey:function(){return c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),u.__getLastCreatedEntityKey()},create:function(e,t,n){return c("DraftEntity.create","contentState.createEntity"),u.__create(e,t,n)},add:function(e){return c("DraftEntity.add","contentState.addEntity"),u.__add(e)},get:function(e){return c("DraftEntity.get","contentState.getEntity"),u.__get(e)},mergeData:function(e,t){return c("DraftEntity.mergeData","contentState.mergeEntityData"),u.__mergeData(e,t)},replaceData:function(e,t){return c("DraftEntity.replaceData","contentState.replaceEntityData"),u.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return""+s},__create:function(e,t,n){return u.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){var t=""+ ++s;return l=l.set(t,e),t},__get:function(e){var t=l.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=u.__get(e),o=r({},n.getData(),t),i=n.set("data",o);return l=l.set(e,i),i},__replaceData:function(e,t){var n=u.__get(e).set("data",t);return l=l.set(e,n),n}};e.exports=u},50842:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getType=function(){return this.get("type")},t.prototype.getMutability=function(){return this.get("mutability")},t.prototype.getData=function(){return this.get("data")},t}((0,n(15986).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=i},54178:function(e){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,l=r,s=null,c=null,u=0;u<i.length;u++){if(e<(a=l+i[u].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var f=r+n.length,d=s===r,p=c===f;return(!d&&p||d&&!p)&&("forward"===o?c!==f&&c++:s!==r&&s--),{start:s,end:c}}}},2989:function(e){"use strict";e.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1}},82300:function(e,t,n){"use strict";var r=n(2989);e.exports=r},45203:function(e){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},13284:function(e,t,n){"use strict";var r=n(21866),o=n(2254),i=n(82300),a=n(15986),l=n(82063),s=n(61311),c=n(81363),u=n(59167),f=n(53574),d=n(87405),p=n(62614),h=n(49839),g=n(57429),m=n(65288),y=a.OrderedSet,v={replaceText:function(e,t,n,o,i){var a=h(e,t),l=g(a,t),s=r.create({style:o||y(),entity:i||null});return f(l,l.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||d(!1),v.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=c(e,t),o=v.removeRange(e,t,"backward");return v.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=h(e,t),o=g(r,t);return u(o,o.getSelectionAfter(),n)},removeRange:function(e,t,n){var r,o,a=void 0,l=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),l=e.getBlockForKey(o);var c=t.getStartOffset(),u=t.getEndOffset(),f=a.getEntityAt(c),d=l.getEntityAt(u-1);
2if(r===o&&f&&f===d){var p=s(e.getEntityMap(),a,l,t,n);return g(e,p)}var m=t;i.draft_segmented_entities_behavior&&(m=s(e.getEntityMap(),a,l,t,n));var y=h(e,m);return g(y,m)},splitBlock:function(e,t){var n=h(e,t),r=g(n,t);return m(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=h(e,t);return l(r,t,n)}};e.exports=v},44519:function(e){"use strict";var t={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=t},46604:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n(21866),n(35038)),i=n(34615),a=n(82300),l=n(15986),s=n(76189),c=n(34354),u=n(11501),f=n(28720),d=l.List,p=l.Repeat,h=a.draft_tree_data_support,g=h?i:o,m={processHTML:function(e,t){return s(e,u,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=f(o);var a=c(),l={key:a,type:n,text:o,characterList:d(p(t,o.length))};if(h&&0!==i){var s=i-1,u=e[s]=e[s].merge({nextSibling:a});l=r({},l,{prevSibling:u.getKey()})}return e.push(new g(l)),e}),[])}};e.exports=m},36068:function(e,t,n){"use strict";var r="\\s|(?![_])"+n(71495).getPunctuation(),o=new RegExp("^(?:"+r+")*(?:"+"['\u2018\u2019]|(?!"+r+").)*(?:(?!"+r+").)"),i=new RegExp("(?:(?!"+r+").)(?:"+"['\u2018\u2019]|(?!"+r+").)*(?:"+r+")*$");function a(e,t){var n=t?i.exec(e):o.exec(e);return n?n[0]:e}var l={getBackward:function(e){return a(e,!0)},getForward:function(e){return a(e,!1)}};e.exports=l},97596:function(e){"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},88364:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(87405),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||o(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||o(!1),n=n.concat([].concat(i.reverse()))}}(t,(function(e){var t=r({},e);i(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(e)),delete t.children,n.push(t)})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t={},n=[];return e.blocks.forEach((function(e){var a=i(e),l=e.depth||0,s=r({},e,{children:[]});if(!a)return t={},void n.push(s);if(t[l]=s,l>0){var c=t[l-1];return c||o(!1),void c.children.push(s)}n.push(s)})),r({},e,{blocks:n})}};e.exports=a},98964:function(e,t,n){"use strict";var r,o=n(15986),i=n(56757),a=n(45338),l=o.OrderedMap,s={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),s=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),c=l(n.keySeq().zip(s));return null!=t&&o.is(t,c)?t:c}};e.exports=s},89690:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=n(994),i=n(43281),a=n(98964),l=n(15986),s=n(58977),c=l.OrderedSet,u=l.Record,f=l.Stack,d=u({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:f(),selection:null,treeMap:null,undoStack:f()}),p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._immutable=t}return e.createEmpty=function(t){return e.createWithContent(i.createFromText(""),t)},e.createWithContent=function(t,n){var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:f(),redoStack:f(),decorator:n||null,selection:s.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=t.decorator,i=r({},t,{treeMap:g(n,o),directionMap:a.getDirectionMap(n)});return new e(new d(i))},e.set=function(t,n){return new e(t.getImmutable().withMutations((function(e){var r=e.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var a=n.currentContent||t.getCurrentContent();if(i!==r){var l,s=e.get("treeMap");return l=i&&r?function(e,t,n,r,i){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)})).map((function(t){return o.generate(e,t,r)})))}(a,a.getBlockMap(),s,i,r):g(a,i),void e.merge({decorator:i,treeMap:l,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),a=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return o.generate(i,e,r)})))}
2(t,a.getBlockMap(),a.getEntityMap(),i)),e.merge(n)})))},e.prototype.toJS=function(){return this.getImmutable().toJS()},e.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.prototype.getSelection=function(){return this.getImmutable().get("selection")},e.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},e.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},e.prototype.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return m(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return m(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return h(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var l=t.getSelection(),s=t.getCurrentContent(),c=t.getUndoStack(),u=n;l!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(c=c.push(s),u=u.set("selectionBefore",l)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(d=null);var p={currentContent:u,directionMap:i,undoStack:c,redoStack:f(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:d};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function h(e,t,n){return p.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function m(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}e.exports=p},17293:function(e,t,n){"use strict";var r=n(18258).isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return r&&e.altKey},hasCommandModifier:function(e){return r?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)}};e.exports=o},84859:function(e,t,n){"use strict";var r=n(13284),o=n(89690),i=(n(58977),n(23707)),a=n(45338),l={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntity
2Map();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return l.toggleInlineStyle(e,"BOLD");case"italic":return l.toggleInlineStyle(e,"ITALIC");case"underline":return l.toggleInlineStyle(e,"UNDERLINE");case"code":return l.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return l.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return l.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),s=n.merge({blockMap:a,selectionAfter:t});if(s!==n)return o.push(e,s,"remove-range")}var c=l.tryToRemoveBlockStyle(e);return c?o.push(e,c,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var l=n.getBlockAfter(i);if(!l||"atomic"!==l.getType())return null;var s=t.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),c=r.removeRange(n,s,"forward");return c!==n?o.push(e,c,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var l=t.getCurrentContent(),s=l.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return t;e.preventDefault();var u=l.getBlockBefore(a);if(!u)return t;var f=u.getType();if("unordered-list-item"!==f&&"ordered-list-item"!==f)return t;var d=s.getDepth();if(!e.shiftKey&&d===n)return t;n=Math.min(u.getDepth()+1,n);var p=i(l,r,e.shiftKey?-1:1,n);return o.push(t,p,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),l=n.getEndKey(),s=e.getCurrentContent(),c=n;if(i!==l&&0===n.getEndOffset()){var u=a(s.getBlockBefore(l));l=u.getKey(),c=c.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:l,focusOffset:u.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==l})).some((function(e){return"atomic"===e.getType()})))return e;var f=s.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(s,c,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?l.toggleBlockType(e,"code-block"):l.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,l=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(l,n,t):r.applyInlineStyle(l,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o),l=i.getFirstBlock();if(a.getLength()>0&&a!==l)return null;var s=a.getType(),c=i.getBlockBefore(o);if("code-block"===s&&c&&"code-block"===c.getType()&&0!==c.getLength())return null;if("unstyled"!==s)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=l},84017:function(e,t,n){"use strict";var r=n(13284),o=n(89690),i=n(81363),a=n(45338),l=null,s={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),s=null;if(n.isCollapsed()){var c=n.getAnchorKey(),u=t.getBlockForKey(c).getLength();if(u===n.getAnchorOffset())return e;s=n.set("focusOffset",u)}else s=n;s=a(s),l=i(t,s);var f=r.removeRange(t,s,"forward");return f===t?e:o.push(e,f,"remove-range")},paste:function(e){if(!l)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),l);return o.push(e,t,"insert-fragment")}};e.exports=s},58977:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var i=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(15986).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},23707:function(e){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},78449:function(e,t,n){"use strict";var r=n(21866);e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t<n;)i=i.set(t,r.applyEntity(i.get(t),o)),t++;return e.set("characterList",i)}},82063:function(e,t,n){"use strict";var r=n(15986),o=n(78449);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),l=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===s})).toOrderedMap().merge(r.OrderedMap([[s,i.get(s)]])).map((function(e,t){var r=t===a?l:0,i=t===s?c:e.getLength();return o(e,r,i,n)}));
2return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}},17348:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(35038),i=n(34615),a=n(97596),l=n(63791),s=n(62878),c=n(87405),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:s(e),entityRanges:l(e,t),data:e.getData().toObject()}},f=function(e,t){var n=t.entityMap,l=[],s={},f={},d=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);f[o]||(f[o]=r,n[o]=""+d,d++)})),function(e,t,n,a){if(e instanceof o)n.push(u(e,t));else{e instanceof i||c(!1);var l=e.getParentKey(),s=a[e.getKey()]=r({},u(e,t),{children:[]});l?a[l].children.push(s):n.push(s)}}(e,n,l,s)})),{blocks:l,entityMap:n}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t=f(e,t)),t}},76189:function(e,t,n){"use strict";var r,o=i||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(71843);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(21866),s=n(35038),c=n(34615),u=n(60128),f=n(5112),d=n(82300),p=n(15986),h=n(15986).Set,g=n(92636),m=n(37827),y=n(34354),v=n(11501),b=n(87405),A=n(28720),E=d.draft_tree_data_support,w=p.List,S=p.OrderedSet,k=" ",x=new RegExp("\r","g"),C=new RegExp("\n","g"),_=new RegExp(" ","g"),I=new RegExp(" ?","g"),O=new RegExp("​?","g"),T=["bold","bolder","500","600","700","800","900"],M=["light","lighter","100","200","300","400"],B={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},D=(a(r={},m("public/DraftStyleDefault/depth0"),0),a(r,m("public/DraftStyleDefault/depth1"),1),a(r,m("public/DraftStyleDefault/depth2"),2),a(r,m("public/DraftStyleDefault/depth3"),3),a(r,m("public/DraftStyleDefault/depth4"),4),r),L=["className","href","rel","target","title"],N=["alt","className","height","src","width"],F=void 0,R={text:"",inlines:[],entities:[],blocks:[]},P={children:w(),depth:0,key:"",type:""},K=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null},z=function(e,t,n){var r=n.filter((function(t){return t.element===e||t.wrapper===e||t.aliasedElements&&t.aliasedElements.some((function(t){return t===e}))})).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r](e,t);if(o)return o}return null}(e,t,[K])||"unstyled"}},U=function(e,t,n){var r=e.text.slice(-1),o=t.text.slice(0,1);if("\r"!==r||"\r"!==o||n||(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===r){if(t.text===k||"\n"===t.text)return e;o!==k&&"\n"!==o||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},j=function(e){e instanceof HTMLAnchorElement||b(!1);var t=e.protocol;return"http:"===t||"https:"===t||"mailto:"===t},H=function(e){var t=new Array(1);return e&&(t[0]=e),o({},R,{text:k,inlines:[S()],entities:t})},V=function(){return o({},R,{text:"\n",inlines:[S()],entities:new Array(1)})},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({},P,e)},Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[S()],entities:new Array(1),blocks:[q({parent:n,key:y(),type:e,depth:Math.max(0,Math.min(4,t))})]}},W=function e(t,n,r,i,a,l,s,c,u,d){var p=F,h=n.nodeName.toLowerCase(),m=t,y="unstyled",v=!1,b=a&&z(a,i,c),A=o({},R),w=void 0;if("#text"===h){var S=n.textContent,x=S.trim();if(i&&""===x&&n.parentElement){var _=n.parentElement.nodeName.toLowerCase();if("ol"===_||"ul"===_)return{chunk:o({},R),entityMap:t}}return""===x&&"pre"!==a?{chunk:H(u),entityMap:t}:("pre"!==a&&(S=S.replace(C,k)),F=h,{chunk:{text:S,inlines:Array(S.length).fill(r),entities:Array(S.length).fill(u),blocks:[]},entityMap:t})}if(F=h,"br"===h)return"br"!==p||a&&"unstyled"!==b?{chunk:V(),entityMap:t}:{chunk:Q("unstyled",s,d),entityMap:t};
2if("img"===h&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var I=n,O={};N.forEach((function(e){var t=I.getAttribute(e);t&&(O[e]=t)})),n.textContent="\ud83d\udcf7",u=f.__create("IMAGE","MUTABLE",O||{})}r=function(e,t,n){var r=B[e];if(r)n=n.add(r).toOrderedSet();else if(t instanceof HTMLElement){var o=t;n=n.withMutations((function(e){var t=o.style.fontWeight,n=o.style.fontStyle,r=o.style.textDecoration;T.indexOf(t)>=0?e.add("BOLD"):M.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===r&&e.add("UNDERLINE"),"line-through"===r&&e.add("STRIKETHROUGH"),"none"===r&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})).toOrderedSet()}return n}(h,n,r),"ul"!==h&&"ol"!==h||(i&&(s+=1),i=h),!E&&"li"===h&&n instanceof HTMLElement&&(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(D).some((function(n){e.classList.contains(n)&&(t=D[n])})),t}(n,s));var P=z(h,i,c),K=i&&"li"===a&&"li"===h,q=(!a||E)&&-1!==l.indexOf(h);(K||q)&&(w=(A=Q(P,s,d)).blocks[0].key,a=h,v=!E),K&&(y="ul"===i?"unordered-list-item":"ordered-list-item");var W=n.firstChild;null!=W&&(h=W.nodeName.toLowerCase());for(var G=null;W;){W instanceof HTMLAnchorElement&&W.href&&j(W)?function(){var e=W,t={};L.forEach((function(n){var r=e.getAttribute(n);r&&(t[n]=r)})),t.url=new g(e.href).toString(),G=f.__create("LINK","MUTABLE",t||{})}():G=void 0;var Y=e(m,W,r,i,a,l,s,c,G||u,E?w:null),J=Y.chunk;m=Y.entityMap,A=U(A,J,E);var X=W.nextSibling;!d&&X&&l.indexOf(h)>=0&&a&&(A=U(A,V())),X&&(h=X.nodeName.toLowerCase()),W=X}return v&&(A=U(A,Q(y,s,d))),{chunk:A,entityMap:m}},G=function(e,t,n,r){e=e.trim().replace(x,"").replace(_,k).replace(I,"").replace(O,"");var i=function(e){var t=e.get("unstyled").element,n=h([]);return e.forEach((function(e){e.aliasedElements&&e.aliasedElements.forEach((function(e){n=n.add(e)})),n=n.add(e.element)})),n.filter((function(e){return e&&e!==t})).toArray().sort()}(n),a=t(e);if(!a)return null;F=null;var l=function(e,t){return t.some((function(t){return-1!==e.indexOf("<"+t)}))}(e,i)?i:["div"],s=W(r,a,S(),"ul",null,l,-1,n),c=s.chunk,u=s.entityMap;return 0===c.text.indexOf("\r")&&(c={text:c.text.slice(1),inlines:c.inlines.slice(1),entities:c.entities.slice(1),blocks:c.blocks}),"\r"===c.text.slice(-1)&&(c.text=c.text.slice(0,-1),c.inlines=c.inlines.slice(0,-1),c.entities=c.entities.slice(0,-1),c.blocks.pop()),0===c.blocks.length&&c.blocks.push(o({},R,{type:"unstyled",depth:0})),c.text.split("\r").length===c.blocks.length+1&&c.blocks.unshift({type:"unstyled",depth:0}),{chunk:c,entityMap:u}},Y=function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,n=e.blocks,r=e.inlines,o=e.entities,i=E?c:s;return e.text.split("\r").reduce((function(e,a,s){a=A(a);var u=n[s],f=t+a.length,d=r.slice(t,f),p=o.slice(t,f),h=w(d.map((function(e,t){var n={style:e,entity:null};return p[t]&&(n.entity=p[t]),l.create(n)})));t=f+1;var g=u.depth,m=u.type,v=u.parent,b=u.key||y(),E=null;if(v){var S=e.cacheRef[v],k=e.contentBlocks[S];if(k.getChildKeys().isEmpty()&&k.getText()){var x=k.getCharacterList(),C=k.getText();E=y();var _=new c({key:E,text:C,characterList:x,parent:v,nextSibling:b});e.contentBlocks.push(_),k=k.withMutations((function(e){e.set("characterList",w()).set("text","").set("children",k.children.push(_.getKey()))}))}e.contentBlocks[S]=k.set("children",k.children.push(b))}var I=new i({key:b,parent:v,type:m,depth:g,text:a,characterList:h,prevSibling:E||(0===s||n[s-1].parent!==v?null:n[s-1].key),nextSibling:s===n.length-1||n[s+1].parent!==v?null:n[s+1].key});return e.contentBlocks.push(I),e.cacheRef[I.key]=s,e}),{cacheRef:{},contentBlocks:[]}).contentBlocks};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=G(e,t,n,f);if(null==r)return null;var o=r.chunk,i=r.entityMap,a=Y(o);return{contentBlocks:a,entityMap:i}}},95741:function(e,t,n){"use strict";var r=n(71843)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(35038),i=n(34615),a=n(43281),l=n(5112),s=n(82300),c=n(88364),u=n(15986),f=n(58977),d=n(38708),p=n(39033),h=n(29802),g=n(34354),m=n(87405),y=s.draft_tree_data_support,v=u.List,b=u.Map,A=u.OrderedMap,E=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||g(),data:b(o),characterList:w(e,t)}},w=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return d(h(n,i||[]),p(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},S=function(e){return r({},e,{key:e.key||g()})},k=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())},x=function(e,t){var n=Array.isArray(e.blocks[0].children),a=y&&!n?c.fromRawStateToRawTreeState(e).blocks:e.blocks;return y?function(e,t){return e.map(S).reduce((function(n,o,a){Array.isArray(o.children)||m(!1);var l=o.children.map(S),s=new i(r({},E(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:v(l.map((function(e){return e.key})))}));n=n.set(s.getKey(),s);
2for(var c=k([],l,s);c.length>0;){var u=c.pop(),f=u.parentRef,d=f.getChildKeys(),p=d.indexOf(u.key),h=Array.isArray(u.children);if(!h){h||m(!1);break}var g=u.children.map(S),y=new i(r({},E(u,t),{parent:f.getKey(),children:v(g.map((function(e){return e.key}))),prevSibling:0===p?null:d.get(p-1),nextSibling:p===d.size-1?null:d.get(p+1)}));n=n.set(y.getKey(),y),c=k(c,g,y)}return n}),A())}(a,t):function(e,t){return A(e.map((function(e){var n=new o(E(e,t));return[n.getKey(),n]})))}(n?c.fromRawTreeStateToRawState(e).blocks:a,t)};e.exports=function(e){Array.isArray(e.blocks)||m(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=l.__create(o,i,a||{})})),n}(e),n=x(e,t),r=n.isEmpty()?new f:f.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},38708:function(e,t,n){"use strict";var r=n(21866),o=n(15986).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},39033:function(e,t,n){"use strict";var r=n(82577).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},29802:function(e,t,n){"use strict";var r=n(15986).OrderedSet,o=n(82577).substr,i=r();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach((function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++})),n}},35352:function(e,t,n){"use strict";var r=n(994),o=n(13284),i=n(89690),a=n(18258),l=n(33574),s=n(97146),c=n(62165),u=n(45338),f=n(47617),d=a.isBrowser("Firefox");function p(e,t,n,r){var a=o.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return i.push(e,a,"insert-characters")}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var o=e._latestEditorState,a=t.data;if(a)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(a,o)))t.preventDefault();else{var h=o.getSelection(),g=h.getStartOffset(),m=h.getEndOffset(),y=h.getAnchorKey();if(!h.isCollapsed())return t.preventDefault(),void(a===o.getCurrentContent().getPlainText().slice(g,m)?e.update(i.forceSelection(o,h.merge({focusOffset:m}))):e.update(p(o,a,o.getCurrentInlineStyle(),l(o.getCurrentContent(),o.getSelection()))));var v,b=p(o,a,o.getCurrentInlineStyle(),l(o.getCurrentContent(),o.getSelection())),A=!1;if(A||(A=c(e._latestCommittedEditorState)),!A){var E=n.g.getSelection();if(E.anchorNode&&E.anchorNode.nodeType===Node.TEXT_NODE){var w=E.anchorNode.parentNode;A="SPAN"===w.nodeName&&w.firstChild.nodeType===Node.TEXT_NODE&&-1!==w.firstChild.nodeValue.indexOf("\t")}}if(!A)A=r.getFingerprint(o.getBlockTree(y))!==r.getFingerprint(b.getBlockTree(y));if(A||(v=a,A=d&&("'"==v||"/"==v)),A||(A=u(b.getDirectionMap()).get(y)!==u(o.getDirectionMap()).get(y)),A)return t.preventDefault(),void e.update(b);b=i.set(b,{nativelyRenderedContent:b.getCurrentContent()}),e._pendingStateFromBeforeInput=b,f((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},92258:function(e,t,n){"use strict";var r=n(89690),o=n(42804),i=n(13459);e.exports=function(e,t){if(i()===document.body){var a=n.g.getSelection(),l=e.editor;1===a.rangeCount&&o(l,a.anchorNode)&&o(l,a.focusNode)&&a.removeAllRanges()}var s=e._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var u=c.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(s,u))}}},20678:function(e,t,n){"use strict";var r=n(89690);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},74977:function(e,t,n){"use strict";var r=n(5212);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},70076:function(e,t,n){"use strict";var r=n(13284),o=n(89690),i=n(9026),a=n(5212),l=n(37541);e.exports=function(e,t){var n=e._latestEditorState,s=n.getSelection(),c=t.target,u=void 0;if(s.isCollapsed())t.preventDefault();else{c instanceof Node&&(u=l(i.getScrollParent(c)));var f=a(n);e.setClipboard(f),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(u),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(n))}),0)}}},74844:function(e){"use strict";e.exports=function(e,t){e._internalDrag=!1,e.setMode("drag"),t.preventDefault()}},80110:function(e){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},49914:function(e,t,n){"use strict";var r=n(89690),o=n(18258);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},13774:function(e,t,n){"use strict";var r=n(82300),o=n(13284),i=n(44519),a=n(89690),l=n(18258),s=n(84117),c=n(45338),u=l.isEngine("Gecko");e.exports=function(e){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var t=n.g.getSelection(),l=t.anchorNode,f=t.isCollapsed,d=l.nodeType!==Node.TEXT_NODE,p=l.nodeType!==Node.TEXT_NODE&&l.nodeType!==Node.ELEMENT_NODE;if(r.draft_killswitch_allow_nontextnodes){if(d)return}else if(p)return;if(l.nodeType===Node.TEXT_NODE&&(null!==l.previousSibling||null!==l.nextSibling)){var h=l.parentNode;l.nodeValue=h.textContent;for(var g=h.firstChild;null!==g;g=g.nextSibling)g!==l&&h.removeChild(g)}var m=l.textContent,y=e._latestEditorState,v=c(s(l)),b=i.decode(v),A=b.blockKey,E=b.decoratorKey,w=b.leafKey,S=y.getBlockTree(A).getIn([E,"leaves",w]),k=S.start,x=S.end,C=y.getCurrentContent(),_=C.getBlockForKey(A),I=_.getText().slice(k,x);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==I){var O,T,M,B,D=y.getSelection(),L=D.merge({anchorOffset:k,focusOffset:x,isBackward:!1}),N=_.getEntityAt(k),F=N&&C.getEntity(N),R="MUTABLE"===(F&&F.getMutability()),P=R?"spellcheck-change":"apply-entity",K=o.replaceText(C,L,m,_.getInlineStyleAt(k),R?_.getEntityAt(k):null);if(u)O=t.anchorOffset,T=t.focusOffset,B=(M=k+Math.min(O,T))+Math.abs(O-T),O=M,T=B;else{var z=m.length-I.length;M=D.getStartOffset(),B=D.getEndOffset(),O=f?B+z:M,T=B+z}
2var U=K.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:D.merge({anchorOffset:O,focusOffset:T})});e.update(a.push(y,U,P))}}},12196:function(e,t,n){"use strict";var r=n(13284),o=n(89690),i=n(17293),a=n(43058),l=n(84017),s=n(18258),c=n(97146),u=n(51559),f=n(90182),d=n(75400),p=n(42617),h=n(56338),g=n(16741),m=n(23332),y=n(93815),v=n(92319),b=n(62640),A=i.isOptionKeyCommand,E=s.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&c(e.props.handleReturn(t,i)))return;break;case a.ESC:return t.preventDefault(),void(e.props.onEscape&&e.props.onEscape(t));case a.TAB:return void(e.props.onTab&&e.props.onTab(t));case a.UP:return void(e.props.onUpArrow&&e.props.onUpArrow(t));case a.RIGHT:return void(e.props.onRightArrow&&e.props.onRightArrow(t));case a.DOWN:return void(e.props.onDownArrow&&e.props.onDownArrow(t));case a.LEFT:return void(e.props.onLeftArrow&&e.props.onLeftArrow(t));case a.SPACE:if(E&&A(t)){t.preventDefault();var s=r.replaceText(i.getCurrentContent(),i.getSelection(),"\xa0");return void e.update(o.push(i,s,"insert-characters"))}}var w=e.props.keyBindingFn(t);if(w)if("undo"!==w){if(t.preventDefault(),!e.props.handleKeyCommand||!c(e.props.handleKeyCommand(w,i))){var S=function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return d(t);case"backspace":return m(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return u(t);case"split-block":return p(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return l.cut(t);case"secondary-paste":return l.paste(t);default:return t}}(w,i);S!==i&&e.update(S)}}else b(t,i,e.update)}},19358:function(e,t,n){"use strict";var r=n(3980),o=n(21866),i=n(61767),a=n(13284),l=n(46604),s=n(89690),c=n(84859),u=n(33574),f=n(4763),d=n(97146),p=n(93409);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var g=n.getFiles(),m=n.getText();if(g.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(g)))return;return void f(g,(function(t){if(t=t||m){var n=e._latestEditorState,i=p(t),f=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),d=c.getCurrentBlockType(n),h=l.processText(i,f,d),g=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);e.update(s.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),A=e._latestEditorState;if(!e.props.handlePastedText||!d(e.props.handlePastedText(v,b,A))){if(v&&(y=p(v)),!e.props.stripPastedStyles){var E=e.getClipboard();if(n.isRichText()&&E){if(-1!==b.indexOf(e.getEditorKey())||1===y.length&&1===E.size&&E.first().getText()===v)return void e.update(h(e._latestEditorState,E))}else if(E&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,E))return void e.update(h(e._latestEditorState,E));if(b){var w=l.processHTML(b,e.props.blockRenderMap);if(w){var S=w.contentBlocks,k=w.entityMap;if(S){var x=r.createFromArray(S);return void e.update(h(e._latestEditorState,x,k))}}}e.setClipboard(null)}if(y.length){var C=o.create({style:A.getCurrentInlineStyle(),entity:u(A.getCurrentContent(),A.getSelection())}),_=c.getCurrentBlockType(A),I=l.processText(y,C,_),O=r.createFromArray(I);e.update(h(e._latestEditorState,O))}}}},35518:function(e,t,n){"use strict";var r=n(89690),o=n(1168),i=n(57785),a=n(87405);e.exports=function(e){if(!e._blockSelectEvents&&e._latestEditorState===e.props.editorState){var t=e.props.editorState,n=o.findDOMNode(e.editorContainer);n||a(!1),n.firstChild instanceof HTMLElement||a(!1);var l=i(t,n.firstChild),s=l.selectionState;s!==t.getSelection()&&(t=l.needsRecovery?r.forceSelection(t,s):r.acceptSelection(t,s),e.update(t))}}},63791:function(e,t,n){"use strict";var r=n(97596),o=n(82577).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var l=e.getText(),s=e.getEntityAt(i);n.push({offset:o(l.slice(0,i)),length:o(l.slice(i,a)),key:Number(t[r.stringify(s)])})})),n}},62878:function(e,t,n){"use strict";var r=n(82577),o=n(81111),i=function(e,t){return e===t},a=function(e){return!!e},l=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()}
2)).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var l=[],s=t.map((function(e){return e.has(n)})).toList();return o(s,i,a,(function(t,o){var i=e.getText();l.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),l}(e,t,n)}));return Array.prototype.concat.apply(l,n.toJS())}},50926:function(e,t,n){"use strict";var r=n(82577),o=n(88175),i=n(87405);function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),o=Math.max(o,l.top),i=Math.max(i,l.bottom))}return o<=r&&o-n<t&&i-r<t}function l(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||i(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=document.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var r=document.body;r||i(!1),r.appendChild(n);var o=n.getBoundingClientRect();return r.removeChild(n),o.height}(t),s=e.endContainer,c=e.endOffset;for(e.setStart(e.startContainer,0);a(o(e),n)&&(s=e.startContainer,c=e.startOffset,s.parentNode||i(!1),e.setStartBefore(s),1!==s.nodeType||"inline"===getComputedStyle(s).display););for(var u=s,f=c-1;;){for(var d=u.nodeValue,p=f;p>=0;p--)if(!(null!=d&&p>0&&r.isSurrogatePair(d,p-1))){if(e.setStart(u,p),!a(o(e),n))break;s=u,c=p}if(-1===p||0===u.childNodes.length)break;f=l(u=u.childNodes[p])}return e.setStart(s,c),e}},84117:function(e,t,n){"use strict";var r=n(54707);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},81111:function(e){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},34354:function(e){"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},61311:function(e,t,n){"use strict";var r=n(54178),o=n(19264),i=n(87405);function a(e,t,n,a,l,s,c){var u=n.getStartOffset(),f=n.getEndOffset(),d=e.__get(l).getMutability(),p=c?u:f;if("MUTABLE"===d)return n;var h=o(t,l).filter((function(e){return p<=e.end&&p>=e.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});s||(c?f=g.end:u=g.start);var m=r.getRemovalRange(u,f,t.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}
2e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),l=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(l-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=a(e,t,u,o,s,!0,!0);else if(s&&c){var f=a(e,t,u,o,s,!1,!0),d=a(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:f.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var p=a(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var h=a(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return u}},81363:function(e,t,n){"use strict";var r=n(10118),o=n(49839);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=o(e,t).getBlockMap(),c=s.keySeq(),u=c.indexOf(n),f=c.indexOf(a)+1;return r(s.slice(u,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,l),characterList:o.slice(i,l)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,l),characterList:o.slice(0,l)}):e})))}},18498:function(e,t,n){"use strict";var r=n(17293),o=n(43058),i=n(18258),a=i.isPlatform("Mac OS X"),l=i.isPlatform("Windows"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,u=r.isCtrlKeyCommand;function f(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return!l&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?l?"redo":"secondary-paste":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return l&&e.shiftKey?null:f(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":f(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},57785:function(e,t,n){"use strict";var r=n(18896);e.exports=function(e,t){var o=n.g.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}},18896:function(e,t,n){"use strict";var r=n(84117),o=n(54707),i=n(97685),a=n(87405),l=n(45338);function s(e,t,n){var i=t,s=r(i);if(null!=s||e&&(e===i||e.firstChild===i)||a(!1),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var u=null;if(null!=s)u=s;else{var f=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);u=l(o(f))}return{key:u,offset:0}}var d=i.childNodes[n-1],p=null,h=null;if(o(d)){var g=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);p=l(o(g)),h=c(g)}else p=l(s),h=c(d);return{key:p,offset:h}}function c(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,c){var u=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(u&&f)return{selectionState:i(e,l(r(n)),o,l(r(a)),c),needsRecovery:!1};var d=null,p=null,h=!0;return u?(d={key:l(r(n)),offset:o},p=s(t,a,c)):f?(p={key:l(r(a)),offset:c},d=s(t,n,o)):(d=s(t,n,o),p=s(t,a,c),n===a&&o===c&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,d.key,d.offset,p.key,p.offset),needsRecovery:h}}},33574:function(e){"use strict";function t(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,n){var r;if(n.isCollapsed()){var o=n.getAnchorKey(),i=n.getAnchorOffset();return i>0?(r=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:t(e.getEntity
2Map(),r):null}var a=n.getStartKey(),l=n.getStartOffset(),s=e.getBlockForKey(a);return r=l===s.getLength()?null:s.getEntityAt(l),t(e.getEntityMap(),r)}},5212:function(e,t,n){"use strict";var r=n(81363);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},48254:function(e,t,n){"use strict";var r=n(34615);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},71545:function(e,t,n){"use strict";var r=n(88175);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var l=t[1];n=l.top,o=l.right,i=l.bottom,a=l.left}else{var s=t[0];n=s.top,o=s.right,i=s.bottom,a=s.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),o=Math.max(o,u.right),i=Math.max(i,u.bottom),a=Math.min(a,u.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},88175:function(e,t,n){"use strict";var r=n(18258),o=n(87405);var i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,l=Array.from(t.getClientRects());if(n.push(l),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},19264:function(e,t,n){"use strict";var r=n(87405);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},11501:function(e,t,n){"use strict";var r=n(18258),o=n(87405),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},54707:function(e){"use strict";e.exports=function e(t){if(t instanceof Element){var n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r<t.childNodes.length;r++){var o=e(t.childNodes[r]);if(o)return o}}return null}},4763:function(e,t,n){"use strict";var r=n(87405),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,l=[];e.forEach((function(s){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))return void t("");if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var l=new FileReader;l.onload=function(){var e=l.result;"string"!==typeof e&&r(!1),t(e)},l.onerror=function(){t("")},l.readAsText(e)}(s,(function(n){a++,n&&l.push(n.slice(0,5e3)),a==e.length&&t(l.join("\r"))}))}))}},97685:function(e,t,n){"use strict";var r=n(44519),o=n(45338);e.exports=function(e,t,n,i,a){var l=o(e.getSelection()),s=r.decode(t),c=s.blockKey,u=e.getBlockTree(c).getIn([s.decoratorKey,"leaves",s.leafKey]),f=r.decode(i),d=f.blockKey,p=e.getBlockTree(d).getIn([f.decoratorKey,"leaves",f.leafKey]),h=u.get("start"),g=p.get("start"),m=u?h+n:null,y=p?g+a:null;if(l.getAnchorKey()===c&&l.getAnchorOffset()===m&&l.getFocusKey()===d&&l.getFocusOffset()===y)return l;var v=!1;if(c===d){var b=u.get("end"),A=p.get("end");v=g===h&&A===b?a<n:g<h}else{v=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===c||e===d})).first()===d}return l.merge({anchorKey:c,anchorOffset:m,focusKey:d,focusOffset:y,isBackward:v})}},30640:function(e,t,n){"use strict";var r=n(71545);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,l=o.bottom,s=o.left;return 0===i&&0===a&&0===l&&0===s?null:o}},59167:function(e,t,n){"use strict";var r=n(3980),o=n(34615),i=n(15986),a=n(9223),l=n(87405),s=n(10118),c=i.List,u=function(e,t,n,i,a,l){var s=n.first()instanceof o,u=[],f=i.size,d=n.get(a),p=i.first(),h=i.last(),g=h.getLength(),m=h.getKey(),y=s&&(!d.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());
2n.forEach((function(e,t){t===a?(y?u.push(e):u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),l=n.first();return e.merge({text:i+l.getText(),characterList:a.concat(l.getCharacterList()),type:i?e.getType():l.getType(),data:l.getData()})}(e,l,i)),i.slice(y?0:1,f-1).forEach((function(e){return u.push(e)})),u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),l=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,l,i))):u.push(e)}));var v=r.createFromArray(u);return s&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),l=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var f=e.get(l).getChildKeys(),d=f.indexOf(o)+1,p=f.toArray();p.splice.apply(p,[d,0].concat(s)),t.setIn([l,"children"],c(p))}}))}(v,0,d,p)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})};e.exports=function(e,t,n){t.isCollapsed()||l(!1);var r=e.getBlockMap(),i=s(n),c=t.getStartKey(),f=t.getStartOffset(),d=r.get(c);return d instanceof o&&(d.getChildKeys().isEmpty()||l(!1)),1===i.size?function(e,t,n,r,o,i){var l=n.get(o),s=l.getText(),c=l.getCharacterList(),u=o,f=i+r.getText().length,d=l.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:a(c,r.getCharacterList(),i),data:r.getData()});return e.merge({blockMap:n.set(o,d),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,t,r,i.first(),c,f):u(e,t,r,i,c,f)}},9223:function(e){"use strict";e.exports=function(e,t,n){if(n===e.count())t.forEach((function(t){e=e.push(t)}));else if(0===n)t.reverse().forEach((function(t){e=e.unshift(t)}));else{var r=e.slice(0,n),o=e.slice(n);e=r.concat(t,o).toList()}return e}},53574:function(e,t,n){"use strict";var r=n(15986),o=n(9223),i=n(87405),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var l=n.length;if(!l)return e;var s=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),f=s.get(c),d=f.getText(),p=f.merge({text:d.slice(0,u)+n+d.slice(u,f.getLength()),characterList:o(f.getCharacterList(),a(r,l).toList(),u)}),h=u+l;return e.merge({blockMap:s.set(c,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},97146:function(e){"use strict";e.exports=function(e){return"handled"===e||!0===e}},62165:function(e){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}}
2,51559:function(e,t,n){"use strict";var r=n(89690),o=n(50926),i=n(18896),a=n(99979),l=n(42250);e.exports=function(e){var t=l(e,(function(e){var t=e.getSelection();if(t.isCollapsed()&&0===t.getAnchorOffset())return a(e,1);var r=n.g.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return t===e.getCurrentContent()?e:r.push(e,t,"remove-range")}},90182:function(e,t,n){"use strict";var r=n(36068),o=n(89690),i=n(99979),a=n(42250);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),l=r.getBackward(a);return i(e,l.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},75400:function(e,t,n){"use strict";var r=n(36068),o=n(89690),i=n(38817),a=n(42250);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),l=r.getForward(a);return i(e,l.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},42617:function(e,t,n){"use strict";var r=n(13284),o=n(89690);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},56338:function(e,t,n){"use strict";var r=n(89690);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0}
vendor: 9,745 bytes, line 2
2)}},16741:function(e,t,n){"use strict";var r=n(89690);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},23332:function(e,t,n){"use strict";var r=n(89690),o=n(82577),i=n(99979),a=n(42250);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),l=n.getBlockForKey(r).getText()[a-1];return i(e,l?o.getUTF16Length(l,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},93815:function(e,t,n){"use strict";var r=n(89690),o=n(82577),i=n(38817),a=n(42250);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),l=n.getBlockForKey(r).getText()[a];return i(e,l?o.getUTF16Length(l,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},92319:function(e,t,n){"use strict";var r=n(13284),o=n(89690),i=n(81363);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,l,s=t.getAnchorKey(),c=e.getCurrentContent(),u=c.getBlockForKey(s).getLength();if(u<=1)return e;n===u?(a=t.set("anchorOffset",n-1),l=t):l=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(c,a),d=r.removeRange(c,a,"backward"),p=d.getSelectionAfter(),h=p.getAnchorOffset()-1,g=p.merge({anchorOffset:h,focusOffset:h}),m=r.replaceWithFragment(d,g,f),y=o.push(e,m,"insert-fragment");return o.acceptSelection(y,l)}},62640:function(e,t,n){"use strict";var r=n(89690);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},62614:function(e,t,n){"use strict";var r=n(15986).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(l),selectionBefore:t,selectionAfter:t})}},14126:function(e,t,n){"use strict";var r=n(34615),o=n(15986),i=n(48254),a=n(87405),l=o.OrderedMap,s=o.List,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),u=t.getParentKey(),f=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),p=n.getParentKey(),h=i?n.getNextSiblingKey():l,g=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){c(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),c(d,e,(function(e){return e.merge({nextSibling:f})})),c(f,e,(function(e){return e.merge({prevSibling:d})})),c(h,e,(function(e){return e.merge({prevSibling:a})})),c(g,e,(function(e){return e.merge({nextSibling:a})})),c(p,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:s(o)})})),c(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:g,parent:p})}))}))};e.exports=function(e,t,n,o){"replace"===o&&a(!1);var s=n.getKey(),c=t.getKey();c===s&&a(!1);var f=e.getBlockMap(),d=t instanceof r,p=[t],h=f.delete(c);d&&(p=[],h=f.withMutations((function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===c})).takeWhile((function(e){var t=e.getKey(),o=t===c,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){p.push(t),e.delete(t.getKey())}))})));var g=h.toSeq().takeUntil((function(e){return e===n})),m=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=p.map((function(e){return[e.getKey(),e]})),v=l();if("before"===o){var b=e.getBlockBefore(s);b&&b.getKey()===t.getKey()&&a(!1),v=g.concat([].concat(y,[[s,n]]),m).toOrderedMap()}else if("after"===o){var A=e.getBlockAfter(s);A&&A.getKey()===c&&a(!1),v=g.concat([[s,n]].concat(y),m).toOrderedMap()}return e.merge({blockMap:u(v,t,n,o,d),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},99979:function(e){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,l=0;if(t>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,l=r.getBlockForKey(s).getText().length}else l=i-t;return n.merge({focusKey:a,focusOffset:l,isBackward:!0})}},38817:function(e){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),l=o;return t>a.getBlockForKey(o).getText().length-i?(l=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:l,focusOffset:n})}},10118:function(e,t,n){"use strict";var r=n(34615),o=n(15986),i=n(34354),a=o.OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t={},n=void 0;return a(e.withMutations((function(e){e.forEach((function(r,o){var a=r.getKey(),l=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),f=i();if(t[a]=f,l&&(e.get(l)?e.setIn([l,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),f))}else e.setIn([a,"parent"],null),n&&(e.setIn([n.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],t[n.getKey()])),n=e.get(a);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]})))}(e):function(e){return a(e.toArray().map((function(e){var t=i();return[t,e.set("key",t)]})))}(e)}},49839:function(e,t,n){"use strict";var r=n(21866),o=n(81111),i=n(87405);function a(e,t,n){var a=t.getCharacterList(),l=n>0?a.get(n-1):void 0,s=n<a.count()?a.get(n):void 0,c=l?l.getEntity():void 0,u=s?s.getEntity():void 0;if(u&&u===c&&"MUTABLE"!==e.__get(u).getMutability()){for(var f,d=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!==typeof r&&i(!1),r}(a,u,n),p=d.start,h=d.end;p<h;)f=a.get(p),a=a.set(p,r.applyEntity(f,null)),p++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),l=t.getStartOffset(),s=n.get(i),c=a(r,s,l);c!==s&&(o[i]=c);var u=t.getEndKey(),f=t.getEndOffset(),d=n.get(u);i===u&&(d=c);var p=a(r,d,f);return p!==d&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},57429:function(e,t,n){"use strict";var r=n(34615),o=n(15986),i=n(48254),a=(o.List,o.Map),l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},s=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},c=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},f=function(e,t,n,r){return e.withMutations((function(e){l(t.getKey(),e,(function(n){return n.merge({nextSibling:c(t,e,r),prevSibling:u(t,e,r)})})),l(n.getKey(),e,(function(t){return t.merge({nextSibling:c(n,e,r),prevSibling:u(n,e,r)})})),s(t.getKey(),r).forEach((function(t){return l(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:c(t,e,r),prevSibling:u(t,e,r)})}))})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),l(t.getPrevSiblingKey(),e,(function(n){return n.merge({nextSibling:c(t,e,r)})})),l(n.getNextSiblingKey(),e,(function(t){return t.merge({prevSibling:u(n,e,r)})})),l(n.getPrevSiblingKey(),e,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),s(n.getKey(),r).forEach((function(t){l(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:c(t,e,r),prevSibling:u(t,e,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n}(n,r).forEach((function(t){return l(t,e,(function(t){return t.merge({nextSibling:c(t,e,r),prevSibling:u(t,e,r)})}))}))}))},d=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n=e.getBlockMap(),o=t.getStartKey(),l=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),p=n.get(o),h=n.get(c),g=p instanceof r,m=[];if(g){var y=h.getChildKeys(),v=s(c,n);h.getNextSiblingKey()&&(m=m.concat(v)),y.isEmpty()||(m=m.concat(v.concat([c]))),m=m.concat(s(i(h,n),n))}var b=void 0;b=p===h?d(p.getCharacterList(),l,u):p.getCharacterList().slice(0,l).concat(h.getCharacterList().slice(u));var A=p.merge({text:p.getText().slice(0,l)+h.getText().slice(u),characterList:b}),E=n.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===c})).filter((function(e,t){return-1===m.indexOf(t)})).concat(a([[c,null]])).map((function(e,t){return t===o?A:null}
2)),w=n.merge(E).filter((function(e){return!!e}));return g&&(w=f(w,p,h,n)),e.merge({blockMap:w,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:l,focusKey:o,focusOffset:l,isBackward:!1})})}},42250:function(e,t,n){"use strict";var r=n(13284);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},28720:function(e){"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},53413:function(e,t,n){"use strict";var r=n(45203),o=n(42804),i=n(13459),a=n(87405);function l(e,t){if(!e)return"[empty]";var n=s(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element||a(!1),n.outerHTML)}function s(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return document.createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(s(i[a],t));return o}function c(e,t){for(var n=e;n;){if(n instanceof Element&&n.hasAttribute("contenteditable"))return l(n,t);n=n.parentNode}return"Could not find contentEditable parent of node"}function u(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function f(e,t,n,a){var l=i();if(e.extend&&o(l,t)){n>u(t)&&r.logSelectionStateFailure({anonymizedDom:c(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var s=t===e.focusNode;try{e.extend(t,n)}catch(d){throw r.logSelectionStateFailure({anonymizedDom:c(t,(function(t){var n=[];return t===l&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:l?l.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:d?""+d:null,offset:n},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),d}}else{var f=e.getRangeAt(0);f.setEnd(t,n),e.addRange(f.cloneRange())}}function d(e,t,n,o){var i=document.createRange();n>u(t)&&r.logSelectionStateFailure({anonymizedDom:c(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),i.setStart(t,n),e.addRange(i)}e.exports=function(e,t,r,i,a){if(o(document.documentElement,t)){var l=n.g.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),p=e.getFocusOffset(),h=e.getIsBackward();if(!l.extend&&h){var g=s,m=c;s=u,c=p,u=g,p=m,h=!1}var y=s===r&&i<=c&&a>=c,v=u===r&&i<=p&&a>=p;if(y&&v)return l.removeAllRanges(),d(l,t,c-i,e),void f(l,t,p-i,e);if(h){if(v&&(l.removeAllRanges(),d(l,t,p-i,e)),y){var b=l.focusNode,A=l.focusOffset;l.removeAllRanges(),d(l,t,c-i,e),f(l,b,A,e)}}else y&&(l.removeAllRanges(),d(l,t,c-i,e)),v&&f(l,t,p-i,e)}}},65288:function(e,t,n){"use strict";var r=n(34615),o=n(15986),i=n(34354),a=n(87405),l=o.List,s=o.Map,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),o=t.getAnchorOffset(),u=e.getBlockMap(),f=u.get(n),d=f.getText(),p=f.getCharacterList(),h=i(),g=f instanceof r,m=f.merge({text:d.slice(0,o),characterList:p.slice(0,o)}),y=m.merge({key:h,text:d.slice(o),characterList:p.slice(o),data:s()}),v=u.toSeq().takeUntil((function(e){return e===f})),b=u.toSeq().skipUntil((function(e){return e===f})).rest(),A=v.concat([[n,m],[h,y]],b).toOrderedMap();return g&&(f.getChildKeys().isEmpty()||a(!1),A=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();c(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:l(i)})})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),c(r,e,(function(e){return e.merge({nextSibling:o})})),c(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(A,m,y)),e.merge({blockMap:A,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}},93409:function(e){"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},61635:function(e,t,n){var r,o;"undefined"!=typeof self&&self,e.exports=(r=n(52500),o=n(15986),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})}
2,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]])}function o(e){return r(e).toList()}function i(e){if(e)return o(e).get(0)}function a(e){if(e){var t=i(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),r>-1)return n.get(r)}}function l(e){return e?e.getCurrentContent().getBlockMap().toList():new y.List}function s(e){var t=o(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function c(e){var t=m.RichUtils.tryToRemoveBlockStyle(e);return t?m.EditorState.push(e,t,"change-block-type"):e}function u(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),i=n.getFocusOffset(),a=o(e);if(a.size>0){if(n.getIsBackward()){var l=r;r=i,i=l}for(var s=0;s<a.size;s+=1){var c=0===s?r:0,u=s===a.size-1?i:a.get(s).getText().length;t+=a.get(s).getText().slice(c,u)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),r=m.Modifier.removeRange(t,n,"forward"),o=r.getSelectionAfter(),i=r.getBlockForKey(o.getStartKey());return r=m.Modifier.insertText(r,o,"\n",i.getInlineStyleAt(o.getStartOffset()),null),m.EditorState.push(e,r,"insert-fragment")}function d(e){var t=m.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return c(m.EditorState.push(e,t,"split-block"))}function p(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),r=m.Modifier.removeRange(e.getCurrentContent(),n,"forward");return m.EditorState.push(e,r,"remove-range")}function h(e,t){var n=m.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return m.EditorState.push(e,n,"change-block-data")}function g(e){var t=new y.Map({}),n=o(e);if(n&&n.size>0)for(var r=0;r<n.size;r+=1){var i=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"}(r);if("break"===i)break}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.blockRenderMap=void 0,t.getSelectedBlocksMap=r,t.getSelectedBlocksList=o,t.getSelectedBlock=i,t.getBlockBeforeSelectedBlock=a,t.getAllBlocks=l,t.getSelectedBlocksType=s,t.removeSelectedBlocksStyle=c,t.getSelectionText=u,t.addLineBreakRemovingSelection=f,t.insertNewUnstyledBlock=d,t.clearEditorContent=p,t.setBlockData=h,t.getSelectedBlocksMetadata=g;var m=n(0),y=n(6),v=(0,y.Map)({code:{element:"pre"}});t.blockRenderMap=m.DefaultDraftBlockRenderMap.merge(v)},function(e,t,n){"use strict";function r(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function o(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=o.getBlockMap(),a=(0,l.getSelectedBlocksMap)(e).map((function(e){var r=e.getDepth()+t;return r=Math.max(0,Math.min(r,n)),e.set("depth",r)}));return i=i.merge(a),o.merge({blockMap:i,selectionBefore:r,selectionAfter:r})}function i(e,t,n){var r=e.getSelection(),i=void 0;i=r.getIsBackward()?r.getFocusKey():r.getAnchorKey();var l=e.getCurrentContent(),s=l.getBlockForKey(i),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var u=l.getBlockBefore(i);if(!u)return e;if(u.getType()!==c)return e;var f=s.getDepth();if(1===t&&f===n)return e;var d=o(e,t,Math.min(u.getDepth()+1,n));return a.EditorState.push(e,d,"adjust-depth")}Object.defineProperty(t,"__esModule",{value:!0}),t.isListBlock=r,t.changeDepth=i;var a=n(0),l=n(1)},function(e,t,n){e.exports=n(4)},function(e,t,n){"use strict";var r=n(5),o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(n(7)),a=n(2);e.exports={getSelectedBlocksMap:o.getSelectedBlocksMap,getSelectedBlocksList:o.getSelectedBlocksList,getSelectedBlock:o.getSelectedBlock,getBlockBeforeSelectedBlock:o.getBlockBeforeSelectedBlock,getAllBlocks:o.getAllBlocks,getSelectedBlocksType:o.getSelectedBlocksType,removeSelectedBlocksStyle:o.removeSelectedBlocksStyle,getSelectionText:o.getSelectionText,addLineBreakRemovingSelection:o.addLineBreakRemovingSelection,insertNewUnstyledBlock:o.insertNewUnstyledBlock,clearEditorContent:o.clearEditorContent,setBlockData:o.setBlockData,get
2SelectedBlocksMetadata:o.getSelectedBlocksMetadata,blockRenderMap:o.blockRenderMap,getEntityRange:r.getEntityRange,getCustomStyleMap:r.getCustomStyleMap,toggleCustomInlineStyle:r.toggleCustomInlineStyle,getSelectionEntity:r.getSelectionEntity,extractInlineStyle:r.extractInlineStyle,removeAllInlineStyles:r.removeAllInlineStyles,getSelectionInlineStyle:r.getSelectionInlineStyle,getSelectionCustomInlineStyle:r.getSelectionCustomInlineStyle,handleNewLine:i.default,isListBlock:a.isListBlock,changeDepth:a.changeDepth}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=r.indexOf(e)>=0})),n}var o=t.getStartOffset(),i=t.getEndOffset(),a=(0,m.getSelectedBlocksList)(e);if(a.size>0){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<a.size;t+=1){var n=0===t?o:0,r=t===a.size-1?i:a.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&(n-=1);for(var l=n;l<r;l+=1)!function(n){var r=a.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))}(l)}return{v:e}}();if("object"===(void 0===l?"undefined":h(l)))return l.v}return{}}function i(e){var t=void 0,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&(r-=1);for(var i=(0,m.getSelectedBlock)(e),a=r;a<o;a+=1){var l=i.getEntityAt(a);if(!l){t=void 0;break}if(a===r)t=l;
2else if(t!==l){t=void 0;break}}return t}function a(e,t){var n=(0,m.getSelectedBlock)(e),r=void 0;return n.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){r={start:e,end:t,text:n.get("text").slice(e,t)}})),r}function l(e,t,n){var r=e.getSelection(),o=Object.keys(y[t]).reduce((function(e,t){return g.Modifier.removeInlineStyle(e,r,t)}),e.getCurrentContent()),i=g.EditorState.push(e,o,"changeinline-style"),a=e.getCurrentInlineStyle();if(r.isCollapsed()&&(i=a.reduce((function(e,t){return g.RichUtils.toggleInlineStyle(e,t)}),i)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)a.has(n)||(i=g.RichUtils.toggleInlineStyle(i,n));else{var l="bgcolor"===t?"backgroundColor":t;a.has(l+"-"+n)||(i=g.RichUtils.toggleInlineStyle(i,t.toLowerCase()+"-"+n),v(t,l,n))}return i}function s(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?v("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?v("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?v("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&v("fontFamily","fontFamily",e.substr(11))}))}function c(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&r.size>0)return r.get(0)}function u(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&n.size>0)return n.get(0)}function f(e,t){if(e&&t&&t.length>0){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=u(e,t)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),a=(0,m.getSelectedBlocksList)(e);if(a.size>0){for(var l=0;l<a.size;l+=1)!function(e){var n=0===e?o:0,l=e===a.size-1?i:a.get(e).getText().length;n===l&&0===n?(n=1,l=2):n===l&&(n-=1);for(var s=n;s<l;s+=1)!function(o){o===n?t.forEach((function(t){r[t]=c(a.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==c(a.get(e),t,o)&&(r[t]=void 0)}))}(s)}(l);return{v:r}}}();if("object"===(void 0===n?"undefined":h(n)))return n.v}return{}}function d(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=g.Modifier.removeInlineStyle(n,e.getSelection(),t)})),g.EditorState.push(e,n,"change-inline-style")}Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomStyleMap=void 0;var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.getSelectionInlineStyle=o,t.getSelectionEntity=i,t.getEntityRange=a,t.toggleCustomInlineStyle=l,t.extractInlineStyle=s,t.getSelectionCustomInlineStyle=f,t.removeAllInlineStyles=d;var g=n(0),m=n(1),y={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"}},v=function(e,t,n){y[e][e.toLowerCase()+"-"+n]=r({},""+t,n)};t.getCustomStyleMap=function(){return p({},y.color,y.bgcolor,y.fontSize,y.fontFamily,{CODE:y.CODE,SUPERSCRIPT:y.SUPERSCRIPT,SUBSCRIPT:y.SUBSCRIPT})}},function(e,t){e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!(0,s.isListBlock)(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return(0,l.insertNewUnstyledBlock)(e);if((0,s.isListBlock)(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return(0,l.removeSelectedBlocksStyle)(e);if(i>0)return(0,s.changeDepth)(e,-1,i)}}}function o(e){return 13===e.which&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}function i(e,t){return o(t)?e.getSelection().isCollapsed()?a.RichUtils.insertSoftNewline(e):(0,l.addLineBreakRemovingSelection)(e):r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(0),l=n(1),s=n(2)}]))},61767:function(e,t,n){"use strict";var r=n(92421),o=n(88408),i=n(840),a=new RegExp("\r\n","g"),l={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return l[e]}))},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},e.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},e.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(s).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.prototype.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=c},43058:function(e){"use strict";e.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}},92421:function(e){"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},17219:function(e){"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},9026:function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(46989),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},71495:function(e){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;\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]"}}},92636:function(e){"use strict";var t=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},13014:function(e,t,n){"use strict";var r=n(47821),o=n(87405),i="\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",a="\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",l=new RegExp("["+"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-\u0
2ab9\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"+i+a+"]"),s=new RegExp("["+i+a+"]");function c(e){var t=l.exec(e);return null==t?null:t[0]}function u(e){var t=c(e);return null==t?r.NEUTRAL:s.exec(t)?r.RTL:r.LTR}function f(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function d(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),f(e,t)}var p={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===r.LTR},isDirectionRTL:function(e,t){return d(e,t)===r.RTL}};e.exports=p},47821:function(e,t,n){"use strict";var r=n(87405),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function l(e){return a(e)||r(!1),e===o?"ltr":"rtl"}function s(e){i=e}var c={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:l,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:l(e)},setGlobalDir:s,initGlobalDir:function(){s(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};e.exports=c},56757:function(e,t,n){"use strict";var r=n(13014),o=n(47821),i=n(87405),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?o.isStrong(t)||i(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=a},82577:function(e,t,n){"use strict";var r=n(87405),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function l(e,t){return 1+i(e.charCodeAt(t))}function s(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=l(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=l(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=l(e,i);return e.substring(o,i)}var c={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=l(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:l,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=l(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return s(e,t=t<n?t:n,r)},substr:s};e.exports=c},18258:function(e,t,n){"use strict";var r=n(7894),o=n(73729),i=n(7972),a=n(63786);function l(e,t,n,r){if(e===n)return!0;
2if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function s(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var c={isBrowser:function(e){return l(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return l(r.browserArchitecture,null,e)},isDevice:function(e){return l(r.deviceName,null,e)},isEngine:function(e){return l(r.engineName,r.engineVersion,e)},isPlatform:function(e){return l(r.platformName,r.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return l(r.platformArchitecture,null,e)}};e.exports=i(c,a)},7894:function(e,t,n){"use strict";var r=n(91318),o="Unknown",i={"Mac OS":"Mac OS X"};var a,l=(new r).getResult(),s=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(l.browser.version),c={browserArchitecture:l.cpu.architecture||o,browserFullVersion:l.browser.version||o,browserMinorVersion:s.minor||o,browserName:l.browser.name||o,browserVersion:l.browser.major||o,deviceName:l.device.model||o,engineName:l.engine.name||o,engineVersion:l.engine.version||o,platformArchitecture:l.cpu.architecture||o,platformName:(a=l.os.name,i[a]||a||o),platformVersion:l.os.version||o,platformFullVersion:l.os.version||o};e.exports=c},73729:function(e,t,n){"use strict";var r=n(87405),o=/\./,i=/\|\|/,a=/\s+\-\s+/,l=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function c(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return A.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],t);var o=n[0],i=n[1];return g(o)&&g(i)||r(!1),u(">="+o,t)&&u("<="+i,t)}(e=n[0].trim(),t)}function u(e,t){if(""===(e=e.trim()))return!0;var n=t.split(o),r=p(e),i=r.modifier,a=r.rangeComponents;switch(i){case"<":return f(n,a);case"<=":return function(e,t){var n=b(e,t);
2return-1===n||0===n}(n,a);case">=":return d(n,a);case">":return 1===b(n,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return d(e,n)&&f(e,r)}(n,a);default:return function(e,t){return 0===b(e,t)}(n,a)}}function f(e,t){return-1===b(e,t)}function d(e,t){var n=b(e,t);return 1===n||0===n}function p(e){var t=e.split(o),n=t[0].match(l);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function g(e){return!p(e).modifier}function m(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function y(e,t){var n=e.match(s)[1],r=t.match(s)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?v(o,i):v(e,t)}function v(e,t){return typeof e!==typeof t&&r(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){m(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return m(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=y(r[i],o[i]);if(a)return a}return 0}var A={contains:function(e,t){return c(e.trim(),t.trim())}};e.exports=A},74700:function(e){"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},42804:function(e,t,n){"use strict";var r=n(35186);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},88408:function(e,t,n){"use strict";var r=n(87405);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!==typeof e&&"function"!==typeof e)&&r(!1),"number"!==typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"===typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(i){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},37827:function(e){"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},840:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},13459:function(e){"use strict";e.exports=function(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},26935:function(e){"use strict";var t="undefined"!==typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},21604:function(e,t,n){"use strict";var r=n(48967);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},48967:function(e,t,n){"use strict";var r=n(42804);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},37541:function(e,t,n){"use strict";var r=n(26935),o=n(24536);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,l=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,l)),n}},46989:function(e,t,n){"use strict";var r=n(74700),o=n(68415);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},24536:function(e){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},39349:function(e){"use strict";function t(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},68415:function(e){"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},87405:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},76736:function(e){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"===typeof t.Node?e instanceof t.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}},35186:function(e,t,n){"use strict";var r=n(76736);e.exports=function(e){return r(e)&&3==e.nodeType}},66005:function(e){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r<n;r++)(t=arguments[r])&&(e=(e?e+" ":"")+t);return e}},7972:function(e){"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=n.call(r,e[i],i,e));return o}},63786:function(e){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},45338:function(e){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},47617:function(e,t,n){"use strict";n(39e3),e.exports=n.g.setImmediate},15986:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:W(e)}function r(e){return l(e)?e:G(e)}function o(e){return s(e)?e:Y(e)}function i(e){return a(e)&&!c(e)?e:J(e)}function a(e){return!(!e||!e[f])}function l(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function c(e){return l(e)||s(e)}function u(e){return!(!e||!e[h])}
2t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,y=1<<m,v=y-1,b={},A={value:!1},E={value:!1};function w(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function k(){}function x(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function C(e){return void 0===e.size&&(e.size=e.__iterate(I)),e.size}function _(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function I(){return!0}function O(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return B(e,t,0)}function M(e,t){return B(e,t,t)}function B(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,L=1,N=2,F="function"===typeof Symbol&&Symbol.iterator,R="@@iterator",P=F||R;function K(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function U(){return{value:void 0,done:!0}}function j(e){return!!q(e)}function H(e){return e&&"function"===typeof e.next}function V(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(F&&e[F]||e[R]);if("function"===typeof t)return t}function Q(e){return e&&"number"===typeof e.length}function W(e){return null===e||void 0===e?ae():a(e)?e.toSeq():ce(e)}function G(e){return null===e||void 0===e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function Y(e){return null===e||void 0===e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function J(e){return(null===e||void 0===e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}K.prototype.toString=function(){return"[Iterator]"},K.KEYS=D,K.VALUES=L,K.ENTRIES=N,K.prototype.inspect=K.prototype.toSource=function(){return this.toString()},K.prototype[P]=function(){return this},t(W,n),W.of=function(){return W(arguments)},W.prototype.toSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq {","}")},W.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},W.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},W.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(G,W),G.prototype.toKeyedSeq=function(){return this},t(Y,W),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(J,W),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},W.isSeq=ie,W.Keyed=G,W.Set=J,W.Indexed=Y;
vendor: 7,743 bytes, line 2
2var X,Z,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():H(e)?new oe(e).fromEntrySeq():j(e)?new re(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return Q(e)?new te(e):H(e)?new oe(e):j(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new K((function(){var e=o[n?i-a:a];return a++>i?U():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Y(t).map((function(n,r){return he(e,n,r,t)}))):me(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Y(e).map(ge).toList():me(e)?G(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ye(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ye(o[1],e)&&(n||ye(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ye(t,e.get(r,b)):!ye(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Z)return Z;Z=this}}function Ae(e,t){if(!e)throw new Error(t)}function Ee(e,t,n){if(!(this instanceof Ee))return new Ee(e,t,n);if(Ae(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function we(){throw TypeError("Abstract")}function Se(){}function ke(){}function xe(){}W.prototype[ee]=!0,t(te,Y),te.prototype.get=function(e,t){return this.has(e)?this._array[_(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new K((function(){return o>r?U():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new K((function(){var a=r[t?o-i:i];return i++>o?U():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._iterable),r=0;if(H(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._iterable);if(!H(n))return new K(U);var r=0;return new K((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Y),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new K((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Y),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ye(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return O(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ye(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ye(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new K((function(){return r<n.size?z(e,r++,n._value):U()}))},be.prototype.equals=function(e){return e instanceof be?ye(this._value,e._value):ve(e)},t(Ee,Y),Ee.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ee.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},Ee.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Ee.prototype.slice=function(e,t){return O(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new Ee(0,0):new Ee(this.get(e,this._end),this.get(t,this._end),this._step))},Ee.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Ee.prototype.lastIndexOf=function(e){return this.indexOf(e)},Ee.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Ee.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new K((function(){var a=o;return o+=t?-r:r,i>n?U():z(e,i++,a)}))},Ee.prototype.equals=function(e){return e instanceof Ee?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(we,n),t(Se,we),t(ke,we),t(xe,we),we.Keyed=Se,we.Indexed=ke,we.Set=xe;var Ce="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function _e(e){return e>>>1&1073741824|3221225471&e}function Ie(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return _e(n)}if("string"===t)return e.length>Ke?Oe(e):Te(e);
2if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"===typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Oe(e){var t=je[e];return void 0===t&&(t=Te(e),Ue===ze&&(Ue=0,je={}),Ue++,je[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return _e(t)}function Me(e){var t;if(Fe&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Pe]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pe]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Re,1073741824&Re&&(Re=0),Fe)Ne.set(e,t);else{if(void 0!==Be&&!1===Be(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Pe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pe]=t}}return t}var Be=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,Fe="function"===typeof WeakMap;Fe&&(Ne=new WeakMap);var Re=0,Pe="__immutablehash__";"function"===typeof Symbol&&(Pe=Symbol(Pe));var Ke=16,ze=255,Ue=0,je={};function He(e){Ae(e!==1/0,"Cannot perform this action with an infinite size.")}function Ve(e){return null===e||void 0===e?ot():qe(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function qe(e){return!(!e||!e[We])}t(Ve,Se),Ve.prototype.toString=function(){return this.__toString("Map {","}")},Ve.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ve.prototype.set=function(e,t){return it(this,e,t)},Ve.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ve.prototype.remove=function(e){return it(this,e,b)},Ve.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ve.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ve.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,wn(e),t,n);return r===b?void 0:r},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ve.prototype.merge=function(){return dt(this,void 0,arguments)},Ve.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ve.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ve.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ve.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ve.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ve.prototype.sort=function(e){return jt(fn(this,e))},Ve.prototype.sortBy=function(e,t){return jt(fn(this,t,e))},Ve.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ve.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Ve.prototype.asImmutable=function(){return this.__ensureOwner()},Ve.prototype.wasAltered=function(){return this.__altered},Ve.prototype.__iterator=function(e,t){return new et(this,e,t)},Ve.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ve.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ve.isMap=qe;
vendor: 13,758 bytes, line 2
2var Qe,We="@@__IMMUTABLE_MAP__@@",Ge=Ve.prototype;function Ye(e,t){this.ownerID=e,this.entries=t}function Je(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return Qe||(Qe=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=w(A),a=w(E);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ye(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===b?e:(S(l),S(a),new $e(t,r,[o,i]))}function lt(e){return e.constructor===$e||e.constructor===Ze}function st(e,t,n,r,o){if(e.keyHash===r)return new Ze(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&v,l=(0===n?r:r>>>n)&v;return new Je(t,1<<a|1<<l,a===l?[st(e,t,n+m,r,o)]:(i=new $e(t,r,o),a<l?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new k);for(var o=new $e(e,Ie(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var u=t[l];void 0!==u&&l!==r&&(o|=s,a[i++]=u)}return new Je(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(y),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=r(l);a(l)||(s=s.map((function(e){return pe(e)}))),o.push(s)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ye(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ye(t,o)?t:o}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function mt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}Ae(o||e&&e.set,"invalid keyPath");var s=i.value,c=o?b:e.get(s,b),u=mt(c,t,n,r);return u===c?e:u===b?e.remove(s):(o?ot():e).set(s,u)}function yt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function vt(e,t,n,r){var o=r?e:x(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function At(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[We]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ye.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Ye.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===b,s=this.entries,c=0,u=s.length;c<u&&!ye(r,s[c][0]);c++);var f=c<u;if(f?s[c][1]===o:l)return this;if(S(a),(l||!f)&&S(i),!l||1!==s.length){if(!f&&!l&&s.length>=Et)return ct(e,s,r,o);var d=e&&e===this.ownerID,p=d?s:x(s);return f?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ye(e,p)}},Je.prototype.get=function(e,t,n,r){void 0===t&&(t=Ie(n));var o=1<<((0===e?t:t>>>e)&v),i=this.bitmap;return 0===(i&o)?r:this.nodes[yt(i&o-1)].get(e+m,t,n,r)},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ie(r));var l=(0===t?n:n>>>t)&v,s=1<<l,c=this.bitmap,u=0!==(c&s);if(!u&&o===b)return this;var f=yt(c&s-1),d=this.nodes,p=u?d[f]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!u&&h&&d.length>=wt)return ft(e,d,c,l,h);if(u&&!h&&2===d.length&<(d[1^f]))return d[1^f];if(u&&h&&1===d.length&<(h))return h;var g=e&&e===this.ownerID,y=u?h?c:c^s:c|s,A=u?h?vt(d,f,h,g):At(d,f,g):bt(d,f,h,g);return g?(this.bitmap=y,this.nodes=A,this):new Je(e,y,A)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Ie(n));var o=(0===e?t:t>>>e)&v,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ie(r));var l=(0===t?n:n>>>t)&v,s=o===b,c=this.nodes,u=c[l];if(s&&!u)return this;var f=at(u,e,t+m,n,r,o,i,a);if(f===u)return this;var d=this.count;if(u){if(!f&&--d<St)return ut(e,c,d,l)}else d++;var p=e&&e===this.ownerID,h=vt(c,l,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Ie(r));var l=o===b;if(n!==this.keyHash)return l?this:(S(a),S(i),st(this,e,t,n,[r,o]));for(var s=this.entries,c=0,u=s.length;c<u&&!ye(r,s[c][0]);c++);var f=c<u;if(f?s[c][1]===o:l)return this;if(S(a),(l||!f)&&S(i),l&&2===u)return new $e(e,this.keyHash,s[1^c]);var d=e&&e===this.ownerID,p=d?s:x(s);return f?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ze(e,this.keyHash,p)},$e.prototype.get=function(e,t,n,r){return ye(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,o,i,a){var l=o===b,s=ye(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(S(a),l?void S(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new $e(e,this.keyHash,[r,o]):(S(i),st(this,e,t,Ie(r),[r,o])))},Ye.prototype.iterate=Ze.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Je.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,K),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return U()};var Et=y/4,wt=y/2,St=y/4;function kt(e){var t=Lt();if(null===e||void 0===e)return t;if(xt(e))return e;var n=o(e),r=n.size;return 0===r?t:(He(r),r>0&&r<y?Dt(0,r,m,null,new It(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function xt(e){return!(!e||!e[Ct])}t(kt,ke),kt.of=function(){return this(arguments)},kt.prototype.toString=function(){return this.__toString("List [","]")},kt.prototype.get=function(e,t){if((e=_(this,e))>=0&&e<this.size){var n=Pt(this,e+=this._origin);return n&&n.array[e&v]}return t},kt.prototype.set=function(e,t){return Nt(this,e,t)},kt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},kt.prototype.insert=function(e,t){return this.splice(e,0,t)},kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Lt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Kt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},kt.prototype.pop=function(){return Kt(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Kt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},kt.prototype.shift=function(){return Kt(this,1)},kt.prototype.merge=function(){return zt(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return zt(this,pt,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},kt.prototype.setSize=function(e){return Kt(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return O(e,t,n)?this:Kt(this,T(e,n),M(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=Bt(this,t);return new K((function(){var t=r();return t===Mt?U():z(e,n++,t)}))},kt.prototype.__iterate=function(e,t){for(var n,r=0,o=Bt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},kt.isList=xt;var Ct="@@__IMMUTABLE_LIST__@@",_t=kt.prototype;function It(e,t){this.array=e,this.ownerID=t}_t[Ct]=!0,_t[g]=_t.remove,_t.setIn=Ge.setIn,_t.deleteIn=_t.removeIn=Ge.removeIn,_t.update=Ge.update,_t.updateIn=Ge.updateIn,_t.mergeIn=Ge.mergeIn,_t.mergeDeepIn=Ge.mergeDeepIn,_t.withMutations=Ge.withMutations,_t.asMutable=Ge.asMutable,_t.asImmutable=Ge.asImmutable,_t.wasAltered=Ge.wasAltered,It.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new It([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var l=Rt(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},It.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&v;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=Rt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Ot,Tt,Mt={};function Bt(e,t){var n=e._origin,r=e._capacity,o=Ut(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>y&&(c=y),function(){if(s===c)return Mt;var e=t?--c:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);return u>y&&(u=y),function(){for(;;){if(l){var e=l();if(e!==Mt)return e;l=null}if(c===u)return Mt;var n=t?--u:c++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var l=Object.create(_t);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function Lt(){return Ot||(Ot=Dt(0,0,m))}function Nt(e,t,n){if((t=_(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Kt(e,t).set(0,n):Kt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=w(E);return t>=Ut(e._capacity)?r=Ft(r,e.__ownerID,0,t,n,i):o=Ft(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Ft(e,t,n,r,o,i){var a,l=r>>>n&v,s=e&&l<e.array.length;if(!s&&void 0===o)return e;if(n>0){var c=e&&e.array[l],u=Ft(c,t,n-m,r,o,i);return u===c?e:((a=Rt(e,t)).array[l]=u,a)}return s&&e.array[l]===o?e:(S(i),a=Rt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function Rt(e,t){return t&&e&&t===e.ownerID?e:new It(e?e.array.slice():[],t)}function Pt(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=m;return n}}function Kt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,u=0;a+u<0;)c=new It(c&&c.array.length?[void 0,c]:[],r),u+=1<<(s+=m);u&&(a+=u,o+=u,l+=u,i+=u);for(var f=Ut(i),d=Ut(l);d>=1<<s+m;)c=new It(c&&c.array.length?[c]:[],r),s+=m;var p=e._tail,h=d<f?Pt(e,l-1):d>f?new It([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=c=Rt(c,r),y=s;y>m;y-=m){var b=f>>>y&v;g=g.array[b]=Rt(g.array[b],r)}g.array[f>>>m&v]=p}if(l<i&&(h=h&&h.removeAfter(r,0,l)),a>=d)a-=d,l-=d,s=m,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(u=0;c;){var A=a>>>s&v;if(A!==d>>>s&v)break;A&&(u+=(1<<s)*A),s-=m,c=c.array[A]}c&&a>o&&(c=c.removeBefore(r,s,a-u)),c&&d<f&&(c=c.removeAfter(r,s,d-u)),u&&(a-=u,l-=u)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,l,s,c,h)}function zt(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],c=o(s);c.size>i&&(i=c.size),a(s)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ut(e){return e<y?0:e-1>>>m<<m}function jt(e){return null===e||void 0===e?qt():Ht(e)?e:qt().withMutations((function(t){var n=r(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ht(e){return qe(e)&&u(e)}function Vt(e,t,n,r){var o=Object.create(jt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function qt(){return Tt||(Tt=Vt(ot(),Lt()))}function Qt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===b){if(!s)return e;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Vt(r,o)}function Wt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Jt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);
vendor: 27,699 bytes, line 2
2return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=An,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===N){var r=e.__iterator(t,n);return new K((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?D:L,n)},t}function Zt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(N,o);return new K((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return z(r,l,t.call(n,a[1],l,e),o)}))},r}function $t(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=An,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(N,i),l=0;return new K((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],u=s[1];if(t.call(n,u,c,e))return z(o,r?c:l++,u,i)}}))},o}function tn(e,t,n){var r=Ve().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),o=(u(e)?jt():Ve()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=vn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),O(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!==i||a!==a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s===s&&(l=s<0?0:s);var c=bn(e);return c.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(c.get=function(t,n){return(t=_(this,t))>=0&&t<l?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==l})),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new K((function(){for(;a++<i;)o.next();if(++s>l)return U();var e=o.next();return r||t===L?e:z(t,s-1,t===D?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(N,o),l=!0;return new K((function(){if(!l)return U();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,i)?r===N?e:z(r,s,c,e):(l=!1,U())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate((function(e,i,c){if(!l||!(l=t.call(n,e,i,c)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(N,i),s=!0,c=0;return new K((function(){var e,i,u;do{if((e=l.next()).done)return r||o===L?e:z(o,c++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],u=f[1],s&&(s=t.call(n,u,i,a))}while(s);return o===N?e:z(o,i,u,e)}))},o}function ln(e,t){var n=l(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||s(e)&&s(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,c){var u=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?o:i++,u)&&(l=!0),!l}),o)}return s(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],s=0;return new K((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===N&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:z(r,s++,c,e);l.push(i),i=c.__iterator(r,o)}else i=l.pop()}return U()}))},r}function cn(e,t,n){var r=vn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new K((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=En);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):s(e)?Y(i):J(i)}function dn(e,t,n){if(t||(t=En),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),V(o?e.reverse():e)})),a=0,l=!1;return new K((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?U():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yn(e){return He(e.size),C(e)}function vn(e){return l(e)?r:s(e)?o:i}function bn(e){return Object.create((l(e)?G:s(e)?Y:J).prototype)}function An(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function En(e,t){return e>t?1:e<t?-1:0}function wn(e){var t=V(e);if(!t){if(!Q(e))throw new TypeError("Expected iterable or array-like: "+e);t=V(n(e))}return t}function Sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);_n(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ve(i)},o=r.prototype=Object.create(kn);return o.constructor=r,r}t(jt,Ve),jt.of=function(){return this(arguments)},jt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},jt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qt()},jt.prototype.set=function(e,t){return Qt(this,e,t)},jt.prototype.remove=function(e){return Qt(this,e,b)},jt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},jt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},jt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},jt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Vt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},jt.isOrderedMap=Ht,jt.prototype[h]=!0,jt.prototype[g]=jt.prototype.remove,t(Wt,G),Wt.prototype.get=function(e,t){return this._iter.get(e,t)},Wt.prototype.has=function(e){return this._iter.has(e)},Wt.prototype.valueSeq=function(){return this._iter.valueSeq()},Wt.prototype.reverse=function(){var e=this,t=$t(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Wt.prototype.map=function(e,t){var n=this,r=Zt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Wt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?yn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Wt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?yn(this):0;return new K((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Wt.prototype[h]=!0,t(Gt,Y),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new K((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Yt,J),Yt.prototype.has=function(e){return this._iter.includes(e)},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new K((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Jt,G),Jt.prototype.entrySeq=function(){return this._iter.toSeq()},Jt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Jt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new K((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=Wt.prototype.cacheResult=Yt.prototype.cacheResult=Jt.prototype.cacheResult=An,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=xn(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:xn(this,n)},Sn.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:xn(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?xn(this,t,e):(this.__ownerID=e,this._map=t,this)};var kn=Sn.prototype;function xn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Cn(e){return e._name||e.constructor.name||"Record"}function _n(e,t){try{t.forEach(In.bind(void 0,e))}catch(n){}}function In(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ae(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function On(e){return null===e||void 0===e?Fn():Tn(e)&&!u(e)?e:Fn().withMutations((function(t){var n=i(e);He(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Bn])}kn[g]=kn.remove,kn.deleteIn=kn.removeIn=Ge.removeIn,kn.merge=Ge.merge,kn.mergeWith=Ge.mergeWith,kn.mergeIn=Ge.mergeIn,kn.mergeDeep=Ge.mergeDeep,kn.mergeDeepWith=Ge.mergeDeepWith,kn.mergeDeepIn=Ge.mergeDeepIn,kn.setIn=Ge.setIn,kn.update=Ge.update,kn.updateIn=Ge.updateIn,kn.withMutations=Ge.withMutations,kn.asMutable=Ge.asMutable,kn.asImmutable=Ge.asImmutable,t(On,xe),On.of=function(){return this(arguments)},On.fromKeys=function(e){return this(r(e).keySeq())},On.prototype.toString=function(){return this.__toString("Set {","}")},On.prototype.has=function(e){return this._map.has(e)},On.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},On.prototype.remove=function(e){return Ln(this,this._map.remove(e))},On.prototype.clear=function(){return Ln(this,this._map.clear())},On.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},On.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},On.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},On.prototype.merge=function(){return this.union.apply(this,arguments)},On.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},On.prototype.sort=function(e){return Rn(fn(this,e))},On.prototype.sortBy=function(e,t){return Rn(fn(this,t,e))},On.prototype.wasAltered=function(){return this._map.wasAltered()},On.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},On.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},On.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)},On.isSet=Tn;var Mn,Bn="@@__IMMUTABLE_SET__@@",Dn=On.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Nn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Fn(){return Mn||(Mn=Nn(ot()))}function Rn(e){return null===e||void 0===e?jn():Pn(e)?e:jn().withMutations((function(t){var n=i(e);He(n.size),n.forEach((function(e){return t.add(e)}))}))}function Pn(e){return Tn(e)&&u(e)}Dn[Bn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Fn,Dn.__make=Nn,t(Rn,On),Rn.of=function(){return this(arguments)},Rn.fromKeys=function(e){return this(r(e).keySeq())},Rn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Rn.isOrderedSet=Pn;var Kn,zn=Rn.prototype;function Un(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function jn(){return Kn||(Kn=Un(qt()))}function Hn(e){return null===e||void 0===e?Yn():Vn(e)?e:Yn().unshiftAll(e)}function Vn(e){return!(!e||!e[Qn])}zn[h]=!0,zn.__empty=jn,zn.__make=Un,t(Hn,ke),Hn.of=function(){return this(arguments)},Hn.prototype.toString=function(){return this.__toString("Stack [","]")},Hn.prototype.get=function(e,t){var n=this._head;for(e=_(this,e);n&&e--;)n=n.next;return n?n.value:t},Hn.prototype.peek=function(){return this._head&&this._head.value},Hn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Hn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;He(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Hn.prototype.pop=function(){return this.slice(1)},Hn.prototype.unshift=function(){return this.push.apply(this,arguments)},Hn.prototype.unshiftAll=function(e){return this.pushAll(e)},Hn.prototype.shift=function(){return this.pop.apply(this,arguments)},Hn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Yn()},Hn.prototype.slice=function(e,t){if(O(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Hn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Hn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Hn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new K((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return U()}))},Hn.isStack=Vn;var qn,Qn="@@__IMMUTABLE_STACK__@@",Wn=Hn.prototype;function Gn(e,t,n,r){var o=Object.create(Wn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Yn(){return qn||(qn=Gn(0))}function Jn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Wn[Qn]=!0,Wn.withMutations=Ge.withMutations,Wn.asMutable=Ge.asMutable,Wn.asImmutable=Ge.asImmutable,Wn.wasAltered=Ge.wasAltered,n.Iterator=K,Jn(n,{toArray:function(){He(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Wt(this,!0)},toMap:function(){return Ve(this.toKeyedSeq())},toObject:function(){He(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return Rn(l(this)?this.valueSeq():this)},toSet:function(){return On(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Yt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Hn(l(this)?this.valueSeq():this)},toList:function(){return kt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ye(t,e)}))},entries:function(){return this.__iterator(N)},every:function(e,t){He(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return He(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){He(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Zt(this,e,t))},reduce:function(e,t,n){var r,o;return He(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,$t(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(I)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Jt(this)},get:function(e,t){return this.find((function(t,n){return ye(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=wn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[P]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))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){}}(),Jn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ye(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ye(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Zn=r.prototype;function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"===typeof e?JSON.stringify(e):e}function or(){return x(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=l(e),r=t?1:0;return lr(e.__iterate(n?t?function(e,t){r=31*r+sr(Ie(e),Ie(t))|0}:function(e,t){r=r+sr(Ie(e),Ie(t))|0}:t?function(e){r=31*r+Ie(e)|0}:function(e){r=r+Ie(e)|0}),r)}function lr(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=_e((t=Ce(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Zn[d]=!0,Zn[P]=Xn.entries,Zn.__toJS=Xn.toObject,Zn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Jn(o,{toKeyedSeq:function(){return new Wt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,$t(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(x(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,sn(this,e,!1))},get:function(e,t){return(e=_(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=_(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(x(arguments)),t=hn(this.toSeq(),Y.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(x(arguments))))},zipWith:function(e){var t=x(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Jn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Jn(G,r.prototype),Jn(Y,o.prototype),Jn(J,i.prototype),Jn(Se,r.prototype),Jn(ke,o.prototype),Jn(xe,i.prototype),{Iterable:n,Seq:W,Collection:we,Map:Ve,OrderedMap:jt,List:kt,Stack:Hn,Set:On,OrderedSet:
2Rn,Record:Sn,Range:Ee,Repeat:be,is:ye,fromJS:pe}}()},36993:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},29845:function(e,t,n){"use strict";var r=n(71843),o=n(47313);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=60106,l=60107,s=60108,c=60114,u=60109,f=60110,d=60112,p=60113,h=60120,g=60115,m=60116,y=60121,v=60117,b=60119,A=60129,E=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;a=w("react.portal"),l=w("react.fragment"),s=w("react.strict_mode"),c=w("react.profiler"),u=w("react.provider"),f=w("react.context"),d=w("react.forward_ref"),p=w("react.suspense"),h=w("react.suspense_list"),g=w("react.memo"),m=w("react.lazy"),y=w("react.block"),v=w("react.fundamental"),b=w("react.scope"),A=w("react.debug_trace_mode"),E=w("react.legacy_hidden")}function S(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case l:return"Fragment";case a:return"Portal";case c:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case f:return(e.displayName||"Context")+".Consumer";case u:return(e._context.displayName||"Context")+".Provider";case d:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case g:return S(e.type);case y:return S(e._render);case m:t=e._payload,e=e._init;try{return S(e(t))}catch(n){}}return null}var k=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x={};function C(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var _=new Uint16Array(16),I=0;15>I;I++)_[I]=I+1;_[15]=0;var O=/^[: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]*$/,T=Object.prototype.hasOwnProperty,M={},B={};function D(e){return!!T.call(B,e)||!T.call(M,e)&&(O.test(e)?B[e]=!0:(M[e]=!0,!1))}function L(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){N[e]=new L(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];N[t]=new L(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){N[e]=new L(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){N[e]=new L(e,2,!1,e,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(e){N[e]=new L(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){N[e]=new L(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){N[e]=new L(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){N[e]=new L(e,6,!1,e,null,!1,!1)}
vendor: 13,061 bytes, line 2
2)),["rowSpan","start"].forEach((function(e){N[e]=new L(e,5,!1,e.toLowerCase(),null,!1,!1)}));var F=/[\-:]([a-z])/g;function R(e){return e[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(e){var t=e.replace(F,R);N[t]=new L(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(F,R);N[t]=new L(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(F,R);N[t]=new L(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){N[e]=new L(e,1,!1,e.toLowerCase(),null,!1,!1)})),N.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){N[e]=new L(e,1,!1,e.toLowerCase(),null,!0,!0)}));var P=/["'&<>]/;function K(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=P.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}function z(e,t){var n,r=N.hasOwnProperty(e)?N[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+K(t)+'"')):D(e)?e+'="'+K(t)+'"':""}var U="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},j=null,H=null,V=null,q=!1,Q=!1,W=null,G=0;function Y(){if(null===j)throw Error(i(321));return j}function J(){if(0<G)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function X(){return null===V?null===H?(q=!1,H=V=J()):(q=!0,V=H):null===V.next?(q=!1,V=V.next=J()):(q=!0,V=V.next),V}function Z(e,t,n,r){for(;Q;)Q=!1,G+=1,V=null,n=e(t,r);return $(),n}function $(){j=null,Q=!1,H=null,G=0,V=W=null}function ee(e,t){return"function"===typeof t?t(e):t}function te(e,t,n){if(j=Y(),V=X(),q){var r=V.queue;if(t=r.dispatch,null!==W&&void 0!==(n=W.get(r))){W.delete(r),r=V.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return V.memoizedState=r,[r,t]}return[V.memoizedState,t]}return e=e===ee?"function"===typeof t?t():t:void 0!==n?n(t):t,V.memoizedState=e,e=(e=V.queue={last:null,dispatch:null}).dispatch=re.bind(null,j,e),[V.memoizedState,e]}function ne(e,t){if(j=Y(),t=void 0===t?null:t,null!==(V=X())){var n=V.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!U(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),V.memoizedState=[e,t],e}function re(e,t,n){if(!(25>G))throw Error(i(301));if(e===j)if(Q=!0,e={action:n,next:null},null===W&&(W=new Map),void 0===(n=W.get(t)))W.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function oe(){}var ie=null,ae={readContext:function(e){var t=ie.threadID;return C(e,t),e[t]},useContext:function(e){Y();var t=ie.threadID;return C(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){j=Y();var t=(V=X()).memoizedState;return null===t?(e={current:e},V.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useDeferredValue:function(e){return Y(),e},useTransition:function(){return Y(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(ie.identifierPrefix||"")+"R:"+(ie.uniqueID++).toString(36)},useMutableSource:function(e,t){return Y(),t(e._source)}},le="http://www.w3.org/1999/xhtml";function se(e){switch(e){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 ce={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},ue=r({menuitem:!0},ce),fe={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},de=["Webkit","ms","Moz","O"];Object.keys(fe).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var pe=/([A-Z])/g,he=/^ms-/,ge=o.Children.toArray,me=k.ReactCurrentDispatcher,ye={listing:!0,pre:!0,textarea:!0},ve=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,be={},Ae={};var Ee=Object.prototype.hasOwnProperty,we={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,S(t)||"Component"))}function ke(e,t,n){function a(o,a){var l=a.prototype&&a.prototype.isReactComponent,s=function(e,t,n,r){if(r&&"object"===typeof(r=e.contextType)&&null!==r)return C(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=x;return t}(a,t,n,l),c=[],u=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(l){if(l=new a(o.props,s,f),"function"===typeof a.getDerivedStateFromProps){var d=a.getDerivedStateFromProps.call(null,o.props,l.state);null!=d&&(l.state=r({},l.state,d))}}else if(j={},l=a(o.props,s,f),null==(l=Z(a,o.props,l,s))||null==l.render)return void Se(e=l,a);if(l.props=o.props,l.context=s,l.updater=f,void 0===(f=l.state)&&(l.state=f=null),"function"===typeof l.UNSAFE_componentWillMount||"function"===typeof l.componentWillMount)if("function"===typeof l.componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&l.componentWillMount(),"function"===typeof l.UNSAFE_componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&l.UNSAFE_componentWillMount(),c.length){f=c;var p=u;if(c=null,u=!1,p&&1===f.length)l.state=f[0];else{d=p?f[0]:l.state;var h=!0;for(p=p?1:0;p<f.length;p++){var g=f[p];null!=(g="function"===typeof g?g.call(l,d,o.props,s):g)&&(h?(h=!1,d=r({},d,g)):r(d,g))}l.state=d}}else c=null;if(Se(e=l.render(),a),"function"===typeof l.getChildContext&&"object"===typeof(o=a.childContextTypes)){var m=l.getChildContext();for(var y in m)if(!(y in o))throw Error(i(108,S(a)||"Unknown",y))}m&&(t=r({},t,m))}for(;o.isValidElement(e);){var l=e,s=l.type;if("function"!==typeof s)break;a(l,s)}return{child:e,context:t}}var xe=function(){function e(e,t,n){o.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=o.isValidElement(e)?[e]:ge(e)):e=ge(e),e={type:null,domNamespace:le,children:e,childIndex:0,context:x,footer:""};var r=_[0];if(0===r){var a=_,s=2*(r=a.length);if(!(65536>=s))throw Error(i(304));var c=new Uint16Array(s);for(c.set(a),(_=c)[0]=r+1,a=r;a<s-1;a++)_[a]=a+1;_[s-1]=0}else _[0]=_[r];this.threadID=r,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;_[e]=_[0],_[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;C(n,r);var o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ie;ie=this;var n=me.current;me.current=ae;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;_[a]=_[0],_[0]=a;break}var l=this.stack[this.stack.length-1];if(o||l.childIndex>=l.children.length){var s=l.footer;if(""!==s&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===l.type)this.currentSelectValue=null;else if(null!=l.type&&null!=l.type.type&&l.type.type.$$typeof===u)this.popProvider(l.type);else if(l.type===p){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var f=l.fallbackFrame;if(!f)throw Error(i(303));this.stack.push(f),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=s}else{var d=l.children[l.childIndex++],h="";try{h+=this.render(d,l.context,l.domNamespace)}catch(g){if(null!=g&&"function"===typeof g.then)throw Error(i(294));throw g}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=h}}return r[0]}finally{me.current=n,ie=t,$()}},t.render=function(e,t,n){if("string"===typeof e||"number"===typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?K(n):this.previousWasTextNode?"\x3c!-- --\x3e"+K(n):(this.previousWasTextNode=!0,K(n));if(e=(t=ke(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(i(257));throw Error(i(258,n.toString()))}return e=ge(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var y=e.type;if("string"===typeof y)return this.renderDOM(e,t,n);switch(y){case E:case A:case s:case c:case h:case l:return e=ge(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:throw Error(i(294));case b:throw Error(i(343))}if("object"===typeof y&&null!==y)switch(y.$$typeof){case d:j={};var w=y.render(e.props,e.ref);return w=Z(y.render,e.props,w,e.ref),w=ge(w),this.stack.push({type:null,domNamespace:n,children:w,childIndex:0,context:t,footer:""}),"";case g:return e=[o.createElement(y.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case u:return n={type:e,domNamespace:n,children:y=ge(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:y=e.type,w=e.props;var S=this.threadID;return C(y,S),y=ge(w.children(y[S])),this.stack.push({type:e,domNamespace:n,children:y,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(338));case m:return y=(w=(y=e.type)._init)(y._payload),e=[o.createElement(y,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(i(130,null==y?y:typeof y,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===le&&se(a),!be.hasOwnProperty(a)){if(!ve.test(a))throw Error(i(65,a));be[a]=!0}var l=e.props;if("input"===a)l=r({type:void 0},l,{defaultChecked:void 0,defaultValue:void 0,value:null!=l.value?l.value:l.defaultValue,checked:null!=l.checked?l.checked:l.defaultChecked});else if("textarea"===a){var s=l.value;if(null==s){s=l.defaultValue;var c=l.children;if(null!=c){if(null!=s)throw Error(i(92));
2if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}s=""+c}null==s&&(s="")}l=r({},l,{value:void 0,children:""+s})}else if("select"===a)this.currentSelectValue=null!=l.value?l.value:l.defaultValue,l=r({},l,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(void 0===e||null===e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l.children);if(null!=c){var f=null!=l.value?l.value+"":u;if(s=!1,Array.isArray(c)){for(var d=0;d<c.length;d++)if(""+c[d]===f){s=!0;break}}else s=""+c===f;l=r({selected:void 0,children:void 0},l,{selected:s,children:u})}}if(s=l){if(ue[a]&&(null!=s.children||null!=s.dangerouslySetInnerHTML))throw Error(i(137,a));if(null!=s.dangerouslySetInnerHTML){if(null!=s.children)throw Error(i(60));if("object"!==typeof s.dangerouslySetInnerHTML||!("__html"in s.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=s.style&&"object"!==typeof s.style)throw Error(i(62))}s=l,c=this.makeStaticMarkup,u=1===this.stack.length,f="<"+e.type;e:if(-1===a.indexOf("-"))d="string"===typeof s.is;else switch(a){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":d=!1;break e;default:d=!0}for(E in s)if(Ee.call(s,E)){var p=s[E];if(null!=p){if("style"===E){var h=void 0,g="",m="";for(h in p)if(p.hasOwnProperty(h)){var y=0===h.indexOf("--"),v=p[h];if(null!=v){if(y)var b=h;else if(b=h,Ae.hasOwnProperty(b))b=Ae[b];else{var A=b.replace(pe,"-$1").toLowerCase().replace(he,"-ms-");b=Ae[b]=A}g+=m+b+":",m=h,g+=y=null==v||"boolean"===typeof v||""===v?"":y||"number"!==typeof v||0===v||fe.hasOwnProperty(m)&&fe[m]?(""+v).trim():v+"px",m=";"}}p=g||null}h=null,d?we.hasOwnProperty(E)||(h=D(h=E)&&null!=p?h+'="'+K(p)+'"':""):h=z(E,p),h&&(f+=" "+h)}}c||u&&(f+=' data-reactroot=""');var E=f;s="",ce.hasOwnProperty(a)?E+="/>":(E+=">",s="</"+e.type+">");e:{if(null!=(c=l.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"===typeof(c=l.children)||"number"===typeof c){c=K(c);break e}c=null}return null!=c?(l=[],ye.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(E+="\n"),E+=c):l=ge(l.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?se(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:l,childIndex:0,context:t,footer:s}),this.previousWasTextNode=!1,E},e}();t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){e=new xe(e,!0,t);try{return e.read(1/0)}finally{e.destroy()}},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){e=new xe(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}},t.version="17.0.2"},84389:function(e,t,n){"use strict";e.exports=n(29845)},39e3:function(e,t,n){!function(e,t){"use strict";if(!e.setImmediate){var n,r=1,o={},i=!1,a=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},n=function(t){e.port2.postMessage(t)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var e=a.documentElement;n=function(t){var n=a.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():n=function(e){setTimeout(c,0,e)},l.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var a={callback:e,args:t};return o[r]=a,n(r),r++},l.clearImmediate=s}function s(e){delete o[e]}function c(e){if(i)setTimeout(c,0,e);else{var t=o[e];if(t){i=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{s(e),i=!1}}}}}("undefined"===typeof self?"undefined"===typeof n.g?this:n.g:self)},91318:function(e,t,n){var r;!function(o,i){"use strict";var a="function",l="undefined",s="object",c="string",u="major",f="model",d="name",p="type",h="vendor",g="version",m="architecture",y="console",v="mobile",b="tablet",A="smarttv",E="wearable",w="embedded",S="Amazon",k="Apple",x="ASUS",C="BlackBerry",_="Firefox",I="Google",O="Huawei",T="LG",M="Microsoft",B="Motorola",D="Opera",L="Samsung",N="Sharp",F="Sony",R="Xiaomi",P="Zebra",K="Facebook",z="Chromium OS",U="Mac OS",j=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===c&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===l?e:e.substring(0,350)},Q=function(e,t){for(var n,r,o,l,c,u,f=0;f<t.length&&!c;){var d=t[f],p=t[f+1];for(n=r=0;n<d.length&&!c&&d[n];)if(c=d[n++].exec(e))for(o=0;o<p.length;o++)u=c[++r],typeof(l=p[o])===s&&l.length>0?2===l.length?typeof l[1]==a?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==a||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):i:this[l[0]]=u?l[1].call(this,u,l[2]):i:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):i):this[l]=u||i;f+=2}},W=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(H(t[n][r],e))return"?"===n?i:n}else if(H(t[n],e))return"?"===n?i:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"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"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,g],[/opios[\/ ]+([\w\.]+)/i],[g,[d,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[g,[d,D]],[/(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|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[d,"
2UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],g],[/\bfocus\/([\w\.]+)/i],[g,[d,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[g,[d,_]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],g],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,K],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[d,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[g,W,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[d,"Firefox 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],[d,g],[/(cobalt)\/([\w\.]+)/i],[d,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,V]]],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],[f,[h,L],[p,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,L],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[h,k],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,k],[p,b]],[/(macintosh);/i],[f,[h,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,N],[p,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[h,O],[p,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,O],[p,v]],[/\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],[[f,/_/g," "],[h,R],[p,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[h,R],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,"OPPO"],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,"Vivo"],[p,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[h,"Realme"],[p,v]],[/\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],[f,[h,B],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,B],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,T],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,T],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[h,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[h,"Nokia"],[p,v]],[/(pixel c)\b/i],[f,[h,I],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,I],[p,v]],[/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],[f,[h,F],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[h,F],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,"OnePlus"],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,S],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[h,S],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,C],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,x],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,x],[p,v]],[/(nexus 9)/i],[f,[h,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g," "],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,"Meizu"],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 7,744 bytes, line 2
2s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[p,v]],[/(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],[h,f,[p,b]],[/(surface duo)/i],[f,[h,M],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,"Fairphone"],[p,v]],[/(u304aa)/i],[f,[h,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[f,[h,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[f,[h,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[f,[h,"NuVision"],[p,b]],[/\b(k88) b/i],[f,[h,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[f,[h,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[f,[h,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[f,[h,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[f,[h,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],f,[p,b]],[/\b(ns-?\w{0,9}) b/i],[f,[h,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],f,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],f,[p,v]],[/\b(ph-1) /i],[f,[h,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[f,[h,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[f,[h,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[f,[h,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[h,f,[p,v]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[h,M],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,P],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,P],[p,v]],[/smart-tv.+(samsung)/i],[h,[p,A]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[h,L],[p,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,T],[p,A]],[/(apple) ?tv/i],[h,[f,"Apple TV"],[p,A]],[/crkey/i],[[f,"Chromecast"],[h,I],[p,A]],[/droid.+aft(\w)( bui|\))/i],[f,[h,S],[p,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,N],[p,A]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,F],[p,A]],[/(mitv-\w{5}) bui/i],[f,[h,R],[p,A]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[p,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,q],[f,q],[p,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[p,y]],[/droid.+; (shield) bui/i],[f,[h,"Nvidia"],[p,y]],[/(playstation [345portablevi]+)/i],[f,[h,F],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,M],[p,y]],[/((pebble))app/i],[h,f,[p,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[h,k],[p,E]],[/droid.+; (glass) \d/i],[f,[h,I],[p,E]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,P],[p,E]],[/(quest( 2| pro)?)/i],[f,[h,K],[p,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,w]],[/(aeobc)\b/i],[f,[h,S],[p,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[d,"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,/\b(libweb)/i],[d,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[g,W,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[g,W,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,U],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,g],[/\(bb(10);/i],[g,[d,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[d,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,z],g],[/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],[d,g],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,g]]},J=function e(t,n){if(typeof t===s&&(n=t,t=i),!(this instanceof e))return new e(t,n).getResult();var r=typeof o!==l&&o.navigator?o.navigator:i,u=t||(r&&r.userAgent?r.userAgent:""),f=r&&r.userAgentData?r.userAgentData:i,d=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,n):Y,p=r&&r.userAgent==u;return this.getBrowser=function(){var e,t={};return t.name=i,t.version=i,Q.call(t,u,d.browser),t.major=typeof(e=t.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,p&&r&&r.brave&&typeof r.brave.isBrave==a&&(t.name="Brave"),t},this.getCPU=function(){var e={};return e.architecture=i,Q.call(e,u,d.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,Q.call(e,u,d.device),p&&!e.type&&f&&f.mobile&&(e.type=v),p&&"Macintosh"==e.model&&r&&typeof r.standalone!==l&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e.model="iPad",e.type=b),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,Q.call(e,u,d.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,Q.call(e,u,d.os),p&&!e.name&&f&&"Unknown"!=f.platform&&(e.name=f.platform.replace(/chrome os/i,z).replace(/macos/i,U)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return u},this.setUA=function(e){return u=typeof e===c&&e.length>350?q(e,350):e,this},this.setUA(u),this};J.VERSION="0.7.35",J.BROWSER=j([d,g,u]),J.CPU=j([m]),J.DEVICE=j([f,h,p,y,v,A,b,E,w]),J.ENGINE=J.OS=j([d,g]),typeof t!==l?(e.exports&&(t=e.exports=J),t.UAParser=J):n.amdO?(r=function(){return J}.call(t,n,t,e))===i||(e.exports=r):typeof o!==l&&(o.UAParser=J);var X=typeof o!==l&&(o.jQuery||o.Zepto);if(X&&!X.ua){var Z=new J;X.ua=Z.getResult(),X.ua.get=function(){return Z.getUA()},X.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"===typeof window?window:this)},50346:function(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.