(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9618],{68223:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(42360),i=r(85469),o=r.n(i),a=r(59880),u=r(30495),s=r(71162),c=r(41198),l=r(54489);let f=function(t,e){l.A&&!(0,c.Tn)(t)&&console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t));var r,i=(0,u.A)(t),f=null!==(r=null==e?void 0:e.wait)&&void 0!==r?r:1e3,h=(0,a.useMemo)(function(){return o()(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.current.apply(i,(0,n.__spreadArray)([],(0,n.__read)(t),!1))},f,e)},[]);return(0,s.A)(function(){h.cancel()}),{run:h,cancel:h.cancel,flush:h.flush}}},29646:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(30495),i=r(24787),o=r(21168);let a=function(t,e,r){void 0===r&&(r={});var a=(0,n.A)(e);(0,o.A)(function(){var e=(0,i.e)(r.target,window);if(null==e?void 0:e.addEventListener){var n=function(t){return a.current(t)};return e.addEventListener(t,n,{capture:r.capture,once:r.once,passive:r.passive}),function(){e.removeEventListener(t,n,{capture:r.capture})}}},[t,r.capture,r.once,r.passive],r.target)}},35456:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(42360),i=r(59880),o=r(44224);let a=function(t,e){var r=(0,n.__read)((0,i.useState)(t),2),a=r[0],u=r[1],s=(0,o.A)(function(){u(t)},e).run;return(0,i.useEffect)(function(){s()},[t]),a}},44224:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(42360),i=r(73646),o=r.n(i),a=r(59880),u=r(30495),s=r(71162),c=r(41198),l=r(54489);let f=function(t,e){l.A&&!(0,c.Tn)(t)&&console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t));var r,i=(0,u.A)(t),f=null!==(r=null==e?void 0:e.wait)&&void 0!==r?r:1e3,h=(0,a.useMemo)(function(){return o()(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.current.apply(i,(0,n.__spreadArray)([],(0,n.__read)(t),!1))},f,e)},[]);return(0,s.A)(function(){h.cancel()}),{run:h,cancel:h.cancel,flush:h.flush}}},33074:(t,e,r)=>{"use strict";function n(t){return"boolean"==typeof t}function i(t,e){for(var r=t.length-1;r>=0;r--)t[r]===e&&t.splice(r,1)}function o(t,e){for(var r=t.length-1;r>=0;r--)!0===e(t[r])&&t.splice(r,1)}function a(t){throw Error("Unhandled case for value: '".concat(t,"'"))}r.d(e,{Ay:()=>td});var u=/[A-Za-z]/,s=/[\d]/,c=/\s/,l=/['"]/,f=/[\x00-\x1F\x7F]/,h=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\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\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\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\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\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\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,p=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,d=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,g=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source;new RegExp("[".concat(h+g,"]"));var v=h+p+d+g,y=new RegExp("[".concat(v,"]")),m=function(){function t(t){void 0===t&&(t={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=t.tagName||"",this.attrs=t.attrs||{},this.innerHTML=t.innerHtml||t.innerHTML||""}return t.prototype.setTagName=function(t){return this.tagName=t,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(t,e){return this.getAttrs()[t]=e,this},t.prototype.getAttr=function(t){return this.getAttrs()[t]},t.prototype.setAttrs=function(t){return Object.assign(this.getAttrs(),t),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(t){return this.setAttr("class",t)},t.prototype.addClass=function(t){for(var e,r=this.getClass(),n=r?r.split(c):[],i=t.split(c);e=i.shift();)-1===n.indexOf(e)&&n.push(e);return this.getAttrs().class=n.join(" "),this},t.prototype.removeClass=function(t){for(var e,r=this.getClass(),n=r?r.split(c):[],i=t.split(c);n.length&&(e=i.shift());){var o=n.indexOf(e);-1!==o&&n.splice(o,1)}return this.getAttrs().class=n.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(t){return -1!==(" "+this.getClass()+" ").indexOf(" "+t+" ")},t.prototype.setInnerHTML=function(t){return this.innerHTML=t,this},t.prototype.setInnerHtml=function(t){return this.setInnerHTML(t)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var t=this.getTagName(),e=this.buildAttrsStr();return["<",t,e=e?" "+e:"",">",this.getInnerHtml(),"</",t,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var t=this.getAttrs(),e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r+'="'+t[r]+'"');return e.join(" ")},t}(),b=function(){function t(t){void 0===t&&(t={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=t.newWindow||!1,this.truncate=t.truncate||{},this.className=t.className||""}return t.prototype.build=function(t){return new m({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},t.prototype.createAttrs=function(t){var e={href:t.getAnchorHref()},r=this.createCssClass(t);return r&&(e.class=r),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(e.title=t.getAnchorHref()),e},t.prototype.createCssClass=function(t){var e=this.className;if(!e)return"";for(var r=[e],n=t.getCssClassSuffixes(),i=0,o=n.length;i<o;i++)r.push(e+"-"+n[i]);return r.join(" ")},t.prototype.processAnchorText=function(t){return t=this.doTruncate(t)},t.prototype.doTruncate=function(t){var e,r,n,i=this.truncate;if(!i||!i.length)return t;var o=i.length,a=i.location;return"smart"===a?function(t,e,r){null==r?(r="&hellip;",i=3,n=8):(i=r.length,n=r.length);var n,i,o,a,u,s=function(t){var e="";return t.scheme&&t.host&&(e+=t.scheme+"://"),t.host&&(e+=t.host),t.path&&(e+="/"+t.path),t.query&&(e+="?"+t.query),t.fragment&&(e+="#"+t.fragment),e},c=function(t,e){var n=e/2,i=Math.ceil(n),o=-1*Math.floor(n),a="";return o<0&&(a=t.substr(o)),t.substr(0,i)+r+a};if(t.length<=e)return t;var l=e-i,f=(o={},(u=(a=t).match(/^([a-z]+):\/\//i))&&(o.scheme=u[1],a=a.substr(u[0].length)),(u=a.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(o.host=u[1],a=a.substr(u[0].length)),(u=a.match(/^\/(.*?)(?=(\?|#|$))/i))&&(o.path=u[1],a=a.substr(u[0].length)),(u=a.match(/^\?(.*?)(?=(#|$))/i))&&(o.query=u[1],a=a.substr(u[0].length)),(u=a.match(/^#(.*?)$/i))&&(o.fragment=u[1]),o);if(f.query){var h=f.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(f.query=f.query.substr(0,h[1].length),t=s(f))}if(t.length<=e||(f.host&&(f.host=f.host.replace(/^www\./,""),t=s(f)),t.length<=e))return t;var p="";if(f.host&&(p+=f.host),p.length>=l)return f.host.length==e?(f.host.substr(0,e-i)+r).substr(0,l+n):c(p,l).substr(0,l+n);var d="";if(f.path&&(d+="/"+f.path),f.query&&(d+="?"+f.query),d){if((p+d).length>=l){if((p+d).length==e)return(p+d).substr(0,e);var g=l-p.length;return(p+c(d,g)).substr(0,l+n)}p+=d}if(f.fragment){var v="#"+f.fragment;if((p+v).length>=l){if((p+v).length==e)return(p+v).substr(0,e);var y=l-p.length;return(p+c(v,y)).substr(0,l+n)}p+=v}if(f.scheme&&f.host){var m=f.scheme+"://";if((p+m).length<l)return(m+p).substr(0,e)}if(p.length<=e)return p;var b="";return l>0&&(b=p.substr(-1*Math.floor(l/2))),(p.substr(0,Math.ceil(l/2))+r+b).substr(0,l+n)}(t,o):"middle"===a?function(t,e,r){if(t.length<=e)return t;null==r?(r="&hellip;",n=8,i=3):(n=r.length,i=r.length);var n,i,o=e-i,a="";return o>0&&(a=t.substr(-1*Math.floor(o/2))),(t.substr(0,Math.ceil(o/2))+r+a).substr(0,o+n)}(t,o):(r=void 0,(e=t).length>o&&(null==r?(r="&hellip;",n=3):n=r.length,e=e.substring(0,o-n)+r),e)},t}(),_=r(42360),w=function(){function t(t){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(t){this.offset=t},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),x=RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$"),S=/[\/?#]/,k=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,C=/[?!:,.;^]/,A=/https?:\/\//i,E=RegExp("^"+A.source,"i"),D=RegExp(C.source+"$"),B=/^(javascript|vbscript):/i,O=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,T=/^(?:\/\/)?([^/#?:]+)/;function F(t){return u.test(t)}function M(t){return u.test(t)||s.test(t)||"+"===t||"-"===t||"."===t}function K(t){return y.test(t)}function I(t){return"_"===t||K(t)}function R(t){return y.test(t)||k.test(t)||C.test(t)}function L(t){return S.test(t)}function N(t){return x.test(t.toLowerCase())}var P=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,z=/[:/?#]/,j=/^(https?:\/\/)?(www\.)?/i,q=/^\/\//,U=function(t){function e(e){var r=t.call(this,e)||this;return r.type="url",r.url="",r.urlMatchType="scheme",r.protocolRelativeMatch=!1,r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.protocolPrepended=!1,r.urlMatchType=e.urlMatchType,r.url=e.url,r.protocolRelativeMatch=e.protocolRelativeMatch,r.stripPrefix=e.stripPrefix,r.stripTrailingSlash=e.stripTrailingSlash,r.decodePercentEncoding=e.decodePercentEncoding,r}return(0,_.__extends)(e,t),e.prototype.getType=function(){return"url"},e.prototype.getUrlMatchType=function(){return this.urlMatchType},e.prototype.getUrl=function(){var t=this.url;return this.protocolRelativeMatch||"scheme"===this.urlMatchType||this.protocolPrepended||(t=this.url="http://"+t,this.protocolPrepended=!0),t},e.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},e.prototype.getAnchorText=function(){var t,e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(q,"")),this.stripPrefix.scheme&&(e=e.replace(E,"")),this.stripPrefix.www&&(e=e.replace(j,"$1")),this.stripTrailingSlash&&("/"===(t=e).charAt(t.length-1)&&(t=t.slice(0,-1)),e=t),this.decodePercentEncoding&&(e=function(t){var e=t.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(e)}catch(t){return e}}(e)),e},e}(w),H=/^mailto:/i,W=new RegExp("[".concat(v,"!#$%&'*+/=?^_`{|}~-]"));function V(t){return W.test(t)}var X=function(t){function e(e){var r=t.call(this,e)||this;return r.type="email",r.email="",r.email=e.email,r}return(0,_.__extends)(e,t),e.prototype.getType=function(){return"email"},e.prototype.getEmail=function(){return this.email},e.prototype.getAnchorHref=function(){return"mailto:"+this.email},e.prototype.getAnchorText=function(){return this.email},e}(w);function Y(t){return"_"===t||y.test(t)}var J=["twitter","facebook","instagram","tiktok"],G=function(t){function e(e){var r=t.call(this,e)||this;return r.type="hashtag",r.serviceName="twitter",r.hashtag="",r.serviceName=e.serviceName,r.hashtag=e.hashtag,r}return(0,_.__extends)(e,t),e.prototype.getType=function(){return"hashtag"},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getHashtag=function(){return this.hashtag},e.prototype.getAnchorHref=function(){var t=this.serviceName,e=this.hashtag;switch(t){case"twitter":return"https://twitter.com/hashtag/"+e;case"facebook":return"https://www.facebook.com/hashtag/"+e;case"instagram":return"https://instagram.com/explore/tags/"+e;case"tiktok":return"https://www.tiktok.com/tag/"+e;default:throw a(t),Error("Invalid hashtag service: ".concat(t))}},e.prototype.getAnchorText=function(){return"#"+this.hashtag},e.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),r=this.getServiceName();return r&&e.push(r),e},e}(w),$={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},Z=/[-\w.]/,Q=["twitter","instagram","soundcloud","tiktok"],tt=function(t){function e(e){var r=t.call(this,e)||this;return r.type="mention",r.serviceName="twitter",r.mention="",r.mention=e.mention,r.serviceName=e.serviceName,r}return(0,_.__extends)(e,t),e.prototype.getType=function(){return"mention"},e.prototype.getMention=function(){return this.mention},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw Error("Unknown service name to point mention to: "+this.serviceName)}},e.prototype.getAnchorText=function(){return"@"+this.mention},e.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),r=this.getServiceName();return r&&e.push(r),e},e}(w),te=/[-. ]/,tr=/[-. ()]/,tn=/[,;]/,ti=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function to(t){return tn.test(t)}var ta=function(t){function e(e){var r=t.call(this,e)||this;return r.type="phone",r.number="",r.plusSign=!1,r.number=e.number,r.plusSign=e.plusSign,r}return(0,_.__extends)(e,t),e.prototype.getType=function(){return"phone"},e.prototype.getPhoneNumber=function(){return this.number},e.prototype.getNumber=function(){return this.getPhoneNumber()},e.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},e.prototype.getAnchorText=function(){return this.matchedText},e}(w),tu=/[\(\{\[]/,ts=/[\)\}\]]/,tc={")":"(","}":"{","]":"["};function tl(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"scheme"}}function tf(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"tld"}}function th(t,e){return{type:"phone",startIdx:t,state:e,acceptStateReached:!1}}var tp=function(t){void 0===t&&(t={}),this.idx=void 0!==t.idx?t.idx:-1,this.type=t.type||"tag",this.name=t.name||"",this.isOpening=!!t.isOpening,this.isClosing=!!t.isClosing};let td=function(){function t(e){void 0===e&&(e={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,null==(r=e.urls)&&(r=!0),this.urls=n(r)?{schemeMatches:r,tldMatches:r,ipV4Matches:r}:{schemeMatches:!n(r.schemeMatches)||r.schemeMatches,tldMatches:!n(r.tldMatches)||r.tldMatches,ipV4Matches:!n(r.ipV4Matches)||r.ipV4Matches},this.email=n(e.email)?e.email:this.email,this.phone=n(e.phone)?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=n(e.newWindow)?e.newWindow:this.newWindow,null==(i=e.stripPrefix)&&(i=!0),this.stripPrefix=n(i)?{scheme:i,www:i}:{scheme:!n(i.scheme)||i.scheme,www:!n(i.www)||i.www},this.stripTrailingSlash=n(e.stripTrailingSlash)?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=n(e.decodePercentEncoding)?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var r,i,o,a=this.mention;if(!1!==a&&-1===Q.indexOf(a))throw Error("invalid `mention` cfg '".concat(a,"' - see docs"));var u=this.hashtag;if(!1!==u&&-1===J.indexOf(u))throw Error("invalid `hashtag` cfg '".concat(u,"' - see docs"));this.truncate="number"==typeof(o=e.truncate)?{length:o,location:"end"}:function(t,e){for(var r in e)e.hasOwnProperty(r)&&void 0===t[r]&&(t[r]=e[r]);return t}(o||{},{length:Number.POSITIVE_INFINITY,location:"end"}),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return t.link=function(e,r){return new t(r).link(e)},t.parse=function(e,r){return new t(r).parse(e)},t.prototype.parse=function(t){var e=this,r=["a","style","script"],n=0,i=[];return function(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,i=e.onText,o=e.onComment,h=e.onDoctype,p=new tp,d=0,g=t.length,v=0,y=0,m=p;d<g;){var b=t.charAt(d);switch(v){case 0:"<"===b&&x();break;case 1:"!"===b?v=13:"/"===b?(v=2,m=new tp((0,_.__assign)((0,_.__assign)({},m),{isClosing:!0}))):"<"===b?x():u.test(b)?(v=3,m=new tp((0,_.__assign)((0,_.__assign)({},m),{isOpening:!0}))):(v=0,m=p);break;case 2:">"===b?w():u.test(b)?v=3:w();break;case 3:c.test(b)?(m=new tp((0,_.__assign)((0,_.__assign)({},m),{name:k()})),v=4):"<"===b?x():"/"===b?(m=new tp((0,_.__assign)((0,_.__assign)({},m),{name:k()})),v=12):">"===b?(m=new tp((0,_.__assign)((0,_.__assign)({},m),{name:k()})),S()):u.test(b)||s.test(b)||":"===b||w();break;case 4:c.test(b)||("/"===b?v=12:">"===b?S():"<"===b?x():"="===b||l.test(b)||f.test(b)?w():v=5);break;case 5:c.test(b)?v=6:"/"===b?v=12:"="===b?v=7:">"===b?S():"<"===b?x():l.test(b)&&w();break;case 6:c.test(b)||("/"===b?v=12:"="===b?v=7:">"===b?S():"<"===b?x():l.test(b)?w():v=5);break;case 7:c.test(b)||('"'===b?v=8:"'"===b?v=9:/[>=`]/.test(b)?w():"<"===b?x():v=10);break;case 8:'"'===b&&(v=11);break;case 9:"'"===b&&(v=11);break;case 10:c.test(b)?v=4:">"===b?S():"<"===b&&x();break;case 11:c.test(b)?v=4:"/"===b?v=12:">"===b?S():"<"===b?x():(v=4,d--);break;case 12:">"===b?(m=new tp((0,_.__assign)((0,_.__assign)({},m),{isClosing:!0})),S()):v=4;break;case 13:"--"===t.substr(d,2)?(d+=2,m=new tp((0,_.__assign)((0,_.__assign)({},m),{type:"comment"})),v=14):"DOCTYPE"===t.substr(d,7).toUpperCase()?(d+=7,m=new tp((0,_.__assign)((0,_.__assign)({},m),{type:"doctype"})),v=20):w();break;case 14:"-"===b?v=15:">"===b?w():v=16;break;case 15:"-"===b?v=18:">"===b?w():v=16;break;case 16:"-"===b&&(v=17);break;case 17:v="-"===b?18:16;break;case 18:">"===b?S():"!"===b?v=19:"-"===b||(v=16);break;case 19:"-"===b?v=17:">"===b?S():v=16;break;case 20:">"===b?S():"<"===b&&x();break;default:a(v)}d++}function w(){v=0,m=p}function x(){v=1,m=new tp({idx:d})}function S(){var e=t.slice(y,m.idx);e&&i(e,y),"comment"===m.type?o(m.idx):"doctype"===m.type?h(m.idx):(m.isOpening&&r(m.name,m.idx),m.isClosing&&n(m.name,m.idx)),w(),y=d+1}function k(){var e=m.idx+(m.isClosing?2:1);return t.slice(e,d).toLowerCase()}y<d&&(i(t.slice(y,d),y),y=d+1)}(t,{onOpenTag:function(t){r.indexOf(t)>=0&&n++},onText:function(t,r){if(0===n){var o=t.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=r;o.forEach(function(t,r){if(r%2==0){var n=e.parseText(t,a);i.push.apply(i,n)}a+=t.length})}},onCloseTag:function(t){r.indexOf(t)>=0&&(n=Math.max(n-1,0))},onComment:function(t){},onDoctype:function(t){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i)},t.prototype.compactMatches=function(t){t.sort(function(t,e){return t.getOffset()-e.getOffset()});for(var e=0;e<t.length-1;){var r=t[e],n=r.getOffset(),i=r.getMatchedText().length,o=n+i;if(e+1<t.length){if(t[e+1].getOffset()===n){var a=t[e+1].getMatchedText().length>i?e:e+1;t.splice(a,1);continue}if(t[e+1].getOffset()<o){t.splice(e+1,1);continue}}e++}return t},t.prototype.removeUnwantedMatches=function(t){return this.hashtag||o(t,function(t){return"hashtag"===t.getType()}),this.email||o(t,function(t){return"email"===t.getType()}),this.phone||o(t,function(t){return"phone"===t.getType()}),this.mention||o(t,function(t){return"mention"===t.getType()}),this.urls.schemeMatches||o(t,function(t){return"url"===t.getType()&&"scheme"===t.getUrlMatchType()}),this.urls.tldMatches||o(t,function(t){return"url"===t.getType()&&"tld"===t.getUrlMatchType()}),this.urls.ipV4Matches||o(t,function(t){return"url"===t.getType()&&"ipV4"===t.getUrlMatchType()}),t},t.prototype.parseText=function(t,e){void 0===e&&(e=0),e=e||0;for(var r=function(t,e){for(var r=e.tagBuilder,n=e.stripPrefix,o=e.stripTrailingSlash,c=e.decodePercentEncoding,l=e.hashtagServiceName,f=e.mentionServiceName,h=[],p=t.length,d=[],g=0;g<p;g++){var v=t.charAt(g);if(0===d.length)W(v);else for(var m=d.length-1;m>=0;m--){var b,_,w,x,S,k,C,E,j=d[m];switch(j.state){case 11:"/"===v?j.state=12:i(d,j);break;case 12:K(v)?j.state=5:i(d,j);break;case 0:":"===v?j.state=2:"-"===v?j.state=1:M(v)||i(d,j);break;case 1:"-"===v||("/"===v?(i(d,j),d.push(tf(g,11))):M(v)?j.state=0:i(d,j));break;case 2:"/"===v?j.state=3:"."===v?i(d,j):K(v)?(j.state=5,F(v)&&d.push(tl(g,0))):i(d,j);break;case 3:"/"===v?j.state=4:R(v)?(j.state=10,j.acceptStateReached=!0):Q(j);break;case 4:"/"===v?j.state=10:K(v)?(j.state=5,j.acceptStateReached=!0):i(d,j);break;case 5:"."===v?j.state=7:"-"===v?j.state=6:":"===v?j.state=8:L(v)?j.state=10:I(v)||Q(j);break;case 6:"-"===v||("."===v?Q(j):K(v)?j.state=5:Q(j));break;case 7:"."===v?Q(j):K(v)?(j.state=5,j.acceptStateReached=!0):Q(j);break;case 13:"."===v?j.state=14:":"===v?j.state=8:s.test(v)||(L(v)?j.state=10:y.test(v)?i(d,j):Q(j));break;case 14:s.test(v)?(j.octetsEncountered++,4===j.octetsEncountered&&(j.acceptStateReached=!0),j.state=13):Q(j);break;case 8:s.test(v)?j.state=9:Q(j);break;case 9:s.test(v)||(L(v)?j.state=10:Q(j));break;case 10:R(v)||Q(j);break;case 15:"a"===v.toLowerCase()?j.state=16:J(j,v);break;case 16:"i"===v.toLowerCase()?j.state=17:J(j,v);break;case 17:"l"===v.toLowerCase()?j.state=18:J(j,v);break;case 18:"t"===v.toLowerCase()?j.state=19:J(j,v);break;case 19:"o"===v.toLowerCase()?j.state=20:J(j,v);break;case 20:":"===v.toLowerCase()?j.state=21:J(j,v);break;case 21:V(v)?j.state=22:i(d,j);break;case 22:J(j,v);break;case 23:"."===v?i(d,j):"@"===v?i(d,j):V(v)?j.state=22:i(d,j);break;case 24:K(v)?j.state=25:i(d,j);break;case 25:"."===v?j.state=27:"-"===v?j.state=26:I(v)||Q(j);break;case 26:"-"===v||"."===v?Q(j):I(v)?j.state=25:Q(j);break;case 27:"."===v||"-"===v?Q(j):K(v)?(j.state=25,j.acceptStateReached=!0):Q(j);break;case 28:Y(v)?(j.state=29,j.acceptStateReached=!0):i(d,j);break;case 29:Y(v)||Q(j);break;case 30:b=j,_=v,Z.test(_)?(b.state=31,b.acceptStateReached=!0):i(d,b);break;case 31:w=j,x=v,Z.test(x)||(y.test(x)?i(d,w):Q(w));break;case 32:s.test(v)?j.state=33:i(d,j),W(v);break;case 33:s.test(v)?j.state=34:i(d,j);break;case 34:s.test(v)?j.state=35:i(d,j);break;case 35:")"===v?j.state=36:i(d,j);break;case 36:S=j,k=v,s.test(k)?S.state=38:te.test(k)?S.state=39:i(d,S);break;case 37:s.test(v)?j.state=38:(i(d,j),W(v));break;case 38:C=j,E=v,(C.acceptStateReached=!0,to(E))?C.state=40:"#"===E?C.state=41:s.test(E)||("("===E?C.state=32:te.test(E)?C.state=39:(Q(C),F(E)&&d.push(tl(g,0))));break;case 39:s.test(v)?j.state=38:"("===v?j.state=32:(Q(j),W(v));break;case 40:to(v)||("#"===v?j.state=41:s.test(v)?j.state=38:Q(j));break;case 41:to(v)?j.state=40:s.test(v)?i(d,j):Q(j);break;default:a(j.state)}}}for(var q=d.length-1;q>=0;q--)d.forEach(function(t){return Q(t)});return h;function W(t){if("#"===t)d.push({type:"hashtag",startIdx:g,state:28,acceptStateReached:!1});else if("@"===t)d.push({type:"mention",startIdx:g,state:30,acceptStateReached:!1});else if("/"===t)d.push(tf(g,11));else if("+"===t)d.push(th(g,37));else if("("===t)d.push(th(g,32));else{if(s.test(t)&&(d.push(th(g,38)),d.push({type:"url",startIdx:g,state:13,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1})),y.test(t)){var e="m"===t.toLowerCase()?15:22;d.push({type:"email",startIdx:g,state:e,acceptStateReached:!1})}F(t)&&d.push(tl(g,0)),y.test(t)&&d.push(tf(g,5))}}function J(t,e){"."===e?t.state=23:"@"===e?t.state=24:V(e)?t.state=22:i(d,t)}function Q(e){if(i(d,e),e.acceptStateReached){var s,p,v=e.startIdx,y=t.slice(e.startIdx,g);if(y=function(t){for(var e,r={"(":0,"{":0,"[":0},n=0;n<t.length;n++){var i=t.charAt(n);tu.test(i)?r[i]++:ts.test(i)&&r[tc[i]]--}for(var o=t.length-1;o>=0;)if(e=t.charAt(o),ts.test(e)){var a=tc[e];if(r[a]<0)r[a]++,o--;else break}else if(D.test(e))o--;else break;return t.slice(0,o+1)}(y),"url"===e.type){if("@"===t.charAt(e.startIdx-1))return;var m,b=e.matchType;if("scheme"===b){var _=A.exec(y);if(_&&(v+=_.index,y=y.slice(_.index)),!function(t){if(B.test(t))return!1;var e=t.match(O);if(!e)return!1;var r=!!e[1],n=e[2];return!!r||!!(-1!==n.indexOf(".")&&u.test(n))}(y))return}else if("tld"===b){if(!function(t){var e=t.match(T);if(!e)return!1;var r=e[0].split(".");return!(r.length<2)&&!!N(r[r.length-1])}(y))return}else if("ipV4"===b){if(m=y.split(z,1)[0],!P.test(m))return}else a(b);h.push(new U({tagBuilder:r,matchedText:y,offset:v,urlMatchType:b,url:y,protocolRelativeMatch:"//"===y.slice(0,2),stripPrefix:n,stripTrailingSlash:o,decodePercentEncoding:c}))}else if("email"===e.type)N(y.split(".").pop()||"")&&h.push(new X({tagBuilder:r,matchedText:y,offset:v,email:y.replace(H,"")}));else if("hashtag"===e.type)y.length<=140&&h.push(new G({tagBuilder:r,matchedText:y,offset:v,serviceName:l,hashtag:y.slice(1)}));else if("mention"===e.type)s=y,$[f].test(s)&&h.push(new tt({tagBuilder:r,matchedText:y,offset:v,serviceName:f,mention:y.slice(1)}));else if("phone"===e.type){if(("+"===(p=y=y.replace(/ +$/g,"")).charAt(0)||tr.test(p))&&ti.test(p)){var w=y.replace(/[^0-9,;#]/g,"");h.push(new ta({tagBuilder:r,matchedText:y,offset:v,number:w,plusSign:"+"===y.charAt(0)}))}}else a(e)}}}(t,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),n=0,o=r.length;n<o;n++)r[n].setOffset(e+r[n].getOffset());return r},t.prototype.link=function(t){if(!t)return"";this.sanitizeHtml&&(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var e=this.parse(t),r=[],n=0,i=0,o=e.length;i<o;i++){var a=e[i];r.push(t.substring(n,a.getOffset())),r.push(this.createMatchReturnVal(a)),n=a.getOffset()+a.getMatchedText().length}return r.push(t.substring(n)),r.join("")},t.prototype.createMatchReturnVal=function(t){var e;return(this.replaceFn&&(e=this.replaceFn.call(this.context,t)),"string"==typeof e)?e:!1===e?t.getMatchedText():e instanceof m?e.toAnchorString():t.buildTag().toAnchorString()},t.prototype.getTagBuilder=function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new b({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},t.version="4.0.0",t}()},80177:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}var i=r(77462),o=r(8852),a=r(50228),u=r(39320),s=r(87764),c=r(23980),l=r(6333),f=r(61584),h=r(46500),p=r(14533),d=f("draft_tree_data_support"),g=d?u:a,v=h.List,y=h.Repeat;t.exports={insertAtomicBlock:function(t,e,r){var a=t.getCurrentContent(),u=t.getSelection(),f=s.removeRange(a,u,"backward"),h=f.getSelectionAfter(),p=s.splitBlock(f,h),m=p.getSelectionAfter(),b=s.setBlockType(p,m,"atomic"),_=o.create({entity:e}),w={key:l(),type:"atomic",text:r,characterList:v(y(_,r.length))},x={key:l(),type:"unstyled"};d&&(w=n({},w,{nextSibling:x.key}),x=n({},x,{prevSibling:w.key}));var S=[new g(w),new g(x)],k=i.createFromArray(S),C=s.replaceWithFragment(b,m,k),A=C.merge({selectionBefore:u,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return c.push(t,A,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var i,o=t.getCurrentContent(),a=t.getSelection();if("before"===n||"after"===n){var u=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());i=p(o,e,u,n)}else{var l=s.removeRange(o,r,"backward"),f=l.getSelectionAfter(),h=l.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())i=p(l,e,h,"before");else if(f.getEndOffset()===h.getLength())i=p(l,e,h,"after");else{var d=s.splitBlock(l,f),g=d.getSelectionAfter(),v=d.getBlockForKey(g.getFocusKey());i=p(d,e,v,"before")}}var y=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return c.push(t,y,"move-block")}}},77462:(t,e,r)=>{"use strict";var n=r(46500).OrderedMap;t.exports={createFromArray:function(t){return n(t.map(function(t){return[t.getKey(),t]}))}}},45747:(t,e,r)=>{"use strict";var n=r(68401),i=r(41899),o=r(46500),a=o.List,u=o.Repeat,s=o.Record,c=function(){return!0},l=s({start:null,end:null}),f=s({start:null,end:null,decoratorKey:null,leaves:null});function h(t,e){return t===e}t.exports={generate:function(t,e,r){var i=e.getLength();if(!i)return a.of(new f({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var o=[],s=r?r.getDecorations(e,t):a(u(null,i)),p=e.getCharacterList();return n(s,h,c,function(t,e){var r,i;o.push(new f({start:t,end:e,decoratorKey:s.get(t),leaves:(r=p.slice(t,e).toList(),i=[],n(r.map(function(t){return t.getStyle()}).toList(),h,c,function(e,r){i.push(new l({start:e+t,end:r+t}))}),a(i))}))}),a(o)},fromJS:function(t){var e=t.leaves;return new f(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({},function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(r=o[n])>=0||(i[r]=t[r]);return i}(t,["leaves"]),{leaves:null!=e?a(Array.isArray(e)?e:i(e)).map(function(t){return l(t)}):null}))}}},8852:(t,e,r)=>{"use strict";var n=r(46500),i=n.Map,o=n.OrderedSet,a=n.Record,u=o(),s={style:u,entity:null},c=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,r){var n=t.set("style",t.getStyle().add(r));return e.create(n)},e.removeStyle=function(t,r){var n=t.set("style",t.getStyle().remove(r));return e.create(n)},e.applyEntity=function(t,r){var n=t.getEntity()===r?t:t.set("entity",r);return e.create(n)},e.create=function(t){if(!t)return l;var r=i({style:u,entity:null}).merge(t),n=f.get(r);if(n)return n;var o=new e(r);return f=f.set(r,o),o},e.fromJS=function(t){var r=t.style,n=t.entity;return new e({style:Array.isArray(r)?o(r):r,entity:Array.isArray(n)?o(n):n})},e}(a(s)),l=new c,f=i([[i(s),l]]);c.EMPTY=l,t.exports=c},72009:(t,e,r)=>{"use strict";var n=r(46500).List,i=function(){function t(t){var e,r;r=void 0,(e="_decorators")in this?Object.defineProperty(this,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[e]=r,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);return this._decorators.forEach(function(n,i){var o=0;(0,n.strategy)(t,function(t,e){(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0})(r,t,e)&&(function(t,e,r,n){for(var i=e;i<r;i++)t[i]=n}(r,t,e,i+"."+o),o++)},e)}),n(r)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=i},50228:(t,e,r)=>{"use strict";var n=r(8852),i=r(68401),o=r(46500),a=o.List,u=o.Map,s=o.OrderedSet,c=o.Record,l=o.Repeat,f=s(),h=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}),p=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(l(n.EMPTY,r.length))),t},d=function(t){function e(e){return t.call(this,p(e))||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.findStyleRanges=function(t,e){i(this.getCharacterList(),g,t,e)},r.findEntityRanges=function(t,e){i(this.getCharacterList(),v,t,e)},e}(h);function g(t,e){return t.getStyle()===e.getStyle()}function v(t,e){return t.getEntity()===e.getEntity()}t.exports=d},39320:(t,e,r)=>{"use strict";var n=r(8852),i=r(68401),o=r(46500),a=o.List,u=o.Map,s=o.OrderedSet,c=o.Record,l=o.Repeat,f=s(),h={parent:null,characterList:a(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},p=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(l(n.EMPTY,r.length))),t},v=function(t){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return t.call(this,g(e))||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(t,e){i(this.getCharacterList(),p,t,e)},r.findEntityRanges=function(t,e){i(this.getCharacterList(),d,t,e)},e}(c(h));t.exports=v},74960:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}var i=r(77462),o=r(8852),a=r(50228),u=r(39320),s=r(33346),c=r(80153),l=r(6333),f=r(41899),h=r(61584),p=r(46500),d=r(9539),g=p.List,v=p.Record,y=p.Repeat,m=p.Map,b=p.OrderedMap,_=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),w=h("draft_tree_data_support")?u:a,x=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getEntityMap=function(){return s},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(t){return this.getBlockMap().get(t)},r.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},r.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},r.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,r){return r===t}).skip(1).first()},r.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},r.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},r.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(t,e,r){return s.__create(t,e,r),this},r.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},r.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},r.addEntity=function(t){return s.__add(t),this},r.getEntity=function(t){return s.__get(t)},r.getAllEntities=function(){return s.__getAll()},r.loadWithEntities=function(t){return s.__loadWithEntities(t)},e.createFromBlockArray=function(t,r){var n=Array.isArray(t)?t:t.contentBlocks,o=i.createFromArray(n),a=o.isEmpty()?new c:c.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:r||s,selectionBefore:a,selectionAfter:a})},e.createFromText=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(r).map(function(t){return t=d(t),new w({key:l(),text:t,type:"unstyled",characterList:g(y(o.EMPTY,t.length))})});return e.createFromBlockArray(n)},e.fromJS=function(t){return new e(n({},t,{blockMap:b(t.blockMap).map(e.createContentBlockFromJS),selectionBefore:new c(t.selectionBefore),selectionAfter:new c(t.selectionAfter)}))},e.createContentBlockFromJS=function(t){var e=t.characterList;return new w(n({},t,{data:m(t.data),characterList:null!=e?g((Array.isArray(e)?e:f(e)).map(function(t){return o.fromJS(t)})):void 0}))},e}(_);t.exports=x},77818:(t,e,r)=>{"use strict";var n=r(8852),i=r(46500).Map;function o(t,e,r,o){var a=t.getBlockMap(),u=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil(function(t,e){return e===u}).takeUntil(function(t,e){return e===c}).concat(i([[c,a.get(c)]])).map(function(t,e){u===c?(i=s,a=l):(i=e===u?s:0,a=e===c?l:t.getLength());for(var i,a,f,h=t.getCharacterList();i<a;)f=h.get(i),h=h.set(i,o?n.applyStyle(f,r):n.removeStyle(f,r)),i++;return t.set("characterList",h)});return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports={add:function(t,e,r){return o(t,e,r,!0)},remove:function(t,e,r){return o(t,e,r,!1)}}},47472:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(4456),o=r(24082),a=r(97245),u=r(46500),s=r(11600),c=r(59516),l=u.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},h=i.isBrowser("IE <= 11"),p=function(){function t(t){var e=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=t,this.mutations=l();var r=a(t);r.MutationObserver&&!h?this.observer=new r.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return h?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(o(t.target));this.mutations=this.mutations.set(r,e)}},t}();t.exports=p},92507:(t,e,r)=>{"use strict";var n=r(59880),i=r(17843),o=(0,r(46500).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:n.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=o},7860:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},67017:(t,e,r)=>{"use strict";var n=r(80177),i=r(77462),o=r(8852),a=r(72009),u=r(50228),s=r(74960),c=r(92507),l=r(7860),f=r(93061),h=r(8604),p=r(33346),d=r(87764),g=r(54357),v=r(23980),y=r(47634),m=r(48309),b=r(8778),_=r(80153),w=r(15862),x=r(56440),S=r(6333),k=r(18451),C=r(93184),A=r(63020);t.exports={Editor:f,EditorBlock:h,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:u,ContentState:s,RawDraftContentState:m,SelectionState:_,AtomicBlockUtils:n,KeyBindingUtil:y,Modifier:d,RichUtils:b,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:A,convertFromRaw:x,convertToRaw:w,genKey:S,getDefaultKeyBinding:k,getVisibleSelectionRect:C}},93061:(t,e,r)=>{"use strict";var n=r(10427);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){u(t,e,r[e])})}return t}function a(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=r(92507),l=r(7860),f=r(3926),h=r(44179),p=r(81154),d=r(20212),g=r(66868),v=r(93823),y=r(43101),m=r(23980),b=r(59880),_=r(73913),w=r(77325),x=r(4456),S=r(17843),k=r(6333),C=r(18451),A=r(73802),E=r(61584),D=r(11600),B=r(85373),O=r(59516),T=x.isBrowser("IE"),F=!T,M={edit:d,composite:f,drag:p,cut:null,render:null},K=!1,I=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var r=e.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(b.Component),R=function(t){function e(e){var r;return u(a(r=t.call(this,e)||this),"_blockSelectEvents",void 0),u(a(r),"_clipboard",void 0),u(a(r),"_handler",void 0),u(a(r),"_dragCount",void 0),u(a(r),"_internalDrag",void 0),u(a(r),"_editorKey",void 0),u(a(r),"_placeholderAccessibilityID",void 0),u(a(r),"_latestEditorState",void 0),u(a(r),"_latestCommittedEditorState",void 0),u(a(r),"_pendingStateFromBeforeInput",void 0),u(a(r),"_onBeforeInput",void 0),u(a(r),"_onBlur",void 0),u(a(r),"_onCharacterData",void 0),u(a(r),"_onCompositionEnd",void 0),u(a(r),"_onCompositionStart",void 0),u(a(r),"_onCopy",void 0),u(a(r),"_onCut",void 0),u(a(r),"_onDragEnd",void 0),u(a(r),"_onDragOver",void 0),u(a(r),"_onDragStart",void 0),u(a(r),"_onDrop",void 0),u(a(r),"_onInput",void 0),u(a(r),"_onFocus",void 0),u(a(r),"_onKeyDown",void 0),u(a(r),"_onKeyPress",void 0),u(a(r),"_onKeyUp",void 0),u(a(r),"_onMouseDown",void 0),u(a(r),"_onMouseUp",void 0),u(a(r),"_onPaste",void 0),u(a(r),"_onSelect",void 0),u(a(r),"editor",void 0),u(a(r),"editorContainer",void 0),u(a(r),"focus",void 0),u(a(r),"blur",void 0),u(a(r),"setMode",void 0),u(a(r),"exitCurrentMode",void 0),u(a(r),"restoreEditorDOM",void 0),u(a(r),"setClipboard",void 0),u(a(r),"getClipboard",void 0),u(a(r),"getEditorKey",void 0),u(a(r),"update",void 0),u(a(r),"onDragEnter",void 0),u(a(r),"onDragLeave",void 0),u(a(r),"_handleEditorContainerRef",function(t){r.editorContainer=t,r.editor=null!==t?t.firstChild:null}),u(a(r),"focus",function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),i=r.editor;if(i){var o=w.getScrollParent(i),a=t||A(o),u=a.x,s=a.y;B(i)||D(!1),i.focus(),o===window?window.scrollTo(u,s):_.setTop(o,s),n||r.update(m.forceSelection(e,e.getSelection()))}}),u(a(r),"blur",function(){var t=r.editor;t&&(B(t)||D(!1),t.blur())}),u(a(r),"setMode",function(t){var e=r.props,n=e.onPaste,i=e.onCut,a=e.onCopy,u=o({},M.edit);n&&(u.onPaste=n),i&&(u.onCut=i),a&&(u.onCopy=a);var s=o({},M,{edit:u});r._handler=s[t]}),u(a(r),"exitCurrentMode",function(){r.setMode("edit")}),u(a(r),"restoreEditorDOM",function(t){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(t)})}),u(a(r),"setClipboard",function(t){r._clipboard=t}),u(a(r),"getClipboard",function(){return r._clipboard}),u(a(r),"update",function(t){r._latestEditorState=t,r.props.onChange(t)}),u(a(r),"onDragEnter",function(){r._dragCount++}),u(a(r),"onDragLeave",function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()}),r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=e.editorKey||k(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=e.editorState,r._latestCommittedEditorState=e.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}s(e,t);var n=e.prototype;return n._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(g?g(function(){return n(e,r)}):n(e,r))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:O(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(v,t)}return null},n._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},n.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleFn,u=t.customStyleMap,s=t.editorState,c=t.preventScroll,f=t.readOnly,p=t.textAlignment,d=t.textDirectionality,g=S({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),v=this.props.role||"textbox",y="combobox"===v?!!this.props.ariaExpanded:null,m={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:o({},l,u),customStyleFn:a,editorKey:this._editorKey,editorState:s,preventScroll:c,textDirectionality:d};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:S("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.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._renderARIADescribedBy(),"aria-expanded":f?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:S({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:this.props.editorRef,role:f?null:v,spellCheck:F&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(I,{editor:this,editorState:s}),b.createElement(h,i({},m,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!K&&E("draft_ods_enabled")&&(K=!0,y.initODS()),this.setMode("edit"),T&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):r.g.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(b.Component);u(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:C,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=R},8604:(t,e,r)=>{"use strict";var n=r(10427);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(49633),a=r(21885),u=r(59880),s=r(73913),c=r(77325),l=r(50385),f=r(86410),h=r(17843),p=r(59299),d=r(73802),g=r(55071),v=r(11600),y=r(85373),m=r(59516),b=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},_=function(t){function e(){for(var e,r,n,i,o=arguments.length,a=Array(o),u=0;u<o;u++)a[u]=arguments[u];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this),i=void 0,(n="_node")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var t,e=this.props.selection,r=e.getEndKey();if(e.getHasFocus()&&r===this.props.block.getKey()){var n=this._node;if(null!=n){var i=c.getScrollParent(n),o=d(i);if(i===window){var a=p(n);(t=a.y+a.height-g().height)>0&&window.scrollTo(o.x,o.y+t+10)}else y(n)||v(!1),(t=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&s.setTop(i,s.getTop(i)+t+10)}}}},r._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),s=this.props.tree.size-1,c=b(this.props.selection,r);return this.props.tree.map(function(h,p){var d=h.get("leaves");if(0===d.size)return null;var g=d.size-1,v=d.map(function(i,l){var f=a.encode(r,p,l),h=i.get("start"),d=i.get("end");return u.createElement(o,{key:f,offsetKey:f,block:e,start:h,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(h,d),styleSet:e.getInlineStyleAt(h),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:p===s&&l===g})}).toArray(),y=h.get("decoratorKey");if(null==y||!t.props.decorator)return v;var b=m(t.props.decorator),_=b.getComponentForKey(y);if(!_)return v;var w=b.getPropsForKey(y),x=a.encode(r,p,0),S=d.first().get("start"),k=d.last().get("end"),C=n.slice(S,k),A=e.getEntityAt(h.get("start")),E=f.getHTMLDirIfDifferent(l.getDirection(C),t.props.direction),D={contentState:t.props.contentState,decoratedText:C,dir:E,start:S,end:k,blockKey:r,entityKey:A,offsetKey:x};return u.createElement(_,i({},w,D,{key:x}),v)}).toArray()},r.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,i=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return u.createElement("div",{"data-offset-key":n,className:i,ref:function(e){return t._node=e}},this._renderChildren())},e}(u.Component);t.exports=_},8972:(t,e,r)=>{"use strict";var n=r(10427);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){a(t,e,r[e])})}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=r(4289),s=r(21885),c=r(59880),l=r(73913),f=r(77325),h=r(59299),p=r(73802),d=r(55071),g=r(46500),v=r(11600),y=r(85373);g.List;var m=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},b=function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()},_=function(t,e,r){var n=[],i=!0,o=!1,a=void 0;try{for(var u,l=r.reverse()[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value;if(f.type!==e)break;n.push(f)}}catch(t){o=!0,a=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var h=n.reverse(),p=h[0].key;return r.push(c.cloneElement(t,{key:"".concat(p,"-wrap"),"data-offset-key":s.encode(p,0,0)},h)),r},w=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},x=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},S=function(t,e,r,n,i,a){var u={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:a},s=n(t);return s&&(u.className=s),void 0!==i.customEditable&&(u=o({},u,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),u},k=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return a(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",c.createRef()),e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,i=e.tree,o=!r.getChildKeys().isEmpty(),a=r!==t.block||i!==t.tree||n!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection;return o||a},r.componentDidMount=function(){var t,e=this.props.selection,r=e.getEndKey();if(e.getHasFocus()&&r===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var i=f.getScrollParent(n),o=p(i);if(i===window){var a=h(n);(t=a.y+a.height-d().height)>0&&window.scrollTo(o.x,o.y+t+10)}else y(n)||v(!1),(t=n.offsetHeight+n.offsetTop-(i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+t+10)}}},r.render=function(){var t=this,r=this.props,n=r.block,a=r.blockRenderMap,l=r.blockRendererFn,f=r.blockStyleFn,h=r.contentState,p=r.decorator,d=r.editorKey,g=r.editorState,v=r.customStyleFn,y=r.customStyleMap,k=r.direction,C=r.forceSelection,A=r.selection,E=r.tree,D=null;n.children.size&&(D=n.children.reduce(function(r,n){var i=s.encode(n,0,0),u=h.getBlockForKey(n),p=x(u,l),v=p.CustomComponent||e,y=w(u,a),m=y.Element,k=y.wrapperTemplate,C=S(u,d,i,f,p,null),A=o({},t.props,{tree:g.getBlockTree(n),blockProps:p.customProps,offsetKey:i,block:u});return r.push(c.createElement(m,C,c.createElement(v,A))),!k||b(u,h)||_(k,m,r),r},[]));var B=n.getKey(),O=s.encode(B,0,0),T=x(n,l),F=T.CustomComponent,M=null!=F?c.createElement(F,i({},this.props,{tree:g.getBlockTree(B),blockProps:T.customProps,offsetKey:O,block:n})):c.createElement(u,{block:n,children:D,contentState:h,customStyleFn:v,customStyleMap:y,decorator:p,direction:k,forceSelection:C,hasSelection:m(A,B),selection:A,tree:E});if(n.getParentKey())return M;var K=w(n,a).Element,I=S(n,d,O,f,T,this.wrapperRef);return c.createElement(K,I,M)},e}(c.Component);t.exports=k},3926:(t,e,r)=>{"use strict";var n=r(47472),i=r(87764),o=r(21885),a=r(23980),u=r(82736),s=r(4456),c=r(16151),l=r(61742),f=r(43290),h=r(94263),p=r(59516),d=s.isBrowser("IE"),g=!1,v=!1,y=null,m={onCompositionStart:function(t){v=!0,y||(y=new n(l(t))).start()},onCompositionEnd:function(t){g=!1,v=!1,setTimeout(function(){g||m.resolveComposition(t)},20)},onSelect:c,onKeyDown:function(t,e){if(!v){m.resolveComposition(t),t._onKeyDown(e);return}(e.which===u.RIGHT||e.which===u.LEFT)&&e.preventDefault()},onKeyPress:function(t,e){e.which===u.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!v){var e=p(y).stopAndFlushMutations();y=null,g=!0;var r=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!e.size){t.update(r);return}var n=r.getCurrentContent();e.forEach(function(t,e){var u=o.decode(e),s=u.blockKey,c=u.decoratorKey,l=u.leafKey,f=r.getBlockTree(s).getIn([c,"leaves",l]),p=f.start,d=f.end,g=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:p,focusOffset:d,isBackward:!1}),v=h(n,g),y=n.getBlockForKey(s).getInlineStyleAt(p);n=i.replaceText(n,g,t,y,v),r=a.set(r,{currentContent:n})});var u=f(r,l(t)).selectionState;t.restoreEditorDOM();var s=d?a.forceSelection(r,u):a.acceptSelection(r,u);t.update(a.push(s,n,"insert-characters"))}}};t.exports=m},35631:(t,e,r)=>{"use strict";var n=r(10427);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(8604),a=r(21885),u=r(59880),s=r(17843),c=r(43464),l=r(59516),f=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||a!==u||s!==c||r.mustForceSelection()},r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,f=t.customStyleMap,h=t.customStyleFn,p=t.editorState,d=t.editorKey,g=t.preventScroll,v=t.textDirectionality,y=p.getCurrentContent(),m=p.getSelection(),b=p.mustForceSelection(),_=p.getDecorator(),w=l(p.getDirectionMap()),x=y.getBlocksAsArray(),S=[],k=null,C=null,A=0;A<x.length;A++){var E=x[A],D=E.getKey(),B=E.getType(),O=r(E),T=void 0,F=void 0,M=void 0;O&&(T=O.component,F=O.props,M=O.editable);var K=v||w.get(D),I=a.encode(D,0,0),R={contentState:y,block:E,blockProps:F,blockStyleFn:n,customStyleMap:f,customStyleFn:h,decorator:_,direction:K,forceSelection:b,offsetKey:I,preventScroll:g,selection:m,tree:p.getBlockTree(D)},L=e.get(B)||e.get("unstyled"),N=L.wrapper,P=L.element||e.get("unstyled").element,z=E.getDepth(),j="";n&&(j=n(E)),"li"===P&&(j=c(j,s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===B,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===B,"public/DraftStyleDefault/reset":C!==N||null===k||z>k,"public/DraftStyleDefault/depth0":0===z,"public/DraftStyleDefault/depth1":1===z,"public/DraftStyleDefault/depth2":2===z,"public/DraftStyleDefault/depth3":3===z,"public/DraftStyleDefault/depth4":z>=4,"public/DraftStyleDefault/listLTR":"LTR"===K,"public/DraftStyleDefault/listRTL":"RTL"===K})));var q=T||o,U={className:j,"data-block":!0,"data-editor":d,"data-offset-key":I,key:D};void 0!==M&&(U=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({},U,{contentEditable:M,suppressContentEditableWarning:!0}));var H=u.createElement(P,U,u.createElement(q,i({},R,{key:D})));S.push({block:H,wrapperTemplate:N,key:D,offsetKey:I}),k=N?E.getDepth():null,C=N}for(var W=[],V=0;V<S.length;){var X=S[V];if(X.wrapperTemplate){var Y=[];do Y.push(S[V].block),V++;while(V<S.length&&S[V].wrapperTemplate===X.wrapperTemplate);var J=u.cloneElement(X.wrapperTemplate,{key:X.key+"-wrap","data-offset-key":X.offsetKey},Y);W.push(J)}else W.push(X.block),V++}return u.createElement("div",{"data-contents":"true"},W)},e}(u.Component);t.exports=f},44179:(t,e,r)=>{"use strict";var n=r(61584)("draft_tree_data_support");t.exports=r(n?1609:35631)},1609:(t,e,r)=>{"use strict";var n=r(10427);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(8972),a=r(21885),u=r(59880),s=r(59516),c=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),i=e.isInCompositionMode(),o=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||i&&o)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return i!==o||a!==u||s!==c||r.mustForceSelection()},r.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,l=t.customStyleFn,f=t.editorState,h=t.editorKey,p=t.textDirectionality,d=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),y=f.getDecorator(),m=s(f.getDirectionMap()),b=d.getBlocksAsArray()[0],_=[],w=b;w;){var x=w.getKey(),S={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:d,customStyleFn:l,customStyleMap:c,decorator:y,editorKey:h,editorState:f,forceSelection:v,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},k=(e.get(w.getType())||e.get("unstyled")).wrapper;_.push({block:u.createElement(o,i({key:x},S)),wrapperTemplate:k,key:x,offsetKey:a.encode(x,0,0)});var C=w.getNextSiblingKey();w=C?d.getBlockForKey(C):null}for(var A=[],E=0;E<_.length;){var D=_[E];if(D.wrapperTemplate){var B=[];do B.push(_[E].block),E++;while(E<_.length&&_[E].wrapperTemplate===D.wrapperTemplate);var O=u.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},B);A.push(O)}else A.push(D.block),E++}return u.createElement("div",{"data-contents":"true"},A)},e}(u.Component);t.exports=c},71564:(t,e,r)=>{"use strict";var n=r(10427);function i(){return(i=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var o=r(21885),a=r(59880),u=r(50385),s=r(86410),c=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,e.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,l=t.decoratorKey,f=t.direction,h=t.leafSet,p=t.text,d=e.getKey(),g=h.get("leaves"),v=c.getComponentForKey(l),y=c.getPropsForKey(l),m=o.encode(d,parseInt(l,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),_=s.getHTMLDirIfDifferent(u.getDirection(b),f);return a.createElement(v,i({},y,{contentState:n,decoratedText:b,dir:_,key:m,entityKey:e.getEntityAt(h.get("start")),offsetKey:m}),r)},e}(a.Component);t.exports=c},81154:(t,e,r)=>{"use strict";var n=r(23931),i=r(87764),o=r(23980),a=r(24082),u=r(60193),s=r(17753),c=r(21310),l=r(97245),f=r(44208),h=r(59516);function p(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function d(t,e,r){var n=i.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return o.push(t,n,"insert-fragment")}t.exports={onDragEnd:function(t){t.exitCurrentMode(),p(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),l=t._latestEditorState,g=function(t,e){var r=null,n=null,i=u(t.currentTarget);if("function"==typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(t.x,t.y);r=o.startContainer,n=o.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent,n=t.rangeOffset}r=h(r),n=h(n);var s=h(a(r));return c(e,s,n,s,n)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=g){var v,y=r.getFiles();if(y.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(g,y)))return;s(y,function(e){e&&t.update(d(l,g,e))});return}var m=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(g,r,m))||(t._internalDrag?t.update((v=i.moveText(l.getCurrentContent(),l.getSelection(),g),o.push(l,v,"insert-fragment"))):t.update(d(l,g,r.getText()))),p(t)}}}},20212:(t,e,r)=>{"use strict";var n=r(4456),i=r(93724),o=r(68398),a=r(11513),u=r(59602),s=r(62529),c=r(39235),l=r(72147),f=r(20801),h=r(66361),p=r(21966),d=r(73214),g=r(16151),v=n.isBrowser("Chrome"),y=n.isBrowser("Firefox"),m=v||y?g:function(t){};t.exports={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:u,onCut:s,onDragOver:c,onDragStart:l,onFocus:f,onInput:h,onKeyDown:p,onPaste:d,onSelect:g,onMouseUp:m,onKeyUp:m}},66868:(t,e,r)=>{"use strict";var n=r(73481).unstable_flushControlled;t.exports=n},49633:(t,e,r)=>{"use strict";var n=r(10427),i=r(97910),o=r(59880),a=r(11600),u=r(10765),s=r(28334).setDraftEditorSelection,c=function(t){function e(){for(var e,r,n,i,o=arguments.length,a=Array(o),u=0;u<o;u++)a[u]=arguments[u];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this),i=void 0,(n="leaf")in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r._setSelection=function(){var t,e=this.props.selection;if(null!=e&&e.getHasFocus()){var r=this.props,n=r.block,i=r.start,o=r.text,c=n.getKey(),l=i+o.length;if(e.hasEdgeWithin(c,i,l)){var f=this.leaf;f||a(!1);var h=f.firstChild;h||a(!1),h.nodeType===Node.TEXT_NODE?t=h:u(h)?t=f:(t=h.firstChild)||a(!1),s(e,t,c,i,l)}}},r.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},r.componentDidUpdate=function(){this._setSelection()},r.componentDidMount=function(){this._setSelection()},r.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,u=a.customStyleMap,s=a.customStyleFn,c=a.offsetKey,l=a.styleSet,f=l.reduce(function(t,e){var r={},i=u[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(r.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),n(t,i,r)},{});return s&&(f=n(f,s(l,e))),o.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:f},o.createElement(i,null,r))},e}(o.Component);t.exports=c},4289:(t,e,r)=>{"use strict";var n=r(71564),i=r(49633),o=r(21885),a=r(46500),u=r(59880),s=r(17843);a.List;var c=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,e.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,a=t.customStyleFn,c=t.customStyleMap,l=t.decorator,f=t.direction,h=t.forceSelection,p=t.hasSelection,d=t.selection,g=t.tree,v=e.getKey(),y=e.getText(),m=g.size-1,b=this.props.children||g.map(function(t,s){var g=t.get("decoratorKey"),b=t.get("leaves"),_=b.size-1,w=b.map(function(t,r){var n=o.encode(v,s,r),l=t.get("start"),f=t.get("end");return u.createElement(i,{key:n,offsetKey:n,block:e,start:l,selection:p?d:null,forceSelection:h,text:y.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:c,customStyleFn:a,isLast:g===m&&r===_})}).toArray();return g&&l?u.createElement(n,{block:e,children:w,contentState:r,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:y,key:s}):w}).toArray();return u.createElement("div",{"data-offset-key":o.encode(v,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},e}(u.Component);t.exports=c},93823:(t,e,r)=>{"use strict";var n=r(59880),i=r(17843),o=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},r.render=function(){var t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":this.props.editorState.getSelection().getHasFocus()});return n.createElement("div",{className:t},n.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},e}(n.Component);t.exports=o},97910:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(59880),a=r(4456),u=r(11600),s=r(41934),c=a.isBrowser("IE <= 11"),l=function(t){function e(e){var r;return i(n(r=t.call(this,e)||this),"_forceFlag",void 0),i(n(r),"_node",void 0),r._forceFlag=!1,r}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.shouldComponentUpdate=function(t){var e=this._node,r=""===t.children;return(s(e)||u(!1),r)?c?"\n"!==e.textContent:"BR"!==e.tagName:e.textContent!==t.children},r.componentDidMount=function(){this._forceFlag=!this._forceFlag},r.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},r.render=function(){var t,e,r=this;return""===this.props.children?this._forceFlag?(t=function(t){return r._node=t},c?o.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:t})):(e=function(t){return r._node=t},c?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return r._node=t}},this.props.children)},e}(o.Component);t.exports=l},43101:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},33346:(t,e,r)=>{"use strict";var n=r(54357),i=r(46500),o=r(11600),a=r(22041),u=(0,i.Map)(),s=a();function c(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var l={getLastCreatedEntityKey:function(){return c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l.__getLastCreatedEntityKey()},create:function(t,e,r){return c("DraftEntity.create","contentState.createEntity"),l.__create(t,e,r)},add:function(t){return c("DraftEntity.add","contentState.addEntity"),l.__add(t)},get:function(t){return c("DraftEntity.get","contentState.getEntity"),l.__get(t)},__getAll:function(){return u},__loadWithEntities:function(t){u=t,s=a()},mergeData:function(t,e){return c("DraftEntity.mergeData","contentState.mergeEntityData"),l.__mergeData(t,e)},replaceData:function(t,e){return c("DraftEntity.replaceData","contentState.replaceEntityData"),l.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return s},__create:function(t,e,r){return l.__add(new n({type:t,mutability:e,data:r||{}}))},__add:function(t){return s=a(),u=u.set(s,t),s},__get:function(t){var e=u.get(t);return e||o(!1),e},__mergeData:function(t,e){var r=l.__get(t),n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({},r.getData(),e),i=r.set("data",n);return u=u.set(t,i),i},__replaceData:function(t,e){var r=l.__get(t).set("data",e);return u=u.set(t,r),r}};t.exports=l},54357:(t,e,r)=>{"use strict";var n=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},e}((0,r(46500).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=n},83188:t=>{"use strict";t.exports={getRemovalRange:function(t,e,r,n,i){var o,a=r.split(" ");a=a.map(function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e<a.length-1)return t+" ";return t});for(var u=n,s=null,c=null,l=0;l<a.length;l++){if(t<(o=u+a[l].length)&&u<e)null!==s||(s=u),c=o;else if(null!==s)break;u=o}var f=n+r.length,h=s===n,p=c===f;return(!h&&p||h&&!p)&&("forward"===i?c!==f&&c++:s!==n&&s--),{start:s,end:c}}}},142:t=>{"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},87764:(t,e,r)=>{"use strict";var n=r(8852),i=r(77818),o=r(45690),a=r(48508),u=r(71868),s=r(46500),c=r(11035),l=r(57136),f=r(11600),h=r(81598),p=r(65834),d=r(11693),g=r(90674),v=s.OrderedSet,y={replaceText:function(t,e,r,i,o){var a=d(p(t,e),e),u=n.create({style:i||v(),entity:o||null});return l(a,a.getSelectionAfter(),r,u)},insertText:function(t,e,r,n,i){return e.isCollapsed()||f(!1),y.replaceText(t,e,r,n,i)},moveText:function(t,e,r){var n=u(t,e),i=y.removeRange(t,e,"backward");return y.replaceWithFragment(i,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=d(p(t,e),e);return c(i,i.getSelectionAfter(),r,n)},removeRange:function(t,e,r){e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),i=e.getFocusKey(),o=t.getBlockForKey(n),u=t.getBlockForKey(i);var n,i,o,u,s=e.getStartOffset(),c=e.getEndOffset(),l=o.getEntityAt(s),f=u.getEntityAt(c-1);if(n===i&&l&&l===f){var h=a(t.getEntityMap(),o,u,e,r);return d(t,h)}return d(p(t,e),e)},splitBlock:function(t,e){var r=d(p(t,e),e);return g(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,r){return i.add(t,e,r)},removeInlineStyle:function(t,e,r){return i.remove(t,e,r)},setBlockType:function(t,e,r){return h(t,e,function(t){return t.merge({type:r,depth:0})})},setBlockData:function(t,e,r){return h(t,e,function(t){return t.merge({data:r})})},mergeBlockData:function(t,e,r){return h(t,e,function(t){return t.merge({data:t.getData().merge(r)})})},applyEntity:function(t,e,r){return o(p(t,e),e,r)}};t.exports=y},21885:t=>{"use strict";t.exports={encode:function(t,e,r){return t+"-"+e+"-"+r},decode:function(t){var e=t.split("-").reverse(),r=e[0],n=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(n,10),leafKey:parseInt(r,10)}}}},95796:(t,e,r)=>{"use strict";var n=r(50228),i=r(39320),o=r(63020),a=r(6333),u=r(4122),s=r(61584),c=r(46500),l=r(9539),f=c.List,h=c.Repeat,p=s("draft_tree_data_support"),d=p?i:n;t.exports={processHTML:function(t,e){return o(t,u,e)},processText:function(t,e,r){return t.reduce(function(t,n,i){n=l(n);var o=a(),u={key:o,type:r,text:n,characterList:f(h(e,n.length))};if(p&&0!==i){var s=i-1;u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({},u,{prevSibling:(t[s]=t[s].merge({nextSibling:o})).getKey()})}return t.push(new d(u)),t},[])}}},48150:(t,e,r)=>{"use strict";var n=r(79225).getPunctuation(),i="['‘’]",o="\\s|(?![_])"+n,a=RegExp("^(?:"+o+")*(?:"+i+"|(?!"+o+").)*(?:(?!"+o+").)"),u=RegExp("(?:(?!"+o+").)(?:"+i+"|(?!"+o+").)*(?:"+o+")*$");function s(t,e){var r=e?u.exec(t):a.exec(t);return r?r[0]:t}t.exports={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}}},69487:t=>{"use strict";t.exports={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}}},34688:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}var i=r(6333),o=r(11600),a=function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var i=n.children;Array.isArray(i)||o(!1),r=r.concat([].concat(i.reverse()))}},u=function(t){if(!(t&&t.type))return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e}))};t.exports={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];return(Array.isArray(e)||o(!1),Array.isArray(e)&&e.length)?(a(e,function(t){var e=n({},t);u(t)&&(e.depth=e.depth||0,s(t),null!=t.children&&t.children.length>0)||(delete e.children,r.push(e))}),t.blocks=r,n({},t,{blocks:r})):t},fromRawStateToRawTreeState:function(t){var e=[],r=[];return t.blocks.forEach(function(t){var o=u(t),a=t.depth||0,s=n({},t,{children:[]});if(!o){e.push(s);return}var c=r[0];if(null==c&&0===a)e.push(s);else if(null==c||c.depth<a-1){var l={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(l),1===a?e.push(l):null!=c&&c.children.push(l),l.children.push(s)}else if(c.depth===a-1)c.children.push(s);else{for(;null!=c&&c.depth>=a;)r.shift(),c=r[0];a>0?c.children.push(s):e.push(s)}}),n({},t,{blocks:e})}}},76804:(t,e,r)=>{"use strict";r(25584),t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n&&!e.get(n).getChildKeys().includes(r)||!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===r}))return!1;var i=t.getPrevSiblingKey();if(null!=i&&e.get(i).getNextSiblingKey()!==r)return!1;var o=t.getNextSiblingKey();return(null==o||e.get(o).getPrevSiblingKey()===r)&&(null===o||null===i||i!==o)&&(""==t.text||!(t.getChildKeys().size>0))},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return!1;for(var r=e.shift(),n=0,i=r.getKey(),o=[];null!=i;){var a=t.get(i),u=a.getChildKeys(),s=a.getNextSiblingKey();if(u.size>0){null!=s&&o.unshift(s);var c=u.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==c)return!1;i=c.getKey()}else i=null!=a.getNextSiblingKey()?a.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every(function(r){return e.isValidBlock(r,t)})&&this.isConnectedTree(t)}}},60604:(t,e,r)=>{"use strict";var n,i=r(38856),o=r(46500),a=r(59516),u=o.OrderedMap;t.exports={getDirectionMap:function(t,e){n?n.reset():n=new i;var r=t.getBlockMap(),s=r.valueSeq().map(function(t){return a(n).getDirection(t.getText())}),c=u(r.keySeq().zip(s));return null!=e&&o.is(e,c)?e:c}}},23980:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(45747),a=r(74960),u=r(60604),s=r(80153),c=r(46500),l=c.OrderedSet,f=c.Record,h=c.Stack,p=c.OrderedMap,d=c.List,g=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:h(),selection:null,treeMap:null,undoStack:h()}),v=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,r){return e.createWithContent(a.createFromText(t),r)},e.createWithContent=function(t,r){if(0===t.getBlockMap().count())return e.createEmpty(r);var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:h(),redoStack:h(),decorator:r||null,selection:s.createEmpty(n)})},e.create=function(t){var r=t.currentContent,i=t.decorator;return new e(new g(n({},t,{treeMap:m(r,i),directionMap:u.getDirectionMap(r)})))},e.fromJS=function(t){return new e(new g(n({},t,{directionMap:null!=t.directionMap?p(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?h(t.redoStack.map(function(t){return a.fromJS(t)})):t.redoStack,selection:null!=t.selection?new s(t.selection):t.selection,treeMap:null!=t.treeMap?p(t.treeMap).map(function(t){return d(t).map(function(t){return o.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?h(t.undoStack.map(function(t){return a.fromJS(t)})):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},e.set=function(t,r){return new e(t.getImmutable().withMutations(function(e){var n,i,a,u,s,c=e.get("decorator"),l=c;null===r.decorator?l=null:r.decorator&&(l=r.decorator);var f=r.currentContent||t.getCurrentContent();if(l!==c){var h,p,d,g=e.get("treeMap");d=l&&c?(h=f.getBlockMap(),p=l,g.merge(h.toSeq().filter(function(t){return p.getDecorations(t,f)!==c.getDecorations(t,f)}).map(function(t){return o.generate(f,t,p)}))):m(f,l),e.merge({decorator:l,treeMap:d,nativelyRenderedContent:null});return}f!==t.getCurrentContent()&&e.set("treeMap",(n=f.getBlockMap(),i=f.getEntityMap(),a=l,s=(u=t.getCurrentContent().set("entityMap",i)).getBlockMap(),t.getImmutable().get("treeMap").merge(n.toSeq().filter(function(t,e){return t!==s.get(e)}).map(function(t){return o.generate(u,t,a)})))),e.merge(r)}))};var t=e.prototype;function e(t){i(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})},t.getCurrentInlineStyle=function(){var t,e,r,n,i,o,a=this.getInlineStyleOverride();if(null!=a)return a;var u=this.getCurrentContent(),s=this.getSelection();return s.isCollapsed()?(t=s.getStartKey(),e=s.getStartOffset(),r=u.getBlockForKey(t),e>0?r.getInlineStyleAt(e-1):r.getLength()?r.getInlineStyleAt(0):b(u,t)):(n=s.getStartKey(),(i=s.getStartOffset())<(o=u.getBlockForKey(n)).getLength()?o.getInlineStyleAt(i):i>0?o.getInlineStyleAt(i-1):b(u,n))},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return y(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),y(t,e,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),i=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){var i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(t.getCurrentContent()===r)return t;var o=u.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:o,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),c=t.getUndoStack(),l=r;a!==s.getSelectionAfter()||n!==t.getLastChangeType()||"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n?(c=c.push(s),l=l.set("selectionBefore",a)):("insert-characters"===n||"backspace-character"===n||"delete-character"===n)&&(l=l.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(f=null);var p={currentContent:l,directionMap:o,undoStack:c,redoStack:h(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:r.shift(),redoStack:t.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var i=t.getCurrentContent(),o=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:o,undoStack:t.getUndoStack().push(i),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function y(t,e,r){return v.set(t,{selection:e,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(t,e){return t.getBlockMap().map(function(r){return o.generate(t,r,e)}).toOrderedMap()}function b(t,e){var r=t.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}t.exports=v},47634:(t,e,r)=>{"use strict";var n=r(4456),i=r(75810),o=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return o&&t.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(t){return o?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:i};t.exports=a},48309:()=>{},8778:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980),o=r(88928),a=r(59516),u={currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return u.toggleInlineStyle(t,"BOLD");case"italic":return u.toggleInlineStyle(t,"ITALIC");case"underline":return u.toggleInlineStyle(t,"UNDERLINE");case"code":return u.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=i.push(t,e,"insert-characters");return i.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),o=r.getBlockBefore(n);if(o&&"atomic"===o.getType()){var a=r.getBlockMap().delete(o.getKey()),s=r.merge({blockMap:a,selectionAfter:e});if(s!==r)return i.push(t,s,"remove-range")}var c=u.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),o=e.getStartKey(),a=r.getBlockForKey(o).getLength();if(e.getStartOffset()<a)return null;var u=r.getBlockAfter(o);if(!u||"atomic"!==u.getType())return null;var s=e.merge({focusKey:u.getKey(),focusOffset:u.getLength()}),c=n.removeRange(r,s,"forward");return c!==r?i.push(t,c,"remove-range"):null},onTab:function(t,e,r){var n=e.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return e;var u=e.getCurrentContent(),s=u.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var l=s.getDepth();if(!t.shiftKey&&l===r)return e;var f=o(u,n,t.shiftKey?-1:1,r);return i.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),o=r.getStartKey(),u=r.getEndKey(),s=t.getCurrentContent(),c=r;if(o!==u&&0===r.getEndOffset()){var l=a(s.getBlockBefore(u));u=l.getKey(),c=c.merge({anchorKey:o,anchorOffset:r.getStartOffset(),focusKey:u,focusOffset:l.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile(function(t,e){return e!==o}).reverse().skipWhile(function(t,e){return e!==u}).some(function(t){return"atomic"===t.getType()}))return t;var f=s.getBlockForKey(o).getType()===e?"unstyled":e;return i.push(t,n.setBlockType(s,c,f),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?u.toggleBlockType(t,"code-block"):u.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r,o=t.getSelection(),a=t.getCurrentInlineStyle();if(o.isCollapsed())return i.setInlineStyleOverride(t,a.has(e)?a.remove(e):a.add(e));var u=t.getCurrentContent();return r=a.has(e)?n.removeInlineStyle(u,o,e):n.applyInlineStyle(u,o,e),i.push(t,r,"change-inline-style")},toggleLink:function(t,e,r){var o=n.applyEntity(t.getCurrentContent(),e,r);return i.push(t,o,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var i=e.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i).getType(),u=o.getBlockBefore(i);if("code-block"===a&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==a)return n.setBlockType(o,e,"unstyled")}return null}};t.exports=u},30658:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980),o=r(71868),a=r(59516),u=null;t.exports={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),s=null;if(r.isCollapsed()){var c=r.getAnchorKey(),l=e.getBlockForKey(c).getLength();if(l===r.getAnchorOffset()){var f=e.getKeyAfter(c);if(null==f)return t;s=r.set("focusKey",f).set("focusOffset",0)}else s=r.set("focusOffset",l)}else s=r;u=o(e,s=a(s));var h=n.removeRange(e,s,"forward");return h===e?t:i.push(t,h,"remove-range")},paste:function(t){if(!u)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),u);return i.push(t,e,"insert-fragment")}}},80153:(t,e,r)=>{"use strict";var n=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;var r=e.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),i=this.getFocusKey();if(n===i&&n===t){var o=this.getStartOffset(),a=this.getEndOffset();return e<=o&&o<=r||e<=a&&a<=r}if(t!==n&&t!==i)return!1;var u=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=u&&r>=u},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}((0,r(46500).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=n},88928:t=>{"use strict";t.exports=function(t,e,r,n){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat([[o,a.get(o)]]).map(function(t){var e=t.getDepth()+r;return e=Math.max(0,Math.min(e,n)),t.set("depth",e)});return a=a.merge(u),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},20130:(t,e,r)=>{"use strict";var n=r(8852);t.exports=function(t,e,r,i){for(var o=e,a=t.getCharacterList();o<r;)a=a.set(o,n.applyEntity(a.get(o),i)),o++;return t.set("characterList",a)}},45690:(t,e,r)=>{"use strict";var n=r(20130),i=r(46500);t.exports=function(t,e,r){var o=t.getBlockMap(),a=e.getStartKey(),u=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),l=o.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===s}).toOrderedMap().merge(i.OrderedMap([[s,o.get(s)]])).map(function(t,e){var i=e===a?u:0,o=e===s?c:t.getLength();return n(t,i,o,r)});return t.merge({blockMap:o.merge(l),selectionBefore:e,selectionAfter:e})}},15862:(t,e,r)=>{"use strict";var n=r(50228),i=r(39320),o=r(69487),a=r(35245),u=r(72236),s=r(11600),c=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:u(t),entityRanges:a(t,e),data:t.getData().toObject()}},l=function(t,e,r,o){if(t instanceof n){r.push(c(t,e));return}t instanceof i||s(!1);var a=t.getParentKey(),u=o[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({},c(t,e),{children:[]});if(a){o[a].children.push(u);return}r.push(u)},f=function(t,e){var r=e.entityMap,n=[],i={},a={},u=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var n=t.getEntityAt(e),i=o.stringify(n);!a[i]&&(a[i]=n,r[i]="".concat(u),u++)}),l(t,r,n,i)}),{blocks:n,entityMap:r}},h=function(t,e){var r=e.blocks,n=e.entityMap,i={};return Object.keys(n).forEach(function(e,r){var n=t.getEntity(o.unstringify(e));i[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:i}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=f(t,e),e=h(t,e)}},63020:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){i(t,e,r[e])})}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o,a=r(8852),u=r(50228),s=r(39320),c=r(92507),l=r(33346),f=r(53970),h=r(17843),p=r(6333),d=r(4122),g=r(61584),v=r(46500),y=v.List,m=v.Map,b=v.OrderedSet,_=r(34282),w=r(10765),x=r(85373),S=r(61100),k=g("draft_tree_data_support"),C=RegExp("\r","g"),A=RegExp("\n","g"),E=RegExp("^\n","g"),D=RegExp("&nbsp;","g"),B=RegExp("&#13;?","g"),O=RegExp("&#8203;?","g"),T=["bold","bolder","500","600","700","800","900"],F=["light","lighter","normal","100","200","300","400"],M=["className","href","rel","target","title"],K=["alt","className","height","src","width"],I=(i(o={},h("public/DraftStyleDefault/depth0"),0),i(o,h("public/DraftStyleDefault/depth1"),1),i(o,h("public/DraftStyleDefault/depth2"),2),i(o,h("public/DraftStyleDefault/depth3"),3),i(o,h("public/DraftStyleDefault/depth4"),4),o),R=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),L=function(t){var e={};return t.mapKeys(function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach(function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)})}),m(e)},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(I).some(function(r){t.classList.contains(r)&&(e=I[r])}),e},P=function(t){if(!_(t)||!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new f(t.href),!0}catch(t){return!1}},z=function(t,e){if(!x(t))return e;var r=t.style.fontWeight,n=t.style.fontStyle,i=t.style.textDecoration;return e.withMutations(function(t){T.indexOf(r)>=0?t.add("BOLD"):F.indexOf(r)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},j=function(t){return"ul"===t||"ol"===t},q=function(){function t(t,e){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n({key:t.key||p(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n],o=i.nodeName.toLowerCase();if("body"===o||j(o)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,u=this.wrapper;j(o)&&(this.wrapper=o,j(u)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),e)),this.currentDepth=a,this.wrapper=u;continue}var s=this.blockTypeMap.get(o);if(void 0!==s){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var c=this.currentDepth,l=this.wrapper;this.wrapper="pre"===o?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(o,this.wrapper)||s[0]||"unstyled"),!k&&x(i)&&("unordered-list-item"===s||"ordered-list-item"===s)&&(this.currentDepth=N(i,this.currentDepth));var f=p(),h=this._toBlockConfigs(Array.from(i.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:f,childConfigs:h,type:s})),this.currentDepth=c,this.wrapper=l;continue}if("#text"===o){this._addTextNode(i,e);continue}if("br"===o){this._addBreakNode(i,e);continue}if(S(i)&&i.attributes.getNamedItem("src")&&i.attributes.getNamedItem("src").value){this._addImgNode(i,e);continue}if(P(i)){this._addAnchorNode(i,r,e);continue}var d=e;R.has(o)&&(d=d.add(R.get(o))),d=z(i,d);var g=x(i)&&i.style.fontFamily.includes("monospace")?"CODE":null;null!=g&&(d=d.add(g)),r.push.apply(r,this._toBlockConfigs(Array.from(i.childNodes),d))}return r},e._appendText=function(t,e){this.currentText+=t;var r,n=a.create({style:e,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==n?Math.min(e,n[0]):e)>(r=void 0!==(n=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(r,t-n[0]):r)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(e,r),this.characterList=this.characterList.slice(e,r))},e._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(E,"")).replace(A," ")),this._appendText(r,e)},e._addBreakNode=function(t,e){w(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(S(t)){var r={};K.forEach(function(e){var n=t.getAttribute(e);n&&(r[e]=n)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==t.getAttribute("role")&&this._appendText("\uD83D\uDCF7",e):this._appendText("\uD83D\uDCF7",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,r){if(_(t)){var n={};M.forEach(function(e){var r=t.getAttribute(e);r&&(n[e]=r)}),n.url=new f(t.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",n||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,i=0;i<=r;i++){var o=t[i];o.parent=e,o.prevSibling=i>0?t[i-1].key:null,o.nextSibling=i<r?t[i+1].key:null,o.children=y(o.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new s(n({},o))),this._toContentBlocks(o.childConfigs,o.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return y(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),i=r.text,o=r.characterList;e.contentBlocks.push(new u(n({},t,{text:t.text+i,characterList:t.characterList.concat(o)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=y(),i=0;i<=e;i++){var o=t[i];r+=o.text,n=n.concat(o.characterList),""!==r&&"unstyled"!==o.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=e(t=t.trim().replace(C,"").replace(D," ").replace(B,"").replace(O,""));return n?new q(L(r),function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks():null}},56440:(t,e,r)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}var i=r(50228),o=r(39320),a=r(74960),u=r(33346),s=r(34688);r(76804);var c=r(80153),l=r(41881),f=r(98693),h=r(46900),p=r(6333),d=r(61584),g=r(46500),v=r(11600),y=d("draft_tree_data_support"),m=g.List,b=g.Map,_=g.OrderedMap,w=function(t,e){var r=t.key,n=t.type,i=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||p(),data:b(i),characterList:x(t,e)}},x=function(t,e){var r=t.text,i=t.entityRanges;return l(h(r,t.inlineStyleRanges||[]),f(r,(i||[]).filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return n({},t,{key:e[t.key]})})))},S=function(t){return n({},t,{key:t.key||p()})},k=function(t,e,r){var i=e.map(function(t){return n({},t,{parentRef:r})});return t.concat(i.reverse())},C=function(t,e){var r=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),a=y&&!r?s.fromRawStateToRawTreeState(t).blocks:t.blocks;return y?a.map(S).reduce(function(t,r,i){Array.isArray(r.children)||v(!1);var u=r.children.map(S),s=new o(n({},w(r,e),{prevSibling:0===i?null:a[i-1].key,nextSibling:i===a.length-1?null:a[i+1].key,children:m(u.map(function(t){return t.key}))}));t=t.set(s.getKey(),s);for(var c=k([],u,s);c.length>0;){var l=c.pop(),f=l.parentRef,h=f.getChildKeys(),p=h.indexOf(l.key),d=Array.isArray(l.children);if(!d){d||v(!1);break}var g=l.children.map(S),y=new o(n({},w(l,e),{parent:f.getKey(),children:m(g.map(function(t){return t.key})),prevSibling:0===p?null:h.get(p-1),nextSibling:p===h.size-1?null:h.get(p+1)}));t=t.set(y.getKey(),y),c=k(c,g,y)}return t},_()):_((r?s.fromRawTreeStateToRawState(t).blocks:a).map(function(t){var r=new i(w(t,e));return[r.getKey(),r]}))},A=function(t){var e=t.entityMap,r={};return Object.keys(e).forEach(function(t){var n=e[t],i=n.type,o=n.mutability,a=n.data;r[t]=u.__create(i,o,a||{})}),r};t.exports=function(t){Array.isArray(t.blocks)||v(!1);var e=A(t),r=C(t,e),n=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new a({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},41881:(t,e,r)=>{"use strict";var n=r(8852),i=r(46500).List;t.exports=function(t,e){return i(t.map(function(t,r){var i=e[r];return n.create({style:t,entity:i})}))}},98693:(t,e,r)=>{"use strict";var n=r(87112).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var i=n(t,0,e.offset).length,o=i+n(t,e.offset,e.length).length,a=i;a<o;a++)r[a]=e.key}),r}},46900:(t,e,r)=>{"use strict";var n=r(87112),i=r(46500).OrderedSet,o=n.substr,a=i();t.exports=function(t,e){var r=Array(t.length).fill(a);return e&&e.forEach(function(e){for(var n=o(t,0,e.offset).length,i=n+o(t,e.offset,e.length).length;n<i;)r[n]=r[n].add(e.style),n++}),r}},33349:t=>{"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},93724:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980),o=r(4456),a=r(94263),u=r(44208),s=r(42351),c=r(59516),l=r(63313),f=o.isBrowser("Firefox");function h(t,e,r,o,a){var u=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,o);return i.push(t,u,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t._latestEditorState,n=e.data;if(n){if(t.props.handleBeforeInput&&u(t.props.handleBeforeInput(n,r,e.timeStamp))){e.preventDefault();return}var o=r.getSelection(),p=o.getStartOffset(),d=o.getAnchorKey();if(!o.isCollapsed()){e.preventDefault(),t.update(h(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));return}var g=h(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),v=!1;if(!(v=s(t._latestCommittedEditorState))){var y=r.getBlockTree(d),m=g.getBlockTree(d);v=y.size!==m.size||y.zip(m).some(function(t){var e=t[0],r=t[1],i=e.get("start"),o=i+(i>=p?n.length:0),a=e.get("end"),u=a+(a>=p?n.length:0),s=r.get("start"),c=r.get("end"),l=r.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==r.get("leaves").size||o!==s||u!==c||null!=l&&c-s!=a-i})}if(v||(v=f&&("'"==n||"/"==n)),v||(v=c(g.getDirectionMap()).get(d)!==c(r.getDirectionMap()).get(d)),v){e.preventDefault(),g=i.set(g,{forceSelection:!0}),t.update(g);return}g=i.set(g,{nativelyRenderedContent:g.getCurrentContent()}),t._pendingStateFromBeforeInput=g,l(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},68398:(t,e,r)=>{"use strict";var n=r(23980),i=r(63189),o=r(22102);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!t.props.preserveSelectionOnBlur&&o(r)===r.body){var a=r.defaultView.getSelection(),u=t.editor;1===a.rangeCount&&i(u,a.anchorNode)&&i(u,a.focusNode)&&a.removeAllRanges()}var s=t._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var l=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(n.acceptSelection(s,l))}}},11513:(t,e,r)=>{"use strict";var n=r(23980);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},59602:(t,e,r)=>{"use strict";var n=r(57292);t.exports=function(t,e){if(t._latestEditorState.getSelection().isCollapsed()){e.preventDefault();return}t.setClipboard(n(t._latestEditorState))}},62529:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980),o=r(77325),a=r(57292),u=r(73802),s=r(29588);t.exports=function(t,e){var r,c=t._latestEditorState,l=c.getSelection(),f=e.target;if(l.isCollapsed()){e.preventDefault();return}s(f)&&(r=u(o.getScrollParent(f)));var h=a(c);t.setClipboard(h),t.setMode("cut"),setTimeout(function(){var e;t.restoreEditorDOM(r),t.exitCurrentMode(),t.update((e=n.removeRange(c.getCurrentContent(),c.getSelection(),"forward"),i.push(c,e,"remove-range")))},0)}},39235:t=>{"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},72147:t=>{"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},20801:(t,e,r)=>{"use strict";var n=r(23980),i=r(4456);t.exports=function(t,e){var r=t._latestEditorState,o=r.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),i.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,a)):t.update(n.acceptSelection(r,a))}}},66361:(t,e,r)=>{"use strict";var n=r(87764),i=r(21885),o=r(23980),a=r(4456),u=r(33349).notEmptyKey,s=r(24082),c=r(27501),l=r(59516),f=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r,a,h,p,d=t.editor.ownerDocument.defaultView.getSelection(),g=d.anchorNode,v=d.isCollapsed,y=(null==g?void 0:g.nodeType)!==Node.TEXT_NODE&&(null==g?void 0:g.nodeType)!==Node.ELEMENT_NODE;if(null!=g&&!y){if(g.nodeType===Node.TEXT_NODE&&(null!==g.previousSibling||null!==g.nextSibling)){var m=g.parentNode;if(null==m)return;g.nodeValue=m.textContent;for(var b=m.firstChild;null!=b;b=b.nextSibling)b!==g&&m.removeChild(b)}var _=g.textContent,w=t._latestEditorState,x=l(s(g)),S=i.decode(x),k=S.blockKey,C=S.decoratorKey,A=S.leafKey,E=w.getBlockTree(k).getIn([C,"leaves",A]),D=E.start,B=E.end,O=w.getCurrentContent(),T=O.getBlockForKey(k),F=T.getText().slice(D,B);if(_.endsWith("\n\n")&&(_=_.slice(0,-1)),_===F){var M=e.nativeEvent.inputType;if(M){var K="deleteContentBackward"===M?c(w):w;K!==w&&(t.restoreEditorDOM(),t.update(K))}return}var I=w.getSelection(),R=I.merge({anchorOffset:D,focusOffset:B,isBackward:!1}),L=T.getEntityAt(D),N=u(L)?O.getEntity(L):null,P="MUTABLE"===(null!=N?N.getMutability():null),z=n.replaceText(O,R,_,T.getInlineStyleAt(D),P?T.getEntityAt(D):null);if(f)p=(h=D+Math.min(r=d.anchorOffset,a=d.focusOffset))+Math.abs(r-a),r=h,a=p;else{var j=_.length-F.length;h=I.getStartOffset(),p=I.getEndOffset(),r=v?p+j:h,a=p+j}var q=z.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:I.merge({anchorOffset:r,focusOffset:a})});t.update(o.push(w,q,P?"spellcheck-change":"apply-entity"))}}},21966:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980),o=r(47634),a=r(82736),u=r(30658),s=r(4456),c=r(44208),l=r(29663),f=r(51773),h=r(86081),p=r(41333),d=r(96691),g=r(48028),v=r(27501),y=r(35321),m=r(1177),b=r(86396),_=o.isOptionKeyCommand,w=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,o=t._latestEditorState;function s(r){var n=t.props[r];return!!n&&(n(e),!0)}switch(r){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&c(t.props.handleReturn(e,o)))return;break;case a.ESC:if(e.preventDefault(),s("onEscape"))return;break;case a.TAB:if(s("onTab"))return;break;case a.UP:if(s("onUpArrow"))return;break;case a.RIGHT:if(s("onRightArrow"))return;break;case a.DOWN:if(s("onDownArrow"))return;break;case a.LEFT:if(s("onLeftArrow"))return;break;case a.SPACE:w&&_(e)&&e.preventDefault()}var x=t.props.keyBindingFn(e);if(null==x||""===x){if(r===a.SPACE&&w&&_(e)){var S=n.replaceText(o.getCurrentContent(),o.getSelection(),"\xa0");t.update(i.push(o,S,"insert-characters"))}return}if("undo"===x){b(e,o,t.update);return}if(e.preventDefault(),!(t.props.handleKeyCommand&&c(t.props.handleKeyCommand(x,o,e.timeStamp)))){var k=function(t,e,r){switch(t){case"redo":return i.redo(e);case"delete":return y(e);case"delete-word":return h(e);case"backspace":return v(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,r);case"split-block":return p(e);case"transpose-characters":return m(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return d(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}(x,o,e);k!==o&&t.update(k)}}},73214:(t,e,r)=>{"use strict";var n=r(77462),i=r(8852),o=r(23931),a=r(87764),u=r(95796),s=r(23980),c=r(8778),l=r(94263),f=r(17753),h=r(44208),p=r(76390);function d(t,e,r){var n=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new o(e.clipboardData);if(!r.isRichText()){var g=r.getFiles(),v=r.getText();if(g.length>0){if(t.props.handlePastedFiles&&h(t.props.handlePastedFiles(g)))return;f(g,function(e){if(e=e||v){var r=t._latestEditorState,o=p(e),f=i.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),h=c.getCurrentBlockType(r),d=u.processText(o,f,h),g=n.createFromArray(d),y=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),g);t.update(s.push(r,y,"insert-fragment"))}});return}}var y=[],m=r.getText(),b=r.getHTML(),_=t._latestEditorState;if(t.props.formatPastedText){var w=t.props.formatPastedText(m,b),x=w.text,S=w.html;m=x,b=S}if(!(t.props.handlePastedText&&h(t.props.handlePastedText(m,b,_)))){if(m&&(y=p(m)),!t.props.stripPastedStyles){var k,C,A=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&A){if((null===(C=b)||void 0===C?void 0:C.indexOf(t.getEditorKey()))!==-1||1===y.length&&1===A.size&&A.first().getText()===m){t.update(d(t._latestEditorState,A));return}}else if(A&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&(k=y).length===A.size&&A.valueSeq().every(function(t,e){return t.getText()===k[e]})){t.update(d(t._latestEditorState,A));return}if(b){var E=u.processHTML(b,t.props.blockRenderMap);if(E){var D=E.contentBlocks,B=E.entityMap;if(D){var O=n.createFromArray(D);t.update(d(t._latestEditorState,O,B));return}}}t.setClipboard(null)}if(y.length){var T=i.create({style:_.getCurrentInlineStyle(),entity:l(_.getCurrentContent(),_.getSelection())}),F=c.getCurrentBlockType(_),M=u.processText(y,T,F),K=n.createFromArray(M);t.update(d(t._latestEditorState,K))}}}},16151:(t,e,r)=>{"use strict";var n=r(142),i=r(23980),o=r(61742),a=r(43290);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:Error().stack}),selectionState:JSON.stringify(e.toJS())})}return}var r=t.props.editorState,u=a(r,o(t)),s=u.selectionState;s!==r.getSelection()&&(r=u.needsRecovery?i.forceSelection(r,s):i.acceptSelection(r,s),t.update(r))}},35245:(t,e,r)=>{"use strict";var n=r(69487),i=r(87112).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(o,a){var u=t.getText(),s=t.getEntityAt(o);r.push({offset:i(u.slice(0,o)),length:i(u.slice(o,a)),key:Number(e[n.stringify(s)])})}),r}},72236:(t,e,r)=>{"use strict";var n=r(87112),i=r(68401),o=function(t,e){return t===e},a=function(t){return!!t},u=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),r=e.flatten().toSet().map(function(r){var u;return u=[],i(e.map(function(t){return t.has(r)}).toList(),o,a,function(e,i){var o=t.getText();u.push({offset:n.strlen(o.slice(0,e)),length:n.strlen(o.slice(e,i)),style:r})}),u});return Array.prototype.concat.apply(u,r.toJS())}},8209:(t,e,r)=>{"use strict";var n=r(87112),i=r(60193),o=r(20987),a=r(11600);function u(t,e){for(var r=1/0,n=1/0,i=-1/0,o=-1/0,a=0;a<t.length;a++){var u=t[a];0!==u.width&&1!==u.width&&(r=Math.min(r,u.top),n=Math.min(n,u.bottom),i=Math.max(i,u.top),o=Math.max(o,u.bottom))}return i<=n&&i-r<e&&o-n<e}t.exports=function(t){t.collapsed||a(!1);var e,r,s,c,l,f,h=(t=t.cloneRange()).startContainer;1!==h.nodeType&&(h=h.parentNode);var p=(r=getComputedStyle(e=h),(c=(s=i(e)).createElement("div")).style.fontFamily=r.fontFamily,c.style.fontSize=r.fontSize,c.style.fontStyle=r.fontStyle,c.style.fontWeight=r.fontWeight,c.style.lineHeight=r.lineHeight,c.style.position="absolute",c.textContent="M",(l=s.body)||a(!1),l.appendChild(c),f=c.getBoundingClientRect(),l.removeChild(c),f.height),d=t.endContainer,g=t.endOffset;for(t.setStart(t.startContainer,0);u(o(t),p)&&(d=t.startContainer,g=t.startOffset,d.parentNode||a(!1),t.setStartBefore(d),1!==d.nodeType||"inline"===getComputedStyle(d).display););for(var v=d,y=g-1;;){for(var m=v.nodeValue,b=y;b>=0;b--)if(!(null!=m&&b>0&&n.isSurrogatePair(m,b-1))){if(t.setStart(v,b),u(o(t),p))d=v,g=b;else break}if(-1===b||0===v.childNodes.length)break;y=function(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}(v=v.childNodes[b])}return t.setStart(d,g),t}},24082:(t,e,r)=>{"use strict";var n=r(60193),i=r(7606);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=i(e);if(null!=r)return r;e=e.parentNode}return null}},68401:t=>{"use strict";t.exports=function(t,e,r,n){if(t.size){var i=0;t.reduce(function(t,o,a){return e(t,o)||(r(t)&&n(i,a),i=a),o}),r(t.last())&&n(i,t.count())}}},6333:t=>{"use strict";var e={};t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(0x1000000*Math.random()).toString(32);return e[t]=!0,t}},48508:(t,e,r)=>{"use strict";var n=r(83188),i=r(9389),o=r(11600);function a(t,e,r,a,u,s,c){var l=r.getStartOffset(),f=r.getEndOffset(),h=t.__get(u).getMutability(),p=c?l:f;if("MUTABLE"===h)return r;var d=i(e,u).filter(function(t){return p<=t.end&&p>=t.start});1!=d.length&&o(!1);var g=d[0];if("IMMUTABLE"===h)return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});s||(c?f=g.end:l=g.start);var v=n.getRemovalRange(l,f,e.getText().slice(g.start,g.end),g.start,a);return r.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1})}t.exports=function(t,e,r,n,i){var o=n.getStartOffset(),u=n.getEndOffset(),s=e.getEntityAt(o),c=r.getEntityAt(u-1);if(!s&&!c)return n;var l=n;if(s&&s===c)l=a(t,e,l,i,s,!0,!0);else if(s&&c){var f=a(t,e,l,i,s,!1,!0),h=a(t,r,l,i,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:h.getFocusOffset(),isBackward:!1})}else if(s){var p=a(t,e,l,i,s,!1,!0);l=l.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=a(t,r,l,i,c,!1,!1);l=l.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return l}},61742:(t,e,r)=>{"use strict";var n=r(11600),i=r(85373);t.exports=function(t){var e=t.editorContainer;return e||n(!1),i(e.firstChild)||n(!1),e.firstChild}},71868:(t,e,r)=>{"use strict";var n=r(72364),i=r(65834);t.exports=function(t,e){var r=e.getStartKey(),o=e.getStartOffset(),a=e.getEndKey(),u=e.getEndOffset(),s=i(t,e).getBlockMap(),c=s.keySeq(),l=c.indexOf(r),f=c.indexOf(a)+1;return n(s.slice(l,f).map(function(t,e){var n=t.getText(),i=t.getCharacterList();return r===a?t.merge({text:n.slice(o,u),characterList:i.slice(o,u)}):e===r?t.merge({text:n.slice(o),characterList:i.slice(o)}):e===a?t.merge({text:n.slice(0,u),characterList:i.slice(0,u)}):t}))}},60193:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},18451:(t,e,r)=>{"use strict";var n=r(47634),i=r(82736),o=r(4456),a=o.isPlatform("Mac OS X"),u=a&&o.isBrowser("Firefox < 29"),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function l(t){return a&&t.altKey||c(t)}t.exports=function(t){switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return a&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return a&&c(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return a&&c(t)?"backspace-word":null;case 89:if(c(t))return a?"secondary-paste":"redo";return null;case 90:return(s(t)?t.shiftKey?"redo":"undo":null)||null;case i.RETURN:return"split-block";case i.DELETE:return!a&&t.shiftKey?null:l(t)?"delete-word":"delete";case i.BACKSPACE:return s(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace";case i.LEFT:return u&&s(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},43290:(t,e,r)=>{"use strict";var n=r(54315);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,u=r.focusOffset;return 0===r.rangeCount||null==i||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,i,o,a,u)}},54315:(t,e,r)=>{"use strict";var n=r(24082),i=r(7606),o=r(21310),a=r(11600),u=r(41934),s=r(59516);function c(t,e,r){var o=e,c=n(o);if(null!=c||t&&(t===o||t.firstChild===o)||a(!1),t===o&&(u(o=o.firstChild)||a(!1),"true"!==o.getAttribute("data-contents")&&a(!1),r>0&&(r=o.childNodes.length)),0===r){var f=null;if(null!=c)f=c;else{var h=function(t){for(;t.firstChild&&(u(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||i(t.firstChild));)t=t.firstChild;return t}(o);f=s(i(h))}return{key:f,offset:0}}var p=o.childNodes[r-1],d=null,g=null;if(i(p)){var v=function(t){for(;t.lastChild&&(u(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(p);d=s(i(v)),g=l(v)}else d=s(c),g=l(p);return{key:d,offset:g}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,i,a,u){var l=r.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:o(t,s(n(r)),i,s(n(a)),u),needsRecovery:!1};var h=null,p=null,d=!0;return l?(h={key:s(n(r)),offset:i},p=c(e,a,u)):f?(p={key:s(n(a)),offset:u},h=c(e,r,i)):(h=c(e,r,i),p=c(e,a,u),r===a&&i===u&&(d=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:o(t,h.key,h.offset,p.key,p.offset),needsRecovery:d}}},94263:(t,e,r)=>{"use strict";var n=r(33349).notEmptyKey;function i(t,e){return n(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){if(e.isCollapsed()){var r,n=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(n).getEntityAt(o-1))!==t.getBlockForKey(n).getEntityAt(o)?null:i(t.getEntityMap(),r):null}var a=e.getStartKey(),u=e.getStartOffset(),s=t.getBlockForKey(a);return r=u===s.getLength()?null:s.getEntityAt(u),i(t.getEntityMap(),r)}},57292:(t,e,r)=>{"use strict";var n=r(71868);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},21968:(t,e,r)=>{"use strict";var n=r(39320);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?e.get(a):null}return o?o.getNextSiblingKey():null}},41899:t=>{"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},66814:(t,e,r)=>{"use strict";var n=r(20987);t.exports=function(t){var e=n(t),r=0,i=0,o=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var u=e[1];r=u.top,i=u.right,o=u.bottom,a=u.left}else{var s=e[0];r=s.top,i=s.right,o=s.bottom,a=s.left}for(var c=1;c<e.length;c++){var l=e[c];0!==l.height&&0!==l.width&&(r=Math.min(r,l.top),i=Math.max(i,l.right),o=Math.max(o,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:i,bottom:o,left:a,width:i-a,height:o-r}}},20987:(t,e,r)=>{"use strict";var n=r(4456),i=r(11600),o=n.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var o,a=n===t.commonAncestorContainer;a?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var u=Array.from(e.getClientRects());if(r.push(u),a)return r.reverse(),(o=[]).concat.apply(o,r);e.setEndBefore(n)}i(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=o},9389:(t,e,r)=>{"use strict";var n=r(11600);t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){r.push({start:t,end:e})}),r.length||n(!1),r}},4122:(t,e,r)=>{"use strict";var n=r(4456),i=r(11600),o=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},7606:(t,e,r)=>{"use strict";var n=r(41934);t.exports=function t(e){if(n(e)){var r=e.getAttribute("data-offset-key");if(r)return r;for(var i=0;i<e.childNodes.length;i++){var o=t(e.childNodes[i]);if(o)return o}}return null}},17753:(t,e,r)=>{"use strict";var n=r(11600),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,u=[];t.forEach(function(s){!function(t,e){if(!r.g.FileReader||t.type&&!(t.type in o)){e("");return}if(""===t.type){var a="";i.test(t.name)&&(a=t.name.replace(i,"")),e(a);return}var u=new FileReader;u.onload=function(){var t=u.result;"string"!=typeof t&&n(!1),e(t)},u.onerror=function(){e("")},u.readAsText(t)}(s,function(r){a++,r&&u.push(r.slice(0,5e3)),a==t.length&&e(u.join("\r"))})})}},21310:(t,e,r)=>{"use strict";var n=r(21885),i=r(59516);t.exports=function(t,e,r,o,a){var u=i(t.getSelection());if(!e||!o)return u;var s=n.decode(e),c=s.blockKey,l=t.getBlockTree(c),f=l&&l.getIn([s.decoratorKey,"leaves",s.leafKey]),h=n.decode(o),p=h.blockKey,d=t.getBlockTree(p),g=d&&d.getIn([h.decoratorKey,"leaves",h.leafKey]);if(!f||!g)return u;var v=f.get("start"),y=g.get("start"),m=f?v+r:null,b=g?y+a:null;if(u.getAnchorKey()===c&&u.getAnchorOffset()===m&&u.getFocusKey()===p&&u.getFocusOffset()===b)return u;var _=!1;if(c===p){var w=f.get("end"),x=g.get("end");_=y===v&&x===w?a<r:y<v}else _=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===p}).first()===p;return u.merge({anchorKey:c,anchorOffset:m,focusKey:p,focusOffset:b,isBackward:_})}},93184:(t,e,r)=>{"use strict";var n=r(66814);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=n(e.getRangeAt(0)),i=r.top,o=r.right,a=r.bottom,u=r.left;return 0===i&&0===o&&0===a&&0===u?null:r}},97245:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},61584:t=>{"use strict";t.exports=function(t){return"undefined"!=typeof window&&!!window.__DRAFT_GKX&&!!window.__DRAFT_GKX[t]}},11035:(t,e,r)=>{"use strict";var n=r(77462),i=r(39320),o=r(46500),a=r(2801),u=r(11600),s=r(72364),c=o.List,l=function(t,e,r,n,i,o){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(i),c=s.getText(),l=s.getCharacterList(),f=o+n.getText().length,h=null;switch(u){case"MERGE_OLD_DATA_TO_NEW_DATA":h=n.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":h=n.getData()}var p=s.getType();c&&"unstyled"===p&&(p=n.getType());var d=s.merge({text:c.slice(0,o)+n.getText()+c.slice(o),characterList:a(l,n.getCharacterList(),o),type:p,data:h});return t.merge({blockMap:r.set(i,d),selectionBefore:e,selectionAfter:e.merge({anchorKey:i,anchorOffset:f,focusKey:i,focusOffset:f,isBackward:!1})})},f=function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.slice(0,e),a=i.slice(0,e),u=r.first();return t.merge({text:o+u.getText(),characterList:a.concat(u.getCharacterList()),type:o?t.getType():u.getType(),data:u.getData()})},h=function(t,e,r){var n=t.getText(),i=t.getCharacterList(),o=n.length,a=n.slice(e,o),u=i.slice(e,o),s=r.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(u),data:s.getData()})},p=function(t,e){var r=t.getKey(),n=t,i=[];for(e.get(r)&&i.push(r);n&&n.getNextSiblingKey();){var o=n.getNextSiblingKey();if(!o)break;i.push(o),n=e.get(o)}return i},d=function(t,e,r,o,a,u){var s,l=r.first()instanceof i,d=[],g=o.size,v=r.get(a),y=o.first(),m=o.last(),b=m.getLength(),_=m.getKey(),w=l&&(!v.getChildKeys().isEmpty()||!y.getChildKeys().isEmpty());r.forEach(function(t,e){if(e!==a){d.push(t);return}w?d.push(t):d.push(f(t,u,o)),o.slice(w?0:1,g-1).forEach(function(t){return d.push(t)}),d.push(h(t,u,o))});var x=n.createFromArray(d);return l&&(x=(s=x).withMutations(function(t){var e=v.getKey(),r=y.getKey(),n=v.getNextSiblingKey(),i=v.getParentKey(),o=p(y,s),a=o[o.length-1];if(t.get(r)?(t.setIn([e,"nextSibling"],r),t.setIn([r,"prevSibling"],e)):(t.setIn([e,"nextSibling"],y.getNextSiblingKey()),t.setIn([y.getNextSiblingKey(),"prevSibling"],e)),t.setIn([a,"nextSibling"],n),n&&t.setIn([n,"prevSibling"],a),o.forEach(function(e){return t.setIn([e,"parent"],i)}),i){var u=s.get(i).getChildKeys(),l=u.indexOf(e),f=u.toArray();f.splice.apply(f,[l+1,0].concat(o)),t.setIn([i,"children"],c(f))}})),t.merge({blockMap:x,selectionBefore:e,selectionAfter:e.merge({anchorKey:_,anchorOffset:b,focusKey:_,focusOffset:b,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||u(!1);var o=t.getBlockMap(),a=s(r),c=e.getStartKey(),f=e.getStartOffset(),h=o.get(c);return(h instanceof i&&(h.getChildKeys().isEmpty()||u(!1)),1===a.size)?l(t,e,o,a.first(),c,f,n):d(t,e,o,a,c,f)}},2801:t=>{"use strict";t.exports=function(t,e,r){var n=t;if(r===n.count())e.forEach(function(t){n=n.push(t)});else if(0===r)e.reverse().forEach(function(t){n=n.unshift(t)});else{var i=n.slice(0,r),o=n.slice(r);n=i.concat(e,o).toList()}return n}},57136:(t,e,r)=>{"use strict";var n=r(46500),i=r(2801),o=r(11600),a=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||o(!1);var u=null;if(null!=r&&(u=r.length),null==u||0===u)return t;var s=t.getBlockMap(),c=e.getStartKey(),l=e.getStartOffset(),f=s.get(c),h=f.getText(),p=f.merge({text:h.slice(0,l)+r+h.slice(l,f.getLength()),characterList:i(f.getCharacterList(),a(n,u).toList(),l)}),d=l+u;return t.merge({blockMap:s.set(c,p),selectionAfter:e.merge({anchorOffset:d,focusOffset:d})})}},41934:t=>{"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&t.nodeType===Node.ELEMENT_NODE}},44208:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},34282:(t,e,r)=>{"use strict";var n=r(41934);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"A"===t.nodeName}},10765:(t,e,r)=>{"use strict";var n=r(41934);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"BR"===t.nodeName}},85373:t=>{"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},61100:(t,e,r)=>{"use strict";var n=r(41934);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"IMG"===t.nodeName}},29588:t=>{"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},42351:t=>{"use strict";t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),i=e.getStartOffset(),o=!1;return n.some(function(t){return i===t.get("start")?(o=!0,!0):i<t.get("end")&&t.get("leaves").some(function(t){return i===t.get("start")&&(o=!0,!0)})}),o}},75810:(t,e,r)=>{"use strict";var n=r(82736);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},29663:(t,e,r)=>{"use strict";var n=r(23980),i=r(8209),o=r(54315),a=r(2466),u=r(26127);t.exports=function(t,e){var r=u(t,function(t){var r=t.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(t,1);var n=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return o(t,null,(n=i(n)).endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},51773:(t,e,r)=>{"use strict";var n=r(48150),i=r(23980),o=r(2466),a=r(26127);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return o(t,1);var i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(0,r);return o(t,n.getBackward(a).length||1)},"backward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},86081:(t,e,r)=>{"use strict";var n=r(48150),i=r(23980),o=r(88756),a=r(26127);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=e.getStartOffset(),i=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(r);return o(t,n.getForward(a).length||1)},"forward");return e===t.getCurrentContent()?t:i.push(t,e,"remove-range")}},41333:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return i.push(t,e,"split-block")}},96691:(t,e,r)=>{"use strict";var n=r(23980);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),i=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0})}},48028:(t,e,r)=>{"use strict";var n=r(23980);t.exports=function(t){var e=t.getSelection(),r=e.getStartKey();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},27501:(t,e,r)=>{"use strict";var n=r(23980),i=r(87112),o=r(2466),a=r(26127);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a-1];return o(t,u?i.getUTF16Length(u,0):1)},"backward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},35321:(t,e,r)=>{"use strict";var n=r(23980),i=r(87112),o=r(88756),a=r(26127);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a];return o(t,u?i.getUTF16Length(u,0):1)},"forward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},1177:(t,e,r)=>{"use strict";var n=r(87764),i=r(23980),o=r(71868);t.exports=function(t){var e,r,a=t.getSelection();if(!a.isCollapsed())return t;var u=a.getAnchorOffset();if(0===u)return t;var s=a.getAnchorKey(),c=t.getCurrentContent(),l=c.getBlockForKey(s).getLength();if(l<=1)return t;u===l?(e=a.set("anchorOffset",u-1),r=a):r=(e=a.set("focusOffset",u+1)).set("anchorOffset",u+1);var f=o(c,e),h=n.removeRange(c,e,"backward"),p=h.getSelectionAfter(),d=p.getAnchorOffset()-1,g=p.merge({anchorOffset:d,focusOffset:d}),v=n.replaceWithFragment(h,g,f),y=i.push(t,v,"insert-fragment");return i.acceptSelection(y,r)}},86396:(t,e,r)=>{"use strict";var n=r(23980);t.exports=function(t,e,r){var i=n.undo(e);if("spellcheck-change"===e.getLastChangeType()){var o=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:o}));return}if(t.preventDefault(),!e.getNativelyRenderedContent()){r(i);return}r(n.set(e,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)}},81598:(t,e,r)=>{"use strict";var n=r(46500).Map;t.exports=function(t,e,r){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat(n([[o,a.get(o)]])).map(r);return t.merge({blockMap:a.merge(u),selectionBefore:e,selectionAfter:e})}},14533:(t,e,r)=>{"use strict";var n=r(39320),i=r(21968),o=r(46500),a=r(11600),u=o.OrderedMap,s=o.List,c=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},l=function(t,e,r,n,i){if(!i)return t;var o="after"===n,a=e.getKey(),u=r.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),h=e.getPrevSiblingKey(),p=r.getParentKey(),d=o?r.getNextSiblingKey():u,g=o?u:r.getPrevSiblingKey();return t.withMutations(function(t){c(l,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})}),c(h,t,function(t){return t.merge({nextSibling:f})}),c(f,t,function(t){return t.merge({prevSibling:h})}),c(d,t,function(t){return t.merge({prevSibling:a})}),c(g,t,function(t){return t.merge({nextSibling:a})}),c(p,t,function(t){var e=t.getChildKeys(),r=e.indexOf(u),n=e.toArray();return n.splice(o?r+1:0!==r?r-1:0,0,a),t.merge({children:s(n)})}),c(a,t,function(t){return t.merge({nextSibling:d,prevSibling:g,parent:p})})})};t.exports=function(t,e,r,o){"replace"!==o||a(!1);var s=r.getKey(),c=e.getKey();c!==s||a(!1);var f=t.getBlockMap(),h=e instanceof n,p=[e],d=f.delete(c);h&&(p=[],d=f.withMutations(function(t){var r=e.getNextSiblingKey(),n=i(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===c}).takeWhile(function(t){var e=t.getKey(),i=e===c,o=!r&&t.getParentKey()&&(!n||e!==n);return!!(i||r&&e!==r||o)}).forEach(function(e){p.push(e),t.delete(e.getKey())})}));var g=d.toSeq().takeUntil(function(t){return t===r}),v=d.toSeq().skipUntil(function(t){return t===r}).skip(1),y=p.map(function(t){return[t.getKey(),t]}),m=u();if("before"===o){var b=t.getBlockBefore(s);b&&b.getKey()===e.getKey()&&a(!1),m=g.concat([].concat(y,[[s,r]]),v).toOrderedMap()}else if("after"===o){var _=t.getBlockAfter(s);_&&_.getKey()===c&&a(!1),m=g.concat([[s,r]].concat(y),v).toOrderedMap()}return t.merge({blockMap:l(m,e,r,o,h),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},2466:(t,e,r)=>{"use strict";r(25584),t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),i=r.getStartKey(),o=r.getStartOffset(),a=i,u=0;if(e>o){var s=n.getKeyBefore(i);null==s?a=i:(a=s,u=n.getBlockForKey(s).getText().length)}else u=o-e;return r.merge({focusKey:a,focusOffset:u,isBackward:!0})}},88756:(t,e,r)=>{"use strict";r(25584),t.exports=function(t,e){var r,n=t.getSelection(),i=n.getStartKey(),o=n.getStartOffset(),a=t.getCurrentContent(),u=i;return e>a.getBlockForKey(i).getText().length-o?(u=a.getKeyAfter(i),r=0):r=o+e,n.merge({focusKey:u,focusOffset:r})}},72364:(t,e,r)=>{"use strict";var n=r(39320),i=r(6333),o=r(46500).OrderedMap,a=function(t){var e,r={};return o(t.withMutations(function(t){t.forEach(function(n,o){var a=n.getKey(),u=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),l=n.getParentKey(),f=i();if(r[a]=f,u&&(t.get(u)?t.setIn([u,"prevSibling"],f):t.setIn([a,"nextSibling"],null)),s&&(t.get(s)?t.setIn([s,"nextSibling"],f):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var h=t.get(l).getChildKeys();t.setIn([l,"children"],h.set(h.indexOf(n.getKey()),f))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],f),t.setIn([a,"prevSibling"],r[e.getKey()])),e=t.get(a);c.forEach(function(e){t.get(e)?t.setIn([e,"parent"],f):t.setIn([a,"children"],n.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[r[t.getKey()],t.set("key",r[t.getKey()])]}))};t.exports=function(t){return t.first()instanceof n?a(t):o(t.toArray().map(function(t){var e=i();return[e,t.set("key",e)]}))}},65834:(t,e,r)=>{"use strict";var n=r(8852),i=r(68401),o=r(11600);function a(t,e,r){var a=e.getCharacterList(),u=r>0?a.get(r-1):void 0,s=r<a.count()?a.get(r):void 0,c=u?u.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c&&"MUTABLE"!==t.__get(l).getMutability()){for(var f,h,p=(i(a,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===l},function(t,e){t<=r&&e>=r&&(f={start:t,end:e})}),"object"!=typeof f&&o(!1),f),d=p.start,g=p.end;d<g;)h=a.get(d),a=a.set(d,n.applyEntity(h,null)),d++;return e.set("characterList",a)}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),i={},o=e.getStartKey(),u=e.getStartOffset(),s=r.get(o),c=a(n,s,u);c!==s&&(i[o]=c);var l=e.getEndKey(),f=e.getEndOffset(),h=r.get(l);o===l&&(h=c);var p=a(n,h,f);return(p!==h&&(i[l]=p),Object.keys(i).length)?t.merge({blockMap:r.merge(i),selectionAfter:e}):t.set("selectionAfter",e)}},11693:(t,e,r)=>{"use strict";var n=r(39320),i=r(21968),o=r(46500);o.List;var a=o.Map,u=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}},s=function(t,e){var r=[];if(!t)return r;for(var n=e.get(t);n&&n.getParentKey();){var i=n.getParentKey();i&&r.push(i),n=i?e.get(i):null}return r},c=function(t,e){var r=[];if(!t)return r;for(var n=i(t,e);n&&e.get(n);){var o=e.get(n);r.push(n),n=o.getParentKey()?i(o,e):null}return r},l=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getNextSiblingKey();n&&!e.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},f=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getPrevSiblingKey();n&&!e.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n},h=function(t,e,r){if(0===e)for(;e<r;)t=t.shift(),e++;else if(r===t.count())for(;r>e;)t=t.pop(),r--;else{var n=t.slice(0,e),i=t.slice(r);t=n.concat(i).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var r,o,p=t.getBlockMap(),d=e.getStartKey(),g=e.getStartOffset(),v=e.getEndKey(),y=e.getEndOffset(),m=p.get(d),b=p.get(v),_=m instanceof n,w=[];if(_){var x=b.getChildKeys(),S=s(v,p);b.getNextSiblingKey()&&(w=w.concat(S)),x.isEmpty()||(w=w.concat(S.concat([v]))),w=w.concat(s(i(b,p),p))}o=m===b?h(m.getCharacterList(),g,y):m.getCharacterList().slice(0,g).concat(b.getCharacterList().slice(y));var k=m.merge({text:m.getText().slice(0,g)+b.getText().slice(y),characterList:o}),C=_&&0===g&&0===y&&b.getParentKey()===d&&null==b.getPrevSiblingKey()?a([[d,null]]):p.toSeq().skipUntil(function(t,e){return e===d}).takeUntil(function(t,e){return e===v}).filter(function(t,e){return -1===w.indexOf(e)}).concat(a([[v,null]])).map(function(t,e){return e===d?k:null}),A=p.merge(C).filter(function(t){return!!t});return _&&m!==b&&(A=(r=A).withMutations(function(t){if(u(m.getKey(),t,function(e){return e.merge({nextSibling:l(e,t,p),prevSibling:f(e,t,p)})}),u(b.getKey(),t,function(e){return e.merge({nextSibling:l(e,t,p),prevSibling:f(e,t,p)})}),s(m.getKey(),p).forEach(function(e){return u(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:l(e,t,p),prevSibling:f(e,t,p)})})}),u(m.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:m.getPrevSiblingKey()})}),u(m.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:l(e,t,p)})}),u(b.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:f(e,t,p)})}),u(b.getPrevSiblingKey(),t,function(t){return t.merge({nextSibling:b.getNextSiblingKey()})}),s(b.getKey(),p).forEach(function(e){u(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:l(e,t,p),prevSibling:f(e,t,p)})})}),c(b,p).forEach(function(e){return u(e,t,function(e){return e.merge({nextSibling:l(e,t,p),prevSibling:f(e,t,p)})})}),null==r.get(m.getKey())&&null!=r.get(b.getKey())&&b.getParentKey()===m.getKey()&&null==b.getPrevSiblingKey()){var e=m.getPrevSiblingKey();u(b.getKey(),t,function(t){return t.merge({prevSibling:e})}),u(e,t,function(t){return t.merge({nextSibling:b.getKey()})});var n=e?r.get(e):null,i=n?n.getParentKey():null;if(m.getChildKeys().forEach(function(e){u(e,t,function(t){return t.merge({parent:i})})}),null!=i){var o=r.get(i);u(i,t,function(t){return t.merge({children:o.getChildKeys().concat(m.getChildKeys())})})}u(m.getChildKeys().find(function(t){return null===r.get(t).getNextSiblingKey()}),t,function(t){return t.merge({nextSibling:m.getNextSiblingKey()})})}})),t.merge({blockMap:A,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:g,focusKey:d,focusOffset:g,isBackward:!1})})}},26127:(t,e,r)=>{"use strict";var n=r(87764),i=r(61584)("draft_tree_data_support");t.exports=function(t,e,r){var o=t.getSelection(),a=t.getCurrentContent(),u=o,s=o.getAnchorKey(),c=o.getFocusKey(),l=a.getBlockForKey(s);if(i&&"forward"===r&&s!==c)return a;if(o.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return a;if(i&&o.getAnchorOffset()===a.getBlockForKey(s).getLength()){var f=a.getBlockForKey(l.nextSibling);if(!f||0===f.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((u=e(t))===o)return a}return n.removeRange(a,u,r)}},9539:t=>{"use strict";var e=RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},28334:(t,e,r)=>{"use strict";var n=r(43101),i=r(142),o=r(4456),a=r(63189),u=r(22102),s=r(60193),c=r(11600),l=r(41934),f=o.isBrowser("IE");function h(t,e){for(var r=t,n=r;r;){if(l(r)&&n.hasAttribute("contenteditable"))return function(t,e){if(!t)return"[empty]";var r=function t(e,r){var n=void 0!==r?r(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return s(e).createTextNode("[text "+i+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,u=0;u<a.length;u++)o.appendChild(t(a[u],r));return o}(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(l(r)||c(!1),r.outerHTML)}(r,e);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function p(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function d(t,e,r,n){var o=u();if(t.extend&&null!=e&&a(o,e)){r>p(e)&&i.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(a){throw i.logSelectionStateFailure({anonymizedDom:h(e,function(e){var r=[];return e===o&&r.push("active element"),e===t.anchorNode&&r.push("selection anchor node"),e===t.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:s,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r),t.addRange(c.cloneRange())}}function g(t,e,r,o){var a=s(e).createRange();if(r>p(e)&&(i.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(o.toJS())}),n.handleExtensionCausedError()),a.setStart(e,r),f)try{t.addRange(a)}catch(t){}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,r,n,i){var o=s(e);if(a(o.documentElement,e)){var u=o.defaultView.getSelection(),c=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),h=t.getFocusOffset(),p=t.getIsBackward();if(!u.extend&&p){var v=c,y=l;c=f,l=h,f=v,h=y,p=!1}var m=c===r&&n<=l&&i>=l,b=f===r&&n<=h&&i>=h;if(m&&b){u.removeAllRanges(),g(u,e,l-n,t),d(u,e,h-n,t);return}if(p){if(b&&(u.removeAllRanges(),g(u,e,h-n,t)),m){var _=u.focusNode,w=u.focusOffset;u.removeAllRanges(),g(u,e,l-n,t),d(u,_,w,t)}}else m&&(u.removeAllRanges(),g(u,e,l-n,t)),b&&d(u,e,h-n,t)}},addFocusToSelection:d}},90674:(t,e,r)=>{"use strict";var n=r(39320),i=r(6333),o=r(46500),a=r(11600),u=r(81598),s=o.List,c=o.Map,l=function(t,e,r){if(t){var n=e.get(t);n&&e.set(t,r(n))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var r=e.getAnchorKey(),o=t.getBlockMap(),f=o.get(r),h=f.getText();if(!h){var p=f.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return u(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var d=e.getAnchorOffset(),g=f.getCharacterList(),v=i(),y=f instanceof n,m=f.merge({text:h.slice(0,d),characterList:g.slice(0,d)}),b=m.merge({key:v,text:h.slice(d),characterList:g.slice(d),data:c()}),_=o.toSeq().takeUntil(function(t){return t===f}),w=o.toSeq().skipUntil(function(t){return t===f}).rest(),x=_.concat([[r,m],[v,b]],w).toOrderedMap();return y&&(f.getChildKeys().isEmpty()||a(!1),x=x.withMutations(function(t){var e=m.getKey(),r=b.getKey();l(m.getParentKey(),t,function(t){var n=t.getChildKeys(),i=n.indexOf(e)+1,o=n.toArray();return o.splice(i,0,r),t.merge({children:s(o)})}),l(m.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:r})}),l(e,t,function(t){return t.merge({nextSibling:r})}),l(r,t,function(t){return t.merge({prevSibling:e})})})),t.merge({blockMap:x,selectionBefore:e,selectionAfter:e.merge({anchorKey:v,anchorOffset:0,focusKey:v,focusOffset:0,isBackward:!1})})}},76390:t=>{"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},22041:t=>{"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}},23931:(t,e,r)=>{"use strict";var n=r(78585),i=r(35516),o=r(91373),a=RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1};function s(t){if("file"==t.kind)return t.getAsFile()}var c=function(){function t(t){this.data=t,this.types=t.types?i(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!!(this.getHTML()&&this.getText())||!this.isImage()&&this.types.some(function(t){return u[t]})},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.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.isLink=function(){return this.types.some(function(t){return -1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},e.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.isImage=function(){if(this.types.some(function(t){return -1!=t.indexOf("application/x-moz-file")}))return!0;for(var t=this.getFiles(),e=0;e<t.length;e++){var r=t[e].type;if(!n.isImage(r))return!1}return!0},e.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.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(s).filter(o.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=c},82736:t=>{"use strict";t.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}},78585:t=>{"use strict";var e={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var n=r(t);return e.isImage(t)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(t){return t.split("/")}t.exports=e},73913:t=>{"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}t.exports={getTop:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}}},77325:(t,e,r)=>{"use strict";function n(t,e){var r=i.get(t,e);return"auto"===r||"scroll"===r}var i={get:r(28388),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(n(t,"overflow")||n(t,"overflowY")||n(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},79225:t=>{"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟：-？！-／［-｀｛-･⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞\xa1-\xb1\xb4-\xb8\xba\xbb\xbf]"}}},53970:t=>{"use strict";var e=function(){function t(t){var e,r;r=void 0,(e="_uri")in this?Object.defineProperty(this,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[e]=r,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},50385:(t,e,r)=>{"use strict";var n=r(86410),i=r(11600),o={L:"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ƺƻƼ-ƿǀ-ǃǄ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚｦ-ｯｰｱ-ﾝﾞ-ﾟﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},a=RegExp("["+o.L+o.R+o.AL+"]"),u=RegExp("["+o.R+o.AL+"]");function s(t){var e=a.exec(t);return null==e?null:e[0]}function c(t){var e=s(t);return null==e?n.NEUTRAL:u.exec(e)?n.RTL:n.LTR}function l(t,e){if(e=e||n.NEUTRAL,!t.length)return e;var r=c(t);return r===n.NEUTRAL?e:r}function f(t,e){return e||(e=n.getGlobalDir()),n.isStrong(e)||i(!1),l(t,e)}t.exports={firstStrongChar:s,firstStrongCharDir:c,resolveBlockDir:l,getDirection:f,isDirectionLTR:function(t,e){return f(t,e)===n.LTR},isDirectionRTL:function(t,e){return f(t,e)===n.RTL}}},86410:(t,e,r)=>{"use strict";var n=r(11600),i=null;function o(t){return"LTR"===t||"RTL"===t}function a(t){return o(t)||n(!1),"LTR"===t?"ltr":"rtl"}t.exports={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:o,getHTMLDir:a,getHTMLDirIfDifferent:function(t,e){return o(t)||n(!1),o(e)||n(!1),t===e?null:a(t)},setGlobalDir:function(t){i=t},initGlobalDir:function(){i="LTR"},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}}},38856:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(50385),o=r(86410),a=r(11600),u=function(){function t(t){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),t?o.isStrong(t)||a(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=i.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=u},87112:(t,e,r)=>{"use strict";var n=r(11600),i=/[\uD800-\uDFFF]/;function o(t){return 55296<=t&&t<=57343}function a(t){return i.test(t)}function u(t,e){return 1+o(t.charCodeAt(e))}function s(t,e,r){if(e=e||0,r=void 0===r?1/0:r||0,!a(t))return t.substr(e,r);var n=t.length;if(n<=0||e>n||r<=0)return"";var i=0;if(e>0){for(;e>0&&i<n;e--)i+=u(t,i);if(i>=n)return""}else if(e<0){for(i=n;e<0&&0<i;e++)i-=u(t,i-1);i<0&&(i=0)}var o=n;if(r<n)for(o=i;r>0&&o<n;r--)o+=u(t,o);return t.substring(i,o)}t.exports={getCodePoints:function(t){for(var e=[],r=0;r<t.length;r+=u(t,r))e.push(t.codePointAt(r));return e},getUTF16Length:u,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:o,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||n(!1),e+1===t.length)return!1;var r=t.charCodeAt(e),i=t.charCodeAt(e+1);return 55296<=r&&r<=56319&&56320<=i&&i<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,r=0;r<t.length;r+=u(t,r))e++;return e},substring:function(t,e,r){(e=e||0)<0&&(e=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-e);return s(t,e=e<r?e:r,n)},substr:s}},4456:(t,e,r)=>{"use strict";var n=r(50344),i=r(45577),o=r(81961),a=r(51855);function u(t,e,r,n){if(t===r)return!0;if(!r.startsWith(t))return!1;var o=r.slice(t.length);return!!e&&(o=n?n(o):o,i.contains(o,e))}function s(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}t.exports=o({isBrowser:function(t){return u(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){return u(n.browserArchitecture,null,t)},isDevice:function(t){return u(n.deviceName,null,t)},isEngine:function(t){return u(n.engineName,n.engineVersion,t)},isPlatform:function(t){return u(n.platformName,n.platformFullVersion,t,s)},isPlatformArchitecture:function(t){return u(n.platformArchitecture,null,t)}},a)},50344:(t,e,r)=>{"use strict";var n=r(59113),i="Unknown",o={"Mac OS":"Mac OS X"},a=new n().getResult(),u=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(a.browser.version),s={browserArchitecture:a.cpu.architecture||i,browserFullVersion:a.browser.version||i,browserMinorVersion:u.minor||i,browserName:a.browser.name||i,browserVersion:a.browser.major||i,deviceName:a.device.model||i,engineName:a.engine.name||i,engineVersion:a.engine.version||i,platformArchitecture:a.cpu.architecture||i,platformName:function(t){return o[t]||t}(a.os.name)||i,platformVersion:a.os.version||i,platformFullVersion:a.os.version||i};t.exports=s},45577:(t,e,r)=>{"use strict";var n=r(11600),i=/\./,o=/\|\|/,a=/\s+\-\s+/,u=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function c(t,e){if(""===(t=t.trim()))return!0;var r,n,o,a,u,s=e.split(i),c=f(t),p=c.modifier,d=c.rangeComponents;switch(p){case"<":return -1===v(s,d);case"<=":return -1===(r=v(s,d))||0===r;case">=":return l(s,d);case">":return 1===v(s,d);case"~":case"~>":return n=d.slice(),(o=d.slice()).length>1&&o.pop(),a=o.length-1,h(u=parseInt(o[a],10))&&(o[a]=u+1+""),l(s,n)&&-1===v(s,o);default:return 0===v(s,d)}}function l(t,e){var r=v(t,e);return 1===r||0===r}function f(t){var e=t.split(i),r=e[0].match(u);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(e.slice(1))}}function h(t){return!isNaN(t)&&isFinite(t)}function p(t){return!f(t).modifier}function d(t,e){for(var r=t.length;r<e;r++)t[r]="0"}function g(t,e){return(typeof t!=typeof e&&n(!1),t>e)?1:t<e?-1:0}function v(t,e){for(var r=function(t,e){d(t=t.slice(),(e=e.slice()).length);for(var r=0;r<e.length;r++){var n=e[r].match(/^[x*]$/i);if(n&&(e[r]=t[r]="0","*"===n[0]&&r===e.length-1))for(var i=r;i<t.length;i++)t[i]="0"}return d(e,t.length),[t,e]}(t,e),n=r[0],i=r[1],o=0;o<i.length;o++){var a=function(t,e){var r=t.match(s)[1],n=e.match(s)[1],i=parseInt(r,10),o=parseInt(n,10);return h(i)&&h(o)&&i!==o?g(i,o):g(t,e)}(n[o],i[o]);if(a)return a}return 0}var y={contains:function(t,e){var r,i,u;return r=t.trim(),i=e.trim(),(u=r.split(o)).length>1?u.some(function(t){return y.contains(t,i)}):function(t,e){var r=t.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return c(r[0],e);var i=r[0],o=r[1];return p(i)&&p(o)||n(!1),c(">="+i,e)&&c("<="+o,e)}(r=u[0].trim(),i)}};t.exports=y},82252:t=>{"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,function(t,e){return e.toUpperCase()})}},63189:(t,e,r)=>{"use strict";var n=r(94487);t.exports=function t(e,r){return!!e&&!!r&&(e===r||!n(e)&&(n(r)?t(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}},35516:(t,e,r)=>{"use strict";var n=r(11600);t.exports=function(t){return t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&n(!1),"number"!=typeof e&&n(!1),0===e||e-1 in t||n(!1),"function"!=typeof t.callee||n(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var r=Array(e),i=0;i<e;i++)r[i]=t[i];return r}(t):[t]}},17843:t=>{"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},91373:t=>{"use strict";function e(t){return function(){return t}}var r=function(){};r.thatReturns=e,r.thatReturnsFalse=e(!1),r.thatReturnsTrue=e(!0),r.thatReturnsNull=e(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},22102:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},58444:t=>{"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},59299:(t,e,r)=>{"use strict";var n=r(55634);t.exports=function(t){var e=n(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},55634:(t,e,r)=>{"use strict";var n=r(63189);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!n(e,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-e.clientLeft,right:Math.round(r.right)-e.clientLeft,top:Math.round(r.top)-e.clientTop,bottom:Math.round(r.bottom)-e.clientTop}}},73802:(t,e,r)=>{"use strict";var n=r(58444),i=r(14014);t.exports=function(t){var e=n(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var r=i(t),o=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-o.clientWidth,u=t.scrollHeight-o.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,u)),r}},28388:(t,e,r)=>{"use strict";var n=r(82252),i=r(11296);function o(t){return null==t?t:String(t)}t.exports=function(t,e){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(t,null)))return o(r.getPropertyValue(i(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(t,null))return o(r.getPropertyValue(i(e)));if("display"===e)return"none"}return t.currentStyle?"float"===e?o(t.currentStyle.cssFloat||t.currentStyle.styleFloat):o(t.currentStyle[n(e)]):o(t.style&&t.style[n(e)])}},14014:t=>{"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},55071:t=>{"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:e(),height:r()}},t.exports=n},11296:t=>{"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},11600:t=>{"use strict";var e=function(t){};t.exports=function(t,r){for(var n,i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];if(e(r),!t){if(void 0===r)n=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(n=Error(r.replace(/%s/g,function(){return String(o[u++])}))).name="Invariant Violation"}throw n.framesToPop=1,n}}},86012:t=>{"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!!(t&&("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},94487:(t,e,r)=>{"use strict";var n=r(86012);t.exports=function(t){return n(t)&&3==t.nodeType}},43464:t=>{"use strict";t.exports=function(t){var e=t||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var i=arguments[n];i&&(e=(e?e+" ":"")+i)}return e}},81961:t=>{"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){if(!t)return null;var i={};for(var o in t)e.call(t,o)&&(i[o]=r.call(n,t[o],o,t));return i}},51855:t=>{"use strict";t.exports=function(t){var e={};return function(r){return e.hasOwnProperty(r)||(e[r]=t.call(this,r)),e[r]}}},59516:t=>{"use strict";t.exports=function(t){if(null!=t)return t;throw Error("Got unexpected null or undefined")}},63313:(t,e,r)=>{"use strict";r(70627),t.exports=r.g.setImmediate},25584:(t,e,r)=>{"use strict";var n=r(91373);t.exports=n},46500:function(t){var e;e=function(){"use strict";var t,e,r,n,i,o,a,u,s,c,l=Array.prototype.slice;function f(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function h(t){return v(t)?t:Y(t)}function p(t){return y(t)?t:J(t)}function d(t){return m(t)?t:G(t)}function g(t){return v(t)&&!b(t)?t:$(t)}function v(t){return!!(t&&t[w])}function y(t){return!!(t&&t[x])}function m(t){return!!(t&&t[S])}function b(t){return y(t)||m(t)}function _(t){return!!(t&&t[k])}f(p,h),f(d,h),f(g,h),h.isIterable=v,h.isKeyed=y,h.isIndexed=m,h.isAssociative=b,h.isOrdered=_,h.Keyed=p,h.Indexed=d,h.Set=g;var w="@@__IMMUTABLE_ITERABLE__@@",x="@@__IMMUTABLE_KEYED__@@",S="@@__IMMUTABLE_INDEXED__@@",k="@@__IMMUTABLE_ORDERED__@@",C="delete",A={},E={value:!1},D={value:!1};function B(t){return t.value=!1,t}function O(t){t&&(t.value=!0)}function T(){}function F(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function M(t){return void 0===t.size&&(t.size=t.__iterate(I)),t.size}function K(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||0xffffffff===r)return NaN;e=r}return e<0?M(t)+e:e}function I(){return!0}function R(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function L(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var N="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",z=N||P;function j(t){this.next=t}function q(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function U(){return{value:void 0,done:!0}}function H(t){return t&&"function"==typeof t.next}function W(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(N&&t[N]||t[P]);if("function"==typeof e)return e}function X(t){return t&&"number"==typeof t.length}function Y(t){return null==t?ti():v(t)?t.toSeq():function(t){var e=tu(t)||"object"==typeof t&&new tt(t);if(!e)throw TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function J(t){return null==t?ti().toKeyedSeq():v(t)?y(t)?t.toSeq():t.fromEntrySeq():to(t)}function G(t){return null==t?ti():v(t)?y(t)?t.entrySeq():t.toIndexedSeq():ta(t)}function $(t){return(null==t?ti():v(t)?y(t)?t.entrySeq():t:ta(t)).toSetSeq()}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=0,j.VALUES=1,j.ENTRIES=2,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[z]=function(){return this},f(Y,h),Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Y.prototype.__iterate=function(t,e){return ts(this,t,e,!0)},Y.prototype.__iterator=function(t,e){return tc(this,t,e,!0)},f(J,Y),J.prototype.toKeyedSeq=function(){return this},f(G,Y),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return ts(this,t,e,!1)},G.prototype.__iterator=function(t,e){return tc(this,t,e,!1)},f($,Y),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},Y.isSeq=tn,Y.Keyed=J,Y.Set=$,Y.Indexed=G;var Z="@@__IMMUTABLE_SEQ__@@";function Q(t){this._array=t,this.size=t.length}function tt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function te(t){this._iterable=t,this.size=t.length||t.size}function tr(t){this._iterator=t,this._iteratorCache=[]}function tn(t){return!!(t&&t[Z])}function ti(){return t||(t=new Q([]))}function to(t){var e=Array.isArray(t)?new Q(t).fromEntrySeq():H(t)?new tr(t).fromEntrySeq():V(t)?new te(t).fromEntrySeq():"object"==typeof t?new tt(t):void 0;if(!e)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function ta(t){var e=tu(t);if(!e)throw TypeError("Expected Array or iterable object of values: "+t);return e}function tu(t){return X(t)?new Q(t):H(t)?new tr(t):V(t)?new te(t):void 0}function ts(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var u=i[r?o-a:a];if(!1===e(u[1],n?u[0]:a,t))return a+1}return a}return t.__iterateUncached(e,r)}function tc(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,a=0;return new j(function(){var t=i[r?o-a:a];return a++>o?U():q(e,n?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,r)}function tl(t,e){return e?function t(e,r,n,i){return Array.isArray(r)?e.call(i,n,G(r).map(function(n,i){return t(e,n,i,r)})):tf(r)?e.call(i,n,J(r).map(function(n,i){return t(e,n,i,r)})):r}(e,t,"",{"":t}):function t(e){return Array.isArray(e)?G(e).map(t).toList():tf(e)?J(e).map(t).toMap():e}(t)}function tf(t){return t&&(t.constructor===Object||void 0===t.constructor)}function th(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!("function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e))}function tp(t,e){if(t===e)return!0;if(!v(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||y(t)!==y(e)||m(t)!==m(e)||_(t)!==_(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!b(t);if(_(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&th(i[1],t)&&(r||th(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size){if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}}var a=!0,u=e.__iterate(function(e,n){if(r?!t.has(e):i?!th(e,t.get(n,A)):!th(t.get(n,A),e))return a=!1,!1});return a&&t.size===u}function td(t,r){if(!(this instanceof td))return new td(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(e)return e;e=this}}function tg(t,e){if(!t)throw Error(e)}function tv(t,e,n){if(!(this instanceof tv))return new tv(t,e,n);if(tg(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(r)return r;r=this}}function ty(){throw TypeError("Abstract")}function tm(){}function tb(){}function t_(){}Y.prototype[Z]=!0,f(Q,G),Q.prototype.get=function(t,e){return this.has(t)?this._array[K(this,t)]:e},Q.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},Q.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new j(function(){return i>n?U():q(t,i,r[e?n-i++:i++])})},f(tt,J),tt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},tt.prototype.has=function(t){return this._object.hasOwnProperty(t)},tt.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var a=n[e?i-o:o];if(!1===t(r[a],a,this))return o+1}return o},tt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new j(function(){var a=n[e?i-o:o];return o++>i?U():q(t,a,r[a])})},tt.prototype[k]=!0,f(te,G),te.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r,n=W(this._iterable),i=0;if(H(n))for(;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},te.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!H(r))return new j(U);var n=0;return new j(function(){var e=r.next();return e.done?e:q(t,n++,e.value)})},f(tr,G),tr.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var a=r.value;if(i[o]=a,!1===t(a,o++,this))break}return o},tr.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new j(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return q(t,i,n[i++])})},f(td,G),td.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},td.prototype.get=function(t,e){return this.has(t)?this._value:e},td.prototype.includes=function(t){return th(this._value,t)},td.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:new td(this._value,L(e,r,r)-L(t,r,0))},td.prototype.reverse=function(){return this},td.prototype.indexOf=function(t){return th(this._value,t)?0:-1},td.prototype.lastIndexOf=function(t){return th(this._value,t)?this.size:-1},td.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},td.prototype.__iterator=function(t,e){var r=this,n=0;return new j(function(){return n<r.size?q(t,n++,r._value):U()})},td.prototype.equals=function(t){return t instanceof td?th(this._value,t._value):tp(t)},f(tv,G),tv.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},tv.prototype.get=function(t,e){return this.has(t)?this._start+K(this,t)*this._step:e},tv.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tv.prototype.slice=function(t,e){var r;return R(t,e,this.size)?this:(t=L(t,this.size,0),(e=L(e,r=this.size,r))<=t)?new tv(0,0):new tv(this.get(t,this._end),this.get(e,this._end),this._step)},tv.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return -1},tv.prototype.lastIndexOf=function(t){return this.indexOf(t)},tv.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},tv.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new j(function(){var a=i;return i+=e?-n:n,o>r?U():q(t,o++,a)})},tv.prototype.equals=function(t){return t instanceof tv?this._start===t._start&&this._end===t._end&&this._step===t._step:tp(this,t)},f(ty,h),f(tm,ty),f(tb,ty),f(t_,ty),ty.Keyed=tm,ty.Indexed=tb,ty.Set=t_;var tw="function"==typeof Math.imul&&-2===Math.imul(0xffffffff,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function tx(t){return t>>>1&0x40000000|0xbfffffff&t}function tS(t){if(!1===t||null==t||"function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e,r,i=typeof t;if("number"===i){var o=0|t;for(o!==t&&(o^=0xffffffff*t);t>0xffffffff;)t/=0xffffffff,o^=t;return tx(o)}if("string"===i)return t.length>tO?(void 0===(r=tM[e=t])&&(r=tk(e),tF===tT&&(tF=0,tM={}),tF++,tM[e]=r),r):tk(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===i)return function(t){var e;if(tE&&void 0!==(e=n.get(t))||void 0!==(e=t[tB])||!tA&&(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[tB])||void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t))))return e;if(e=++tD,0x40000000&tD&&(tD=0),tE)n.set(t,e);else if(void 0!==tC&&!1===tC(t))throw Error("Non-extensible objects are not allowed as keys.");else if(tA)Object.defineProperty(t,tB,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[tB]=e;else if(void 0!==t.nodeType)t[tB]=e;else throw Error("Unable to set a non-enumerable property on object.");return e}(t);if("function"==typeof t.toString)return tk(t.toString());throw Error("Value type "+i+" cannot be hashed.")}function tk(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tx(e)}var tC=Object.isExtensible,tA=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),tE="function"==typeof WeakMap;tE&&(n=new WeakMap);var tD=0,tB="__immutablehash__";"function"==typeof Symbol&&(tB=Symbol(tB));var tO=16,tT=255,tF=0,tM={};function tK(t){tg(t!==1/0,"Cannot perform this action with an infinite size.")}function tI(t){return null==t?tY():tR(t)&&!_(t)?t:tY().withMutations(function(e){var r=p(t);tK(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function tR(t){return!!(t&&t[tL])}f(tI,tm),tI.prototype.toString=function(){return this.__toString("Map {","}")},tI.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},tI.prototype.set=function(t,e){return tJ(this,t,e)},tI.prototype.setIn=function(t,e){return this.updateIn(t,A,function(){return e})},tI.prototype.remove=function(t){return tJ(this,t,A)},tI.prototype.deleteIn=function(t){return this.updateIn(t,function(){return A})},tI.prototype.update=function(t,e,r){return 1==arguments.length?t(this):this.updateIn([t],e,r)},tI.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=function t(e,r,n,i){var o=e===A,a=r.next();if(a.done){var u=o?n:e,s=i(u);return s===u?e:s}tg(o||e&&e.set,"invalid keyPath");var c=a.value,l=o?A:e.get(c,A),f=t(l,r,n,i);return f===l?e:f===A?e.remove(c):(o?tY():e).set(c,f)}(this,ez(t),e,r);return n===A?void 0:n},tI.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):tY()},tI.prototype.merge=function(){return tQ(this,void 0,arguments)},tI.prototype.mergeWith=function(t){var e=l.call(arguments,1);return tQ(this,t,e)},tI.prototype.mergeIn=function(t){var e=l.call(arguments,1);return this.updateIn(t,tY(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},tI.prototype.mergeDeep=function(){return tQ(this,t0,arguments)},tI.prototype.mergeDeepWith=function(t){var e=l.call(arguments,1);return tQ(this,t1(t),e)},tI.prototype.mergeDeepIn=function(t){var e=l.call(arguments,1);return this.updateIn(t,tY(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},tI.prototype.sort=function(t){return ep(eB(this,t))},tI.prototype.sortBy=function(t,e){return ep(eB(this,e,t))},tI.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},tI.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new T)},tI.prototype.asImmutable=function(){return this.__ensureOwner()},tI.prototype.wasAltered=function(){return this.__altered},tI.prototype.__iterator=function(t,e){return new tH(this,t,e)},tI.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},tI.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?tX(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},tI.isMap=tR;var tL="@@__IMMUTABLE_MAP__@@",tN=tI.prototype;function tP(t,e){this.ownerID=t,this.entries=e}function tz(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function tj(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function tq(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function tU(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function tH(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&tV(t._root)}function tW(t,e){return q(t,e[0],e[1])}function tV(t,e){return{node:t,index:0,__prev:e}}function tX(t,e,r,n){var i=Object.create(tN);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function tY(){return i||(i=tX(0))}function tJ(t,e,r){if(t._root){var n,i,o=B(E),a=B(D);if(n=tG(t._root,t.__ownerID,0,void 0,e,r,o,a),!a.value)return t;i=t.size+(o.value?r===A?-1:1:0)}else{if(r===A)return t;i=1,n=new tP(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?tX(i,n):tY()}function tG(t,e,r,n,i,o,a,u){return t?t.update(e,r,n,i,o,a,u):o===A?t:(O(u),O(a),new tU(e,n,[i,o]))}function t$(t){return t.constructor===tU||t.constructor===tq}function tZ(t,e,r,n,i){if(t.keyHash===n)return new tq(e,n,[t.entry,i]);var o,a=(0===r?t.keyHash:t.keyHash>>>r)&31,u=(0===r?n:n>>>r)&31,s=a===u?[tZ(t,e,r+5,n,i)]:(o=new tU(e,n,i),a<u?[t,o]:[o,t]);return new tz(e,1<<a|1<<u,s)}function tQ(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],a=p(o);v(o)||(a=a.map(function(t){return tl(t)})),n.push(a)}return t2(t,e,n)}function t0(t,e,r){return t&&t.mergeDeep&&v(e)?t.mergeDeep(e):th(t,e)?t:e}function t1(t){return function(e,r,n){if(e&&e.mergeDeepWith&&v(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return th(e,i)?e:i}}function t2(t,e,r){return 0===(r=r.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,A,function(t){return t===A?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function t3(t){return t-=t>>1&0x55555555,t=(t=(0x33333333&t)+(t>>2&0x33333333))+(t>>4)&0xf0f0f0f,t+=t>>8,127&(t+=t>>16)}function t8(t,e,r,n){var i=n?t:F(t);return i[e]=r,i}tN[tL]=!0,tN[C]=tN.remove,tN.removeIn=tN.deleteIn,tP.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(th(r,i[o][0]))return i[o][1];return n},tP.prototype.update=function(t,e,r,n,i,o,a){for(var u=i===A,s=this.entries,c=0,l=s.length;c<l&&!th(n,s[c][0]);c++);var f=c<l;if(f?s[c][1]===i:u)return this;if(O(a),(u||!f)&&O(o),!u||1!==s.length){if(!f&&!u&&s.length>=t6)return function(t,e,r,n){t||(t=new T);for(var i=new tU(t,tS(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}(t,s,n,i);var h=t&&t===this.ownerID,p=h?s:F(s);return(f?u?c===l-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h)?(this.entries=p,this):new tP(t,p)}},tz.prototype.get=function(t,e,r,n){void 0===e&&(e=tS(r));var i=1<<((0===t?e:e>>>t)&31),o=this.bitmap;return(o&i)==0?n:this.nodes[t3(o&i-1)].get(t+5,e,r,n)},tz.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=tS(n));var u=(0===e?r:r>>>e)&31,s=1<<u,c=this.bitmap,l=(c&s)!=0;if(!l&&i===A)return this;var f=t3(c&s-1),h=this.nodes,p=l?h[f]:void 0,d=tG(p,t,e+5,r,n,i,o,a);if(d===p)return this;if(!l&&d&&h.length>=t5)return function(t,e,r,n,i){for(var o=0,a=Array(32),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[o++]:void 0;return a[n]=i,new tj(t,o+1,a)}(t,h,c,u,d);if(l&&!d&&2===h.length&&t$(h[1^f]))return h[1^f];if(l&&d&&1===h.length&&t$(d))return d;var g=t&&t===this.ownerID,v=l?d?c:c^s:c|s,y=l?d?t8(h,f,d,g):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,a=0;a<n;a++)a===e&&(o=1),i[a]=t[a+o];return i}(h,f,g):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),a=0,u=0;u<i;u++)u===e?(o[u]=r,a=-1):o[u]=t[u+a];return o}(h,f,d,g);return g?(this.bitmap=v,this.nodes=y,this):new tz(t,v,y)},tj.prototype.get=function(t,e,r,n){void 0===e&&(e=tS(r));var i=(0===t?e:e>>>t)&31,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},tj.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=tS(n));var u=(0===e?r:r>>>e)&31,s=i===A,c=this.nodes,l=c[u];if(s&&!l)return this;var f=tG(l,t,e+5,r,n,i,o,a);if(f===l)return this;var h=this.count;if(l){if(!f&&--h<t4)return function(t,e,r,n){for(var i=0,o=0,a=Array(r),u=0,s=1,c=e.length;u<c;u++,s<<=1){var l=e[u];void 0!==l&&u!==n&&(i|=s,a[o++]=l)}return new tz(t,i,a)}(t,c,h,u)}else h++;var p=t&&t===this.ownerID,d=t8(c,u,f,p);return p?(this.count=h,this.nodes=d,this):new tj(t,h,d)},tq.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(th(r,i[o][0]))return i[o][1];return n},tq.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=tS(n));var u=i===A;if(r!==this.keyHash)return u?this:(O(a),O(o),tZ(this,t,e,r,[n,i]));for(var s=this.entries,c=0,l=s.length;c<l&&!th(n,s[c][0]);c++);var f=c<l;if(f?s[c][1]===i:u)return this;if(O(a),(u||!f)&&O(o),u&&2===l)return new tU(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,p=h?s:F(s);return(f?u?c===l-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h)?(this.entries=p,this):new tq(t,this.keyHash,p)},tU.prototype.get=function(t,e,r,n){return th(r,this.entry[0])?this.entry[1]:n},tU.prototype.update=function(t,e,r,n,i,o,a){var u=i===A,s=th(n,this.entry[0]);if(s?i===this.entry[1]:u)return this;if(O(a),u){O(o);return}return s?t&&t===this.ownerID?(this.entry[1]=i,this):new tU(t,this.keyHash,[n,i]):(O(o),tZ(this,t,e,tS(n),[n,i]))},tP.prototype.iterate=tq.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},tz.prototype.iterate=tj.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},tU.prototype.iterate=function(t,e){return t(this.entry)},f(tH,j),tH.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return tW(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return tW(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return tW(t,o.entry);e=this._stack=tV(o,e)}continue}e=this._stack=this._stack.__prev}return U()};var t6=8,t5=16,t4=8;function t9(t){var e=ea();if(null==t)return e;if(t7(t))return t;var r=d(t),n=r.size;return 0===n?e:(tK(n),n>0&&n<32)?eo(0,n,5,null,new er(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})})}function t7(t){return!!(t&&t[et])}f(t9,tb),t9.of=function(){return this(arguments)},t9.prototype.toString=function(){return this.__toString("List [","]")},t9.prototype.get=function(t,e){if((t=K(this,t))>=0&&t<this.size){var r=ec(this,t+=this._origin);return r&&r.array[31&t]}return e},t9.prototype.set=function(t,e){return function(t,e,r){if((e=K(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?el(t,e).set(0,r):el(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=B(D);return(e>=eh(t._capacity)?n=eu(n,t.__ownerID,0,e,r,o):i=eu(i,t.__ownerID,t._level,e,r,o),o.value)?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):eo(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},t9.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},t9.prototype.insert=function(t,e){return this.splice(t,0,e)},t9.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ea()},t9.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){el(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},t9.prototype.pop=function(){return el(this,0,-1)},t9.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){el(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},t9.prototype.shift=function(){return el(this,1)},t9.prototype.merge=function(){return ef(this,void 0,arguments)},t9.prototype.mergeWith=function(t){var e=l.call(arguments,1);return ef(this,t,e)},t9.prototype.mergeDeep=function(){return ef(this,t0,arguments)},t9.prototype.mergeDeepWith=function(t){var e=l.call(arguments,1);return ef(this,t1(t),e)},t9.prototype.setSize=function(t){return el(this,0,t)},t9.prototype.slice=function(t,e){var r=this.size;return R(t,e,r)?this:el(this,L(t,r,0),L(e,r,r))},t9.prototype.__iterator=function(t,e){var r=0,n=ei(this,e);return new j(function(){var e=n();return e===en?U():q(t,r++,e)})},t9.prototype.__iterate=function(t,e){for(var r,n=0,i=ei(this,e);(r=i())!==en&&!1!==t(r,n++,this););return n},t9.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?eo(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},t9.isList=t7;var et="@@__IMMUTABLE_LIST__@@",ee=t9.prototype;function er(t,e){this.array=t,this.ownerID=e}ee[et]=!0,ee[C]=ee.remove,ee.setIn=tN.setIn,ee.deleteIn=ee.removeIn=tN.removeIn,ee.update=tN.update,ee.updateIn=tN.updateIn,ee.mergeIn=tN.mergeIn,ee.mergeDeepIn=tN.mergeDeepIn,ee.withMutations=tN.withMutations,ee.asMutable=tN.asMutable,ee.asImmutable=tN.asImmutable,ee.wasAltered=tN.wasAltered,er.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n,i=r>>>e&31;if(i>=this.array.length)return new er([],t);var o=0===i;if(e>0){var a=this.array[i];if((n=a&&a.removeBefore(t,e-5,r))===a&&o)return this}if(o&&!n)return this;var u=es(this,t);if(!o)for(var s=0;s<i;s++)u.array[s]=void 0;return n&&(u.array[i]=n),u},er.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&31;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var a=es(this,t);return a.array.splice(i+1),n&&(a.array[i]=n),a};var en={};function ei(t,e){var r=t._origin,n=t._capacity,i=eh(n),o=t._tail;return function t(a,u,s){var c,l,f,h,p,d,g;return 0===u?(c=s===i?o&&o.array:a&&a.array,l=s>r?0:r-s,(f=n-s)>32&&(f=32),function(){if(l===f)return en;var t=e?--f:l++;return c&&c[t]}):(p=a&&a.array,d=s>r?0:r-s>>u,(g=(n-s>>u)+1)>32&&(g=32),function(){for(;;){if(h){var r=h();if(r!==en)return r;h=null}if(d===g)return en;var n=e?--g:d++;h=t(p&&p[n],u-5,s+(n<<u))}})}(t._root,t._level,0)}function eo(t,e,r,n,i,o,a){var u=Object.create(ee);return u.size=e-t,u._origin=t,u._capacity=e,u._level=r,u._root=n,u._tail=i,u.__ownerID=o,u.__hash=a,u.__altered=!1,u}function ea(){return o||(o=eo(0,0,5))}function eu(t,e,r,n,i,o){var a,u=n>>>r&31,s=t&&u<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[u],l=eu(c,e,r-5,n,i,o);return l===c?t:((a=es(t,e)).array[u]=l,a)}return s&&t.array[u]===i?t:(O(o),a=es(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function es(t,e){return e&&t&&e===t.ownerID?t:new er(t?t.array.slice():[],e)}function ec(t,e){if(e>=eh(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&31],n-=5;return r}}function el(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new T,i=t._origin,o=t._capacity,a=i+e,u=void 0===r?o:r<0?o+r:i+r;if(a===i&&u===o)return t;if(a>=u)return t.clear();for(var s=t._level,c=t._root,l=0;a+l<0;)c=new er(c&&c.array.length?[void 0,c]:[],n),s+=5,l+=1<<s;l&&(a+=l,i+=l,u+=l,o+=l);for(var f=eh(o),h=eh(u);h>=1<<s+5;)c=new er(c&&c.array.length?[c]:[],n),s+=5;var p=t._tail,d=h<f?ec(t,u-1):h>f?new er([],n):p;if(p&&h>f&&a<o&&p.array.length){for(var g=c=es(c,n),v=s;v>5;v-=5){var y=f>>>v&31;g=g.array[y]=es(g.array[y],n)}g.array[f>>>5&31]=p}if(u<o&&(d=d&&d.removeAfter(n,0,u)),a>=h)a-=h,u-=h,s=5,c=null,d=d&&d.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var m=a>>>s&31;if(m!==h>>>s&31)break;m&&(l+=(1<<s)*m),s-=5,c=c.array[m]}c&&a>i&&(c=c.removeBefore(n,s,a-l)),c&&h<f&&(c=c.removeAfter(n,s,h-l)),l&&(a-=l,u-=l)}return t.__ownerID?(t.size=u-a,t._origin=a,t._capacity=u,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):eo(a,u,s,c,d)}function ef(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var a=r[o],u=d(a);u.size>i&&(i=u.size),v(a)||(u=u.map(function(t){return tl(t)})),n.push(u)}return i>t.size&&(t=t.setSize(i)),t2(t,e,n)}function eh(t){return t<32?0:t-1>>>5<<5}function ep(t){return null==t?ev():ed(t)?t:ev().withMutations(function(e){var r=p(t);tK(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function ed(t){return tR(t)&&_(t)}function eg(t,e,r,n){var i=Object.create(ep.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function ev(){return a||(a=eg(tY(),ea()))}function ey(t,e,r){var n,i,o=t._map,a=t._list,u=o.get(e),s=void 0!==u;if(r===A){if(!s)return t;a.size>=32&&a.size>=2*o.size?(n=(i=a.filter(function(t,e){return void 0!==t&&u!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=u===a.size-1?a.pop():a.set(u,void 0))}else if(s){if(r===a.get(u)[1])return t;n=o,i=a.set(u,[e,r])}else n=o.set(e,a.size),i=a.set(a.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):eg(n,i)}function em(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function eb(t){this._iter=t,this.size=t.size}function e_(t){this._iter=t,this.size=t.size}function ew(t){this._iter=t,this.size=t.size}function ex(t){var e=eL(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=eN,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new j(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,r)},e}function eS(t,e,r){var n=eL(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,A);return o===A?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new j(function(){var i=o.next();if(i.done)return i;var a=i.value,u=a[0];return q(n,u,e.call(r,a[1],u,t),i)})},n}function ek(t,e){var r=eL(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ex(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=eN,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function eC(t,e,r,n){var i=eL(t);return n&&(i.has=function(n){var i=t.get(n,A);return i!==A&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,A);return o!==A&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,u=0;return t.__iterate(function(t,o,s){if(e.call(r,t,o,s))return u++,i(t,n?o:u-1,a)},o),u},i.__iteratorUncached=function(i,o){var a=t.__iterator(2,o),u=0;return new j(function(){for(;;){var o=a.next();if(o.done)return o;var s=o.value,c=s[0],l=s[1];if(e.call(r,l,c,t))return q(i,n?c:u++,l,o)}})},i}function eA(t,e,r,n){var i,o=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),R(e,r,o))return t;var a=L(e,o,0),u=L(r,o,o);if(a!=a||u!=u)return eA(t.toSeq().cacheResult(),e,r,n);var s=u-a;s==s&&(i=s<0?0:s);var c=eL(t);return c.size=0===i?i:t.size&&i||void 0,!n&&tn(t)&&i>=0&&(c.get=function(e,r){return(e=K(this,e))>=0&&e<i?t.get(e+a,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===i)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,s=!0,c=0;return t.__iterate(function(t,r){if(!(s&&(s=u++<a)))return c++,!1!==e(t,n?r:c-1,o)&&c!==i}),c},c.__iteratorUncached=function(e,r){if(0!==i&&r)return this.cacheResult().__iterator(e,r);var o=0!==i&&t.__iterator(e,r),u=0,s=0;return new j(function(){for(;u++<a;)o.next();if(++s>i)return U();var t=o.next();return n||1===e?t:0===e?q(e,s-1,void 0,t):q(e,s-1,t.value[1],t)})},c}function eE(t,e,r,n){var i=eL(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var u=!0,s=0;return t.__iterate(function(t,o,c){if(!(u&&(u=e.call(r,t,o,c))))return s++,i(t,n?o:s-1,a)}),s},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var u=t.__iterator(2,o),s=!0,c=0;return new j(function(){var t,o,l;do{if((t=u.next()).done){if(n||1===i)return t;if(0===i)return q(i,c++,void 0,t);return q(i,c++,t.value[1],t)}var f=t.value;o=f[0],l=f[1],s&&(s=e.call(r,l,o,a))}while(s);return 2===i?t:q(i,o,l,t)})},i}function eD(t,e,r){var n=eL(t);return n.__iterateUncached=function(n,i){var o=0,a=!1;return function t(u,s){var c=this;u.__iterate(function(i,u){return(!e||s<e)&&v(i)?t(i,s+1):!1===n(i,r?u:o++,c)&&(a=!0),!a},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),a=[],u=0;return new j(function(){for(;o;){var t=o.next();if(!1!==t.done){o=a.pop();continue}var s=t.value;if(2===n&&(s=s[1]),!((!e||a.length<e)&&v(s)))return r?t:q(n,u++,s,t);a.push(o),o=s.__iterator(n,i)}return U()})},n}function eB(t,e,r){e||(e=eP);var n=y(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?J(o):m(t)?G(o):$(o)}function eO(t,e,r){if(e||(e=eP),!r)return t.reduce(function(t,r){return eT(e,t,r)?r:t});var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return eT(e,t[1],r[1])?r:t});return n&&n[0]}function eT(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function eF(t,e,r){var n=eL(t);return n.size=new Q(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},n.__iteratorUncached=function(t,n){var i=r.map(function(t){return t=h(t),W(n?t.reverse():t)}),o=0,a=!1;return new j(function(){var r;return(a||(a=(r=i.map(function(t){return t.next()})).some(function(t){return t.done})),a)?U():q(t,o++,e.apply(null,r.map(function(t){return t.value})))})},n}function eM(t,e){return tn(t)?e:t.constructor(e)}function eK(t){if(t!==Object(t))throw TypeError("Expected [K, V] tuple: "+t)}function eI(t){return tK(t.size),M(t)}function eR(t){return y(t)?p:m(t)?d:g}function eL(t){return Object.create((y(t)?J:m(t)?G:$).prototype)}function eN(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function eP(t,e){return t>e?1:t<e?-1:0}function ez(t){var e=W(t);if(!e){if(!X(t))throw TypeError("Expected iterable or array-like: "+t);e=W(h(t))}return e}function ej(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(t);(function(t,e){try{e.forEach(eW.bind(void 0,t))}catch(t){}})(i,a),i.size=a.length,i._name=e,i._keys=a,i._defaultValues=t}this._map=tI(o)},i=n.prototype=Object.create(eq);return i.constructor=n,n}f(ep,tI),ep.of=function(){return this(arguments)},ep.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ep.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},ep.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ev()},ep.prototype.set=function(t,e){return ey(this,t,e)},ep.prototype.remove=function(t){return ey(this,t,A)},ep.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ep.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},ep.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},ep.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?eg(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},ep.isOrderedMap=ed,ep.prototype[k]=!0,ep.prototype[C]=ep.prototype.remove,f(em,J),em.prototype.get=function(t,e){return this._iter.get(t,e)},em.prototype.has=function(t){return this._iter.has(t)},em.prototype.valueSeq=function(){return this._iter.valueSeq()},em.prototype.reverse=function(){var t=this,e=ek(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},em.prototype.map=function(t,e){var r=this,n=eS(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},em.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?eI(this):0,function(i){return t(i,e?--r:r++,n)}),e)},em.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?eI(this):0;return new j(function(){var i=r.next();return i.done?i:q(t,e?--n:n++,i.value,i)})},em.prototype[k]=!0,f(eb,G),eb.prototype.includes=function(t){return this._iter.includes(t)},eb.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},eb.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new j(function(){var e=r.next();return e.done?e:q(t,n++,e.value,e)})},f(e_,$),e_.prototype.has=function(t){return this._iter.includes(t)},e_.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},e_.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new j(function(){var e=r.next();return e.done?e:q(t,e.value,e.value,e)})},f(ew,J),ew.prototype.entrySeq=function(){return this._iter.toSeq()},ew.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){eK(e);var n=v(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ew.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new j(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){eK(n);var i=v(n);return q(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},eb.prototype.cacheResult=em.prototype.cacheResult=e_.prototype.cacheResult=ew.prototype.cacheResult=eN,f(ej,tm),ej.prototype.toString=function(){return this.__toString(eH(this)+" {","}")},ej.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},ej.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},ej.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=eU(this,tY()))},ej.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+eH(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:eU(this,r)},ej.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:eU(this,e)},ej.prototype.wasAltered=function(){return this._map.wasAltered()},ej.prototype.__iterator=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},ej.prototype.__iterate=function(t,e){var r=this;return p(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},ej.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?eU(this,e,t):(this.__ownerID=t,this._map=e,this)};var eq=ej.prototype;function eU(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function eH(t){return t._name||t.constructor.name||"Record"}function eW(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){tg(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function eV(t){return null==t?eZ():eX(t)&&!_(t)?t:eZ().withMutations(function(e){var r=g(t);tK(r.size),r.forEach(function(t){return e.add(t)})})}function eX(t){return!!(t&&t[eY])}eq[C]=eq.remove,eq.deleteIn=eq.removeIn=tN.removeIn,eq.merge=tN.merge,eq.mergeWith=tN.mergeWith,eq.mergeIn=tN.mergeIn,eq.mergeDeep=tN.mergeDeep,eq.mergeDeepWith=tN.mergeDeepWith,eq.mergeDeepIn=tN.mergeDeepIn,eq.setIn=tN.setIn,eq.update=tN.update,eq.updateIn=tN.updateIn,eq.withMutations=tN.withMutations,eq.asMutable=tN.asMutable,eq.asImmutable=tN.asImmutable,f(eV,t_),eV.of=function(){return this(arguments)},eV.fromKeys=function(t){return this(p(t).keySeq())},eV.prototype.toString=function(){return this.__toString("Set {","}")},eV.prototype.has=function(t){return this._map.has(t)},eV.prototype.add=function(t){return eG(this,this._map.set(t,!0))},eV.prototype.remove=function(t){return eG(this,this._map.remove(t))},eV.prototype.clear=function(){return eG(this,this._map.clear())},eV.prototype.union=function(){var t=l.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)g(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},eV.prototype.intersect=function(){var t=l.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return g(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},eV.prototype.subtract=function(){var t=l.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return g(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},eV.prototype.merge=function(){return this.union.apply(this,arguments)},eV.prototype.mergeWith=function(t){var e=l.call(arguments,1);return this.union.apply(this,e)},eV.prototype.sort=function(t){return eQ(eB(this,t))},eV.prototype.sortBy=function(t,e){return eQ(eB(this,e,t))},eV.prototype.wasAltered=function(){return this._map.wasAltered()},eV.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},eV.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},eV.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},eV.isSet=eX;var eY="@@__IMMUTABLE_SET__@@",eJ=eV.prototype;function eG(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function e$(t,e){var r=Object.create(eJ);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function eZ(){return u||(u=e$(tY()))}function eQ(t){return null==t?e3():e0(t)?t:e3().withMutations(function(e){var r=g(t);tK(r.size),r.forEach(function(t){return e.add(t)})})}function e0(t){return eX(t)&&_(t)}eJ[eY]=!0,eJ[C]=eJ.remove,eJ.mergeDeep=eJ.merge,eJ.mergeDeepWith=eJ.mergeWith,eJ.withMutations=tN.withMutations,eJ.asMutable=tN.asMutable,eJ.asImmutable=tN.asImmutable,eJ.__empty=eZ,eJ.__make=e$,f(eQ,eV),eQ.of=function(){return this(arguments)},eQ.fromKeys=function(t){return this(p(t).keySeq())},eQ.prototype.toString=function(){return this.__toString("OrderedSet {","}")},eQ.isOrderedSet=e0;var e1=eQ.prototype;function e2(t,e){var r=Object.create(e1);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e3(){return s||(s=e2(ev()))}function e8(t){return null==t?e7():e6(t)?t:e7().unshiftAll(t)}function e6(t){return!!(t&&t[e5])}e1[k]=!0,e1.__empty=e3,e1.__make=e2,f(e8,tb),e8.of=function(){return this(arguments)},e8.prototype.toString=function(){return this.__toString("Stack [","]")},e8.prototype.get=function(t,e){var r=this._head;for(t=K(this,t);r&&t--;)r=r.next;return r?r.value:e},e8.prototype.peek=function(){return this._head&&this._head.value},e8.prototype.push=function(){if(0==arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):e9(t,e)},e8.prototype.pushAll=function(t){if(0===(t=d(t)).size)return this;tK(t.size);var e=this.size,r=this._head;return(t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID)?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):e9(e,r)},e8.prototype.pop=function(){return this.slice(1)},e8.prototype.unshift=function(){return this.push.apply(this,arguments)},e8.prototype.unshiftAll=function(t){return this.pushAll(t)},e8.prototype.shift=function(){return this.pop.apply(this,arguments)},e8.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):e7()},e8.prototype.slice=function(t,e){if(R(t,e,this.size))return this;var r,n=L(t,this.size,0);if(L(e,r=this.size,r)!==this.size)return tb.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):e9(i,o)},e8.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?e9(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},e8.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},e8.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new j(function(){if(n){var e=n.value;return n=n.next,q(t,r++,e)}return U()})},e8.isStack=e6;var e5="@@__IMMUTABLE_STACK__@@",e4=e8.prototype;function e9(t,e,r,n){var i=Object.create(e4);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function e7(){return c||(c=e9(0))}function rt(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}e4[e5]=!0,e4.withMutations=tN.withMutations,e4.asMutable=tN.asMutable,e4.asImmutable=tN.asImmutable,e4.wasAltered=tN.wasAltered,h.Iterator=j,rt(h,{toArray:function(){tK(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new eb(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new em(this,!0)},toMap:function(){return tI(this.toKeyedSeq())},toObject:function(){tK(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return ep(this.toKeyedSeq())},toOrderedSet:function(){return eQ(y(this)?this.valueSeq():this)},toSet:function(){return eV(y(this)?this.valueSeq():this)},toSetSeq:function(){return new e_(this)},toSeq:function(){return m(this)?this.toIndexedSeq():y(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return e8(y(this)?this.valueSeq():this)},toList:function(){return t9(y(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=l.call(arguments,0);return eM(this,function(t,e){var r=y(t),n=[t].concat(e).map(function(t){return v(t)?r&&(t=p(t)):t=r?to(t):ta(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&y(i)||m(t)&&m(i))return i}var o=new Q(n);return r?o=o.toKeyedSeq():m(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}(this,t))},includes:function(t){return this.some(function(e){return th(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){tK(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return eM(this,eC(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return tK(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){tK(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return eM(this,eS(this,t,e))},reduce:function(t,e,r){var n,i;return tK(this.size),arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return eM(this,ek(this,!0))},slice:function(t,e){return eM(this,eA(this,t,e,!0))},some:function(t,e){return!this.every(ro(t),e)},sort:function(t){return eM(this,eB(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return M(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){var r,n;return r=this,n=tI().asMutable(),r.__iterate(function(i,o){n.update(t.call(e,i,o,r),0,function(t){return t+1})}),n.asImmutable()},equals:function(t){return tp(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Q(t._cache);var e=t.toSeq().map(ri).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(ro(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(I)},flatMap:function(t,e){var r,n;return eM(this,(r=this,n=eR(r),r.toSeq().map(function(i,o){return n(t.call(e,i,o,r))}).flatten(!0)))},flatten:function(t){return eM(this,eD(this,t,!0))},fromEntrySeq:function(){return new ew(this)},get:function(t,e){return this.find(function(e,r){return th(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=ez(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,A):A)===A)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=y(t),i=(_(t)?ep():tI()).asMutable();t.__iterate(function(o,a){i.update(e.call(r,o,a,t),function(t){return(t=t||[]).push(n?[a,o]:o),t})});var o=eR(t);return i.map(function(e){return eM(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,A)!==A},hasIn:function(t){return this.getIn(t,A)!==A},isSubset:function(t){return t="function"==typeof t.includes?t:h(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:h(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(rn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return eO(this,t)},maxBy:function(t,e){return eO(this,e,t)},min:function(t){return eO(this,t?ra(t):rc)},minBy:function(t,e){return eO(this,e?ra(e):rc,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return eM(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return eM(this,eE(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(ro(t),e)},sortBy:function(t,e){return eM(this,eB(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return eM(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){var r,n;return eM(this,(r=this,(n=eL(r)).__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return r.__iterate(function(r,i,u){return t.call(e,r,i,u)&&++a&&n(r,i,o)}),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=r.__iterator(2,i),u=!0;return new j(function(){if(!u)return U();var r=a.next();if(r.done)return r;var i=r.value,s=i[0],c=i[1];return t.call(e,c,s,o)?2===n?r:q(n,s,c,r):(u=!1,U())})},n))},takeUntil:function(t,e){return this.takeWhile(ro(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e,r,n=_(t),i=y(t),o=n?1:0;return e=t.__iterate(i?n?function(t,e){o=31*o+rl(tS(t),tS(e))|0}:function(t,e){o=o+rl(tS(t),tS(e))|0}:n?function(t){o=31*o+tS(t)|0}:function(t){o=o+tS(t)|0}),r=tw(r=o,0xcc9e2d51),r=tw(r<<15|r>>>-15,0x1b873593),r=((r=tw(r<<13|r>>>-13,5))+0xe6546b64|0)^e,r=tw(r^r>>>16,0x85ebca6b),r=tx((r=tw(r^r>>>13,0xc2b2ae35))^r>>>16)}(this))}});var re=h.prototype;re[w]=!0,re[z]=re.values,re.__toJS=re.toArray,re.__toStringMapper=ru,re.inspect=re.toSource=function(){return this.toString()},re.chain=re.flatMap,re.contains=re.includes,function(){try{Object.defineProperty(re,"length",{get:function(){if(!h.noLengthWarning){var t;try{throw Error()}catch(e){t=e.stack}if(-1===t.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. "+t),this.size}}})}catch(t){}}(),rt(p,{flip:function(){return eM(this,ex(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return th(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return th(e,t)})},mapEntries:function(t,e){var r=this,n=0;return eM(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return eM(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var rr=p.prototype;function rn(t,e){return e}function ri(t,e){return[e,t]}function ro(t){return function(){return!t.apply(this,arguments)}}function ra(t){return function(){return-t.apply(this,arguments)}}function ru(t){return"string"==typeof t?JSON.stringify(t):t}function rs(){return F(arguments)}function rc(t,e){return t<e?1:t>e?-1:0}function rl(t,e){return t^e+0x9e3779b9+(t<<6)+(t>>2)|0}return rr[x]=!0,rr[z]=re.entries,rr.__toJS=re.toObject,rr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+ru(t)},rt(d,{toKeyedSeq:function(){return new em(this,!1)},filter:function(t,e){return eM(this,eC(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return eM(this,ek(this,!1))},slice:function(t,e){return eM(this,eA(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=L(t,t<0?this.count():this.size,0);var n=this.slice(0,t);return eM(this,1===r?n:n.concat(F(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return eM(this,eD(this,t,!1))},get:function(t,e){return(t=K(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=K(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){var e,r;return eM(this,(e=this,(r=eL(e)).size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return e.__iterate(function(e,n){return(!o||!1!==r(t,o++,i))&&!1!==r(e,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=e.__iterator(1,n),a=0;return new j(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?q(r,a++,t):q(r,a++,i.value,i)})},r))},interleave:function(){var t=[this].concat(F(arguments)),e=eF(this.toSeq(),G.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),eM(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return eM(this,eE(this,t,e,!1))},zip:function(){var t=[this].concat(F(arguments));return eM(this,eF(this,rs,t))},zipWith:function(t){var e=F(arguments);return e[0]=this,eM(this,eF(this,t,e))}}),d.prototype[S]=!0,d.prototype[k]=!0,rt(g,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),g.prototype.has=re.includes,rt(J,p.prototype),rt(G,d.prototype),rt($,g.prototype),rt(tm,p.prototype),rt(tb,d.prototype),rt(t_,g.prototype),{Iterable:h,Seq:Y,Collection:ty,Map:tI,OrderedMap:ep,List:t9,Stack:e8,Set:eV,OrderedSet:eQ,Record:ej,Range:tv,Repeat:td,is:th,fromJS:tl}},t.exports=e()},10427:t=>{"use strict";var e=Object.assign.bind(Object);t.exports=e,t.exports.default=t.exports},70627:(t,e,r)=>{var n=r(50153);"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//"),({189:function(){!function(t,e){"use strict";if(!t.setImmediate){var r,i,o,a,u,s=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);(h=h&&h.setTimeout?h:t,"[object process]"===({}).toString.call(t.process))?u=function(t){n.nextTick(function(){d(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?(r="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),u=function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},u=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(a=f.documentElement,u=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}):u=function(t){setTimeout(d,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return c[s]=n,u(s),s++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(l)setTimeout(d,0,t);else{var r=c[t];if(r){l=!0;try{!function(t){var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(e,n)}}(r)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===r.g?this:r.g:self)}})[189](),t.exports={}},28074:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(59880);function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},a=function(t){var e,r=t.children,a=t.onClickAway,u=t.focusEvent,s=void 0===u?"focusin":u,c=t.mouseEvent,l=void 0===c?"click":c,f=t.touchEvent,h=void 0===f?"touchend":f,p=(0,n.useRef)(null),d=(0,n.useRef)(null),g=(0,n.useRef)(!1);(0,n.useEffect)(function(){return setTimeout(function(){g.current=!0},0),function(){g.current=!1}},[]);var v=function(t){return function(e){d.current=e.target;var n=null==r?void 0:r.props[t];n&&n(e)}};(0,n.useEffect)(function(){var t,e,r=null!==(t=null===(e=p.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document,n=function(t){g.current&&(p.current&&p.current.contains(t.target)||d.current===t.target||!r.contains(t.target)||a(t))};return r.addEventListener(l,n),r.addEventListener(h,n),r.addEventListener(s,n),function(){r.removeEventListener(l,n),r.removeEventListener(h,n),r.removeEventListener(s,n)}},[s,l,a,h]);var y=o[l],m=o[h],b=o[s];return n.Children.only((0,n.cloneElement)(r,(i(e={ref:function(t){p.current=t;var e=r.ref;"function"==typeof e?e(t):e&&(e.current=t)}},b,v(b)),i(e,y,v(y)),i(e,m,v(m)),e)))};a.displayName="ClickAwayListener"},79190:(t,e,r)=>{"use strict";r.d(e,{A8:()=>U,wy:()=>q});var n=r(59880),i=r(73481);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function a(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(r=o[n])>=0||(i[r]=t[r]);return i}function u(t){var e=(0,n.useRef)({fn:t,curr:void 0}).current;if(e.fn=t,!e.curr){var r=Object.create(null);Object.keys(t).forEach(function(t){r[t]=function(){var r;return(r=e.fn[t]).call.apply(r,[e.fn].concat([].slice.call(arguments)))}}),e.curr=r}return e.curr}function s(t){return(0,n.useReducer)(function(t,e){return o({},t,"function"==typeof e?e(t):e)},t)}var c=(0,n.createContext)(void 0),l="undefined"!=typeof window&&"ontouchstart"in window,f=function(t,e,r){return Math.max(Math.min(t,r),e)},h=function(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=0),f(t,1*(1-r),Math.max(6,e)*(1+r))},p="undefined"==typeof window||/ServerSideRendering/.test(navigator&&navigator.userAgent)?n.useEffect:n.useLayoutEffect;function d(t,e,r){var i=(0,n.useRef)(e);i.current=e,(0,n.useEffect)(function(){function e(t){i.current(t)}return t&&window.addEventListener(t,e,r),function(){t&&window.removeEventListener(t,e)}},[t])}var g=["container"];function v(t){var e=t.container,r=void 0===e?document.body:e,u=a(t,g);return(0,i.createPortal)(n.createElement("div",o({},u)),r)}function y(t){return n.createElement("svg",o({width:"44",height:"44",viewBox:"0 0 768 768"},t),n.createElement("path",{d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))}function m(t){return n.createElement("svg",o({width:"44",height:"44",viewBox:"0 0 768 768"},t),n.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))}function b(t){return n.createElement("svg",o({width:"44",height:"44",viewBox:"0 0 768 768"},t),n.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"}))}function _(){return(0,n.useEffect)(function(){var t=document.body.style,e=t.overflow;return t.overflow="hidden",function(){t.overflow=e}},[]),null}function w(t){var e=t.touches[0],r=e.clientX,n=e.clientY;if(t.touches.length>=2){var i=t.touches[1],o=i.clientX,a=i.clientY;return[(r+o)/2,(n+a)/2,Math.sqrt(Math.pow(o-r,2)+Math.pow(a-n,2))]}return[r,n,0]}var x=function(t,e,r,n){var i,o=r*e,a=(o-n)/2,u=t;return o<=n?(i=1,u=0):t>0&&a-t<=0?(i=2,u=a):t<0&&a+t<=0&&(i=3,u=-a),[i,u]};function S(t,e,r,n,i,o,a,u,s,c){void 0===a&&(a=innerWidth/2),void 0===u&&(u=innerHeight/2),void 0===s&&(s=0),void 0===c&&(c=0);var l=x(t,o,r,innerWidth)[0],f=x(e,o,n,innerHeight),h=innerWidth/2,p=innerHeight/2;return{x:a-o/i*(a-(h+t))-h+(n/r>=3&&r*o===innerWidth?0:l?s/2:s),y:u-o/i*(u-(p+e))-p+(f[0]?c/2:c),lastCX:a,lastCY:u}}function k(t,e,r){var n=t%180!=0;return n?[r,e,n]:[e,r,n]}function C(t,e,r){var n=k(r,innerWidth,innerHeight),i=n[0],o=n[1],a=0,u=i,s=o,c=t/e*o,l=e/t*i;return t<i&&e<o?(u=t,s=e):t<i&&e>=o?u=c:t>=i&&e<o||t/e>i/o?s=l:e/t>=3&&!n[2]?a=((s=l)-o)/2:u=c,{width:u,height:s,x:0,y:a,pause:!0}}function A(t,e){var r=e.leading,i=void 0!==r&&r,o=e.maxWait,a=e.wait,u=void 0===a?o||0:a,s=(0,n.useRef)(t);s.current=t;var c=(0,n.useRef)(0),l=(0,n.useRef)(),f=function(){return l.current&&clearTimeout(l.current)},h=(0,n.useCallback)(function(){var t=[].slice.call(arguments),e=Date.now();function r(){c.current=e,f(),s.current.apply(null,t)}var n=c.current,a=e-n;if(0===n&&(i&&r(),c.current=e),void 0!==o){if(a>o)return void r()}else a<u&&(c.current=e);f(),l.current=setTimeout(function(){r(),c.current=0},u)},[u,o,i]);return h.cancel=f,h}var E=function(t,e,r){return B(t,e,r,100,function(t){return t},function(){return B(e,t,r)})},D=function(t){return 1-Math.pow(1-t,4)};function B(t,e,r,n,i,o){void 0===n&&(n=400),void 0===i&&(i=D);var a=e-t;if(0!==a){var u=Date.now(),s=0,c=function(){var e=Math.min(1,(Date.now()-u)/n);r(t+i(e)*a)&&e<1?l():(cancelAnimationFrame(s),e>=1&&o&&o())};l()}function l(){s=requestAnimationFrame(c)}}var O={T:0,L:0,W:0,H:0,FIT:void 0},T=function(){var t=(0,n.useRef)(!1);return(0,n.useEffect)(function(){return t.current=!0,function(){t.current=!1}},[]),t},F=["className"];function M(t){var e=t.className,r=a(t,F);return n.createElement("div",o({className:"PhotoView__Spinner "+(void 0===e?"":e)},r),n.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},n.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),n.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))}var K=["src","loaded","broken","className","onPhotoLoad","loadingElement","brokenElement"];function I(t){var e=t.src,r=t.loaded,i=t.broken,u=t.className,s=t.onPhotoLoad,c=t.loadingElement,l=t.brokenElement,f=a(t,K),h=T();return e&&!i?n.createElement(n.Fragment,null,n.createElement("img",o({className:"PhotoView__Photo"+(u?" "+u:""),src:e,onLoad:function(t){var e=t.target;h.current&&s({loaded:!0,naturalWidth:e.naturalWidth,naturalHeight:e.naturalHeight})},onError:function(){h.current&&s({broken:!0})},alt:""},f)),!r&&(n.createElement("span",{className:"PhotoView__icon"},c)||n.createElement(M,{className:"PhotoView__icon"}))):l?n.createElement("span",{className:"PhotoView__icon"},"function"==typeof l?l({src:e}):l):null}var R={naturalWidth:void 0,naturalHeight:void 0,width:void 0,height:void 0,loaded:void 0,broken:!1,x:0,y:0,touched:!1,maskTouched:!1,rotate:0,scale:1,CX:0,CY:0,lastX:0,lastY:0,lastCX:0,lastCY:0,lastScale:1,touchTime:0,touchLength:0,pause:!0,stopRaf:!0,reach:void 0};function L(t){var e,r,i,a,c,f,g,v,y,m,b,_,D,F,M,K,L,N,P,z,j,q,U,H,W,V,X,Y,J=t.item,G=J.src,$=J.render,Z=J.width,Q=void 0===Z?0:Z,tt=J.height,te=void 0===tt?0:tt,tr=J.originRef,tn=t.visible,ti=t.speed,to=t.easing,ta=t.wrapClassName,tu=t.className,ts=t.style,tc=t.loadingElement,tl=t.brokenElement,tf=t.onPhotoTap,th=t.onMaskTap,tp=t.onReachMove,td=t.onReachUp,tg=t.onPhotoResize,tv=t.isActive,ty=t.expose,tm=s(R),tb=tm[0],t_=tm[1],tw=(0,n.useRef)(0),tx=T(),tS=tb.naturalWidth,tk=void 0===tS?Q:tS,tC=tb.naturalHeight,tA=void 0===tC?te:tC,tE=tb.width,tD=void 0===tE?Q:tE,tB=tb.height,tO=void 0===tB?te:tB,tT=tb.loaded,tF=void 0===tT?!G:tT,tM=tb.broken,tK=tb.x,tI=tb.y,tR=tb.touched,tL=tb.stopRaf,tN=tb.maskTouched,tP=tb.rotate,tz=tb.scale,tj=tb.CX,tq=tb.CY,tU=tb.lastX,tH=tb.lastY,tW=tb.lastCX,tV=tb.lastCY,tX=tb.lastScale,tY=tb.touchTime,tJ=tb.touchLength,tG=tb.pause,t$=tb.reach,tZ=u({onScale:function(t){return tQ(h(t))},onRotate:function(t){tP!==t&&(ty({rotate:t}),t_(o({rotate:t},C(tk,tA,t))))}});function tQ(t,e,r){tz!==t&&(ty({scale:t}),t_(o({scale:t},S(tK,tI,tD,tO,tz,t,e,r),t<=1&&{x:0,y:0})))}var t0=A(function(t,e,r){if(void 0===r&&(r=0),(tR||tN)&&tv){var n=k(tP,tD,tO),i=n[0],a=n[1];if(0===r&&0===tw.current){var u=20>=Math.abs(t-tj),s=20>=Math.abs(e-tq);if(u&&s)return void t_({lastCX:t,lastCY:e});tw.current=u?e>tq?3:2:1}var c,l=t-tW,f=e-tV;if(0===r){var p,d,g=x(l+tU,tz,i,innerWidth)[0],v=x(f+tH,tz,a,innerHeight);p=tw.current,d=v[0],void 0!==(c=g&&1===p||"x"===t$?"x":d&&p>1||"y"===t$?"y":void 0)&&tp(c,t,e,tz)}if("x"===c||tN)return void t_({reach:"x"});var y=h(tz+(r-tJ)/100/2*tz,tk/tD,.2);ty({scale:y}),t_(o({touchLength:r,reach:c,scale:y},S(tK,tI,tD,tO,tz,y,t,e,l,f)))}},{maxWait:8});function t1(t){return!tL&&!tR&&(tx.current&&t_(o({},t,{pause:tn})),tx.current)}var t2,t3,t8,t6,t5,t4,t9,t7=(t6=function(t){return t1({x:t})},t5=function(t){return t1({y:t})},t4=function(t){return tx.current&&(ty({scale:t}),t_({scale:t})),!tR&&tx.current},t9=u({X:function(t){return t6(t)},Y:function(t){return t5(t)},S:function(t){return t4(t)}}),function(t,e,r,n,i,o,a,u,s,c,l){var f=k(c,i,o),h=f[0],p=f[1],d=x(t,u,h,innerWidth),g=d[0],v=d[1],y=x(e,u,p,innerHeight),m=y[0],b=y[1],_=Date.now()-l;if(_>=200||u!==a||Math.abs(s-a)>1){var w=S(t,e,i,o,a,u),C=w.x,A=w.y,D=g?v:C!==t?C:null,O=m?b:A!==e?A:null;return null!==D&&B(t,D,t9.X),null!==O&&B(e,O,t9.Y),void(u!==a&&B(a,u,t9.S))}var T=(t-r)/_,F=(e-n)/_,M=Math.sqrt(Math.pow(T,2)+Math.pow(F,2)),K=!1,I=!1;!function(t,e){var r,n=t,i=0,o=0,a=function(o){r||(r=o);var a=o-r,c=Math.sign(t),l=-.001*c,f=Math.sign(-n)*Math.pow(n,2)*2e-4;i+=n*a+(l+f)*Math.pow(a,2)/2,r=o,c*(n+=(l+f)*a)<=0?s():e(i)?u():s()};function u(){o=requestAnimationFrame(a)}function s(){cancelAnimationFrame(o)}u()}(M,function(r){var n=t+T/M*r,i=e+F/M*r,o=x(n,a,h,innerWidth),u=o[0],s=o[1],c=x(i,a,p,innerHeight),l=c[0],f=c[1];if(u&&!K&&(K=!0,g?B(n,s,t9.X):E(s,n+(n-s),t9.X)),l&&!I&&(I=!0,m?B(i,f,t9.Y):E(f,i+(i-f),t9.Y)),K&&I)return!1;var d=K||t9.X(s),v=I||t9.Y(f);return d&&v})}),et=(t2=function(t,e){t$||tQ(1!==tz?1:Math.max(2,tk/tD),t,e)},t3=(0,n.useRef)(0),t8=A(function(){t3.current=0,tf.apply(void 0,[].slice.call(arguments))},{wait:300}),function(){var t=[].slice.call(arguments);t3.current+=1,t8.apply(void 0,t),t3.current>=2&&(t8.cancel(),t3.current=0,t2.apply(void 0,t))});function ee(t,e){if(tw.current=0,(tR||tN)&&tv){t_({touched:!1,maskTouched:!1,pause:!1,stopRaf:!1,reach:void 0});var r=h(tz,tk/tD);if(t7(tK,tI,tU,tH,tD,tO,tz,r,tX,tP,tY),td(t,e),tj===t&&tq===e){if(tR)return void et(t,e);tN&&th(t,e)}}}function er(t,e,r){void 0===r&&(r=0),t_({touched:!0,CX:t,CY:e,lastCX:t,lastCY:e,lastX:tK,lastY:tI,lastScale:tz,touchLength:r,touchTime:Date.now()})}function en(t){t_({maskTouched:!0,CX:t.clientX,CY:t.clientY,lastX:tK,lastY:tI})}d(l?void 0:"mousemove",function(t){t.preventDefault(),t0(t.clientX,t.clientY)}),d(l?void 0:"mouseup",function(t){ee(t.clientX,t.clientY)}),d(l?"touchmove":void 0,function(t){t.preventDefault();var e=w(t);t0.apply(void 0,e)},{passive:!1}),d(l?"touchend":void 0,function(t){var e=t.changedTouches[0];ee(e.clientX,e.clientY)},{passive:!1}),d("resize",A(function(){tF&&!tR&&(t_(C(tk,tA,tP)),tg())},{maxWait:8})),p(function(){tv&&ty(o({scale:tz,rotate:tP},tZ))},[tv]);var ei=(y=function(t){return t_({pause:t})},N=(m=(0,n.useRef)(!1),D=(_=(b=s({lead:!0,scale:tz}))[0]).lead,F=_.scale,M=b[1],K=A(function(t){try{return y(!0),M({lead:!1,scale:t}),Promise.resolve()}catch(t){return Promise.reject(t)}},{wait:ti}),p(function(){m.current?(y(!1),M({lead:!0}),K(tz)):m.current=!0},[tz]),L=D?[tD*F,tO*F,tz/F]:[tD*tz,tO*tz,1])[0],P=L[1],z=L[2],q=(r=(e=(0,n.useState)(O))[0],i=e[1],c=(a=(0,n.useState)(0))[0],f=a[1],g=(0,n.useRef)(),v=u({OK:function(){return tn&&f(4)}}),(0,n.useEffect)(function(){if(g.current||(g.current=Date.now()),tF){if(function(t,e){var r=t&&t.current;if(r&&1===r.nodeType){var n=r.getBoundingClientRect();e({T:n.top,L:n.left,W:n.width,H:n.height,FIT:"IMG"===r.tagName?getComputedStyle(r).objectFit:void 0})}}(tr,i),tn)return Date.now()-g.current<250?(f(1),requestAnimationFrame(function(){f(2),requestAnimationFrame(function(){y(!1),f(3)})}),void setTimeout(v.OK,ti)):void f(4);y(!1),f(5)}},[tn,tF]),j=[c,r])[0],H=(U=j[1]).W,W=U.FIT,V=innerWidth/2,X=innerHeight/2,[(Y=q<3||q>4)?H?U.L:V:tK+(V-tD*tz/2),Y?H?U.T:X:tI+(X-tO*tz/2),N,Y&&W?N*(U.H/H):P,0===q?z:Y?H/(tD*tz)||.01:z,Y?W?1:0:1,q,W]),eo=ei[4],ea=ei[6],eu="transform "+ti+"ms "+to,es={className:tu,onMouseDown:l?void 0:function(t){t.stopPropagation(),0===t.button&&er(t.clientX,t.clientY,0)},onTouchStart:l?function(t){t.stopPropagation(),er.apply(void 0,w(t))}:void 0,onWheel:function(t){if(!t$){var e=h(tz-t.deltaY/100/2,tk/tD);t_({stopRaf:!0}),tQ(e,t.clientX,t.clientY)}},style:{width:ei[2]+"px",height:ei[3]+"px",opacity:ei[5],objectFit:4===ea?void 0:ei[7],transform:tP?"rotate("+tP+"deg)":void 0,transition:ea>2?eu+", opacity "+ti+"ms ease, height "+(ea<4?ti/2:ea>4?ti:0)+"ms "+to:void 0}};return n.createElement("div",{className:"PhotoView__PhotoWrap"+(ta?" "+ta:""),style:ts,onMouseDown:!l&&tv?en:void 0,onTouchStart:l&&tv?function(t){return en(t.touches[0])}:void 0},n.createElement("div",{className:"PhotoView__PhotoBox",style:{transform:"matrix("+eo+", 0, 0, "+eo+", "+ei[0]+", "+ei[1]+")",transition:tR||tG?void 0:eu,willChange:tv?"transform":void 0}},G?n.createElement(I,o({src:G,loaded:tF,broken:tM},es,{onPhotoLoad:function(t){t_(o({},t,t.loaded&&C(t.naturalWidth||0,t.naturalHeight||0,tP)))},loadingElement:tc,brokenElement:tl})):$&&$({attrs:es,scale:eo,rotate:tP})))}var N={x:0,touched:!1,pause:!1,lastCX:void 0,lastCY:void 0,bg:void 0,lastBg:void 0,overlay:!0,minimal:!0,scale:1,rotate:0};function P(t){var e,r,i,o,a=t.loop,c=void 0===a?3:a,h=t.speed,g=t.easing,w=t.photoClosable,x=t.maskClosable,S=void 0===x||x,k=t.maskOpacity,C=void 0===k?1:k,A=t.pullClosable,E=void 0===A||A,D=t.bannerVisible,B=void 0===D||D,O=t.overlayRender,T=t.toolbarRender,F=t.className,M=t.maskClassName,K=t.photoClassName,I=t.photoWrapClassName,R=t.loadingElement,P=t.brokenElement,z=t.images,j=t.index,q=t.onIndexChange,U=t.visible,H=t.onClose,W=t.afterClose,V=t.portalContainer,X=s(N),Y=X[0],J=X[1],G=(0,n.useState)(0),$=G[0],Z=G[1],Q=Y.x,tt=Y.touched,te=Y.pause,tr=Y.lastCX,tn=Y.lastCY,ti=Y.bg,to=void 0===ti?C:ti,ta=Y.lastBg,tu=Y.overlay,ts=Y.minimal,tc=Y.scale,tl=Y.rotate,tf=Y.onScale,th=Y.onRotate,tp=t.hasOwnProperty("index"),td=tp?void 0===j?0:j:$,tg=tp?q:Z,tv=(0,n.useRef)(td),ty=z.length,tm=z[td],tb="boolean"==typeof c?c:ty>c,t_=(e=(0,n.useReducer)(function(t){return!t},!1)[1],r=(0,n.useRef)(0),o=(i=function(t,e){var i=(0,n.useRef)(t);function o(t){i.current=t}return(0,n.useMemo)(function(){U?(o(U),r.current=1):r.current=2},[t]),[i.current,o]}(U))[1],[i[0],r.current,function(){e(),2===r.current&&(o(!1),W&&W()),r.current=0}]),tw=t_[0],tx=t_[1],tS=t_[2];p(function(){if(tw)return J({pause:!0,x:-(td*(innerWidth+20))}),void(tv.current=td);J(N)},[tw]);var tk=u({close:function(t){th&&th(0),J({overlay:!0,lastBg:to}),H(t)},changeIndex:function(t,e){void 0===e&&(e=!1);var r=tb?tv.current+(t-td):t,n=ty-1,i=f(r,0,n),o=tb?r:i;J({touched:!1,lastCX:void 0,lastCY:void 0,x:-(innerWidth+20)*o,pause:e}),tv.current=o,tg&&tg(tb?t<0?n:t>n?0:t:i)}}),tC=tk.close,tA=tk.changeIndex;function tE(t){return t?tC():J({overlay:!tu})}function tD(){J({x:-(innerWidth+20)*td,lastCX:void 0,lastCY:void 0,pause:!0}),tv.current=td}function tB(t,e,r,n){"x"===t?function(t){if(void 0!==tr){var e=t-tr,r=e;!tb&&(0===td&&e>0||td===ty-1&&e<0)&&(r=e/2),J({touched:!0,lastCX:tr,x:-(innerWidth+20)*tv.current+r,pause:!1})}else J({touched:!0,lastCX:t,x:Q,pause:!1})}(e):"y"===t&&function(t,e){if(void 0!==tn){var r=null===C?null:f(C,.01,C-Math.abs(t-tn)/100/4);J({touched:!0,lastCY:tn,bg:1===e?r:C,minimal:1===e})}else J({touched:!0,lastCY:t,bg:to,minimal:!0})}(r,n)}function tO(t,e){var r=t-(null!=tr?tr:t),n=e-(null!=tn?tn:e),i=!1;if(r<-40)tA(td+1);else if(r>40)tA(td-1);else{var o=-(innerWidth+20)*tv.current;Math.abs(n)>100&&ts&&E&&(i=!0,tC()),J({touched:!1,x:o,lastCX:void 0,lastCY:void 0,bg:C,overlay:!!i||tu})}}d("keydown",function(t){if(U)switch(t.key){case"ArrowLeft":tA(td-1,!0);break;case"ArrowRight":tA(td+1,!0);break;case"Escape":tC()}});var tT=(0,n.useMemo)(function(){var t=z.length;return tb?z.concat(z).concat(z).slice(t+td-1,t+td+2):z.slice(Math.max(td-1,0),Math.min(td+2,t+1))},[z,td,tb]);if(!tw)return null;var tF=tu&&!tx,tM=U?to:ta,tK=tf&&th&&{images:z,index:td,visible:U,onClose:tC,onIndexChange:tA,overlayVisible:tF,overlay:tm&&tm.overlay,scale:tc,rotate:tl,onScale:tf,onRotate:th},tI=h?h(tx):400,tR=g?g(tx):"cubic-bezier(0.25, 0.8, 0.25, 1)",tL=h?h(3):600,tN=g?g(3):"cubic-bezier(0.25, 0.8, 0.25, 1)";return n.createElement(v,{className:"PhotoView-Portal"+(tF?"":" PhotoView-Slider__clean")+(U?"":" PhotoView-Slider__willClose")+(F?" "+F:""),role:"dialog",onClick:function(t){return t.stopPropagation()},container:V},U&&n.createElement(_,null),n.createElement("div",{className:"PhotoView-Slider__Backdrop"+(M?" "+M:"")+(1===tx?" PhotoView-Slider__fadeIn":2===tx?" PhotoView-Slider__fadeOut":""),style:{background:tM?"rgba(0, 0, 0, "+tM+")":void 0,transitionTimingFunction:tR,transitionDuration:(tt?0:tI)+"ms",animationDuration:tI+"ms"},onAnimationEnd:tS}),B&&n.createElement("div",{className:"PhotoView-Slider__BannerWrap"},n.createElement("div",{className:"PhotoView-Slider__Counter"},td+1," / ",ty),n.createElement("div",{className:"PhotoView-Slider__BannerRight"},T&&tK&&T(tK),n.createElement(y,{className:"PhotoView-Slider__toolbarIcon",onClick:tC}))),tT.map(function(t,e){var r=tb||0!==td?tv.current-1+e:td+e;return n.createElement(L,{key:tb?t.key+"/"+t.src+"/"+r:t.key,item:t,speed:tI,easing:tR,visible:U,onReachMove:tB,onReachUp:tO,onPhotoTap:function(){return tE(w)},onMaskTap:function(){return tE(S)},wrapClassName:I,className:K,style:{left:(innerWidth+20)*r+"px",transform:"translate3d("+Q+"px, 0px, 0)",transition:tt||te?void 0:"transform "+tL+"ms "+tN},loadingElement:R,brokenElement:P,onPhotoResize:tD,isActive:tv.current===r,expose:J})}),!l&&B&&n.createElement(n.Fragment,null,(tb||0!==td)&&n.createElement("div",{className:"PhotoView-Slider__ArrowLeft",onClick:function(){return tA(td-1,!0)}},n.createElement(m,null)),(tb||td+1<ty)&&n.createElement("div",{className:"PhotoView-Slider__ArrowRight",onClick:function(){return tA(td+1,!0)}},n.createElement(b,null))),O&&tK&&n.createElement("div",{className:"PhotoView-Slider__Overlay"},O(tK)))}var z=["children","onIndexChange","onVisibleChange"],j={images:[],visible:!1,index:0};function q(t){var e=t.children,r=t.onIndexChange,i=t.onVisibleChange,l=a(t,z),f=s(j),h=f[0],p=f[1],d=(0,n.useRef)(0),g=h.images,v=h.visible,y=h.index,m=u({nextId:function(){return d.current+=1},update:function(t){var e=g.findIndex(function(e){return e.key===t.key});if(e>-1){var r=g.slice();return r.splice(e,1,t),void p({images:r})}p(function(e){return{images:e.images.concat(t)}})},remove:function(t){p(function(e){var r=e.images.filter(function(e){return e.key!==t});return{images:r,index:Math.min(r.length-1,y)}})},show:function(t){var e=g.findIndex(function(e){return e.key===t});p({visible:!0,index:e}),i&&i(!0,e,h)}}),b=u({close:function(){p({visible:!1}),i&&i(!1,y,h)},changeIndex:function(t){p({index:t}),r&&r(t,h)}}),_=(0,n.useMemo)(function(){return o({},h,m)},[h,m]);return n.createElement(c.Provider,{value:_},e,n.createElement(P,o({images:g,visible:v,index:y,onIndexChange:b.changeIndex,onClose:b.close},l)))}var U=function(t){var e,r,i=t.src,a=t.render,s=t.overlay,l=t.width,f=t.height,h=t.triggers,p=void 0===h?["onClick"]:h,d=t.children,g=(0,n.useContext)(c),v=(e=function(){return g.nextId()},(r=(0,n.useRef)({sign:!1,fn:void 0}).current).sign||(r.sign=!0,r.fn=e()),r.fn),y=(0,n.useRef)(null);(0,n.useImperativeHandle)(null==d?void 0:d.ref,function(){return y.current}),(0,n.useEffect)(function(){return function(){g.remove(v)}},[]);var m=u({render:function(t){return a&&a(t)},show:function(t,e){g.show(v),function(t,e){if(d){var r=d.props[t];r&&r(e)}}(t,e)}}),b=(0,n.useMemo)(function(){var t={};return p.forEach(function(e){t[e]=m.show.bind(null,e)}),t},[]);return(0,n.useEffect)(function(){g.update({key:v,src:i,originRef:y,render:m.render,overlay:s,width:l,height:f})},[i]),d?n.Children.only((0,n.cloneElement)(d,o({},b,{ref:y}))):null}},59113:function(t,e,r){var n;!function(i,o){"use strict";var a="function",u="undefined",s="object",c="string",l="major",f="model",h="name",p="type",d="vendor",g="version",v="architecture",y="console",m="mobile",b="tablet",_="smarttv",w="wearable",x="embedded",S="Amazon",k="Apple",C="ASUS",A="BlackBerry",E="Browser",D="Chrome",B="Firefox",O="Google",T="Huawei",F="Microsoft",M="Motorola",K="Opera",I="Samsung",R="Sharp",L="Sony",N="Xiaomi",P="Zebra",z="Facebook",j="Chromium OS",q="Mac OS",U=function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r},H=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},W=function(t,e){return typeof t===c&&-1!==V(e).indexOf(V(t))},V=function(t){return t.toLowerCase()},X=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===u?t:t.substring(0,500)},Y=function(t,e){for(var r,n,i,u,c,l,f=0;f<e.length&&!c;){var h=e[f],p=e[f+1];for(r=n=0;r<h.length&&!c&&h[r];)if(c=h[r++].exec(t))for(i=0;i<p.length;i++)l=c[++n],typeof(u=p[i])===s&&u.length>0?2===u.length?typeof u[1]==a?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==a||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):void 0:this[u[0]]=l?u[1].call(this,l,u[2]):void 0:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):void 0):this[u]=l||o;f+=2}},J=function(t,e){for(var r in e)if(typeof e[r]===s&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(W(e[r][n],t))return"?"===r?o:r}else if(W(e[r],t))return"?"===r?o:r;return t},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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,K+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,K]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[h,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\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],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[h,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+E],g],[/\bfocus\/([\w\.]+)/i],[g,[h,B+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,K+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,K+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+E]],[/fxios\/([-\w\.]+)/i],[g,[h,B]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+E]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+E],g],[/samsungbrowser\/([\w\.]+)/i],[g,[h,I+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,D+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,J,{"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],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,B+" 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],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,V]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,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,[d,I],[p,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[d,I],[p,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[d,k],[p,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[d,k],[p,b]],[/(macintosh);/i],[f,[d,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[d,R],[p,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[d,T],[p,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[d,T],[p,m]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[d,N],[p,m]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[d,N],[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,[d,"OPPO"],[p,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[d,"Vivo"],[p,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[d,"Realme"],[p,m]],[/\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,[d,M],[p,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[d,M],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[d,"LG"],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[d,"LG"],[p,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[d,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[d,"Nokia"],[p,m]],[/(pixel c)\b/i],[f,[d,O],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[d,O],[p,m]],[/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,[d,L],[p,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[d,L],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[d,"OnePlus"],[p,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[d,S],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[d,S],[p,m]],[/(playbook);[-\w\),; ]+(rim)/i],[f,d,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[d,A],[p,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[d,C],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[d,C],[p,m]],[/(nexus 9)/i],[f,[d,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[f,/_/g," "],[p,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[d,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[d,"Meizu"],[p,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[d,"Ulefone"],[p,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,f,[p,m]],[/(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],[d,f,[p,b]],[/(surface duo)/i],[f,[d,F],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[d,"Fairphone"],[p,m]],[/(u304aa)/i],[f,[d,"AT&T"],[p,m]],[/\bsie-(\w*)/i],[f,[d,"Siemens"],[p,m]],[/\b(rct\w+) b/i],[f,[d,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[d,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[d,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[d,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[f,[d,"NuVision"],[p,b]],[/\b(k88) b/i],[f,[d,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[f,[d,"ZTE"],[p,m]],[/\b(gen\d{3}) b.+49h/i],[f,[d,"Swiss"],[p,m]],[/\b(zur\d{3}) b/i],[f,[d,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[f,[d,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],f,[p,b]],[/\b(ns-?\w{0,9}) b/i],[f,[d,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[d,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],f,[p,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],f,[p,m]],[/\b(ph-1) /i],[f,[d,"Essential"],[p,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[d,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[f,[d,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[f,[d,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[f,[d,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[d,f,[p,m]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[d,F],[p,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[d,P],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[d,P],[p,m]],[/smart-tv.+(samsung)/i],[d,[p,_]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[d,I],[p,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,"LG"],[p,_]],[/(apple) ?tv/i],[d,[f,k+" TV"],[p,_]],[/crkey/i],[[f,D+"cast"],[d,O],[p,_]],[/droid.+aft(\w+)( bui|\))/i],[f,[d,S],[p,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[d,R],[p,_]],[/(bravia[\w ]+)( bui|\))/i],[f,[d,L],[p,_]],[/(mitv-\w{5}) bui/i],[f,[d,N],[p,_]],[/Hbbtv.*(technisat) (.*);/i],[d,f,[p,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,X],[f,X],[p,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,f,[p,y]],[/droid.+; (shield) bui/i],[f,[d,"Nvidia"],[p,y]],[/(playstation [345portablevi]+)/i],[f,[d,L],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[d,F],[p,y]],[/((pebble))app/i],[d,f,[p,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[d,k],[p,w]],[/droid.+; (glass) \d/i],[f,[d,O],[p,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[d,P],[p,w]],[/(quest( 2| pro)?)/i],[f,[d,z],[p,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[p,x]],[/(aeobc)\b/i],[f,[d,S],[p,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[p,m]],[/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,m]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"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],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[h,[g,J,G]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,J,G],[h,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,q],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,B+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,j],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],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"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],[h,g]]},Z=function(t,e){if(typeof t===s&&(e=t,t=o),!(this instanceof Z))return new Z(t,e).getResult();var r=typeof i!==u&&i.navigator?i.navigator:o,n=t||(r&&r.userAgent?r.userAgent:""),y=r&&r.userAgentData?r.userAgentData:o,_=e?U($,e):$,w=r&&r.userAgent==n;return this.getBrowser=function(){var t,e={};return e[h]=o,e[g]=o,Y.call(e,n,_.browser),e[l]=typeof(t=e[g])===c?t.replace(/[^\d\.]/g,"").split(".")[0]:o,w&&r&&r.brave&&typeof r.brave.isBrave==a&&(e[h]="Brave"),e},this.getCPU=function(){var t={};return t[v]=o,Y.call(t,n,_.cpu),t},this.getDevice=function(){var t={};return t[d]=o,t[f]=o,t[p]=o,Y.call(t,n,_.device),w&&!t[p]&&y&&y.mobile&&(t[p]=m),w&&"Macintosh"==t[f]&&r&&typeof r.standalone!==u&&r.maxTouchPoints&&r.maxTouchPoints>2&&(t[f]="iPad",t[p]=b),t},this.getEngine=function(){var t={};return t[h]=o,t[g]=o,Y.call(t,n,_.engine),t},this.getOS=function(){var t={};return t[h]=o,t[g]=o,Y.call(t,n,_.os),w&&!t[h]&&y&&"Unknown"!=y.platform&&(t[h]=y.platform.replace(/chrome os/i,j).replace(/macos/i,q)),t},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 n},this.setUA=function(t){return n=typeof t===c&&t.length>500?X(t,500):t,this},this.setUA(n),this};Z.VERSION="0.7.37",Z.BROWSER=H([h,g,l]),Z.CPU=H([v]),Z.DEVICE=H([f,d,p,y,m,_,b,w,x]),Z.ENGINE=Z.OS=H([h,g]),typeof e!==u?(t.exports&&(e=t.exports=Z),e.UAParser=Z):r.amdO?o!==(n=(function(){return Z}).call(e,r,e,t))&&(t.exports=n):typeof i!==u&&(i.UAParser=Z);var Q=typeof i!==u&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var tt=new Z;Q.ua=tt.getResult(),Q.ua.get=function(){return tt.getUA()},Q.ua.set=function(t){tt.setUA(t);var e=tt.getResult();for(var r in e)Q.ua[r]=e[r]}}}("object"==typeof window?window:this)},58085:()=>{},43224:()=>{},94899:()=>{},59109:()=>{},4368:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(16833),i=r(64947);let o=function(){return i.A.Date.now()};var a=r(95989),u=Math.max,s=Math.min;let c=function(t,e,r){var i,c,l,f,h,p,d=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var r=i,n=c;return i=c=void 0,d=e,f=t.apply(n,r)}function b(t){var r=t-p,n=t-d;return void 0===p||r>=e||r<0||v&&n>=l}function _(){var t,r,n,i=o();if(b(i))return w(i);h=setTimeout(_,(t=i-p,r=i-d,n=e-t,v?s(n,l-r):n))}function w(t){return(h=void 0,y&&i)?m(t):(i=c=void 0,f)}function x(){var t,r=o(),n=b(r);if(i=arguments,c=this,p=r,n){if(void 0===h)return d=t=p,h=setTimeout(_,e),g?m(t):f;if(v)return clearTimeout(h),h=setTimeout(_,e),m(p)}return void 0===h&&(h=setTimeout(_,e)),f}return e=(0,a.A)(e)||0,(0,n.A)(r)&&(g=!!r.leading,l=(v="maxWait"in r)?u((0,a.A)(r.maxWait)||0,e):l,y="trailing"in r?!!r.trailing:y),x.cancel=function(){void 0!==h&&clearTimeout(h),d=0,i=p=c=h=void 0},x.flush=function(){return void 0===h?f:w(o())},x}},37798:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(50515),i=r(35894);let o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},94946:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(){}},77030:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4368),i=r(16833);let o=function(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return(0,i.A)(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),(0,n.A)(t,e,{leading:o,maxWait:e,trailing:a})}},95989:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var n=/\s/;let i=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e};var o=/^\s+/,a=r(16833),u=r(37798),s=0/0,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;let p=function(t){if("number"==typeof t)return t;if((0,u.A)(t))return s;if((0,a.A)(t)){var e,r="function"==typeof t.valueOf?t.valueOf():t;t=(0,a.A)(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,i(e)+1).replace(o,""):e;var n=l.test(t);return n||f.test(t)?h(t.slice(2),n?2:8):c.test(t)?s:+t}},86040:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(26727),i=r(18234),o=r(89483),a=r(37798),u=1/0,s=n.A?n.A.prototype:void 0,c=s?s.toString:void 0;let l=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,a.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r},f=function(t){return null==t?"":l(t)}},94176:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(86040),i=0;let o=function(t){var e=++i;return(0,n.A)(t)+e}}}]);