index.16971137876533.js 821 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import{M as e,r as t,N as n,a as r,w as o,O as i,P as a,c as u,d as s,u as l,Q as c,o as f,R as d,k as p,j as h,F as g,_ as v,S as y,U as m,J as b,b as w,e as E,f as x,l as D,i as C,I as S,h as A,m as O,n as k,t as B,g as F,V as T,W as _,X as P,Y as j,Z as I}from"./index.1697113787653.js";var N={exports:{}},L={},R={exports:{}},M={};function z(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var $=/javascript\s*\:/gim;M.whiteList=z(),M.getDefaultWhiteList=z,M.onAttr=function(e,t,n){},M.onIgnoreAttr=function(e,t,n){},M.safeAttrValue=function(e,t){return $.test(t)?"":t};var H={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},V=H;var U=function(e,t){";"!==(e=V.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,o=0,i=0,a="";function u(){if(!r){var n=V.trim(e.slice(o,i)),u=n.indexOf(":");if(-1!==u){var s=V.trim(n.slice(0,u)),l=V.trim(n.slice(u+1));if(s){var c=t(o,a.length,s,l,n);c&&(a+=c+"; ")}}}o=i+1}for(;i<n;i++){var s=e[i];if("/"===s&&"*"===e[i+1]){var l=e.indexOf("*/",i+2);if(-1===l)break;o=(i=l+1)+1,r=!1}else"("===s?r=!0:")"===s?r=!1:";"===s?r||u():"\n"===s&&u()}return V.trim(a)},W=M,G=U;function q(e){return null==e}function K(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.whiteList=e.whiteList||W.whiteList,e.onAttr=e.onAttr||W.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||W.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||W.safeAttrValue,this.options=e}K.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,o=t.onIgnoreAttr,i=t.safeAttrValue;return G(e,(function(e,t,a,u,s){var l=n[a],c=!1;if(!0===l?c=l:"function"==typeof l?c=l(u):l instanceof RegExp&&(c=l.test(u)),!0!==c&&(c=!1),u=i(a,u)){var f,d={position:t,sourcePosition:e,source:s,isWhite:c};return c?q(f=r(a,u,d))?a+":"+u:f:q(f=o(a,u,d))?void 0:f}}))};var X=K;!function(e,t){var n=M,r=X;for(var o in(t=e.exports=function(e,t){return new r(t).process(e)}).FilterCSS=r,n)t[o]=n[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(R,R.exports);var Y={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},Z=R.exports.FilterCSS,J=R.exports.getDefaultWhiteList,Q=Y;function ee(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var te=new Z;function ne(e){return e.replace(re,"&lt;").replace(oe,"&gt;")}var re=/</g,oe=/>/g,ie=/"/g,ae=/&quot;/g,ue=/&#([a-zA-Z0-9]*);?/gim,se=/&colon;?/gim,le=/&newline;?/gim,ce=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,fe=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,de=/u\s*r\s*l\s*\(.*/gi;function pe(e){return e.replace(ie,"&quot;")}function he(e){return e.replace(ae,'"')}function ge(e){return e.replace(ue,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function ve(e){return e.replace(se,":").replace(le," ")}function ye(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Q.trim(t)}function me(e){return e=ye(e=ve(e=ge(e=he(e))))}function be(e){return e=ne(e=pe(e))}L.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},L.getDefaultWhiteList=ee,L.onTag=function(e,t,n){},L.onIgnoreTag=function(e,t,n){},L.onTagAttr=function(e,t,n){},L.onIgnoreTagAttr=function(e,t,n){},L.safeAttrValue=function(e,t,n,r){if(n=me(n),"href"===t||"src"===t){if("#"===(n=Q.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(ce.lastIndex=0,ce.test(n))return""}else if("style"===t){if(fe.lastIndex=0,fe.test(n))return"";if(de.lastIndex=0,de.test(n)&&(ce.lastIndex=0,ce.test(n)))return"";!1!==r&&(n=(r=r||te).process(n))}return n=be(n)},L.escapeHtml=ne,L.escapeQuote=pe,L.unescapeQuote=he,L.escapeHtmlEntities=ge,L.escapeDangerHtml5Entities=ve,L.clearNonPrintableCharacter=ye,L.friendlyAttrValue=me,L.escapeAttrValue=be,L.onIgnoreTagStripAll=function(){return""},L.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(i,a,u){if(function(t){return!!n||-1!==Q.indexOf(e,t)}(i)){if(u.isClosing){var s="[/removed]",l=u.position+s.length;return r.push([!1!==o?o:u.position,l]),o=!1,s}return o||(o=u.position),"[removed]"}return t(i,a,u)},remove:function(e){var t="",n=0;return Q.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},L.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var o=e.indexOf("--\x3e",r);if(-1===o)break;n=o+3}return t},L.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},L.cssFilter=te,L.getDefaultCSSWhiteList=J;var we={},Ee=Y;function xe(e){var t,n=Ee.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=Ee.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function De(e){return"</"===e.slice(0,2)}var Ce=/[^a-zA-Z0-9\\_:.-]/gim;function Se(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function Ae(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function Oe(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function ke(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}we.parseTag=function(e,t,n){var r="",o=0,i=!1,a=!1,u=0,s=e.length,l="",c="";e:for(u=0;u<s;u++){var f=e.charAt(u);if(!1===i){if("<"===f){i=u;continue}}else if(!1===a){if("<"===f){r+=n(e.slice(o,u)),i=u,o=u;continue}if(">"===f||u===s-1){r+=n(e.slice(o,i)),l=xe(c=e.slice(i,u+1)),r+=t(i,r.length,l,c,De(c)),o=u+1,i=!1;continue}if('"'===f||"'"===f)for(var d=1,p=e.charAt(u-d);""===p.trim()||"="===p;){if("="===p){a=f;continue e}p=e.charAt(u-++d)}}else if(f===a){a=!1;continue}}return o<s&&(r+=n(e.substr(o))),r},we.parseAttr=function(e,t){var n=0,r=0,o=[],i=!1,a=e.length;function u(e,n){if(!((e=(e=Ee.trim(e)).replace(Ce,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&o.push(r)}}for(var s=0;s<a;s++){var l,c=e.charAt(s);if(!1!==i||"="!==c)if(!1===i||s!==r)if(/\s|\n|\t/.test(c)){if(e=e.replace(/\s|\n|\t/g," "),!1===i){if(-1===(l=Se(e,s))){u(Ee.trim(e.slice(n,s))),i=!1,n=s+1;continue}s=l-1;continue}if(-1===(l=Oe(e,s-1))){u(i,ke(Ee.trim(e.slice(n,s)))),i=!1,n=s+1;continue}}else;else{if(-1===(l=e.indexOf(c,s+1)))break;u(i,Ee.trim(e.slice(r+1,l))),i=!1,n=(s=l)+1}else i=e.slice(n,s),n=s+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:Ae(e,s+1)}return n<e.length&&(!1===i?u(e.slice(n)):u(i,ke(Ee.trim(e.slice(n))))),Ee.trim(o.join(" "))};var Be=R.exports.FilterCSS,Fe=L,Te=we,_e=Te.parseTag,Pe=Te.parseAttr,je=Y;function Ie(e){return null==e}function Ne(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Fe.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=Fe.whiteList,e.onTag=e.onTag||Fe.onTag,e.onTagAttr=e.onTagAttr||Fe.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Fe.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Fe.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Fe.safeAttrValue,e.escapeHtml=e.escapeHtml||Fe.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Be(e.css))}Ne.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,o=t.onIgnoreTag,i=t.onTagAttr,a=t.onIgnoreTagAttr,u=t.safeAttrValue,s=t.escapeHtml,l=this.cssFilter;t.stripBlankChar&&(e=Fe.stripBlankChar(e)),t.allowCommentTag||(e=Fe.stripCommentTag(e));var c=!1;t.stripIgnoreTagBody&&(c=Fe.StripTagBody(t.stripIgnoreTagBody,o),o=c.onIgnoreTag);var f=_e(e,(function(e,t,c,f,d){var p={sourcePosition:e,position:t,isClosing:d,isWhite:Object.prototype.hasOwnProperty.call(n,c)},h=r(c,f,p);if(!Ie(h))return h;if(p.isWhite){if(p.isClosing)return"</"+c+">";var g=function(e){var t=je.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=je.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=je.trim(e.slice(0,-1))),{html:e,closing:n}}(f),v=n[c],y=Pe(g.html,(function(e,t){var n=-1!==je.indexOf(v,e),r=i(c,e,t,n);return Ie(r)?n?(t=u(c,e,t,l))?e+'="'+t+'"':e:Ie(r=a(c,e,t,n))?void 0:r:r}));return f="<"+c,y&&(f+=" "+y),g.closing&&(f+=" /"),f+=">"}return Ie(h=o(c,f,p))?s(f):h}),s);return c&&(f=c.remove(f)),f};var Le=Ne;!function(e,t){var n=L,r=we,o=Le;function i(e,t){return new o(t).process(e)}(t=e.exports=i).filterXSS=i,t.FilterXSS=o,function(){for(var e in n)t[e]=n[e];for(var o in r)t[o]=r[o]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(N,N.exports);var Re=N.exports;var Me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ze(e){var t={exports:{}};return e(t,t.exports),t.exports}var $e,He,Ve=function(e){return e&&e.Math==Math&&e},Ue=Ve("object"==typeof globalThis&&globalThis)||Ve("object"==typeof window&&window)||Ve("object"==typeof self&&self)||Ve("object"==typeof Me&&Me)||function(){return this}()||Function("return this")(),We=Function.prototype,Ge=We.apply,qe=We.bind,Ke=We.call,Xe="object"==typeof Reflect&&Reflect.apply||(qe?Ke.bind(Ge):function(){return Ke.apply(Ge,arguments)}),Ye=Function.prototype,Ze=Ye.bind,Je=Ye.call,Qe=Ze&&Ze.bind(Je),et=Ze?function(e){return e&&Qe(Je,e)}:function(e){return e&&function(){return Je.apply(e,arguments)}},tt=function(e){return"function"==typeof e},nt=function(e){try{return!!e()}catch(t){return!0}},rt=!nt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ot=Function.prototype.call,it=ot.bind?ot.bind(ot):function(){return ot.apply(ot,arguments)},at={}.propertyIsEnumerable,ut=Object.getOwnPropertyDescriptor,st=ut&&!at.call({1:2},1)?function(e){var t=ut(this,e);return!!t&&t.enumerable}:at,lt={f:st},ct=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ft=et({}.toString),dt=et("".slice),pt=function(e){return dt(ft(e),8,-1)},ht=Ue.Object,gt=et("".split),vt=nt((function(){return!ht("z").propertyIsEnumerable(0)}))?function(e){return"String"==pt(e)?gt(e,""):ht(e)}:ht,yt=Ue.TypeError,mt=function(e){if(null==e)throw yt("Can't call method on "+e);return e},bt=function(e){return vt(mt(e))},wt=function(e){return"object"==typeof e?null!==e:tt(e)},Et={},xt=function(e){return tt(e)?e:void 0},Dt=function(e,t){return arguments.length<2?xt(Et[e])||xt(Ue[e]):Et[e]&&Et[e][t]||Ue[e]&&Ue[e][t]},Ct=et({}.isPrototypeOf),St=Dt("navigator","userAgent")||"",At=Ue.process,Ot=Ue.Deno,kt=At&&At.versions||Ot&&Ot.version,Bt=kt&&kt.v8;Bt&&(He=($e=Bt.split("."))[0]>0&&$e[0]<4?1:+($e[0]+$e[1])),!He&&St&&(!($e=St.match(/Edge\/(\d+)/))||$e[1]>=74)&&($e=St.match(/Chrome\/(\d+)/))&&(He=+$e[1]);var Ft,Tt=He,_t=!!Object.getOwnPropertySymbols&&!nt((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tt&&Tt<41})),Pt=_t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jt=Ue.Object,It=Pt?function(e){return"symbol"==typeof e}:function(e){var t=Dt("Symbol");return tt(t)&&Ct(t.prototype,jt(e))},Nt=Ue.String,Lt=function(e){try{return Nt(e)}catch(t){return"Object"}},Rt=Ue.TypeError,Mt=function(e){if(tt(e))return e;throw Rt(Lt(e)+" is not a function")},zt=function(e,t){var n=e[t];return null==n?void 0:Mt(n)},$t=Ue.TypeError,Ht=Object.defineProperty,Vt=Ue["__core-js_shared__"]||function(e,t){try{Ht(Ue,e,{value:t,configurable:!0,writable:!0})}catch(Yj){Ue[e]=t}return t}("__core-js_shared__",{}),Ut=ze((function(e){(e.exports=function(e,t){return Vt[e]||(Vt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Wt=Ue.Object,Gt=function(e){return Wt(mt(e))},qt=et({}.hasOwnProperty),Kt=Object.hasOwn||function(e,t){return qt(Gt(e),t)},Xt=0,Yt=Math.random(),Zt=et(1..toString),Jt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Zt(++Xt+Yt,36)},Qt=Ut("wks"),en=Ue.Symbol,tn=en&&en.for,nn=Pt?en:en&&en.withoutSetter||Jt,rn=function(e){if(!Kt(Qt,e)||!_t&&"string"!=typeof Qt[e]){var t="Symbol."+e;_t&&Kt(en,e)?Qt[e]=en[e]:Qt[e]=Pt&&tn?tn(t):nn(t)}return Qt[e]},on=Ue.TypeError,an=rn("toPrimitive"),un=function(e){var t=function(e,t){if(!wt(e)||It(e))return e;var n,r=zt(e,an);if(r){if(void 0===t&&(t="default"),n=it(r,e,t),!wt(n)||It(n))return n;throw on("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&tt(n=e.toString)&&!wt(r=it(n,e)))return r;if(tt(n=e.valueOf)&&!wt(r=it(n,e)))return r;if("string"!==t&&tt(n=e.toString)&&!wt(r=it(n,e)))return r;throw $t("Can't convert object to primitive value")}(e,t)}(e,"string");return It(t)?t:t+""},sn=Ue.document,ln=wt(sn)&&wt(sn.createElement),cn=function(e){return ln?sn.createElement(e):{}},fn=!rt&&!nt((function(){return 7!=Object.defineProperty(cn("div"),"a",{get:function(){return 7}}).a})),dn=Object.getOwnPropertyDescriptor,pn=rt?dn:function(e,t){if(e=bt(e),t=un(t),fn)try{return dn(e,t)}catch(n){}if(Kt(e,t))return ct(!it(lt.f,e,t),e[t])},hn={f:pn},gn=/#|\.prototype\./,vn=function(e,t){var n=mn[yn(e)];return n==wn||n!=bn&&(tt(t)?nt(t):!!t)},yn=vn.normalize=function(e){return String(e).replace(gn,".").toLowerCase()},mn=vn.data={},bn=vn.NATIVE="N",wn=vn.POLYFILL="P",En=vn,xn=et(et.bind),Dn=function(e,t){return Mt(e),void 0===t?e:xn?xn(e,t):function(){return e.apply(t,arguments)}},Cn=Ue.String,Sn=Ue.TypeError,An=function(e){if(wt(e))return e;throw Sn(Cn(e)+" is not an object")},On=Ue.TypeError,kn=Object.defineProperty,Bn=rt?kn:function(e,t,n){if(An(e),t=un(t),An(n),fn)try{return kn(e,t,n)}catch(r){}if("get"in n||"set"in n)throw On("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Fn={f:Bn},Tn=rt?function(e,t,n){return Fn.f(e,t,ct(1,n))}:function(e,t,n){return e[t]=n,e},_n=hn.f,Pn=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return Xe(e,this,arguments)};return t.prototype=e.prototype,t},jn=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?Ue:d?Ue[c]:(Ue[c]||{}).prototype,g=f?Et:Et[c]||Tn(Et,c,{})[c],v=g.prototype;for(o in t)n=!En(f?o:c+(d?".":"#")+o,e.forced)&&h&&Kt(h,o),a=g[o],n&&(u=e.noTargetGet?(l=_n(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?Dn(i,Ue):e.wrap&&n?Pn(i):p&&tt(i)?et(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Tn(s,"sham",!0),Tn(g,o,s),p&&(Kt(Et,r=c+"Prototype")||Tn(Et,r,{}),Tn(Et[r],o,i),e.real&&v&&!v[o]&&Tn(v,o,i)))},In=Ut("keys"),Nn=function(e){return In[e]||(In[e]=Jt(e))},Ln=!nt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Rn=Nn("IE_PROTO"),Mn=Ue.Object,zn=Mn.prototype,$n=Ln?Mn.getPrototypeOf:function(e){var t=Gt(e);if(Kt(t,Rn))return t[Rn];var n=t.constructor;return tt(n)&&t instanceof n?n.prototype:t instanceof Mn?zn:null},Hn=Ue.String,Vn=Ue.TypeError,Un=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=et(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return An(n),function(e){if("object"==typeof e||tt(e))return e;throw Vn("Can't set "+Hn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Wn=Math.ceil,Gn=Math.floor,qn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Gn:Wn)(t)},Kn=Math.max,Xn=Math.min,Yn=function(e,t){var n=qn(e);return n<0?Kn(n+t,0):Xn(n,t)},Zn=Math.min,Jn=function(e){return(t=e.length)>0?Zn(qn(t),9007199254740991):0;var t},Qn=function(e){return function(t,n,r){var o,i=bt(t),a=Jn(i),u=Yn(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},er={includes:Qn(!0),indexOf:Qn(!1)},tr={},nr=er.indexOf,rr=et([].push),or=function(e,t){var n,r=bt(e),o=0,i=[];for(n in r)!Kt(tr,n)&&Kt(r,n)&&rr(i,n);for(;t.length>o;)Kt(r,n=t[o++])&&(~nr(i,n)||rr(i,n));return i},ir=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ar=ir.concat("length","prototype"),ur=Object.getOwnPropertyNames||function(e){return or(e,ar)},sr={f:ur},lr={f:Object.getOwnPropertySymbols},cr=et([].concat),fr=Dt("Reflect","ownKeys")||function(e){var t=sr.f(An(e)),n=lr.f;return n?cr(t,n(e)):t},dr=Object.keys||function(e){return or(e,ir)},pr=rt?Object.defineProperties:function(e,t){An(e);for(var n,r=bt(t),o=dr(t),i=o.length,a=0;i>a;)Fn.f(e,n=o[a++],r[n]);return e},hr=Dt("document","documentElement"),gr=Nn("IE_PROTO"),vr=function(){},yr=function(e){return"<script>"+e+"<\/script>"},mr=function(e){e.write(yr("")),e.close();var t=e.parentWindow.Object;return e=null,t},br=function(){try{Ft=new ActiveXObject("htmlfile")}catch(r){}var e,t;br="undefined"!=typeof document?document.domain&&Ft?mr(Ft):((t=cn("iframe")).style.display="none",hr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yr("document.F=Object")),e.close(),e.F):mr(Ft);for(var n=ir.length;n--;)delete br.prototype[ir[n]];return br()};tr[gr]=!0;var wr=Object.create||function(e,t){var n;return null!==e?(vr.prototype=An(e),n=new vr,vr.prototype=null,n[gr]=e):n=br(),void 0===t?n:pr(n,t)},Er=function(e,t,n){var r=un(t);r in e?Fn.f(e,r,ct(0,n)):e[r]=n},xr=Ue.Array,Dr=Math.max,Cr=function(e,t,n){for(var r=Jn(e),o=Yn(t,r),i=Yn(void 0===n?r:n,r),a=xr(Dr(i-o,0)),u=0;o<i;o++,u++)Er(a,u,e[o]);return a.length=u,a},Sr=et("".replace),Ar=et("".split),Or=et([].join),kr=String(Error("zxcasd").stack),Br=/\n\s*at [^:]*:[^\n]*/,Fr=Br.test(kr),Tr=/@[^\n]*\n/.test(kr)&&!/zxcasd/.test(kr),_r=function(e,t){if("string"!=typeof e)return e;if(Fr)for(;t--;)e=Sr(e,Br,"");else if(Tr)return Or(Cr(Ar(e,"\n"),t),"\n");return e},Pr=function(e,t){wt(t)&&"cause"in t&&Tn(e,"cause",t.cause)},jr={},Ir=rn("iterator"),Nr=Array.prototype,Lr={};Lr[rn("toStringTag")]="z";var Rr="[object z]"===String(Lr),Mr=rn("toStringTag"),zr=Ue.Object,$r="Arguments"==pt(function(){return arguments}()),Hr=Rr?pt:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=zr(e),Mr))?n:$r?pt(t):"Object"==(r=pt(t))&&tt(t.callee)?"Arguments":r},Vr=rn("iterator"),Ur=function(e){if(null!=e)return zt(e,Vr)||zt(e,"@@iterator")||jr[Hr(e)]},Wr=Ue.TypeError,Gr=function(e,t,n){var r,o;An(e);try{if(!(r=zt(e,"return"))){if("throw"===t)throw n;return n}r=it(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return An(r),n},qr=Ue.TypeError,Kr=function(e,t){this.stopped=e,this.result=t},Xr=Kr.prototype,Yr=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Dn(t,f),v=function(e){return r&&Gr(r,"normal",e),new Kr(!0,e)},y=function(e){return d?(An(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Ur(e)))throw qr(Lt(e)+" is not iterable");if(void 0!==(c=o)&&(jr.Array===c||Nr[Ir]===c)){for(i=0,a=Jn(e);a>i;i++)if((u=y(e[i]))&&Ct(Xr,u))return u;return new Kr(!1)}r=function(e,t){var n=arguments.length<2?Ur(e):t;if(Mt(n))return An(it(n,e));throw Wr(Lt(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=it(s,r)).done;){try{u=y(l.value)}catch(c){Gr(r,"throw",c)}if("object"==typeof u&&u&&Ct(Xr,u))return u}return new Kr(!1)},Zr=Ue.String,Jr=function(e){if("Symbol"===Hr(e))throw TypeError("Cannot convert a Symbol value to a string");return Zr(e)},Qr=function(e,t){return void 0===e?arguments.length<2?"":t:Jr(e)},eo=!nt((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ct(1,7)),7!==e.stack)})),to=rn("toStringTag"),no=Ue.Error,ro=[].push,oo=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Ct(io,this);Un?n=Un(new no(void 0),o?$n(this):io):(n=o?this:wr(io),Tn(n,to,"Error")),Tn(n,"message",Qr(t,"")),eo&&Tn(n,"stack",_r(n.stack,1)),Pr(n,r);var i=[];return Yr(e,ro,{that:i}),Tn(n,"errors",i),n};Un?Un(oo,no):function(e,t){for(var n=fr(t),r=Fn.f,o=hn.f,i=0;i<n.length;i++){var a=n[i];Kt(e,a)||r(e,a,o(t,a))}}(oo,no);var io=oo.prototype=wr(no.prototype,{constructor:ct(1,oo),message:ct(1,""),name:ct(1,"AggregateError")});jn({global:!0},{AggregateError:oo});var ao=et(Function.toString);tt(Vt.inspectSource)||(Vt.inspectSource=function(e){return ao(e)});var uo,so,lo,co=Vt.inspectSource,fo=Ue.WeakMap,po=tt(fo)&&/native code/.test(co(fo)),ho=Ue.TypeError,go=Ue.WeakMap;if(po||Vt.state){var vo=Vt.state||(Vt.state=new go),yo=et(vo.get),mo=et(vo.has),bo=et(vo.set);uo=function(e,t){if(mo(vo,e))throw new ho("Object already initialized");return t.facade=e,bo(vo,e,t),t},so=function(e){return yo(vo,e)||{}},lo=function(e){return mo(vo,e)}}else{var wo=Nn("state");tr[wo]=!0,uo=function(e,t){if(Kt(e,wo))throw new ho("Object already initialized");return t.facade=e,Tn(e,wo,t),t},so=function(e){return Kt(e,wo)?e[wo]:{}},lo=function(e){return Kt(e,wo)}}var Eo,xo,Do,Co={set:uo,get:so,has:lo,enforce:function(e){return lo(e)?so(e):uo(e,{})},getterFor:function(e){return function(t){var n;if(!wt(t)||(n=so(t)).type!==e)throw ho("Incompatible receiver, "+e+" required");return n}}},So=Function.prototype,Ao=rt&&Object.getOwnPropertyDescriptor,Oo=Kt(So,"name"),ko={EXISTS:Oo,PROPER:Oo&&"something"===function(){}.name,CONFIGURABLE:Oo&&(!rt||rt&&Ao(So,"name").configurable)},Bo=function(e,t,n,r){r&&r.enumerable?e[t]=n:Tn(e,t,n)},Fo=rn("iterator"),To=!1;[].keys&&("next"in(Do=[].keys())?(xo=$n($n(Do)))!==Object.prototype&&(Eo=xo):To=!0);var _o=null==Eo||nt((function(){var e={};return Eo[Fo].call(e)!==e}));Eo=_o?{}:wr(Eo),tt(Eo[Fo])||Bo(Eo,Fo,(function(){return this}));var Po={IteratorPrototype:Eo,BUGGY_SAFARI_ITERATORS:To},jo=Rr?{}.toString:function(){return"[object "+Hr(this)+"]"},Io=Fn.f,No=rn("toStringTag"),Lo=function(e,t,n,r){if(e){var o=n?e:e.prototype;Kt(o,No)||Io(o,No,{configurable:!0,value:t}),r&&!Rr&&Tn(o,"toString",jo)}},Ro=Po.IteratorPrototype,Mo=function(){return this},zo=ko.PROPER,$o=Po.BUGGY_SAFARI_ITERATORS,Ho=rn("iterator"),Vo=function(){return this},Uo=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=wr(Ro,{next:ct(1,s)}),Lo(u,l,!1,!0),jr[l]=Mo;var c,f,d,p=function(e){if(e===o&&m)return m;if(!$o&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[Ho]||v["@@iterator"]||o&&v[o],m=!$o&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=$n(b.call(new e)))!==Object.prototype&&c.next&&(Lo(c,h,!0,!0),jr[h]=Vo),zo&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return it(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)($o||g||!(d in v))&&Bo(v,d,f[d]);else jn({target:t,proto:!0,forced:$o||g},f);return a&&v[Ho]!==m&&Bo(v,Ho,m,{name:o}),jr[t]=m,f},Wo=Co.set,Go=Co.getterFor("Array Iterator");Uo(Array,"Array",(function(e,t){Wo(this,{type:"Array Iterator",target:bt(e),index:0,kind:t})}),(function(){var e=Go(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),jr.Arguments=jr.Array;var qo=et("".charAt),Ko=et("".charCodeAt),Xo=et("".slice),Yo=function(e){return function(t,n){var r,o,i=Jr(mt(t)),a=qn(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ko(i,a))<55296||r>56319||a+1===u||(o=Ko(i,a+1))<56320||o>57343?e?qo(i,a):r:e?Xo(i,a,a+2):o-56320+(r-55296<<10)+65536}},Zo=(Yo(!1),Yo(!0)),Jo=Co.set,Qo=Co.getterFor("String Iterator");Uo(String,"String",(function(e){Jo(this,{type:"String Iterator",string:Jr(e),index:0})}),(function(){var e,t=Qo(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Zo(n,r),t.index+=e.length,{value:e,done:!1})}));var ei=Et.AggregateError,ti=rn("toStringTag");for(var ni in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ri=Ue[ni],oi=ri&&ri.prototype;oi&&Hr(oi)!==ti&&Tn(oi,ti,ni),jr[ni]=jr.Array}var ii,ai,ui=ei,si=function(e){return e&&e.Math==Math&&e},li=si("object"==typeof globalThis&&globalThis)||si("object"==typeof window&&window)||si("object"==typeof self&&self)||si("object"==typeof Me&&Me)||function(){return this}()||Function("return this")(),ci=function(e){try{return!!e()}catch(t){return!0}},fi=!ci((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),di=Function.prototype.call,pi=di.bind?di.bind(di):function(){return di.apply(di,arguments)},hi={}.propertyIsEnumerable,gi=Object.getOwnPropertyDescriptor,vi=gi&&!hi.call({1:2},1)?function(e){var t=gi(this,e);return!!t&&t.enumerable}:hi,yi={f:vi},mi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bi=Function.prototype,wi=bi.bind,Ei=bi.call,xi=wi&&wi.bind(Ei),Di=wi?function(e){return e&&xi(Ei,e)}:function(e){return e&&function(){return Ei.apply(e,arguments)}},Ci=Di({}.toString),Si=Di("".slice),Ai=function(e){return Si(Ci(e),8,-1)},Oi=li.Object,ki=Di("".split),Bi=ci((function(){return!Oi("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ai(e)?ki(e,""):Oi(e)}:Oi,Fi=li.TypeError,Ti=function(e){if(null==e)throw Fi("Can't call method on "+e);return e},_i=function(e){return Bi(Ti(e))},Pi=function(e){return"function"==typeof e},ji=function(e){return"object"==typeof e?null!==e:Pi(e)},Ii=function(e){return Pi(e)?e:void 0},Ni=function(e,t){return arguments.length<2?Ii(li[e]):li[e]&&li[e][t]},Li=Di({}.isPrototypeOf),Ri=Ni("navigator","userAgent")||"",Mi=li.process,zi=li.Deno,$i=Mi&&Mi.versions||zi&&zi.version,Hi=$i&&$i.v8;Hi&&(ai=(ii=Hi.split("."))[0]>0&&ii[0]<4?1:+(ii[0]+ii[1])),!ai&&Ri&&(!(ii=Ri.match(/Edge\/(\d+)/))||ii[1]>=74)&&(ii=Ri.match(/Chrome\/(\d+)/))&&(ai=+ii[1]);var Vi=ai,Ui=!!Object.getOwnPropertySymbols&&!ci((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vi&&Vi<41})),Wi=Ui&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gi=li.Object,qi=Wi?function(e){return"symbol"==typeof e}:function(e){var t=Ni("Symbol");return Pi(t)&&Li(t.prototype,Gi(e))},Ki=li.String,Xi=function(e){try{return Ki(e)}catch(t){return"Object"}},Yi=li.TypeError,Zi=function(e){if(Pi(e))return e;throw Yi(Xi(e)+" is not a function")},Ji=function(e,t){var n=e[t];return null==n?void 0:Zi(n)},Qi=li.TypeError,ea=Object.defineProperty,ta=function(e,t){try{ea(li,e,{value:t,configurable:!0,writable:!0})}catch(Yj){li[e]=t}return t},na=li["__core-js_shared__"]||ta("__core-js_shared__",{}),ra=ze((function(e){(e.exports=function(e,t){return na[e]||(na[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),oa=li.Object,ia=function(e){return oa(Ti(e))},aa=Di({}.hasOwnProperty),ua=Object.hasOwn||function(e,t){return aa(ia(e),t)},sa=0,la=Math.random(),ca=Di(1..toString),fa=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ca(++sa+la,36)},da=ra("wks"),pa=li.Symbol,ha=pa&&pa.for,ga=Wi?pa:pa&&pa.withoutSetter||fa,va=function(e){if(!ua(da,e)||!Ui&&"string"!=typeof da[e]){var t="Symbol."+e;Ui&&ua(pa,e)?da[e]=pa[e]:da[e]=Wi&&ha?ha(t):ga(t)}return da[e]},ya=li.TypeError,ma=va("toPrimitive"),ba=function(e){var t=function(e,t){if(!ji(e)||qi(e))return e;var n,r=Ji(e,ma);if(r){if(void 0===t&&(t="default"),n=pi(r,e,t),!ji(n)||qi(n))return n;throw ya("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Pi(n=e.toString)&&!ji(r=pi(n,e)))return r;if(Pi(n=e.valueOf)&&!ji(r=pi(n,e)))return r;if("string"!==t&&Pi(n=e.toString)&&!ji(r=pi(n,e)))return r;throw Qi("Can't convert object to primitive value")}(e,t)}(e,"string");return qi(t)?t:t+""},wa=li.document,Ea=ji(wa)&&ji(wa.createElement),xa=function(e){return Ea?wa.createElement(e):{}},Da=!fi&&!ci((function(){return 7!=Object.defineProperty(xa("div"),"a",{get:function(){return 7}}).a})),Ca=Object.getOwnPropertyDescriptor,Sa=fi?Ca:function(e,t){if(e=_i(e),t=ba(t),Da)try{return Ca(e,t)}catch(n){}if(ua(e,t))return mi(!pi(yi.f,e,t),e[t])},Aa={f:Sa},Oa=li.String,ka=li.TypeError,Ba=function(e){if(ji(e))return e;throw ka(Oa(e)+" is not an object")},Fa=li.TypeError,Ta=Object.defineProperty,_a=fi?Ta:function(e,t,n){if(Ba(e),t=ba(t),Ba(n),Da)try{return Ta(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Fa("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Pa={f:_a},ja=fi?function(e,t,n){return Pa.f(e,t,mi(1,n))}:function(e,t,n){return e[t]=n,e},Ia=Di(Function.toString);Pi(na.inspectSource)||(na.inspectSource=function(e){return Ia(e)});var Na,La,Ra,Ma=na.inspectSource,za=li.WeakMap,$a=Pi(za)&&/native code/.test(Ma(za)),Ha=ra("keys"),Va=function(e){return Ha[e]||(Ha[e]=fa(e))},Ua={},Wa=li.TypeError,Ga=li.WeakMap;if($a||na.state){var qa=na.state||(na.state=new Ga),Ka=Di(qa.get),Xa=Di(qa.has),Ya=Di(qa.set);Na=function(e,t){if(Xa(qa,e))throw new Wa("Object already initialized");return t.facade=e,Ya(qa,e,t),t},La=function(e){return Ka(qa,e)||{}},Ra=function(e){return Xa(qa,e)}}else{var Za=Va("state");Ua[Za]=!0,Na=function(e,t){if(ua(e,Za))throw new Wa("Object already initialized");return t.facade=e,ja(e,Za,t),t},La=function(e){return ua(e,Za)?e[Za]:{}},Ra=function(e){return ua(e,Za)}}var Ja={set:Na,get:La,has:Ra,enforce:function(e){return Ra(e)?La(e):Na(e,{})},getterFor:function(e){return function(t){var n;if(!ji(t)||(n=La(t)).type!==e)throw Wa("Incompatible receiver, "+e+" required");return n}}},Qa=Function.prototype,eu=fi&&Object.getOwnPropertyDescriptor,tu=ua(Qa,"name"),nu={EXISTS:tu,PROPER:tu&&"something"===function(){}.name,CONFIGURABLE:tu&&(!fi||fi&&eu(Qa,"name").configurable)},ru=ze((function(e){var t=nu.CONFIGURABLE,n=Ja.get,r=Ja.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Pi(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ua(i,"name")||t&&i.name!==f)&&ja(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==li?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ja(e,n,i)):l?e[n]=i:ta(n,i)})(Function.prototype,"toString",(function(){return Pi(this)&&n(this).source||Ma(this)}))})),ou=Math.ceil,iu=Math.floor,au=function(e){var t=+e;return t!=t||0===t?0:(t>0?iu:ou)(t)},uu=Math.max,su=Math.min,lu=function(e,t){var n=au(e);return n<0?uu(n+t,0):su(n,t)},cu=Math.min,fu=function(e){return e>0?cu(au(e),9007199254740991):0},du=function(e){return fu(e.length)},pu=function(e){return function(t,n,r){var o,i=_i(t),a=du(i),u=lu(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},hu=(pu(!0),pu(!1)),gu=Di([].push),vu=function(e,t){var n,r=_i(e),o=0,i=[];for(n in r)!ua(Ua,n)&&ua(r,n)&&gu(i,n);for(;t.length>o;)ua(r,n=t[o++])&&(~hu(i,n)||gu(i,n));return i},yu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mu=yu.concat("length","prototype"),bu=Object.getOwnPropertyNames||function(e){return vu(e,mu)},wu={f:bu},Eu={f:Object.getOwnPropertySymbols},xu=Di([].concat),Du=Ni("Reflect","ownKeys")||function(e){var t=wu.f(Ba(e)),n=Eu.f;return n?xu(t,n(e)):t},Cu=function(e,t){for(var n=Du(t),r=Pa.f,o=Aa.f,i=0;i<n.length;i++){var a=n[i];ua(e,a)||r(e,a,o(t,a))}},Su=/#|\.prototype\./,Au=function(e,t){var n=ku[Ou(e)];return n==Fu||n!=Bu&&(Pi(t)?ci(t):!!t)},Ou=Au.normalize=function(e){return String(e).replace(Su,".").toLowerCase()},ku=Au.data={},Bu=Au.NATIVE="N",Fu=Au.POLYFILL="P",Tu=Au,_u=Aa.f,Pu=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?li:l?li[u]||ta(u,{}):(li[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=_u(n,r))&&a.value:n[r],!Tu(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Cu(i,o)}(e.sham||o&&o.sham)&&ja(i,"sham",!0),ru(n,r,i,e)}},ju={};ju[va("toStringTag")]="z";var Iu,Nu="[object z]"===String(ju),Lu=va("toStringTag"),Ru=li.Object,Mu="Arguments"==Ai(function(){return arguments}()),zu=Nu?Ai:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Ru(e),Lu))?n:Mu?Ai(t):"Object"==(r=Ai(t))&&Pi(t.callee)?"Arguments":r},$u=li.String,Hu=function(e){if("Symbol"===zu(e))throw TypeError("Cannot convert a Symbol value to a string");return $u(e)},Vu=function(){var e=Ba(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Uu=li.RegExp,Wu=ci((function(){var e=Uu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Gu=Wu||ci((function(){return!Uu("a","y").sticky})),qu=Wu||ci((function(){var e=Uu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Ku={BROKEN_CARET:qu,MISSED_STICKY:Gu,UNSUPPORTED_Y:Wu},Xu=Object.keys||function(e){return vu(e,yu)},Yu=fi?Object.defineProperties:function(e,t){Ba(e);for(var n,r=_i(t),o=Xu(t),i=o.length,a=0;i>a;)Pa.f(e,n=o[a++],r[n]);return e},Zu=Ni("document","documentElement"),Ju=Va("IE_PROTO"),Qu=function(){},es=function(e){return"<script>"+e+"<\/script>"},ts=function(e){e.write(es("")),e.close();var t=e.parentWindow.Object;return e=null,t},ns=function(){try{Iu=new ActiveXObject("htmlfile")}catch(r){}var e,t;ns="undefined"!=typeof document?document.domain&&Iu?ts(Iu):((t=xa("iframe")).style.display="none",Zu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(es("document.F=Object")),e.close(),e.F):ts(Iu);for(var n=yu.length;n--;)delete ns.prototype[yu[n]];return ns()};Ua[Ju]=!0;var rs,os,is=Object.create||function(e,t){var n;return null!==e?(Qu.prototype=Ba(e),n=new Qu,Qu.prototype=null,n[Ju]=e):n=ns(),void 0===t?n:Yu(n,t)},as=li.RegExp,us=ci((function(){var e=as(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ss=li.RegExp,ls=ci((function(){var e=ss("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),cs=Ja.get,fs=ra("native-string-replace",String.prototype.replace),ds=RegExp.prototype.exec,ps=ds,hs=Di("".charAt),gs=Di("".indexOf),vs=Di("".replace),ys=Di("".slice),ms=(os=/b*/g,pi(ds,rs=/a/,"a"),pi(ds,os,"a"),0!==rs.lastIndex||0!==os.lastIndex),bs=Ku.BROKEN_CARET,ws=void 0!==/()??/.exec("")[1];(ms||ws||bs||us||ls)&&(ps=function(e){var t,n,r,o,i,a,u,s=this,l=cs(s),c=Hu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=pi(ps,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bs&&s.sticky,h=pi(Vu,s),g=s.source,v=0,y=c;if(p&&(h=vs(h,"y",""),-1===gs(h,"g")&&(h+="g"),y=ys(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==hs(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),ws&&(n=new RegExp("^"+g+"$(?!\\s)",h)),ms&&(r=s.lastIndex),o=pi(ds,p?n:s,y),p?o?(o.input=ys(o.input,v),o[0]=ys(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ms&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ws&&o&&o.length>1&&pi(fs,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=is(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Es=ps;Pu({target:"RegExp",proto:!0,forced:/./.exec!==Es},{exec:Es});va("species");var xs=RegExp.prototype,Ds=Di("".charAt),Cs=Di("".charCodeAt),Ss=Di("".slice),As=function(e){return function(t,n){var r,o,i=Hu(Ti(t)),a=au(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Cs(i,a))<55296||r>56319||a+1===u||(o=Cs(i,a+1))<56320||o>57343?e?Ds(i,a):r:e?Ss(i,a,a+2):o-56320+(r-55296<<10)+65536}},Os={codeAt:As(!1),charAt:As(!0)},ks=Os.charAt,Bs=function(e,t,n){return t+(n?ks(e,t).length:1)},Fs=li.TypeError,Ts=function(e,t){var n=e.exec;if(Pi(n)){var r=pi(n,e,t);return null!==r&&Ba(r),r}if("RegExp"===Ai(e))return pi(Es,e,t);throw Fs("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=va(e),i=!ci((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ci((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Di(/./[o]),s=function(e,t,n){return[function(t){var n=Ti(this),r=null==t?void 0:Ji(t,e);return r?pi(r,t,n):new RegExp(t)[e](Hu(n))},function(e){var r=Ba(this),o=Hu(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Ts(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Ts(r,o));){var c=Hu(u[0]);s[l]=c,""===c&&(r.lastIndex=Bs(o,fu(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Di(e),s=t.exec;return s===Es||s===xs.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ru(String.prototype,e,s[0]),ru(xs,o,s[1])}}("match"),Pu({global:!0},{globalThis:li});var _s=!ci((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ps=Va("IE_PROTO"),js=li.Object,Is=js.prototype,Ns=_s?js.getPrototypeOf:function(e){var t=ia(e);if(ua(t,Ps))return t[Ps];var n=t.constructor;return Pi(n)&&t instanceof n?n.prototype:t instanceof js?Is:null},Ls=li.String,Rs=li.TypeError,Ms=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Di(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Ba(n),function(e){if("object"==typeof e||Pi(e))return e;throw Rs("Can't set "+Ls(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zs=li.Array,$s=Math.max,Hs=Di("".replace),Vs=Di("".split),Us=Di([].join),Ws=String(Error("zxcasd").stack),Gs=/\n\s*at [^:]*:[^\n]*/,qs=Gs.test(Ws),Ks=/@[^\n]*\n/.test(Ws)&&!/zxcasd/.test(Ws),Xs=function(e,t){if("string"!=typeof e)return e;if(qs)for(;t--;)e=Hs(e,Gs,"");else if(Ks)return Us(function(e,t,n){for(var r,o,i,a,u=du(e),s=lu(t,u),l=lu(u,u),c=zs($s(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=ba(o))in r?Pa.f(r,a,mi(0,i)):r[a]=i;return c.length=f,c}(Vs(e,"\n"),t),"\n");return e},Ys=function(e,t){ji(t)&&"cause"in t&&ja(e,"cause",t.cause)},Zs=Di(Di.bind),Js=function(e,t){return Zi(e),void 0===t?e:Zs?Zs(e,t):function(){return e.apply(t,arguments)}},Qs={},el=va("iterator"),tl=Array.prototype,nl=va("iterator"),rl=function(e){if(null!=e)return Ji(e,nl)||Ji(e,"@@iterator")||Qs[zu(e)]},ol=li.TypeError,il=function(e,t,n){var r,o;Ba(e);try{if(!(r=Ji(e,"return"))){if("throw"===t)throw n;return n}r=pi(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Ba(r),n},al=li.TypeError,ul=function(e,t){this.stopped=e,this.result=t},sl=ul.prototype,ll=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Js(t,f),v=function(e){return r&&il(r,"normal",e),new ul(!0,e)},y=function(e){return d?(Ba(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=rl(e)))throw al(Xi(e)+" is not iterable");if(void 0!==(c=o)&&(Qs.Array===c||tl[el]===c)){for(i=0,a=du(e);a>i;i++)if((u=y(e[i]))&&Li(sl,u))return u;return new ul(!1)}r=function(e,t){var n=arguments.length<2?rl(e):t;if(Zi(n))return Ba(pi(n,e));throw ol(Xi(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=pi(s,r)).done;){try{u=y(l.value)}catch(c){il(r,"throw",c)}if("object"==typeof u&&u&&Li(sl,u))return u}return new ul(!1)},cl=function(e,t){return void 0===e?arguments.length<2?"":t:Hu(e)},fl=!ci((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",mi(1,7)),7!==e.stack)})),dl=va("toStringTag"),pl=li.Error,hl=[].push,gl=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Li(vl,this);Ms?n=Ms(new pl(void 0),o?Ns(this):vl):(n=o?this:is(vl),ja(n,dl,"Error")),ja(n,"message",cl(t,"")),fl&&ja(n,"stack",Xs(n.stack,1)),Ys(n,r);var i=[];return ll(e,hl,{that:i}),ja(n,"errors",i),n};Ms?Ms(gl,pl):Cu(gl,pl);var vl=gl.prototype=is(pl.prototype,{constructor:mi(1,gl),message:mi(1,""),name:mi(1,"AggregateError")});Pu({global:!0},{AggregateError:gl});var yl=va("unscopables"),ml=Array.prototype;null==ml[yl]&&Pa.f(ml,yl,{configurable:!0,value:is(null)});var bl,wl,El,xl=function(e){ml[yl][e]=!0},Dl=va("iterator"),Cl=!1;[].keys&&("next"in(El=[].keys())?(wl=Ns(Ns(El)))!==Object.prototype&&(bl=wl):Cl=!0);var Sl=null==bl||ci((function(){var e={};return bl[Dl].call(e)!==e}));Sl&&(bl={}),Pi(bl[Dl])||ru(bl,Dl,(function(){return this}));var Al={IteratorPrototype:bl,BUGGY_SAFARI_ITERATORS:Cl},Ol=Pa.f,kl=va("toStringTag"),Bl=function(e,t,n){e&&!ua(e=n?e:e.prototype,kl)&&Ol(e,kl,{configurable:!0,value:t})},Fl=Al.IteratorPrototype,Tl=function(){return this},_l=nu.PROPER,Pl=nu.CONFIGURABLE,jl=Al.IteratorPrototype,Il=Al.BUGGY_SAFARI_ITERATORS,Nl=va("iterator"),Ll=function(){return this},Rl=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=is(Fl,{next:mi(1,s)}),Bl(u,l,!1),Qs[l]=Tl;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Il&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[Nl]||v["@@iterator"]||o&&v[o],m=!Il&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Ns(b.call(new e)))!==Object.prototype&&c.next&&(Ns(c)!==jl&&(Ms?Ms(c,jl):Pi(c[Nl])||ru(c,Nl,Ll)),Bl(c,h,!0)),_l&&"values"==o&&y&&"values"!==y.name&&(Pl?ja(v,"name","values"):(g=!0,m=function(){return pi(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Il||g||!(d in v))&&ru(v,d,f[d]);else Pu({target:t,proto:!0,forced:Il||g},f);return v[Nl]!==m&&ru(v,Nl,m,{name:o}),Qs[t]=m,f},Ml=Ja.set,zl=Ja.getterFor("Array Iterator"),$l=Rl(Array,"Array",(function(e,t){Ml(this,{type:"Array Iterator",target:_i(e),index:0,kind:t})}),(function(){var e=zl(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Qs.Arguments=Qs.Array,xl("keys"),xl("values"),xl("entries");var Hl=Os.charAt,Vl=Ja.set,Ul=Ja.getterFor("String Iterator");Rl(String,"String",(function(e){Vl(this,{type:"String Iterator",string:Hu(e),index:0})}),(function(){var e,t=Ul(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Hl(n,r),t.index+=e.length,{value:e,done:!1})}));var Wl,Gl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ql=xa("span").classList,Kl=ql&&ql.constructor&&ql.constructor.prototype,Xl=Kl===Object.prototype?void 0:Kl,Yl=va("iterator"),Zl=va("toStringTag"),Jl=$l.values,Ql=function(e,t){if(e){if(e[Yl]!==Jl)try{ja(e,Yl,Jl)}catch(r){e[Yl]=Jl}if(e[Zl]||ja(e,Zl,t),Gl[t])for(var n in $l)if(e[n]!==$l[n])try{ja(e,n,$l[n])}catch(r){e[n]=$l[n]}}};for(var ec in Gl)Ql(li[ec]&&li[ec].prototype,ec);function tc(){"undefined"==typeof globalThis&&(window.globalThis=window)}function nc(){void 0===ui&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Ql(Xl,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),tc(),nc()):global&&(null===(Wl=global.navigator)||void 0===Wl?void 0:Wl.userAgent.match("QQBrowser"))&&(tc(),nc());var rc=Array.isArray||function(e){return"Array"==pt(e)},oc=function(){},ic=[],ac=Dt("Reflect","construct"),uc=/^\s*(?:class|function)\b/,sc=et(uc.exec),lc=!uc.exec(oc),cc=function(e){if(!tt(e))return!1;try{return ac(oc,ic,e),!0}catch(t){return!1}},fc=!ac||nt((function(){var e;return cc(cc.call)||!cc(Object)||!cc((function(){e=!0}))||e}))?function(e){if(!tt(e))return!1;switch(Hr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lc||!!sc(uc,co(e))}:cc,dc=rn("species"),pc=Ue.Array,hc=function(e,t){return new(rc(n=e)&&(r=n.constructor,(fc(r)&&(r===pc||rc(r.prototype))||wt(r)&&null===(r=r[dc]))&&(r=void 0)),void 0===r?pc:r)(0===t?0:t);var n,r},gc=rn("species"),vc=rn("isConcatSpreadable"),yc=Ue.TypeError,mc=Tt>=51||!nt((function(){var e=[];return e[vc]=!1,e.concat()[0]!==e})),bc=("concat",Tt>=51||!nt((function(){var e=[];return(e.constructor={})[gc]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),wc=function(e){if(!wt(e))return!1;var t=e[vc];return void 0!==t?!!t:rc(e)};jn({target:"Array",proto:!0,forced:!mc||!bc},{concat:function(e){var t,n,r,o,i,a=Gt(this),u=hc(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(wc(i=-1===t?a:arguments[t])){if(s+(o=Jn(i))>9007199254740991)throw yc("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Er(u,s,i[n])}else{if(s>=9007199254740991)throw yc("Maximum allowed index exceeded");Er(u,s++,i)}return u.length=s,u}});var Ec=sr.f,xc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dc={f:function(e){return xc&&"Window"==pt(e)?function(e){try{return Ec(e)}catch(t){return Cr(xc)}}(e):Ec(bt(e))}},Cc=et([].slice),Sc={f:rn},Ac=Fn.f,Oc=function(e){var t=Et.Symbol||(Et.Symbol={});Kt(t,e)||Ac(t,e,{value:Sc.f(e)})},kc=et([].push),Bc=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Gt(s),g=vt(h),v=Dn(l,c),y=Jn(g),m=0,b=f||hc,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:kc(w,d)}else switch(e){case 4:return!1;case 7:kc(w,d)}return i?-1:r||o?o:w}},Fc=[Bc(0),Bc(1),Bc(2),Bc(3),Bc(4),Bc(5),Bc(6),Bc(7)][0],Tc=Nn("hidden"),_c=rn("toPrimitive"),Pc=Co.set,jc=Co.getterFor("Symbol"),Ic=Object.prototype,Nc=Ue.Symbol,Lc=Nc&&Nc.prototype,Rc=Ue.TypeError,Mc=Ue.QObject,zc=Dt("JSON","stringify"),$c=hn.f,Hc=Fn.f,Vc=Dc.f,Uc=lt.f,Wc=et([].push),Gc=Ut("symbols"),qc=Ut("op-symbols"),Kc=Ut("string-to-symbol-registry"),Xc=Ut("symbol-to-string-registry"),Yc=Ut("wks"),Zc=!Mc||!Mc.prototype||!Mc.prototype.findChild,Jc=rt&&nt((function(){return 7!=wr(Hc({},"a",{get:function(){return Hc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=$c(Ic,t);r&&delete Ic[t],Hc(e,t,n),r&&e!==Ic&&Hc(Ic,t,r)}:Hc,Qc=function(e,t){var n=Gc[e]=wr(Lc);return Pc(n,{type:"Symbol",tag:e,description:t}),rt||(n.description=t),n},ef=function(e,t,n){e===Ic&&ef(qc,t,n),An(e);var r=un(t);return An(n),Kt(Gc,r)?(n.enumerable?(Kt(e,Tc)&&e[Tc][r]&&(e[Tc][r]=!1),n=wr(n,{enumerable:ct(0,!1)})):(Kt(e,Tc)||Hc(e,Tc,ct(1,{})),e[Tc][r]=!0),Jc(e,r,n)):Hc(e,r,n)},tf=function(e,t){An(e);var n=bt(t),r=dr(n).concat(af(n));return Fc(r,(function(t){rt&&!it(nf,n,t)||ef(e,t,n[t])})),e},nf=function(e){var t=un(e),n=it(Uc,this,t);return!(this===Ic&&Kt(Gc,t)&&!Kt(qc,t))&&(!(n||!Kt(this,t)||!Kt(Gc,t)||Kt(this,Tc)&&this[Tc][t])||n)},rf=function(e,t){var n=bt(e),r=un(t);if(n!==Ic||!Kt(Gc,r)||Kt(qc,r)){var o=$c(n,r);return!o||!Kt(Gc,r)||Kt(n,Tc)&&n[Tc][r]||(o.enumerable=!0),o}},of=function(e){var t=Vc(bt(e)),n=[];return Fc(t,(function(e){Kt(Gc,e)||Kt(tr,e)||Wc(n,e)})),n},af=function(e){var t=e===Ic,n=Vc(t?qc:bt(e)),r=[];return Fc(n,(function(e){!Kt(Gc,e)||t&&!Kt(Ic,e)||Wc(r,Gc[e])})),r};if(_t||(Lc=(Nc=function(){if(Ct(Lc,this))throw Rc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Jr(arguments[0]):void 0,t=Jt(e),n=function(e){this===Ic&&it(n,qc,e),Kt(this,Tc)&&Kt(this[Tc],t)&&(this[Tc][t]=!1),Jc(this,t,ct(1,e))};return rt&&Zc&&Jc(Ic,t,{configurable:!0,set:n}),Qc(t,e)}).prototype,Bo(Lc,"toString",(function(){return jc(this).tag})),Bo(Nc,"withoutSetter",(function(e){return Qc(Jt(e),e)})),lt.f=nf,Fn.f=ef,hn.f=rf,sr.f=Dc.f=of,lr.f=af,Sc.f=function(e){return Qc(rn(e),e)},rt&&Hc(Lc,"description",{configurable:!0,get:function(){return jc(this).description}})),jn({global:!0,wrap:!0,forced:!_t,sham:!_t},{Symbol:Nc}),Fc(dr(Yc),(function(e){Oc(e)})),jn({target:"Symbol",stat:!0,forced:!_t},{for:function(e){var t=Jr(e);if(Kt(Kc,t))return Kc[t];var n=Nc(t);return Kc[t]=n,Xc[n]=t,n},keyFor:function(e){if(!It(e))throw Rc(e+" is not a symbol");if(Kt(Xc,e))return Xc[e]},useSetter:function(){Zc=!0},useSimple:function(){Zc=!1}}),jn({target:"Object",stat:!0,forced:!_t,sham:!rt},{create:function(e,t){return void 0===t?wr(e):tf(wr(e),t)},defineProperty:ef,defineProperties:tf,getOwnPropertyDescriptor:rf}),jn({target:"Object",stat:!0,forced:!_t},{getOwnPropertyNames:of,getOwnPropertySymbols:af}),jn({target:"Object",stat:!0,forced:nt((function(){lr.f(1)}))},{getOwnPropertySymbols:function(e){return lr.f(Gt(e))}}),zc){var uf=!_t||nt((function(){var e=Nc();return"[null]"!=zc([e])||"{}"!=zc({a:e})||"{}"!=zc(Object(e))}));jn({target:"JSON",stat:!0,forced:uf},{stringify:function(e,t,n){var r=Cc(arguments),o=t;if((wt(t)||void 0!==e)&&!It(e))return rc(t)||(t=function(e,t){if(tt(o)&&(t=it(o,this,e,t)),!It(t))return t}),r[1]=t,Xe(zc,null,r)}})}if(!Lc[_c]){var sf=Lc.valueOf;Bo(Lc,_c,(function(e){return it(sf,this)}))}Lo(Nc,"Symbol"),tr[Tc]=!0,Oc("asyncIterator"),Oc("hasInstance"),Oc("isConcatSpreadable"),Oc("iterator"),Oc("match"),Oc("matchAll"),Oc("replace"),Oc("search"),Oc("species"),Oc("split"),Oc("toPrimitive"),Oc("toStringTag"),Oc("unscopables"),Lo(Ue.JSON,"JSON",!0);var lf=Et.Symbol;Oc("asyncDispose"),Oc("dispose"),Oc("matcher"),Oc("metadata"),Oc("observable"),Oc("patternMatch"),Oc("replaceAll");var cf,ff=lf,df=Sc.f("iterator"),pf=ze((function(e){function t(n){return"function"==typeof ff&&"symbol"==typeof df?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof ff&&e.constructor===ff&&e!==ff.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),hf=(cf=pf)&&cf.__esModule&&Object.prototype.hasOwnProperty.call(cf,"default")?cf.default:cf,gf=Aa.f,vf=ci((function(){gf(1)}));if(Pu({target:"Object",stat:!0,forced:!fi||vf,sham:!fi},{getOwnPropertyDescriptor:function(e,t){return gf(_i(e),t)}}),"object"===("undefined"==typeof global?"undefined":hf(global))){var yf=Object.getOwnPropertyDescriptor(global,"window");global.window&&!yf.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
  2. /*!
  3. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  4. *
  5. * Copyright (c) 2014-2017, Jon Schlinkert.
  6. * Released under the MIT License.
  7. */function mf(e){return"[object Object]"===Object.prototype.toString.call(e)}function bf(e){var t,n;return!1!==mf(e)&&(void 0===(t=e.constructor)||!1!==mf(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function wf(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ef(e){return!!e&&!!e[id]}function xf(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ad}(e)||Array.isArray(e)||!!e[od]||!!e.constructor[od]||Of(e)||kf(e))}function Df(e,t,n){void 0===n&&(n=!1),0===Cf(e)?(n?Object.keys:ud)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Cf(e){var t=e[id];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Of(e)?2:kf(e)?3:0}function Sf(e,t){return 2===Cf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Af(e,t,n){var r=Cf(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Of(e){return ed&&e instanceof Map}function kf(e){return td&&e instanceof Set}function Bf(e){return e.o||e.t}function Ff(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sd(e);delete t[id];for(var n=ud(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Tf(e,t){return void 0===t&&(t=!1),Pf(e)||Ef(e)||!xf(e)||(Cf(e)>1&&(e.set=e.add=e.clear=e.delete=_f),Object.freeze(e),t&&Df(e,(function(e,t){return Tf(t,!0)}),!0)),e}function _f(){wf(2)}function Pf(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function jf(e){var t=ld[e];return t||wf(18,e),t}function If(){return Jf}function Nf(e,t){t&&(jf("Patches"),e.u=[],e.s=[],e.v=t)}function Lf(e){Rf(e),e.p.forEach(zf),e.p=null}function Rf(e){e===Jf&&(Jf=e.l)}function Mf(e){return Jf={p:[],l:Jf,h:e,m:!0,_:0}}function zf(e){var t=e[id];0===t.i||1===t.i?t.j():t.O=!0}function $f(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||jf("ES5").S(t,e,r),r?(n[id].P&&(Lf(t),wf(4)),xf(e)&&(e=Hf(t,e),t.l||Uf(t,e)),t.u&&jf("Patches").M(n[id],e,t.u,t.s)):e=Hf(t,n,[]),Lf(t),t.u&&t.v(t.u,t.s),e!==rd?e:void 0}function Hf(e,t,n){if(Pf(t))return t;var r=t[id];if(!r)return Df(t,(function(o,i){return Vf(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Uf(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ff(r.k):r.o;Df(3===r.i?new Set(o):o,(function(t,i){return Vf(e,r,o,t,i,n)})),Uf(e,o,!1),n&&e.u&&jf("Patches").R(r,n,e.u,e.s)}return r.o}function Vf(e,t,n,r,o,i){if(Ef(o)){var a=Hf(e,o,i&&t&&3!==t.i&&!Sf(t.D,r)?i.concat(r):void 0);if(Af(n,r,a),!Ef(a))return;e.m=!1}if(xf(o)&&!Pf(o)){if(!e.h.F&&e._<1)return;Hf(e,o),t&&t.A.l||Uf(e,o)}}function Uf(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Tf(t,n)}function Wf(e,t){var n=e[id];return(n?Bf(n):e)[t]}function Gf(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function qf(e){e.P||(e.P=!0,e.l&&qf(e.l))}function Kf(e){e.o||(e.o=Ff(e.t))}function Xf(e,t,n){var r=Of(t)?jf("MapSet").N(t,n):kf(t)?jf("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:If(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=cd;n&&(o=[r],i=fd);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):jf("ES5").J(t,n);return(n?n.A:If()).p.push(r),r}function Yf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ff(e)}var Zf,Jf,Qf="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ed="undefined"!=typeof Map,td="undefined"!=typeof Set,nd="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,rd=Qf?Symbol.for("immer-nothing"):((Zf={})["immer-nothing"]=!0,Zf),od=Qf?Symbol.for("immer-draftable"):"__$immer_draftable",id=Qf?Symbol.for("immer-state"):"__$immer_state",ad=""+Object.prototype.constructor,ud="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,sd=Object.getOwnPropertyDescriptors||function(e){var t={};return ud(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ld={},cd={get:function(e,t){if(t===id)return e;var n=Bf(e);if(!Sf(n,t))return function(e,t,n){var r,o=Gf(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!xf(r)?r:r===Wf(e.t,t)?(Kf(e),e.o[t]=Xf(e.A.h,r,e)):r},has:function(e,t){return t in Bf(e)},ownKeys:function(e){return Reflect.ownKeys(Bf(e))},set:function(e,t,n){var r,o,i=Gf(Bf(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Wf(Bf(e),t),u=null==a?void 0:a[id];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(((r=n)===(o=a)?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==n||Sf(e.t,t)))return!0;Kf(e),qf(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Wf(e.t,t)||t in e.t?(e.D[t]=!1,Kf(e),qf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Bf(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){wf(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){wf(12)}},fd={};Df(cd,(function(e,t){fd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fd.deleteProperty=function(e,t){return cd.deleteProperty.call(this,e[0],t)},fd.set=function(e,t,n){return cd.set.call(this,e[0],t,n,e[0])};var dd=function(){function e(e){var t=this;this.g=nd,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&wf(6),void 0!==r&&"function"!=typeof r&&wf(7),xf(e)){var u=Mf(t),s=Xf(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?Lf(u):Rf(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Nf(u,r),$f(e,u)}),(function(e){throw Lf(u),e})):(Nf(u,r),$f(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===rd)return;return void 0===a&&(a=e),t.F&&Tf(a,!0),a}wf(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){xf(e)||wf(8),Ef(e)&&(e=function(e){return Ef(e)||wf(22,e),function e(t){if(!xf(t))return t;var n,r=t[id],o=Cf(t);if(r){if(!r.P&&(r.i<4||!jf("ES5").K(r)))return r.t;r.I=!0,n=Yf(t,o),r.I=!1}else n=Yf(t,o);return Df(n,(function(t,o){var i,a;r&&(a=t,(2===Cf(i=r.t)?i.get(a):i[a])===o)||Af(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Mf(this),n=Xf(this,e,void 0);return n[id].C=!0,Rf(t),n},t.finishDraft=function(e,t){var n=(e&&e[id]).A;return Nf(n,t),$f(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!nd&&wf(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=jf("Patches").$;return Ef(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),pd=new dd,hd=pd.produce;pd.produceWithPatches.bind(pd),pd.setAutoFreeze.bind(pd),pd.setUseProxies.bind(pd),pd.applyPatches.bind(pd);var gd=pd.createDraft.bind(pd),vd=pd.finishDraft.bind(pd);function yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var md=new WeakMap,bd=new WeakMap,wd=new WeakMap,Ed=new WeakMap,xd=new WeakMap,Dd=new WeakMap;function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ad=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return yp.levels(t);case"insert_node":var{node:n,path:r}=e;return[...yp.levels(r),..._p.isText(n)?[]:Array.from(pp.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...yp.ancestors(o),yp.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(yp.equals(i,a))return[];var u=[],s=[];for(var l of yp.ancestors(i)){var c=yp.transform(l,e);u.push(c)}for(var f of yp.ancestors(a)){var d=yp.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...yp.ancestors(v)];case"split_node":var{path:y}=e;return[...yp.levels(y),yp.next(y)];default:return[]}};function Od(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var kd,Bd=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Id(e):e,o=kd.None,i=kd.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=qd(s,l);if([o,i]=n?[i,c]:[c,o],Kd(o,kd.ZWJ)&&Kd(i,kd.ExtPict)&&!Jd(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Kd(o,kd.RI)&&Kd(i,kd.RI)&&!(u=null!==u?!u:!!n||ep(e.substring(0,e.length-a))))break;if(o!==kd.None&&i!==kd.None&&Yd(o,i))break;a+=s.length}return a||1},Fd=/\s/,Td=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,_d=/['\u2018\u2019]/,Pd=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},jd=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Fd.test(t))return!1;if(_d.test(t)){var o=Bd(n,r),[i,a]=Pd(n,o,r);if(e(i,a,r))return!0}return!Td.test(t)},Id=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Ld(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Nd(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Nd=e=>e>=55296&&e<=56319,Ld=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(kd||(kd={}));var Rd=/^(?:[\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\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Md=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,zd=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,$d=/^[\u1100-\u115F\uA960-\uA97C]$/,Hd=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Vd=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Ud=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Wd=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Gd=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,qd=(e,t)=>{var n=kd.Any;return-1!==e.search(Rd)&&(n|=kd.Extend),8205===t&&(n|=kd.ZWJ),t>=127462&&t<=127487&&(n|=kd.RI),-1!==e.search(Md)&&(n|=kd.Prepend),-1!==e.search(zd)&&(n|=kd.SpacingMark),-1!==e.search($d)&&(n|=kd.L),-1!==e.search(Hd)&&(n|=kd.V),-1!==e.search(Vd)&&(n|=kd.T),-1!==e.search(Ud)&&(n|=kd.LV),-1!==e.search(Wd)&&(n|=kd.LVT),-1!==e.search(Gd)&&(n|=kd.ExtPict),n};function Kd(e,t){return 0!=(e&t)}var Xd=[[kd.L,kd.L|kd.V|kd.LV|kd.LVT],[kd.LV|kd.V,kd.V|kd.T],[kd.LVT|kd.T,kd.T],[kd.Any,kd.Extend|kd.ZWJ],[kd.Any,kd.SpacingMark],[kd.Prepend,kd.Any],[kd.ZWJ,kd.ExtPict],[kd.RI,kd.RI]];function Yd(e,t){return-1===Xd.findIndex((n=>Kd(e,n[0])&&Kd(t,n[1])))}var Zd=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\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\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Jd=e=>-1!==e.search(Zd),Qd=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ep=e=>{var t=e.match(Qd);return null!==t&&t[0].length/2%2==1},tp=e=>bf(e)&&pp.isNodeList(e.children)&&!sp.isEditor(e),np={isAncestor:e=>bf(e)&&pp.isNodeList(e.children),isElement:tp,isElementList:e=>Array.isArray(e)&&e.every((e=>np.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return tp(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},rp=["text"],op=["text"];function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var up=new WeakMap,sp={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=sp.path(e,o),u="lowest"===r;for(var[s,l]of sp.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!_p.isText(s)&&!yp.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:sp.point(e,t,{edge:"end"}),focus:sp.end(e,[])},{distance:i=1}=r,a=0;for(var u of sp.positions(e,ap(ap({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:sp.start(e,[]),focus:sp.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of sp.positions(e,ap(ap({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[sp.start(e,t),sp.end(e,t)],end:(e,t)=>sp.point(e,t,{edge:"end"}),first(e,t){var n=sp.path(e,t,{edge:"start"});return sp.node(e,n)},fragment(e,t){var n=sp.range(e,t);return pp.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>sp.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>_p.isText(t)||sp.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>_p.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>np.isElement(t)&&!e.isInline(t),isEditor(e){if(!bf(e))return!1;var t=up.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||bf(e.marks))&&(null===e.selection||Sp.isRange(e.selection))&&pp.isNodeList(e.children)&&vp.isOperationList(e.operations);return up.set(e,n),n},isEnd(e,t,n){var r=sp.end(e,n);return Ep.equals(t,r)},isEdge:(e,t,n)=>sp.isStart(e,t,n)||sp.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&_p.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>np.isElement(t)&&e.isInline(t),isNormalizing(e){var t=wd.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=sp.start(e,n);return Ep.equals(t,r)},isVoid:(e,t)=>np.isElement(t)&&e.isVoid(t),last(e,t){var n=sp.path(e,t,{edge:"end"});return sp.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=sp.path(e,t,n);return[pp.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=sp.path(e,n);for(var[s,l]of pp.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&sp.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Sp.isExpanded(n)){var[r]=sp.nodes(e,{match:_p.isText});if(r){var[o]=r;return Od(o,rp)}return{}}var{anchor:i}=n,{path:a}=i,[u]=sp.leaf(e,a);if(0===i.offset){var s=sp.previous(e,{at:a,match:_p.isText}),l=sp.above(e,{match:t=>sp.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;yp.isAncestor(d,f)&&(u=c)}}return Od(u,op)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=sp.after(e,i,{voids:r});if(a){var[,u]=sp.last(e,[]),s=[a.path,u];if(yp.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(yp.isPath(i)){var[l]=sp.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=sp.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=sp.path(e,t,n);return[pp.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(lp.isSpan(n))s=n[0],l=n[1];else{var c=sp.path(e,n,{edge:"start"}),f=sp.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=pp.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&sp.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===yp.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&_p.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>md.get(e)||[];if(sp.isNormalizing(e)){if(n){var o=Array.from(pp.nodes(e),(e=>{var[,t]=e;return t}));md.set(e,o)}0!==r(e).length&&sp.withoutNormalizing(e,(()=>{for(var t of r(e))if(pp.has(e,t)){var n=sp.node(e,t),[o,i]=n;np.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(pp.has(e,s)){var l=sp.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=sp.path(e,t,n),o=yp.parent(r);return sp.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(yp.isPath(t))if("start"===o){var[,i]=pp.first(e,t);t=i}else if("end"===o){var[,a]=pp.last(e,t);t=a}return Sp.isRange(t)&&(t="start"===o?Sp.start(t):"end"===o?Sp.end(t):yp.common(t.anchor.path,t.focus.path)),Ep.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>pp.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return sp.pathRefs(e).delete(o),o.current=null,t}};return sp.pathRefs(e).add(o),o},pathRefs(e){var t=Ed.get(e);return t||(t=new Set,Ed.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(yp.isPath(t)){var o;if("end"===r){var[,i]=pp.last(e,t);o=i}else{var[,a]=pp.first(e,t);o=a}var u=pp.get(e,o);if(!_p.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Sp.isRange(t)){var[s,l]=Sp.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return sp.pointRefs(e).delete(o),o.current=null,t}};return sp.pointRefs(e).add(o),o},pointRefs(e){var t=xd.get(e);return t||(t=new Set,xd.set(e,t)),t},*positions(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:i=e.selection,unit:a="offset",reverse:u=!1,voids:s=!1}=o;if(i){var l=sp.range(e,i),[c,f]=Sp.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of sp.nodes(e,{at:i,reverse:u,voids:s})){if(np.isElement(m)){if(!s&&e.isVoid(m)){yield sp.start(e,b);continue}if(e.isInline(m))continue;if(sp.hasInlines(e,m)){var w=yp.isAncestor(b,f.path)?f:sp.end(e,b),E=yp.isAncestor(b,c.path)?c:sp.start(e,b);h=sp.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(_p.isText(m)){var x=yp.equals(b,d.path);for(x?(v=u?d.offset:m.text.length-d.offset,y=d.offset):(v=m.text.length,y=u?v:0),(x||p||"offset"===a)&&(yield{path:b,offset:y},p=!1);;){if(0===g){if(""===h)break;t=h,r=u,g="character"===(n=a)?Bd(t,r):"word"===n?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Bd(e,t),[i,a]=Pd(e,o,t);if(jd(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(t,r):"line"===n||"block"===n?t.length:1,h=Pd(h,g,u)[1]}if(y=u?y-g:y+g,(v-=g)<0){g=-v;break}g=0,yield{path:b,offset:y}}}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=sp.before(e,i,{voids:r});if(a){var[,u]=sp.first(e,[]),s=[a.path,u];if(yp.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(yp.isPath(i)){var[l]=sp.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=sp.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Sp.isRange(t)&&!n?t:{anchor:sp.start(e,t),focus:sp.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return sp.rangeRefs(e).delete(o),o.current=null,t}};return sp.rangeRefs(e).add(o),o},rangeRefs(e){var t=Dd.get(e);return t||(t=new Set,Dd.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){wd.set(e,t)},start:(e,t)=>sp.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=sp.range(e,t),[i,a]=Sp.edges(o),u="";for(var[s,l]of sp.nodes(e,{at:o,match:_p.isText,voids:r})){var c=s.text;yp.equals(l,a.path)&&(c=c.slice(0,a.offset)),yp.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Sp.edges(t);if(0!==o.offset||0!==i.offset||Sp.isCollapsed(t))return t;var a=sp.above(e,{at:i,match:t=>sp.isBlock(e,t)}),u=a?a[1]:[],s={anchor:sp.start(e,[]),focus:i},l=!0;for(var[c,f]of sp.nodes(e,{at:s,match:_p.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||yp.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sp.above(e,ap(ap({},t),{},{match:t=>sp.isVoid(e,t)}))},withoutNormalizing(e,t){var n=sp.isNormalizing(e);sp.setNormalizing(e,!1);try{t()}finally{sp.setNormalizing(e,n)}sp.normalize(e)}},lp={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(yp.isPath)},cp=["children"],fp=["text"],dp=new WeakMap,pp={ancestor(e,t){var n=pp.get(e,t);if(_p.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of yp.ancestors(t,n)){var o=[pp.ancestor(e,r),r];yield o}},child(e,t){if(_p.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=pp.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=pp.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=yp.common(t,n);return[pp.get(e,r),r]},descendant(e,t){var n=pp.get(e,t);if(sp.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pp.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pp.nodes(e,t))np.isElement(n)&&(yield[n,r])},extractProps:e=>np.isAncestor(e)?Od(e,cp):Od(e,fp),first(e,t){for(var n=t.slice(),r=pp.get(e,n);r&&!_p.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(_p.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=hd({children:e.children},(e=>{var[n,r]=Sp.edges(t),o=pp.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Sp.includes(t,n)}});for(var[,i]of o){if(!Sp.includes(t,i)){var a=pp.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(yp.equals(i,r.path)){var s=pp.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(yp.equals(i,n.path)){var l=pp.leaf(e,i);l.text=l.text.slice(n.offset)}}sp.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(_p.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(_p.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>_p.isText(e)||np.isElement(e)||sp.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=dp.get(e);if(void 0!==t)return t;var n=e.every((e=>pp.isNode(e)));return dp.set(e,n),n},last(e,t){for(var n=t.slice(),r=pp.get(e,n);r&&!_p.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=pp.get(e,t);if(!_p.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of yp.levels(t,n)){var o=pp.get(e,r);yield[o,r]}},matches:(e,t)=>np.isElement(e)&&np.isElementProps(t)&&np.matches(e,t)||_p.isText(e)&&_p.isTextProps(t)&&_p.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?yp.isBefore(u,i):yp.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||_p.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=yp.next(u);if(pp.has(e,l)){u=l,s=pp.get(e,u);continue}}r&&0!==u[u.length-1]?(u=yp.previous(u),s=pp.get(e,u)):(u=yp.parent(u),s=pp.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;yp.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=pp.get(e,u)}},parent(e,t){var n=yp.parent(t),r=pp.get(e,n);if(_p.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>_p.isText(e)?e.text:e.children.map(pp.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pp.nodes(e,t))_p.isText(n)&&(yield[n,r])}};function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vp={isNodeOperation:e=>vp.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!bf(e))return!1;switch(e.type){case"insert_node":case"remove_node":return yp.isPath(e.path)&&pp.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&yp.isPath(e.path);case"merge_node":return"number"==typeof e.position&&yp.isPath(e.path)&&bf(e.properties);case"move_node":return yp.isPath(e.path)&&yp.isPath(e.newPath);case"set_node":return yp.isPath(e.path)&&bf(e.properties)&&bf(e.newProperties);case"set_selection":return null===e.properties&&Sp.isRange(e.newProperties)||null===e.newProperties&&Sp.isRange(e.properties)||bf(e.properties)&&bf(e.newProperties);case"split_node":return yp.isPath(e.path)&&"number"==typeof e.position&&bf(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>vp.isOperation(e))),isSelectionOperation:e=>vp.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>vp.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return gp(gp({},e),{},{type:"remove_node"});case"insert_text":return gp(gp({},e),{},{type:"remove_text"});case"merge_node":return gp(gp({},e),{},{type:"split_node",path:yp.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(yp.equals(t,n))return e;if(yp.isSibling(n,t))return gp(gp({},e),{},{path:t,newPath:n});var r=yp.transform(n,e),o=yp.transform(yp.next(n),e);return gp(gp({},e),{},{path:r,newPath:o});case"remove_node":return gp(gp({},e),{},{type:"insert_node"});case"remove_text":return gp(gp({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return gp(gp({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return gp(gp({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return gp(gp({},e),{},{type:"merge_node",path:yp.next(e.path)})}}},yp={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=yp.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return yp.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return yp.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return yp.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===yp.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===yp.compare(e,t),isBefore:(e,t)=>-1===yp.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===yp.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===yp.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===yp.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===yp.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&yp.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!yp.isAncestor(t,e)&&!yp.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return hd(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(yp.equals(i,r)||yp.endsBefore(i,r)||yp.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(yp.equals(a,r)||yp.isAncestor(a,r))return null;yp.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;yp.equals(u,r)||yp.endsBefore(u,r)?r[u.length-1]-=1:yp.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(yp.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else yp.endsBefore(l,r)?r[l.length-1]+=1:yp.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(yp.equals(f,d))return;if(yp.isAncestor(f,r)||yp.equals(f,r)){var p=d.slice();return yp.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}yp.isSibling(f,d)&&(yp.isAncestor(d,r)||yp.equals(d,r))?yp.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:yp.endsBefore(d,r)||yp.equals(d,r)||yp.isAncestor(d,r)?(yp.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):yp.endsBefore(f,r)&&(yp.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},mp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=yp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ep={compare(e,t){var n=yp.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Ep.compare(e,t),isBefore:(e,t)=>-1===Ep.compare(e,t),equals:(e,t)=>e.offset===t.offset&&yp.equals(e.path,t.path),isPoint:e=>bf(e)&&"number"==typeof e.offset&&yp.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return hd(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=yp.transform(o,t,n);break;case"insert_text":yp.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":yp.equals(t.path,o)&&(e.offset+=t.position),e.path=yp.transform(o,t,n);break;case"remove_text":yp.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(yp.equals(t.path,o)||yp.isAncestor(t.path,o))return null;e.path=yp.transform(o,t,n);break;case"split_node":if(yp.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=yp.transform(o,t,wp(wp({},n),{},{affinity:"forward"})))}else e.path=yp.transform(o,t,n)}}))}},xp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ep.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Dp=["anchor","focus"];function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Sp={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Sp.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Sp.edges(e);return t},equals:(e,t)=>Ep.equals(e.anchor,t.anchor)&&Ep.equals(e.focus,t.focus),includes(e,t){if(Sp.isRange(t)){if(Sp.includes(e,t.anchor)||Sp.includes(e,t.focus))return!0;var[n,r]=Sp.edges(e),[o,i]=Sp.edges(t);return Ep.isBefore(n,o)&&Ep.isAfter(r,i)}var[a,u]=Sp.edges(e),s=!1,l=!1;return Ep.isPoint(t)?(s=Ep.compare(t,a)>=0,l=Ep.compare(t,u)<=0):(s=yp.compare(t,a.path)>=0,l=yp.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Od(e,Dp),[r,o]=Sp.edges(e),[i,a]=Sp.edges(t),u=Ep.isBefore(r,i)?i:r,s=Ep.isBefore(o,a)?o:a;return Ep.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ep.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ep.equals(t,n)},isExpanded:e=>!Sp.isCollapsed(e),isForward:e=>!Sp.isBackward(e),isRange:e=>bf(e)&&Ep.isPoint(e.anchor)&&Ep.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Sp.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return hd(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Sp.isCollapsed(e);Sp.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Sp.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Ep.transform(e.anchor,t,{affinity:r}),s=Ep.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Ap={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Sp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Op=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(bf(r)&&bf(o)){if(!Op(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},kp=["text"],Bp=["anchor","focus"];function Fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _p={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Od(e,kp)}return Op(r?o(e):e,r?o(t):t)},isText:e=>bf(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>_p.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Tp({},e)];for(var r of t){var o=Od(r,Bp),[i,a]=Sp.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=Tp(Tp({},d),{},{text:d.text.slice(g)}),d=Tp(Tp({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Tp(Tp({},d),{},{text:d.text.slice(0,v)}),d=Tp(Tp({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ip={transform(e,t){e.children=gd(e.children);var n=e.selection&&gd(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=pp.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Sp.points(t))t[s]=Ep.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=pp.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Sp.points(t))t[v]=Ep.transform(g,n);break;case"merge_node":var{path:y}=n,m=pp.get(e,y),b=yp.previous(y),w=pp.get(e,b),E=pp.parent(e,y),x=y[y.length-1];if(_p.isText(m)&&_p.isText(w))w.text+=m.text;else{if(_p.isText(m)||_p.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(x,1),t)for(var[D,C]of Sp.points(t))t[C]=Ep.transform(D,n);break;case"move_node":var{path:S,newPath:A}=n;if(yp.isAncestor(S,A))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(A,"] because the destination is inside itself."));var O=pp.get(e,S),k=pp.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=yp.transform(S,n),T=pp.get(e,yp.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Sp.points(t))t[j]=Ep.transform(P,n);break;case"remove_node":var{path:I}=n,N=I[I.length-1];if(pp.parent(e,I).children.splice(N,1),t)for(var[L,R]of Sp.points(t)){var M=Ep.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of pp.texts(e)){if(-1!==yp.compare(V,I)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=yp.equals($[1],I)?!yp.hasPrevious($[1]):yp.common(z[1],I).length<yp.common($[1],I).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=pp.leaf(e,W),X=K.text.slice(0,G),Y=K.text.slice(G+q.length);if(K.text=X+Y,t)for(var[Z,J]of Sp.points(t))t[J]=Ep.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=pp.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Sp.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=jp({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=pp.get(e,le),he=pp.parent(e,le),ge=le[le.length-1];if(_p.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=jp(jp({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=jp(jp({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Sp.points(t))t[Ee]=Ep.transform(we,n)}return t})(e,n,t)}finally{e.children=vd(e.children),e.selection=n?Ef(n)?vd(n):n:null}}},Np=["text"],Lp=["children"];function Rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zp={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sp.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(pp.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?sp.end(e,[]):[0],s=!0),null==s&&(s=!1),Sp.isRange(a))if(r||(a=sp.unhangRange(e,a)),Sp.isCollapsed(a))a=a.anchor;else{var[,c]=Sp.edges(a),f=sp.pointRef(e,c);Yp.delete(e,{at:a}),a=f.unref()}if(Ep.isPoint(a)){null==u&&(u=_p.isText(l)?e=>_p.isText(e):e.isInline(l)?t=>_p.isText(t)||sp.isInline(e,t):t=>sp.isBlock(e,t));var[d]=sp.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=sp.pathRef(e,p),g=sp.isEnd(e,a,p);Yp.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?yp.next(v):v}var y=yp.parent(a),m=a[a.length-1];if(o||!sp.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=yp.next(a)}if(a=yp.previous(a),s){var E=sp.end(e,a);E&&Yp.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sp.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=yp.isPath(n)?Vp(e,n):t=>sp.isBlock(e,t)),n){var a=sp.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return sp.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=sp.node(e,yp.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=yp.next(d);Yp.moveNodes(e,{at:l,to:g,voids:o}),Yp.removeNodes(e,{at:d,voids:o})}else if(0===p)Yp.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=yp.next(d);Yp.moveNodes(e,{at:l,to:v,voids:o})}else{var y=yp.next(l),m=yp.next(d);Yp.splitNodes(e,{at:y,voids:o}),Yp.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sp.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(yp.isPath(r)){var[u]=sp.parent(e,r);n=e=>u.children.includes(e)}else n=t=>sp.isBlock(e,t);if(!o&&Sp.isRange(r)&&(r=sp.unhangRange(e,r)),Sp.isRange(r))if(Sp.isCollapsed(r))r=r.anchor;else{var[,s]=Sp.edges(r),l=sp.pointRef(e,s);Yp.delete(e,{at:r}),r=l.unref(),null==t.at&&Yp.select(e,r)}var[c]=sp.nodes(e,{at:r,match:n,voids:i,mode:a}),f=sp.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=yp.next(g),b=yp.common(p,g),w=yp.isSibling(p,g),E=Array.from(sp.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=sp.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&$p(e,t)}),D=x&&sp.pathRef(e,x[1]);if(_p.isText(d)&&_p.isText(h)){var C=Od(d,Np);y=h.text.length,v=C}else{if(!np.isElement(d)||!np.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));C=Od(d,Lp),y=h.children.length,v=C}w||Yp.moveNodes(e,{at:p,to:m,voids:i}),D&&Yp.removeNodes(e,{at:D.current,voids:i}),np.isElement(h)&&sp.isEmpty(e,h)||_p.isText(h)&&""===h.text&&0!==g[g.length-1]?Yp.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),D&&D.unref()}}}}))},moveNodes(e,t){sp.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=yp.isPath(r)?Vp(e,r):t=>sp.isBlock(e,t));var u=sp.pathRef(e,n),s=sp.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return sp.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&yp.isSibling(d,f)&&yp.isAfter(d,f)&&(u.current=yp.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sp.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=yp.isPath(i)?Vp(e,i):t=>sp.isBlock(e,t)),!n&&Sp.isRange(i)&&(i=sp.unhangRange(e,i));var u=sp.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return sp.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=sp.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sp.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=yp.isPath(o)?Vp(e,o):t=>sp.isBlock(e,t)),!i&&Sp.isRange(o)&&(o=sp.unhangRange(e,o)),u&&Sp.isRange(o)){if(Sp.isCollapsed(o)&&sp.leaf(e,o.anchor)[0].text.length>0)return;var l=sp.rangeRef(e,o,{affinity:"inward"}),[c,f]=Sp.edges(o),d="lowest"===a?"lowest":"highest",p=sp.isEnd(e,f,f.path);Yp.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=sp.isStart(e,c,c.path);Yp.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Yp.select(e,o)}for(var[g,v]of sp.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sp.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>sp.isBlock(e,t)),Sp.isRange(i)&&(i=Hp(e,i)),yp.isPath(i)){var s=i,l=sp.point(e,s),[c]=sp.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=sp.pointRef(e,i,{affinity:"backward"}),[d]=sp.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=sp.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(np.isElement(h)&&e.isInline(h)){var v=sp.after(e,g);if(!v){var y=yp.next(g);Yp.insertNodes(e,{text:""},{at:y,voids:r}),v=sp.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=sp.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[D,C]of sp.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(C.length<w.length||0===C.length||!r&&sp.isVoid(e,D))break;var A=f.current,O=sp.isEnd(e,A,C);if(u||!f||!sp.isEdge(e,A,C)){S=!0;var k=pp.extractProps(D);e.apply({type:"split_node",path:C,position:x,properties:k})}x=C[C.length-1]+(S||O?1:0)}if(null==t.at){var B=m.current||sp.end(e,[]);Yp.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Yp.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sp.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=yp.isPath(i)?Vp(e,i):t=>sp.isBlock(e,t)),yp.isPath(i)&&(i=sp.range(e,i));var u=Sp.isRange(i)?sp.rangeRef(e,i):null,s=sp.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return sp.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=sp.node(e,n),a=sp.range(e,n);r&&u&&(a=Sp.intersection(u.current,a)),Yp.liftNodes(e,{at:a,match:e=>np.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sp.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=yp.isPath(u)?Vp(e,u):e.isInline(t)?t=>sp.isInline(e,t)||_p.isText(t):t=>sp.isBlock(e,t)),o&&Sp.isRange(u)){var[s,l]=Sp.edges(u),c=sp.rangeRef(e,u,{affinity:"inward"});Yp.splitNodes(e,{at:l,match:a,voids:i}),Yp.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Yp.select(e,u)}var f=Array.from(sp.nodes(e,{at:u,match:e.isInline(t)?t=>sp.isBlock(e,t):e=>sp.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Sp.isRange(u)?Sp.intersection(u,sp.range(e,d)):u;if(p){var h=Array.from(sp.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=yp.equals(o,a)?yp.parent(o):yp.common(o,a),s=sp.range(e,o,a),l=sp.node(e,u),[c]=l,f=u.length+1,d=yp.next(a.slice(0,f)),p=Mp(Mp({},t),{},{children:[]});Yp.insertNodes(e,p,{at:d,voids:i}),Yp.moveNodes(e,{at:s,match:e=>np.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},$p=(e,t)=>{if(np.isElement(t)){var n=t;return!!sp.isVoid(e,t)||1===n.children.length&&$p(e,n.children[0])}return!sp.isEditor(t)},Hp=(e,t)=>{if(Sp.isCollapsed(t))return t.anchor;var[,n]=Sp.edges(t),r=sp.pointRef(e,n);return Yp.delete(e,{at:t}),r.unref()},Vp=(e,t)=>{var[n]=sp.node(e,t);return e=>e===n};function Up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gp={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Yp.select(e,r.anchor);else if("focus"===n)Yp.select(e,r.focus);else if("start"===n){var[o]=Sp.edges(r);Yp.select(e,o)}else if("end"===n){var[,i]=Sp.edges(r);Yp.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Sp.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Sp.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?sp.before(e,u,l):sp.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?sp.before(e,s,l):sp.after(e,s,l);d&&(c.focus=d)}Yp.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=sp.range(e,t),n)Yp.setSelection(e,t);else{if(!Sp.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Sp.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Sp.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Yp.setSelection(e,{["anchor"===o?"anchor":"focus"]:Wp(Wp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Ep.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Ep.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},qp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sp.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Sp.isRange(a)&&Sp.isCollapsed(a)&&(a=a.anchor),Ep.isPoint(a)){var s=sp.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?sp.before(e,a,c)||sp.start(e,[]):sp.after(e,a,c)||sp.end(e,[])},u=!0}}if(yp.isPath(a))Yp.removeNodes(e,{at:a,voids:i});else if(!Sp.isCollapsed(a)){if(!u){var[,f]=Sp.edges(a),d=sp.end(e,[]);Ep.equals(f,d)||(a=sp.unhangRange(e,a,{voids:i}))}var[p,h]=Sp.edges(a),g=sp.above(e,{match:t=>sp.isBlock(e,t),at:p,voids:i}),v=sp.above(e,{match:t=>sp.isBlock(e,t),at:h,voids:i}),y=g&&v&&!yp.equals(g[1],v[1]),m=yp.equals(p.path,h.path),b=i?null:sp.void(e,{at:p,mode:"highest"}),w=i?null:sp.void(e,{at:h,mode:"highest"});if(b){var E=sp.before(e,p);E&&g&&yp.isAncestor(g[1],E.path)&&(p=E)}if(w){var x=sp.after(e,h);x&&v&&yp.isAncestor(v[1],x.path)&&(h=x)}var D,C=[];for(var S of sp.nodes(e,{at:a,voids:i})){var[A,O]=S;D&&0===yp.compare(O,D)||(!i&&sp.isVoid(e,A)||!yp.isCommon(O,p.path)&&!yp.isCommon(O,h.path))&&(C.push(S),D=O)}var k=Array.from(C,(t=>{var[,n]=t;return sp.pathRef(e,n)})),B=sp.pointRef(e,p),F=sp.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=sp.leaf(e,T),{path:P}=T,{offset:j}=p,I=_.text.slice(j);I.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:I})}for(var N of k){var L=N.unref();Yp.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=sp.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&Yp.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&Yp.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sp.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Sp.isRange(i))if(r||(i=sp.unhangRange(e,i)),Sp.isCollapsed(i))i=i.anchor;else{var[,a]=Sp.edges(i);if(!o&&sp.void(e,{at:a}))return;var u=sp.pointRef(e,a);Yp.delete(e,{at:i}),i=u.unref()}else yp.isPath(i)&&(i=sp.start(e,i));if(o||!sp.void(e,{at:i})){var s=sp.above(e,{at:i,match:t=>sp.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;sp.isEnd(e,i,l)?i=sp.after(e,l):sp.isStart(e,i,l)&&(i=sp.before(e,l))}var c=sp.above(e,{match:t=>sp.isBlock(e,t),at:i,voids:o}),[,f]=c,d=sp.isStart(e,i,f),p=sp.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=pp.first({children:t},[]),[,m]=pp.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&yp.isAncestor(r,y)&&np.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&yp.isAncestor(r,m)&&np.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of pp.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],D=[],C=[],S=!0,A=!1;for(var[O]of b)np.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,D.push(O)):S?x.push(O):C.push(O);var[k]=sp.nodes(e,{at:i,match:t=>_p.isText(t)||sp.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=sp.isStart(e,i,B),T=sp.isEnd(e,i,B),_=sp.pathRef(e,p?yp.next(f):f),P=sp.pathRef(e,T?yp.next(B):B),j=sp.pathRef(e,f);Yp.splitNodes(e,{at:i,match:t=>A?sp.isBlock(e,t):_p.isText(t)||sp.isInline(e,t),mode:A?"lowest":"highest",voids:o});var I=sp.pathRef(e,!F||F&&T?yp.next(B):B);if(Yp.insertNodes(e,x,{at:I.current,match:t=>_p.isText(t)||sp.isInline(e,t),mode:"highest",voids:o}),h&&D.length&&Yp.delete(e,{at:j.unref(),voids:o}),Yp.insertNodes(e,D,{at:_.current,match:t=>sp.isBlock(e,t),mode:"lowest",voids:o}),Yp.insertNodes(e,C,{at:P.current,match:t=>_p.isText(t)||sp.isInline(e,t),mode:"highest",voids:o}),!n.at){var N;N=C.length>0?yp.previous(P.current):D.length>0?yp.previous(_.current):yp.previous(I.current);var L=sp.end(e,N);Yp.select(e,L)}I.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sp.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(yp.isPath(o)&&(o=sp.range(e,o)),Sp.isRange(o))if(Sp.isCollapsed(o))o=o.anchor;else{var i=Sp.end(o);if(!r&&sp.void(e,{at:i}))return;var a=sp.pointRef(e,i);Yp.delete(e,{at:o,voids:r}),o=a.unref(),Yp.setSelection(e,{anchor:o,focus:o})}if(r||!sp.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yp=Xp(Xp(Xp(Xp({},Ip),zp),Gp),qp),Zp="[object Map]",Jp="[object Set]",Qp=/^\[object .+?Constructor\]$/,eh=/^(?:0|[1-9]\d*)$/,th="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",nh="\\ud83c[\\udffb-\\udfff]",rh="[^\\ud800-\\udfff]",oh="(?:\\ud83c[\\udde6-\\uddff]){2}",ih="[\\ud800-\\udbff][\\udc00-\\udfff]",ah="(?:"+th+"|"+nh+")?",uh="[\\ufe0e\\ufe0f]?"+ah+"(?:\\u200d(?:"+[rh,oh,ih].join("|")+")[\\ufe0e\\ufe0f]?"+ah+")*",sh="(?:"+[rh+th+"?",th,oh,ih,"[\\ud800-\\udfff]"].join("|")+")",lh=RegExp(nh+"(?="+nh+")|"+sh+uh,"g"),ch=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),fh="object"==typeof Me&&Me&&Me.Object===Object&&Me,dh="object"==typeof self&&self&&self.Object===Object&&self,ph=fh||dh||Function("return this")();function hh(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function gh(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var vh,yh,mh=Function.prototype,bh=Object.prototype,wh=ph["__core-js_shared__"],Eh=function(){var e=/[^.]+$/.exec(wh&&wh.keys&&wh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),xh=mh.toString,Dh=bh.hasOwnProperty,Ch=bh.toString,Sh=RegExp("^"+xh.call(Dh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ah=ph.Symbol,Oh=Ah?Ah.iterator:void 0,kh=bh.propertyIsEnumerable,Bh=(vh=Object.keys,yh=Object,function(e){return vh(yh(e))}),Fh=zh(ph,"DataView"),Th=zh(ph,"Map"),_h=zh(ph,"Promise"),Ph=zh(ph,"Set"),jh=zh(ph,"WeakMap"),Ih=Vh(Fh),Nh=Vh(Th),Lh=Vh(_h),Rh=Vh(Ph),Mh=Vh(jh);function zh(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!qh(e)||(t=e,Eh&&Eh in t))return!1;var t,n=Gh(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?Sh:Qp;return n.test(Vh(e))}(o)?o:void 0}var $h=function(e){return Ch.call(e)};function Hh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||eh.test(e))&&e>-1&&e%1==0&&e<t}function Vh(e){if(null!=e){try{return xh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(Fh&&"[object DataView]"!=$h(new Fh(new ArrayBuffer(1)))||Th&&$h(new Th)!=Zp||_h&&"[object Promise]"!=$h(_h.resolve())||Ph&&$h(new Ph)!=Jp||jh&&"[object WeakMap]"!=$h(new jh))&&($h=function(e){var t=Ch.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Vh(n):void 0;if(r)switch(r){case Ih:return"[object DataView]";case Nh:return Zp;case Lh:return"[object Promise]";case Rh:return Jp;case Mh:return"[object WeakMap]"}return t});var Uh=Array.isArray;function Wh(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!Gh(e);var t}function Gh(e){var t=qh(e)?Ch.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function qh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Kh(e){return!!e&&"object"==typeof e}function Xh(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,Wh(t=e)?function(e,t){var n,r,o=Uh(e)||Kh(r=n=e)&&Wh(r)&&Dh.call(n,"callee")&&(!kh.call(n,"callee")||"[object Arguments]"==Ch.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=o.length,a=!!i;for(var u in e)!t&&!Dh.call(e,u)||a&&("length"==u||Hh(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||bh))return Bh(e);var t,n,r=[];for(var o in Object(e))Dh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var Yh=function(e){if(!e)return[];if(Wh(e))return"string"==typeof(t=e)||!Uh(t)&&Kh(t)&&"[object String]"==Ch.call(t)?function(e){return t=e,ch.test(t)?function(e){return e.match(lh)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(Oh&&e[Oh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Oh]());var n=$h(e);return(n==Zp?hh:n==Jp?gh:Xh)(e)};function Zh(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Jh(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Zh(t[n])&&Zh(e[n])&&Object.keys(t[n]).length>0&&Jh(e[n],t[n])}))}var Qh={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function eg(){var e="undefined"!=typeof document?document:{};return Jh(e,Qh),e}var tg={document:Qh,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ng(){var e="undefined"!=typeof window?window:{};return Jh(e,tg),e}function rg(e){return(rg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function og(e,t){return(og=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ig(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(cf){return!1}}function ag(e,t,n){return ag=ig()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&og(o,n.prototype),o},ag.apply(null,arguments)}function ug(e){var t="function"==typeof Map?new Map:void 0;return ug=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ag(e,arguments,rg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),og(r,e)},ug(e)}var sg=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(ug(Array));function lg(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,lg(e)):t.push(e)})),t}function cg(e,t){return Array.prototype.filter.call(e,t)}function fg(e,t){var n=ng(),r=eg(),o=[];if(!t&&e instanceof sg)return e;if(!e)return new sg(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof sg)return e;o=e}return new sg(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function dg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=lg(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function pg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=lg(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function hg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=lg(t.map((function(e){return e.split(" ")})));return cg(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function gg(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function vg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function yg(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function mg(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function bg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),fg(t).is(o))i.apply(t,n);else for(var r=fg(t).parents(),a=0;a<r.length;a+=1)fg(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function wg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Eg(){var e=ng();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function xg(){var e=ng();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Dg(){if(this.length>0){var e=ng(),t=eg(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Cg(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Sg(){for(var e=ng(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Ag(e,t){var n,r=ng();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Og(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function kg(e){return fg(cg(this,e))}function Bg(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Fg(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Tg(e){var t,n,r=ng(),o=eg(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=fg(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof sg){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function _g(){for(var e,t=eg(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof sg)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Pg(e){var t,n,r=eg();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof sg)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function jg(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?fg(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return fg(t)}function Ig(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?fg(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return fg(t)}function Ng(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return fg(t)}function Lg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!fg(r[o]).is(e)||t.push(r[o]);return fg(t)}function Rg(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Mg(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}fg.fn=sg.prototype;var zg="resize scroll".split(" ");function $g(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)zg.indexOf(e)<0&&(e in this[o]?this[o][e]():fg(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Hg=$g("click"),Vg=$g("focus"),Ug=/^(?:0|[1-9]\d*)$/;function Wg(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Gg=Object.prototype,qg=Gg.hasOwnProperty,Kg=Gg.toString,Xg=Gg.propertyIsEnumerable,Yg=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Zg,Jg=(Zg=function(e,t){return e&&Qg(e,t,rv)},function(e,t){if(null==e)return e;if(!nv(e))return Zg(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Qg=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function ev(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Ug.test(e))&&e>-1&&e%1==0&&e<t}var tv=Array.isArray;function nv(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!function(e){var t,n,r=(n=typeof(t=e),!t||"object"!=n&&"function"!=n?"":Kg.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function rv(e){return nv(e)?function(e,t){var n,r,o,i=tv(e)||(o=r=n=e)&&"object"==typeof o&&nv(r)&&qg.call(n,"callee")&&(!Xg.call(n,"callee")||"[object Arguments]"==Kg.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=i.length,u=!!a;for(var s in e)!t&&!qg.call(e,s)||u&&("length"==s||ev(s,a))||i.push(s);return i}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Gg))return Yg(e);var t,n,r=[];for(var o in Object(e))qg.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function ov(e){return e}var iv=function(e,t){return(tv(e)?Wg:Jg)(e,"function"==typeof t?t:ov)};let av=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var uv=/^\s+|\s+$/g,sv=/^[-+]0x[0-9a-f]+$/i,lv=/^0b[01]+$/i,cv=/^0o[0-7]+$/i,fv=parseInt,dv="object"==typeof Me&&Me&&Me.Object===Object&&Me,pv="object"==typeof self&&self&&self.Object===Object&&self,hv=dv||pv||Function("return this")(),gv=Object.prototype.toString,vv=Math.max,yv=Math.min,mv=function(){return hv.Date.now()};function bv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wv(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==gv.call(t))return NaN;var t,n;if(bv(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=bv(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(uv,"");var o=lv.test(e);return o||cv.test(e)?fv(e.slice(2),o?2:8):sv.test(e)?NaN:+e}var Ev=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return bv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=mv();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?yv(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=mv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=wv(t)||0,bv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?vv(wv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(mv())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const xv={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Dv(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Cv=Array.isArray;function Sv(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Av(e){return void 0===e}function Ov(e){return void 0!==e}const kv=Dv("",{},[],void 0,void 0);function Bv(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Fv(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Tv=["create","update","remove","destroy","pre","post"];function _v(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:xv;for(const c of Tv)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Ov(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Av(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Ov(s)&&Ov(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](kv,e);if(Cv(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Sv(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Ov(v)&&(null===(a=v.create)||void 0===a||a.call(v,kv,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Ov(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Ov(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Av(t.text)?Ov(v)&&Ov(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Bv(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Bv(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Bv(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Bv(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Fv(t,p,g)),c=u[b.key],Av(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Ov(y)?(Ov(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Ov(v)?s(g,v,0,v.length-1):Ov(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Ov(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(void 0!==e.sel||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Dv(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Bv(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Pv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&Pv(e,t[r].children,t[r].sel)}}function jv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Cv(n)?r=n:Sv(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Cv(t)?r=t:Sv(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Sv(r[i])&&(r[i]=Dv(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Pv(a,r,e),Dv(e,a,r,o,void 0)}function Iv(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Nv={create:Iv,update:Iv};function Lv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Rv={create:Lv,update:Lv},Mv=/[A-Z]/g;function zv(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Mv,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Mv,"-$&").toLowerCase(),i[r]))}const $v={create:zv,update:zv};function Hv(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Hv(e[r],t,n)}function Vv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Hv(r[n],t,e)}function Uv(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Vv(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Wv={create:Uv,update:Uv,destroy:Uv};function Gv(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const qv={create:Gv,update:Gv},Kv="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Xv=!1;function Yv(e,t,n){var r;r=function(){e[t]=n},Kv((function(){Kv(r)}))}function Zv(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Yv(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Jv={pre:function(){Xv=!1},create:Zv,update:Zv,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Xv||(e.elm.offsetLeft,Xv=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Qv(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Qv(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Dv(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function ey(e,t,...n){const r=Qv(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?jv(e,t,r[0].text):jv(e,t,r)}ey||(ey={});var ty,ny=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ry=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oy="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",iy="["+oy+"]",ay="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",uy="\\d+",sy="[a-z\\xdf-\\xf6\\xf8-\\xff]",ly="[^\\ud800-\\udfff"+oy+uy+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",cy="\\ud83c[\\udffb-\\udfff]",fy="[^\\ud800-\\udfff]",dy="(?:\\ud83c[\\udde6-\\uddff]){2}",py="[\\ud800-\\udbff][\\udc00-\\udfff]",hy="[A-Z\\xc0-\\xd6\\xd8-\\xde]",gy="(?:"+sy+"|"+ly+")",vy="(?:"+hy+"|"+ly+")",yy="(?:"+ay+"|"+cy+")?",my="[\\ufe0e\\ufe0f]?"+yy+"(?:\\u200d(?:"+[fy,dy,py].join("|")+")[\\ufe0e\\ufe0f]?"+yy+")*",by="(?:"+["[\\u2700-\\u27bf]",dy,py].join("|")+")"+my,wy="(?:"+[fy+ay+"?",ay,dy,py,"[\\ud800-\\udfff]"].join("|")+")",Ey=RegExp("['’]","g"),xy=RegExp(ay,"g"),Dy=RegExp(cy+"(?="+cy+")|"+wy+my,"g"),Cy=RegExp([hy+"?"+sy+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[iy,hy,"$"].join("|")+")",vy+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[iy,hy+gy,"$"].join("|")+")",hy+"?"+gy+"+(?:['’](?:d|ll|m|re|s|t|ve))?",hy+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",uy,by].join("|"),"g"),Sy=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Ay=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Oy="object"==typeof Me&&Me&&Me.Object===Object&&Me,ky="object"==typeof self&&self&&self.Object===Object&&self,By=Oy||ky||Function("return this")(),Fy=(ty={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==ty?void 0:ty[e]});function Ty(e){return Sy.test(e)}var _y=Object.prototype.toString,Py=By.Symbol,jy=Py?Py.prototype:void 0,Iy=jy?jy.toString:void 0;function Ny(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==_y.call(t))return Iy?Iy.call(e):"";var t,n,r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}for(var Ly,Ry=(Ly=function(e,t,n){return t=t.toLowerCase(),e+(n?My(Ny(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Ny(e),void 0===t?(r=e,Ay.test(r)?function(e){return e.match(Cy)||[]}(e):function(e){return e.match(ny)||[]}(e)):e.match(t)||[];var r}((t=e,(t=Ny(t))&&t.replace(ry,Fy).replace(xy,"")).replace(Ey,"")),Ly,"");var t}),My=("toUpperCase",function(e){var t=Ty(e=Ny(e))?function(e){return Ty(e)?e.match(Dy)||[]:(t=e,t.split(""));var t}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),zy=Ry,$y="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Hy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Vy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:$y?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Uy={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Wy=1;Wy<20;Wy++)Uy["f"+Wy]=111+Wy;function Gy(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Hy)r[Hy[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Ky(d),g=Hy[h];if(d.length>1&&!g&&!Vy[d]&&!Uy[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=qy(d)),g&&(r[g]=!p||null)}}catch(v){s=!0,l=v}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function qy(e){return e=Ky(e),Uy[e]||e.toUpperCase().charCodeAt(0)}function Ky(e){return e=e.toLowerCase(),Vy[e]||e}var Xy=Gy,Yy=function(e,t){return Gy(e,{byKey:!0},t)},Zy=/^\s+|\s+$/g,Jy=/^[-+]0x[0-9a-f]+$/i,Qy=/^0b[01]+$/i,em=/^0o[0-7]+$/i,tm=parseInt,nm="object"==typeof Me&&Me&&Me.Object===Object&&Me,rm="object"==typeof self&&self&&self.Object===Object&&self,om=nm||rm||Function("return this")(),im=Object.prototype.toString,am=Math.max,um=Math.min,sm=function(){return om.Date.now()};function lm(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function cm(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==im.call(t))return NaN;var t,n;if(lm(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=lm(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Zy,"");var o=Qy.test(e);return o||em.test(e)?tm(e.slice(2),o?2:8):Jy.test(e)?NaN:+e}var fm,dm=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=sm();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?um(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=sm(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=cm(t)||0,lm(n)&&(c=!!n.leading,i=(f="maxWait"in n)?am(cm(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(sm())},m},pm=ze((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",D="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",O="[object Uint16Array]",k="[object Uint32Array]",B=/\w*$/,F=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,_={};_[o]=_["[object Array]"]=_[m]=_[b]=_[i]=_[a]=_[w]=_[E]=_[x]=_[D]=_[C]=_[l]=_[c]=_[f]=_[p]=_[h]=_[g]=_[v]=_[S]=_[A]=_[O]=_[k]=!0,_["[object Error]"]=_[u]=_[y]=!1;var P="object"==typeof Me&&Me&&Me.Object===Object&&Me,j="object"==typeof self&&self&&self.Object===Object&&self,I=P||j||Function("return this")(),N=t&&!t.nodeType&&t,L=N&&e&&!e.nodeType&&e,R=L&&L.exports===N;function M(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function U(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,q=Function.prototype,K=Object.prototype,X=I["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=q.toString,J=K.hasOwnProperty,Q=K.toString,ee=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=R?I.Buffer:void 0,ne=I.Symbol,re=I.Uint8Array,oe=U(Object.getPrototypeOf,Object),ie=Object.create,ae=K.propertyIsEnumerable,ue=G.splice,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ce=U(Object.keys,Object),fe=je(I,"DataView"),de=je(I,"Map"),pe=je(I,"Promise"),he=je(I,"Set"),ge=je(I,"WeakMap"),ve=je(Object,"create"),ye=ze(fe),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ge),xe=ne?ne.prototype:void 0,De=xe?xe.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Se(e)}function ke(e,t,n){var r=e[t];J.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Fe(e,t,n,r,d,y,F){var T;if(r&&(T=y?r(e,d,y,F):r(e)),void 0!==T)return T;if(!Ge(e))return e;var P,j,I,N=He(e);if(N){if(j=(P=e).length,I=P.constructor(j),j&&"string"==typeof P[0]&&J.call(P,"index")&&(I.index=P.index,I.input=P.input),T=I,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var L=Ne(e),R=L==u||L==s;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!y){if(H(e))return y?e:{};if(T=function(e){return"function"!=typeof e.constructor||Re(e)?{}:Ge(t=oe(e))?ie(t):{};var t}(R?{}:e),!t)return function(e,t){return _e(e,Ie(e),t)}(e,function(e,t){return e&&_e(t,qe(t),e)}(T,e))}else{if(!_[L])return y?e:{};T=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case m:return Te(e);case i:case a:return new s(+e);case b:return o=e,u=r?Te(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case w:case E:case x:case D:case C:case S:case A:case O:case k:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(V(e),!0):V(e),M,new e.constructor)}(e,r,n);case c:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return $(t?n(W(e),!0):W(e),z,new e.constructor)}(e,r,n);case v:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,L,Fe,t)}}F||(F=new Oe);var U=F.get(e);if(U)return U;if(F.set(e,T),!N)var G=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(o,i){for(var a=-1,u=o?o.length:0;++a<u&&!1!==(s=o[a],l=a,G&&(s=e[l=s]),void ke(T,l,Fe(s,t,n,r,l,e,F))););var s,l}(G||e),T}function Te(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}function _e(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;ke(n,a,void 0===u?e[a]:u)}return n}function Pe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function je(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ge(e)||(t=e,Y&&Y in t))&&(We(e)||H(e)?ee:F).test(ze(e));var t}(o)?o:void 0}Ce.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:J.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},Se.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Be(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new Ce,map:new(de||Se),string:new Ce}},Ae.prototype.delete=function(e){return Pe(this,e).delete(e)},Ae.prototype.get=function(e){return Pe(this,e).get(e)},Ae.prototype.has=function(e){return Pe(this,e).has(e)},Ae.prototype.set=function(e,t){return Pe(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Se},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ie=se?U(se,Object):function(){return[]},Ne=function(e){return Q.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function ze(e){if(null!=e){try{return Z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(fe&&Ne(new fe(new ArrayBuffer(1)))!=b||de&&Ne(new de)!=l||pe&&Ne(pe.resolve())!=d||he&&Ne(new he)!=h||ge&&Ne(new ge)!=y)&&(Ne=function(e){var t=Q.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case ye:return b;case me:return l;case be:return d;case we:return h;case Ee:return y}return t});var He=Array.isArray;function Ve(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!We(e);var t}var Ue=le||function(){return!1};function We(e){var t=Ge(e)?Q.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n,r,i,a=He(e)||(i=r=n=e)&&"object"==typeof i&&Ve(r)&&J.call(n,"callee")&&(!ae.call(n,"callee")||Q.call(n)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(var l in e)!t&&!J.call(e,l)||s&&("length"==l||Le(l,u))||a.push(l);return a}(e):function(e){if(!Re(e))return ce(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}));function hm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gm=0;function vm(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r
  8. /**
  9. * Takes a string with placeholder variables like `%{smart_count} file selected`
  10. * and replaces it with values from options `{smart_count: 5}`
  11. *
  12. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  13. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  14. *
  15. * @param {string} phrase that needs interpolation, with placeholders
  16. * @param {object} options with values that will be used to replace placeholders
  17. * @returns {any[]} interpolated
  18. */}function ym(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=vm(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var mm=(fm=function(e){return"__private_"+gm+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,fm,{value:bm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(hm(this,fm)[fm],this):hm(this,fm)[fm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,r=e,!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`missing string: ${e}`);var n,r;const o=this.locale.strings[e];if("object"==typeof o){if(t&&void 0!==t.smart_count)return ym(o[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ym(o,t)}});function bm(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var wm=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};let{urlAlphabet:Em}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},xm=e=>crypto.getRandomValues(new Uint8Array(e)),Dm=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Cm={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Dm(e,t,xm),customRandom:Dm,urlAlphabet:Em,random:xm},Sm=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Am(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Am.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var Om=/[\/\+\.]/,km=0;var Bm=function(e){return"__private_"+km+++"_"+e}("publish");class Fm{constructor(){Object.defineProperty(this,Bm,{value:Tm}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Bm)[Bm](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Tm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Fm.VERSION="2.0.3";var _m=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Pm={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function jm(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var Im=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function Nm(e){return e<10?`0${e}`:e.toString()}var Lm=function(){const e=new Date;return`${Nm(e.getHours())}:${Nm(e.getMinutes())}:${Nm(e.getSeconds())}`},Rm={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Lm()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Lm()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Lm()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Lm()}]`,...t)}}},Mm={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},zm=Cm;let $m,Hm;function Vm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Um=0;function Wm(e){return"__private_"+Um+++"_"+e}const{nanoid:Gm}=zm,{justErrorsLogger:qm,debugLogger:Km}=Rm;class Xm extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Ym extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Zm=Wm("plugins"),Jm=Wm("storeUnsubscribe"),Qm=Wm("emitter"),eb=Wm("preProcessors"),tb=Wm("uploaders"),nb=Wm("postProcessors"),rb=Wm("checkRestrictions"),ob=Wm("checkMinNumberOfFiles"),ib=Wm("checkRequiredMetaFieldsOnFile"),ab=Wm("checkRequiredMetaFields"),ub=Wm("showOrLogErrorAndThrow"),sb=Wm("assertNewUploadAllowed"),lb=Wm("checkAndCreateFileStateObject"),cb=Wm("startIfAutoProceed"),fb=Wm("addListeners"),db=Wm("updateOnlineStatus"),pb=Wm("createUpload"),hb=Wm("getUpload"),gb=Wm("removeUpload"),vb=Wm("runUpload");$m=Symbol.for("uppy test: getPlugins"),Hm=Symbol.for("uppy test: createUpload");class yb{constructor(e){Object.defineProperty(this,vb,{value:Fb}),Object.defineProperty(this,gb,{value:Bb}),Object.defineProperty(this,hb,{value:kb}),Object.defineProperty(this,pb,{value:Ob}),Object.defineProperty(this,fb,{value:Ab}),Object.defineProperty(this,cb,{value:Sb}),Object.defineProperty(this,lb,{value:Cb}),Object.defineProperty(this,sb,{value:Db}),Object.defineProperty(this,ub,{value:xb}),Object.defineProperty(this,ab,{value:Eb}),Object.defineProperty(this,ib,{value:wb}),Object.defineProperty(this,ob,{value:bb}),Object.defineProperty(this,rb,{value:mb}),Object.defineProperty(this,Zm,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:wm()}),Object.defineProperty(this,eb,{writable:!0,value:new Set}),Object.defineProperty(this,tb,{writable:!0,value:new Set}),Object.defineProperty(this,nb,{writable:!0,value:new Set}),Object.defineProperty(this,db,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Mm;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Fm,logger:qm,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Km),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ev(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Im(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Vm(this,Jm)[Jm]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Vm(this,fb)[fb]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Vm(this,Qm)[Qm].emit(e,...n)}on(e,t){return Vm(this,Qm)[Qm].on(e,t),this}once(e,t){return Vm(this,Qm)[Qm].once(e,t),this}off(e,t){return Vm(this,Qm)[Qm].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new mm([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Vm(this,eb)[eb].add(e)}removePreProcessor(e){return Vm(this,eb)[eb].delete(e)}addPostProcessor(e){Vm(this,nb)[nb].add(e)}removePostProcessor(e){return Vm(this,nb)[nb].delete(e)}addUploader(e){Vm(this,tb)[tb].add(e)}removeUploader(e){return Vm(this,tb)[tb].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Vm(this,rb)[rb](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Vm(this,sb)[sb](e);const{files:t}=this.getState();let n=Vm(this,lb)[lb](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Vm(this,cb)[cb](),n.id}addFiles(e){Vm(this,sb)[sb]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Vm(this,lb)[lb](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Vm(this,cb)[cb](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Vm(this,pb)[pb](t,{forceAllowNewUpload:!0});return Vm(this,vb)[vb](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Vm(this,pb)[pb]([e],{forceAllowNewUpload:!0});return Vm(this,vb)[vb](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Vm(this,Zm)[Zm]?Vm(this,Zm)[Zm][n.type].push(n):Vm(this,Zm)[Zm][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Vm(this,Zm)[Zm])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[$m](e){return Vm(this,Zm)[Zm][e]}iteratePlugins(e){Object.values(Vm(this,Zm)[Zm]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Vm(this,Zm)[Zm][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Vm(this,Jm)[Jm](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Vm(this,db)[db]),window.removeEventListener("offline",Vm(this,db)[db]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Vm(this,vb)[vb](e):(Vm(this,gb)[gb](e),Promise.reject(new Error("Nonexistent upload")))}[Hm](){return Vm(this,pb)[pb](...arguments)}addResultData(e,t){if(!Vm(this,hb)[hb](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Vm(this,Zm)[Zm].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Vm(this,ob)[ob](t),Vm(this,ab)[ab](t)})).catch((e=>{Vm(this,ub)[ub](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Vm(this,pb)[pb](r);return Vm(this,vb)[vb](o)})).catch((e=>{Vm(this,ub)[ub](e,{showInformer:!1})})))}}function mb(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Xm(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Am(e,Om);return void 0!==t?r.match(t):r}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new Xm(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new Xm(this.i18n("exceedsSize",{size:Sm(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Xm(this.i18n("exceedsSize",{size:Sm(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Xm(this.i18n("inferiorSize",{size:Sm(r)}))}function bb(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Xm(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function wb(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Xm(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Vm(this,ub)[ub](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Eb(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Vm(this,ib)[ib](t)}));if(t.length)throw new Ym(t,`${this.i18n("missingRequiredMetaField")}`)}function xb(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Db(e){const{allowNewUpload:t}=this.getState();!1===t&&Vm(this,ub)[ub](new Xm(this.i18n("noMoreFilesAllowed")),{file:e})}function Cb(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=_m(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Pm?Pm[n]:"application/octet-stream"}(t),r=(u=n,(s=t).name?s.name:"image"===u.split("/")[0]?`${u.split("/")[0]}.${u.split("/")[1]}`:"noname"),o=_m(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${jm(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${jm(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new Xm(this.i18n("noDuplicates",{fileName:r}));Vm(this,ub)[ub](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const c=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);!1===d?Vm(this,ub)[ub](new Xm("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(f=d);try{const t=Object.keys(e).map((t=>e[t]));Vm(this,rb)[rb](f,t)}catch(u){Vm(this,ub)[ub](u,{file:f})}return f}function Sb(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Ab(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Vm(this,ub)[ub](e,{throwErr:!1})}else Vm(this,ub)[ub](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Vm(this,nb)[nb].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Vm(this,ib)[ib](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Vm(this,db)[db]),window.addEventListener("offline",Vm(this,db)[db]),setTimeout(Vm(this,db)[db],3e3))}function Ob(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Gm();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function kb(e){const{currentUploads:t}=this.getState();return t[e]}function Bb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Fb(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Vm(this,eb)[eb],...Vm(this,tb)[tb],...Vm(this,nb)[nb]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Vm(this,gb)[gb](e),a}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Vm(this,gb)[gb](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}yb.VERSION="2.1.3";var Tb=yb,_b=ze((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function D(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,x=r&&r.__k||f,D=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<D;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=C(g,s,e):s=S(e,g,h,x,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=D;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),P(x[d],x[d]));if(E)for(d=0;d<E.length;d++)_(E[d],E[++d],E[++d])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,o,i,a,u,s,l,f){var d,g,v,w,E,x,C,S,A,k,B,F=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(f=o.__h,l=t.__e=o.__e,t.__h=null,u=[l]),(d=r.__b)&&d(t);try{e:if("function"==typeof F){if(S=t.props,A=(d=F.contextType)&&i[d.__c],k=d?A?A.props.value:d.__:i,o.__c?C=(g=t.__c=o.__c).__=g.__E:("prototype"in F&&F.prototype.render?t.__c=g=new F(S,k):(t.__c=g=new m(S,k),g.constructor=F,g.render=j),A&&A.sub(g),g.props=S,g.state||(g.state={}),g.context=k,g.__n=i,v=g.__d=!0,g.__h=[]),null==g.__s&&(g.__s=g.state),null!=F.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=p({},g.__s)),p(g.__s,F.getDerivedStateFromProps(S,g.__s))),w=g.props,E=g.state,v)null==F.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==F.getDerivedStateFromProps&&S!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(S,k),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(S,g.__s,k)||t.__v===o.__v){g.props=S,g.state=g.__s,t.__v!==o.__v&&(g.__d=!1),g.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),g.__h.length&&s.push(g);break e}null!=g.componentWillUpdate&&g.componentWillUpdate(S,g.__s,k),null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(w,E,x)}))}g.context=k,g.props=S,g.state=g.__s,(d=r.__r)&&d(t),g.__d=!1,g.__v=t,g.__P=e,d=g.render(g.props,g.state,g.context),g.state=g.__s,null!=g.getChildContext&&(i=p(p({},i),g.getChildContext())),v||null==g.getSnapshotBeforeUpdate||(x=g.getSnapshotBeforeUpdate(w,E)),B=null!=d&&d.type===y&&null==d.key?d.props.children:d,D(e,Array.isArray(B)?B:[B],t,o,i,a,u,s,l,f),g.base=t.__e,t.__h=null,g.__h.length&&s.push(g),C&&(g.__E=g.__=null),g.__e=!1}else null==u&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=function(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,D(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}(o.__e,t,o,i,a,u,s,f);(d=r.diffed)&&d(t)}catch(T){t.__v=null,(f||null!=u)&&(t.__e=l,t.__h=!!f,u[u.indexOf(l)]=null),r.__e(T,t,o)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){r.__e(n,t.__v)}}))}function _(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(o){r.__e(o,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||_(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){r.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Pb=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new mm([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function jb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ib=0;const{render:Nb}=_b;var Lb=function(e){return"__private_"+Ib+++"_"+e}("updateUI");class Rb extends Pb{constructor(){super(...arguments),Object.defineProperty(this,Lb,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return jb(this,Lb)[Lb]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(Nb(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Nb(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Rb)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=jb(this,Lb))[Lb])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Mb=Rb;const{debugLogger:zb}=Rm;var $b=Tb,Hb=Tb,Vb=Mb,Ub=Pb,Wb=zb;$b.Uppy=Hb,$b.UIPlugin=Vb,$b.BasePlugin=Ub,$b.debugLogger=Wb;class Gb extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var qb=Gb,Kb=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new qb(e)}))};class Xb extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Yb,Zb,Jb,Qb,ew,tw=Xb;function nw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rw=0;function ow(e){return"__private_"+rw+++"_"+e}async function iw(e){if(401===e.status)throw new tw;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var aw=(Zb=ow("getPostResponseFunc"),Jb=ow("getUrl"),Qb=ow("errorHandler"),ew=Yb=class e{constructor(e,t){Object.defineProperty(this,Qb,{value:sw}),Object.defineProperty(this,Jb,{value:uw}),Object.defineProperty(this,Zb,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(nw(this,Jb)[Jb](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Kb(nw(this,Jb)[Jb](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(nw(this,Zb)[Zb](t)).then(iw).catch(nw(this,Qb)[Qb]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Kb(nw(this,Jb)[Jb](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(nw(this,Zb)[Zb](n)).then(iw).catch(nw(this,Qb)[Qb](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Kb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(nw(this,Zb)[Zb](n)).then(iw).catch(nw(this,Qb)[Qb](r,e))}},Yb.VERSION="2.0.4",Yb.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Yb.VERSION}`},ew);function uw(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function sw(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${nw(this,Jb)[Jb](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var lw,cw,fw,dw,pw,hw={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let gw,vw;function yw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mw=0;function bw(e){return"__private_"+mw+++"_"+e}var ww,Ew,xw=(lw=bw("queued"),cw=bw("emitter"),fw=bw("isOpen"),dw=bw("socket"),pw=bw("handleMessage"),gw=Symbol.for("uppy test: getSocket"),vw=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,lw,{writable:!0,value:[]}),Object.defineProperty(this,cw,{writable:!0,value:wm()}),Object.defineProperty(this,fw,{writable:!0,value:!1}),Object.defineProperty(this,dw,{writable:!0,value:void 0}),Object.defineProperty(this,pw,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){console.log(t)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return yw(this,fw)[fw]}[gw](){return yw(this,dw)[dw]}[vw](){return yw(this,lw)[lw]}open(){yw(this,dw)[dw]=new WebSocket(this.opts.target),yw(this,dw)[dw].onopen=()=>{for(yw(this,fw)[fw]=!0;yw(this,lw)[lw].length>0&&yw(this,fw)[fw];){const e=yw(this,lw)[lw].shift();this.send(e.action,e.payload)}},yw(this,dw)[dw].onclose=()=>{yw(this,fw)[fw]=!1},yw(this,dw)[dw].onmessage=yw(this,pw)[pw]}close(){var e;null==(e=yw(this,dw)[dw])||e.close()}send(e,t){yw(this,fw)[fw]?yw(this,dw)[dw].send(JSON.stringify({action:e,payload:t})):yw(this,lw)[lw].push({action:e,payload:t})}on(e,t){yw(this,cw)[cw].on(e,t)}emit(e,t){yw(this,cw)[cw].emit(e,t)}once(e,t){yw(this,cw)[cw].once(e,t)}}),Dw={RequestClient:aw,Provider:class extends aw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||hw}},SearchProvider:class extends aw{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:xw},Cw=Ev((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Sw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Aw=0;function Ow(e){return"__private_"+Aw+++"_"+e}var kw=(ww=Ow("emitter"),Ew=Ow("events"),class{constructor(e){Object.defineProperty(this,ww,{writable:!0,value:void 0}),Object.defineProperty(this,Ew,{writable:!0,value:[]}),Sw(this,ww)[ww]=e}on(e,t){return Sw(this,Ew)[Ew].push([e,t]),Sw(this,ww)[ww].on(e,t)}remove(){for(const[e,t]of Sw(this,Ew)[Ew].splice(0))Sw(this,ww)[ww].off(e,t)}});function Bw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fw=0;function Tw(e){return"__private_"+Fw+++"_"+e}var _w=Tw("aliveTimer"),Pw=Tw("isDone"),jw=Tw("onTimedOut"),Iw=Tw("timeout"),Nw=class{constructor(e,t){Object.defineProperty(this,_w,{writable:!0,value:void 0}),Object.defineProperty(this,Pw,{writable:!0,value:!1}),Object.defineProperty(this,jw,{writable:!0,value:void 0}),Object.defineProperty(this,Iw,{writable:!0,value:void 0}),Bw(this,Iw)[Iw]=e,Bw(this,jw)[jw]=t}progress(){Bw(this,Pw)[Pw]||Bw(this,Iw)[Iw]>0&&(clearTimeout(Bw(this,_w)[_w]),Bw(this,_w)[_w]=setTimeout(Bw(this,jw)[jw],Bw(this,Iw)[Iw]))}done(){Bw(this,Pw)[Pw]||(clearTimeout(Bw(this,_w)[_w]),Bw(this,_w)[_w]=null,Bw(this,Pw)[Pw]=!0)}};function Lw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Rw=0;function Mw(e){return"__private_"+Rw+++"_"+e}function zw(){return new Error("Cancelled")}var $w=Mw("activeRequests"),Hw=Mw("queuedHandlers"),Vw=Mw("call"),Uw=Mw("queueNext"),Ww=Mw("next"),Gw=Mw("queue"),qw=Mw("dequeue");function Kw(e){Lw(this,$w)[$w]+=1;let t,n=!1;try{t=e()}catch(r){throw Lw(this,$w)[$w]-=1,r}return{abort:()=>{n||(n=!0,Lw(this,$w)[$w]-=1,t(),Lw(this,Uw)[Uw]())},done:()=>{n||(n=!0,Lw(this,$w)[$w]-=1,Lw(this,Uw)[Uw]())}}}function Xw(){queueMicrotask((()=>Lw(this,Ww)[Ww]()))}function Yw(){if(Lw(this,$w)[$w]>=this.limit)return;if(0===Lw(this,Hw)[Hw].length)return;const e=Lw(this,Hw)[Hw].shift(),t=Lw(this,Vw)[Vw](e.fn);e.abort=t.abort,e.done=t.done}function Zw(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Lw(this,qw)[qw](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Lw(this,Hw)[Hw].findIndex((e=>n.priority>e.priority));return-1===r?Lw(this,Hw)[Hw].push(n):Lw(this,Hw)[Hw].splice(r,0,n),n}function Jw(e){const t=Lw(this,Hw)[Hw].indexOf(e);-1!==t&&Lw(this,Hw)[Hw].splice(t,1)}var Qw,eE,tE={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,qw,{value:Jw}),Object.defineProperty(this,Gw,{value:Zw}),Object.defineProperty(this,Ww,{value:Yw}),Object.defineProperty(this,Uw,{value:Xw}),Object.defineProperty(this,Vw,{value:Kw}),Object.defineProperty(this,$w,{writable:!0,value:0}),Object.defineProperty(this,Hw,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Lw(this,$w)[$w]<this.limit?Lw(this,Vw)[Vw](e):Lw(this,Gw)[Gw](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(u){n=Promise.reject(u)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=zw()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},nE=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},rE={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:oE}=zm,{Provider:iE,RequestClient:aE,Socket:uE}=Dw,{RateLimitedQueue:sE,internalRateLimitedQueue:lE}=tE;function cE(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),nE(e)?(n=new qb(n,e),n):(n.request=e,n)}function fE(e){return e.data.slice(0,e.data.size,e.meta.type)}var dE=(eE=Qw=class extends Pb{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=rE;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return nE(t)&&(n=new qb(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),lE in this.opts?this.requests=this.opts[lE]:this.requests=new sE(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=fE(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=fE(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new kw(this.uppy);const a=new Nw(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=oE();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=cE(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=cE(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?iE:aE)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new uE({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new kw(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>Cw(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Nw(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[lE]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Qw.VERSION="2.0.6",eE),pE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function hE(e){var t={exports:{}};return e(t,t.exports),t.exports}var gE,vE,yE=function(e){return e&&e.Math==Math&&e},mE=yE("object"==typeof globalThis&&globalThis)||yE("object"==typeof window&&window)||yE("object"==typeof self&&self)||yE("object"==typeof pE&&pE)||function(){return this}()||Function("return this")(),bE=Object.defineProperty,wE=function(e,t){try{bE(mE,e,{value:t,configurable:!0,writable:!0})}catch(Yj){mE[e]=t}return t},EE=mE["__core-js_shared__"]||wE("__core-js_shared__",{}),xE=hE((function(e){(e.exports=function(e,t){return EE[e]||(EE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),DE=Function.prototype,CE=DE.bind,SE=DE.call,AE=CE&&CE.bind(SE),OE=CE?function(e){return e&&AE(SE,e)}:function(e){return e&&function(){return SE.apply(e,arguments)}},kE=mE.TypeError,BE=function(e){if(null==e)throw kE("Can't call method on "+e);return e},FE=mE.Object,TE=function(e){return FE(BE(e))},_E=OE({}.hasOwnProperty),PE=Object.hasOwn||function(e,t){return _E(TE(e),t)},jE=0,IE=Math.random(),NE=OE(1..toString),LE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+NE(++jE+IE,36)},RE=function(e){return"function"==typeof e},ME=function(e){return RE(e)?e:void 0},zE=function(e,t){return arguments.length<2?ME(mE[e]):mE[e]&&mE[e][t]},$E=zE("navigator","userAgent")||"",HE=mE.process,VE=mE.Deno,UE=HE&&HE.versions||VE&&VE.version,WE=UE&&UE.v8;WE&&(vE=(gE=WE.split("."))[0]>0&&gE[0]<4?1:+(gE[0]+gE[1])),!vE&&$E&&(!(gE=$E.match(/Edge\/(\d+)/))||gE[1]>=74)&&(gE=$E.match(/Chrome\/(\d+)/))&&(vE=+gE[1]);var GE=vE,qE=function(e){try{return!!e()}catch(t){return!0}},KE=!!Object.getOwnPropertySymbols&&!qE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&GE&&GE<41})),XE=KE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,YE=xE("wks"),ZE=mE.Symbol,JE=ZE&&ZE.for,QE=XE?ZE:ZE&&ZE.withoutSetter||LE,ex=function(e){if(!PE(YE,e)||!KE&&"string"!=typeof YE[e]){var t="Symbol."+e;KE&&PE(ZE,e)?YE[e]=ZE[e]:YE[e]=XE&&JE?JE(t):QE(t)}return YE[e]},tx={};tx[ex("toStringTag")]="z";var nx="[object z]"===String(tx),rx=!qE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ox=function(e){return"object"==typeof e?null!==e:RE(e)},ix=mE.document,ax=ox(ix)&&ox(ix.createElement),ux=function(e){return ax?ix.createElement(e):{}},sx=!rx&&!qE((function(){return 7!=Object.defineProperty(ux("div"),"a",{get:function(){return 7}}).a})),lx=mE.String,cx=mE.TypeError,fx=function(e){if(ox(e))return e;throw cx(lx(e)+" is not an object")},dx=Function.prototype.call,px=dx.bind?dx.bind(dx):function(){return dx.apply(dx,arguments)},hx=OE({}.isPrototypeOf),gx=mE.Object,vx=XE?function(e){return"symbol"==typeof e}:function(e){var t=zE("Symbol");return RE(t)&&hx(t.prototype,gx(e))},yx=mE.String,mx=function(e){try{return yx(e)}catch(t){return"Object"}},bx=mE.TypeError,wx=function(e){if(RE(e))return e;throw bx(mx(e)+" is not a function")},Ex=function(e,t){var n=e[t];return null==n?void 0:wx(n)},xx=mE.TypeError,Dx=mE.TypeError,Cx=ex("toPrimitive"),Sx=function(e){var t=function(e,t){if(!ox(e)||vx(e))return e;var n,r=Ex(e,Cx);if(r){if(void 0===t&&(t="default"),n=px(r,e,t),!ox(n)||vx(n))return n;throw Dx("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&RE(n=e.toString)&&!ox(r=px(n,e)))return r;if(RE(n=e.valueOf)&&!ox(r=px(n,e)))return r;if("string"!==t&&RE(n=e.toString)&&!ox(r=px(n,e)))return r;throw xx("Can't convert object to primitive value")}(e,t)}(e,"string");return vx(t)?t:t+""},Ax=mE.TypeError,Ox=Object.defineProperty,kx={f:rx?Ox:function(e,t,n){if(fx(e),t=Sx(t),fx(n),sx)try{return Ox(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Ax("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Bx=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Fx=rx?function(e,t,n){return kx.f(e,t,Bx(1,n))}:function(e,t,n){return e[t]=n,e},Tx=OE(Function.toString);RE(EE.inspectSource)||(EE.inspectSource=function(e){return Tx(e)});var _x,Px,jx,Ix=EE.inspectSource,Nx=mE.WeakMap,Lx=RE(Nx)&&/native code/.test(Ix(Nx)),Rx=xE("keys"),Mx=function(e){return Rx[e]||(Rx[e]=LE(e))},zx={},$x=mE.TypeError,Hx=mE.WeakMap;if(Lx||EE.state){var Vx=EE.state||(EE.state=new Hx),Ux=OE(Vx.get),Wx=OE(Vx.has),Gx=OE(Vx.set);_x=function(e,t){if(Wx(Vx,e))throw new $x("Object already initialized");return t.facade=e,Gx(Vx,e,t),t},Px=function(e){return Ux(Vx,e)||{}},jx=function(e){return Wx(Vx,e)}}else{var qx=Mx("state");zx[qx]=!0,_x=function(e,t){if(PE(e,qx))throw new $x("Object already initialized");return t.facade=e,Fx(e,qx,t),t},Px=function(e){return PE(e,qx)?e[qx]:{}},jx=function(e){return PE(e,qx)}}var Kx={set:_x,get:Px,has:jx,enforce:function(e){return jx(e)?Px(e):_x(e,{})},getterFor:function(e){return function(t){var n;if(!ox(t)||(n=Px(t)).type!==e)throw $x("Incompatible receiver, "+e+" required");return n}}},Xx=Function.prototype,Yx=rx&&Object.getOwnPropertyDescriptor,Zx=PE(Xx,"name"),Jx={EXISTS:Zx,PROPER:Zx&&"something"===function(){}.name,CONFIGURABLE:Zx&&(!rx||rx&&Yx(Xx,"name").configurable)},Qx=hE((function(e){var t=Jx.CONFIGURABLE,n=Kx.get,r=Kx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;RE(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!PE(i,"name")||t&&i.name!==f)&&Fx(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==mE?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Fx(e,n,i)):l?e[n]=i:wE(n,i)})(Function.prototype,"toString",(function(){return RE(this)&&n(this).source||Ix(this)}))})),eD=OE({}.toString),tD=OE("".slice),nD=function(e){return tD(eD(e),8,-1)},rD=ex("toStringTag"),oD=mE.Object,iD="Arguments"==nD(function(){return arguments}()),aD=nx?nD:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=oD(e),rD))?n:iD?nD(t):"Object"==(r=nD(t))&&RE(t.callee)?"Arguments":r},uD=nx?{}.toString:function(){return"[object "+aD(this)+"]"};nx||Qx(Object.prototype,"toString",uD,{unsafe:!0});var sD={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lD=ux("span").classList,cD=lD&&lD.constructor&&lD.constructor.prototype,fD=cD===Object.prototype?void 0:cD,dD=OE(OE.bind),pD=function(e,t){return wx(e),void 0===t?e:dD?dD(e,t):function(){return e.apply(t,arguments)}},hD=mE.Object,gD=OE("".split),vD=qE((function(){return!hD("z").propertyIsEnumerable(0)}))?function(e){return"String"==nD(e)?gD(e,""):hD(e)}:hD,yD=Math.ceil,mD=Math.floor,bD=function(e){var t=+e;return t!=t||0===t?0:(t>0?mD:yD)(t)},wD=Math.min,ED=function(e){return e>0?wD(bD(e),9007199254740991):0},xD=function(e){return ED(e.length)},DD=Array.isArray||function(e){return"Array"==nD(e)},CD=function(){},SD=[],AD=zE("Reflect","construct"),OD=/^\s*(?:class|function)\b/,kD=OE(OD.exec),BD=!OD.exec(CD),FD=function(e){if(!RE(e))return!1;try{return AD(CD,SD,e),!0}catch(t){return!1}},TD=!AD||qE((function(){var e;return FD(FD.call)||!FD(Object)||!FD((function(){e=!0}))||e}))?function(e){if(!RE(e))return!1;switch(aD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return BD||!!kD(OD,Ix(e))}:FD,_D=ex("species"),PD=mE.Array,jD=function(e,t){return new(DD(n=e)&&(r=n.constructor,(TD(r)&&(r===PD||DD(r.prototype))||ox(r)&&null===(r=r[_D]))&&(r=void 0)),void 0===r?PD:r)(0===t?0:t);var n,r},ID=OE([].push),ND=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=TE(s),g=vD(h),v=pD(l,c),y=xD(g),m=0,b=f||jD,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:ID(w,d)}else switch(e){case 4:return!1;case 7:ID(w,d)}return i?-1:r||o?o:w}},LD={forEach:ND(0),map:ND(1),filter:ND(2),some:ND(3),every:ND(4),find:ND(5),findIndex:ND(6),filterReject:ND(7)},RD=function(e,t){var n=[][e];return!!n&&qE((function(){n.call(null,t||function(){throw 1},1)}))},MD=LD.forEach,zD=RD("forEach")?[].forEach:function(e){return MD(this,e,arguments.length>1?arguments[1]:void 0)},$D=function(e){if(e&&e.forEach!==zD)try{Fx(e,"forEach",zD)}catch(t){e.forEach=zD}};for(var HD in sD)sD[HD]&&$D(mE[HD]&&mE[HD].prototype);$D(fD);var VD={}.propertyIsEnumerable,UD=Object.getOwnPropertyDescriptor,WD=UD&&!VD.call({1:2},1)?function(e){var t=UD(this,e);return!!t&&t.enumerable}:VD,GD={f:WD},qD=function(e){return vD(BE(e))},KD=Object.getOwnPropertyDescriptor,XD={f:rx?KD:function(e,t){if(e=qD(e),t=Sx(t),sx)try{return KD(e,t)}catch(n){}if(PE(e,t))return Bx(!px(GD.f,e,t),e[t])}},YD=Math.max,ZD=Math.min,JD=function(e,t){var n=bD(e);return n<0?YD(n+t,0):ZD(n,t)},QD=function(e){return function(t,n,r){var o,i=qD(t),a=xD(i),u=JD(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},eC={includes:QD(!0),indexOf:QD(!1)},tC=eC.indexOf,nC=OE([].push),rC=function(e,t){var n,r=qD(e),o=0,i=[];for(n in r)!PE(zx,n)&&PE(r,n)&&nC(i,n);for(;t.length>o;)PE(r,n=t[o++])&&(~tC(i,n)||nC(i,n));return i},oC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iC=oC.concat("length","prototype"),aC={f:Object.getOwnPropertyNames||function(e){return rC(e,iC)}},uC={f:Object.getOwnPropertySymbols},sC=OE([].concat),lC=zE("Reflect","ownKeys")||function(e){var t=aC.f(fx(e)),n=uC.f;return n?sC(t,n(e)):t},cC=function(e,t){for(var n=lC(t),r=kx.f,o=XD.f,i=0;i<n.length;i++){var a=n[i];PE(e,a)||r(e,a,o(t,a))}},fC=/#|\.prototype\./,dC=function(e,t){var n=hC[pC(e)];return n==vC||n!=gC&&(RE(t)?qE(t):!!t)},pC=dC.normalize=function(e){return String(e).replace(fC,".").toLowerCase()},hC=dC.data={},gC=dC.NATIVE="N",vC=dC.POLYFILL="P",yC=dC,mC=XD.f,bC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?mE:l?mE[u]||wE(u,{}):(mE[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mC(n,r))&&a.value:n[r],!yC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cC(i,o)}(e.sham||o&&o.sham)&&Fx(i,"sham",!0),Qx(n,r,i,e)}},wC=Object.keys||function(e){return rC(e,oC)},EC=qE((function(){wC(1)}));
  19. /*!
  20. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  21. *
  22. * Copyright (c) 2014-2017, Jon Schlinkert.
  23. * Released under the MIT License.
  24. */function xC(e){return"[object Object]"===Object.prototype.toString.call(e)}bC({target:"Object",stat:!0,forced:EC},{keys:function(e){return wC(TE(e))}});var DC={isHistory(e){return!1!==xC(t=e)&&(void 0===(n=t.constructor)||!1!==xC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||vp.isOperationList(e.redos[0]))&&(0===e.undos.length||vp.isOperationList(e.undos[0]));var t,n,r}},CC=new WeakMap,SC=new WeakMap,AC={isHistoryEditor:e=>DC.isHistory(e.history)&&sp.isEditor(e),isMerging:e=>SC.get(e),isSaving:e=>CC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=AC.isMerging(e);SC.set(e,!1),t(),SC.set(e,n)},withoutSaving(e,t){var n=AC.isSaving(e);CC.set(e,!1),t(),CC.set(e,n)}},OC=mE.String,kC=function(e){if("Symbol"===aD(e))throw TypeError("Cannot convert a Symbol value to a string");return OC(e)},BC=function(){var e=fx(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},FC=Jx.PROPER,TC=RegExp.prototype,_C=TC.toString,PC=OE(BC),jC=qE((function(){return"/a/b"!=_C.call({source:"a",flags:"b"})})),IC=FC&&"toString"!=_C.name;(jC||IC)&&Qx(RegExp.prototype,"toString",(function(){var e=fx(this),t=kC(e.source),n=e.flags;return"/"+t+"/"+kC(void 0===n&&hx(TC,e)&&!("flags"in TC)?PC(e):n)}),{unsafe:!0});var NC,LC=rx?Object.defineProperties:function(e,t){fx(e);for(var n,r=qD(t),o=wC(t),i=o.length,a=0;i>a;)kx.f(e,n=o[a++],r[n]);return e},RC=zE("document","documentElement"),MC=Mx("IE_PROTO"),zC=function(){},$C=function(e){return"<script>"+e+"<\/script>"},HC=function(e){e.write($C("")),e.close();var t=e.parentWindow.Object;return e=null,t},VC=function(){try{NC=new ActiveXObject("htmlfile")}catch(r){}var e,t;VC="undefined"!=typeof document?document.domain&&NC?HC(NC):((t=ux("iframe")).style.display="none",RC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($C("document.F=Object")),e.close(),e.F):HC(NC);for(var n=oC.length;n--;)delete VC.prototype[oC[n]];return VC()};zx[MC]=!0;var UC=Object.create||function(e,t){var n;return null!==e?(zC.prototype=fx(e),n=new zC,zC.prototype=null,n[MC]=e):n=VC(),void 0===t?n:LC(n,t)},WC=ex("unscopables"),GC=Array.prototype;null==GC[WC]&&kx.f(GC,WC,{configurable:!0,value:UC(null)});var qC=function(e){GC[WC][e]=!0},KC=eC.includes;bC({target:"Array",proto:!0},{includes:function(e){return KC(this,e,arguments.length>1?arguments[1]:void 0)}}),qC("includes");var XC=ex("match"),YC=function(e){var t;return ox(e)&&(void 0!==(t=e[XC])?!!t:"RegExp"==nD(e))},ZC=mE.TypeError,JC=function(e){if(YC(e))throw ZC("The method doesn't accept regular expressions");return e},QC=ex("match"),eS=function(e){var t=/./;try{"/./"[e](t)}catch(Yj){try{return t[QC]=!1,"/./"[e](t)}catch(n){}}return!1},tS=OE("".indexOf);bC({target:"String",proto:!0,forced:!eS("includes")},{includes:function(e){return!!~tS(kC(BE(this)),kC(JC(e)),arguments.length>1?arguments[1]:void 0)}});var nS=/"/g,rS=OE("".replace);bC({target:"String",proto:!0,forced:qE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=kC(BE(this)),r="<a",(r+=' name="'+rS(kC(t),nS,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var oS=function(e,t,n){var r,o;fx(e);try{if(!(r=Ex(e,"return"))){if("throw"===t)throw n;return n}r=px(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return fx(r),n},iS=function(e,t,n,r){try{return r?t(fx(n)[0],n[1]):t(n)}catch(o){oS(e,"throw",o)}},aS={},uS=ex("iterator"),sS=Array.prototype,lS=function(e){return void 0!==e&&(aS.Array===e||sS[uS]===e)},cS=function(e,t,n){var r=Sx(t);r in e?kx.f(e,r,Bx(0,n)):e[r]=n},fS=ex("iterator"),dS=function(e){if(null!=e)return Ex(e,fS)||Ex(e,"@@iterator")||aS[aD(e)]},pS=mE.TypeError,hS=function(e,t){var n=arguments.length<2?dS(e):t;if(wx(n))return fx(px(n,e));throw pS(mx(e)+" is not iterable")},gS=mE.Array,vS=ex("iterator"),yS=!1;try{var mS=0,bS={next:function(){return{done:!!mS++}},return:function(){yS=!0}};bS[vS]=function(){return this},Array.from(bS,(function(){throw 2}))}catch(Mme){}var wS=function(e,t){if(!t&&!yS)return!1;var n=!1;try{var r={};r[vS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},ES=!wS((function(e){Array.from(e)}));bC({target:"Array",stat:!0,forced:ES},{from:function(e){var t=TE(e),n=TD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=pD(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=dS(t),p=0;if(!d||this==gS&&lS(d))for(a=xD(t),u=n?new this(a):gS(a);a>p;p++)f=i?o(t[p],p):t[p],cS(u,p,f);else for(c=(l=hS(t,d)).next,u=n?new this:[];!(s=px(c,l)).done;p++)f=i?iS(l,o,[s.value,p],!0):s.value,cS(u,p,f);return u.length=p,u}});var xS,DS,CS,SS=OE("".charAt),AS=OE("".charCodeAt),OS=OE("".slice),kS=function(e){return function(t,n){var r,o,i=kC(BE(t)),a=bD(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=AS(i,a))<55296||r>56319||a+1===u||(o=AS(i,a+1))<56320||o>57343?e?SS(i,a):r:e?OS(i,a,a+2):o-56320+(r-55296<<10)+65536}},BS={codeAt:kS(!1),charAt:kS(!0)},FS=!qE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TS=Mx("IE_PROTO"),_S=mE.Object,PS=_S.prototype,jS=FS?_S.getPrototypeOf:function(e){var t=TE(e);if(PE(t,TS))return t[TS];var n=t.constructor;return RE(n)&&t instanceof n?n.prototype:t instanceof _S?PS:null},IS=ex("iterator"),NS=!1;[].keys&&("next"in(CS=[].keys())?(DS=jS(jS(CS)))!==Object.prototype&&(xS=DS):NS=!0);var LS=null==xS||qE((function(){var e={};return xS[IS].call(e)!==e}));LS&&(xS={}),RE(xS[IS])||Qx(xS,IS,(function(){return this}));var RS={IteratorPrototype:xS,BUGGY_SAFARI_ITERATORS:NS},MS=kx.f,zS=ex("toStringTag"),$S=function(e,t,n){e&&!PE(e=n?e:e.prototype,zS)&&MS(e,zS,{configurable:!0,value:t})},HS=RS.IteratorPrototype,VS=function(){return this},US=mE.String,WS=mE.TypeError,GS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=OE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return fx(n),function(e){if("object"==typeof e||RE(e))return e;throw WS("Can't set "+US(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),qS=Jx.PROPER,KS=Jx.CONFIGURABLE,XS=RS.IteratorPrototype,YS=RS.BUGGY_SAFARI_ITERATORS,ZS=ex("iterator"),JS=function(){return this},QS=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=UC(HS,{next:Bx(1,s)}),$S(u,l,!1),aS[l]=VS;var c,f,d,p=function(e){if(e===o&&m)return m;if(!YS&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[ZS]||v["@@iterator"]||o&&v[o],m=!YS&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=jS(b.call(new e)))!==Object.prototype&&c.next&&(jS(c)!==XS&&(GS?GS(c,XS):RE(c[ZS])||Qx(c,ZS,JS)),$S(c,h,!0)),qS&&"values"==o&&y&&"values"!==y.name&&(KS?Fx(v,"name","values"):(g=!0,m=function(){return px(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(YS||g||!(d in v))&&Qx(v,d,f[d]);else bC({target:t,proto:!0,forced:YS||g},f);return v[ZS]!==m&&Qx(v,ZS,m,{name:o}),aS[t]=m,f},eA=BS.charAt,tA=Kx.set,nA=Kx.getterFor("String Iterator");QS(String,"String",(function(e){tA(this,{type:"String Iterator",string:kC(e),index:0})}),(function(){var e,t=nA(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=eA(n,r),t.index+=e.length,{value:e,done:!1})}));var rA,oA=XD.f,iA=OE("".endsWith),aA=OE("".slice),uA=Math.min,sA=eS("endsWith"),lA=!(sA||(rA=oA(String.prototype,"endsWith"),!rA||rA.writable));bC({target:"String",proto:!0,forced:!lA&&!sA},{endsWith:function(e){var t=kC(BE(this));JC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:uA(ED(n),r),i=kC(e);return iA?iA(t,i,o):aA(t,o-i.length,o)===i}});var cA=OE([].join),fA=vD!=Object,dA=RD("join",",");bC({target:"Array",proto:!0,forced:fA||!dA},{join:function(e){return cA(qD(this),void 0===e?",":e)}});var pA=ex("species"),hA=function(e){return GE>=51||!qE((function(){var t=[];return(t.constructor={})[pA]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},gA=LD.map,vA=hA("map");bC({target:"Array",proto:!0,forced:!vA},{map:function(e){return gA(this,e,arguments.length>1?arguments[1]:void 0)}});var yA=mE.RegExp,mA=qE((function(){var e=yA("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),bA=mA||qE((function(){return!yA("a","y").sticky})),wA={BROKEN_CARET:mA||qE((function(){var e=yA("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:bA,UNSUPPORTED_Y:mA},EA=mE.RegExp,xA=qE((function(){var e=EA(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),DA=mE.RegExp,CA=qE((function(){var e=DA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SA=Kx.get,AA=xE("native-string-replace",String.prototype.replace),OA=RegExp.prototype.exec,kA=OA,BA=OE("".charAt),FA=OE("".indexOf),TA=OE("".replace),_A=OE("".slice),PA=function(){var e=/a/,t=/b*/g;return px(OA,e,"a"),px(OA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),jA=wA.BROKEN_CARET,IA=void 0!==/()??/.exec("")[1];(PA||IA||jA||xA||CA)&&(kA=function(e){var t,n,r,o,i,a,u,s=this,l=SA(s),c=kC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=px(kA,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=jA&&s.sticky,h=px(BC,s),g=s.source,v=0,y=c;if(p&&(h=TA(h,"y",""),-1===FA(h,"g")&&(h+="g"),y=_A(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==BA(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),IA&&(n=new RegExp("^"+g+"$(?!\\s)",h)),PA&&(r=s.lastIndex),o=px(OA,p?n:s,y),p?o?(o.input=_A(o.input,v),o[0]=_A(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:PA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),IA&&o&&o.length>1&&px(AA,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=UC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var NA=kA;bC({target:"RegExp",proto:!0,forced:/./.exec!==NA},{exec:NA});var LA=Function.prototype,RA=LA.apply,MA=LA.bind,zA=LA.call,$A="object"==typeof Reflect&&Reflect.apply||(MA?zA.bind(RA):function(){return zA.apply(RA,arguments)}),HA=ex("species"),VA=RegExp.prototype,UA=function(e,t,n,r){var o=ex(e),i=!qE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!qE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[HA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=OE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=OE(e),s=t.exec;return s===NA||s===VA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Qx(String.prototype,e,s[0]),Qx(VA,o,s[1])}r&&Fx(VA[o],"sham",!0)},WA=BS.charAt,GA=function(e,t,n){return t+(n?WA(e,t).length:1)},qA=Math.floor,KA=OE("".charAt),XA=OE("".replace),YA=OE("".slice),ZA=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JA=/\$([$&'`]|\d{1,2})/g,QA=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=JA;return void 0!==o&&(o=TE(o),s=ZA),XA(i,s,(function(i,s){var l;switch(KA(s,0)){case"$":return"$";case"&":return e;case"`":return YA(t,0,n);case"'":return YA(t,a);case"<":l=o[YA(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=qA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?KA(s,1):r[f-1]+KA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},eO=mE.TypeError,tO=function(e,t){var n=e.exec;if(RE(n)){var r=px(n,e,t);return null!==r&&fx(r),r}if("RegExp"===nD(e))return px(NA,e,t);throw eO("RegExp#exec called on incompatible receiver")},nO=ex("replace"),rO=Math.max,oO=Math.min,iO=OE([].concat),aO=OE([].push),uO=OE("".indexOf),sO=OE("".slice),lO="$0"==="a".replace(/./,"$0"),cO=!!/./[nO]&&""===/./[nO]("a","$0");UA("replace",(function(e,t,n){var r=cO?"$":"$0";return[function(e,n){var r=BE(this),o=null==e?void 0:Ex(e,nO);return o?px(o,e,r,n):px(t,kC(r),e,n)},function(e,o){var i=fx(this),a=kC(e);if("string"==typeof o&&-1===uO(o,r)&&-1===uO(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=RE(o);s||(o=kC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=tO(i,a);if(null===d)break;if(aO(f,d),!l)break;""===kC(d[0])&&(i.lastIndex=GA(a,ED(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=kC((d=f[v])[0]),m=rO(oO(bD(d.index),a.length),0),b=[],w=1;w<d.length;w++)aO(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=iO([y],b,m,a);void 0!==E&&aO(x,E);var D=kC($A(o,void 0,x))}else D=QA(y,a,m,b,E,o);m>=g&&(h+=sO(a,g,m)+D,g=m+y.length)}return h+sO(a,g)}]}),!!qE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!lO||cO);
  25. /*! *****************************************************************************
  26. Copyright (c) Microsoft Corporation.
  27. Permission to use, copy, modify, and/or distribute this software for any
  28. purpose with or without fee is hereby granted.
  29. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  30. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  31. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  32. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  33. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  34. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  35. PERFORMANCE OF THIS SOFTWARE.
  36. ***************************************************************************** */
  37. var fO=function(e,t){return(fO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function dO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fO(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pO=function(){return pO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pO.apply(this,arguments)};function hO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gO(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var yO=0,mO=function(){this.id=""+yO++},bO=Kx.set,wO=Kx.getterFor("Array Iterator"),EO=QS(Array,"Array",(function(e,t){bO(this,{type:"Array Iterator",target:qD(e),index:0,kind:t})}),(function(){var e=wO(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");aS.Arguments=aS.Array,qC("keys"),qC("values"),qC("entries");var xO=function(e,t,n){for(var r in t)Qx(e,r,t[r],n);return e},DO=mE.Array,CO=Math.max,SO=function(e,t,n){for(var r=xD(e),o=JD(t,r),i=JD(void 0===n?r:n,r),a=DO(CO(i-o,0)),u=0;o<i;o++,u++)cS(a,u,e[o]);return a.length=u,a},AO=aC.f,OO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kO={f:function(e){return OO&&"Window"==nD(e)?function(e){try{return AO(e)}catch(t){return SO(OO)}}(e):AO(qD(e))}},BO=qE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),FO=Object.isExtensible,TO=qE((function(){FO(1)}))||BO?function(e){return!!ox(e)&&(!BO||"ArrayBuffer"!=nD(e))&&(!FO||FO(e))}:FO,_O=!qE((function(){return Object.isExtensible(Object.preventExtensions({}))})),PO=hE((function(e){var t=kx.f,n=!1,r=LE("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=aC.f,t=OE([].splice),o={};o[r]=1,e(o).length&&(aC.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},bC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:kO.f}))},fastKey:function(e,t){if(!ox(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!PE(e,r)){if(!TO(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!PE(e,r)){if(!TO(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return _O&&n&&TO(e)&&!PE(e,r)&&i(e),e}};zx[r]=!0})),jO=mE.TypeError,IO=function(e,t){this.stopped=e,this.result=t},NO=IO.prototype,LO=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=pD(t,c),g=function(e){return r&&oS(r,"normal",e),new IO(!0,e)},v=function(e){return f?(fx(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=dS(e)))throw jO(mx(e)+" is not iterable");if(lS(o)){for(i=0,a=xD(e);a>i;i++)if((u=v(e[i]))&&hx(NO,u))return u;return new IO(!1)}r=hS(e,o)}for(s=r.next;!(l=px(s,r)).done;){try{u=v(l.value)}catch(y){oS(r,"throw",y)}if("object"==typeof u&&u&&hx(NO,u))return u}return new IO(!1)},RO=mE.TypeError,MO=function(e,t){if(hx(t,e))return e;throw RO("Incorrect invocation")},zO=function(e,t,n){var r,o;return GS&&RE(r=t.constructor)&&r!==n&&ox(o=r.prototype)&&o!==n.prototype&&GS(e,o),e},$O=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=mE[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=OE(u[e]);Qx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!ox(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!ox(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!ox(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(yC(e,!RE(a)||!(o||u.forEach&&!qE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),PO.enable();else if(yC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=qE((function(){f.has(1)})),h=wS((function(e){new a(e)})),g=!o&&qE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){MO(e,u);var n=zO(new a,e,s);return null!=t&&LO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,bC({global:!0,forced:s!=a},l),$S(s,e),o||n.setStrong(s,e,r),s},HO=PO.getWeakData,VO=Kx.set,UO=Kx.getterFor,WO=LD.find,GO=LD.findIndex,qO=OE([].splice),KO=0,XO=function(e){return e.frozen||(e.frozen=new YO)},YO=function(){this.entries=[]},ZO=function(e,t){return WO(e.entries,(function(e){return e[0]===t}))};YO.prototype={get:function(e){var t=ZO(this,e);if(t)return t[1]},has:function(e){return!!ZO(this,e)},set:function(e,t){var n=ZO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=GO(this.entries,(function(t){return t[0]===e}));return~t&&qO(this.entries,t,1),!!~t}};var JO,QO={getConstructor:function(e,t,n,r){var o=e((function(e,o){MO(e,i),VO(e,{type:t,id:KO++,frozen:void 0}),null!=o&&LO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=UO(t),u=function(e,t,n){var r=a(e),o=HO(fx(t),!0);return!0===o?XO(r).set(t,n):o[r.id]=n,e};return xO(i,{delete:function(e){var t=a(this);if(!ox(e))return!1;var n=HO(e);return!0===n?XO(t).delete(e):n&&PE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!ox(e))return!1;var n=HO(e);return!0===n?XO(t).has(e):n&&PE(n,t.id)}}),xO(i,n?{get:function(e){var t=a(this);if(ox(e)){var n=HO(e);return!0===n?XO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ek=Kx.enforce,tk=!mE.ActiveXObject&&"ActiveXObject"in mE,nk=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},rk=$O("WeakMap",nk,QO);if(Lx&&tk){JO=QO.getConstructor(nk,"WeakMap",!0),PO.enable();var ok=rk.prototype,ik=OE(ok.delete),ak=OE(ok.has),uk=OE(ok.get),sk=OE(ok.set);xO(ok,{delete:function(e){if(ox(e)&&!TO(e)){var t=ek(this);return t.frozen||(t.frozen=new JO),ik(this,e)||t.frozen.delete(e)}return ik(this,e)},has:function(e){if(ox(e)&&!TO(e)){var t=ek(this);return t.frozen||(t.frozen=new JO),ak(this,e)||t.frozen.has(e)}return ak(this,e)},get:function(e){if(ox(e)&&!TO(e)){var t=ek(this);return t.frozen||(t.frozen=new JO),ak(this,e)?uk(this,e):t.frozen.get(e)}return uk(this,e)},set:function(e,t){if(ox(e)&&!TO(e)){var n=ek(this);n.frozen||(n.frozen=new JO),ak(this,e)?sk(this,e,t):n.frozen.set(e,t)}else sk(this,e,t);return this}})}var lk=ex("iterator"),ck=ex("toStringTag"),fk=EO.values,dk=function(e,t){if(e){if(e[lk]!==fk)try{Fx(e,lk,fk)}catch(r){e[lk]=fk}if(e[ck]||Fx(e,ck,t),sD[t])for(var n in EO)if(e[n]!==EO[n])try{Fx(e,n,EO[n])}catch(r){e[n]=EO[n]}}};for(var pk in sD)dk(mE[pk]&&mE[pk].prototype,pk);dk(fD,"DOMTokenList");var hk=new WeakMap,gk=new WeakMap,vk=new WeakMap,yk=new WeakMap,mk=new WeakMap,bk=new WeakMap,wk=new WeakMap,Ek=new WeakMap,xk=new WeakMap,Dk=new WeakMap,Ck=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,Ok=new WeakMap,kk=new WeakMap,Bk=new WeakMap,Fk=new WeakMap,Tk=new WeakMap,_k=new WeakMap,Pk=new WeakMap,jk=new WeakMap,Ik=new WeakMap,Nk=new WeakMap,Lk=new WeakMap,Rk=new WeakMap,Mk=LD.find,zk=!0;"find"in[]&&Array(1).find((function(){zk=!1})),bC({target:"Array",proto:!0,forced:zk},{find:function(e){return Mk(this,e,arguments.length>1?arguments[1]:void 0)}}),qC("find"),bC({global:!0},{globalThis:mE});const $k=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Ag&&(fg.fn.css=Ag),_g&&(fg.fn.append=_g),dg&&(fg.fn.addClass=dg),pg&&(fg.fn.removeClass=pg),hg&&(fg.fn.hasClass=hg),bg&&(fg.fn.on=bg),Vg&&(fg.fn.focus=Vg),gg&&(fg.fn.attr=gg),vg&&(fg.fn.removeAttr=vg),Cg&&(fg.fn.hide=Cg),Sg&&(fg.fn.show=Sg),Dg&&(fg.fn.offset=Dg),Eg&&(fg.fn.width=Eg),xg&&(fg.fn.height=xg),jg&&(fg.fn.parent=jg),Ig&&(fg.fn.parents=Ig),Tg&&(fg.fn.is=Tg),yg&&(fg.fn.dataset=yg),mg&&(fg.fn.val=mg),Fg&&(fg.fn.text=Fg),Bg&&(fg.fn.html=Bg),Lg&&(fg.fn.children=Lg),Rg&&(fg.fn.remove=Rg),Ng&&(fg.fn.find=Ng),Og&&(fg.fn.each=Og),Mg&&(fg.fn.empty=Mg);var Hk,Vk,Uk=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Wk=function(e){return Gk(e)&&1===e.nodeType},Gk=function(e){var t=Uk(e);return!!t&&e instanceof t.Node},qk=function(e){var t=e&&e.anchorNode&&Uk(e.anchorNode);return!!t&&e instanceof t.Selection},Kk=function(e){return Gk(e)&&3===e.nodeType},Xk=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},Yk=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Gk(r=i)&&8===r.nodeType||Wk(i)&&0===i.childNodes.length||Wk(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Zk=function(e,t,n){return gO(Yk(e,t,n),1)[0]},Jk=function e(t){var n,r,o="";if(Kk(t)&&t.nodeValue)return t.nodeValue;if(Wk(t)){try{for(var i=hO(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(cf){n={error:cf}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function Qk(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||Qk(o,t)}}function eB(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Hk.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Vk=Hk||(Hk={}))[Vk.ELEMENT_NODE=1]="ELEMENT_NODE",Vk[Vk.TEXT_NODE=3]="TEXT_NODE",Vk[Vk.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Vk[Vk.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Vk[Vk.COMMENT_NODE=8]="COMMENT_NODE",Vk[Vk.DOCUMENT_NODE=9]="DOCUMENT_NODE",Vk[Vk.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Vk[Vk.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var tB="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),nB="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var rB="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),oB="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),iB="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),aB="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var uB=!iB&&!oB&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,sB={getWindow:function(e){var t=jk.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Pk.get(t);return n||(n=new mO,Pk.set(t,n)),n},setNewKey:function(e){var t=new mO;Pk.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=kk.get(r);if(null==o){if(sp.isEditor(r))return n;break}var i=Ok.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=sB.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return kk.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=sB.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[sB.findPath(e,t)[0]];return pp.get(e,n)},toDOMNode:function(e,t){var n;if(sp.isEditor(t))n=Bk.get(e);else{var r=sB.findKey(e,t);n=Tk.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=sB.toDOMNode(e,e);try{r=Wk(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Sp.isBackward(t),i=sB.toDOMPoint(e,n),a=Sp.isCollapsed(t)?i:sB.toDOMPoint(e,r),u=sB.getWindow(e).document.createRange(),s=gO(o?a:i,2),l=s[0],c=s[1],f=gO(o?i:a,2),d=f[0],p=f[1],h=!!(Wk(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Wk(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=gO(sp.node(e,t.path),1)[0],a=sB.toDOMNode(e,i);sp.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=hO(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Wk(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Fk.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=sB.toSlateNode(e,t.target),u=sB.findPath(e,a);if(sp.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=sp.point(e,u,{edge:l?"start":"end"}),f=l?sp.before(e,c):sp.after(e,c);if(f)return sp.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return sB.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((qk(t)?t.anchorNode:t.startContainer)&&(qk(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=aB&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=sB.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:sB.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Sp.isExpanded(d)&&Sp.isForward(d)&&Wk(i)&&sp.void(e,{at:d.focus,mode:"highest"})&&(d=sp.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=gO(o?t:function(e){var t,n=gO(e,2),r=n[0],o=n[1];if(Wk(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=gO(Yk(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Wk(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=Zk(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=sB.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();vO(vO([],gO(Yh(v.querySelectorAll("[data-slate-zero-width]")))),gO(Yh(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||nB&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=sB.toSlateNode(e,c);return{path:sB.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return sp.hasPath(e,n.path)&&sp.hasPath(e,r.path)},getNodeType:function(e){return np.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return pp.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=sp.nodes(e,{universal:!0});try{for(var i=hO(o),a=i.next();!a.done;a=i.next()){var u=gO(a.value,1)[0];np.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=gO(sp.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=gO(sp.nodes(e,{match:function(e){return _p.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=gO(sp.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&gO(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(sp.isEnd(e,n.anchor,t)||sp.isEnd(e,n.focus,t))},getTextarea:function(e){var t=hk.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return yk.get(e)||null},getHoverbar:function(e){return bk.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=sB.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=hO(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=sp.nodes(e,{match:function(t){return!(!np.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=hO(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];Qk(sB.toDOMNode(e,h),(function(e,t){var n=fg(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(g){r={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=sp.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=hO(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Sp.isExpanded(t))return!1;var n=sB.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=sp.node(e,t);if(null==n)return!1;var r=gO(n,1)[0].children;return 1===r.length&&""===r[0].text}},lB=1,cB={},fB={},dB=LD.filter,pB=hA("filter");bC({target:"Array",proto:!0,forced:!pB},{filter:function(e){return dB(this,e,arguments.length>1?arguments[1]:void 0)}});var hB="\t\n\v\f\r                 \u2028\u2029\ufeff",gB=OE("".replace),vB="["+hB+"]",yB=RegExp("^"+vB+vB+"*"),mB=RegExp(vB+vB+"*$"),bB=function(e){return function(t){var n=kC(BE(t));return 1&e&&(n=gB(n,yB,"")),2&e&&(n=gB(n,mB,"")),n}},wB={start:bB(1),end:bB(2),trim:bB(3)},EB=Jx.PROPER,xB=wB.trim;bC({target:"String",proto:!0,forced:function(e){return qE((function(){return!!hB.trim()||"​…᠎"!=="​…᠎".trim()||EB&&hB.trim.name!==e}))}("trim")},{trim:function(){return xB(this)}});var DB=[],CB={};function SB(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var AB,OB,kB,BB,FB=mE.Promise,TB=ex("species"),_B=function(e){var t=zE(e),n=kx.f;rx&&t&&!t[TB]&&n(t,TB,{configurable:!0,get:function(){return this}})},PB=mE.TypeError,jB=ex("species"),IB=function(e,t){var n,r=fx(e).constructor;return void 0===r||null==(n=fx(r)[jB])?t:function(e){if(TD(e))return e;throw PB(mx(e)+" is not a constructor")}(n)},NB=OE([].slice),LB=/(?:ipad|iphone|ipod).*applewebkit/i.test($E),RB="process"==nD(mE.process),MB=mE.setImmediate,zB=mE.clearImmediate,$B=mE.process,HB=mE.Dispatch,VB=mE.Function,UB=mE.MessageChannel,WB=mE.String,GB=0,qB={};try{AB=mE.location}catch(Mme){}var KB=function(e){if(PE(qB,e)){var t=qB[e];delete qB[e],t()}},XB=function(e){return function(){KB(e)}},YB=function(e){KB(e.data)},ZB=function(e){mE.postMessage(WB(e),AB.protocol+"//"+AB.host)};MB&&zB||(MB=function(e){var t=NB(arguments,1);return qB[++GB]=function(){$A(RE(e)?e:VB(e),void 0,t)},OB(GB),GB},zB=function(e){delete qB[e]},RB?OB=function(e){$B.nextTick(XB(e))}:HB&&HB.now?OB=function(e){HB.now(XB(e))}:UB&&!LB?(BB=(kB=new UB).port2,kB.port1.onmessage=YB,OB=pD(BB.postMessage,BB)):mE.addEventListener&&RE(mE.postMessage)&&!mE.importScripts&&AB&&"file:"!==AB.protocol&&!qE(ZB)?(OB=ZB,mE.addEventListener("message",YB,!1)):OB="onreadystatechange"in ux("script")?function(e){RC.appendChild(ux("script")).onreadystatechange=function(){RC.removeChild(this),KB(e)}}:function(e){setTimeout(XB(e),0)});var JB,QB,eF,tF,nF,rF,oF,iF,aF={set:MB,clear:zB},uF=/ipad|iphone|ipod/i.test($E)&&void 0!==mE.Pebble,sF=/web0s(?!.*chrome)/i.test($E),lF=XD.f,cF=aF.set,fF=mE.MutationObserver||mE.WebKitMutationObserver,dF=mE.document,pF=mE.process,hF=mE.Promise,gF=lF(mE,"queueMicrotask"),vF=gF&&gF.value;vF||(JB=function(){var e,t;for(RB&&(e=pF.domain)&&e.exit();QB;){t=QB.fn,QB=QB.next;try{t()}catch(n){throw QB?tF():eF=void 0,n}}eF=void 0,e&&e.enter()},LB||RB||sF||!fF||!dF?!uF&&hF&&hF.resolve?((oF=hF.resolve(void 0)).constructor=hF,iF=pD(oF.then,oF),tF=function(){iF(JB)}):RB?tF=function(){pF.nextTick(JB)}:(cF=pD(cF,mE),tF=function(){cF(JB)}):(nF=!0,rF=dF.createTextNode(""),new fF(JB).observe(rF,{characterData:!0}),tF=function(){rF.data=nF=!nF}));var yF,mF,bF,wF,EF=vF||function(e){var t={fn:e,next:void 0};eF&&(eF.next=t),QB||(QB=t,tF()),eF=t},xF=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=wx(t),this.reject=wx(n)},DF={f:function(e){return new xF(e)}},CF=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},SF="object"==typeof window,AF=aF.set,OF=ex("species"),kF="Promise",BF=Kx.getterFor(kF),FF=Kx.set,TF=Kx.getterFor(kF),_F=FB&&FB.prototype,PF=FB,jF=_F,IF=mE.TypeError,NF=mE.document,LF=mE.process,RF=DF.f,MF=RF,zF=!!(NF&&NF.createEvent&&mE.dispatchEvent),$F=RE(mE.PromiseRejectionEvent),HF=!1,VF=yC(kF,(function(){var e=Ix(PF),t=e!==String(PF);if(!t&&66===GE)return!0;if(GE>=51&&/native code/.test(e))return!1;var n=new PF((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[OF]=r,!(HF=n.then((function(){}))instanceof r)||!t&&SF&&!$F})),UF=VF||!wS((function(e){PF.all(e).catch((function(){}))})),WF=function(e){var t;return!(!ox(e)||!RE(t=e.then))&&t},GF=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;EF((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&YF(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(IF("Promise-chain cycle")):(u=WF(a))?px(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&KF(e)}))}},qF=function(e,t,n){var r,o;zF?((r=NF.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),mE.dispatchEvent(r)):r={promise:t,reason:n},!$F&&(o=mE["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=mE.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},KF=function(e){px(AF,mE,(function(){var t,n=e.facade,r=e.value;if(XF(e)&&(t=CF((function(){RB?LF.emit("unhandledRejection",r,n):qF("unhandledrejection",n,r)})),e.rejection=RB||XF(e)?2:1,t.error))throw t.value}))},XF=function(e){return 1!==e.rejection&&!e.parent},YF=function(e){px(AF,mE,(function(){var t=e.facade;RB?LF.emit("rejectionHandled",t):qF("rejectionhandled",t,e.value)}))},ZF=function(e,t,n){return function(r){e(t,r,n)}},JF=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,GF(e,!0))},QF=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw IF("Promise can't be resolved itself");var r=WF(t);r?EF((function(){var n={done:!1};try{px(r,t,ZF(QF,n,e),ZF(JF,n,e))}catch(o){JF(n,o,e)}})):(e.value=t,e.state=1,GF(e,!1))}catch(o){JF({done:!1},o,e)}}};if(VF&&(jF=(PF=function(e){MO(this,jF),wx(e),px(yF,this);var t=BF(this);try{e(ZF(QF,t),ZF(JF,t))}catch(n){JF(t,n)}}).prototype,(yF=function(e){FF(this,{type:kF,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xO(jF,{then:function(e,t){var n=TF(this),r=n.reactions,o=RF(IB(this,PF));return o.ok=!RE(e)||e,o.fail=RE(t)&&t,o.domain=RB?LF.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&GF(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),mF=function(){var e=new yF,t=BF(e);this.promise=e,this.resolve=ZF(QF,t),this.reject=ZF(JF,t)},DF.f=RF=function(e){return e===PF||e===bF?new mF(e):MF(e)},RE(FB)&&_F!==Object.prototype)){wF=_F.then,HF||(Qx(_F,"then",(function(e,t){var n=this;return new PF((function(e,t){px(wF,n,e,t)})).then(e,t)}),{unsafe:!0}),Qx(_F,"catch",jF.catch,{unsafe:!0}));try{delete _F.constructor}catch(Mme){}GS&&GS(_F,jF)}bC({global:!0,wrap:!0,forced:VF},{Promise:PF}),$S(PF,kF,!1),_B(kF),bF=zE(kF),bC({target:kF,stat:!0,forced:VF},{reject:function(e){var t=RF(this);return px(t.reject,void 0,e),t.promise}}),bC({target:kF,stat:!0,forced:VF},{resolve:function(e){return function(e,t){if(fx(e),ox(t)&&t.constructor===e)return t;var n=DF.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),bC({target:kF,stat:!0,forced:UF},{all:function(e){var t=this,n=RF(t),r=n.resolve,o=n.reject,i=CF((function(){var n=wx(t.resolve),i=[],a=0,u=1;LO(e,(function(e){var s=a++,l=!1;u++,px(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=RF(t),r=n.reject,o=CF((function(){var o=wx(t.resolve);LO(e,(function(e){px(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var eT=wA.UNSUPPORTED_Y,tT=Math.min,nT=[].push,rT=OE(/./.exec),oT=OE(nT),iT=OE("".slice);function aT(e){Promise.resolve().then(e)}function uT(e,t){return np.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=sp.isVoid(t,e),u="";a||(u=i.map((function(e){return uT(e,t)})).join(""));var s=(CB[r]||SB)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||DB.forEach((function(t){return l=t(e,l)})),"string"==typeof s)return l;var c=s.prefix,f=void 0===c?"":c,d=s.suffix,p=void 0===d?"":d;return f&&(l=f+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=r.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");var o=sB.getParentsNodes(t,e).some((function(e){return"pre"===sB.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=sB.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return DB.forEach((function(t){return r=t(e,r)})),r}(e,t)}function sT(e){return"w-e-element-"+e}UA("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=kC(BE(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!YC(e))return px(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=px(NA,f,r))&&!((a=f.lastIndex)>c&&(oT(s,iT(r,c,i.index)),i.length>1&&i.index<r.length&&$A(nT,s,SO(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&rT(f,"")||oT(s,""):oT(s,iT(r,c)),s.length>o?SO(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:px(t,this,e,n)}:t,[function(t,n){var o=BE(this),i=null==t?void 0:Ex(t,e);return i?px(i,t,o,n):px(r,kC(o),t,n)},function(e,o){var i=fx(this),a=kC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=IB(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(eT?"g":"y"),f=new s(eT?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===tO(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=eT?0:h;var v,y=tO(f,eT?iT(a,h):a);if(null===y||(v=tT(ED(f.lastIndex+(eT?h:0)),a.length))===p)h=GA(a,h,l);else{if(oT(g,iT(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(oT(g,y[m]),g.length===d)return g;h=p=v}}return oT(g,iT(a,p)),g}]}),!!qE((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),eT);var lT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},cT=function(e,t,n){var r=sB.toDOMRange(e,t).getBoundingClientRect(),o=sB.toDOMRange(e,n).getBoundingClientRect();return lT(r,o)&&lT(o,r)},fT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],dT=[],pT=[],hT={},gT=kx.f,vT=aC.f,yT=Kx.enforce,mT=ex("match"),bT=mE.RegExp,wT=bT.prototype,ET=mE.SyntaxError,xT=OE(BC),DT=OE(wT.exec),CT=OE("".charAt),ST=OE("".replace),AT=OE("".indexOf),OT=OE("".slice),kT=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,BT=/a/g,FT=/a/g,TT=new bT(BT)!==BT,_T=wA.MISSED_STICKY,PT=wA.UNSUPPORTED_Y,jT=rx&&(!TT||_T||xA||CA||qE((function(){return FT[mT]=!1,bT(BT)!=BT||bT(FT)==FT||"/a/i"!=bT(BT,"i")})));if(yC("RegExp",jT)){for(var IT=function(e,t){var n,r,o,i,a,u,s=hx(wT,this),l=YC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===IT)return e;if((l||hx(wT,e))&&(e=e.source,c&&(t="flags"in d?d.flags:xT(d))),e=void 0===e?"":kC(e),t=void 0===t?"":kC(t),d=e,xA&&"dotAll"in BT&&(r=!!t&&AT(t,"s")>-1)&&(t=ST(t,/s/g,"")),n=t,_T&&"sticky"in BT&&(o=!!t&&AT(t,"y")>-1)&&PT&&(t=ST(t,/y/g,"")),CA&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=CT(e,r)))t+=CT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:DT(kT,OT(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||PE(a,c))throw new ET("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=zO(bT(e,t),s?this:wT,IT),(r||o||f.length)&&(u=yT(a),r&&(u.dotAll=!0,u.raw=IT(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=CT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+CT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Fx(a,"source",""===d?"(?:)":d)}catch(p){}return a},NT=function(e){e in IT||gT(IT,e,{configurable:!0,get:function(){return bT[e]},set:function(t){bT[e]=t}})},LT=vT(bT),RT=0;LT.length>RT;)NT(LT[RT++]);wT.constructor=IT,IT.prototype=wT,Qx(mE,"RegExp",IT)}_B("RegExp");var MT=new RegExp(String.fromCharCode(160),"g");function zT(e){return e.replace(MT," ")}function $T(e,t){var n=e.length;if(n){var r=e[n-1];if(_p.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function HT(e,t,n){return{type:"paragraph",children:[{text:fg(e).text().replace(/\s+/gm," ")}]}}function VT(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==Hk.ELEMENT_NODE)if(e.nodeType!==Hk.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=zT(r),$T(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void($T(n,"\n")||n.push({text:"\n"}));var o=WT(fg(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in hT)if(e[0].matches(t))return hT[t];return HT}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){sp.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),pT.forEach((function(n){r=n(e[0],r,t)})))})),r}function UT(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=zT(n=n.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return pT.forEach((function(n){r=n(e[0],r,t)})),r}function WT(e,t){dT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=fg(r(e[0])))}));var n=eB(e);return"span"===n?e.attr("data-w-e-type")?VT(e,t):UT(e,t):"code"===n?"pre"===eB(e.parent())?VT(e,t):UT(e,t):fT.includes(n)?UT(e,t):VT(e,t)}function GT(e,t,n){var r=fg(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function qT(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=fg("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=WT(fg(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var KT=kx.f,XT=PO.fastKey,YT=Kx.set,ZT=Kx.getterFor,JT={getConstructor:function(e,t,n,r){var o=e((function(e,o){MO(e,i),YT(e,{type:t,index:UC(null),first:void 0,last:void 0,size:0}),rx||(e.size=0),null!=o&&LO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=ZT(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=XT(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),rx?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=XT(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return xO(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,rx?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),rx?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=pD(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),xO(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),rx&&KT(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=ZT(t),i=ZT(r);QS(e,t,(function(e,t){YT(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),_B(t)}};$O("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),JT);var QT=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function e_(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Yp.insertNodes(e,t,{mode:"highest"})}var t_=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=gO(Sp.edges(n),2),o=r[0],i=r[1],a=sp.void(t,{at:o.path}),u=sp.void(t,{at:i.path});if(!Sp.isCollapsed(n)||a){var s=sB.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=gO(u,1)[0],d=s.cloneRange(),p=sB.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Kk(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",Jk(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=hO(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Yp.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},n_=function(e){return null!=e},r_={object:!0,function:!0,undefined:!0},o_=/^\s*class[\s{/}]/,i_=Function.prototype.toString,a_=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!function(e){if(!n_(t=e)||!hasOwnProperty.call(r_,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!o_.test(i_.call(e))},u_=function(e){return null!=e},s_=Object.keys,l_=function(){try{return Object.keys("primitive"),!0}catch(cf){return!1}}()?Object.keys:function(e){return s_(u_(e)?Object(e):e)},c_=function(e){if(!u_(e))throw new TypeError("Cannot use null or undefined");return e},f_=Math.max,d_=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=f_(arguments.length,2);for(e=Object(c_(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)l_(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},p_=Array.prototype.forEach,h_=Object.create,g_=function(e,t){var n;for(n in e)t[n]=e[n]},v_=function(e){var t=h_(null);return p_.call(arguments,(function(e){u_(e)&&g_(Object(e),t)})),t},y_="razdwatrzy",m_=String.prototype.indexOf,b_="function"==typeof y_.contains&&!0===y_.contains("dwa")&&!1===y_.contains("foo")?String.prototype.contains:function(e){return m_.call(this,e,arguments[1])>-1},w_=hE((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],n_(e)?(n=b_.call(e,"c"),r=b_.call(e,"e"),o=b_.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?d_(v_(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],n_(t)?a_(t)?n_(n)?a_(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,n_(e)?(r=b_.call(e,"c"),o=b_.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?d_(v_(i),a):a}})),E_=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},x_=hE((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return E_(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return E_(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(E_(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i},u={on:w_(n),once:w_(r),off:w_(o),emit:w_(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function D_(e){var t=Lk.get(e);return null==t&&(t=x_(),Lk.set(e,t)),t}var C_=new WeakMap;function S_(e,t){var n=C_.get(e);null==n&&(n=new Set,C_.set(e,n)),n.add(t)}function A_(e){return C_.get(e)||new Set}function O_(e){C_.set(e,new Set)}function k_(e){var t=sB.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function B_(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=k_(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=sB.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function F_(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=np.isElement(t)&&e.isVoid(t),i=np.isElement(t)&&e.isInline(t),a=_k.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if($k.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=k_(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,x=l-y;if("bar"===n)return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?x>(m-f)/2?w.right=m-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function T_(e,t){aT((function(){var n=k_(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),D=parseInt(x.toString())-Math.abs(c);t.css("right",D+"px")}}}))}var __=hA("slice"),P_=ex("species"),j_=mE.Array,I_=Math.max;bC({target:"Array",proto:!0,forced:!__},{slice:function(e,t){var n,r,o,i=qD(this),a=xD(i),u=JD(e,a),s=JD(void 0===t?a:t,a);if(DD(i)&&(n=i.constructor,(TD(n)&&(n===j_||DD(n.prototype))||ox(n)&&null===(n=n[P_]))&&(n=void 0),n===j_||void 0===n))return NB(i,u,s);for(r=new(void 0===n?j_:n)(I_(s-u,0)),o=0;u<s;u++,o++)u in i&&cS(r,o,i[u]);return r.length=o,r}});var N_=XD.f,L_=OE("".startsWith),R_=OE("".slice),M_=Math.min,z_=eS("startsWith"),$_=!z_&&!!function(){var e=N_(String.prototype,"startsWith");return e&&!e.writable}();bC({target:"String",proto:!0,forced:!$_&&!z_},{startsWith:function(e){var t=kC(BE(this));JC(e);var n=ED(M_(arguments.length>1?arguments[1]:void 0,t.length)),r=kC(e);return L_?L_(t,r,n):R_(t,n,n+r.length)===r}});var H_=Object.assign,V_=Object.defineProperty,U_=OE([].concat),W_=!H_||qE((function(){if(rx&&1!==H_({b:1},H_(V_({},"a",{enumerable:!0,get:function(){V_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=H_({},e)[n]||wC(H_({},t)).join("")!=r}))?function(e,t){for(var n=TE(e),r=arguments.length,o=1,i=uC.f,a=GD.f;r>o;)for(var u,s=vD(arguments[o++]),l=i?U_(wC(s),i(s)):wC(s),c=l.length,f=0;c>f;)u=l[f++],rx&&!px(a,s,u)||(n[u]=s[u]);return n}:H_;bC({target:"Object",stat:!0,forced:Object.assign!==W_},{assign:W_});var G_=["props","attrs","style","dataset","on","hook"];function q_(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!G_.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=zy(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&q_(e)}))}var K_=[],X_={};function Y_(e,t,n){return ey(n.isInline(e)?"span":"div",null,t)}function Z_(e,t){return void 0===t&&(t=!1),ey("span",{"data-slate-string":!0},t?e+"\n":e)}function J_(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),ey("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?ey("br",null):null)}function Q_(e,t,n,r){return Ok.set(e,t),kk.set(e,n),np.isElement(e)?function(e,t){var n,r=sB.findKey(t,e),o=t.isInline(e),i=sp.isVoid(t,e),a=sT(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=X_[s]||Y_;n=i?null:c.map((function(n,r){return Q_(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=gO(pp.texts(e),1),g=gO(h[0],1)[0],v=ey(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Q_(g,0,e,t));d=ey(p,{style:{position:"relative"}},d,v),Ok.set(g,0),kk.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return K_.forEach((function(r){n=r(e,t)})),n}(e,d)),aT((function(){var t=Xk(a);null!=t&&(Tk.set(r,t),_k.set(e,t),Fk.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=sB.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=sB.findPath(n,e),a=o([e,i]),u=_p.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=sB.findPath(o,n),u=yp.parent(a);if(sp.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?J_(pp.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==sp.string(o,u)?""===i?J_():t&&"\n"===i.slice(-1)?Z_(i,!0):Z_(i):J_(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,K_.forEach((function(e){a=e(i,a)})),ey("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=ey("span",{"data-slate-node":"text",id:l,key:r.id},s);return aT((function(){var t=Xk(l);null!=t&&(Tk.set(r,t),_k.set(e,t),Fk.set(t,e))})),c}(e,n,r)}function eP(e,t){var n,r=e.$scroll,o="w-e-textarea-"+e.id,i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),jv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=Q_(e,n,t,t);return q_(r),r}));var c=Ck.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return fg('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=_v([Rv,qv,Jv,$v,Wv,Nv]))(n,s),Ck.set(e,!1),Sk.set(e,p)}else{var d=Ak.get(e),p=Sk.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=Xk(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=Uk(n);h&&jk.set(t,h)}Bk.set(t,n),_k.set(t,n),Fk.set(n,t),Ak.set(e,s)}}function tP(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function nP(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function rP(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return nP(n.overflowY,t)||nP(n.overflowX,t)||!!(o=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(r=e))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function oP(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function iP(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!tP(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;tP(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&rP(f)&&!rP(document.documentElement)||null!=f&&rP(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,D="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,C="center"===i?x+m/2:"end"===i?w:x,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&x>=0&&E<=p&&w<=d&&b>=T&&E<=P&&x>=j&&w<=_)return S;var I=getComputedStyle(O),N=parseInt(I.borderLeftWidth,10),L=parseInt(I.borderTopWidth,10),R=parseInt(I.borderRightWidth,10),M=parseInt(I.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-N-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?D:"end"===o?D-p:"nearest"===o?oP(g,g+p,p,L,M,g+D,g+D+y,y):D-p/2,$="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:oP(h,h+d,d,N,R,h+C,h+C+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?D-T-L:"end"===o?D-P+M+V:"nearest"===o?oP(T,P,B,L,M+V,D,D+y,y):D-(T+B/2)+V/2,$="start"===i?C-j-N:"center"===i?C-(j+F/2)+H/2:"end"===i?C-_+R+H:oP(j,_,F,N,R+H,C,C+m,m);var U=O.scrollLeft,W=O.scrollTop;D+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),C+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}S.push({el:O,top:z,left:$})}return S}function aP(e){return e===Object(e)&&0!==Object.keys(e).length}function uP(e,t){return Gk(t)&&sB.hasDOMNode(e,t,{editable:!0})}function sP(e,t){if(e.getConfig().readOnly)return!1;var n=lP(e,t)&&sB.toSlateNode(e,t);return sp.isVoid(e,n)}function lP(e,t){return Gk(t)&&sB.hasDOMNode(e,t)}function cP(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=sB.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=Bk.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=sB.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Sp.equals(l,r)){var c=!0;if(Sp.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||sB.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&sB.toDOMRange(t,r);if(g){Sp.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(aP(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:iP(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:aP(n)?n:{block:"start",inline:"nearest"};!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(iP(e,o),o.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&nB&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=sB.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var fP=new WeakMap,dP=new WeakMap,pP={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},hP={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},gP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},vP=function(e){var t=pP[e],n=hP[e],r=gP[e],o=t&&Yy(t),i=n&&Yy(n),a=r&&Yy(r);return function(e){return!(!o||!o(e))||!!(tB&&i&&i(e))||!(tB||!a||!a(e))}},yP={isBold:vP("bold"),isCompose:vP("compose"),isMoveBackward:vP("moveBackward"),isMoveForward:vP("moveForward"),isDeleteBackward:vP("deleteBackward"),isDeleteForward:vP("deleteForward"),isDeleteLineBackward:vP("deleteLineBackward"),isDeleteLineForward:vP("deleteLineForward"),isDeleteWordBackward:vP("deleteWordBackward"),isDeleteWordForward:vP("deleteWordForward"),isExtendBackward:vP("extendBackward"),isExtendForward:vP("extendForward"),isExtendLineBackward:vP("extendLineBackward"),isExtendLineForward:vP("extendLineForward"),isItalic:vP("italic"),isMoveLineBackward:vP("moveLineBackward"),isMoveLineForward:vP("moveLineForward"),isMoveWordBackward:vP("moveWordBackward"),isMoveWordForward:vP("moveWordForward"),isRedo:vP("redo"),isSplitBlock:vP("splitBlock"),isTransposeCharacter:vP("transposeCharacter"),isUndo:vP("undo"),isTab:vP("tab"),isSelectAll:vP("selectAll")};function mP(e){e.preventDefault()}var bP={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(uB&&!o&&uP(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=gO(r.getTargetRanges(),1)[0];if(s){var l=sB.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Sp.equals(i,l)||Yp.select(n,l)}}if(i&&Sp.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";sp.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":sp.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":sp.deleteForward(n);break;case"deleteContentBackward":sp.deleteBackward(n);break;case"deleteEntireSoftLine":sp.deleteBackward(n,{unit:"line"}),sp.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":sp.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":sp.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":sp.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":sp.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":sp.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":sp.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":sp.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Rk.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&sp.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&uP(n,r.target)){var a=sB.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===sB.toDOMNode(n,n)||Wk(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Gk(u)&&sB.hasDOMNode(n,u)){var s=sB.toSlateNode(n,u);if(np.isElement(s)&&!n.isVoid(s))return}if(rB){var l=a.getSelection();null==l||l.removeAllRanges()}Ik.delete(n)}}}},focus:function(e,t,n){var r=sB.toDOMNode(n,n),o=sB.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,nB&&e.target!==r?r.focus():Ik.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&lP(n,e.target)&&Gk(e.target)){var r=sB.toSlateNode(n,e.target),o=sB.findPath(n,r);if(sp.hasPath(n,o)&&pp.get(n,o)===r){var i=sp.start(n,o),a=sp.end(n,o),u=sp.void(n,{at:i}),s=sp.void(n,{at:a});if(u&&s&&yp.equals(u[1],s[1])){var l=sp.range(n,i);Yp.select(n,l)}}}},compositionstart:function(e,t,n){if(uP(n,e.target)){var r=n.selection;if(r&&Sp.isExpanded(r)&&(sp.deleteFragment(n),Promise.resolve().then((function(){cP(t,n,!0)}))),r&&Sp.isCollapsed(r)){var o=sB.toDOMRange(n,r).startContainer,i=o.textContent||"";fP.set(n,i),dP.set(n,o)}t.isComposing=!0,a=t,(u=n).getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&(null===(s=a.$placeholder)||void 0===s||s.hide(),a.showPlaceholder=!1)}var a,u,s},compositionend:function(e,t,n){var r=e;if(uP(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(aB||nB)&&sB.cleanExposedTexNodeInSelectionBlock(n);for(var i=Sp.isBackward(o)?o.focus:o.anchor,a=gO(sp.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=gO(sp.node(n,i.path.slice(0,u+1)),1)[0];if(np.isElement(s)&&((rB||nB)&&"link"===s.type||"code"===s.type)){sB.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=sB.getLeftLengthOfMaxLength(n);c<l.length?(sB.toDOMRange(n,o).startContainer.textContent=fP.get(n)||"",c>0&&sp.insertText(n,l.slice(0,c)),t.changeViewState()):sp.insertText(n,l)}else sp.insertText(n,l);rB||setTimeout((function(){var e=n.selection;if(null!=e){var t=dP.get(n);null!=t&&sB.toDOMRange(n,e).startContainer!==t&&(t.textContent=fP.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){uP(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&uP(n,r.target)){if(function(e,t){var n=yk.get(e),r=n&&n.getMenus(),o=bk.get(e),i=o&&o.getMenus(),a=pO(pO({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Xy(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),yP.isTab(r))return mP(r),void n.handleTab();if(yP.isRedo(r))return mP(r),void("function"==typeof n.redo&&n.redo());if(yP.isUndo(r))return mP(r),void("function"==typeof n.undo&&n.undo());if(yP.isMoveLineBackward(r))return mP(r),void Yp.move(n,{unit:"line",reverse:!0});if(yP.isMoveLineForward(r))return mP(r),void Yp.move(n,{unit:"line"});if(yP.isExtendLineBackward(r))return mP(r),void Yp.move(n,{unit:"line",edge:"focus",reverse:!0});if(yP.isExtendLineForward(r))return mP(r),void Yp.move(n,{unit:"line",edge:"focus"});if(yP.isMoveBackward(r))return mP(r),void(o&&Sp.isCollapsed(o)?Yp.move(n,{reverse:!0}):Yp.collapse(n,{edge:"start"}));if(yP.isMoveForward(r))return mP(r),void(o&&Sp.isCollapsed(o)?Yp.move(n):Yp.collapse(n,{edge:"end"}));if(yP.isMoveWordBackward(r))return mP(r),o&&Sp.isExpanded(o)&&Yp.collapse(n,{edge:"focus"}),void Yp.move(n,{unit:"word",reverse:!0});if(yP.isMoveWordForward(r))return mP(r),o&&Sp.isExpanded(o)&&Yp.collapse(n,{edge:"focus"}),void Yp.move(n,{unit:"word"});if(yP.isSelectAll(r))return mP(r),void n.selectAll();if(uB){if((aB||rB)&&o&&(yP.isDeleteBackward(r)||yP.isDeleteForward(r))&&Sp.isCollapsed(o)){var i=pp.parent(n,o.anchor.path);if(np.isElement(i)&&sp.isVoid(n,i)&&sp.isInline(n,i))return r.preventDefault(),void Yp.delete(n,{unit:"block"})}}else{if(yP.isBold(r)||yP.isItalic(r)||yP.isTransposeCharacter(r))return void mP(r);if(yP.isSplitBlock(r))return mP(r),void sp.insertBreak(n);if(yP.isDeleteBackward(r))return mP(r),void(o&&Sp.isExpanded(o)?sp.deleteFragment(n,{direction:"backward"}):sp.deleteBackward(n));if(yP.isDeleteForward(r))return mP(r),void(o&&Sp.isExpanded(o)?sp.deleteFragment(n,{direction:"forward"}):sp.deleteForward(n));if(yP.isDeleteLineBackward(r))return mP(r),void(o&&Sp.isExpanded(o)?sp.deleteFragment(n,{direction:"backward"}):sp.deleteBackward(n,{unit:"line"}));if(yP.isDeleteLineForward(r))return mP(r),void(o&&Sp.isExpanded(o)?sp.deleteFragment(n,{direction:"forward"}):sp.deleteForward(n,{unit:"line"}));if(yP.isDeleteWordBackward(r))return mP(r),void(o&&Sp.isExpanded(o)?sp.deleteFragment(n,{direction:"backward"}):sp.deleteBackward(n,{unit:"word"}));if(yP.isDeleteWordForward(r))return mP(r),void(o&&Sp.isExpanded(o)?sp.deleteFragment(n,{direction:"forward"}):sp.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!uB&&!n.getConfig().readOnly&&uP(n,e.target)){e.preventDefault();var r=e.key;sp.insertText(n,r)}},copy:function(e,t,n){var r=e;if(uP(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&uP(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Sp.isExpanded(o))sp.deleteFragment(n);else{var a=pp.parent(n,o.anchor.path);sp.isVoid(n,a)&&Yp.delete(n)}}},paste:function(e,t,n){Rk.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&uP(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void Rk.set(n,!1);if(!uB||(r=o).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length){o.preventDefault();var a=o.clipboardData;null!=a&&n.insertData(a)}}},dragover:function(e,t,n){if(lP(n,e.target)){var r=sB.toSlateNode(n,e.target);sp.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(lP(n,r.target)&&!n.getConfig().readOnly){var o=sB.toSlateNode(n,r.target),i=sB.findPath(n,o);if(sp.isVoid(n,o)||sp.void(n,{at:i,voids:!0})){var a=sp.range(n,i);Yp.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&lP(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&lP(n,r.target)&&null!=o&&!(uB&&rB&&o.files.length>0)){r.preventDefault();var i=n.selection,a=sB.findEventRange(n,r);Yp.select(n,a),t.isDraggingInternally&&(i&&Yp.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},wP=1,EP=function(){function e(e){var t=this;this.id=wP++,this.$textArea=null,this.$progressBar=fg('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=fg('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ev((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=sB.findDocumentOrShadowRoot(t),a=i.activeElement,u=sB.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,Ik.set(t,!0)):Ik.delete(t),!s)return Yp.deselect(t);var l=s.anchorNode,c=s.focusNode,f=uP(t,l)||sP(t,l),d=uP(t,c)||sP(t,c);if(f&&d){var p=sB.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Yp.select(t,p)}else Yp.deselect(t)}}(t,e)}),100);var n=fg(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=fg('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=fg('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,aT((function(){var e=t.editorInstance,n=sB.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=gk.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(iv(bP,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Ev((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-sB.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;eP(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=fg('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),aT((function(){cP(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function xP(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&xP(t)}function DP(){return fg('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function CP(){return fg('<div class="w-e-bar-divider"></div>')}function SP(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=tB?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}UA("match",(function(e,t,n){return[function(t){var n=BE(this),r=null==t?void 0:Ex(t,e);return r?px(r,t,n):new RegExp(t)[e](kC(n))},function(e){var r=fx(this),o=kC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return tO(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=tO(r,o));){var c=kC(u[0]);s[l]=c,""===c&&(r.lastIndex=GA(o,ED(r.lastIndex),a)),l++}return 0===l?null:s}]}));var AP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=fg('<div class="w-e-bar-item"></div>'),this.$button=fg('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=fg(c);xP(d),f.append(d)}else f.text(a);SP(f,c,a,s,n),n&&c&&f.append(fg('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),aT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),MP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=MP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=MP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=MP(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),OP=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return dO(t,e),t.prototype.onButtonClick=function(){},t}(AP),kP=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Ek.get(e);null==t&&(t=new Set,Ek.set(e,t)),t.add(this),xk.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=xk.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=xk.get(this);e&&e.emit("modalOrPanelHide")}},e}(),BP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=fg('<div class="w-e-drop-panel"></div>'),n}return dO(t,e),t.prototype.genSelfElem=function(){return null},t}(kP),FP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=DP();o.$button.append(i)}return o}return dO(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=MP(this);if(null==this.dropPanel){var n=new BP(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(AP),TP=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=fg('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return dO(t,e),t.prototype.genSelfElem=function(){var e=this,t=fg('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=xk.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(kP);function _P(e,t,n){var r=fg('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=fg('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function PP(e,t){var n=fg('<div class="button-container"></div>'),r=fg('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var jP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=fg("body"),o.modal=null,o.menu=n,o}return dO(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=MP(this),t=this.menu.getModalPositionNode(e);return np.isElement(t)?F_(e,t,"modal"):B_(e)},t.prototype.handleModal=function(){var e=MP(this),t=this.menu;if(null==this.modal){var n=new TP(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=MP(this),r=this.menu;if(null!=r.getModalContentElem){var o=sB.getTextarea(n),i=sB.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||T_(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(AP),IP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=fg('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return dO(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=fg("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=fg('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=fg('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(fg('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(kP),NP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=fg('<div class="w-e-bar-item"></div>'),this.$button=fg('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),SP(f,s,i,c,n),this.$elem.append(f),this.menu=t,aT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),MP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=MP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new IP(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=fg(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=MP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=MP(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=DP();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=MP(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),LP=function(){function e(e){this.$elem=fg('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=fg('<div class="w-e-bar-item-menus-container"></div>'),this.$button=fg('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=fg(n);xP(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=DP();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){fg(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),RP=new WeakMap;function MP(e){var t=wk.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function zP(e,t,n){void 0===n&&(n=!1);var r=RP.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new FP(e,t,n):a?new jP(e,t,n):new OP(e,t,n)}if("select"===o&&(r=new NP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return RP.set(t,r),r}function $P(e,t){var n=e.selection;return null!=n&&!Sp.isCollapsed(n)&&!sB.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!_p.isText(t)}var HP=function(){function e(){var e=this;this.$elem=fg('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=dm((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&np.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),aT((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),sB.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;aT((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=CP();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=fB[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=zP(e,r);this.hoverbarItems.push(i),wk.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),np.isElement(e)){var r=F_(t,e,"bar");return n.css(r),void T_(t,n)}if(_p.isText(e))return r=B_(t),n.css(r),void T_(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return sB.checkNodeType(t,o)},c=gO(sp.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=mk.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=$P),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=sB.findPath(null,e),r=sB.findPath(null,t);return yp.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function VP(e,t,n,r){if(Ok.set(e,t),kk.set(e,n),np.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return VP(t,n,e,r)})),sp.isVoid(r,e)){var i=gO(pp.texts(e),1),a=gO(i[0],1)[0];Ok.set(a,0),kk.set(a,e)}}}function UP(e){var t,n=e.selector,r=void 0===n?"":n,o=e.config,i=void 0===o?{}:o,a=e.content,u=e.html,s=e.plugins,l=void 0===s?[]:s,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];AC.withoutSaving(t,(()=>{sp.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];AC.withoutSaving(t,(()=>{sp.withoutNormalizing(t,(()=>{var e=r.map(vp.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=AC.isSaving(t),d=AC.isMerging(t);if(null==f&&(f=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),f){if(null==d&&(d=null!=s&&(0!==i.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!yp.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!yp.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=sB.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=sB.getLeftLengthOfMaxLength(t);n<=0||n<pp.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(sB.getLeftLengthOfMaxLength(t)<pp.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=sB.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===Hk.TEXT_NODE?e+(t.textContent||""):n===Hk.ELEMENT_NODE?QT.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"").length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=D_(t);if(r.on(e,n),"destroyed"===e&&S_(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),S_(t,o)}},t.once=function(e,n){D_(t).once(e,n)},t.off=function(e,n){D_(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=D_(t);o.emit.apply(o,vO([e],gO(n))),"destroyed"===e&&(A_(t).forEach((function(e){return o.off("destroyed",e)})),O_(t))},t}(function(e){var t=e;return t.select=function(e){Yp.select(t,e)},t.deselect=function(){var n=t.selection,r=sB.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Yp.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Yp.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Nk.get(t);null!=e&&(t.focus(),Yp.select(t,e))},t.getSelectionPosition=function(){return B_(t)},t.getNodePosition=function(e){return F_(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=gO(Sp.edges(e),2),r=n[0],o=n[1],i=gO(sp.edges(t,[]),2),a=i[0],u=i[1];return!(!Ep.equals(r,a)||!Ep.equals(o,u))},t.selectAll=function(){var e=sp.start(t,[]),n=sp.end(t,[]);Yp.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=hO(sp.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=gO(p.value,2),g=h[0],v=h[1],y=sB.findKey(t,g);f.push([v,y])}}catch(O){n={error:O}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=hO(sp.levels(t,{at:yp.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=gO(b.value,2);g=w[0],v=w[1],y=sB.findKey(t,g),f.push([v,y])}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=hO(sp.levels(t,{at:yp.common(yp.parent(e.path),yp.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var D=gO(x.value,2);g=D[0],v=D[1],y=sB.findKey(t,g),f.push([v,y])}}catch(O){u={error:O}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var C=hO(f),S=C.next();!S.done;S=C.next()){var A=gO(S.value,2);v=A[0],y=A[1],g=gO(sp.node(t,v),1)[0],Pk.set(g,y)}}catch(O){l={error:O}}finally{try{S&&!S.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Sp.isCollapsed(e.selection)){var r=sp.above(e,{match:function(t){return sp.isBlock(e,t)},at:e.selection});if(r){var o=gO(r,2)[1],a=sp.range(e,o,e.selection.anchor),u=function(e,t){var n=sp.range(e,Sp.end(t)),r=Array.from(sp.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(cT(e,sp.range(e,r[o]),n))return sp.range(e,r[o],n);if(r.length<2)return sp.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)cT(e,sp.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return sp.range(e,r[i],n)}(t,a);Sp.isCollapsed(u)||Yp.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&Nk.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return uT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return pp.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":sp.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=sp.nodes(t,{at:[],universal:!0});try{for(var u=hO(a),s=u.next();!s.done;s=u.next()){var l=gO(s.value,1)[0];if(np.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=sT(sB.findKey(t,l).id);i.push(pO(pO({},l),{id:c}))}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(np.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(_p.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Yp.delete(t,{at:{anchor:sp.start(t,[]),focus:sp.end(t,[])}}),0===t.children.length&&Yp.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return sB.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===Hk.TEXT_NODE||t===Hk.ELEMENT_NODE&&!QT.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;sB.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==Hk.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(fT.includes(r.toLowerCase()))s=!0;else for(var l in hT)if(a.matches(l)){s=!0;break}if(s){var c=WT(fg(a),t);return Array.isArray(c)?(c.forEach((function(e){return e_(t,e)})),u++):(e_(t,c),u++),void(sB.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;sB.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&sB.isEmptyPath(t,a)&&Yp.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=qT(t,e);if(Yp.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(sp.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in fB)e.push(t);return e},t.getConfig=function(){var e=Dk.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}((t=t_((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of sp.pathRefs(e))mp.transform(n,t);for(var r of sp.pointRefs(e))xp.transform(r,t);for(var o of sp.rangeRefs(e))Ap.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=md.get(e)||[],l=Ad(t);for(var c of s)u(yp.transform(c,t));for(var f of l)u(f);md.set(e,a),Yp.transform(e,t),e.operations.push(t),sp.normalize(e),"set_selection"===t.type&&(e.marks=null),bd.get(e)||(bd.set(e,!0),Promise.resolve().then((()=>{bd.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Sp.isExpanded(r))Yp.setNodes(e,{[t]:n},{match:_p.isText,split:!0});else{var o=Sd(Sd({},sp.marks(e)||{}),{},{[t]:n});e.marks=o,bd.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Sp.isCollapsed(n)&&Yp.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Sp.isCollapsed(n)&&Yp.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Sp.isExpanded(n)&&Yp.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?pp.fragment(e,t):[]},insertBreak:()=>{Yp.splitNodes(e,{always:!0})},insertFragment:t=>{Yp.insertFragment(e,t)},insertNode:t=>{Yp.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Sd({text:t},r);Yp.insertNodes(e,o)}else Yp.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!_p.isText(n))if(np.isElement(n)&&0===n.children.length)Yp.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!sp.isEditor(n)&&np.isElement(n)&&(e.isInline(n)||0===n.children.length||_p.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=pp.get(e,r);if(!_p.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(_p.isText(s)||np.isElement(s)&&e.isInline(s))!==o?(Yp.removeNodes(e,{at:r.concat(i),voids:!0}),i--):np.isElement(s)?e.isInline(s)&&(null!=l&&_p.isText(l)?c&&(Yp.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Yp.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&_p.isText(l)&&(_p.equals(s,l,{loose:!0})?(Yp.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Yp.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Yp.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Sp.isExpanded(n))Yp.unsetNodes(e,t,{match:_p.isText,split:!0});else{var r=Sd({},sp.marks(e)||{});delete r[t],e.marks=r,bd.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+lB++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(sB.toDOMNode(t,t).focus({preventScroll:!0}),Ik.set(t,!0),e){var n=sp.end(t,[]);Yp.select(t,n)}else{var r=Nk.get(t);r?Yp.select(t,r):Yp.select(t,sp.start(t,[]))}},t.isFocused=function(){return!!Ik.get(t)},t.blur=function(){sB.toDOMNode(t,t).blur(),Yp.deselect(t),Ik.set(t,!1)},t.updateView=function(){sB.getTextarea(t).changeViewState();var e=sB.getToolbar(t);e&&e.changeToolbarState();var n=sB.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=sB.getTextarea(t);e.destroy(),hk.delete(t),gk.delete(e);var n=sB.getToolbar(t);n&&(n.destroy(),yk.delete(t),vk.delete(n));var r=sB.getHoverbar(t);r&&(r.destroy(),bk.delete(t),mk.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=fg("#"+e);if(0!==r.length){var o=r[0];if(!sB.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=sB.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||sB.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Ek.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return sB.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=sB.getToolbar(t);n&&(e=n.$box);var r=sB.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=sB.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return sB.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return GT(e,"data-w-e-textarea",t)}(c,r))throw new Error("Repeated create editor by selector '"+r+"'");var f=function(e){void 0===e&&(e={});var t=pm(cB),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return iv(t,(function(e,t){n[t]=pO(pO({},e),o[t]||{})})),delete e.MENU_CONF,pO({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(i);Dk.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=qT(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),sB.normalizeContent(c),r){var h=new EP(r);hk.set(c,h),gk.set(h,c),h.changeViewState(),aT((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var g=void 0;Object.keys(p).length>0&&(g=new HP,mk.set(g,c),bk.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return VP(e,t,c,c)}));var v=f.onCreated,y=f.onDestroyed;return v&&c.on("created",(function(){return v(c)})),y&&c.on("destroyed",(function(){return y(c)})),aT((function(){return c.emit("created")})),c}var WP=hA("splice"),GP=mE.TypeError,qP=Math.max,KP=Math.min;bC({target:"Array",proto:!0,forced:!WP},{splice:function(e,t){var n,r,o,i,a,u,s=TE(this),l=xD(s),c=JD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=KP(qP(bD(t),0),l-c)),l+n-r>9007199254740991)throw GP("Maximum allowed length exceeded");for(o=jD(s,r),i=0;i<r;i++)(a=c+i)in s&&cS(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var XP=function(){function e(e,t){var n=this;this.$toolbar=fg('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=dm((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=fg(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),aT((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=pm(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=CP();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new LP(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof LP,o=this.menus,i=o[e];if(null==i){var a=fB[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=zP(e,i,r);this.toolbarItems.push(u),wk.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=vk.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),YP=Jx.EXISTS,ZP=kx.f,JP=Function.prototype,QP=OE(JP.toString),ej=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,tj=OE(ej.exec);function nj(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,x=void 0===E?function(e,t){}:E,D=e.onError,C=void 0===D?function(e,t,n){console.error(e.name+" upload error",t,n)}:D,S=e.onProgress,A=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=gO(e.split("#"),2),r=n[0],o=n[1],i=[];iv(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new $b({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(dE,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(o){console.error("wangEditor upload file - onSuccess error",o)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(r){console.error("wangEditor upload file - onError error",r)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(n){console.error("wangEditor upload file - onError error",n)}k.removeFile(e.id)})),k}function rj(e){return(rj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){oj(e,t,n[t])}))}return e}function aj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sj(e,t,n){return t&&uj(e.prototype,t),n&&uj(e,n),e}function lj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cj(e,t){if(t&&("object"===rj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lj(e)}function fj(e){return(fj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dj(e,t){return(dj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pj(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dj(e,t)}rx&&!YP&&ZP(JP,"name",{configurable:!0,get:function(){try{return tj(ej,QP(this))[1]}catch(cf){return""}}});var hj={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},gj=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};aj(this,e),this.init(t,n)}return sj(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||hj,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,ij({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),vj=function(){function e(){aj(this,e),this.observers={}}return sj(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function yj(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function mj(e){return null==e?"":""+e}function bj(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function wj(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Ej(e,t,n){var r=wj(e,t,Object);r.obj[r.k]=n}function xj(e,t){var n=wj(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Dj(e,t,n){var r=xj(e,n);return void 0!==r?r:xj(t,n)}function Cj(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Cj(e[r],t[r],n):e[r]=t[r]);return e}function Sj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Aj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Oj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Aj[e]})):e}var kj="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Bj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?Bj(s,l,n):void 0}o=o[r[i]]}return o}}var Fj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return aj(this,t),n=cj(this,fj(t).call(this)),kj&&vj.call(lj(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return pj(t,vj),sj(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=xj(this.data,a);return u||!i||"string"!=typeof n?u:Bj(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Ej(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=xj(this.data,a)||{};r?Cj(u,n,o):u=ij({},u,n),Ej(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?ij({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),Tj={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},_j={},Pj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return aj(this,t),n=cj(this,fj(t).call(this)),kj&&vj.call(lj(n)),bj(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,lj(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=gj.create("translator"),n}return pj(t,vj),sj(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==rj(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,ij({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===y,D=x?[]:{},C=x?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var A="".concat(C).concat(i).concat(S);D[S]=this.translate(A,ij({},n,{joinArrays:!1,ns:s})),D[S]===A&&(D[S]=h[S])}h=D}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,I=F&&_!==h&&this.options.updateMissing;if(k||O||I){if(this.logger.log(I?"updateKey":"missingKey",c,l,u,I?_:h),i){var N=this.resolve(u,ij({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,I?r:j,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,I?r:j,I,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(ij({},n,{interpolation:ij({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=ij({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Tj.handle(d,e,t,this.options&&this.options.postProcessPassResolved?ij({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!_j["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(_j["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function jj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ij=function(){function e(t){aj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gj.create("languageUtils")}return sj(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=jj(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=jj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=jj(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Nj=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Lj={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Rj(){var e={};return Nj.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Lj[t.fc]}}))})),e}var Mj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};aj(this,e),this.languageUtils=t,this.options=n,this.logger=gj.create("pluralResolver"),this.rules=Rj()}return sj(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),zj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};aj(this,e),this.logger=gj.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return sj(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Oj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Sj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Sj(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Sj(t.nestingPrefix):t.nestingPrefixEscaped||Sj("$t("),this.nestingSuffix=t.nestingSuffix?Sj(t.nestingSuffix):t.nestingSuffixEscaped||Sj(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=Dj(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,ij({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(Dj(t,s,a),l,n,ij({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=mj(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ij({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=ij({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=mj(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,ij({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),$j=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return aj(this,t),o=cj(this,fj(t).call(this)),kj&&vj.call(lj(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=gj.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return pj(t,vj),sj(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,l,c;r=n.loaded,u=i,s=wj(r,[o],Object),l=s.obj,c=s.k,l[c]=l[c]||[],l[c].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,ij({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Hj(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===rj(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===rj(e[2])||"object"===rj(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Vj(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Uj(){}var Wj=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(aj(this,t),e=cj(this,fj(t).call(this)),kj&&vj.call(lj(e)),e.options=Vj(n),e.services={},e.logger=gj,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),cj(e,lj(e));setTimeout((function(){e.init(n,r)}),0)}return e}return pj(t,vj),sj(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=ij({},Hj(),this.options,Vj(t)),this.format=this.options.interpolation.format,n||(n=Uj),!this.options.isClone){this.modules.logger?gj.init(r(this.modules.logger),this.options):gj.init(null,this.options);var o=new Ij(this.options);this.store=new Fj(this.options.resources,this.options);var i=this.services;i.logger=gj,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Mj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new zj(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new $j(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Pj(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=yj(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uj,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=yj();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Uj),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Tj.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=yj();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){var o,a;o=e,(a=i)?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(o,(function(){return n.t.apply(n,arguments)}))}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==rj(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=ij({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=yj();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=yj();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uj,o=ij({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=ij({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Pj(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),Gj=new Wj;function qj(e,t){Gj.addResourceBundle(e,"translation",t,!0,!0)}Gj.init({lng:"zh-CN",resources:{}});var Kj=Gj.t.bind(Gj);qj("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),qj("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Xj=Nu?{}.toString:function(){return"[object "+zu(this)+"]"};Nu||ru(Object.prototype,"toString",Xj,{unsafe:!0});var Yj,Zj=Array.isArray||function(e){return"Array"==Ai(e)},Jj=function(){},Qj=[],eI=Ni("Reflect","construct"),tI=/^\s*(?:class|function)\b/,nI=Di(tI.exec),rI=!tI.exec(Jj),oI=function(e){if(!Pi(e))return!1;try{return eI(Jj,Qj,e),!0}catch(t){return!1}},iI=!eI||ci((function(){var e;return oI(oI.call)||!oI(Object)||!oI((function(){e=!0}))||e}))?function(e){if(!Pi(e))return!1;switch(zu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rI||!!nI(tI,Ma(e))}:oI,aI=va("species"),uI=li.Array,sI=function(e,t){return new(Zj(n=e)&&(r=n.constructor,(iI(r)&&(r===uI||Zj(r.prototype))||ji(r)&&null===(r=r[aI]))&&(r=void 0)),void 0===r?uI:r)(0===t?0:t);var n,r},lI=Di([].push),cI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=ia(s),g=Bi(h),v=Js(l,c),y=du(g),m=0,b=f||sI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:lI(w,d)}else switch(e){case 4:return!1;case 7:lI(w,d)}return i?-1:r||o?o:w}},fI=[cI(0),cI(1),cI(2),cI(3),cI(4),cI(5),cI(6),cI(7)][0],dI=!!(Yj=[].forEach)&&ci((function(){Yj.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return fI(this,e,arguments.length>1?arguments[1]:void 0)},pI=function(e){if(e&&e.forEach!==dI)try{ja(e,"forEach",dI)}catch(t){e.forEach=dI}};for(var hI in Gl)Gl[hI]&&pI(li[hI]&&li[hI].prototype);pI(Xl),qj("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),qj("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var gI={type:"paragraph",renderElem:function(e,t,n){return ey("p",null,t)}},vI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function yI(e){var t={exports:{}};return e(t,t.exports),t.exports}var mI,bI,wI=function(e){return e&&e.Math==Math&&e},EI=wI("object"==typeof globalThis&&globalThis)||wI("object"==typeof window&&window)||wI("object"==typeof self&&self)||wI("object"==typeof vI&&vI)||function(){return this}()||Function("return this")(),xI=function(e){try{return!!e()}catch(t){return!0}},DI=!xI((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),CI=Function.prototype.call,SI=CI.bind?CI.bind(CI):function(){return CI.apply(CI,arguments)},AI={}.propertyIsEnumerable,OI=Object.getOwnPropertyDescriptor,kI=OI&&!AI.call({1:2},1)?function(e){var t=OI(this,e);return!!t&&t.enumerable}:AI,BI={f:kI},FI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},TI=Function.prototype,_I=TI.bind,PI=TI.call,jI=_I&&_I.bind(PI),II=_I?function(e){return e&&jI(PI,e)}:function(e){return e&&function(){return PI.apply(e,arguments)}},NI=II({}.toString),LI=II("".slice),RI=function(e){return LI(NI(e),8,-1)},MI=EI.Object,zI=II("".split),$I=xI((function(){return!MI("z").propertyIsEnumerable(0)}))?function(e){return"String"==RI(e)?zI(e,""):MI(e)}:MI,HI=EI.TypeError,VI=function(e){if(null==e)throw HI("Can't call method on "+e);return e},UI=function(e){return $I(VI(e))},WI=function(e){return"function"==typeof e},GI=function(e){return"object"==typeof e?null!==e:WI(e)},qI=function(e){return WI(e)?e:void 0},KI=function(e,t){return arguments.length<2?qI(EI[e]):EI[e]&&EI[e][t]},XI=II({}.isPrototypeOf),YI=KI("navigator","userAgent")||"",ZI=EI.process,JI=EI.Deno,QI=ZI&&ZI.versions||JI&&JI.version,eN=QI&&QI.v8;eN&&(bI=(mI=eN.split("."))[0]>0&&mI[0]<4?1:+(mI[0]+mI[1])),!bI&&YI&&(!(mI=YI.match(/Edge\/(\d+)/))||mI[1]>=74)&&(mI=YI.match(/Chrome\/(\d+)/))&&(bI=+mI[1]);var tN=bI,nN=!!Object.getOwnPropertySymbols&&!xI((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tN&&tN<41})),rN=nN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oN=EI.Object,iN=rN?function(e){return"symbol"==typeof e}:function(e){var t=KI("Symbol");return WI(t)&&XI(t.prototype,oN(e))},aN=EI.String,uN=function(e){try{return aN(e)}catch(t){return"Object"}},sN=EI.TypeError,lN=function(e){if(WI(e))return e;throw sN(uN(e)+" is not a function")},cN=function(e,t){var n=e[t];return null==n?void 0:lN(n)},fN=EI.TypeError,dN=Object.defineProperty,pN=function(e,t){try{dN(EI,e,{value:t,configurable:!0,writable:!0})}catch(Yj){EI[e]=t}return t},hN=EI["__core-js_shared__"]||pN("__core-js_shared__",{}),gN=yI((function(e){(e.exports=function(e,t){return hN[e]||(hN[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vN=EI.Object,yN=function(e){return vN(VI(e))},mN=II({}.hasOwnProperty),bN=Object.hasOwn||function(e,t){return mN(yN(e),t)},wN=0,EN=Math.random(),xN=II(1..toString),DN=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xN(++wN+EN,36)},CN=gN("wks"),SN=EI.Symbol,AN=SN&&SN.for,ON=rN?SN:SN&&SN.withoutSetter||DN,kN=function(e){if(!bN(CN,e)||!nN&&"string"!=typeof CN[e]){var t="Symbol."+e;nN&&bN(SN,e)?CN[e]=SN[e]:CN[e]=rN&&AN?AN(t):ON(t)}return CN[e]},BN=EI.TypeError,FN=kN("toPrimitive"),TN=function(e){var t=function(e,t){if(!GI(e)||iN(e))return e;var n,r=cN(e,FN);if(r){if(void 0===t&&(t="default"),n=SI(r,e,t),!GI(n)||iN(n))return n;throw BN("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&WI(n=e.toString)&&!GI(r=SI(n,e)))return r;if(WI(n=e.valueOf)&&!GI(r=SI(n,e)))return r;if("string"!==t&&WI(n=e.toString)&&!GI(r=SI(n,e)))return r;throw fN("Can't convert object to primitive value")}(e,t)}(e,"string");return iN(t)?t:t+""},_N=EI.document,PN=GI(_N)&&GI(_N.createElement),jN=function(e){return PN?_N.createElement(e):{}},IN=!DI&&!xI((function(){return 7!=Object.defineProperty(jN("div"),"a",{get:function(){return 7}}).a})),NN=Object.getOwnPropertyDescriptor,LN={f:DI?NN:function(e,t){if(e=UI(e),t=TN(t),IN)try{return NN(e,t)}catch(n){}if(bN(e,t))return FI(!SI(BI.f,e,t),e[t])}},RN=EI.String,MN=EI.TypeError,zN=function(e){if(GI(e))return e;throw MN(RN(e)+" is not an object")},$N=EI.TypeError,HN=Object.defineProperty,VN={f:DI?HN:function(e,t,n){if(zN(e),t=TN(t),zN(n),IN)try{return HN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw $N("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},UN=DI?function(e,t,n){return VN.f(e,t,FI(1,n))}:function(e,t,n){return e[t]=n,e},WN=II(Function.toString);WI(hN.inspectSource)||(hN.inspectSource=function(e){return WN(e)});var GN,qN,KN,XN=hN.inspectSource,YN=EI.WeakMap,ZN=WI(YN)&&/native code/.test(XN(YN)),JN=gN("keys"),QN=function(e){return JN[e]||(JN[e]=DN(e))},eL={},tL=EI.TypeError,nL=EI.WeakMap;if(ZN||hN.state){var rL=hN.state||(hN.state=new nL),oL=II(rL.get),iL=II(rL.has),aL=II(rL.set);GN=function(e,t){if(iL(rL,e))throw new tL("Object already initialized");return t.facade=e,aL(rL,e,t),t},qN=function(e){return oL(rL,e)||{}},KN=function(e){return iL(rL,e)}}else{var uL=QN("state");eL[uL]=!0,GN=function(e,t){if(bN(e,uL))throw new tL("Object already initialized");return t.facade=e,UN(e,uL,t),t},qN=function(e){return bN(e,uL)?e[uL]:{}},KN=function(e){return bN(e,uL)}}var sL={set:GN,get:qN,has:KN,enforce:function(e){return KN(e)?qN(e):GN(e,{})},getterFor:function(e){return function(t){var n;if(!GI(t)||(n=qN(t)).type!==e)throw tL("Incompatible receiver, "+e+" required");return n}}},lL=Function.prototype,cL=DI&&Object.getOwnPropertyDescriptor,fL=bN(lL,"name"),dL={EXISTS:fL,PROPER:fL&&"something"===function(){}.name,CONFIGURABLE:fL&&(!DI||DI&&cL(lL,"name").configurable)},pL=yI((function(e){var t=dL.CONFIGURABLE,n=sL.get,r=sL.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;WI(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!bN(i,"name")||t&&i.name!==f)&&UN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==EI?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:UN(e,n,i)):l?e[n]=i:pN(n,i)})(Function.prototype,"toString",(function(){return WI(this)&&n(this).source||XN(this)}))})),hL=Math.ceil,gL=Math.floor,vL=function(e){var t=+e;return t!=t||0===t?0:(t>0?gL:hL)(t)},yL=Math.max,mL=Math.min,bL=function(e,t){var n=vL(e);return n<0?yL(n+t,0):mL(n,t)},wL=Math.min,EL=function(e){return e>0?wL(vL(e),9007199254740991):0},xL=function(e){return EL(e.length)},DL=function(e){return function(t,n,r){var o,i=UI(t),a=xL(i),u=bL(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},CL={includes:DL(!0),indexOf:DL(!1)},SL=CL.indexOf,AL=II([].push),OL=function(e,t){var n,r=UI(e),o=0,i=[];for(n in r)!bN(eL,n)&&bN(r,n)&&AL(i,n);for(;t.length>o;)bN(r,n=t[o++])&&(~SL(i,n)||AL(i,n));return i},kL=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BL=kL.concat("length","prototype"),FL={f:Object.getOwnPropertyNames||function(e){return OL(e,BL)}},TL={f:Object.getOwnPropertySymbols},_L=II([].concat),PL=KI("Reflect","ownKeys")||function(e){var t=FL.f(zN(e)),n=TL.f;return n?_L(t,n(e)):t},jL=function(e,t){for(var n=PL(t),r=VN.f,o=LN.f,i=0;i<n.length;i++){var a=n[i];bN(e,a)||r(e,a,o(t,a))}},IL=/#|\.prototype\./,NL=function(e,t){var n=RL[LL(e)];return n==zL||n!=ML&&(WI(t)?xI(t):!!t)},LL=NL.normalize=function(e){return String(e).replace(IL,".").toLowerCase()},RL=NL.data={},ML=NL.NATIVE="N",zL=NL.POLYFILL="P",$L=NL,HL=LN.f,VL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?EI:l?EI[u]||pN(u,{}):(EI[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=HL(n,r))&&a.value:n[r],!$L(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jL(i,o)}(e.sham||o&&o.sham)&&UN(i,"sham",!0),pL(n,r,i,e)}},UL=II(II.bind),WL=Array.isArray||function(e){return"Array"==RI(e)},GL={};GL[kN("toStringTag")]="z";var qL="[object z]"===String(GL),KL=kN("toStringTag"),XL=EI.Object,YL="Arguments"==RI(function(){return arguments}()),ZL=qL?RI:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=XL(e),KL))?n:YL?RI(t):"Object"==(r=RI(t))&&WI(t.callee)?"Arguments":r},JL=function(){},QL=[],eR=KI("Reflect","construct"),tR=/^\s*(?:class|function)\b/,nR=II(tR.exec),rR=!tR.exec(JL),oR=function(e){if(!WI(e))return!1;try{return eR(JL,QL,e),!0}catch(t){return!1}},iR=!eR||xI((function(){var e;return oR(oR.call)||!oR(Object)||!oR((function(){e=!0}))||e}))?function(e){if(!WI(e))return!1;switch(ZL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rR||!!nR(tR,XN(e))}:oR,aR=kN("species"),uR=EI.Array,sR=function(e,t){return new(WL(n=e)&&(r=n.constructor,(iR(r)&&(r===uR||WL(r.prototype))||GI(r)&&null===(r=r[aR]))&&(r=void 0)),void 0===r?uR:r)(0===t?0:t);var n,r},lR=II([].push),cR=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=yN(s),g=$I(h),v=function(e,t){return lN(e),void 0===t?e:UL?UL(e,t):function(){return e.apply(t,arguments)}}(l,c),y=xL(g),m=0,b=f||sR,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:lR(w,d)}else switch(e){case 4:return!1;case 7:lR(w,d)}return i?-1:r||o?o:w}},fR={forEach:cR(0),map:cR(1),filter:cR(2),some:cR(3),every:cR(4),find:cR(5),findIndex:cR(6),filterReject:cR(7)},dR=kN("species"),pR=function(e){return tN>=51||!xI((function(){var t=[];return(t.constructor={})[dR]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},hR=fR.filter;VL({target:"Array",proto:!0,forced:!pR("filter")},{filter:function(e){return hR(this,e,arguments.length>1?arguments[1]:void 0)}});var gR=qL?{}.toString:function(){return"[object "+ZL(this)+"]"};qL||pL(Object.prototype,"toString",gR,{unsafe:!0});var vR,yR=EI.String,mR=function(e){if("Symbol"===ZL(e))throw TypeError("Cannot convert a Symbol value to a string");return yR(e)},bR=function(){var e=zN(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wR=EI.RegExp,ER=xI((function(){var e=wR("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),xR=ER||xI((function(){return!wR("a","y").sticky})),DR={BROKEN_CARET:ER||xI((function(){var e=wR("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:xR,UNSUPPORTED_Y:ER},CR=Object.keys||function(e){return OL(e,kL)},SR=DI?Object.defineProperties:function(e,t){zN(e);for(var n,r=UI(t),o=CR(t),i=o.length,a=0;i>a;)VN.f(e,n=o[a++],r[n]);return e},AR=KI("document","documentElement"),OR=QN("IE_PROTO"),kR=function(){},BR=function(e){return"<script>"+e+"<\/script>"},FR=function(e){e.write(BR("")),e.close();var t=e.parentWindow.Object;return e=null,t},TR=function(){try{vR=new ActiveXObject("htmlfile")}catch(r){}var e,t;TR="undefined"!=typeof document?document.domain&&vR?FR(vR):((t=jN("iframe")).style.display="none",AR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(BR("document.F=Object")),e.close(),e.F):FR(vR);for(var n=kL.length;n--;)delete TR.prototype[kL[n]];return TR()};eL[OR]=!0;var _R,PR,jR=Object.create||function(e,t){var n;return null!==e?(kR.prototype=zN(e),n=new kR,kR.prototype=null,n[OR]=e):n=TR(),void 0===t?n:SR(n,t)},IR=EI.RegExp,NR=xI((function(){var e=IR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),LR=EI.RegExp,RR=xI((function(){var e=LR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),MR=sL.get,zR=gN("native-string-replace",String.prototype.replace),$R=RegExp.prototype.exec,HR=$R,VR=II("".charAt),UR=II("".indexOf),WR=II("".replace),GR=II("".slice),qR=(PR=/b*/g,SI($R,_R=/a/,"a"),SI($R,PR,"a"),0!==_R.lastIndex||0!==PR.lastIndex),KR=DR.BROKEN_CARET,XR=void 0!==/()??/.exec("")[1];(qR||XR||KR||NR||RR)&&(HR=function(e){var t,n,r,o,i,a,u,s=this,l=MR(s),c=mR(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=SI(HR,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=KR&&s.sticky,h=SI(bR,s),g=s.source,v=0,y=c;if(p&&(h=WR(h,"y",""),-1===UR(h,"g")&&(h+="g"),y=GR(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==VR(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),XR&&(n=new RegExp("^"+g+"$(?!\\s)",h)),qR&&(r=s.lastIndex),o=SI($R,p?n:s,y),p?o?(o.input=GR(o.input,v),o[0]=GR(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qR&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),XR&&o&&o.length>1&&SI(zR,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=jR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var YR=HR;VL({target:"RegExp",proto:!0,forced:/./.exec!==YR},{exec:YR});var ZR=Function.prototype,JR=ZR.apply,QR=ZR.bind,eM=ZR.call,tM="object"==typeof Reflect&&Reflect.apply||(QR?eM.bind(JR):function(){return eM.apply(JR,arguments)}),nM=kN("species"),rM=RegExp.prototype,oM=function(e,t,n,r){var o=kN(e),i=!xI((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!xI((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[nM]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=II(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=II(e),s=t.exec;return s===YR||s===rM.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));pL(String.prototype,e,s[0]),pL(rM,o,s[1])}r&&UN(rM[o],"sham",!0)},iM=II("".charAt),aM=II("".charCodeAt),uM=II("".slice),sM=function(e){return function(t,n){var r,o,i=mR(VI(t)),a=vL(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=aM(i,a))<55296||r>56319||a+1===u||(o=aM(i,a+1))<56320||o>57343?e?iM(i,a):r:e?uM(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),lM=function(e,t,n){return t+(n?sM(e,t).length:1)},cM=Math.floor,fM=II("".charAt),dM=II("".replace),pM=II("".slice),hM=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gM=/\$([$&'`]|\d{1,2})/g,vM=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=gM;return void 0!==o&&(o=yN(o),s=hM),dM(i,s,(function(i,s){var l;switch(fM(s,0)){case"$":return"$";case"&":return e;case"`":return pM(t,0,n);case"'":return pM(t,a);case"<":l=o[pM(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=cM(c/10);return 0===f?i:f<=u?void 0===r[f-1]?fM(s,1):r[f-1]+fM(s,1):i}l=r[c-1]}return void 0===l?"":l}))},yM=EI.TypeError,mM=function(e,t){var n=e.exec;if(WI(n)){var r=SI(n,e,t);return null!==r&&zN(r),r}if("RegExp"===RI(e))return SI(YR,e,t);throw yM("RegExp#exec called on incompatible receiver")},bM=kN("replace"),wM=Math.max,EM=Math.min,xM=II([].concat),DM=II([].push),CM=II("".indexOf),SM=II("".slice),AM="$0"==="a".replace(/./,"$0"),OM=!!/./[bM]&&""===/./[bM]("a","$0");oM("replace",(function(e,t,n){var r=OM?"$":"$0";return[function(e,n){var r=VI(this),o=null==e?void 0:cN(e,bM);return o?SI(o,e,r,n):SI(t,mR(r),e,n)},function(e,o){var i=zN(this),a=mR(e);if("string"==typeof o&&-1===CM(o,r)&&-1===CM(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=WI(o);s||(o=mR(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=mM(i,a);if(null===d)break;if(DM(f,d),!l)break;""===mR(d[0])&&(i.lastIndex=lM(a,EL(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=mR((d=f[v])[0]),m=wM(EM(vL(d.index),a.length),0),b=[],w=1;w<d.length;w++)DM(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=xM([y],b,m,a);void 0!==E&&DM(x,E);var D=mR(tM(o,void 0,x))}else D=vM(y,a,m,b,E,o);m>=g&&(h+=SM(a,g,m)+D,g=m+y.length)}return h+SM(a,g)}]}),!!xI((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!AM||OM);var kM=kN("unscopables"),BM=Array.prototype;null==BM[kM]&&VN.f(BM,kM,{configurable:!0,value:jR(null)});var FM=function(e){BM[kM][e]=!0},TM=fR.find,_M=!0;"find"in[]&&Array(1).find((function(){_M=!1})),VL({target:"Array",proto:!0,forced:_M},{find:function(e){return TM(this,e,arguments.length>1?arguments[1]:void 0)}}),FM("find");var PM=kN("match"),jM=function(e){var t;return GI(e)&&(void 0!==(t=e[PM])?!!t:"RegExp"==RI(e))},IM=EI.TypeError,NM=kN("species"),LM=function(e,t,n){var r=TN(t);r in e?VN.f(e,r,FI(0,n)):e[r]=n},RM=EI.Array,MM=Math.max,zM=function(e,t,n){for(var r=xL(e),o=bL(t,r),i=bL(void 0===n?r:n,r),a=RM(MM(i-o,0)),u=0;o<i;o++,u++)LM(a,u,e[o]);return a.length=u,a},$M=DR.UNSUPPORTED_Y,HM=Math.min,VM=[].push,UM=II(/./.exec),WM=II(VM),GM=II("".slice);oM("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=mR(VI(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!jM(e))return SI(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=SI(YR,f,r))&&!((a=f.lastIndex)>c&&(WM(s,GM(r,c,i.index)),i.length>1&&i.index<r.length&&tM(VM,s,zM(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&UM(f,"")||WM(s,""):WM(s,GM(r,c)),s.length>o?zM(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:SI(t,this,e,n)}:t,[function(t,n){var o=VI(this),i=null==t?void 0:cN(t,e);return i?SI(i,t,o,n):SI(r,mR(o),t,n)},function(e,o){var i=zN(this),a=mR(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=zN(i).constructor)||null==(l=zN(c)[NM])?s:function(e){if(iR(e))return e;throw IM(uN(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+($M?"g":"y"),h=new f($M?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===mM(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=$M?0:y;var b,w=mM(h,$M?GM(a,y):a);if(null===w||(b=HM(EL(h.lastIndex+($M?y:0)),a.length))===v)y=lM(a,y,d);else{if(WM(m,GM(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(WM(m,w[E]),m.length===g)return m;y=v=b}}return WM(m,GM(a,v)),m}]}),!!xI((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),$M);var qM="\t\n\v\f\r                 \u2028\u2029\ufeff",KM=II("".replace),XM="["+qM+"]",YM=RegExp("^"+XM+XM+"*"),ZM=RegExp(XM+XM+"*$"),JM=function(e){return function(t){var n=mR(VI(t));return 1&e&&(n=KM(n,YM,"")),2&e&&(n=KM(n,ZM,"")),n}},QM={start:JM(1),end:JM(2),trim:JM(3)},ez=dL.PROPER,tz=QM.trim;function nz(e){return 0===fg("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function rz(e){return 0===e.length?"":e[0].outerHTML}function oz(e){return e.length?e[0].tagName.toLowerCase():""}function iz(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}VL({target:"String",proto:!0,forced:xI((function(){return!!qM.trim()||"​…᠎"!=="​…᠎".trim()||ez&&"trim"!==qM.trim.name}))},{trim:function(){return tz(this)}}),VL({global:!0},{globalThis:EI}),Ag&&(fg.fn.css=Ag),_g&&(fg.fn.append=_g),Pg&&(fg.fn.prepend=Pg),dg&&(fg.fn.addClass=dg),pg&&(fg.fn.removeClass=pg),hg&&(fg.fn.hasClass=hg),bg&&(fg.fn.on=bg),wg&&(fg.fn.off=wg),Vg&&(fg.fn.focus=Vg),gg&&(fg.fn.attr=gg),vg&&(fg.fn.removeAttr=vg),Cg&&(fg.fn.hide=Cg),Sg&&(fg.fn.show=Sg),Ig&&(fg.fn.parents=Ig),yg&&(fg.fn.dataset=yg),mg&&(fg.fn.val=mg),Fg&&(fg.fn.text=Fg),Bg&&(fg.fn.html=Bg),Lg&&(fg.fn.children=Lg),Rg&&(fg.fn.remove=Rg),Ng&&(fg.fn.find=Ng),Eg&&(fg.fn.width=Eg),xg&&(fg.fn.height=xg),kg&&(fg.fn.filter=kg),Mg&&(fg.fn.empty=Mg);var az={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e);return 0===(t=t.filter((function(e){return!!_p.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},uz=function(e,t){return uz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},uz(e,t);
  38. /*! *****************************************************************************
  39. Copyright (c) Microsoft Corporation.
  40. Permission to use, copy, modify, and/or distribute this software for any
  41. purpose with or without fee is hereby granted.
  42. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  43. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  44. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  45. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  46. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  47. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  48. PERFORMANCE OF THIS SOFTWARE.
  49. ***************************************************************************** */};function sz(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}uz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lz=function(){return lz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lz.apply(this,arguments)};function cz(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function fz(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function dz(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pz(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function hz(e){var t=pz(sp.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!np.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==pp.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!_p.isText(o[0])&&(Yp.setNodes(e,{type:"paragraph"}),!0)}var gz={renderElems:[gI],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[az],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){hz(r)||t(e)},r.deleteForward=function(e){hz(r)||n(e)},r}},vz=/"/g,yz=II("".replace),mz=function(e,t,n,r){var o=mR(VI(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+yz(mR(r),vz,"&quot;")+'"'),i+">"+o+"</"+t+">"},bz=function(e){return xI((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function wz(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Ez(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}VL({target:"String",proto:!0,forced:bz("bold")},{bold:function(){return mz(this,"b","","")}}),VL({target:"String",proto:!0,forced:bz("italics")},{italics:function(){return mz(this,"i","","")}}),VL({target:"String",proto:!0,forced:bz("sub")},{sub:function(){return mz(this,"sub","","")}}),VL({target:"String",proto:!0,forced:bz("sup")},{sup:function(){return mz(this,"sup","","")}});var xz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Dz=jN("span").classList,Cz=Dz&&Dz.constructor&&Dz.constructor.prototype,Sz=Cz===Object.prototype?void 0:Cz,Az=function(e,t){var n=[][e];return!!n&&xI((function(){n.call(null,t||function(){throw 1},1)}))},Oz=fR.forEach,kz=Az("forEach")?[].forEach:function(e){return Oz(this,e,arguments.length>1?arguments[1]:void 0)},Bz=function(e){if(e&&e.forEach!==kz)try{UN(e,"forEach",kz)}catch(t){e.forEach=kz}};for(var Fz in xz)xz[Fz]&&Bz(EI[Fz]&&EI[Fz].prototype);function Tz(e,t){return null==e.selection||!!pz(sp.nodes(e,{match:function(t){return"pre"===sB.getNodeType(t)||!!sp.isVoid(e,t)},universal:!0}),1)[0]}function _z(e,t){Object.keys(t).forEach((function(t){"text"!==t&&sp.removeMark(e,t)}))}Bz(Sz),VL({target:"Object",stat:!0,forced:xI((function(){CR(1)}))},{keys:function(e){return CR(yN(e))}});var Pz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=sp.marks(e);return n?n[t]:!!pz(sp.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return Tz(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),jz='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',Iz='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',Nz='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Lz='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Rz='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',Mz='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',zz='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',$z='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',Hz='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',Vz='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Uz='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',Wz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Gz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',qz='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Kz='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Xz='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Yz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Zz='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Jz='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Kj("textStyle.bold"),t.iconSvg=jz,t.hotkey="mod+b",t}return sz(t,e),t}(Pz),e$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Kj("textStyle.code"),t.iconSvg=Rz,t.hotkey="mod+e",t}return sz(t,e),t}(Pz),t$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Kj("textStyle.italic"),t.iconSvg=Nz,t.hotkey="mod+i",t}return sz(t,e),t}(Pz),n$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Kj("textStyle.through"),t.iconSvg=Lz,t.hotkey="mod+shift+x",t}return sz(t,e),t}(Pz),r$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Kj("textStyle.underline"),t.iconSvg=Iz,t.hotkey="mod+u",t}return sz(t,e),t}(Pz),o$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Kj("textStyle.sub"),t.iconSvg=Jz,t.hotkey="",t}return sz(t,e),t}(Pz),i$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Kj("textStyle.sup"),t.iconSvg=Zz,t.hotkey="",t}return sz(t,e),t}(Pz),a$=function(){function e(){this.title=Kj("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Tz(e)},e.prototype.exec=function(e,t){var n,r,o=sp.nodes(e,{match:function(e){return _p.isText(e)},universal:!0});try{for(var i=dz(o),a=i.next();!a.done;a=i.next())_z(e,a.value[0])}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),u$={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=ey("strong",null,c)),a&&(c=ey("code",null,c)),o&&(c=ey("em",null,c)),i&&(c=ey("u",null,c)),u&&(c=ey("s",null,c)),s&&(c=ey("sub",null,c)),l&&(c=ey("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Qz}},{key:"underline",factory:function(){return new r$}},{key:"italic",factory:function(){return new t$}},{key:"through",factory:function(){return new n$}},{key:"code",factory:function(){return new e$}},{key:"sub",factory:function(){return new o$}},{key:"sup",factory:function(){return new i$}},{key:"clearStyle",factory:function(){return new a$}}],styleToHtml:function(e,t){if(!_p.isText(e))return t;if(nz(t))return wz(e,t);var n=fg(t);if("br"===oz(n))return wz(e,"<br>");var r=n.html();return r=wz(e,r),n.html(r),rz(n)},parseStyleHtml:function(e,t,n){var r=fg(e);if(!_p.isText(t))return t;var o=t;return Ez(r,"b,strong")&&(o.bold=!0),Ez(r,"i,em")&&(o.italic=!0),Ez(r,"u")&&(o.underline=!0),Ez(r,"s,strike")&&(o.through=!0),Ez(r,"sub")&&(o.sub=!0),Ez(r,"sup")&&(o.sup=!0),Ez(r,"code")&&(o.code=!0),o}};function s$(e){return function(t,n,r){return ey("h"+e,null,n)}}var l$={type:"header1",renderElem:s$(1)},c$={type:"header2",renderElem:s$(2)},f$={type:"header3",renderElem:s$(3)},d$={type:"header4",renderElem:s$(4)},p$={type:"header5",renderElem:s$(5)},h$=dL.PROPER,g$=RegExp.prototype,v$=g$.toString,y$=II(bR),m$=xI((function(){return"/a/b"!=v$.call({source:"a",flags:"b"})})),b$=h$&&"toString"!=v$.name;(m$||b$)&&pL(RegExp.prototype,"toString",(function(){var e=zN(this),t=mR(e.source),n=e.flags;return"/"+t+"/"+mR(void 0===n&&XI(g$,e)&&!("flags"in g$)?y$(e):n)}),{unsafe:!0});var w$,E$=EI.TypeError,x$=function(e){if(jM(e))throw E$("The method doesn't accept regular expressions");return e},D$=kN("match"),C$=function(e){var t=/./;try{"/./"[e](t)}catch(Yj){try{return t[D$]=!1,"/./"[e](t)}catch(n){}}return!1},S$=LN.f,A$=II("".startsWith),O$=II("".slice),k$=Math.min,B$=C$("startsWith");function F$(e){var t=pz(sp.nodes(e,{match:function(e){return sB.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=pz(t,1)[0];return sB.getNodeType(n)}function T$(e){return null==e.selection||!pz(sp.nodes(e,{match:function(e){var t=sB.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function _$(e,t){t&&Yp.setNodes(e,{type:t})}VL({target:"String",proto:!0,forced:!(!B$&&(w$=S$(String.prototype,"startsWith"),w$&&!w$.writable)||B$)},{startsWith:function(e){var t=mR(VI(this));x$(e);var n=EL(k$(arguments.length>1?arguments[1]:void 0,t.length)),r=mR(e);return A$?A$(t,r,n):O$(t,n,n+r.length)===r}});var P$=function(){function e(){this.title=Kj("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Kj("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return F$(e)},e.prototype.isDisabled=function(e){return T$(e)},e.prototype.exec=function(e,t){_$(e,t.toString())},e}(),j$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return F$(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return T$(e)},e.prototype.exec=function(e,t){var n=this.type;_$(e,t===n?"paragraph":n)},e}(),I$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return sz(t,e),t}(j$),N$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return sz(t,e),t}(j$),L$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return sz(t,e),t}(j$),R$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return sz(t,e),t}(j$),M$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return sz(t,e),t}(j$),z$={key:"headerSelect",factory:function(){return new P$}},$$={key:"header1",factory:function(){return new I$}},H$={key:"header2",factory:function(){return new N$}},V$={key:"header3",factory:function(){return new L$}},U$={key:"header4",factory:function(){return new R$}},W$={key:"header5",factory:function(){return new M$}};function G$(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function q$(e){return function(t,n,r){var o=fg(t);return 0===(n=n.filter((function(e){return!!_p.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var K$={renderElems:[l$,c$,f$,d$,p$],elemsToHtml:[{type:"header1",elemToHtml:G$(1)},{type:"header2",elemToHtml:G$(2)},{type:"header3",elemToHtml:G$(3)},{type:"header4",elemToHtml:G$(4)},{type:"header5",elemToHtml:G$(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:q$(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:q$(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:q$(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:q$(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:q$(5)}],menus:[z$,$$,H$,V$,U$,W$],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=pz(sp.nodes(n,{match:function(e){return sB.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&sB.isSelectionAtLineEnd(e,r[1])?Yp.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},X$=Object.assign,Y$=Object.defineProperty,Z$=II([].concat),J$=!X$||xI((function(){if(DI&&1!==X$({b:1},X$(Y$({},"a",{enumerable:!0,get:function(){Y$(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=X$({},e)[n]||CR(X$({},t)).join("")!=r}))?function(e,t){for(var n=yN(e),r=arguments.length,o=1,i=TL.f,a=BI.f;r>o;)for(var u,s=$I(arguments[o++]),l=i?Z$(CR(s),i(s)):CR(s),c=l.length,f=0;c>f;)u=l[f++],DI&&!SI(a,s,u)||(n[u]=s[u]);return n}:X$;function Q$(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}VL({target:"Object",stat:!0,forced:Object.assign!==J$},{assign:J$});var eH={selector:"font",preParseHtml:function(e){var t=fg(e);if("font"!==oz(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},tH=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=sp.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!pz(sp.nodes(e,{match:function(t){return"pre"===sB.getNodeType(t)||!!sp.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=fg('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=fg(r).attr("data-value");"0"===o?sp.removeMark(e,t):sp.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=fg('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=fg('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Kj("color.default")),"bgColor"===t&&(a=Kj("color.clear"));var u=fg('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),nH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("color.color"),t.iconSvg=$z,t.mark="color",t}return sz(t,e),t}(tH),rH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("color.bgColor"),t.iconSvg=Hz,t.mark="bgColor",t}return sz(t,e),t}(tH),oH=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],iH={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Q$(i,{color:r}),o&&Q$(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!_p.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((nz(t)||"span"!==oz(n=fg(t)))&&(n=fg("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),rz(n)):t},preParseHtml:[eH],parseStyleHtml:function(e,t,n){var r=fg(e);if(!_p.isText(t))return t;var o=t,i=iz(r,"color");i&&(o.color=i);var a=iz(r,"background-color");return a||(a=iz(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new nH},config:{colors:oH}},{key:"bgColor",factory:function(){return new rH},config:{colors:oH}}]},aH=/^(?:\w+:)?\/\/(\S+)$/,uH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,sH=/^[^\s\.]+\.\S{2,}$/,lH=CL.includes;function cH(e){return void 0===e&&(e="r"),e+"-"+av()}function fH(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function dH(e,t,n,r){return cz(this,void 0,void 0,(function(){var o,i;return fz(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function pH(e,t,n){return cz(this,void 0,void 0,(function(){var r;return fz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function hH(e){return null==e.selection||!!sB.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function gH(e,t){return{type:"link",url:fH(e),children:t?[{text:t}]:[]}}function vH(e,t,n){return cz(this,void 0,void 0,(function(){var r,o,i;return fz(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),hH(e)?[2]:[4,dH("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,pH("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Sp.isCollapsed(o)?(e.insertText(" "),i=gH(r,t),Yp.insertNodes(e,i),e.insertFragment([{text:" "}])):sp.string(e,o)!==t?(e.deleteFragment(),i=gH(r,t),Yp.insertNodes(e,i)):(i=gH(r),Yp.wrapNodes(e,i,{split:!0}),Yp.collapse(e,{edge:"end"}))),[2]}}))}))}VL({target:"Array",proto:!0},{includes:function(e){return lH(this,e,arguments.length>1?arguments[1]:void 0)}}),FM("includes");var yH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return ey("a",{href:o,target:void 0===i?"_blank":i},t)}},mH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e);return 0===(t=t.filter((function(e){return!!_p.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function bH(){return cH("w-e-insert-link")}var wH=function(){function e(){this.title=Kj("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=bH(),this.urlInputId=bH(),this.buttonId=bH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return hH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=pz(_P(Kj("link.text"),r),2),u=a[0],s=fg(a[1]),l=pz(_P(Kj("link.url"),o),2),c=l[0],f=fg(l[1]),d=pz(PP(i,Kj("common.ok")),1)[0];if(null==this.$content){var p=fg("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();vH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Sp.isCollapsed(t))s.val("");else{var g=sp.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function EH(){return cH("w-e-update-link")}var xH=function(){function e(){this.title=Kj("link.edit"),this.iconSvg=Mz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=EH(),this.buttonId=EH()}return e.prototype.getSelectedLinkElem=function(e){var t=sB.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return sB.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=pz(_P(Kj("link.url"),t),2),o=r[0],i=fg(r[1]),a=pz(PP(n,Kj("common.ok")),1)[0];if(null==this.$content){var u=fg("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=sB.getSelectedNodeByType(e,"link"),o=r?pp.string(r):"",i=u.find("#"+t).val();!function(e,t,n){cz(this,void 0,void 0,(function(){var r,o;return fz(this,(function(i){switch(i.label){case 0:return n?[4,dH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,pH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:fH(r)},Yp.setNodes(e,o,{match:function(e){return sB.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),DH=function(){function e(){this.title=Kj("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==sB.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Yp.unwrapNodes(e,{match:function(e){return sB.checkNodeType(e,"link")}})},e}(),CH=function(){function e(){this.title=Kj("link.view"),this.iconSvg=zz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=sB.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),SH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},AH={renderElems:[yH],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[mH],menus:[{key:"insertLink",factory:function(){return new wH},config:SH},{key:"editLink",factory:function(){return new xH},config:SH},{key:"unLink",factory:function(){return new DH}},{key:"viewLink",factory:function(){return new CH}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(aH);if(!t)return!1;var n=t[1];return!(!n||!uH.test(n)&&!sH.test(n))}(t)){if(!hH(o)){var r=o.selection;if(null!=r){var i=sp.string(o,r);vH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=pz(e,2),n=t[0],i=t[1];return"link"!==sB.getNodeType(n)?r([n,i]):""===pp.string(n)?Yp.removeNodes(o,{at:i}):r([n,i])},o}},OH=II(1..valueOf),kH=EI.RangeError,BH=EI.RangeError,FH=EI.String,TH=Math.floor,_H=II((function(e){var t=mR(VI(this)),n="",r=vL(e);if(r<0||r==1/0)throw kH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),PH=II("".slice),jH=II(1..toFixed),IH=function(e,t,n){return 0===t?n:t%2==1?IH(e,t-1,n*e):IH(e*e,t/2,n)},NH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=TH(o/1e7)},LH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=TH(r/t),r=r%t*1e7},RH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=FH(e[t]);n=""===n?r:n+_H("0",7-r.length)+r}return n};function MH(e,t){return"w-e-image-container-"+sB.findKey(e,t).id}VL({target:"Number",proto:!0,forced:xI((function(){return"0.000"!==jH(8e-5,3)||"1"!==jH(.9,0)||"1.25"!==jH(1.255,2)||"1000000000000000128"!==jH(0xde0b6b3a7640080,0)}))||!xI((function(){jH({})}))},{toFixed:function(e){var t,n,r,o,i=OH(this),a=vL(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw BH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return FH(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*IH(2,69,1))-69)<0?i*IH(2,-t,1):i/IH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(NH(u,0,n),r=a;r>=7;)NH(u,1e7,0),r-=7;for(NH(u,IH(10,r,1),0),r=t-1;r>=23;)LH(u,1<<23),r-=23;LH(u,1<<r),NH(u,1,1),LH(u,2),l=RH(u)}else NH(u,0,n),NH(u,1<<-t,0),l=RH(u)+_H("0",a);return a>0?s+((o=l.length)<=a?"0."+_H("0",a-o)+l:PH(l,0,o-a)+"."+PH(l,o-a)):s+l}});var zH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=sB.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,x,D,C=ey("img",{style:v,src:o,alt:a,"data-href":s}),S=n.isDisabled();return g&&!S?function(e,t,n,r){var o=fg("body"),i=MH(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Ev((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function h(n){if(o.off("mousemove",p),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:lz(lz({},t.style),{width:r+"px",height:i+"px"})};Yp.setNodes(e,a,{at:sB.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),ey("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=fg(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=fg("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=sB.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,ey("div",{className:"w-e-image-dragger left-top"}),ey("div",{className:"w-e-image-dragger right-top"}),ey("div",{className:"w-e-image-dragger left-bottom"}),ey("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,C,{width:d,height:h}):(y=n,m=e,b=C,x=(w={width:d,height:h}).height,D={},(E=w.width)&&(D.width=E),x&&(D.height=x),ey("div",{id:MH(y,m),style:D,className:"w-e-image-container"},b))}},$H={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:iz(r,"width"),height:iz(r,"height")},children:[{text:""}]}}};function HH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),cz(this,void 0,void 0,(function(){var i,a;return fz(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function VH(e,t,n){return cz(this,void 0,void 0,(function(){var r;return fz(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function UH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),cz(this,void 0,void 0,(function(){var o,i,a;return fz(this,(function(u){switch(u.label){case 0:return[4,HH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,VH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:fH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),sB.getSelectedNodeByType(e,"image")&&e.move(1),WH(e)||(Yp.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function WH(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||!!pz(sp.nodes(e,{match:function(t){var n=sB.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!sp.isVoid(e,t)},universal:!0}),1)[0]}function GH(){return cH("w-e-insert-image")}var qH=function(){function e(){this.title=Kj("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=GH(),this.altInputId=GH(),this.hrefInputId=GH(),this.buttonId=GH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return WH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=pz(_P(Kj("image.src"),r),2),s=u[0],l=fg(u[1]),c=pz(_P(Kj("image.desc"),o),2),f=c[0],d=fg(c[1]),p=pz(_P(Kj("image.link"),i),2),h=p[0],g=fg(p[1]),v=pz(PP(a,Kj("common.ok")),1)[0];if(null==this.$content){var y=fg("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||UH(e,t,n,r))},e}(),KH=function(){function e(){this.title=Kj("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==sB.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Yp.removeNodes(e,{match:function(e){return sB.checkNodeType(e,"image")}})},e}();function XH(){return cH("w-e-edit-image")}var YH=function(){function e(){this.title=Kj("image.edit"),this.iconSvg=Mz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=XH(),this.altInputId=XH(),this.hrefInputId=XH(),this.buttonId=XH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return sB.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=pz(_P(Kj("image.src"),r),2),l=s[0],c=fg(s[1]),f=pz(_P(Kj("image.desc"),o),2),d=f[0],p=fg(f[1]),h=pz(_P(Kj("image.link"),i),2),g=h[0],v=fg(h[1]),y=pz(PP(a,Kj("common.ok")),1)[0];if(null==this.$content){var m=fg("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,x=w.alt,D=void 0===x?"":x,C=w.href,S=void 0===C?"":C;return c.val(E),p.val(D),v.val(S),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),cz(this,void 0,void 0,(function(){var i,a,u,s,l,c;return fz(this,(function(f){switch(f.label){case 0:return[4,HH("editImage",e,t,n,r)];case 1:return f.sent()?[4,VH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=sB.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:lz(lz({},void 0===u?{}:u),o)},Yp.setNodes(e,s,{match:function(e){return sB.checkNodeType(e,"image")}}),l=sB.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),ZH=function(){function e(){this.title=Kj("image.viewLink"),this.iconSvg=zz,this.tag="button"}return e.prototype.getValue=function(e){var t=sB.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),JH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return sB.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=sB.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:lz(lz({},void 0===o?{}:o),{width:this.value,height:""})};Yp.setNodes(e,i,{match:function(e){return sB.checkNodeType(e,"image")}})}}},e}(),QH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return sz(t,e),t}(JH),eV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return sz(t,e),t}(JH),tV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return sz(t,e),t}(JH),nV={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},rV={renderElems:[zH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[$H],menus:[{key:"insertImage",factory:function(){return new qH},config:nV},{key:"deleteImage",factory:function(){return new KH}},{key:"editImage",factory:function(){return new YH},config:nV},{key:"viewImageLink",factory:function(){return new ZH}},{key:"imageWidth30",factory:function(){return new QH}},{key:"imageWidth50",factory:function(){return new eV}},{key:"imageWidth100",factory:function(){return new tV}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},oV={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),ey("div",{style:{margin:"5px 0"}},ey("span",{contentEditable:!1,style:{marginRight:"0.5em"}},ey("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=sB.findPath(n,e),o={checked:t.target.checked};Yp.setNodes(n,o,{at:r})}}})),ey("span",null,t))}},iV=function(){function e(){this.title=Kj("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!sB.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!sB.getSelectedElems(e).some((function(t){if(sp.isVoid(e,t)&&sp.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Yp.setNodes(e,{type:n?"paragraph":"todo"})},e}(),aV={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=fg(e);0===(t=t.filter((function(e){return!!_p.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},uV={renderElems:[oV],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=fg(e).find("li"),n=fg('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[aV],menus:[{key:"todo",factory:function(){return new iV}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Sp.isCollapsed(r)){var o=sB.getSelectedNodeByType(e,"todo");if(o&&0===pp.string(o).length)return void Yp.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},sV={type:"blockquote",renderElem:function(e,t,n){return ey("blockquote",null,t)}},lV={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e);return 0===(t=t.filter((function(e){return!!_p.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},cV=function(){function e(){this.title=Kj("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!sB.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!pz(sp.nodes(e,{match:function(e){var t=sB.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Yp.setNodes(e,{type:n},{mode:"highest"})}},e}(),fV={key:"blockquote",factory:function(){return new cV}},dV=II([].slice),pV=pR("slice"),hV=kN("species"),gV=EI.Array,vV=Math.max;VL({target:"Array",proto:!0,forced:!pV},{slice:function(e,t){var n,r,o,i=UI(this),a=xL(i),u=bL(e,a),s=bL(void 0===t?a:t,a);if(WL(i)&&(n=i.constructor,(iR(n)&&(n===gV||WL(n.prototype))||GI(n)&&null===(n=n[hV]))&&(n=void 0),n===gV||void 0===n))return dV(i,u,s);for(r=new(void 0===n?gV:n)(vV(s-u,0)),o=0;u<s;u++,o++)u in i&&LM(r,o,i[u]);return r.length=o,r}});var yV={renderElems:[sV],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[lV],menus:[fV],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=pz(sp.nodes(e,{match:function(e){return sB.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=sB.findPath(e,a),s=sp.end(e,u);if(Ep.equals(s,o.focus)){var l=pp.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Yp.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},mV=function(){function e(){this.title=Kj("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!pz(sp.nodes(e,{match:function(t){return"pre"===sB.getNodeType(t)||!!sp.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=fg('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=fg(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=fg("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),bV={menus:[{key:"emotion",factory:function(){return new mV},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},wV={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},EV={selector:"font",preParseHtml:function(e){var t=fg(e);if("font"!==oz(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",wV[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},xV=II("".indexOf);VL({target:"String",proto:!0,forced:!C$("includes")},{includes:function(e){return!!~xV(mR(VI(this)),mR(x$(e)),arguments.length>1?arguments[1]:void 0)}});var DV,CV,SV=function(e){return e&&e.Math==Math&&e},AV=SV("object"==typeof globalThis&&globalThis)||SV("object"==typeof window&&window)||SV("object"==typeof self&&self)||SV("object"==typeof vI&&vI)||function(){return this}()||Function("return this")(),OV=Function.prototype,kV=OV.apply,BV=OV.bind,FV=OV.call,TV="object"==typeof Reflect&&Reflect.apply||(BV?FV.bind(kV):function(){return FV.apply(kV,arguments)}),_V=Function.prototype,PV=_V.bind,jV=_V.call,IV=PV&&PV.bind(jV),NV=PV?function(e){return e&&IV(jV,e)}:function(e){return e&&function(){return jV.apply(e,arguments)}},LV=function(e){return"function"==typeof e},RV=function(e){try{return!!e()}catch(t){return!0}},MV=!RV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zV=Function.prototype.call,$V=zV.bind?zV.bind(zV):function(){return zV.apply(zV,arguments)},HV={}.propertyIsEnumerable,VV=Object.getOwnPropertyDescriptor,UV=VV&&!HV.call({1:2},1)?function(e){var t=VV(this,e);return!!t&&t.enumerable}:HV,WV={f:UV},GV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qV=NV({}.toString),KV=NV("".slice),XV=function(e){return KV(qV(e),8,-1)},YV=AV.Object,ZV=NV("".split),JV=RV((function(){return!YV("z").propertyIsEnumerable(0)}))?function(e){return"String"==XV(e)?ZV(e,""):YV(e)}:YV,QV=AV.TypeError,eU=function(e){if(null==e)throw QV("Can't call method on "+e);return e},tU=function(e){return JV(eU(e))},nU=function(e){return"object"==typeof e?null!==e:LV(e)},rU={},oU=function(e){return LV(e)?e:void 0},iU=function(e,t){return arguments.length<2?oU(rU[e])||oU(AV[e]):rU[e]&&rU[e][t]||AV[e]&&AV[e][t]},aU=NV({}.isPrototypeOf),uU=iU("navigator","userAgent")||"",sU=AV.process,lU=AV.Deno,cU=sU&&sU.versions||lU&&lU.version,fU=cU&&cU.v8;fU&&(CV=(DV=fU.split("."))[0]>0&&DV[0]<4?1:+(DV[0]+DV[1])),!CV&&uU&&(!(DV=uU.match(/Edge\/(\d+)/))||DV[1]>=74)&&(DV=uU.match(/Chrome\/(\d+)/))&&(CV=+DV[1]);var dU=CV,pU=!!Object.getOwnPropertySymbols&&!RV((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dU&&dU<41})),hU=pU&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gU=AV.Object,vU=hU?function(e){return"symbol"==typeof e}:function(e){var t=iU("Symbol");return LV(t)&&aU(t.prototype,gU(e))},yU=AV.String,mU=AV.TypeError,bU=function(e){if(LV(e))return e;throw mU(function(e){try{return yU(e)}catch(t){return"Object"}}(e)+" is not a function")},wU=AV.TypeError,EU=Object.defineProperty,xU=AV["__core-js_shared__"]||function(e,t){try{EU(AV,e,{value:t,configurable:!0,writable:!0})}catch(Yj){AV[e]=t}return t}("__core-js_shared__",{}),DU=yI((function(e){(e.exports=function(e,t){return xU[e]||(xU[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),CU=AV.Object,SU=function(e){return CU(eU(e))},AU=NV({}.hasOwnProperty),OU=Object.hasOwn||function(e,t){return AU(SU(e),t)},kU=0,BU=Math.random(),FU=NV(1..toString),TU=function(e){return"Symbol("+(void 0===e?"":e)+")_"+FU(++kU+BU,36)},_U=DU("wks"),PU=AV.Symbol,jU=PU&&PU.for,IU=hU?PU:PU&&PU.withoutSetter||TU,NU=function(e){if(!OU(_U,e)||!pU&&"string"!=typeof _U[e]){var t="Symbol."+e;pU&&OU(PU,e)?_U[e]=PU[e]:_U[e]=hU&&jU?jU(t):IU(t)}return _U[e]},LU=AV.TypeError,RU=NU("toPrimitive"),MU=function(e){var t=function(e,t){if(!nU(e)||vU(e))return e;var n,r,o=null==(n=e[RU])?void 0:bU(n);if(o){if(void 0===t&&(t="default"),r=$V(o,e,t),!nU(r)||vU(r))return r;throw LU("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&LV(n=e.toString)&&!nU(r=$V(n,e)))return r;if(LV(n=e.valueOf)&&!nU(r=$V(n,e)))return r;if("string"!==t&&LV(n=e.toString)&&!nU(r=$V(n,e)))return r;throw wU("Can't convert object to primitive value")}(e,t)}(e,"string");return vU(t)?t:t+""},zU=AV.document,$U=nU(zU)&&nU(zU.createElement),HU=function(e){return $U?zU.createElement(e):{}},VU=!MV&&!RV((function(){return 7!=Object.defineProperty(HU("div"),"a",{get:function(){return 7}}).a})),UU=Object.getOwnPropertyDescriptor,WU={f:MV?UU:function(e,t){if(e=tU(e),t=MU(t),VU)try{return UU(e,t)}catch(n){}if(OU(e,t))return GV(!$V(WV.f,e,t),e[t])}},GU=/#|\.prototype\./,qU=function(e,t){var n=XU[KU(e)];return n==ZU||n!=YU&&(LV(t)?RV(t):!!t)},KU=qU.normalize=function(e){return String(e).replace(GU,".").toLowerCase()},XU=qU.data={},YU=qU.NATIVE="N",ZU=qU.POLYFILL="P",JU=qU,QU=NV(NV.bind),eW=function(e,t){return bU(e),void 0===t?e:QU?QU(e,t):function(){return e.apply(t,arguments)}},tW=AV.String,nW=AV.TypeError,rW=function(e){if(nU(e))return e;throw nW(tW(e)+" is not an object")},oW=AV.TypeError,iW=Object.defineProperty,aW={f:MV?iW:function(e,t,n){if(rW(e),t=MU(t),rW(n),VU)try{return iW(e,t,n)}catch(r){}if("get"in n||"set"in n)throw oW("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},uW=MV?function(e,t,n){return aW.f(e,t,GV(1,n))}:function(e,t,n){return e[t]=n,e},sW=WU.f,lW=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return TV(e,this,arguments)};return t.prototype=e.prototype,t},cW=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?AV:d?AV[c]:(AV[c]||{}).prototype,g=f?rU:rU[c]||uW(rU,c,{})[c],v=g.prototype;for(o in t)n=!JU(f?o:c+(d?".":"#")+o,e.forced)&&h&&OU(h,o),a=g[o],n&&(u=e.noTargetGet?(l=sW(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?eW(i,AV):e.wrap&&n?lW(i):p&&LV(i)?NV(i):i,(e.sham||i&&i.sham||a&&a.sham)&&uW(s,"sham",!0),uW(g,o,s),p&&(OU(rU,r=c+"Prototype")||uW(rU,r,{}),uW(rU[r],o,i),e.real&&v&&!v[o]&&uW(v,o,i)))},fW=Array.isArray||function(e){return"Array"==XV(e)},dW=Math.ceil,pW=Math.floor,hW=function(e){var t=+e;return t!=t||0===t?0:(t>0?pW:dW)(t)},gW=Math.min,vW=function(e){return(t=e.length)>0?gW(hW(t),9007199254740991):0;var t},yW=function(e,t,n){var r=MU(t);r in e?aW.f(e,r,GV(0,n)):e[r]=n},mW={};mW[NU("toStringTag")]="z";var bW="[object z]"===String(mW),wW=NU("toStringTag"),EW=AV.Object,xW="Arguments"==XV(function(){return arguments}()),DW=bW?XV:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=EW(e),wW))?n:xW?XV(t):"Object"==(r=XV(t))&&LV(t.callee)?"Arguments":r},CW=NV(Function.toString);LV(xU.inspectSource)||(xU.inspectSource=function(e){return CW(e)});var SW=xU.inspectSource,AW=function(){},OW=[],kW=iU("Reflect","construct"),BW=/^\s*(?:class|function)\b/,FW=NV(BW.exec),TW=!BW.exec(AW),_W=function(e){if(!LV(e))return!1;try{return kW(AW,OW,e),!0}catch(t){return!1}},PW=!kW||RV((function(){var e;return _W(_W.call)||!_W(Object)||!_W((function(){e=!0}))||e}))?function(e){if(!LV(e))return!1;switch(DW(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TW||!!FW(BW,SW(e))}:_W,jW=NU("species"),IW=AV.Array,NW=function(e,t){return new(fW(n=e)&&(r=n.constructor,(PW(r)&&(r===IW||fW(r.prototype))||nU(r)&&null===(r=r[jW]))&&(r=void 0)),void 0===r?IW:r)(0===t?0:t);var n,r},LW=NU("species"),RW=NU("isConcatSpreadable"),MW=AV.TypeError,zW=dU>=51||!RV((function(){var e=[];return e[RW]=!1,e.concat()[0]!==e})),$W=dU>=51||!RV((function(){var e=[];return(e.constructor={})[LW]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),HW=function(e){if(!nU(e))return!1;var t=e[RW];return void 0!==t?!!t:fW(e)};cW({target:"Array",proto:!0,forced:!zW||!$W},{concat:function(e){var t,n,r,o,i,a=SU(this),u=NW(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(HW(i=-1===t?a:arguments[t])){if(s+(o=vW(i))>9007199254740991)throw MW("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&yW(u,s,i[n])}else{if(s>=9007199254740991)throw MW("Maximum allowed index exceeded");yW(u,s++,i)}return u.length=s,u}});var VW,UW=AV.String,WW=function(e){if("Symbol"===DW(e))throw TypeError("Cannot convert a Symbol value to a string");return UW(e)},GW=Math.max,qW=Math.min,KW=function(e,t){var n=hW(e);return n<0?GW(n+t,0):qW(n,t)},XW=function(e){return function(t,n,r){var o,i=tU(t),a=vW(i),u=KW(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},YW={includes:XW(!0),indexOf:XW(!1)},ZW={},JW=YW.indexOf,QW=NV([].push),eG=function(e,t){var n,r=tU(e),o=0,i=[];for(n in r)!OU(ZW,n)&&OU(r,n)&&QW(i,n);for(;t.length>o;)OU(r,n=t[o++])&&(~JW(i,n)||QW(i,n));return i},tG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nG=Object.keys||function(e){return eG(e,tG)},rG=MV?Object.defineProperties:function(e,t){rW(e);for(var n,r=tU(t),o=nG(t),i=o.length,a=0;i>a;)aW.f(e,n=o[a++],r[n]);return e},oG=iU("document","documentElement"),iG=DU("keys"),aG=function(e){return iG[e]||(iG[e]=TU(e))},uG=aG("IE_PROTO"),sG=function(){},lG=function(e){return"<script>"+e+"<\/script>"},cG=function(e){e.write(lG("")),e.close();var t=e.parentWindow.Object;return e=null,t},fG=function(){try{VW=new ActiveXObject("htmlfile")}catch(r){}var e,t;fG="undefined"!=typeof document?document.domain&&VW?cG(VW):((t=HU("iframe")).style.display="none",oG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(lG("document.F=Object")),e.close(),e.F):cG(VW);for(var n=tG.length;n--;)delete fG.prototype[tG[n]];return fG()};ZW[uG]=!0;var dG,pG,hG,gG=Object.create||function(e,t){var n;return null!==e?(sG.prototype=rW(e),n=new sG,sG.prototype=null,n[uG]=e):n=fG(),void 0===t?n:rG(n,t)},vG=tG.concat("length","prototype"),yG={f:Object.getOwnPropertyNames||function(e){return eG(e,vG)}},mG=AV.Array,bG=Math.max,wG=yG.f,EG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xG={f:function(e){return EG&&"Window"==XV(e)?function(e){try{return wG(e)}catch(t){return function(e,t,n){for(var r=vW(e),o=KW(void 0,r),i=KW(r,r),a=mG(bG(i-o,0)),u=0;o<i;o++,u++)yW(a,u,e[o]);return a.length=u,a}(EG)}}(e):wG(tU(e))}},DG={f:Object.getOwnPropertySymbols},CG=NV([].slice),SG=function(e,t,n,r){r&&r.enumerable?e[t]=n:uW(e,t,n)},AG={f:NU},OG=aW.f,kG=function(e){var t=rU.Symbol||(rU.Symbol={});OU(t,e)||OG(t,e,{value:AG.f(e)})},BG=bW?{}.toString:function(){return"[object "+DW(this)+"]"},FG=aW.f,TG=NU("toStringTag"),_G=function(e,t,n,r){if(e){var o=n?e:e.prototype;OU(o,TG)||FG(o,TG,{configurable:!0,value:t}),r&&!bW&&uW(o,"toString",BG)}},PG=AV.WeakMap,jG=LV(PG)&&/native code/.test(SW(PG)),IG=AV.TypeError,NG=AV.WeakMap;if(jG||xU.state){var LG=xU.state||(xU.state=new NG),RG=NV(LG.get),MG=NV(LG.has),zG=NV(LG.set);dG=function(e,t){if(MG(LG,e))throw new IG("Object already initialized");return t.facade=e,zG(LG,e,t),t},pG=function(e){return RG(LG,e)||{}},hG=function(e){return MG(LG,e)}}else{var $G=aG("state");ZW[$G]=!0,dG=function(e,t){if(OU(e,$G))throw new IG("Object already initialized");return t.facade=e,uW(e,$G,t),t},pG=function(e){return OU(e,$G)?e[$G]:{}},hG=function(e){return OU(e,$G)}}var HG={set:dG,get:pG,has:hG,enforce:function(e){return hG(e)?pG(e):dG(e,{})},getterFor:function(e){return function(t){var n;if(!nU(t)||(n=pG(t)).type!==e)throw IG("Incompatible receiver, "+e+" required");return n}}},VG=NV([].push),UG=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=SU(s),g=JV(h),v=eW(l,c),y=vW(g),m=0,b=f||NW,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:VG(w,d)}else switch(e){case 4:return!1;case 7:VG(w,d)}return i?-1:r||o?o:w}},WG=[UG(0),UG(1),UG(2),UG(3),UG(4),UG(5),UG(6),UG(7)][0],GG=aG("hidden"),qG=NU("toPrimitive"),KG=HG.set,XG=HG.getterFor("Symbol"),YG=Object.prototype,ZG=AV.Symbol,JG=ZG&&ZG.prototype,QG=AV.TypeError,eq=AV.QObject,tq=iU("JSON","stringify"),nq=WU.f,rq=aW.f,oq=xG.f,iq=WV.f,aq=NV([].push),uq=DU("symbols"),sq=DU("op-symbols"),lq=DU("string-to-symbol-registry"),cq=DU("symbol-to-string-registry"),fq=DU("wks"),dq=!eq||!eq.prototype||!eq.prototype.findChild,pq=MV&&RV((function(){return 7!=gG(rq({},"a",{get:function(){return rq(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=nq(YG,t);r&&delete YG[t],rq(e,t,n),r&&e!==YG&&rq(YG,t,r)}:rq,hq=function(e,t){var n=uq[e]=gG(JG);return KG(n,{type:"Symbol",tag:e,description:t}),MV||(n.description=t),n},gq=function(e,t,n){e===YG&&gq(sq,t,n),rW(e);var r=MU(t);return rW(n),OU(uq,r)?(n.enumerable?(OU(e,GG)&&e[GG][r]&&(e[GG][r]=!1),n=gG(n,{enumerable:GV(0,!1)})):(OU(e,GG)||rq(e,GG,GV(1,{})),e[GG][r]=!0),pq(e,r,n)):rq(e,r,n)},vq=function(e,t){rW(e);var n=tU(t),r=nG(n).concat(wq(n));return WG(r,(function(t){MV&&!$V(yq,n,t)||gq(e,t,n[t])})),e},yq=function(e){var t=MU(e),n=$V(iq,this,t);return!(this===YG&&OU(uq,t)&&!OU(sq,t))&&(!(n||!OU(this,t)||!OU(uq,t)||OU(this,GG)&&this[GG][t])||n)},mq=function(e,t){var n=tU(e),r=MU(t);if(n!==YG||!OU(uq,r)||OU(sq,r)){var o=nq(n,r);return!o||!OU(uq,r)||OU(n,GG)&&n[GG][r]||(o.enumerable=!0),o}},bq=function(e){var t=oq(tU(e)),n=[];return WG(t,(function(e){OU(uq,e)||OU(ZW,e)||aq(n,e)})),n},wq=function(e){var t=e===YG,n=oq(t?sq:tU(e)),r=[];return WG(n,(function(e){!OU(uq,e)||t&&!OU(YG,e)||aq(r,uq[e])})),r};if(pU||(JG=(ZG=function(){if(aU(JG,this))throw QG("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?WW(arguments[0]):void 0,t=TU(e),n=function(e){this===YG&&$V(n,sq,e),OU(this,GG)&&OU(this[GG],t)&&(this[GG][t]=!1),pq(this,t,GV(1,e))};return MV&&dq&&pq(YG,t,{configurable:!0,set:n}),hq(t,e)}).prototype,SG(JG,"toString",(function(){return XG(this).tag})),SG(ZG,"withoutSetter",(function(e){return hq(TU(e),e)})),WV.f=yq,aW.f=gq,WU.f=mq,yG.f=xG.f=bq,DG.f=wq,AG.f=function(e){return hq(NU(e),e)},MV&&rq(JG,"description",{configurable:!0,get:function(){return XG(this).description}})),cW({global:!0,wrap:!0,forced:!pU,sham:!pU},{Symbol:ZG}),WG(nG(fq),(function(e){kG(e)})),cW({target:"Symbol",stat:!0,forced:!pU},{for:function(e){var t=WW(e);if(OU(lq,t))return lq[t];var n=ZG(t);return lq[t]=n,cq[n]=t,n},keyFor:function(e){if(!vU(e))throw QG(e+" is not a symbol");if(OU(cq,e))return cq[e]},useSetter:function(){dq=!0},useSimple:function(){dq=!1}}),cW({target:"Object",stat:!0,forced:!pU,sham:!MV},{create:function(e,t){return void 0===t?gG(e):vq(gG(e),t)},defineProperty:gq,defineProperties:vq,getOwnPropertyDescriptor:mq}),cW({target:"Object",stat:!0,forced:!pU},{getOwnPropertyNames:bq,getOwnPropertySymbols:wq}),cW({target:"Object",stat:!0,forced:RV((function(){DG.f(1)}))},{getOwnPropertySymbols:function(e){return DG.f(SU(e))}}),tq){var Eq=!pU||RV((function(){var e=ZG();return"[null]"!=tq([e])||"{}"!=tq({a:e})||"{}"!=tq(Object(e))}));cW({target:"JSON",stat:!0,forced:Eq},{stringify:function(e,t,n){var r=CG(arguments),o=t;if((nU(t)||void 0!==e)&&!vU(e))return fW(t)||(t=function(e,t){if(LV(o)&&(t=$V(o,this,e,t)),!vU(t))return t}),r[1]=t,TV(tq,null,r)}})}if(!JG[qG]){var xq=JG.valueOf;SG(JG,qG,(function(e){return $V(xq,this)}))}_G(ZG,"Symbol"),ZW[GG]=!0,kG("asyncIterator"),kG("hasInstance"),kG("isConcatSpreadable"),kG("iterator"),kG("match"),kG("matchAll"),kG("replace"),kG("search"),kG("species"),kG("split"),kG("toPrimitive"),kG("toStringTag"),kG("unscopables"),_G(AV.JSON,"JSON",!0);var Dq,Cq,Sq,Aq=rU.Symbol,Oq={},kq=Function.prototype,Bq=MV&&Object.getOwnPropertyDescriptor,Fq=OU(kq,"name"),Tq={EXISTS:Fq,PROPER:Fq&&"something"===function(){}.name,CONFIGURABLE:Fq&&(!MV||MV&&Bq(kq,"name").configurable)},_q=!RV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Pq=aG("IE_PROTO"),jq=AV.Object,Iq=jq.prototype,Nq=_q?jq.getPrototypeOf:function(e){var t=SU(e);if(OU(t,Pq))return t[Pq];var n=t.constructor;return LV(n)&&t instanceof n?n.prototype:t instanceof jq?Iq:null},Lq=NU("iterator"),Rq=!1;[].keys&&("next"in(Sq=[].keys())?(Cq=Nq(Nq(Sq)))!==Object.prototype&&(Dq=Cq):Rq=!0);var Mq=null==Dq||RV((function(){var e={};return Dq[Lq].call(e)!==e}));Dq=Mq?{}:gG(Dq),LV(Dq[Lq])||SG(Dq,Lq,(function(){return this}));var zq={IteratorPrototype:Dq,BUGGY_SAFARI_ITERATORS:Rq},$q=zq.IteratorPrototype,Hq=function(){return this};AV.String,AV.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{NV(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var Vq=Tq.PROPER,Uq=zq.BUGGY_SAFARI_ITERATORS,Wq=NU("iterator"),Gq=function(){return this},qq=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=gG($q,{next:GV(1,s)}),_G(u,l,!1,!0),Oq[l]=Hq;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Uq&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[Wq]||v["@@iterator"]||o&&v[o],m=!Uq&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Nq(b.call(new e)))!==Object.prototype&&c.next&&(_G(c,h,!0,!0),Oq[h]=Gq),Vq&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return $V(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Uq||g||!(d in v))&&SG(v,d,f[d]);else cW({target:t,proto:!0,forced:Uq||g},f);return a&&v[Wq]!==m&&SG(v,Wq,m,{name:o}),Oq[t]=m,f},Kq=HG.set,Xq=HG.getterFor("Array Iterator");qq(Array,"Array",(function(e,t){Kq(this,{type:"Array Iterator",target:tU(e),index:0,kind:t})}),(function(){var e=Xq(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Oq.Arguments=Oq.Array;var Yq=NU("toStringTag");for(var Zq in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Jq=AV[Zq],Qq=Jq&&Jq.prototype;Qq&&DW(Qq)!==Yq&&uW(Qq,Yq,Zq),Oq[Zq]=Oq.Array}var eK=Aq;kG("asyncDispose"),kG("dispose"),kG("matcher"),kG("metadata"),kG("observable"),kG("patternMatch"),kG("replaceAll");var tK=eK,nK=NV("".charAt),rK=NV("".charCodeAt),oK=NV("".slice),iK=function(e){return function(t,n){var r,o,i=WW(eU(t)),a=hW(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=rK(i,a))<55296||r>56319||a+1===u||(o=rK(i,a+1))<56320||o>57343?e?nK(i,a):r:e?oK(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),aK=HG.set,uK=HG.getterFor("String Iterator");qq(String,"String",(function(e){aK(this,{type:"String Iterator",string:WW(e),index:0})}),(function(){var e,t=uK(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iK(n,r),t.index+=e.length,{value:e,done:!1})}));var sK=AG.f("iterator"),lK=yI((function(e){function t(n){return"function"==typeof tK&&"symbol"==typeof sK?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof tK&&e.constructor===tK&&e!==tK.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),cK=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lK),fK=dL.EXISTS,dK=VN.f,pK=Function.prototype,hK=II(pK.toString),gK=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,vK=II(gK.exec);DI&&!fK&&dK(pK,"name",{configurable:!0,get:function(){try{return vK(gK,hK(this))[1]}catch(cf){return""}}});var yK=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=sp.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!pz(sp.nodes(e,{match:function(t){return"pre"===sB.getNodeType(t)||!!sp.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),mK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("fontSize.title"),t.iconSvg=Vz,t.mark="fontSize",t}return sz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Kj("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===cK(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(yK),bK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("fontFamily.title"),t.iconSvg=Uz,t.mark="fontFamily",t.selectPanelWidth=150,t}return sz(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Kj("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===cK(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(yK),wK={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Q$(i,{fontSize:r}),o&&Q$(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!_p.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((nz(t)||"span"!==oz(n=fg(t)))&&(n=fg("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),rz(n)):t},preParseHtml:[EV],parseStyleHtml:function(e,t,n){var r=fg(e);if(!_p.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=iz(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=iz(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new mK},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new bK},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},EK={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=fg(e),n=iz(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},xK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=pz(sp.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":pz(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=pz(sp.nodes(e,{match:function(e){var t=sB.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),DK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("indent.decrease"),t.iconSvg=Wz,t}return sz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Yp.setNodes(e,{indent:null},{match:function(e){return np.isElement(e)}})},t}(xK),CK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("indent.increase"),t.iconSvg=Gz,t}return sz(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Yp.setNodes(e,{indent:"2em"},{match:function(e){return np.isElement(e)},mode:"highest"})},t}(xK),SK={renderStyle:function(e,t){if(!np.isElement(e))return t;var n=e.indent,r=t;return n&&Q$(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!np.isElement(e))return t;var n=e.indent;if(!n)return t;var r=fg(t);return r.css("text-indent",n),rz(r)},preParseHtml:[EK],parseStyleHtml:function(e,t,n){var r=fg(e);if(!np.isElement(t))return t;var o=t,i=iz(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new CK}},{key:"delIndent",factory:function(){return new DK}}]},AK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=pz(sp.nodes(e,{match:function(e){var t=sB.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!sB.getSelectedElems(e).some((function(t){if(sp.isVoid(e,t)&&sp.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),OK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("justify.left"),t.iconSvg=qz,t}return sz(t,e),t.prototype.exec=function(e,t){Yp.setNodes(e,{textAlign:"left"},{match:function(t){return np.isElement(t)&&!e.isInline(t)}})},t}(AK),kK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("justify.right"),t.iconSvg=Kz,t}return sz(t,e),t.prototype.exec=function(e,t){Yp.setNodes(e,{textAlign:"right"},{match:function(t){return np.isElement(t)&&!e.isInline(t)}})},t}(AK),BK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("justify.center"),t.iconSvg=Xz,t}return sz(t,e),t.prototype.exec=function(e,t){Yp.setNodes(e,{textAlign:"center"},{match:function(t){return np.isElement(t)&&!e.isInline(t)}})},t}(AK),FK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Kj("justify.justify"),t.iconSvg=Yz,t}return sz(t,e),t.prototype.exec=function(e,t){Yp.setNodes(e,{textAlign:"justify"},{match:function(t){return np.isElement(t)&&!e.isInline(t)}})},t}(AK),TK={renderStyle:function(e,t){if(!np.isElement(e))return t;var n=e.textAlign,r=t;return n&&Q$(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!np.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=fg(t);return r.css("text-align",n),rz(r)},parseStyleHtml:function(e,t,n){var r=fg(e);if(!np.isElement(t))return t;var o=t,i=iz(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new OK}},{key:"justifyRight",factory:function(){return new kK}},{key:"justifyCenter",factory:function(){return new BK}},{key:"justifyJustify",factory:function(){return new FK}}]},_K=function(){function e(){this.title=Kj("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:Kj("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=pz(sp.nodes(e,{match:function(e){var t=sB.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":np.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Yp.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),PK={renderStyle:function(e,t){if(!np.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Q$(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!np.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=fg(t);return r.css("line-height",n),rz(r)},parseStyleHtml:function(e,t,n){var r=fg(e);if(!np.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=iz(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new _K},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},jK=function(){function e(){this.title=Kj("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),IK=function(){function e(){this.title=Kj("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),NK={menus:[{key:"redo",factory:function(){return new jK}},{key:"undo",factory:function(){return new IK}}]},LK={type:"divider",renderElem:function(e,t,n){return jv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:sB.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[jv("hr")])}},RK=function(){function e(){this.title=Kj("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!sB.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=sB.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Yp.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),MK={renderElems:[LK],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new RK}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=pz(e,2),o=t[0],i=t[1];if("divider"!==sB.getNodeType(o))return n([o,i]);sB.isLastNode(r,o)&&Yp.insertNodes(r,sB.genEmptyParagraph(),{at:[i[0]+1]})},r}},zK=fR.map;VL({target:"Array",proto:!0,forced:!pR("map")},{map:function(e){return zK(this,e,arguments.length>1?arguments[1]:void 0)}});var $K=II([].join),HK=$I!=Object,VK=Az("join",",");VL({target:"Array",proto:!0,forced:HK||!VK},{join:function(e){return $K(UI(this),void 0===e?",":e)}});var UK=function(){function e(){this.title=Kj("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=sB.getSelectedNodeByType(e,"code");if(null==t)return null;var n=sB.getParentNode(e,t);return null==n||"pre"!==sB.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=sB.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=sB.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=pp.string(t);Yp.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Yp.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=sp.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=dz(i),u=a.next();!u.done;u=a.next()){var s=pz(u.value,1)[0];s&&o.push(pp.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Yp.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Yp.insertNodes(e,l,{mode:"highest"})},e}(),WK={key:"codeBlock",factory:function(){return new UK}};VL({target:"String",proto:!0,forced:bz("anchor")},{anchor:function(e){return mz(this,"a","name",e)}}),oM("match",(function(e,t,n){return[function(t){var n=VI(this),r=null==t?void 0:cN(t,e);return r?SI(r,t,n):new RegExp(t)[e](mR(n))},function(e){var r=zN(this),o=mR(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return mM(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=mM(r,o));){var c=mR(u[0]);s[l]=c,""===c&&(r.lastIndex=lM(o,EL(r.lastIndex),a)),l++}return 0===l?null:s}]}));var GK={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e);return 0===(t=t.filter((function(e){return"code"===sB.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===sB.getNodeType(e)}))}}},qK={menus:[WK],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=sB.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=pp.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=pz(e,2),r=t[0],i=t[1],a=sB.getNodeType(r);return"code"===a&&i.length<=1&&Yp.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(sB.isLastNode(o,r)&&Yp.insertNodes(o,sB.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==sB.getNodeType(r.children[0])&&(Yp.unwrapNodes(o),Yp.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=sB.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");sp.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return ey("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return ey("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=fg(e);if("code"!==oz(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:fg(e)[0].textContent||""}]}}},GK]},KK=function(){function e(){this.title=Kj("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),XK={menus:[{key:"fullScreen",factory:function(){return new KK}}]},YK=function(){function e(){this.title=Kj("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Sp.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Yp.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(sp.start(e,r))}},e}(),ZK=[u$,iH,wK,SK,TK,PK,rV,MK,bV,AH,qK,yV,K$,gz,uV,NK,XK,{menus:[{key:"enter",factory:function(){return new YK}}]}];qj("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qj("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var JK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function QK(e){var t={exports:{}};return e(t,t.exports),t.exports}var eX,tX,nX=function(e){return e&&e.Math==Math&&e},rX=nX("object"==typeof globalThis&&globalThis)||nX("object"==typeof window&&window)||nX("object"==typeof self&&self)||nX("object"==typeof JK&&JK)||function(){return this}()||Function("return this")(),oX=Function.prototype,iX=oX.bind,aX=oX.call,uX=iX&&iX.bind(aX),sX=iX?function(e){return e&&uX(aX,e)}:function(e){return e&&function(){return aX.apply(e,arguments)}},lX=function(e){try{return!!e()}catch(t){return!0}},cX=sX({}.toString),fX=sX("".slice),dX=function(e){return fX(cX(e),8,-1)},pX=rX.Object,hX=sX("".split),gX=lX((function(){return!pX("z").propertyIsEnumerable(0)}))?function(e){return"String"==dX(e)?hX(e,""):pX(e)}:pX,vX=rX.TypeError,yX=function(e){if(null==e)throw vX("Can't call method on "+e);return e},mX=function(e){return gX(yX(e))},bX=Object.defineProperty,wX=function(e,t){try{bX(rX,e,{value:t,configurable:!0,writable:!0})}catch(Yj){rX[e]=t}return t},EX=rX["__core-js_shared__"]||wX("__core-js_shared__",{}),xX=QK((function(e){(e.exports=function(e,t){return EX[e]||(EX[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),DX=rX.Object,CX=function(e){return DX(yX(e))},SX=sX({}.hasOwnProperty),AX=Object.hasOwn||function(e,t){return SX(CX(e),t)},OX=0,kX=Math.random(),BX=sX(1..toString),FX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+BX(++OX+kX,36)},TX=function(e){return"function"==typeof e},_X=function(e){return TX(e)?e:void 0},PX=function(e,t){return arguments.length<2?_X(rX[e]):rX[e]&&rX[e][t]},jX=PX("navigator","userAgent")||"",IX=rX.process,NX=rX.Deno,LX=IX&&IX.versions||NX&&NX.version,RX=LX&&LX.v8;RX&&(tX=(eX=RX.split("."))[0]>0&&eX[0]<4?1:+(eX[0]+eX[1])),!tX&&jX&&(!(eX=jX.match(/Edge\/(\d+)/))||eX[1]>=74)&&(eX=jX.match(/Chrome\/(\d+)/))&&(tX=+eX[1]);var MX,zX=tX,$X=!!Object.getOwnPropertySymbols&&!lX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zX&&zX<41})),HX=$X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,VX=xX("wks"),UX=rX.Symbol,WX=UX&&UX.for,GX=HX?UX:UX&&UX.withoutSetter||FX,qX=function(e){if(!AX(VX,e)||!$X&&"string"!=typeof VX[e]){var t="Symbol."+e;$X&&AX(UX,e)?VX[e]=UX[e]:VX[e]=HX&&WX?WX(t):GX(t)}return VX[e]},KX=function(e){return"object"==typeof e?null!==e:TX(e)},XX=rX.String,YX=rX.TypeError,ZX=function(e){if(KX(e))return e;throw YX(XX(e)+" is not an object")},JX=!lX((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),QX=rX.document,eY=KX(QX)&&KX(QX.createElement),tY=function(e){return eY?QX.createElement(e):{}},nY=!JX&&!lX((function(){return 7!=Object.defineProperty(tY("div"),"a",{get:function(){return 7}}).a})),rY=Function.prototype.call,oY=rY.bind?rY.bind(rY):function(){return rY.apply(rY,arguments)},iY=sX({}.isPrototypeOf),aY=rX.Object,uY=HX?function(e){return"symbol"==typeof e}:function(e){var t=PX("Symbol");return TX(t)&&iY(t.prototype,aY(e))},sY=rX.String,lY=function(e){try{return sY(e)}catch(t){return"Object"}},cY=rX.TypeError,fY=function(e){if(TX(e))return e;throw cY(lY(e)+" is not a function")},dY=function(e,t){var n=e[t];return null==n?void 0:fY(n)},pY=rX.TypeError,hY=rX.TypeError,gY=qX("toPrimitive"),vY=function(e){var t=function(e,t){if(!KX(e)||uY(e))return e;var n,r=dY(e,gY);if(r){if(void 0===t&&(t="default"),n=oY(r,e,t),!KX(n)||uY(n))return n;throw hY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&TX(n=e.toString)&&!KX(r=oY(n,e)))return r;if(TX(n=e.valueOf)&&!KX(r=oY(n,e)))return r;if("string"!==t&&TX(n=e.toString)&&!KX(r=oY(n,e)))return r;throw pY("Can't convert object to primitive value")}(e,t)}(e,"string");return uY(t)?t:t+""},yY=rX.TypeError,mY=Object.defineProperty,bY={f:JX?mY:function(e,t,n){if(ZX(e),t=vY(t),ZX(n),nY)try{return mY(e,t,n)}catch(r){}if("get"in n||"set"in n)throw yY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wY=Math.ceil,EY=Math.floor,xY=function(e){var t=+e;return t!=t||0===t?0:(t>0?EY:wY)(t)},DY=Math.max,CY=Math.min,SY=function(e,t){var n=xY(e);return n<0?DY(n+t,0):CY(n,t)},AY=Math.min,OY=function(e){return e>0?AY(xY(e),9007199254740991):0},kY=function(e){return OY(e.length)},BY=function(e){return function(t,n,r){var o,i=mX(t),a=kY(i),u=SY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},FY={includes:BY(!0),indexOf:BY(!1)},TY={},_Y=FY.indexOf,PY=sX([].push),jY=function(e,t){var n,r=mX(e),o=0,i=[];for(n in r)!AX(TY,n)&&AX(r,n)&&PY(i,n);for(;t.length>o;)AX(r,n=t[o++])&&(~_Y(i,n)||PY(i,n));return i},IY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],NY=Object.keys||function(e){return jY(e,IY)},LY=JX?Object.defineProperties:function(e,t){ZX(e);for(var n,r=mX(t),o=NY(t),i=o.length,a=0;i>a;)bY.f(e,n=o[a++],r[n]);return e},RY=PX("document","documentElement"),MY=xX("keys"),zY=function(e){return MY[e]||(MY[e]=FX(e))},$Y=zY("IE_PROTO"),HY=function(){},VY=function(e){return"<script>"+e+"<\/script>"},UY=function(e){e.write(VY("")),e.close();var t=e.parentWindow.Object;return e=null,t},WY=function(){try{MX=new ActiveXObject("htmlfile")}catch(r){}var e,t;WY="undefined"!=typeof document?document.domain&&MX?UY(MX):((t=tY("iframe")).style.display="none",RY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(VY("document.F=Object")),e.close(),e.F):UY(MX);for(var n=IY.length;n--;)delete WY.prototype[IY[n]];return WY()};TY[$Y]=!0;var GY=Object.create||function(e,t){var n;return null!==e?(HY.prototype=ZX(e),n=new HY,HY.prototype=null,n[$Y]=e):n=WY(),void 0===t?n:LY(n,t)},qY=qX("unscopables"),KY=Array.prototype;null==KY[qY]&&bY.f(KY,qY,{configurable:!0,value:GY(null)});var XY=function(e){KY[qY][e]=!0},YY={},ZY=sX(Function.toString);TX(EX.inspectSource)||(EX.inspectSource=function(e){return ZY(e)});var JY,QY,eZ,tZ=EX.inspectSource,nZ=rX.WeakMap,rZ=TX(nZ)&&/native code/.test(tZ(nZ)),oZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},iZ=JX?function(e,t,n){return bY.f(e,t,oZ(1,n))}:function(e,t,n){return e[t]=n,e},aZ=rX.TypeError,uZ=rX.WeakMap;if(rZ||EX.state){var sZ=EX.state||(EX.state=new uZ),lZ=sX(sZ.get),cZ=sX(sZ.has),fZ=sX(sZ.set);JY=function(e,t){if(cZ(sZ,e))throw new aZ("Object already initialized");return t.facade=e,fZ(sZ,e,t),t},QY=function(e){return lZ(sZ,e)||{}},eZ=function(e){return cZ(sZ,e)}}else{var dZ=zY("state");TY[dZ]=!0,JY=function(e,t){if(AX(e,dZ))throw new aZ("Object already initialized");return t.facade=e,iZ(e,dZ,t),t},QY=function(e){return AX(e,dZ)?e[dZ]:{}},eZ=function(e){return AX(e,dZ)}}var pZ,hZ,gZ,vZ={set:JY,get:QY,has:eZ,enforce:function(e){return eZ(e)?QY(e):JY(e,{})},getterFor:function(e){return function(t){var n;if(!KX(t)||(n=QY(t)).type!==e)throw aZ("Incompatible receiver, "+e+" required");return n}}},yZ={}.propertyIsEnumerable,mZ=Object.getOwnPropertyDescriptor,bZ={f:mZ&&!yZ.call({1:2},1)?function(e){var t=mZ(this,e);return!!t&&t.enumerable}:yZ},wZ=Object.getOwnPropertyDescriptor,EZ={f:JX?wZ:function(e,t){if(e=mX(e),t=vY(t),nY)try{return wZ(e,t)}catch(n){}if(AX(e,t))return oZ(!oY(bZ.f,e,t),e[t])}},xZ=Function.prototype,DZ=JX&&Object.getOwnPropertyDescriptor,CZ=AX(xZ,"name"),SZ={EXISTS:CZ,PROPER:CZ&&"something"===function(){}.name,CONFIGURABLE:CZ&&(!JX||JX&&DZ(xZ,"name").configurable)},AZ=QK((function(e){var t=SZ.CONFIGURABLE,n=vZ.get,r=vZ.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;TX(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!AX(i,"name")||t&&i.name!==f)&&iZ(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==rX?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:iZ(e,n,i)):l?e[n]=i:wX(n,i)})(Function.prototype,"toString",(function(){return TX(this)&&n(this).source||tZ(this)}))})),OZ=IY.concat("length","prototype"),kZ={f:Object.getOwnPropertyNames||function(e){return jY(e,OZ)}},BZ={f:Object.getOwnPropertySymbols},FZ=sX([].concat),TZ=PX("Reflect","ownKeys")||function(e){var t=kZ.f(ZX(e)),n=BZ.f;return n?FZ(t,n(e)):t},_Z=function(e,t){for(var n=TZ(t),r=bY.f,o=EZ.f,i=0;i<n.length;i++){var a=n[i];AX(e,a)||r(e,a,o(t,a))}},PZ=/#|\.prototype\./,jZ=function(e,t){var n=NZ[IZ(e)];return n==RZ||n!=LZ&&(TX(t)?lX(t):!!t)},IZ=jZ.normalize=function(e){return String(e).replace(PZ,".").toLowerCase()},NZ=jZ.data={},LZ=jZ.NATIVE="N",RZ=jZ.POLYFILL="P",MZ=jZ,zZ=EZ.f,$Z=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?rX:l?rX[u]||wX(u,{}):(rX[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=zZ(n,r))&&a.value:n[r],!MZ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_Z(i,o)}(e.sham||o&&o.sham)&&iZ(i,"sham",!0),AZ(n,r,i,e)}},HZ=!lX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),VZ=zY("IE_PROTO"),UZ=rX.Object,WZ=UZ.prototype,GZ=HZ?UZ.getPrototypeOf:function(e){var t=CX(e);if(AX(t,VZ))return t[VZ];var n=t.constructor;return TX(n)&&t instanceof n?n.prototype:t instanceof UZ?WZ:null},qZ=qX("iterator"),KZ=!1;[].keys&&("next"in(gZ=[].keys())?(hZ=GZ(GZ(gZ)))!==Object.prototype&&(pZ=hZ):KZ=!0);var XZ=null==pZ||lX((function(){var e={};return pZ[qZ].call(e)!==e}));XZ&&(pZ={}),TX(pZ[qZ])||AZ(pZ,qZ,(function(){return this}));var YZ={IteratorPrototype:pZ,BUGGY_SAFARI_ITERATORS:KZ},ZZ=bY.f,JZ=qX("toStringTag"),QZ=function(e,t,n){e&&!AX(e=n?e:e.prototype,JZ)&&ZZ(e,JZ,{configurable:!0,value:t})},eJ=YZ.IteratorPrototype,tJ=function(){return this},nJ=rX.String,rJ=rX.TypeError,oJ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=sX(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return ZX(n),function(e){if("object"==typeof e||TX(e))return e;throw rJ("Can't set "+nJ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),iJ=SZ.PROPER,aJ=SZ.CONFIGURABLE,uJ=YZ.IteratorPrototype,sJ=YZ.BUGGY_SAFARI_ITERATORS,lJ=qX("iterator"),cJ=function(){return this},fJ=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=GY(eJ,{next:oZ(1,s)}),QZ(u,l,!1),YY[l]=tJ;var c,f,d,p=function(e){if(e===o&&m)return m;if(!sJ&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[lJ]||v["@@iterator"]||o&&v[o],m=!sJ&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=GZ(b.call(new e)))!==Object.prototype&&c.next&&(GZ(c)!==uJ&&(oJ?oJ(c,uJ):TX(c[lJ])||AZ(c,lJ,cJ)),QZ(c,h,!0)),iJ&&"values"==o&&y&&"values"!==y.name&&(aJ?iZ(v,"name","values"):(g=!0,m=function(){return oY(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(sJ||g||!(d in v))&&AZ(v,d,f[d]);else $Z({target:t,proto:!0,forced:sJ||g},f);return v[lJ]!==m&&AZ(v,lJ,m,{name:o}),YY[t]=m,f},dJ=vZ.set,pJ=vZ.getterFor("Array Iterator"),hJ=fJ(Array,"Array",(function(e,t){dJ(this,{type:"Array Iterator",target:mX(e),index:0,kind:t})}),(function(){var e=pJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");YY.Arguments=YY.Array,XY("keys"),XY("values"),XY("entries");var gJ={};gJ[qX("toStringTag")]="z";var vJ="[object z]"===String(gJ),yJ=qX("toStringTag"),mJ=rX.Object,bJ="Arguments"==dX(function(){return arguments}()),wJ=vJ?dX:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=mJ(e),yJ))?n:bJ?dX(t):"Object"==(r=dX(t))&&TX(t.callee)?"Arguments":r},EJ=vJ?{}.toString:function(){return"[object "+wJ(this)+"]"};vJ||AZ(Object.prototype,"toString",EJ,{unsafe:!0});var xJ=rX.String,DJ=function(e){if("Symbol"===wJ(e))throw TypeError("Cannot convert a Symbol value to a string");return xJ(e)},CJ=sX("".charAt),SJ=sX("".charCodeAt),AJ=sX("".slice),OJ=function(e){return function(t,n){var r,o,i=DJ(yX(t)),a=xY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=SJ(i,a))<55296||r>56319||a+1===u||(o=SJ(i,a+1))<56320||o>57343?e?CJ(i,a):r:e?AJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},kJ={codeAt:OJ(!1),charAt:OJ(!0)},BJ=kJ.charAt,FJ=vZ.set,TJ=vZ.getterFor("String Iterator");fJ(String,"String",(function(e){FJ(this,{type:"String Iterator",string:DJ(e),index:0})}),(function(){var e,t=TJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=BJ(n,r),t.index+=e.length,{value:e,done:!1})}));var _J=function(e,t,n){for(var r in t)AZ(e,r,t[r],n);return e},PJ=rX.Array,jJ=Math.max,IJ=kZ.f,NJ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],LJ={f:function(e){return NJ&&"Window"==dX(e)?function(e){try{return IJ(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=kY(e),s=SY(void 0,u),l=SY(u,u),c=PJ(jJ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=vY(o))in r?bY.f(r,a,oZ(0,i)):r[a]=i;return c.length=f,c}(NJ)}}(e):IJ(mX(e))}},RJ=lX((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),MJ=Object.isExtensible,zJ=lX((function(){MJ(1)}))||RJ?function(e){return!!KX(e)&&(!RJ||"ArrayBuffer"!=dX(e))&&(!MJ||MJ(e))}:MJ,$J=!lX((function(){return Object.isExtensible(Object.preventExtensions({}))})),HJ=QK((function(e){var t=bY.f,n=!1,r=FX("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=kZ.f,t=sX([].splice),o={};o[r]=1,e(o).length&&(kZ.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},$Z({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:LJ.f}))},fastKey:function(e,t){if(!KX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!AX(e,r)){if(!zJ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!AX(e,r)){if(!zJ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return $J&&n&&zJ(e)&&!AX(e,r)&&i(e),e}};TY[r]=!0})),VJ=sX(sX.bind),UJ=function(e,t){return fY(e),void 0===t?e:VJ?VJ(e,t):function(){return e.apply(t,arguments)}},WJ=qX("iterator"),GJ=Array.prototype,qJ=qX("iterator"),KJ=function(e){if(null!=e)return dY(e,qJ)||dY(e,"@@iterator")||YY[wJ(e)]},XJ=rX.TypeError,YJ=function(e,t,n){var r,o;ZX(e);try{if(!(r=dY(e,"return"))){if("throw"===t)throw n;return n}r=oY(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return ZX(r),n},ZJ=rX.TypeError,JJ=function(e,t){this.stopped=e,this.result=t},QJ=JJ.prototype,eQ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=UJ(t,f),v=function(e){return r&&YJ(r,"normal",e),new JJ(!0,e)},y=function(e){return d?(ZX(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=KJ(e)))throw ZJ(lY(e)+" is not iterable");if(void 0!==(c=o)&&(YY.Array===c||GJ[WJ]===c)){for(i=0,a=kY(e);a>i;i++)if((u=y(e[i]))&&iY(QJ,u))return u;return new JJ(!1)}r=function(e,t){var n=arguments.length<2?KJ(e):t;if(fY(n))return ZX(oY(n,e));throw XJ(lY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=oY(s,r)).done;){try{u=y(l.value)}catch(m){YJ(r,"throw",m)}if("object"==typeof u&&u&&iY(QJ,u))return u}return new JJ(!1)},tQ=rX.TypeError,nQ=function(e,t){if(iY(t,e))return e;throw tQ("Incorrect invocation")},rQ=qX("iterator"),oQ=!1;try{var iQ=0,aQ={next:function(){return{done:!!iQ++}},return:function(){oQ=!0}};aQ[rQ]=function(){return this},Array.from(aQ,(function(){throw 2}))}catch(zme){}var uQ=Array.isArray||function(e){return"Array"==dX(e)},sQ=function(){},lQ=[],cQ=PX("Reflect","construct"),fQ=/^\s*(?:class|function)\b/,dQ=sX(fQ.exec),pQ=!fQ.exec(sQ),hQ=function(e){if(!TX(e))return!1;try{return cQ(sQ,lQ,e),!0}catch(t){return!1}},gQ=!cQ||lX((function(){var e;return hQ(hQ.call)||!hQ(Object)||!hQ((function(){e=!0}))||e}))?function(e){if(!TX(e))return!1;switch(wJ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pQ||!!dQ(fQ,tZ(e))}:hQ,vQ=qX("species"),yQ=rX.Array,mQ=function(e,t){return new(uQ(n=e)&&(r=n.constructor,(gQ(r)&&(r===yQ||uQ(r.prototype))||KX(r)&&null===(r=r[vQ]))&&(r=void 0)),void 0===r?yQ:r)(0===t?0:t);var n,r},bQ=sX([].push),wQ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=CX(s),g=gX(h),v=UJ(l,c),y=kY(g),m=0,b=f||mQ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:bQ(w,d)}else switch(e){case 4:return!1;case 7:bQ(w,d)}return i?-1:r||o?o:w}},EQ={forEach:wQ(0),map:wQ(1),filter:wQ(2),some:wQ(3),every:wQ(4),find:wQ(5),findIndex:wQ(6),filterReject:wQ(7)},xQ=HJ.getWeakData,DQ=vZ.set,CQ=vZ.getterFor,SQ=EQ.find,AQ=EQ.findIndex,OQ=sX([].splice),kQ=0,BQ=function(e){return e.frozen||(e.frozen=new FQ)},FQ=function(){this.entries=[]},TQ=function(e,t){return SQ(e.entries,(function(e){return e[0]===t}))};FQ.prototype={get:function(e){var t=TQ(this,e);if(t)return t[1]},has:function(e){return!!TQ(this,e)},set:function(e,t){var n=TQ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=AQ(this.entries,(function(t){return t[0]===e}));return~t&&OQ(this.entries,t,1),!!~t}};var _Q,PQ={getConstructor:function(e,t,n,r){var o=e((function(e,o){nQ(e,i),DQ(e,{type:t,id:kQ++,frozen:void 0}),null!=o&&eQ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=CQ(t),u=function(e,t,n){var r=a(e),o=xQ(ZX(t),!0);return!0===o?BQ(r).set(t,n):o[r.id]=n,e};return _J(i,{delete:function(e){var t=a(this);if(!KX(e))return!1;var n=xQ(e);return!0===n?BQ(t).delete(e):n&&AX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!KX(e))return!1;var n=xQ(e);return!0===n?BQ(t).has(e):n&&AX(n,t.id)}}),_J(i,n?{get:function(e){var t=a(this);if(KX(e)){var n=xQ(e);return!0===n?BQ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},jQ=vZ.enforce,IQ=!rX.ActiveXObject&&"ActiveXObject"in rX,NQ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},LQ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=rX[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=sX(u[e]);AZ(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!KX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!KX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!KX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(MZ(e,!TX(a)||!(o||u.forEach&&!lX((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),HJ.enable();else if(MZ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=lX((function(){f.has(1)})),h=function(e,t){if(!oQ)return!1;var n=!1;try{var r={};r[rQ]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),g=!o&&lX((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){nQ(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,oJ&&TX(c=o.constructor)&&c!==l&&KX(f=c.prototype)&&f!==l.prototype&&oJ(n,f),n);return null!=t&&eQ(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,$Z({global:!0,forced:s!=a},l),QZ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",NQ,PQ);if(rZ&&IQ){_Q=PQ.getConstructor(NQ,"WeakMap",!0),HJ.enable();var RQ=LQ.prototype,MQ=sX(RQ.delete),zQ=sX(RQ.has),$Q=sX(RQ.get),HQ=sX(RQ.set);_J(RQ,{delete:function(e){if(KX(e)&&!zJ(e)){var t=jQ(this);return t.frozen||(t.frozen=new _Q),MQ(this,e)||t.frozen.delete(e)}return MQ(this,e)},has:function(e){if(KX(e)&&!zJ(e)){var t=jQ(this);return t.frozen||(t.frozen=new _Q),zQ(this,e)||t.frozen.has(e)}return zQ(this,e)},get:function(e){if(KX(e)&&!zJ(e)){var t=jQ(this);return t.frozen||(t.frozen=new _Q),zQ(this,e)?$Q(this,e):t.frozen.get(e)}return $Q(this,e)},set:function(e,t){if(KX(e)&&!zJ(e)){var n=jQ(this);n.frozen||(n.frozen=new _Q),zQ(this,e)?HQ(this,e,t):n.frozen.set(e,t)}else HQ(this,e,t);return this}})}var VQ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},UQ=tY("span").classList,WQ=UQ&&UQ.constructor&&UQ.constructor.prototype,GQ=WQ===Object.prototype?void 0:WQ,qQ=qX("iterator"),KQ=qX("toStringTag"),XQ=hJ.values,YQ=function(e,t){if(e){if(e[qQ]!==XQ)try{iZ(e,qQ,XQ)}catch(r){e[qQ]=XQ}if(e[KQ]||iZ(e,KQ,t),VQ[t])for(var n in hJ)if(e[n]!==hJ[n])try{iZ(e,n,hJ[n])}catch(r){e[n]=hJ[n]}}};for(var ZQ in VQ)YQ(rX[ZQ]&&rX[ZQ].prototype,ZQ);YQ(GQ,"DOMTokenList");var JQ=new WeakMap,QQ={type:"list-item",renderElem:function(e,t,n){JQ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=sB.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=yp.previous(c),d=sp.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e)+".":s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return ey("div",{style:u},ey("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];_p.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),ey("span",null,t))}},e0=function(e,t){return e0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e0(e,t);
  50. /*! *****************************************************************************
  51. Copyright (c) Microsoft Corporation.
  52. Permission to use, copy, modify, and/or distribute this software for any
  53. purpose with or without fee is hereby granted.
  54. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  55. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  56. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  57. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  58. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  59. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  60. PERFORMANCE OF THIS SOFTWARE.
  61. ***************************************************************************** */};function t0(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}e0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function n0(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r0(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function o0(e){return sp.nodes(e,{at:e.selection||void 0,match:function(t){return 1===sB.findPath(e,t).length}})}var i0=FY.includes;$Z({target:"Array",proto:!0},{includes:function(e){return i0(this,e,arguments.length>1?arguments[1]:void 0)}}),XY("includes");var a0,u0,s0=function(){var e=ZX(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},l0=rX.RegExp,c0=lX((function(){var e=l0("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),f0=c0||lX((function(){return!l0("a","y").sticky})),d0={BROKEN_CARET:c0||lX((function(){var e=l0("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:f0,UNSUPPORTED_Y:c0},p0=rX.RegExp,h0=lX((function(){var e=p0(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),g0=rX.RegExp,v0=lX((function(){var e=g0("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),y0=vZ.get,m0=xX("native-string-replace",String.prototype.replace),b0=RegExp.prototype.exec,w0=b0,E0=sX("".charAt),x0=sX("".indexOf),D0=sX("".replace),C0=sX("".slice),S0=(u0=/b*/g,oY(b0,a0=/a/,"a"),oY(b0,u0,"a"),0!==a0.lastIndex||0!==u0.lastIndex),A0=d0.BROKEN_CARET,O0=void 0!==/()??/.exec("")[1];(S0||O0||A0||h0||v0)&&(w0=function(e){var t,n,r,o,i,a,u,s=this,l=y0(s),c=DJ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=oY(w0,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=A0&&s.sticky,h=oY(s0,s),g=s.source,v=0,y=c;if(p&&(h=D0(h,"y",""),-1===x0(h,"g")&&(h+="g"),y=C0(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==E0(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),O0&&(n=new RegExp("^"+g+"$(?!\\s)",h)),S0&&(r=s.lastIndex),o=oY(b0,p?n:s,y),p?o?(o.input=C0(o.input,v),o[0]=C0(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:S0&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),O0&&o&&o.length>1&&oY(m0,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=GY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var k0=w0;$Z({target:"RegExp",proto:!0,forced:/./.exec!==k0},{exec:k0});var B0=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return sB.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!sB.getSelectedElems(e).some((function(t){if(sp.isVoid(e,t)&&sp.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?Yp.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Yp.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),F0='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',T0='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',_0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Kj("listModule.unOrderedList"),t.iconSvg=F0,t}return t0(t,e),t}(B0),P0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Kj("listModule.orderedList"),t.iconSvg=T0,t}return t0(t,e),t}(B0),j0={key:"bulletedList",factory:function(){return new _0}},I0={key:"numberedList",factory:function(){return new P0}},N0=[],L0={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=JQ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=sB.findPath(t,e);if(0===s[0])return u+1;var l=yp.previous(s),c=sp.node(t,l);if(!c)return 0;var f=r0(c,1)[0];if(sB.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",N0.push(i);var s=function(e){var t=JQ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=sB.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=yp.next(s),c=sp.node(t,l);if(!c)return 0;var f=r0(c,1)[0];if(sB.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+N0.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},R0=qX("species"),M0=EQ.filter,z0=zX>=51||!lX((function(){var e=[];return(e.constructor={})[R0]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));$Z({target:"Array",proto:!0,forced:!z0},{filter:function(e){return M0(this,e,arguments.length>1?arguments[1]:void 0)}});var $0=Function.prototype,H0=$0.apply,V0=$0.bind,U0=$0.call,W0="object"==typeof Reflect&&Reflect.apply||(V0?U0.bind(H0):function(){return U0.apply(H0,arguments)}),G0=(qX("species"),RegExp.prototype),q0=kJ.charAt,K0=function(e,t,n){return t+(n?q0(e,t).length:1)},X0=Math.floor,Y0=sX("".charAt),Z0=sX("".replace),J0=sX("".slice),Q0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,e1=/\$([$&'`]|\d{1,2})/g,t1=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=e1;return void 0!==o&&(o=CX(o),s=Q0),Z0(i,s,(function(i,s){var l;switch(Y0(s,0)){case"$":return"$";case"&":return e;case"`":return J0(t,0,n);case"'":return J0(t,a);case"<":l=o[J0(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=X0(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Y0(s,1):r[f-1]+Y0(s,1):i}l=r[c-1]}return void 0===l?"":l}))},n1=rX.TypeError,r1=function(e,t){var n=e.exec;if(TX(n)){var r=oY(n,e,t);return null!==r&&ZX(r),r}if("RegExp"===dX(e))return oY(k0,e,t);throw n1("RegExp#exec called on incompatible receiver")},o1=qX("replace"),i1=Math.max,a1=Math.min,u1=sX([].concat),s1=sX([].push),l1=sX("".indexOf),c1=sX("".slice),f1="$0"==="a".replace(/./,"$0"),d1=!!/./[o1]&&""===/./[o1]("a","$0");!function(e,t,n,r){var o,i,a=qX(e),u=!lX((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!lX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=sX(/./[a]),c=(o=""[e],i=d1?"$":"$0",[function(e,t){var n=yX(this),r=null==e?void 0:dY(e,o1);return r?oY(r,e,n,t):oY(o,DJ(n),e,t)},function(e,t){var n=ZX(this),r=DJ(e);if("string"==typeof t&&-1===l1(t,i)&&-1===l1(t,"$<")){var a=function(e,t,n,r,o){var i=sX(e),a=t.exec;return a===k0||a===G0.exec?u&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(o,n,r,t);if(a.done)return a.value}var s=TX(t);s||(t=DJ(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=r1(n,r);if(null===p)break;if(s1(d,p),!c)break;""===DJ(p[0])&&(n.lastIndex=K0(r,OY(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=DJ((p=d[y])[0]),b=i1(a1(xY(p.index),r.length),0),w=[],E=1;E<p.length;E++)s1(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(s){var D=u1([m],w,b,r);void 0!==x&&s1(D,x);var C=DJ(W0(t,void 0,D))}else C=t1(m,r,b,w,x,t);b>=v&&(g+=c1(r,v,b)+C,v=b+m.length)}return g+c1(r,v)}]);AZ(String.prototype,e,c[0]),AZ(G0,a,c[1])}}("replace",0,!!lX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!f1||d1);var p1=rX.TypeError,h1=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&UJ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&uQ(s))l=kY(s),c=h1(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw p1("Exceed the acceptable array length");e[c]=s}c++}f++}return c},g1=h1;function v1(e){return e.length?e[0].tagName.toLowerCase():""}$Z({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=CX(this),n=kY(t),r=mQ(t,0);return r.length=g1(r,t,t,n,0,void 0===e?1:xY(e)),r}}),XY("flat"),$Z({global:!0},{globalThis:rX}),_g&&(fg.fn.append=_g),gg&&(fg.fn.attr=gg),jg&&(fg.fn.parent=jg);var y1={renderElems:[QQ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Sp.isExpanded(n))t(e);else{var r=sB.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?Yp.setNodes(o,{level:a-1}):Yp.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Sp.isCollapsed(a)){var u=sB.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Yp.setNodes(o,{level:l+1})}}if(Sp.isExpanded(a)){var c=0,f=!1;try{for(var d=n0(o0(o)),p=d.next();!p.done;p=d.next()){var h=r0(p.value,1)[0];"list-item"===sB.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=n0(o0(o)),v=g.next();!v.done;v=g.next()){var y=r0(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Yp.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=r0(e,2),n=t[0],i=t[1],a=sB.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Yp.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[j0,I0],elemsToHtml:[L0],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e);0===(t=t.filter((function(e){return!!_p.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===v1(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=v1(n);"ul"===r||"ol"===r;)r=v1(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},m1=ze((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[m]=x[a]=x[b]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[h]=x[g]=x[v]=x[y]=!1;var D="object"==typeof Me&&Me&&Me.Object===Object&&Me,C="object"==typeof self&&self&&self.Object===Object&&self,S=D||C||Function("return this")(),A=t&&!t.nodeType&&t,O=A&&e&&!e.nodeType&&e,k=O&&O.exports===A,B=k&&D.process,F=function(){try{return B&&B.binding&&B.binding("util")}catch(cf){}}(),T=F&&F.isTypedArray;function _(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,N=Function.prototype,L=Object.prototype,R=S["__core-js_shared__"],M=N.toString,z=L.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=L.toString,V=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=k?S.Buffer:void 0,W=S.Symbol,G=S.Uint8Array,q=L.propertyIsEnumerable,K=I.splice,X=W?W.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=U?U.isBuffer:void 0,J=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Q=Ce(S,"DataView"),ee=Ce(S,"Map"),te=Ce(S,"Promise"),ne=Ce(S,"Set"),re=Ce(S,"WeakMap"),oe=Ce(Object,"create"),ie=ke(Q),ae=ke(ee),ue=ke(te),se=ke(ne),le=ke(re),ce=W?W.prototype:void 0,fe=ce?ce.valueOf:void 0;function de(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}function ve(e){var t=this.__data__=new pe(e);this.size=t.size}function ye(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function me(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(i){}var o=H.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,H.call(t));var t}function be(e){return Ne(e)&&me(e)==o}function we(e,t,n,r,l){return e===t||(null==e||null==t||!Ne(e)&&!Ne(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var y=Te(e),w=Te(t),E=y?i:Ae(e),x=w?i:Ae(t),D=(E=E==o?d:E)==d,C=(x=x==o?d:x)==d,S=E==x;if(S&&_e(e)){if(!_e(t))return!1;y=!0,D=!1}if(S&&!D)return p||(p=new ve),y||Le(e)?Ee(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new G(e),new G(t)));case a:case u:case f:return Be(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case v:return e==t+"";case c:var d=P;case g:var p=1&r;if(d||(d=j),e.size!=t.size&&!p)return!1;var y=l.get(e);if(y)return y==t;r|=2,l.set(e,t);var w=Ee(d(e),d(t),r,o,i,l);return l.delete(e),w;case"[object Symbol]":if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=D&&z.call(e,"__wrapped__"),O=C&&z.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new ve),l(k,B,n,r,p)}}return!!S&&(p||(p=new ve),function(e,t,n,r,o,i){var a=1&n,u=xe(e),s=u.length;if(s!=xe(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:z.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,we,l))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ge:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!_(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function xe(e){return n=Se,r=Re(t=e),Te(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function De(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ce(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ie(e)||(t=e,$&&$ in t))&&(Pe(e)?V:w).test(ke(e));var t}(o)?o:void 0}de.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},de.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de.prototype.get=function(e){var t=this.__data__;if(oe){var r=t[e];return r===n?void 0:r}return z.call(t,e)?t[e]:void 0},de.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},de.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?n:t,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=ye(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},pe.prototype.get=function(e){var t=this.__data__,n=ye(t,e);return n<0?void 0:t[n][1]},pe.prototype.has=function(e){return ye(this.__data__,e)>-1},pe.prototype.set=function(e,t){var n=this.__data__,r=ye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new de,map:new(ee||pe),string:new de}},he.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return De(this,e).get(e)},he.prototype.has=function(e){return De(this,e).has(e)},he.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.clear=function(){this.__data__=new pe,this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ve.prototype.get=function(e){return this.__data__.get(e)},ve.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pe){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var Se=Y?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Y(e),(function(t){return q.call(e,t)})))}:function(){return[]},Ae=me;function Oe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){if(null!=e){try{return M.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(Q&&Ae(new Q(new ArrayBuffer(1)))!=b||ee&&Ae(new ee)!=c||te&&Ae(te.resolve())!=p||ne&&Ae(new ne)!=g||re&&Ae(new re)!=y)&&(Ae=function(e){var t=me(e),n=t==d?e.constructor:void 0,r=n?ke(n):"";if(r)switch(r){case ie:return b;case ae:return c;case ue:return p;case se:return g;case le:return y}return t});var Fe=be(function(){return arguments}())?be:function(e){return Ne(e)&&z.call(e,"callee")&&!q.call(e,"callee")},Te=Array.isArray,_e=Z||function(){return!1};function Pe(e){if(!Ie(e))return!1;var t=me(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ne(e){return null!=e&&"object"==typeof e}var Le=T?function(e){return function(t){return e(t)}}(T):function(e){return Ne(e)&&je(e.length)&&!!x[me(e)]};function Re(e){return null!=(t=e)&&je(t.length)&&!Pe(t)?function(e,t){var n=Te(e),r=!n&&Fe(e),o=!n&&!r&&_e(e),i=!n&&!r&&!o&&Le(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!z.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oe(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||L))return J(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return we(e,t)}}));qj("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),qj("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var b1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w1(e){var t={exports:{}};return e(t,t.exports),t.exports}var E1,x1,D1=function(e){return e&&e.Math==Math&&e},C1=D1("object"==typeof globalThis&&globalThis)||D1("object"==typeof window&&window)||D1("object"==typeof self&&self)||D1("object"==typeof b1&&b1)||function(){return this}()||Function("return this")(),S1=function(e){try{return!!e()}catch(t){return!0}},A1=!S1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),O1=Function.prototype.call,k1=O1.bind?O1.bind(O1):function(){return O1.apply(O1,arguments)},B1={}.propertyIsEnumerable,F1=Object.getOwnPropertyDescriptor,T1={f:F1&&!B1.call({1:2},1)?function(e){var t=F1(this,e);return!!t&&t.enumerable}:B1},_1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},P1=Function.prototype,j1=P1.bind,I1=P1.call,N1=j1&&j1.bind(I1),L1=j1?function(e){return e&&N1(I1,e)}:function(e){return e&&function(){return I1.apply(e,arguments)}},R1=L1({}.toString),M1=L1("".slice),z1=function(e){return M1(R1(e),8,-1)},$1=C1.Object,H1=L1("".split),V1=S1((function(){return!$1("z").propertyIsEnumerable(0)}))?function(e){return"String"==z1(e)?H1(e,""):$1(e)}:$1,U1=C1.TypeError,W1=function(e){if(null==e)throw U1("Can't call method on "+e);return e},G1=function(e){return V1(W1(e))},q1=function(e){return"function"==typeof e},K1=function(e){return"object"==typeof e?null!==e:q1(e)},X1=function(e){return q1(e)?e:void 0},Y1=function(e,t){return arguments.length<2?X1(C1[e]):C1[e]&&C1[e][t]},Z1=L1({}.isPrototypeOf),J1=Y1("navigator","userAgent")||"",Q1=C1.process,e2=C1.Deno,t2=Q1&&Q1.versions||e2&&e2.version,n2=t2&&t2.v8;n2&&(x1=(E1=n2.split("."))[0]>0&&E1[0]<4?1:+(E1[0]+E1[1])),!x1&&J1&&(!(E1=J1.match(/Edge\/(\d+)/))||E1[1]>=74)&&(E1=J1.match(/Chrome\/(\d+)/))&&(x1=+E1[1]);var r2=x1,o2=!!Object.getOwnPropertySymbols&&!S1((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r2&&r2<41})),i2=o2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,a2=C1.Object,u2=i2?function(e){return"symbol"==typeof e}:function(e){var t=Y1("Symbol");return q1(t)&&Z1(t.prototype,a2(e))},s2=C1.String,l2=function(e){try{return s2(e)}catch(t){return"Object"}},c2=C1.TypeError,f2=function(e){if(q1(e))return e;throw c2(l2(e)+" is not a function")},d2=function(e,t){var n=e[t];return null==n?void 0:f2(n)},p2=C1.TypeError,h2=Object.defineProperty,g2=function(e,t){try{h2(C1,e,{value:t,configurable:!0,writable:!0})}catch(Yj){C1[e]=t}return t},v2=C1["__core-js_shared__"]||g2("__core-js_shared__",{}),y2=w1((function(e){(e.exports=function(e,t){return v2[e]||(v2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),m2=C1.Object,b2=function(e){return m2(W1(e))},w2=L1({}.hasOwnProperty),E2=Object.hasOwn||function(e,t){return w2(b2(e),t)},x2=0,D2=Math.random(),C2=L1(1..toString),S2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+C2(++x2+D2,36)},A2=y2("wks"),O2=C1.Symbol,k2=O2&&O2.for,B2=i2?O2:O2&&O2.withoutSetter||S2,F2=function(e){if(!E2(A2,e)||!o2&&"string"!=typeof A2[e]){var t="Symbol."+e;o2&&E2(O2,e)?A2[e]=O2[e]:A2[e]=i2&&k2?k2(t):B2(t)}return A2[e]},T2=C1.TypeError,_2=F2("toPrimitive"),P2=function(e){var t=function(e,t){if(!K1(e)||u2(e))return e;var n,r=d2(e,_2);if(r){if(void 0===t&&(t="default"),n=k1(r,e,t),!K1(n)||u2(n))return n;throw T2("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&q1(n=e.toString)&&!K1(r=k1(n,e)))return r;if(q1(n=e.valueOf)&&!K1(r=k1(n,e)))return r;if("string"!==t&&q1(n=e.toString)&&!K1(r=k1(n,e)))return r;throw p2("Can't convert object to primitive value")}(e,t)}(e,"string");return u2(t)?t:t+""},j2=C1.document,I2=K1(j2)&&K1(j2.createElement),N2=function(e){return I2?j2.createElement(e):{}},L2=!A1&&!S1((function(){return 7!=Object.defineProperty(N2("div"),"a",{get:function(){return 7}}).a})),R2=Object.getOwnPropertyDescriptor,M2={f:A1?R2:function(e,t){if(e=G1(e),t=P2(t),L2)try{return R2(e,t)}catch(n){}if(E2(e,t))return _1(!k1(T1.f,e,t),e[t])}},z2=C1.String,$2=C1.TypeError,H2=function(e){if(K1(e))return e;throw $2(z2(e)+" is not an object")},V2=C1.TypeError,U2=Object.defineProperty,W2={f:A1?U2:function(e,t,n){if(H2(e),t=P2(t),H2(n),L2)try{return U2(e,t,n)}catch(r){}if("get"in n||"set"in n)throw V2("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},G2=A1?function(e,t,n){return W2.f(e,t,_1(1,n))}:function(e,t,n){return e[t]=n,e},q2=L1(Function.toString);q1(v2.inspectSource)||(v2.inspectSource=function(e){return q2(e)});var K2,X2,Y2,Z2=v2.inspectSource,J2=C1.WeakMap,Q2=q1(J2)&&/native code/.test(Z2(J2)),e4=y2("keys"),t4=function(e){return e4[e]||(e4[e]=S2(e))},n4={},r4=C1.TypeError,o4=C1.WeakMap;if(Q2||v2.state){var i4=v2.state||(v2.state=new o4),a4=L1(i4.get),u4=L1(i4.has),s4=L1(i4.set);K2=function(e,t){if(u4(i4,e))throw new r4("Object already initialized");return t.facade=e,s4(i4,e,t),t},X2=function(e){return a4(i4,e)||{}},Y2=function(e){return u4(i4,e)}}else{var l4=t4("state");n4[l4]=!0,K2=function(e,t){if(E2(e,l4))throw new r4("Object already initialized");return t.facade=e,G2(e,l4,t),t},X2=function(e){return E2(e,l4)?e[l4]:{}},Y2=function(e){return E2(e,l4)}}var c4={set:K2,get:X2,has:Y2,enforce:function(e){return Y2(e)?X2(e):K2(e,{})},getterFor:function(e){return function(t){var n;if(!K1(t)||(n=X2(t)).type!==e)throw r4("Incompatible receiver, "+e+" required");return n}}},f4=Function.prototype,d4=A1&&Object.getOwnPropertyDescriptor,p4=E2(f4,"name"),h4={EXISTS:p4,PROPER:p4&&"something"===function(){}.name,CONFIGURABLE:p4&&(!A1||A1&&d4(f4,"name").configurable)},g4=w1((function(e){var t=h4.CONFIGURABLE,n=c4.get,r=c4.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;q1(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!E2(i,"name")||t&&i.name!==f)&&G2(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==C1?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:G2(e,n,i)):l?e[n]=i:g2(n,i)})(Function.prototype,"toString",(function(){return q1(this)&&n(this).source||Z2(this)}))})),v4=Math.ceil,y4=Math.floor,m4=function(e){var t=+e;return t!=t||0===t?0:(t>0?y4:v4)(t)},b4=Math.max,w4=Math.min,E4=function(e,t){var n=m4(e);return n<0?b4(n+t,0):w4(n,t)},x4=Math.min,D4=function(e){return e>0?x4(m4(e),9007199254740991):0},C4=function(e){return D4(e.length)},S4=function(e){return function(t,n,r){var o,i=G1(t),a=C4(i),u=E4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),A4=L1([].push),O4=function(e,t){var n,r=G1(e),o=0,i=[];for(n in r)!E2(n4,n)&&E2(r,n)&&A4(i,n);for(;t.length>o;)E2(r,n=t[o++])&&(~S4(i,n)||A4(i,n));return i},k4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B4=k4.concat("length","prototype"),F4={f:Object.getOwnPropertyNames||function(e){return O4(e,B4)}},T4={f:Object.getOwnPropertySymbols},_4=L1([].concat),P4=Y1("Reflect","ownKeys")||function(e){var t=F4.f(H2(e)),n=T4.f;return n?_4(t,n(e)):t},j4=function(e,t){for(var n=P4(t),r=W2.f,o=M2.f,i=0;i<n.length;i++){var a=n[i];E2(e,a)||r(e,a,o(t,a))}},I4=/#|\.prototype\./,N4=function(e,t){var n=R4[L4(e)];return n==z4||n!=M4&&(q1(t)?S1(t):!!t)},L4=N4.normalize=function(e){return String(e).replace(I4,".").toLowerCase()},R4=N4.data={},M4=N4.NATIVE="N",z4=N4.POLYFILL="P",$4=N4,H4=M2.f,V4=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?C1:l?C1[u]||g2(u,{}):(C1[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=H4(n,r))&&a.value:n[r],!$4(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;j4(i,o)}(e.sham||o&&o.sham)&&G2(i,"sham",!0),g4(n,r,i,e)}},U4={};U4[F2("toStringTag")]="z";var W4="[object z]"===String(U4),G4=F2("toStringTag"),q4=C1.Object,K4="Arguments"==z1(function(){return arguments}()),X4=W4?z1:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=q4(e),G4))?n:K4?z1(t):"Object"==(r=z1(t))&&q1(t.callee)?"Arguments":r},Y4=C1.String,Z4=function(e){if("Symbol"===X4(e))throw TypeError("Cannot convert a Symbol value to a string");return Y4(e)},J4=/"/g,Q4=L1("".replace);V4({target:"String",proto:!0,forced:S1((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Z4(W1(this)),r="<a",(r+=' name="'+Q4(Z4(t),J4,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var e6,t6=function(){var e=H2(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},n6=C1.RegExp,r6=S1((function(){var e=n6("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o6=r6||S1((function(){return!n6("a","y").sticky})),i6={BROKEN_CARET:r6||S1((function(){var e=n6("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:o6,UNSUPPORTED_Y:r6},a6=Object.keys||function(e){return O4(e,k4)},u6=A1?Object.defineProperties:function(e,t){H2(e);for(var n,r=G1(t),o=a6(t),i=o.length,a=0;i>a;)W2.f(e,n=o[a++],r[n]);return e},s6=Y1("document","documentElement"),l6=t4("IE_PROTO"),c6=function(){},f6=function(e){return"<script>"+e+"<\/script>"},d6=function(e){e.write(f6("")),e.close();var t=e.parentWindow.Object;return e=null,t},p6=function(){try{e6=new ActiveXObject("htmlfile")}catch(r){}var e,t;p6="undefined"!=typeof document?document.domain&&e6?d6(e6):((t=N2("iframe")).style.display="none",s6.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f6("document.F=Object")),e.close(),e.F):d6(e6);for(var n=k4.length;n--;)delete p6.prototype[k4[n]];return p6()};n4[l6]=!0;var h6,g6,v6=Object.create||function(e,t){var n;return null!==e?(c6.prototype=H2(e),n=new c6,c6.prototype=null,n[l6]=e):n=p6(),void 0===t?n:u6(n,t)},y6=C1.RegExp,m6=S1((function(){var e=y6(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),b6=C1.RegExp,w6=S1((function(){var e=b6("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),E6=c4.get,x6=y2("native-string-replace",String.prototype.replace),D6=RegExp.prototype.exec,C6=D6,S6=L1("".charAt),A6=L1("".indexOf),O6=L1("".replace),k6=L1("".slice),B6=(g6=/b*/g,k1(D6,h6=/a/,"a"),k1(D6,g6,"a"),0!==h6.lastIndex||0!==g6.lastIndex),F6=i6.BROKEN_CARET,T6=void 0!==/()??/.exec("")[1];(B6||T6||F6||m6||w6)&&(C6=function(e){var t,n,r,o,i,a,u,s=this,l=E6(s),c=Z4(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=k1(C6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=F6&&s.sticky,h=k1(t6,s),g=s.source,v=0,y=c;if(p&&(h=O6(h,"y",""),-1===A6(h,"g")&&(h+="g"),y=k6(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==S6(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),T6&&(n=new RegExp("^"+g+"$(?!\\s)",h)),B6&&(r=s.lastIndex),o=k1(D6,p?n:s,y),p?o?(o.input=k6(o.input,v),o[0]=k6(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:B6&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),T6&&o&&o.length>1&&k1(x6,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=v6(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _6=C6;V4({target:"RegExp",proto:!0,forced:/./.exec!==_6},{exec:_6});var P6=Array.isArray||function(e){return"Array"==z1(e)},j6=function(){},I6=[],N6=Y1("Reflect","construct"),L6=/^\s*(?:class|function)\b/,R6=L1(L6.exec),M6=!L6.exec(j6),z6=function(e){if(!q1(e))return!1;try{return N6(j6,I6,e),!0}catch(t){return!1}},$6=!N6||S1((function(){var e;return z6(z6.call)||!z6(Object)||!z6((function(){e=!0}))||e}))?function(e){if(!q1(e))return!1;switch(X4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return M6||!!R6(L6,Z2(e))}:z6,H6=function(e,t,n){var r=P2(t);r in e?W2.f(e,r,_1(0,n)):e[r]=n},V6=F2("species"),U6=function(e){return r2>=51||!S1((function(){var t=[];return(t.constructor={})[V6]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},W6=L1([].slice),G6=U6("slice"),q6=F2("species"),K6=C1.Array,X6=Math.max;function Y6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Z6(e){var t=e.selection;if(null==t)return!1;var n=Y6(sp.nodes(e,{match:function(e){return sB.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=Y6(n,2)[1],o=sp.start(e,r);if(Ep.equals(t.anchor,o))return!0}return!1}function J6(e,t){var n,r,o=sp.nodes(e,{at:t,match:function(e){return"table"===sB.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}V4({target:"Array",proto:!0,forced:!G6},{slice:function(e,t){var n,r,o,i=G1(this),a=C4(i),u=E4(e,a),s=E4(void 0===t?a:t,a);if(P6(i)&&(n=i.constructor,($6(n)&&(n===K6||P6(n.prototype))||K1(n)&&null===(n=n[q6]))&&(n=void 0),n===K6||void 0===n))return W6(i,u,s);for(r=new(void 0===n?K6:n)(X6(s-u,0)),o=0;u<s;u++,o++)u in i&&H6(r,o,i[u]);return r.length=o,r}});var Q6=L1(L1.bind),e3=F2("species"),t3=C1.Array,n3=function(e,t){return new(P6(n=e)&&(r=n.constructor,($6(r)&&(r===t3||P6(r.prototype))||K1(r)&&null===(r=r[e3]))&&(r=void 0)),void 0===r?t3:r)(0===t?0:t);var n,r},r3=L1([].push),o3=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=b2(s),g=V1(h),v=function(e,t){return f2(e),void 0===t?e:Q6?Q6(e,t):function(){return e.apply(t,arguments)}}(l,c),y=C4(g),m=0,b=f||n3,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:r3(w,d)}else switch(e){case 4:return!1;case 7:r3(w,d)}return i?-1:r||o?o:w}},i3={forEach:o3(0),map:o3(1),filter:o3(2),some:o3(3),every:o3(4),find:o3(5),findIndex:o3(6),filterReject:o3(7)},a3=i3.map;V4({target:"Array",proto:!0,forced:!U6("map")},{map:function(e){return a3(this,e,arguments.length>1?arguments[1]:void 0)}});var u3=W4?{}.toString:function(){return"[object "+X4(this)+"]"};function s3(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function l3(e){return s3(e).every((function(e){return!!e.isHeader}))}W4||g4(Object.prototype,"toString",u3,{unsafe:!0});var c3=h4.PROPER,f3=RegExp.prototype,d3=f3.toString,p3=L1(t6),h3=S1((function(){return"/a/b"!=d3.call({source:"a",flags:"b"})})),g3=c3&&"toString"!=d3.name;(h3||g3)&&g4(RegExp.prototype,"toString",(function(){var e=H2(this),t=Z4(e.source),n=e.flags;return"/"+t+"/"+Z4(void 0===n&&Z1(f3,e)&&!("flags"in f3)?p3(e):n)}),{unsafe:!0});var v3=F2("unscopables"),y3=Array.prototype;null==y3[v3]&&W2.f(y3,v3,{configurable:!0,value:v6(null)});var m3=i3.find,b3=!0;"find"in[]&&Array(1).find((function(){b3=!1})),V4({target:"Array",proto:!0,forced:b3},{find:function(e){return m3(this,e,arguments.length>1?arguments[1]:void 0)}}),y3[v3].find=!0;var w3=Function.prototype,E3=w3.apply,x3=w3.bind,D3=w3.call,C3="object"==typeof Reflect&&Reflect.apply||(x3?D3.bind(E3):function(){return D3.apply(E3,arguments)}),S3=F2("species"),A3=RegExp.prototype,O3=function(e,t,n,r){var o=F2(e),i=!S1((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!S1((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[S3]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=L1(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=L1(e),s=t.exec;return s===_6||s===A3.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));g4(String.prototype,e,s[0]),g4(A3,o,s[1])}r&&G2(A3[o],"sham",!0)},k3=F2("match"),B3=C1.TypeError,F3=F2("species"),T3=L1("".charAt),_3=L1("".charCodeAt),P3=L1("".slice),j3=function(e){return function(t,n){var r,o,i=Z4(W1(t)),a=m4(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=_3(i,a))<55296||r>56319||a+1===u||(o=_3(i,a+1))<56320||o>57343?e?T3(i,a):r:e?P3(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),I3=function(e,t,n){return t+(n?j3(e,t).length:1)},N3=C1.Array,L3=Math.max,R3=function(e,t,n){for(var r=C4(e),o=E4(t,r),i=E4(void 0===n?r:n,r),a=N3(L3(i-o,0)),u=0;o<i;o++,u++)H6(a,u,e[o]);return a.length=u,a},M3=C1.TypeError,z3=function(e,t){var n=e.exec;if(q1(n)){var r=k1(n,e,t);return null!==r&&H2(r),r}if("RegExp"===z1(e))return k1(_6,e,t);throw M3("RegExp#exec called on incompatible receiver")},$3=i6.UNSUPPORTED_Y,H3=Math.min,V3=[].push,U3=L1(/./.exec),W3=L1(V3),G3=L1("".slice);O3("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Z4(W1(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!K1(r=e)||!(void 0!==(o=r[k3])?o:"RegExp"==z1(r)))return k1(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=k1(_6,p,i))&&!((s=p.lastIndex)>d&&(W3(c,G3(i,d,u.index)),u.length>1&&u.index<i.length&&C3(V3,c,R3(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&U3(p,"")||W3(c,""):W3(c,G3(i,d)),c.length>a?R3(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:k1(t,this,e,n)}:t,[function(t,n){var o=W1(this),i=null==t?void 0:d2(t,e);return i?k1(i,t,o,n):k1(r,Z4(o),t,n)},function(e,o){var i=H2(this),a=Z4(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=H2(i).constructor)||null==(l=H2(c)[F3])?s:function(e){if($6(e))return e;throw B3(l2(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+($3?"g":"y"),h=new f($3?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===z3(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=$3?0:y;var b,w=z3(h,$3?G3(a,y):a);if(null===w||(b=H3(D4(h.lastIndex+($3?y:0)),a.length))===v)y=I3(a,y,d);else{if(W3(m,G3(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(W3(m,w[E]),m.length===g)return m;y=v=b}}return W3(m,G3(a,v)),m}]}),!!S1((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),$3);var q3="\t\n\v\f\r                 \u2028\u2029\ufeff",K3=L1("".replace),X3="["+q3+"]",Y3=RegExp("^"+X3+X3+"*"),Z3=RegExp(X3+X3+"*$"),J3=function(e){return function(t){var n=Z4(W1(t));return 1&e&&(n=K3(n,Y3,"")),2&e&&(n=K3(n,Z3,"")),n}},Q3={start:J3(1),end:J3(2),trim:J3(3)},e5=h4.PROPER,t5=Q3.trim;function n5(e){return e.length?e[0].tagName.toLowerCase():""}V4({target:"String",proto:!0,forced:function(e){return S1((function(){return!!q3.trim()||"​…᠎"!=="​…᠎".trim()||e5&&q3.trim.name!==e}))}("trim")},{trim:function(){return t5(this)}}),V4({global:!0},{globalThis:C1}),_g&&(fg.fn.append=_g),bg&&(fg.fn.on=bg),Vg&&(fg.fn.focus=Vg),gg&&(fg.fn.attr=gg),mg&&(fg.fn.val=mg),Bg&&(fg.fn.html=Bg),yg&&(fg.fn.dataset=yg),dg&&(fg.fn.addClass=dg),pg&&(fg.fn.removeClass=pg),Lg&&(fg.fn.children=Lg),Og&&(fg.fn.each=Og),Ng&&(fg.fn.find=Ng);var r5=!1,o5=0,i5=0,a5=null,u5=null,s5=fg("body");function l5(e){r5=!1,u5=null,a5=null,s5.off("mousemove",c5),s5.off("mouseup",l5)}s5.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),r5=!0;var n=e.clientX;o5=n;var r=t.getBoundingClientRect().width;i5=r,s5.on("mousemove",c5),s5.on("mouseup",l5)}}));var c5=Ev((function(e){if(r5&&null!=u5&&null!=a5){e.preventDefault();var t=e.clientX,n=i5+(t-o5);(n=Math.floor(100*n)/100)<30&&(n=30),Yp.setNodes(u5,{width:n.toString()},{at:a5})}}),100),f5={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Sp.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=sB.findPath(e,t),a=sp.start(e,i),u=sp.end(e,i),s=Ep.compare(r,u)<=0&&Ep.compare(r,a)>=0,l=Ep.compare(o,u)<=0&&Ep.compare(o,a)>=0;return!!(s&&l&&yp.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return ey("div",{className:"table-container","data-selected":sB.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=sB.findPath(n,e),o=sp.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},ey("table",{width:i,contentEditable:r},ey("colgroup",null,s3(e).map((function(e){var t=e.width;return ey("col",{width:void 0===t?"auto":t})}))),ey("tbody",null,t)))}},d5={type:"table-row",renderElem:function(e,t,n){return ey("tr",null,t)}},p5={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=sB.getParentNode(e,t);if(null==n)return!1;var r=sB.getParentNode(e,n);return null!=r&&s3(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?ey(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ev((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;r5||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",u5=n,a5=sB.findPath(n,e)):r5||(r.style.cursor="auto",u5=null,a5=null))}}),100)}},t):ey("td",{colSpan:a,rowSpan:s},t)}},h5={selector:"table",preParseHtml:function(e){var t=fg(e);if("table"!==n5(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},g5=i3.filter;V4({target:"Array",proto:!0,forced:!U6("filter")},{filter:function(e){return g5(this,e,arguments.length>1?arguments[1]:void 0)}});var v5=Math.floor,y5=L1("".charAt),m5=L1("".replace),b5=L1("".slice),w5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,E5=/\$([$&'`]|\d{1,2})/g,x5=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=E5;return void 0!==o&&(o=b2(o),s=w5),m5(i,s,(function(i,s){var l;switch(y5(s,0)){case"$":return"$";case"&":return e;case"`":return b5(t,0,n);case"'":return b5(t,a);case"<":l=o[b5(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=v5(c/10);return 0===f?i:f<=u?void 0===r[f-1]?y5(s,1):r[f-1]+y5(s,1):i}l=r[c-1]}return void 0===l?"":l}))},D5=F2("replace"),C5=Math.max,S5=Math.min,A5=L1([].concat),O5=L1([].push),k5=L1("".indexOf),B5=L1("".slice),F5="$0"==="a".replace(/./,"$0"),T5=!!/./[D5]&&""===/./[D5]("a","$0");O3("replace",(function(e,t,n){var r=T5?"$":"$0";return[function(e,n){var r=W1(this),o=null==e?void 0:d2(e,D5);return o?k1(o,e,r,n):k1(t,Z4(r),e,n)},function(e,o){var i=H2(this),a=Z4(e);if("string"==typeof o&&-1===k5(o,r)&&-1===k5(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=q1(o);s||(o=Z4(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=z3(i,a);if(null===d)break;if(O5(f,d),!l)break;""===Z4(d[0])&&(i.lastIndex=I3(a,D4(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=Z4((d=f[v])[0]),m=C5(S5(m4(d.index),a.length),0),b=[],w=1;w<d.length;w++)O5(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=A5([y],b,m,a);void 0!==E&&O5(x,E);var D=Z4(C3(o,void 0,x))}else D=x5(y,a,m,b,E,o);m>=g&&(h+=B5(a,g,m)+D,g=m+y.length)}return h+B5(a,g)}]}),!!S1((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!F5||T5);var _5={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e);0===(t=t.filter((function(e){return!!_p.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===n5(r),colSpan:o,rowSpan:i,width:a,children:t}}},P5={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===sB.getNodeType(e)}))}}},j5={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=fg(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===sB.getNodeType(e)}))}}},I5=function(){function e(){this.title=Kj("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||!!sB.getSelectedElems(e).some((function(t){var n=sB.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=fg('<div class="w-e-panel-content-table"></div>'),r=fg("<span>0 &times; 0</span>"),o=fg("<table></table>"),i=0;i<10;i++){for(var a=fg("<tr></tr>"),u=0;u<10;u++){var s=fg("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=fg(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){fg(e).children().each((function(e){var t=fg(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=fg(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){sB.isSelectedEmptyParagraph(e)&&Yp.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Yp.insertNodes(e,i,{mode:"highest"})}},e}(),N5=function(){function e(){this.title=Kj("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==sB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Yp.removeNodes(e,{mode:"highest"})},e}(),L5=function(){function e(){this.title=Kj("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y6(sp.nodes(e,{match:function(e){return sB.checkNodeType(e,"table-cell")},universal:!0}),1),r=Y6(n[0],2),o=r[0],i=r[1],a=sB.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=yp.parent(i),f=yp.next(c);Yp.insertNodes(e,s,{at:f})}}},e}(),R5=function(){function e(){this.title=Kj("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y6(sp.nodes(e,{match:function(e){return sB.checkNodeType(e,"table-row")},universal:!0}),1),r=Y6(n[0],2),o=r[0],i=r[1],a=sB.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Yp.removeNodes(e,{mode:"highest"}):Yp.removeNodes(e,{at:i})}},e}(),M5={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},z5=N2("span").classList,$5=z5&&z5.constructor&&z5.constructor.prototype,H5=$5===Object.prototype?void 0:$5,V5=i3.forEach,U5=function(e,t){var n=[].forEach;return!!n&&S1((function(){n.call(null,(function(){throw 1}),1)}))}(),W5=U5?[].forEach:function(e){return V5(this,e,arguments.length>1?arguments[1]:void 0)},G5=function(e){if(e&&e.forEach!==W5)try{G2(e,"forEach",W5)}catch(t){e.forEach=W5}};for(var q5 in M5)M5[q5]&&G5(C1[q5]&&C1[q5].prototype);G5(H5);var K5=function(){function e(){this.title=Kj("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y6(sp.nodes(e,{match:function(e){return sB.checkNodeType(e,"table-cell")},universal:!0}),1),r=Y6(n[0],2),o=r[0],i=r[1],a=sB.getParentNode(e,o);if(null!=a){var u=sB.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){np.isElement(t)&&(t.children||[]).forEach((function(t){var r=sB.findPath(e,t);if(r.length===i.length&&m1(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&l3(u)&&(o.isHeader=!0),Yp.insertNodes(e,o,{at:r})}}))}))}}},e}(),X5=function(){function e(){this.title=Kj("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y6(sp.nodes(e,{match:function(e){return sB.checkNodeType(e,"table-cell")},universal:!0}),1),r=Y6(n[0],2),o=r[0],i=r[1],a=sB.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Yp.removeNodes(e,{mode:"highest"});else{var s=sB.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){np.isElement(t)&&(t.children||[]).forEach((function(t){var n=sB.findPath(e,t);n.length===i.length&&m1(n.slice(-1),i.slice(-1))&&Yp.removeNodes(e,{at:n})}))}))}}},e}(),Y5=function(){function e(){this.title=Kj("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=sB.getSelectedNodeByType(e,"table");return null!=t&&l3(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=sB.getSelectedNodeByType(e,"table");null!=r&&s3(r).forEach((function(t){return Yp.setNodes(e,{isHeader:n},{at:sB.findPath(e,t)})}))}},e}(),Z5=function(){function e(){this.title=Kj("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=sB.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||null==sB.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Yp.setNodes(e,n,{mode:"highest"})}},e}(),J5={renderElems:[f5,d5,p5],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[h5],parseElemsHtml:[_5,P5,j5],menus:[{key:"insertTable",factory:function(){return new I5}},{key:"deleteTable",factory:function(){return new N5}},{key:"insertTableRow",factory:function(){return new L5}},{key:"deleteTableRow",factory:function(){return new R5}},{key:"insertTableCol",factory:function(){return new K5}},{key:"deleteTableCol",factory:function(){return new X5}},{key:"tableHeader",factory:function(){return new Y5}},{key:"tableFullWidth",factory:function(){return new Z5}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==sB.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!Z6(s)){var t=s.selection;if(t){var r=sp.before(s,t);if(r){var o=J6(s,r),i=J6(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(sB.getSelectedNodeByType(s,"table")){var n=sp.above(e);sB.checkNodeType(n[0],"table-cell")&&Yp.select(e,n[1]);var r=sp.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=sp.above(e,{at:r[1]}))&&void 0!==t?t:r),Yp.select(e,r[1]);else{var o=s.children||[],i=o.length;if(sB.checkNodeType(o[i-1],"table")){var u=sB.genEmptyParagraph();Yp.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){Z6(s)||r(e)},s.normalizeNode=function(e){var t=Y6(e,2),n=t[0],r=t[1];if("table"!==sB.getNodeType(n))return o([n,r]);if(sB.isLastNode(s,n)){var i=sB.genEmptyParagraph();Yp.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=sB.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):sp.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=sB.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(yp.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==pp.string(t).length){var o=sB.findPath(s,t),i={anchor:sp.start(s,o),focus:sp.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};qj("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),qj("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
  62. /*! *****************************************************************************
  63. Copyright (c) Microsoft Corporation.
  64. Permission to use, copy, modify, and/or distribute this software for any
  65. purpose with or without fee is hereby granted.
  66. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  67. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  68. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  69. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  70. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  71. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  72. PERFORMANCE OF THIS SOFTWARE.
  73. ***************************************************************************** */
  74. var Q5=function(){return Q5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Q5.apply(this,arguments)};function e8(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function t8(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function n8(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var r8="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o8(e){var t={exports:{}};return e(t,t.exports),t.exports}var i8,a8,u8=function(e){return e&&e.Math==Math&&e},s8=u8("object"==typeof globalThis&&globalThis)||u8("object"==typeof window&&window)||u8("object"==typeof self&&self)||u8("object"==typeof r8&&r8)||function(){return this}()||Function("return this")(),l8=function(e){try{return!!e()}catch(t){return!0}},c8=!l8((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f8=Function.prototype.call,d8=f8.bind?f8.bind(f8):function(){return f8.apply(f8,arguments)},p8={}.propertyIsEnumerable,h8=Object.getOwnPropertyDescriptor,g8={f:h8&&!p8.call({1:2},1)?function(e){var t=h8(this,e);return!!t&&t.enumerable}:p8},v8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},y8=Function.prototype,m8=y8.bind,b8=y8.call,w8=m8&&m8.bind(b8),E8=m8?function(e){return e&&w8(b8,e)}:function(e){return e&&function(){return b8.apply(e,arguments)}},x8=E8({}.toString),D8=E8("".slice),C8=function(e){return D8(x8(e),8,-1)},S8=s8.Object,A8=E8("".split),O8=l8((function(){return!S8("z").propertyIsEnumerable(0)}))?function(e){return"String"==C8(e)?A8(e,""):S8(e)}:S8,k8=s8.TypeError,B8=function(e){if(null==e)throw k8("Can't call method on "+e);return e},F8=function(e){return O8(B8(e))},T8=function(e){return"function"==typeof e},_8=function(e){return"object"==typeof e?null!==e:T8(e)},P8=function(e){return T8(e)?e:void 0},j8=function(e,t){return arguments.length<2?P8(s8[e]):s8[e]&&s8[e][t]},I8=E8({}.isPrototypeOf),N8=j8("navigator","userAgent")||"",L8=s8.process,R8=s8.Deno,M8=L8&&L8.versions||R8&&R8.version,z8=M8&&M8.v8;z8&&(a8=(i8=z8.split("."))[0]>0&&i8[0]<4?1:+(i8[0]+i8[1])),!a8&&N8&&(!(i8=N8.match(/Edge\/(\d+)/))||i8[1]>=74)&&(i8=N8.match(/Chrome\/(\d+)/))&&(a8=+i8[1]);var $8=a8,H8=!!Object.getOwnPropertySymbols&&!l8((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$8&&$8<41})),V8=H8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,U8=s8.Object,W8=V8?function(e){return"symbol"==typeof e}:function(e){var t=j8("Symbol");return T8(t)&&I8(t.prototype,U8(e))},G8=s8.String,q8=function(e){try{return G8(e)}catch(t){return"Object"}},K8=s8.TypeError,X8=function(e){if(T8(e))return e;throw K8(q8(e)+" is not a function")},Y8=function(e,t){var n=e[t];return null==n?void 0:X8(n)},Z8=s8.TypeError,J8=Object.defineProperty,Q8=function(e,t){try{J8(s8,e,{value:t,configurable:!0,writable:!0})}catch(Yj){s8[e]=t}return t},e7=s8["__core-js_shared__"]||Q8("__core-js_shared__",{}),t7=o8((function(e){(e.exports=function(e,t){return e7[e]||(e7[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),n7=s8.Object,r7=function(e){return n7(B8(e))},o7=E8({}.hasOwnProperty),i7=Object.hasOwn||function(e,t){return o7(r7(e),t)},a7=0,u7=Math.random(),s7=E8(1..toString),l7=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s7(++a7+u7,36)},c7=t7("wks"),f7=s8.Symbol,d7=f7&&f7.for,p7=V8?f7:f7&&f7.withoutSetter||l7,h7=function(e){if(!i7(c7,e)||!H8&&"string"!=typeof c7[e]){var t="Symbol."+e;H8&&i7(f7,e)?c7[e]=f7[e]:c7[e]=V8&&d7?d7(t):p7(t)}return c7[e]},g7=s8.TypeError,v7=h7("toPrimitive"),y7=function(e){var t=function(e,t){if(!_8(e)||W8(e))return e;var n,r=Y8(e,v7);if(r){if(void 0===t&&(t="default"),n=d8(r,e,t),!_8(n)||W8(n))return n;throw g7("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&T8(n=e.toString)&&!_8(r=d8(n,e)))return r;if(T8(n=e.valueOf)&&!_8(r=d8(n,e)))return r;if("string"!==t&&T8(n=e.toString)&&!_8(r=d8(n,e)))return r;throw Z8("Can't convert object to primitive value")}(e,t)}(e,"string");return W8(t)?t:t+""},m7=s8.document,b7=_8(m7)&&_8(m7.createElement),w7=function(e){return b7?m7.createElement(e):{}},E7=!c8&&!l8((function(){return 7!=Object.defineProperty(w7("div"),"a",{get:function(){return 7}}).a})),x7=Object.getOwnPropertyDescriptor,D7={f:c8?x7:function(e,t){if(e=F8(e),t=y7(t),E7)try{return x7(e,t)}catch(n){}if(i7(e,t))return v8(!d8(g8.f,e,t),e[t])}},C7=s8.String,S7=s8.TypeError,A7=function(e){if(_8(e))return e;throw S7(C7(e)+" is not an object")},O7=s8.TypeError,k7=Object.defineProperty,B7={f:c8?k7:function(e,t,n){if(A7(e),t=y7(t),A7(n),E7)try{return k7(e,t,n)}catch(r){}if("get"in n||"set"in n)throw O7("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},F7=c8?function(e,t,n){return B7.f(e,t,v8(1,n))}:function(e,t,n){return e[t]=n,e},T7=E8(Function.toString);T8(e7.inspectSource)||(e7.inspectSource=function(e){return T7(e)});var _7,P7,j7,I7=e7.inspectSource,N7=s8.WeakMap,L7=T8(N7)&&/native code/.test(I7(N7)),R7=t7("keys"),M7=function(e){return R7[e]||(R7[e]=l7(e))},z7={},$7=s8.TypeError,H7=s8.WeakMap;if(L7||e7.state){var V7=e7.state||(e7.state=new H7),U7=E8(V7.get),W7=E8(V7.has),G7=E8(V7.set);_7=function(e,t){if(W7(V7,e))throw new $7("Object already initialized");return t.facade=e,G7(V7,e,t),t},P7=function(e){return U7(V7,e)||{}},j7=function(e){return W7(V7,e)}}else{var q7=M7("state");z7[q7]=!0,_7=function(e,t){if(i7(e,q7))throw new $7("Object already initialized");return t.facade=e,F7(e,q7,t),t},P7=function(e){return i7(e,q7)?e[q7]:{}},j7=function(e){return i7(e,q7)}}var K7={set:_7,get:P7,has:j7,enforce:function(e){return j7(e)?P7(e):_7(e,{})},getterFor:function(e){return function(t){var n;if(!_8(t)||(n=P7(t)).type!==e)throw $7("Incompatible receiver, "+e+" required");return n}}},X7=Function.prototype,Y7=c8&&Object.getOwnPropertyDescriptor,Z7=i7(X7,"name"),J7={EXISTS:Z7,PROPER:Z7&&"something"===function(){}.name,CONFIGURABLE:Z7&&(!c8||c8&&Y7(X7,"name").configurable)},Q7=o8((function(e){var t=J7.CONFIGURABLE,n=K7.get,r=K7.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;T8(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i7(i,"name")||t&&i.name!==f)&&F7(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==s8?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:F7(e,n,i)):l?e[n]=i:Q8(n,i)})(Function.prototype,"toString",(function(){return T8(this)&&n(this).source||I7(this)}))})),e9=Math.ceil,t9=Math.floor,n9=function(e){var t=+e;return t!=t||0===t?0:(t>0?t9:e9)(t)},r9=Math.max,o9=Math.min,i9=function(e,t){var n=n9(e);return n<0?r9(n+t,0):o9(n,t)},a9=Math.min,u9=function(e){return e>0?a9(n9(e),9007199254740991):0},s9=function(e){return u9(e.length)},l9=function(e){return function(t,n,r){var o,i=F8(t),a=s9(i),u=i9(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},c9={includes:l9(!0),indexOf:l9(!1)},f9=c9.indexOf,d9=E8([].push),p9=function(e,t){var n,r=F8(e),o=0,i=[];for(n in r)!i7(z7,n)&&i7(r,n)&&d9(i,n);for(;t.length>o;)i7(r,n=t[o++])&&(~f9(i,n)||d9(i,n));return i},h9=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g9=h9.concat("length","prototype"),v9={f:Object.getOwnPropertyNames||function(e){return p9(e,g9)}},y9={f:Object.getOwnPropertySymbols},m9=E8([].concat),b9=j8("Reflect","ownKeys")||function(e){var t=v9.f(A7(e)),n=y9.f;return n?m9(t,n(e)):t},w9=function(e,t){for(var n=b9(t),r=B7.f,o=D7.f,i=0;i<n.length;i++){var a=n[i];i7(e,a)||r(e,a,o(t,a))}},E9=/#|\.prototype\./,x9=function(e,t){var n=C9[D9(e)];return n==A9||n!=S9&&(T8(t)?l8(t):!!t)},D9=x9.normalize=function(e){return String(e).replace(E9,".").toLowerCase()},C9=x9.data={},S9=x9.NATIVE="N",A9=x9.POLYFILL="P",O9=x9,k9=D7.f,B9=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?s8:l?s8[u]||Q8(u,{}):(s8[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=k9(n,r))&&a.value:n[r],!O9(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;w9(i,o)}(e.sham||o&&o.sham)&&F7(i,"sham",!0),Q7(n,r,i,e)}},F9={};F9[h7("toStringTag")]="z";var T9="[object z]"===String(F9),_9=h7("toStringTag"),P9=s8.Object,j9="Arguments"==C8(function(){return arguments}()),I9=T9?C8:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=P9(e),_9))?n:j9?C8(t):"Object"==(r=C8(t))&&T8(t.callee)?"Arguments":r},N9=s8.String,L9=function(e){if("Symbol"===I9(e))throw TypeError("Cannot convert a Symbol value to a string");return N9(e)},R9="\t\n\v\f\r                 \u2028\u2029\ufeff",M9=E8("".replace),z9="["+R9+"]",$9=RegExp("^"+z9+z9+"*"),H9=RegExp(z9+z9+"*$"),V9=function(e){return function(t){var n=L9(B8(t));return 1&e&&(n=M9(n,$9,"")),2&e&&(n=M9(n,H9,"")),n}},U9={start:V9(1),end:V9(2),trim:V9(3)},W9=J7.PROPER,G9=U9.trim;function q9(e){return e.length?e[0].tagName.toLowerCase():""}function K9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=fg(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}B9({target:"String",proto:!0,forced:l8((function(){return!!R9.trim()||"​…᠎"!=="​…᠎".trim()||W9&&"trim"!==R9.trim.name}))},{trim:function(){return G9(this)}}),B9({global:!0},{globalThis:s8}),_g&&(fg.fn.append=_g),bg&&(fg.fn.on=bg),Vg&&(fg.fn.focus=Vg),gg&&(fg.fn.attr=gg),mg&&(fg.fn.val=mg),Bg&&(fg.fn.html=Bg),jg&&(fg.fn.parent=jg),hg&&(fg.fn.hasClass=hg),Mg&&(fg.fn.empty=Mg);var X9,Y9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=sB.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=ey("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:K9(a,c,d)});else{var h=ey("video",{poster:s,controls:!0},ey("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=ey("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return jv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},Z9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=K9(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},J9=Object.keys||function(e){return p9(e,h9)},Q9=c8?Object.defineProperties:function(e,t){A7(e);for(var n,r=F8(t),o=J9(t),i=o.length,a=0;i>a;)B7.f(e,n=o[a++],r[n]);return e},eee=j8("document","documentElement"),tee=M7("IE_PROTO"),nee=function(){},ree=function(e){return"<script>"+e+"<\/script>"},oee=function(e){e.write(ree("")),e.close();var t=e.parentWindow.Object;return e=null,t},iee=function(){try{X9=new ActiveXObject("htmlfile")}catch(r){}var e,t;iee="undefined"!=typeof document?document.domain&&X9?oee(X9):((t=w7("iframe")).style.display="none",eee.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ree("document.F=Object")),e.close(),e.F):oee(X9);for(var n=h9.length;n--;)delete iee.prototype[h9[n]];return iee()};z7[tee]=!0;var aee=Object.create||function(e,t){var n;return null!==e?(nee.prototype=A7(e),n=new nee,nee.prototype=null,n[tee]=e):n=iee(),void 0===t?n:Q9(n,t)},uee=h7("unscopables"),see=Array.prototype;null==see[uee]&&B7.f(see,uee,{configurable:!0,value:aee(null)});var lee=function(e){see[uee][e]=!0},cee=c9.includes;B9({target:"Array",proto:!0},{includes:function(e){return cee(this,e,arguments.length>1?arguments[1]:void 0)}}),lee("includes");var fee={selector:"iframe,video,p",preParseHtml:function(e){var t=fg(e),n=t;if("p"===q9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=fg(o))}}var a=q9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=fg('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},dee=E8(E8.bind),pee=function(e,t){return X8(e),void 0===t?e:dee?dee(e,t):function(){return e.apply(t,arguments)}},hee=Array.isArray||function(e){return"Array"==C8(e)},gee=function(){},vee=[],yee=j8("Reflect","construct"),mee=/^\s*(?:class|function)\b/,bee=E8(mee.exec),wee=!mee.exec(gee),Eee=function(e){if(!T8(e))return!1;try{return yee(gee,vee,e),!0}catch(t){return!1}},xee=!yee||l8((function(){var e;return Eee(Eee.call)||!Eee(Object)||!Eee((function(){e=!0}))||e}))?function(e){if(!T8(e))return!1;switch(I9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wee||!!bee(mee,I7(e))}:Eee,Dee=h7("species"),Cee=s8.Array,See=function(e,t){return new(hee(n=e)&&(r=n.constructor,(xee(r)&&(r===Cee||hee(r.prototype))||_8(r)&&null===(r=r[Dee]))&&(r=void 0)),void 0===r?Cee:r)(0===t?0:t);var n,r},Aee=E8([].push),Oee=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=r7(s),g=O8(h),v=pee(l,c),y=s9(g),m=0,b=f||See,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Aee(w,d)}else switch(e){case 4:return!1;case 7:Aee(w,d)}return i?-1:r||o?o:w}},kee={forEach:Oee(0),map:Oee(1),filter:Oee(2),some:Oee(3),every:Oee(4),find:Oee(5),findIndex:Oee(6),filterReject:Oee(7)},Bee=kee.find,Fee=!0;"find"in[]&&Array(1).find((function(){Fee=!1})),B9({target:"Array",proto:!0,forced:Fee},{find:function(e){return Bee(this,e,arguments.length>1?arguments[1]:void 0)}}),lee("find");var Tee=T9?{}.toString:function(){return"[object "+I9(this)+"]"};function _ee(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}T9||Q7(Object.prototype,"toString",Tee,{unsafe:!0});var Pee,jee,Iee={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=fg(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",_ee(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",_ee(o,i=l.attr("poster")||"",a,u)}},Nee=function(){var e=A7(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Lee=s8.RegExp,Ree=l8((function(){var e=Lee("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Mee=Ree||l8((function(){return!Lee("a","y").sticky})),zee={BROKEN_CARET:Ree||l8((function(){var e=Lee("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Mee,UNSUPPORTED_Y:Ree},$ee=s8.RegExp,Hee=l8((function(){var e=$ee(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Vee=s8.RegExp,Uee=l8((function(){var e=Vee("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Wee=K7.get,Gee=t7("native-string-replace",String.prototype.replace),qee=RegExp.prototype.exec,Kee=qee,Xee=E8("".charAt),Yee=E8("".indexOf),Zee=E8("".replace),Jee=E8("".slice),Qee=(jee=/b*/g,d8(qee,Pee=/a/,"a"),d8(qee,jee,"a"),0!==Pee.lastIndex||0!==jee.lastIndex),ete=zee.BROKEN_CARET,tte=void 0!==/()??/.exec("")[1];(Qee||tte||ete||Hee||Uee)&&(Kee=function(e){var t,n,r,o,i,a,u,s=this,l=Wee(s),c=L9(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=d8(Kee,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ete&&s.sticky,h=d8(Nee,s),g=s.source,v=0,y=c;if(p&&(h=Zee(h,"y",""),-1===Yee(h,"g")&&(h+="g"),y=Jee(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Xee(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),tte&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Qee&&(r=s.lastIndex),o=d8(qee,p?n:s,y),p?o?(o.input=Jee(o.input,v),o[0]=Jee(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qee&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tte&&o&&o.length>1&&d8(Gee,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=aee(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var nte=Kee;B9({target:"RegExp",proto:!0,forced:/./.exec!==nte},{exec:nte});var rte=Function.prototype,ote=rte.apply,ite=rte.bind,ate=rte.call,ute="object"==typeof Reflect&&Reflect.apply||(ite?ate.bind(ote):function(){return ate.apply(ote,arguments)}),ste=(h7("species"),RegExp.prototype),lte=E8("".charAt),cte=E8("".charCodeAt),fte=E8("".slice),dte=function(e){return function(t,n){var r,o,i=L9(B8(t)),a=n9(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cte(i,a))<55296||r>56319||a+1===u||(o=cte(i,a+1))<56320||o>57343?e?lte(i,a):r:e?fte(i,a,a+2):o-56320+(r-55296<<10)+65536}},pte={codeAt:dte(!1),charAt:dte(!0)},hte=pte.charAt,gte=function(e,t,n){return t+(n?hte(e,t).length:1)},vte=Math.floor,yte=E8("".charAt),mte=E8("".replace),bte=E8("".slice),wte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ete=/\$([$&'`]|\d{1,2})/g,xte=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Ete;return void 0!==o&&(o=r7(o),s=wte),mte(i,s,(function(i,s){var l;switch(yte(s,0)){case"$":return"$";case"&":return e;case"`":return bte(t,0,n);case"'":return bte(t,a);case"<":l=o[bte(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=vte(c/10);return 0===f?i:f<=u?void 0===r[f-1]?yte(s,1):r[f-1]+yte(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Dte=s8.TypeError,Cte=function(e,t){var n=e.exec;if(T8(n)){var r=d8(n,e,t);return null!==r&&A7(r),r}if("RegExp"===C8(e))return d8(nte,e,t);throw Dte("RegExp#exec called on incompatible receiver")},Ste=h7("replace"),Ate=Math.max,Ote=Math.min,kte=E8([].concat),Bte=E8([].push),Fte=E8("".indexOf),Tte=E8("".slice),_te="$0"==="a".replace(/./,"$0"),Pte=!!/./[Ste]&&""===/./[Ste]("a","$0");function jte(e){return void 0===e&&(e="r"),e+"-"+av()}!function(e,t,n,r){var o,i,a=h7(e),u=!l8((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!l8((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=E8(/./[a]),c=(o=""[e],i=Pte?"$":"$0",[function(e,t){var n=B8(this),r=null==e?void 0:Y8(e,Ste);return r?d8(r,e,n,t):d8(o,L9(n),e,t)},function(e,t){var n=A7(this),r=L9(e);if("string"==typeof t&&-1===Fte(t,i)&&-1===Fte(t,"$<")){var a=function(e,t,n,r,o){var i=E8(e),a=t.exec;return a===nte||a===ste.exec?u&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(o,n,r,t);if(a.done)return a.value}var s=T8(t);s||(t=L9(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=Cte(n,r);if(null===p)break;if(Bte(d,p),!c)break;""===L9(p[0])&&(n.lastIndex=gte(r,u9(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=L9((p=d[y])[0]),b=Ate(Ote(n9(p.index),r.length),0),w=[],E=1;E<p.length;E++)Bte(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(s){var D=kte([m],w,b,r);void 0!==x&&Bte(D,x);var C=L9(ute(t,void 0,D))}else C=xte(m,r,b,w,x,t);b>=v&&(g+=Tte(r,v,b)+C,v=b+m.length)}return g+Tte(r,v)}]);Q7(String.prototype,e,c[0]),Q7(ste,a,c[1])}}("replace",0,!!l8((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!_te||Pte);var Ite=s8.Promise,Nte=function(e,t,n){for(var r in t)Q7(e,r,t[r],n);return e},Lte=s8.String,Rte=s8.TypeError,Mte=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=E8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return A7(n),function(e){if("object"==typeof e||T8(e))return e;throw Rte("Can't set "+Lte(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zte=B7.f,$te=h7("toStringTag"),Hte=function(e,t,n){e&&!i7(e=n?e:e.prototype,$te)&&zte(e,$te,{configurable:!0,value:t})},Vte=h7("species"),Ute=s8.TypeError,Wte=function(e,t){if(I8(t,e))return e;throw Ute("Incorrect invocation")},Gte={},qte=h7("iterator"),Kte=Array.prototype,Xte=h7("iterator"),Yte=function(e){if(null!=e)return Y8(e,Xte)||Y8(e,"@@iterator")||Gte[I9(e)]},Zte=s8.TypeError,Jte=function(e,t,n){var r,o;A7(e);try{if(!(r=Y8(e,"return"))){if("throw"===t)throw n;return n}r=d8(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return A7(r),n},Qte=s8.TypeError,ene=function(e,t){this.stopped=e,this.result=t},tne=ene.prototype,nne=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=pee(t,f),v=function(e){return r&&Jte(r,"normal",e),new ene(!0,e)},y=function(e){return d?(A7(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Yte(e)))throw Qte(q8(e)+" is not iterable");if(void 0!==(c=o)&&(Gte.Array===c||Kte[qte]===c)){for(i=0,a=s9(e);a>i;i++)if((u=y(e[i]))&&I8(tne,u))return u;return new ene(!1)}r=function(e,t){var n=arguments.length<2?Yte(e):t;if(X8(n))return A7(d8(n,e));throw Zte(q8(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=d8(s,r)).done;){try{u=y(l.value)}catch(m){Jte(r,"throw",m)}if("object"==typeof u&&u&&I8(tne,u))return u}return new ene(!1)},rne=h7("iterator"),one=!1;try{var ine=0,ane={next:function(){return{done:!!ine++}},return:function(){one=!0}};ane[rne]=function(){return this},Array.from(ane,(function(){throw 2}))}catch(zme){}var une,sne,lne,cne,fne=function(e,t){if(!t&&!one)return!1;var n=!1;try{var r={};r[rne]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},dne=s8.TypeError,pne=h7("species"),hne=E8([].slice),gne=/(?:ipad|iphone|ipod).*applewebkit/i.test(N8),vne="process"==C8(s8.process),yne=s8.setImmediate,mne=s8.clearImmediate,bne=s8.process,wne=s8.Dispatch,Ene=s8.Function,xne=s8.MessageChannel,Dne=s8.String,Cne=0,Sne={};try{une=s8.location}catch(zme){}var Ane=function(e){if(i7(Sne,e)){var t=Sne[e];delete Sne[e],t()}},One=function(e){return function(){Ane(e)}},kne=function(e){Ane(e.data)},Bne=function(e){s8.postMessage(Dne(e),une.protocol+"//"+une.host)};yne&&mne||(yne=function(e){var t=hne(arguments,1);return Sne[++Cne]=function(){ute(T8(e)?e:Ene(e),void 0,t)},sne(Cne),Cne},mne=function(e){delete Sne[e]},vne?sne=function(e){bne.nextTick(One(e))}:wne&&wne.now?sne=function(e){wne.now(One(e))}:xne&&!gne?(cne=(lne=new xne).port2,lne.port1.onmessage=kne,sne=pee(cne.postMessage,cne)):s8.addEventListener&&T8(s8.postMessage)&&!s8.importScripts&&une&&"file:"!==une.protocol&&!l8(Bne)?(sne=Bne,s8.addEventListener("message",kne,!1)):sne="onreadystatechange"in w7("script")?function(e){eee.appendChild(w7("script")).onreadystatechange=function(){eee.removeChild(this),Ane(e)}}:function(e){setTimeout(One(e),0)});var Fne,Tne,_ne,Pne,jne,Ine,Nne,Lne,Rne={set:yne,clear:mne},Mne=/ipad|iphone|ipod/i.test(N8)&&void 0!==s8.Pebble,zne=/web0s(?!.*chrome)/i.test(N8),$ne=D7.f,Hne=Rne.set,Vne=s8.MutationObserver||s8.WebKitMutationObserver,Une=s8.document,Wne=s8.process,Gne=s8.Promise,qne=$ne(s8,"queueMicrotask"),Kne=qne&&qne.value;Kne||(Fne=function(){var e,t;for(vne&&(e=Wne.domain)&&e.exit();Tne;){t=Tne.fn,Tne=Tne.next;try{t()}catch(n){throw Tne?Pne():_ne=void 0,n}}_ne=void 0,e&&e.enter()},gne||vne||zne||!Vne||!Une?!Mne&&Gne&&Gne.resolve?((Nne=Gne.resolve(void 0)).constructor=Gne,Lne=pee(Nne.then,Nne),Pne=function(){Lne(Fne)}):vne?Pne=function(){Wne.nextTick(Fne)}:(Hne=pee(Hne,s8),Pne=function(){Hne(Fne)}):(jne=!0,Ine=Une.createTextNode(""),new Vne(Fne).observe(Ine,{characterData:!0}),Pne=function(){Ine.data=jne=!jne}));var Xne,Yne,Zne,Jne,Qne=Kne||function(e){var t={fn:e,next:void 0};_ne&&(_ne.next=t),Tne||(Tne=t,Pne()),_ne=t},ere=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=X8(t),this.reject=X8(n)},tre={f:function(e){return new ere(e)}},nre=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},rre="object"==typeof window,ore=Rne.set,ire=h7("species"),are="Promise",ure=K7.getterFor(are),sre=K7.set,lre=K7.getterFor(are),cre=Ite&&Ite.prototype,fre=Ite,dre=cre,pre=s8.TypeError,hre=s8.document,gre=s8.process,vre=tre.f,yre=vre,mre=!!(hre&&hre.createEvent&&s8.dispatchEvent),bre=T8(s8.PromiseRejectionEvent),wre=!1,Ere=O9(are,(function(){var e=I7(fre),t=e!==String(fre);if(!t&&66===$8)return!0;if($8>=51&&/native code/.test(e))return!1;var n=new fre((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[ire]=r,!(wre=n.then((function(){}))instanceof r)||!t&&rre&&!bre})),xre=Ere||!fne((function(e){fre.all(e).catch((function(){}))})),Dre=function(e){var t;return!(!_8(e)||!T8(t=e.then))&&t},Cre=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Qne((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&kre(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(pre("Promise-chain cycle")):(u=Dre(a))?d8(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Are(e)}))}},Sre=function(e,t,n){var r,o;mre?((r=hre.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s8.dispatchEvent(r)):r={promise:t,reason:n},!bre&&(o=s8["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=s8.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Are=function(e){d8(ore,s8,(function(){var t,n=e.facade,r=e.value;if(Ore(e)&&(t=nre((function(){vne?gre.emit("unhandledRejection",r,n):Sre("unhandledrejection",n,r)})),e.rejection=vne||Ore(e)?2:1,t.error))throw t.value}))},Ore=function(e){return 1!==e.rejection&&!e.parent},kre=function(e){d8(ore,s8,(function(){var t=e.facade;vne?gre.emit("rejectionHandled",t):Sre("rejectionhandled",t,e.value)}))},Bre=function(e,t,n){return function(r){e(t,r,n)}},Fre=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Cre(e,!0))},Tre=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw pre("Promise can't be resolved itself");var r=Dre(t);r?Qne((function(){var n={done:!1};try{d8(r,t,Bre(Tre,n,e),Bre(Fre,n,e))}catch(o){Fre(n,o,e)}})):(e.value=t,e.state=1,Cre(e,!1))}catch(o){Fre({done:!1},o,e)}}};if(Ere&&(dre=(fre=function(e){Wte(this,dre),X8(e),d8(Xne,this);var t=ure(this);try{e(Bre(Tre,t),Bre(Fre,t))}catch(n){Fre(t,n)}}).prototype,(Xne=function(e){sre(this,{type:are,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nte(dre,{then:function(e,t){var n,r,o,i=lre(this),a=i.reactions,u=vre((n=fre,void 0===(o=A7(this).constructor)||null==(r=A7(o)[pne])?n:function(e){if(xee(e))return e;throw dne(q8(e)+" is not a constructor")}(r)));return u.ok=!T8(e)||e,u.fail=T8(t)&&t,u.domain=vne?gre.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&Cre(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),Yne=function(){var e=new Xne,t=ure(e);this.promise=e,this.resolve=Bre(Tre,t),this.reject=Bre(Fre,t)},tre.f=vre=function(e){return e===fre||e===Zne?new Yne(e):yre(e)},T8(Ite)&&cre!==Object.prototype)){Jne=cre.then,wre||(Q7(cre,"then",(function(e,t){var n=this;return new fre((function(e,t){d8(Jne,n,e,t)})).then(e,t)}),{unsafe:!0}),Q7(cre,"catch",dre.catch,{unsafe:!0}));try{delete cre.constructor}catch(zme){}Mte&&Mte(cre,dre)}function _re(e,t,n){return void 0===n&&(n=""),e8(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return t8(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Yp.insertNodes(e,l)})),o(l),[2]}}))}))}function Pre(){return jte("w-e-insert-video")}B9({global:!0,wrap:!0,forced:Ere},{Promise:fre}),Hte(fre,are,!1),function(e){var t=j8("Promise"),n=B7.f;c8&&t&&!t[Vte]&&n(t,Vte,{configurable:!0,get:function(){return this}})}(),Zne=j8(are),B9({target:are,stat:!0,forced:Ere},{reject:function(e){var t=vre(this);return d8(t.reject,void 0,e),t.promise}}),B9({target:are,stat:!0,forced:Ere},{resolve:function(e){return function(e,t){if(A7(e),_8(t)&&t.constructor===e)return t;var n=tre.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),B9({target:are,stat:!0,forced:xre},{all:function(e){var t=this,n=vre(t),r=n.resolve,o=n.reject,i=nre((function(){var n=X8(t.resolve),i=[],a=0,u=1;nne(e,(function(e){var s=a++,l=!1;u++,d8(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=vre(t),r=n.reject,o=nre((function(){var o=X8(t.resolve);nne(e,(function(e){d8(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jre=function(){function e(){this.title=Kj("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Pre(),this.posterInputId=Pre(),this.buttonId=Pre()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||!!sB.getSelectedElems(e).some((function(t){var n=sB.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=n8(_P(Kj("videoModule.videoSrc"),r,Kj("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=n8(_P(Kj("videoModule.videoPoster"),o,Kj("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=fg(s),p=fg(f),h=n8(PP(i,Kj("videoModule.ok")),1)[0];if(null==this.$content){var g=fg("<div></div>");g.on("click","#"+i,(function(n){return e8(t,void 0,void 0,(function(){var t,i;return t8(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,_re(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Ire=E8([].join),Nre=O8!=Object,Lre=function(e,t){var n=[].join;return!!n&&l8((function(){n.call(null,",",1)}))}();B9({target:"Array",proto:!0,forced:Nre||!Lre},{join:function(e){return Ire(F8(this),void 0===e?",":e)}});var Rre,Mre,zre,$re=!l8((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hre=M7("IE_PROTO"),Vre=s8.Object,Ure=Vre.prototype,Wre=$re?Vre.getPrototypeOf:function(e){var t=r7(e);if(i7(t,Hre))return t[Hre];var n=t.constructor;return T8(n)&&t instanceof n?n.prototype:t instanceof Vre?Ure:null},Gre=h7("iterator"),qre=!1;[].keys&&("next"in(zre=[].keys())?(Mre=Wre(Wre(zre)))!==Object.prototype&&(Rre=Mre):qre=!0);var Kre=null==Rre||l8((function(){var e={};return Rre[Gre].call(e)!==e}));Kre&&(Rre={}),T8(Rre[Gre])||Q7(Rre,Gre,(function(){return this}));var Xre={IteratorPrototype:Rre,BUGGY_SAFARI_ITERATORS:qre},Yre=Xre.IteratorPrototype,Zre=function(){return this},Jre=J7.PROPER,Qre=J7.CONFIGURABLE,eoe=Xre.IteratorPrototype,toe=Xre.BUGGY_SAFARI_ITERATORS,noe=h7("iterator"),roe=function(){return this},ooe=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=aee(Yre,{next:v8(1,s)}),Hte(u,l,!1),Gte[l]=Zre;var c,f,d,p=function(e){if(e===o&&m)return m;if(!toe&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[noe]||v["@@iterator"]||o&&v[o],m=!toe&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Wre(b.call(new e)))!==Object.prototype&&c.next&&(Wre(c)!==eoe&&(Mte?Mte(c,eoe):T8(c[noe])||Q7(c,noe,roe)),Hte(c,h,!0)),Jre&&"values"==o&&y&&"values"!==y.name&&(Qre?F7(v,"name","values"):(g=!0,m=function(){return d8(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(toe||g||!(d in v))&&Q7(v,d,f[d]);else B9({target:t,proto:!0,forced:toe||g},f);return v[noe]!==m&&Q7(v,noe,m,{name:o}),Gte[t]=m,f},ioe=K7.set,aoe=K7.getterFor("Array Iterator"),uoe=ooe(Array,"Array",(function(e,t){ioe(this,{type:"Array Iterator",target:F8(e),index:0,kind:t})}),(function(){var e=aoe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Gte.Arguments=Gte.Array,lee("keys"),lee("values"),lee("entries");var soe=pte.charAt,loe=K7.set,coe=K7.getterFor("String Iterator");ooe(String,"String",(function(e){loe(this,{type:"String Iterator",string:L9(e),index:0})}),(function(){var e,t=coe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=soe(n,r),t.index+=e.length,{value:e,done:!1})}));var foe=function(e,t,n){var r=y7(t);r in e?B7.f(e,r,v8(0,n)):e[r]=n},doe=s8.Array,poe=Math.max,hoe=v9.f,goe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],voe={f:function(e){return goe&&"Window"==C8(e)?function(e){try{return hoe(e)}catch(t){return function(e,t,n){for(var r=s9(e),o=i9(void 0,r),i=i9(r,r),a=doe(poe(i-o,0)),u=0;o<i;o++,u++)foe(a,u,e[o]);return a.length=u,a}(goe)}}(e):hoe(F8(e))}},yoe=l8((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),moe=Object.isExtensible,boe=l8((function(){moe(1)}))||yoe?function(e){return!!_8(e)&&(!yoe||"ArrayBuffer"!=C8(e))&&(!moe||moe(e))}:moe,woe=!l8((function(){return Object.isExtensible(Object.preventExtensions({}))})),Eoe=o8((function(e){var t=B7.f,n=!1,r=l7("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=v9.f,t=E8([].splice),o={};o[r]=1,e(o).length&&(v9.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},B9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:voe.f}))},fastKey:function(e,t){if(!_8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i7(e,r)){if(!boe(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!i7(e,r)){if(!boe(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return woe&&n&&boe(e)&&!i7(e,r)&&i(e),e}};z7[r]=!0})),xoe=Eoe.getWeakData,Doe=K7.set,Coe=K7.getterFor,Soe=kee.find,Aoe=kee.findIndex,Ooe=E8([].splice),koe=0,Boe=function(e){return e.frozen||(e.frozen=new Foe)},Foe=function(){this.entries=[]},Toe=function(e,t){return Soe(e.entries,(function(e){return e[0]===t}))};Foe.prototype={get:function(e){var t=Toe(this,e);if(t)return t[1]},has:function(e){return!!Toe(this,e)},set:function(e,t){var n=Toe(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Aoe(this.entries,(function(t){return t[0]===e}));return~t&&Ooe(this.entries,t,1),!!~t}};var _oe,Poe={getConstructor:function(e,t,n,r){var o=e((function(e,o){Wte(e,i),Doe(e,{type:t,id:koe++,frozen:void 0}),null!=o&&nne(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Coe(t),u=function(e,t,n){var r=a(e),o=xoe(A7(t),!0);return!0===o?Boe(r).set(t,n):o[r.id]=n,e};return Nte(i,{delete:function(e){var t=a(this);if(!_8(e))return!1;var n=xoe(e);return!0===n?Boe(t).delete(e):n&&i7(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!_8(e))return!1;var n=xoe(e);return!0===n?Boe(t).has(e):n&&i7(n,t.id)}}),Nte(i,n?{get:function(e){var t=a(this);if(_8(e)){var n=xoe(e);return!0===n?Boe(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},joe=K7.enforce,Ioe=!s8.ActiveXObject&&"ActiveXObject"in s8,Noe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Loe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=s8[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=E8(u[e]);Q7(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!_8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!_8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!_8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(O9(e,!T8(a)||!(o||u.forEach&&!l8((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Eoe.enable();else if(O9(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=l8((function(){f.has(1)})),h=fne((function(e){new a(e)})),g=!o&&l8((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Wte(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Mte&&T8(c=o.constructor)&&c!==l&&_8(f=c.prototype)&&f!==l.prototype&&Mte(n,f),n);return null!=t&&nne(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,B9({global:!0,forced:s!=a},l),Hte(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Noe,Poe);if(L7&&Ioe){_oe=Poe.getConstructor(Noe,"WeakMap",!0),Eoe.enable();var Roe=Loe.prototype,Moe=E8(Roe.delete),zoe=E8(Roe.has),$oe=E8(Roe.get),Hoe=E8(Roe.set);Nte(Roe,{delete:function(e){if(_8(e)&&!boe(e)){var t=joe(this);return t.frozen||(t.frozen=new _oe),Moe(this,e)||t.frozen.delete(e)}return Moe(this,e)},has:function(e){if(_8(e)&&!boe(e)){var t=joe(this);return t.frozen||(t.frozen=new _oe),zoe(this,e)||t.frozen.has(e)}return zoe(this,e)},get:function(e){if(_8(e)&&!boe(e)){var t=joe(this);return t.frozen||(t.frozen=new _oe),zoe(this,e)?$oe(this,e):t.frozen.get(e)}return $oe(this,e)},set:function(e,t){if(_8(e)&&!boe(e)){var n=joe(this);n.frozen||(n.frozen=new _oe),zoe(this,e)?Hoe(this,e,t):n.frozen.set(e,t)}else Hoe(this,e,t);return this}})}var Voe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Uoe=w7("span").classList,Woe=Uoe&&Uoe.constructor&&Uoe.constructor.prototype,Goe=Woe===Object.prototype?void 0:Woe,qoe=h7("iterator"),Koe=h7("toStringTag"),Xoe=uoe.values,Yoe=function(e,t){if(e){if(e[qoe]!==Xoe)try{F7(e,qoe,Xoe)}catch(r){e[qoe]=Xoe}if(e[Koe]||F7(e,Koe,t),Voe[t])for(var n in uoe)if(e[n]!==uoe[n])try{F7(e,n,uoe[n])}catch(r){e[n]=uoe[n]}}};for(var Zoe in Voe)Yoe(s8[Zoe]&&s8[Zoe].prototype,Zoe);Yoe(Goe,"DOMTokenList");var Joe=J7.EXISTS,Qoe=B7.f,eie=Function.prototype,tie=E8(eie.toString),nie=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rie=E8(nie.exec);c8&&!Joe&&Qoe(eie,"name",{configurable:!0,get:function(){try{return rie(nie,tie(this))[1]}catch(cf){return""}}});var oie=h7("species"),iie=$8>=51||!l8((function(){var e=[];return(e.constructor={})[oie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),aie=h7("species"),uie=s8.Array,sie=Math.max;function lie(e){return e.getMenuConfig("uploadVideo")}B9({target:"Array",proto:!0,forced:!iie},{slice:function(e,t){var n,r,o,i=F8(this),a=s9(i),u=i9(e,a),s=i9(void 0===t?a:t,a);if(hee(i)&&(n=i.constructor,(xee(n)&&(n===uie||hee(n.prototype))||_8(n)&&null===(n=n[aie]))&&(n=void 0),n===uie||void 0===n))return hne(i,u,s);for(r=new(void 0===n?uie:n)(sie(s-u,0)),o=0;u<s;u++,o++)u in i&&foe(r,o,i[u]);return r.length=o,r}});var cie=new WeakMap;function fie(e,t){return e8(this,void 0,void 0,(function(){var n,r,o,i;return t8(this,(function(a){switch(a.label){case 0:return n=function(e){var t=cie.get(e);if(null!=t)return t;var n=lie(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=nj(Q5(Q5({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return _re(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;_re(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),cie.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var die=function(){function e(){this.title=Kj("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return _re(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=fg("body"),s=fg('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;e8(this,void 0,void 0,(function(){var o,i,a,u,s,l;return t8(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=lie(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return _re(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,fie(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Sp.isCollapsed(t)||!!sB.getSelectedElems(e).some((function(t){var n=sB.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),pie=J7.PROPER,hie=RegExp.prototype,gie=hie.toString,vie=E8(Nee),yie=l8((function(){return"/a/b"!=gie.call({source:"a",flags:"b"})})),mie=pie&&"toString"!=gie.name;function bie(){return jte("w-e-insert-video")}(yie||mie)&&Q7(RegExp.prototype,"toString",(function(){var e=A7(this),t=L9(e.source),n=e.flags;return"/"+t+"/"+L9(void 0===n&&I8(hie,e)&&!("flags"in hie)?vie(e):n)}),{unsafe:!0});var wie=function(){function e(){this.title=Kj("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=bie(),this.heightInputId=bie(),this.buttonId=bie()}return e.prototype.getSelectedVideoNode=function(e){return sB.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=n8(_P(Kj("videoModule.width"),n,"auto"),2),a=i[0],u=fg(i[1]),s=n8(_P(Kj("videoModule.height"),r,"auto"),2),l=s[0],c=fg(s[1]),f=n8(PP(o,Kj("videoModule.ok")),1)[0];if(null==this.$content){var d=fg("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),Yp.setNodes(e,{width:s,height:l},{match:function(e){return sB.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Eie={renderElems:[Y9],elemsToHtml:[Z9],preParseHtml:[fee],parseElemsHtml:[Iee],menus:[{key:"insertVideo",factory:function(){return new jre},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new die},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new wie}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=n8(e,2),o=t[0],i=t[1];return"video"===sB.getNodeType(o)&&sB.isLastNode(r,o)&&Yp.insertNodes(r,sB.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};qj("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qj("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var xie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Die(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cie,Sie,Aie=function(e){return e&&e.Math==Math&&e},Oie=Aie("object"==typeof globalThis&&globalThis)||Aie("object"==typeof window&&window)||Aie("object"==typeof self&&self)||Aie("object"==typeof xie&&xie)||function(){return this}()||Function("return this")(),kie=function(e){try{return!!e()}catch(t){return!0}},Bie=!kie((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Fie=Function.prototype.call,Tie=Fie.bind?Fie.bind(Fie):function(){return Fie.apply(Fie,arguments)},_ie={}.propertyIsEnumerable,Pie=Object.getOwnPropertyDescriptor,jie={f:Pie&&!_ie.call({1:2},1)?function(e){var t=Pie(this,e);return!!t&&t.enumerable}:_ie},Iie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nie=Function.prototype,Lie=Nie.bind,Rie=Nie.call,Mie=Lie&&Lie.bind(Rie),zie=Lie?function(e){return e&&Mie(Rie,e)}:function(e){return e&&function(){return Rie.apply(e,arguments)}},$ie=zie({}.toString),Hie=zie("".slice),Vie=function(e){return Hie($ie(e),8,-1)},Uie=Oie.Object,Wie=zie("".split),Gie=kie((function(){return!Uie("z").propertyIsEnumerable(0)}))?function(e){return"String"==Vie(e)?Wie(e,""):Uie(e)}:Uie,qie=Oie.TypeError,Kie=function(e){if(null==e)throw qie("Can't call method on "+e);return e},Xie=function(e){return Gie(Kie(e))},Yie=function(e){return"function"==typeof e},Zie=function(e){return"object"==typeof e?null!==e:Yie(e)},Jie=function(e){return Yie(e)?e:void 0},Qie=function(e,t){return arguments.length<2?Jie(Oie[e]):Oie[e]&&Oie[e][t]},eae=zie({}.isPrototypeOf),tae=Qie("navigator","userAgent")||"",nae=Oie.process,rae=Oie.Deno,oae=nae&&nae.versions||rae&&rae.version,iae=oae&&oae.v8;iae&&(Sie=(Cie=iae.split("."))[0]>0&&Cie[0]<4?1:+(Cie[0]+Cie[1])),!Sie&&tae&&(!(Cie=tae.match(/Edge\/(\d+)/))||Cie[1]>=74)&&(Cie=tae.match(/Chrome\/(\d+)/))&&(Sie=+Cie[1]);var aae=Sie,uae=!!Object.getOwnPropertySymbols&&!kie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aae&&aae<41})),sae=uae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lae=Oie.Object,cae=sae?function(e){return"symbol"==typeof e}:function(e){var t=Qie("Symbol");return Yie(t)&&eae(t.prototype,lae(e))},fae=Oie.String,dae=function(e){try{return fae(e)}catch(t){return"Object"}},pae=Oie.TypeError,hae=function(e){if(Yie(e))return e;throw pae(dae(e)+" is not a function")},gae=function(e,t){var n=e[t];return null==n?void 0:hae(n)},vae=Oie.TypeError,yae=Object.defineProperty,mae=function(e,t){try{yae(Oie,e,{value:t,configurable:!0,writable:!0})}catch(Yj){Oie[e]=t}return t},bae=Oie["__core-js_shared__"]||mae("__core-js_shared__",{}),wae=Die((function(e){(e.exports=function(e,t){return bae[e]||(bae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Eae=Oie.Object,xae=function(e){return Eae(Kie(e))},Dae=zie({}.hasOwnProperty),Cae=Object.hasOwn||function(e,t){return Dae(xae(e),t)},Sae=0,Aae=Math.random(),Oae=zie(1..toString),kae=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Oae(++Sae+Aae,36)},Bae=wae("wks"),Fae=Oie.Symbol,Tae=Fae&&Fae.for,_ae=sae?Fae:Fae&&Fae.withoutSetter||kae,Pae=function(e){if(!Cae(Bae,e)||!uae&&"string"!=typeof Bae[e]){var t="Symbol."+e;uae&&Cae(Fae,e)?Bae[e]=Fae[e]:Bae[e]=sae&&Tae?Tae(t):_ae(t)}return Bae[e]},jae=Oie.TypeError,Iae=Pae("toPrimitive"),Nae=function(e){var t=function(e,t){if(!Zie(e)||cae(e))return e;var n,r=gae(e,Iae);if(r){if(void 0===t&&(t="default"),n=Tie(r,e,t),!Zie(n)||cae(n))return n;throw jae("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Yie(n=e.toString)&&!Zie(r=Tie(n,e)))return r;if(Yie(n=e.valueOf)&&!Zie(r=Tie(n,e)))return r;if("string"!==t&&Yie(n=e.toString)&&!Zie(r=Tie(n,e)))return r;throw vae("Can't convert object to primitive value")}(e,t)}(e,"string");return cae(t)?t:t+""},Lae=Oie.document,Rae=Zie(Lae)&&Zie(Lae.createElement),Mae=function(e){return Rae?Lae.createElement(e):{}},zae=!Bie&&!kie((function(){return 7!=Object.defineProperty(Mae("div"),"a",{get:function(){return 7}}).a})),$ae=Object.getOwnPropertyDescriptor,Hae={f:Bie?$ae:function(e,t){if(e=Xie(e),t=Nae(t),zae)try{return $ae(e,t)}catch(n){}if(Cae(e,t))return Iie(!Tie(jie.f,e,t),e[t])}},Vae=Oie.String,Uae=Oie.TypeError,Wae=function(e){if(Zie(e))return e;throw Uae(Vae(e)+" is not an object")},Gae=Oie.TypeError,qae=Object.defineProperty,Kae={f:Bie?qae:function(e,t,n){if(Wae(e),t=Nae(t),Wae(n),zae)try{return qae(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Gae("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Xae=Bie?function(e,t,n){return Kae.f(e,t,Iie(1,n))}:function(e,t,n){return e[t]=n,e},Yae=zie(Function.toString);Yie(bae.inspectSource)||(bae.inspectSource=function(e){return Yae(e)});var Zae,Jae,Qae,eue=bae.inspectSource,tue=Oie.WeakMap,nue=Yie(tue)&&/native code/.test(eue(tue)),rue=wae("keys"),oue=function(e){return rue[e]||(rue[e]=kae(e))},iue={},aue=Oie.TypeError,uue=Oie.WeakMap;if(nue||bae.state){var sue=bae.state||(bae.state=new uue),lue=zie(sue.get),cue=zie(sue.has),fue=zie(sue.set);Zae=function(e,t){if(cue(sue,e))throw new aue("Object already initialized");return t.facade=e,fue(sue,e,t),t},Jae=function(e){return lue(sue,e)||{}},Qae=function(e){return cue(sue,e)}}else{var due=oue("state");iue[due]=!0,Zae=function(e,t){if(Cae(e,due))throw new aue("Object already initialized");return t.facade=e,Xae(e,due,t),t},Jae=function(e){return Cae(e,due)?e[due]:{}},Qae=function(e){return Cae(e,due)}}var pue={set:Zae,get:Jae,has:Qae,enforce:function(e){return Qae(e)?Jae(e):Zae(e,{})},getterFor:function(e){return function(t){var n;if(!Zie(t)||(n=Jae(t)).type!==e)throw aue("Incompatible receiver, "+e+" required");return n}}},hue=Function.prototype,gue=Bie&&Object.getOwnPropertyDescriptor,vue=Cae(hue,"name"),yue={EXISTS:vue,PROPER:vue&&"something"===function(){}.name,CONFIGURABLE:vue&&(!Bie||Bie&&gue(hue,"name").configurable)},mue=Die((function(e){var t=yue.CONFIGURABLE,n=pue.get,r=pue.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Yie(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cae(i,"name")||t&&i.name!==f)&&Xae(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Oie?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Xae(e,n,i)):l?e[n]=i:mae(n,i)})(Function.prototype,"toString",(function(){return Yie(this)&&n(this).source||eue(this)}))})),bue=Math.ceil,wue=Math.floor,Eue=function(e){var t=+e;return t!=t||0===t?0:(t>0?wue:bue)(t)},xue=Math.max,Due=Math.min,Cue=function(e,t){var n=Eue(e);return n<0?xue(n+t,0):Due(n,t)},Sue=Math.min,Aue=function(e){return e>0?Sue(Eue(e),9007199254740991):0},Oue=function(e){return Aue(e.length)},kue=function(e){return function(t,n,r){var o,i=Xie(t),a=Oue(i),u=Cue(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Bue=zie([].push),Fue=function(e,t){var n,r=Xie(e),o=0,i=[];for(n in r)!Cae(iue,n)&&Cae(r,n)&&Bue(i,n);for(;t.length>o;)Cae(r,n=t[o++])&&(~kue(i,n)||Bue(i,n));return i},Tue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_ue=Tue.concat("length","prototype"),Pue={f:Object.getOwnPropertyNames||function(e){return Fue(e,_ue)}},jue={f:Object.getOwnPropertySymbols},Iue=zie([].concat),Nue=Qie("Reflect","ownKeys")||function(e){var t=Pue.f(Wae(e)),n=jue.f;return n?Iue(t,n(e)):t},Lue=function(e,t){for(var n=Nue(t),r=Kae.f,o=Hae.f,i=0;i<n.length;i++){var a=n[i];Cae(e,a)||r(e,a,o(t,a))}},Rue=/#|\.prototype\./,Mue=function(e,t){var n=$ue[zue(e)];return n==Vue||n!=Hue&&(Yie(t)?kie(t):!!t)},zue=Mue.normalize=function(e){return String(e).replace(Rue,".").toLowerCase()},$ue=Mue.data={},Hue=Mue.NATIVE="N",Vue=Mue.POLYFILL="P",Uue=Mue,Wue=Hae.f,Gue=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Oie:l?Oie[u]||mae(u,{}):(Oie[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Wue(n,r))&&a.value:n[r],!Uue(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Lue(i,o)}(e.sham||o&&o.sham)&&Xae(i,"sham",!0),mue(n,r,i,e)}},que=Array.isArray||function(e){return"Array"==Vie(e)},Kue={};Kue[Pae("toStringTag")]="z";var Xue="[object z]"===String(Kue),Yue=Pae("toStringTag"),Zue=Oie.Object,Jue="Arguments"==Vie(function(){return arguments}()),Que=Xue?Vie:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Zue(e),Yue))?n:Jue?Vie(t):"Object"==(r=Vie(t))&&Yie(t.callee)?"Arguments":r},ese=function(){},tse=[],nse=Qie("Reflect","construct"),rse=/^\s*(?:class|function)\b/,ose=zie(rse.exec),ise=!rse.exec(ese),ase=function(e){if(!Yie(e))return!1;try{return nse(ese,tse,e),!0}catch(t){return!1}},use=!nse||kie((function(){var e;return ase(ase.call)||!ase(Object)||!ase((function(){e=!0}))||e}))?function(e){if(!Yie(e))return!1;switch(Que(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ise||!!ose(rse,eue(e))}:ase,sse=function(e,t,n){var r=Nae(t);r in e?Kae.f(e,r,Iie(0,n)):e[r]=n},lse=Pae("species"),cse=zie([].slice),fse=aae>=51||!kie((function(){var e=[];return(e.constructor={})[lse]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),dse=Pae("species"),pse=Oie.Array,hse=Math.max;Gue({target:"Array",proto:!0,forced:!fse},{slice:function(e,t){var n,r,o,i=Xie(this),a=Oue(i),u=Cue(e,a),s=Cue(void 0===t?a:t,a);if(que(i)&&(n=i.constructor,(use(n)&&(n===pse||que(n.prototype))||Zie(n)&&null===(n=n[dse]))&&(n=void 0),n===pse||void 0===n))return cse(i,u,s);for(r=new(void 0===n?pse:n)(hse(s-u,0)),o=0;u<s;u++,o++)u in i&&sse(r,o,i[u]);return r.length=o,r}});var gse=Xue?{}.toString:function(){return"[object "+Que(this)+"]"};Xue||mue(Object.prototype,"toString",gse,{unsafe:!0});var vse,yse=Oie.String,mse=function(e){if("Symbol"===Que(e))throw TypeError("Cannot convert a Symbol value to a string");return yse(e)},bse=function(){var e=Wae(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wse=Oie.RegExp,Ese=kie((function(){var e=wse("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),xse=Ese||kie((function(){return!wse("a","y").sticky})),Dse={BROKEN_CARET:Ese||kie((function(){var e=wse("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:xse,UNSUPPORTED_Y:Ese},Cse=Object.keys||function(e){return Fue(e,Tue)},Sse=Bie?Object.defineProperties:function(e,t){Wae(e);for(var n,r=Xie(t),o=Cse(t),i=o.length,a=0;i>a;)Kae.f(e,n=o[a++],r[n]);return e},Ase=Qie("document","documentElement"),Ose=oue("IE_PROTO"),kse=function(){},Bse=function(e){return"<script>"+e+"<\/script>"},Fse=function(e){e.write(Bse("")),e.close();var t=e.parentWindow.Object;return e=null,t},Tse=function(){try{vse=new ActiveXObject("htmlfile")}catch(r){}var e,t;Tse="undefined"!=typeof document?document.domain&&vse?Fse(vse):((t=Mae("iframe")).style.display="none",Ase.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Bse("document.F=Object")),e.close(),e.F):Fse(vse);for(var n=Tue.length;n--;)delete Tse.prototype[Tue[n]];return Tse()};iue[Ose]=!0;var _se,Pse,jse=Object.create||function(e,t){var n;return null!==e?(kse.prototype=Wae(e),n=new kse,kse.prototype=null,n[Ose]=e):n=Tse(),void 0===t?n:Sse(n,t)},Ise=Oie.RegExp,Nse=kie((function(){var e=Ise(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Lse=Oie.RegExp,Rse=kie((function(){var e=Lse("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Mse=pue.get,zse=wae("native-string-replace",String.prototype.replace),$se=RegExp.prototype.exec,Hse=$se,Vse=zie("".charAt),Use=zie("".indexOf),Wse=zie("".replace),Gse=zie("".slice),qse=(Pse=/b*/g,Tie($se,_se=/a/,"a"),Tie($se,Pse,"a"),0!==_se.lastIndex||0!==Pse.lastIndex),Kse=Dse.BROKEN_CARET,Xse=void 0!==/()??/.exec("")[1];(qse||Xse||Kse||Nse||Rse)&&(Hse=function(e){var t,n,r,o,i,a,u,s=this,l=Mse(s),c=mse(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Tie(Hse,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Kse&&s.sticky,h=Tie(bse,s),g=s.source,v=0,y=c;if(p&&(h=Wse(h,"y",""),-1===Use(h,"g")&&(h+="g"),y=Gse(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vse(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Xse&&(n=new RegExp("^"+g+"$(?!\\s)",h)),qse&&(r=s.lastIndex),o=Tie($se,p?n:s,y),p?o?(o.input=Gse(o.input,v),o[0]=Gse(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qse&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Xse&&o&&o.length>1&&Tie(zse,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=jse(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Yse=Hse;Gue({target:"RegExp",proto:!0,forced:/./.exec!==Yse},{exec:Yse});var Zse=Function.prototype,Jse=Zse.apply,Qse=Zse.bind,ele=Zse.call,tle="object"==typeof Reflect&&Reflect.apply||(Qse?ele.bind(Jse):function(){return ele.apply(Jse,arguments)}),nle=Pae("species"),rle=RegExp.prototype,ole=Pae("match"),ile=Oie.TypeError,ale=Pae("species"),ule=function(e,t){var n,r=Wae(e).constructor;return void 0===r||null==(n=Wae(r)[ale])?t:function(e){if(use(e))return e;throw ile(dae(e)+" is not a constructor")}(n)},sle=zie("".charAt),lle=zie("".charCodeAt),cle=zie("".slice),fle=function(e){return function(t,n){var r,o,i=mse(Kie(t)),a=Eue(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=lle(i,a))<55296||r>56319||a+1===u||(o=lle(i,a+1))<56320||o>57343?e?sle(i,a):r:e?cle(i,a,a+2):o-56320+(r-55296<<10)+65536}},dle={codeAt:fle(!1),charAt:fle(!0)},ple=dle.charAt,hle=function(e,t,n){return t+(n?ple(e,t).length:1)},gle=Oie.Array,vle=Math.max,yle=function(e,t,n){for(var r=Oue(e),o=Cue(t,r),i=Cue(void 0===n?r:n,r),a=gle(vle(i-o,0)),u=0;o<i;o++,u++)sse(a,u,e[o]);return a.length=u,a},mle=Oie.TypeError,ble=function(e,t){var n=e.exec;if(Yie(n)){var r=Tie(n,e,t);return null!==r&&Wae(r),r}if("RegExp"===Vie(e))return Tie(Yse,e,t);throw mle("RegExp#exec called on incompatible receiver")},wle=Dse.UNSUPPORTED_Y,Ele=Math.min,xle=[].push,Dle=zie(/./.exec),Cle=zie(xle),Sle=zie("".slice);!function(e,t,n,r){var o,i,a,u=Pae(e),s=!kie((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!kie((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[nle]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=zie(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=mse(Kie(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Zie(n=e)||!(void 0!==(r=n[ole])?r:"RegExp"==Vie(n)))return Tie(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Tie(Yse,p,o))&&!((s=p.lastIndex)>d&&(Cle(c,Sle(o,d,u.index)),u.length>1&&u.index<o.length&&tle(xle,c,yle(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Dle(p,"")||Cle(c,""):Cle(c,Sle(o,d)),c.length>a?yle(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Tie(i,this,e,t)}:i,[function(e,t){var n=Kie(this),r=null==e?void 0:gae(e,o);return r?Tie(r,e,n,t):Tie(a,mse(n),e,t)},function(e,t){var n=Wae(this),r=mse(e),o=function(e,t,n,r,o){var i=zie(e),a=t.exec;return a===Yse||a===rle.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u=ule(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(wle?"g":"y"),d=new u(wle?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===ble(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=wle?0:g;var y,m=ble(d,wle?Sle(r,g):r);if(null===m||(y=Ele(Aue(d.lastIndex+(wle?g:0)),r.length))===h)g=hle(r,g,l);else{if(Cle(v,Sle(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(Cle(v,m[b]),v.length===p)return v;g=h=y}}return Cle(v,Sle(r,h)),v}]);mue(String.prototype,e,f[0]),mue(rle,u,f[1])}r&&Xae(rle[u],"sham",!0)}("split",0,!!kie((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),wle);
  75. /*! *****************************************************************************
  76. Copyright (c) Microsoft Corporation.
  77. Permission to use, copy, modify, and/or distribute this software for any
  78. purpose with or without fee is hereby granted.
  79. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  80. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  81. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  82. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  83. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  84. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  85. PERFORMANCE OF THIS SOFTWARE.
  86. ***************************************************************************** */
  87. var Ale=function(){return Ale=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ale.apply(this,arguments)};function Ole(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function kle(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var Ble=Pae("unscopables"),Fle=Array.prototype;null==Fle[Ble]&&Kae.f(Fle,Ble,{configurable:!0,value:jse(null)});var Tle,_le,Ple,jle=function(e){Fle[Ble][e]=!0},Ile={},Nle=!kie((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Lle=oue("IE_PROTO"),Rle=Oie.Object,Mle=Rle.prototype,zle=Nle?Rle.getPrototypeOf:function(e){var t=xae(e);if(Cae(t,Lle))return t[Lle];var n=t.constructor;return Yie(n)&&t instanceof n?n.prototype:t instanceof Rle?Mle:null},$le=Pae("iterator"),Hle=!1;[].keys&&("next"in(Ple=[].keys())?(_le=zle(zle(Ple)))!==Object.prototype&&(Tle=_le):Hle=!0);var Vle=null==Tle||kie((function(){var e={};return Tle[$le].call(e)!==e}));Vle&&(Tle={}),Yie(Tle[$le])||mue(Tle,$le,(function(){return this}));var Ule={IteratorPrototype:Tle,BUGGY_SAFARI_ITERATORS:Hle},Wle=Kae.f,Gle=Pae("toStringTag"),qle=function(e,t,n){e&&!Cae(e=n?e:e.prototype,Gle)&&Wle(e,Gle,{configurable:!0,value:t})},Kle=Ule.IteratorPrototype,Xle=function(){return this},Yle=Oie.String,Zle=Oie.TypeError,Jle=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=zie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Wae(n),function(e){if("object"==typeof e||Yie(e))return e;throw Zle("Can't set "+Yle(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Qle=yue.PROPER,ece=yue.CONFIGURABLE,tce=Ule.IteratorPrototype,nce=Ule.BUGGY_SAFARI_ITERATORS,rce=Pae("iterator"),oce=function(){return this},ice=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=jse(Kle,{next:Iie(1,s)}),qle(u,l,!1),Ile[l]=Xle;var c,f,d,p=function(e){if(e===o&&m)return m;if(!nce&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[rce]||v["@@iterator"]||o&&v[o],m=!nce&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=zle(b.call(new e)))!==Object.prototype&&c.next&&(zle(c)!==tce&&(Jle?Jle(c,tce):Yie(c[rce])||mue(c,rce,oce)),qle(c,h,!0)),Qle&&"values"==o&&y&&"values"!==y.name&&(ece?Xae(v,"name","values"):(g=!0,m=function(){return Tie(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(nce||g||!(d in v))&&mue(v,d,f[d]);else Gue({target:t,proto:!0,forced:nce||g},f);return v[rce]!==m&&mue(v,rce,m,{name:o}),Ile[t]=m,f},ace=pue.set,uce=pue.getterFor("Array Iterator"),sce=ice(Array,"Array",(function(e,t){ace(this,{type:"Array Iterator",target:Xie(e),index:0,kind:t})}),(function(){var e=uce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Ile.Arguments=Ile.Array,jle("keys"),jle("values"),jle("entries");var lce=dle.charAt,cce=pue.set,fce=pue.getterFor("String Iterator");ice(String,"String",(function(e){cce(this,{type:"String Iterator",string:mse(e),index:0})}),(function(){var e,t=fce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=lce(n,r),t.index+=e.length,{value:e,done:!1})}));var dce=function(e,t,n){for(var r in t)mue(e,r,t[r],n);return e},pce=Pue.f,hce="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gce={f:function(e){return hce&&"Window"==Vie(e)?function(e){try{return pce(e)}catch(t){return yle(hce)}}(e):pce(Xie(e))}},vce=kie((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),yce=Object.isExtensible,mce=kie((function(){yce(1)}))||vce?function(e){return!!Zie(e)&&(!vce||"ArrayBuffer"!=Vie(e))&&(!yce||yce(e))}:yce,bce=!kie((function(){return Object.isExtensible(Object.preventExtensions({}))})),wce=Die((function(e){var t=Kae.f,n=!1,r=kae("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Pue.f,t=zie([].splice),o={};o[r]=1,e(o).length&&(Pue.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Gue({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gce.f}))},fastKey:function(e,t){if(!Zie(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Cae(e,r)){if(!mce(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Cae(e,r)){if(!mce(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return bce&&n&&mce(e)&&!Cae(e,r)&&i(e),e}};iue[r]=!0})),Ece=zie(zie.bind),xce=function(e,t){return hae(e),void 0===t?e:Ece?Ece(e,t):function(){return e.apply(t,arguments)}},Dce=Pae("iterator"),Cce=Array.prototype,Sce=Pae("iterator"),Ace=function(e){if(null!=e)return gae(e,Sce)||gae(e,"@@iterator")||Ile[Que(e)]},Oce=Oie.TypeError,kce=function(e,t,n){var r,o;Wae(e);try{if(!(r=gae(e,"return"))){if("throw"===t)throw n;return n}r=Tie(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Wae(r),n},Bce=Oie.TypeError,Fce=function(e,t){this.stopped=e,this.result=t},Tce=Fce.prototype,_ce=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=xce(t,f),v=function(e){return r&&kce(r,"normal",e),new Fce(!0,e)},y=function(e){return d?(Wae(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Ace(e)))throw Bce(dae(e)+" is not iterable");if(void 0!==(c=o)&&(Ile.Array===c||Cce[Dce]===c)){for(i=0,a=Oue(e);a>i;i++)if((u=y(e[i]))&&eae(Tce,u))return u;return new Fce(!1)}r=function(e,t){var n=arguments.length<2?Ace(e):t;if(hae(n))return Wae(Tie(n,e));throw Oce(dae(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Tie(s,r)).done;){try{u=y(l.value)}catch(m){kce(r,"throw",m)}if("object"==typeof u&&u&&eae(Tce,u))return u}return new Fce(!1)},Pce=Oie.TypeError,jce=function(e,t){if(eae(t,e))return e;throw Pce("Incorrect invocation")},Ice=Pae("iterator"),Nce=!1;try{var Lce=0,Rce={next:function(){return{done:!!Lce++}},return:function(){Nce=!0}};Rce[Ice]=function(){return this},Array.from(Rce,(function(){throw 2}))}catch(zme){}var Mce=function(e,t){if(!t&&!Nce)return!1;var n=!1;try{var r={};r[Ice]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},zce=Pae("species"),$ce=Oie.Array,Hce=function(e,t){return new(que(n=e)&&(r=n.constructor,(use(r)&&(r===$ce||que(r.prototype))||Zie(r)&&null===(r=r[zce]))&&(r=void 0)),void 0===r?$ce:r)(0===t?0:t);var n,r},Vce=zie([].push),Uce=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=xae(s),g=Gie(h),v=xce(l,c),y=Oue(g),m=0,b=f||Hce,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Vce(w,d)}else switch(e){case 4:return!1;case 7:Vce(w,d)}return i?-1:r||o?o:w}},Wce={forEach:Uce(0),map:Uce(1),filter:Uce(2),some:Uce(3),every:Uce(4),find:Uce(5),findIndex:Uce(6),filterReject:Uce(7)},Gce=wce.getWeakData,qce=pue.set,Kce=pue.getterFor,Xce=Wce.find,Yce=Wce.findIndex,Zce=zie([].splice),Jce=0,Qce=function(e){return e.frozen||(e.frozen=new efe)},efe=function(){this.entries=[]},tfe=function(e,t){return Xce(e.entries,(function(e){return e[0]===t}))};efe.prototype={get:function(e){var t=tfe(this,e);if(t)return t[1]},has:function(e){return!!tfe(this,e)},set:function(e,t){var n=tfe(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Yce(this.entries,(function(t){return t[0]===e}));return~t&&Zce(this.entries,t,1),!!~t}};var nfe,rfe={getConstructor:function(e,t,n,r){var o=e((function(e,o){jce(e,i),qce(e,{type:t,id:Jce++,frozen:void 0}),null!=o&&_ce(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Kce(t),u=function(e,t,n){var r=a(e),o=Gce(Wae(t),!0);return!0===o?Qce(r).set(t,n):o[r.id]=n,e};return dce(i,{delete:function(e){var t=a(this);if(!Zie(e))return!1;var n=Gce(e);return!0===n?Qce(t).delete(e):n&&Cae(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Zie(e))return!1;var n=Gce(e);return!0===n?Qce(t).has(e):n&&Cae(n,t.id)}}),dce(i,n?{get:function(e){var t=a(this);if(Zie(e)){var n=Gce(e);return!0===n?Qce(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ofe=pue.enforce,ife=!Oie.ActiveXObject&&"ActiveXObject"in Oie,afe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ufe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Oie[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=zie(u[e]);mue(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Zie(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Zie(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Zie(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Uue(e,!Yie(a)||!(o||u.forEach&&!kie((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),wce.enable();else if(Uue(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=kie((function(){f.has(1)})),h=Mce((function(e){new a(e)})),g=!o&&kie((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){jce(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Jle&&Yie(c=o.constructor)&&c!==l&&Zie(f=c.prototype)&&f!==l.prototype&&Jle(n,f),n);return null!=t&&_ce(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Gue({global:!0,forced:s!=a},l),qle(s,e),o||n.setStrong(s,e,r),s}("WeakMap",afe,rfe);if(nue&&ife){nfe=rfe.getConstructor(afe,"WeakMap",!0),wce.enable();var sfe=ufe.prototype,lfe=zie(sfe.delete),cfe=zie(sfe.has),ffe=zie(sfe.get),dfe=zie(sfe.set);dce(sfe,{delete:function(e){if(Zie(e)&&!mce(e)){var t=ofe(this);return t.frozen||(t.frozen=new nfe),lfe(this,e)||t.frozen.delete(e)}return lfe(this,e)},has:function(e){if(Zie(e)&&!mce(e)){var t=ofe(this);return t.frozen||(t.frozen=new nfe),cfe(this,e)||t.frozen.has(e)}return cfe(this,e)},get:function(e){if(Zie(e)&&!mce(e)){var t=ofe(this);return t.frozen||(t.frozen=new nfe),cfe(this,e)?ffe(this,e):t.frozen.get(e)}return ffe(this,e)},set:function(e,t){if(Zie(e)&&!mce(e)){var n=ofe(this);n.frozen||(n.frozen=new nfe),cfe(this,e)?dfe(this,e,t):n.frozen.set(e,t)}else dfe(this,e,t);return this}})}var pfe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},hfe=Mae("span").classList,gfe=hfe&&hfe.constructor&&hfe.constructor.prototype,vfe=gfe===Object.prototype?void 0:gfe,yfe=Pae("iterator"),mfe=Pae("toStringTag"),bfe=sce.values,wfe=function(e,t){if(e){if(e[yfe]!==bfe)try{Xae(e,yfe,bfe)}catch(r){e[yfe]=bfe}if(e[mfe]||Xae(e,mfe,t),pfe[t])for(var n in sce)if(e[n]!==sce[n])try{Xae(e,n,sce[n])}catch(r){e[n]=sce[n]}}};for(var Efe in pfe)wfe(Oie[Efe]&&Oie[Efe].prototype,Efe);wfe(vfe,"DOMTokenList");var xfe=function(e,t){var n=[][e];return!!n&&kie((function(){n.call(null,t||function(){throw 1},1)}))},Dfe=Wce.forEach,Cfe=xfe("forEach")?[].forEach:function(e){return Dfe(this,e,arguments.length>1?arguments[1]:void 0)},Sfe=function(e){if(e&&e.forEach!==Cfe)try{Xae(e,"forEach",Cfe)}catch(t){e.forEach=Cfe}};for(var Afe in pfe)pfe[Afe]&&Sfe(Oie[Afe]&&Oie[Afe].prototype);Sfe(vfe);var Ofe,kfe,Bfe,Ffe,Tfe=Oie.Promise,_fe=Pae("species"),Pfe=/(?:ipad|iphone|ipod).*applewebkit/i.test(tae),jfe="process"==Vie(Oie.process),Ife=Oie.setImmediate,Nfe=Oie.clearImmediate,Lfe=Oie.process,Rfe=Oie.Dispatch,Mfe=Oie.Function,zfe=Oie.MessageChannel,$fe=Oie.String,Hfe=0,Vfe={};try{Ofe=Oie.location}catch(zme){}var Ufe=function(e){if(Cae(Vfe,e)){var t=Vfe[e];delete Vfe[e],t()}},Wfe=function(e){return function(){Ufe(e)}},Gfe=function(e){Ufe(e.data)},qfe=function(e){Oie.postMessage($fe(e),Ofe.protocol+"//"+Ofe.host)};Ife&&Nfe||(Ife=function(e){var t=cse(arguments,1);return Vfe[++Hfe]=function(){tle(Yie(e)?e:Mfe(e),void 0,t)},kfe(Hfe),Hfe},Nfe=function(e){delete Vfe[e]},jfe?kfe=function(e){Lfe.nextTick(Wfe(e))}:Rfe&&Rfe.now?kfe=function(e){Rfe.now(Wfe(e))}:zfe&&!Pfe?(Ffe=(Bfe=new zfe).port2,Bfe.port1.onmessage=Gfe,kfe=xce(Ffe.postMessage,Ffe)):Oie.addEventListener&&Yie(Oie.postMessage)&&!Oie.importScripts&&Ofe&&"file:"!==Ofe.protocol&&!kie(qfe)?(kfe=qfe,Oie.addEventListener("message",Gfe,!1)):kfe="onreadystatechange"in Mae("script")?function(e){Ase.appendChild(Mae("script")).onreadystatechange=function(){Ase.removeChild(this),Ufe(e)}}:function(e){setTimeout(Wfe(e),0)});var Kfe,Xfe,Yfe,Zfe,Jfe,Qfe,ede,tde,nde={set:Ife,clear:Nfe},rde=/ipad|iphone|ipod/i.test(tae)&&void 0!==Oie.Pebble,ode=/web0s(?!.*chrome)/i.test(tae),ide=Hae.f,ade=nde.set,ude=Oie.MutationObserver||Oie.WebKitMutationObserver,sde=Oie.document,lde=Oie.process,cde=Oie.Promise,fde=ide(Oie,"queueMicrotask"),dde=fde&&fde.value;dde||(Kfe=function(){var e,t;for(jfe&&(e=lde.domain)&&e.exit();Xfe;){t=Xfe.fn,Xfe=Xfe.next;try{t()}catch(n){throw Xfe?Zfe():Yfe=void 0,n}}Yfe=void 0,e&&e.enter()},Pfe||jfe||ode||!ude||!sde?!rde&&cde&&cde.resolve?((ede=cde.resolve(void 0)).constructor=cde,tde=xce(ede.then,ede),Zfe=function(){tde(Kfe)}):jfe?Zfe=function(){lde.nextTick(Kfe)}:(ade=xce(ade,Oie),Zfe=function(){ade(Kfe)}):(Jfe=!0,Qfe=sde.createTextNode(""),new ude(Kfe).observe(Qfe,{characterData:!0}),Zfe=function(){Qfe.data=Jfe=!Jfe}));var pde,hde,gde,vde,yde=dde||function(e){var t={fn:e,next:void 0};Yfe&&(Yfe.next=t),Xfe||(Xfe=t,Zfe()),Yfe=t},mde=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=hae(t),this.reject=hae(n)},bde={f:function(e){return new mde(e)}},wde=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Ede="object"==typeof window,xde=nde.set,Dde=Pae("species"),Cde="Promise",Sde=pue.getterFor(Cde),Ade=pue.set,Ode=pue.getterFor(Cde),kde=Tfe&&Tfe.prototype,Bde=Tfe,Fde=kde,Tde=Oie.TypeError,_de=Oie.document,Pde=Oie.process,jde=bde.f,Ide=jde,Nde=!!(_de&&_de.createEvent&&Oie.dispatchEvent),Lde=Yie(Oie.PromiseRejectionEvent),Rde=!1,Mde=Uue(Cde,(function(){var e=eue(Bde),t=e!==String(Bde);if(!t&&66===aae)return!0;if(aae>=51&&/native code/.test(e))return!1;var n=new Bde((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Dde]=r,!(Rde=n.then((function(){}))instanceof r)||!t&&Ede&&!Lde})),zde=Mde||!Mce((function(e){Bde.all(e).catch((function(){}))})),$de=function(e){var t;return!(!Zie(e)||!Yie(t=e.then))&&t},Hde=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;yde((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Gde(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Tde("Promise-chain cycle")):(u=$de(a))?Tie(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ude(e)}))}},Vde=function(e,t,n){var r,o;Nde?((r=_de.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Oie.dispatchEvent(r)):r={promise:t,reason:n},!Lde&&(o=Oie["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Oie.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ude=function(e){Tie(xde,Oie,(function(){var t,n=e.facade,r=e.value;if(Wde(e)&&(t=wde((function(){jfe?Pde.emit("unhandledRejection",r,n):Vde("unhandledrejection",n,r)})),e.rejection=jfe||Wde(e)?2:1,t.error))throw t.value}))},Wde=function(e){return 1!==e.rejection&&!e.parent},Gde=function(e){Tie(xde,Oie,(function(){var t=e.facade;jfe?Pde.emit("rejectionHandled",t):Vde("rejectionhandled",t,e.value)}))},qde=function(e,t,n){return function(r){e(t,r,n)}},Kde=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Hde(e,!0))},Xde=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Tde("Promise can't be resolved itself");var r=$de(t);r?yde((function(){var n={done:!1};try{Tie(r,t,qde(Xde,n,e),qde(Kde,n,e))}catch(o){Kde(n,o,e)}})):(e.value=t,e.state=1,Hde(e,!1))}catch(o){Kde({done:!1},o,e)}}};if(Mde&&(Fde=(Bde=function(e){jce(this,Fde),hae(e),Tie(pde,this);var t=Sde(this);try{e(qde(Xde,t),qde(Kde,t))}catch(n){Kde(t,n)}}).prototype,(pde=function(e){Ade(this,{type:Cde,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=dce(Fde,{then:function(e,t){var n=Ode(this),r=n.reactions,o=jde(ule(this,Bde));return o.ok=!Yie(e)||e,o.fail=Yie(t)&&t,o.domain=jfe?Pde.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Hde(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),hde=function(){var e=new pde,t=Sde(e);this.promise=e,this.resolve=qde(Xde,t),this.reject=qde(Kde,t)},bde.f=jde=function(e){return e===Bde||e===gde?new hde(e):Ide(e)},Yie(Tfe)&&kde!==Object.prototype)){vde=kde.then,Rde||(mue(kde,"then",(function(e,t){var n=this;return new Bde((function(e,t){Tie(vde,n,e,t)})).then(e,t)}),{unsafe:!0}),mue(kde,"catch",Fde.catch,{unsafe:!0}));try{delete kde.constructor}catch(zme){}Jle&&Jle(kde,Fde)}Gue({global:!0,wrap:!0,forced:Mde},{Promise:Bde}),qle(Bde,Cde,!1),function(e){var t=Qie("Promise"),n=Kae.f;Bie&&t&&!t[_fe]&&n(t,_fe,{configurable:!0,get:function(){return this}})}(),gde=Qie(Cde),Gue({target:Cde,stat:!0,forced:Mde},{reject:function(e){var t=jde(this);return Tie(t.reject,void 0,e),t.promise}}),Gue({target:Cde,stat:!0,forced:Mde},{resolve:function(e){return function(e,t){if(Wae(e),Zie(t)&&t.constructor===e)return t;var n=bde.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Gue({target:Cde,stat:!0,forced:zde},{all:function(e){var t=this,n=jde(t),r=n.resolve,o=n.reject,i=wde((function(){var n=hae(t.resolve),i=[],a=0,u=1;_ce(e,(function(e){var s=a++,l=!1;u++,Tie(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=jde(t),r=n.reject,o=wde((function(){var o=hae(t.resolve);_ce(e,(function(e){Tie(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Yde=yue.PROPER,Zde=RegExp.prototype,Jde=Zde.toString,Qde=zie(bse),epe=kie((function(){return"/a/b"!=Jde.call({source:"a",flags:"b"})})),tpe=Yde&&"toString"!=Jde.name;(epe||tpe)&&mue(RegExp.prototype,"toString",(function(){var e=Wae(this),t=mse(e.source),n=e.flags;return"/"+t+"/"+mse(void 0===n&&eae(Zde,e)&&!("flags"in Zde)?Qde(e):n)}),{unsafe:!0});var npe=yue.EXISTS,rpe=Kae.f,ope=Function.prototype,ipe=zie(ope.toString),ape=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,upe=zie(ape.exec);Bie&&!npe&&rpe(ope,"name",{configurable:!0,get:function(){try{return upe(ape,ipe(this))[1]}catch(cf){return""}}});var spe=new WeakMap;function lpe(e){return e.getMenuConfig("uploadImage")}function cpe(e,t){return Ole(this,void 0,void 0,(function(){return kle(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;UH(e,i,t.name,a),n("ok")}}}))]}))}))}function fpe(e,t){return Ole(this,void 0,void 0,(function(){var n,r,o,i;return kle(this,(function(a){switch(a.label){case 0:return n=function(e){var t=spe.get(e);if(null!=t)return t;var n=lpe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=nj(Ale(Ale({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return UH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;UH(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;UH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),spe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function dpe(e,t){var n,r;return Ole(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return kle(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=lpe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,cpe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return UH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,fpe(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var ppe=zie([].join),hpe=Gie!=Object,gpe=xfe("join",",");Gue({target:"Array",proto:!0,forced:hpe||!gpe},{join:function(e){return ppe(Xie(this),void 0===e?",":e)}}),_g&&(fg.fn.append=_g),bg&&(fg.fn.on=bg),Rg&&(fg.fn.remove=Rg),mg&&(fg.fn.val=mg),Hg&&(fg.fn.click=Hg),Cg&&(fg.fn.hide=Cg);var vpe=function(){function e(){this.title=Kj("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return WH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return UH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=fg("body"),s=fg('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;dpe(e,t)}))}},e}(),ype={menus:[{key:"uploadImage",factory:function(){return new vpe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(WH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?dpe(e,o):t(r)}},n}};qj("en",{highLightModule:{selectLang:"Language"}}),qj("zh-CN",{highLightModule:{selectLang:"选择语言"}});var mpe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bpe(e){var t={exports:{}};return e(t,t.exports),t.exports}var wpe,Epe,xpe=function(e){return e&&e.Math==Math&&e},Dpe=xpe("object"==typeof globalThis&&globalThis)||xpe("object"==typeof window&&window)||xpe("object"==typeof self&&self)||xpe("object"==typeof mpe&&mpe)||function(){return this}()||Function("return this")(),Cpe=Object.defineProperty,Spe=function(e,t){try{Cpe(Dpe,e,{value:t,configurable:!0,writable:!0})}catch(Yj){Dpe[e]=t}return t},Ape=Dpe["__core-js_shared__"]||Spe("__core-js_shared__",{}),Ope=bpe((function(e){(e.exports=function(e,t){return Ape[e]||(Ape[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),kpe=Function.prototype,Bpe=kpe.bind,Fpe=kpe.call,Tpe=Bpe&&Bpe.bind(Fpe),_pe=Bpe?function(e){return e&&Tpe(Fpe,e)}:function(e){return e&&function(){return Fpe.apply(e,arguments)}},Ppe=Dpe.TypeError,jpe=function(e){if(null==e)throw Ppe("Can't call method on "+e);return e},Ipe=Dpe.Object,Npe=function(e){return Ipe(jpe(e))},Lpe=_pe({}.hasOwnProperty),Rpe=Object.hasOwn||function(e,t){return Lpe(Npe(e),t)},Mpe=0,zpe=Math.random(),$pe=_pe(1..toString),Hpe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$pe(++Mpe+zpe,36)},Vpe=function(e){return"function"==typeof e},Upe=function(e){return Vpe(e)?e:void 0},Wpe=function(e,t){return arguments.length<2?Upe(Dpe[e]):Dpe[e]&&Dpe[e][t]},Gpe=Wpe("navigator","userAgent")||"",qpe=Dpe.process,Kpe=Dpe.Deno,Xpe=qpe&&qpe.versions||Kpe&&Kpe.version,Ype=Xpe&&Xpe.v8;Ype&&(Epe=(wpe=Ype.split("."))[0]>0&&wpe[0]<4?1:+(wpe[0]+wpe[1])),!Epe&&Gpe&&(!(wpe=Gpe.match(/Edge\/(\d+)/))||wpe[1]>=74)&&(wpe=Gpe.match(/Chrome\/(\d+)/))&&(Epe=+wpe[1]);var Zpe=Epe,Jpe=function(e){try{return!!e()}catch(t){return!0}},Qpe=!!Object.getOwnPropertySymbols&&!Jpe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Zpe&&Zpe<41})),ehe=Qpe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,the=Ope("wks"),nhe=Dpe.Symbol,rhe=nhe&&nhe.for,ohe=ehe?nhe:nhe&&nhe.withoutSetter||Hpe,ihe=function(e){if(!Rpe(the,e)||!Qpe&&"string"!=typeof the[e]){var t="Symbol."+e;Qpe&&Rpe(nhe,e)?the[e]=nhe[e]:the[e]=ehe&&rhe?rhe(t):ohe(t)}return the[e]},ahe={};ahe[ihe("toStringTag")]="z";var uhe="[object z]"===String(ahe),she=!Jpe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),lhe=function(e){return"object"==typeof e?null!==e:Vpe(e)},che=Dpe.document,fhe=lhe(che)&&lhe(che.createElement),dhe=function(e){return fhe?che.createElement(e):{}},phe=!she&&!Jpe((function(){return 7!=Object.defineProperty(dhe("div"),"a",{get:function(){return 7}}).a})),hhe=Dpe.String,ghe=Dpe.TypeError,vhe=function(e){if(lhe(e))return e;throw ghe(hhe(e)+" is not an object")},yhe=Function.prototype.call,mhe=yhe.bind?yhe.bind(yhe):function(){return yhe.apply(yhe,arguments)},bhe=_pe({}.isPrototypeOf),whe=Dpe.Object,Ehe=ehe?function(e){return"symbol"==typeof e}:function(e){var t=Wpe("Symbol");return Vpe(t)&&bhe(t.prototype,whe(e))},xhe=Dpe.String,Dhe=function(e){try{return xhe(e)}catch(t){return"Object"}},Che=Dpe.TypeError,She=function(e){if(Vpe(e))return e;throw Che(Dhe(e)+" is not a function")},Ahe=function(e,t){var n=e[t];return null==n?void 0:She(n)},Ohe=Dpe.TypeError,khe=Dpe.TypeError,Bhe=ihe("toPrimitive"),Fhe=function(e){var t=function(e,t){if(!lhe(e)||Ehe(e))return e;var n,r=Ahe(e,Bhe);if(r){if(void 0===t&&(t="default"),n=mhe(r,e,t),!lhe(n)||Ehe(n))return n;throw khe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Vpe(n=e.toString)&&!lhe(r=mhe(n,e)))return r;if(Vpe(n=e.valueOf)&&!lhe(r=mhe(n,e)))return r;if("string"!==t&&Vpe(n=e.toString)&&!lhe(r=mhe(n,e)))return r;throw Ohe("Can't convert object to primitive value")}(e,t)}(e,"string");return Ehe(t)?t:t+""},The=Dpe.TypeError,_he=Object.defineProperty,Phe={f:she?_he:function(e,t,n){if(vhe(e),t=Fhe(t),vhe(n),phe)try{return _he(e,t,n)}catch(r){}if("get"in n||"set"in n)throw The("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},jhe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ihe=she?function(e,t,n){return Phe.f(e,t,jhe(1,n))}:function(e,t,n){return e[t]=n,e},Nhe=_pe(Function.toString);Vpe(Ape.inspectSource)||(Ape.inspectSource=function(e){return Nhe(e)});var Lhe,Rhe,Mhe,zhe=Ape.inspectSource,$he=Dpe.WeakMap,Hhe=Vpe($he)&&/native code/.test(zhe($he)),Vhe=Ope("keys"),Uhe=function(e){return Vhe[e]||(Vhe[e]=Hpe(e))},Whe={},Ghe=Dpe.TypeError,qhe=Dpe.WeakMap;if(Hhe||Ape.state){var Khe=Ape.state||(Ape.state=new qhe),Xhe=_pe(Khe.get),Yhe=_pe(Khe.has),Zhe=_pe(Khe.set);Lhe=function(e,t){if(Yhe(Khe,e))throw new Ghe("Object already initialized");return t.facade=e,Zhe(Khe,e,t),t},Rhe=function(e){return Xhe(Khe,e)||{}},Mhe=function(e){return Yhe(Khe,e)}}else{var Jhe=Uhe("state");Whe[Jhe]=!0,Lhe=function(e,t){if(Rpe(e,Jhe))throw new Ghe("Object already initialized");return t.facade=e,Ihe(e,Jhe,t),t},Rhe=function(e){return Rpe(e,Jhe)?e[Jhe]:{}},Mhe=function(e){return Rpe(e,Jhe)}}var Qhe={set:Lhe,get:Rhe,has:Mhe,enforce:function(e){return Mhe(e)?Rhe(e):Lhe(e,{})},getterFor:function(e){return function(t){var n;if(!lhe(t)||(n=Rhe(t)).type!==e)throw Ghe("Incompatible receiver, "+e+" required");return n}}},ege=Function.prototype,tge=she&&Object.getOwnPropertyDescriptor,nge=Rpe(ege,"name"),rge={EXISTS:nge,PROPER:nge&&"something"===function(){}.name,CONFIGURABLE:nge&&(!she||she&&tge(ege,"name").configurable)},oge=bpe((function(e){var t=rge.CONFIGURABLE,n=Qhe.get,r=Qhe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Vpe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Rpe(i,"name")||t&&i.name!==f)&&Ihe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Dpe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ihe(e,n,i)):l?e[n]=i:Spe(n,i)})(Function.prototype,"toString",(function(){return Vpe(this)&&n(this).source||zhe(this)}))})),ige=_pe({}.toString),age=_pe("".slice),uge=function(e){return age(ige(e),8,-1)},sge=ihe("toStringTag"),lge=Dpe.Object,cge="Arguments"==uge(function(){return arguments}()),fge=uhe?uge:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=lge(e),sge))?n:cge?uge(t):"Object"==(r=uge(t))&&Vpe(t.callee)?"Arguments":r},dge=uhe?{}.toString:function(){return"[object "+fge(this)+"]"};uhe||oge(Object.prototype,"toString",dge,{unsafe:!0});var pge,hge={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gge=dhe("span").classList,vge=gge&&gge.constructor&&gge.constructor.prototype,yge=vge===Object.prototype?void 0:vge,mge=_pe(_pe.bind),bge=Dpe.Object,wge=_pe("".split),Ege=Jpe((function(){return!bge("z").propertyIsEnumerable(0)}))?function(e){return"String"==uge(e)?wge(e,""):bge(e)}:bge,xge=Math.ceil,Dge=Math.floor,Cge=function(e){var t=+e;return t!=t||0===t?0:(t>0?Dge:xge)(t)},Sge=Math.min,Age=function(e){return e>0?Sge(Cge(e),9007199254740991):0},Oge=function(e){return Age(e.length)},kge=Array.isArray||function(e){return"Array"==uge(e)},Bge=function(){},Fge=[],Tge=Wpe("Reflect","construct"),_ge=/^\s*(?:class|function)\b/,Pge=_pe(_ge.exec),jge=!_ge.exec(Bge),Ige=function(e){if(!Vpe(e))return!1;try{return Tge(Bge,Fge,e),!0}catch(t){return!1}},Nge=!Tge||Jpe((function(){var e;return Ige(Ige.call)||!Ige(Object)||!Ige((function(){e=!0}))||e}))?function(e){if(!Vpe(e))return!1;switch(fge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jge||!!Pge(_ge,zhe(e))}:Ige,Lge=ihe("species"),Rge=Dpe.Array,Mge=function(e,t){return new(kge(n=e)&&(r=n.constructor,(Nge(r)&&(r===Rge||kge(r.prototype))||lhe(r)&&null===(r=r[Lge]))&&(r=void 0)),void 0===r?Rge:r)(0===t?0:t);var n,r},zge=_pe([].push),$ge=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Npe(s),g=Ege(h),v=function(e,t){return She(e),void 0===t?e:mge?mge(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Oge(g),m=0,b=f||Mge,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:zge(w,d)}else switch(e){case 4:return!1;case 7:zge(w,d)}return i?-1:r||o?o:w}},Hge=[$ge(0),$ge(1),$ge(2),$ge(3),$ge(4),$ge(5),$ge(6),$ge(7)][0],Vge=(pge=[].forEach)&&Jpe((function(){pge.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Hge(this,e,arguments.length>1?arguments[1]:void 0)},Uge=function(e){if(e&&e.forEach!==Vge)try{Ihe(e,"forEach",Vge)}catch(t){e.forEach=Vge}};for(var Wge in hge)hge[Wge]&&Uge(Dpe[Wge]&&Dpe[Wge].prototype);Uge(yge);var Gge={}.propertyIsEnumerable,qge=Object.getOwnPropertyDescriptor,Kge={f:qge&&!Gge.call({1:2},1)?function(e){var t=qge(this,e);return!!t&&t.enumerable}:Gge},Xge=function(e){return Ege(jpe(e))},Yge=Object.getOwnPropertyDescriptor,Zge={f:she?Yge:function(e,t){if(e=Xge(e),t=Fhe(t),phe)try{return Yge(e,t)}catch(n){}if(Rpe(e,t))return jhe(!mhe(Kge.f,e,t),e[t])}},Jge=Math.max,Qge=Math.min,eve=function(e,t){var n=Cge(e);return n<0?Jge(n+t,0):Qge(n,t)},tve=function(e){return function(t,n,r){var o,i=Xge(t),a=Oge(i),u=eve(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),nve=_pe([].push),rve=function(e,t){var n,r=Xge(e),o=0,i=[];for(n in r)!Rpe(Whe,n)&&Rpe(r,n)&&nve(i,n);for(;t.length>o;)Rpe(r,n=t[o++])&&(~tve(i,n)||nve(i,n));return i},ove=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ive=ove.concat("length","prototype"),ave={f:Object.getOwnPropertyNames||function(e){return rve(e,ive)}},uve={f:Object.getOwnPropertySymbols},sve=_pe([].concat),lve=Wpe("Reflect","ownKeys")||function(e){var t=ave.f(vhe(e)),n=uve.f;return n?sve(t,n(e)):t},cve=function(e,t){for(var n=lve(t),r=Phe.f,o=Zge.f,i=0;i<n.length;i++){var a=n[i];Rpe(e,a)||r(e,a,o(t,a))}},fve=/#|\.prototype\./,dve=function(e,t){var n=hve[pve(e)];return n==vve||n!=gve&&(Vpe(t)?Jpe(t):!!t)},pve=dve.normalize=function(e){return String(e).replace(fve,".").toLowerCase()},hve=dve.data={},gve=dve.NATIVE="N",vve=dve.POLYFILL="P",yve=dve,mve=Zge.f,bve=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Dpe:l?Dpe[u]||Spe(u,{}):(Dpe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mve(n,r))&&a.value:n[r],!yve(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cve(i,o)}(e.sham||o&&o.sham)&&Ihe(i,"sham",!0),oge(n,r,i,e)}},wve=Object.keys||function(e){return rve(e,ove)},Eve=Object.assign,xve=Object.defineProperty,Dve=_pe([].concat),Cve=!Eve||Jpe((function(){if(she&&1!==Eve({b:1},Eve(xve({},"a",{enumerable:!0,get:function(){xve(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Eve({},e)[n]||wve(Eve({},t)).join("")!=r}))?function(e,t){for(var n=Npe(e),r=arguments.length,o=1,i=uve.f,a=Kge.f;r>o;)for(var u,s=Ege(arguments[o++]),l=i?Dve(wve(s),i(s)):wve(s),c=l.length,f=0;c>f;)u=l[f++],she&&!mhe(a,s,u)||(n[u]=s[u]);return n}:Eve;bve({target:"Object",stat:!0,forced:Object.assign!==Cve},{assign:Cve});var Sve=bpe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,x=r.next,D=s;x!==t.tail&&!(f&&D>=f.reach);D+=x.value.length,x=x.next){var C=x.value;if(t.length>e.length)return;if(!(C instanceof i)){var S,A=1;if(m){if(!(S=a(E,D,e,y)))break;var O=S.index,k=S.index+S[0].length,B=D;for(B+=x.value.length;O>=B;)B+=(x=x.next).value.length;if(D=B-=x.value.length,x.value instanceof i)continue;for(var F=x;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,C=e.slice(D,B),S.index-=D}else if(!(S=a(E,0,C,y)))continue;O=S.index;var T=S[0],_=C.slice(0,O),P=C.slice(O+T.length),j=D+C.length;f&&j>f.reach&&(f.reach=j);var I=x.prev;if(_&&(I=l(t,I,_),D+=_.length),c(t,I,A),x=l(t,I,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,x,P),A>1){var N={cause:d+","+h,reach:j};u(e,t,n,x.prev,D,N),f&&N.reach>f.reach&&(f.reach=N.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
  88. /**
  89. * Prism: Lightweight, robust, elegant syntax highlighting
  90. *
  91. * @license MIT <https://opensource.org/licenses/MIT>
  92. * @author Lea Verou <https://lea.verou.me>
  93. * @namespace
  94. * @public
  95. */e.exports&&(e.exports=t),void 0!==mpe&&(mpe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=S+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),I=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:L(N,I)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e})),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Ave=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Ove(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Ove(t)}),0)}var kve,Bve=Dpe.String,Fve=function(e){if("Symbol"===fge(e))throw TypeError("Cannot convert a Symbol value to a string");return Bve(e)},Tve=function(){var e=vhe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_ve=Dpe.RegExp,Pve=Jpe((function(){var e=_ve("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),jve=Pve||Jpe((function(){return!_ve("a","y").sticky})),Ive={BROKEN_CARET:Pve||Jpe((function(){var e=_ve("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:jve,UNSUPPORTED_Y:Pve},Nve=she?Object.defineProperties:function(e,t){vhe(e);for(var n,r=Xge(t),o=wve(t),i=o.length,a=0;i>a;)Phe.f(e,n=o[a++],r[n]);return e},Lve=Wpe("document","documentElement"),Rve=Uhe("IE_PROTO"),Mve=function(){},zve=function(e){return"<script>"+e+"<\/script>"},$ve=function(e){e.write(zve("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hve=function(){try{kve=new ActiveXObject("htmlfile")}catch(r){}var e,t;Hve="undefined"!=typeof document?document.domain&&kve?$ve(kve):((t=dhe("iframe")).style.display="none",Lve.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zve("document.F=Object")),e.close(),e.F):$ve(kve);for(var n=ove.length;n--;)delete Hve.prototype[ove[n]];return Hve()};Whe[Rve]=!0;var Vve,Uve,Wve=Object.create||function(e,t){var n;return null!==e?(Mve.prototype=vhe(e),n=new Mve,Mve.prototype=null,n[Rve]=e):n=Hve(),void 0===t?n:Nve(n,t)},Gve=Dpe.RegExp,qve=Jpe((function(){var e=Gve(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Kve=Dpe.RegExp,Xve=Jpe((function(){var e=Kve("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Yve=Qhe.get,Zve=Ope("native-string-replace",String.prototype.replace),Jve=RegExp.prototype.exec,Qve=Jve,eye=_pe("".charAt),tye=_pe("".indexOf),nye=_pe("".replace),rye=_pe("".slice),oye=(Uve=/b*/g,mhe(Jve,Vve=/a/,"a"),mhe(Jve,Uve,"a"),0!==Vve.lastIndex||0!==Uve.lastIndex),iye=Ive.BROKEN_CARET,aye=void 0!==/()??/.exec("")[1];(oye||aye||iye||qve||Xve)&&(Qve=function(e){var t,n,r,o,i,a,u,s=this,l=Yve(s),c=Fve(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=mhe(Qve,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=iye&&s.sticky,h=mhe(Tve,s),g=s.source,v=0,y=c;if(p&&(h=nye(h,"y",""),-1===tye(h,"g")&&(h+="g"),y=rye(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==eye(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),aye&&(n=new RegExp("^"+g+"$(?!\\s)",h)),oye&&(r=s.lastIndex),o=mhe(Jve,p?n:s,y),p?o?(o.input=rye(o.input,v),o[0]=rye(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:oye&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),aye&&o&&o.length>1&&mhe(Zve,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Wve(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var uye=Qve;bve({target:"RegExp",proto:!0,forced:/./.exec!==uye},{exec:uye});var sye=Function.prototype,lye=sye.apply,cye=sye.bind,fye=sye.call,dye="object"==typeof Reflect&&Reflect.apply||(cye?fye.bind(lye):function(){return fye.apply(lye,arguments)}),pye=ihe("species"),hye=RegExp.prototype,gye=ihe("match"),vye=Dpe.TypeError,yye=ihe("species"),mye=_pe("".charAt),bye=_pe("".charCodeAt),wye=_pe("".slice),Eye=function(e){return function(t,n){var r,o,i=Fve(jpe(t)),a=Cge(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=bye(i,a))<55296||r>56319||a+1===u||(o=bye(i,a+1))<56320||o>57343?e?mye(i,a):r:e?wye(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),xye=function(e,t,n){return t+(n?Eye(e,t).length:1)},Dye=Dpe.Array,Cye=Math.max,Sye=function(e,t,n){for(var r,o,i,a,u=Oge(e),s=eve(t,u),l=eve(void 0===n?u:n,u),c=Dye(Cye(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Fhe(o))in r?Phe.f(r,a,jhe(0,i)):r[a]=i;return c.length=f,c},Aye=Dpe.TypeError,Oye=function(e,t){var n=e.exec;if(Vpe(n)){var r=mhe(n,e,t);return null!==r&&vhe(r),r}if("RegExp"===uge(e))return mhe(uye,e,t);throw Aye("RegExp#exec called on incompatible receiver")},kye=Ive.UNSUPPORTED_Y,Bye=Math.min,Fye=[].push,Tye=_pe(/./.exec),_ye=_pe(Fye),Pye=_pe("".slice);!function(e,t,n,r){var o,i,a,u=ihe(e),s=!Jpe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Jpe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[pye]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=_pe(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=Fve(jpe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!lhe(n=e)||!(void 0!==(r=n[gye])?r:"RegExp"==uge(n)))return mhe(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=mhe(uye,p,o))&&!((s=p.lastIndex)>d&&(_ye(c,Pye(o,d,u.index)),u.length>1&&u.index<o.length&&dye(Fye,c,Sye(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Tye(p,"")||_ye(c,""):_ye(c,Pye(o,d)),c.length>a?Sye(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:mhe(i,this,e,t)}:i,[function(e,t){var n=jpe(this),r=null==e?void 0:Ahe(e,o);return r?mhe(r,e,n,t):mhe(a,Fve(n),e,t)},function(e,t){var n=vhe(this),r=Fve(e),o=function(e,t,n,r,o){var i=_pe(e),a=t.exec;return a===uye||a===hye.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u,l,f,d=(u=RegExp,void 0===(f=vhe(n).constructor)||null==(l=vhe(f)[yye])?u:function(e){if(Nge(e))return e;throw vye(Dhe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(kye?"g":"y"),g=new d(kye?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===Oye(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=kye?0:m;var w,E=Oye(g,kye?Pye(r,m):r);if(null===E||(w=Bye(Age(g.lastIndex+(kye?m:0)),r.length))===y)m=xye(r,m,p);else{if(_ye(b,Pye(r,y,m)),b.length===v)return b;for(var x=1;x<=E.length-1;x++)if(_ye(b,E[x]),b.length===v)return b;m=y=w}}return _ye(b,Pye(r,y)),b}]);oge(String.prototype,e,f[0]),oge(hye,u,f[1])}r&&Ihe(hye[u],"sham",!0)}("split",0,!!Jpe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),kye),bve({global:!0},{globalThis:Dpe}),gg&&(fg.fn.attr=gg);var jye=rge.PROPER,Iye=RegExp.prototype,Nye=Iye.toString,Lye=_pe(Tve),Rye=Jpe((function(){return"/a/b"!=Nye.call({source:"a",flags:"b"})})),Mye=jye&&"toString"!=Nye.name;(Rye||Mye)&&oge(RegExp.prototype,"toString",(function(){var e=vhe(this),t=Fve(e.source),n=e.flags;return"/"+t+"/"+Fve(void 0===n&&bhe(Iye,e)&&!("flags"in Iye)?Lye(e):n)}),{unsafe:!0});var zye=function(){function e(){this.title=Kj("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!np.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Yp.setNodes(e,n,{match:function(e){return sB.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=sB.getSelectedNodeByType(e,"code");if(null==t)return null;var n=sB.getParentNode(e,t);return np.isElement(n)?"pre"!==n.type?null:t:null},e}(),$ye={renderStyle:function(e,t){var n=e,r=t,o="";return Ave.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=fg(e);if(!np.isElement(t))return t;if("code"!==sB.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new zye},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Hye=/"/g,Vye=_pe("".replace);bve({target:"String",proto:!0,forced:Jpe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Fve(jpe(this)),r="<a",(r+=' name="'+Vye(Fve(t),Hye,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Uye=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!_p.isText(e))return null;var t=sB.getParentNode(null,e);if(t&&"code"===sB.getNodeType(t)){var n=sB.getParentNode(null,t);if(n&&"pre"===sB.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=Sve.languages[t];return n?Sve.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+Ove(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(y){t={error:y}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Wye=function(){return Wye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wye.apply(this,arguments)},Gye=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Wye(Wye({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Wye(Wye({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Wye(Wye({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Wye(Wye({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n,r,o=e.key,i=e.factory,a=e.config,u=pO(pO({},a),t||{});if(null!=fB[o])throw new Error("Duplicated key '"+o+"' in menu items");fB[o]=i,n=o,null!=(r=u)&&(cB[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;X_[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,K_.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;CB[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,DB.push(t)},e.registerPreParseHtml=function(e){var t;t=e,dT.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;hT[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,pT.push(t)},e.registerModule=function(e){qye(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
  96. /*! *****************************************************************************
  97. Copyright (c) Microsoft Corporation.
  98. Permission to use, copy, modify, and/or distribute this software for any
  99. purpose with or without fee is hereby granted.
  100. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  101. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  102. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  103. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  104. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  105. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  106. PERFORMANCE OF THIS SOFTWARE.
  107. ***************************************************************************** */function qye(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Gye.registerMenu(e)})),n&&n.forEach((function(e){return Gye.registerRenderElem(e)})),r&&Gye.registerRenderStyle(r),o&&o.forEach((function(e){return Gye.registerElemToHtml(e)})),i&&Gye.registerStyleToHtml(i),a&&a.forEach((function(e){return Gye.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Gye.registerParseElemHtml(e)})),s&&Gye.registerParseStyleHtml(s),l&&Gye.registerPlugin(l)}ZK.forEach((function(e){return qye(e)})),qye(y1),qye(J5),qye(Eie),qye(ype),qye($ye);var Kye='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Xye={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Yye={hoverbarKeys:Wye(Wye({},Xye),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Gye.setEditorConfig(Wye(Wye({},Yye),{decorate:Uye}));var Zye={hoverbarKeys:Xye};Gye.setSimpleEditorConfig(Wye(Wye({},Zye),{decorate:Uye}));var Jye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Kj("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Kj("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Kj("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Kj("editor.image"),iconSvg:Kye,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Kj("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Gye.setToolbarConfig(Jye);var Qye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Kj("editor.image"),iconSvg:Kye,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Gye.setSimpleToolbarConfig(Qye);var eme=Object.defineProperty,tme=Object.defineProperties,nme=Object.getOwnPropertyDescriptors,rme=Object.getOwnPropertySymbols,ome=Object.prototype.hasOwnProperty,ime=Object.prototype.propertyIsEnumerable,ame=(e,t,n)=>t in e?eme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ume=(e,t)=>{for(var n in t||(t={}))ome.call(t,n)&&ame(e,n,t[n]);if(rme)for(var n of rme(t))ime.call(t,n)&&ame(e,n,t[n]);return e},sme=(e,t)=>tme(e,nme(t));function lme(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var cme=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const fme=e({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,i){const u=t(null),s=n(null),l=t(""),c=()=>{if(!u.value)return;const t=a(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Gye.simpleEditorConfig:Gye.editorConfig,c=Wye(Wye({},l.hoverbarKeys||{}),u.hoverbarKeys||{});UP({selector:n,config:Wye(Wye(Wye({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Gye.plugins})}({selector:u.value,mode:e.mode,content:t||[],html:e.defaultHtml||e.modelValue||"",config:sme(ume({},e.defaultConfig),{onCreated(t){if(s.value=t,i.emit("onCreated",t),e.defaultConfig.onCreated){const e=lme("onCreated");throw new Error(e)}},onChange(t){const n=t.getHtml();if(l.value=n,i.emit("update:modelValue",n),i.emit("onChange",t),e.defaultConfig.onChange){const e=lme("onChange");throw new Error(e)}},onDestroyed(t){if(i.emit("onDestroyed",t),e.defaultConfig.onDestroyed){const e=lme("onDestroyed");throw new Error(e)}},onMaxLength(t){if(i.emit("onMaxLength",t),e.defaultConfig.onMaxLength){const e=lme("onMaxLength");throw new Error(e)}},onFocus(t){if(i.emit("onFocus",t),e.defaultConfig.onFocus){const e=lme("onFocus");throw new Error(e)}},onBlur(t){if(i.emit("onBlur",t),e.defaultConfig.onBlur){const e=lme("onBlur");throw new Error(e)}},customAlert(t,n){if(i.emit("customAlert",t,n),e.defaultConfig.customAlert){const e=lme("customAlert");throw new Error(e)}},customPaste:(t,n)=>{if(e.defaultConfig.customPaste){const e=lme("customPaste");throw new Error(e)}let r;return i.emit("customPaste",t,n,(e=>{r=e})),r}})})};return r((()=>{c()})),o((()=>e.modelValue),(e=>{e!==l.value&&function(e){const t=s.value;null!=t&&t.setHtml(e)}(e)})),{box:u}}}),dme={ref:"box",style:{height:"100%"}};var pme=cme(fme,[["render",function(e,t,n,r,o,i){return u(),s("div",dme,null,512)}]]);const hme=e({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const n=t(null),r=t=>{if(n.value){if(null==t)throw new Error("Not found instance of Editor when create <Toolbar/> component");sB.getToolbar(t)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Gye.simpleToolbarConfig:Gye.toolbarConfig;(function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(GT(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=pO({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new XP(n,i);vk.set(a,e),yk.set(e,a)})(n,{selector:t,config:Wye(Wye({},u),o)})}({editor:t,selector:n.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i((()=>{const{editor:t}=e;null!=t&&r(t)})),{selector:n}}}),gme={ref:"selector"};var vme=cme(hme,[["render",function(e,t,n,r,o,i){return u(),s("div",gme,null,512)}]]);const yme={__name:"wangEditor",props:["modelValue"],setup(e,{emit:r}){const i=e,a=l(),v=n(),y="default",m=t(i.modelValue),b={excludeKeys:["headerSelect","group-video","emotion","fontFamily","insertImage","undo","redo","todo","fullScreen"]},w={MENU_CONF:{uploadImage:{fieldName:"file",maxNumberOfFiles:10,allowedFileTypes:["image/*"],server:c+a.state.site.upload,customInsert(e,t){t(e.data.url)}}},placeholder:"请输入内容..."},E=e=>{v.value=e};return o(m,(e=>{r("update:modelValue",e)})),f((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(cf){}})),d((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(cf){}})),(e,t)=>(u(),s(g,null,[p(h(vme),{editor:h(v),defaultConfig:b,mode:y},null,8,["editor"]),p(h(pme),{class:"editorDiv",modelValue:m.value,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value=e),defaultConfig:w,mode:y,onOnCreated:E},null,8,["modelValue"])],64))}};const mme=e=>(j("data-v-7f13b1b2"),e=e(),I(),e),bme={class:"flex w-full noteApp"},wme={class:"h-full noteApp-left mt-4"},Eme={key:0},xme=["onClick"],Dme={class:"overflow-ellipsis whitespace-nowrap overflow-hidden font-bold noteApp-title"},Cme={class:"flex items-center justify-between mt-2"},Sme={class:"noteApp-time"},Ame={key:1,class:"flex items-center h-full justify-center"},Ome=["onClick"],kme=[mme((()=>E("svg",{width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M24.0605 10L24.0239 38",stroke:"#fff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),E("path",{d:"M10 24L38 24",stroke:"#fff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)))],Bme={class:"px-2 w-full noteApp-context"},Fme={key:0,class:"mt-4"},Tme={class:"mb-4"},_me={key:0},Pme={class:"noteApp-edit-footer flex",style:{height:"30px","margin-top":"10px"}},jme={class:"ml-auto"},Ime={key:1,class:"flex justify-center flex-col items-center h-full"},Nme=[mme((()=>E("img",{style:{transform:"translateX(-90px)"},src:"/dist/assets/wiki.1697113787653.png",alt:""},null,-1))),mme((()=>E("b",{style:{transform:"translateX(-90px)"},class:"mt-6 text-2xl"},"请选择文档或创建文档",-1)))],Lme={__name:"index",setup(e){const n=t(!1),o=t([]),i=t(""),a=t(""),l={text:"",id:"",user_id:"",title:"",create_time:"",update_time:""},c=t(l);r((async()=>{window.addEventListener("keydown",(async function(e){const t=e.ctrlKey||e.metaKey,n="s"===e.key;t&&n&&(e.preventDefault(),await f())}));const e=await y({url:"/note/get?sort=desc"});1===e.code&&(o.value=e.data,o.value.length>0&&await I(o.value[0]))}));const f=async()=>{if(!c.value.id)return;let e=Object.assign({},c.value);if(e.text=a.value,0===e.title.length){let t=document.createElement("div");t.innerHTML=a.value,e.title=t.innerText.slice(0,50)}if(e.title===c.value.title&&e.text===c.value.text)return;const t=await y({url:"/note/add",method:"post",data:e}),n=o.value.findIndex((t=>t.id===e.id));o.value[n]=null==t?void 0:t.data,c.value=null==t?void 0:t.data,m.success("已保存最新内容")};let d=!1;const v=async()=>{if(d)return;d=!0;let e={title:"",text:""};try{const t=await y({url:"/note/add",method:"post",data:e});if(0===t.code)return void m.warning(t.msg);o.value.unshift(t.data),await I(o.value[0]),c.value=t.data}catch(cf){}setTimeout((()=>{d=!1}),2e3)};let j=!1;const I=async e=>{e.id!==c.value.id&&(j||(j=!0,i.value=e.id,n.value=!1,await b((async()=>{try{(e=Object.assign({},e)).text=await y({url:"/note/getText?id="+e.id}),c.value=e,a.value=((e,t=[])=>{const n=["p","a","img","font","span","b","blockquote","code","h1","h2","h3","h4","h5","h6","hr","br","s","i","u","strike","div","strong","pre","code","pre","table","th","tr","td","colgroup","col"];t.length>0&&t.forEach((e=>{n.push(e)}));const r=["color","size","style","href","src","class"];let o={};for(let i=0;i<n.length;i++)o[n[i]]=r;return Re(e,{whiteList:o})})(e.text),n.value=!0}catch(cf){console.log("错误",cf.message)}b((()=>{setTimeout((()=>{j=!1}),300)}))}))))};return(e,t)=>{const r=w("el-icon"),d=w("el-button");return u(),s("div",bme,[E("div",wme,[0!==o.value.length?(u(),s("div",Eme,[(u(!0),s(g,null,x(o.value,(e=>(u(),s("div",{key:e.id,class:k(["w-full noteApp-item",{"noteApp-listSelect":i.value===e.id}]),onClick:t=>I(e)},[E("div",Dme,B(e.title||"新建笔记"),1),E("div",Cme,[E("div",Sme,B(null==e?void 0:e.update_time),1),i.value===e.id?(u(),F(r,{key:0,class:"hover:text-blue-400",title:"删除笔记",onClick:D((t=>(async e=>{try{await P.confirm("删除将无法恢复,是否删除?","温馨提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}),await y({url:"/note/del?id="+e});const t=o.value.findIndex((t=>t.id===e));o.value.splice(t,1),e===c.value.id&&(c.value=Object.assign({},l))}catch(cf){}})(e.id)),["stop"]),size:"15px",color:"#999999"},{default:A((()=>[p(h(T))])),_:2},1032,["onClick"])):O("",!0)])],10,xme)))),128))])):(u(),s("div",Ame)),E("div",{class:"addNote",onClick:D(v,["stop"]),title:"新建笔记"},kme,8,Ome)]),E("div",Bme,[c.value.id?(u(),s("div",Fme,[E("div",Tme,[C(E("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>c.value.title=e),id:"noteAppTitle",maxlength:"50",placeholder:"请设置标题吧"},null,512),[[S,c.value.title]])]),n.value&&c.value.id?(u(),s("div",_me,[p(yme,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e)},null,8,["modelValue"]),E("div",Pme,[E("div",jme,[p(d,{size:"default",onClick:f,type:"primary",title:"(Ctrl/Command) + S"},{default:A((()=>[_("保存")])),_:1})])])])):O("",!0)])):(u(),s("div",Ime,Nme))])])}}};var Rme=v(Lme,[["__scopeId","data-v-7f13b1b2"]]);export{Rme as default};