readytech-ui-library-v2 1.0.159 → 1.0.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,21 +14,21 @@ hour-range: ${JSON.stringify(this.hourRange)}`);return}if(!e){this.setManualHour
14
14
  (${t})`:""}`;window.console.debug&&typeof window.console.debug=="function"?window.console.debug(n):window.console.log(n)}},mounted(){window.clearTimeout(this.debounceTimer),window.clearTimeout(this.selectionTimer),window.clearTimeout(this.kbInputTimer),this.renderFormat()},beforeUnmount(){window.clearTimeout(this.debounceTimer),window.clearTimeout(this.selectionTimer),window.clearTimeout(this.kbInputTimer)}};const Roe={key:0,class:"controls",tabindex:"-1"},Loe=i.createVNode("span",{class:"char"},"×",-1),Moe=i.createVNode("span",{class:"char"},"▾",-1),joe={key:1,class:"custom-icon"};function zoe(e,t,n,r,o,a){return i.openBlock(),i.createBlock("span",{class:"vue__time-picker",style:a.inputWidthStyle},[i.createVNode("input",{type:"text",class:["vue__time-picker-input",[n.inputClass,{"is-empty":a.inputIsEmpty,invalid:a.hasInvalidInput,"all-selected":a.allValueSelected,disabled:n.disabled,"has-custom-icon":e.$slots&&e.$slots.icon}]],ref:"input",style:a.inputWidthStyle,id:n.id,name:n.name,value:a.inputIsEmpty?null:a.customDisplayTime,placeholder:n.placeholder?n.placeholder:a.formatString,tabindex:n.disabled?-1:n.tabindex,disabled:a.booleanAttr(n.disabled),readonly:a.booleanAttr(!n.manualInput),autocomplete:n.autocomplete,onFocus:t[1]||(t[1]=(...l)=>a.onFocus(...l)),onChange:t[2]||(t[2]=(...l)=>a.onChange(...l)),onBlur:t[3]||(t[3]=l=>{a.debounceBlur(),a.blurEvent()}),onMousedown:t[4]||(t[4]=(...l)=>a.onMouseDown(...l)),onKeydown:[t[5]||(t[5]=(...l)=>a.keyDownHandler(...l)),t[9]||(t[9]=i.withKeys(i.withModifiers((...l)=>a.escBlur(...l),["exact"]),["esc"]))],onCompositionstart:t[6]||(t[6]=(...l)=>a.onCompostionStart(...l)),onCompositionend:t[7]||(t[7]=(...l)=>a.onCompostionEnd(...l)),onPaste:t[8]||(t[8]=(...l)=>a.pasteHandler(...l))},null,46,["id","name","value","placeholder","tabindex","disabled","readonly","autocomplete"]),a.showClearBtn||a.showDropdownBtn?(i.openBlock(),i.createBlock("div",Roe,[!o.isActive&&a.showClearBtn?(i.openBlock(),i.createBlock("span",{key:0,class:["clear-btn",{"has-custom-btn":e.$slots&&e.$slots.clearButton}],tabindex:"-1",onClick:t[10]||(t[10]=(...l)=>a.clearTime(...l))},[i.renderSlot(e.$slots,"clearButton",{},()=>[Loe])],2)):i.createCommentVNode("v-if",!0),a.showDropdownBtn?(i.openBlock(),i.createBlock("span",{key:1,class:["dropdown-btn",{"has-custom-btn":e.$slots&&e.$slots.dropdownButton}],tabindex:"-1",onClick:t[11]||(t[11]=l=>a.setDropdownState(n.fixedDropdownButton?!o.showDropdown:!0,!0)),onMousedown:t[12]||(t[12]=(...l)=>a.keepFocusing(...l))},[i.renderSlot(e.$slots,"dropdownButton",{},()=>[Moe])],34)):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0),e.$slots&&e.$slots.icon?(i.openBlock(),i.createBlock("div",joe,[i.renderSlot(e.$slots,"icon")])):i.createCommentVNode("v-if",!0),o.showDropdown?(i.openBlock(),i.createBlock("div",{key:2,class:"time-picker-overlay",onClick:t[13]||(t[13]=(...l)=>a.toggleActive(...l)),tabindex:"-1"})):i.createCommentVNode("v-if",!0),i.withDirectives(i.createVNode("div",{class:["dropdown",[a.dropdownDirClass]],tabindex:"-1",style:a.inputWidthStyle,onMouseup:t[42]||(t[42]=(...l)=>a.keepFocusing(...l)),onClick:t[43]||(t[43]=i.withModifiers(()=>{},["stop"]))},[i.createVNode("div",{class:"select-list",style:a.inputWidthStyle,tabindex:"-1"},[i.createCommentVNode(" Common Keyboard Support: less event listeners "),n.advancedKeyboard?i.createCommentVNode("v-if",!0):(i.openBlock(!0),i.createBlock(i.Fragment,{key:0},i.renderList(a.columnsSequence,l=>(i.openBlock(),i.createBlock(i.Fragment,{key:l},[l==="hour"?(i.openBlock(),i.createBlock("ul",{key:0,class:"hours",onScroll:t[14]||(t[14]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.hourLabelText)},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.hours,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledHours||a.opts.hideDisabledHours&&!a.isDisabled("hour",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.hour===s},disabled:a.booleanAttr(a.isDisabled("hour",s)),"data-key":s,textContent:i.toDisplayString(s),onClick:c=>a.select("hour",s)},null,10,["disabled","data-key","textContent","onClick"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="minute"?(i.openBlock(),i.createBlock("ul",{key:1,class:"minutes",onScroll:t[15]||(t[15]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.minuteLabelText)},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.minutes,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledMinutes||a.opts.hideDisabledMinutes&&!a.isDisabled("minute",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.minute===s},disabled:a.booleanAttr(a.isDisabled("minute",s)),"data-key":s,textContent:i.toDisplayString(s),onClick:c=>a.select("minute",s)},null,10,["disabled","data-key","textContent","onClick"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="second"?(i.openBlock(),i.createBlock("ul",{key:2,class:"seconds",onScroll:t[16]||(t[16]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.secondLabelText)},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.seconds,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledSeconds||a.opts.hideDisabledSeconds&&!a.isDisabled("second",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.second===s},disabled:a.booleanAttr(a.isDisabled("second",s)),"data-key":s,textContent:i.toDisplayString(s),onClick:c=>a.select("second",s)},null,10,["disabled","data-key","textContent","onClick"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="apm"?(i.openBlock(),i.createBlock("ul",{key:3,class:"apms",onScroll:t[17]||(t[17]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.apmLabelText)},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.apms,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledHours||a.opts.hideDisabledHours&&!a.isDisabled("apm",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.apm===s},disabled:a.booleanAttr(a.isDisabled("apm",s)),"data-key":s,textContent:i.toDisplayString(a.apmDisplayText(s)),onClick:c=>a.select("apm",s)},null,10,["disabled","data-key","textContent","onClick"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0)],64))),128)),i.createCommentVNode(" / Common Keyboard Support "),i.createCommentVNode(`
15
15
  Advanced Keyboard Support
16
16
  Addeds hundreds of additional event lisenters
17
- `),n.advancedKeyboard?(i.openBlock(!0),i.createBlock(i.Fragment,{key:1},i.renderList(a.columnsSequence,l=>(i.openBlock(),i.createBlock(i.Fragment,{key:l},[l==="hour"?(i.openBlock(),i.createBlock("ul",{key:0,class:"hours",tabindex:"-1",onScroll:t[23]||(t[23]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.hourLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.hours,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledHours||a.opts.hideDisabledHours&&!a.isDisabled("hour",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.hour===s},tabindex:a.isDisabled("hour",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("hour",s)),textContent:i.toDisplayString(s),onClick:c=>a.select("hour",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("hour",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("hour",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("hour",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("hour",s),["prevent"]),["down"]),t[18]||(t[18]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("hour"),["prevent"]),["left"])),t[19]||(t[19]=i.withKeys(i.withModifiers(c=>a.toRightColumn("hour"),["prevent"]),["right"])),t[20]||(t[20]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[21]||(t[21]=(...c)=>a.debounceBlur(...c)),onFocus:t[22]||(t[22]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="minute"?(i.openBlock(),i.createBlock("ul",{key:1,class:"minutes",tabindex:"-1",onScroll:t[29]||(t[29]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.minuteLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.minutes,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledMinutes||a.opts.hideDisabledMinutes&&!a.isDisabled("minute",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.minute===s},tabindex:a.isDisabled("minute",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("minute",s)),textContent:i.toDisplayString(s),onClick:c=>a.select("minute",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("minute",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("minute",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("minute",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("minute",s),["prevent"]),["down"]),t[24]||(t[24]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("minute"),["prevent"]),["left"])),t[25]||(t[25]=i.withKeys(i.withModifiers(c=>a.toRightColumn("minute"),["prevent"]),["right"])),t[26]||(t[26]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[27]||(t[27]=(...c)=>a.debounceBlur(...c)),onFocus:t[28]||(t[28]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="second"?(i.openBlock(),i.createBlock("ul",{key:2,class:"seconds",tabindex:"-1",onScroll:t[35]||(t[35]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.secondLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.seconds,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledSeconds||a.opts.hideDisabledSeconds&&!a.isDisabled("second",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.second===s},tabindex:a.isDisabled("second",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("second",s)),textContent:i.toDisplayString(s),onClick:c=>a.select("second",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("second",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("second",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("second",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("second",s),["prevent"]),["down"]),t[30]||(t[30]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("second"),["prevent"]),["left"])),t[31]||(t[31]=i.withKeys(i.withModifiers(c=>a.toRightColumn("second"),["prevent"]),["right"])),t[32]||(t[32]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[33]||(t[33]=(...c)=>a.debounceBlur(...c)),onFocus:t[34]||(t[34]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="apm"?(i.openBlock(),i.createBlock("ul",{key:3,class:"apms",tabindex:"-1",onScroll:t[41]||(t[41]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.apmLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.apms,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledHours||a.opts.hideDisabledHours&&!a.isDisabled("apm",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.apm===s},tabindex:a.isDisabled("apm",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("apm",s)),textContent:i.toDisplayString(a.apmDisplayText(s)),onClick:c=>a.select("apm",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("apm",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("apm",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("apm",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("apm",s),["prevent"]),["down"]),t[36]||(t[36]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("apm"),["prevent"]),["left"])),t[37]||(t[37]=i.withKeys(i.withModifiers(c=>a.toRightColumn("apm"),["prevent"]),["right"])),t[38]||(t[38]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[39]||(t[39]=(...c)=>a.debounceBlur(...c)),onFocus:t[40]||(t[40]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0)],64))),128)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" / Advanced Keyboard Support ")],4)],38),[[i.vShow,o.showDropdown]])],4)}Cv.render=zoe,Cv.__file="src/VueTimepicker.vue";function hs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(t,"0")}const Hoe=X({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),z8=ie()({name:"VTimePickerClock",props:Hoe(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:n}=t;const r=i.ref(null),o=i.ref(null),a=i.ref(void 0),l=i.ref(!1),s=i.ref(null),u=i.ref(null),{textColorClasses:c,textColorStyles:d}=Wn(i.toRef(e,"color")),{backgroundColorClasses:f,backgroundColorStyles:g}=kt(i.toRef(e,"color")),h=i.computed(()=>e.max-e.min+1),p=i.computed(()=>e.double?h.value/2:h.value),y=i.computed(()=>360/p.value),v=i.computed(()=>y.value*Math.PI/180),b=i.computed(()=>e.modelValue==null?e.min:e.modelValue),m=i.computed(()=>.62),w=i.computed(()=>{const j=[];for(let z=e.min;z<=e.max;z=z+e.step)j.push(z);return j});i.watch(()=>e.modelValue,j=>{a.value=j});function S(j){a.value!==j&&(a.value=j),n("input",j)}function C(j){return!e.allowedValues||e.allowedValues(j)}function x(j){if(!e.scrollable||e.disabled)return;j.preventDefault();const z=Math.sign(-j.deltaY||1);let L=b.value;do L=L+z,L=(L-e.min+h.value)%h.value+e.min;while(!C(L)&&L!==b.value);L!==e.displayedValue&&S(L)}function k(j){return e.double&&j-e.min>=p.value}function E(j){return k(j)?m.value:1}function A(j){const z=e.rotate*Math.PI/180;return{x:Math.sin((j-e.min)*v.value+z)*E(j),y:-Math.cos((j-e.min)*v.value+z)*E(j)}}function N(j,z){const L=(Math.round(j/y.value)+(z?p.value:0))%h.value+e.min;return j<360-y.value/2?L:z?e.max-p.value+1:e.min}function V(j){const{x:z,y:L}=A(j);return{left:`${50+z*50}%`,top:`${50+L*50}%`}}function D(j,z){const L=z.x-j.x,_=z.y-j.y;return Math.sqrt(L*L+_*_)}function P(j,z){const L=2*Math.atan2(z.y-j.y-D(j,z),z.x-j.x);return Math.abs(L*180/Math.PI)}function O(j){s.value===null&&(s.value=j),u.value=j,S(j)}function F(j){var G,se;if(j.preventDefault(),!l.value&&j.type!=="click"||!r.value)return;const{width:z,top:L,left:_}=(G=r.value)==null?void 0:G.getBoundingClientRect(),{width:T}=((se=o.value)==null?void 0:se.getBoundingClientRect())??{width:0},{clientX:I,clientY:U}="touches"in j?j.touches[0]:j,$={x:z/2,y:-z/2},W={x:I-_,y:L-U},Z=Math.round(P($,W)-e.rotate+360)%360,ne=e.double&&D($,W)<(T+T*m.value)/4,me=Math.ceil(15/y.value);let de;for(let ee=0;ee<me;ee++)if(de=N(Z+ee*y.value,ne),C(de)||(de=N(Z-ee*y.value,ne),C(de)))return O(de)}function H(j){e.disabled||(j.preventDefault(),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",J),window.addEventListener("touchend",J),s.value=null,u.value=null,l.value=!0,F(j))}function J(j){j.stopPropagation(),window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),l.value=!1,u.value!==null&&C(u.value)&&n("change",u.value)}le(()=>i.createVNode("div",{class:[{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":e.modelValue==null,"v-time-picker-clock--readonly":e.readonly}],onMousedown:H,onTouchstart:H,onWheel:x,ref:r},[i.createVNode("div",{class:"v-time-picker-clock__inner",ref:o},[i.createVNode("div",{class:[{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":k(e.modelValue)},c.value],style:[{transform:`rotate(${e.rotate+y.value*(b.value-e.min)}deg) scaleY(${E(b.value)})`},d.value]},null),w.value.map(j=>{const z=j===b.value;return i.createVNode("div",{class:[{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":z,"v-time-picker-clock__item--disabled":e.disabled||!C(j)},z&&f.value],style:[V(j),z&&g.value]},[i.createVNode("span",null,[e.format(j)])])})])]))}}),Uoe=X({ampm:Boolean,ampmInTitle:Boolean,ampmReadonly:Boolean,color:String,disabled:Boolean,hour:Number,minute:Number,second:Number,period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String},"VTimePickerControls"),H8=ie()({name:"VTimePickerControls",props:Uoe(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:o}=Qt();return le(()=>{let a=e.hour;return e.ampm&&(a=a?(a-1)%12+1:12),i.createVNode("div",{class:"v-time-picker-controls"},[i.createVNode("div",{class:{"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-seconds":e.useSeconds}},[i.createVNode(je,{active:e.viewMode==="hour",color:e.viewMode==="hour"?e.color:void 0,disabled:e.disabled,variant:"tonal",class:{"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time--with-ampm__btn":e.ampm,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds},text:e.hour==null?"--":hs(`${a}`),onClick:()=>n("update:viewMode","hour")},null),i.createVNode("span",{class:["v-time-picker-controls__time__separator",{"v-time-picker-controls--with-seconds__time__separator":e.useSeconds}]},[i.createTextVNode(":")]),i.createVNode(je,{active:e.viewMode==="minute",color:e.viewMode==="minute"?e.color:void 0,class:{"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time__btn__active":e.viewMode==="minute","v-time-picker-controls__time--with-ampm__btn":e.ampm,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds},disabled:e.disabled,variant:"tonal",text:e.minute==null?"--":hs(e.minute),onClick:()=>n("update:viewMode","minute")},null),e.useSeconds&&i.createVNode("span",{class:["v-time-picker-controls__time__separator",{"v-time-picker-controls--with-seconds__time__separator":e.useSeconds}],key:"secondsDivider"},[i.createTextVNode(":")]),e.useSeconds&&i.createVNode(je,{key:"secondsVal",active:e.viewMode==="second",color:e.viewMode==="second"?e.color:void 0,variant:"tonal",onClick:()=>n("update:viewMode","second"),class:{"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time__btn__active":e.viewMode==="second","v-time-picker-controls__time--with-seconds__btn":e.useSeconds},disabled:e.disabled,text:e.second==null?"--":hs(e.second)},null),e.ampm&&e.ampmInTitle&&i.createVNode("div",{class:["v-time-picker-controls__ampm",{"v-time-picker-controls__ampm--readonly":e.ampmReadonly}]},[i.createVNode(je,{active:e.period==="am",color:e.period==="am"?e.color:void 0,class:{"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="am"},disabled:e.disabled,text:o("$vuetify.timePicker.am"),variant:e.disabled&&e.period==="am"?"elevated":"tonal",onClick:()=>e.period!=="am"?n("update:period","am"):null},null),i.createVNode(je,{active:e.period==="pm",color:e.period==="pm"?e.color:void 0,class:{"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="pm"},disabled:e.disabled,text:o("$vuetify.timePicker.pm"),variant:e.disabled&&e.period==="pm"?"elevated":"tonal",onClick:()=>e.period!=="pm"?n("update:period","pm"):null},null)])])])}),{}}}),Woe=Do(24),U8=Do(12),Goe=U8.map(e=>e+12);Do(60);const Koe=X({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],ampmInTitle:Boolean,disabled:Boolean,format:{type:String,default:"ampm"},max:String,min:String,viewMode:{type:String,default:"hour"},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,...Ft(av({title:"$vuetify.timePicker.title"}),["landscape"])},"VTimePicker"),W8=ie()({name:"VTimePicker",props:Koe(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:o}=Qt(),a=i.ref(null),l=i.ref(null),s=i.ref(null),u=i.ref(null),c=i.ref(null),d=i.ref(null),f=i.ref("am"),g=Ve(e,"viewMode","hour"),h=i.ref(null),p=i.ref(null),y=i.computed(()=>{let D;if(e.allowedHours instanceof Array?D=F=>e.allowedHours.includes(F):D=e.allowedHours,!e.min&&!e.max)return D;const P=e.min?Number(e.min.split(":")[0]):0,O=e.max?Number(e.max.split(":")[0]):23;return F=>F>=Number(P)&&F<=Number(O)&&(!D||D(F))}),v=i.computed(()=>{let D;const P=!y.value||a.value===null||y.value(a.value);if(e.allowedMinutes instanceof Array?D=L=>e.allowedMinutes.includes(L):D=e.allowedMinutes,!e.min&&!e.max)return P?D:()=>!1;const[O,F]=e.min?e.min.split(":").map(Number):[0,0],[H,J]=e.max?e.max.split(":").map(Number):[23,59],j=O*60+Number(F),z=H*60+Number(J);return L=>{const _=60*a.value+L;return _>=j&&_<=z&&P&&(!D||D(L))}}),b=i.computed(()=>{let D;const O=(!y.value||a.value===null||y.value(a.value))&&(!v.value||l.value===null||v.value(l.value));if(e.allowedSeconds instanceof Array?D=I=>e.allowedSeconds.includes(I):D=e.allowedSeconds,!e.min&&!e.max)return O?D:()=>!1;const[F,H,J]=e.min?e.min.split(":").map(Number):[0,0,0],[j,z,L]=e.max?e.max.split(":").map(Number):[23,59,59],_=F*3600+H*60+Number(J||0),T=j*3600+z*60+Number(L||0);return I=>{const U=3600*a.value+60*l.value+I;return U>=_&&U<=T&&O&&(!D||D(I))}}),m=i.computed(()=>e.format==="ampm");i.watch(()=>e.modelValue,D=>k(D)),i.onMounted(()=>{k(e.modelValue)});function w(){return a.value!=null&&l.value!=null&&(!e.useSeconds||s.value!=null)?`${hs(a.value)}:${hs(l.value)}`+(e.useSeconds?`:${hs(s.value)}`:""):null}function S(){const D=w();D!==null&&n("update:modelValue",D)}function C(D){return D?(D-1)%12+1:12}function x(D,P){return D%12+(P==="pm"?12:0)}function k(D){if(D==null||D==="")a.value=null,l.value=null,s.value=null;else if(D instanceof Date)a.value=D.getHours(),l.value=D.getMinutes(),s.value=D.getSeconds();else{const[P,,O,,F,H]=D.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);a.value=H?x(parseInt(P,10),H):parseInt(P,10),l.value=parseInt(O,10),s.value=parseInt(F||0,10)}f.value=a.value==null||a.value<12?"am":"pm"}function E(D,P){const O=y.value;if(!O)return P;const F=m.value?P<12?U8:Goe:Woe;return((F.find(J=>O((J+P)%F.length+F[0]))||0)+P)%F.length+F[0]}function A(D){if(f.value=D,a.value!=null){const P=a.value+(f.value==="am"?-12:12);a.value=E("hour",P)}return n("update:period",D),S(),!0}function N(D){g.value==="hour"?a.value=m.value?x(D,f.value):D:g.value==="minute"?l.value=D:s.value=D}function V(D){switch(g.value||"hour"){case"hour":n("update:hour",D);break;case"minute":n("update:minute",D);break;case"second":n("update:second",D);break}const P=a.value!==null&&l.value!==null&&(e.useSeconds?s.value!==null:!0);g.value==="hour"?g.value="minute":e.useSeconds&&g.value==="minute"&&(g.value="second"),!(a.value===u.value&&l.value===c.value&&(!e.useSeconds||s.value===d.value)||w()===null)&&(u.value=a.value,c.value=l.value,e.useSeconds&&(d.value=s.value),P&&S())}le(()=>{const D=oc.filterProps(e),P=H8.filterProps(e),O=z8.filterProps(Ft(e,["format","modelValue","min","max"]));return i.createVNode(oc,i.mergeProps(D,{color:void 0,class:["v-time-picker",e.class],style:e.style}),{title:()=>{var F;return((F=r.title)==null?void 0:F.call(r))??i.createVNode("div",{class:"v-time-picker__title"},[o(e.title)])},header:()=>i.createVNode(H8,i.mergeProps(P,{ampm:m.value||e.ampmInTitle,ampmReadonly:m.value&&!e.ampmInTitle,hour:a.value,minute:l.value,period:f.value,second:s.value,viewMode:g.value,"onUpdate:period":F=>A(F),"onUpdate:viewMode":F=>g.value=F,ref:h}),null),default:()=>i.createVNode(z8,i.mergeProps(O,{allowedValues:g.value==="hour"?y.value:g.value==="minute"?v.value:b.value,double:g.value==="hour"&&!m.value,format:g.value==="hour"?m.value?C:F=>F:F=>hs(F,2),max:g.value==="hour"?m.value&&f.value==="am"?11:23:59,min:g.value==="hour"&&m.value&&f.value==="pm"?12:0,size:20,step:g.value==="hour"?1:5,modelValue:g.value==="hour"?a.value:g.value==="minute"?l.value:s.value,onChange:V,onInput:N,ref:p}),null),actions:r.actions})})}}),qoe={name:"RtTimePicker",components:{Vue3Timepicker:Cv,VTimePicker:W8},props:{modelValue:{type:String,default:""},minTime:{type:String,default:"00:00"},maxTime:{type:String,default:"23:59"}},data(){return{time:"06:00",dialog:!1,time:this.modelValue||null}},computed:{formattedTime(){return this.time?this.time:null}},methods:{onTimeUpdate(e){this.time=e},onSave(){this.$emit("update:modelValue",this.time),this.dialog=!1}}};function Yoe(e,t,n,r,o,a){const l=i.resolveComponent("vue3-timepicker");return i.openBlock(),i.createBlock(l,{modelValue:o.time,"onUpdate:modelValue":t[0]||(t[0]=s=>o.time=s),min:n.minTime,max:n.maxTime},null,8,["modelValue","min","max"])}const Xoe=ke(qoe,[["render",Yoe],["__scopeId","data-v-cfedfaf7"]]),Joe={name:"RtTimePicker",components:{Vue3Timepicker:Cv,VTimePicker:W8},props:{modelValue:{type:String,default:""},minTime:{type:String,default:"00:00"},maxTime:{type:String,default:"23:59"}},data(){return{time:"06:00",dialog:!1,time:this.modelValue||null}},computed:{formattedTime(){return this.time?this.time:null}},methods:{onTimeUpdate(e){this.time=e},onSave(){this.$emit("update:modelValue",this.time),this.dialog=!1}}};function Zoe(e,t,n,r,o,a){const l=i.resolveComponent("v-time-picker");return i.openBlock(),i.createBlock(l,{modelValue:o.time,"onUpdate:modelValue":t[0]||(t[0]=s=>o.time=s),min:n.minTime,max:n.maxTime},null,8,["modelValue","min","max"])}const Qoe=ke(Joe,[["render",Zoe],["__scopeId","data-v-b1b16095"]]),$oe={data(){return{}},name:"RtToolbar",props:{withMenu:{type:Boolean,default:!1},iconPlaceholder:{type:String,default:"mdi-magnify"},icon:{type:Boolean,default:!1},title:{type:String,required:!0},collapse:{type:Boolean,default:!1}},data:()=>({toolbarMoreItems:[{title:"Click Me"},{title:"Click Me"},{title:"Click Me"},{title:"Click Me 2"}]})};function eae(e,t,n,r,o,a){const l=i.resolveComponent("RtAvatar");return i.openBlock(),i.createBlock(mv,{dense:"",class:"rt-toolbar",collapse:n.collapse,"with-menu":n.withMenu},{default:i.withCtx(()=>[i.createVNode(je,{icon:n.icon},{default:i.withCtx(()=>[n.icon?(i.openBlock(),i.createBlock(Ye,{key:0,icon:n.iconPlaceholder},null,8,["icon"])):i.createCommentVNode("",!0)]),_:1},8,["icon"]),i.createVNode(Hee),i.createVNode(Rf,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.title),1)]),_:1}),i.createVNode(gv),i.createVNode(je,{icon:""},{default:i.withCtx(()=>[i.createVNode(Ye,null,{default:i.withCtx(()=>t[0]||(t[0]=[i.createTextVNode("mdi-heart")])),_:1})]),_:1}),n.withMenu?(i.openBlock(),i.createBlock(Ga,{key:0},{activator:i.withCtx(({props:s})=>[i.createVNode(l,i.mergeProps({avatarImage:"https://randomuser.me/api/portraits/men/32.jpg",icon:"mdi-dots-vertical",variant:"text"},s),null,16)]),default:i.withCtx(()=>[i.createVNode(To,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.toolbarMoreItems,(s,u)=>(i.openBlock(),i.createBlock(Gn,{key:u},{default:i.withCtx(()=>[i.createVNode(Of,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.title),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):i.createCommentVNode("",!0),n.withMenu?(i.openBlock(),i.createBlock(Ga,{key:1},{activator:i.withCtx(({props:s})=>[i.createVNode(je,i.mergeProps({icon:"mdi-dots-vertical",variant:"text"},s),null,16)]),default:i.withCtx(()=>[i.createVNode(To,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.toolbarMoreItems,(s,u)=>(i.openBlock(),i.createBlock(Gn,{key:u},{default:i.withCtx(()=>[i.createVNode(Of,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.title),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["collapse","with-menu"])}const tae=ke($oe,[["render",eae],["__scopeId","data-v-9f2d85f0"]]),nae=X({...Ft(vT({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand"}),["subgroup"])},"VTreeviewGroup"),G8=ie()({name:"VTreeviewGroup",props:nae(),setup(e,t){let{slots:n}=t;const r=i.ref(),o=i.computed(()=>{var l;return(l=r.value)!=null&&l.isOpen?e.collapseIcon:e.expandIcon}),a=i.computed(()=>{var l;return{VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,active:(l=r.value)==null?void 0:l.isOpen,toggleIcon:o.value}}});return le(()=>{const l=lv.filterProps(e);return i.createVNode(lv,i.mergeProps(l,{ref:r,class:["v-treeview-group",e.class],subgroup:!0}),{...n,activator:n.activator?s=>i.createVNode(i.Fragment,null,[i.createVNode(tt,{defaults:a.value},{default:()=>{var u;return[(u=n.activator)==null?void 0:u.call(n,s)]}})]):void 0})}),{}}}),K8=Symbol.for("vuetify:v-treeview"),rae=X({loading:Boolean,toggleIcon:xe,...bT({slim:!0})},"VTreeviewItem"),q8=ie()({name:"VTreeviewItem",props:rae(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const o=i.inject(K8,{visibleIds:i.ref()}).visibleIds,a=i.ref(),l=i.computed(()=>{var g,h;return((g=a.value)==null?void 0:g.root.activatable.value)&&((h=a.value)==null?void 0:h.isGroupActivator)}),s=i.computed(()=>{var g,h;return((g=a.value)==null?void 0:g.link.isClickable.value)||e.value!=null&&!!((h=a.value)!=null&&h.list)}),u=i.computed(()=>!e.disabled&&e.link!==!1&&(e.link||s.value||l.value)),c=i.computed(()=>{var g;return o.value&&!o.value.has(i.toRaw((g=a.value)==null?void 0:g.id))});function d(g){var h,p;u.value&&l.value&&((p=a.value)==null||p.activate(!((h=a.value)!=null&&h.isActivated),g))}function f(g){g.preventDefault(),r("toggleExpand",g)}return le(()=>{var p;const g=Ft(Gn.filterProps(e),["onClick"]),h=n.prepend||e.toggleIcon;return i.createVNode(Gn,i.mergeProps({ref:a},g,{active:(p=a.value)==null?void 0:p.isActivated,class:["v-treeview-item",{"v-treeview-item--activatable-group-activator":l.value,"v-treeview-item--filtered":c.value},e.class],ripple:!1,onClick:e.onClick??d}),{...n,prepend:h?y=>{var v;return i.createVNode(i.Fragment,null,[i.createVNode(a$,{start:!1},{default:()=>[e.toggleIcon?i.createVNode(je,{density:"compact",icon:e.toggleIcon,loading:e.loading,variant:"text",onClick:f},{loader(){return i.createVNode(ls,{indeterminate:"disable-shrink",size:"20",width:"2"},null)}}):i.createVNode("div",{class:"v-treeview-item__level"},null)]}),(v=n.prepend)==null?void 0:v.call(n,y)])}:void 0})}),{}}}),Y8=X({disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:"$loading"},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:xe,default:"$checkboxIndeterminate"},falseIcon:xe,trueIcon:xe,returnObject:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],...xn()},"VTreeviewChildren"),kv=ie()({name:"VTreeviewChildren",props:Y8(),setup(e,t){let{slots:n}=t;const r=i.reactive(new Set),o=i.computed(()=>!e.disabled&&(e.openOnClick!=null?e.openOnClick:e.selectable));async function a(s){var u,c;try{if(!((u=e.items)!=null&&u.length)||!e.loadChildren)return;((c=s==null?void 0:s.children)==null?void 0:c.length)===0&&(r.add(s.value),await e.loadChildren(s.raw))}finally{r.delete(s.value)}}function l(s,u){e.selectable&&s(!u)}return()=>{var s,u;return((s=n.default)==null?void 0:s.call(n))??((u=e.items)==null?void 0:u.map(c=>{var v;const{children:d,props:f}=c,g=r.has(c.value),h={prepend:b=>{var m;return i.createVNode(i.Fragment,null,[e.selectable&&(!d||d&&!["leaf","single-leaf"].includes(e.selectStrategy))&&i.createVNode("div",null,[i.createVNode(Ua,{key:c.value,modelValue:b.isSelected,disabled:e.disabled,loading:g,color:e.selectedColor,density:e.density,indeterminate:b.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,onClick:i.withModifiers(()=>l(b.select,b.isSelected),["stop"]),onKeydown:w=>{["Enter","Space"].includes(w.key)&&(w.stopPropagation(),l(b.select,b.isSelected))}},null)]),(m=n.prepend)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})])},append:n.append?b=>{var m;return(m=n.append)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})}:void 0,title:n.title?b=>{var m;return(m=n.title)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})}:void 0,subtitle:n.subtitle?b=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})}:void 0},p=G8.filterProps(f),y=kv.filterProps(e);return d?i.createVNode(G8,i.mergeProps(p,{value:e.returnObject?c.raw:p==null?void 0:p.value}),{activator:b=>{let{props:m}=b;const w={...f,...m,value:f==null?void 0:f.value,onToggleExpand:[()=>a(c),m.onClick],onClick:o.value?[()=>a(c),m.onClick]:void 0};return i.createVNode(q8,i.mergeProps(w,{value:e.returnObject?c.raw:f.value,loading:g}),h)},default:()=>i.createVNode(kv,i.mergeProps(y,{items:d,returnObject:e.returnObject}),n)}):((v=n.item)==null?void 0:v.call(n,{props:f,item:c.raw,internalItem:c}))??i.createVNode(q8,i.mergeProps(f,{value:e.returnObject?i.toRaw(c.raw):f.value}),h)}))}}});function X8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];for(const n of e)t.push(n),n.children&&X8(n.children,t);return t}const oae=X({fluid:Boolean,openAll:Boolean,search:String,...dv({filterKeys:["title"]}),...Y8(),...Ft(ET({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand",slim:!0}),["itemType","nav","openStrategy"]),modelValue:{type:Array,default:()=>[]}},"VTreeview"),aae={name:"RtTreeView",components:{VTreeview:ie()({name:"VTreeview",props:oae(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=xT(e),o=i.toRef(e,"activeColor"),a=i.toRef(e,"baseColor"),l=i.toRef(e,"color"),s=Ve(e,"activated"),u=Ve(e,"modelValue"),c=Ve(e,"selected",e.modelValue),d=i.computed({get:()=>c.value,set(w){c.value=w,u.value=w}}),f=i.ref(),g=i.computed(()=>e.openAll?m(r.value):e.opened),h=i.computed(()=>X8(r.value)),p=i.toRef(e,"search"),{filteredItems:y}=fv(e,h,p),v=i.computed(()=>{var S;if(!p.value)return null;const w=(S=f.value)==null?void 0:S.getPath;return w?new Set(y.value.flatMap(C=>{const x=e.returnObject?C.raw:C.props.value;return[...w(x),...b(x)].map(i.toRaw)})):null});function b(w){var x,k;const S=[],C=(((x=f.value)==null?void 0:x.children.get(w))??[]).slice();for(;C.length;){const E=C.shift();E&&(S.push(E),C.push(...(((k=f.value)==null?void 0:k.children.get(E))??[]).slice()))}return S}function m(w){let S=[];for(const C of w)C.children&&(S.push(e.returnObject?i.toRaw(C.raw):C.value),C.children&&(S=S.concat(m(C.children))));return S}return i.provide(K8,{visibleIds:v}),kn({VTreeviewGroup:{activeColor:o,baseColor:a,color:l,collapseIcon:i.toRef(e,"collapseIcon"),expandIcon:i.toRef(e,"expandIcon")},VTreeviewItem:{activeClass:i.toRef(e,"activeClass"),activeColor:o,baseColor:a,color:l,density:i.toRef(e,"density"),disabled:i.toRef(e,"disabled"),lines:i.toRef(e,"lines"),variant:i.toRef(e,"variant")}}),le(()=>{const w=To.filterProps(e),S=kv.filterProps(e);return i.createVNode(To,i.mergeProps({ref:f},w,{class:["v-treeview",{"v-treeview--fluid":e.fluid},e.class],"open-strategy":"multiple",style:e.style,opened:g.value,activated:s.value,"onUpdate:activated":C=>s.value=C,selected:d.value,"onUpdate:selected":C=>d.value=C}),{default:()=>[i.createVNode(kv,i.mergeProps(S,{density:e.density,returnObject:e.returnObject,items:r.value}),n)]})}),{}}})},props:{open:{type:Array,default:()=>[]},active:{type:Array,default:()=>[]}},data:()=>({items:[{id:1,title:"Applications :",children:[{id:2,title:"Calendar : app"},{id:3,title:"Chrome : app"},{id:4,title:"Webstorm : app"}]},{id:5,title:"Documents :",children:[{id:6,title:"vuetify :",children:[{id:7,title:"src :",children:[{id:8,title:"index : ts"},{id:9,title:"bootstrap : ts"}]}]},{id:10,title:"material2 :",children:[{id:11,title:"src :",children:[{id:12,title:"v-btn : ts"},{id:13,title:"v-card : ts"},{id:14,title:"v-window : ts"}]}]}]},{id:15,title:"Downloads :",children:[{id:16,title:"October : pdf"},{id:17,title:"November : pdf"},{id:18,title:"Tutorial : html"}]},{id:19,title:"Videos :",children:[{id:20,title:"Tutorials :",children:[{id:21,title:"Basic layouts : mp4"},{id:22,title:"Advanced techniques : mp4"},{id:23,title:"All about app : dir"}]},{id:24,title:"Intro : mov"},{id:25,title:"Conference introduction : avi"}]}]}),methods:{onActiveChange(e){this.$emit("update:active",e)},onOpenChange(e){this.$emit("update:open",e)}}};function iae(e,t,n,r,o,a){const l=i.resolveComponent("v-treeview");return i.openBlock(),i.createBlock(l,{items:e.items,open:n.open,active:n.active,activatable:"","item-text":"name","item-children":"children",color:"primary","onUpdate:active":a.onActiveChange,"onUpdate:open":a.onOpenChange},null,8,["items","open","active","onUpdate:active","onUpdate:open"])}const lae=ke(aae,[["render",iae],["__scopeId","data-v-b3563243"]]),sae={name:"RtContainer",props:{fluid:{type:Boolean,default:!1},containerClass:{type:String,default:""}},computed:{getAriaLabel(){return this.dot?"Notification dot":this.content?`Badge content: ${this.content}`:this.value?`Badge value: ${this.value}`:"Badge"}}};function uae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(hv,{fluid:n.fluid,class:i.normalizeClass(n.containerClass)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["fluid","class"])}const cae=ke(sae,[["render",uae],["__scopeId","data-v-31286e44"]]),dae={name:"RtTooltip",props:{text:{type:String,required:!0},position:{type:String,default:"bottom",validator:e=>["top","bottom","start","end"].includes(e)}}};function fae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(c8,{bottom:n.position==="bottom",top:n.position==="top",left:n.position==="start",right:n.position==="end"},{activator:i.withCtx(({props:l})=>[i.createElementVNode("span",i.normalizeProps(i.guardReactiveProps(l)),[i.renderSlot(e.$slots,"default",{},()=>[t[0]||(t[0]=i.createTextVNode("Hover me"))],!0)],16)]),default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(n.text),1)]),_:3},8,["bottom","top","left","right"])}const hae=ke(dae,[["render",fae],["__scopeId","data-v-91c27cde"]]),gae={name:"RtHorizontalRule",methods:{},props:{text:{type:String,default:""},color:{type:String,default:"primary"},thickness:{type:String,default:"2px"},margin:{type:String,default:"16px 0"}},computed:{hrStyle(){return{borderTop:`${this.thickness} solid black`,margin:this.margin,position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}}},mae={key:0,class:"v-hr-text"};function pae(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:"v-hr",style:i.normalizeStyle(a.hrStyle)},[n.text?(i.openBlock(),i.createElementBlock("span",mae,i.toDisplayString(n.text),1)):i.createCommentVNode("",!0)],4)}const vae=ke(gae,[["render",pae],["__scopeId","data-v-e0f2d21f"]]),yae=i.defineComponent({name:"RtButtonGroup",props:{modelValue:{type:String,default:"YES"},toggleOptions:{type:Array,default:()=>[{value:"YES",icon:"",label:"YES"},{value:"NO",icon:"",label:"NO"},{value:"MAYBE",icon:"",label:"MAYBE"}]}},emits:["update:modelValue"],setup(e,{emit:t}){const n=i.ref(e.modelValue);return i.watch(()=>n.value,r=>{t("update:modelValue",r)}),i.watch(()=>e.modelValue,r=>{n.value=r}),{internalValue:n}}}),bae={key:1};function wae(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(KX,{modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.internalValue=l),divided:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.toggleOptions,(l,s)=>(i.openBlock(),i.createBlock(je,{key:s,value:l.value,"aria-pressed":e.internalValue===l.value?"true":"false"},{default:i.withCtx(()=>[l.icon?(i.openBlock(),i.createBlock(Ye,{key:0,icon:l.icon},null,8,["icon"])):(i.openBlock(),i.createElementBlock("span",bae,i.toDisplayString(l.label),1))]),_:2},1032,["value","aria-pressed"]))),128))]),_:1},8,["modelValue"])])}const Sae=ke(yae,[["render",wae]]);i.reactive({isOpen:!1,component:null,props:{}});const Cae={name:"RtDialogDynamic",props:{}};function kae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(Af,{modelValue:e.dialogState.isOpen,"onUpdate:modelValue":t[0]||(t[0]=l=>e.dialogState.isOpen=l),"max-width":"600"},{default:i.withCtx(()=>[i.createVNode(ra,null,{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.dialogState.component),i.mergeProps(e.dialogState.props,{onClose:e.close}),null,16,["onClose"]))]),_:1})]),_:1},8,["modelValue"])}const xae=ke(Cae,[["render",kae]]),Eae={name:"RtDialogWrapper",inheritAttrs:!1,props:{dialogVisible:{type:Boolean,required:!0},noPadding:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},dialogComponent:{type:[Object,Function,String],required:!0},dialogProps:{type:Object,default:()=>({})}},emits:["update:dialogVisible","submit-form"],computed:{internalDialogVisible:{get(){return this.dialogVisible},set(e){this.$emit("update:dialogVisible",e)}},componentListeners(){const e={...this.$attrs};return delete e["update:dialogVisible"],e}},methods:{close(){this.internalDialogVisible=!1},forwardSubmitForm(e){this.$emit("submit-form",e)}}};function Dae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(Af,{modelValue:a.internalDialogVisible,"onUpdate:modelValue":t[0]||(t[0]=l=>a.internalDialogVisible=l),"max-width":"1270px",persistent:""},{default:i.withCtx(()=>[i.createVNode(ra,null,{default:i.withCtx(()=>[i.createVNode(cs,{class:i.normalizeClass({"no-padding":n.noPadding})},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.dialogComponent),i.mergeProps(n.dialogProps,{onClose:a.close,onSubmitForm:a.forwardSubmitForm}),null,16,["onClose","onSubmitForm"]))]),_:1},8,["class"])]),_:1})]),_:1},8,["modelValue"])}const Aae=ke(Eae,[["render",Dae],["__scopeId","data-v-8dcdd4c6"]]);var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gs(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ti,xv,Ev=function(e){return e&&e.Math==Math&&e},Ge=Ev(typeof globalThis=="object"&&globalThis)||Ev(typeof window=="object"&&window)||Ev(typeof self=="object"&&self)||Ev(typeof Et=="object"&&Et)||function(){return this}()||Function("return this")(),sC=Function.prototype,J8=sC.apply,Bae=sC.bind,Z8=sC.call,Q8=typeof Reflect=="object"&&Reflect.apply||(Bae?Z8.bind(J8):function(){return Z8.apply(J8,arguments)}),$8=Function.prototype,uC=$8.bind,cC=$8.call,_ae=uC&&uC.bind(cC),Tt=uC?function(e){return e&&_ae(cC,e)}:function(e){return e&&function(){return cC.apply(e,arguments)}},Kn=function(e){return typeof e=="function"},Cr=function(e){try{return!!e()}catch{return!0}},kr=!Cr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mf=Function.prototype.call,Lr=Mf.bind?Mf.bind(Mf):function(){return Mf.apply(Mf,arguments)},eP={}.propertyIsEnumerable,tP=Object.getOwnPropertyDescriptor,Tae=tP&&!eP.call({1:2},1)?function(e){var t=tP(this,e);return!!t&&t.enumerable}:eP,dC={f:Tae},Po=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pae=Tt({}.toString),Nae=Tt("".slice),ms=function(e){return Nae(Pae(e),8,-1)},fC=Ge.Object,Oae=Tt("".split),nP=Cr(function(){return!fC("z").propertyIsEnumerable(0)})?function(e){return ms(e)=="String"?Oae(e,""):fC(e)}:fC,Iae=Ge.TypeError,hC=function(e){if(e==null)throw Iae("Can't call method on "+e);return e},aa=function(e){return nP(hC(e))},ro=function(e){return typeof e=="object"?e!==null:Kn(e)},Mr={},rP=function(e){return Kn(e)?e:void 0},lc=function(e,t){return arguments.length<2?rP(Mr[e])||rP(Ge[e]):Mr[e]&&Mr[e][t]||Ge[e]&&Ge[e][t]},jf=Tt({}.isPrototypeOf),gC=lc("navigator","userAgent")||"",oP=Ge.process,aP=Ge.Deno,iP=oP&&oP.versions||aP&&aP.version,lP=iP&&iP.v8;lP&&(xv=(Ti=lP.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!xv&&gC&&(!(Ti=gC.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=gC.match(/Chrome\/(\d+)/))&&(xv=+Ti[1]);var Dv,Av=xv,ia=!!Object.getOwnPropertySymbols&&!Cr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Av&&Av<41}),mC=ia&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Fae=Ge.Object,sc=mC?function(e){return typeof e=="symbol"}:function(e){var t=lc("Symbol");return Kn(t)&&jf(t.prototype,Fae(e))},Rae=Ge.String,pC=function(e){try{return Rae(e)}catch{return"Object"}},Lae=Ge.TypeError,vC=function(e){if(Kn(e))return e;throw Lae(pC(e)+" is not a function")},Vv=function(e,t){var n=e[t];return n==null?void 0:vC(n)},Mae=Ge.TypeError,jae=Object.defineProperty,Pi=Ge["__core-js_shared__"]||function(e,t){try{jae(Ge,e,{value:t,configurable:!0,writable:!0})}catch{Ge[e]=t}return t}("__core-js_shared__",{}),ps=gs(function(e){(e.exports=function(t,n){return Pi[t]||(Pi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),zae=Ge.Object,zf=function(e){return zae(hC(e))},Hae=Tt({}.hasOwnProperty),at=Object.hasOwn||function(e,t){return Hae(zf(e),t)},Uae=0,Wae=Math.random(),Gae=Tt(1 .toString),Bv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Gae(++Uae+Wae,36)},Hf=ps("wks"),vs=Ge.Symbol,sP=vs&&vs.for,Kae=mC?vs:vs&&vs.withoutSetter||Bv,Qn=function(e){if(!at(Hf,e)||!ia&&typeof Hf[e]!="string"){var t="Symbol."+e;ia&&at(vs,e)?Hf[e]=vs[e]:Hf[e]=mC&&sP?sP(t):Kae(t)}return Hf[e]},qae=Ge.TypeError,Yae=Qn("toPrimitive"),Xae=function(e,t){if(!ro(e)||sc(e))return e;var n,r=Vv(e,Yae);if(r){if(n=Lr(r,e,t),!ro(n)||sc(n))return n;throw qae("Can't convert object to primitive value")}return function(o,a){var l,s;if(Kn(l=o.toString)&&!ro(s=Lr(l,o))||Kn(l=o.valueOf)&&!ro(s=Lr(l,o)))return s;throw Mae("Can't convert object to primitive value")}(e)},uc=function(e){var t=Xae(e,"string");return sc(t)?t:t+""},yC=Ge.document,Jae=ro(yC)&&ro(yC.createElement),uP=function(e){return Jae?yC.createElement(e):{}},cP=!kr&&!Cr(function(){return Object.defineProperty(uP("div"),"a",{get:function(){return 7}}).a!=7}),dP=Object.getOwnPropertyDescriptor,Zae=kr?dP:function(e,t){if(e=aa(e),t=uc(t),cP)try{return dP(e,t)}catch{}if(at(e,t))return Po(!Lr(dC.f,e,t),e[t])},_v={f:Zae},Qae=/#|\.prototype\./,Uf=function(e,t){var n=eie[$ae(e)];return n==nie||n!=tie&&(Kn(t)?Cr(t):!!t)},$ae=Uf.normalize=function(e){return String(e).replace(Qae,".").toLowerCase()},eie=Uf.data={},tie=Uf.NATIVE="N",nie=Uf.POLYFILL="P",rie=Uf,fP=Tt(Tt.bind),bC=function(e,t){return vC(e),t===void 0?e:fP?fP(e,t):function(){return e.apply(t,arguments)}},oie=Ge.String,aie=Ge.TypeError,jr=function(e){if(ro(e))return e;throw aie(oie(e)+" is not an object")},iie=Ge.TypeError,hP=Object.defineProperty,lie=kr?hP:function(e,t,n){if(jr(e),t=uc(t),jr(n),cP)try{return hP(e,t,n)}catch{}if("get"in n||"set"in n)throw iie("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ni={f:lie},mr=kr?function(e,t,n){return Ni.f(e,t,Po(1,n))}:function(e,t,n){return e[t]=n,e},sie=_v.f,uie=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 Q8(e,this,arguments)};return t.prototype=e.prototype,t},qa=function(e,t){var n,r,o,a,l,s,u,c,d=e.target,f=e.global,g=e.stat,h=e.proto,p=f?Ge:g?Ge[d]:(Ge[d]||{}).prototype,y=f?Mr:Mr[d]||mr(Mr,d,{})[d],v=y.prototype;for(o in t)n=!rie(f?o:d+(g?".":"#")+o,e.forced)&&p&&at(p,o),l=y[o],n&&(s=e.noTargetGet?(c=sie(p,o))&&c.value:p[o]),a=n&&s?s:t[o],n&&typeof l==typeof a||(u=e.bind&&n?bC(a,Ge):e.wrap&&n?uie(a):h&&Kn(a)?Tt(a):a,(e.sham||a&&a.sham||l&&l.sham)&&mr(u,"sham",!0),mr(y,o,u),h&&(at(Mr,r=d+"Prototype")||mr(Mr,r,{}),mr(Mr[r],o,a),e.real&&v&&!v[o]&&mr(v,o,a)))},gP=ps("keys"),Tv=function(e){return gP[e]||(gP[e]=Bv(e))},cie=!Cr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),mP=Tv("IE_PROTO"),wC=Ge.Object,die=wC.prototype,Pv=cie?wC.getPrototypeOf:function(e){var t=zf(e);if(at(t,mP))return t[mP];var n=t.constructor;return Kn(n)&&t instanceof n?n.prototype:t instanceof wC?die:null},fie=Ge.String,hie=Ge.TypeError,Nv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return jr(r),function(a){if(typeof a=="object"||Kn(a))return a;throw hie("Can't set "+fie(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),gie=Math.ceil,mie=Math.floor,SC=function(e){var t=+e;return t!=t||t===0?0:(t>0?mie:gie)(t)},pie=Math.max,vie=Math.min,CC=function(e,t){var n=SC(e);return n<0?pie(n+t,0):vie(n,t)},yie=Math.min,Wf=function(e){return(t=e.length)>0?yie(SC(t),9007199254740991):0;var t},bie=function(e){return function(t,n,r){var o,a=aa(t),l=Wf(a),s=CC(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},wie={indexOf:bie(!1)},Gf={},Sie=wie.indexOf,pP=Tt([].push),vP=function(e,t){var n,r=aa(e),o=0,a=[];for(n in r)!at(Gf,n)&&at(r,n)&&pP(a,n);for(;t.length>o;)at(r,n=t[o++])&&(~Sie(a,n)||pP(a,n));return a},Ov=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cie=Ov.concat("length","prototype"),kie=Object.getOwnPropertyNames||function(e){return vP(e,Cie)},kC={f:kie},Iv={f:Object.getOwnPropertySymbols},xie=Tt([].concat),Eie=lc("Reflect","ownKeys")||function(e){var t=kC.f(jr(e)),n=Iv.f;return n?xie(t,n(e)):t},xC=Object.keys||function(e){return vP(e,Ov)},Die=kr?Object.defineProperties:function(e,t){jr(e);for(var n,r=aa(t),o=xC(t),a=o.length,l=0;a>l;)Ni.f(e,n=o[l++],r[n]);return e},Aie=lc("document","documentElement"),yP=Tv("IE_PROTO"),EC=function(){},bP=function(e){return"<script>"+e+"<\/script>"},wP=function(e){e.write(bP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fv=function(){try{Dv=new ActiveXObject("htmlfile")}catch{}var e,t;Fv=typeof document<"u"?document.domain&&Dv?wP(Dv):((t=uP("iframe")).style.display="none",Aie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(bP("document.F=Object")),e.close(),e.F):wP(Dv);for(var n=Ov.length;n--;)delete Fv.prototype[Ov[n]];return Fv()};Gf[yP]=!0;var Ya=Object.create||function(e,t){var n;return e!==null?(EC.prototype=jr(e),n=new EC,EC.prototype=null,n[yP]=e):n=Fv(),t===void 0?n:Die(n,t)},DC=function(e,t,n){var r=uc(t);r in e?Ni.f(e,r,Po(0,n)):e[r]=n},Vie=Ge.Array,Bie=Math.max,SP=function(e,t,n){for(var r=Wf(e),o=CC(t,r),a=CC(r,r),l=Vie(Bie(a-o,0)),s=0;o<a;o++,s++)DC(l,s,e[o]);return l.length=s,l},_ie=Tt("".replace),Tie=Tt("".split),Pie=Tt([].join),AC=String(Error("zxcasd").stack),CP=/\n\s*at [^:]*:[^\n]*/,Nie=CP.test(AC),Oie=/@[^\n]*\n/.test(AC)&&!/zxcasd/.test(AC),Iie=function(e,t){if(typeof e!="string")return e;if(Nie)for(;t--;)e=_ie(e,CP,"");else if(Oie)return Pie(SP(Tie(e,`
17
+ `),n.advancedKeyboard?(i.openBlock(!0),i.createBlock(i.Fragment,{key:1},i.renderList(a.columnsSequence,l=>(i.openBlock(),i.createBlock(i.Fragment,{key:l},[l==="hour"?(i.openBlock(),i.createBlock("ul",{key:0,class:"hours",tabindex:"-1",onScroll:t[23]||(t[23]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.hourLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.hours,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledHours||a.opts.hideDisabledHours&&!a.isDisabled("hour",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.hour===s},tabindex:a.isDisabled("hour",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("hour",s)),textContent:i.toDisplayString(s),onClick:c=>a.select("hour",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("hour",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("hour",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("hour",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("hour",s),["prevent"]),["down"]),t[18]||(t[18]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("hour"),["prevent"]),["left"])),t[19]||(t[19]=i.withKeys(i.withModifiers(c=>a.toRightColumn("hour"),["prevent"]),["right"])),t[20]||(t[20]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[21]||(t[21]=(...c)=>a.debounceBlur(...c)),onFocus:t[22]||(t[22]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="minute"?(i.openBlock(),i.createBlock("ul",{key:1,class:"minutes",tabindex:"-1",onScroll:t[29]||(t[29]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.minuteLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.minutes,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledMinutes||a.opts.hideDisabledMinutes&&!a.isDisabled("minute",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.minute===s},tabindex:a.isDisabled("minute",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("minute",s)),textContent:i.toDisplayString(s),onClick:c=>a.select("minute",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("minute",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("minute",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("minute",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("minute",s),["prevent"]),["down"]),t[24]||(t[24]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("minute"),["prevent"]),["left"])),t[25]||(t[25]=i.withKeys(i.withModifiers(c=>a.toRightColumn("minute"),["prevent"]),["right"])),t[26]||(t[26]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[27]||(t[27]=(...c)=>a.debounceBlur(...c)),onFocus:t[28]||(t[28]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="second"?(i.openBlock(),i.createBlock("ul",{key:2,class:"seconds",tabindex:"-1",onScroll:t[35]||(t[35]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.secondLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.seconds,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledSeconds||a.opts.hideDisabledSeconds&&!a.isDisabled("second",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.second===s},tabindex:a.isDisabled("second",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("second",s)),textContent:i.toDisplayString(s),onClick:c=>a.select("second",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("second",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("second",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("second",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("second",s),["prevent"]),["down"]),t[30]||(t[30]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("second"),["prevent"]),["left"])),t[31]||(t[31]=i.withKeys(i.withModifiers(c=>a.toRightColumn("second"),["prevent"]),["right"])),t[32]||(t[32]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[33]||(t[33]=(...c)=>a.debounceBlur(...c)),onFocus:t[34]||(t[34]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0),l==="apm"?(i.openBlock(),i.createBlock("ul",{key:3,class:"apms",tabindex:"-1",onScroll:t[41]||(t[41]=(...s)=>a.keepFocusing(...s))},[i.createVNode("li",{class:"hint",textContent:i.toDisplayString(a.apmLabelText),tabindex:"-1"},null,8,["textContent"]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.apms,(s,u)=>(i.openBlock(),i.createBlock(i.Fragment,{key:u},[!a.opts.hideDisabledHours||a.opts.hideDisabledHours&&!a.isDisabled("apm",s)?(i.openBlock(),i.createBlock("li",{key:0,class:{active:o.apm===s},tabindex:a.isDisabled("apm",s)?-1:n.tabindex,"data-key":s,disabled:a.booleanAttr(a.isDisabled("apm",s)),textContent:i.toDisplayString(a.apmDisplayText(s)),onClick:c=>a.select("apm",s),onKeydown:[i.withKeys(i.withModifiers(c=>a.select("apm",s),["prevent"]),["space"]),i.withKeys(i.withModifiers(c=>a.select("apm",s),["prevent"]),["enter"]),i.withKeys(i.withModifiers(c=>a.prevItem("apm",s),["prevent"]),["up"]),i.withKeys(i.withModifiers(c=>a.nextItem("apm",s),["prevent"]),["down"]),t[36]||(t[36]=i.withKeys(i.withModifiers(c=>a.toLeftColumn("apm"),["prevent"]),["left"])),t[37]||(t[37]=i.withKeys(i.withModifiers(c=>a.toRightColumn("apm"),["prevent"]),["right"])),t[38]||(t[38]=i.withKeys(i.withModifiers((...c)=>a.debounceBlur(...c),["exact"]),["esc"]))],onBlur:t[39]||(t[39]=(...c)=>a.debounceBlur(...c)),onFocus:t[40]||(t[40]=(...c)=>a.keepFocusing(...c))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):i.createCommentVNode("v-if",!0)],64))),128))],32)):i.createCommentVNode("v-if",!0)],64))),128)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" / Advanced Keyboard Support ")],4)],38),[[i.vShow,o.showDropdown]])],4)}Cv.render=zoe,Cv.__file="src/VueTimepicker.vue";function hs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(t,"0")}const Hoe=X({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),z8=ie()({name:"VTimePickerClock",props:Hoe(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:n}=t;const r=i.ref(null),o=i.ref(null),a=i.ref(void 0),l=i.ref(!1),s=i.ref(null),u=i.ref(null),{textColorClasses:c,textColorStyles:d}=Wn(i.toRef(e,"color")),{backgroundColorClasses:f,backgroundColorStyles:g}=kt(i.toRef(e,"color")),h=i.computed(()=>e.max-e.min+1),p=i.computed(()=>e.double?h.value/2:h.value),y=i.computed(()=>360/p.value),v=i.computed(()=>y.value*Math.PI/180),b=i.computed(()=>e.modelValue==null?e.min:e.modelValue),m=i.computed(()=>.62),w=i.computed(()=>{const j=[];for(let z=e.min;z<=e.max;z=z+e.step)j.push(z);return j});i.watch(()=>e.modelValue,j=>{a.value=j});function S(j){a.value!==j&&(a.value=j),n("input",j)}function C(j){return!e.allowedValues||e.allowedValues(j)}function x(j){if(!e.scrollable||e.disabled)return;j.preventDefault();const z=Math.sign(-j.deltaY||1);let L=b.value;do L=L+z,L=(L-e.min+h.value)%h.value+e.min;while(!C(L)&&L!==b.value);L!==e.displayedValue&&S(L)}function k(j){return e.double&&j-e.min>=p.value}function E(j){return k(j)?m.value:1}function A(j){const z=e.rotate*Math.PI/180;return{x:Math.sin((j-e.min)*v.value+z)*E(j),y:-Math.cos((j-e.min)*v.value+z)*E(j)}}function N(j,z){const L=(Math.round(j/y.value)+(z?p.value:0))%h.value+e.min;return j<360-y.value/2?L:z?e.max-p.value+1:e.min}function V(j){const{x:z,y:L}=A(j);return{left:`${50+z*50}%`,top:`${50+L*50}%`}}function D(j,z){const L=z.x-j.x,_=z.y-j.y;return Math.sqrt(L*L+_*_)}function P(j,z){const L=2*Math.atan2(z.y-j.y-D(j,z),z.x-j.x);return Math.abs(L*180/Math.PI)}function O(j){s.value===null&&(s.value=j),u.value=j,S(j)}function F(j){var G,se;if(j.preventDefault(),!l.value&&j.type!=="click"||!r.value)return;const{width:z,top:L,left:_}=(G=r.value)==null?void 0:G.getBoundingClientRect(),{width:T}=((se=o.value)==null?void 0:se.getBoundingClientRect())??{width:0},{clientX:I,clientY:U}="touches"in j?j.touches[0]:j,$={x:z/2,y:-z/2},W={x:I-_,y:L-U},Z=Math.round(P($,W)-e.rotate+360)%360,ne=e.double&&D($,W)<(T+T*m.value)/4,me=Math.ceil(15/y.value);let de;for(let ee=0;ee<me;ee++)if(de=N(Z+ee*y.value,ne),C(de)||(de=N(Z-ee*y.value,ne),C(de)))return O(de)}function H(j){e.disabled||(j.preventDefault(),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",J),window.addEventListener("touchend",J),s.value=null,u.value=null,l.value=!0,F(j))}function J(j){j.stopPropagation(),window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),l.value=!1,u.value!==null&&C(u.value)&&n("change",u.value)}le(()=>i.createVNode("div",{class:[{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":e.modelValue==null,"v-time-picker-clock--readonly":e.readonly}],onMousedown:H,onTouchstart:H,onWheel:x,ref:r},[i.createVNode("div",{class:"v-time-picker-clock__inner",ref:o},[i.createVNode("div",{class:[{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":k(e.modelValue)},c.value],style:[{transform:`rotate(${e.rotate+y.value*(b.value-e.min)}deg) scaleY(${E(b.value)})`},d.value]},null),w.value.map(j=>{const z=j===b.value;return i.createVNode("div",{class:[{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":z,"v-time-picker-clock__item--disabled":e.disabled||!C(j)},z&&f.value],style:[V(j),z&&g.value]},[i.createVNode("span",null,[e.format(j)])])})])]))}}),Uoe=X({ampm:Boolean,ampmInTitle:Boolean,ampmReadonly:Boolean,color:String,disabled:Boolean,hour:Number,minute:Number,second:Number,period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String},"VTimePickerControls"),H8=ie()({name:"VTimePickerControls",props:Uoe(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:o}=Qt();return le(()=>{let a=e.hour;return e.ampm&&(a=a?(a-1)%12+1:12),i.createVNode("div",{class:"v-time-picker-controls"},[i.createVNode("div",{class:{"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-seconds":e.useSeconds}},[i.createVNode(je,{active:e.viewMode==="hour",color:e.viewMode==="hour"?e.color:void 0,disabled:e.disabled,variant:"tonal",class:{"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time--with-ampm__btn":e.ampm,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds},text:e.hour==null?"--":hs(`${a}`),onClick:()=>n("update:viewMode","hour")},null),i.createVNode("span",{class:["v-time-picker-controls__time__separator",{"v-time-picker-controls--with-seconds__time__separator":e.useSeconds}]},[i.createTextVNode(":")]),i.createVNode(je,{active:e.viewMode==="minute",color:e.viewMode==="minute"?e.color:void 0,class:{"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time__btn__active":e.viewMode==="minute","v-time-picker-controls__time--with-ampm__btn":e.ampm,"v-time-picker-controls__time--with-seconds__btn":e.useSeconds},disabled:e.disabled,variant:"tonal",text:e.minute==null?"--":hs(e.minute),onClick:()=>n("update:viewMode","minute")},null),e.useSeconds&&i.createVNode("span",{class:["v-time-picker-controls__time__separator",{"v-time-picker-controls--with-seconds__time__separator":e.useSeconds}],key:"secondsDivider"},[i.createTextVNode(":")]),e.useSeconds&&i.createVNode(je,{key:"secondsVal",active:e.viewMode==="second",color:e.viewMode==="second"?e.color:void 0,variant:"tonal",onClick:()=>n("update:viewMode","second"),class:{"v-time-picker-controls__time__btn":!0,"v-time-picker-controls__time__btn__active":e.viewMode==="second","v-time-picker-controls__time--with-seconds__btn":e.useSeconds},disabled:e.disabled,text:e.second==null?"--":hs(e.second)},null),e.ampm&&e.ampmInTitle&&i.createVNode("div",{class:["v-time-picker-controls__ampm",{"v-time-picker-controls__ampm--readonly":e.ampmReadonly}]},[i.createVNode(je,{active:e.period==="am",color:e.period==="am"?e.color:void 0,class:{"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="am"},disabled:e.disabled,text:o("$vuetify.timePicker.am"),variant:e.disabled&&e.period==="am"?"elevated":"tonal",onClick:()=>e.period!=="am"?n("update:period","am"):null},null),i.createVNode(je,{active:e.period==="pm",color:e.period==="pm"?e.color:void 0,class:{"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="pm"},disabled:e.disabled,text:o("$vuetify.timePicker.pm"),variant:e.disabled&&e.period==="pm"?"elevated":"tonal",onClick:()=>e.period!=="pm"?n("update:period","pm"):null},null)])])])}),{}}}),Woe=Do(24),U8=Do(12),Goe=U8.map(e=>e+12);Do(60);const Koe=X({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],ampmInTitle:Boolean,disabled:Boolean,format:{type:String,default:"ampm"},max:String,min:String,viewMode:{type:String,default:"hour"},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,...Ft(av({title:"$vuetify.timePicker.title"}),["landscape"])},"VTimePicker"),W8=ie()({name:"VTimePicker",props:Koe(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:o}=Qt(),a=i.ref(null),l=i.ref(null),s=i.ref(null),u=i.ref(null),c=i.ref(null),d=i.ref(null),f=i.ref("am"),g=Ve(e,"viewMode","hour"),h=i.ref(null),p=i.ref(null),y=i.computed(()=>{let D;if(e.allowedHours instanceof Array?D=F=>e.allowedHours.includes(F):D=e.allowedHours,!e.min&&!e.max)return D;const P=e.min?Number(e.min.split(":")[0]):0,O=e.max?Number(e.max.split(":")[0]):23;return F=>F>=Number(P)&&F<=Number(O)&&(!D||D(F))}),v=i.computed(()=>{let D;const P=!y.value||a.value===null||y.value(a.value);if(e.allowedMinutes instanceof Array?D=L=>e.allowedMinutes.includes(L):D=e.allowedMinutes,!e.min&&!e.max)return P?D:()=>!1;const[O,F]=e.min?e.min.split(":").map(Number):[0,0],[H,J]=e.max?e.max.split(":").map(Number):[23,59],j=O*60+Number(F),z=H*60+Number(J);return L=>{const _=60*a.value+L;return _>=j&&_<=z&&P&&(!D||D(L))}}),b=i.computed(()=>{let D;const O=(!y.value||a.value===null||y.value(a.value))&&(!v.value||l.value===null||v.value(l.value));if(e.allowedSeconds instanceof Array?D=I=>e.allowedSeconds.includes(I):D=e.allowedSeconds,!e.min&&!e.max)return O?D:()=>!1;const[F,H,J]=e.min?e.min.split(":").map(Number):[0,0,0],[j,z,L]=e.max?e.max.split(":").map(Number):[23,59,59],_=F*3600+H*60+Number(J||0),T=j*3600+z*60+Number(L||0);return I=>{const U=3600*a.value+60*l.value+I;return U>=_&&U<=T&&O&&(!D||D(I))}}),m=i.computed(()=>e.format==="ampm");i.watch(()=>e.modelValue,D=>k(D)),i.onMounted(()=>{k(e.modelValue)});function w(){return a.value!=null&&l.value!=null&&(!e.useSeconds||s.value!=null)?`${hs(a.value)}:${hs(l.value)}`+(e.useSeconds?`:${hs(s.value)}`:""):null}function S(){const D=w();D!==null&&n("update:modelValue",D)}function C(D){return D?(D-1)%12+1:12}function x(D,P){return D%12+(P==="pm"?12:0)}function k(D){if(D==null||D==="")a.value=null,l.value=null,s.value=null;else if(D instanceof Date)a.value=D.getHours(),l.value=D.getMinutes(),s.value=D.getSeconds();else{const[P,,O,,F,H]=D.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);a.value=H?x(parseInt(P,10),H):parseInt(P,10),l.value=parseInt(O,10),s.value=parseInt(F||0,10)}f.value=a.value==null||a.value<12?"am":"pm"}function E(D,P){const O=y.value;if(!O)return P;const F=m.value?P<12?U8:Goe:Woe;return((F.find(J=>O((J+P)%F.length+F[0]))||0)+P)%F.length+F[0]}function A(D){if(f.value=D,a.value!=null){const P=a.value+(f.value==="am"?-12:12);a.value=E("hour",P)}return n("update:period",D),S(),!0}function N(D){g.value==="hour"?a.value=m.value?x(D,f.value):D:g.value==="minute"?l.value=D:s.value=D}function V(D){switch(g.value||"hour"){case"hour":n("update:hour",D);break;case"minute":n("update:minute",D);break;case"second":n("update:second",D);break}const P=a.value!==null&&l.value!==null&&(e.useSeconds?s.value!==null:!0);g.value==="hour"?g.value="minute":e.useSeconds&&g.value==="minute"&&(g.value="second"),!(a.value===u.value&&l.value===c.value&&(!e.useSeconds||s.value===d.value)||w()===null)&&(u.value=a.value,c.value=l.value,e.useSeconds&&(d.value=s.value),P&&S())}le(()=>{const D=oc.filterProps(e),P=H8.filterProps(e),O=z8.filterProps(Ft(e,["format","modelValue","min","max"]));return i.createVNode(oc,i.mergeProps(D,{color:void 0,class:["v-time-picker",e.class],style:e.style}),{title:()=>{var F;return((F=r.title)==null?void 0:F.call(r))??i.createVNode("div",{class:"v-time-picker__title"},[o(e.title)])},header:()=>i.createVNode(H8,i.mergeProps(P,{ampm:m.value||e.ampmInTitle,ampmReadonly:m.value&&!e.ampmInTitle,hour:a.value,minute:l.value,period:f.value,second:s.value,viewMode:g.value,"onUpdate:period":F=>A(F),"onUpdate:viewMode":F=>g.value=F,ref:h}),null),default:()=>i.createVNode(z8,i.mergeProps(O,{allowedValues:g.value==="hour"?y.value:g.value==="minute"?v.value:b.value,double:g.value==="hour"&&!m.value,format:g.value==="hour"?m.value?C:F=>F:F=>hs(F,2),max:g.value==="hour"?m.value&&f.value==="am"?11:23:59,min:g.value==="hour"&&m.value&&f.value==="pm"?12:0,size:20,step:g.value==="hour"?1:5,modelValue:g.value==="hour"?a.value:g.value==="minute"?l.value:s.value,onChange:V,onInput:N,ref:p}),null),actions:r.actions})})}}),qoe={name:"RtTimePicker",components:{Vue3Timepicker:Cv,VTimePicker:W8},props:{modelValue:{type:String,default:""},minTime:{type:String,default:"00:00"},maxTime:{type:String,default:"23:59"}},data(){return{time:"06:00",dialog:!1,time:this.modelValue||null}},computed:{formattedTime(){return this.time?this.time:null}},methods:{onTimeUpdate(e){this.time=e},onSave(){this.$emit("update:modelValue",this.time),this.dialog=!1}}};function Yoe(e,t,n,r,o,a){const l=i.resolveComponent("vue3-timepicker");return i.openBlock(),i.createBlock(l,{modelValue:o.time,"onUpdate:modelValue":t[0]||(t[0]=s=>o.time=s),min:n.minTime,max:n.maxTime},null,8,["modelValue","min","max"])}const Xoe=ke(qoe,[["render",Yoe],["__scopeId","data-v-cfedfaf7"]]),Joe={name:"RtTimePicker",components:{Vue3Timepicker:Cv,VTimePicker:W8},props:{modelValue:{type:String,default:""},minTime:{type:String,default:"00:00"},maxTime:{type:String,default:"23:59"}},data(){return{time:"06:00",dialog:!1,time:this.modelValue||null}},computed:{formattedTime(){return this.time?this.time:null}},methods:{onTimeUpdate(e){this.time=e},onSave(){this.$emit("update:modelValue",this.time),this.dialog=!1}}};function Zoe(e,t,n,r,o,a){const l=i.resolveComponent("v-time-picker");return i.openBlock(),i.createBlock(l,{modelValue:o.time,"onUpdate:modelValue":t[0]||(t[0]=s=>o.time=s),min:n.minTime,max:n.maxTime},null,8,["modelValue","min","max"])}const Qoe=ke(Joe,[["render",Zoe],["__scopeId","data-v-b1b16095"]]),$oe={data(){return{}},name:"RtToolbar",props:{withMenu:{type:Boolean,default:!1},iconPlaceholder:{type:String,default:"mdi-magnify"},icon:{type:Boolean,default:!1},title:{type:String,required:!0},collapse:{type:Boolean,default:!1}},data:()=>({toolbarMoreItems:[{title:"Click Me"},{title:"Click Me"},{title:"Click Me"},{title:"Click Me 2"}]})};function eae(e,t,n,r,o,a){const l=i.resolveComponent("RtAvatar");return i.openBlock(),i.createBlock(mv,{dense:"",class:"rt-toolbar",collapse:n.collapse,"with-menu":n.withMenu},{default:i.withCtx(()=>[i.createVNode(je,{icon:n.icon},{default:i.withCtx(()=>[n.icon?(i.openBlock(),i.createBlock(Ye,{key:0,icon:n.iconPlaceholder},null,8,["icon"])):i.createCommentVNode("",!0)]),_:1},8,["icon"]),i.createVNode(Hee),i.createVNode(Rf,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.title),1)]),_:1}),i.createVNode(gv),i.createVNode(je,{icon:""},{default:i.withCtx(()=>[i.createVNode(Ye,null,{default:i.withCtx(()=>t[0]||(t[0]=[i.createTextVNode("mdi-heart")])),_:1})]),_:1}),n.withMenu?(i.openBlock(),i.createBlock(Ga,{key:0},{activator:i.withCtx(({props:s})=>[i.createVNode(l,i.mergeProps({avatarImage:"https://randomuser.me/api/portraits/men/32.jpg",icon:"mdi-dots-vertical",variant:"text"},s),null,16)]),default:i.withCtx(()=>[i.createVNode(To,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.toolbarMoreItems,(s,u)=>(i.openBlock(),i.createBlock(Gn,{key:u},{default:i.withCtx(()=>[i.createVNode(Of,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.title),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):i.createCommentVNode("",!0),n.withMenu?(i.openBlock(),i.createBlock(Ga,{key:1},{activator:i.withCtx(({props:s})=>[i.createVNode(je,i.mergeProps({icon:"mdi-dots-vertical",variant:"text"},s),null,16)]),default:i.withCtx(()=>[i.createVNode(To,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.toolbarMoreItems,(s,u)=>(i.openBlock(),i.createBlock(Gn,{key:u},{default:i.withCtx(()=>[i.createVNode(Of,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.title),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["collapse","with-menu"])}const tae=ke($oe,[["render",eae],["__scopeId","data-v-9f2d85f0"]]),nae=X({...Ft(vT({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand"}),["subgroup"])},"VTreeviewGroup"),G8=ie()({name:"VTreeviewGroup",props:nae(),setup(e,t){let{slots:n}=t;const r=i.ref(),o=i.computed(()=>{var l;return(l=r.value)!=null&&l.isOpen?e.collapseIcon:e.expandIcon}),a=i.computed(()=>{var l;return{VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,active:(l=r.value)==null?void 0:l.isOpen,toggleIcon:o.value}}});return le(()=>{const l=lv.filterProps(e);return i.createVNode(lv,i.mergeProps(l,{ref:r,class:["v-treeview-group",e.class],subgroup:!0}),{...n,activator:n.activator?s=>i.createVNode(i.Fragment,null,[i.createVNode(tt,{defaults:a.value},{default:()=>{var u;return[(u=n.activator)==null?void 0:u.call(n,s)]}})]):void 0})}),{}}}),K8=Symbol.for("vuetify:v-treeview"),rae=X({loading:Boolean,toggleIcon:xe,...bT({slim:!0})},"VTreeviewItem"),q8=ie()({name:"VTreeviewItem",props:rae(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const o=i.inject(K8,{visibleIds:i.ref()}).visibleIds,a=i.ref(),l=i.computed(()=>{var g,h;return((g=a.value)==null?void 0:g.root.activatable.value)&&((h=a.value)==null?void 0:h.isGroupActivator)}),s=i.computed(()=>{var g,h;return((g=a.value)==null?void 0:g.link.isClickable.value)||e.value!=null&&!!((h=a.value)!=null&&h.list)}),u=i.computed(()=>!e.disabled&&e.link!==!1&&(e.link||s.value||l.value)),c=i.computed(()=>{var g;return o.value&&!o.value.has(i.toRaw((g=a.value)==null?void 0:g.id))});function d(g){var h,p;u.value&&l.value&&((p=a.value)==null||p.activate(!((h=a.value)!=null&&h.isActivated),g))}function f(g){g.preventDefault(),r("toggleExpand",g)}return le(()=>{var p;const g=Ft(Gn.filterProps(e),["onClick"]),h=n.prepend||e.toggleIcon;return i.createVNode(Gn,i.mergeProps({ref:a},g,{active:(p=a.value)==null?void 0:p.isActivated,class:["v-treeview-item",{"v-treeview-item--activatable-group-activator":l.value,"v-treeview-item--filtered":c.value},e.class],ripple:!1,onClick:e.onClick??d}),{...n,prepend:h?y=>{var v;return i.createVNode(i.Fragment,null,[i.createVNode(a$,{start:!1},{default:()=>[e.toggleIcon?i.createVNode(je,{density:"compact",icon:e.toggleIcon,loading:e.loading,variant:"text",onClick:f},{loader(){return i.createVNode(ls,{indeterminate:"disable-shrink",size:"20",width:"2"},null)}}):i.createVNode("div",{class:"v-treeview-item__level"},null)]}),(v=n.prepend)==null?void 0:v.call(n,y)])}:void 0})}),{}}}),Y8=X({disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:"$loading"},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:xe,default:"$checkboxIndeterminate"},falseIcon:xe,trueIcon:xe,returnObject:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],...xn()},"VTreeviewChildren"),kv=ie()({name:"VTreeviewChildren",props:Y8(),setup(e,t){let{slots:n}=t;const r=i.reactive(new Set),o=i.computed(()=>!e.disabled&&(e.openOnClick!=null?e.openOnClick:e.selectable));async function a(s){var u,c;try{if(!((u=e.items)!=null&&u.length)||!e.loadChildren)return;((c=s==null?void 0:s.children)==null?void 0:c.length)===0&&(r.add(s.value),await e.loadChildren(s.raw))}finally{r.delete(s.value)}}function l(s,u){e.selectable&&s(!u)}return()=>{var s,u;return((s=n.default)==null?void 0:s.call(n))??((u=e.items)==null?void 0:u.map(c=>{var v;const{children:d,props:f}=c,g=r.has(c.value),h={prepend:b=>{var m;return i.createVNode(i.Fragment,null,[e.selectable&&(!d||d&&!["leaf","single-leaf"].includes(e.selectStrategy))&&i.createVNode("div",null,[i.createVNode(Ua,{key:c.value,modelValue:b.isSelected,disabled:e.disabled,loading:g,color:e.selectedColor,density:e.density,indeterminate:b.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,onClick:i.withModifiers(()=>l(b.select,b.isSelected),["stop"]),onKeydown:w=>{["Enter","Space"].includes(w.key)&&(w.stopPropagation(),l(b.select,b.isSelected))}},null)]),(m=n.prepend)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})])},append:n.append?b=>{var m;return(m=n.append)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})}:void 0,title:n.title?b=>{var m;return(m=n.title)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})}:void 0,subtitle:n.subtitle?b=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...b,item:c.raw,internalItem:c})}:void 0},p=G8.filterProps(f),y=kv.filterProps(e);return d?i.createVNode(G8,i.mergeProps(p,{value:e.returnObject?c.raw:p==null?void 0:p.value}),{activator:b=>{let{props:m}=b;const w={...f,...m,value:f==null?void 0:f.value,onToggleExpand:[()=>a(c),m.onClick],onClick:o.value?[()=>a(c),m.onClick]:void 0};return i.createVNode(q8,i.mergeProps(w,{value:e.returnObject?c.raw:f.value,loading:g}),h)},default:()=>i.createVNode(kv,i.mergeProps(y,{items:d,returnObject:e.returnObject}),n)}):((v=n.item)==null?void 0:v.call(n,{props:f,item:c.raw,internalItem:c}))??i.createVNode(q8,i.mergeProps(f,{value:e.returnObject?i.toRaw(c.raw):f.value}),h)}))}}});function X8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];for(const n of e)t.push(n),n.children&&X8(n.children,t);return t}const oae=X({fluid:Boolean,openAll:Boolean,search:String,...dv({filterKeys:["title"]}),...Y8(),...Ft(ET({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand",slim:!0}),["itemType","nav","openStrategy"]),modelValue:{type:Array,default:()=>[]}},"VTreeview"),aae={name:"RtTreeView",components:{VTreeview:ie()({name:"VTreeview",props:oae(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=xT(e),o=i.toRef(e,"activeColor"),a=i.toRef(e,"baseColor"),l=i.toRef(e,"color"),s=Ve(e,"activated"),u=Ve(e,"modelValue"),c=Ve(e,"selected",e.modelValue),d=i.computed({get:()=>c.value,set(w){c.value=w,u.value=w}}),f=i.ref(),g=i.computed(()=>e.openAll?m(r.value):e.opened),h=i.computed(()=>X8(r.value)),p=i.toRef(e,"search"),{filteredItems:y}=fv(e,h,p),v=i.computed(()=>{var S;if(!p.value)return null;const w=(S=f.value)==null?void 0:S.getPath;return w?new Set(y.value.flatMap(C=>{const x=e.returnObject?C.raw:C.props.value;return[...w(x),...b(x)].map(i.toRaw)})):null});function b(w){var x,k;const S=[],C=(((x=f.value)==null?void 0:x.children.get(w))??[]).slice();for(;C.length;){const E=C.shift();E&&(S.push(E),C.push(...(((k=f.value)==null?void 0:k.children.get(E))??[]).slice()))}return S}function m(w){let S=[];for(const C of w)C.children&&(S.push(e.returnObject?i.toRaw(C.raw):C.value),C.children&&(S=S.concat(m(C.children))));return S}return i.provide(K8,{visibleIds:v}),kn({VTreeviewGroup:{activeColor:o,baseColor:a,color:l,collapseIcon:i.toRef(e,"collapseIcon"),expandIcon:i.toRef(e,"expandIcon")},VTreeviewItem:{activeClass:i.toRef(e,"activeClass"),activeColor:o,baseColor:a,color:l,density:i.toRef(e,"density"),disabled:i.toRef(e,"disabled"),lines:i.toRef(e,"lines"),variant:i.toRef(e,"variant")}}),le(()=>{const w=To.filterProps(e),S=kv.filterProps(e);return i.createVNode(To,i.mergeProps({ref:f},w,{class:["v-treeview",{"v-treeview--fluid":e.fluid},e.class],"open-strategy":"multiple",style:e.style,opened:g.value,activated:s.value,"onUpdate:activated":C=>s.value=C,selected:d.value,"onUpdate:selected":C=>d.value=C}),{default:()=>[i.createVNode(kv,i.mergeProps(S,{density:e.density,returnObject:e.returnObject,items:r.value}),n)]})}),{}}})},props:{open:{type:Array,default:()=>[]},active:{type:Array,default:()=>[]}},data:()=>({items:[{id:1,title:"Applications :",children:[{id:2,title:"Calendar : app"},{id:3,title:"Chrome : app"},{id:4,title:"Webstorm : app"}]},{id:5,title:"Documents :",children:[{id:6,title:"vuetify :",children:[{id:7,title:"src :",children:[{id:8,title:"index : ts"},{id:9,title:"bootstrap : ts"}]}]},{id:10,title:"material2 :",children:[{id:11,title:"src :",children:[{id:12,title:"v-btn : ts"},{id:13,title:"v-card : ts"},{id:14,title:"v-window : ts"}]}]}]},{id:15,title:"Downloads :",children:[{id:16,title:"October : pdf"},{id:17,title:"November : pdf"},{id:18,title:"Tutorial : html"}]},{id:19,title:"Videos :",children:[{id:20,title:"Tutorials :",children:[{id:21,title:"Basic layouts : mp4"},{id:22,title:"Advanced techniques : mp4"},{id:23,title:"All about app : dir"}]},{id:24,title:"Intro : mov"},{id:25,title:"Conference introduction : avi"}]}]}),methods:{onActiveChange(e){this.$emit("update:active",e)},onOpenChange(e){this.$emit("update:open",e)}}};function iae(e,t,n,r,o,a){const l=i.resolveComponent("v-treeview");return i.openBlock(),i.createBlock(l,{items:e.items,open:n.open,active:n.active,activatable:"","item-text":"name","item-children":"children",color:"primary","onUpdate:active":a.onActiveChange,"onUpdate:open":a.onOpenChange},null,8,["items","open","active","onUpdate:active","onUpdate:open"])}const lae=ke(aae,[["render",iae],["__scopeId","data-v-b3563243"]]),sae={name:"RtContainer",props:{fluid:{type:Boolean,default:!1},containerClass:{type:String,default:""}},computed:{getAriaLabel(){return this.dot?"Notification dot":this.content?`Badge content: ${this.content}`:this.value?`Badge value: ${this.value}`:"Badge"}}};function uae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(hv,{fluid:n.fluid,class:i.normalizeClass(n.containerClass)},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["fluid","class"])}const cae=ke(sae,[["render",uae],["__scopeId","data-v-31286e44"]]),dae={name:"RtTooltip",props:{text:{type:String,required:!0},position:{type:String,default:"bottom",validator:e=>["top","bottom","start","end"].includes(e)}}};function fae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(c8,{bottom:n.position==="bottom",top:n.position==="top",left:n.position==="start",right:n.position==="end"},{activator:i.withCtx(({props:l})=>[i.createElementVNode("span",i.normalizeProps(i.guardReactiveProps(l)),[i.renderSlot(e.$slots,"default",{},()=>[t[0]||(t[0]=i.createTextVNode("Hover me"))],!0)],16)]),default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(n.text),1)]),_:3},8,["bottom","top","left","right"])}const hae=ke(dae,[["render",fae],["__scopeId","data-v-91c27cde"]]),gae={name:"RtHorizontalRule",methods:{},props:{text:{type:String,default:""},color:{type:String,default:"primary"},thickness:{type:String,default:"2px"},margin:{type:String,default:"16px 0"}},computed:{hrStyle(){return{borderTop:`${this.thickness} solid black`,margin:this.margin,position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}}},mae={key:0,class:"v-hr-text"};function pae(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",{class:"v-hr",style:i.normalizeStyle(a.hrStyle)},[n.text?(i.openBlock(),i.createElementBlock("span",mae,i.toDisplayString(n.text),1)):i.createCommentVNode("",!0)],4)}const vae=ke(gae,[["render",pae],["__scopeId","data-v-e0f2d21f"]]),yae=i.defineComponent({name:"RtButtonGroup",props:{modelValue:{type:String,default:"YES"},toggleOptions:{type:Array,default:()=>[{value:"YES",icon:"",label:"YES"},{value:"NO",icon:"",label:"NO"},{value:"MAYBE",icon:"",label:"MAYBE"}]}},emits:["update:modelValue"],setup(e,{emit:t}){const n=i.ref(e.modelValue);return i.watch(()=>n.value,r=>{t("update:modelValue",r)}),i.watch(()=>e.modelValue,r=>{n.value=r}),{internalValue:n}}}),bae={class:"button-group-fieldset"},wae={key:1};function Sae(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("fieldset",bae,[t[1]||(t[1]=i.createElementVNode("legend",{class:"visually-hidden"},"Current",-1)),i.createVNode(KX,{modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.internalValue=l),divided:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.toggleOptions,(l,s)=>(i.openBlock(),i.createBlock(je,{key:s,value:l.value,"aria-pressed":e.internalValue===l.value?"true":"false"},{default:i.withCtx(()=>[l.icon?(i.openBlock(),i.createBlock(Ye,{key:0,icon:l.icon},null,8,["icon"])):(i.openBlock(),i.createElementBlock("span",wae,i.toDisplayString(l.label),1))]),_:2},1032,["value","aria-pressed"]))),128))]),_:1},8,["modelValue"])])}const Cae=ke(yae,[["render",Sae]]);i.reactive({isOpen:!1,component:null,props:{}});const kae={name:"RtDialogDynamic",props:{}};function xae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(Af,{modelValue:e.dialogState.isOpen,"onUpdate:modelValue":t[0]||(t[0]=l=>e.dialogState.isOpen=l),"max-width":"600"},{default:i.withCtx(()=>[i.createVNode(ra,null,{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.dialogState.component),i.mergeProps(e.dialogState.props,{onClose:e.close}),null,16,["onClose"]))]),_:1})]),_:1},8,["modelValue"])}const Eae=ke(kae,[["render",xae]]),Dae={name:"RtDialogWrapper",inheritAttrs:!1,props:{dialogVisible:{type:Boolean,required:!0},noPadding:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},dialogComponent:{type:[Object,Function,String],required:!0},dialogProps:{type:Object,default:()=>({})}},emits:["update:dialogVisible","submit-form"],computed:{internalDialogVisible:{get(){return this.dialogVisible},set(e){this.$emit("update:dialogVisible",e)}},componentListeners(){const e={...this.$attrs};return delete e["update:dialogVisible"],e}},methods:{close(){this.internalDialogVisible=!1},forwardSubmitForm(e){this.$emit("submit-form",e)}}};function Aae(e,t,n,r,o,a){return i.openBlock(),i.createBlock(Af,{modelValue:a.internalDialogVisible,"onUpdate:modelValue":t[0]||(t[0]=l=>a.internalDialogVisible=l),"max-width":"1270px",persistent:""},{default:i.withCtx(()=>[i.createVNode(ra,null,{default:i.withCtx(()=>[i.createVNode(cs,{class:i.normalizeClass({"no-padding":n.noPadding})},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.dialogComponent),i.mergeProps(n.dialogProps,{onClose:a.close,onSubmitForm:a.forwardSubmitForm}),null,16,["onClose","onSubmitForm"]))]),_:1},8,["class"])]),_:1})]),_:1},8,["modelValue"])}const Vae=ke(Dae,[["render",Aae],["__scopeId","data-v-8dcdd4c6"]]);var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gs(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ti,xv,Ev=function(e){return e&&e.Math==Math&&e},Ge=Ev(typeof globalThis=="object"&&globalThis)||Ev(typeof window=="object"&&window)||Ev(typeof self=="object"&&self)||Ev(typeof Et=="object"&&Et)||function(){return this}()||Function("return this")(),sC=Function.prototype,J8=sC.apply,_ae=sC.bind,Z8=sC.call,Q8=typeof Reflect=="object"&&Reflect.apply||(_ae?Z8.bind(J8):function(){return Z8.apply(J8,arguments)}),$8=Function.prototype,uC=$8.bind,cC=$8.call,Tae=uC&&uC.bind(cC),Tt=uC?function(e){return e&&Tae(cC,e)}:function(e){return e&&function(){return cC.apply(e,arguments)}},Kn=function(e){return typeof e=="function"},Cr=function(e){try{return!!e()}catch{return!0}},kr=!Cr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mf=Function.prototype.call,Lr=Mf.bind?Mf.bind(Mf):function(){return Mf.apply(Mf,arguments)},eP={}.propertyIsEnumerable,tP=Object.getOwnPropertyDescriptor,Pae=tP&&!eP.call({1:2},1)?function(e){var t=tP(this,e);return!!t&&t.enumerable}:eP,dC={f:Pae},Po=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nae=Tt({}.toString),Oae=Tt("".slice),ms=function(e){return Oae(Nae(e),8,-1)},fC=Ge.Object,Iae=Tt("".split),nP=Cr(function(){return!fC("z").propertyIsEnumerable(0)})?function(e){return ms(e)=="String"?Iae(e,""):fC(e)}:fC,Fae=Ge.TypeError,hC=function(e){if(e==null)throw Fae("Can't call method on "+e);return e},aa=function(e){return nP(hC(e))},ro=function(e){return typeof e=="object"?e!==null:Kn(e)},Mr={},rP=function(e){return Kn(e)?e:void 0},lc=function(e,t){return arguments.length<2?rP(Mr[e])||rP(Ge[e]):Mr[e]&&Mr[e][t]||Ge[e]&&Ge[e][t]},jf=Tt({}.isPrototypeOf),gC=lc("navigator","userAgent")||"",oP=Ge.process,aP=Ge.Deno,iP=oP&&oP.versions||aP&&aP.version,lP=iP&&iP.v8;lP&&(xv=(Ti=lP.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!xv&&gC&&(!(Ti=gC.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=gC.match(/Chrome\/(\d+)/))&&(xv=+Ti[1]);var Dv,Av=xv,ia=!!Object.getOwnPropertySymbols&&!Cr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Av&&Av<41}),mC=ia&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Rae=Ge.Object,sc=mC?function(e){return typeof e=="symbol"}:function(e){var t=lc("Symbol");return Kn(t)&&jf(t.prototype,Rae(e))},Lae=Ge.String,pC=function(e){try{return Lae(e)}catch{return"Object"}},Mae=Ge.TypeError,vC=function(e){if(Kn(e))return e;throw Mae(pC(e)+" is not a function")},Vv=function(e,t){var n=e[t];return n==null?void 0:vC(n)},jae=Ge.TypeError,zae=Object.defineProperty,Pi=Ge["__core-js_shared__"]||function(e,t){try{zae(Ge,e,{value:t,configurable:!0,writable:!0})}catch{Ge[e]=t}return t}("__core-js_shared__",{}),ps=gs(function(e){(e.exports=function(t,n){return Pi[t]||(Pi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Hae=Ge.Object,zf=function(e){return Hae(hC(e))},Uae=Tt({}.hasOwnProperty),at=Object.hasOwn||function(e,t){return Uae(zf(e),t)},Wae=0,Gae=Math.random(),Kae=Tt(1 .toString),Bv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Kae(++Wae+Gae,36)},Hf=ps("wks"),vs=Ge.Symbol,sP=vs&&vs.for,qae=mC?vs:vs&&vs.withoutSetter||Bv,Qn=function(e){if(!at(Hf,e)||!ia&&typeof Hf[e]!="string"){var t="Symbol."+e;ia&&at(vs,e)?Hf[e]=vs[e]:Hf[e]=mC&&sP?sP(t):qae(t)}return Hf[e]},Yae=Ge.TypeError,Xae=Qn("toPrimitive"),Jae=function(e,t){if(!ro(e)||sc(e))return e;var n,r=Vv(e,Xae);if(r){if(n=Lr(r,e,t),!ro(n)||sc(n))return n;throw Yae("Can't convert object to primitive value")}return function(o,a){var l,s;if(Kn(l=o.toString)&&!ro(s=Lr(l,o))||Kn(l=o.valueOf)&&!ro(s=Lr(l,o)))return s;throw jae("Can't convert object to primitive value")}(e)},uc=function(e){var t=Jae(e,"string");return sc(t)?t:t+""},yC=Ge.document,Zae=ro(yC)&&ro(yC.createElement),uP=function(e){return Zae?yC.createElement(e):{}},cP=!kr&&!Cr(function(){return Object.defineProperty(uP("div"),"a",{get:function(){return 7}}).a!=7}),dP=Object.getOwnPropertyDescriptor,Qae=kr?dP:function(e,t){if(e=aa(e),t=uc(t),cP)try{return dP(e,t)}catch{}if(at(e,t))return Po(!Lr(dC.f,e,t),e[t])},_v={f:Qae},$ae=/#|\.prototype\./,Uf=function(e,t){var n=tie[eie(e)];return n==rie||n!=nie&&(Kn(t)?Cr(t):!!t)},eie=Uf.normalize=function(e){return String(e).replace($ae,".").toLowerCase()},tie=Uf.data={},nie=Uf.NATIVE="N",rie=Uf.POLYFILL="P",oie=Uf,fP=Tt(Tt.bind),bC=function(e,t){return vC(e),t===void 0?e:fP?fP(e,t):function(){return e.apply(t,arguments)}},aie=Ge.String,iie=Ge.TypeError,jr=function(e){if(ro(e))return e;throw iie(aie(e)+" is not an object")},lie=Ge.TypeError,hP=Object.defineProperty,sie=kr?hP:function(e,t,n){if(jr(e),t=uc(t),jr(n),cP)try{return hP(e,t,n)}catch{}if("get"in n||"set"in n)throw lie("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ni={f:sie},mr=kr?function(e,t,n){return Ni.f(e,t,Po(1,n))}:function(e,t,n){return e[t]=n,e},uie=_v.f,cie=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 Q8(e,this,arguments)};return t.prototype=e.prototype,t},qa=function(e,t){var n,r,o,a,l,s,u,c,d=e.target,f=e.global,g=e.stat,h=e.proto,p=f?Ge:g?Ge[d]:(Ge[d]||{}).prototype,y=f?Mr:Mr[d]||mr(Mr,d,{})[d],v=y.prototype;for(o in t)n=!oie(f?o:d+(g?".":"#")+o,e.forced)&&p&&at(p,o),l=y[o],n&&(s=e.noTargetGet?(c=uie(p,o))&&c.value:p[o]),a=n&&s?s:t[o],n&&typeof l==typeof a||(u=e.bind&&n?bC(a,Ge):e.wrap&&n?cie(a):h&&Kn(a)?Tt(a):a,(e.sham||a&&a.sham||l&&l.sham)&&mr(u,"sham",!0),mr(y,o,u),h&&(at(Mr,r=d+"Prototype")||mr(Mr,r,{}),mr(Mr[r],o,a),e.real&&v&&!v[o]&&mr(v,o,a)))},gP=ps("keys"),Tv=function(e){return gP[e]||(gP[e]=Bv(e))},die=!Cr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),mP=Tv("IE_PROTO"),wC=Ge.Object,fie=wC.prototype,Pv=die?wC.getPrototypeOf:function(e){var t=zf(e);if(at(t,mP))return t[mP];var n=t.constructor;return Kn(n)&&t instanceof n?n.prototype:t instanceof wC?fie:null},hie=Ge.String,gie=Ge.TypeError,Nv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return jr(r),function(a){if(typeof a=="object"||Kn(a))return a;throw gie("Can't set "+hie(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),mie=Math.ceil,pie=Math.floor,SC=function(e){var t=+e;return t!=t||t===0?0:(t>0?pie:mie)(t)},vie=Math.max,yie=Math.min,CC=function(e,t){var n=SC(e);return n<0?vie(n+t,0):yie(n,t)},bie=Math.min,Wf=function(e){return(t=e.length)>0?bie(SC(t),9007199254740991):0;var t},wie=function(e){return function(t,n,r){var o,a=aa(t),l=Wf(a),s=CC(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Sie={indexOf:wie(!1)},Gf={},Cie=Sie.indexOf,pP=Tt([].push),vP=function(e,t){var n,r=aa(e),o=0,a=[];for(n in r)!at(Gf,n)&&at(r,n)&&pP(a,n);for(;t.length>o;)at(r,n=t[o++])&&(~Cie(a,n)||pP(a,n));return a},Ov=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kie=Ov.concat("length","prototype"),xie=Object.getOwnPropertyNames||function(e){return vP(e,kie)},kC={f:xie},Iv={f:Object.getOwnPropertySymbols},Eie=Tt([].concat),Die=lc("Reflect","ownKeys")||function(e){var t=kC.f(jr(e)),n=Iv.f;return n?Eie(t,n(e)):t},xC=Object.keys||function(e){return vP(e,Ov)},Aie=kr?Object.defineProperties:function(e,t){jr(e);for(var n,r=aa(t),o=xC(t),a=o.length,l=0;a>l;)Ni.f(e,n=o[l++],r[n]);return e},Vie=lc("document","documentElement"),yP=Tv("IE_PROTO"),EC=function(){},bP=function(e){return"<script>"+e+"<\/script>"},wP=function(e){e.write(bP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fv=function(){try{Dv=new ActiveXObject("htmlfile")}catch{}var e,t;Fv=typeof document<"u"?document.domain&&Dv?wP(Dv):((t=uP("iframe")).style.display="none",Vie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(bP("document.F=Object")),e.close(),e.F):wP(Dv);for(var n=Ov.length;n--;)delete Fv.prototype[Ov[n]];return Fv()};Gf[yP]=!0;var Ya=Object.create||function(e,t){var n;return e!==null?(EC.prototype=jr(e),n=new EC,EC.prototype=null,n[yP]=e):n=Fv(),t===void 0?n:Aie(n,t)},DC=function(e,t,n){var r=uc(t);r in e?Ni.f(e,r,Po(0,n)):e[r]=n},Bie=Ge.Array,_ie=Math.max,SP=function(e,t,n){for(var r=Wf(e),o=CC(t,r),a=CC(r,r),l=Bie(_ie(a-o,0)),s=0;o<a;o++,s++)DC(l,s,e[o]);return l.length=s,l},Tie=Tt("".replace),Pie=Tt("".split),Nie=Tt([].join),AC=String(Error("zxcasd").stack),CP=/\n\s*at [^:]*:[^\n]*/,Oie=CP.test(AC),Iie=/@[^\n]*\n/.test(AC)&&!/zxcasd/.test(AC),Fie=function(e,t){if(typeof e!="string")return e;if(Oie)for(;t--;)e=Tie(e,CP,"");else if(Iie)return Nie(SP(Pie(e,`
18
18
  `),t),`
19
- `);return e},Fie=function(e,t){ro(t)&&"cause"in t&&mr(e,"cause",t.cause)},Xa={},Rie=Qn("iterator"),Lie=Array.prototype,kP={};kP[Qn("toStringTag")]="z";var VC=String(kP)==="[object z]",Mie=Qn("toStringTag"),jie=Ge.Object,zie=ms(function(){return arguments}())=="Arguments",Kf=VC?ms:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=jie(e),Mie))=="string"?n:zie?ms(t):(r=ms(t))=="Object"&&Kn(t.callee)?"Arguments":r},Hie=Qn("iterator"),xP=function(e){if(e!=null)return Vv(e,Hie)||Vv(e,"@@iterator")||Xa[Kf(e)]},Uie=Ge.TypeError,EP=function(e,t,n){var r,o;jr(e);try{if(!(r=Vv(e,"return"))){if(t==="throw")throw n;return n}r=Lr(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return jr(r),n},Wie=Ge.TypeError,Rv=function(e,t){this.stopped=e,this.result=t},DP=Rv.prototype,Gie=function(e,t,n){var r,o,a,l,s,u,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=bC(t,d),y=function(b){return r&&EP(r,"normal",b),new Rv(!0,b)},v=function(b){return f?(jr(b),h?p(b[0],b[1],y):p(b[0],b[1])):h?p(b,y):p(b)};if(g)r=e;else{if(!(o=xP(e)))throw Wie(pC(e)+" is not iterable");if(function(b){return b!==void 0&&(Xa.Array===b||Lie[Rie]===b)}(o)){for(a=0,l=Wf(e);l>a;a++)if((s=v(e[a]))&&jf(DP,s))return s;return new Rv(!1)}r=function(b,m){var w=arguments.length<2?xP(b):m;if(vC(w))return jr(Lr(w,b));throw Uie(pC(b)+" is not iterable")}(e,o)}for(u=r.next;!(c=Lr(u,r)).done;){try{s=v(c.value)}catch(b){EP(r,"throw",b)}if(typeof s=="object"&&s&&jf(DP,s))return s}return new Rv(!1)},Kie=Ge.String,qf=function(e){if(Kf(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Kie(e)},qie=function(e,t){return e===void 0?arguments.length<2?"":t:qf(e)},Yie=!Cr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Po(1,7)),e.stack!==7)}),Xie=Qn("toStringTag"),Lv=Ge.Error,Jie=[].push,Yf=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=jf(BC,this);Nv?n=Nv(new Lv(void 0),o?Pv(this):BC):(n=o?this:Ya(BC),mr(n,Xie,"Error")),mr(n,"message",qie(t,"")),Yie&&mr(n,"stack",Iie(n.stack,1)),Fie(n,r);var a=[];return Gie(e,Jie,{that:a}),mr(n,"errors",a),n};Nv?Nv(Yf,Lv):function(e,t){for(var n=Eie(t),r=Ni.f,o=_v.f,a=0;a<n.length;a++){var l=n[a];at(e,l)||r(e,l,o(t,l))}}(Yf,Lv);var BC=Yf.prototype=Ya(Lv.prototype,{constructor:Po(1,Yf),message:Po(1,""),name:Po(1,"AggregateError")});qa({global:!0},{AggregateError:Yf});var Zie=Tt(Function.toString);Kn(Pi.inspectSource)||(Pi.inspectSource=function(e){return Zie(e)});var Mv,Xf,jv,AP=Pi.inspectSource,VP=Ge.WeakMap,Qie=Kn(VP)&&/native code/.test(AP(VP)),_C=Ge.TypeError,$ie=Ge.WeakMap;if(Qie||Pi.state){var ys=Pi.state||(Pi.state=new $ie),ele=Tt(ys.get),BP=Tt(ys.has),tle=Tt(ys.set);Mv=function(e,t){if(BP(ys,e))throw new _C("Object already initialized");return t.facade=e,tle(ys,e,t),t},Xf=function(e){return ele(ys,e)||{}},jv=function(e){return BP(ys,e)}}else{var cc=Tv("state");Gf[cc]=!0,Mv=function(e,t){if(at(e,cc))throw new _C("Object already initialized");return t.facade=e,mr(e,cc,t),t},Xf=function(e){return at(e,cc)?e[cc]:{}},jv=function(e){return at(e,cc)}}var Oi,_P,TP,dc={set:Mv,get:Xf,has:jv,enforce:function(e){return jv(e)?Xf(e):Mv(e,{})},getterFor:function(e){return function(t){var n;if(!ro(t)||(n=Xf(t)).type!==e)throw _C("Incompatible receiver, "+e+" required");return n}}},PP=Function.prototype,nle=kr&&Object.getOwnPropertyDescriptor,NP=at(PP,"name"),rle={PROPER:NP&&(function(){}).name==="something",CONFIGURABLE:NP&&(!kr||kr&&nle(PP,"name").configurable)},zv=function(e,t,n,r){mr(e,t,n)},TC=Qn("iterator"),OP=!1;[].keys&&("next"in(TP=[].keys())?(_P=Pv(Pv(TP)))!==Object.prototype&&(Oi=_P):OP=!0);var ole=Oi==null||Cr(function(){var e={};return Oi[TC].call(e)!==e});Oi=ole?{}:Ya(Oi),Kn(Oi[TC])||zv(Oi,TC,function(){return this});var IP={IteratorPrototype:Oi,BUGGY_SAFARI_ITERATORS:OP},ale=VC?{}.toString:function(){return"[object "+Kf(this)+"]"},ile=Ni.f,FP=Qn("toStringTag"),Hv=function(e,t,n,r){if(e){var o=n?e:e.prototype;at(o,FP)||ile(o,FP,{configurable:!0,value:t}),r&&!VC&&mr(o,"toString",ale)}},lle=IP.IteratorPrototype,sle=function(){return this},ule=rle.PROPER,PC=IP.BUGGY_SAFARI_ITERATORS,cle=Qn("iterator"),dle=function(){return this},RP=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=Ya(lle,{next:Po(1,m)}),Hv(v,S,!1,!0),Xa[S]=sle})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!PC&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[cle]||g["@@iterator"]||o&&g[o],p=!PC&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=Pv(y.call(new e)))!==Object.prototype&&s.next&&(Hv(s,d,!0,!0),Xa[d]=dle),ule&&o=="values"&&h&&h.name!=="values"&&(f=!0,p=function(){return Lr(h,this)}),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||qa({target:t,proto:!0,forced:PC||f},u)),Xa[t]=p,u},fle=dc.set,hle=dc.getterFor("Array Iterator");RP(Array,"Array",function(e,t){fle(this,{type:"Array Iterator",target:aa(e),index:0,kind:t})},function(){var e=hle(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Xa.Arguments=Xa.Array;var gle=Tt("".charAt),LP=Tt("".charCodeAt),mle=Tt("".slice),ple=function(e){return function(t,n){var r,o,a=qf(hC(t)),l=SC(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=LP(a,l))<55296||r>56319||l+1===s||(o=LP(a,l+1))<56320||o>57343?e?gle(a,l):r:e?mle(a,l,l+2):o-56320+(r-55296<<10)+65536}},vle={charAt:ple(!0)}.charAt,yle=dc.set,ble=dc.getterFor("String Iterator");RP(String,"String",function(e){yle(this,{type:"String Iterator",string:qf(e),index:0})},function(){var e,t=ble(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vle(n,r),t.index+=e.length,{value:e,done:!1})});var wle=Mr.AggregateError,MP=Qn("toStringTag");for(var NC 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 jP=Ge[NC],OC=jP&&jP.prototype;OC&&Kf(OC)!==MP&&mr(OC,MP,NC),Xa[NC]=Xa.Array}var Ii,Uv,Sle=wle,Wv=function(e){return e&&e.Math==Math&&e},ze=Wv(typeof globalThis=="object"&&globalThis)||Wv(typeof window=="object"&&window)||Wv(typeof self=="object"&&self)||Wv(typeof Et=="object"&&Et)||function(){return this}()||Function("return this")(),On=function(e){try{return!!e()}catch{return!0}},la=!On(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jf=Function.prototype.call,qn=Jf.bind?Jf.bind(Jf):function(){return Jf.apply(Jf,arguments)},zP={}.propertyIsEnumerable,HP=Object.getOwnPropertyDescriptor,Cle=HP&&!zP.call({1:2},1)?function(e){var t=HP(this,e);return!!t&&t.enumerable}:zP,kle={f:Cle},Fi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},UP=Function.prototype,IC=UP.bind,FC=UP.call,xle=IC&&IC.bind(FC),wt=IC?function(e){return e&&xle(FC,e)}:function(e){return e&&function(){return FC.apply(e,arguments)}},Ele=wt({}.toString),Dle=wt("".slice),bs=function(e){return Dle(Ele(e),8,-1)},RC=ze.Object,Ale=wt("".split),WP=On(function(){return!RC("z").propertyIsEnumerable(0)})?function(e){return bs(e)=="String"?Ale(e,""):RC(e)}:RC,Vle=ze.TypeError,Gv=function(e){if(e==null)throw Vle("Can't call method on "+e);return e},fc=function(e){return WP(Gv(e))},En=function(e){return typeof e=="function"},sa=function(e){return typeof e=="object"?e!==null:En(e)},Ble=function(e){return En(e)?e:void 0},Zf=function(e,t){return arguments.length<2?Ble(ze[e]):ze[e]&&ze[e][t]},Kv=wt({}.isPrototypeOf),LC=Zf("navigator","userAgent")||"",GP=ze.process,KP=ze.Deno,qP=GP&&GP.versions||KP&&KP.version,YP=qP&&qP.v8;YP&&(Uv=(Ii=YP.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!Uv&&LC&&(!(Ii=LC.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=LC.match(/Chrome\/(\d+)/))&&(Uv=+Ii[1]);var XP=Uv,MC=!!Object.getOwnPropertySymbols&&!On(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XP&&XP<41}),jC=MC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_le=ze.Object,zC=jC?function(e){return typeof e=="symbol"}:function(e){var t=Zf("Symbol");return En(t)&&Kv(t.prototype,_le(e))},Tle=ze.String,HC=function(e){try{return Tle(e)}catch{return"Object"}},Ple=ze.TypeError,UC=function(e){if(En(e))return e;throw Ple(HC(e)+" is not a function")},Qf=function(e,t){var n=e[t];return n==null?void 0:UC(n)},Nle=ze.TypeError,Ole=Object.defineProperty,WC=function(e,t){try{Ole(ze,e,{value:t,configurable:!0,writable:!0})}catch{ze[e]=t}return t},Ri=ze["__core-js_shared__"]||WC("__core-js_shared__",{}),GC=gs(function(e){(e.exports=function(t,n){return Ri[t]||(Ri[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ile=ze.Object,KC=function(e){return Ile(Gv(e))},Fle=wt({}.hasOwnProperty),xr=Object.hasOwn||function(e,t){return Fle(KC(e),t)},Rle=0,Lle=Math.random(),Mle=wt(1 .toString),JP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Mle(++Rle+Lle,36)},$f=GC("wks"),ws=ze.Symbol,ZP=ws&&ws.for,jle=jC?ws:ws&&ws.withoutSetter||JP,pr=function(e){if(!xr($f,e)||!MC&&typeof $f[e]!="string"){var t="Symbol."+e;MC&&xr(ws,e)?$f[e]=ws[e]:$f[e]=jC&&ZP?ZP(t):jle(t)}return $f[e]},zle=ze.TypeError,Hle=pr("toPrimitive"),Ule=function(e,t){if(!sa(e)||zC(e))return e;var n,r=Qf(e,Hle);if(r){if(n=qn(r,e,t),!sa(n)||zC(n))return n;throw zle("Can't convert object to primitive value")}return function(o,a){var l,s;if(En(l=o.toString)&&!sa(s=qn(l,o))||En(l=o.valueOf)&&!sa(s=qn(l,o)))return s;throw Nle("Can't convert object to primitive value")}(e)},qC=function(e){var t=Ule(e,"string");return zC(t)?t:t+""},YC=ze.document,Wle=sa(YC)&&sa(YC.createElement),XC=function(e){return Wle?YC.createElement(e):{}},QP=!la&&!On(function(){return Object.defineProperty(XC("div"),"a",{get:function(){return 7}}).a!=7}),$P=Object.getOwnPropertyDescriptor,Gle=la?$P:function(e,t){if(e=fc(e),t=qC(t),QP)try{return $P(e,t)}catch{}if(xr(e,t))return Fi(!qn(kle.f,e,t),e[t])},JC={f:Gle},Kle=ze.String,qle=ze.TypeError,zr=function(e){if(sa(e))return e;throw qle(Kle(e)+" is not an object")},Yle=ze.TypeError,eN=Object.defineProperty,Xle=la?eN:function(e,t,n){if(zr(e),t=qC(t),zr(n),QP)try{return eN(e,t,n)}catch{}if("get"in n||"set"in n)throw Yle("Accessors not supported");return"value"in n&&(e[t]=n.value),e},hc={f:Xle},Er=la?function(e,t,n){return hc.f(e,t,Fi(1,n))}:function(e,t,n){return e[t]=n,e},Jle=wt(Function.toString);En(Ri.inspectSource)||(Ri.inspectSource=function(e){return Jle(e)});var qv,eh,Yv,ZC=Ri.inspectSource,tN=ze.WeakMap,Zle=En(tN)&&/native code/.test(ZC(tN)),nN=GC("keys"),QC=function(e){return nN[e]||(nN[e]=JP(e))},$C={},ek=ze.TypeError,Qle=ze.WeakMap;if(Zle||Ri.state){var Ss=Ri.state||(Ri.state=new Qle),$le=wt(Ss.get),rN=wt(Ss.has),ese=wt(Ss.set);qv=function(e,t){if(rN(Ss,e))throw new ek("Object already initialized");return t.facade=e,ese(Ss,e,t),t},eh=function(e){return $le(Ss,e)||{}},Yv=function(e){return rN(Ss,e)}}else{var gc=QC("state");$C[gc]=!0,qv=function(e,t){if(xr(e,gc))throw new ek("Object already initialized");return t.facade=e,Er(e,gc,t),t},eh=function(e){return xr(e,gc)?e[gc]:{}},Yv=function(e){return xr(e,gc)}}var Cs={set:qv,get:eh,has:Yv,enforce:function(e){return Yv(e)?eh(e):qv(e,{})},getterFor:function(e){return function(t){var n;if(!sa(t)||(n=eh(t)).type!==e)throw ek("Incompatible receiver, "+e+" required");return n}}},oN=Function.prototype,tse=la&&Object.getOwnPropertyDescriptor,aN=xr(oN,"name"),tk={PROPER:aN&&(function(){}).name==="something",CONFIGURABLE:aN&&(!la||la&&tse(oN,"name").configurable)},ks=gs(function(e){var t=tk.CONFIGURABLE,n=Cs.get,r=Cs.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;En(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xr(s,"name")||t&&s.name!==h)&&Er(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==ze?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Er(a,l,s)):f?a[l]=s:WC(l,s)})(Function.prototype,"toString",function(){return En(this)&&n(this).source||ZC(this)})}),nse=Math.ceil,rse=Math.floor,nk=function(e){var t=+e;return t!=t||t===0?0:(t>0?rse:nse)(t)},ose=Math.max,ase=Math.min,rk=function(e,t){var n=nk(e);return n<0?ose(n+t,0):ase(n,t)},ise=Math.min,iN=function(e){return e>0?ise(nk(e),9007199254740991):0},Xv=function(e){return iN(e.length)},lse=function(e){return function(t,n,r){var o,a=fc(t),l=Xv(a),s=rk(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},sse={indexOf:lse(!1)}.indexOf,lN=wt([].push),sN=function(e,t){var n,r=fc(e),o=0,a=[];for(n in r)!xr($C,n)&&xr(r,n)&&lN(a,n);for(;t.length>o;)xr(r,n=t[o++])&&(~sse(a,n)||lN(a,n));return a},Jv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],use=Jv.concat("length","prototype"),cse=Object.getOwnPropertyNames||function(e){return sN(e,use)},dse={f:cse},fse={f:Object.getOwnPropertySymbols},hse=wt([].concat),gse=Zf("Reflect","ownKeys")||function(e){var t=dse.f(zr(e)),n=fse.f;return n?hse(t,n(e)):t},uN=function(e,t){for(var n=gse(t),r=hc.f,o=JC.f,a=0;a<n.length;a++){var l=n[a];xr(e,l)||r(e,l,o(t,l))}},mse=/#|\.prototype\./,th=function(e,t){var n=vse[pse(e)];return n==bse||n!=yse&&(En(t)?On(t):!!t)},pse=th.normalize=function(e){return String(e).replace(mse,".").toLowerCase()},vse=th.data={},yse=th.NATIVE="N",bse=th.POLYFILL="P",wse=th,Sse=JC.f,nh=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?ze:c?ze[s]||WC(s,{}):(ze[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=Sse(n,r))&&l.value:n[r],!wse(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;uN(a,o)}(e.sham||o&&o.sham)&&Er(a,"sham",!0),ks(n,r,a,e)}},cN={};cN[pr("toStringTag")]="z";var Zv,ok=String(cN)==="[object z]",Cse=pr("toStringTag"),kse=ze.Object,xse=bs(function(){return arguments}())=="Arguments",Qv=ok?bs:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=kse(e),Cse))=="string"?n:xse?bs(t):(r=bs(t))=="Object"&&En(t.callee)?"Arguments":r},Ese=ze.String,xs=function(e){if(Qv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ese(e)},Dse=function(){var e=zr(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},ak=ze.RegExp,dN=On(function(){var e=ak("a","y");return e.lastIndex=2,e.exec("abcd")!=null});dN||On(function(){return!ak("a","y").sticky});var Ase=dN||On(function(){var e=ak("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),Vse={BROKEN_CARET:Ase},Bse=Object.keys||function(e){return sN(e,Jv)},_se=la?Object.defineProperties:function(e,t){zr(e);for(var n,r=fc(t),o=Bse(t),a=o.length,l=0;a>l;)hc.f(e,n=o[l++],r[n]);return e},Tse=Zf("document","documentElement"),fN=QC("IE_PROTO"),ik=function(){},hN=function(e){return"<script>"+e+"<\/script>"},gN=function(e){e.write(hN("")),e.close();var t=e.parentWindow.Object;return e=null,t},$v=function(){try{Zv=new ActiveXObject("htmlfile")}catch{}var e,t;$v=typeof document<"u"?document.domain&&Zv?gN(Zv):((t=XC("iframe")).style.display="none",Tse.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(hN("document.F=Object")),e.close(),e.F):gN(Zv);for(var n=Jv.length;n--;)delete $v.prototype[Jv[n]];return $v()};$C[fN]=!0;var mN,lk,rh=Object.create||function(e,t){var n;return e!==null?(ik.prototype=zr(e),n=new ik,ik.prototype=null,n[fN]=e):n=$v(),t===void 0?n:_se(n,t)},Pse=ze.RegExp,Nse=On(function(){var e=Pse(".","s");return!(e.dotAll&&e.exec(`
20
- `)&&e.flags==="s")}),Ose=ze.RegExp,Ise=On(function(){var e=Ose("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Fse=Cs.get,Rse=GC("native-string-replace",String.prototype.replace),ey=RegExp.prototype.exec,sk=ey,Lse=wt("".charAt),Mse=wt("".indexOf),jse=wt("".replace),uk=wt("".slice),ck=(lk=/b*/g,qn(ey,mN=/a/,"a"),qn(ey,lk,"a"),mN.lastIndex!==0||lk.lastIndex!==0),pN=Vse.BROKEN_CARET,dk=/()??/.exec("")[1]!==void 0;(ck||dk||pN||Nse||Ise)&&(sk=function(e){var t,n,r,o,a,l,s,u=this,c=Fse(u),d=xs(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=qn(sk,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=pN&&u.sticky,p=qn(Dse,u),y=u.source,v=0,b=d;if(h&&(p=jse(p,"y",""),Mse(p,"g")===-1&&(p+="g"),b=uk(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Lse(d,u.lastIndex-1)!==`
21
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),dk&&(n=new RegExp("^"+y+"$(?!\\s)",p)),ck&&(r=u.lastIndex),o=qn(ey,h?n:u,b),h?o?(o.input=uk(o.input,v),o[0]=uk(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:ck&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),dk&&o&&o.length>1&&qn(Rse,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=rh(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var ty=sk;nh({target:"RegExp",proto:!0,forced:/./.exec!==ty},{exec:ty});var zse=pr("species"),vN=RegExp.prototype,Hse=wt("".charAt),yN=wt("".charCodeAt),Use=wt("".slice),Wse=function(e){return function(t,n){var r,o,a=xs(Gv(t)),l=nk(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=yN(a,l))<55296||r>56319||l+1===s||(o=yN(a,l+1))<56320||o>57343?e?Hse(a,l):r:e?Use(a,l,l+2):o-56320+(r-55296<<10)+65536}},bN={charAt:Wse(!0)},Gse=bN.charAt,Kse=function(e,t,n){return t+(n?Gse(e,t).length:1)},qse=ze.TypeError,wN=function(e,t){var n=e.exec;if(En(n)){var r=qn(n,e,t);return r!==null&&zr(r),r}if(bs(e)==="RegExp")return qn(ty,e,t);throw qse("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=pr(e),a=!On(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!On(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[zse]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=wt(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=wt(c),y=d.exec;return y===ty||y===vN.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});ks(String.prototype,e,u[0]),ks(vN,o,u[1])}})("match",function(e,t,n){return[function(r){var o=Gv(this),a=r==null?void 0:Qf(r,e);return a?qn(a,r,o):new RegExp(r)[e](xs(o))},function(r){var o=zr(this),a=xs(r),l=n(t,o,a);if(l.done)return l.value;if(!o.global)return wN(o,a);var s=o.unicode;o.lastIndex=0;for(var u,c=[],d=0;(u=wN(o,a))!==null;){var f=xs(u[0]);c[d]=f,f===""&&(o.lastIndex=Kse(a,iN(o.lastIndex),s)),d++}return d===0?null:c}]}),nh({global:!0},{globalThis:ze});var Yse=!On(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SN=QC("IE_PROTO"),fk=ze.Object,Xse=fk.prototype,oh=Yse?fk.getPrototypeOf:function(e){var t=KC(e);if(xr(t,SN))return t[SN];var n=t.constructor;return En(n)&&t instanceof n?n.prototype:t instanceof fk?Xse:null},Jse=ze.String,Zse=ze.TypeError,mc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=wt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return zr(r),function(a){if(typeof a=="object"||En(a))return a;throw Zse("Can't set "+Jse(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Qse=ze.Array,$se=Math.max,eue=wt("".replace),tue=wt("".split),nue=wt([].join),hk=String(Error("zxcasd").stack),CN=/\n\s*at [^:]*:[^\n]*/,rue=CN.test(hk),oue=/@[^\n]*\n/.test(hk)&&!/zxcasd/.test(hk),aue=function(e,t){if(typeof e!="string")return e;if(rue)for(;t--;)e=eue(e,CN,"");else if(oue)return nue(function(n,r,o){for(var a,l,s,u,c=Xv(n),d=rk(r,c),f=rk(c,c),g=Qse($se(f-d,0)),h=0;d<f;d++,h++)a=g,l=h,s=n[d],u=void 0,(u=qC(l))in a?hc.f(a,u,Fi(0,s)):a[u]=s;return g.length=h,g}(tue(e,`
19
+ `);return e},Rie=function(e,t){ro(t)&&"cause"in t&&mr(e,"cause",t.cause)},Xa={},Lie=Qn("iterator"),Mie=Array.prototype,kP={};kP[Qn("toStringTag")]="z";var VC=String(kP)==="[object z]",jie=Qn("toStringTag"),zie=Ge.Object,Hie=ms(function(){return arguments}())=="Arguments",Kf=VC?ms:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=zie(e),jie))=="string"?n:Hie?ms(t):(r=ms(t))=="Object"&&Kn(t.callee)?"Arguments":r},Uie=Qn("iterator"),xP=function(e){if(e!=null)return Vv(e,Uie)||Vv(e,"@@iterator")||Xa[Kf(e)]},Wie=Ge.TypeError,EP=function(e,t,n){var r,o;jr(e);try{if(!(r=Vv(e,"return"))){if(t==="throw")throw n;return n}r=Lr(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return jr(r),n},Gie=Ge.TypeError,Rv=function(e,t){this.stopped=e,this.result=t},DP=Rv.prototype,Kie=function(e,t,n){var r,o,a,l,s,u,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=bC(t,d),y=function(b){return r&&EP(r,"normal",b),new Rv(!0,b)},v=function(b){return f?(jr(b),h?p(b[0],b[1],y):p(b[0],b[1])):h?p(b,y):p(b)};if(g)r=e;else{if(!(o=xP(e)))throw Gie(pC(e)+" is not iterable");if(function(b){return b!==void 0&&(Xa.Array===b||Mie[Lie]===b)}(o)){for(a=0,l=Wf(e);l>a;a++)if((s=v(e[a]))&&jf(DP,s))return s;return new Rv(!1)}r=function(b,m){var w=arguments.length<2?xP(b):m;if(vC(w))return jr(Lr(w,b));throw Wie(pC(b)+" is not iterable")}(e,o)}for(u=r.next;!(c=Lr(u,r)).done;){try{s=v(c.value)}catch(b){EP(r,"throw",b)}if(typeof s=="object"&&s&&jf(DP,s))return s}return new Rv(!1)},qie=Ge.String,qf=function(e){if(Kf(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qie(e)},Yie=function(e,t){return e===void 0?arguments.length<2?"":t:qf(e)},Xie=!Cr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Po(1,7)),e.stack!==7)}),Jie=Qn("toStringTag"),Lv=Ge.Error,Zie=[].push,Yf=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=jf(BC,this);Nv?n=Nv(new Lv(void 0),o?Pv(this):BC):(n=o?this:Ya(BC),mr(n,Jie,"Error")),mr(n,"message",Yie(t,"")),Xie&&mr(n,"stack",Fie(n.stack,1)),Rie(n,r);var a=[];return Kie(e,Zie,{that:a}),mr(n,"errors",a),n};Nv?Nv(Yf,Lv):function(e,t){for(var n=Die(t),r=Ni.f,o=_v.f,a=0;a<n.length;a++){var l=n[a];at(e,l)||r(e,l,o(t,l))}}(Yf,Lv);var BC=Yf.prototype=Ya(Lv.prototype,{constructor:Po(1,Yf),message:Po(1,""),name:Po(1,"AggregateError")});qa({global:!0},{AggregateError:Yf});var Qie=Tt(Function.toString);Kn(Pi.inspectSource)||(Pi.inspectSource=function(e){return Qie(e)});var Mv,Xf,jv,AP=Pi.inspectSource,VP=Ge.WeakMap,$ie=Kn(VP)&&/native code/.test(AP(VP)),_C=Ge.TypeError,ele=Ge.WeakMap;if($ie||Pi.state){var ys=Pi.state||(Pi.state=new ele),tle=Tt(ys.get),BP=Tt(ys.has),nle=Tt(ys.set);Mv=function(e,t){if(BP(ys,e))throw new _C("Object already initialized");return t.facade=e,nle(ys,e,t),t},Xf=function(e){return tle(ys,e)||{}},jv=function(e){return BP(ys,e)}}else{var cc=Tv("state");Gf[cc]=!0,Mv=function(e,t){if(at(e,cc))throw new _C("Object already initialized");return t.facade=e,mr(e,cc,t),t},Xf=function(e){return at(e,cc)?e[cc]:{}},jv=function(e){return at(e,cc)}}var Oi,_P,TP,dc={set:Mv,get:Xf,has:jv,enforce:function(e){return jv(e)?Xf(e):Mv(e,{})},getterFor:function(e){return function(t){var n;if(!ro(t)||(n=Xf(t)).type!==e)throw _C("Incompatible receiver, "+e+" required");return n}}},PP=Function.prototype,rle=kr&&Object.getOwnPropertyDescriptor,NP=at(PP,"name"),ole={PROPER:NP&&(function(){}).name==="something",CONFIGURABLE:NP&&(!kr||kr&&rle(PP,"name").configurable)},zv=function(e,t,n,r){mr(e,t,n)},TC=Qn("iterator"),OP=!1;[].keys&&("next"in(TP=[].keys())?(_P=Pv(Pv(TP)))!==Object.prototype&&(Oi=_P):OP=!0);var ale=Oi==null||Cr(function(){var e={};return Oi[TC].call(e)!==e});Oi=ale?{}:Ya(Oi),Kn(Oi[TC])||zv(Oi,TC,function(){return this});var IP={IteratorPrototype:Oi,BUGGY_SAFARI_ITERATORS:OP},ile=VC?{}.toString:function(){return"[object "+Kf(this)+"]"},lle=Ni.f,FP=Qn("toStringTag"),Hv=function(e,t,n,r){if(e){var o=n?e:e.prototype;at(o,FP)||lle(o,FP,{configurable:!0,value:t}),r&&!VC&&mr(o,"toString",ile)}},sle=IP.IteratorPrototype,ule=function(){return this},cle=ole.PROPER,PC=IP.BUGGY_SAFARI_ITERATORS,dle=Qn("iterator"),fle=function(){return this},RP=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=Ya(sle,{next:Po(1,m)}),Hv(v,S,!1,!0),Xa[S]=ule})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!PC&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[dle]||g["@@iterator"]||o&&g[o],p=!PC&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=Pv(y.call(new e)))!==Object.prototype&&s.next&&(Hv(s,d,!0,!0),Xa[d]=fle),cle&&o=="values"&&h&&h.name!=="values"&&(f=!0,p=function(){return Lr(h,this)}),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||qa({target:t,proto:!0,forced:PC||f},u)),Xa[t]=p,u},hle=dc.set,gle=dc.getterFor("Array Iterator");RP(Array,"Array",function(e,t){hle(this,{type:"Array Iterator",target:aa(e),index:0,kind:t})},function(){var e=gle(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Xa.Arguments=Xa.Array;var mle=Tt("".charAt),LP=Tt("".charCodeAt),ple=Tt("".slice),vle=function(e){return function(t,n){var r,o,a=qf(hC(t)),l=SC(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=LP(a,l))<55296||r>56319||l+1===s||(o=LP(a,l+1))<56320||o>57343?e?mle(a,l):r:e?ple(a,l,l+2):o-56320+(r-55296<<10)+65536}},yle={charAt:vle(!0)}.charAt,ble=dc.set,wle=dc.getterFor("String Iterator");RP(String,"String",function(e){ble(this,{type:"String Iterator",string:qf(e),index:0})},function(){var e,t=wle(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=yle(n,r),t.index+=e.length,{value:e,done:!1})});var Sle=Mr.AggregateError,MP=Qn("toStringTag");for(var NC 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 jP=Ge[NC],OC=jP&&jP.prototype;OC&&Kf(OC)!==MP&&mr(OC,MP,NC),Xa[NC]=Xa.Array}var Ii,Uv,Cle=Sle,Wv=function(e){return e&&e.Math==Math&&e},ze=Wv(typeof globalThis=="object"&&globalThis)||Wv(typeof window=="object"&&window)||Wv(typeof self=="object"&&self)||Wv(typeof Et=="object"&&Et)||function(){return this}()||Function("return this")(),On=function(e){try{return!!e()}catch{return!0}},la=!On(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jf=Function.prototype.call,qn=Jf.bind?Jf.bind(Jf):function(){return Jf.apply(Jf,arguments)},zP={}.propertyIsEnumerable,HP=Object.getOwnPropertyDescriptor,kle=HP&&!zP.call({1:2},1)?function(e){var t=HP(this,e);return!!t&&t.enumerable}:zP,xle={f:kle},Fi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},UP=Function.prototype,IC=UP.bind,FC=UP.call,Ele=IC&&IC.bind(FC),wt=IC?function(e){return e&&Ele(FC,e)}:function(e){return e&&function(){return FC.apply(e,arguments)}},Dle=wt({}.toString),Ale=wt("".slice),bs=function(e){return Ale(Dle(e),8,-1)},RC=ze.Object,Vle=wt("".split),WP=On(function(){return!RC("z").propertyIsEnumerable(0)})?function(e){return bs(e)=="String"?Vle(e,""):RC(e)}:RC,Ble=ze.TypeError,Gv=function(e){if(e==null)throw Ble("Can't call method on "+e);return e},fc=function(e){return WP(Gv(e))},En=function(e){return typeof e=="function"},sa=function(e){return typeof e=="object"?e!==null:En(e)},_le=function(e){return En(e)?e:void 0},Zf=function(e,t){return arguments.length<2?_le(ze[e]):ze[e]&&ze[e][t]},Kv=wt({}.isPrototypeOf),LC=Zf("navigator","userAgent")||"",GP=ze.process,KP=ze.Deno,qP=GP&&GP.versions||KP&&KP.version,YP=qP&&qP.v8;YP&&(Uv=(Ii=YP.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!Uv&&LC&&(!(Ii=LC.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=LC.match(/Chrome\/(\d+)/))&&(Uv=+Ii[1]);var XP=Uv,MC=!!Object.getOwnPropertySymbols&&!On(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XP&&XP<41}),jC=MC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Tle=ze.Object,zC=jC?function(e){return typeof e=="symbol"}:function(e){var t=Zf("Symbol");return En(t)&&Kv(t.prototype,Tle(e))},Ple=ze.String,HC=function(e){try{return Ple(e)}catch{return"Object"}},Nle=ze.TypeError,UC=function(e){if(En(e))return e;throw Nle(HC(e)+" is not a function")},Qf=function(e,t){var n=e[t];return n==null?void 0:UC(n)},Ole=ze.TypeError,Ile=Object.defineProperty,WC=function(e,t){try{Ile(ze,e,{value:t,configurable:!0,writable:!0})}catch{ze[e]=t}return t},Ri=ze["__core-js_shared__"]||WC("__core-js_shared__",{}),GC=gs(function(e){(e.exports=function(t,n){return Ri[t]||(Ri[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Fle=ze.Object,KC=function(e){return Fle(Gv(e))},Rle=wt({}.hasOwnProperty),xr=Object.hasOwn||function(e,t){return Rle(KC(e),t)},Lle=0,Mle=Math.random(),jle=wt(1 .toString),JP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+jle(++Lle+Mle,36)},$f=GC("wks"),ws=ze.Symbol,ZP=ws&&ws.for,zle=jC?ws:ws&&ws.withoutSetter||JP,pr=function(e){if(!xr($f,e)||!MC&&typeof $f[e]!="string"){var t="Symbol."+e;MC&&xr(ws,e)?$f[e]=ws[e]:$f[e]=jC&&ZP?ZP(t):zle(t)}return $f[e]},Hle=ze.TypeError,Ule=pr("toPrimitive"),Wle=function(e,t){if(!sa(e)||zC(e))return e;var n,r=Qf(e,Ule);if(r){if(n=qn(r,e,t),!sa(n)||zC(n))return n;throw Hle("Can't convert object to primitive value")}return function(o,a){var l,s;if(En(l=o.toString)&&!sa(s=qn(l,o))||En(l=o.valueOf)&&!sa(s=qn(l,o)))return s;throw Ole("Can't convert object to primitive value")}(e)},qC=function(e){var t=Wle(e,"string");return zC(t)?t:t+""},YC=ze.document,Gle=sa(YC)&&sa(YC.createElement),XC=function(e){return Gle?YC.createElement(e):{}},QP=!la&&!On(function(){return Object.defineProperty(XC("div"),"a",{get:function(){return 7}}).a!=7}),$P=Object.getOwnPropertyDescriptor,Kle=la?$P:function(e,t){if(e=fc(e),t=qC(t),QP)try{return $P(e,t)}catch{}if(xr(e,t))return Fi(!qn(xle.f,e,t),e[t])},JC={f:Kle},qle=ze.String,Yle=ze.TypeError,zr=function(e){if(sa(e))return e;throw Yle(qle(e)+" is not an object")},Xle=ze.TypeError,eN=Object.defineProperty,Jle=la?eN:function(e,t,n){if(zr(e),t=qC(t),zr(n),QP)try{return eN(e,t,n)}catch{}if("get"in n||"set"in n)throw Xle("Accessors not supported");return"value"in n&&(e[t]=n.value),e},hc={f:Jle},Er=la?function(e,t,n){return hc.f(e,t,Fi(1,n))}:function(e,t,n){return e[t]=n,e},Zle=wt(Function.toString);En(Ri.inspectSource)||(Ri.inspectSource=function(e){return Zle(e)});var qv,eh,Yv,ZC=Ri.inspectSource,tN=ze.WeakMap,Qle=En(tN)&&/native code/.test(ZC(tN)),nN=GC("keys"),QC=function(e){return nN[e]||(nN[e]=JP(e))},$C={},ek=ze.TypeError,$le=ze.WeakMap;if(Qle||Ri.state){var Ss=Ri.state||(Ri.state=new $le),ese=wt(Ss.get),rN=wt(Ss.has),tse=wt(Ss.set);qv=function(e,t){if(rN(Ss,e))throw new ek("Object already initialized");return t.facade=e,tse(Ss,e,t),t},eh=function(e){return ese(Ss,e)||{}},Yv=function(e){return rN(Ss,e)}}else{var gc=QC("state");$C[gc]=!0,qv=function(e,t){if(xr(e,gc))throw new ek("Object already initialized");return t.facade=e,Er(e,gc,t),t},eh=function(e){return xr(e,gc)?e[gc]:{}},Yv=function(e){return xr(e,gc)}}var Cs={set:qv,get:eh,has:Yv,enforce:function(e){return Yv(e)?eh(e):qv(e,{})},getterFor:function(e){return function(t){var n;if(!sa(t)||(n=eh(t)).type!==e)throw ek("Incompatible receiver, "+e+" required");return n}}},oN=Function.prototype,nse=la&&Object.getOwnPropertyDescriptor,aN=xr(oN,"name"),tk={PROPER:aN&&(function(){}).name==="something",CONFIGURABLE:aN&&(!la||la&&nse(oN,"name").configurable)},ks=gs(function(e){var t=tk.CONFIGURABLE,n=Cs.get,r=Cs.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;En(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xr(s,"name")||t&&s.name!==h)&&Er(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==ze?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Er(a,l,s)):f?a[l]=s:WC(l,s)})(Function.prototype,"toString",function(){return En(this)&&n(this).source||ZC(this)})}),rse=Math.ceil,ose=Math.floor,nk=function(e){var t=+e;return t!=t||t===0?0:(t>0?ose:rse)(t)},ase=Math.max,ise=Math.min,rk=function(e,t){var n=nk(e);return n<0?ase(n+t,0):ise(n,t)},lse=Math.min,iN=function(e){return e>0?lse(nk(e),9007199254740991):0},Xv=function(e){return iN(e.length)},sse=function(e){return function(t,n,r){var o,a=fc(t),l=Xv(a),s=rk(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},use={indexOf:sse(!1)}.indexOf,lN=wt([].push),sN=function(e,t){var n,r=fc(e),o=0,a=[];for(n in r)!xr($C,n)&&xr(r,n)&&lN(a,n);for(;t.length>o;)xr(r,n=t[o++])&&(~use(a,n)||lN(a,n));return a},Jv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cse=Jv.concat("length","prototype"),dse=Object.getOwnPropertyNames||function(e){return sN(e,cse)},fse={f:dse},hse={f:Object.getOwnPropertySymbols},gse=wt([].concat),mse=Zf("Reflect","ownKeys")||function(e){var t=fse.f(zr(e)),n=hse.f;return n?gse(t,n(e)):t},uN=function(e,t){for(var n=mse(t),r=hc.f,o=JC.f,a=0;a<n.length;a++){var l=n[a];xr(e,l)||r(e,l,o(t,l))}},pse=/#|\.prototype\./,th=function(e,t){var n=yse[vse(e)];return n==wse||n!=bse&&(En(t)?On(t):!!t)},vse=th.normalize=function(e){return String(e).replace(pse,".").toLowerCase()},yse=th.data={},bse=th.NATIVE="N",wse=th.POLYFILL="P",Sse=th,Cse=JC.f,nh=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?ze:c?ze[s]||WC(s,{}):(ze[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=Cse(n,r))&&l.value:n[r],!Sse(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;uN(a,o)}(e.sham||o&&o.sham)&&Er(a,"sham",!0),ks(n,r,a,e)}},cN={};cN[pr("toStringTag")]="z";var Zv,ok=String(cN)==="[object z]",kse=pr("toStringTag"),xse=ze.Object,Ese=bs(function(){return arguments}())=="Arguments",Qv=ok?bs:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=xse(e),kse))=="string"?n:Ese?bs(t):(r=bs(t))=="Object"&&En(t.callee)?"Arguments":r},Dse=ze.String,xs=function(e){if(Qv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Dse(e)},Ase=function(){var e=zr(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},ak=ze.RegExp,dN=On(function(){var e=ak("a","y");return e.lastIndex=2,e.exec("abcd")!=null});dN||On(function(){return!ak("a","y").sticky});var Vse=dN||On(function(){var e=ak("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),Bse={BROKEN_CARET:Vse},_se=Object.keys||function(e){return sN(e,Jv)},Tse=la?Object.defineProperties:function(e,t){zr(e);for(var n,r=fc(t),o=_se(t),a=o.length,l=0;a>l;)hc.f(e,n=o[l++],r[n]);return e},Pse=Zf("document","documentElement"),fN=QC("IE_PROTO"),ik=function(){},hN=function(e){return"<script>"+e+"<\/script>"},gN=function(e){e.write(hN("")),e.close();var t=e.parentWindow.Object;return e=null,t},$v=function(){try{Zv=new ActiveXObject("htmlfile")}catch{}var e,t;$v=typeof document<"u"?document.domain&&Zv?gN(Zv):((t=XC("iframe")).style.display="none",Pse.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(hN("document.F=Object")),e.close(),e.F):gN(Zv);for(var n=Jv.length;n--;)delete $v.prototype[Jv[n]];return $v()};$C[fN]=!0;var mN,lk,rh=Object.create||function(e,t){var n;return e!==null?(ik.prototype=zr(e),n=new ik,ik.prototype=null,n[fN]=e):n=$v(),t===void 0?n:Tse(n,t)},Nse=ze.RegExp,Ose=On(function(){var e=Nse(".","s");return!(e.dotAll&&e.exec(`
20
+ `)&&e.flags==="s")}),Ise=ze.RegExp,Fse=On(function(){var e=Ise("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Rse=Cs.get,Lse=GC("native-string-replace",String.prototype.replace),ey=RegExp.prototype.exec,sk=ey,Mse=wt("".charAt),jse=wt("".indexOf),zse=wt("".replace),uk=wt("".slice),ck=(lk=/b*/g,qn(ey,mN=/a/,"a"),qn(ey,lk,"a"),mN.lastIndex!==0||lk.lastIndex!==0),pN=Bse.BROKEN_CARET,dk=/()??/.exec("")[1]!==void 0;(ck||dk||pN||Ose||Fse)&&(sk=function(e){var t,n,r,o,a,l,s,u=this,c=Rse(u),d=xs(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=qn(sk,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=pN&&u.sticky,p=qn(Ase,u),y=u.source,v=0,b=d;if(h&&(p=zse(p,"y",""),jse(p,"g")===-1&&(p+="g"),b=uk(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Mse(d,u.lastIndex-1)!==`
21
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),dk&&(n=new RegExp("^"+y+"$(?!\\s)",p)),ck&&(r=u.lastIndex),o=qn(ey,h?n:u,b),h?o?(o.input=uk(o.input,v),o[0]=uk(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:ck&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),dk&&o&&o.length>1&&qn(Lse,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=rh(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var ty=sk;nh({target:"RegExp",proto:!0,forced:/./.exec!==ty},{exec:ty});var Hse=pr("species"),vN=RegExp.prototype,Use=wt("".charAt),yN=wt("".charCodeAt),Wse=wt("".slice),Gse=function(e){return function(t,n){var r,o,a=xs(Gv(t)),l=nk(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=yN(a,l))<55296||r>56319||l+1===s||(o=yN(a,l+1))<56320||o>57343?e?Use(a,l):r:e?Wse(a,l,l+2):o-56320+(r-55296<<10)+65536}},bN={charAt:Gse(!0)},Kse=bN.charAt,qse=function(e,t,n){return t+(n?Kse(e,t).length:1)},Yse=ze.TypeError,wN=function(e,t){var n=e.exec;if(En(n)){var r=qn(n,e,t);return r!==null&&zr(r),r}if(bs(e)==="RegExp")return qn(ty,e,t);throw Yse("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=pr(e),a=!On(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!On(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Hse]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=wt(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=wt(c),y=d.exec;return y===ty||y===vN.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});ks(String.prototype,e,u[0]),ks(vN,o,u[1])}})("match",function(e,t,n){return[function(r){var o=Gv(this),a=r==null?void 0:Qf(r,e);return a?qn(a,r,o):new RegExp(r)[e](xs(o))},function(r){var o=zr(this),a=xs(r),l=n(t,o,a);if(l.done)return l.value;if(!o.global)return wN(o,a);var s=o.unicode;o.lastIndex=0;for(var u,c=[],d=0;(u=wN(o,a))!==null;){var f=xs(u[0]);c[d]=f,f===""&&(o.lastIndex=qse(a,iN(o.lastIndex),s)),d++}return d===0?null:c}]}),nh({global:!0},{globalThis:ze});var Xse=!On(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SN=QC("IE_PROTO"),fk=ze.Object,Jse=fk.prototype,oh=Xse?fk.getPrototypeOf:function(e){var t=KC(e);if(xr(t,SN))return t[SN];var n=t.constructor;return En(n)&&t instanceof n?n.prototype:t instanceof fk?Jse:null},Zse=ze.String,Qse=ze.TypeError,mc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=wt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return zr(r),function(a){if(typeof a=="object"||En(a))return a;throw Qse("Can't set "+Zse(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),$se=ze.Array,eue=Math.max,tue=wt("".replace),nue=wt("".split),rue=wt([].join),hk=String(Error("zxcasd").stack),CN=/\n\s*at [^:]*:[^\n]*/,oue=CN.test(hk),aue=/@[^\n]*\n/.test(hk)&&!/zxcasd/.test(hk),iue=function(e,t){if(typeof e!="string")return e;if(oue)for(;t--;)e=tue(e,CN,"");else if(aue)return rue(function(n,r,o){for(var a,l,s,u,c=Xv(n),d=rk(r,c),f=rk(c,c),g=$se(eue(f-d,0)),h=0;d<f;d++,h++)a=g,l=h,s=n[d],u=void 0,(u=qC(l))in a?hc.f(a,u,Fi(0,s)):a[u]=s;return g.length=h,g}(nue(e,`
22
22
  `),t),`
23
- `);return e},iue=function(e,t){sa(t)&&"cause"in t&&Er(e,"cause",t.cause)},kN=wt(wt.bind),xN=function(e,t){return UC(e),t===void 0?e:kN?kN(e,t):function(){return e.apply(t,arguments)}},pc={},lue=pr("iterator"),sue=Array.prototype,uue=pr("iterator"),EN=function(e){if(e!=null)return Qf(e,uue)||Qf(e,"@@iterator")||pc[Qv(e)]},cue=ze.TypeError,DN=function(e,t,n){var r,o;zr(e);try{if(!(r=Qf(e,"return"))){if(t==="throw")throw n;return n}r=qn(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return zr(r),n},due=ze.TypeError,ny=function(e,t){this.stopped=e,this.result=t},AN=ny.prototype,fue=function(e,t,n){var r,o,a,l,s,u,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=xN(t,d),y=function(b){return r&&DN(r,"normal",b),new ny(!0,b)},v=function(b){return f?(zr(b),h?p(b[0],b[1],y):p(b[0],b[1])):h?p(b,y):p(b)};if(g)r=e;else{if(!(o=EN(e)))throw due(HC(e)+" is not iterable");if(function(b){return b!==void 0&&(pc.Array===b||sue[lue]===b)}(o)){for(a=0,l=Xv(e);l>a;a++)if((s=v(e[a]))&&Kv(AN,s))return s;return new ny(!1)}r=function(b,m){var w=arguments.length<2?EN(b):m;if(UC(w))return zr(qn(w,b));throw cue(HC(b)+" is not iterable")}(e,o)}for(u=r.next;!(c=qn(u,r)).done;){try{s=v(c.value)}catch(b){DN(r,"throw",b)}if(typeof s=="object"&&s&&Kv(AN,s))return s}return new ny(!1)},hue=function(e,t){return e===void 0?arguments.length<2?"":t:xs(e)},gue=!On(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fi(1,7)),e.stack!==7)}),mue=pr("toStringTag"),ry=ze.Error,pue=[].push,ah=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Kv(gk,this);mc?n=mc(new ry(void 0),o?oh(this):gk):(n=o?this:rh(gk),Er(n,mue,"Error")),Er(n,"message",hue(t,"")),gue&&Er(n,"stack",aue(n.stack,1)),iue(n,r);var a=[];return fue(e,pue,{that:a}),Er(n,"errors",a),n};mc?mc(ah,ry):uN(ah,ry);var gk=ah.prototype=rh(ry.prototype,{constructor:Fi(1,ah),message:Fi(1,""),name:Fi(1,"AggregateError")});nh({global:!0},{AggregateError:ah});var mk=pr("unscopables"),pk=Array.prototype;pk[mk]==null&&hc.f(pk,mk,{configurable:!0,value:rh(null)});var Es,VN,BN,vk=function(e){pk[mk][e]=!0},yk=pr("iterator"),_N=!1;[].keys&&("next"in(BN=[].keys())?(VN=oh(oh(BN)))!==Object.prototype&&(Es=VN):_N=!0);var vue=Es==null||On(function(){var e={};return Es[yk].call(e)!==e});vue&&(Es={}),En(Es[yk])||ks(Es,yk,function(){return this});var bk={IteratorPrototype:Es,BUGGY_SAFARI_ITERATORS:_N},yue=hc.f,TN=pr("toStringTag"),PN=function(e,t,n){e&&!xr(e=n?e:e.prototype,TN)&&yue(e,TN,{configurable:!0,value:t})},bue=bk.IteratorPrototype,wue=function(){return this},Sue=tk.PROPER,Cue=tk.CONFIGURABLE,NN=bk.IteratorPrototype,wk=bk.BUGGY_SAFARI_ITERATORS,ih=pr("iterator"),kue=function(){return this},ON=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=rh(bue,{next:Fi(1,m)}),PN(v,S,!1),pc[S]=wue})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!wk&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[ih]||g["@@iterator"]||o&&g[o],p=!wk&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=oh(y.call(new e)))!==Object.prototype&&s.next&&(oh(s)!==NN&&(mc?mc(s,NN):En(s[ih])||ks(s,ih,kue)),PN(s,d,!0)),Sue&&o=="values"&&h&&h.name!=="values"&&(Cue?Er(g,"name","values"):(f=!0,p=function(){return qn(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||nh({target:t,proto:!0,forced:wk||f},u)),g[ih]!==p&&ks(g,ih,p,{name:o}),pc[t]=p,u},xue=Cs.set,Eue=Cs.getterFor("Array Iterator"),lh=ON(Array,"Array",function(e,t){xue(this,{type:"Array Iterator",target:fc(e),index:0,kind:t})},function(){var e=Eue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");pc.Arguments=pc.Array,vk("keys"),vk("values"),vk("entries");var Due=bN.charAt,Aue=Cs.set,Vue=Cs.getterFor("String Iterator");ON(String,"String",function(e){Aue(this,{type:"String Iterator",string:xs(e),index:0})},function(){var e,t=Vue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Due(n,r),t.index+=e.length,{value:e,done:!1})});var Sk,oy={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},Ck=XC("span").classList,IN=Ck&&Ck.constructor&&Ck.constructor.prototype,FN=IN===Object.prototype?void 0:IN,kk=pr("iterator"),RN=pr("toStringTag"),xk=lh.values,LN=function(e,t){if(e){if(e[kk]!==xk)try{Er(e,kk,xk)}catch{e[kk]=xk}if(e[RN]||Er(e,RN,t),oy[t]){for(var n in lh)if(e[n]!==lh[n])try{Er(e,n,lh[n])}catch{e[n]=lh[n]}}}};for(var Ek in oy)LN(ze[Ek]&&ze[Ek].prototype,Ek);LN(FN,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
24
- Sorry, wangEditor V5+ versions do not support IE browser.`),MN(),jN()):global&&(!((Sk=global.navigator)===null||Sk===void 0)&&Sk.userAgent.match("QQBrowser"))&&(MN(),jN());function MN(){typeof globalThis>"u"&&(window.globalThis=window)}function jN(){Sle===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var zN,ay=Array.isArray||function(e){return ms(e)=="Array"},HN=function(){},Bue=[],UN=lc("Reflect","construct"),Dk=/^\s*(?:class|function)\b/,_ue=Tt(Dk.exec),Tue=!Dk.exec(HN),sh=function(e){if(!Kn(e))return!1;try{return UN(HN,Bue,e),!0}catch{return!1}},Pue=!UN||Cr(function(){var e;return sh(sh.call)||!sh(Object)||!sh(function(){e=!0})||e})?function(e){if(!Kn(e))return!1;switch(Kf(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Tue||!!_ue(Dk,AP(e))}:sh,Nue=Qn("species"),WN=Ge.Array,GN=function(e,t){return new(function(n){var r;return ay(n)&&(r=n.constructor,(Pue(r)&&(r===WN||ay(r.prototype))||ro(r)&&(r=r[Nue])===null)&&(r=void 0)),r===void 0?WN:r}(e))(t===0?0:t)},Oue=Qn("species"),KN=Qn("isConcatSpreadable"),qN=Ge.TypeError,Iue=Av>=51||!Cr(function(){var e=[];return e[KN]=!1,e.concat()[0]!==e}),Fue=(zN="concat",Av>=51||!Cr(function(){var e=[];return(e.constructor={})[Oue]=function(){return{foo:1}},e[zN](Boolean).foo!==1})),Rue=function(e){if(!ro(e))return!1;var t=e[KN];return t!==void 0?!!t:ay(e)};qa({target:"Array",proto:!0,forced:!Iue||!Fue},{concat:function(e){var t,n,r,o,a,l=zf(this),s=GN(l,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Rue(a=t===-1?l:arguments[t])){if(u+(o=Wf(a))>9007199254740991)throw qN("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in a&&DC(s,u,a[n])}else{if(u>=9007199254740991)throw qN("Maximum allowed index exceeded");DC(s,u++,a)}return s.length=u,s}});var YN=kC.f,XN=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],JN={f:function(e){return XN&&ms(e)=="Window"?function(t){try{return YN(t)}catch{return SP(XN)}}(e):YN(aa(e))}},Lue=Tt([].slice),Ak={f:Qn},Mue=Ni.f,an=function(e){var t=Mr.Symbol||(Mr.Symbol={});at(t,e)||Mue(t,e,{value:Ak.f(e)})},ZN=Tt([].push),jue=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=zf(u),y=nP(p),v=bC(c,d),b=Wf(y),m=0,w=f||GN,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:ZN(S,g)}else switch(e){case 4:return!1;case 7:ZN(S,g)}return a?-1:r||o?o:S}},iy={forEach:jue(0)}.forEach,Dr=Tv("hidden"),QN=Qn("toPrimitive"),zue=dc.set,$N=dc.getterFor("Symbol"),No=Object.prototype,Li=Ge.Symbol,Mi=Li&&Li.prototype,eO=Ge.TypeError,Vk=Ge.QObject,uh=lc("JSON","stringify"),tO=_v.f,ji=Ni.f,nO=JN.f,Hue=dC.f,rO=Tt([].push),Ja=ps("symbols"),ch=ps("op-symbols"),Bk=ps("string-to-symbol-registry"),_k=ps("symbol-to-string-registry"),Uue=ps("wks"),Tk=!Vk||!Vk.prototype||!Vk.prototype.findChild,Pk=kr&&Cr(function(){return Ya(ji({},"a",{get:function(){return ji(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=tO(No,t);r&&delete No[t],ji(e,t,n),r&&e!==No&&ji(No,t,r)}:ji,Nk=function(e,t){var n=Ja[e]=Ya(Mi);return zue(n,{type:"Symbol",tag:e,description:t}),kr||(n.description=t),n},ly=function(e,t,n){e===No&&ly(ch,t,n),jr(e);var r=uc(t);return jr(n),at(Ja,r)?(n.enumerable?(at(e,Dr)&&e[Dr][r]&&(e[Dr][r]=!1),n=Ya(n,{enumerable:Po(0,!1)})):(at(e,Dr)||ji(e,Dr,Po(1,{})),e[Dr][r]=!0),Pk(e,r,n)):ji(e,r,n)},oO=function(e,t){jr(e);var n=aa(t),r=xC(n).concat(Ok(n));return iy(r,function(o){kr&&!Lr(aO,n,o)||ly(e,o,n[o])}),e},aO=function(e){var t=uc(e),n=Lr(Hue,this,t);return!(this===No&&at(Ja,t)&&!at(ch,t))&&(!(n||!at(this,t)||!at(Ja,t)||at(this,Dr)&&this[Dr][t])||n)},iO=function(e,t){var n=aa(e),r=uc(t);if(n!==No||!at(Ja,r)||at(ch,r)){var o=tO(n,r);return!o||!at(Ja,r)||at(n,Dr)&&n[Dr][r]||(o.enumerable=!0),o}},lO=function(e){var t=nO(aa(e)),n=[];return iy(t,function(r){at(Ja,r)||at(Gf,r)||rO(n,r)}),n},Ok=function(e){var t=e===No,n=nO(t?ch:aa(e)),r=[];return iy(n,function(o){!at(Ja,o)||t&&!at(No,o)||rO(r,Ja[o])}),r};if(ia||(Mi=(Li=function(){if(jf(Mi,this))throw eO("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?qf(arguments[0]):void 0,t=Bv(e),n=function(r){this===No&&Lr(n,ch,r),at(this,Dr)&&at(this[Dr],t)&&(this[Dr][t]=!1),Pk(this,t,Po(1,r))};return kr&&Tk&&Pk(No,t,{configurable:!0,set:n}),Nk(t,e)}).prototype,zv(Mi,"toString",function(){return $N(this).tag}),zv(Li,"withoutSetter",function(e){return Nk(Bv(e),e)}),dC.f=aO,Ni.f=ly,_v.f=iO,kC.f=JN.f=lO,Iv.f=Ok,Ak.f=function(e){return Nk(Qn(e),e)},kr&&ji(Mi,"description",{configurable:!0,get:function(){return $N(this).description}})),qa({global:!0,wrap:!0,forced:!ia,sham:!ia},{Symbol:Li}),iy(xC(Uue),function(e){an(e)}),qa({target:"Symbol",stat:!0,forced:!ia},{for:function(e){var t=qf(e);if(at(Bk,t))return Bk[t];var n=Li(t);return Bk[t]=n,_k[n]=t,n},keyFor:function(e){if(!sc(e))throw eO(e+" is not a symbol");if(at(_k,e))return _k[e]},useSetter:function(){Tk=!0},useSimple:function(){Tk=!1}}),qa({target:"Object",stat:!0,forced:!ia,sham:!kr},{create:function(e,t){return t===void 0?Ya(e):oO(Ya(e),t)},defineProperty:ly,defineProperties:oO,getOwnPropertyDescriptor:iO}),qa({target:"Object",stat:!0,forced:!ia},{getOwnPropertyNames:lO,getOwnPropertySymbols:Ok}),qa({target:"Object",stat:!0,forced:Cr(function(){Iv.f(1)})},{getOwnPropertySymbols:function(e){return Iv.f(zf(e))}}),uh){var Wue=!ia||Cr(function(){var e=Li();return uh([e])!="[null]"||uh({a:e})!="{}"||uh(Object(e))!="{}"});qa({target:"JSON",stat:!0,forced:Wue},{stringify:function(e,t,n){var r=Lue(arguments),o=t;if((ro(t)||e!==void 0)&&!sc(e))return ay(t)||(t=function(a,l){if(Kn(o)&&(l=Lr(o,this,a,l)),!sc(l))return l}),r[1]=t,Q8(uh,null,r)}})}if(!Mi[QN]){var Gue=Mi.valueOf;zv(Mi,QN,function(e){return Lr(Gue,this)})}Hv(Li,"Symbol"),Gf[Dr]=!0,an("asyncIterator"),an("hasInstance"),an("isConcatSpreadable"),an("iterator"),an("match"),an("matchAll"),an("replace"),an("search"),an("species"),an("split"),an("toPrimitive"),an("toStringTag"),an("unscopables"),Hv(Ge.JSON,"JSON",!0);var Kue=Mr.Symbol;an("asyncDispose"),an("dispose"),an("matcher"),an("metadata"),an("observable"),an("patternMatch"),an("replaceAll");var sy=Kue,que=Ak.f("iterator"),Yue=gs(function(e){function t(n){return typeof sy=="function"&&typeof que=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof sy=="function"&&r.constructor===sy&&r!==sy.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Xue=Vae(Yue),sO=JC.f,Jue=On(function(){sO(1)});if(nh({target:"Object",stat:!0,forced:!la||Jue,sham:!la},{getOwnPropertyDescriptor:function(e,t){return sO(fc(e),t)}}),(typeof global>"u"?"undefined":Xue(global))==="object"){var Zue=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Zue.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)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
23
+ `);return e},lue=function(e,t){sa(t)&&"cause"in t&&Er(e,"cause",t.cause)},kN=wt(wt.bind),xN=function(e,t){return UC(e),t===void 0?e:kN?kN(e,t):function(){return e.apply(t,arguments)}},pc={},sue=pr("iterator"),uue=Array.prototype,cue=pr("iterator"),EN=function(e){if(e!=null)return Qf(e,cue)||Qf(e,"@@iterator")||pc[Qv(e)]},due=ze.TypeError,DN=function(e,t,n){var r,o;zr(e);try{if(!(r=Qf(e,"return"))){if(t==="throw")throw n;return n}r=qn(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return zr(r),n},fue=ze.TypeError,ny=function(e,t){this.stopped=e,this.result=t},AN=ny.prototype,hue=function(e,t,n){var r,o,a,l,s,u,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=xN(t,d),y=function(b){return r&&DN(r,"normal",b),new ny(!0,b)},v=function(b){return f?(zr(b),h?p(b[0],b[1],y):p(b[0],b[1])):h?p(b,y):p(b)};if(g)r=e;else{if(!(o=EN(e)))throw fue(HC(e)+" is not iterable");if(function(b){return b!==void 0&&(pc.Array===b||uue[sue]===b)}(o)){for(a=0,l=Xv(e);l>a;a++)if((s=v(e[a]))&&Kv(AN,s))return s;return new ny(!1)}r=function(b,m){var w=arguments.length<2?EN(b):m;if(UC(w))return zr(qn(w,b));throw due(HC(b)+" is not iterable")}(e,o)}for(u=r.next;!(c=qn(u,r)).done;){try{s=v(c.value)}catch(b){DN(r,"throw",b)}if(typeof s=="object"&&s&&Kv(AN,s))return s}return new ny(!1)},gue=function(e,t){return e===void 0?arguments.length<2?"":t:xs(e)},mue=!On(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fi(1,7)),e.stack!==7)}),pue=pr("toStringTag"),ry=ze.Error,vue=[].push,ah=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Kv(gk,this);mc?n=mc(new ry(void 0),o?oh(this):gk):(n=o?this:rh(gk),Er(n,pue,"Error")),Er(n,"message",gue(t,"")),mue&&Er(n,"stack",iue(n.stack,1)),lue(n,r);var a=[];return hue(e,vue,{that:a}),Er(n,"errors",a),n};mc?mc(ah,ry):uN(ah,ry);var gk=ah.prototype=rh(ry.prototype,{constructor:Fi(1,ah),message:Fi(1,""),name:Fi(1,"AggregateError")});nh({global:!0},{AggregateError:ah});var mk=pr("unscopables"),pk=Array.prototype;pk[mk]==null&&hc.f(pk,mk,{configurable:!0,value:rh(null)});var Es,VN,BN,vk=function(e){pk[mk][e]=!0},yk=pr("iterator"),_N=!1;[].keys&&("next"in(BN=[].keys())?(VN=oh(oh(BN)))!==Object.prototype&&(Es=VN):_N=!0);var yue=Es==null||On(function(){var e={};return Es[yk].call(e)!==e});yue&&(Es={}),En(Es[yk])||ks(Es,yk,function(){return this});var bk={IteratorPrototype:Es,BUGGY_SAFARI_ITERATORS:_N},bue=hc.f,TN=pr("toStringTag"),PN=function(e,t,n){e&&!xr(e=n?e:e.prototype,TN)&&bue(e,TN,{configurable:!0,value:t})},wue=bk.IteratorPrototype,Sue=function(){return this},Cue=tk.PROPER,kue=tk.CONFIGURABLE,NN=bk.IteratorPrototype,wk=bk.BUGGY_SAFARI_ITERATORS,ih=pr("iterator"),xue=function(){return this},ON=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=rh(wue,{next:Fi(1,m)}),PN(v,S,!1),pc[S]=Sue})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!wk&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[ih]||g["@@iterator"]||o&&g[o],p=!wk&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=oh(y.call(new e)))!==Object.prototype&&s.next&&(oh(s)!==NN&&(mc?mc(s,NN):En(s[ih])||ks(s,ih,xue)),PN(s,d,!0)),Cue&&o=="values"&&h&&h.name!=="values"&&(kue?Er(g,"name","values"):(f=!0,p=function(){return qn(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||nh({target:t,proto:!0,forced:wk||f},u)),g[ih]!==p&&ks(g,ih,p,{name:o}),pc[t]=p,u},Eue=Cs.set,Due=Cs.getterFor("Array Iterator"),lh=ON(Array,"Array",function(e,t){Eue(this,{type:"Array Iterator",target:fc(e),index:0,kind:t})},function(){var e=Due(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");pc.Arguments=pc.Array,vk("keys"),vk("values"),vk("entries");var Aue=bN.charAt,Vue=Cs.set,Bue=Cs.getterFor("String Iterator");ON(String,"String",function(e){Vue(this,{type:"String Iterator",string:xs(e),index:0})},function(){var e,t=Bue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Aue(n,r),t.index+=e.length,{value:e,done:!1})});var Sk,oy={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},Ck=XC("span").classList,IN=Ck&&Ck.constructor&&Ck.constructor.prototype,FN=IN===Object.prototype?void 0:IN,kk=pr("iterator"),RN=pr("toStringTag"),xk=lh.values,LN=function(e,t){if(e){if(e[kk]!==xk)try{Er(e,kk,xk)}catch{e[kk]=xk}if(e[RN]||Er(e,RN,t),oy[t]){for(var n in lh)if(e[n]!==lh[n])try{Er(e,n,lh[n])}catch{e[n]=lh[n]}}}};for(var Ek in oy)LN(ze[Ek]&&ze[Ek].prototype,Ek);LN(FN,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
24
+ Sorry, wangEditor V5+ versions do not support IE browser.`),MN(),jN()):global&&(!((Sk=global.navigator)===null||Sk===void 0)&&Sk.userAgent.match("QQBrowser"))&&(MN(),jN());function MN(){typeof globalThis>"u"&&(window.globalThis=window)}function jN(){Cle===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var zN,ay=Array.isArray||function(e){return ms(e)=="Array"},HN=function(){},_ue=[],UN=lc("Reflect","construct"),Dk=/^\s*(?:class|function)\b/,Tue=Tt(Dk.exec),Pue=!Dk.exec(HN),sh=function(e){if(!Kn(e))return!1;try{return UN(HN,_ue,e),!0}catch{return!1}},Nue=!UN||Cr(function(){var e;return sh(sh.call)||!sh(Object)||!sh(function(){e=!0})||e})?function(e){if(!Kn(e))return!1;switch(Kf(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pue||!!Tue(Dk,AP(e))}:sh,Oue=Qn("species"),WN=Ge.Array,GN=function(e,t){return new(function(n){var r;return ay(n)&&(r=n.constructor,(Nue(r)&&(r===WN||ay(r.prototype))||ro(r)&&(r=r[Oue])===null)&&(r=void 0)),r===void 0?WN:r}(e))(t===0?0:t)},Iue=Qn("species"),KN=Qn("isConcatSpreadable"),qN=Ge.TypeError,Fue=Av>=51||!Cr(function(){var e=[];return e[KN]=!1,e.concat()[0]!==e}),Rue=(zN="concat",Av>=51||!Cr(function(){var e=[];return(e.constructor={})[Iue]=function(){return{foo:1}},e[zN](Boolean).foo!==1})),Lue=function(e){if(!ro(e))return!1;var t=e[KN];return t!==void 0?!!t:ay(e)};qa({target:"Array",proto:!0,forced:!Fue||!Rue},{concat:function(e){var t,n,r,o,a,l=zf(this),s=GN(l,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Lue(a=t===-1?l:arguments[t])){if(u+(o=Wf(a))>9007199254740991)throw qN("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in a&&DC(s,u,a[n])}else{if(u>=9007199254740991)throw qN("Maximum allowed index exceeded");DC(s,u++,a)}return s.length=u,s}});var YN=kC.f,XN=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],JN={f:function(e){return XN&&ms(e)=="Window"?function(t){try{return YN(t)}catch{return SP(XN)}}(e):YN(aa(e))}},Mue=Tt([].slice),Ak={f:Qn},jue=Ni.f,an=function(e){var t=Mr.Symbol||(Mr.Symbol={});at(t,e)||jue(t,e,{value:Ak.f(e)})},ZN=Tt([].push),zue=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=zf(u),y=nP(p),v=bC(c,d),b=Wf(y),m=0,w=f||GN,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:ZN(S,g)}else switch(e){case 4:return!1;case 7:ZN(S,g)}return a?-1:r||o?o:S}},iy={forEach:zue(0)}.forEach,Dr=Tv("hidden"),QN=Qn("toPrimitive"),Hue=dc.set,$N=dc.getterFor("Symbol"),No=Object.prototype,Li=Ge.Symbol,Mi=Li&&Li.prototype,eO=Ge.TypeError,Vk=Ge.QObject,uh=lc("JSON","stringify"),tO=_v.f,ji=Ni.f,nO=JN.f,Uue=dC.f,rO=Tt([].push),Ja=ps("symbols"),ch=ps("op-symbols"),Bk=ps("string-to-symbol-registry"),_k=ps("symbol-to-string-registry"),Wue=ps("wks"),Tk=!Vk||!Vk.prototype||!Vk.prototype.findChild,Pk=kr&&Cr(function(){return Ya(ji({},"a",{get:function(){return ji(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=tO(No,t);r&&delete No[t],ji(e,t,n),r&&e!==No&&ji(No,t,r)}:ji,Nk=function(e,t){var n=Ja[e]=Ya(Mi);return Hue(n,{type:"Symbol",tag:e,description:t}),kr||(n.description=t),n},ly=function(e,t,n){e===No&&ly(ch,t,n),jr(e);var r=uc(t);return jr(n),at(Ja,r)?(n.enumerable?(at(e,Dr)&&e[Dr][r]&&(e[Dr][r]=!1),n=Ya(n,{enumerable:Po(0,!1)})):(at(e,Dr)||ji(e,Dr,Po(1,{})),e[Dr][r]=!0),Pk(e,r,n)):ji(e,r,n)},oO=function(e,t){jr(e);var n=aa(t),r=xC(n).concat(Ok(n));return iy(r,function(o){kr&&!Lr(aO,n,o)||ly(e,o,n[o])}),e},aO=function(e){var t=uc(e),n=Lr(Uue,this,t);return!(this===No&&at(Ja,t)&&!at(ch,t))&&(!(n||!at(this,t)||!at(Ja,t)||at(this,Dr)&&this[Dr][t])||n)},iO=function(e,t){var n=aa(e),r=uc(t);if(n!==No||!at(Ja,r)||at(ch,r)){var o=tO(n,r);return!o||!at(Ja,r)||at(n,Dr)&&n[Dr][r]||(o.enumerable=!0),o}},lO=function(e){var t=nO(aa(e)),n=[];return iy(t,function(r){at(Ja,r)||at(Gf,r)||rO(n,r)}),n},Ok=function(e){var t=e===No,n=nO(t?ch:aa(e)),r=[];return iy(n,function(o){!at(Ja,o)||t&&!at(No,o)||rO(r,Ja[o])}),r};if(ia||(Mi=(Li=function(){if(jf(Mi,this))throw eO("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?qf(arguments[0]):void 0,t=Bv(e),n=function(r){this===No&&Lr(n,ch,r),at(this,Dr)&&at(this[Dr],t)&&(this[Dr][t]=!1),Pk(this,t,Po(1,r))};return kr&&Tk&&Pk(No,t,{configurable:!0,set:n}),Nk(t,e)}).prototype,zv(Mi,"toString",function(){return $N(this).tag}),zv(Li,"withoutSetter",function(e){return Nk(Bv(e),e)}),dC.f=aO,Ni.f=ly,_v.f=iO,kC.f=JN.f=lO,Iv.f=Ok,Ak.f=function(e){return Nk(Qn(e),e)},kr&&ji(Mi,"description",{configurable:!0,get:function(){return $N(this).description}})),qa({global:!0,wrap:!0,forced:!ia,sham:!ia},{Symbol:Li}),iy(xC(Wue),function(e){an(e)}),qa({target:"Symbol",stat:!0,forced:!ia},{for:function(e){var t=qf(e);if(at(Bk,t))return Bk[t];var n=Li(t);return Bk[t]=n,_k[n]=t,n},keyFor:function(e){if(!sc(e))throw eO(e+" is not a symbol");if(at(_k,e))return _k[e]},useSetter:function(){Tk=!0},useSimple:function(){Tk=!1}}),qa({target:"Object",stat:!0,forced:!ia,sham:!kr},{create:function(e,t){return t===void 0?Ya(e):oO(Ya(e),t)},defineProperty:ly,defineProperties:oO,getOwnPropertyDescriptor:iO}),qa({target:"Object",stat:!0,forced:!ia},{getOwnPropertyNames:lO,getOwnPropertySymbols:Ok}),qa({target:"Object",stat:!0,forced:Cr(function(){Iv.f(1)})},{getOwnPropertySymbols:function(e){return Iv.f(zf(e))}}),uh){var Gue=!ia||Cr(function(){var e=Li();return uh([e])!="[null]"||uh({a:e})!="{}"||uh(Object(e))!="{}"});qa({target:"JSON",stat:!0,forced:Gue},{stringify:function(e,t,n){var r=Mue(arguments),o=t;if((ro(t)||e!==void 0)&&!sc(e))return ay(t)||(t=function(a,l){if(Kn(o)&&(l=Lr(o,this,a,l)),!sc(l))return l}),r[1]=t,Q8(uh,null,r)}})}if(!Mi[QN]){var Kue=Mi.valueOf;zv(Mi,QN,function(e){return Lr(Kue,this)})}Hv(Li,"Symbol"),Gf[Dr]=!0,an("asyncIterator"),an("hasInstance"),an("isConcatSpreadable"),an("iterator"),an("match"),an("matchAll"),an("replace"),an("search"),an("species"),an("split"),an("toPrimitive"),an("toStringTag"),an("unscopables"),Hv(Ge.JSON,"JSON",!0);var que=Mr.Symbol;an("asyncDispose"),an("dispose"),an("matcher"),an("metadata"),an("observable"),an("patternMatch"),an("replaceAll");var sy=que,Yue=Ak.f("iterator"),Xue=gs(function(e){function t(n){return typeof sy=="function"&&typeof Yue=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof sy=="function"&&r.constructor===sy&&r!==sy.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Jue=Bae(Xue),sO=JC.f,Zue=On(function(){sO(1)});if(nh({target:"Object",stat:!0,forced:!la||Zue,sham:!la},{getOwnPropertyDescriptor:function(e,t){return sO(fc(e),t)}}),(typeof global>"u"?"undefined":Jue(global))==="object"){var Que=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Que.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)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
25
25
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
26
26
  *
27
27
  * Copyright (c) 2014-2017, Jon Schlinkert.
28
28
  * Released under the MIT License.
29
- */function uO(e){return Object.prototype.toString.call(e)==="[object Object]"}function $n(e){var t,n;return uO(e)!==!1&&((t=e.constructor)===void 0||uO(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Oo(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(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ds(e){return!!e&&!!e[Hr]}function As(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===rce}(e)||Array.isArray(e)||!!e[bO]||!!e.constructor[bO]||Fk(e)||Rk(e))}function dh(e,t,n){n===void 0&&(n=!1),vc(e)===0?(n?Object.keys:Xk)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function vc(e){var t=e[Hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fk(e)?2:Rk(e)?3:0}function Ik(e,t){return vc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cO(e,t,n){var r=vc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Fk(e){return tce&&e instanceof Map}function Rk(e){return nce&&e instanceof Set}function Vs(e){return e.o||e.t}function Lk(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=oce(e);delete t[Hr];for(var n=Xk(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Mk(e,t){return t===void 0&&(t=!1),jk(e)||Ds(e)||!As(e)||(vc(e)>1&&(e.set=e.add=e.clear=e.delete=Que),Object.freeze(e),t&&dh(e,function(n,r){return Mk(r,!0)},!0)),e}function Que(){Oo(2)}function jk(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Za(e){var t=ace[e];return t||Oo(18,e),t}function dO(){return fh}function zk(e,t){t&&(Za("Patches"),e.u=[],e.s=[],e.v=t)}function uy(e){Hk(e),e.p.forEach($ue),e.p=null}function Hk(e){e===fh&&(fh=e.l)}function fO(e){return fh={p:[],l:fh,h:e,m:!0,_:0}}function $ue(e){var t=e[Hr];t.i===0||t.i===1?t.j():t.O=!0}function Uk(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Za("ES5").S(t,e,r),r?(n[Hr].P&&(uy(t),Oo(4)),As(e)&&(e=cy(t,e),t.l||dy(t,e)),t.u&&Za("Patches").M(n[Hr],e,t.u,t.s)):e=cy(t,n,[]),uy(t),t.u&&t.v(t.u,t.s),e!==yO?e:void 0}function cy(e,t,n){if(jk(t))return t;var r=t[Hr];if(!r)return dh(t,function(a,l){return hO(e,r,t,a,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return dy(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Lk(r.k):r.o;dh(r.i===3?new Set(o):o,function(a,l){return hO(e,r,o,a,l,n)}),dy(e,o,!1),n&&e.u&&Za("Patches").R(r,n,e.u,e.s)}return r.o}function hO(e,t,n,r,o,a){if(Ds(o)){var l=cy(e,o,a&&t&&t.i!==3&&!Ik(t.D,r)?a.concat(r):void 0);if(cO(n,r,l),!Ds(l))return;e.m=!1}if(As(o)&&!jk(o)){if(!e.h.F&&e._<1)return;cy(e,o),t&&t.A.l||dy(e,o)}}function dy(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Mk(t,n)}function Wk(e,t){var n=e[Hr];return(n?Vs(n):e)[t]}function gO(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 Gk(e){e.P||(e.P=!0,e.l&&Gk(e.l))}function Kk(e){e.o||(e.o=Lk(e.t))}function qk(e,t,n){var r=Fk(t)?Za("MapSet").N(t,n):Rk(t)?Za("MapSet").T(t,n):e.g?function(o,a){var l=Array.isArray(o),s={i:l?1:0,A:a?a.A:dO(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,c=fy;l&&(u=[s],c=hy);var d=Proxy.revocable(u,c),f=d.revoke,g=d.proxy;return s.k=g,s.j=f,g}(t,n):Za("ES5").J(t,n);return(n?n.A:dO()).p.push(r),r}function ece(e){return Ds(e)||Oo(22,e),function t(n){if(!As(n))return n;var r,o=n[Hr],a=vc(n);if(o){if(!o.P&&(o.i<4||!Za("ES5").K(o)))return o.t;o.I=!0,r=mO(n,a),o.I=!1}else r=mO(n,a);return dh(r,function(l,s){o&&function(u,c){return vc(u)===2?u.get(c):u[c]}(o.t,l)===s||cO(r,l,t(s))}),a===3?new Set(r):r}(e)}function mO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Lk(e)}var pO,fh,Yk=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tce=typeof Map<"u",nce=typeof Set<"u",vO=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",yO=Yk?Symbol.for("immer-nothing"):((pO={})["immer-nothing"]=!0,pO),bO=Yk?Symbol.for("immer-draftable"):"__$immer_draftable",Hr=Yk?Symbol.for("immer-state"):"__$immer_state",rce=""+Object.prototype.constructor,Xk=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,oce=Object.getOwnPropertyDescriptors||function(e){var t={};return Xk(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ace={},fy={get:function(e,t){if(t===Hr)return e;var n=Vs(e);if(!Ik(n,t))return function(o,a,l){var s,u=gO(a,l);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!As(r)?r:r===Wk(e.t,t)?(Kk(e),e.o[t]=qk(e.A.h,r,e)):r},has:function(e,t){return t in Vs(e)},ownKeys:function(e){return Reflect.ownKeys(Vs(e))},set:function(e,t,n){var r=gO(Vs(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Wk(Vs(e),t),a=o==null?void 0:o[Hr];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(l,s){return l===s?l!==0||1/l==1/s:l!=l&&s!=s}(n,o)&&(n!==void 0||Ik(e.t,t)))return!0;Kk(e),Gk(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Wk(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Kk(e),Gk(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Vs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Oo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Oo(12)}},hy={};dh(fy,function(e,t){hy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),hy.deleteProperty=function(e,t){return fy.deleteProperty.call(this,e[0],t)},hy.set=function(e,t,n){return fy.set.call(this,e[0],t,n,e[0])};var ice=function(){function e(n){var r=this;this.g=vO,this.F=!0,this.produce=function(o,a,l){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=r;return function(h){var p=this;h===void 0&&(h=s);for(var y=arguments.length,v=Array(y>1?y-1:0),b=1;b<y;b++)v[b-1]=arguments[b];return u.produce(h,function(m){var w;return(w=a).call.apply(w,[p,m].concat(v))})}}var c;if(typeof a!="function"&&Oo(6),l!==void 0&&typeof l!="function"&&Oo(7),As(o)){var d=fO(r),f=qk(r,o,void 0),g=!0;try{c=a(f),g=!1}finally{g?uy(d):Hk(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(h){return zk(d,l),Uk(h,d)},function(h){throw uy(d),h}):(zk(d,l),Uk(c,d))}if(!o||typeof o!="object")return(c=a(o))===yO?void 0:(c===void 0&&(c=o),r.F&&Mk(c,!0),c);Oo(21,o)},this.produceWithPatches=function(o,a){return typeof o=="function"?function(u){for(var c=arguments.length,d=Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];return r.produceWithPatches(u,function(g){return o.apply(void 0,[g].concat(d))})}:[r.produce(o,a,function(u,c){l=u,s=c}),l,s];var l,s},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){As(n)||Oo(8),Ds(n)&&(n=ece(n));var r=fO(this),o=qk(this,n,void 0);return o[Hr].C=!0,Hk(r),o},t.finishDraft=function(n,r){var o=(n&&n[Hr]).A;return zk(o,r),Uk(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!vO&&Oo(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var l=Za("Patches").$;return Ds(n)?l(n,r):this.produce(n,function(s){return l(s,r)})},e}(),Ur=new ice,gy=Ur.produce;Ur.produceWithPatches.bind(Ur),Ur.setAutoFreeze.bind(Ur),Ur.setUseProxies.bind(Ur),Ur.applyPatches.bind(Ur);var wO=Ur.createDraft.bind(Ur),SO=Ur.finishDraft.bind(Ur);function ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var my=new WeakMap,hh=new WeakMap,CO=new WeakMap,kO=new WeakMap,xO=new WeakMap,EO=new WeakMap;function DO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lce=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of B.pathRefs(e))Rce.transform(n,t);for(var r of B.pointRefs(e))Lce.transform(r,t);for(var o of B.rangeRefs(e))jce.transform(o,t);var a=new Set,l=[],s=g=>{if(g){var h=g.join(",");a.has(h)||(a.add(h),l.push(g))}},u=my.get(e)||[],c=sce(t);for(var d of u)s(Y.transform(d,t));for(var f of c)s(f);my.set(e,l),Q.transform(e,t),e.operations.push(t),B.normalize(e),t.type==="set_selection"&&(e.marks=null),hh.get(e)||(hh.set(e,!0),Promise.resolve().then(()=>{hh.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(re.isExpanded(r))Q.setNodes(e,{[t]:n},{match:Se.isText,split:!0});else{var o=py(py({},B.marks(e)||{}),{},{[t]:n});e.marks=o,hh.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&re.isCollapsed(n)&&Q.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&re.isCollapsed(n)&&Q.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&re.isExpanded(n)&&Q.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?he.fragment(e,t):[]},insertBreak:()=>{Q.splitNodes(e,{always:!0})},insertFragment:t=>{Q.insertFragment(e,t)},insertNode:t=>{Q.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=py({text:t},r);Q.insertNodes(e,o)}else Q.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Se.isText(n))if(_e.isElement(n)&&n.children.length===0)Q.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!B.isEditor(n)&&_e.isElement(n)&&(e.isInline(n)||n.children.length===0||Se.isText(n.children[0])||e.isInline(n.children[0])),a=0,l=0;l<n.children.length;l++,a++){var s=he.get(e,r);if(!Se.isText(s)){var u=n.children[l],c=s.children[a-1],d=l===n.children.length-1;(Se.isText(u)||_e.isElement(u)&&e.isInline(u))!==o?(Q.removeNodes(e,{at:r.concat(a),voids:!0}),a--):_e.isElement(u)?e.isInline(u)&&(c!=null&&Se.isText(c)?d&&(Q.insertNodes(e,{text:""},{at:r.concat(a+1),voids:!0}),a++):(Q.insertNodes(e,{text:""},{at:r.concat(a),voids:!0}),a++)):c!=null&&Se.isText(c)&&(Se.equals(u,c,{loose:!0})?(Q.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(Q.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):u.text===""&&(Q.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(re.isExpanded(n))Q.unsetNodes(e,t,{match:Se.isText,split:!0});else{var r=py({},B.marks(e)||{});delete r[t],e.marks=r,hh.get(e)||e.onChange()}}};return e},sce=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Y.levels(t);case"insert_node":var{node:n,path:r}=e,o=Y.levels(r),a=Se.isText(n)?[]:Array.from(he.nodes(n),S=>{var[,C]=S;return r.concat(C)});return[...o,...a];case"merge_node":var{path:l}=e;return[...Y.ancestors(l),Y.previous(l)];case"move_node":var{path:s,newPath:u}=e;if(Y.equals(s,u))return[];var c=[],d=[];for(var f of Y.ancestors(s)){var g=Y.transform(f,e);c.push(g)}for(var h of Y.ancestors(u)){var p=Y.transform(h,e);d.push(p)}var y=d[d.length-1],v=u[u.length-1],b=y.concat(v);return[...c,...d,b];case"remove_node":var{path:m}=e;return[...Y.ancestors(m)];case"split_node":var{path:w}=e;return[...Y.levels(w),Y.next(w)];default:return[]}};function Qa(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var u,c,d={},f=Object.keys(l);for(c=0;c<f.length;c++)u=f[c],s.indexOf(u)>=0||(d[u]=l[u]);return d}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ue,Jk=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?hce(e):e,o=Ue.None,a=Ue.None,l=0,s=null;for(var u of r){var c=u.codePointAt(0);if(!c)break;var d=Ece(u,c);if([o,a]=n?[a,d]:[d,o],yc(o,Ue.ZWJ)&&yc(a,Ue.ExtPict)&&!Bce(n?e.substring(0,l):e.substring(0,e.length-l))||yc(o,Ue.RI)&&yc(a,Ue.RI)&&!(s=s!==null?!s:!!n||Tce(e.substring(0,e.length-l)))||o!==Ue.None&&a!==Ue.None&&Ace(o,a))break;l+=u.length}return l||1},uce=/\s/,cce=/[\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]/,dce=/['\u2018\u2019]/,Zk=(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)]},fce=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(uce.test(t))return!1;if(dce.test(t)){var o=Jk(n,r),[a,l]=Zk(n,o,r);if(e(a,l,r))return!0}return!cce.test(t)},hce=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(mce(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(gce(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},gce=e=>e>=55296&&e<=56319,mce=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"})(Ue||(Ue={}));var pce=/^(?:[\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])$/,vce=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,yce=/^(?:[\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])$/,bce=/^[\u1100-\u115F\uA960-\uA97C]$/,wce=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Sce=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Cce=/^[\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]$/,kce=/^[\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]$/,xce=/^(?:[\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])$/,Ece=(e,t)=>{var n=Ue.Any;return e.search(pce)!==-1&&(n|=Ue.Extend),t===8205&&(n|=Ue.ZWJ),t>=127462&&t<=127487&&(n|=Ue.RI),e.search(vce)!==-1&&(n|=Ue.Prepend),e.search(yce)!==-1&&(n|=Ue.SpacingMark),e.search(bce)!==-1&&(n|=Ue.L),e.search(wce)!==-1&&(n|=Ue.V),e.search(Sce)!==-1&&(n|=Ue.T),e.search(Cce)!==-1&&(n|=Ue.LV),e.search(kce)!==-1&&(n|=Ue.LVT),e.search(xce)!==-1&&(n|=Ue.ExtPict),n};function yc(e,t){return(e&t)!=0}var Dce=[[Ue.L,Ue.L|Ue.V|Ue.LV|Ue.LVT],[Ue.LV|Ue.V,Ue.V|Ue.T],[Ue.LVT|Ue.T,Ue.T],[Ue.Any,Ue.Extend|Ue.ZWJ],[Ue.Any,Ue.SpacingMark],[Ue.Prepend,Ue.Any],[Ue.ZWJ,Ue.ExtPict],[Ue.RI,Ue.RI]];function Ace(e,t){return Dce.findIndex(n=>yc(e,n[0])&&yc(t,n[1]))===-1}var Vce=/(?:[\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$/,Bce=e=>e.search(Vce)!==-1,_ce=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Tce=e=>{var t=e.match(_ce);return t!==null&&t[0].length/2%2==1},AO=e=>$n(e)&&he.isNodeList(e.children)&&!B.isEditor(e),_e={isAncestor:e=>$n(e)&&he.isNodeList(e.children),isElement:AO,isElementList:e=>Array.isArray(e)&&e.every(t=>_e.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return AO(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},Pce=["text"],Nce=["text"];function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BO=new WeakMap,B={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:a}=t;if(o){var l=B.path(e,o),s=r==="lowest";for(var[u,c]of B.levels(e,{at:l,voids:n,match:a,reverse:s}))if(!Se.isText(u)&&!Y.equals(l,c))return[u,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:B.point(e,t,{edge:"end"}),focus:B.end(e,[])},{distance:a=1}=r,l=0;for(var s of B.positions(e,bc(bc({},r),{},{at:o}))){if(l>a)break;l!==0&&(n=s),l++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:B.start(e,[]),focus:B.point(e,t,{edge:"start"})},{distance:a=1}=r,l=0;for(var s of B.positions(e,bc(bc({},r),{},{at:o,reverse:!0}))){if(l>a)break;l!==0&&(n=s),l++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[B.start(e,t),B.end(e,t)],end:(e,t)=>B.point(e,t,{edge:"end"}),first(e,t){var n=B.path(e,t,{edge:"start"});return B.node(e,n)},fragment(e,t){var n=B.range(e,t);return he.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>B.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>Se.isText(n)||B.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>Se.isText(n)),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)=>_e.isElement(t)&&!e.isInline(t),isEditor(e){if(!$n(e))return!1;var t=BO.get(e);if(t!==void 0)return t;var n=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=="function"&&(e.marks===null||$n(e.marks))&&(e.selection===null||re.isRange(e.selection))&&he.isNodeList(e.children)&&zi.isOperationList(e.operations);return BO.set(e,n),n},isEnd(e,t,n){var r=B.end(e,n);return Ke.equals(t,r)},isEdge:(e,t,n)=>B.isStart(e,t,n)||B.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Se.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>_e.isElement(t)&&e.isInline(t),isNormalizing(e){var t=CO.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=B.start(e,n);return Ke.equals(t,r)},isVoid:(e,t)=>_e.isElement(t)&&e.isVoid(t),last(e,t){var n=B.path(e,t,{edge:"end"});return B.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[he.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),n){var l=[],s=B.path(e,n);for(var[u,c]of he.levels(e,s))if(a(u,c)&&(l.push([u,c]),!o&&B.isVoid(e,u)))break;r&&l.reverse(),yield*l}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(re.isExpanded(n)){var[r]=B.nodes(e,{match:Se.isText});if(r){var[o]=r;return Qa(o,Pce)}return{}}var{anchor:a}=n,{path:l}=a,[s]=B.leaf(e,l);if(a.offset===0){var u=B.previous(e,{at:l,match:Se.isText}),c=B.above(e,{match:h=>B.isBlock(e,h)});if(u&&c){var[d,f]=u,[,g]=c;Y.isAncestor(g,f)&&(s=d)}}return Qa(s,Nce)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var l=B.after(e,a,{voids:r});if(l){var[,s]=B.last(e,[]),u=[l.path,s];if(Y.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(Y.isPath(a)){var[c]=B.parent(e,a);o=f=>c.children.includes(f)}else o=()=>!0;var[d]=B.nodes(e,{at:u,match:o,mode:n,voids:r});return d}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[he.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:a=!1,voids:l=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,c;if(Oce.isSpan(n))u=n[0],c=n[1];else{var d=B.path(e,n,{edge:"start"}),f=B.path(e,n,{edge:"end"});u=a?f:d,c=a?d:f}var g,h=he.nodes(e,{reverse:a,from:u,to:c,pass:w=>{var[S]=w;return!l&&B.isVoid(e,S)}}),p=[];for(var[y,v]of h){var b=g&&Y.compare(v,g[1])===0;if(r!=="highest"||!b){if(s(y,v))if(r==="lowest"&&b)g=[y,v];else{var m=r==="lowest"?g:[y,v];m&&(o?p.push(m):yield m),g=[y,v]}else if(o&&!b&&Se.isText(y))return}}r==="lowest"&&g&&(o?p.push(g):yield g),o&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=a=>my.get(a)||[];if(B.isNormalizing(e)){if(n){var o=Array.from(he.nodes(e),a=>{var[,l]=a;return l});my.set(e,o)}r(e).length!==0&&B.withoutNormalizing(e,()=>{for(var a of r(e))if(he.has(e,a)){var l=B.node(e,a),[s,u]=l;_e.isElement(s)&&s.children.length===0&&e.normalizeNode(l)}for(var c=42*r(e).length,d=0;r(e).length!==0;){if(d>c)throw new Error(`
29
+ */function uO(e){return Object.prototype.toString.call(e)==="[object Object]"}function $n(e){var t,n;return uO(e)!==!1&&((t=e.constructor)===void 0||uO(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Oo(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(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ds(e){return!!e&&!!e[Hr]}function As(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===oce}(e)||Array.isArray(e)||!!e[bO]||!!e.constructor[bO]||Fk(e)||Rk(e))}function dh(e,t,n){n===void 0&&(n=!1),vc(e)===0?(n?Object.keys:Xk)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function vc(e){var t=e[Hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fk(e)?2:Rk(e)?3:0}function Ik(e,t){return vc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cO(e,t,n){var r=vc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Fk(e){return nce&&e instanceof Map}function Rk(e){return rce&&e instanceof Set}function Vs(e){return e.o||e.t}function Lk(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ace(e);delete t[Hr];for(var n=Xk(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Mk(e,t){return t===void 0&&(t=!1),jk(e)||Ds(e)||!As(e)||(vc(e)>1&&(e.set=e.add=e.clear=e.delete=$ue),Object.freeze(e),t&&dh(e,function(n,r){return Mk(r,!0)},!0)),e}function $ue(){Oo(2)}function jk(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Za(e){var t=ice[e];return t||Oo(18,e),t}function dO(){return fh}function zk(e,t){t&&(Za("Patches"),e.u=[],e.s=[],e.v=t)}function uy(e){Hk(e),e.p.forEach(ece),e.p=null}function Hk(e){e===fh&&(fh=e.l)}function fO(e){return fh={p:[],l:fh,h:e,m:!0,_:0}}function ece(e){var t=e[Hr];t.i===0||t.i===1?t.j():t.O=!0}function Uk(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Za("ES5").S(t,e,r),r?(n[Hr].P&&(uy(t),Oo(4)),As(e)&&(e=cy(t,e),t.l||dy(t,e)),t.u&&Za("Patches").M(n[Hr],e,t.u,t.s)):e=cy(t,n,[]),uy(t),t.u&&t.v(t.u,t.s),e!==yO?e:void 0}function cy(e,t,n){if(jk(t))return t;var r=t[Hr];if(!r)return dh(t,function(a,l){return hO(e,r,t,a,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return dy(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Lk(r.k):r.o;dh(r.i===3?new Set(o):o,function(a,l){return hO(e,r,o,a,l,n)}),dy(e,o,!1),n&&e.u&&Za("Patches").R(r,n,e.u,e.s)}return r.o}function hO(e,t,n,r,o,a){if(Ds(o)){var l=cy(e,o,a&&t&&t.i!==3&&!Ik(t.D,r)?a.concat(r):void 0);if(cO(n,r,l),!Ds(l))return;e.m=!1}if(As(o)&&!jk(o)){if(!e.h.F&&e._<1)return;cy(e,o),t&&t.A.l||dy(e,o)}}function dy(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Mk(t,n)}function Wk(e,t){var n=e[Hr];return(n?Vs(n):e)[t]}function gO(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 Gk(e){e.P||(e.P=!0,e.l&&Gk(e.l))}function Kk(e){e.o||(e.o=Lk(e.t))}function qk(e,t,n){var r=Fk(t)?Za("MapSet").N(t,n):Rk(t)?Za("MapSet").T(t,n):e.g?function(o,a){var l=Array.isArray(o),s={i:l?1:0,A:a?a.A:dO(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,c=fy;l&&(u=[s],c=hy);var d=Proxy.revocable(u,c),f=d.revoke,g=d.proxy;return s.k=g,s.j=f,g}(t,n):Za("ES5").J(t,n);return(n?n.A:dO()).p.push(r),r}function tce(e){return Ds(e)||Oo(22,e),function t(n){if(!As(n))return n;var r,o=n[Hr],a=vc(n);if(o){if(!o.P&&(o.i<4||!Za("ES5").K(o)))return o.t;o.I=!0,r=mO(n,a),o.I=!1}else r=mO(n,a);return dh(r,function(l,s){o&&function(u,c){return vc(u)===2?u.get(c):u[c]}(o.t,l)===s||cO(r,l,t(s))}),a===3?new Set(r):r}(e)}function mO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Lk(e)}var pO,fh,Yk=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",nce=typeof Map<"u",rce=typeof Set<"u",vO=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",yO=Yk?Symbol.for("immer-nothing"):((pO={})["immer-nothing"]=!0,pO),bO=Yk?Symbol.for("immer-draftable"):"__$immer_draftable",Hr=Yk?Symbol.for("immer-state"):"__$immer_state",oce=""+Object.prototype.constructor,Xk=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ace=Object.getOwnPropertyDescriptors||function(e){var t={};return Xk(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ice={},fy={get:function(e,t){if(t===Hr)return e;var n=Vs(e);if(!Ik(n,t))return function(o,a,l){var s,u=gO(a,l);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!As(r)?r:r===Wk(e.t,t)?(Kk(e),e.o[t]=qk(e.A.h,r,e)):r},has:function(e,t){return t in Vs(e)},ownKeys:function(e){return Reflect.ownKeys(Vs(e))},set:function(e,t,n){var r=gO(Vs(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Wk(Vs(e),t),a=o==null?void 0:o[Hr];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(l,s){return l===s?l!==0||1/l==1/s:l!=l&&s!=s}(n,o)&&(n!==void 0||Ik(e.t,t)))return!0;Kk(e),Gk(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Wk(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Kk(e),Gk(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Vs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Oo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Oo(12)}},hy={};dh(fy,function(e,t){hy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),hy.deleteProperty=function(e,t){return fy.deleteProperty.call(this,e[0],t)},hy.set=function(e,t,n){return fy.set.call(this,e[0],t,n,e[0])};var lce=function(){function e(n){var r=this;this.g=vO,this.F=!0,this.produce=function(o,a,l){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=r;return function(h){var p=this;h===void 0&&(h=s);for(var y=arguments.length,v=Array(y>1?y-1:0),b=1;b<y;b++)v[b-1]=arguments[b];return u.produce(h,function(m){var w;return(w=a).call.apply(w,[p,m].concat(v))})}}var c;if(typeof a!="function"&&Oo(6),l!==void 0&&typeof l!="function"&&Oo(7),As(o)){var d=fO(r),f=qk(r,o,void 0),g=!0;try{c=a(f),g=!1}finally{g?uy(d):Hk(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(h){return zk(d,l),Uk(h,d)},function(h){throw uy(d),h}):(zk(d,l),Uk(c,d))}if(!o||typeof o!="object")return(c=a(o))===yO?void 0:(c===void 0&&(c=o),r.F&&Mk(c,!0),c);Oo(21,o)},this.produceWithPatches=function(o,a){return typeof o=="function"?function(u){for(var c=arguments.length,d=Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];return r.produceWithPatches(u,function(g){return o.apply(void 0,[g].concat(d))})}:[r.produce(o,a,function(u,c){l=u,s=c}),l,s];var l,s},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){As(n)||Oo(8),Ds(n)&&(n=tce(n));var r=fO(this),o=qk(this,n,void 0);return o[Hr].C=!0,Hk(r),o},t.finishDraft=function(n,r){var o=(n&&n[Hr]).A;return zk(o,r),Uk(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!vO&&Oo(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var l=Za("Patches").$;return Ds(n)?l(n,r):this.produce(n,function(s){return l(s,r)})},e}(),Ur=new lce,gy=Ur.produce;Ur.produceWithPatches.bind(Ur),Ur.setAutoFreeze.bind(Ur),Ur.setUseProxies.bind(Ur),Ur.applyPatches.bind(Ur);var wO=Ur.createDraft.bind(Ur),SO=Ur.finishDraft.bind(Ur);function ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var my=new WeakMap,hh=new WeakMap,CO=new WeakMap,kO=new WeakMap,xO=new WeakMap,EO=new WeakMap;function DO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sce=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of B.pathRefs(e))Lce.transform(n,t);for(var r of B.pointRefs(e))Mce.transform(r,t);for(var o of B.rangeRefs(e))zce.transform(o,t);var a=new Set,l=[],s=g=>{if(g){var h=g.join(",");a.has(h)||(a.add(h),l.push(g))}},u=my.get(e)||[],c=uce(t);for(var d of u)s(Y.transform(d,t));for(var f of c)s(f);my.set(e,l),Q.transform(e,t),e.operations.push(t),B.normalize(e),t.type==="set_selection"&&(e.marks=null),hh.get(e)||(hh.set(e,!0),Promise.resolve().then(()=>{hh.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(re.isExpanded(r))Q.setNodes(e,{[t]:n},{match:Se.isText,split:!0});else{var o=py(py({},B.marks(e)||{}),{},{[t]:n});e.marks=o,hh.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&re.isCollapsed(n)&&Q.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&re.isCollapsed(n)&&Q.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&re.isExpanded(n)&&Q.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?he.fragment(e,t):[]},insertBreak:()=>{Q.splitNodes(e,{always:!0})},insertFragment:t=>{Q.insertFragment(e,t)},insertNode:t=>{Q.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=py({text:t},r);Q.insertNodes(e,o)}else Q.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Se.isText(n))if(_e.isElement(n)&&n.children.length===0)Q.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!B.isEditor(n)&&_e.isElement(n)&&(e.isInline(n)||n.children.length===0||Se.isText(n.children[0])||e.isInline(n.children[0])),a=0,l=0;l<n.children.length;l++,a++){var s=he.get(e,r);if(!Se.isText(s)){var u=n.children[l],c=s.children[a-1],d=l===n.children.length-1;(Se.isText(u)||_e.isElement(u)&&e.isInline(u))!==o?(Q.removeNodes(e,{at:r.concat(a),voids:!0}),a--):_e.isElement(u)?e.isInline(u)&&(c!=null&&Se.isText(c)?d&&(Q.insertNodes(e,{text:""},{at:r.concat(a+1),voids:!0}),a++):(Q.insertNodes(e,{text:""},{at:r.concat(a),voids:!0}),a++)):c!=null&&Se.isText(c)&&(Se.equals(u,c,{loose:!0})?(Q.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(Q.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):u.text===""&&(Q.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(re.isExpanded(n))Q.unsetNodes(e,t,{match:Se.isText,split:!0});else{var r=py({},B.marks(e)||{});delete r[t],e.marks=r,hh.get(e)||e.onChange()}}};return e},uce=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Y.levels(t);case"insert_node":var{node:n,path:r}=e,o=Y.levels(r),a=Se.isText(n)?[]:Array.from(he.nodes(n),S=>{var[,C]=S;return r.concat(C)});return[...o,...a];case"merge_node":var{path:l}=e;return[...Y.ancestors(l),Y.previous(l)];case"move_node":var{path:s,newPath:u}=e;if(Y.equals(s,u))return[];var c=[],d=[];for(var f of Y.ancestors(s)){var g=Y.transform(f,e);c.push(g)}for(var h of Y.ancestors(u)){var p=Y.transform(h,e);d.push(p)}var y=d[d.length-1],v=u[u.length-1],b=y.concat(v);return[...c,...d,b];case"remove_node":var{path:m}=e;return[...Y.ancestors(m)];case"split_node":var{path:w}=e;return[...Y.levels(w),Y.next(w)];default:return[]}};function Qa(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var u,c,d={},f=Object.keys(l);for(c=0;c<f.length;c++)u=f[c],s.indexOf(u)>=0||(d[u]=l[u]);return d}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ue,Jk=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?gce(e):e,o=Ue.None,a=Ue.None,l=0,s=null;for(var u of r){var c=u.codePointAt(0);if(!c)break;var d=Dce(u,c);if([o,a]=n?[a,d]:[d,o],yc(o,Ue.ZWJ)&&yc(a,Ue.ExtPict)&&!_ce(n?e.substring(0,l):e.substring(0,e.length-l))||yc(o,Ue.RI)&&yc(a,Ue.RI)&&!(s=s!==null?!s:!!n||Pce(e.substring(0,e.length-l)))||o!==Ue.None&&a!==Ue.None&&Vce(o,a))break;l+=u.length}return l||1},cce=/\s/,dce=/[\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]/,fce=/['\u2018\u2019]/,Zk=(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)]},hce=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(cce.test(t))return!1;if(fce.test(t)){var o=Jk(n,r),[a,l]=Zk(n,o,r);if(e(a,l,r))return!0}return!dce.test(t)},gce=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(pce(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(mce(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},mce=e=>e>=55296&&e<=56319,pce=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"})(Ue||(Ue={}));var vce=/^(?:[\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])$/,yce=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,bce=/^(?:[\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])$/,wce=/^[\u1100-\u115F\uA960-\uA97C]$/,Sce=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Cce=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,kce=/^[\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]$/,xce=/^[\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]$/,Ece=/^(?:[\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])$/,Dce=(e,t)=>{var n=Ue.Any;return e.search(vce)!==-1&&(n|=Ue.Extend),t===8205&&(n|=Ue.ZWJ),t>=127462&&t<=127487&&(n|=Ue.RI),e.search(yce)!==-1&&(n|=Ue.Prepend),e.search(bce)!==-1&&(n|=Ue.SpacingMark),e.search(wce)!==-1&&(n|=Ue.L),e.search(Sce)!==-1&&(n|=Ue.V),e.search(Cce)!==-1&&(n|=Ue.T),e.search(kce)!==-1&&(n|=Ue.LV),e.search(xce)!==-1&&(n|=Ue.LVT),e.search(Ece)!==-1&&(n|=Ue.ExtPict),n};function yc(e,t){return(e&t)!=0}var Ace=[[Ue.L,Ue.L|Ue.V|Ue.LV|Ue.LVT],[Ue.LV|Ue.V,Ue.V|Ue.T],[Ue.LVT|Ue.T,Ue.T],[Ue.Any,Ue.Extend|Ue.ZWJ],[Ue.Any,Ue.SpacingMark],[Ue.Prepend,Ue.Any],[Ue.ZWJ,Ue.ExtPict],[Ue.RI,Ue.RI]];function Vce(e,t){return Ace.findIndex(n=>yc(e,n[0])&&yc(t,n[1]))===-1}var Bce=/(?:[\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$/,_ce=e=>e.search(Bce)!==-1,Tce=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Pce=e=>{var t=e.match(Tce);return t!==null&&t[0].length/2%2==1},AO=e=>$n(e)&&he.isNodeList(e.children)&&!B.isEditor(e),_e={isAncestor:e=>$n(e)&&he.isNodeList(e.children),isElement:AO,isElementList:e=>Array.isArray(e)&&e.every(t=>_e.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return AO(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},Nce=["text"],Oce=["text"];function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BO=new WeakMap,B={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:a}=t;if(o){var l=B.path(e,o),s=r==="lowest";for(var[u,c]of B.levels(e,{at:l,voids:n,match:a,reverse:s}))if(!Se.isText(u)&&!Y.equals(l,c))return[u,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:B.point(e,t,{edge:"end"}),focus:B.end(e,[])},{distance:a=1}=r,l=0;for(var s of B.positions(e,bc(bc({},r),{},{at:o}))){if(l>a)break;l!==0&&(n=s),l++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:B.start(e,[]),focus:B.point(e,t,{edge:"start"})},{distance:a=1}=r,l=0;for(var s of B.positions(e,bc(bc({},r),{},{at:o,reverse:!0}))){if(l>a)break;l!==0&&(n=s),l++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[B.start(e,t),B.end(e,t)],end:(e,t)=>B.point(e,t,{edge:"end"}),first(e,t){var n=B.path(e,t,{edge:"start"});return B.node(e,n)},fragment(e,t){var n=B.range(e,t);return he.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>B.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>Se.isText(n)||B.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>Se.isText(n)),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)=>_e.isElement(t)&&!e.isInline(t),isEditor(e){if(!$n(e))return!1;var t=BO.get(e);if(t!==void 0)return t;var n=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=="function"&&(e.marks===null||$n(e.marks))&&(e.selection===null||re.isRange(e.selection))&&he.isNodeList(e.children)&&zi.isOperationList(e.operations);return BO.set(e,n),n},isEnd(e,t,n){var r=B.end(e,n);return Ke.equals(t,r)},isEdge:(e,t,n)=>B.isStart(e,t,n)||B.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Se.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>_e.isElement(t)&&e.isInline(t),isNormalizing(e){var t=CO.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=B.start(e,n);return Ke.equals(t,r)},isVoid:(e,t)=>_e.isElement(t)&&e.isVoid(t),last(e,t){var n=B.path(e,t,{edge:"end"});return B.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[he.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),n){var l=[],s=B.path(e,n);for(var[u,c]of he.levels(e,s))if(a(u,c)&&(l.push([u,c]),!o&&B.isVoid(e,u)))break;r&&l.reverse(),yield*l}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(re.isExpanded(n)){var[r]=B.nodes(e,{match:Se.isText});if(r){var[o]=r;return Qa(o,Nce)}return{}}var{anchor:a}=n,{path:l}=a,[s]=B.leaf(e,l);if(a.offset===0){var u=B.previous(e,{at:l,match:Se.isText}),c=B.above(e,{match:h=>B.isBlock(e,h)});if(u&&c){var[d,f]=u,[,g]=c;Y.isAncestor(g,f)&&(s=d)}}return Qa(s,Oce)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var l=B.after(e,a,{voids:r});if(l){var[,s]=B.last(e,[]),u=[l.path,s];if(Y.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(Y.isPath(a)){var[c]=B.parent(e,a);o=f=>c.children.includes(f)}else o=()=>!0;var[d]=B.nodes(e,{at:u,match:o,mode:n,voids:r});return d}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[he.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:a=!1,voids:l=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,c;if(Ice.isSpan(n))u=n[0],c=n[1];else{var d=B.path(e,n,{edge:"start"}),f=B.path(e,n,{edge:"end"});u=a?f:d,c=a?d:f}var g,h=he.nodes(e,{reverse:a,from:u,to:c,pass:w=>{var[S]=w;return!l&&B.isVoid(e,S)}}),p=[];for(var[y,v]of h){var b=g&&Y.compare(v,g[1])===0;if(r!=="highest"||!b){if(s(y,v))if(r==="lowest"&&b)g=[y,v];else{var m=r==="lowest"?g:[y,v];m&&(o?p.push(m):yield m),g=[y,v]}else if(o&&!b&&Se.isText(y))return}}r==="lowest"&&g&&(o?p.push(g):yield g),o&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=a=>my.get(a)||[];if(B.isNormalizing(e)){if(n){var o=Array.from(he.nodes(e),a=>{var[,l]=a;return l});my.set(e,o)}r(e).length!==0&&B.withoutNormalizing(e,()=>{for(var a of r(e))if(he.has(e,a)){var l=B.node(e,a),[s,u]=l;_e.isElement(s)&&s.children.length===0&&e.normalizeNode(l)}for(var c=42*r(e).length,d=0;r(e).length!==0;){if(d>c)throw new Error(`
30
30
  Could not completely normalize the editor after `.concat(c,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
31
- `));var f=r(e).pop();if(he.has(e,f)){var g=B.node(e,f);e.normalizeNode(g)}d++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n),o=Y.parent(r);return B.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(Y.isPath(t)){if(o==="start"){var[,a]=he.first(e,t);t=a}else if(o==="end"){var[,l]=he.last(e,t);t=l}}return re.isRange(t)&&(t=o==="start"?re.start(t):o==="end"?re.end(t):Y.common(t.anchor.path,t.focus.path)),Ke.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>he.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return B.pathRefs(e).delete(o),o.current=null,a}};return B.pathRefs(e).add(o),o},pathRefs(e){var t=kO.get(e);return t||(t=new Set,kO.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Y.isPath(t)){var o;if(r==="end"){var[,a]=he.last(e,t);o=a}else{var[,l]=he.first(e,t);o=l}var s=he.get(e,o);if(!Se.isText(s))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:r==="end"?s.text.length:0}}if(re.isRange(t)){var[u,c]=re.edges(t);return r==="start"?u:c}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return B.pointRefs(e).delete(o),o.current=null,a}};return B.pointRefs(e).add(o),o},pointRefs(e){var t=xO.get(e);return t||(t=new Set,xO.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1}=t;if(n){var l=B.range(e,n),[s,u]=re.edges(l),c=o?u:s,d=!1,f="",g=0,h=0,p=0;for(var[y,v]of B.nodes(e,{at:n,reverse:o,voids:a})){if(_e.isElement(y)){if(!a&&e.isVoid(y)){yield B.start(e,v);continue}if(e.isInline(y))continue;if(B.hasInlines(e,y)){var b=Y.isAncestor(v,u.path)?u:B.end(e,v),m=Y.isAncestor(v,s.path)?s:B.start(e,v);f=B.string(e,{anchor:m,focus:b},{voids:a}),d=!0}}if(Se.isText(y)){var w=Y.equals(v,c.path);for(w?(h=o?c.offset:y.text.length-c.offset,p=c.offset):(h=y.text.length,p=o?h:0),(w||d||r==="offset")&&(yield{path:v,offset:p},d=!1);;){if(g===0){if(f==="")break;g=S(f,r,o),f=Zk(f,g,o)[1]}if(p=o?p-g:p+g,(h-=g)<0){g=-h;break}g=0,yield{path:v,offset:p}}}}}function S(C,x,k){return x==="character"?Jk(C,k):x==="word"?function(E){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],N=0,V=!1;E.length>0;){var D=Jk(E,A),[P,O]=Zk(E,D,A);if(fce(P,O,A))V=!0,N+=D;else{if(V)break;N+=D}E=O}return N}(C,k):x==="line"||x==="block"?C.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var l=B.before(e,a,{voids:r});if(l){var[,s]=B.first(e,[]),u=[l.path,s];if(Y.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(Y.isPath(a)){var[c]=B.parent(e,a);o=f=>c.children.includes(f)}else o=()=>!0;var[d]=B.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return d}}},range:(e,t,n)=>re.isRange(t)&&!n?t:{anchor:B.start(e,t),focus:B.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return B.rangeRefs(e).delete(o),o.current=null,a}};return B.rangeRefs(e).add(o),o},rangeRefs(e){var t=EO.get(e);return t||(t=new Set,EO.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){CO.set(e,t)},start:(e,t)=>B.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=B.range(e,t),[a,l]=re.edges(o),s="";for(var[u,c]of B.nodes(e,{at:o,match:Se.isText,voids:r})){var d=u.text;Y.equals(c,l.path)&&(d=d.slice(0,l.offset)),Y.equals(c,a.path)&&(d=d.slice(a.offset)),s+=d}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,a]=re.edges(t);if(o.offset!==0||a.offset!==0||re.isCollapsed(t))return t;var l=B.above(e,{at:a,match:g=>B.isBlock(e,g)}),s=l?l[1]:[],u={anchor:B.start(e,[]),focus:a},c=!0;for(var[d,f]of B.nodes(e,{at:u,match:Se.isText,reverse:!0,voids:r}))if(c)c=!1;else if(d.text!==""||Y.isBefore(f,s)){a={path:f,offset:d.text.length};break}return{anchor:o,focus:a}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.above(e,bc(bc({},t),{},{match:n=>B.isVoid(e,n)}))},withoutNormalizing(e,t){var n=B.isNormalizing(e);B.setNormalizing(e,!1);try{t()}finally{B.setNormalizing(e,n)}B.normalize(e)}},Oce={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(Y.isPath)},Ice=["children"],Fce=["text"],_O=new WeakMap,he={ancestor(e,t){var n=he.get(e,t);if(Se.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of Y.ancestors(t,n)){var o=[he.ancestor(e,r),r];yield o}},child(e,t){if(Se.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)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&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=he.ancestor(e,t),{children:a}=o,l=r?a.length-1:0;r?l>=0:l<a.length;){var s=he.child(o,l),u=t.concat(l);yield[s,u],l=r?l-1:l+1}},common(e,t,n){var r=Y.common(t,n);return[he.get(e,r),r]},descendant(e,t){var n=he.get(e,t);if(B.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&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))_e.isElement(n)&&(yield[n,r])},extractProps:e=>_e.isAncestor(e)?Qa(e,Ice):Qa(e,Fce),first(e,t){for(var n=t.slice(),r=he.get(e,n);r&&!Se.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Se.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=gy({children:e.children},r=>{var[o,a]=re.edges(t),l=he.nodes(r,{reverse:!0,pass:g=>{var[,h]=g;return!re.includes(t,h)}});for(var[,s]of l){if(!re.includes(t,s)){var u=he.parent(r,s),c=s[s.length-1];u.children.splice(c,1)}if(Y.equals(s,a.path)){var d=he.leaf(r,s);d.text=d.text.slice(0,a.offset)}if(Y.equals(s,o.path)){var f=he.leaf(r,s);f.text=f.text.slice(o.offset)}}B.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Se.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(Se.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Se.isText(e)||_e.isElement(e)||B.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=_O.get(e);if(t!==void 0)return t;var n=e.every(r=>he.isNode(r));return _O.set(e,n),n},last(e,t){for(var n=t.slice(),r=he.get(e,n);r&&!Se.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=he.get(e,t);if(!Se.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of Y.levels(t,n)){var o=he.get(e,r);yield[o,r]}},matches:(e,t)=>_e.isElement(e)&&_e.isElementProps(t)&&_e.matches(e,t)||Se.isText(e)&&Se.isTextProps(t)&&Se.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:a}=t,l=new Set,s=[],u=e;!a||!(r?Y.isBefore(s,a):Y.isAfter(s,a));)if(l.has(u)||(yield[u,s]),l.has(u)||Se.isText(u)||u.children.length===0||n!=null&&n([u,s])!==!1){if(s.length===0)break;if(!r){var c=Y.next(s);if(he.has(e,c)){s=c,u=he.get(e,s);continue}}r&&s[s.length-1]!==0?(s=Y.previous(s),u=he.get(e,s)):(s=Y.parent(s),u=he.get(e,s),l.add(u))}else{l.add(u);var d=r?u.children.length-1:0;Y.isAncestor(s,o)&&(d=o[s.length]),s=s.concat(d),u=he.get(e,s)}},parent(e,t){var n=Y.parent(t),r=he.get(e,n);if(Se.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=>Se.isText(e)?e.text:e.children.map(he.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))Se.isText(n)&&(yield[n,r])}};function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var zi={isNodeOperation:e=>zi.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!$n(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Y.isPath(e.path)&&he.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Y.isPath(e.path);case"merge_node":return typeof e.position=="number"&&Y.isPath(e.path)&&$n(e.properties);case"move_node":return Y.isPath(e.path)&&Y.isPath(e.newPath);case"set_node":return Y.isPath(e.path)&&$n(e.properties)&&$n(e.newProperties);case"set_selection":return e.properties===null&&re.isRange(e.newProperties)||e.newProperties===null&&re.isRange(e.properties)||$n(e.properties)&&$n(e.newProperties);case"split_node":return Y.isPath(e.path)&&typeof e.position=="number"&&$n(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>zi.isOperation(t)),isSelectionOperation:e=>zi.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>zi.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return gn(gn({},e),{},{type:"remove_node"});case"insert_text":return gn(gn({},e),{},{type:"remove_text"});case"merge_node":return gn(gn({},e),{},{type:"split_node",path:Y.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Y.equals(t,n))return e;if(Y.isSibling(n,t))return gn(gn({},e),{},{path:t,newPath:n});var r=Y.transform(n,e),o=Y.transform(Y.next(n),e);return gn(gn({},e),{},{path:r,newPath:o});case"remove_node":return gn(gn({},e),{},{type:"insert_node"});case"remove_text":return gn(gn({},e),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:l}=e;return gn(gn({},e),{},{properties:l,newProperties:a});case"set_selection":var{properties:s,newProperties:u}=e;return gn(gn({},e),{},s==null?{properties:u,newProperties:null}:u==null?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return gn(gn({},e),{},{type:"merge_node",path:Y.next(e.path)})}}},Y={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=Y.levels(e,t);return r=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),a=e[n],l=t[n];return Y.equals(r,o)&&a>l},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Y.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],l=t[n];return Y.equals(r,o)&&a<l},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>Y.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&Y.compare(e,t)===0,isBefore:(e,t)=>Y.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&Y.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&Y.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&Y.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&Y.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),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]&&Y.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?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(e.length===0)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(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)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(!Y.isAncestor(t,e)&&!Y.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&&arguments[2]!==void 0?arguments[2]:{};return gy(e,r=>{var{affinity:o="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:a}=t;(Y.equals(a,r)||Y.endsBefore(a,r)||Y.isAncestor(a,r))&&(r[a.length-1]+=1);break;case"remove_node":var{path:l}=t;if(Y.equals(l,r)||Y.isAncestor(l,r))return null;Y.endsBefore(l,r)&&(r[l.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Y.equals(s,r)||Y.endsBefore(s,r)?r[s.length-1]-=1:Y.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:c,position:d}=t;if(Y.equals(c,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else Y.endsBefore(c,r)?r[c.length-1]+=1:Y.isAncestor(c,r)&&e[c.length]>=d&&(r[c.length-1]+=1,r[c.length]-=d);break;case"move_node":var{path:f,newPath:g}=t;if(Y.equals(f,g))return;if(Y.isAncestor(f,r)||Y.equals(f,r)){var h=g.slice();return Y.endsBefore(f,g)&&f.length<g.length&&(h[f.length-1]-=1),h.concat(r.slice(f.length))}Y.isSibling(f,g)&&(Y.isAncestor(g,r)||Y.equals(g,r))?Y.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Y.endsBefore(g,r)||Y.equals(g,r)||Y.isAncestor(g,r)?(Y.endsBefore(f,r)&&(r[f.length-1]-=1),r[g.length-1]+=1):Y.endsBefore(f,r)&&(Y.equals(g,r)&&(r[g.length-1]+=1),r[f.length-1]-=1)}}})}},Rce={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Y.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function PO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ke={compare(e,t){var n=Y.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>Ke.compare(e,t)===1,isBefore:(e,t)=>Ke.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&Y.equals(e.path,t.path),isPoint:e=>$n(e)&&typeof e.offset=="number"&&Y.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gy(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:a,offset:l}=r;switch(t.type){case"insert_node":case"move_node":r.path=Y.transform(a,t,n);break;case"insert_text":Y.equals(t.path,a)&&t.offset<=l&&(r.offset+=t.text.length);break;case"merge_node":Y.equals(t.path,a)&&(r.offset+=t.position),r.path=Y.transform(a,t,n);break;case"remove_text":Y.equals(t.path,a)&&t.offset<=l&&(r.offset-=Math.min(l-t.offset,t.text.length));break;case"remove_node":if(Y.equals(t.path,a)||Y.isAncestor(t.path,a))return null;r.path=Y.transform(a,t,n);break;case"split_node":if(Y.equals(t.path,a)){if(t.position===l&&o==null)return null;(t.position<l||t.position===l&&o==="forward")&&(r.offset-=t.position,r.path=Y.transform(a,t,NO(NO({},n),{},{affinity:"forward"})))}else r.path=Y.transform(a,t,n)}})}},Lce={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Ke.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Mce=["anchor","focus"];function OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}var re={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return re.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=re.edges(e);return t},equals:(e,t)=>Ke.equals(e.anchor,t.anchor)&&Ke.equals(e.focus,t.focus),includes(e,t){if(re.isRange(t)){if(re.includes(e,t.anchor)||re.includes(e,t.focus))return!0;var[n,r]=re.edges(e),[o,a]=re.edges(t);return Ke.isBefore(n,o)&&Ke.isAfter(r,a)}var[l,s]=re.edges(e),u=!1,c=!1;return Ke.isPoint(t)?(u=Ke.compare(t,l)>=0,c=Ke.compare(t,s)<=0):(u=Y.compare(t,l.path)>=0,c=Y.compare(t,s.path)<=0),u&&c},intersection(e,t){var n=Qa(e,Mce),[r,o]=re.edges(e),[a,l]=re.edges(t),s=Ke.isBefore(r,a)?a:r,u=Ke.isBefore(o,l)?o:l;return Ke.isBefore(u,s)?null:function(c){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?OO(Object(f),!0).forEach(function(g){ua(c,g,f[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):OO(Object(f)).forEach(function(g){Object.defineProperty(c,g,Object.getOwnPropertyDescriptor(f,g))})}return c}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ke.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ke.equals(t,n)},isExpanded:e=>!re.isCollapsed(e),isForward:e=>!re.isBackward(e),isRange:e=>$n(e)&&Ke.isPoint(e.anchor)&&Ke.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=re.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gy(e,r=>{if(r===null)return null;var o,a,{affinity:l="inward"}=n;if(l==="inward"){var s=re.isCollapsed(r);re.isForward(r)?(o="forward",a=s?o:"backward"):(o="backward",a=s?o:"forward")}else l==="outward"?re.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=l,a=l);var u=Ke.transform(r.anchor,t,{affinity:o}),c=Ke.transform(r.focus,t,{affinity:a});if(!u||!c)return null;r.anchor=u,r.focus=c})}},jce={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=re.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},IO=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if($n(r)&&$n(o)){if(!IO(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==o[a])return!1}else if(r!==o)return!1}for(var l in t)if(e[l]===void 0&&t[l]!==void 0)return!1;return!0},zce=["text"],Hce=["anchor","focus"];function FO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Se={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(a){return Qa(a,zce)}return IO(r?o(e):e,r?o(t):t)},isText:e=>$n(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>Se.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[$a({},e)];for(var r of t){var o=Qa(r,Hce),[a,l]=re.edges(r),s=[],u=0;for(var c of n){var{length:d}=c.text,f=u;if(u+=d,a.offset<=f&&l.offset>=u)Object.assign(c,o),s.push(c);else if(a.offset!==l.offset&&(a.offset===u||l.offset===f)||a.offset>u||l.offset<f||l.offset===f&&f!==0)s.push(c);else{var g=c,h=void 0,p=void 0;if(l.offset<u){var y=l.offset-f;p=$a($a({},g),{},{text:g.text.slice(y)}),g=$a($a({},g),{},{text:g.text.slice(0,y)})}if(a.offset>f){var v=a.offset-f;h=$a($a({},g),{},{text:g.text.slice(0,v)}),g=$a($a({},g),{},{text:g.text.slice(v)})}Object.assign(g,o),h&&s.push(h),s.push(g),p&&s.push(p)}}n=s}return n}};function RO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Uce={transform(e,t){e.children=wO(e.children);var n=e.selection&&wO(e.selection);try{n=((r,o,a)=>{switch(a.type){case"insert_node":var{path:l,node:s}=a,u=he.parent(r,l),c=l[l.length-1];if(c>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(l,"] because the destination is past the end of the node."));if(u.children.splice(c,0,s),o)for(var[d,f]of re.points(o))o[f]=Ke.transform(d,a);break;case"insert_text":var{path:g,offset:h,text:p}=a;if(p.length===0)break;var y=he.leaf(r,g),v=y.text.slice(0,h),b=y.text.slice(h);if(y.text=v+p+b,o)for(var[m,w]of re.points(o))o[w]=Ke.transform(m,a);break;case"merge_node":var{path:S}=a,C=he.get(r,S),x=Y.previous(S),k=he.get(r,x),E=he.parent(r,S),A=S[S.length-1];if(Se.isText(C)&&Se.isText(k))k.text+=C.text;else{if(Se.isText(C)||Se.isText(k))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(S,"] to nodes of different interfaces: ").concat(C," ").concat(k));k.children.push(...C.children)}if(E.children.splice(A,1),o)for(var[N,V]of re.points(o))o[V]=Ke.transform(N,a);break;case"move_node":var{path:D,newPath:P}=a;if(Y.isAncestor(D,P))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(P,"] because the destination is inside itself."));var O=he.get(r,D),F=he.parent(r,D),H=D[D.length-1];F.children.splice(H,1);var J=Y.transform(D,a),j=he.get(r,Y.parent(J)),z=J[J.length-1];if(j.children.splice(z,0,O),o)for(var[L,_]of re.points(o))o[_]=Ke.transform(L,a);break;case"remove_node":var{path:T}=a,I=T[T.length-1];if(he.parent(r,T).children.splice(I,1),o)for(var[U,$]of re.points(o)){var W=Ke.transform(U,a);if(o!=null&&W!=null)o[$]=W;else{var Z=void 0,ne=void 0;for(var[me,de]of he.texts(r)){if(Y.compare(de,T)!==-1){ne=[me,de];break}Z=[me,de]}var G=!1;Z&&ne&&(G=Y.equals(ne[1],T)?!Y.hasPrevious(ne[1]):Y.common(Z[1],T).length<Y.common(ne[1],T).length),Z&&!G?(U.path=Z[1],U.offset=Z[0].text.length):ne?(U.path=ne[1],U.offset=0):o=null}}break;case"remove_text":var{path:se,offset:ee,text:oe}=a;if(oe.length===0)break;var ue=he.leaf(r,se),we=ue.text.slice(0,ee),Ee=ue.text.slice(ee+oe.length);if(ue.text=we+Ee,o)for(var[Ae,Oe]of re.points(o))o[Oe]=Ke.transform(Ae,a);break;case"set_node":var{path:Be,properties:Le,newProperties:vt}=a;if(Be.length===0)throw new Error("Cannot set properties on the root node!");var _n=he.get(r,Be);for(var br in vt){if(br==="children"||br==="text")throw new Error('Cannot set the "'.concat(br,'" property of nodes!'));var qo=vt[br];qo==null?delete _n[br]:_n[br]=qo}for(var bi in Le)vt.hasOwnProperty(bi)||delete _n[bi];break;case"set_selection":var{newProperties:Yo}=a;if(Yo==null)o=Yo;else{if(o==null){if(!re.isRange(Yo))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Yo)," when there is no current selection."));o=gh({},Yo)}for(var Oa in Yo){var wi=Yo[Oa];if(wi==null){if(Oa==="anchor"||Oa==="focus")throw new Error('Cannot remove the "'.concat(Oa,'" selection property'));delete o[Oa]}else o[Oa]=wi}}break;case"split_node":var{path:lr,position:sr,properties:ur}=a;if(lr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(lr,"] because the root node cannot be split."));var wr,Hn=he.get(r,lr),xo=he.parent(r,lr),Bp=lr[lr.length-1];if(Se.isText(Hn)){var ql=Hn.text.slice(0,sr),Si=Hn.text.slice(sr);Hn.text=ql,wr=gh(gh({},ur),{},{text:Si})}else{var af=Hn.children.slice(0,sr),zu=Hn.children.slice(sr);Hn.children=af,wr=gh(gh({},ur),{},{children:zu})}if(xo.children.splice(Bp+1,0,wr),o)for(var[lf,Xo]of re.points(o))o[Xo]=Ke.transform(lf,a)}return o})(e,n,t)}finally{e.children=SO(e.children),e.selection=n?Ds(n)?SO(n):n:null}}},Wce=["text"],Gce=["children"];function LO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Kce={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:a="lowest"}=n,{at:l,match:s,select:u}=n;if(he.isNode(t)&&(t=[t]),t.length!==0){var[c]=t;if(l||(l=e.selection?e.selection:e.children.length>0?B.end(e,[]):[0],u=!0),u==null&&(u=!1),re.isRange(l))if(r||(l=B.unhangRange(e,l)),re.isCollapsed(l))l=l.anchor;else{var[,d]=re.edges(l),f=B.pointRef(e,d);Q.delete(e,{at:l}),l=f.unref()}if(Ke.isPoint(l)){s==null&&(s=Se.isText(c)?x=>Se.isText(x):e.isInline(c)?x=>Se.isText(x)||B.isInline(e,x):x=>B.isBlock(e,x));var[g]=B.nodes(e,{at:l.path,match:s,mode:a,voids:o});if(!g)return;var[,h]=g,p=B.pathRef(e,h),y=B.isEnd(e,l,h);Q.splitNodes(e,{at:l,match:s,mode:a,voids:o});var v=p.unref();l=y?Y.next(v):v}var b=Y.parent(l),m=l[l.length-1];if(o||!B.void(e,{at:b})){for(var w of t){var S=b.concat(m);m++,e.apply({type:"insert_node",path:S,node:w}),l=Y.next(l)}if(l=Y.previous(l),u){var C=B.end(e,l);C&&Q.select(e,C)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:a}=t;if(a==null&&(a=Y.isPath(n)?wc(e,n):w=>B.isBlock(e,w)),n){var l=B.nodes(e,{at:n,match:a,mode:r,voids:o}),s=Array.from(l,w=>{var[,S]=w;return B.pathRef(e,S)});for(var u of s){var c=u.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=B.node(e,Y.parent(c)),[f,g]=d,h=c[c.length-1],{length:p}=f.children;if(p===1){var y=Y.next(g);Q.moveNodes(e,{at:c,to:y,voids:o}),Q.removeNodes(e,{at:g,voids:o})}else if(h===0)Q.moveNodes(e,{at:c,to:g,voids:o});else if(h===p-1){var v=Y.next(g);Q.moveNodes(e,{at:c,to:v,voids:o})}else{var b=Y.next(c),m=Y.next(g);Q.splitNodes(e,{at:b,voids:o}),Q.moveNodes(e,{at:c,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:a=!1,mode:l="lowest"}=t;if(r){if(n==null)if(Y.isPath(r)){var[s]=B.parent(e,r);n=A=>s.children.includes(A)}else n=A=>B.isBlock(e,A);if(!o&&re.isRange(r)&&(r=B.unhangRange(e,r)),re.isRange(r))if(re.isCollapsed(r))r=r.anchor;else{var[,u]=re.edges(r),c=B.pointRef(e,u);Q.delete(e,{at:r}),r=c.unref(),t.at==null&&Q.select(e,r)}var[d]=B.nodes(e,{at:r,match:n,voids:a,mode:l}),f=B.previous(e,{at:r,match:n,voids:a,mode:l});if(d&&f){var[g,h]=d,[p,y]=f;if(h.length!==0&&y.length!==0){var v,b,m=Y.next(y),w=Y.common(h,y),S=Y.isSibling(h,y),C=Array.from(B.levels(e,{at:h}),A=>{var[N]=A;return N}).slice(w.length).slice(0,-1),x=B.above(e,{at:h,mode:"highest",match:A=>C.includes(A)&&jO(e,A)}),k=x&&B.pathRef(e,x[1]);if(Se.isText(g)&&Se.isText(p)){var E=Qa(g,Wce);b=p.text.length,v=E}else{if(!_e.isElement(g)||!_e.isElement(p))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(g)," ").concat(JSON.stringify(p)));E=Qa(g,Gce),b=p.children.length,v=E}S||Q.moveNodes(e,{at:h,to:m,voids:a}),k&&Q.removeNodes(e,{at:k.current,voids:a}),_e.isElement(p)&&B.isEmpty(e,p)||Se.isText(p)&&p.text===""&&y[y.length-1]!==0?Q.removeNodes(e,{at:y,voids:a}):e.apply({type:"merge_node",path:m,position:b,properties:v}),k&&k.unref()}}}})},moveNodes(e,t){B.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:a=!1}=t,{match:l}=t;if(r){l==null&&(l=Y.isPath(r)?wc(e,r):h=>B.isBlock(e,h));var s=B.pathRef(e,n),u=B.nodes(e,{at:r,match:l,mode:o,voids:a}),c=Array.from(u,h=>{var[,p]=h;return B.pathRef(e,p)});for(var d of c){var f=d.unref(),g=s.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:g}),s.current&&Y.isSibling(g,f)&&Y.isAfter(g,f)&&(s.current=Y.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:a=e.selection,match:l}=t;if(a){l==null&&(l=Y.isPath(a)?wc(e,a):g=>B.isBlock(e,g)),!n&&re.isRange(a)&&(a=B.unhangRange(e,a));var s=B.nodes(e,{at:a,match:l,mode:o,voids:r}),u=Array.from(s,g=>{var[,h]=g;return B.pathRef(e,h)});for(var c of u){var d=c.unref();if(d){var[f]=B.node(e,d);e.apply({type:"remove_node",path:d,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:a=!1,mode:l="lowest",split:s=!1,voids:u=!1}=n;if(o){if(r==null&&(r=Y.isPath(o)?wc(e,o):C=>B.isBlock(e,C)),!a&&re.isRange(o)&&(o=B.unhangRange(e,o)),s&&re.isRange(o)){if(re.isCollapsed(o)&&B.leaf(e,o.anchor)[0].text.length>0)return;var c=B.rangeRef(e,o,{affinity:"inward"}),[d,f]=re.edges(o),g=l==="lowest"?"lowest":"highest",h=B.isEnd(e,f,f.path);Q.splitNodes(e,{at:f,match:r,mode:g,voids:u,always:!h});var p=B.isStart(e,d,d.path);Q.splitNodes(e,{at:d,match:r,mode:g,voids:u,always:!p}),o=c.unref(),n.at==null&&Q.select(e,o)}for(var[y,v]of B.nodes(e,{at:o,match:r,mode:l,voids:u})){var b={},m={};if(v.length!==0){var w=!1;for(var S in t)S!=="children"&&S!=="text"&&t[S]!==y[S]&&(w=!0,y.hasOwnProperty(S)&&(b[S]=y[S]),t[S]!=null&&(m[S]=t[S]));w&&e.apply({type:"set_node",path:v,properties:b,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection,height:l=0,always:s=!1}=t;if(o==null&&(o=O=>B.isBlock(e,O)),re.isRange(a)&&(a=qce(e,a)),Y.isPath(a)){var u=a,c=B.point(e,u),[d]=B.parent(e,u);o=O=>O===d,l=c.path.length-u.length+1,a=c,s=!0}if(a){var f=B.pointRef(e,a,{affinity:"backward"}),[g]=B.nodes(e,{at:a,match:o,mode:n,voids:r});if(g){var h=B.void(e,{at:a,mode:"highest"});if(!r&&h){var[p,y]=h;if(_e.isElement(p)&&e.isInline(p)){var v=B.after(e,y);if(!v){var b=Y.next(y);Q.insertNodes(e,{text:""},{at:b,voids:r}),v=B.point(e,b)}a=v,s=!0}l=a.path.length-y.length+1,s=!0}var m=B.pointRef(e,a),w=a.path.length-l,[,S]=g,C=a.path.slice(0,w),x=l===0?a.offset:a.path[w]+0;for(var[k,E]of B.levels(e,{at:C,reverse:!0,voids:r})){var A=!1;if(E.length<S.length||E.length===0||!r&&B.isVoid(e,k))break;var N=f.current,V=B.isEnd(e,N,E);if(s||!f||!B.isEdge(e,N,E)){A=!0;var D=he.extractProps(k);e.apply({type:"split_node",path:E,position:x,properties:D})}x=E[E.length-1]+(A||V?1:0)}if(t.at==null){var P=m.current||B.end(e,[]);Q.select(e,P)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Q.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:a=e.selection,match:l}=t;if(a){l==null&&(l=Y.isPath(a)?wc(e,a):g=>B.isBlock(e,g)),Y.isPath(a)&&(a=B.range(e,a));var s=re.isRange(a)?B.rangeRef(e,a):null,u=B.nodes(e,{at:a,match:l,mode:n,voids:o}),c=Array.from(u,g=>{var[,h]=g;return B.pathRef(e,h)}).reverse(),d=function(g){var h=g.unref(),[p]=B.node(e,h),y=B.range(e,h);r&&s&&(y=re.intersection(s.current,y)),Q.liftNodes(e,{at:y,match:v=>_e.isAncestor(p)&&p.children.includes(v),voids:o})};for(var f of c)d(f);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:a=!1}=n,{match:l,at:s=e.selection}=n;if(s){if(l==null&&(l=Y.isPath(s)?wc(e,s):e.isInline(t)?v=>B.isInline(e,v)||Se.isText(v):v=>B.isBlock(e,v)),o&&re.isRange(s)){var[u,c]=re.edges(s),d=B.rangeRef(e,s,{affinity:"inward"});Q.splitNodes(e,{at:c,match:l,voids:a}),Q.splitNodes(e,{at:u,match:l,voids:a}),s=d.unref(),n.at==null&&Q.select(e,s)}var f=Array.from(B.nodes(e,{at:s,match:e.isInline(t)?v=>B.isBlock(e,v):v=>B.isEditor(v),mode:"lowest",voids:a}));for(var[,g]of f){var h=re.isRange(s)?re.intersection(s,B.range(e,g)):s;if(h){var p=Array.from(B.nodes(e,{at:h,match:l,mode:r,voids:a}));if(p.length>0){var y=function(){var[v]=p,b=p[p.length-1],[,m]=v,[,w]=b;if(m.length===0&&w.length===0)return"continue";var S=Y.equals(m,w)?Y.parent(m):Y.common(m,w),C=B.range(e,m,w),x=B.node(e,S),[k]=x,E=S.length+1,A=Y.next(w.slice(0,E)),N=MO(MO({},t),{},{children:[]});Q.insertNodes(e,N,{at:A,voids:a}),Q.moveNodes(e,{at:C,match:V=>_e.isAncestor(k)&&k.children.includes(V),to:A.concat(0),voids:a})}();if(y==="continue")continue}}}}})}},jO=(e,t)=>{if(_e.isElement(t)){var n=t;return!!B.isVoid(e,t)||n.children.length===1&&jO(e,n.children[0])}return!B.isEditor(t)},qce=(e,t)=>{if(re.isCollapsed(t))return t.anchor;var[,n]=re.edges(t),r=B.pointRef(e,n);return Q.delete(e,{at:t}),r.unref()},wc=(e,t)=>{var[n]=B.node(e,t);return r=>r===n};function zO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function HO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Yce={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")Q.select(e,r.anchor);else if(n==="focus")Q.select(e,r.focus);else if(n==="start"){var[o]=re.edges(r);Q.select(e,o)}else if(n==="end"){var[,a]=re.edges(r);Q.select(e,a)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:a=!1}=t,{edge:l=null}=t;if(n){l==="start"&&(l=re.isBackward(n)?"focus":"anchor"),l==="end"&&(l=re.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,c={distance:r,unit:o},d={};if(l==null||l==="anchor"){var f=a?B.before(e,s,c):B.after(e,s,c);f&&(d.anchor=f)}if(l==null||l==="focus"){var g=a?B.before(e,u,c):B.after(e,u,c);g&&(d.focus=g)}Q.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=B.range(e,t),n)Q.setSelection(e,t);else{if(!re.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&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=re.isBackward(r)?"focus":"anchor"),o==="end"&&(o=re.isBackward(r)?"anchor":"focus");var{anchor:a,focus:l}=r,s=o==="anchor"?a:l;Q.setSelection(e,{[o==="anchor"?"anchor":"focus"]:HO(HO({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var a in t)(a==="anchor"&&t.anchor!=null&&!Ke.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!Ke.equals(t.focus,n.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==n[a])&&(r[a]=n[a],o[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Xce={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:a=!1}=t,{at:l=e.selection,hanging:s=!1}=t;if(l){if(re.isRange(l)&&re.isCollapsed(l)&&(l=l.anchor),Ke.isPoint(l)){var u=B.void(e,{at:l,mode:"highest"});if(!a&&u){var[,c]=u;l=c}else{var d={unit:r,distance:o};l={anchor:l,focus:n?B.before(e,l,d)||B.start(e,[]):B.after(e,l,d)||B.end(e,[])},s=!0}}if(Y.isPath(l))Q.removeNodes(e,{at:l,voids:a});else if(!re.isCollapsed(l)){if(!s){var[,f]=re.edges(l),g=B.end(e,[]);Ke.equals(f,g)||(l=B.unhangRange(e,l,{voids:a}))}var[h,p]=re.edges(l),y=B.above(e,{match:ne=>B.isBlock(e,ne),at:h,voids:a}),v=B.above(e,{match:ne=>B.isBlock(e,ne),at:p,voids:a}),b=y&&v&&!Y.equals(y[1],v[1]),m=Y.equals(h.path,p.path),w=a?null:B.void(e,{at:h,mode:"highest"}),S=a?null:B.void(e,{at:p,mode:"highest"});if(w){var C=B.before(e,h);C&&y&&Y.isAncestor(y[1],C.path)&&(h=C)}if(S){var x=B.after(e,p);x&&v&&Y.isAncestor(v[1],x.path)&&(p=x)}var k,E=[];for(var A of B.nodes(e,{at:l,voids:a})){var[N,V]=A;k&&Y.compare(V,k)===0||(!a&&B.isVoid(e,N)||!Y.isCommon(V,h.path)&&!Y.isCommon(V,p.path))&&(E.push(A),k=V)}var D=Array.from(E,ne=>{var[,me]=ne;return B.pathRef(e,me)}),P=B.pointRef(e,h),O=B.pointRef(e,p);if(!m&&!w){var F=P.current,[H]=B.leaf(e,F),{path:J}=F,{offset:j}=h,z=H.text.slice(j);z.length>0&&e.apply({type:"remove_text",path:J,offset:j,text:z})}for(var L of D){var _=L.unref();Q.removeNodes(e,{at:_,voids:a})}if(!S){var T=O.current,[I]=B.leaf(e,T),{path:U}=T,$=m?h.offset:0,W=I.text.slice($,p.offset);W.length>0&&e.apply({type:"remove_text",path:U,offset:$,text:W})}!m&&b&&O.current&&P.current&&Q.mergeNodes(e,{at:O.current,hanging:!0,voids:a});var Z=n?P.unref()||O.unref():O.unref()||P.unref();t.at==null&&Z&&Q.select(e,Z)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(re.isRange(a))if(r||(a=B.unhangRange(e,a)),re.isCollapsed(a))a=a.anchor;else{var[,l]=re.edges(a);if(!o&&B.void(e,{at:l}))return;var s=B.pointRef(e,l);Q.delete(e,{at:a}),a=s.unref()}else Y.isPath(a)&&(a=B.start(e,a));if(o||!B.void(e,{at:a})){var u=B.above(e,{at:a,match:T=>B.isInline(e,T),mode:"highest",voids:o});if(u){var[,c]=u;B.isEnd(e,a,c)?a=B.after(e,c):B.isStart(e,a,c)&&(a=B.before(e,c))}var d=B.above(e,{match:T=>B.isBlock(e,T),at:a,voids:o}),[,f]=d,g=B.isStart(e,a,f),h=B.isEnd(e,a,f),p=g&&h,y=!g||g&&h,v=!h,[,b]=he.first({children:t},[]),[,m]=he.last({children:t},[]),w=[],S=T=>{var[I,U]=T;return U.length!==0&&(!!p||!(y&&Y.isAncestor(U,b)&&_e.isElement(I)&&!e.isVoid(I)&&!e.isInline(I))&&!(v&&Y.isAncestor(U,m)&&_e.isElement(I)&&!e.isVoid(I)&&!e.isInline(I)))};for(var C of he.nodes({children:t},{pass:S}))S(C)&&w.push(C);var x=[],k=[],E=[],A=!0,N=!1;for(var[V]of w)_e.isElement(V)&&!e.isInline(V)?(A=!1,N=!0,k.push(V)):A?x.push(V):E.push(V);var[D]=B.nodes(e,{at:a,match:T=>Se.isText(T)||B.isInline(e,T),mode:"highest",voids:o}),[,P]=D,O=B.isStart(e,a,P),F=B.isEnd(e,a,P),H=B.pathRef(e,h?Y.next(f):f),J=B.pathRef(e,F?Y.next(P):P),j=B.pathRef(e,f);Q.splitNodes(e,{at:a,match:T=>N?B.isBlock(e,T):Se.isText(T)||B.isInline(e,T),mode:N?"lowest":"highest",voids:o});var z=B.pathRef(e,!O||O&&F?Y.next(P):P);if(Q.insertNodes(e,x,{at:z.current,match:T=>Se.isText(T)||B.isInline(e,T),mode:"highest",voids:o}),p&&k.length&&Q.delete(e,{at:j.unref(),voids:o}),Q.insertNodes(e,k,{at:H.current,match:T=>B.isBlock(e,T),mode:"lowest",voids:o}),Q.insertNodes(e,E,{at:J.current,match:T=>Se.isText(T)||B.isInline(e,T),mode:"highest",voids:o}),!n.at){var L;L=E.length>0?Y.previous(J.current):k.length>0?Y.previous(H.current):Y.previous(z.current);var _=B.end(e,L);Q.select(e,_)}z.unref(),H.unref(),J.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Y.isPath(o)&&(o=B.range(e,o)),re.isRange(o))if(re.isCollapsed(o))o=o.anchor;else{var a=re.end(o);if(!r&&B.void(e,{at:a}))return;var l=B.pointRef(e,a);Q.delete(e,{at:o,voids:r}),o=l.unref(),Q.setSelection(e,{anchor:o,focus:o})}if(r||!B.void(e,{at:o})){var{path:s,offset:u}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}})}};function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Q=vy(vy(vy(vy({},Uce),Kce),Yce),Xce),Qk="[object Map]",$k="[object Set]",Jce=/^\[object .+?Constructor\]$/,Zce=/^(?:0|[1-9]\d*)$/,Qce="[\\ud800-\\udfff]",ex="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",tx="\\ud83c[\\udffb-\\udfff]",WO="[^\\ud800-\\udfff]",GO="(?:\\ud83c[\\udde6-\\uddff]){2}",KO="[\\ud800-\\udbff][\\udc00-\\udfff]",qO="(?:"+ex+"|"+tx+")?",$ce="[\\ufe0e\\ufe0f]?"+qO+("(?:\\u200d(?:"+[WO,GO,KO].join("|")+")[\\ufe0e\\ufe0f]?"+qO+")*"),ede="(?:"+[WO+ex+"?",ex,GO,KO,Qce].join("|")+")",tde=RegExp(tx+"(?="+tx+")|"+ede+$ce,"g"),nde=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),rde=typeof Et=="object"&&Et&&Et.Object===Object&&Et,ode=typeof self=="object"&&self&&self.Object===Object&&self,Bs=rde||ode||Function("return this")();function ade(e,t){return function(n,r){for(var o=-1,a=n?n.length:0,l=Array(a);++o<a;)l[o]=r(n[o],o,n);return l}(t,function(n){return e[n]})}function ide(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function lde(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function sde(e){return function(t){return nde.test(t)}(e)?function(t){return t.match(tde)||[]}(e):function(t){return t.split("")}(e)}var YO,XO,ude=Function.prototype,yy=Object.prototype,nx=Bs["__core-js_shared__"],JO=function(){var e=/[^.]+$/.exec(nx&&nx.keys&&nx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ZO=ude.toString,by=yy.hasOwnProperty,mh=yy.toString,cde=RegExp("^"+ZO.call(by).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),QO=Bs.Symbol,rx=QO?QO.iterator:void 0,dde=yy.propertyIsEnumerable,fde=(YO=Object.keys,XO=Object,function(e){return YO(XO(e))}),ox=ph(Bs,"DataView"),ax=ph(Bs,"Map"),ix=ph(Bs,"Promise"),lx=ph(Bs,"Set"),sx=ph(Bs,"WeakMap"),hde=Ts(ox),gde=Ts(ax),mde=Ts(ix),pde=Ts(lx),vde=Ts(sx);function yde(e,t){var n=$O(e)||function(l){return function(s){return nI(s)&&ux(s)}(l)&&by.call(l,"callee")&&(!dde.call(l,"callee")||mh.call(l)=="[object Arguments]")}(e)?function(l,s){for(var u=-1,c=Array(l);++u<l;)c[u]=s(u);return c}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!by.call(e,a)||o&&(a=="length"||Sde(a,r))||n.push(a);return n}function bde(e){if(!tI(e)||function(n){return!!JO&&JO in n}(e))return!1;var t=eI(e)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(e)?cde:Jce;return t.test(Ts(e))}function wde(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||yy,t!==r)return fde(e);var t,n,r,o=[];for(var a in Object(e))by.call(e,a)&&a!="constructor"&&o.push(a);return o}function ph(e,t){var n=function(r,o){return r==null?void 0:r[o]}(e,t);return bde(n)?n:void 0}var _s=function(e){return mh.call(e)};function Sde(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Zce.test(e))&&e>-1&&e%1==0&&e<t}function Ts(e){if(e!=null){try{return ZO.call(e)}catch{}try{return e+""}catch{}}return""}(ox&&_s(new ox(new ArrayBuffer(1)))!="[object DataView]"||ax&&_s(new ax)!=Qk||ix&&_s(ix.resolve())!="[object Promise]"||lx&&_s(new lx)!=$k||sx&&_s(new sx)!="[object WeakMap]")&&(_s=function(e){var t=mh.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?Ts(n):void 0;if(r)switch(r){case hde:return"[object DataView]";case gde:return Qk;case mde:return"[object Promise]";case pde:return $k;case vde:return"[object WeakMap]"}return t});var $O=Array.isArray;function ux(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!eI(e)}function eI(e){var t=tI(e)?mh.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function tI(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nI(e){return!!e&&typeof e=="object"}function Cde(e){return e?ade(e,function(t){return ux(t)?yde(t):wde(t)}(e)):[]}var rI=function(e){if(!e)return[];if(ux(e))return function(n){return typeof n=="string"||!$O(n)&&nI(n)&&mh.call(n)=="[object String]"}(e)?sde(e):function(n,r){var o=-1,a=n.length;for(r||(r=Array(a));++o<a;)r[o]=n[o];return r}(e);if(rx&&e[rx])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(e[rx]());var t=_s(e);return(t==Qk?ide:t==$k?lde:Cde)(e)};function oI(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function cx(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:oI(t[n])&&oI(e[n])&&Object.keys(t[n]).length>0&&cx(e[n],t[n])})}var aI={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 vh(){var e=typeof document<"u"?document:{};return cx(e,aI),e}var kde={document:aI,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 typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function Ps(){var e=typeof window<"u"?window:{};return cx(e,kde),e}function dx(e){return dx=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},dx(e)}function wy(e,t){return wy=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},wy(e,t)}function xde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function fx(e,t,n){return fx=xde()?Reflect.construct:function(r,o,a){var l=[null];l.push.apply(l,o);var s=new(Function.bind.apply(r,l));return a&&wy(s,a.prototype),s},fx.apply(null,arguments)}function hx(e){var t=typeof Map=="function"?new Map:void 0;return hx=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return fx(n,arguments,dx(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wy(r,n)},hx(e)}var Hi=function(e){var t,n;function r(o){var a,l,s;return a=e.call.apply(e,[this].concat(o))||this,l=function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(a),s=l.__proto__,Object.defineProperty(l,"__proto__",{get:function(){return s},set:function(u){s.__proto__=u}}),a}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(hx(Array));function Sy(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Sy(n)):t.push(n)}),t}function iI(e,t){return Array.prototype.filter.call(e,t)}function M(e,t){var n=Ps(),r=vh(),o=[];if(!t&&e instanceof Hi)return e;if(!e)return new Hi(o);if(typeof e=="string"){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var l="div";a.indexOf("<li")===0&&(l="ul"),a.indexOf("<tr")===0&&(l="tbody"),a.indexOf("<td")!==0&&a.indexOf("<th")!==0||(l="tr"),a.indexOf("<tbody")===0&&(l="table"),a.indexOf("<option")===0&&(l="select");var s=r.createElement(l);s.innerHTML=a;for(var u=0;u<s.childNodes.length;u+=1)o.push(s.childNodes[u])}else o=function(c,d){if(typeof c!="string")return[c];for(var f=[],g=d.querySelectorAll(c),h=0;h<g.length;h+=1)f.push(g[h]);return f}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Hi)return e;o=e}return new Hi(function(c){for(var d=[],f=0;f<c.length;f+=1)d.indexOf(c[f])===-1&&d.push(c[f]);return d}(o))}function Sc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sy(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).add.apply(a,r)}),this}function Cc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sy(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).remove.apply(a,r)}),this}function kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sy(t.map(function(o){return o.split(" ")}));return iI(this,function(o){return r.filter(function(a){return o.classList.contains(a)}).length>0}).length>0}function oo(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)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 Cy(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function xc(){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 a=e.attributes[o];a.name.indexOf("data-")>=0&&(n[t=a.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(s,u){return u.toUpperCase()})]=a.value)}for(var l in n)n[l]==="false"?n[l]=!1:n[l]==="true"?n[l]=!0:parseFloat(n[l])===1*n[l]&&(n[l]*=1);return n}}function ca(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){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 a=this[o];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()==="select")for(var l=0;l<a.options.length;l+=1)a.options[l].selected=e.indexOf(a.options[l].value)>=0;else a.value=e}return this}function da(){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],a=t[2],l=t[3];function s(y){var v=y.target;if(v){var b=y.target.dom7EventData||[];if(b.indexOf(y)<0&&b.unshift(y),M(v).is(o))a.apply(v,b);else for(var m=M(v).parents(),w=0;w<m.length;w+=1)M(m[w]).is(o)&&a.apply(m[w],b)}}function u(y){var v=y&&y.target&&y.target.dom7EventData||[];v.indexOf(y)<0&&v.unshift(y),a.apply(this,v)}typeof t[1]=="function"&&(r=t[0],a=t[1],l=t[2],o=void 0),l||(l=!1);for(var c,d=r.split(" "),f=0;f<this.length;f+=1){var g=this[f];if(o)for(c=0;c<d.length;c+=1){var h=d[c];g.dom7LiveListeners||(g.dom7LiveListeners={}),g.dom7LiveListeners[h]||(g.dom7LiveListeners[h]=[]),g.dom7LiveListeners[h].push({listener:a,proxyListener:s}),g.addEventListener(h,s,l)}else for(c=0;c<d.length;c+=1){var p=d[c];g.dom7Listeners||(g.dom7Listeners={}),g.dom7Listeners[p]||(g.dom7Listeners[p]=[]),g.dom7Listeners[p].push({listener:a,proxyListener:u}),g.addEventListener(p,u,l)}}return this}function lI(){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],a=t[2],l=t[3];typeof t[1]=="function"&&(r=t[0],a=t[1],l=t[2],o=void 0),l||(l=!1);for(var s=r.split(" "),u=0;u<s.length;u+=1)for(var c=s[u],d=0;d<this.length;d+=1){var f=this[d],g=void 0;if(!o&&f.dom7Listeners?g=f.dom7Listeners[c]:o&&f.dom7LiveListeners&&(g=f.dom7LiveListeners[c]),g&&g.length)for(var h=g.length-1;h>=0;h-=1){var p=g[h];a&&p.listener===a||a&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===a?(f.removeEventListener(c,p.proxyListener,l),g.splice(h,1)):a||(f.removeEventListener(c,p.proxyListener,l),g.splice(h,1))}}return this}function ky(){var e=Ps();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function xy(){var e=Ps();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function sI(){if(this.length>0){var e=Ps(),t=vh(),n=this[0],r=n.getBoundingClientRect(),o=t.body,a=n.clientTop||o.clientTop||0,l=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+u-l}}return null}function Ec(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Ey(){for(var e=Ps(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Dy(e,t){var n,r=Ps();if(arguments.length===1){if(typeof e!="string"){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(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Ay(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function uI(e){return M(iI(this,e))}function Ui(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Vy(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function cI(e){var t,n,r=Ps(),o=vh(),a=this[0];if(!a||e===void 0)return!1;if(typeof e=="string"){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=M(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===o)return a===o;if(e===r)return a===r;if(e.nodeType||e instanceof Hi){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function ao(){for(var e,t=vh(),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(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Hi)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function dI(e){var t,n,r=vh();for(t=0;t<this.length;t+=1)if(typeof e=="string"){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 Hi)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 Dc(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?M(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return M(t)}function By(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?M(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return M(t)}function Ac(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 M(t)}function Vc(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&&!M(r[o]).is(e)||t.push(r[o]);return M(t)}function Bc(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function _c(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){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}M.fn=Hi.prototype;var Ede="resize scroll".split(" ");function fI(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)Ede.indexOf(e)<0&&(e in this[o]?this[o][e]():M(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var hI=fI("click"),Wi=fI("focus"),Dde="[object GeneratorFunction]",Ade=/^(?:0|[1-9]\d*)$/;function Vde(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var _y=Object.prototype,gx=_y.hasOwnProperty,gI=_y.toString,Bde=_y.propertyIsEnumerable,_de=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Tde(e,t){var n=pI(e)||function(l){return function(s){return function(u){return!!u&&typeof u=="object"}(s)&&mx(s)}(l)&&gx.call(l,"callee")&&(!Bde.call(l,"callee")||gI.call(l)=="[object Arguments]")}(e)?function(l,s){for(var u=-1,c=Array(l);++u<l;)c[u]=s(u);return c}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!gx.call(e,a)||o&&(a=="length"||Ide(a,r))||n.push(a);return n}var mI,Pde=(mI=function(e,t){return e&&Nde(e,t,Fde)},function(e,t){if(e==null)return e;if(!mx(e))return mI(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),Nde=function(e){return function(t,n,r){for(var o=-1,a=Object(t),l=r(t),s=l.length;s--;){var u=l[++o];if(n(a[u],u,a)===!1)break}return t}}();function Ode(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||_y,t!==r)return _de(e);var t,n,r,o=[];for(var a in Object(e))gx.call(e,a)&&a!="constructor"&&o.push(a);return o}function Ide(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Ade.test(e))&&e>-1&&e%1==0&&e<t}var pI=Array.isArray;function mx(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(t)?gI.call(t):"";return n=="[object Function]"||n==Dde}(e)}function Fde(e){return mx(e)?Tde(e):Ode(e)}function Rde(e){return e}var px=function(e,t){return(pI(e)?Vde:Pde)(e,typeof t=="function"?t:Rde)};let vI=(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 Lde=/^\s+|\s+$/g,Mde=/^[-+]0x[0-9a-f]+$/i,jde=/^0b[01]+$/i,zde=/^0o[0-7]+$/i,Hde=parseInt,Ude=typeof Et=="object"&&Et&&Et.Object===Object&&Et,Wde=typeof self=="object"&&self&&self.Object===Object&&self,Gde=Ude||Wde||Function("return this")(),Kde=Object.prototype.toString,qde=Math.max,Yde=Math.min,vx=function(){return Gde.Date.now()};function Xde(e,t,n){var r,o,a,l,s,u,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError("Expected a function");function h(w){var S=r,C=o;return r=o=void 0,c=w,l=e.apply(C,S)}function p(w){return c=w,s=setTimeout(v,t),d?h(w):l}function y(w){var S=w-u;return u===void 0||S>=t||S<0||f&&w-c>=a}function v(){var w=vx();if(y(w))return b(w);s=setTimeout(v,function(S){var C=t-(S-u);return f?Yde(C,a-(S-c)):C}(w))}function b(w){return s=void 0,g&&r?h(w):(r=o=void 0,l)}function m(){var w=vx(),S=y(w);if(r=arguments,o=this,u=w,S){if(s===void 0)return p(u);if(f)return s=setTimeout(v,t),h(u)}return s===void 0&&(s=setTimeout(v,t)),l}return t=yI(t)||0,Ty(n)&&(d=!!n.leading,a=(f="maxWait"in n)?qde(yI(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),m.cancel=function(){s!==void 0&&clearTimeout(s),c=0,r=u=o=s=void 0},m.flush=function(){return s===void 0?l:b(vx())},m}function Ty(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yI(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Kde.call(r)=="[object Symbol]"}(e))return NaN;if(Ty(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ty(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Lde,"");var n=jde.test(e);return n||zde.test(e)?Hde(e.slice(2),n?2:8):Mde.test(e)?NaN:+e}var Ns=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Ty(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Xde(e,t,{leading:r,maxWait:t,trailing:o})};const Jde={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 e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function yh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const yx=Array.isArray;function Py(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function bx(e){return e===void 0}function Wr(e){return e!==void 0}const bI=yh("",{},[],void 0,void 0);function bh(e,t){var n,r;const o=e.key===t.key,a=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&a}function Zde(e,t,n){var r;const o={};for(let a=t;a<=n;++a){const l=(r=e[a])===null||r===void 0?void 0:r.key;l!==void 0&&(o[l]=a)}return o}const Qde=["create","update","remove","destroy","pre","post"];function $de(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Jde;for(const f of Qde)for(const g of e){const h=g[f];h!==void 0&&n[f].push(h)}function o(f){const g=f.id?"#"+f.id:"",h=f.getAttribute("class"),p=h?"."+h.split(" ").join("."):"";return yh(r.tagName(f).toLowerCase()+g+p,{},[],void 0,f)}function a(f,g){return function(){if(--g==0){const h=r.parentNode(f);r.removeChild(h,f)}}}function l(f,g){var h,p;let y,v=f.data;if(v!==void 0){const w=(h=v.hook)===null||h===void 0?void 0:h.init;Wr(w)&&(w(f),v=f.data)}const b=f.children,m=f.sel;if(m==="!")bx(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(m!==void 0){const w=m.indexOf("#"),S=m.indexOf(".",w),C=w>0?w:m.length,x=S>0?S:m.length,k=w!==-1||S!==-1?m.slice(0,Math.min(C,x)):m,E=f.elm=Wr(v)&&Wr(y=v.ns)?r.createElementNS(y,k,v):r.createElement(k,v);for(C<x&&E.setAttribute("id",m.slice(C+1,x)),S>0&&E.setAttribute("class",m.slice(x+1).replace(/\./g," ")),y=0;y<n.create.length;++y)n.create[y](bI,f);if(yx(b))for(y=0;y<b.length;++y){const N=b[y];N!=null&&r.appendChild(E,l(N,g))}else Py(f.text)&&r.appendChild(E,r.createTextNode(f.text));const A=f.data.hook;Wr(A)&&((p=A.create)===null||p===void 0||p.call(A,bI,f),A.insert&&g.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function s(f,g,h,p,y,v){for(;p<=y;++p){const b=h[p];b!=null&&r.insertBefore(f,l(b,v),g)}}function u(f){var g,h;const p=f.data;if(p!==void 0){(h=(g=p==null?void 0:p.hook)===null||g===void 0?void 0:g.destroy)===null||h===void 0||h.call(g,f);for(let y=0;y<n.destroy.length;++y)n.destroy[y](f);if(f.children!==void 0)for(let y=0;y<f.children.length;++y){const v=f.children[y];v!=null&&typeof v!="string"&&u(v)}}}function c(f,g,h,p){for(var y,v;h<=p;++h){let b,m;const w=g[h];if(w!=null)if(Wr(w.sel)){u(w),b=n.remove.length+1,m=a(w.elm,b);for(let C=0;C<n.remove.length;++C)n.remove[C](w,m);const S=(v=(y=w==null?void 0:w.data)===null||y===void 0?void 0:y.hook)===null||v===void 0?void 0:v.remove;Wr(S)?S(w,m):m()}else r.removeChild(f,w.elm)}}function d(f,g,h){var p,y,v,b,m;const w=(p=g.data)===null||p===void 0?void 0:p.hook;(y=w==null?void 0:w.prepatch)===null||y===void 0||y.call(w,f,g);const S=g.elm=f.elm,C=f.children,x=g.children;if(f!==g){if(g.data!==void 0){for(let k=0;k<n.update.length;++k)n.update[k](f,g);(b=(v=g.data.hook)===null||v===void 0?void 0:v.update)===null||b===void 0||b.call(v,f,g)}bx(g.text)?Wr(C)&&Wr(x)?C!==x&&function(k,E,A,N){let V,D,P,O,F=0,H=0,J=E.length-1,j=E[0],z=E[J],L=A.length-1,_=A[0],T=A[L];for(;F<=J&&H<=L;)j==null?j=E[++F]:z==null?z=E[--J]:_==null?_=A[++H]:T==null?T=A[--L]:bh(j,_)?(d(j,_,N),j=E[++F],_=A[++H]):bh(z,T)?(d(z,T,N),z=E[--J],T=A[--L]):bh(j,T)?(d(j,T,N),r.insertBefore(k,j.elm,r.nextSibling(z.elm)),j=E[++F],T=A[--L]):bh(z,_)?(d(z,_,N),r.insertBefore(k,z.elm,j.elm),z=E[--J],_=A[++H]):(V===void 0&&(V=Zde(E,F,J)),D=V[_.key],bx(D)?r.insertBefore(k,l(_,N),j.elm):(P=E[D],P.sel!==_.sel?r.insertBefore(k,l(_,N),j.elm):(d(P,_,N),E[D]=void 0,r.insertBefore(k,P.elm,j.elm))),_=A[++H]);(F<=J||H<=L)&&(F>J?(O=A[L+1]==null?null:A[L+1].elm,s(k,O,A,H,L,N)):c(k,E,F,J))}(S,C,x,h):Wr(x)?(Wr(f.text)&&r.setTextContent(S,""),s(S,null,x,0,x.length-1,h)):Wr(C)?c(S,C,0,C.length-1):Wr(f.text)&&r.setTextContent(S,""):f.text!==g.text&&(Wr(C)&&c(S,C,0,C.length-1),r.setTextContent(S,g.text)),(m=w==null?void 0:w.postpatch)===null||m===void 0||m.call(w,f,g)}}return function(f,g){let h,p,y;const v=[];for(h=0;h<n.pre.length;++h)n.pre[h]();for(function(b){return b.sel!==void 0}(f)||(f=o(f)),bh(f,g)?d(f,g,v):(p=f.elm,y=r.parentNode(p),l(g,v),y!==null&&(r.insertBefore(y,g.elm,r.nextSibling(p)),c(y,[f],0,0))),h=0;h<v.length;++h)v[h].data.hook.insert(v[h]);for(h=0;h<n.post.length;++h)n.post[h]();return g}}function wI(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&wI(o,t[r].children,t[r].sel)}}function Tc(e,t,n){let r,o,a,l={};if(n!==void 0?(t!==null&&(l=t),yx(n)?r=n:Py(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(yx(t)?r=t:Py(t)?o=t.toString():t&&t.sel?r=[t]:l=t),r!==void 0)for(a=0;a<r.length;++a)Py(r[a])&&(r[a]=yh(void 0,void 0,void 0,r[a],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||wI(l,r,e),yh(e,l,r,o,void 0)}function SI(e,t){let n;const r=t.elm;let o=e.data.attrs,a=t.data.attrs;if((o||a)&&o!==a){for(n in o=o||{},a=a||{},a){const l=a[n];o[n]!==l&&(l===!0?r.setAttribute(n,""):l===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,l):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,l):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,l):r.setAttribute(n,l))}for(n in o)n in a||r.removeAttribute(n)}}const efe={create:SI,update:SI};function CI(e,t){let n,r;const o=t.elm;let a=e.data.class,l=t.data.class;if((a||l)&&a!==l){for(r in a=a||{},l=l||{},a)a[r]&&!Object.prototype.hasOwnProperty.call(l,r)&&o.classList.remove(r);for(r in l)n=l[r],n!==a[r]&&o.classList[n?"add":"remove"](r)}}const tfe={create:CI,update:CI},kI=/[A-Z]/g;function xI(e,t){const n=t.elm;let r,o=e.data.dataset,a=t.data.dataset;if(!o&&!a||o===a)return;o=o||{},a=a||{};const l=n.dataset;for(r in o)a[r]||(l?r in l&&delete l[r]:n.removeAttribute("data-"+r.replace(kI,"-$&").toLowerCase()));for(r in a)o[r]!==a[r]&&(l?l[r]=a[r]:n.setAttribute("data-"+r.replace(kI,"-$&").toLowerCase(),a[r]))}const nfe={create:xI,update:xI};function EI(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)EI(e[r],t,n)}function rfe(e,t){const n=e.type,r=t.data.on;r&&r[n]&&EI(r[n],t,e)}function wx(e,t){const n=e.data.on,r=e.listener,o=e.elm,a=t&&t.data.on,l=t&&t.elm;let s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||o.removeEventListener(s,r,!1);else for(s in n)o.removeEventListener(s,r,!1);if(a){const u=t.listener=e.listener||function c(d){rfe(d,c.vnode)};if(u.vnode=t,n)for(s in a)n[s]||l.addEventListener(s,u,!1);else for(s in a)l.addEventListener(s,u,!1)}}}const ofe={create:wx,update:wx,destroy:wx};function DI(e,t){let n,r,o;const a=t.elm;let l=e.data.props,s=t.data.props;if((l||s)&&l!==s)for(n in l=l||{},s=s||{},s)r=s[n],o=l[n],o===r||n==="value"&&a[n]===r||(a[n]=r)}const afe={create:DI,update:DI},AI=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Sx=!1;function ife(e,t,n){(function(r){AI(function(){AI(r)})})(function(){e[t]=n})}function VI(e,t){let n,r;const o=t.elm;let a=e.data.style,l=t.data.style;if(!a&&!l||a===l)return;a=a||{},l=l||{};const s="delayed"in a;for(r in a)l[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in l)if(n=l[r],r==="delayed"&&l.delayed)for(const u in l.delayed)n=l.delayed[u],s&&n===a.delayed[u]||ife(o.style,u,n);else r!=="remove"&&n!==a[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const lfe={pre:function(){Sx=!1},create:VI,update:VI,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;Sx||(e.elm.offsetLeft,Sx=!0);const o=e.elm;let a=0;const l=n.remove;let s=0;const u=[];for(r in l)u.push(r),o.style[r]=l[r];const c=getComputedStyle(o)["transition-property"].split(", ");for(;a<c.length;++a)u.indexOf(c[a])!==-1&&s++;o.addEventListener("transitionend",function(d){d.target===o&&--s,s===0&&t()})}};function BI(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?BI(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(yh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Fe(e,t,...n){const r=BI(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Tc(e,t,r[0].text):Tc(e,t,r)}Fe||(Fe={});var sfe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ufe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_I="\\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",cfe="[\\ud800-\\udfff]",TI="["+_I+"]",Ny="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",PI="\\d+",dfe="[\\u2700-\\u27bf]",NI="[a-z\\xdf-\\xf6\\xf8-\\xff]",OI="[^\\ud800-\\udfff"+_I+PI+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Cx="\\ud83c[\\udffb-\\udfff]",II="[^\\ud800-\\udfff]",kx="(?:\\ud83c[\\udde6-\\uddff]){2}",xx="[\\ud800-\\udbff][\\udc00-\\udfff]",Pc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",FI="(?:"+NI+"|"+OI+")",ffe="(?:"+Pc+"|"+OI+")",RI="(?:"+Ny+"|"+Cx+")?",LI="[\\ufe0e\\ufe0f]?"+RI+("(?:\\u200d(?:"+[II,kx,xx].join("|")+")[\\ufe0e\\ufe0f]?"+RI+")*"),hfe="(?:"+[dfe,kx,xx].join("|")+")"+LI,gfe="(?:"+[II+Ny+"?",Ny,kx,xx,cfe].join("|")+")",mfe=RegExp("['’]","g"),pfe=RegExp(Ny,"g"),vfe=RegExp(Cx+"(?="+Cx+")|"+gfe+LI,"g"),yfe=RegExp([Pc+"?"+NI+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[TI,Pc,"$"].join("|")+")",ffe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[TI,Pc+FI,"$"].join("|")+")",Pc+"?"+FI+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Pc+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",PI,hfe].join("|"),"g"),bfe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),wfe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sfe=typeof Et=="object"&&Et&&Et.Object===Object&&Et,Cfe=typeof self=="object"&&self&&self.Object===Object&&self,kfe=Sfe||Cfe||Function("return this")(),Ex,xfe=(Ex={À:"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 Ex==null?void 0:Ex[e]});function MI(e){return bfe.test(e)}function Efe(e){return MI(e)?function(t){return t.match(vfe)||[]}(e):function(t){return t.split("")}(e)}var Dfe=Object.prototype.toString,jI=kfe.Symbol,zI=jI?jI.prototype:void 0,HI=zI?zI.toString:void 0;function Afe(e){if(typeof e=="string")return e;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&Dfe.call(n)=="[object Symbol]"}(e))return HI?HI.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Vfe(e,t,n){var r=e.length;return n=n===void 0?r:n,function(o,a,l){var s=-1,u=o.length;a<0&&(a=-a>u?0:u+a),(l=l>u?u:l)<0&&(l+=u),u=a>l?0:l-a>>>0,a>>>=0;for(var c=Array(u);++s<u;)c[s]=o[s+a];return c}(e,t,n)}function Oy(e){return e==null?"":Afe(e)}for(var UI,Bfe=(UI=function(e,t,n){return t=t.toLowerCase(),e+(n?_fe(Oy(t).toLowerCase()):t)},function(e){return function(t,n,r,o){var a=-1,l=t?t.length:0;for(o;++a<l;)r=n(r,t[a],a,t);return r}(function(t,n,r){return t=Oy(t),(n=n)===void 0?function(o){return wfe.test(o)}(t)?function(o){return o.match(yfe)||[]}(t):function(o){return o.match(sfe)||[]}(t):t.match(n)||[]}(function(t){return(t=Oy(t))&&t.replace(ufe,xfe).replace(pfe,"")}(e).replace(mfe,"")),UI,"")}),WI,_fe=(WI="toUpperCase",function(e){var t=MI(e=Oy(e))?Efe(e):void 0,n=t?t[0]:e.charAt(0),r=t?Vfe(t,1).join(""):e.slice(1);return n[WI]()+r}),Tfe=Bfe,Pfe=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Dx={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},GI={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Pfe?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ax={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},Iy=1;Iy<20;Iy++)Ax["f"+Iy]=111+Iy;function KI(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return function(l,s){var u=s&&s.byKey,c={},d=(l=l.replace("++","+add")).split("+"),f=d.length;for(var g in Dx)c[Dx[g]]=!1;var h=!0,p=!1,y=void 0;try{for(var v,b=d[Symbol.iterator]();!(h=(v=b.next()).done);h=!0){var m=v.value,w=m.endsWith("?")&&m.length>1;w&&(m=m.slice(0,-1));var S=qI(m),C=Dx[S];if(m.length>1&&!C&&!GI[m]&&!Ax[S])throw new TypeError('Unknown modifier: "'+m+'"');f!==1&&C||(u?c.key=S:c.which=Nfe(m)),C&&(c[C]=!w||null)}}catch(x){p=!0,y=x}finally{try{!h&&b.return&&b.return()}finally{if(p)throw y}}return c}(a,t)}),o=function(a){return r.some(function(l){return function(s,u){for(var c in s){var d=s[c],f=void 0;if(d!=null&&((f=c==="key"&&u.key!=null?u.key.toLowerCase():c==="which"?d===91&&u.which===93?91:u.which:u[c])!=null||d!==!1)&&f!==d)return!1}return!0}(l,a)})};return n==null?o:o(n)}function Nfe(e){return e=qI(e),Ax[e]||e.toUpperCase().charCodeAt(0)}function qI(e){return e=e.toLowerCase(),e=GI[e]||e}var Ofe=KI,Vx=function(e,t){return KI(e,{byKey:!0},t)},Ife=/^\s+|\s+$/g,Ffe=/^[-+]0x[0-9a-f]+$/i,Rfe=/^0b[01]+$/i,Lfe=/^0o[0-7]+$/i,Mfe=parseInt,jfe=typeof Et=="object"&&Et&&Et.Object===Object&&Et,zfe=typeof self=="object"&&self&&self.Object===Object&&self,Hfe=jfe||zfe||Function("return this")(),Ufe=Object.prototype.toString,Wfe=Math.max,Gfe=Math.min,Bx=function(){return Hfe.Date.now()};function _x(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function YI(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Ufe.call(r)=="[object Symbol]"}(e))return NaN;if(_x(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_x(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ife,"");var n=Rfe.test(e);return n||Lfe.test(e)?Mfe(e.slice(2),n?2:8):Ffe.test(e)?NaN:+e}var Nc,XI=function(e,t,n){var r,o,a,l,s,u,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError("Expected a function");function h(w){var S=r,C=o;return r=o=void 0,c=w,l=e.apply(C,S)}function p(w){return c=w,s=setTimeout(v,t),d?h(w):l}function y(w){var S=w-u;return u===void 0||S>=t||S<0||f&&w-c>=a}function v(){var w=Bx();if(y(w))return b(w);s=setTimeout(v,function(S){var C=t-(S-u);return f?Gfe(C,a-(S-c)):C}(w))}function b(w){return s=void 0,g&&r?h(w):(r=o=void 0,l)}function m(){var w=Bx(),S=y(w);if(r=arguments,o=this,u=w,S){if(s===void 0)return p(u);if(f)return s=setTimeout(v,t),h(u)}return s===void 0&&(s=setTimeout(v,t)),l}return t=YI(t)||0,_x(n)&&(d=!!n.leading,a=(f="maxWait"in n)?Wfe(YI(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),m.cancel=function(){s!==void 0&&clearTimeout(s),c=0,r=u=o=s=void 0},m.flush=function(){return s===void 0?l:b(Bx())},m},JI=gs(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",l="[object Date]",s="[object Function]",u="[object GeneratorFunction]",c="[object Map]",d="[object Number]",f="[object Object]",g="[object Promise]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object Symbol]",b="[object WeakMap]",m="[object ArrayBuffer]",w="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",V="[object Uint16Array]",D="[object Uint32Array]",P=/\w*$/,O=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,H={};H[o]=H["[object Array]"]=H[m]=H[w]=H[a]=H[l]=H[S]=H[C]=H[x]=H[k]=H[E]=H[c]=H[d]=H[f]=H[h]=H[p]=H[y]=H[v]=H[A]=H[N]=H[V]=H[D]=!0,H["[object Error]"]=H[s]=H[b]=!1;var J=typeof Et=="object"&&Et&&Et.Object===Object&&Et,j=typeof self=="object"&&self&&self.Object===Object&&self,z=J||j||Function("return this")(),L=t&&!t.nodeType&&t,_=L&&e&&!e.nodeType&&e,T=_&&_.exports===L;function I(K,ae){return K.set(ae[0],ae[1]),K}function U(K,ae){return K.add(ae),K}function $(K,ae,be,De){var ot=-1,zt=K?K.length:0;for(De;++ot<zt;)be=ae(be,K[ot],ot,K);return be}function W(K){var ae=!1;if(K!=null&&typeof K.toString!="function")try{ae=!!(K+"")}catch{}return ae}function Z(K){var ae=-1,be=Array(K.size);return K.forEach(function(De,ot){be[++ae]=[ot,De]}),be}function ne(K,ae){return function(be){return K(ae(be))}}function me(K){var ae=-1,be=Array(K.size);return K.forEach(function(De){be[++ae]=De}),be}var de=Array.prototype,G=Function.prototype,se=Object.prototype,ee=z["__core-js_shared__"],oe=function(){var K=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),ue=G.toString,we=se.hasOwnProperty,Ee=se.toString,Ae=RegExp("^"+ue.call(we).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=T?z.Buffer:void 0,Be=z.Symbol,Le=z.Uint8Array,vt=ne(Object.getPrototypeOf,Object),_n=Object.create,br=se.propertyIsEnumerable,qo=de.splice,bi=Object.getOwnPropertySymbols,Yo=Oe?Oe.isBuffer:void 0,Oa=ne(Object.keys,Object),wi=Ia(z,"DataView"),lr=Ia(z,"Map"),sr=Ia(z,"Promise"),ur=Ia(z,"Set"),wr=Ia(z,"WeakMap"),Hn=Ia(Object,"create"),xo=Ra(wi),Bp=Ra(lr),ql=Ra(sr),Si=Ra(ur),af=Ra(wr),zu=Be?Be.prototype:void 0,lf=zu?zu.valueOf:void 0;function Xo(K){var ae=-1,be=K?K.length:0;for(this.clear();++ae<be;){var De=K[ae];this.set(De[0],De[1])}}function Eo(K){var ae=-1,be=K?K.length:0;for(this.clear();++ae<be;){var De=K[ae];this.set(De[0],De[1])}}function Ci(K){var ae=-1,be=K?K.length:0;for(this.clear();++ae<be;){var De=K[ae];this.set(De[0],De[1])}}function Jo(K){this.__data__=new Eo(K)}function Yl(K,ae){var be=q(K)||function(_t){return function(ct){return function(Tn){return!!Tn&&typeof Tn=="object"}(ct)&&te(ct)}(_t)&&we.call(_t,"callee")&&(!br.call(_t,"callee")||Ee.call(_t)==o)}(K)?function(_t,ct){for(var Tn=-1,cr=Array(_t);++Tn<_t;)cr[Tn]=ct(Tn);return cr}(K.length,String):[],De=be.length,ot=!!De;for(var zt in K)!we.call(K,zt)||ot&&(zt=="length"||T2(zt,De))||be.push(zt);return be}function B2(K,ae,be){var De=K[ae];we.call(K,ae)&&P2(De,be)&&(be!==void 0||ae in K)||(K[ae]=be)}function eo(K,ae){for(var be=K.length;be--;)if(P2(K[be][0],ae))return be;return-1}function _p(K,ae,be,De,ot,zt,_t){var ct;if(De&&(ct=zt?De(K,ot,zt,_t):De(K)),ct!==void 0)return ct;if(!bt(K))return K;var Tn=q(K);if(Tn){if(ct=function(Me){var mt=Me.length,hn=Me.constructor(mt);return mt&&typeof Me[0]=="string"&&we.call(Me,"index")&&(hn.index=Me.index,hn.input=Me.input),hn}(K),!ae)return function(Me,mt){var hn=-1,rt=Me.length;for(mt||(mt=Array(rt));++hn<rt;)mt[hn]=Me[hn];return mt}(K,ct)}else{var cr=Fa(K),Hu=cr==s||cr==u;if(fe(K))return function(Me,mt){if(mt)return Me.slice();var hn=new Me.constructor(Me.length);return Me.copy(hn),hn}(K,ae);if(cr==f||cr==o||Hu&&!zt){if(W(K))return zt?K:{};if(ct=function(Me){return typeof Me.constructor!="function"||Xl(Me)?{}:(mt=vt(Me),bt(mt)?_n(mt):{});var mt}(Hu?{}:K),!ae)return function(Me,mt){return _2(Me,Tp(Me),mt)}(K,function(Me,mt){return Me&&_2(mt,et(mt),Me)}(ct,K))}else{if(!H[cr])return zt?K:{};ct=function(Me,mt,hn,rt){var dt=Me.constructor;switch(mt){case m:return sf(Me);case a:case l:return new dt(+Me);case w:return function(ft,nn){var Sr=nn?sf(ft.buffer):ft.buffer;return new ft.constructor(Sr,ft.byteOffset,ft.byteLength)}(Me,rt);case S:case C:case x:case k:case E:case A:case N:case V:case D:return function(ft,nn){var Sr=nn?sf(ft.buffer):ft.buffer;return new ft.constructor(Sr,ft.byteOffset,ft.length)}(Me,rt);case c:return function(ft,nn,Sr){return $(nn?Sr(Z(ft),!0):Z(ft),I,new ft.constructor)}(Me,rt,hn);case d:case y:return new dt(Me);case h:return function(ft){var nn=new ft.constructor(ft.source,P.exec(ft));return nn.lastIndex=ft.lastIndex,nn}(Me);case p:return function(ft,nn,Sr){return $(nn?Sr(me(ft),!0):me(ft),U,new ft.constructor)}(Me,rt,hn);case v:return function(ft){return lf?Object(lf.call(ft)):{}}(Me)}}(K,cr,_p,ae)}}_t||(_t=new Jo);var Ei=_t.get(K);if(Ei)return Ei;if(_t.set(K,ct),!Tn)var Jl=be?function(Me){return function(mt,hn,rt){var dt=hn(mt);return q(mt)?dt:function(ft,nn){for(var Sr=-1,Nr=nn.length,Zo=ft.length;++Sr<Nr;)ft[Zo+Sr]=nn[Sr];return ft}(dt,rt(mt))}(Me,et,Tp)}(K):et(K);return function(Me,mt){for(var hn=-1,rt=Me?Me.length:0;++hn<rt&&mt(Me[hn],hn,Me)!==!1;);}(Jl||K,function(Me,mt){Jl&&(Me=K[mt=Me]),B2(ct,mt,_p(Me,ae,be,De,mt,K,_t))}),ct}function ki(K){return!(!bt(K)||function(ae){return!!oe&&oe in ae}(K))&&(Ne(K)||W(K)?Ae:O).test(Ra(K))}function sf(K){var ae=new K.constructor(K.byteLength);return new Le(ae).set(new Le(K)),ae}function _2(K,ae,be,De){be||(be={});for(var ot=-1,zt=ae.length;++ot<zt;){var _t=ae[ot],ct=void 0;B2(be,_t,ct===void 0?K[_t]:ct)}return be}function xi(K,ae){var be,De,ot=K.__data__;return((De=typeof(be=ae))=="string"||De=="number"||De=="symbol"||De=="boolean"?be!=="__proto__":be===null)?ot[typeof ae=="string"?"string":"hash"]:ot.map}function Ia(K,ae){var be=function(De,ot){return De==null?void 0:De[ot]}(K,ae);return ki(be)?be:void 0}Xo.prototype.clear=function(){this.__data__=Hn?Hn(null):{}},Xo.prototype.delete=function(K){return this.has(K)&&delete this.__data__[K]},Xo.prototype.get=function(K){var ae=this.__data__;if(Hn){var be=ae[K];return be===n?void 0:be}return we.call(ae,K)?ae[K]:void 0},Xo.prototype.has=function(K){var ae=this.__data__;return Hn?ae[K]!==void 0:we.call(ae,K)},Xo.prototype.set=function(K,ae){return this.__data__[K]=Hn&&ae===void 0?n:ae,this},Eo.prototype.clear=function(){this.__data__=[]},Eo.prototype.delete=function(K){var ae=this.__data__,be=eo(ae,K);return!(be<0)&&(be==ae.length-1?ae.pop():qo.call(ae,be,1),!0)},Eo.prototype.get=function(K){var ae=this.__data__,be=eo(ae,K);return be<0?void 0:ae[be][1]},Eo.prototype.has=function(K){return eo(this.__data__,K)>-1},Eo.prototype.set=function(K,ae){var be=this.__data__,De=eo(be,K);return De<0?be.push([K,ae]):be[De][1]=ae,this},Ci.prototype.clear=function(){this.__data__={hash:new Xo,map:new(lr||Eo),string:new Xo}},Ci.prototype.delete=function(K){return xi(this,K).delete(K)},Ci.prototype.get=function(K){return xi(this,K).get(K)},Ci.prototype.has=function(K){return xi(this,K).has(K)},Ci.prototype.set=function(K,ae){return xi(this,K).set(K,ae),this},Jo.prototype.clear=function(){this.__data__=new Eo},Jo.prototype.delete=function(K){return this.__data__.delete(K)},Jo.prototype.get=function(K){return this.__data__.get(K)},Jo.prototype.has=function(K){return this.__data__.has(K)},Jo.prototype.set=function(K,ae){var be=this.__data__;if(be instanceof Eo){var De=be.__data__;if(!lr||De.length<199)return De.push([K,ae]),this;be=this.__data__=new Ci(De)}return be.set(K,ae),this};var Tp=bi?ne(bi,Object):function(){return[]},Fa=function(K){return Ee.call(K)};function T2(K,ae){return!!(ae=ae??r)&&(typeof K=="number"||F.test(K))&&K>-1&&K%1==0&&K<ae}function Xl(K){var ae=K&&K.constructor;return K===(typeof ae=="function"&&ae.prototype||se)}function Ra(K){if(K!=null){try{return ue.call(K)}catch{}try{return K+""}catch{}}return""}function P2(K,ae){return K===ae||K!=K&&ae!=ae}(wi&&Fa(new wi(new ArrayBuffer(1)))!=w||lr&&Fa(new lr)!=c||sr&&Fa(sr.resolve())!=g||ur&&Fa(new ur)!=p||wr&&Fa(new wr)!=b)&&(Fa=function(K){var ae=Ee.call(K),be=ae==f?K.constructor:void 0,De=be?Ra(be):void 0;if(De)switch(De){case xo:return w;case Bp:return c;case ql:return g;case Si:return p;case af:return b}return ae});var q=Array.isArray;function te(K){return K!=null&&function(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=r}(K.length)&&!Ne(K)}var fe=Yo||function(){return!1};function Ne(K){var ae=bt(K)?Ee.call(K):"";return ae==s||ae==u}function bt(K){var ae=typeof K;return!!K&&(ae=="object"||ae=="function")}function et(K){return te(K)?Yl(K):function(ae){if(!Xl(ae))return Oa(ae);var be=[];for(var De in Object(ae))we.call(ae,De)&&De!="constructor"&&be.push(De);return be}(K)}e.exports=function(K){return _p(K,!0,!0)}});function ZI(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Kfe=0;function qfe(e){return"__private_"+Kfe+++"_"+e}function Yfe(e,t,n){const r=[];return e.forEach(o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach((a,l,s)=>{a!==""&&r.push(a),l<s.length-1&&r.push(n)})),r}/**
31
+ `));var f=r(e).pop();if(he.has(e,f)){var g=B.node(e,f);e.normalizeNode(g)}d++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n),o=Y.parent(r);return B.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(Y.isPath(t)){if(o==="start"){var[,a]=he.first(e,t);t=a}else if(o==="end"){var[,l]=he.last(e,t);t=l}}return re.isRange(t)&&(t=o==="start"?re.start(t):o==="end"?re.end(t):Y.common(t.anchor.path,t.focus.path)),Ke.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>he.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return B.pathRefs(e).delete(o),o.current=null,a}};return B.pathRefs(e).add(o),o},pathRefs(e){var t=kO.get(e);return t||(t=new Set,kO.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Y.isPath(t)){var o;if(r==="end"){var[,a]=he.last(e,t);o=a}else{var[,l]=he.first(e,t);o=l}var s=he.get(e,o);if(!Se.isText(s))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:r==="end"?s.text.length:0}}if(re.isRange(t)){var[u,c]=re.edges(t);return r==="start"?u:c}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return B.pointRefs(e).delete(o),o.current=null,a}};return B.pointRefs(e).add(o),o},pointRefs(e){var t=xO.get(e);return t||(t=new Set,xO.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1}=t;if(n){var l=B.range(e,n),[s,u]=re.edges(l),c=o?u:s,d=!1,f="",g=0,h=0,p=0;for(var[y,v]of B.nodes(e,{at:n,reverse:o,voids:a})){if(_e.isElement(y)){if(!a&&e.isVoid(y)){yield B.start(e,v);continue}if(e.isInline(y))continue;if(B.hasInlines(e,y)){var b=Y.isAncestor(v,u.path)?u:B.end(e,v),m=Y.isAncestor(v,s.path)?s:B.start(e,v);f=B.string(e,{anchor:m,focus:b},{voids:a}),d=!0}}if(Se.isText(y)){var w=Y.equals(v,c.path);for(w?(h=o?c.offset:y.text.length-c.offset,p=c.offset):(h=y.text.length,p=o?h:0),(w||d||r==="offset")&&(yield{path:v,offset:p},d=!1);;){if(g===0){if(f==="")break;g=S(f,r,o),f=Zk(f,g,o)[1]}if(p=o?p-g:p+g,(h-=g)<0){g=-h;break}g=0,yield{path:v,offset:p}}}}}function S(C,x,k){return x==="character"?Jk(C,k):x==="word"?function(E){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],N=0,V=!1;E.length>0;){var D=Jk(E,A),[P,O]=Zk(E,D,A);if(hce(P,O,A))V=!0,N+=D;else{if(V)break;N+=D}E=O}return N}(C,k):x==="line"||x==="block"?C.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var l=B.before(e,a,{voids:r});if(l){var[,s]=B.first(e,[]),u=[l.path,s];if(Y.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(Y.isPath(a)){var[c]=B.parent(e,a);o=f=>c.children.includes(f)}else o=()=>!0;var[d]=B.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return d}}},range:(e,t,n)=>re.isRange(t)&&!n?t:{anchor:B.start(e,t),focus:B.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return B.rangeRefs(e).delete(o),o.current=null,a}};return B.rangeRefs(e).add(o),o},rangeRefs(e){var t=EO.get(e);return t||(t=new Set,EO.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){CO.set(e,t)},start:(e,t)=>B.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=B.range(e,t),[a,l]=re.edges(o),s="";for(var[u,c]of B.nodes(e,{at:o,match:Se.isText,voids:r})){var d=u.text;Y.equals(c,l.path)&&(d=d.slice(0,l.offset)),Y.equals(c,a.path)&&(d=d.slice(a.offset)),s+=d}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,a]=re.edges(t);if(o.offset!==0||a.offset!==0||re.isCollapsed(t))return t;var l=B.above(e,{at:a,match:g=>B.isBlock(e,g)}),s=l?l[1]:[],u={anchor:B.start(e,[]),focus:a},c=!0;for(var[d,f]of B.nodes(e,{at:u,match:Se.isText,reverse:!0,voids:r}))if(c)c=!1;else if(d.text!==""||Y.isBefore(f,s)){a={path:f,offset:d.text.length};break}return{anchor:o,focus:a}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.above(e,bc(bc({},t),{},{match:n=>B.isVoid(e,n)}))},withoutNormalizing(e,t){var n=B.isNormalizing(e);B.setNormalizing(e,!1);try{t()}finally{B.setNormalizing(e,n)}B.normalize(e)}},Ice={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(Y.isPath)},Fce=["children"],Rce=["text"],_O=new WeakMap,he={ancestor(e,t){var n=he.get(e,t);if(Se.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of Y.ancestors(t,n)){var o=[he.ancestor(e,r),r];yield o}},child(e,t){if(Se.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)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&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=he.ancestor(e,t),{children:a}=o,l=r?a.length-1:0;r?l>=0:l<a.length;){var s=he.child(o,l),u=t.concat(l);yield[s,u],l=r?l-1:l+1}},common(e,t,n){var r=Y.common(t,n);return[he.get(e,r),r]},descendant(e,t){var n=he.get(e,t);if(B.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&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))_e.isElement(n)&&(yield[n,r])},extractProps:e=>_e.isAncestor(e)?Qa(e,Fce):Qa(e,Rce),first(e,t){for(var n=t.slice(),r=he.get(e,n);r&&!Se.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Se.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=gy({children:e.children},r=>{var[o,a]=re.edges(t),l=he.nodes(r,{reverse:!0,pass:g=>{var[,h]=g;return!re.includes(t,h)}});for(var[,s]of l){if(!re.includes(t,s)){var u=he.parent(r,s),c=s[s.length-1];u.children.splice(c,1)}if(Y.equals(s,a.path)){var d=he.leaf(r,s);d.text=d.text.slice(0,a.offset)}if(Y.equals(s,o.path)){var f=he.leaf(r,s);f.text=f.text.slice(o.offset)}}B.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Se.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(Se.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Se.isText(e)||_e.isElement(e)||B.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=_O.get(e);if(t!==void 0)return t;var n=e.every(r=>he.isNode(r));return _O.set(e,n),n},last(e,t){for(var n=t.slice(),r=he.get(e,n);r&&!Se.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=he.get(e,t);if(!Se.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of Y.levels(t,n)){var o=he.get(e,r);yield[o,r]}},matches:(e,t)=>_e.isElement(e)&&_e.isElementProps(t)&&_e.matches(e,t)||Se.isText(e)&&Se.isTextProps(t)&&Se.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:a}=t,l=new Set,s=[],u=e;!a||!(r?Y.isBefore(s,a):Y.isAfter(s,a));)if(l.has(u)||(yield[u,s]),l.has(u)||Se.isText(u)||u.children.length===0||n!=null&&n([u,s])!==!1){if(s.length===0)break;if(!r){var c=Y.next(s);if(he.has(e,c)){s=c,u=he.get(e,s);continue}}r&&s[s.length-1]!==0?(s=Y.previous(s),u=he.get(e,s)):(s=Y.parent(s),u=he.get(e,s),l.add(u))}else{l.add(u);var d=r?u.children.length-1:0;Y.isAncestor(s,o)&&(d=o[s.length]),s=s.concat(d),u=he.get(e,s)}},parent(e,t){var n=Y.parent(t),r=he.get(e,n);if(Se.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=>Se.isText(e)?e.text:e.children.map(he.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of he.nodes(e,t))Se.isText(n)&&(yield[n,r])}};function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var zi={isNodeOperation:e=>zi.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!$n(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Y.isPath(e.path)&&he.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Y.isPath(e.path);case"merge_node":return typeof e.position=="number"&&Y.isPath(e.path)&&$n(e.properties);case"move_node":return Y.isPath(e.path)&&Y.isPath(e.newPath);case"set_node":return Y.isPath(e.path)&&$n(e.properties)&&$n(e.newProperties);case"set_selection":return e.properties===null&&re.isRange(e.newProperties)||e.newProperties===null&&re.isRange(e.properties)||$n(e.properties)&&$n(e.newProperties);case"split_node":return Y.isPath(e.path)&&typeof e.position=="number"&&$n(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>zi.isOperation(t)),isSelectionOperation:e=>zi.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>zi.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return gn(gn({},e),{},{type:"remove_node"});case"insert_text":return gn(gn({},e),{},{type:"remove_text"});case"merge_node":return gn(gn({},e),{},{type:"split_node",path:Y.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Y.equals(t,n))return e;if(Y.isSibling(n,t))return gn(gn({},e),{},{path:t,newPath:n});var r=Y.transform(n,e),o=Y.transform(Y.next(n),e);return gn(gn({},e),{},{path:r,newPath:o});case"remove_node":return gn(gn({},e),{},{type:"insert_node"});case"remove_text":return gn(gn({},e),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:l}=e;return gn(gn({},e),{},{properties:l,newProperties:a});case"set_selection":var{properties:s,newProperties:u}=e;return gn(gn({},e),{},s==null?{properties:u,newProperties:null}:u==null?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return gn(gn({},e),{},{type:"merge_node",path:Y.next(e.path)})}}},Y={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=Y.levels(e,t);return r=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),a=e[n],l=t[n];return Y.equals(r,o)&&a>l},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Y.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],l=t[n];return Y.equals(r,o)&&a<l},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>Y.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&Y.compare(e,t)===0,isBefore:(e,t)=>Y.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&Y.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&Y.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&Y.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&Y.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),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]&&Y.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?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(e.length===0)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(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)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(!Y.isAncestor(t,e)&&!Y.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&&arguments[2]!==void 0?arguments[2]:{};return gy(e,r=>{var{affinity:o="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:a}=t;(Y.equals(a,r)||Y.endsBefore(a,r)||Y.isAncestor(a,r))&&(r[a.length-1]+=1);break;case"remove_node":var{path:l}=t;if(Y.equals(l,r)||Y.isAncestor(l,r))return null;Y.endsBefore(l,r)&&(r[l.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Y.equals(s,r)||Y.endsBefore(s,r)?r[s.length-1]-=1:Y.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:c,position:d}=t;if(Y.equals(c,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else Y.endsBefore(c,r)?r[c.length-1]+=1:Y.isAncestor(c,r)&&e[c.length]>=d&&(r[c.length-1]+=1,r[c.length]-=d);break;case"move_node":var{path:f,newPath:g}=t;if(Y.equals(f,g))return;if(Y.isAncestor(f,r)||Y.equals(f,r)){var h=g.slice();return Y.endsBefore(f,g)&&f.length<g.length&&(h[f.length-1]-=1),h.concat(r.slice(f.length))}Y.isSibling(f,g)&&(Y.isAncestor(g,r)||Y.equals(g,r))?Y.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Y.endsBefore(g,r)||Y.equals(g,r)||Y.isAncestor(g,r)?(Y.endsBefore(f,r)&&(r[f.length-1]-=1),r[g.length-1]+=1):Y.endsBefore(f,r)&&(Y.equals(g,r)&&(r[g.length-1]+=1),r[f.length-1]-=1)}}})}},Lce={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Y.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function PO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ke={compare(e,t){var n=Y.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>Ke.compare(e,t)===1,isBefore:(e,t)=>Ke.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&Y.equals(e.path,t.path),isPoint:e=>$n(e)&&typeof e.offset=="number"&&Y.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gy(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:a,offset:l}=r;switch(t.type){case"insert_node":case"move_node":r.path=Y.transform(a,t,n);break;case"insert_text":Y.equals(t.path,a)&&t.offset<=l&&(r.offset+=t.text.length);break;case"merge_node":Y.equals(t.path,a)&&(r.offset+=t.position),r.path=Y.transform(a,t,n);break;case"remove_text":Y.equals(t.path,a)&&t.offset<=l&&(r.offset-=Math.min(l-t.offset,t.text.length));break;case"remove_node":if(Y.equals(t.path,a)||Y.isAncestor(t.path,a))return null;r.path=Y.transform(a,t,n);break;case"split_node":if(Y.equals(t.path,a)){if(t.position===l&&o==null)return null;(t.position<l||t.position===l&&o==="forward")&&(r.offset-=t.position,r.path=Y.transform(a,t,NO(NO({},n),{},{affinity:"forward"})))}else r.path=Y.transform(a,t,n)}})}},Mce={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Ke.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},jce=["anchor","focus"];function OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}var re={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return re.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=re.edges(e);return t},equals:(e,t)=>Ke.equals(e.anchor,t.anchor)&&Ke.equals(e.focus,t.focus),includes(e,t){if(re.isRange(t)){if(re.includes(e,t.anchor)||re.includes(e,t.focus))return!0;var[n,r]=re.edges(e),[o,a]=re.edges(t);return Ke.isBefore(n,o)&&Ke.isAfter(r,a)}var[l,s]=re.edges(e),u=!1,c=!1;return Ke.isPoint(t)?(u=Ke.compare(t,l)>=0,c=Ke.compare(t,s)<=0):(u=Y.compare(t,l.path)>=0,c=Y.compare(t,s.path)<=0),u&&c},intersection(e,t){var n=Qa(e,jce),[r,o]=re.edges(e),[a,l]=re.edges(t),s=Ke.isBefore(r,a)?a:r,u=Ke.isBefore(o,l)?o:l;return Ke.isBefore(u,s)?null:function(c){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?OO(Object(f),!0).forEach(function(g){ua(c,g,f[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):OO(Object(f)).forEach(function(g){Object.defineProperty(c,g,Object.getOwnPropertyDescriptor(f,g))})}return c}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ke.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ke.equals(t,n)},isExpanded:e=>!re.isCollapsed(e),isForward:e=>!re.isBackward(e),isRange:e=>$n(e)&&Ke.isPoint(e.anchor)&&Ke.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=re.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gy(e,r=>{if(r===null)return null;var o,a,{affinity:l="inward"}=n;if(l==="inward"){var s=re.isCollapsed(r);re.isForward(r)?(o="forward",a=s?o:"backward"):(o="backward",a=s?o:"forward")}else l==="outward"?re.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=l,a=l);var u=Ke.transform(r.anchor,t,{affinity:o}),c=Ke.transform(r.focus,t,{affinity:a});if(!u||!c)return null;r.anchor=u,r.focus=c})}},zce={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=re.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},IO=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if($n(r)&&$n(o)){if(!IO(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==o[a])return!1}else if(r!==o)return!1}for(var l in t)if(e[l]===void 0&&t[l]!==void 0)return!1;return!0},Hce=["text"],Uce=["anchor","focus"];function FO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Se={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(a){return Qa(a,Hce)}return IO(r?o(e):e,r?o(t):t)},isText:e=>$n(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>Se.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[$a({},e)];for(var r of t){var o=Qa(r,Uce),[a,l]=re.edges(r),s=[],u=0;for(var c of n){var{length:d}=c.text,f=u;if(u+=d,a.offset<=f&&l.offset>=u)Object.assign(c,o),s.push(c);else if(a.offset!==l.offset&&(a.offset===u||l.offset===f)||a.offset>u||l.offset<f||l.offset===f&&f!==0)s.push(c);else{var g=c,h=void 0,p=void 0;if(l.offset<u){var y=l.offset-f;p=$a($a({},g),{},{text:g.text.slice(y)}),g=$a($a({},g),{},{text:g.text.slice(0,y)})}if(a.offset>f){var v=a.offset-f;h=$a($a({},g),{},{text:g.text.slice(0,v)}),g=$a($a({},g),{},{text:g.text.slice(v)})}Object.assign(g,o),h&&s.push(h),s.push(g),p&&s.push(p)}}n=s}return n}};function RO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Wce={transform(e,t){e.children=wO(e.children);var n=e.selection&&wO(e.selection);try{n=((r,o,a)=>{switch(a.type){case"insert_node":var{path:l,node:s}=a,u=he.parent(r,l),c=l[l.length-1];if(c>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(l,"] because the destination is past the end of the node."));if(u.children.splice(c,0,s),o)for(var[d,f]of re.points(o))o[f]=Ke.transform(d,a);break;case"insert_text":var{path:g,offset:h,text:p}=a;if(p.length===0)break;var y=he.leaf(r,g),v=y.text.slice(0,h),b=y.text.slice(h);if(y.text=v+p+b,o)for(var[m,w]of re.points(o))o[w]=Ke.transform(m,a);break;case"merge_node":var{path:S}=a,C=he.get(r,S),x=Y.previous(S),k=he.get(r,x),E=he.parent(r,S),A=S[S.length-1];if(Se.isText(C)&&Se.isText(k))k.text+=C.text;else{if(Se.isText(C)||Se.isText(k))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(S,"] to nodes of different interfaces: ").concat(C," ").concat(k));k.children.push(...C.children)}if(E.children.splice(A,1),o)for(var[N,V]of re.points(o))o[V]=Ke.transform(N,a);break;case"move_node":var{path:D,newPath:P}=a;if(Y.isAncestor(D,P))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(P,"] because the destination is inside itself."));var O=he.get(r,D),F=he.parent(r,D),H=D[D.length-1];F.children.splice(H,1);var J=Y.transform(D,a),j=he.get(r,Y.parent(J)),z=J[J.length-1];if(j.children.splice(z,0,O),o)for(var[L,_]of re.points(o))o[_]=Ke.transform(L,a);break;case"remove_node":var{path:T}=a,I=T[T.length-1];if(he.parent(r,T).children.splice(I,1),o)for(var[U,$]of re.points(o)){var W=Ke.transform(U,a);if(o!=null&&W!=null)o[$]=W;else{var Z=void 0,ne=void 0;for(var[me,de]of he.texts(r)){if(Y.compare(de,T)!==-1){ne=[me,de];break}Z=[me,de]}var G=!1;Z&&ne&&(G=Y.equals(ne[1],T)?!Y.hasPrevious(ne[1]):Y.common(Z[1],T).length<Y.common(ne[1],T).length),Z&&!G?(U.path=Z[1],U.offset=Z[0].text.length):ne?(U.path=ne[1],U.offset=0):o=null}}break;case"remove_text":var{path:se,offset:ee,text:oe}=a;if(oe.length===0)break;var ue=he.leaf(r,se),we=ue.text.slice(0,ee),Ee=ue.text.slice(ee+oe.length);if(ue.text=we+Ee,o)for(var[Ae,Oe]of re.points(o))o[Oe]=Ke.transform(Ae,a);break;case"set_node":var{path:Be,properties:Le,newProperties:vt}=a;if(Be.length===0)throw new Error("Cannot set properties on the root node!");var _n=he.get(r,Be);for(var br in vt){if(br==="children"||br==="text")throw new Error('Cannot set the "'.concat(br,'" property of nodes!'));var qo=vt[br];qo==null?delete _n[br]:_n[br]=qo}for(var bi in Le)vt.hasOwnProperty(bi)||delete _n[bi];break;case"set_selection":var{newProperties:Yo}=a;if(Yo==null)o=Yo;else{if(o==null){if(!re.isRange(Yo))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Yo)," when there is no current selection."));o=gh({},Yo)}for(var Oa in Yo){var wi=Yo[Oa];if(wi==null){if(Oa==="anchor"||Oa==="focus")throw new Error('Cannot remove the "'.concat(Oa,'" selection property'));delete o[Oa]}else o[Oa]=wi}}break;case"split_node":var{path:lr,position:sr,properties:ur}=a;if(lr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(lr,"] because the root node cannot be split."));var wr,Hn=he.get(r,lr),xo=he.parent(r,lr),Bp=lr[lr.length-1];if(Se.isText(Hn)){var ql=Hn.text.slice(0,sr),Si=Hn.text.slice(sr);Hn.text=ql,wr=gh(gh({},ur),{},{text:Si})}else{var af=Hn.children.slice(0,sr),zu=Hn.children.slice(sr);Hn.children=af,wr=gh(gh({},ur),{},{children:zu})}if(xo.children.splice(Bp+1,0,wr),o)for(var[lf,Xo]of re.points(o))o[Xo]=Ke.transform(lf,a)}return o})(e,n,t)}finally{e.children=SO(e.children),e.selection=n?Ds(n)?SO(n):n:null}}},Gce=["text"],Kce=["children"];function LO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qce={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:a="lowest"}=n,{at:l,match:s,select:u}=n;if(he.isNode(t)&&(t=[t]),t.length!==0){var[c]=t;if(l||(l=e.selection?e.selection:e.children.length>0?B.end(e,[]):[0],u=!0),u==null&&(u=!1),re.isRange(l))if(r||(l=B.unhangRange(e,l)),re.isCollapsed(l))l=l.anchor;else{var[,d]=re.edges(l),f=B.pointRef(e,d);Q.delete(e,{at:l}),l=f.unref()}if(Ke.isPoint(l)){s==null&&(s=Se.isText(c)?x=>Se.isText(x):e.isInline(c)?x=>Se.isText(x)||B.isInline(e,x):x=>B.isBlock(e,x));var[g]=B.nodes(e,{at:l.path,match:s,mode:a,voids:o});if(!g)return;var[,h]=g,p=B.pathRef(e,h),y=B.isEnd(e,l,h);Q.splitNodes(e,{at:l,match:s,mode:a,voids:o});var v=p.unref();l=y?Y.next(v):v}var b=Y.parent(l),m=l[l.length-1];if(o||!B.void(e,{at:b})){for(var w of t){var S=b.concat(m);m++,e.apply({type:"insert_node",path:S,node:w}),l=Y.next(l)}if(l=Y.previous(l),u){var C=B.end(e,l);C&&Q.select(e,C)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:a}=t;if(a==null&&(a=Y.isPath(n)?wc(e,n):w=>B.isBlock(e,w)),n){var l=B.nodes(e,{at:n,match:a,mode:r,voids:o}),s=Array.from(l,w=>{var[,S]=w;return B.pathRef(e,S)});for(var u of s){var c=u.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=B.node(e,Y.parent(c)),[f,g]=d,h=c[c.length-1],{length:p}=f.children;if(p===1){var y=Y.next(g);Q.moveNodes(e,{at:c,to:y,voids:o}),Q.removeNodes(e,{at:g,voids:o})}else if(h===0)Q.moveNodes(e,{at:c,to:g,voids:o});else if(h===p-1){var v=Y.next(g);Q.moveNodes(e,{at:c,to:v,voids:o})}else{var b=Y.next(c),m=Y.next(g);Q.splitNodes(e,{at:b,voids:o}),Q.moveNodes(e,{at:c,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:a=!1,mode:l="lowest"}=t;if(r){if(n==null)if(Y.isPath(r)){var[s]=B.parent(e,r);n=A=>s.children.includes(A)}else n=A=>B.isBlock(e,A);if(!o&&re.isRange(r)&&(r=B.unhangRange(e,r)),re.isRange(r))if(re.isCollapsed(r))r=r.anchor;else{var[,u]=re.edges(r),c=B.pointRef(e,u);Q.delete(e,{at:r}),r=c.unref(),t.at==null&&Q.select(e,r)}var[d]=B.nodes(e,{at:r,match:n,voids:a,mode:l}),f=B.previous(e,{at:r,match:n,voids:a,mode:l});if(d&&f){var[g,h]=d,[p,y]=f;if(h.length!==0&&y.length!==0){var v,b,m=Y.next(y),w=Y.common(h,y),S=Y.isSibling(h,y),C=Array.from(B.levels(e,{at:h}),A=>{var[N]=A;return N}).slice(w.length).slice(0,-1),x=B.above(e,{at:h,mode:"highest",match:A=>C.includes(A)&&jO(e,A)}),k=x&&B.pathRef(e,x[1]);if(Se.isText(g)&&Se.isText(p)){var E=Qa(g,Gce);b=p.text.length,v=E}else{if(!_e.isElement(g)||!_e.isElement(p))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(g)," ").concat(JSON.stringify(p)));E=Qa(g,Kce),b=p.children.length,v=E}S||Q.moveNodes(e,{at:h,to:m,voids:a}),k&&Q.removeNodes(e,{at:k.current,voids:a}),_e.isElement(p)&&B.isEmpty(e,p)||Se.isText(p)&&p.text===""&&y[y.length-1]!==0?Q.removeNodes(e,{at:y,voids:a}):e.apply({type:"merge_node",path:m,position:b,properties:v}),k&&k.unref()}}}})},moveNodes(e,t){B.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:a=!1}=t,{match:l}=t;if(r){l==null&&(l=Y.isPath(r)?wc(e,r):h=>B.isBlock(e,h));var s=B.pathRef(e,n),u=B.nodes(e,{at:r,match:l,mode:o,voids:a}),c=Array.from(u,h=>{var[,p]=h;return B.pathRef(e,p)});for(var d of c){var f=d.unref(),g=s.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:g}),s.current&&Y.isSibling(g,f)&&Y.isAfter(g,f)&&(s.current=Y.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:a=e.selection,match:l}=t;if(a){l==null&&(l=Y.isPath(a)?wc(e,a):g=>B.isBlock(e,g)),!n&&re.isRange(a)&&(a=B.unhangRange(e,a));var s=B.nodes(e,{at:a,match:l,mode:o,voids:r}),u=Array.from(s,g=>{var[,h]=g;return B.pathRef(e,h)});for(var c of u){var d=c.unref();if(d){var[f]=B.node(e,d);e.apply({type:"remove_node",path:d,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:a=!1,mode:l="lowest",split:s=!1,voids:u=!1}=n;if(o){if(r==null&&(r=Y.isPath(o)?wc(e,o):C=>B.isBlock(e,C)),!a&&re.isRange(o)&&(o=B.unhangRange(e,o)),s&&re.isRange(o)){if(re.isCollapsed(o)&&B.leaf(e,o.anchor)[0].text.length>0)return;var c=B.rangeRef(e,o,{affinity:"inward"}),[d,f]=re.edges(o),g=l==="lowest"?"lowest":"highest",h=B.isEnd(e,f,f.path);Q.splitNodes(e,{at:f,match:r,mode:g,voids:u,always:!h});var p=B.isStart(e,d,d.path);Q.splitNodes(e,{at:d,match:r,mode:g,voids:u,always:!p}),o=c.unref(),n.at==null&&Q.select(e,o)}for(var[y,v]of B.nodes(e,{at:o,match:r,mode:l,voids:u})){var b={},m={};if(v.length!==0){var w=!1;for(var S in t)S!=="children"&&S!=="text"&&t[S]!==y[S]&&(w=!0,y.hasOwnProperty(S)&&(b[S]=y[S]),t[S]!=null&&(m[S]=t[S]));w&&e.apply({type:"set_node",path:v,properties:b,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection,height:l=0,always:s=!1}=t;if(o==null&&(o=O=>B.isBlock(e,O)),re.isRange(a)&&(a=Yce(e,a)),Y.isPath(a)){var u=a,c=B.point(e,u),[d]=B.parent(e,u);o=O=>O===d,l=c.path.length-u.length+1,a=c,s=!0}if(a){var f=B.pointRef(e,a,{affinity:"backward"}),[g]=B.nodes(e,{at:a,match:o,mode:n,voids:r});if(g){var h=B.void(e,{at:a,mode:"highest"});if(!r&&h){var[p,y]=h;if(_e.isElement(p)&&e.isInline(p)){var v=B.after(e,y);if(!v){var b=Y.next(y);Q.insertNodes(e,{text:""},{at:b,voids:r}),v=B.point(e,b)}a=v,s=!0}l=a.path.length-y.length+1,s=!0}var m=B.pointRef(e,a),w=a.path.length-l,[,S]=g,C=a.path.slice(0,w),x=l===0?a.offset:a.path[w]+0;for(var[k,E]of B.levels(e,{at:C,reverse:!0,voids:r})){var A=!1;if(E.length<S.length||E.length===0||!r&&B.isVoid(e,k))break;var N=f.current,V=B.isEnd(e,N,E);if(s||!f||!B.isEdge(e,N,E)){A=!0;var D=he.extractProps(k);e.apply({type:"split_node",path:E,position:x,properties:D})}x=E[E.length-1]+(A||V?1:0)}if(t.at==null){var P=m.current||B.end(e,[]);Q.select(e,P)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Q.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:a=e.selection,match:l}=t;if(a){l==null&&(l=Y.isPath(a)?wc(e,a):g=>B.isBlock(e,g)),Y.isPath(a)&&(a=B.range(e,a));var s=re.isRange(a)?B.rangeRef(e,a):null,u=B.nodes(e,{at:a,match:l,mode:n,voids:o}),c=Array.from(u,g=>{var[,h]=g;return B.pathRef(e,h)}).reverse(),d=function(g){var h=g.unref(),[p]=B.node(e,h),y=B.range(e,h);r&&s&&(y=re.intersection(s.current,y)),Q.liftNodes(e,{at:y,match:v=>_e.isAncestor(p)&&p.children.includes(v),voids:o})};for(var f of c)d(f);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:a=!1}=n,{match:l,at:s=e.selection}=n;if(s){if(l==null&&(l=Y.isPath(s)?wc(e,s):e.isInline(t)?v=>B.isInline(e,v)||Se.isText(v):v=>B.isBlock(e,v)),o&&re.isRange(s)){var[u,c]=re.edges(s),d=B.rangeRef(e,s,{affinity:"inward"});Q.splitNodes(e,{at:c,match:l,voids:a}),Q.splitNodes(e,{at:u,match:l,voids:a}),s=d.unref(),n.at==null&&Q.select(e,s)}var f=Array.from(B.nodes(e,{at:s,match:e.isInline(t)?v=>B.isBlock(e,v):v=>B.isEditor(v),mode:"lowest",voids:a}));for(var[,g]of f){var h=re.isRange(s)?re.intersection(s,B.range(e,g)):s;if(h){var p=Array.from(B.nodes(e,{at:h,match:l,mode:r,voids:a}));if(p.length>0){var y=function(){var[v]=p,b=p[p.length-1],[,m]=v,[,w]=b;if(m.length===0&&w.length===0)return"continue";var S=Y.equals(m,w)?Y.parent(m):Y.common(m,w),C=B.range(e,m,w),x=B.node(e,S),[k]=x,E=S.length+1,A=Y.next(w.slice(0,E)),N=MO(MO({},t),{},{children:[]});Q.insertNodes(e,N,{at:A,voids:a}),Q.moveNodes(e,{at:C,match:V=>_e.isAncestor(k)&&k.children.includes(V),to:A.concat(0),voids:a})}();if(y==="continue")continue}}}}})}},jO=(e,t)=>{if(_e.isElement(t)){var n=t;return!!B.isVoid(e,t)||n.children.length===1&&jO(e,n.children[0])}return!B.isEditor(t)},Yce=(e,t)=>{if(re.isCollapsed(t))return t.anchor;var[,n]=re.edges(t),r=B.pointRef(e,n);return Q.delete(e,{at:t}),r.unref()},wc=(e,t)=>{var[n]=B.node(e,t);return r=>r===n};function zO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function HO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Xce={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")Q.select(e,r.anchor);else if(n==="focus")Q.select(e,r.focus);else if(n==="start"){var[o]=re.edges(r);Q.select(e,o)}else if(n==="end"){var[,a]=re.edges(r);Q.select(e,a)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:a=!1}=t,{edge:l=null}=t;if(n){l==="start"&&(l=re.isBackward(n)?"focus":"anchor"),l==="end"&&(l=re.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,c={distance:r,unit:o},d={};if(l==null||l==="anchor"){var f=a?B.before(e,s,c):B.after(e,s,c);f&&(d.anchor=f)}if(l==null||l==="focus"){var g=a?B.before(e,u,c):B.after(e,u,c);g&&(d.focus=g)}Q.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=B.range(e,t),n)Q.setSelection(e,t);else{if(!re.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&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=re.isBackward(r)?"focus":"anchor"),o==="end"&&(o=re.isBackward(r)?"anchor":"focus");var{anchor:a,focus:l}=r,s=o==="anchor"?a:l;Q.setSelection(e,{[o==="anchor"?"anchor":"focus"]:HO(HO({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var a in t)(a==="anchor"&&t.anchor!=null&&!Ke.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!Ke.equals(t.focus,n.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==n[a])&&(r[a]=n[a],o[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Jce={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:a=!1}=t,{at:l=e.selection,hanging:s=!1}=t;if(l){if(re.isRange(l)&&re.isCollapsed(l)&&(l=l.anchor),Ke.isPoint(l)){var u=B.void(e,{at:l,mode:"highest"});if(!a&&u){var[,c]=u;l=c}else{var d={unit:r,distance:o};l={anchor:l,focus:n?B.before(e,l,d)||B.start(e,[]):B.after(e,l,d)||B.end(e,[])},s=!0}}if(Y.isPath(l))Q.removeNodes(e,{at:l,voids:a});else if(!re.isCollapsed(l)){if(!s){var[,f]=re.edges(l),g=B.end(e,[]);Ke.equals(f,g)||(l=B.unhangRange(e,l,{voids:a}))}var[h,p]=re.edges(l),y=B.above(e,{match:ne=>B.isBlock(e,ne),at:h,voids:a}),v=B.above(e,{match:ne=>B.isBlock(e,ne),at:p,voids:a}),b=y&&v&&!Y.equals(y[1],v[1]),m=Y.equals(h.path,p.path),w=a?null:B.void(e,{at:h,mode:"highest"}),S=a?null:B.void(e,{at:p,mode:"highest"});if(w){var C=B.before(e,h);C&&y&&Y.isAncestor(y[1],C.path)&&(h=C)}if(S){var x=B.after(e,p);x&&v&&Y.isAncestor(v[1],x.path)&&(p=x)}var k,E=[];for(var A of B.nodes(e,{at:l,voids:a})){var[N,V]=A;k&&Y.compare(V,k)===0||(!a&&B.isVoid(e,N)||!Y.isCommon(V,h.path)&&!Y.isCommon(V,p.path))&&(E.push(A),k=V)}var D=Array.from(E,ne=>{var[,me]=ne;return B.pathRef(e,me)}),P=B.pointRef(e,h),O=B.pointRef(e,p);if(!m&&!w){var F=P.current,[H]=B.leaf(e,F),{path:J}=F,{offset:j}=h,z=H.text.slice(j);z.length>0&&e.apply({type:"remove_text",path:J,offset:j,text:z})}for(var L of D){var _=L.unref();Q.removeNodes(e,{at:_,voids:a})}if(!S){var T=O.current,[I]=B.leaf(e,T),{path:U}=T,$=m?h.offset:0,W=I.text.slice($,p.offset);W.length>0&&e.apply({type:"remove_text",path:U,offset:$,text:W})}!m&&b&&O.current&&P.current&&Q.mergeNodes(e,{at:O.current,hanging:!0,voids:a});var Z=n?P.unref()||O.unref():O.unref()||P.unref();t.at==null&&Z&&Q.select(e,Z)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(re.isRange(a))if(r||(a=B.unhangRange(e,a)),re.isCollapsed(a))a=a.anchor;else{var[,l]=re.edges(a);if(!o&&B.void(e,{at:l}))return;var s=B.pointRef(e,l);Q.delete(e,{at:a}),a=s.unref()}else Y.isPath(a)&&(a=B.start(e,a));if(o||!B.void(e,{at:a})){var u=B.above(e,{at:a,match:T=>B.isInline(e,T),mode:"highest",voids:o});if(u){var[,c]=u;B.isEnd(e,a,c)?a=B.after(e,c):B.isStart(e,a,c)&&(a=B.before(e,c))}var d=B.above(e,{match:T=>B.isBlock(e,T),at:a,voids:o}),[,f]=d,g=B.isStart(e,a,f),h=B.isEnd(e,a,f),p=g&&h,y=!g||g&&h,v=!h,[,b]=he.first({children:t},[]),[,m]=he.last({children:t},[]),w=[],S=T=>{var[I,U]=T;return U.length!==0&&(!!p||!(y&&Y.isAncestor(U,b)&&_e.isElement(I)&&!e.isVoid(I)&&!e.isInline(I))&&!(v&&Y.isAncestor(U,m)&&_e.isElement(I)&&!e.isVoid(I)&&!e.isInline(I)))};for(var C of he.nodes({children:t},{pass:S}))S(C)&&w.push(C);var x=[],k=[],E=[],A=!0,N=!1;for(var[V]of w)_e.isElement(V)&&!e.isInline(V)?(A=!1,N=!0,k.push(V)):A?x.push(V):E.push(V);var[D]=B.nodes(e,{at:a,match:T=>Se.isText(T)||B.isInline(e,T),mode:"highest",voids:o}),[,P]=D,O=B.isStart(e,a,P),F=B.isEnd(e,a,P),H=B.pathRef(e,h?Y.next(f):f),J=B.pathRef(e,F?Y.next(P):P),j=B.pathRef(e,f);Q.splitNodes(e,{at:a,match:T=>N?B.isBlock(e,T):Se.isText(T)||B.isInline(e,T),mode:N?"lowest":"highest",voids:o});var z=B.pathRef(e,!O||O&&F?Y.next(P):P);if(Q.insertNodes(e,x,{at:z.current,match:T=>Se.isText(T)||B.isInline(e,T),mode:"highest",voids:o}),p&&k.length&&Q.delete(e,{at:j.unref(),voids:o}),Q.insertNodes(e,k,{at:H.current,match:T=>B.isBlock(e,T),mode:"lowest",voids:o}),Q.insertNodes(e,E,{at:J.current,match:T=>Se.isText(T)||B.isInline(e,T),mode:"highest",voids:o}),!n.at){var L;L=E.length>0?Y.previous(J.current):k.length>0?Y.previous(H.current):Y.previous(z.current);var _=B.end(e,L);Q.select(e,_)}z.unref(),H.unref(),J.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Y.isPath(o)&&(o=B.range(e,o)),re.isRange(o))if(re.isCollapsed(o))o=o.anchor;else{var a=re.end(o);if(!r&&B.void(e,{at:a}))return;var l=B.pointRef(e,a);Q.delete(e,{at:o,voids:r}),o=l.unref(),Q.setSelection(e,{anchor:o,focus:o})}if(r||!B.void(e,{at:o})){var{path:s,offset:u}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}})}};function UO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Q=vy(vy(vy(vy({},Wce),qce),Xce),Jce),Qk="[object Map]",$k="[object Set]",Zce=/^\[object .+?Constructor\]$/,Qce=/^(?:0|[1-9]\d*)$/,$ce="[\\ud800-\\udfff]",ex="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",tx="\\ud83c[\\udffb-\\udfff]",WO="[^\\ud800-\\udfff]",GO="(?:\\ud83c[\\udde6-\\uddff]){2}",KO="[\\ud800-\\udbff][\\udc00-\\udfff]",qO="(?:"+ex+"|"+tx+")?",ede="[\\ufe0e\\ufe0f]?"+qO+("(?:\\u200d(?:"+[WO,GO,KO].join("|")+")[\\ufe0e\\ufe0f]?"+qO+")*"),tde="(?:"+[WO+ex+"?",ex,GO,KO,$ce].join("|")+")",nde=RegExp(tx+"(?="+tx+")|"+tde+ede,"g"),rde=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ode=typeof Et=="object"&&Et&&Et.Object===Object&&Et,ade=typeof self=="object"&&self&&self.Object===Object&&self,Bs=ode||ade||Function("return this")();function ide(e,t){return function(n,r){for(var o=-1,a=n?n.length:0,l=Array(a);++o<a;)l[o]=r(n[o],o,n);return l}(t,function(n){return e[n]})}function lde(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function sde(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function ude(e){return function(t){return rde.test(t)}(e)?function(t){return t.match(nde)||[]}(e):function(t){return t.split("")}(e)}var YO,XO,cde=Function.prototype,yy=Object.prototype,nx=Bs["__core-js_shared__"],JO=function(){var e=/[^.]+$/.exec(nx&&nx.keys&&nx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ZO=cde.toString,by=yy.hasOwnProperty,mh=yy.toString,dde=RegExp("^"+ZO.call(by).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),QO=Bs.Symbol,rx=QO?QO.iterator:void 0,fde=yy.propertyIsEnumerable,hde=(YO=Object.keys,XO=Object,function(e){return YO(XO(e))}),ox=ph(Bs,"DataView"),ax=ph(Bs,"Map"),ix=ph(Bs,"Promise"),lx=ph(Bs,"Set"),sx=ph(Bs,"WeakMap"),gde=Ts(ox),mde=Ts(ax),pde=Ts(ix),vde=Ts(lx),yde=Ts(sx);function bde(e,t){var n=$O(e)||function(l){return function(s){return nI(s)&&ux(s)}(l)&&by.call(l,"callee")&&(!fde.call(l,"callee")||mh.call(l)=="[object Arguments]")}(e)?function(l,s){for(var u=-1,c=Array(l);++u<l;)c[u]=s(u);return c}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!by.call(e,a)||o&&(a=="length"||Cde(a,r))||n.push(a);return n}function wde(e){if(!tI(e)||function(n){return!!JO&&JO in n}(e))return!1;var t=eI(e)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(e)?dde:Zce;return t.test(Ts(e))}function Sde(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||yy,t!==r)return hde(e);var t,n,r,o=[];for(var a in Object(e))by.call(e,a)&&a!="constructor"&&o.push(a);return o}function ph(e,t){var n=function(r,o){return r==null?void 0:r[o]}(e,t);return wde(n)?n:void 0}var _s=function(e){return mh.call(e)};function Cde(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Qce.test(e))&&e>-1&&e%1==0&&e<t}function Ts(e){if(e!=null){try{return ZO.call(e)}catch{}try{return e+""}catch{}}return""}(ox&&_s(new ox(new ArrayBuffer(1)))!="[object DataView]"||ax&&_s(new ax)!=Qk||ix&&_s(ix.resolve())!="[object Promise]"||lx&&_s(new lx)!=$k||sx&&_s(new sx)!="[object WeakMap]")&&(_s=function(e){var t=mh.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?Ts(n):void 0;if(r)switch(r){case gde:return"[object DataView]";case mde:return Qk;case pde:return"[object Promise]";case vde:return $k;case yde:return"[object WeakMap]"}return t});var $O=Array.isArray;function ux(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!eI(e)}function eI(e){var t=tI(e)?mh.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function tI(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nI(e){return!!e&&typeof e=="object"}function kde(e){return e?ide(e,function(t){return ux(t)?bde(t):Sde(t)}(e)):[]}var rI=function(e){if(!e)return[];if(ux(e))return function(n){return typeof n=="string"||!$O(n)&&nI(n)&&mh.call(n)=="[object String]"}(e)?ude(e):function(n,r){var o=-1,a=n.length;for(r||(r=Array(a));++o<a;)r[o]=n[o];return r}(e);if(rx&&e[rx])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(e[rx]());var t=_s(e);return(t==Qk?lde:t==$k?sde:kde)(e)};function oI(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function cx(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:oI(t[n])&&oI(e[n])&&Object.keys(t[n]).length>0&&cx(e[n],t[n])})}var aI={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 vh(){var e=typeof document<"u"?document:{};return cx(e,aI),e}var xde={document:aI,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 typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function Ps(){var e=typeof window<"u"?window:{};return cx(e,xde),e}function dx(e){return dx=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},dx(e)}function wy(e,t){return wy=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},wy(e,t)}function Ede(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function fx(e,t,n){return fx=Ede()?Reflect.construct:function(r,o,a){var l=[null];l.push.apply(l,o);var s=new(Function.bind.apply(r,l));return a&&wy(s,a.prototype),s},fx.apply(null,arguments)}function hx(e){var t=typeof Map=="function"?new Map:void 0;return hx=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return fx(n,arguments,dx(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wy(r,n)},hx(e)}var Hi=function(e){var t,n;function r(o){var a,l,s;return a=e.call.apply(e,[this].concat(o))||this,l=function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(a),s=l.__proto__,Object.defineProperty(l,"__proto__",{get:function(){return s},set:function(u){s.__proto__=u}}),a}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(hx(Array));function Sy(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Sy(n)):t.push(n)}),t}function iI(e,t){return Array.prototype.filter.call(e,t)}function M(e,t){var n=Ps(),r=vh(),o=[];if(!t&&e instanceof Hi)return e;if(!e)return new Hi(o);if(typeof e=="string"){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var l="div";a.indexOf("<li")===0&&(l="ul"),a.indexOf("<tr")===0&&(l="tbody"),a.indexOf("<td")!==0&&a.indexOf("<th")!==0||(l="tr"),a.indexOf("<tbody")===0&&(l="table"),a.indexOf("<option")===0&&(l="select");var s=r.createElement(l);s.innerHTML=a;for(var u=0;u<s.childNodes.length;u+=1)o.push(s.childNodes[u])}else o=function(c,d){if(typeof c!="string")return[c];for(var f=[],g=d.querySelectorAll(c),h=0;h<g.length;h+=1)f.push(g[h]);return f}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Hi)return e;o=e}return new Hi(function(c){for(var d=[],f=0;f<c.length;f+=1)d.indexOf(c[f])===-1&&d.push(c[f]);return d}(o))}function Sc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sy(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).add.apply(a,r)}),this}function Cc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sy(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var a;(a=o.classList).remove.apply(a,r)}),this}function kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sy(t.map(function(o){return o.split(" ")}));return iI(this,function(o){return r.filter(function(a){return o.classList.contains(a)}).length>0}).length>0}function oo(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)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 Cy(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function xc(){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 a=e.attributes[o];a.name.indexOf("data-")>=0&&(n[t=a.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(s,u){return u.toUpperCase()})]=a.value)}for(var l in n)n[l]==="false"?n[l]=!1:n[l]==="true"?n[l]=!0:parseFloat(n[l])===1*n[l]&&(n[l]*=1);return n}}function ca(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){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 a=this[o];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()==="select")for(var l=0;l<a.options.length;l+=1)a.options[l].selected=e.indexOf(a.options[l].value)>=0;else a.value=e}return this}function da(){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],a=t[2],l=t[3];function s(y){var v=y.target;if(v){var b=y.target.dom7EventData||[];if(b.indexOf(y)<0&&b.unshift(y),M(v).is(o))a.apply(v,b);else for(var m=M(v).parents(),w=0;w<m.length;w+=1)M(m[w]).is(o)&&a.apply(m[w],b)}}function u(y){var v=y&&y.target&&y.target.dom7EventData||[];v.indexOf(y)<0&&v.unshift(y),a.apply(this,v)}typeof t[1]=="function"&&(r=t[0],a=t[1],l=t[2],o=void 0),l||(l=!1);for(var c,d=r.split(" "),f=0;f<this.length;f+=1){var g=this[f];if(o)for(c=0;c<d.length;c+=1){var h=d[c];g.dom7LiveListeners||(g.dom7LiveListeners={}),g.dom7LiveListeners[h]||(g.dom7LiveListeners[h]=[]),g.dom7LiveListeners[h].push({listener:a,proxyListener:s}),g.addEventListener(h,s,l)}else for(c=0;c<d.length;c+=1){var p=d[c];g.dom7Listeners||(g.dom7Listeners={}),g.dom7Listeners[p]||(g.dom7Listeners[p]=[]),g.dom7Listeners[p].push({listener:a,proxyListener:u}),g.addEventListener(p,u,l)}}return this}function lI(){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],a=t[2],l=t[3];typeof t[1]=="function"&&(r=t[0],a=t[1],l=t[2],o=void 0),l||(l=!1);for(var s=r.split(" "),u=0;u<s.length;u+=1)for(var c=s[u],d=0;d<this.length;d+=1){var f=this[d],g=void 0;if(!o&&f.dom7Listeners?g=f.dom7Listeners[c]:o&&f.dom7LiveListeners&&(g=f.dom7LiveListeners[c]),g&&g.length)for(var h=g.length-1;h>=0;h-=1){var p=g[h];a&&p.listener===a||a&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===a?(f.removeEventListener(c,p.proxyListener,l),g.splice(h,1)):a||(f.removeEventListener(c,p.proxyListener,l),g.splice(h,1))}}return this}function ky(){var e=Ps();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function xy(){var e=Ps();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function sI(){if(this.length>0){var e=Ps(),t=vh(),n=this[0],r=n.getBoundingClientRect(),o=t.body,a=n.clientTop||o.clientTop||0,l=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+u-l}}return null}function Ec(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Ey(){for(var e=Ps(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Dy(e,t){var n,r=Ps();if(arguments.length===1){if(typeof e!="string"){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(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Ay(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function uI(e){return M(iI(this,e))}function Ui(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Vy(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function cI(e){var t,n,r=Ps(),o=vh(),a=this[0];if(!a||e===void 0)return!1;if(typeof e=="string"){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=M(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===o)return a===o;if(e===r)return a===r;if(e.nodeType||e instanceof Hi){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function ao(){for(var e,t=vh(),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(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Hi)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function dI(e){var t,n,r=vh();for(t=0;t<this.length;t+=1)if(typeof e=="string"){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 Hi)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 Dc(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?M(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return M(t)}function By(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?M(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return M(t)}function Ac(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 M(t)}function Vc(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&&!M(r[o]).is(e)||t.push(r[o]);return M(t)}function Bc(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function _c(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){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}M.fn=Hi.prototype;var Dde="resize scroll".split(" ");function fI(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)Dde.indexOf(e)<0&&(e in this[o]?this[o][e]():M(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var hI=fI("click"),Wi=fI("focus"),Ade="[object GeneratorFunction]",Vde=/^(?:0|[1-9]\d*)$/;function Bde(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var _y=Object.prototype,gx=_y.hasOwnProperty,gI=_y.toString,_de=_y.propertyIsEnumerable,Tde=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Pde(e,t){var n=pI(e)||function(l){return function(s){return function(u){return!!u&&typeof u=="object"}(s)&&mx(s)}(l)&&gx.call(l,"callee")&&(!_de.call(l,"callee")||gI.call(l)=="[object Arguments]")}(e)?function(l,s){for(var u=-1,c=Array(l);++u<l;)c[u]=s(u);return c}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!gx.call(e,a)||o&&(a=="length"||Fde(a,r))||n.push(a);return n}var mI,Nde=(mI=function(e,t){return e&&Ode(e,t,Rde)},function(e,t){if(e==null)return e;if(!mx(e))return mI(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),Ode=function(e){return function(t,n,r){for(var o=-1,a=Object(t),l=r(t),s=l.length;s--;){var u=l[++o];if(n(a[u],u,a)===!1)break}return t}}();function Ide(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||_y,t!==r)return Tde(e);var t,n,r,o=[];for(var a in Object(e))gx.call(e,a)&&a!="constructor"&&o.push(a);return o}function Fde(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Vde.test(e))&&e>-1&&e%1==0&&e<t}var pI=Array.isArray;function mx(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(t)?gI.call(t):"";return n=="[object Function]"||n==Ade}(e)}function Rde(e){return mx(e)?Pde(e):Ide(e)}function Lde(e){return e}var px=function(e,t){return(pI(e)?Bde:Nde)(e,typeof t=="function"?t:Lde)};let vI=(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 Mde=/^\s+|\s+$/g,jde=/^[-+]0x[0-9a-f]+$/i,zde=/^0b[01]+$/i,Hde=/^0o[0-7]+$/i,Ude=parseInt,Wde=typeof Et=="object"&&Et&&Et.Object===Object&&Et,Gde=typeof self=="object"&&self&&self.Object===Object&&self,Kde=Wde||Gde||Function("return this")(),qde=Object.prototype.toString,Yde=Math.max,Xde=Math.min,vx=function(){return Kde.Date.now()};function Jde(e,t,n){var r,o,a,l,s,u,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError("Expected a function");function h(w){var S=r,C=o;return r=o=void 0,c=w,l=e.apply(C,S)}function p(w){return c=w,s=setTimeout(v,t),d?h(w):l}function y(w){var S=w-u;return u===void 0||S>=t||S<0||f&&w-c>=a}function v(){var w=vx();if(y(w))return b(w);s=setTimeout(v,function(S){var C=t-(S-u);return f?Xde(C,a-(S-c)):C}(w))}function b(w){return s=void 0,g&&r?h(w):(r=o=void 0,l)}function m(){var w=vx(),S=y(w);if(r=arguments,o=this,u=w,S){if(s===void 0)return p(u);if(f)return s=setTimeout(v,t),h(u)}return s===void 0&&(s=setTimeout(v,t)),l}return t=yI(t)||0,Ty(n)&&(d=!!n.leading,a=(f="maxWait"in n)?Yde(yI(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),m.cancel=function(){s!==void 0&&clearTimeout(s),c=0,r=u=o=s=void 0},m.flush=function(){return s===void 0?l:b(vx())},m}function Ty(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yI(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&qde.call(r)=="[object Symbol]"}(e))return NaN;if(Ty(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ty(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Mde,"");var n=zde.test(e);return n||Hde.test(e)?Ude(e.slice(2),n?2:8):jde.test(e)?NaN:+e}var Ns=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Ty(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Jde(e,t,{leading:r,maxWait:t,trailing:o})};const Zde={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 e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function yh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const yx=Array.isArray;function Py(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function bx(e){return e===void 0}function Wr(e){return e!==void 0}const bI=yh("",{},[],void 0,void 0);function bh(e,t){var n,r;const o=e.key===t.key,a=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&a}function Qde(e,t,n){var r;const o={};for(let a=t;a<=n;++a){const l=(r=e[a])===null||r===void 0?void 0:r.key;l!==void 0&&(o[l]=a)}return o}const $de=["create","update","remove","destroy","pre","post"];function efe(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Zde;for(const f of $de)for(const g of e){const h=g[f];h!==void 0&&n[f].push(h)}function o(f){const g=f.id?"#"+f.id:"",h=f.getAttribute("class"),p=h?"."+h.split(" ").join("."):"";return yh(r.tagName(f).toLowerCase()+g+p,{},[],void 0,f)}function a(f,g){return function(){if(--g==0){const h=r.parentNode(f);r.removeChild(h,f)}}}function l(f,g){var h,p;let y,v=f.data;if(v!==void 0){const w=(h=v.hook)===null||h===void 0?void 0:h.init;Wr(w)&&(w(f),v=f.data)}const b=f.children,m=f.sel;if(m==="!")bx(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(m!==void 0){const w=m.indexOf("#"),S=m.indexOf(".",w),C=w>0?w:m.length,x=S>0?S:m.length,k=w!==-1||S!==-1?m.slice(0,Math.min(C,x)):m,E=f.elm=Wr(v)&&Wr(y=v.ns)?r.createElementNS(y,k,v):r.createElement(k,v);for(C<x&&E.setAttribute("id",m.slice(C+1,x)),S>0&&E.setAttribute("class",m.slice(x+1).replace(/\./g," ")),y=0;y<n.create.length;++y)n.create[y](bI,f);if(yx(b))for(y=0;y<b.length;++y){const N=b[y];N!=null&&r.appendChild(E,l(N,g))}else Py(f.text)&&r.appendChild(E,r.createTextNode(f.text));const A=f.data.hook;Wr(A)&&((p=A.create)===null||p===void 0||p.call(A,bI,f),A.insert&&g.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function s(f,g,h,p,y,v){for(;p<=y;++p){const b=h[p];b!=null&&r.insertBefore(f,l(b,v),g)}}function u(f){var g,h;const p=f.data;if(p!==void 0){(h=(g=p==null?void 0:p.hook)===null||g===void 0?void 0:g.destroy)===null||h===void 0||h.call(g,f);for(let y=0;y<n.destroy.length;++y)n.destroy[y](f);if(f.children!==void 0)for(let y=0;y<f.children.length;++y){const v=f.children[y];v!=null&&typeof v!="string"&&u(v)}}}function c(f,g,h,p){for(var y,v;h<=p;++h){let b,m;const w=g[h];if(w!=null)if(Wr(w.sel)){u(w),b=n.remove.length+1,m=a(w.elm,b);for(let C=0;C<n.remove.length;++C)n.remove[C](w,m);const S=(v=(y=w==null?void 0:w.data)===null||y===void 0?void 0:y.hook)===null||v===void 0?void 0:v.remove;Wr(S)?S(w,m):m()}else r.removeChild(f,w.elm)}}function d(f,g,h){var p,y,v,b,m;const w=(p=g.data)===null||p===void 0?void 0:p.hook;(y=w==null?void 0:w.prepatch)===null||y===void 0||y.call(w,f,g);const S=g.elm=f.elm,C=f.children,x=g.children;if(f!==g){if(g.data!==void 0){for(let k=0;k<n.update.length;++k)n.update[k](f,g);(b=(v=g.data.hook)===null||v===void 0?void 0:v.update)===null||b===void 0||b.call(v,f,g)}bx(g.text)?Wr(C)&&Wr(x)?C!==x&&function(k,E,A,N){let V,D,P,O,F=0,H=0,J=E.length-1,j=E[0],z=E[J],L=A.length-1,_=A[0],T=A[L];for(;F<=J&&H<=L;)j==null?j=E[++F]:z==null?z=E[--J]:_==null?_=A[++H]:T==null?T=A[--L]:bh(j,_)?(d(j,_,N),j=E[++F],_=A[++H]):bh(z,T)?(d(z,T,N),z=E[--J],T=A[--L]):bh(j,T)?(d(j,T,N),r.insertBefore(k,j.elm,r.nextSibling(z.elm)),j=E[++F],T=A[--L]):bh(z,_)?(d(z,_,N),r.insertBefore(k,z.elm,j.elm),z=E[--J],_=A[++H]):(V===void 0&&(V=Qde(E,F,J)),D=V[_.key],bx(D)?r.insertBefore(k,l(_,N),j.elm):(P=E[D],P.sel!==_.sel?r.insertBefore(k,l(_,N),j.elm):(d(P,_,N),E[D]=void 0,r.insertBefore(k,P.elm,j.elm))),_=A[++H]);(F<=J||H<=L)&&(F>J?(O=A[L+1]==null?null:A[L+1].elm,s(k,O,A,H,L,N)):c(k,E,F,J))}(S,C,x,h):Wr(x)?(Wr(f.text)&&r.setTextContent(S,""),s(S,null,x,0,x.length-1,h)):Wr(C)?c(S,C,0,C.length-1):Wr(f.text)&&r.setTextContent(S,""):f.text!==g.text&&(Wr(C)&&c(S,C,0,C.length-1),r.setTextContent(S,g.text)),(m=w==null?void 0:w.postpatch)===null||m===void 0||m.call(w,f,g)}}return function(f,g){let h,p,y;const v=[];for(h=0;h<n.pre.length;++h)n.pre[h]();for(function(b){return b.sel!==void 0}(f)||(f=o(f)),bh(f,g)?d(f,g,v):(p=f.elm,y=r.parentNode(p),l(g,v),y!==null&&(r.insertBefore(y,g.elm,r.nextSibling(p)),c(y,[f],0,0))),h=0;h<v.length;++h)v[h].data.hook.insert(v[h]);for(h=0;h<n.post.length;++h)n.post[h]();return g}}function wI(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&wI(o,t[r].children,t[r].sel)}}function Tc(e,t,n){let r,o,a,l={};if(n!==void 0?(t!==null&&(l=t),yx(n)?r=n:Py(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(yx(t)?r=t:Py(t)?o=t.toString():t&&t.sel?r=[t]:l=t),r!==void 0)for(a=0;a<r.length;++a)Py(r[a])&&(r[a]=yh(void 0,void 0,void 0,r[a],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||wI(l,r,e),yh(e,l,r,o,void 0)}function SI(e,t){let n;const r=t.elm;let o=e.data.attrs,a=t.data.attrs;if((o||a)&&o!==a){for(n in o=o||{},a=a||{},a){const l=a[n];o[n]!==l&&(l===!0?r.setAttribute(n,""):l===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,l):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,l):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,l):r.setAttribute(n,l))}for(n in o)n in a||r.removeAttribute(n)}}const tfe={create:SI,update:SI};function CI(e,t){let n,r;const o=t.elm;let a=e.data.class,l=t.data.class;if((a||l)&&a!==l){for(r in a=a||{},l=l||{},a)a[r]&&!Object.prototype.hasOwnProperty.call(l,r)&&o.classList.remove(r);for(r in l)n=l[r],n!==a[r]&&o.classList[n?"add":"remove"](r)}}const nfe={create:CI,update:CI},kI=/[A-Z]/g;function xI(e,t){const n=t.elm;let r,o=e.data.dataset,a=t.data.dataset;if(!o&&!a||o===a)return;o=o||{},a=a||{};const l=n.dataset;for(r in o)a[r]||(l?r in l&&delete l[r]:n.removeAttribute("data-"+r.replace(kI,"-$&").toLowerCase()));for(r in a)o[r]!==a[r]&&(l?l[r]=a[r]:n.setAttribute("data-"+r.replace(kI,"-$&").toLowerCase(),a[r]))}const rfe={create:xI,update:xI};function EI(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)EI(e[r],t,n)}function ofe(e,t){const n=e.type,r=t.data.on;r&&r[n]&&EI(r[n],t,e)}function wx(e,t){const n=e.data.on,r=e.listener,o=e.elm,a=t&&t.data.on,l=t&&t.elm;let s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||o.removeEventListener(s,r,!1);else for(s in n)o.removeEventListener(s,r,!1);if(a){const u=t.listener=e.listener||function c(d){ofe(d,c.vnode)};if(u.vnode=t,n)for(s in a)n[s]||l.addEventListener(s,u,!1);else for(s in a)l.addEventListener(s,u,!1)}}}const afe={create:wx,update:wx,destroy:wx};function DI(e,t){let n,r,o;const a=t.elm;let l=e.data.props,s=t.data.props;if((l||s)&&l!==s)for(n in l=l||{},s=s||{},s)r=s[n],o=l[n],o===r||n==="value"&&a[n]===r||(a[n]=r)}const ife={create:DI,update:DI},AI=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Sx=!1;function lfe(e,t,n){(function(r){AI(function(){AI(r)})})(function(){e[t]=n})}function VI(e,t){let n,r;const o=t.elm;let a=e.data.style,l=t.data.style;if(!a&&!l||a===l)return;a=a||{},l=l||{};const s="delayed"in a;for(r in a)l[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in l)if(n=l[r],r==="delayed"&&l.delayed)for(const u in l.delayed)n=l.delayed[u],s&&n===a.delayed[u]||lfe(o.style,u,n);else r!=="remove"&&n!==a[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const sfe={pre:function(){Sx=!1},create:VI,update:VI,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;Sx||(e.elm.offsetLeft,Sx=!0);const o=e.elm;let a=0;const l=n.remove;let s=0;const u=[];for(r in l)u.push(r),o.style[r]=l[r];const c=getComputedStyle(o)["transition-property"].split(", ");for(;a<c.length;++a)u.indexOf(c[a])!==-1&&s++;o.addEventListener("transitionend",function(d){d.target===o&&--s,s===0&&t()})}};function BI(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?BI(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(yh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Fe(e,t,...n){const r=BI(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Tc(e,t,r[0].text):Tc(e,t,r)}Fe||(Fe={});var ufe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cfe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_I="\\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",dfe="[\\ud800-\\udfff]",TI="["+_I+"]",Ny="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",PI="\\d+",ffe="[\\u2700-\\u27bf]",NI="[a-z\\xdf-\\xf6\\xf8-\\xff]",OI="[^\\ud800-\\udfff"+_I+PI+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Cx="\\ud83c[\\udffb-\\udfff]",II="[^\\ud800-\\udfff]",kx="(?:\\ud83c[\\udde6-\\uddff]){2}",xx="[\\ud800-\\udbff][\\udc00-\\udfff]",Pc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",FI="(?:"+NI+"|"+OI+")",hfe="(?:"+Pc+"|"+OI+")",RI="(?:"+Ny+"|"+Cx+")?",LI="[\\ufe0e\\ufe0f]?"+RI+("(?:\\u200d(?:"+[II,kx,xx].join("|")+")[\\ufe0e\\ufe0f]?"+RI+")*"),gfe="(?:"+[ffe,kx,xx].join("|")+")"+LI,mfe="(?:"+[II+Ny+"?",Ny,kx,xx,dfe].join("|")+")",pfe=RegExp("['’]","g"),vfe=RegExp(Ny,"g"),yfe=RegExp(Cx+"(?="+Cx+")|"+mfe+LI,"g"),bfe=RegExp([Pc+"?"+NI+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[TI,Pc,"$"].join("|")+")",hfe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[TI,Pc+FI,"$"].join("|")+")",Pc+"?"+FI+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Pc+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",PI,gfe].join("|"),"g"),wfe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Sfe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cfe=typeof Et=="object"&&Et&&Et.Object===Object&&Et,kfe=typeof self=="object"&&self&&self.Object===Object&&self,xfe=Cfe||kfe||Function("return this")(),Ex,Efe=(Ex={À:"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 Ex==null?void 0:Ex[e]});function MI(e){return wfe.test(e)}function Dfe(e){return MI(e)?function(t){return t.match(yfe)||[]}(e):function(t){return t.split("")}(e)}var Afe=Object.prototype.toString,jI=xfe.Symbol,zI=jI?jI.prototype:void 0,HI=zI?zI.toString:void 0;function Vfe(e){if(typeof e=="string")return e;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&Afe.call(n)=="[object Symbol]"}(e))return HI?HI.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Bfe(e,t,n){var r=e.length;return n=n===void 0?r:n,function(o,a,l){var s=-1,u=o.length;a<0&&(a=-a>u?0:u+a),(l=l>u?u:l)<0&&(l+=u),u=a>l?0:l-a>>>0,a>>>=0;for(var c=Array(u);++s<u;)c[s]=o[s+a];return c}(e,t,n)}function Oy(e){return e==null?"":Vfe(e)}for(var UI,_fe=(UI=function(e,t,n){return t=t.toLowerCase(),e+(n?Tfe(Oy(t).toLowerCase()):t)},function(e){return function(t,n,r,o){var a=-1,l=t?t.length:0;for(o;++a<l;)r=n(r,t[a],a,t);return r}(function(t,n,r){return t=Oy(t),(n=n)===void 0?function(o){return Sfe.test(o)}(t)?function(o){return o.match(bfe)||[]}(t):function(o){return o.match(ufe)||[]}(t):t.match(n)||[]}(function(t){return(t=Oy(t))&&t.replace(cfe,Efe).replace(vfe,"")}(e).replace(pfe,"")),UI,"")}),WI,Tfe=(WI="toUpperCase",function(e){var t=MI(e=Oy(e))?Dfe(e):void 0,n=t?t[0]:e.charAt(0),r=t?Bfe(t,1).join(""):e.slice(1);return n[WI]()+r}),Pfe=_fe,Nfe=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Dx={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},GI={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Nfe?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ax={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},Iy=1;Iy<20;Iy++)Ax["f"+Iy]=111+Iy;function KI(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return function(l,s){var u=s&&s.byKey,c={},d=(l=l.replace("++","+add")).split("+"),f=d.length;for(var g in Dx)c[Dx[g]]=!1;var h=!0,p=!1,y=void 0;try{for(var v,b=d[Symbol.iterator]();!(h=(v=b.next()).done);h=!0){var m=v.value,w=m.endsWith("?")&&m.length>1;w&&(m=m.slice(0,-1));var S=qI(m),C=Dx[S];if(m.length>1&&!C&&!GI[m]&&!Ax[S])throw new TypeError('Unknown modifier: "'+m+'"');f!==1&&C||(u?c.key=S:c.which=Ofe(m)),C&&(c[C]=!w||null)}}catch(x){p=!0,y=x}finally{try{!h&&b.return&&b.return()}finally{if(p)throw y}}return c}(a,t)}),o=function(a){return r.some(function(l){return function(s,u){for(var c in s){var d=s[c],f=void 0;if(d!=null&&((f=c==="key"&&u.key!=null?u.key.toLowerCase():c==="which"?d===91&&u.which===93?91:u.which:u[c])!=null||d!==!1)&&f!==d)return!1}return!0}(l,a)})};return n==null?o:o(n)}function Ofe(e){return e=qI(e),Ax[e]||e.toUpperCase().charCodeAt(0)}function qI(e){return e=e.toLowerCase(),e=GI[e]||e}var Ife=KI,Vx=function(e,t){return KI(e,{byKey:!0},t)},Ffe=/^\s+|\s+$/g,Rfe=/^[-+]0x[0-9a-f]+$/i,Lfe=/^0b[01]+$/i,Mfe=/^0o[0-7]+$/i,jfe=parseInt,zfe=typeof Et=="object"&&Et&&Et.Object===Object&&Et,Hfe=typeof self=="object"&&self&&self.Object===Object&&self,Ufe=zfe||Hfe||Function("return this")(),Wfe=Object.prototype.toString,Gfe=Math.max,Kfe=Math.min,Bx=function(){return Ufe.Date.now()};function _x(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function YI(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Wfe.call(r)=="[object Symbol]"}(e))return NaN;if(_x(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_x(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ffe,"");var n=Lfe.test(e);return n||Mfe.test(e)?jfe(e.slice(2),n?2:8):Rfe.test(e)?NaN:+e}var Nc,XI=function(e,t,n){var r,o,a,l,s,u,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError("Expected a function");function h(w){var S=r,C=o;return r=o=void 0,c=w,l=e.apply(C,S)}function p(w){return c=w,s=setTimeout(v,t),d?h(w):l}function y(w){var S=w-u;return u===void 0||S>=t||S<0||f&&w-c>=a}function v(){var w=Bx();if(y(w))return b(w);s=setTimeout(v,function(S){var C=t-(S-u);return f?Kfe(C,a-(S-c)):C}(w))}function b(w){return s=void 0,g&&r?h(w):(r=o=void 0,l)}function m(){var w=Bx(),S=y(w);if(r=arguments,o=this,u=w,S){if(s===void 0)return p(u);if(f)return s=setTimeout(v,t),h(u)}return s===void 0&&(s=setTimeout(v,t)),l}return t=YI(t)||0,_x(n)&&(d=!!n.leading,a=(f="maxWait"in n)?Gfe(YI(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),m.cancel=function(){s!==void 0&&clearTimeout(s),c=0,r=u=o=s=void 0},m.flush=function(){return s===void 0?l:b(Bx())},m},JI=gs(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",l="[object Date]",s="[object Function]",u="[object GeneratorFunction]",c="[object Map]",d="[object Number]",f="[object Object]",g="[object Promise]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object Symbol]",b="[object WeakMap]",m="[object ArrayBuffer]",w="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",V="[object Uint16Array]",D="[object Uint32Array]",P=/\w*$/,O=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,H={};H[o]=H["[object Array]"]=H[m]=H[w]=H[a]=H[l]=H[S]=H[C]=H[x]=H[k]=H[E]=H[c]=H[d]=H[f]=H[h]=H[p]=H[y]=H[v]=H[A]=H[N]=H[V]=H[D]=!0,H["[object Error]"]=H[s]=H[b]=!1;var J=typeof Et=="object"&&Et&&Et.Object===Object&&Et,j=typeof self=="object"&&self&&self.Object===Object&&self,z=J||j||Function("return this")(),L=t&&!t.nodeType&&t,_=L&&e&&!e.nodeType&&e,T=_&&_.exports===L;function I(K,ae){return K.set(ae[0],ae[1]),K}function U(K,ae){return K.add(ae),K}function $(K,ae,be,De){var ot=-1,zt=K?K.length:0;for(De;++ot<zt;)be=ae(be,K[ot],ot,K);return be}function W(K){var ae=!1;if(K!=null&&typeof K.toString!="function")try{ae=!!(K+"")}catch{}return ae}function Z(K){var ae=-1,be=Array(K.size);return K.forEach(function(De,ot){be[++ae]=[ot,De]}),be}function ne(K,ae){return function(be){return K(ae(be))}}function me(K){var ae=-1,be=Array(K.size);return K.forEach(function(De){be[++ae]=De}),be}var de=Array.prototype,G=Function.prototype,se=Object.prototype,ee=z["__core-js_shared__"],oe=function(){var K=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),ue=G.toString,we=se.hasOwnProperty,Ee=se.toString,Ae=RegExp("^"+ue.call(we).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=T?z.Buffer:void 0,Be=z.Symbol,Le=z.Uint8Array,vt=ne(Object.getPrototypeOf,Object),_n=Object.create,br=se.propertyIsEnumerable,qo=de.splice,bi=Object.getOwnPropertySymbols,Yo=Oe?Oe.isBuffer:void 0,Oa=ne(Object.keys,Object),wi=Ia(z,"DataView"),lr=Ia(z,"Map"),sr=Ia(z,"Promise"),ur=Ia(z,"Set"),wr=Ia(z,"WeakMap"),Hn=Ia(Object,"create"),xo=Ra(wi),Bp=Ra(lr),ql=Ra(sr),Si=Ra(ur),af=Ra(wr),zu=Be?Be.prototype:void 0,lf=zu?zu.valueOf:void 0;function Xo(K){var ae=-1,be=K?K.length:0;for(this.clear();++ae<be;){var De=K[ae];this.set(De[0],De[1])}}function Eo(K){var ae=-1,be=K?K.length:0;for(this.clear();++ae<be;){var De=K[ae];this.set(De[0],De[1])}}function Ci(K){var ae=-1,be=K?K.length:0;for(this.clear();++ae<be;){var De=K[ae];this.set(De[0],De[1])}}function Jo(K){this.__data__=new Eo(K)}function Yl(K,ae){var be=q(K)||function(_t){return function(ct){return function(Tn){return!!Tn&&typeof Tn=="object"}(ct)&&te(ct)}(_t)&&we.call(_t,"callee")&&(!br.call(_t,"callee")||Ee.call(_t)==o)}(K)?function(_t,ct){for(var Tn=-1,cr=Array(_t);++Tn<_t;)cr[Tn]=ct(Tn);return cr}(K.length,String):[],De=be.length,ot=!!De;for(var zt in K)!we.call(K,zt)||ot&&(zt=="length"||T2(zt,De))||be.push(zt);return be}function B2(K,ae,be){var De=K[ae];we.call(K,ae)&&P2(De,be)&&(be!==void 0||ae in K)||(K[ae]=be)}function eo(K,ae){for(var be=K.length;be--;)if(P2(K[be][0],ae))return be;return-1}function _p(K,ae,be,De,ot,zt,_t){var ct;if(De&&(ct=zt?De(K,ot,zt,_t):De(K)),ct!==void 0)return ct;if(!bt(K))return K;var Tn=q(K);if(Tn){if(ct=function(Me){var mt=Me.length,hn=Me.constructor(mt);return mt&&typeof Me[0]=="string"&&we.call(Me,"index")&&(hn.index=Me.index,hn.input=Me.input),hn}(K),!ae)return function(Me,mt){var hn=-1,rt=Me.length;for(mt||(mt=Array(rt));++hn<rt;)mt[hn]=Me[hn];return mt}(K,ct)}else{var cr=Fa(K),Hu=cr==s||cr==u;if(fe(K))return function(Me,mt){if(mt)return Me.slice();var hn=new Me.constructor(Me.length);return Me.copy(hn),hn}(K,ae);if(cr==f||cr==o||Hu&&!zt){if(W(K))return zt?K:{};if(ct=function(Me){return typeof Me.constructor!="function"||Xl(Me)?{}:(mt=vt(Me),bt(mt)?_n(mt):{});var mt}(Hu?{}:K),!ae)return function(Me,mt){return _2(Me,Tp(Me),mt)}(K,function(Me,mt){return Me&&_2(mt,et(mt),Me)}(ct,K))}else{if(!H[cr])return zt?K:{};ct=function(Me,mt,hn,rt){var dt=Me.constructor;switch(mt){case m:return sf(Me);case a:case l:return new dt(+Me);case w:return function(ft,nn){var Sr=nn?sf(ft.buffer):ft.buffer;return new ft.constructor(Sr,ft.byteOffset,ft.byteLength)}(Me,rt);case S:case C:case x:case k:case E:case A:case N:case V:case D:return function(ft,nn){var Sr=nn?sf(ft.buffer):ft.buffer;return new ft.constructor(Sr,ft.byteOffset,ft.length)}(Me,rt);case c:return function(ft,nn,Sr){return $(nn?Sr(Z(ft),!0):Z(ft),I,new ft.constructor)}(Me,rt,hn);case d:case y:return new dt(Me);case h:return function(ft){var nn=new ft.constructor(ft.source,P.exec(ft));return nn.lastIndex=ft.lastIndex,nn}(Me);case p:return function(ft,nn,Sr){return $(nn?Sr(me(ft),!0):me(ft),U,new ft.constructor)}(Me,rt,hn);case v:return function(ft){return lf?Object(lf.call(ft)):{}}(Me)}}(K,cr,_p,ae)}}_t||(_t=new Jo);var Ei=_t.get(K);if(Ei)return Ei;if(_t.set(K,ct),!Tn)var Jl=be?function(Me){return function(mt,hn,rt){var dt=hn(mt);return q(mt)?dt:function(ft,nn){for(var Sr=-1,Nr=nn.length,Zo=ft.length;++Sr<Nr;)ft[Zo+Sr]=nn[Sr];return ft}(dt,rt(mt))}(Me,et,Tp)}(K):et(K);return function(Me,mt){for(var hn=-1,rt=Me?Me.length:0;++hn<rt&&mt(Me[hn],hn,Me)!==!1;);}(Jl||K,function(Me,mt){Jl&&(Me=K[mt=Me]),B2(ct,mt,_p(Me,ae,be,De,mt,K,_t))}),ct}function ki(K){return!(!bt(K)||function(ae){return!!oe&&oe in ae}(K))&&(Ne(K)||W(K)?Ae:O).test(Ra(K))}function sf(K){var ae=new K.constructor(K.byteLength);return new Le(ae).set(new Le(K)),ae}function _2(K,ae,be,De){be||(be={});for(var ot=-1,zt=ae.length;++ot<zt;){var _t=ae[ot],ct=void 0;B2(be,_t,ct===void 0?K[_t]:ct)}return be}function xi(K,ae){var be,De,ot=K.__data__;return((De=typeof(be=ae))=="string"||De=="number"||De=="symbol"||De=="boolean"?be!=="__proto__":be===null)?ot[typeof ae=="string"?"string":"hash"]:ot.map}function Ia(K,ae){var be=function(De,ot){return De==null?void 0:De[ot]}(K,ae);return ki(be)?be:void 0}Xo.prototype.clear=function(){this.__data__=Hn?Hn(null):{}},Xo.prototype.delete=function(K){return this.has(K)&&delete this.__data__[K]},Xo.prototype.get=function(K){var ae=this.__data__;if(Hn){var be=ae[K];return be===n?void 0:be}return we.call(ae,K)?ae[K]:void 0},Xo.prototype.has=function(K){var ae=this.__data__;return Hn?ae[K]!==void 0:we.call(ae,K)},Xo.prototype.set=function(K,ae){return this.__data__[K]=Hn&&ae===void 0?n:ae,this},Eo.prototype.clear=function(){this.__data__=[]},Eo.prototype.delete=function(K){var ae=this.__data__,be=eo(ae,K);return!(be<0)&&(be==ae.length-1?ae.pop():qo.call(ae,be,1),!0)},Eo.prototype.get=function(K){var ae=this.__data__,be=eo(ae,K);return be<0?void 0:ae[be][1]},Eo.prototype.has=function(K){return eo(this.__data__,K)>-1},Eo.prototype.set=function(K,ae){var be=this.__data__,De=eo(be,K);return De<0?be.push([K,ae]):be[De][1]=ae,this},Ci.prototype.clear=function(){this.__data__={hash:new Xo,map:new(lr||Eo),string:new Xo}},Ci.prototype.delete=function(K){return xi(this,K).delete(K)},Ci.prototype.get=function(K){return xi(this,K).get(K)},Ci.prototype.has=function(K){return xi(this,K).has(K)},Ci.prototype.set=function(K,ae){return xi(this,K).set(K,ae),this},Jo.prototype.clear=function(){this.__data__=new Eo},Jo.prototype.delete=function(K){return this.__data__.delete(K)},Jo.prototype.get=function(K){return this.__data__.get(K)},Jo.prototype.has=function(K){return this.__data__.has(K)},Jo.prototype.set=function(K,ae){var be=this.__data__;if(be instanceof Eo){var De=be.__data__;if(!lr||De.length<199)return De.push([K,ae]),this;be=this.__data__=new Ci(De)}return be.set(K,ae),this};var Tp=bi?ne(bi,Object):function(){return[]},Fa=function(K){return Ee.call(K)};function T2(K,ae){return!!(ae=ae??r)&&(typeof K=="number"||F.test(K))&&K>-1&&K%1==0&&K<ae}function Xl(K){var ae=K&&K.constructor;return K===(typeof ae=="function"&&ae.prototype||se)}function Ra(K){if(K!=null){try{return ue.call(K)}catch{}try{return K+""}catch{}}return""}function P2(K,ae){return K===ae||K!=K&&ae!=ae}(wi&&Fa(new wi(new ArrayBuffer(1)))!=w||lr&&Fa(new lr)!=c||sr&&Fa(sr.resolve())!=g||ur&&Fa(new ur)!=p||wr&&Fa(new wr)!=b)&&(Fa=function(K){var ae=Ee.call(K),be=ae==f?K.constructor:void 0,De=be?Ra(be):void 0;if(De)switch(De){case xo:return w;case Bp:return c;case ql:return g;case Si:return p;case af:return b}return ae});var q=Array.isArray;function te(K){return K!=null&&function(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=r}(K.length)&&!Ne(K)}var fe=Yo||function(){return!1};function Ne(K){var ae=bt(K)?Ee.call(K):"";return ae==s||ae==u}function bt(K){var ae=typeof K;return!!K&&(ae=="object"||ae=="function")}function et(K){return te(K)?Yl(K):function(ae){if(!Xl(ae))return Oa(ae);var be=[];for(var De in Object(ae))we.call(ae,De)&&De!="constructor"&&be.push(De);return be}(K)}e.exports=function(K){return _p(K,!0,!0)}});function ZI(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qfe=0;function Yfe(e){return"__private_"+qfe+++"_"+e}function Xfe(e,t,n){const r=[];return e.forEach(o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach((a,l,s)=>{a!==""&&r.push(a),l<s.length-1&&r.push(n)})),r}/**
32
32
  * Takes a string with placeholder variables like `%{smart_count} file selected`
33
33
  * and replaces it with values from options `{smart_count: 5}`
34
34
  *
@@ -38,19 +38,19 @@ hour-range: ${JSON.stringify(this.hourRange)}`);return}if(!e){this.setManualHour
38
38
  * @param {string} phrase that needs interpolation, with placeholders
39
39
  * @param {object} options with values that will be used to replace placeholders
40
40
  * @returns {any[]} interpolated
41
- */function QI(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=Yfe(r,new RegExp(`%\\{${o}\\}`,"g"),a)}return r}var $I=(Nc=qfe("apply"),class{constructor(e){Object.defineProperty(this,Nc,{value:Xfe}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(ZI(this,Nc)[Nc],this):ZI(this,Nc)[Nc](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return QI(n[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 QI(n,t)}});function Xfe(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var e7=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,a,l,s,u){var c=function(d){for(var f=t[d]?t[d]:[],g=d.indexOf(":"),h=g===-1?[d]:[d.substring(0,g),d.substring(g+1)],p=Object.keys(t),y=0,v=p.length;y<v;y++){var b=p[y];if(b==="*"&&(f=f.concat(t[b])),h.length===2&&h[0]===b){f=f.concat(t[b]);break}}return f}(n);c.length&&function(d,f,g){for(var h=0,p=f.length;h<p&&f[h];h++)f[h].event=d,f[h].apply(f[h],g)}(n,c,[r,o,a,l,s,u])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.off=function(n,r){var o=[];if(n&&r)for(var a=this._fns[n],l=0,s=a?a.length:0;l<s;l++)a[l]!==r&&o.push(a[l]);o.length?this._fns[n]=o:delete this._fns[n]},e},Jfe={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}},Tx=function(e){if(typeof e!="number"||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 t7(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t7.prototype.match=function(e){var t,n,r=!0,o=this.parts,a=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<a;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var l in r={},e)this.match(l)&&(r[l]=e[l]);return r};var Zfe=/[\/\+\.]/,Qfe=function(e,t){function n(r){var o=function(a,l,s){var u=new t7(a,s||/[\/\.]/);return l!==void 0?u.match(l):u}(r,e,Zfe);return o&&o.length>=2}return t?n(t.split(";")[0]):n},$fe=0;function ehe(e){return"__private_"+$fe+++"_"+e}var Px=ehe("publish");class n7{constructor(){Object.defineProperty(this,Px,{value:the}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,Px)[Px](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function the(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}n7.VERSION="2.0.3";var r7=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},o7={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 a7(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+t}var nhe=function(e){if(e==null&&(e=typeof navigator<"u"?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||r===15&&o<15063||r>18||r===18&&o>=18218};function Nx(e){return e<10?`0${e}`:e.toString()}var Fy=function(){const e=new Date;return`${Nx(e.getHours())}:${Nx(e.getMinutes())}:${Nx(e.getSeconds())}`},i7={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] [${Fy()}]`,...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] [${Fy()}]`,...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] [${Fy()}]`,...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] [${Fy()}]`,...t)}}},rhe={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}"}}},l7=Jfe;let s7,u7;function Te(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ohe=0;function mn(e){return"__private_"+ohe+++"_"+e}const{nanoid:ahe}=l7,{justErrorsLogger:ihe,debugLogger:lhe}=i7;class fa extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class she extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Yn=mn("plugins"),wh=mn("storeUnsubscribe"),ei=mn("emitter"),Os=mn("preProcessors"),Is=mn("uploaders"),ti=mn("postProcessors"),Sh=mn("checkRestrictions"),Ox=mn("checkMinNumberOfFiles"),Ch=mn("checkRequiredMetaFieldsOnFile"),Ix=mn("checkRequiredMetaFields"),Dn=mn("showOrLogErrorAndThrow"),kh=mn("assertNewUploadAllowed"),xh=mn("checkAndCreateFileStateObject"),Eh=mn("startIfAutoProceed"),Fx=mn("addListeners"),Io=mn("updateOnlineStatus"),ni=mn("createUpload"),Rx=mn("getUpload"),Fs=mn("removeUpload"),ri=mn("runUpload");s7=Symbol.for("uppy test: getPlugins"),u7=Symbol.for("uppy test: createUpload");class c7{constructor(t){Object.defineProperty(this,ri,{value:She}),Object.defineProperty(this,Fs,{value:whe}),Object.defineProperty(this,Rx,{value:bhe}),Object.defineProperty(this,ni,{value:yhe}),Object.defineProperty(this,Fx,{value:vhe}),Object.defineProperty(this,Eh,{value:phe}),Object.defineProperty(this,xh,{value:mhe}),Object.defineProperty(this,kh,{value:ghe}),Object.defineProperty(this,Dn,{value:hhe}),Object.defineProperty(this,Ix,{value:fhe}),Object.defineProperty(this,Ch,{value:dhe}),Object.defineProperty(this,Ox,{value:che}),Object.defineProperty(this,Sh,{value:uhe}),Object.defineProperty(this,Yn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,wh,{writable:!0,value:void 0}),Object.defineProperty(this,ei,{writable:!0,value:e7()}),Object.defineProperty(this,Os,{writable:!0,value:new Set}),Object.defineProperty(this,Is,{writable:!0,value:new Set}),Object.defineProperty(this,ti,{writable:!0,value:new Set}),Object.defineProperty(this,Io,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=rhe;const n={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:r=>r,onBeforeUpload:r=>r,store:new n7,logger:ihe,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=lhe),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ns(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:nhe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Te(this,wh)[wh]=this.store.subscribe((r,o,a)=>{this.emit("state-update",r,o,a),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Te(this,Fx)[Fx]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Te(this,ei)[ei].emit(t,...r)}on(t,n){return Te(this,ei)[ei].on(t,n),this}once(t,n){return Te(this,ei)[ei].once(t,n),this}off(t,n){return Te(this,ei)[ei].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new $I([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const a={...n[o]};a.progress={...a.progress,...t},r[o]=a}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Te(this,Os)[Os].add(t)}removePreProcessor(t){return Te(this,Os)[Os].delete(t)}addPostProcessor(t){Te(this,ti)[ti].add(t)}removePostProcessor(t){return Te(this,ti)[ti].delete(t)}addUploader(t){Te(this,Is)[Is].add(t)}removeUploader(t){return Te(this,Is)[Is].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),a=o.filter(p=>{let{progress:y}=p;return!y.uploadComplete&&y.uploadStarted}),l=o.filter(p=>!p.progress.uploadStarted),s=o.filter(p=>p.progress.uploadStarted||p.progress.preprocess||p.progress.postprocess),u=o.filter(p=>p.progress.uploadStarted),c=o.filter(p=>p.isPaused),d=o.filter(p=>p.progress.uploadComplete),f=o.filter(p=>p.error),g=a.filter(p=>!p.isPaused),h=o.filter(p=>p.progress.preprocess||p.progress.postprocess);return{newFiles:l,startedFiles:s,uploadStartedFiles:u,pausedFiles:c,completeFiles:d,erroredFiles:f,inProgressFiles:a,inProgressNotPausedFiles:g,processingFiles:h,isUploadStarted:u.length>0,isAllComplete:n===100&&d.length===o.length&&h.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:a.length!==0&&c.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:o.some(p=>p.isGhost)}}validateRestrictions(t,n){try{return Te(this,Sh)[Sh](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){Te(this,kh)[kh](t);const{files:n}=this.getState();let r=Te(this,xh)[xh](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),Te(this,Eh)[Eh](),r.id}addFiles(t){Te(this,kh)[kh]();const n={...this.getState().files},r=[],o=[];for(let a=0;a<t.length;a++)try{let l=Te(this,xh)[xh](n,t[a]);n[l.id]&&n[l.id].isGhost&&(l={...n[l.id],data:t[a].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${l.name}, ${l.id}`)),n[l.id]=l,r.push(l)}catch(l){l.isRestriction||o.push(l)}if(this.setState({files:n}),r.forEach(a=>{this.emit("file-added",a)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(a=>{this.log(`Added file: ${r[a].name}
41
+ */function QI(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=Xfe(r,new RegExp(`%\\{${o}\\}`,"g"),a)}return r}var $I=(Nc=Yfe("apply"),class{constructor(e){Object.defineProperty(this,Nc,{value:Jfe}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(ZI(this,Nc)[Nc],this):ZI(this,Nc)[Nc](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return QI(n[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 QI(n,t)}});function Jfe(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var e7=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,a,l,s,u){var c=function(d){for(var f=t[d]?t[d]:[],g=d.indexOf(":"),h=g===-1?[d]:[d.substring(0,g),d.substring(g+1)],p=Object.keys(t),y=0,v=p.length;y<v;y++){var b=p[y];if(b==="*"&&(f=f.concat(t[b])),h.length===2&&h[0]===b){f=f.concat(t[b]);break}}return f}(n);c.length&&function(d,f,g){for(var h=0,p=f.length;h<p&&f[h];h++)f[h].event=d,f[h].apply(f[h],g)}(n,c,[r,o,a,l,s,u])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.off=function(n,r){var o=[];if(n&&r)for(var a=this._fns[n],l=0,s=a?a.length:0;l<s;l++)a[l]!==r&&o.push(a[l]);o.length?this._fns[n]=o:delete this._fns[n]},e},Zfe={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}},Tx=function(e){if(typeof e!="number"||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 t7(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t7.prototype.match=function(e){var t,n,r=!0,o=this.parts,a=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<a;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var l in r={},e)this.match(l)&&(r[l]=e[l]);return r};var Qfe=/[\/\+\.]/,$fe=function(e,t){function n(r){var o=function(a,l,s){var u=new t7(a,s||/[\/\.]/);return l!==void 0?u.match(l):u}(r,e,Qfe);return o&&o.length>=2}return t?n(t.split(";")[0]):n},ehe=0;function the(e){return"__private_"+ehe+++"_"+e}var Px=the("publish");class n7{constructor(){Object.defineProperty(this,Px,{value:nhe}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,Px)[Px](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function nhe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}n7.VERSION="2.0.3";var r7=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},o7={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 a7(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+t}var rhe=function(e){if(e==null&&(e=typeof navigator<"u"?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||r===15&&o<15063||r>18||r===18&&o>=18218};function Nx(e){return e<10?`0${e}`:e.toString()}var Fy=function(){const e=new Date;return`${Nx(e.getHours())}:${Nx(e.getMinutes())}:${Nx(e.getSeconds())}`},i7={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] [${Fy()}]`,...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] [${Fy()}]`,...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] [${Fy()}]`,...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] [${Fy()}]`,...t)}}},ohe={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}"}}},l7=Zfe;let s7,u7;function Te(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ahe=0;function mn(e){return"__private_"+ahe+++"_"+e}const{nanoid:ihe}=l7,{justErrorsLogger:lhe,debugLogger:she}=i7;class fa extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class uhe extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Yn=mn("plugins"),wh=mn("storeUnsubscribe"),ei=mn("emitter"),Os=mn("preProcessors"),Is=mn("uploaders"),ti=mn("postProcessors"),Sh=mn("checkRestrictions"),Ox=mn("checkMinNumberOfFiles"),Ch=mn("checkRequiredMetaFieldsOnFile"),Ix=mn("checkRequiredMetaFields"),Dn=mn("showOrLogErrorAndThrow"),kh=mn("assertNewUploadAllowed"),xh=mn("checkAndCreateFileStateObject"),Eh=mn("startIfAutoProceed"),Fx=mn("addListeners"),Io=mn("updateOnlineStatus"),ni=mn("createUpload"),Rx=mn("getUpload"),Fs=mn("removeUpload"),ri=mn("runUpload");s7=Symbol.for("uppy test: getPlugins"),u7=Symbol.for("uppy test: createUpload");class c7{constructor(t){Object.defineProperty(this,ri,{value:Che}),Object.defineProperty(this,Fs,{value:She}),Object.defineProperty(this,Rx,{value:whe}),Object.defineProperty(this,ni,{value:bhe}),Object.defineProperty(this,Fx,{value:yhe}),Object.defineProperty(this,Eh,{value:vhe}),Object.defineProperty(this,xh,{value:phe}),Object.defineProperty(this,kh,{value:mhe}),Object.defineProperty(this,Dn,{value:ghe}),Object.defineProperty(this,Ix,{value:hhe}),Object.defineProperty(this,Ch,{value:fhe}),Object.defineProperty(this,Ox,{value:dhe}),Object.defineProperty(this,Sh,{value:che}),Object.defineProperty(this,Yn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,wh,{writable:!0,value:void 0}),Object.defineProperty(this,ei,{writable:!0,value:e7()}),Object.defineProperty(this,Os,{writable:!0,value:new Set}),Object.defineProperty(this,Is,{writable:!0,value:new Set}),Object.defineProperty(this,ti,{writable:!0,value:new Set}),Object.defineProperty(this,Io,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=ohe;const n={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:r=>r,onBeforeUpload:r=>r,store:new n7,logger:lhe,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=she),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ns(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:rhe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Te(this,wh)[wh]=this.store.subscribe((r,o,a)=>{this.emit("state-update",r,o,a),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Te(this,Fx)[Fx]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Te(this,ei)[ei].emit(t,...r)}on(t,n){return Te(this,ei)[ei].on(t,n),this}once(t,n){return Te(this,ei)[ei].once(t,n),this}off(t,n){return Te(this,ei)[ei].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new $I([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const a={...n[o]};a.progress={...a.progress,...t},r[o]=a}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Te(this,Os)[Os].add(t)}removePreProcessor(t){return Te(this,Os)[Os].delete(t)}addPostProcessor(t){Te(this,ti)[ti].add(t)}removePostProcessor(t){return Te(this,ti)[ti].delete(t)}addUploader(t){Te(this,Is)[Is].add(t)}removeUploader(t){return Te(this,Is)[Is].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),a=o.filter(p=>{let{progress:y}=p;return!y.uploadComplete&&y.uploadStarted}),l=o.filter(p=>!p.progress.uploadStarted),s=o.filter(p=>p.progress.uploadStarted||p.progress.preprocess||p.progress.postprocess),u=o.filter(p=>p.progress.uploadStarted),c=o.filter(p=>p.isPaused),d=o.filter(p=>p.progress.uploadComplete),f=o.filter(p=>p.error),g=a.filter(p=>!p.isPaused),h=o.filter(p=>p.progress.preprocess||p.progress.postprocess);return{newFiles:l,startedFiles:s,uploadStartedFiles:u,pausedFiles:c,completeFiles:d,erroredFiles:f,inProgressFiles:a,inProgressNotPausedFiles:g,processingFiles:h,isUploadStarted:u.length>0,isAllComplete:n===100&&d.length===o.length&&h.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:a.length!==0&&c.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:o.some(p=>p.isGhost)}}validateRestrictions(t,n){try{return Te(this,Sh)[Sh](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){Te(this,kh)[kh](t);const{files:n}=this.getState();let r=Te(this,xh)[xh](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),Te(this,Eh)[Eh](),r.id}addFiles(t){Te(this,kh)[kh]();const n={...this.getState().files},r=[],o=[];for(let a=0;a<t.length;a++)try{let l=Te(this,xh)[xh](n,t[a]);n[l.id]&&n[l.id].isGhost&&(l={...n[l.id],data:t[a].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${l.name}, ${l.id}`)),n[l.id]=l,r.push(l)}catch(l){l.isRestriction||o.push(l)}if(this.setState({files:n}),r.forEach(a=>{this.emit("file-added",a)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(a=>{this.log(`Added file: ${r[a].name}
42
42
  id: ${r[a].id}
43
43
  type: ${r[a].type}`)}),r.length>0&&Te(this,Eh)[Eh](),o.length>0){let a=`Multiple errors occurred while adding files:
44
44
  `;if(o.forEach(l=>{a+=`
45
45
  * ${l.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:a},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,a);{const l=new Error(a);throw l.errors=o,l}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),a={...r},l={...o},s=Object.create(null);function u(f){return s[f]===void 0}t.forEach(f=>{r[f]&&(s[f]=r[f],delete a[f])}),Object.keys(l).forEach(f=>{const g=o[f].fileIDs.filter(u);g.length!==0?l[f]={...o[f],fileIDs:g}:delete l[f]});const c={currentUploads:l,files:a};Object.keys(a).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();const d=Object.keys(s);d.forEach(f=>{this.emit("file-removed",s[f],n)}),d.length>5?this.log(`Removed ${d.length} files`):this.log(`Removed files: ${d.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const a={...t[o],isPaused:!1,error:null};t[o]=a}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Te(this,ni)[ni](n,{forceAllowNewUpload:!0});return Te(this,ri)[ri](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=Te(this,ni)[ni]([t],{forceAllowNewUpload:!0});return Te(this,ri)[ri](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(u=>u.progress.uploadStarted||u.progress.preprocess||u.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(u=>u.progress.bytesTotal!=null),r=t.filter(u=>u.progress.bytesTotal==null);if(n.length===0){const u=100*t.length,c=r.reduce((f,g)=>f+g.progress.percentage,0),d=Math.round(c/u*100);return void this.setState({totalProgress:d})}let o=n.reduce((u,c)=>u+c.progress.bytesTotal,0);const a=o/n.length;o+=a*r.length;let l=0;n.forEach(u=>{l+=u.progress.bytesUploaded}),r.forEach(u=>{l+=a*(u.progress.percentage||0)/100});let s=o===0?0:Math.round(l/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||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(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const a=this.getPlugin(o);if(a){const l=`Already found a plugin named '${a.id}'. Tried to use: '${o}'.
46
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(l)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Te(this,Yn)[Yn]?Te(this,Yn)[Yn][r.type].push(r):Te(this,Yn)[Yn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Te(this,Yn)[Yn])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[s7](t){return Te(this,Yn)[Yn][t]}iteratePlugins(t){Object.values(Te(this,Yn)[Yn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Te(this,Yn)[Yn][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Te(this,wh)[wh](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Te(this,Io)[Io]),window.removeEventListener("offline",Te(this,Io)[Io]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Te(this,ri)[ri](t):(Te(this,Fs)[Fs](t),Promise.reject(new Error("Nonexistent upload")))}[u7](){return Te(this,ni)[ni](...arguments)}addResultData(t,n){if(!Te(this,Rx)[Rx](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Te(this,Yn)[Yn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{Te(this,Ox)[Ox](n),Te(this,Ix)[Ix](n)}).catch(o=>{Te(this,Dn)[Dn](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(u=>u.fileIDs),l=[];Object.keys(n).forEach(u=>{const c=this.getFile(u);c.progress.uploadStarted||a.indexOf(u)!==-1||l.push(c.id)});const s=Te(this,ni)[ni](l);return Te(this,ri)[ri](s)}).catch(o=>{Te(this,Dn)[Dn](o,{showInformer:!1})}))}}function uhe(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:a,allowedFileTypes:l}=this.opts.restrictions;if(a&&t.length+1>a)throw new fa(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(l&&!l.some(s=>s.indexOf("/")>-1?!!e.type&&Qfe(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=l.join(", ");throw new fa(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach(u=>{s+=u.size}),s>o)throw new fa(this.i18n("exceedsSize",{size:Tx(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new fa(this.i18n("exceedsSize",{size:Tx(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new fa(this.i18n("inferiorSize",{size:Tx(r)}))}function che(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new fa(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function dhe(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===""){const l=new fa(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(l),o.push(t[a]),Te(this,Dn)[Dn](l,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function fhe(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return Te(this,Ch)[Ch](r)});if(t.length)throw new she(t,`${this.i18n("missingRequiredMetaField")}`)}function hhe(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const a=typeof e=="object"?e.message:e,l=typeof e=="object"&&e.details?e.details:"";let s=a;if(l&&(s+=` ${l}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:a,details:l},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function ghe(e){const{allowNewUpload:t}=this.getState();t===!1&&Te(this,Dn)[Dn](new fa(this.i18n("noMoreFilesAllowed")),{file:e})}function mhe(e,t){const n=function(f){var g;if(f.type)return f.type;const h=f.name?(g=r7(f.name).extension)==null?void 0:g.toLowerCase():null;return h&&h in o7?o7[h]:"application/octet-stream"}(t),r=function(f,g){return g.name?g.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,t),o=r7(r).extension,a=!!t.isRemote,l=function(f){let g="uppy";return typeof f.name=="string"&&(g+=`-${a7(f.name.toLowerCase())}`),f.type!==void 0&&(g+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(g+=`-${a7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(g+=`-${f.data.size}`),f.data.lastModified!==void 0&&(g+=`-${f.data.lastModified}`),g}({...t,type:n});if(this.checkIfFileAlreadyExists(l)){const f=new fa(this.i18n("noDuplicates",{fileName:r}));Te(this,Dn)[Dn](f,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:l,name:r,extension:o||"",meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:a,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(c,e);d===!1?Te(this,Dn)[Dn](new fa("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof d=="object"&&d!==null&&(c=d);try{const f=Object.keys(e).map(g=>e[g]);Te(this,Sh)[Sh](c,f)}catch(f){Te(this,Dn)[Dn](f,{file:c})}return c}function phe(){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 vhe(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),Te(this,Dn)[Dn](o,{throwErr:!1})}else Te(this,Dn)[Dn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:Te(this,ti)[ti].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&Te(this,Ch)[Ch](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Te(this,Io)[Io]),window.addEventListener("offline",Te(this,Io)[Io]),setTimeout(Te(this,Io)[Io],3e3))}function yhe(e,t){t===void 0&&(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 a=ahe();return this.emit("upload",{id:a,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[a]:{fileIDs:e,step:0,result:{}}}}),a}function bhe(e){const{currentUploads:t}=this.getState();return t[e]}function whe(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function She(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Te(this,Os)[Os],...Te(this,Is)[Is],...Te(this,ti)[ti]];try{for(let l=r;l<o.length&&n;l++){const s=o[l],u={...n,step:l};this.setState({currentUploads:{...t,[e]:u}}),await s(u.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(l){throw this.emit("error",l),Te(this,Fs)[Fs](e),l}if(n){n.fileIDs.forEach(c=>{const d=this.getFile(c);d&&d.progress.postprocess&&this.emit("postprocess-complete",d)});const l=n.fileIDs.map(c=>this.getFile(c)),s=l.filter(c=>!c.error),u=l.filter(c=>c.error);await this.addResultData(e,{successful:s,failed:u,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit("complete",a),Te(this,Fs)[Fs](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}c7.VERSION="2.1.3";var d7=c7,Che=gs(function(e,t){var n,r,o,a,l,s,u,c,d={},f=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(_,T){for(var I in T)_[I]=T[I];return _}function p(_){var T=_.parentNode;T&&T.removeChild(_)}function y(_,T,I){var U,$,W,Z={};for(W in T)W=="key"?U=T[W]:W=="ref"?$=T[W]:Z[W]=T[W];if(arguments.length>2&&(Z.children=arguments.length>3?n.call(arguments,2):I),typeof _=="function"&&_.defaultProps!=null)for(W in _.defaultProps)Z[W]===void 0&&(Z[W]=_.defaultProps[W]);return v(_,Z,U,$,null)}function v(_,T,I,U,$){var W={type:_,props:T,key:I,ref:U,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:$??++o};return $==null&&r.vnode!=null&&r.vnode(W),W}function b(_){return _.children}function m(_,T){this.props=_,this.context=T}function w(_,T){if(T==null)return _.__?w(_.__,_.__.__k.indexOf(_)+1):null;for(var I;T<_.__k.length;T++)if((I=_.__k[T])!=null&&I.__e!=null)return I.__e;return typeof _.type=="function"?w(_):null}function S(_){var T,I;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,T=0;T<_.__k.length;T++)if((I=_.__k[T])!=null&&I.__e!=null){_.__e=_.__c.base=I.__e;break}return S(_)}}function C(_){(!_.__d&&(_.__d=!0)&&l.push(_)&&!x.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||s)(x)}function x(){for(var _;x.__r=l.length;)_=l.sort(function(T,I){return T.__v.__b-I.__v.__b}),l=[],_.some(function(T){var I,U,$,W,Z,ne;T.__d&&(Z=(W=(I=T).__v).__e,(ne=I.__P)&&(U=[],($=h({},W)).__v=W.__v+1,O(ne,W,$,I.__n,ne.ownerSVGElement!==void 0,W.__h!=null?[Z]:null,U,Z??w(W),W.__h),F(U,W),W.__e!=Z&&S(W)))})}function k(_,T,I,U,$,W,Z,ne,me,de){var G,se,ee,oe,ue,we,Ee,Ae=U&&U.__k||f,Oe=Ae.length;for(I.__k=[],G=0;G<T.length;G++)if((oe=I.__k[G]=(oe=T[G])==null||typeof oe=="boolean"?null:typeof oe=="string"||typeof oe=="number"||typeof oe=="bigint"?v(null,oe,null,null,oe):Array.isArray(oe)?v(b,{children:oe},null,null,null):oe.__b>0?v(oe.type,oe.props,oe.key,null,oe.__v):oe)!=null){if(oe.__=I,oe.__b=I.__b+1,(ee=Ae[G])===null||ee&&oe.key==ee.key&&oe.type===ee.type)Ae[G]=void 0;else for(se=0;se<Oe;se++){if((ee=Ae[se])&&oe.key==ee.key&&oe.type===ee.type){Ae[se]=void 0;break}ee=null}O(_,oe,ee=ee||d,$,W,Z,ne,me,de),ue=oe.__e,(se=oe.ref)&&ee.ref!=se&&(Ee||(Ee=[]),ee.ref&&Ee.push(ee.ref,null,oe),Ee.push(se,oe.__c||ue,oe)),ue!=null?(we==null&&(we=ue),typeof oe.type=="function"&&oe.__k===ee.__k?oe.__d=me=E(oe,me,_):me=A(_,oe,ee,Ae,ue,me),typeof I.type=="function"&&(I.__d=me)):me&&ee.__e==me&&me.parentNode!=_&&(me=w(ee))}for(I.__e=we,G=Oe;G--;)Ae[G]!=null&&(typeof I.type=="function"&&Ae[G].__e!=null&&Ae[G].__e==I.__d&&(I.__d=w(U,G+1)),j(Ae[G],Ae[G]));if(Ee)for(G=0;G<Ee.length;G++)J(Ee[G],Ee[++G],Ee[++G])}function E(_,T,I){for(var U,$=_.__k,W=0;$&&W<$.length;W++)(U=$[W])&&(U.__=_,T=typeof U.type=="function"?E(U,T,I):A(I,U,U,$,U.__e,T));return T}function A(_,T,I,U,$,W){var Z,ne,me;if(T.__d!==void 0)Z=T.__d,T.__d=void 0;else if(I==null||$!=W||$.parentNode==null)e:if(W==null||W.parentNode!==_)_.appendChild($),Z=null;else{for(ne=W,me=0;(ne=ne.nextSibling)&&me<U.length;me+=2)if(ne==$)break e;_.insertBefore($,W),Z=W}return Z!==void 0?Z:$.nextSibling}function N(_,T,I){T[0]==="-"?_.setProperty(T,I):_[T]=I==null?"":typeof I!="number"||g.test(T)?I:I+"px"}function V(_,T,I,U,$){var W;e:if(T==="style")if(typeof I=="string")_.style.cssText=I;else{if(typeof U=="string"&&(_.style.cssText=U=""),U)for(T in U)I&&T in I||N(_.style,T,"");if(I)for(T in I)U&&I[T]===U[T]||N(_.style,T,I[T])}else if(T[0]==="o"&&T[1]==="n")W=T!==(T=T.replace(/Capture$/,"")),T=T.toLowerCase()in _?T.toLowerCase().slice(2):T.slice(2),_.l||(_.l={}),_.l[T+W]=I,I?U||_.addEventListener(T,W?P:D,W):_.removeEventListener(T,W?P:D,W);else if(T!=="dangerouslySetInnerHTML"){if($)T=T.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(T!=="href"&&T!=="list"&&T!=="form"&&T!=="tabIndex"&&T!=="download"&&T in _)try{_[T]=I??"";break e}catch{}typeof I=="function"||(I!=null&&(I!==!1||T[0]==="a"&&T[1]==="r")?_.setAttribute(T,I):_.removeAttribute(T))}}function D(_){this.l[_.type+!1](r.event?r.event(_):_)}function P(_){this.l[_.type+!0](r.event?r.event(_):_)}function O(_,T,I,U,$,W,Z,ne,me){var de,G,se,ee,oe,ue,we,Ee,Ae,Oe,Be,Le=T.type;if(T.constructor!==void 0)return null;I.__h!=null&&(me=I.__h,ne=T.__e=I.__e,T.__h=null,W=[ne]),(de=r.__b)&&de(T);try{e:if(typeof Le=="function"){if(Ee=T.props,Ae=(de=Le.contextType)&&U[de.__c],Oe=de?Ae?Ae.props.value:de.__:U,I.__c?we=(G=T.__c=I.__c).__=G.__E:("prototype"in Le&&Le.prototype.render?T.__c=G=new Le(Ee,Oe):(T.__c=G=new m(Ee,Oe),G.constructor=Le,G.render=z),Ae&&Ae.sub(G),G.props=Ee,G.state||(G.state={}),G.context=Oe,G.__n=U,se=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),Le.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=h({},G.__s)),h(G.__s,Le.getDerivedStateFromProps(Ee,G.__s))),ee=G.props,oe=G.state,se)Le.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(Le.getDerivedStateFromProps==null&&Ee!==ee&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps(Ee,Oe),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate(Ee,G.__s,Oe)===!1||T.__v===I.__v){G.props=Ee,G.state=G.__s,T.__v!==I.__v&&(G.__d=!1),G.__v=T,T.__e=I.__e,T.__k=I.__k,T.__k.forEach(function(vt){vt&&(vt.__=T)}),G.__h.length&&Z.push(G);break e}G.componentWillUpdate!=null&&G.componentWillUpdate(Ee,G.__s,Oe),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(ee,oe,ue)})}G.context=Oe,G.props=Ee,G.state=G.__s,(de=r.__r)&&de(T),G.__d=!1,G.__v=T,G.__P=_,de=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&(U=h(h({},U),G.getChildContext())),se||G.getSnapshotBeforeUpdate==null||(ue=G.getSnapshotBeforeUpdate(ee,oe)),Be=de!=null&&de.type===b&&de.key==null?de.props.children:de,k(_,Array.isArray(Be)?Be:[Be],T,I,U,$,W,Z,ne,me),G.base=T.__e,T.__h=null,G.__h.length&&Z.push(G),we&&(G.__E=G.__=null),G.__e=!1}else W==null&&T.__v===I.__v?(T.__k=I.__k,T.__e=I.__e):T.__e=H(I.__e,T,I,U,$,W,Z,me);(de=r.diffed)&&de(T)}catch(vt){T.__v=null,(me||W!=null)&&(T.__e=ne,T.__h=!!me,W[W.indexOf(ne)]=null),r.__e(vt,T,I)}}function F(_,T){r.__c&&r.__c(T,_),_.some(function(I){try{_=I.__h,I.__h=[],_.some(function(U){U.call(I)})}catch(U){r.__e(U,I.__v)}})}function H(_,T,I,U,$,W,Z,ne){var me,de,G,se=I.props,ee=T.props,oe=T.type,ue=0;if(oe==="svg"&&($=!0),W!=null){for(;ue<W.length;ue++)if((me=W[ue])&&"setAttribute"in me==!!oe&&(oe?me.localName===oe:me.nodeType===3)){_=me,W[ue]=null;break}}if(_==null){if(oe===null)return document.createTextNode(ee);_=$?document.createElementNS("http://www.w3.org/2000/svg",oe):document.createElement(oe,ee.is&&ee),W=null,ne=!1}if(oe===null)se===ee||ne&&_.data===ee||(_.data=ee);else{if(W=W&&n.call(_.childNodes),de=(se=I.props||d).dangerouslySetInnerHTML,G=ee.dangerouslySetInnerHTML,!ne){if(W!=null)for(se={},ue=0;ue<_.attributes.length;ue++)se[_.attributes[ue].name]=_.attributes[ue].value;(G||de)&&(G&&(de&&G.__html==de.__html||G.__html===_.innerHTML)||(_.innerHTML=G&&G.__html||""))}if(function(we,Ee,Ae,Oe,Be){var Le;for(Le in Ae)Le==="children"||Le==="key"||Le in Ee||V(we,Le,null,Ae[Le],Oe);for(Le in Ee)Be&&typeof Ee[Le]!="function"||Le==="children"||Le==="key"||Le==="value"||Le==="checked"||Ae[Le]===Ee[Le]||V(we,Le,Ee[Le],Ae[Le],Oe)}(_,ee,se,$,ne),G)T.__k=[];else if(ue=T.props.children,k(_,Array.isArray(ue)?ue:[ue],T,I,U,$&&oe!=="foreignObject",W,Z,W?W[0]:I.__k&&w(I,0),ne),W!=null)for(ue=W.length;ue--;)W[ue]!=null&&p(W[ue]);ne||("value"in ee&&(ue=ee.value)!==void 0&&(ue!==se.value||ue!==_.value||oe==="progress"&&!ue)&&V(_,"value",ue,se.value,!1),"checked"in ee&&(ue=ee.checked)!==void 0&&ue!==_.checked&&V(_,"checked",ue,se.checked,!1))}return _}function J(_,T,I){try{typeof _=="function"?_(T):_.current=T}catch(U){r.__e(U,I)}}function j(_,T,I){var U,$;if(r.unmount&&r.unmount(_),(U=_.ref)&&(U.current&&U.current!==_.__e||J(U,null,T)),(U=_.__c)!=null){if(U.componentWillUnmount)try{U.componentWillUnmount()}catch(W){r.__e(W,T)}U.base=U.__P=null}if(U=_.__k)for($=0;$<U.length;$++)U[$]&&j(U[$],T,typeof _.type!="function");I||_.__e==null||p(_.__e),_.__e=_.__d=void 0}function z(_,T,I){return this.constructor(_,I)}function L(_,T,I){var U,$,W;r.__&&r.__(_,T),$=(U=typeof I=="function")?null:I&&I.__k||T.__k,W=[],O(T,_=(!U&&I||T).__k=y(b,null,[_]),$||d,d,T.ownerSVGElement!==void 0,!U&&I?[I]:$?null:T.firstChild?n.call(T.childNodes):null,W,!U&&I?I:$?$.__e:T.firstChild,U),F(W,_)}n=f.slice,r={__e:function(_,T){for(var I,U,$;T=T.__;)if((I=T.__c)&&!I.__)try{if((U=I.constructor)&&U.getDerivedStateFromError!=null&&(I.setState(U.getDerivedStateFromError(_)),$=I.__d),I.componentDidCatch!=null&&(I.componentDidCatch(_),$=I.__d),$)return I.__E=I}catch(W){_=W}throw _}},o=0,a=function(_){return _!=null&&_.constructor===void 0},m.prototype.setState=function(_,T){var I;I=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h({},this.state),typeof _=="function"&&(_=_(h({},I),this.props)),_&&h(I,_),_!=null&&this.__v&&(T&&this.__h.push(T),C(this))},m.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),C(this))},m.prototype.render=b,l=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,c=0,t.Component=m,t.Fragment=b,t.cloneElement=function(_,T,I){var U,$,W,Z=h({},_.props);for(W in T)W=="key"?U=T[W]:W=="ref"?$=T[W]:Z[W]=T[W];return arguments.length>2&&(Z.children=arguments.length>3?n.call(arguments,2):I),v(_.type,Z,U||_.key,$||_.ref,null)},t.createContext=function(_,T){var I={__c:T="__cC"+c++,__:_,Consumer:function(U,$){return U.children($)},Provider:function(U){var $,W;return this.getChildContext||($=[],(W={})[T]=this,this.getChildContext=function(){return W},this.shouldComponentUpdate=function(Z){this.props.value!==Z.value&&$.some(C)},this.sub=function(Z){$.push(Z);var ne=Z.componentWillUnmount;Z.componentWillUnmount=function(){$.splice($.indexOf(Z),1),ne&&ne.call(Z)}}),U.children}};return I.Provider.__=I.Consumer.contextType=I},t.createElement=y,t.createRef=function(){return{current:null}},t.h=y,t.hydrate=function _(T,I){L(T,I,_)},t.isValidElement=a,t.options=r,t.render=L,t.toChildArray=function _(T,I){return I=I||[],T==null||typeof T=="boolean"||(Array.isArray(T)?T.some(function(U){_(U,I)}):I.push(T)),I}}),khe=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Lx=class{constructor(e,t){t===void 0&&(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 $I([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 f7(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xhe=0;function Ehe(e){return"__private_"+xhe+++"_"+e}const{render:h7}=Che;var Dh=Ehe("updateUI");class Mx extends Lx{constructor(){super(...arguments),Object.defineProperty(this,Dh,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=khe(t);if(o){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return f7(this,Dh)[Dh]=function(u){let c=null,d=null;return function(){for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return d=g,c||(c=Promise.resolve().then(()=>(c=null,u(...d)))),c}}(u=>{this.uppy.getPlugin(this.id)&&(h7(this.render(u),s),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),h7(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,o.appendChild(s),this.onMount(),this.el}let a;if(typeof t=="object"&&t instanceof Mx)a=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins(u=>{if(u instanceof s)return a=u,!1})}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let l=`Invalid target option given to ${r}.`;throw l+=typeof t=="function"?" 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(l)}update(t){var n,r;this.el!=null&&((n=(r=f7(this,Dh))[Dh])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Dhe=Mx;const{debugLogger:Ahe}=i7;var Ah=d7,Vhe=d7,Bhe=Dhe,_he=Lx,The=Ahe;Ah.Uppy=Vhe,Ah.UIPlugin=Bhe,Ah.BasePlugin=_he,Ah.debugLogger=The;class Phe extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var jx=Phe,zx=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new jx(e)})};class Nhe extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Ry,Gi,ha,Ki,g7,Ohe=Nhe;function ga(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ihe=0;function Hx(e){return"__private_"+Ihe+++"_"+e}async function Ux(e){if(e.status===401)throw new Ohe;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var m7=(Gi=Hx("getPostResponseFunc"),ha=Hx("getUrl"),Ki=Hx("errorHandler"),g7=Ry=class WY{constructor(t,n){Object.defineProperty(this,Ki,{value:Rhe}),Object.defineProperty(this,ha,{value:Fhe}),Object.defineProperty(this,Gi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...WY.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ga(this,ha)[ha](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(a=>{r.includes(a.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${a}`),delete o[a])}),o})}get(t,n){return this.preflightAndHeaders(t).then(r=>zx(ga(this,ha)[ha](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(ga(this,Gi)[Gi](n)).then(Ux).catch(ga(this,Ki)[Ki]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then(a=>zx(ga(this,ha)[ha](t),{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(ga(this,Gi)[Gi](r)).then(Ux).catch(ga(this,Ki)[Ki](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then(a=>zx(`${this.hostname}/${t}`,{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(ga(this,Gi)[Gi](r)).then(Ux).catch(ga(this,Ki)[Ki](o,t))}},Ry.VERSION="2.0.4",Ry.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Ry.VERSION}`},g7);function Fhe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Rhe(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${ga(this,ha)[ha](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var Lhe={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()})},ma,qi,io,er,Ly;let p7,v7;function pn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mhe=0;function Vh(e){return"__private_"+Mhe+++"_"+e}var jhe=(ma=Vh("queued"),qi=Vh("emitter"),io=Vh("isOpen"),er=Vh("socket"),Ly=Vh("handleMessage"),p7=Symbol.for("uppy test: getSocket"),v7=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,ma,{writable:!0,value:[]}),Object.defineProperty(this,qi,{writable:!0,value:e7()}),Object.defineProperty(this,io,{writable:!0,value:!1}),Object.defineProperty(this,er,{writable:!0,value:void 0}),Object.defineProperty(this,Ly,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return pn(this,io)[io]}[p7](){return pn(this,er)[er]}[v7](){return pn(this,ma)[ma]}open(){pn(this,er)[er]=new WebSocket(this.opts.target),pn(this,er)[er].onopen=()=>{for(pn(this,io)[io]=!0;pn(this,ma)[ma].length>0&&pn(this,io)[io];){const e=pn(this,ma)[ma].shift();this.send(e.action,e.payload)}},pn(this,er)[er].onclose=()=>{pn(this,io)[io]=!1},pn(this,er)[er].onmessage=pn(this,Ly)[Ly]}close(){var e;(e=pn(this,er)[er])==null||e.close()}send(e,t){pn(this,io)[io]?pn(this,er)[er].send(JSON.stringify({action:e,payload:t})):pn(this,ma)[ma].push({action:e,payload:t})}on(e,t){pn(this,qi)[qi].on(e,t)}emit(e,t){pn(this,qi)[qi].emit(e,t)}once(e,t){pn(this,qi)[qi].once(e,t)}}),zhe={RequestClient:m7,Provider:class extends m7{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),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?e.status!==401: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 e===void 0&&(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 r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}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||Lhe}},Socket:jhe},Yi,Oc,Hhe=Ns(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:a}))},300,{leading:!0,trailing:!0});function Bh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Uhe=0;function y7(e){return"__private_"+Uhe+++"_"+e}var b7=(Yi=y7("emitter"),Oc=y7("events"),class{constructor(e){Object.defineProperty(this,Yi,{writable:!0,value:void 0}),Object.defineProperty(this,Oc,{writable:!0,value:[]}),Bh(this,Yi)[Yi]=e}on(e,t){return Bh(this,Oc)[Oc].push([e,t]),Bh(this,Yi)[Yi].on(e,t)}remove(){for(const[e,t]of Bh(this,Oc)[Oc].splice(0))Bh(this,Yi)[Yi].off(e,t)}});function lo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Whe=0;function My(e){return"__private_"+Whe+++"_"+e}var oi=My("aliveTimer"),Rs=My("isDone"),_h=My("onTimedOut"),Ls=My("timeout"),w7=class{constructor(e,t){Object.defineProperty(this,oi,{writable:!0,value:void 0}),Object.defineProperty(this,Rs,{writable:!0,value:!1}),Object.defineProperty(this,_h,{writable:!0,value:void 0}),Object.defineProperty(this,Ls,{writable:!0,value:void 0}),lo(this,Ls)[Ls]=e,lo(this,_h)[_h]=t}progress(){lo(this,Rs)[Rs]||lo(this,Ls)[Ls]>0&&(clearTimeout(lo(this,oi)[oi]),lo(this,oi)[oi]=setTimeout(lo(this,_h)[_h],lo(this,Ls)[Ls]))}done(){lo(this,Rs)[Rs]||(clearTimeout(lo(this,oi)[oi]),lo(this,oi)[oi]=null,lo(this,Rs)[Rs]=!0)}};function vn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ghe=0;function Ms(e){return"__private_"+Ghe+++"_"+e}function Khe(){return new Error("Cancelled")}var Gr=Ms("activeRequests"),vr=Ms("queuedHandlers"),Th=Ms("call"),Ph=Ms("queueNext"),Wx=Ms("next"),Gx=Ms("queue"),Kx=Ms("dequeue");function qhe(e){vn(this,Gr)[Gr]+=1;let t,n=!1;try{t=e()}catch(r){throw vn(this,Gr)[Gr]-=1,r}return{abort:()=>{n||(n=!0,vn(this,Gr)[Gr]-=1,t(),vn(this,Ph)[Ph]())},done:()=>{n||(n=!0,vn(this,Gr)[Gr]-=1,vn(this,Ph)[Ph]())}}}function Yhe(){queueMicrotask(()=>vn(this,Wx)[Wx]())}function Xhe(){if(vn(this,Gr)[Gr]>=this.limit||vn(this,vr)[vr].length===0)return;const e=vn(this,vr)[vr].shift(),t=vn(this,Th)[Th](e.fn);e.abort=t.abort,e.done=t.done}function Jhe(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{vn(this,Kx)[Kx](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=vn(this,vr)[vr].findIndex(o=>n.priority>o.priority);return r===-1?vn(this,vr)[vr].push(n):vn(this,vr)[vr].splice(r,0,n),n}function Zhe(e){const t=vn(this,vr)[vr].indexOf(e);t!==-1&&vn(this,vr)[vr].splice(t,1)}var Qhe={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Kx,{value:Zhe}),Object.defineProperty(this,Gx,{value:Jhe}),Object.defineProperty(this,Wx,{value:Xhe}),Object.defineProperty(this,Ph,{value:Yhe}),Object.defineProperty(this,Th,{value:qhe}),Object.defineProperty(this,Gr,{writable:!0,value:0}),Object.defineProperty(this,vr,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return vn(this,Gr)[Gr]<this.limit?vn(this,Th)[Th](e):vn(this,Gx)[Gx](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];let l;const s=new Promise((u,c)=>{l=n.run(()=>{let d,f;try{f=Promise.resolve(e(...o))}catch(g){f=Promise.reject(g)}return f.then(g=>{d?c(d):(l.done(),u(g))},g=>{d?c(d):(l.done(),c(g))}),()=>{d=Khe()}},t)});return s.abort=()=>{l.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},S7,C7,k7=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},$he={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:ege}=l7,{Provider:tge,RequestClient:nge,Socket:rge}=zhe,{RateLimitedQueue:oge,internalRateLimitedQueue:qx}=Qhe;function x7(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),k7(e)?(n=new jx(n,e),n):(n.request=e,n)}function E7(e){return e.data.slice(0,e.data.size,e.meta.type)}var age=(C7=S7=class extends Lx{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=$he;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(r){let o={};try{o=JSON.parse(r)}catch(a){e.log(a)}return o},getResponseError(r,o){let a=new Error("Upload error");return k7(o)&&(a=new jx(a,o)),a},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),qx in this.opts?this.requests=this.opts[qx]:this.requests=new oge(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 typeof n=="function"?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(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=E7(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(o=>{const a=this.getOptions(o),l=E7(o);o.name?n.append(a.fieldName,l,o.name):n.append(a.fieldName,l)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((o,a)=>{this.uppy.emit("upload-started",e);const l=r.formData?this.createFormDataUpload(e,r):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new b7(this.uppy);const u=new w7(r.timeout,()=>{s.abort(),d.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,f),a(f)}),c=ege();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${c} started`)}),s.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${c} progress: ${f.loaded} / ${f.total}`),u.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),s.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${c} finished`),u.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(f.target.status,s.responseText,s)){const y=r.getResponseData(s.responseText,s),v=y[r.responseUrlFieldName],b={status:f.target.status,body:y,uploadURL:v};return this.uppy.emit("upload-success",e,b),v&&this.uppy.log(`Download ${e.name} from ${v}`),o(e)}const g=r.getResponseData(s.responseText,s),h=x7(s,r.getResponseError(s.responseText,s)),p={status:f.target.status,body:g};return this.uppy.emit("upload-error",e,h,p),a(h)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${c} errored`),u.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=x7(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,f),a(f)}),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=r.withCredentials,r.responseType!==""&&(s.responseType=r.responseType);const d=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(g=>{s.setRequestHeader(g,f.headers[g])}),s.send(l),()=>{u.done(),s.abort()}});this.onFileRemove(e.id,()=>{d.abort(),a(new Error("File removed"))}),this.onCancelAll(e.id,()=>{d.abort(),a(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(a=>{o[a]=e.meta[a]}),new(e.remote.providerOptions.provider?tge:nge)(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(a=>{const{token:l}=a,s=function(d){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(d)[1];return`${/^http:\/\//i.test(d)?"ws":"wss"}://${f}`}(e.remote.companionUrl),u=new rge({target:`${s}/api/${l}`,autoOpen:!1});this.uploaderEvents[e.id]=new b7(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),c.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),c.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",d=>Hhe(this,d,e)),u.on("success",d=>{const f=t.getResponseData(d.response.responseText,d.response),g=f[t.responseUrlFieldName],h={status:d.response.status,body:f,uploadURL:g};return this.uppy.emit("upload-success",e,h),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",d=>{const f=d.response,g=f?t.getResponseError(f.responseText,f):Object.assign(new Error(d.error.message),{cause:d.error});this.uppy.emit("upload-error",e,g),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(g)});const c=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(a=>{this.uppy.emit("upload-error",e,a),r(a)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,l=this.createBundledUpload(e,{...this.opts,...a||{}}),s=new XMLHttpRequest,u=new w7(this.opts.timeout,()=>{s.abort();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(d),n(d)}),c=d=>{e.forEach(f=>{this.uppy.emit("upload-error",f,d)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),s.upload.addEventListener("progress",d=>{u.progress(),d.lengthComputable&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:d.loaded/d.total*f.size,bytesTotal:f.size})})}),s.addEventListener("load",d=>{if(u.done(),this.opts.validateStatus(d.target.status,s.responseText,s)){const g=this.opts.getResponseData(s.responseText,s),h={status:d.target.status,body:g};return e.forEach(p=>{this.uppy.emit("upload-success",p,h)}),t()}const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return f.request=s,c(f),n(f)}),s.addEventListener("error",()=>{u.done();const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c(d),n(d)}),this.uppy.on("cancel-all",()=>{u.done(),s.abort()}),s.open(o.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(d=>{s.setRequestHeader(d,this.opts.headers[d])}),s.send(l),e.forEach(d=>{this.uppy.emit("upload-started",d)})})}uploadFiles(e){const t=e.map((n,r)=>{const o=parseInt(r,10)+1,a=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,a):this.upload(n,o,a)});return function(n){const r=[],o=[];function a(s){r.push(s)}function l(s){o.push(s)}return Promise.all(n.map(s=>s.then(a,l))).then(()=>({successful:r,failed:o}))}(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(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[qx]||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(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")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)}},S7.VERSION="2.0.6",C7),D7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nh(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xi,jy,zy=function(e){return e&&e.Math==Math&&e},ce=zy(typeof globalThis=="object"&&globalThis)||zy(typeof window=="object"&&window)||zy(typeof self=="object"&&self)||zy(typeof D7=="object"&&D7)||function(){return this}()||Function("return this")(),ige=Object.defineProperty,Yx=function(e,t){try{ige(ce,e,{value:t,configurable:!0,writable:!0})}catch{ce[e]=t}return t},Ji=ce["__core-js_shared__"]||Yx("__core-js_shared__",{}),Xx=Nh(function(e){(e.exports=function(t,n){return Ji[t]||(Ji[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),A7=Function.prototype,Jx=A7.bind,Zx=A7.call,lge=Jx&&Jx.bind(Zx),Pe=Jx?function(e){return e&&lge(Zx,e)}:function(e){return e&&function(){return Zx.apply(e,arguments)}},sge=ce.TypeError,so=function(e){if(e==null)throw sge("Can't call method on "+e);return e},uge=ce.Object,Zi=function(e){return uge(so(e))},cge=Pe({}.hasOwnProperty),ln=Object.hasOwn||function(e,t){return cge(Zi(e),t)},dge=0,fge=Math.random(),hge=Pe(1 .toString),Qx=function(e){return"Symbol("+(e===void 0?"":e)+")_"+hge(++dge+fge,36)},St=function(e){return typeof e=="function"},gge=function(e){return St(e)?e:void 0},js=function(e,t){return arguments.length<2?gge(ce[e]):ce[e]&&ce[e][t]},Ic=js("navigator","userAgent")||"",V7=ce.process,B7=ce.Deno,_7=V7&&V7.versions||B7&&B7.version,T7=_7&&_7.v8;T7&&(jy=(Xi=T7.split("."))[0]>0&&Xi[0]<4?1:+(Xi[0]+Xi[1])),!jy&&Ic&&(!(Xi=Ic.match(/Edge\/(\d+)/))||Xi[1]>=74)&&(Xi=Ic.match(/Chrome\/(\d+)/))&&(jy=+Xi[1]);var Oh=jy,gt=function(e){try{return!!e()}catch{return!0}},$x=!!Object.getOwnPropertySymbols&&!gt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Oh&&Oh<41}),e1=$x&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ih=Xx("wks"),zs=ce.Symbol,P7=zs&&zs.for,mge=e1?zs:zs&&zs.withoutSetter||Qx,Ut=function(e){if(!ln(Ih,e)||!$x&&typeof Ih[e]!="string"){var t="Symbol."+e;$x&&ln(zs,e)?Ih[e]=zs[e]:Ih[e]=e1&&P7?P7(t):mge(t)}return Ih[e]},N7={};N7[Ut("toStringTag")]="z";var t1=String(N7)==="[object z]",In=!gt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pt=function(e){return typeof e=="object"?e!==null:St(e)},n1=ce.document,pge=Pt(n1)&&Pt(n1.createElement),Fh=function(e){return pge?n1.createElement(e):{}},O7=!In&&!gt(function(){return Object.defineProperty(Fh("div"),"a",{get:function(){return 7}}).a!=7}),vge=ce.String,yge=ce.TypeError,sn=function(e){if(Pt(e))return e;throw yge(vge(e)+" is not an object")},Rh=Function.prototype.call,lt=Rh.bind?Rh.bind(Rh):function(){return Rh.apply(Rh,arguments)},Hs=Pe({}.isPrototypeOf),bge=ce.Object,r1=e1?function(e){return typeof e=="symbol"}:function(e){var t=js("Symbol");return St(t)&&Hs(t.prototype,bge(e))},wge=ce.String,Hy=function(e){try{return wge(e)}catch{return"Object"}},Sge=ce.TypeError,Qi=function(e){if(St(e))return e;throw Sge(Hy(e)+" is not a function")},Us=function(e,t){var n=e[t];return n==null?void 0:Qi(n)},Cge=ce.TypeError,kge=ce.TypeError,xge=Ut("toPrimitive"),o1=function(e){var t=function(n,r){if(!Pt(n)||r1(n))return n;var o,a=Us(n,xge);if(a){if(o=lt(a,n,r),!Pt(o)||r1(o))return o;throw kge("Can't convert object to primitive value")}return function(l,s){var u,c;if(St(u=l.toString)&&!Pt(c=lt(u,l))||St(u=l.valueOf)&&!Pt(c=lt(u,l)))return c;throw Cge("Can't convert object to primitive value")}(n)}(e,"string");return r1(t)?t:t+""},Ege=ce.TypeError,I7=Object.defineProperty,Fo={f:In?I7:function(e,t,n){if(sn(e),t=o1(t),sn(n),O7)try{return I7(e,t,n)}catch{}if("get"in n||"set"in n)throw Ege("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Uy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ro=In?function(e,t,n){return Fo.f(e,t,Uy(1,n))}:function(e,t,n){return e[t]=n,e},Dge=Pe(Function.toString);St(Ji.inspectSource)||(Ji.inspectSource=function(e){return Dge(e)});var Wy,Lh,Gy,Ky=Ji.inspectSource,F7=ce.WeakMap,R7=St(F7)&&/native code/.test(Ky(F7)),L7=Xx("keys"),a1=function(e){return L7[e]||(L7[e]=Qx(e))},qy={},i1=ce.TypeError,Age=ce.WeakMap;if(R7||Ji.state){var Ws=Ji.state||(Ji.state=new Age),Vge=Pe(Ws.get),M7=Pe(Ws.has),Bge=Pe(Ws.set);Wy=function(e,t){if(M7(Ws,e))throw new i1("Object already initialized");return t.facade=e,Bge(Ws,e,t),t},Lh=function(e){return Vge(Ws,e)||{}},Gy=function(e){return M7(Ws,e)}}else{var Fc=a1("state");qy[Fc]=!0,Wy=function(e,t){if(ln(e,Fc))throw new i1("Object already initialized");return t.facade=e,Ro(e,Fc,t),t},Lh=function(e){return ln(e,Fc)?e[Fc]:{}},Gy=function(e){return ln(e,Fc)}}var tr={set:Wy,get:Lh,has:Gy,enforce:function(e){return Gy(e)?Lh(e):Wy(e,{})},getterFor:function(e){return function(t){var n;if(!Pt(t)||(n=Lh(t)).type!==e)throw i1("Incompatible receiver, "+e+" required");return n}}},j7=Function.prototype,_ge=In&&Object.getOwnPropertyDescriptor,l1=ln(j7,"name"),Rc={EXISTS:l1,PROPER:l1&&(function(){}).name==="something",CONFIGURABLE:l1&&(!In||In&&_ge(j7,"name").configurable)},Ar=Nh(function(e){var t=Rc.CONFIGURABLE,n=tr.get,r=tr.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;St(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ln(s,"name")||t&&s.name!==h)&&Ro(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==ce?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Ro(a,l,s)):f?a[l]=s:Yx(l,s)})(Function.prototype,"toString",function(){return St(this)&&n(this).source||Ky(this)})}),Tge=Pe({}.toString),Pge=Pe("".slice),Lo=function(e){return Pge(Tge(e),8,-1)},Nge=Ut("toStringTag"),Oge=ce.Object,Ige=Lo(function(){return arguments}())=="Arguments",Yy=t1?Lo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=Oge(e),Nge))=="string"?n:Ige?Lo(t):(r=Lo(t))=="Object"&&St(t.callee)?"Arguments":r},Fge=t1?{}.toString:function(){return"[object "+Yy(this)+"]"};t1||Ar(Object.prototype,"toString",Fge,{unsafe:!0});var Xy={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},s1=Fh("span").classList,z7=s1&&s1.constructor&&s1.constructor.prototype,H7=z7===Object.prototype?void 0:z7,U7=Pe(Pe.bind),Gs=function(e,t){return Qi(e),t===void 0?e:U7?U7(e,t):function(){return e.apply(t,arguments)}},u1=ce.Object,Rge=Pe("".split),Jy=gt(function(){return!u1("z").propertyIsEnumerable(0)})?function(e){return Lo(e)=="String"?Rge(e,""):u1(e)}:u1,Lge=Math.ceil,Mge=Math.floor,Mh=function(e){var t=+e;return t!=t||t===0?0:(t>0?Mge:Lge)(t)},jge=Math.min,Lc=function(e){return e>0?jge(Mh(e),9007199254740991):0},Ks=function(e){return Lc(e.length)},Zy=Array.isArray||function(e){return Lo(e)=="Array"},W7=function(){},zge=[],G7=js("Reflect","construct"),c1=/^\s*(?:class|function)\b/,Hge=Pe(c1.exec),Uge=!c1.exec(W7),jh=function(e){if(!St(e))return!1;try{return G7(W7,zge,e),!0}catch{return!1}},Qy=!G7||gt(function(){var e;return jh(jh.call)||!jh(Object)||!jh(function(){e=!0})||e})?function(e){if(!St(e))return!1;switch(Yy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Uge||!!Hge(c1,Ky(e))}:jh,Wge=Ut("species"),K7=ce.Array,q7=function(e,t){return new(function(n){var r;return Zy(n)&&(r=n.constructor,(Qy(r)&&(r===K7||Zy(r.prototype))||Pt(r)&&(r=r[Wge])===null)&&(r=void 0)),r===void 0?K7:r}(e))(t===0?0:t)},Y7=Pe([].push),zh=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=Zi(u),y=Jy(p),v=Gs(c,d),b=Ks(y),m=0,w=f||q7,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:Y7(S,g)}else switch(e){case 4:return!1;case 7:Y7(S,g)}return a?-1:r||o?o:S}},Mc={forEach:zh(0),map:zh(1),filter:zh(2),find:zh(5),findIndex:zh(6)},X7=function(e,t){var n=[][e];return!!n&&gt(function(){n.call(null,t||function(){throw 1},1)})},Gge=Mc.forEach,d1=X7("forEach")?[].forEach:function(e){return Gge(this,e,arguments.length>1?arguments[1]:void 0)},J7=function(e){if(e&&e.forEach!==d1)try{Ro(e,"forEach",d1)}catch{e.forEach=d1}};for(var f1 in Xy)Xy[f1]&&J7(ce[f1]&&ce[f1].prototype);J7(H7);var Z7={}.propertyIsEnumerable,Q7=Object.getOwnPropertyDescriptor,Kge=Q7&&!Z7.call({1:2},1)?function(e){var t=Q7(this,e);return!!t&&t.enumerable}:Z7,$7={f:Kge},$i=function(e){return Jy(so(e))},e9=Object.getOwnPropertyDescriptor,Hh={f:In?e9:function(e,t){if(e=$i(e),t=o1(t),O7)try{return e9(e,t)}catch{}if(ln(e,t))return Uy(!lt($7.f,e,t),e[t])}},qge=Math.max,Yge=Math.min,jc=function(e,t){var n=Mh(e);return n<0?qge(n+t,0):Yge(n,t)},t9=function(e){return function(t,n,r){var o,a=$i(t),l=Ks(a),s=jc(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},n9={includes:t9(!0),indexOf:t9(!1)},Xge=n9.indexOf,r9=Pe([].push),o9=function(e,t){var n,r=$i(e),o=0,a=[];for(n in r)!ln(qy,n)&&ln(r,n)&&r9(a,n);for(;t.length>o;)ln(r,n=t[o++])&&(~Xge(a,n)||r9(a,n));return a},$y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jge=$y.concat("length","prototype"),Uh={f:Object.getOwnPropertyNames||function(e){return o9(e,Jge)}},a9={f:Object.getOwnPropertySymbols},Zge=Pe([].concat),Qge=js("Reflect","ownKeys")||function(e){var t=Uh.f(sn(e)),n=a9.f;return n?Zge(t,n(e)):t},$ge=function(e,t){for(var n=Qge(t),r=Fo.f,o=Hh.f,a=0;a<n.length;a++){var l=n[a];ln(e,l)||r(e,l,o(t,l))}},eme=/#|\.prototype\./,Wh=function(e,t){var n=nme[tme(e)];return n==ome||n!=rme&&(St(t)?gt(t):!!t)},tme=Wh.normalize=function(e){return String(e).replace(eme,".").toLowerCase()},nme=Wh.data={},rme=Wh.NATIVE="N",ome=Wh.POLYFILL="P",Gh=Wh,ame=Hh.f,Wt=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?ce:c?ce[s]||Yx(s,{}):(ce[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=ame(n,r))&&l.value:n[r],!Gh(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;$ge(a,o)}(e.sham||o&&o.sham)&&Ro(a,"sham",!0),Ar(n,r,a,e)}},zc=Object.keys||function(e){return o9(e,$y)},ime=gt(function(){zc(1)});/*!
46
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(l)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Te(this,Yn)[Yn]?Te(this,Yn)[Yn][r.type].push(r):Te(this,Yn)[Yn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Te(this,Yn)[Yn])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[s7](t){return Te(this,Yn)[Yn][t]}iteratePlugins(t){Object.values(Te(this,Yn)[Yn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Te(this,Yn)[Yn][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Te(this,wh)[wh](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Te(this,Io)[Io]),window.removeEventListener("offline",Te(this,Io)[Io]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Te(this,ri)[ri](t):(Te(this,Fs)[Fs](t),Promise.reject(new Error("Nonexistent upload")))}[u7](){return Te(this,ni)[ni](...arguments)}addResultData(t,n){if(!Te(this,Rx)[Rx](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Te(this,Yn)[Yn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{Te(this,Ox)[Ox](n),Te(this,Ix)[Ix](n)}).catch(o=>{Te(this,Dn)[Dn](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(u=>u.fileIDs),l=[];Object.keys(n).forEach(u=>{const c=this.getFile(u);c.progress.uploadStarted||a.indexOf(u)!==-1||l.push(c.id)});const s=Te(this,ni)[ni](l);return Te(this,ri)[ri](s)}).catch(o=>{Te(this,Dn)[Dn](o,{showInformer:!1})}))}}function che(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:a,allowedFileTypes:l}=this.opts.restrictions;if(a&&t.length+1>a)throw new fa(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(l&&!l.some(s=>s.indexOf("/")>-1?!!e.type&&$fe(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=l.join(", ");throw new fa(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach(u=>{s+=u.size}),s>o)throw new fa(this.i18n("exceedsSize",{size:Tx(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new fa(this.i18n("exceedsSize",{size:Tx(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new fa(this.i18n("inferiorSize",{size:Tx(r)}))}function dhe(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new fa(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function fhe(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===""){const l=new fa(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(l),o.push(t[a]),Te(this,Dn)[Dn](l,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function hhe(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return Te(this,Ch)[Ch](r)});if(t.length)throw new uhe(t,`${this.i18n("missingRequiredMetaField")}`)}function ghe(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const a=typeof e=="object"?e.message:e,l=typeof e=="object"&&e.details?e.details:"";let s=a;if(l&&(s+=` ${l}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:a,details:l},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function mhe(e){const{allowNewUpload:t}=this.getState();t===!1&&Te(this,Dn)[Dn](new fa(this.i18n("noMoreFilesAllowed")),{file:e})}function phe(e,t){const n=function(f){var g;if(f.type)return f.type;const h=f.name?(g=r7(f.name).extension)==null?void 0:g.toLowerCase():null;return h&&h in o7?o7[h]:"application/octet-stream"}(t),r=function(f,g){return g.name?g.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,t),o=r7(r).extension,a=!!t.isRemote,l=function(f){let g="uppy";return typeof f.name=="string"&&(g+=`-${a7(f.name.toLowerCase())}`),f.type!==void 0&&(g+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(g+=`-${a7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(g+=`-${f.data.size}`),f.data.lastModified!==void 0&&(g+=`-${f.data.lastModified}`),g}({...t,type:n});if(this.checkIfFileAlreadyExists(l)){const f=new fa(this.i18n("noDuplicates",{fileName:r}));Te(this,Dn)[Dn](f,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:l,name:r,extension:o||"",meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:a,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(c,e);d===!1?Te(this,Dn)[Dn](new fa("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof d=="object"&&d!==null&&(c=d);try{const f=Object.keys(e).map(g=>e[g]);Te(this,Sh)[Sh](c,f)}catch(f){Te(this,Dn)[Dn](f,{file:c})}return c}function vhe(){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 yhe(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),Te(this,Dn)[Dn](o,{throwErr:!1})}else Te(this,Dn)[Dn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:Te(this,ti)[ti].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&Te(this,Ch)[Ch](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Te(this,Io)[Io]),window.addEventListener("offline",Te(this,Io)[Io]),setTimeout(Te(this,Io)[Io],3e3))}function bhe(e,t){t===void 0&&(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 a=ihe();return this.emit("upload",{id:a,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[a]:{fileIDs:e,step:0,result:{}}}}),a}function whe(e){const{currentUploads:t}=this.getState();return t[e]}function She(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Che(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Te(this,Os)[Os],...Te(this,Is)[Is],...Te(this,ti)[ti]];try{for(let l=r;l<o.length&&n;l++){const s=o[l],u={...n,step:l};this.setState({currentUploads:{...t,[e]:u}}),await s(u.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(l){throw this.emit("error",l),Te(this,Fs)[Fs](e),l}if(n){n.fileIDs.forEach(c=>{const d=this.getFile(c);d&&d.progress.postprocess&&this.emit("postprocess-complete",d)});const l=n.fileIDs.map(c=>this.getFile(c)),s=l.filter(c=>!c.error),u=l.filter(c=>c.error);await this.addResultData(e,{successful:s,failed:u,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit("complete",a),Te(this,Fs)[Fs](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}c7.VERSION="2.1.3";var d7=c7,khe=gs(function(e,t){var n,r,o,a,l,s,u,c,d={},f=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(_,T){for(var I in T)_[I]=T[I];return _}function p(_){var T=_.parentNode;T&&T.removeChild(_)}function y(_,T,I){var U,$,W,Z={};for(W in T)W=="key"?U=T[W]:W=="ref"?$=T[W]:Z[W]=T[W];if(arguments.length>2&&(Z.children=arguments.length>3?n.call(arguments,2):I),typeof _=="function"&&_.defaultProps!=null)for(W in _.defaultProps)Z[W]===void 0&&(Z[W]=_.defaultProps[W]);return v(_,Z,U,$,null)}function v(_,T,I,U,$){var W={type:_,props:T,key:I,ref:U,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:$??++o};return $==null&&r.vnode!=null&&r.vnode(W),W}function b(_){return _.children}function m(_,T){this.props=_,this.context=T}function w(_,T){if(T==null)return _.__?w(_.__,_.__.__k.indexOf(_)+1):null;for(var I;T<_.__k.length;T++)if((I=_.__k[T])!=null&&I.__e!=null)return I.__e;return typeof _.type=="function"?w(_):null}function S(_){var T,I;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,T=0;T<_.__k.length;T++)if((I=_.__k[T])!=null&&I.__e!=null){_.__e=_.__c.base=I.__e;break}return S(_)}}function C(_){(!_.__d&&(_.__d=!0)&&l.push(_)&&!x.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||s)(x)}function x(){for(var _;x.__r=l.length;)_=l.sort(function(T,I){return T.__v.__b-I.__v.__b}),l=[],_.some(function(T){var I,U,$,W,Z,ne;T.__d&&(Z=(W=(I=T).__v).__e,(ne=I.__P)&&(U=[],($=h({},W)).__v=W.__v+1,O(ne,W,$,I.__n,ne.ownerSVGElement!==void 0,W.__h!=null?[Z]:null,U,Z??w(W),W.__h),F(U,W),W.__e!=Z&&S(W)))})}function k(_,T,I,U,$,W,Z,ne,me,de){var G,se,ee,oe,ue,we,Ee,Ae=U&&U.__k||f,Oe=Ae.length;for(I.__k=[],G=0;G<T.length;G++)if((oe=I.__k[G]=(oe=T[G])==null||typeof oe=="boolean"?null:typeof oe=="string"||typeof oe=="number"||typeof oe=="bigint"?v(null,oe,null,null,oe):Array.isArray(oe)?v(b,{children:oe},null,null,null):oe.__b>0?v(oe.type,oe.props,oe.key,null,oe.__v):oe)!=null){if(oe.__=I,oe.__b=I.__b+1,(ee=Ae[G])===null||ee&&oe.key==ee.key&&oe.type===ee.type)Ae[G]=void 0;else for(se=0;se<Oe;se++){if((ee=Ae[se])&&oe.key==ee.key&&oe.type===ee.type){Ae[se]=void 0;break}ee=null}O(_,oe,ee=ee||d,$,W,Z,ne,me,de),ue=oe.__e,(se=oe.ref)&&ee.ref!=se&&(Ee||(Ee=[]),ee.ref&&Ee.push(ee.ref,null,oe),Ee.push(se,oe.__c||ue,oe)),ue!=null?(we==null&&(we=ue),typeof oe.type=="function"&&oe.__k===ee.__k?oe.__d=me=E(oe,me,_):me=A(_,oe,ee,Ae,ue,me),typeof I.type=="function"&&(I.__d=me)):me&&ee.__e==me&&me.parentNode!=_&&(me=w(ee))}for(I.__e=we,G=Oe;G--;)Ae[G]!=null&&(typeof I.type=="function"&&Ae[G].__e!=null&&Ae[G].__e==I.__d&&(I.__d=w(U,G+1)),j(Ae[G],Ae[G]));if(Ee)for(G=0;G<Ee.length;G++)J(Ee[G],Ee[++G],Ee[++G])}function E(_,T,I){for(var U,$=_.__k,W=0;$&&W<$.length;W++)(U=$[W])&&(U.__=_,T=typeof U.type=="function"?E(U,T,I):A(I,U,U,$,U.__e,T));return T}function A(_,T,I,U,$,W){var Z,ne,me;if(T.__d!==void 0)Z=T.__d,T.__d=void 0;else if(I==null||$!=W||$.parentNode==null)e:if(W==null||W.parentNode!==_)_.appendChild($),Z=null;else{for(ne=W,me=0;(ne=ne.nextSibling)&&me<U.length;me+=2)if(ne==$)break e;_.insertBefore($,W),Z=W}return Z!==void 0?Z:$.nextSibling}function N(_,T,I){T[0]==="-"?_.setProperty(T,I):_[T]=I==null?"":typeof I!="number"||g.test(T)?I:I+"px"}function V(_,T,I,U,$){var W;e:if(T==="style")if(typeof I=="string")_.style.cssText=I;else{if(typeof U=="string"&&(_.style.cssText=U=""),U)for(T in U)I&&T in I||N(_.style,T,"");if(I)for(T in I)U&&I[T]===U[T]||N(_.style,T,I[T])}else if(T[0]==="o"&&T[1]==="n")W=T!==(T=T.replace(/Capture$/,"")),T=T.toLowerCase()in _?T.toLowerCase().slice(2):T.slice(2),_.l||(_.l={}),_.l[T+W]=I,I?U||_.addEventListener(T,W?P:D,W):_.removeEventListener(T,W?P:D,W);else if(T!=="dangerouslySetInnerHTML"){if($)T=T.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(T!=="href"&&T!=="list"&&T!=="form"&&T!=="tabIndex"&&T!=="download"&&T in _)try{_[T]=I??"";break e}catch{}typeof I=="function"||(I!=null&&(I!==!1||T[0]==="a"&&T[1]==="r")?_.setAttribute(T,I):_.removeAttribute(T))}}function D(_){this.l[_.type+!1](r.event?r.event(_):_)}function P(_){this.l[_.type+!0](r.event?r.event(_):_)}function O(_,T,I,U,$,W,Z,ne,me){var de,G,se,ee,oe,ue,we,Ee,Ae,Oe,Be,Le=T.type;if(T.constructor!==void 0)return null;I.__h!=null&&(me=I.__h,ne=T.__e=I.__e,T.__h=null,W=[ne]),(de=r.__b)&&de(T);try{e:if(typeof Le=="function"){if(Ee=T.props,Ae=(de=Le.contextType)&&U[de.__c],Oe=de?Ae?Ae.props.value:de.__:U,I.__c?we=(G=T.__c=I.__c).__=G.__E:("prototype"in Le&&Le.prototype.render?T.__c=G=new Le(Ee,Oe):(T.__c=G=new m(Ee,Oe),G.constructor=Le,G.render=z),Ae&&Ae.sub(G),G.props=Ee,G.state||(G.state={}),G.context=Oe,G.__n=U,se=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),Le.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=h({},G.__s)),h(G.__s,Le.getDerivedStateFromProps(Ee,G.__s))),ee=G.props,oe=G.state,se)Le.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(Le.getDerivedStateFromProps==null&&Ee!==ee&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps(Ee,Oe),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate(Ee,G.__s,Oe)===!1||T.__v===I.__v){G.props=Ee,G.state=G.__s,T.__v!==I.__v&&(G.__d=!1),G.__v=T,T.__e=I.__e,T.__k=I.__k,T.__k.forEach(function(vt){vt&&(vt.__=T)}),G.__h.length&&Z.push(G);break e}G.componentWillUpdate!=null&&G.componentWillUpdate(Ee,G.__s,Oe),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(ee,oe,ue)})}G.context=Oe,G.props=Ee,G.state=G.__s,(de=r.__r)&&de(T),G.__d=!1,G.__v=T,G.__P=_,de=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&(U=h(h({},U),G.getChildContext())),se||G.getSnapshotBeforeUpdate==null||(ue=G.getSnapshotBeforeUpdate(ee,oe)),Be=de!=null&&de.type===b&&de.key==null?de.props.children:de,k(_,Array.isArray(Be)?Be:[Be],T,I,U,$,W,Z,ne,me),G.base=T.__e,T.__h=null,G.__h.length&&Z.push(G),we&&(G.__E=G.__=null),G.__e=!1}else W==null&&T.__v===I.__v?(T.__k=I.__k,T.__e=I.__e):T.__e=H(I.__e,T,I,U,$,W,Z,me);(de=r.diffed)&&de(T)}catch(vt){T.__v=null,(me||W!=null)&&(T.__e=ne,T.__h=!!me,W[W.indexOf(ne)]=null),r.__e(vt,T,I)}}function F(_,T){r.__c&&r.__c(T,_),_.some(function(I){try{_=I.__h,I.__h=[],_.some(function(U){U.call(I)})}catch(U){r.__e(U,I.__v)}})}function H(_,T,I,U,$,W,Z,ne){var me,de,G,se=I.props,ee=T.props,oe=T.type,ue=0;if(oe==="svg"&&($=!0),W!=null){for(;ue<W.length;ue++)if((me=W[ue])&&"setAttribute"in me==!!oe&&(oe?me.localName===oe:me.nodeType===3)){_=me,W[ue]=null;break}}if(_==null){if(oe===null)return document.createTextNode(ee);_=$?document.createElementNS("http://www.w3.org/2000/svg",oe):document.createElement(oe,ee.is&&ee),W=null,ne=!1}if(oe===null)se===ee||ne&&_.data===ee||(_.data=ee);else{if(W=W&&n.call(_.childNodes),de=(se=I.props||d).dangerouslySetInnerHTML,G=ee.dangerouslySetInnerHTML,!ne){if(W!=null)for(se={},ue=0;ue<_.attributes.length;ue++)se[_.attributes[ue].name]=_.attributes[ue].value;(G||de)&&(G&&(de&&G.__html==de.__html||G.__html===_.innerHTML)||(_.innerHTML=G&&G.__html||""))}if(function(we,Ee,Ae,Oe,Be){var Le;for(Le in Ae)Le==="children"||Le==="key"||Le in Ee||V(we,Le,null,Ae[Le],Oe);for(Le in Ee)Be&&typeof Ee[Le]!="function"||Le==="children"||Le==="key"||Le==="value"||Le==="checked"||Ae[Le]===Ee[Le]||V(we,Le,Ee[Le],Ae[Le],Oe)}(_,ee,se,$,ne),G)T.__k=[];else if(ue=T.props.children,k(_,Array.isArray(ue)?ue:[ue],T,I,U,$&&oe!=="foreignObject",W,Z,W?W[0]:I.__k&&w(I,0),ne),W!=null)for(ue=W.length;ue--;)W[ue]!=null&&p(W[ue]);ne||("value"in ee&&(ue=ee.value)!==void 0&&(ue!==se.value||ue!==_.value||oe==="progress"&&!ue)&&V(_,"value",ue,se.value,!1),"checked"in ee&&(ue=ee.checked)!==void 0&&ue!==_.checked&&V(_,"checked",ue,se.checked,!1))}return _}function J(_,T,I){try{typeof _=="function"?_(T):_.current=T}catch(U){r.__e(U,I)}}function j(_,T,I){var U,$;if(r.unmount&&r.unmount(_),(U=_.ref)&&(U.current&&U.current!==_.__e||J(U,null,T)),(U=_.__c)!=null){if(U.componentWillUnmount)try{U.componentWillUnmount()}catch(W){r.__e(W,T)}U.base=U.__P=null}if(U=_.__k)for($=0;$<U.length;$++)U[$]&&j(U[$],T,typeof _.type!="function");I||_.__e==null||p(_.__e),_.__e=_.__d=void 0}function z(_,T,I){return this.constructor(_,I)}function L(_,T,I){var U,$,W;r.__&&r.__(_,T),$=(U=typeof I=="function")?null:I&&I.__k||T.__k,W=[],O(T,_=(!U&&I||T).__k=y(b,null,[_]),$||d,d,T.ownerSVGElement!==void 0,!U&&I?[I]:$?null:T.firstChild?n.call(T.childNodes):null,W,!U&&I?I:$?$.__e:T.firstChild,U),F(W,_)}n=f.slice,r={__e:function(_,T){for(var I,U,$;T=T.__;)if((I=T.__c)&&!I.__)try{if((U=I.constructor)&&U.getDerivedStateFromError!=null&&(I.setState(U.getDerivedStateFromError(_)),$=I.__d),I.componentDidCatch!=null&&(I.componentDidCatch(_),$=I.__d),$)return I.__E=I}catch(W){_=W}throw _}},o=0,a=function(_){return _!=null&&_.constructor===void 0},m.prototype.setState=function(_,T){var I;I=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h({},this.state),typeof _=="function"&&(_=_(h({},I),this.props)),_&&h(I,_),_!=null&&this.__v&&(T&&this.__h.push(T),C(this))},m.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),C(this))},m.prototype.render=b,l=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,c=0,t.Component=m,t.Fragment=b,t.cloneElement=function(_,T,I){var U,$,W,Z=h({},_.props);for(W in T)W=="key"?U=T[W]:W=="ref"?$=T[W]:Z[W]=T[W];return arguments.length>2&&(Z.children=arguments.length>3?n.call(arguments,2):I),v(_.type,Z,U||_.key,$||_.ref,null)},t.createContext=function(_,T){var I={__c:T="__cC"+c++,__:_,Consumer:function(U,$){return U.children($)},Provider:function(U){var $,W;return this.getChildContext||($=[],(W={})[T]=this,this.getChildContext=function(){return W},this.shouldComponentUpdate=function(Z){this.props.value!==Z.value&&$.some(C)},this.sub=function(Z){$.push(Z);var ne=Z.componentWillUnmount;Z.componentWillUnmount=function(){$.splice($.indexOf(Z),1),ne&&ne.call(Z)}}),U.children}};return I.Provider.__=I.Consumer.contextType=I},t.createElement=y,t.createRef=function(){return{current:null}},t.h=y,t.hydrate=function _(T,I){L(T,I,_)},t.isValidElement=a,t.options=r,t.render=L,t.toChildArray=function _(T,I){return I=I||[],T==null||typeof T=="boolean"||(Array.isArray(T)?T.some(function(U){_(U,I)}):I.push(T)),I}}),xhe=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Lx=class{constructor(e,t){t===void 0&&(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 $I([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 f7(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ehe=0;function Dhe(e){return"__private_"+Ehe+++"_"+e}const{render:h7}=khe;var Dh=Dhe("updateUI");class Mx extends Lx{constructor(){super(...arguments),Object.defineProperty(this,Dh,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=xhe(t);if(o){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return f7(this,Dh)[Dh]=function(u){let c=null,d=null;return function(){for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return d=g,c||(c=Promise.resolve().then(()=>(c=null,u(...d)))),c}}(u=>{this.uppy.getPlugin(this.id)&&(h7(this.render(u),s),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),h7(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,o.appendChild(s),this.onMount(),this.el}let a;if(typeof t=="object"&&t instanceof Mx)a=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins(u=>{if(u instanceof s)return a=u,!1})}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let l=`Invalid target option given to ${r}.`;throw l+=typeof t=="function"?" 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(l)}update(t){var n,r;this.el!=null&&((n=(r=f7(this,Dh))[Dh])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Ahe=Mx;const{debugLogger:Vhe}=i7;var Ah=d7,Bhe=d7,_he=Ahe,The=Lx,Phe=Vhe;Ah.Uppy=Bhe,Ah.UIPlugin=_he,Ah.BasePlugin=The,Ah.debugLogger=Phe;class Nhe extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var jx=Nhe,zx=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new jx(e)})};class Ohe extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Ry,Gi,ha,Ki,g7,Ihe=Ohe;function ga(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fhe=0;function Hx(e){return"__private_"+Fhe+++"_"+e}async function Ux(e){if(e.status===401)throw new Ihe;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var m7=(Gi=Hx("getPostResponseFunc"),ha=Hx("getUrl"),Ki=Hx("errorHandler"),g7=Ry=class WY{constructor(t,n){Object.defineProperty(this,Ki,{value:Lhe}),Object.defineProperty(this,ha,{value:Rhe}),Object.defineProperty(this,Gi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...WY.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ga(this,ha)[ha](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(a=>{r.includes(a.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${a}`),delete o[a])}),o})}get(t,n){return this.preflightAndHeaders(t).then(r=>zx(ga(this,ha)[ha](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(ga(this,Gi)[Gi](n)).then(Ux).catch(ga(this,Ki)[Ki]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then(a=>zx(ga(this,ha)[ha](t),{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(ga(this,Gi)[Gi](r)).then(Ux).catch(ga(this,Ki)[Ki](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then(a=>zx(`${this.hostname}/${t}`,{method:o,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(ga(this,Gi)[Gi](r)).then(Ux).catch(ga(this,Ki)[Ki](o,t))}},Ry.VERSION="2.0.4",Ry.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Ry.VERSION}`},g7);function Rhe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Lhe(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${ga(this,ha)[ha](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var Mhe={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()})},ma,qi,io,er,Ly;let p7,v7;function pn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jhe=0;function Vh(e){return"__private_"+jhe+++"_"+e}var zhe=(ma=Vh("queued"),qi=Vh("emitter"),io=Vh("isOpen"),er=Vh("socket"),Ly=Vh("handleMessage"),p7=Symbol.for("uppy test: getSocket"),v7=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,ma,{writable:!0,value:[]}),Object.defineProperty(this,qi,{writable:!0,value:e7()}),Object.defineProperty(this,io,{writable:!0,value:!1}),Object.defineProperty(this,er,{writable:!0,value:void 0}),Object.defineProperty(this,Ly,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return pn(this,io)[io]}[p7](){return pn(this,er)[er]}[v7](){return pn(this,ma)[ma]}open(){pn(this,er)[er]=new WebSocket(this.opts.target),pn(this,er)[er].onopen=()=>{for(pn(this,io)[io]=!0;pn(this,ma)[ma].length>0&&pn(this,io)[io];){const e=pn(this,ma)[ma].shift();this.send(e.action,e.payload)}},pn(this,er)[er].onclose=()=>{pn(this,io)[io]=!1},pn(this,er)[er].onmessage=pn(this,Ly)[Ly]}close(){var e;(e=pn(this,er)[er])==null||e.close()}send(e,t){pn(this,io)[io]?pn(this,er)[er].send(JSON.stringify({action:e,payload:t})):pn(this,ma)[ma].push({action:e,payload:t})}on(e,t){pn(this,qi)[qi].on(e,t)}emit(e,t){pn(this,qi)[qi].emit(e,t)}once(e,t){pn(this,qi)[qi].once(e,t)}}),Hhe={RequestClient:m7,Provider:class extends m7{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),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?e.status!==401: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 e===void 0&&(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 r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}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||Mhe}},Socket:zhe},Yi,Oc,Uhe=Ns(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:a}))},300,{leading:!0,trailing:!0});function Bh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Whe=0;function y7(e){return"__private_"+Whe+++"_"+e}var b7=(Yi=y7("emitter"),Oc=y7("events"),class{constructor(e){Object.defineProperty(this,Yi,{writable:!0,value:void 0}),Object.defineProperty(this,Oc,{writable:!0,value:[]}),Bh(this,Yi)[Yi]=e}on(e,t){return Bh(this,Oc)[Oc].push([e,t]),Bh(this,Yi)[Yi].on(e,t)}remove(){for(const[e,t]of Bh(this,Oc)[Oc].splice(0))Bh(this,Yi)[Yi].off(e,t)}});function lo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ghe=0;function My(e){return"__private_"+Ghe+++"_"+e}var oi=My("aliveTimer"),Rs=My("isDone"),_h=My("onTimedOut"),Ls=My("timeout"),w7=class{constructor(e,t){Object.defineProperty(this,oi,{writable:!0,value:void 0}),Object.defineProperty(this,Rs,{writable:!0,value:!1}),Object.defineProperty(this,_h,{writable:!0,value:void 0}),Object.defineProperty(this,Ls,{writable:!0,value:void 0}),lo(this,Ls)[Ls]=e,lo(this,_h)[_h]=t}progress(){lo(this,Rs)[Rs]||lo(this,Ls)[Ls]>0&&(clearTimeout(lo(this,oi)[oi]),lo(this,oi)[oi]=setTimeout(lo(this,_h)[_h],lo(this,Ls)[Ls]))}done(){lo(this,Rs)[Rs]||(clearTimeout(lo(this,oi)[oi]),lo(this,oi)[oi]=null,lo(this,Rs)[Rs]=!0)}};function vn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Khe=0;function Ms(e){return"__private_"+Khe+++"_"+e}function qhe(){return new Error("Cancelled")}var Gr=Ms("activeRequests"),vr=Ms("queuedHandlers"),Th=Ms("call"),Ph=Ms("queueNext"),Wx=Ms("next"),Gx=Ms("queue"),Kx=Ms("dequeue");function Yhe(e){vn(this,Gr)[Gr]+=1;let t,n=!1;try{t=e()}catch(r){throw vn(this,Gr)[Gr]-=1,r}return{abort:()=>{n||(n=!0,vn(this,Gr)[Gr]-=1,t(),vn(this,Ph)[Ph]())},done:()=>{n||(n=!0,vn(this,Gr)[Gr]-=1,vn(this,Ph)[Ph]())}}}function Xhe(){queueMicrotask(()=>vn(this,Wx)[Wx]())}function Jhe(){if(vn(this,Gr)[Gr]>=this.limit||vn(this,vr)[vr].length===0)return;const e=vn(this,vr)[vr].shift(),t=vn(this,Th)[Th](e.fn);e.abort=t.abort,e.done=t.done}function Zhe(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{vn(this,Kx)[Kx](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=vn(this,vr)[vr].findIndex(o=>n.priority>o.priority);return r===-1?vn(this,vr)[vr].push(n):vn(this,vr)[vr].splice(r,0,n),n}function Qhe(e){const t=vn(this,vr)[vr].indexOf(e);t!==-1&&vn(this,vr)[vr].splice(t,1)}var $he={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Kx,{value:Qhe}),Object.defineProperty(this,Gx,{value:Zhe}),Object.defineProperty(this,Wx,{value:Jhe}),Object.defineProperty(this,Ph,{value:Xhe}),Object.defineProperty(this,Th,{value:Yhe}),Object.defineProperty(this,Gr,{writable:!0,value:0}),Object.defineProperty(this,vr,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return vn(this,Gr)[Gr]<this.limit?vn(this,Th)[Th](e):vn(this,Gx)[Gx](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];let l;const s=new Promise((u,c)=>{l=n.run(()=>{let d,f;try{f=Promise.resolve(e(...o))}catch(g){f=Promise.reject(g)}return f.then(g=>{d?c(d):(l.done(),u(g))},g=>{d?c(d):(l.done(),c(g))}),()=>{d=qhe()}},t)});return s.abort=()=>{l.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},S7,C7,k7=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},ege={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:tge}=l7,{Provider:nge,RequestClient:rge,Socket:oge}=Hhe,{RateLimitedQueue:age,internalRateLimitedQueue:qx}=$he;function x7(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),k7(e)?(n=new jx(n,e),n):(n.request=e,n)}function E7(e){return e.data.slice(0,e.data.size,e.meta.type)}var ige=(C7=S7=class extends Lx{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=ege;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(r){let o={};try{o=JSON.parse(r)}catch(a){e.log(a)}return o},getResponseError(r,o){let a=new Error("Upload error");return k7(o)&&(a=new jx(a,o)),a},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),qx in this.opts?this.requests=this.opts[qx]:this.requests=new age(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 typeof n=="function"?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(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=E7(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(o=>{const a=this.getOptions(o),l=E7(o);o.name?n.append(a.fieldName,l,o.name):n.append(a.fieldName,l)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((o,a)=>{this.uppy.emit("upload-started",e);const l=r.formData?this.createFormDataUpload(e,r):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new b7(this.uppy);const u=new w7(r.timeout,()=>{s.abort(),d.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,f),a(f)}),c=tge();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${c} started`)}),s.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${c} progress: ${f.loaded} / ${f.total}`),u.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),s.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${c} finished`),u.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(f.target.status,s.responseText,s)){const y=r.getResponseData(s.responseText,s),v=y[r.responseUrlFieldName],b={status:f.target.status,body:y,uploadURL:v};return this.uppy.emit("upload-success",e,b),v&&this.uppy.log(`Download ${e.name} from ${v}`),o(e)}const g=r.getResponseData(s.responseText,s),h=x7(s,r.getResponseError(s.responseText,s)),p={status:f.target.status,body:g};return this.uppy.emit("upload-error",e,h,p),a(h)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${c} errored`),u.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=x7(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,f),a(f)}),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=r.withCredentials,r.responseType!==""&&(s.responseType=r.responseType);const d=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(g=>{s.setRequestHeader(g,f.headers[g])}),s.send(l),()=>{u.done(),s.abort()}});this.onFileRemove(e.id,()=>{d.abort(),a(new Error("File removed"))}),this.onCancelAll(e.id,()=>{d.abort(),a(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(a=>{o[a]=e.meta[a]}),new(e.remote.providerOptions.provider?nge:rge)(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(a=>{const{token:l}=a,s=function(d){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(d)[1];return`${/^http:\/\//i.test(d)?"ws":"wss"}://${f}`}(e.remote.companionUrl),u=new oge({target:`${s}/api/${l}`,autoOpen:!1});this.uploaderEvents[e.id]=new b7(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),c.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),c.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",d=>Uhe(this,d,e)),u.on("success",d=>{const f=t.getResponseData(d.response.responseText,d.response),g=f[t.responseUrlFieldName],h={status:d.response.status,body:f,uploadURL:g};return this.uppy.emit("upload-success",e,h),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",d=>{const f=d.response,g=f?t.getResponseError(f.responseText,f):Object.assign(new Error(d.error.message),{cause:d.error});this.uppy.emit("upload-error",e,g),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(g)});const c=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(a=>{this.uppy.emit("upload-error",e,a),r(a)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,l=this.createBundledUpload(e,{...this.opts,...a||{}}),s=new XMLHttpRequest,u=new w7(this.opts.timeout,()=>{s.abort();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(d),n(d)}),c=d=>{e.forEach(f=>{this.uppy.emit("upload-error",f,d)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),s.upload.addEventListener("progress",d=>{u.progress(),d.lengthComputable&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:d.loaded/d.total*f.size,bytesTotal:f.size})})}),s.addEventListener("load",d=>{if(u.done(),this.opts.validateStatus(d.target.status,s.responseText,s)){const g=this.opts.getResponseData(s.responseText,s),h={status:d.target.status,body:g};return e.forEach(p=>{this.uppy.emit("upload-success",p,h)}),t()}const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return f.request=s,c(f),n(f)}),s.addEventListener("error",()=>{u.done();const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c(d),n(d)}),this.uppy.on("cancel-all",()=>{u.done(),s.abort()}),s.open(o.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(d=>{s.setRequestHeader(d,this.opts.headers[d])}),s.send(l),e.forEach(d=>{this.uppy.emit("upload-started",d)})})}uploadFiles(e){const t=e.map((n,r)=>{const o=parseInt(r,10)+1,a=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,a):this.upload(n,o,a)});return function(n){const r=[],o=[];function a(s){r.push(s)}function l(s){o.push(s)}return Promise.all(n.map(s=>s.then(a,l))).then(()=>({successful:r,failed:o}))}(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(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[qx]||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(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")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)}},S7.VERSION="2.0.6",C7),D7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nh(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xi,jy,zy=function(e){return e&&e.Math==Math&&e},ce=zy(typeof globalThis=="object"&&globalThis)||zy(typeof window=="object"&&window)||zy(typeof self=="object"&&self)||zy(typeof D7=="object"&&D7)||function(){return this}()||Function("return this")(),lge=Object.defineProperty,Yx=function(e,t){try{lge(ce,e,{value:t,configurable:!0,writable:!0})}catch{ce[e]=t}return t},Ji=ce["__core-js_shared__"]||Yx("__core-js_shared__",{}),Xx=Nh(function(e){(e.exports=function(t,n){return Ji[t]||(Ji[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),A7=Function.prototype,Jx=A7.bind,Zx=A7.call,sge=Jx&&Jx.bind(Zx),Pe=Jx?function(e){return e&&sge(Zx,e)}:function(e){return e&&function(){return Zx.apply(e,arguments)}},uge=ce.TypeError,so=function(e){if(e==null)throw uge("Can't call method on "+e);return e},cge=ce.Object,Zi=function(e){return cge(so(e))},dge=Pe({}.hasOwnProperty),ln=Object.hasOwn||function(e,t){return dge(Zi(e),t)},fge=0,hge=Math.random(),gge=Pe(1 .toString),Qx=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gge(++fge+hge,36)},St=function(e){return typeof e=="function"},mge=function(e){return St(e)?e:void 0},js=function(e,t){return arguments.length<2?mge(ce[e]):ce[e]&&ce[e][t]},Ic=js("navigator","userAgent")||"",V7=ce.process,B7=ce.Deno,_7=V7&&V7.versions||B7&&B7.version,T7=_7&&_7.v8;T7&&(jy=(Xi=T7.split("."))[0]>0&&Xi[0]<4?1:+(Xi[0]+Xi[1])),!jy&&Ic&&(!(Xi=Ic.match(/Edge\/(\d+)/))||Xi[1]>=74)&&(Xi=Ic.match(/Chrome\/(\d+)/))&&(jy=+Xi[1]);var Oh=jy,gt=function(e){try{return!!e()}catch{return!0}},$x=!!Object.getOwnPropertySymbols&&!gt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Oh&&Oh<41}),e1=$x&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ih=Xx("wks"),zs=ce.Symbol,P7=zs&&zs.for,pge=e1?zs:zs&&zs.withoutSetter||Qx,Ut=function(e){if(!ln(Ih,e)||!$x&&typeof Ih[e]!="string"){var t="Symbol."+e;$x&&ln(zs,e)?Ih[e]=zs[e]:Ih[e]=e1&&P7?P7(t):pge(t)}return Ih[e]},N7={};N7[Ut("toStringTag")]="z";var t1=String(N7)==="[object z]",In=!gt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pt=function(e){return typeof e=="object"?e!==null:St(e)},n1=ce.document,vge=Pt(n1)&&Pt(n1.createElement),Fh=function(e){return vge?n1.createElement(e):{}},O7=!In&&!gt(function(){return Object.defineProperty(Fh("div"),"a",{get:function(){return 7}}).a!=7}),yge=ce.String,bge=ce.TypeError,sn=function(e){if(Pt(e))return e;throw bge(yge(e)+" is not an object")},Rh=Function.prototype.call,lt=Rh.bind?Rh.bind(Rh):function(){return Rh.apply(Rh,arguments)},Hs=Pe({}.isPrototypeOf),wge=ce.Object,r1=e1?function(e){return typeof e=="symbol"}:function(e){var t=js("Symbol");return St(t)&&Hs(t.prototype,wge(e))},Sge=ce.String,Hy=function(e){try{return Sge(e)}catch{return"Object"}},Cge=ce.TypeError,Qi=function(e){if(St(e))return e;throw Cge(Hy(e)+" is not a function")},Us=function(e,t){var n=e[t];return n==null?void 0:Qi(n)},kge=ce.TypeError,xge=ce.TypeError,Ege=Ut("toPrimitive"),o1=function(e){var t=function(n,r){if(!Pt(n)||r1(n))return n;var o,a=Us(n,Ege);if(a){if(o=lt(a,n,r),!Pt(o)||r1(o))return o;throw xge("Can't convert object to primitive value")}return function(l,s){var u,c;if(St(u=l.toString)&&!Pt(c=lt(u,l))||St(u=l.valueOf)&&!Pt(c=lt(u,l)))return c;throw kge("Can't convert object to primitive value")}(n)}(e,"string");return r1(t)?t:t+""},Dge=ce.TypeError,I7=Object.defineProperty,Fo={f:In?I7:function(e,t,n){if(sn(e),t=o1(t),sn(n),O7)try{return I7(e,t,n)}catch{}if("get"in n||"set"in n)throw Dge("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Uy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ro=In?function(e,t,n){return Fo.f(e,t,Uy(1,n))}:function(e,t,n){return e[t]=n,e},Age=Pe(Function.toString);St(Ji.inspectSource)||(Ji.inspectSource=function(e){return Age(e)});var Wy,Lh,Gy,Ky=Ji.inspectSource,F7=ce.WeakMap,R7=St(F7)&&/native code/.test(Ky(F7)),L7=Xx("keys"),a1=function(e){return L7[e]||(L7[e]=Qx(e))},qy={},i1=ce.TypeError,Vge=ce.WeakMap;if(R7||Ji.state){var Ws=Ji.state||(Ji.state=new Vge),Bge=Pe(Ws.get),M7=Pe(Ws.has),_ge=Pe(Ws.set);Wy=function(e,t){if(M7(Ws,e))throw new i1("Object already initialized");return t.facade=e,_ge(Ws,e,t),t},Lh=function(e){return Bge(Ws,e)||{}},Gy=function(e){return M7(Ws,e)}}else{var Fc=a1("state");qy[Fc]=!0,Wy=function(e,t){if(ln(e,Fc))throw new i1("Object already initialized");return t.facade=e,Ro(e,Fc,t),t},Lh=function(e){return ln(e,Fc)?e[Fc]:{}},Gy=function(e){return ln(e,Fc)}}var tr={set:Wy,get:Lh,has:Gy,enforce:function(e){return Gy(e)?Lh(e):Wy(e,{})},getterFor:function(e){return function(t){var n;if(!Pt(t)||(n=Lh(t)).type!==e)throw i1("Incompatible receiver, "+e+" required");return n}}},j7=Function.prototype,Tge=In&&Object.getOwnPropertyDescriptor,l1=ln(j7,"name"),Rc={EXISTS:l1,PROPER:l1&&(function(){}).name==="something",CONFIGURABLE:l1&&(!In||In&&Tge(j7,"name").configurable)},Ar=Nh(function(e){var t=Rc.CONFIGURABLE,n=tr.get,r=tr.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;St(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ln(s,"name")||t&&s.name!==h)&&Ro(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==ce?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Ro(a,l,s)):f?a[l]=s:Yx(l,s)})(Function.prototype,"toString",function(){return St(this)&&n(this).source||Ky(this)})}),Pge=Pe({}.toString),Nge=Pe("".slice),Lo=function(e){return Nge(Pge(e),8,-1)},Oge=Ut("toStringTag"),Ige=ce.Object,Fge=Lo(function(){return arguments}())=="Arguments",Yy=t1?Lo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=Ige(e),Oge))=="string"?n:Fge?Lo(t):(r=Lo(t))=="Object"&&St(t.callee)?"Arguments":r},Rge=t1?{}.toString:function(){return"[object "+Yy(this)+"]"};t1||Ar(Object.prototype,"toString",Rge,{unsafe:!0});var Xy={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},s1=Fh("span").classList,z7=s1&&s1.constructor&&s1.constructor.prototype,H7=z7===Object.prototype?void 0:z7,U7=Pe(Pe.bind),Gs=function(e,t){return Qi(e),t===void 0?e:U7?U7(e,t):function(){return e.apply(t,arguments)}},u1=ce.Object,Lge=Pe("".split),Jy=gt(function(){return!u1("z").propertyIsEnumerable(0)})?function(e){return Lo(e)=="String"?Lge(e,""):u1(e)}:u1,Mge=Math.ceil,jge=Math.floor,Mh=function(e){var t=+e;return t!=t||t===0?0:(t>0?jge:Mge)(t)},zge=Math.min,Lc=function(e){return e>0?zge(Mh(e),9007199254740991):0},Ks=function(e){return Lc(e.length)},Zy=Array.isArray||function(e){return Lo(e)=="Array"},W7=function(){},Hge=[],G7=js("Reflect","construct"),c1=/^\s*(?:class|function)\b/,Uge=Pe(c1.exec),Wge=!c1.exec(W7),jh=function(e){if(!St(e))return!1;try{return G7(W7,Hge,e),!0}catch{return!1}},Qy=!G7||gt(function(){var e;return jh(jh.call)||!jh(Object)||!jh(function(){e=!0})||e})?function(e){if(!St(e))return!1;switch(Yy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wge||!!Uge(c1,Ky(e))}:jh,Gge=Ut("species"),K7=ce.Array,q7=function(e,t){return new(function(n){var r;return Zy(n)&&(r=n.constructor,(Qy(r)&&(r===K7||Zy(r.prototype))||Pt(r)&&(r=r[Gge])===null)&&(r=void 0)),r===void 0?K7:r}(e))(t===0?0:t)},Y7=Pe([].push),zh=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=Zi(u),y=Jy(p),v=Gs(c,d),b=Ks(y),m=0,w=f||q7,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:Y7(S,g)}else switch(e){case 4:return!1;case 7:Y7(S,g)}return a?-1:r||o?o:S}},Mc={forEach:zh(0),map:zh(1),filter:zh(2),find:zh(5),findIndex:zh(6)},X7=function(e,t){var n=[][e];return!!n&&gt(function(){n.call(null,t||function(){throw 1},1)})},Kge=Mc.forEach,d1=X7("forEach")?[].forEach:function(e){return Kge(this,e,arguments.length>1?arguments[1]:void 0)},J7=function(e){if(e&&e.forEach!==d1)try{Ro(e,"forEach",d1)}catch{e.forEach=d1}};for(var f1 in Xy)Xy[f1]&&J7(ce[f1]&&ce[f1].prototype);J7(H7);var Z7={}.propertyIsEnumerable,Q7=Object.getOwnPropertyDescriptor,qge=Q7&&!Z7.call({1:2},1)?function(e){var t=Q7(this,e);return!!t&&t.enumerable}:Z7,$7={f:qge},$i=function(e){return Jy(so(e))},e9=Object.getOwnPropertyDescriptor,Hh={f:In?e9:function(e,t){if(e=$i(e),t=o1(t),O7)try{return e9(e,t)}catch{}if(ln(e,t))return Uy(!lt($7.f,e,t),e[t])}},Yge=Math.max,Xge=Math.min,jc=function(e,t){var n=Mh(e);return n<0?Yge(n+t,0):Xge(n,t)},t9=function(e){return function(t,n,r){var o,a=$i(t),l=Ks(a),s=jc(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},n9={includes:t9(!0),indexOf:t9(!1)},Jge=n9.indexOf,r9=Pe([].push),o9=function(e,t){var n,r=$i(e),o=0,a=[];for(n in r)!ln(qy,n)&&ln(r,n)&&r9(a,n);for(;t.length>o;)ln(r,n=t[o++])&&(~Jge(a,n)||r9(a,n));return a},$y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zge=$y.concat("length","prototype"),Uh={f:Object.getOwnPropertyNames||function(e){return o9(e,Zge)}},a9={f:Object.getOwnPropertySymbols},Qge=Pe([].concat),$ge=js("Reflect","ownKeys")||function(e){var t=Uh.f(sn(e)),n=a9.f;return n?Qge(t,n(e)):t},eme=function(e,t){for(var n=$ge(t),r=Fo.f,o=Hh.f,a=0;a<n.length;a++){var l=n[a];ln(e,l)||r(e,l,o(t,l))}},tme=/#|\.prototype\./,Wh=function(e,t){var n=rme[nme(e)];return n==ame||n!=ome&&(St(t)?gt(t):!!t)},nme=Wh.normalize=function(e){return String(e).replace(tme,".").toLowerCase()},rme=Wh.data={},ome=Wh.NATIVE="N",ame=Wh.POLYFILL="P",Gh=Wh,ime=Hh.f,Wt=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?ce:c?ce[s]||Yx(s,{}):(ce[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=ime(n,r))&&l.value:n[r],!Gh(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;eme(a,o)}(e.sham||o&&o.sham)&&Ro(a,"sham",!0),Ar(n,r,a,e)}},zc=Object.keys||function(e){return o9(e,$y)},lme=gt(function(){zc(1)});/*!
47
47
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
48
48
  *
49
49
  * Copyright (c) 2014-2017, Jon Schlinkert.
50
50
  * Released under the MIT License.
51
- */function i9(e){return Object.prototype.toString.call(e)==="[object Object]"}Wt({target:"Object",stat:!0,forced:ime},{keys:function(e){return zc(Zi(e))}});var lme={isHistory(e){return i9(t=e)!==!1&&((n=t.constructor)===void 0||i9(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||zi.isOperationList(e.redos[0]))&&(e.undos.length===0||zi.isOperationList(e.undos[0]));var t,n,r}},h1=new WeakMap,g1=new WeakMap,Hc={isHistoryEditor:e=>lme.isHistory(e.history)&&B.isEditor(e),isMerging:e=>g1.get(e),isSaving:e=>h1.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Hc.isMerging(e);g1.set(e,!1),t(),g1.set(e,n)},withoutSaving(e,t){var n=Hc.isSaving(e);h1.set(e,!1),t(),h1.set(e,n)}},sme=ce.String,Dt=function(e){if(Yy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return sme(e)},m1=function(){var e=sn(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},ume=Rc.PROPER,p1=RegExp.prototype,l9=p1.toString,cme=Pe(m1),dme=gt(function(){return l9.call({source:"a",flags:"b"})!="/a/b"}),fme=ume&&l9.name!="toString";(dme||fme)&&Ar(RegExp.prototype,"toString",function(){var e=sn(this),t=Dt(e.source),n=e.flags;return"/"+t+"/"+Dt(n===void 0&&Hs(p1,e)&&!("flags"in p1)?cme(e):n)},{unsafe:!0});var e0,hme=In?Object.defineProperties:function(e,t){sn(e);for(var n,r=$i(t),o=zc(t),a=o.length,l=0;a>l;)Fo.f(e,n=o[l++],r[n]);return e},v1=js("document","documentElement"),s9=a1("IE_PROTO"),y1=function(){},u9=function(e){return"<script>"+e+"<\/script>"},c9=function(e){e.write(u9("")),e.close();var t=e.parentWindow.Object;return e=null,t},t0=function(){try{e0=new ActiveXObject("htmlfile")}catch{}var e,t;t0=typeof document<"u"?document.domain&&e0?c9(e0):((t=Fh("iframe")).style.display="none",v1.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(u9("document.F=Object")),e.close(),e.F):c9(e0);for(var n=$y.length;n--;)delete t0.prototype[$y[n]];return t0()};qy[s9]=!0;var n0=Object.create||function(e,t){var n;return e!==null?(y1.prototype=sn(e),n=new y1,y1.prototype=null,n[s9]=e):n=t0(),t===void 0?n:hme(n,t)},b1=Ut("unscopables"),w1=Array.prototype;w1[b1]==null&&Fo.f(w1,b1,{configurable:!0,value:n0(null)});var Kh=function(e){w1[b1][e]=!0},gme=n9.includes;Wt({target:"Array",proto:!0},{includes:function(e){return gme(this,e,arguments.length>1?arguments[1]:void 0)}}),Kh("includes");var mme=Ut("match"),S1=function(e){var t;return Pt(e)&&((t=e[mme])!==void 0?!!t:Lo(e)=="RegExp")},pme=ce.TypeError,C1=function(e){if(S1(e))throw pme("The method doesn't accept regular expressions");return e},vme=Ut("match"),k1=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[vme]=!1,"/./"[e](t)}catch{}}return!1},yme=Pe("".indexOf);Wt({target:"String",proto:!0,forced:!k1("includes")},{includes:function(e){return!!~yme(Dt(so(this)),Dt(C1(e)),arguments.length>1?arguments[1]:void 0)}});var bme=/"/g,wme=Pe("".replace);Wt({target:"String",proto:!0,forced:gt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Dt(so(this)),r="<a",(r+=' name="'+wme(Dt(t),bme,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var x1=function(e,t,n){var r,o;sn(e);try{if(!(r=Us(e,"return"))){if(t==="throw")throw n;return n}r=lt(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return sn(r),n},Sme=function(e,t,n,r){try{return r?t(sn(n)[0],n[1]):t(n)}catch(o){x1(e,"throw",o)}},Uc={},Cme=Ut("iterator"),kme=Array.prototype,d9=function(e){return e!==void 0&&(Uc.Array===e||kme[Cme]===e)},qh=function(e,t,n){var r=o1(t);r in e?Fo.f(e,r,Uy(0,n)):e[r]=n},xme=Ut("iterator"),E1=function(e){if(e!=null)return Us(e,xme)||Us(e,"@@iterator")||Uc[Yy(e)]},Eme=ce.TypeError,f9=function(e,t){var n=arguments.length<2?E1(e):t;if(Qi(n))return sn(lt(n,e));throw Eme(Hy(e)+" is not iterable")},h9=ce.Array,g9=Ut("iterator"),m9=!1;try{var Dme=0,p9={next:function(){return{done:!!Dme++}},return:function(){m9=!0}};p9[g9]=function(){return this},Array.from(p9,function(){throw 2})}catch{}var D1=function(e,t){if(!m9)return!1;var n=!1;try{var r={};r[g9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Ame=!D1(function(e){Array.from(e)});Wt({target:"Array",stat:!0,forced:Ame},{from:function(e){var t=Zi(e),n=Qy(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Gs(o,r>2?arguments[2]:void 0));var l,s,u,c,d,f,g=E1(t),h=0;if(!g||this==h9&&d9(g))for(l=Ks(t),s=n?new this(l):h9(l);l>h;h++)f=a?o(t[h],h):t[h],qh(s,h,f);else for(d=(c=f9(t,g)).next,s=n?new this:[];!(u=lt(d,c)).done;h++)f=a?Sme(c,o,[u.value,h],!0):u.value,qh(s,h,f);return s.length=h,s}});var qs,v9,y9,Vme=Pe("".charAt),b9=Pe("".charCodeAt),Bme=Pe("".slice),_me=function(e){return function(t,n){var r,o,a=Dt(so(t)),l=Mh(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=b9(a,l))<55296||r>56319||l+1===s||(o=b9(a,l+1))<56320||o>57343?e?Vme(a,l):r:e?Bme(a,l,l+2):o-56320+(r-55296<<10)+65536}},w9={charAt:_me(!0)},Tme=!gt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),S9=a1("IE_PROTO"),A1=ce.Object,Pme=A1.prototype,r0=Tme?A1.getPrototypeOf:function(e){var t=Zi(e);if(ln(t,S9))return t[S9];var n=t.constructor;return St(n)&&t instanceof n?n.prototype:t instanceof A1?Pme:null},V1=Ut("iterator"),C9=!1;[].keys&&("next"in(y9=[].keys())?(v9=r0(r0(y9)))!==Object.prototype&&(qs=v9):C9=!0);var Nme=qs==null||gt(function(){var e={};return qs[V1].call(e)!==e});Nme&&(qs={}),St(qs[V1])||Ar(qs,V1,function(){return this});var B1={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:C9},Ome=Fo.f,k9=Ut("toStringTag"),o0=function(e,t,n){e&&!ln(e=n?e:e.prototype,k9)&&Ome(e,k9,{configurable:!0,value:t})},Ime=B1.IteratorPrototype,Fme=function(){return this},Rme=ce.String,Lme=ce.TypeError,Wc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return sn(r),function(a){if(typeof a=="object"||St(a))return a;throw Lme("Can't set "+Rme(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Mme=Rc.PROPER,jme=Rc.CONFIGURABLE,x9=B1.IteratorPrototype,a0=B1.BUGGY_SAFARI_ITERATORS,Yh=Ut("iterator"),zme=function(){return this},_1=function(e,t,n,r,o,a,l){(function(b,m,w,S){var C=m+" Iterator";b.prototype=n0(Ime,{next:Uy(1,w)}),o0(b,C,!1),Uc[C]=Fme})(n,t,r);var s,u,c,d=function(b){if(b===o&&y)return y;if(!a0&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new n(this,b)}}return function(){return new n(this)}},f=t+" Iterator",g=!1,h=e.prototype,p=h[Yh]||h["@@iterator"]||o&&h[o],y=!a0&&p||d(o),v=t=="Array"&&h.entries||p;if(v&&(s=r0(v.call(new e)))!==Object.prototype&&s.next&&(r0(s)!==x9&&(Wc?Wc(s,x9):St(s[Yh])||Ar(s,Yh,zme)),o0(s,f,!0)),Mme&&o=="values"&&p&&p.name!=="values"&&(jme?Ro(h,"name","values"):(g=!0,y=function(){return lt(p,this)})),o)if(u={values:d("values"),keys:a?y:d("keys"),entries:d("entries")},l)for(c in u)(a0||g||!(c in h))&&Ar(h,c,u[c]);else Wt({target:t,proto:!0,forced:a0||g},u);return h[Yh]!==y&&Ar(h,Yh,y,{name:o}),Uc[t]=y,u},Hme=w9.charAt,Ume=tr.set,Wme=tr.getterFor("String Iterator");_1(String,"String",function(e){Ume(this,{type:"String Iterator",string:Dt(e),index:0})},function(){var e,t=Wme(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Hme(n,r),t.index+=e.length,{value:e,done:!1})});var T1,Gme=Hh.f,E9=Pe("".endsWith),Kme=Pe("".slice),qme=Math.min,D9=k1("endsWith"),Yme=!(D9||(T1=Gme(String.prototype,"endsWith"),!T1||T1.writable));Wt({target:"String",proto:!0,forced:!Yme&&!D9},{endsWith:function(e){var t=Dt(so(this));C1(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:qme(Lc(n),r),a=Dt(e);return E9?E9(t,a,o):Kme(t,o-a.length,o)===a}});var Xme=Pe([].join),Jme=Jy!=Object,Zme=X7("join",",");Wt({target:"Array",proto:!0,forced:Jme||!Zme},{join:function(e){return Xme($i(this),e===void 0?",":e)}});var Qme=Ut("species"),i0=function(e){return Oh>=51||!gt(function(){var t=[];return(t.constructor={})[Qme]=function(){return{foo:1}},t[e](Boolean).foo!==1})},$me=Mc.map,epe=i0("map");Wt({target:"Array",proto:!0,forced:!epe},{map:function(e){return $me(this,e,arguments.length>1?arguments[1]:void 0)}});var P1=ce.RegExp,N1=gt(function(){var e=P1("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),tpe=N1||gt(function(){return!P1("a","y").sticky}),l0={BROKEN_CARET:N1||gt(function(){var e=P1("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:tpe,UNSUPPORTED_Y:N1},npe=ce.RegExp,O1=gt(function(){var e=npe(".","s");return!(e.dotAll&&e.exec(`
52
- `)&&e.flags==="s")}),rpe=ce.RegExp,I1=gt(function(){var e=rpe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ope=tr.get,ape=Xx("native-string-replace",String.prototype.replace),s0=RegExp.prototype.exec,F1=s0,ipe=Pe("".charAt),lpe=Pe("".indexOf),spe=Pe("".replace),R1=Pe("".slice),L1=function(){var e=/a/,t=/b*/g;return lt(s0,e,"a"),lt(s0,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),A9=l0.BROKEN_CARET,M1=/()??/.exec("")[1]!==void 0;(L1||M1||A9||O1||I1)&&(F1=function(e){var t,n,r,o,a,l,s,u=this,c=ope(u),d=Dt(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=lt(F1,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=A9&&u.sticky,p=lt(m1,u),y=u.source,v=0,b=d;if(h&&(p=spe(p,"y",""),lpe(p,"g")===-1&&(p+="g"),b=R1(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&ipe(d,u.lastIndex-1)!==`
53
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),M1&&(n=new RegExp("^"+y+"$(?!\\s)",p)),L1&&(r=u.lastIndex),o=lt(s0,h?n:u,b),h?o?(o.input=R1(o.input,v),o[0]=R1(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:L1&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),M1&&o&&o.length>1&&lt(ape,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=n0(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Xh=F1;Wt({target:"RegExp",proto:!0,forced:/./.exec!==Xh},{exec:Xh});var j1=Function.prototype,V9=j1.apply,upe=j1.bind,B9=j1.call,z1=typeof Reflect=="object"&&Reflect.apply||(upe?B9.bind(V9):function(){return B9.apply(V9,arguments)}),cpe=Ut("species"),H1=RegExp.prototype,U1=function(e,t,n,r){var o=Ut(e),a=!gt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!gt(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[cpe]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Pe(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=Pe(c),y=d.exec;return y===Xh||y===H1.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});Ar(String.prototype,e,u[0]),Ar(H1,o,u[1])}r&&Ro(H1[o],"sham",!0)},dpe=w9.charAt,W1=function(e,t,n){return t+(n?dpe(e,t).length:1)},fpe=Math.floor,G1=Pe("".charAt),hpe=Pe("".replace),K1=Pe("".slice),gpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mpe=/\$([$&'`]|\d{1,2})/g,ppe=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=mpe;return o!==void 0&&(o=Zi(o),u=gpe),hpe(a,u,function(c,d){var f;switch(G1(d,0)){case"$":return"$";case"&":return e;case"`":return K1(t,0,n);case"'":return K1(t,l);case"<":f=o[K1(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=fpe(g/10);return h===0?c:h<=s?r[h-1]===void 0?G1(d,1):r[h-1]+G1(d,1):c}f=r[g-1]}return f===void 0?"":f})},vpe=ce.TypeError,Jh=function(e,t){var n=e.exec;if(St(n)){var r=lt(n,e,t);return r!==null&&sn(r),r}if(Lo(e)==="RegExp")return lt(Xh,e,t);throw vpe("RegExp#exec called on incompatible receiver")},q1=Ut("replace"),ype=Math.max,bpe=Math.min,wpe=Pe([].concat),Y1=Pe([].push),_9=Pe("".indexOf),T9=Pe("".slice),Spe="a".replace(/./,"$0")==="$0",P9=!!/./[q1]&&/./[q1]("a","$0")==="";U1("replace",function(e,t,n){var r=P9?"$":"$0";return[function(o,a){var l=so(this),s=o==null?void 0:Us(o,q1);return s?lt(s,o,l,a):lt(t,Dt(l),o,a)},function(o,a){var l=sn(this),s=Dt(o);if(typeof a=="string"&&_9(a,r)===-1&&_9(a,"$<")===-1){var u=n(t,l,s,a);if(u.done)return u.value}var c=St(a);c||(a=Dt(a));var d=l.global;if(d){var f=l.unicode;l.lastIndex=0}for(var g=[];;){var h=Jh(l,s);if(h===null||(Y1(g,h),!d))break;Dt(h[0])===""&&(l.lastIndex=W1(s,Lc(l.lastIndex),f))}for(var p,y="",v=0,b=0;b<g.length;b++){for(var m=Dt((h=g[b])[0]),w=ype(bpe(Mh(h.index),s.length),0),S=[],C=1;C<h.length;C++)Y1(S,(p=h[C])===void 0?p:String(p));var x=h.groups;if(c){var k=wpe([m],S,w,s);x!==void 0&&Y1(k,x);var E=Dt(z1(a,void 0,k))}else E=ppe(m,s,w,S,x,a);w>=v&&(y+=T9(s,v,w)+E,v=w+m.length)}return y+T9(s,v)}]},!!gt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Spe||P9);/*! *****************************************************************************
51
+ */function i9(e){return Object.prototype.toString.call(e)==="[object Object]"}Wt({target:"Object",stat:!0,forced:lme},{keys:function(e){return zc(Zi(e))}});var sme={isHistory(e){return i9(t=e)!==!1&&((n=t.constructor)===void 0||i9(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||zi.isOperationList(e.redos[0]))&&(e.undos.length===0||zi.isOperationList(e.undos[0]));var t,n,r}},h1=new WeakMap,g1=new WeakMap,Hc={isHistoryEditor:e=>sme.isHistory(e.history)&&B.isEditor(e),isMerging:e=>g1.get(e),isSaving:e=>h1.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Hc.isMerging(e);g1.set(e,!1),t(),g1.set(e,n)},withoutSaving(e,t){var n=Hc.isSaving(e);h1.set(e,!1),t(),h1.set(e,n)}},ume=ce.String,Dt=function(e){if(Yy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ume(e)},m1=function(){var e=sn(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},cme=Rc.PROPER,p1=RegExp.prototype,l9=p1.toString,dme=Pe(m1),fme=gt(function(){return l9.call({source:"a",flags:"b"})!="/a/b"}),hme=cme&&l9.name!="toString";(fme||hme)&&Ar(RegExp.prototype,"toString",function(){var e=sn(this),t=Dt(e.source),n=e.flags;return"/"+t+"/"+Dt(n===void 0&&Hs(p1,e)&&!("flags"in p1)?dme(e):n)},{unsafe:!0});var e0,gme=In?Object.defineProperties:function(e,t){sn(e);for(var n,r=$i(t),o=zc(t),a=o.length,l=0;a>l;)Fo.f(e,n=o[l++],r[n]);return e},v1=js("document","documentElement"),s9=a1("IE_PROTO"),y1=function(){},u9=function(e){return"<script>"+e+"<\/script>"},c9=function(e){e.write(u9("")),e.close();var t=e.parentWindow.Object;return e=null,t},t0=function(){try{e0=new ActiveXObject("htmlfile")}catch{}var e,t;t0=typeof document<"u"?document.domain&&e0?c9(e0):((t=Fh("iframe")).style.display="none",v1.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(u9("document.F=Object")),e.close(),e.F):c9(e0);for(var n=$y.length;n--;)delete t0.prototype[$y[n]];return t0()};qy[s9]=!0;var n0=Object.create||function(e,t){var n;return e!==null?(y1.prototype=sn(e),n=new y1,y1.prototype=null,n[s9]=e):n=t0(),t===void 0?n:gme(n,t)},b1=Ut("unscopables"),w1=Array.prototype;w1[b1]==null&&Fo.f(w1,b1,{configurable:!0,value:n0(null)});var Kh=function(e){w1[b1][e]=!0},mme=n9.includes;Wt({target:"Array",proto:!0},{includes:function(e){return mme(this,e,arguments.length>1?arguments[1]:void 0)}}),Kh("includes");var pme=Ut("match"),S1=function(e){var t;return Pt(e)&&((t=e[pme])!==void 0?!!t:Lo(e)=="RegExp")},vme=ce.TypeError,C1=function(e){if(S1(e))throw vme("The method doesn't accept regular expressions");return e},yme=Ut("match"),k1=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[yme]=!1,"/./"[e](t)}catch{}}return!1},bme=Pe("".indexOf);Wt({target:"String",proto:!0,forced:!k1("includes")},{includes:function(e){return!!~bme(Dt(so(this)),Dt(C1(e)),arguments.length>1?arguments[1]:void 0)}});var wme=/"/g,Sme=Pe("".replace);Wt({target:"String",proto:!0,forced:gt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Dt(so(this)),r="<a",(r+=' name="'+Sme(Dt(t),wme,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var x1=function(e,t,n){var r,o;sn(e);try{if(!(r=Us(e,"return"))){if(t==="throw")throw n;return n}r=lt(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return sn(r),n},Cme=function(e,t,n,r){try{return r?t(sn(n)[0],n[1]):t(n)}catch(o){x1(e,"throw",o)}},Uc={},kme=Ut("iterator"),xme=Array.prototype,d9=function(e){return e!==void 0&&(Uc.Array===e||xme[kme]===e)},qh=function(e,t,n){var r=o1(t);r in e?Fo.f(e,r,Uy(0,n)):e[r]=n},Eme=Ut("iterator"),E1=function(e){if(e!=null)return Us(e,Eme)||Us(e,"@@iterator")||Uc[Yy(e)]},Dme=ce.TypeError,f9=function(e,t){var n=arguments.length<2?E1(e):t;if(Qi(n))return sn(lt(n,e));throw Dme(Hy(e)+" is not iterable")},h9=ce.Array,g9=Ut("iterator"),m9=!1;try{var Ame=0,p9={next:function(){return{done:!!Ame++}},return:function(){m9=!0}};p9[g9]=function(){return this},Array.from(p9,function(){throw 2})}catch{}var D1=function(e,t){if(!m9)return!1;var n=!1;try{var r={};r[g9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Vme=!D1(function(e){Array.from(e)});Wt({target:"Array",stat:!0,forced:Vme},{from:function(e){var t=Zi(e),n=Qy(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Gs(o,r>2?arguments[2]:void 0));var l,s,u,c,d,f,g=E1(t),h=0;if(!g||this==h9&&d9(g))for(l=Ks(t),s=n?new this(l):h9(l);l>h;h++)f=a?o(t[h],h):t[h],qh(s,h,f);else for(d=(c=f9(t,g)).next,s=n?new this:[];!(u=lt(d,c)).done;h++)f=a?Cme(c,o,[u.value,h],!0):u.value,qh(s,h,f);return s.length=h,s}});var qs,v9,y9,Bme=Pe("".charAt),b9=Pe("".charCodeAt),_me=Pe("".slice),Tme=function(e){return function(t,n){var r,o,a=Dt(so(t)),l=Mh(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=b9(a,l))<55296||r>56319||l+1===s||(o=b9(a,l+1))<56320||o>57343?e?Bme(a,l):r:e?_me(a,l,l+2):o-56320+(r-55296<<10)+65536}},w9={charAt:Tme(!0)},Pme=!gt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),S9=a1("IE_PROTO"),A1=ce.Object,Nme=A1.prototype,r0=Pme?A1.getPrototypeOf:function(e){var t=Zi(e);if(ln(t,S9))return t[S9];var n=t.constructor;return St(n)&&t instanceof n?n.prototype:t instanceof A1?Nme:null},V1=Ut("iterator"),C9=!1;[].keys&&("next"in(y9=[].keys())?(v9=r0(r0(y9)))!==Object.prototype&&(qs=v9):C9=!0);var Ome=qs==null||gt(function(){var e={};return qs[V1].call(e)!==e});Ome&&(qs={}),St(qs[V1])||Ar(qs,V1,function(){return this});var B1={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:C9},Ime=Fo.f,k9=Ut("toStringTag"),o0=function(e,t,n){e&&!ln(e=n?e:e.prototype,k9)&&Ime(e,k9,{configurable:!0,value:t})},Fme=B1.IteratorPrototype,Rme=function(){return this},Lme=ce.String,Mme=ce.TypeError,Wc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return sn(r),function(a){if(typeof a=="object"||St(a))return a;throw Mme("Can't set "+Lme(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),jme=Rc.PROPER,zme=Rc.CONFIGURABLE,x9=B1.IteratorPrototype,a0=B1.BUGGY_SAFARI_ITERATORS,Yh=Ut("iterator"),Hme=function(){return this},_1=function(e,t,n,r,o,a,l){(function(b,m,w,S){var C=m+" Iterator";b.prototype=n0(Fme,{next:Uy(1,w)}),o0(b,C,!1),Uc[C]=Rme})(n,t,r);var s,u,c,d=function(b){if(b===o&&y)return y;if(!a0&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new n(this,b)}}return function(){return new n(this)}},f=t+" Iterator",g=!1,h=e.prototype,p=h[Yh]||h["@@iterator"]||o&&h[o],y=!a0&&p||d(o),v=t=="Array"&&h.entries||p;if(v&&(s=r0(v.call(new e)))!==Object.prototype&&s.next&&(r0(s)!==x9&&(Wc?Wc(s,x9):St(s[Yh])||Ar(s,Yh,Hme)),o0(s,f,!0)),jme&&o=="values"&&p&&p.name!=="values"&&(zme?Ro(h,"name","values"):(g=!0,y=function(){return lt(p,this)})),o)if(u={values:d("values"),keys:a?y:d("keys"),entries:d("entries")},l)for(c in u)(a0||g||!(c in h))&&Ar(h,c,u[c]);else Wt({target:t,proto:!0,forced:a0||g},u);return h[Yh]!==y&&Ar(h,Yh,y,{name:o}),Uc[t]=y,u},Ume=w9.charAt,Wme=tr.set,Gme=tr.getterFor("String Iterator");_1(String,"String",function(e){Wme(this,{type:"String Iterator",string:Dt(e),index:0})},function(){var e,t=Gme(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ume(n,r),t.index+=e.length,{value:e,done:!1})});var T1,Kme=Hh.f,E9=Pe("".endsWith),qme=Pe("".slice),Yme=Math.min,D9=k1("endsWith"),Xme=!(D9||(T1=Kme(String.prototype,"endsWith"),!T1||T1.writable));Wt({target:"String",proto:!0,forced:!Xme&&!D9},{endsWith:function(e){var t=Dt(so(this));C1(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:Yme(Lc(n),r),a=Dt(e);return E9?E9(t,a,o):qme(t,o-a.length,o)===a}});var Jme=Pe([].join),Zme=Jy!=Object,Qme=X7("join",",");Wt({target:"Array",proto:!0,forced:Zme||!Qme},{join:function(e){return Jme($i(this),e===void 0?",":e)}});var $me=Ut("species"),i0=function(e){return Oh>=51||!gt(function(){var t=[];return(t.constructor={})[$me]=function(){return{foo:1}},t[e](Boolean).foo!==1})},epe=Mc.map,tpe=i0("map");Wt({target:"Array",proto:!0,forced:!tpe},{map:function(e){return epe(this,e,arguments.length>1?arguments[1]:void 0)}});var P1=ce.RegExp,N1=gt(function(){var e=P1("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),npe=N1||gt(function(){return!P1("a","y").sticky}),l0={BROKEN_CARET:N1||gt(function(){var e=P1("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:npe,UNSUPPORTED_Y:N1},rpe=ce.RegExp,O1=gt(function(){var e=rpe(".","s");return!(e.dotAll&&e.exec(`
52
+ `)&&e.flags==="s")}),ope=ce.RegExp,I1=gt(function(){var e=ope("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ape=tr.get,ipe=Xx("native-string-replace",String.prototype.replace),s0=RegExp.prototype.exec,F1=s0,lpe=Pe("".charAt),spe=Pe("".indexOf),upe=Pe("".replace),R1=Pe("".slice),L1=function(){var e=/a/,t=/b*/g;return lt(s0,e,"a"),lt(s0,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),A9=l0.BROKEN_CARET,M1=/()??/.exec("")[1]!==void 0;(L1||M1||A9||O1||I1)&&(F1=function(e){var t,n,r,o,a,l,s,u=this,c=ape(u),d=Dt(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=lt(F1,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=A9&&u.sticky,p=lt(m1,u),y=u.source,v=0,b=d;if(h&&(p=upe(p,"y",""),spe(p,"g")===-1&&(p+="g"),b=R1(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&lpe(d,u.lastIndex-1)!==`
53
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),M1&&(n=new RegExp("^"+y+"$(?!\\s)",p)),L1&&(r=u.lastIndex),o=lt(s0,h?n:u,b),h?o?(o.input=R1(o.input,v),o[0]=R1(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:L1&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),M1&&o&&o.length>1&&lt(ipe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=n0(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Xh=F1;Wt({target:"RegExp",proto:!0,forced:/./.exec!==Xh},{exec:Xh});var j1=Function.prototype,V9=j1.apply,cpe=j1.bind,B9=j1.call,z1=typeof Reflect=="object"&&Reflect.apply||(cpe?B9.bind(V9):function(){return B9.apply(V9,arguments)}),dpe=Ut("species"),H1=RegExp.prototype,U1=function(e,t,n,r){var o=Ut(e),a=!gt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!gt(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[dpe]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Pe(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=Pe(c),y=d.exec;return y===Xh||y===H1.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});Ar(String.prototype,e,u[0]),Ar(H1,o,u[1])}r&&Ro(H1[o],"sham",!0)},fpe=w9.charAt,W1=function(e,t,n){return t+(n?fpe(e,t).length:1)},hpe=Math.floor,G1=Pe("".charAt),gpe=Pe("".replace),K1=Pe("".slice),mpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ppe=/\$([$&'`]|\d{1,2})/g,vpe=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=ppe;return o!==void 0&&(o=Zi(o),u=mpe),gpe(a,u,function(c,d){var f;switch(G1(d,0)){case"$":return"$";case"&":return e;case"`":return K1(t,0,n);case"'":return K1(t,l);case"<":f=o[K1(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=hpe(g/10);return h===0?c:h<=s?r[h-1]===void 0?G1(d,1):r[h-1]+G1(d,1):c}f=r[g-1]}return f===void 0?"":f})},ype=ce.TypeError,Jh=function(e,t){var n=e.exec;if(St(n)){var r=lt(n,e,t);return r!==null&&sn(r),r}if(Lo(e)==="RegExp")return lt(Xh,e,t);throw ype("RegExp#exec called on incompatible receiver")},q1=Ut("replace"),bpe=Math.max,wpe=Math.min,Spe=Pe([].concat),Y1=Pe([].push),_9=Pe("".indexOf),T9=Pe("".slice),Cpe="a".replace(/./,"$0")==="$0",P9=!!/./[q1]&&/./[q1]("a","$0")==="";U1("replace",function(e,t,n){var r=P9?"$":"$0";return[function(o,a){var l=so(this),s=o==null?void 0:Us(o,q1);return s?lt(s,o,l,a):lt(t,Dt(l),o,a)},function(o,a){var l=sn(this),s=Dt(o);if(typeof a=="string"&&_9(a,r)===-1&&_9(a,"$<")===-1){var u=n(t,l,s,a);if(u.done)return u.value}var c=St(a);c||(a=Dt(a));var d=l.global;if(d){var f=l.unicode;l.lastIndex=0}for(var g=[];;){var h=Jh(l,s);if(h===null||(Y1(g,h),!d))break;Dt(h[0])===""&&(l.lastIndex=W1(s,Lc(l.lastIndex),f))}for(var p,y="",v=0,b=0;b<g.length;b++){for(var m=Dt((h=g[b])[0]),w=bpe(wpe(Mh(h.index),s.length),0),S=[],C=1;C<h.length;C++)Y1(S,(p=h[C])===void 0?p:String(p));var x=h.groups;if(c){var k=Spe([m],S,w,s);x!==void 0&&Y1(k,x);var E=Dt(z1(a,void 0,k))}else E=vpe(m,s,w,S,x,a);w>=v&&(y+=T9(s,v,w)+E,v=w+m.length)}return y+T9(s,v)}]},!!gt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Cpe||P9);/*! *****************************************************************************
54
54
  Copyright (c) Microsoft Corporation.
55
55
 
56
56
  Permission to use, copy, modify, and/or distribute this software for any
@@ -63,17 +63,17 @@ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#
63
63
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
64
64
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
65
65
  PERFORMANCE OF THIS SOFTWARE.
66
- ***************************************************************************** */var X1=function(e,t){return X1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},X1(e,t)};function Gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}X1(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var uo=function(){return uo=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},uo.apply(this,arguments)};function co(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 it(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function J1(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Cpe=0,N9=function(){this.id=""+Cpe++},kpe=tr.set,xpe=tr.getterFor("Array Iterator"),Zh=_1(Array,"Array",function(e,t){kpe(this,{type:"Array Iterator",target:$i(e),index:0,kind:t})},function(){var e=xpe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Uc.Arguments=Uc.Array,Kh("keys"),Kh("values"),Kh("entries");var Kc=function(e,t,n){for(var r in t)Ar(e,r,t[r],n);return e},Epe=ce.Array,Dpe=Math.max,Z1=function(e,t,n){for(var r=Ks(e),o=jc(t,r),a=jc(n===void 0?r:n,r),l=Epe(Dpe(a-o,0)),s=0;o<a;o++,s++)qh(l,s,e[o]);return l.length=s,l},O9=Uh.f,I9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ape={f:function(e){return I9&&Lo(e)=="Window"?function(t){try{return O9(t)}catch{return Z1(I9)}}(e):O9($i(e))}},F9=gt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),u0=Object.isExtensible,Ys=gt(function(){u0(1)})||F9?function(e){return!!Pt(e)&&(!F9||Lo(e)!="ArrayBuffer")&&(!u0||u0(e))}:u0,Vpe=!gt(function(){return Object.isExtensible(Object.preventExtensions({}))}),c0=Nh(function(e){var t=Fo.f,n=!1,r=Qx("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=Uh.f,u=Pe([].splice),c={};c[r]=1,s(c).length&&(Uh.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Wt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ape.f}))},fastKey:function(s,u){if(!Pt(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!ln(s,r)){if(!Ys(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!ln(s,r)){if(!Ys(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Vpe&&n&&Ys(s)&&!ln(s,r)&&a(s),s}};qy[r]=!0}),Bpe=ce.TypeError,d0=function(e,t){this.stopped=e,this.result=t},R9=d0.prototype,Qh=function(e,t,n){var r,o,a,l,s,u,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=Gs(t,d),y=function(b){return r&&x1(r,"normal",b),new d0(!0,b)},v=function(b){return f?(sn(b),h?p(b[0],b[1],y):p(b[0],b[1])):h?p(b,y):p(b)};if(g)r=e;else{if(!(o=E1(e)))throw Bpe(Hy(e)+" is not iterable");if(d9(o)){for(a=0,l=Ks(e);l>a;a++)if((s=v(e[a]))&&Hs(R9,s))return s;return new d0(!1)}r=f9(e,o)}for(u=r.next;!(c=lt(u,r)).done;){try{s=v(c.value)}catch(b){x1(r,"throw",b)}if(typeof s=="object"&&s&&Hs(R9,s))return s}return new d0(!1)},_pe=ce.TypeError,f0=function(e,t){if(Hs(t,e))return e;throw _pe("Incorrect invocation")},L9=function(e,t,n){var r,o;return Wc&&St(r=t.constructor)&&r!==n&&Pt(o=r.prototype)&&o!==n.prototype&&Wc(e,o),e},M9=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=ce[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=Pe(s[v]);Ar(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!Pt(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!Pt(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!Pt(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(Gh(e,!St(l)||!(o||s.forEach&&!gt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),c0.enable();else if(Gh(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=gt(function(){f.has(1)}),p=D1(function(v){new l(v)}),y=!o&&gt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){f0(v,s);var m=L9(new l,v,u);return b!=null&&Qh(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Wt({global:!0,forced:u!=l},c),o0(u,e),o||n.setStrong(u,e,r),u},h0=c0.getWeakData,Tpe=tr.set,Ppe=tr.getterFor,Npe=Mc.find,Ope=Mc.findIndex,Ipe=Pe([].splice),Fpe=0,g0=function(e){return e.frozen||(e.frozen=new j9)},j9=function(){this.entries=[]},Q1=function(e,t){return Npe(e.entries,function(n){return n[0]===t})};j9.prototype={get:function(e){var t=Q1(this,e);if(t)return t[1]},has:function(e){return!!Q1(this,e)},set:function(e,t){var n=Q1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ope(this.entries,function(n){return n[0]===e});return~t&&Ipe(this.entries,t,1),!!~t}};var $h,z9={getConstructor:function(e,t,n,r){var o=e(function(u,c){f0(u,a),Tpe(u,{type:t,id:Fpe++,frozen:void 0}),c!=null&&Qh(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=Ppe(t),s=function(u,c,d){var f=l(u),g=h0(sn(c),!0);return g===!0?g0(f).set(c,d):g[f.id]=d,u};return Kc(a,{delete:function(u){var c=l(this);if(!Pt(u))return!1;var d=h0(u);return d===!0?g0(c).delete(u):d&&ln(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!Pt(u))return!1;var d=h0(u);return d===!0?g0(c).has(u):d&&ln(d,c.id)}}),Kc(a,n?{get:function(u){var c=l(this);if(Pt(u)){var d=h0(u);return d===!0?g0(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},m0=tr.enforce,Rpe=!ce.ActiveXObject&&"ActiveXObject"in ce,H9=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lpe=M9("WeakMap",H9,z9);if(R7&&Rpe){$h=z9.getConstructor(H9,"WeakMap",!0),c0.enable();var eg=Lpe.prototype,U9=Pe(eg.delete),p0=Pe(eg.has),W9=Pe(eg.get),G9=Pe(eg.set);Kc(eg,{delete:function(e){if(Pt(e)&&!Ys(e)){var t=m0(this);return t.frozen||(t.frozen=new $h),U9(this,e)||t.frozen.delete(e)}return U9(this,e)},has:function(e){if(Pt(e)&&!Ys(e)){var t=m0(this);return t.frozen||(t.frozen=new $h),p0(this,e)||t.frozen.has(e)}return p0(this,e)},get:function(e){if(Pt(e)&&!Ys(e)){var t=m0(this);return t.frozen||(t.frozen=new $h),p0(this,e)?W9(this,e):t.frozen.get(e)}return W9(this,e)},set:function(e,t){if(Pt(e)&&!Ys(e)){var n=m0(this);n.frozen||(n.frozen=new $h),p0(this,e)?G9(this,e,t):n.frozen.set(e,t)}else G9(this,e,t);return this}})}var $1=Ut("iterator"),K9=Ut("toStringTag"),eE=Zh.values,q9=function(e,t){if(e){if(e[$1]!==eE)try{Ro(e,$1,eE)}catch{e[$1]=eE}if(e[K9]||Ro(e,K9,t),Xy[t]){for(var n in Zh)if(e[n]!==Zh[n])try{Ro(e,n,Zh[n])}catch{e[n]=Zh[n]}}}};for(var tE in Xy)q9(ce[tE]&&ce[tE].prototype,tE);q9(H7,"DOMTokenList");var nE=new WeakMap,rE=new WeakMap,oE=new WeakMap,v0=new WeakMap,aE=new WeakMap,y0=new WeakMap,iE=new WeakMap,lE=new WeakMap,b0=new WeakMap,Y9=new WeakMap,X9=new WeakMap,J9=new WeakMap,Z9=new WeakMap,tg=new WeakMap,qc=new WeakMap,sE=new WeakMap,w0=new WeakMap,uE=new WeakMap,S0=new WeakMap,C0=new WeakMap,Q9=new WeakMap,Xs=new WeakMap,cE=new WeakMap,$9=new WeakMap,dE=new WeakMap,Mpe=Mc.find,eF=!0;"find"in[]&&Array(1).find(function(){eF=!1}),Wt({target:"Array",proto:!0,forced:eF},{find:function(e){return Mpe(this,e,arguments.length>1?arguments[1]:void 0)}}),Kh("find"),Wt({global:!0},{globalThis:ce});const jpe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Dy&&(M.fn.css=Dy),ao&&(M.fn.append=ao),Sc&&(M.fn.addClass=Sc),Cc&&(M.fn.removeClass=Cc),kc&&(M.fn.hasClass=kc),da&&(M.fn.on=da),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),Cy&&(M.fn.removeAttr=Cy),Ec&&(M.fn.hide=Ec),Ey&&(M.fn.show=Ey),sI&&(M.fn.offset=sI),ky&&(M.fn.width=ky),xy&&(M.fn.height=xy),Dc&&(M.fn.parent=Dc),By&&(M.fn.parents=By),cI&&(M.fn.is=cI),xc&&(M.fn.dataset=xc),ca&&(M.fn.val=ca),Vy&&(M.fn.text=Vy),Ui&&(M.fn.html=Ui),Vc&&(M.fn.children=Vc),Bc&&(M.fn.remove=Bc),Ac&&(M.fn.find=Ac),Ay&&(M.fn.each=Ay),_c&&(M.fn.empty=_c);var pa,nr,fE=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Mo=function(e){return Js(e)&&e.nodeType===1},Js=function(e){var t=fE(e);return!!t&&e instanceof t.Node},tF=function(e){var t=e&&e.anchorNode&&fE(e.anchorNode);return!!t&&e instanceof t.Selection},nF=function(e){return Js(e)&&e.nodeType===3},hE=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},rF=function(e,t,n){for(var r,o=e.childNodes,a=o[t],l=t,s=!1,u=!1;(Js(r=a)&&r.nodeType===8||Mo(a)&&a.childNodes.length===0||Mo(a)&&a.getAttribute("contenteditable")==="false")&&(!s||!u);)l>=o.length?(s=!0,l=t-1,n="backward"):l<0?(u=!0,l=t+1,n="forward"):(a=o[l],t=l,l+=n==="forward"?1:-1);return[a,t]},zpe=function(e,t,n){return it(rF(e,t,n),1)[0]},Hpe=function e(t){var n,r,o="";if(nF(t)&&t.nodeValue)return t.nodeValue;if(Mo(t)){try{for(var a=co(Array.from(t.childNodes)),l=a.next();!l.done;l=a.next())o+=e(l.value)}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(o+=`
67
- `)}return o};function oF(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],a=o.nodeType;a==3?t(o,e):a!=1&&a!=9&&a!=11||oF(o,t)}}function aF(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==pa.ELEMENT_NODE?"":t.tagName.toLowerCase()}(nr=pa||(pa={}))[nr.ELEMENT_NODE=1]="ELEMENT_NODE",nr[nr.TEXT_NODE=3]="TEXT_NODE",nr[nr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",nr[nr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",nr[nr.COMMENT_NODE=8]="COMMENT_NODE",nr[nr.DOCUMENT_NODE=9]="DOCUMENT_NODE",nr[nr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",nr[nr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var gE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ng=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),rg=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Upe=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Wpe=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),og=!Wpe&&!Upe&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",R={getWindow:function(e){var t=Q9.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=C0.get(t);return n||(n=new N9,C0.set(t,n)),n},setNewKey:function(e){var t=new N9;C0.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=qc.get(r);if(o==null){if(B.isEditor(r))return n;break}var a=tg.get(r);if(a==null)break;n.unshift(a),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=R.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return qc.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=R.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[R.findPath(e,t)[0]];return he.get(e,n)},toDOMNode:function(e,t){var n;if(B.isEditor(t))n=sE.get(e);else{var r=R.findKey(e,t);n=uE.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){n===void 0&&(n={});var r,o=n.editable,a=o!==void 0&&o,l=R.toDOMNode(e,e);try{r=Mo(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===l&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=re.isBackward(t),a=R.toDOMPoint(e,n),l=re.isCollapsed(t)?a:R.toDOMPoint(e,r),s=R.getWindow(e).document.createRange(),u=it(o?l:a,2),c=u[0],d=u[1],f=it(o?a:l,2),g=f[0],h=f[1],p=!!(Mo(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),y=!!(Mo(g)?g:g.parentElement).getAttribute("data-slate-zero-width");return s.setStart(c,p?1:d),s.setEnd(g,y?1:h),s},toDOMPoint:function(e,t){var n,r,o,a=it(B.node(e,t.path),1)[0],l=R.toDOMNode(e,a);B.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(l.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var c=co(s),d=c.next();!d.done;d=c.next()){var f=d.value,g=f.childNodes[0];if(g!=null&&g.textContent!=null){var h=g.textContent.length,p=f.getAttribute("data-slate-length"),y=u+(p==null?h:parseInt(p,10));if(t.offset<=y){o=[g,Math.min(h,Math.max(0,t.offset-u))];break}u=y}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}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=Mo(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?w0.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(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var a,l=R.toSlateNode(e,t.target),s=R.findPath(e,l);if(B.isVoid(e,l)){var u=o.getBoundingClientRect(),c=e.isInline(l)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,d=B.point(e,s,{edge:c?"start":"end"}),f=c?B.before(e,d):B.after(e,d);if(f)return B.range(e,f)}var g=this.getWindow(e).document;if(g.caretRangeFromPoint)a=g.caretRangeFromPoint(n,r);else{var h=g.caretPositionFromPoint(n,r);h&&((a=g.createRange()).setStart(h.offsetNode,h.offset),a.setEnd(h.offsetNode,h.offset))}if(!a)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return R.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,a,l,s,u=n.exactMatch,c=n.suppressThrow;if((tF(t)?t.anchorNode:t.startContainer)&&(tF(t)?(r=t.anchorNode,o=t.anchorOffset,a=t.focusNode,l=t.focusOffset,s=mE&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,a=t.endContainer,l=t.endOffset,s=t.collapsed)),r==null||a==null||o==null||l==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var d=R.toSlatePoint(e,[r,o],{exactMatch:u,suppressThrow:c});if(!d)return null;var f=s?d:R.toSlatePoint(e,[a,l],{exactMatch:u,suppressThrow:c});if(!f)return null;var g={anchor:d,focus:f};return re.isExpanded(g)&&re.isForward(g)&&Mo(a)&&B.void(e,{at:g.focus,mode:"highest"})&&(g=B.unhangRange(e,g,{voids:!0})),g},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,a=n.suppressThrow,l=it(o?t:function(m){var w,S=it(m,2),C=S[0],x=S[1];if(Mo(C)&&C.childNodes.length){var k=x===C.childNodes.length,E=k?x-1:x;for(C=(w=it(rF(C,E,k?"backward":"forward"),2))[0],k=(E=w[1])<x;Mo(C)&&C.childNodes.length;){var A=k?C.childNodes.length-1:0;C=zpe(C,A,k?"backward":"forward")}x=k&&C.textContent!=null?C.textContent.length:0}return[C,x]}(t),2),s=l[0],u=l[1],c=s.parentNode,d=null,f=0;if(c){var g=c.closest('[data-slate-void="true"]'),h=c.closest("[data-slate-leaf]"),p=null;if(h){d=h.closest('[data-slate-node="text"]');var y=R.getWindow(e).document.createRange();y.setStart(d,0),y.setEnd(s,u);var v=y.cloneContents();J1(J1([],it(rI(v.querySelectorAll("[data-slate-zero-width]")))),it(rI(v.querySelectorAll("[contenteditable=false]")))).forEach(function(m){m.parentNode.removeChild(m)}),f=v.textContent.length,p=d}else g&&((h=g.querySelector("[data-slate-leaf]"))?(d=h.closest('[data-slate-node="text"]'),f=(p=h).textContent.length,p.querySelectorAll("[data-slate-zero-width]").forEach(function(m){f-=m.textContent.length})):f=1);p&&f===p.textContent.length&&(c.hasAttribute("data-slate-zero-width")||ng&&(!((r=p.textContent)===null||r===void 0)&&r.endsWith(`
68
- `)))&&f--}if(!d){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var b=R.toSlateNode(e,d);return{path:R.findPath(e,b),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return B.hasPath(e,n.path)&&B.hasPath(e,r.path)},getNodeType:function(e){return _e.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return he.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=B.nodes(e,{universal:!0});try{for(var a=co(o),l=a.next();!l.done;l=a.next()){var s=it(l.value,1)[0];_e.isElement(s)&&r.push(s)}}catch(u){t={error:u}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=it(B.nodes(e,{match:function(a){return n.checkNodeType(a,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=it(B.nodes(e,{match:function(r){return Se.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=it(B.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&it(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(B.isEnd(e,n.anchor,t)||B.isEnd(e,n.focus,t))},getTextarea:function(e){var t=nE.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return v0.get(e)||null},getHoverbar:function(e){return y0.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(typeof n!="number"||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,a=R.getTextarea(e).$textArea,l=a==null?void 0:a[0].childNodes;if(l)try{for(var s=co(Array.from(l)),u=s.next();!u.done;u=s.next()){var c=u.value;if(c.nodeType!==3)break;c.remove()}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var d=B.nodes(e,{match:function(y){return!(!_e.isElement(y)||e.isInline(y))},universal:!0});try{for(var f=co(d),g=f.next();!g.done;g=f.next()){var h=g.value;if(h!=null){var p=h[0];oF(R.toDOMNode(e,p),function(y,v){var b=M(v);b.attr("data-slate-string")||b.attr("data-slate-zero-width")||b.attr("data-w-e-reserve")||v.removeChild(y)})}}}catch(y){r={error:y}}finally{try{g&&!g.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=B.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var a=co(r),l=a.next();!l.done;l=a.next())l.value,o++}catch(s){t={error:s}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||re.isExpanded(t))return!1;var n=R.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=B.node(e,t);if(n==null)return!1;var r=it(n,1)[0].children;return r.length===1&&r[0].text===""}},Gpe=1,iF={},ag={},Kpe=Mc.filter,qpe=i0("filter");Wt({target:"Array",proto:!0,forced:!qpe},{filter:function(e){return Kpe(this,e,arguments.length>1?arguments[1]:void 0)}});var pE=`
69
- \v\f\r                 \u2028\u2029\uFEFF`,lF=Pe("".replace),k0="["+pE+"]",Ype=RegExp("^"+k0+k0+"*"),Xpe=RegExp(k0+k0+"*$"),Jpe=function(e){return function(t){var n=Dt(so(t));return 1&e&&(n=lF(n,Ype,"")),2&e&&(n=lF(n,Xpe,"")),n}},Zpe={trim:Jpe(3)},Qpe=Rc.PROPER,$pe=Zpe.trim;Wt({target:"String",proto:!0,forced:function(e){return gt(function(){return!!pE[e]()||"​…᠎"[e]()!=="​…᠎"||Qpe&&pE[e].name!==e})}("trim")},{trim:function(){return $pe(this)}});var vE=[],sF={};function eve(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var ig,Yc,uF,yE,x0=ce.Promise,cF=Ut("species"),bE=function(e){var t=js(e),n=Fo.f;In&&t&&!t[cF]&&n(t,cF,{configurable:!0,get:function(){return this}})},tve=ce.TypeError,nve=Ut("species"),dF=function(e,t){var n,r=sn(e).constructor;return r===void 0||(n=sn(r)[nve])==null?t:function(o){if(Qy(o))return o;throw tve(Hy(o)+" is not a constructor")}(n)},fF=Pe([].slice),hF=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ic),el=Lo(ce.process)=="process",wE=ce.setImmediate,gF=ce.clearImmediate,rve=ce.process,SE=ce.Dispatch,ove=ce.Function,mF=ce.MessageChannel,ave=ce.String,CE=0,lg={};try{ig=ce.location}catch{}var kE=function(e){if(ln(lg,e)){var t=lg[e];delete lg[e],t()}},xE=function(e){return function(){kE(e)}},pF=function(e){kE(e.data)},vF=function(e){ce.postMessage(ave(e),ig.protocol+"//"+ig.host)};wE&&gF||(wE=function(e){var t=fF(arguments,1);return lg[++CE]=function(){z1(St(e)?e:ove(e),void 0,t)},Yc(CE),CE},gF=function(e){delete lg[e]},el?Yc=function(e){rve.nextTick(xE(e))}:SE&&SE.now?Yc=function(e){SE.now(xE(e))}:mF&&!hF?(yE=(uF=new mF).port2,uF.port1.onmessage=pF,Yc=Gs(yE.postMessage,yE)):ce.addEventListener&&St(ce.postMessage)&&!ce.importScripts&&ig&&ig.protocol!=="file:"&&!gt(vF)?(Yc=vF,ce.addEventListener("message",pF,!1)):Yc="onreadystatechange"in Fh("script")?function(e){v1.appendChild(Fh("script")).onreadystatechange=function(){v1.removeChild(this),kE(e)}}:function(e){setTimeout(xE(e),0)});var sg,Zs,ug,Xc,EE,DE,AE,yF,bF={set:wE},ive=/ipad|iphone|ipod/i.test(Ic)&&ce.Pebble!==void 0,lve=/web0s(?!.*chrome)/i.test(Ic),sve=Hh.f,VE=bF.set,wF=ce.MutationObserver||ce.WebKitMutationObserver,SF=ce.document,CF=ce.process,E0=ce.Promise,kF=sve(ce,"queueMicrotask"),xF=kF&&kF.value;xF||(sg=function(){var e,t;for(el&&(e=CF.domain)&&e.exit();Zs;){t=Zs.fn,Zs=Zs.next;try{t()}catch(n){throw Zs?Xc():ug=void 0,n}}ug=void 0,e&&e.enter()},hF||el||lve||!wF||!SF?!ive&&E0&&E0.resolve?((AE=E0.resolve(void 0)).constructor=E0,yF=Gs(AE.then,AE),Xc=function(){yF(sg)}):el?Xc=function(){CF.nextTick(sg)}:(VE=Gs(VE,ce),Xc=function(){VE(sg)}):(EE=!0,DE=SF.createTextNode(""),new wF(sg).observe(DE,{characterData:!0}),Xc=function(){DE.data=EE=!EE}));var BE,EF,DF,AF,VF=xF||function(e){var t={fn:e,next:void 0};ug&&(ug.next=t),Zs||(Zs=t,Xc()),ug=t},uve=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Qi(t),this.reject=Qi(n)},_E={f:function(e){return new uve(e)}},TE=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},cve=typeof window=="object",BF=bF.set,dve=Ut("species"),va="Promise",_F=tr.getterFor(va),fve=tr.set,hve=tr.getterFor(va),Qs=x0&&x0.prototype,ya=x0,cg=Qs,TF=ce.TypeError,PE=ce.document,NE=ce.process,Jc=_E.f,gve=Jc,mve=!!(PE&&PE.createEvent&&ce.dispatchEvent),PF=St(ce.PromiseRejectionEvent),NF=!1,dg=Gh(va,function(){var e=Ky(ya),t=e!==String(ya);if(!t&&Oh===66)return!0;if(Oh>=51&&/native code/.test(e))return!1;var n=new ya(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[dve]=r,!(NF=n.then(function(){})instanceof r)||!t&&cve&&!PF}),pve=dg||!D1(function(e){ya.all(e).catch(function(){})}),OF=function(e){var t;return!(!Pt(e)||!St(t=e.then))&&t},OE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;VF(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var l,s,u,c=n[a++],d=o?c.ok:c.fail,f=c.resolve,g=c.reject,h=c.domain;try{d?(o||(e.rejection===2&&yve(e),e.rejection=1),d===!0?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),u=!0)),l===c.promise?g(TF("Promise-chain cycle")):(s=OF(l))?lt(s,l,f,g):f(l)):g(r)}catch(p){h&&!u&&h.exit(),g(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&vve(e)})}},IF=function(e,t,n){var r,o;mve?((r=PE.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ce.dispatchEvent(r)):r={promise:t,reason:n},!PF&&(o=ce["on"+e])?o(r):e==="unhandledrejection"&&function(a,l){var s=ce.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,l))}("Unhandled promise rejection",n)},vve=function(e){lt(BF,ce,function(){var t,n=e.facade,r=e.value;if(FF(e)&&(t=TE(function(){el?NE.emit("unhandledRejection",r,n):IF("unhandledrejection",n,r)}),e.rejection=el||FF(e)?2:1,t.error))throw t.value})},FF=function(e){return e.rejection!==1&&!e.parent},yve=function(e){lt(BF,ce,function(){var t=e.facade;el?NE.emit("rejectionHandled",t):IF("rejectionhandled",t,e.value)})},Zc=function(e,t,n){return function(r){e(t,r,n)}},Qc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,OE(e,!0))},IE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw TF("Promise can't be resolved itself");var r=OF(t);r?VF(function(){var o={done:!1};try{lt(r,t,Zc(IE,o,e),Zc(Qc,o,e))}catch(a){Qc(o,a,e)}}):(e.value=t,e.state=1,OE(e,!1))}catch(o){Qc({done:!1},o,e)}}};if(dg&&(cg=(ya=function(e){f0(this,cg),Qi(e),lt(BE,this);var t=_F(this);try{e(Zc(IE,t),Zc(Qc,t))}catch(n){Qc(t,n)}}).prototype,(BE=function(e){fve(this,{type:va,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Kc(cg,{then:function(e,t){var n=hve(this),r=n.reactions,o=Jc(dF(this,ya));return o.ok=!St(e)||e,o.fail=St(t)&&t,o.domain=el?NE.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&OE(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),EF=function(){var e=new BE,t=_F(e);this.promise=e,this.resolve=Zc(IE,t),this.reject=Zc(Qc,t)},_E.f=Jc=function(e){return e===ya||e===DF?new EF(e):gve(e)},St(x0)&&Qs!==Object.prototype)){AF=Qs.then,NF||(Ar(Qs,"then",function(e,t){var n=this;return new ya(function(r,o){lt(AF,n,r,o)}).then(e,t)},{unsafe:!0}),Ar(Qs,"catch",cg.catch,{unsafe:!0}));try{delete Qs.constructor}catch{}Wc&&Wc(Qs,cg)}Wt({global:!0,wrap:!0,forced:dg},{Promise:ya}),o0(ya,va,!1),bE(va),DF=js(va),Wt({target:va,stat:!0,forced:dg},{reject:function(e){var t=Jc(this);return lt(t.reject,void 0,e),t.promise}}),Wt({target:va,stat:!0,forced:dg},{resolve:function(e){return function(t,n){if(sn(t),Pt(n)&&n.constructor===t)return n;var r=_E.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Wt({target:va,stat:!0,forced:pve},{all:function(e){var t=this,n=Jc(t),r=n.resolve,o=n.reject,a=TE(function(){var l=Qi(t.resolve),s=[],u=0,c=1;Qh(e,function(d){var f=u++,g=!1;c++,lt(l,t,d).then(function(h){g||(g=!0,s[f]=h,--c||r(s))},o)}),--c||r(s)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=Jc(t),r=n.reject,o=TE(function(){var a=Qi(t.resolve);Qh(e,function(l){lt(a,t,l).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var $c=l0.UNSUPPORTED_Y,bve=Math.min,RF=[].push,wve=Pe(/./.exec),ed=Pe(RF),fg=Pe("".slice);function fo(e){Promise.resolve().then(e)}function LF(e,t){return _e.isElement(e)?function(n,r){var o=n.type,a=o===void 0?"":o,l=n.children,s=l===void 0?[]:l,u=B.isVoid(r,n),c="";u||(c=s.map(function(b){return LF(b,r)}).join(""));var d=function(b){return sF[b]||eve}(a),f=d(n,c,r),g="";if(g=typeof f=="string"?f:f.html||"",u||vE.forEach(function(b){return g=b(n,g)}),typeof f=="string")return g;var h=f.prefix,p=h===void 0?"":h,y=f.suffix,v=y===void 0?"":y;return p&&(g=p+g),v&&(g+=v),g}(e,t):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var a=o;a=function(u){return u.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(a);var l=R.getParentsNodes(r,n).some(function(u){return R.getNodeType(u)==="pre"});if(l||(a=a.replace(/\r\n|\r|\n/g,"<br>")),l&&(a=a.replace(/&nbsp;/g," ")),a===""){var s=R.getParentNode(null,n);if(!s||s.children.length!==0)return a;a="<br>"}return vE.forEach(function(u){return a=u(n,a)}),a}(e,t)}function MF(e){return"w-e-element-"+e}U1("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var l=Dt(so(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(o===void 0)return[l];if(!S1(o))return lt(t,l,o,s);for(var u,c,d,f=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,p=new RegExp(o.source,g+"g");(u=lt(Xh,p,l))&&!((c=p.lastIndex)>h&&(ed(f,fg(l,h,u.index)),u.length>1&&u.index<l.length&&z1(RF,f,Z1(u,1)),d=u[0].length,h=c,f.length>=s));)p.lastIndex===u.index&&p.lastIndex++;return h===l.length?!d&&wve(p,"")||ed(f,""):ed(f,fg(l,h)),f.length>s?Z1(f,0,s):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:lt(t,this,o,a)}:t,[function(o,a){var l=so(this),s=o==null?void 0:Us(o,e);return s?lt(s,o,l,a):lt(r,Dt(l),o,a)},function(o,a){var l=sn(this),s=Dt(o),u=n(r,l,s,a,r!==t);if(u.done)return u.value;var c=dF(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+($c?"g":"y"),g=new c($c?"^(?:"+l.source+")":l,f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return Jh(g,s)===null?[s]:[];for(var p=0,y=0,v=[];y<s.length;){g.lastIndex=$c?0:y;var b,m=Jh(g,$c?fg(s,y):s);if(m===null||(b=bve(Lc(g.lastIndex+($c?y:0)),s.length))===p)y=W1(s,y,d);else{if(ed(v,fg(s,p,y)),v.length===h)return v;for(var w=1;w<=m.length-1;w++)if(ed(v,m[w]),v.length===h)return v;y=p=b}}return ed(v,fg(s,p)),v}]},!!gt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),$c);var jF=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},zF=function(e,t,n){var r=R.toDOMRange(e,t).getBoundingClientRect(),o=R.toDOMRange(e,n).getBoundingClientRect();return jF(r,o)&&jF(o,r)},HF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],UF=[],FE=[],D0={},Sve=Fo.f,Cve=Uh.f,kve=tr.enforce,xve=Ut("match"),ai=ce.RegExp,td=ai.prototype,Eve=ce.SyntaxError,Dve=Pe(m1),Ave=Pe(td.exec),A0=Pe("".charAt),WF=Pe("".replace),GF=Pe("".indexOf),Vve=Pe("".slice),Bve=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$s=/a/g,RE=/a/g,_ve=new ai($s)!==$s,KF=l0.MISSED_STICKY,Tve=l0.UNSUPPORTED_Y,Pve=In&&(!_ve||KF||O1||I1||gt(function(){return RE[xve]=!1,ai($s)!=$s||ai(RE)==RE||ai($s,"i")!="/a/i"}));if(Gh("RegExp",Pve)){for(var tl=function(e,t){var n,r,o,a,l,s,u=Hs(td,this),c=S1(e),d=t===void 0,f=[],g=e;if(!u&&c&&d&&e.constructor===tl)return e;if((c||Hs(td,e))&&(e=e.source,d&&(t="flags"in g?g.flags:Dve(g))),e=e===void 0?"":Dt(e),t=t===void 0?"":Dt(t),g=e,O1&&"dotAll"in $s&&(r=!!t&&GF(t,"s")>-1)&&(t=WF(t,/s/g,"")),n=t,KF&&"sticky"in $s&&(o=!!t&&GF(t,"y")>-1)&&Tve&&(t=WF(t,/y/g,"")),I1&&(a=function(h){for(var p,y=h.length,v=0,b="",m=[],w={},S=!1,C=!1,x=0,k="";v<=y;v++){if((p=A0(h,v))==="\\")p+=A0(h,++v);else if(p==="]")S=!1;else if(!S)switch(!0){case p==="[":S=!0;break;case p==="(":Ave(Bve,Vve(h,v+1))&&(v+=2,C=!0),b+=p,x++;continue;case(p===">"&&C):if(k===""||ln(w,k))throw new Eve("Invalid capture group name");w[k]=!0,m[m.length]=[k,x],C=!1,k="";continue}C?k+=p:b+=p}return[b,m]}(e),e=a[0],f=a[1]),l=L9(ai(e,t),u?this:td,tl),(r||o||f.length)&&(s=kve(l),r&&(s.dotAll=!0,s.raw=tl(function(h){for(var p,y=h.length,v=0,b="",m=!1;v<=y;v++)(p=A0(h,v))!=="\\"?m||p!=="."?(p==="["?m=!0:p==="]"&&(m=!1),b+=p):b+="[\\s\\S]":b+=p+A0(h,++v);return b}(e),n)),o&&(s.sticky=!0),f.length&&(s.groups=f)),e!==g)try{Ro(l,"source",g===""?"(?:)":g)}catch{}return l},Nve=function(e){e in tl||Sve(tl,e,{configurable:!0,get:function(){return ai[e]},set:function(t){ai[e]=t}})},qF=Cve(ai),YF=0;qF.length>YF;)Nve(qF[YF++]);td.constructor=tl,tl.prototype=td,Ar(ce,"RegExp",tl)}bE("RegExp");var Ove=new RegExp(" ","g");function XF(e){return e.replace(Ove," ")}function JF(e,t){var n=e.length;if(n){var r=e[n-1];if(Se.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function Ive(e,t,n){return{type:"paragraph",children:[{text:M(e).text().replace(/\s+/gm," ")}]}}function LE(e,t){var n=function(a,l){var s=[];if(a.attr("data-w-e-is-void")!=null)return s;var u=a[0].childNodes;return u.length===1&&u[0].nodeName==="BR"?(s.push({text:""}),s):(u.forEach(function(c){if(c.nodeType!==pa.ELEMENT_NODE){if(c.nodeType===pa.TEXT_NODE){var d=c.textContent||"";if(d.trim()===""&&d.indexOf(`
66
+ ***************************************************************************** */var X1=function(e,t){return X1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},X1(e,t)};function Gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}X1(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var uo=function(){return uo=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},uo.apply(this,arguments)};function co(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 it(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function J1(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var kpe=0,N9=function(){this.id=""+kpe++},xpe=tr.set,Epe=tr.getterFor("Array Iterator"),Zh=_1(Array,"Array",function(e,t){xpe(this,{type:"Array Iterator",target:$i(e),index:0,kind:t})},function(){var e=Epe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Uc.Arguments=Uc.Array,Kh("keys"),Kh("values"),Kh("entries");var Kc=function(e,t,n){for(var r in t)Ar(e,r,t[r],n);return e},Dpe=ce.Array,Ape=Math.max,Z1=function(e,t,n){for(var r=Ks(e),o=jc(t,r),a=jc(n===void 0?r:n,r),l=Dpe(Ape(a-o,0)),s=0;o<a;o++,s++)qh(l,s,e[o]);return l.length=s,l},O9=Uh.f,I9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vpe={f:function(e){return I9&&Lo(e)=="Window"?function(t){try{return O9(t)}catch{return Z1(I9)}}(e):O9($i(e))}},F9=gt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),u0=Object.isExtensible,Ys=gt(function(){u0(1)})||F9?function(e){return!!Pt(e)&&(!F9||Lo(e)!="ArrayBuffer")&&(!u0||u0(e))}:u0,Bpe=!gt(function(){return Object.isExtensible(Object.preventExtensions({}))}),c0=Nh(function(e){var t=Fo.f,n=!1,r=Qx("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=Uh.f,u=Pe([].splice),c={};c[r]=1,s(c).length&&(Uh.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Wt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Vpe.f}))},fastKey:function(s,u){if(!Pt(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!ln(s,r)){if(!Ys(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!ln(s,r)){if(!Ys(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Bpe&&n&&Ys(s)&&!ln(s,r)&&a(s),s}};qy[r]=!0}),_pe=ce.TypeError,d0=function(e,t){this.stopped=e,this.result=t},R9=d0.prototype,Qh=function(e,t,n){var r,o,a,l,s,u,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=Gs(t,d),y=function(b){return r&&x1(r,"normal",b),new d0(!0,b)},v=function(b){return f?(sn(b),h?p(b[0],b[1],y):p(b[0],b[1])):h?p(b,y):p(b)};if(g)r=e;else{if(!(o=E1(e)))throw _pe(Hy(e)+" is not iterable");if(d9(o)){for(a=0,l=Ks(e);l>a;a++)if((s=v(e[a]))&&Hs(R9,s))return s;return new d0(!1)}r=f9(e,o)}for(u=r.next;!(c=lt(u,r)).done;){try{s=v(c.value)}catch(b){x1(r,"throw",b)}if(typeof s=="object"&&s&&Hs(R9,s))return s}return new d0(!1)},Tpe=ce.TypeError,f0=function(e,t){if(Hs(t,e))return e;throw Tpe("Incorrect invocation")},L9=function(e,t,n){var r,o;return Wc&&St(r=t.constructor)&&r!==n&&Pt(o=r.prototype)&&o!==n.prototype&&Wc(e,o),e},M9=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=ce[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=Pe(s[v]);Ar(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!Pt(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!Pt(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!Pt(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(Gh(e,!St(l)||!(o||s.forEach&&!gt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),c0.enable();else if(Gh(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=gt(function(){f.has(1)}),p=D1(function(v){new l(v)}),y=!o&&gt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){f0(v,s);var m=L9(new l,v,u);return b!=null&&Qh(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Wt({global:!0,forced:u!=l},c),o0(u,e),o||n.setStrong(u,e,r),u},h0=c0.getWeakData,Ppe=tr.set,Npe=tr.getterFor,Ope=Mc.find,Ipe=Mc.findIndex,Fpe=Pe([].splice),Rpe=0,g0=function(e){return e.frozen||(e.frozen=new j9)},j9=function(){this.entries=[]},Q1=function(e,t){return Ope(e.entries,function(n){return n[0]===t})};j9.prototype={get:function(e){var t=Q1(this,e);if(t)return t[1]},has:function(e){return!!Q1(this,e)},set:function(e,t){var n=Q1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ipe(this.entries,function(n){return n[0]===e});return~t&&Fpe(this.entries,t,1),!!~t}};var $h,z9={getConstructor:function(e,t,n,r){var o=e(function(u,c){f0(u,a),Ppe(u,{type:t,id:Rpe++,frozen:void 0}),c!=null&&Qh(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=Npe(t),s=function(u,c,d){var f=l(u),g=h0(sn(c),!0);return g===!0?g0(f).set(c,d):g[f.id]=d,u};return Kc(a,{delete:function(u){var c=l(this);if(!Pt(u))return!1;var d=h0(u);return d===!0?g0(c).delete(u):d&&ln(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!Pt(u))return!1;var d=h0(u);return d===!0?g0(c).has(u):d&&ln(d,c.id)}}),Kc(a,n?{get:function(u){var c=l(this);if(Pt(u)){var d=h0(u);return d===!0?g0(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},m0=tr.enforce,Lpe=!ce.ActiveXObject&&"ActiveXObject"in ce,H9=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Mpe=M9("WeakMap",H9,z9);if(R7&&Lpe){$h=z9.getConstructor(H9,"WeakMap",!0),c0.enable();var eg=Mpe.prototype,U9=Pe(eg.delete),p0=Pe(eg.has),W9=Pe(eg.get),G9=Pe(eg.set);Kc(eg,{delete:function(e){if(Pt(e)&&!Ys(e)){var t=m0(this);return t.frozen||(t.frozen=new $h),U9(this,e)||t.frozen.delete(e)}return U9(this,e)},has:function(e){if(Pt(e)&&!Ys(e)){var t=m0(this);return t.frozen||(t.frozen=new $h),p0(this,e)||t.frozen.has(e)}return p0(this,e)},get:function(e){if(Pt(e)&&!Ys(e)){var t=m0(this);return t.frozen||(t.frozen=new $h),p0(this,e)?W9(this,e):t.frozen.get(e)}return W9(this,e)},set:function(e,t){if(Pt(e)&&!Ys(e)){var n=m0(this);n.frozen||(n.frozen=new $h),p0(this,e)?G9(this,e,t):n.frozen.set(e,t)}else G9(this,e,t);return this}})}var $1=Ut("iterator"),K9=Ut("toStringTag"),eE=Zh.values,q9=function(e,t){if(e){if(e[$1]!==eE)try{Ro(e,$1,eE)}catch{e[$1]=eE}if(e[K9]||Ro(e,K9,t),Xy[t]){for(var n in Zh)if(e[n]!==Zh[n])try{Ro(e,n,Zh[n])}catch{e[n]=Zh[n]}}}};for(var tE in Xy)q9(ce[tE]&&ce[tE].prototype,tE);q9(H7,"DOMTokenList");var nE=new WeakMap,rE=new WeakMap,oE=new WeakMap,v0=new WeakMap,aE=new WeakMap,y0=new WeakMap,iE=new WeakMap,lE=new WeakMap,b0=new WeakMap,Y9=new WeakMap,X9=new WeakMap,J9=new WeakMap,Z9=new WeakMap,tg=new WeakMap,qc=new WeakMap,sE=new WeakMap,w0=new WeakMap,uE=new WeakMap,S0=new WeakMap,C0=new WeakMap,Q9=new WeakMap,Xs=new WeakMap,cE=new WeakMap,$9=new WeakMap,dE=new WeakMap,jpe=Mc.find,eF=!0;"find"in[]&&Array(1).find(function(){eF=!1}),Wt({target:"Array",proto:!0,forced:eF},{find:function(e){return jpe(this,e,arguments.length>1?arguments[1]:void 0)}}),Kh("find"),Wt({global:!0},{globalThis:ce});const zpe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Dy&&(M.fn.css=Dy),ao&&(M.fn.append=ao),Sc&&(M.fn.addClass=Sc),Cc&&(M.fn.removeClass=Cc),kc&&(M.fn.hasClass=kc),da&&(M.fn.on=da),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),Cy&&(M.fn.removeAttr=Cy),Ec&&(M.fn.hide=Ec),Ey&&(M.fn.show=Ey),sI&&(M.fn.offset=sI),ky&&(M.fn.width=ky),xy&&(M.fn.height=xy),Dc&&(M.fn.parent=Dc),By&&(M.fn.parents=By),cI&&(M.fn.is=cI),xc&&(M.fn.dataset=xc),ca&&(M.fn.val=ca),Vy&&(M.fn.text=Vy),Ui&&(M.fn.html=Ui),Vc&&(M.fn.children=Vc),Bc&&(M.fn.remove=Bc),Ac&&(M.fn.find=Ac),Ay&&(M.fn.each=Ay),_c&&(M.fn.empty=_c);var pa,nr,fE=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Mo=function(e){return Js(e)&&e.nodeType===1},Js=function(e){var t=fE(e);return!!t&&e instanceof t.Node},tF=function(e){var t=e&&e.anchorNode&&fE(e.anchorNode);return!!t&&e instanceof t.Selection},nF=function(e){return Js(e)&&e.nodeType===3},hE=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},rF=function(e,t,n){for(var r,o=e.childNodes,a=o[t],l=t,s=!1,u=!1;(Js(r=a)&&r.nodeType===8||Mo(a)&&a.childNodes.length===0||Mo(a)&&a.getAttribute("contenteditable")==="false")&&(!s||!u);)l>=o.length?(s=!0,l=t-1,n="backward"):l<0?(u=!0,l=t+1,n="forward"):(a=o[l],t=l,l+=n==="forward"?1:-1);return[a,t]},Hpe=function(e,t,n){return it(rF(e,t,n),1)[0]},Upe=function e(t){var n,r,o="";if(nF(t)&&t.nodeValue)return t.nodeValue;if(Mo(t)){try{for(var a=co(Array.from(t.childNodes)),l=a.next();!l.done;l=a.next())o+=e(l.value)}catch(u){n={error:u}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(o+=`
67
+ `)}return o};function oF(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],a=o.nodeType;a==3?t(o,e):a!=1&&a!=9&&a!=11||oF(o,t)}}function aF(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==pa.ELEMENT_NODE?"":t.tagName.toLowerCase()}(nr=pa||(pa={}))[nr.ELEMENT_NODE=1]="ELEMENT_NODE",nr[nr.TEXT_NODE=3]="TEXT_NODE",nr[nr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",nr[nr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",nr[nr.COMMENT_NODE=8]="COMMENT_NODE",nr[nr.DOCUMENT_NODE=9]="DOCUMENT_NODE",nr[nr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",nr[nr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var gE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ng=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),rg=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Wpe=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Gpe=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),og=!Gpe&&!Wpe&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",R={getWindow:function(e){var t=Q9.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=C0.get(t);return n||(n=new N9,C0.set(t,n)),n},setNewKey:function(e){var t=new N9;C0.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=qc.get(r);if(o==null){if(B.isEditor(r))return n;break}var a=tg.get(r);if(a==null)break;n.unshift(a),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=R.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return qc.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=R.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[R.findPath(e,t)[0]];return he.get(e,n)},toDOMNode:function(e,t){var n;if(B.isEditor(t))n=sE.get(e);else{var r=R.findKey(e,t);n=uE.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){n===void 0&&(n={});var r,o=n.editable,a=o!==void 0&&o,l=R.toDOMNode(e,e);try{r=Mo(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===l&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=re.isBackward(t),a=R.toDOMPoint(e,n),l=re.isCollapsed(t)?a:R.toDOMPoint(e,r),s=R.getWindow(e).document.createRange(),u=it(o?l:a,2),c=u[0],d=u[1],f=it(o?a:l,2),g=f[0],h=f[1],p=!!(Mo(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),y=!!(Mo(g)?g:g.parentElement).getAttribute("data-slate-zero-width");return s.setStart(c,p?1:d),s.setEnd(g,y?1:h),s},toDOMPoint:function(e,t){var n,r,o,a=it(B.node(e,t.path),1)[0],l=R.toDOMNode(e,a);B.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(l.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var c=co(s),d=c.next();!d.done;d=c.next()){var f=d.value,g=f.childNodes[0];if(g!=null&&g.textContent!=null){var h=g.textContent.length,p=f.getAttribute("data-slate-length"),y=u+(p==null?h:parseInt(p,10));if(t.offset<=y){o=[g,Math.min(h,Math.max(0,t.offset-u))];break}u=y}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}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=Mo(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?w0.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(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var a,l=R.toSlateNode(e,t.target),s=R.findPath(e,l);if(B.isVoid(e,l)){var u=o.getBoundingClientRect(),c=e.isInline(l)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,d=B.point(e,s,{edge:c?"start":"end"}),f=c?B.before(e,d):B.after(e,d);if(f)return B.range(e,f)}var g=this.getWindow(e).document;if(g.caretRangeFromPoint)a=g.caretRangeFromPoint(n,r);else{var h=g.caretPositionFromPoint(n,r);h&&((a=g.createRange()).setStart(h.offsetNode,h.offset),a.setEnd(h.offsetNode,h.offset))}if(!a)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return R.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,a,l,s,u=n.exactMatch,c=n.suppressThrow;if((tF(t)?t.anchorNode:t.startContainer)&&(tF(t)?(r=t.anchorNode,o=t.anchorOffset,a=t.focusNode,l=t.focusOffset,s=mE&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,a=t.endContainer,l=t.endOffset,s=t.collapsed)),r==null||a==null||o==null||l==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var d=R.toSlatePoint(e,[r,o],{exactMatch:u,suppressThrow:c});if(!d)return null;var f=s?d:R.toSlatePoint(e,[a,l],{exactMatch:u,suppressThrow:c});if(!f)return null;var g={anchor:d,focus:f};return re.isExpanded(g)&&re.isForward(g)&&Mo(a)&&B.void(e,{at:g.focus,mode:"highest"})&&(g=B.unhangRange(e,g,{voids:!0})),g},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,a=n.suppressThrow,l=it(o?t:function(m){var w,S=it(m,2),C=S[0],x=S[1];if(Mo(C)&&C.childNodes.length){var k=x===C.childNodes.length,E=k?x-1:x;for(C=(w=it(rF(C,E,k?"backward":"forward"),2))[0],k=(E=w[1])<x;Mo(C)&&C.childNodes.length;){var A=k?C.childNodes.length-1:0;C=Hpe(C,A,k?"backward":"forward")}x=k&&C.textContent!=null?C.textContent.length:0}return[C,x]}(t),2),s=l[0],u=l[1],c=s.parentNode,d=null,f=0;if(c){var g=c.closest('[data-slate-void="true"]'),h=c.closest("[data-slate-leaf]"),p=null;if(h){d=h.closest('[data-slate-node="text"]');var y=R.getWindow(e).document.createRange();y.setStart(d,0),y.setEnd(s,u);var v=y.cloneContents();J1(J1([],it(rI(v.querySelectorAll("[data-slate-zero-width]")))),it(rI(v.querySelectorAll("[contenteditable=false]")))).forEach(function(m){m.parentNode.removeChild(m)}),f=v.textContent.length,p=d}else g&&((h=g.querySelector("[data-slate-leaf]"))?(d=h.closest('[data-slate-node="text"]'),f=(p=h).textContent.length,p.querySelectorAll("[data-slate-zero-width]").forEach(function(m){f-=m.textContent.length})):f=1);p&&f===p.textContent.length&&(c.hasAttribute("data-slate-zero-width")||ng&&(!((r=p.textContent)===null||r===void 0)&&r.endsWith(`
68
+ `)))&&f--}if(!d){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var b=R.toSlateNode(e,d);return{path:R.findPath(e,b),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return B.hasPath(e,n.path)&&B.hasPath(e,r.path)},getNodeType:function(e){return _e.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return he.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=B.nodes(e,{universal:!0});try{for(var a=co(o),l=a.next();!l.done;l=a.next()){var s=it(l.value,1)[0];_e.isElement(s)&&r.push(s)}}catch(u){t={error:u}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=it(B.nodes(e,{match:function(a){return n.checkNodeType(a,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=it(B.nodes(e,{match:function(r){return Se.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=it(B.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&it(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(B.isEnd(e,n.anchor,t)||B.isEnd(e,n.focus,t))},getTextarea:function(e){var t=nE.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return v0.get(e)||null},getHoverbar:function(e){return y0.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(typeof n!="number"||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,a=R.getTextarea(e).$textArea,l=a==null?void 0:a[0].childNodes;if(l)try{for(var s=co(Array.from(l)),u=s.next();!u.done;u=s.next()){var c=u.value;if(c.nodeType!==3)break;c.remove()}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var d=B.nodes(e,{match:function(y){return!(!_e.isElement(y)||e.isInline(y))},universal:!0});try{for(var f=co(d),g=f.next();!g.done;g=f.next()){var h=g.value;if(h!=null){var p=h[0];oF(R.toDOMNode(e,p),function(y,v){var b=M(v);b.attr("data-slate-string")||b.attr("data-slate-zero-width")||b.attr("data-w-e-reserve")||v.removeChild(y)})}}}catch(y){r={error:y}}finally{try{g&&!g.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=B.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var a=co(r),l=a.next();!l.done;l=a.next())l.value,o++}catch(s){t={error:s}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||re.isExpanded(t))return!1;var n=R.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=B.node(e,t);if(n==null)return!1;var r=it(n,1)[0].children;return r.length===1&&r[0].text===""}},Kpe=1,iF={},ag={},qpe=Mc.filter,Ype=i0("filter");Wt({target:"Array",proto:!0,forced:!Ype},{filter:function(e){return qpe(this,e,arguments.length>1?arguments[1]:void 0)}});var pE=`
69
+ \v\f\r                 \u2028\u2029\uFEFF`,lF=Pe("".replace),k0="["+pE+"]",Xpe=RegExp("^"+k0+k0+"*"),Jpe=RegExp(k0+k0+"*$"),Zpe=function(e){return function(t){var n=Dt(so(t));return 1&e&&(n=lF(n,Xpe,"")),2&e&&(n=lF(n,Jpe,"")),n}},Qpe={trim:Zpe(3)},$pe=Rc.PROPER,eve=Qpe.trim;Wt({target:"String",proto:!0,forced:function(e){return gt(function(){return!!pE[e]()||"​…᠎"[e]()!=="​…᠎"||$pe&&pE[e].name!==e})}("trim")},{trim:function(){return eve(this)}});var vE=[],sF={};function tve(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var ig,Yc,uF,yE,x0=ce.Promise,cF=Ut("species"),bE=function(e){var t=js(e),n=Fo.f;In&&t&&!t[cF]&&n(t,cF,{configurable:!0,get:function(){return this}})},nve=ce.TypeError,rve=Ut("species"),dF=function(e,t){var n,r=sn(e).constructor;return r===void 0||(n=sn(r)[rve])==null?t:function(o){if(Qy(o))return o;throw nve(Hy(o)+" is not a constructor")}(n)},fF=Pe([].slice),hF=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ic),el=Lo(ce.process)=="process",wE=ce.setImmediate,gF=ce.clearImmediate,ove=ce.process,SE=ce.Dispatch,ave=ce.Function,mF=ce.MessageChannel,ive=ce.String,CE=0,lg={};try{ig=ce.location}catch{}var kE=function(e){if(ln(lg,e)){var t=lg[e];delete lg[e],t()}},xE=function(e){return function(){kE(e)}},pF=function(e){kE(e.data)},vF=function(e){ce.postMessage(ive(e),ig.protocol+"//"+ig.host)};wE&&gF||(wE=function(e){var t=fF(arguments,1);return lg[++CE]=function(){z1(St(e)?e:ave(e),void 0,t)},Yc(CE),CE},gF=function(e){delete lg[e]},el?Yc=function(e){ove.nextTick(xE(e))}:SE&&SE.now?Yc=function(e){SE.now(xE(e))}:mF&&!hF?(yE=(uF=new mF).port2,uF.port1.onmessage=pF,Yc=Gs(yE.postMessage,yE)):ce.addEventListener&&St(ce.postMessage)&&!ce.importScripts&&ig&&ig.protocol!=="file:"&&!gt(vF)?(Yc=vF,ce.addEventListener("message",pF,!1)):Yc="onreadystatechange"in Fh("script")?function(e){v1.appendChild(Fh("script")).onreadystatechange=function(){v1.removeChild(this),kE(e)}}:function(e){setTimeout(xE(e),0)});var sg,Zs,ug,Xc,EE,DE,AE,yF,bF={set:wE},lve=/ipad|iphone|ipod/i.test(Ic)&&ce.Pebble!==void 0,sve=/web0s(?!.*chrome)/i.test(Ic),uve=Hh.f,VE=bF.set,wF=ce.MutationObserver||ce.WebKitMutationObserver,SF=ce.document,CF=ce.process,E0=ce.Promise,kF=uve(ce,"queueMicrotask"),xF=kF&&kF.value;xF||(sg=function(){var e,t;for(el&&(e=CF.domain)&&e.exit();Zs;){t=Zs.fn,Zs=Zs.next;try{t()}catch(n){throw Zs?Xc():ug=void 0,n}}ug=void 0,e&&e.enter()},hF||el||sve||!wF||!SF?!lve&&E0&&E0.resolve?((AE=E0.resolve(void 0)).constructor=E0,yF=Gs(AE.then,AE),Xc=function(){yF(sg)}):el?Xc=function(){CF.nextTick(sg)}:(VE=Gs(VE,ce),Xc=function(){VE(sg)}):(EE=!0,DE=SF.createTextNode(""),new wF(sg).observe(DE,{characterData:!0}),Xc=function(){DE.data=EE=!EE}));var BE,EF,DF,AF,VF=xF||function(e){var t={fn:e,next:void 0};ug&&(ug.next=t),Zs||(Zs=t,Xc()),ug=t},cve=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Qi(t),this.reject=Qi(n)},_E={f:function(e){return new cve(e)}},TE=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},dve=typeof window=="object",BF=bF.set,fve=Ut("species"),va="Promise",_F=tr.getterFor(va),hve=tr.set,gve=tr.getterFor(va),Qs=x0&&x0.prototype,ya=x0,cg=Qs,TF=ce.TypeError,PE=ce.document,NE=ce.process,Jc=_E.f,mve=Jc,pve=!!(PE&&PE.createEvent&&ce.dispatchEvent),PF=St(ce.PromiseRejectionEvent),NF=!1,dg=Gh(va,function(){var e=Ky(ya),t=e!==String(ya);if(!t&&Oh===66)return!0;if(Oh>=51&&/native code/.test(e))return!1;var n=new ya(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[fve]=r,!(NF=n.then(function(){})instanceof r)||!t&&dve&&!PF}),vve=dg||!D1(function(e){ya.all(e).catch(function(){})}),OF=function(e){var t;return!(!Pt(e)||!St(t=e.then))&&t},OE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;VF(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var l,s,u,c=n[a++],d=o?c.ok:c.fail,f=c.resolve,g=c.reject,h=c.domain;try{d?(o||(e.rejection===2&&bve(e),e.rejection=1),d===!0?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),u=!0)),l===c.promise?g(TF("Promise-chain cycle")):(s=OF(l))?lt(s,l,f,g):f(l)):g(r)}catch(p){h&&!u&&h.exit(),g(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&yve(e)})}},IF=function(e,t,n){var r,o;pve?((r=PE.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ce.dispatchEvent(r)):r={promise:t,reason:n},!PF&&(o=ce["on"+e])?o(r):e==="unhandledrejection"&&function(a,l){var s=ce.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,l))}("Unhandled promise rejection",n)},yve=function(e){lt(BF,ce,function(){var t,n=e.facade,r=e.value;if(FF(e)&&(t=TE(function(){el?NE.emit("unhandledRejection",r,n):IF("unhandledrejection",n,r)}),e.rejection=el||FF(e)?2:1,t.error))throw t.value})},FF=function(e){return e.rejection!==1&&!e.parent},bve=function(e){lt(BF,ce,function(){var t=e.facade;el?NE.emit("rejectionHandled",t):IF("rejectionhandled",t,e.value)})},Zc=function(e,t,n){return function(r){e(t,r,n)}},Qc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,OE(e,!0))},IE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw TF("Promise can't be resolved itself");var r=OF(t);r?VF(function(){var o={done:!1};try{lt(r,t,Zc(IE,o,e),Zc(Qc,o,e))}catch(a){Qc(o,a,e)}}):(e.value=t,e.state=1,OE(e,!1))}catch(o){Qc({done:!1},o,e)}}};if(dg&&(cg=(ya=function(e){f0(this,cg),Qi(e),lt(BE,this);var t=_F(this);try{e(Zc(IE,t),Zc(Qc,t))}catch(n){Qc(t,n)}}).prototype,(BE=function(e){hve(this,{type:va,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Kc(cg,{then:function(e,t){var n=gve(this),r=n.reactions,o=Jc(dF(this,ya));return o.ok=!St(e)||e,o.fail=St(t)&&t,o.domain=el?NE.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&OE(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),EF=function(){var e=new BE,t=_F(e);this.promise=e,this.resolve=Zc(IE,t),this.reject=Zc(Qc,t)},_E.f=Jc=function(e){return e===ya||e===DF?new EF(e):mve(e)},St(x0)&&Qs!==Object.prototype)){AF=Qs.then,NF||(Ar(Qs,"then",function(e,t){var n=this;return new ya(function(r,o){lt(AF,n,r,o)}).then(e,t)},{unsafe:!0}),Ar(Qs,"catch",cg.catch,{unsafe:!0}));try{delete Qs.constructor}catch{}Wc&&Wc(Qs,cg)}Wt({global:!0,wrap:!0,forced:dg},{Promise:ya}),o0(ya,va,!1),bE(va),DF=js(va),Wt({target:va,stat:!0,forced:dg},{reject:function(e){var t=Jc(this);return lt(t.reject,void 0,e),t.promise}}),Wt({target:va,stat:!0,forced:dg},{resolve:function(e){return function(t,n){if(sn(t),Pt(n)&&n.constructor===t)return n;var r=_E.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Wt({target:va,stat:!0,forced:vve},{all:function(e){var t=this,n=Jc(t),r=n.resolve,o=n.reject,a=TE(function(){var l=Qi(t.resolve),s=[],u=0,c=1;Qh(e,function(d){var f=u++,g=!1;c++,lt(l,t,d).then(function(h){g||(g=!0,s[f]=h,--c||r(s))},o)}),--c||r(s)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=Jc(t),r=n.reject,o=TE(function(){var a=Qi(t.resolve);Qh(e,function(l){lt(a,t,l).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var $c=l0.UNSUPPORTED_Y,wve=Math.min,RF=[].push,Sve=Pe(/./.exec),ed=Pe(RF),fg=Pe("".slice);function fo(e){Promise.resolve().then(e)}function LF(e,t){return _e.isElement(e)?function(n,r){var o=n.type,a=o===void 0?"":o,l=n.children,s=l===void 0?[]:l,u=B.isVoid(r,n),c="";u||(c=s.map(function(b){return LF(b,r)}).join(""));var d=function(b){return sF[b]||tve}(a),f=d(n,c,r),g="";if(g=typeof f=="string"?f:f.html||"",u||vE.forEach(function(b){return g=b(n,g)}),typeof f=="string")return g;var h=f.prefix,p=h===void 0?"":h,y=f.suffix,v=y===void 0?"":y;return p&&(g=p+g),v&&(g+=v),g}(e,t):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var a=o;a=function(u){return u.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(a);var l=R.getParentsNodes(r,n).some(function(u){return R.getNodeType(u)==="pre"});if(l||(a=a.replace(/\r\n|\r|\n/g,"<br>")),l&&(a=a.replace(/&nbsp;/g," ")),a===""){var s=R.getParentNode(null,n);if(!s||s.children.length!==0)return a;a="<br>"}return vE.forEach(function(u){return a=u(n,a)}),a}(e,t)}function MF(e){return"w-e-element-"+e}U1("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var l=Dt(so(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(o===void 0)return[l];if(!S1(o))return lt(t,l,o,s);for(var u,c,d,f=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,p=new RegExp(o.source,g+"g");(u=lt(Xh,p,l))&&!((c=p.lastIndex)>h&&(ed(f,fg(l,h,u.index)),u.length>1&&u.index<l.length&&z1(RF,f,Z1(u,1)),d=u[0].length,h=c,f.length>=s));)p.lastIndex===u.index&&p.lastIndex++;return h===l.length?!d&&Sve(p,"")||ed(f,""):ed(f,fg(l,h)),f.length>s?Z1(f,0,s):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:lt(t,this,o,a)}:t,[function(o,a){var l=so(this),s=o==null?void 0:Us(o,e);return s?lt(s,o,l,a):lt(r,Dt(l),o,a)},function(o,a){var l=sn(this),s=Dt(o),u=n(r,l,s,a,r!==t);if(u.done)return u.value;var c=dF(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+($c?"g":"y"),g=new c($c?"^(?:"+l.source+")":l,f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return Jh(g,s)===null?[s]:[];for(var p=0,y=0,v=[];y<s.length;){g.lastIndex=$c?0:y;var b,m=Jh(g,$c?fg(s,y):s);if(m===null||(b=wve(Lc(g.lastIndex+($c?y:0)),s.length))===p)y=W1(s,y,d);else{if(ed(v,fg(s,p,y)),v.length===h)return v;for(var w=1;w<=m.length-1;w++)if(ed(v,m[w]),v.length===h)return v;y=p=b}}return ed(v,fg(s,p)),v}]},!!gt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),$c);var jF=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},zF=function(e,t,n){var r=R.toDOMRange(e,t).getBoundingClientRect(),o=R.toDOMRange(e,n).getBoundingClientRect();return jF(r,o)&&jF(o,r)},HF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],UF=[],FE=[],D0={},Cve=Fo.f,kve=Uh.f,xve=tr.enforce,Eve=Ut("match"),ai=ce.RegExp,td=ai.prototype,Dve=ce.SyntaxError,Ave=Pe(m1),Vve=Pe(td.exec),A0=Pe("".charAt),WF=Pe("".replace),GF=Pe("".indexOf),Bve=Pe("".slice),_ve=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$s=/a/g,RE=/a/g,Tve=new ai($s)!==$s,KF=l0.MISSED_STICKY,Pve=l0.UNSUPPORTED_Y,Nve=In&&(!Tve||KF||O1||I1||gt(function(){return RE[Eve]=!1,ai($s)!=$s||ai(RE)==RE||ai($s,"i")!="/a/i"}));if(Gh("RegExp",Nve)){for(var tl=function(e,t){var n,r,o,a,l,s,u=Hs(td,this),c=S1(e),d=t===void 0,f=[],g=e;if(!u&&c&&d&&e.constructor===tl)return e;if((c||Hs(td,e))&&(e=e.source,d&&(t="flags"in g?g.flags:Ave(g))),e=e===void 0?"":Dt(e),t=t===void 0?"":Dt(t),g=e,O1&&"dotAll"in $s&&(r=!!t&&GF(t,"s")>-1)&&(t=WF(t,/s/g,"")),n=t,KF&&"sticky"in $s&&(o=!!t&&GF(t,"y")>-1)&&Pve&&(t=WF(t,/y/g,"")),I1&&(a=function(h){for(var p,y=h.length,v=0,b="",m=[],w={},S=!1,C=!1,x=0,k="";v<=y;v++){if((p=A0(h,v))==="\\")p+=A0(h,++v);else if(p==="]")S=!1;else if(!S)switch(!0){case p==="[":S=!0;break;case p==="(":Vve(_ve,Bve(h,v+1))&&(v+=2,C=!0),b+=p,x++;continue;case(p===">"&&C):if(k===""||ln(w,k))throw new Dve("Invalid capture group name");w[k]=!0,m[m.length]=[k,x],C=!1,k="";continue}C?k+=p:b+=p}return[b,m]}(e),e=a[0],f=a[1]),l=L9(ai(e,t),u?this:td,tl),(r||o||f.length)&&(s=xve(l),r&&(s.dotAll=!0,s.raw=tl(function(h){for(var p,y=h.length,v=0,b="",m=!1;v<=y;v++)(p=A0(h,v))!=="\\"?m||p!=="."?(p==="["?m=!0:p==="]"&&(m=!1),b+=p):b+="[\\s\\S]":b+=p+A0(h,++v);return b}(e),n)),o&&(s.sticky=!0),f.length&&(s.groups=f)),e!==g)try{Ro(l,"source",g===""?"(?:)":g)}catch{}return l},Ove=function(e){e in tl||Cve(tl,e,{configurable:!0,get:function(){return ai[e]},set:function(t){ai[e]=t}})},qF=kve(ai),YF=0;qF.length>YF;)Ove(qF[YF++]);td.constructor=tl,tl.prototype=td,Ar(ce,"RegExp",tl)}bE("RegExp");var Ive=new RegExp(" ","g");function XF(e){return e.replace(Ive," ")}function JF(e,t){var n=e.length;if(n){var r=e[n-1];if(Se.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function Fve(e,t,n){return{type:"paragraph",children:[{text:M(e).text().replace(/\s+/gm," ")}]}}function LE(e,t){var n=function(a,l){var s=[];if(a.attr("data-w-e-is-void")!=null)return s;var u=a[0].childNodes;return u.length===1&&u[0].nodeName==="BR"?(s.push({text:""}),s):(u.forEach(function(c){if(c.nodeType!==pa.ELEMENT_NODE){if(c.nodeType===pa.TEXT_NODE){var d=c.textContent||"";if(d.trim()===""&&d.indexOf(`
70
70
  `)>=0)return;d&&(d=XF(d),JF(s,d)||s.push({text:d}))}}else{if(c.nodeName==="BR")return void(JF(s,`
71
71
  `)||s.push({text:`
72
- `}));var f=jE(M(c),l);Array.isArray(f)?f.forEach(function(g){return s.push(g)}):s.push(f)}}),s)}(e,t),r=function(a){for(var l in D0)if(a[0].matches(l))return D0[l];return Ive}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(a){B.isVoid(t,a)||(n.length===0&&(a.children=[{text:e.text().replace(/\s+/gm," ")}]),FE.forEach(function(l){a=l(e[0],a,t)}))}),o}function ME(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
73
- `));var n=e[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=XF(n)};return FE.forEach(function(o){r=o(e[0],r,t)}),r}function jE(e,t){UF.forEach(function(r){var o=r.selector,a=r.preParseHtml;e[0].matches(o)&&(e=M(a(e[0])))});var n=aF(e);return n==="span"?e.attr("data-w-e-type")?LE(e,t):ME(e,t):n==="code"?aF(e.parent())==="pre"?LE(e,t):ME(e,t):HF.includes(n)?ME(e,t):LE(e,t)}function ZF(e,t,n){var r=M(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function QF(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=M("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var a=jE(M(o),e);Array.isArray(a)?a.forEach(function(l){return n.push(l)}):n.push(a)}),n}var Fve=Fo.f,$F=c0.fastKey,eR=tr.set,zE=tr.getterFor,Rve={getConstructor:function(e,t,n,r){var o=e(function(c,d){f0(c,a),eR(c,{type:t,index:n0(null),first:void 0,last:void 0,size:0}),In||(c.size=0),d!=null&&Qh(d,c[r],{that:c,AS_ENTRIES:n})}),a=o.prototype,l=zE(t),s=function(c,d,f){var g,h,p=l(c),y=u(c,d);return y?y.value=f:(p.last=y={index:h=$F(d,!0),key:d,value:f,previous:g=p.last,next:void 0,removed:!1},p.first||(p.first=y),g&&(g.next=y),In?p.size++:c.size++,h!=="F"&&(p.index[h]=y)),c},u=function(c,d){var f,g=l(c),h=$F(d);if(h!=="F")return g.index[h];for(f=g.first;f;f=f.next)if(f.key==d)return f};return Kc(a,{clear:function(){for(var c=l(this),d=c.index,f=c.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete d[f.index],f=f.next;c.first=c.last=void 0,In?c.size=0:this.size=0},delete:function(c){var d=this,f=l(d),g=u(d,c);if(g){var h=g.next,p=g.previous;delete f.index[g.index],g.removed=!0,p&&(p.next=h),h&&(h.previous=p),f.first==g&&(f.first=h),f.last==g&&(f.last=p),In?f.size--:d.size--}return!!g},forEach:function(c){for(var d,f=l(this),g=Gs(c,arguments.length>1?arguments[1]:void 0);d=d?d.next:f.first;)for(g(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(c){return!!u(this,c)}}),Kc(a,n?{get:function(c){var d=u(this,c);return d&&d.value},set:function(c,d){return s(this,c===0?0:c,d)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),In&&Fve(a,"size",{get:function(){return l(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=zE(t),a=zE(r);_1(e,t,function(l,s){eR(this,{type:r,target:l,state:o(l),kind:s,last:void 0})},function(){for(var l=a(this),s=l.kind,u=l.last;u&&u.removed;)u=u.previous;return l.target&&(l.last=u=u?u.next:l.state.first)?s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}:(l.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),bE(t)}};M9("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Rve);var tR=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function nR(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Q.insertNodes(e,t,{mode:"highest"})}var Lve=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var a=it(re.edges(o),2),l=a[0],s=a[1],u=B.void(t,{at:l.path}),c=B.void(t,{at:s.path});if(!re.isCollapsed(o)||u){var d=R.toDOMRange(t,o),f=d.cloneContents(),g=f.childNodes[0];if(f.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(g=C)}),c){var h=it(c,1)[0],p=d.cloneRange(),y=R.toDOMNode(t,h);p.setEndAfter(y),f=p.cloneContents()}if(u&&(g=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var x=C.getAttribute("data-slate-zero-width")==="n";C.textContent=x?`
74
- `:""}),nF(g)){var v=g.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(g),f.appendChild(v),g=v}var b=t.getFragment(),m=JSON.stringify(b),w=window.btoa(encodeURIComponent(m));g.setAttribute("data-slate-fragment",w),r.setData("application/x-slate-fragment",w);var S=f.ownerDocument.createElement("div");return S.appendChild(f),S.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(S),r.setData("text/html",S.innerHTML),r.setData("text/plain",Hpe(S)),f.ownerDocument.body.removeChild(S),r}}},t.insertData=function(r){var o,a,l=r.getData("application/x-slate-fragment");if(l){var s=decodeURIComponent(window.atob(l)),u=JSON.parse(s);t.insertFragment(u)}else{var c=r.getData("text/plain"),d=r.getData("text/html");if(d)t.dangerouslyInsertHtml(d);else if(c){var f=c.split(/\r\n|\r|\n/),g=!1;try{for(var h=co(f),p=h.next();!p.done;p=h.next()){var y=p.value;g&&Q.splitNodes(t,{always:!0}),n(y),g=!0}}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}}},t},hg=function(e){return e!=null},Mve={object:!0,function:!0,undefined:!0},jve=/^\s*class[\s{/}]/,zve=Function.prototype.toString,rR=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!hg(r)&&hasOwnProperty.call(Mve,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!jve.test(zve.call(e))},HE=function(e){return e!=null},Hve=Object.keys,Uve=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return Hve(HE(e)?Object(e):e)},Wve=function(e){if(!HE(e))throw new TypeError("Cannot use null or undefined");return e},Gve=Math.max,oR=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,a=Gve(arguments.length,2);for(e=Object(Wve(e)),o=function(l){try{e[l]=t[l]}catch(s){n||(n=s)}},r=1;r<a;++r)Uve(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},Kve=Array.prototype.forEach,qve=Object.create,Yve=function(e,t){var n;for(n in e)t[n]=e[n]},aR=function(e){var t=qve(null);return Kve.call(arguments,function(n){HE(n)&&Yve(Object(n),t)}),t},UE="razdwatrzy",Xve=String.prototype.indexOf,gg=typeof UE.contains=="function"&&UE.contains("dwa")===!0&&UE.contains("foo")===!1?String.prototype.contains:function(e){return Xve.call(this,e,arguments[1])>-1},V0=Nh(function(e){var t=e.exports=function(n,r){var o,a,l,s,u;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],hg(n)?(o=gg.call(n,"c"),a=gg.call(n,"e"),l=gg.call(n,"w")):(o=l=!0,a=!1),u={value:r,configurable:o,enumerable:a,writable:l},s?oR(aR(s),u):u};t.gs=function(n,r,o){var a,l,s,u;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],hg(r)?rR(r)?hg(o)?rR(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,hg(n)?(a=gg.call(n,"c"),l=gg.call(n,"e")):(a=!0,l=!1),u={get:r,set:o,configurable:a,enumerable:l},s?oR(aR(s),u):u}}),WE=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Jve=Nh(function(e,t){var n,r,o,a,l,s,u,c=Function.prototype.apply,d=Function.prototype.call,f=Object.create,g=Object.defineProperty,h=Object.defineProperties,p=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};n=function(v,b){var m;return WE(b),p.call(this,"__ee__")?m=this.__ee__:(m=y.value=f(null),g(this,"__ee__",y),y.value=null),m[v]?typeof m[v]=="object"?m[v].push(b):m[v]=[m[v],b]:m[v]=b,this},r=function(v,b){var m,w;return WE(b),w=this,n.call(this,v,m=function(){o.call(w,v,m),c.call(b,this,arguments)}),m.__eeOnceListener__=b,this},o=function(v,b){var m,w,S,C;if(WE(b),!p.call(this,"__ee__"))return this;if(!(m=this.__ee__)[v])return this;if(typeof(w=m[v])=="object")for(C=0;S=w[C];++C)S!==b&&S.__eeOnceListener__!==b||(w.length===2?m[v]=w[C?0:1]:w.splice(C,1));else w!==b&&w.__eeOnceListener__!==b||delete m[v];return this},a=function(v){var b,m,w,S,C;if(p.call(this,"__ee__")&&(S=this.__ee__[v]))if(typeof S=="object"){for(m=arguments.length,C=new Array(m-1),b=1;b<m;++b)C[b-1]=arguments[b];for(S=S.slice(),b=0;w=S[b];++b)c.call(w,this,C)}else switch(arguments.length){case 1:d.call(S,this);break;case 2:d.call(S,this,arguments[1]);break;case 3:d.call(S,this,arguments[1],arguments[2]);break;default:for(m=arguments.length,C=new Array(m-1),b=1;b<m;++b)C[b-1]=arguments[b];c.call(S,this,C)}},l={on:n,once:r,off:o,emit:a},s={on:V0(n),once:V0(r),off:V0(o),emit:V0(a)},u=h({},s),e.exports=t=function(v){return v==null?f(u):h(Object(v),s)},t.methods=l});function B0(e){var t=$9.get(e);return t==null&&(t=Jve(),$9.set(e,t)),t}var _0=new WeakMap;function iR(e,t){var n=_0.get(e);n==null&&(n=new Set,_0.set(e,n)),n.add(t)}function Zve(e){return _0.get(e)||new Set}function Qve(e){_0.set(e,new Set)}function GE(e){var t=R.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function KE(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=GE(e);if(r==null)return t;var o=r.top,a=r.left,l=r.width,s=r.height,u=R.toDOMRange(e,n).getClientRects()[0];if(u==null)return t;u.width;var c=u.height,d={},f=u.top-o,g=u.left-a;if(g>l/2){var h=l-g;d.right=h+5+"px"}else d.left=g+5+"px";if(f>s/2){var p=s-f;d.bottom=p+5+"px"}else{var y=f+c;y<0&&(y=0),d.top=y+5+"px"}return d}function qE(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=_e.isElement(t)&&e.isVoid(t),a=_e.isElement(t)&&e.isInline(t),l=S0.get(t);if(l==null)return r;var s=l.getBoundingClientRect(),u=s.top,c=s.left,d=s.height,f=s.width;if(o){var g=function(k){var E=[];E.push(k);for(var A=0;E.length>0;){var N=E.pop();if(N==null||++A>1e4)break;var V=N.nodeName;if(N.nodeType===1){var D=V.toLowerCase();if(jpe.includes(D)||D==="iframe"||D==="video")return N;var P=N.children||[],O=P.length;if(O)for(var F=O-1;F>=0;F--)E.push(P[F])}}return null}(l);if(g!=null){var h=g.getBoundingClientRect();u=h.top,d=h.height}}var p=GE(e);if(p==null)return r;var y,v=p.top,b=p.left,m=p.width,w=p.height,S={},C=u-v,x=c-b;if(n==="bar")return S.left=x+"px",C>40?S.bottom=w-C+5+"px":S.top=C+d+5+"px",S;if(n==="modal")return o?a?x>(m-f)/2?S.right=m-x+5+"px":S.left=x+f+5+"px":S.left="20px":S.left=x+"px",o?((y=C)<0&&(y=0),S.top=y+"px"):C>(w-d)/2?S.bottom=w-C+5+"px":((y=C+d)<0&&(y=0),S.top=y+5+"px"),S;throw new Error("type '"+n+"' is invalid")}function YE(e,t){fo(function(){var n=GE(e);if(n!=null){var r,o=n.top,a=n.left,l=n.width,s=n.height,u=t.offset(),c=u.top,d=u.left,f=t.width(),g=t.height(),h=c-o,p=d-a,y=t.attr("style");if(y.indexOf("top")>=0&&(r=h+g-s)>0){var v=t.css("top"),b=parseInt(v.toString())-r;b<0&&(b=0),t.css("top",b+"px")}if(y.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),w=parseInt(m.toString())-Math.abs(c);t.css("bottom",w+"px")}if(y.indexOf("left")>=0&&(r=p+f-l)>0){var S=t.css("left"),C=parseInt(S.toString())-r;C<0&&(C=0),t.css("left",C+"px")}if(y.indexOf("right")>=0&&d<0){var x=t.css("right"),k=parseInt(x.toString())-Math.abs(d);t.css("right",k+"px")}}})}var $ve=i0("slice"),eye=Ut("species"),XE=ce.Array,tye=Math.max;Wt({target:"Array",proto:!0,forced:!$ve},{slice:function(e,t){var n,r,o,a=$i(this),l=Ks(a),s=jc(e,l),u=jc(t===void 0?l:t,l);if(Zy(a)&&(n=a.constructor,(Qy(n)&&(n===XE||Zy(n.prototype))||Pt(n)&&(n=n[eye])===null)&&(n=void 0),n===XE||n===void 0))return fF(a,s,u);for(r=new(n===void 0?XE:n)(tye(u-s,0)),o=0;s<u;s++,o++)s in a&&qh(r,o,a[s]);return r.length=o,r}});var nye=Hh.f,lR=Pe("".startsWith),rye=Pe("".slice),oye=Math.min,sR=k1("startsWith"),aye=!sR&&!!function(){var e=nye(String.prototype,"startsWith");return e&&!e.writable}();Wt({target:"String",proto:!0,forced:!aye&&!sR},{startsWith:function(e){var t=Dt(so(this));C1(e);var n=Lc(oye(arguments.length>1?arguments[1]:void 0,t.length)),r=Dt(e);return lR?lR(t,r,n):rye(t,n,n+r.length)===r}});var nd=Object.assign,uR=Object.defineProperty,iye=Pe([].concat),cR=!nd||gt(function(){if(In&&nd({b:1},nd(uR({},"a",{enumerable:!0,get:function(){uR(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),nd({},e)[n]!=7||zc(nd({},t)).join("")!=r})?function(e,t){for(var n=Zi(e),r=arguments.length,o=1,a=a9.f,l=$7.f;r>o;)for(var s,u=Jy(arguments[o++]),c=a?iye(zc(u),a(u)):zc(u),d=c.length,f=0;d>f;)s=c[f++],In&&!lt(l,u,s)||(n[s]=u[s]);return n}:nd;Wt({target:"Object",stat:!0,forced:Object.assign!==cR},{assign:cR});var lye=["props","attrs","style","dataset","on","hook"];function dR(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(a){var l,s,u=n[a];if(a!=="key"){if(!lye.includes(a)){if(a.startsWith("data-")){var c=a.slice(5);return c=Tfe(c),function(d,f){d.data==null&&(d.data={});var g=d.data;g.dataset==null&&(g.dataset={}),Object.assign(g.dataset,f)}(e,((l={})[c]=u,l)),void delete n[a]}(function(d,f){d.data==null&&(d.data={});var g=d.data;g.props==null&&(g.props={}),Object.assign(g.props,f)})(e,(s={},s[a]=u,s)),delete n[a]}}else e.key=u}),o.length>0&&o.forEach(function(a){typeof a!="string"&&dR(a)})}var JE=[],fR={};function sye(e,t,n){return Fe(n.isInline(e)?"span":"div",null,t)}function hR(e,t){return t===void 0&&(t=!1),Fe("span",{"data-slate-string":!0},t?e+`
75
- `:e)}function ZE(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Fe("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Fe("br",null):null)}function QE(e,t,n,r){return tg.set(e,t),qc.set(e,n),_e.isElement(e)?function(o,a){var l,s=R.findKey(a,o),u=a.isInline(o),c=B.isVoid(a,o),d=MF(s.id),f={id:d,key:s.id,"data-slate-node":"element","data-slate-inline":u},g=o.type,h=o.children,p=h===void 0?[]:h,y=function(C){return fR[C]||sye}(g);l=c?null:p.map(function(C,x){return QE(C,x,o,a)});var v=y(o,l,a);if(c){f["data-slate-void"]=!0;var b=u?"span":"div",m=it(he.texts(o),1),w=it(m[0],1)[0],S=Fe(b,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},QE(w,0,o,a));v=Fe(b,{style:{position:"relative"}},v,S),tg.set(w,0),qc.set(w,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),c||u||(v=function(C,x){var k=x;return JE.forEach(function(E){k=E(C,x)}),k}(o,v)),fo(function(){var C=hE(d);C!=null&&(uE.set(s,C),S0.set(o,C),w0.set(C,o))}),v}(e,r):function(o,a,l){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=R.findKey(l,o),u=l.getConfig().decorate;if(u==null)throw new Error("Can not get config.decorate");var c=R.findPath(l,o),d=u([o,c]),f=Se.decorations(o,d),g=f.map(function(y,v){var b=function(m,w,S,C,x){w===void 0&&(w=!1);var k=m.text,E=R.findPath(x,S),A=Y.parent(E);if(B.isEditor(C))throw new Error("Text node "+JSON.stringify(S)+" parent is Editor");return x.isVoid(C)?ZE(he.string(C).length):k!==""||C.children[C.children.length-1]!==S||x.isInline(C)||B.string(x,A)!==""?k===""?ZE():w&&k.slice(-1)===`
76
- `?hR(k,!0):hR(k):ZE(0,!0)}(y,v===f.length-1,o,a,l);return b=function(m,w){var S=w;return JE.forEach(function(C){S=C(m,S)}),S}(y,b),Fe("span",{"data-slate-leaf":!0},b)}),h=function(y){return"w-e-text-"+y}(s.id),p=Fe("span",{"data-slate-node":"text",id:h,key:s.id},g);return fo(function(){var y=hE(h);y!=null&&(uE.set(s,y),S0.set(o,y),w0.set(y,o))}),p}(e,n,r)}function uye(e,t){var n,r=e.$scroll,o=function(y){return"w-e-textarea-"+y}(e.id),a=t.getConfig(),l=a.readOnly,s=a.autoFocus,u=function(y,v){return v===void 0&&(v=!1),Tc("div#"+y,{props:{contentEditable:!v}})}(o,l),c=t.children||[];u.children=c.map(function(y,v){var b=QE(y,v,t,t);return dR(b),b});var d=X9.get(e);if(d==null&&(d=!0),d){var f=function(y,v){return M(`<div
72
+ `}));var f=jE(M(c),l);Array.isArray(f)?f.forEach(function(g){return s.push(g)}):s.push(f)}}),s)}(e,t),r=function(a){for(var l in D0)if(a[0].matches(l))return D0[l];return Fve}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(a){B.isVoid(t,a)||(n.length===0&&(a.children=[{text:e.text().replace(/\s+/gm," ")}]),FE.forEach(function(l){a=l(e[0],a,t)}))}),o}function ME(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
73
+ `));var n=e[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=XF(n)};return FE.forEach(function(o){r=o(e[0],r,t)}),r}function jE(e,t){UF.forEach(function(r){var o=r.selector,a=r.preParseHtml;e[0].matches(o)&&(e=M(a(e[0])))});var n=aF(e);return n==="span"?e.attr("data-w-e-type")?LE(e,t):ME(e,t):n==="code"?aF(e.parent())==="pre"?LE(e,t):ME(e,t):HF.includes(n)?ME(e,t):LE(e,t)}function ZF(e,t,n){var r=M(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function QF(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=M("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var a=jE(M(o),e);Array.isArray(a)?a.forEach(function(l){return n.push(l)}):n.push(a)}),n}var Rve=Fo.f,$F=c0.fastKey,eR=tr.set,zE=tr.getterFor,Lve={getConstructor:function(e,t,n,r){var o=e(function(c,d){f0(c,a),eR(c,{type:t,index:n0(null),first:void 0,last:void 0,size:0}),In||(c.size=0),d!=null&&Qh(d,c[r],{that:c,AS_ENTRIES:n})}),a=o.prototype,l=zE(t),s=function(c,d,f){var g,h,p=l(c),y=u(c,d);return y?y.value=f:(p.last=y={index:h=$F(d,!0),key:d,value:f,previous:g=p.last,next:void 0,removed:!1},p.first||(p.first=y),g&&(g.next=y),In?p.size++:c.size++,h!=="F"&&(p.index[h]=y)),c},u=function(c,d){var f,g=l(c),h=$F(d);if(h!=="F")return g.index[h];for(f=g.first;f;f=f.next)if(f.key==d)return f};return Kc(a,{clear:function(){for(var c=l(this),d=c.index,f=c.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete d[f.index],f=f.next;c.first=c.last=void 0,In?c.size=0:this.size=0},delete:function(c){var d=this,f=l(d),g=u(d,c);if(g){var h=g.next,p=g.previous;delete f.index[g.index],g.removed=!0,p&&(p.next=h),h&&(h.previous=p),f.first==g&&(f.first=h),f.last==g&&(f.last=p),In?f.size--:d.size--}return!!g},forEach:function(c){for(var d,f=l(this),g=Gs(c,arguments.length>1?arguments[1]:void 0);d=d?d.next:f.first;)for(g(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(c){return!!u(this,c)}}),Kc(a,n?{get:function(c){var d=u(this,c);return d&&d.value},set:function(c,d){return s(this,c===0?0:c,d)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),In&&Rve(a,"size",{get:function(){return l(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=zE(t),a=zE(r);_1(e,t,function(l,s){eR(this,{type:r,target:l,state:o(l),kind:s,last:void 0})},function(){for(var l=a(this),s=l.kind,u=l.last;u&&u.removed;)u=u.previous;return l.target&&(l.last=u=u?u.next:l.state.first)?s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}:(l.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),bE(t)}};M9("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lve);var tR=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function nR(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Q.insertNodes(e,t,{mode:"highest"})}var Mve=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var a=it(re.edges(o),2),l=a[0],s=a[1],u=B.void(t,{at:l.path}),c=B.void(t,{at:s.path});if(!re.isCollapsed(o)||u){var d=R.toDOMRange(t,o),f=d.cloneContents(),g=f.childNodes[0];if(f.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(g=C)}),c){var h=it(c,1)[0],p=d.cloneRange(),y=R.toDOMNode(t,h);p.setEndAfter(y),f=p.cloneContents()}if(u&&(g=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var x=C.getAttribute("data-slate-zero-width")==="n";C.textContent=x?`
74
+ `:""}),nF(g)){var v=g.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(g),f.appendChild(v),g=v}var b=t.getFragment(),m=JSON.stringify(b),w=window.btoa(encodeURIComponent(m));g.setAttribute("data-slate-fragment",w),r.setData("application/x-slate-fragment",w);var S=f.ownerDocument.createElement("div");return S.appendChild(f),S.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(S),r.setData("text/html",S.innerHTML),r.setData("text/plain",Upe(S)),f.ownerDocument.body.removeChild(S),r}}},t.insertData=function(r){var o,a,l=r.getData("application/x-slate-fragment");if(l){var s=decodeURIComponent(window.atob(l)),u=JSON.parse(s);t.insertFragment(u)}else{var c=r.getData("text/plain"),d=r.getData("text/html");if(d)t.dangerouslyInsertHtml(d);else if(c){var f=c.split(/\r\n|\r|\n/),g=!1;try{for(var h=co(f),p=h.next();!p.done;p=h.next()){var y=p.value;g&&Q.splitNodes(t,{always:!0}),n(y),g=!0}}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}}},t},hg=function(e){return e!=null},jve={object:!0,function:!0,undefined:!0},zve=/^\s*class[\s{/}]/,Hve=Function.prototype.toString,rR=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!hg(r)&&hasOwnProperty.call(jve,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!zve.test(Hve.call(e))},HE=function(e){return e!=null},Uve=Object.keys,Wve=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return Uve(HE(e)?Object(e):e)},Gve=function(e){if(!HE(e))throw new TypeError("Cannot use null or undefined");return e},Kve=Math.max,oR=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,a=Kve(arguments.length,2);for(e=Object(Gve(e)),o=function(l){try{e[l]=t[l]}catch(s){n||(n=s)}},r=1;r<a;++r)Wve(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},qve=Array.prototype.forEach,Yve=Object.create,Xve=function(e,t){var n;for(n in e)t[n]=e[n]},aR=function(e){var t=Yve(null);return qve.call(arguments,function(n){HE(n)&&Xve(Object(n),t)}),t},UE="razdwatrzy",Jve=String.prototype.indexOf,gg=typeof UE.contains=="function"&&UE.contains("dwa")===!0&&UE.contains("foo")===!1?String.prototype.contains:function(e){return Jve.call(this,e,arguments[1])>-1},V0=Nh(function(e){var t=e.exports=function(n,r){var o,a,l,s,u;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],hg(n)?(o=gg.call(n,"c"),a=gg.call(n,"e"),l=gg.call(n,"w")):(o=l=!0,a=!1),u={value:r,configurable:o,enumerable:a,writable:l},s?oR(aR(s),u):u};t.gs=function(n,r,o){var a,l,s,u;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],hg(r)?rR(r)?hg(o)?rR(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,hg(n)?(a=gg.call(n,"c"),l=gg.call(n,"e")):(a=!0,l=!1),u={get:r,set:o,configurable:a,enumerable:l},s?oR(aR(s),u):u}}),WE=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Zve=Nh(function(e,t){var n,r,o,a,l,s,u,c=Function.prototype.apply,d=Function.prototype.call,f=Object.create,g=Object.defineProperty,h=Object.defineProperties,p=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};n=function(v,b){var m;return WE(b),p.call(this,"__ee__")?m=this.__ee__:(m=y.value=f(null),g(this,"__ee__",y),y.value=null),m[v]?typeof m[v]=="object"?m[v].push(b):m[v]=[m[v],b]:m[v]=b,this},r=function(v,b){var m,w;return WE(b),w=this,n.call(this,v,m=function(){o.call(w,v,m),c.call(b,this,arguments)}),m.__eeOnceListener__=b,this},o=function(v,b){var m,w,S,C;if(WE(b),!p.call(this,"__ee__"))return this;if(!(m=this.__ee__)[v])return this;if(typeof(w=m[v])=="object")for(C=0;S=w[C];++C)S!==b&&S.__eeOnceListener__!==b||(w.length===2?m[v]=w[C?0:1]:w.splice(C,1));else w!==b&&w.__eeOnceListener__!==b||delete m[v];return this},a=function(v){var b,m,w,S,C;if(p.call(this,"__ee__")&&(S=this.__ee__[v]))if(typeof S=="object"){for(m=arguments.length,C=new Array(m-1),b=1;b<m;++b)C[b-1]=arguments[b];for(S=S.slice(),b=0;w=S[b];++b)c.call(w,this,C)}else switch(arguments.length){case 1:d.call(S,this);break;case 2:d.call(S,this,arguments[1]);break;case 3:d.call(S,this,arguments[1],arguments[2]);break;default:for(m=arguments.length,C=new Array(m-1),b=1;b<m;++b)C[b-1]=arguments[b];c.call(S,this,C)}},l={on:n,once:r,off:o,emit:a},s={on:V0(n),once:V0(r),off:V0(o),emit:V0(a)},u=h({},s),e.exports=t=function(v){return v==null?f(u):h(Object(v),s)},t.methods=l});function B0(e){var t=$9.get(e);return t==null&&(t=Zve(),$9.set(e,t)),t}var _0=new WeakMap;function iR(e,t){var n=_0.get(e);n==null&&(n=new Set,_0.set(e,n)),n.add(t)}function Qve(e){return _0.get(e)||new Set}function $ve(e){_0.set(e,new Set)}function GE(e){var t=R.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function KE(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=GE(e);if(r==null)return t;var o=r.top,a=r.left,l=r.width,s=r.height,u=R.toDOMRange(e,n).getClientRects()[0];if(u==null)return t;u.width;var c=u.height,d={},f=u.top-o,g=u.left-a;if(g>l/2){var h=l-g;d.right=h+5+"px"}else d.left=g+5+"px";if(f>s/2){var p=s-f;d.bottom=p+5+"px"}else{var y=f+c;y<0&&(y=0),d.top=y+5+"px"}return d}function qE(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=_e.isElement(t)&&e.isVoid(t),a=_e.isElement(t)&&e.isInline(t),l=S0.get(t);if(l==null)return r;var s=l.getBoundingClientRect(),u=s.top,c=s.left,d=s.height,f=s.width;if(o){var g=function(k){var E=[];E.push(k);for(var A=0;E.length>0;){var N=E.pop();if(N==null||++A>1e4)break;var V=N.nodeName;if(N.nodeType===1){var D=V.toLowerCase();if(zpe.includes(D)||D==="iframe"||D==="video")return N;var P=N.children||[],O=P.length;if(O)for(var F=O-1;F>=0;F--)E.push(P[F])}}return null}(l);if(g!=null){var h=g.getBoundingClientRect();u=h.top,d=h.height}}var p=GE(e);if(p==null)return r;var y,v=p.top,b=p.left,m=p.width,w=p.height,S={},C=u-v,x=c-b;if(n==="bar")return S.left=x+"px",C>40?S.bottom=w-C+5+"px":S.top=C+d+5+"px",S;if(n==="modal")return o?a?x>(m-f)/2?S.right=m-x+5+"px":S.left=x+f+5+"px":S.left="20px":S.left=x+"px",o?((y=C)<0&&(y=0),S.top=y+"px"):C>(w-d)/2?S.bottom=w-C+5+"px":((y=C+d)<0&&(y=0),S.top=y+5+"px"),S;throw new Error("type '"+n+"' is invalid")}function YE(e,t){fo(function(){var n=GE(e);if(n!=null){var r,o=n.top,a=n.left,l=n.width,s=n.height,u=t.offset(),c=u.top,d=u.left,f=t.width(),g=t.height(),h=c-o,p=d-a,y=t.attr("style");if(y.indexOf("top")>=0&&(r=h+g-s)>0){var v=t.css("top"),b=parseInt(v.toString())-r;b<0&&(b=0),t.css("top",b+"px")}if(y.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),w=parseInt(m.toString())-Math.abs(c);t.css("bottom",w+"px")}if(y.indexOf("left")>=0&&(r=p+f-l)>0){var S=t.css("left"),C=parseInt(S.toString())-r;C<0&&(C=0),t.css("left",C+"px")}if(y.indexOf("right")>=0&&d<0){var x=t.css("right"),k=parseInt(x.toString())-Math.abs(d);t.css("right",k+"px")}}})}var eye=i0("slice"),tye=Ut("species"),XE=ce.Array,nye=Math.max;Wt({target:"Array",proto:!0,forced:!eye},{slice:function(e,t){var n,r,o,a=$i(this),l=Ks(a),s=jc(e,l),u=jc(t===void 0?l:t,l);if(Zy(a)&&(n=a.constructor,(Qy(n)&&(n===XE||Zy(n.prototype))||Pt(n)&&(n=n[tye])===null)&&(n=void 0),n===XE||n===void 0))return fF(a,s,u);for(r=new(n===void 0?XE:n)(nye(u-s,0)),o=0;s<u;s++,o++)s in a&&qh(r,o,a[s]);return r.length=o,r}});var rye=Hh.f,lR=Pe("".startsWith),oye=Pe("".slice),aye=Math.min,sR=k1("startsWith"),iye=!sR&&!!function(){var e=rye(String.prototype,"startsWith");return e&&!e.writable}();Wt({target:"String",proto:!0,forced:!iye&&!sR},{startsWith:function(e){var t=Dt(so(this));C1(e);var n=Lc(aye(arguments.length>1?arguments[1]:void 0,t.length)),r=Dt(e);return lR?lR(t,r,n):oye(t,n,n+r.length)===r}});var nd=Object.assign,uR=Object.defineProperty,lye=Pe([].concat),cR=!nd||gt(function(){if(In&&nd({b:1},nd(uR({},"a",{enumerable:!0,get:function(){uR(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),nd({},e)[n]!=7||zc(nd({},t)).join("")!=r})?function(e,t){for(var n=Zi(e),r=arguments.length,o=1,a=a9.f,l=$7.f;r>o;)for(var s,u=Jy(arguments[o++]),c=a?lye(zc(u),a(u)):zc(u),d=c.length,f=0;d>f;)s=c[f++],In&&!lt(l,u,s)||(n[s]=u[s]);return n}:nd;Wt({target:"Object",stat:!0,forced:Object.assign!==cR},{assign:cR});var sye=["props","attrs","style","dataset","on","hook"];function dR(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(a){var l,s,u=n[a];if(a!=="key"){if(!sye.includes(a)){if(a.startsWith("data-")){var c=a.slice(5);return c=Pfe(c),function(d,f){d.data==null&&(d.data={});var g=d.data;g.dataset==null&&(g.dataset={}),Object.assign(g.dataset,f)}(e,((l={})[c]=u,l)),void delete n[a]}(function(d,f){d.data==null&&(d.data={});var g=d.data;g.props==null&&(g.props={}),Object.assign(g.props,f)})(e,(s={},s[a]=u,s)),delete n[a]}}else e.key=u}),o.length>0&&o.forEach(function(a){typeof a!="string"&&dR(a)})}var JE=[],fR={};function uye(e,t,n){return Fe(n.isInline(e)?"span":"div",null,t)}function hR(e,t){return t===void 0&&(t=!1),Fe("span",{"data-slate-string":!0},t?e+`
75
+ `:e)}function ZE(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Fe("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Fe("br",null):null)}function QE(e,t,n,r){return tg.set(e,t),qc.set(e,n),_e.isElement(e)?function(o,a){var l,s=R.findKey(a,o),u=a.isInline(o),c=B.isVoid(a,o),d=MF(s.id),f={id:d,key:s.id,"data-slate-node":"element","data-slate-inline":u},g=o.type,h=o.children,p=h===void 0?[]:h,y=function(C){return fR[C]||uye}(g);l=c?null:p.map(function(C,x){return QE(C,x,o,a)});var v=y(o,l,a);if(c){f["data-slate-void"]=!0;var b=u?"span":"div",m=it(he.texts(o),1),w=it(m[0],1)[0],S=Fe(b,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},QE(w,0,o,a));v=Fe(b,{style:{position:"relative"}},v,S),tg.set(w,0),qc.set(w,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),c||u||(v=function(C,x){var k=x;return JE.forEach(function(E){k=E(C,x)}),k}(o,v)),fo(function(){var C=hE(d);C!=null&&(uE.set(s,C),S0.set(o,C),w0.set(C,o))}),v}(e,r):function(o,a,l){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=R.findKey(l,o),u=l.getConfig().decorate;if(u==null)throw new Error("Can not get config.decorate");var c=R.findPath(l,o),d=u([o,c]),f=Se.decorations(o,d),g=f.map(function(y,v){var b=function(m,w,S,C,x){w===void 0&&(w=!1);var k=m.text,E=R.findPath(x,S),A=Y.parent(E);if(B.isEditor(C))throw new Error("Text node "+JSON.stringify(S)+" parent is Editor");return x.isVoid(C)?ZE(he.string(C).length):k!==""||C.children[C.children.length-1]!==S||x.isInline(C)||B.string(x,A)!==""?k===""?ZE():w&&k.slice(-1)===`
76
+ `?hR(k,!0):hR(k):ZE(0,!0)}(y,v===f.length-1,o,a,l);return b=function(m,w){var S=w;return JE.forEach(function(C){S=C(m,S)}),S}(y,b),Fe("span",{"data-slate-leaf":!0},b)}),h=function(y){return"w-e-text-"+y}(s.id),p=Fe("span",{"data-slate-node":"text",id:h,key:s.id},g);return fo(function(){var y=hE(h);y!=null&&(uE.set(s,y),S0.set(o,y),w0.set(y,o))}),p}(e,n,r)}function cye(e,t){var n,r=e.$scroll,o=function(y){return"w-e-textarea-"+y}(e.id),a=t.getConfig(),l=a.readOnly,s=a.autoFocus,u=function(y,v){return v===void 0&&(v=!1),Tc("div#"+y,{props:{contentEditable:!v}})}(o,l),c=t.children||[];u.children=c.map(function(y,v){var b=QE(y,v,t,t);return dR(b),b});var d=X9.get(e);if(d==null&&(d=!0),d){var f=function(y,v){return M(`<div
77
77
  id="`+y+`"
78
78
  data-slate-editor
79
79
  data-slate-node="value"
@@ -82,21 +82,21 @@ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#
82
82
  spellCheck="true"
83
83
  autoCorrect="true"
84
84
  autoCapitalize="true"
85
- ></div>`)}(o);r.append(f),e.$textArea=f,n=f[0],(h=$de([tfe,afe,lfe,nfe,ofe,efe]))(n,u),X9.set(e,!1),J9.set(e,h)}else{var g=Z9.get(e),h=J9.get(e);if(g==null||h==null)return;n=g.elm,h(g,u)}if(n!=null||(n=hE(o))!=null){if((d?s:t.isFocused())&&n.focus({preventScroll:!0}),d){var p=fE(n);p&&Q9.set(t,p)}sE.set(t,n),S0.set(t,n),w0.set(n,t),Z9.set(e,u)}}function gR(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function mR(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function $E(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return mR(n.overflowY,t)||mR(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function T0(e,t,n,r,o,a,l,s){return a<e&&l>t||a>e&&l<t?0:a<=e&&s<=n||l>=t&&s>=n?a-e-r:l>t&&s<n||a<e&&s>n?l-t+o:0}function pR(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,l=t.boundary,s=t.skipOverflowHiddenElements,u=typeof l=="function"?l:function(de){return de!==l};if(!gR(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],f=e;gR(f)&&u(f);){if((f=f.parentElement)===c){d.push(f);break}f!=null&&f===document.body&&$E(f)&&!$E(document.documentElement)||f!=null&&$E(f,s)&&d.push(f)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),b=v.height,m=v.width,w=v.top,S=v.right,C=v.bottom,x=v.left,k=o==="start"||o==="nearest"?w:o==="end"?C:w+b/2,E=a==="center"?x+m/2:a==="end"?S:x,A=[],N=0;N<d.length;N++){var V=d[N],D=V.getBoundingClientRect(),P=D.height,O=D.width,F=D.top,H=D.right,J=D.bottom,j=D.left;if(r==="if-needed"&&w>=0&&x>=0&&C<=h&&S<=g&&w>=F&&C<=J&&x>=j&&S<=H)return A;var z=getComputedStyle(V),L=parseInt(z.borderLeftWidth,10),_=parseInt(z.borderTopWidth,10),T=parseInt(z.borderRightWidth,10),I=parseInt(z.borderBottomWidth,10),U=0,$=0,W="offsetWidth"in V?V.offsetWidth-V.clientWidth-L-T:0,Z="offsetHeight"in V?V.offsetHeight-V.clientHeight-_-I:0;if(c===V)U=o==="start"?k:o==="end"?k-h:o==="nearest"?T0(y,y+h,h,_,I,y+k,y+k+b,b):k-h/2,$=a==="start"?E:a==="center"?E-g/2:a==="end"?E-g:T0(p,p+g,g,L,T,p+E,p+E+m,m),U=Math.max(0,U+y),$=Math.max(0,$+p);else{U=o==="start"?k-F-_:o==="end"?k-J+I+Z:o==="nearest"?T0(F,J,P,_,I+Z,k,k+b,b):k-(F+P/2)+Z/2,$=a==="start"?E-j-L:a==="center"?E-(j+O/2)+W/2:a==="end"?E-H+T+W:T0(j,H,O,L,T+W,E,E+m,m);var ne=V.scrollLeft,me=V.scrollTop;k+=me-(U=Math.max(0,Math.min(me+U,V.scrollHeight-P+Z))),E+=ne-($=Math.max(0,Math.min(ne+$,V.scrollWidth-O+W)))}A.push({el:V,top:U,left:$})}return A}function vR(e){return e===Object(e)&&Object.keys(e).length!==0}function ho(e,t){return Js(t)&&R.hasDOMNode(e,t,{editable:!0})}function yR(e,t){if(e.getConfig().readOnly)return!1;var n=rd(e,t)&&R.toSlateNode(e,t);return B.isVoid(e,n)}function rd(e,t){return Js(t)&&R.hasDOMNode(e,t)}function bR(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),a=R.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var l=a.type!=="None";if(r||l){var s=sE.get(t),u=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(u=!0),l&&u&&r){var c=R.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(c&&re.equals(c,r)){var d=!0;if(re.isCollapsed(r)){var f=a.anchorNode,g=a.anchorOffset;if(f===s){var h=s.childNodes,p=void 0;(p=h[g])&&p.matches("table")&&(d=!1),(p=h[g-1])&&p.matches("table")&&(d=!1)}}if(d)return}}if(!r||R.hasRange(t,r)){e.isUpdatingSelection=!0;var y=r&&R.toDOMRange(t,r);if(y){re.isBackward(r)?a.setBaseAndExtent(y.endContainer,y.endOffset,y.startContainer,y.startOffset):a.setBaseAndExtent(y.startContainer,y.startOffset,y.endContainer,y.endOffset);var v=y.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=y.getBoundingClientRect.bind(y);var b=document.body;(function(m,w){var S=!m.ownerDocument.documentElement.contains(m);if(vR(w)&&typeof w.behavior=="function")return w.behavior(S?[]:pR(m,w));if(!S){var C=function(x){return x===!1?{block:"end",inline:"nearest"}:vR(x)?x:{block:"start",inline:"nearest"}}(w);(function(x,k){k===void 0&&(k="auto");var E="scrollBehavior"in document.body.style;x.forEach(function(A){var N=A.el,V=A.top,D=A.left;N.scroll&&E?N.scroll({top:V,left:D,behavior:k}):(N.scrollTop=V,N.scrollLeft=D)})})(pR(m,C),C.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:b,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else a.removeAllRanges();setTimeout(function(){y&&ng&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=R.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var eD=new WeakMap,wR=new WeakMap,cye={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"},dye={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"},fye={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Lt=function(e){var t=cye[e],n=dye[e],r=fye[e],o=t&&Vx(t),a=n&&Vx(n),l=r&&Vx(r);return function(s){return!(!o||!o(s))||!!(gE&&a&&a(s))||!(gE||!l||!l(s))}},Gt={isBold:Lt("bold"),isCompose:Lt("compose"),isMoveBackward:Lt("moveBackward"),isMoveForward:Lt("moveForward"),isDeleteBackward:Lt("deleteBackward"),isDeleteForward:Lt("deleteForward"),isDeleteLineBackward:Lt("deleteLineBackward"),isDeleteLineForward:Lt("deleteLineForward"),isDeleteWordBackward:Lt("deleteWordBackward"),isDeleteWordForward:Lt("deleteWordForward"),isExtendBackward:Lt("extendBackward"),isExtendForward:Lt("extendForward"),isExtendLineBackward:Lt("extendLineBackward"),isExtendLineForward:Lt("extendLineForward"),isItalic:Lt("italic"),isMoveLineBackward:Lt("moveLineBackward"),isMoveLineForward:Lt("moveLineForward"),isMoveWordBackward:Lt("moveWordBackward"),isMoveWordForward:Lt("moveWordForward"),isRedo:Lt("redo"),isSplitBlock:Lt("splitBlock"),isTransposeCharacter:Lt("transposeCharacter"),isUndo:Lt("undo"),isTab:Lt("tab"),isSelectAll:Lt("selectAll")};function yn(e){e.preventDefault()}var hye={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(og&&!o&&ho(n,r.target)){var a=n.selection,l=r.inputType,s=r.dataTransfer||r.data||void 0;if(l!=="insertCompositionText"&&l!=="deleteCompositionText"){if(r.preventDefault(),!l.startsWith("delete")||l.startsWith("deleteBy")){var u=it(r.getTargetRanges(),1)[0];if(u){var c=R.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});a&&re.equals(a,c)||Q.select(n,c)}}if(a&&re.isExpanded(a)&&l.startsWith("delete")){var d=l.endsWith("Backward")?"backward":"forward";B.deleteFragment(n,{direction:d})}else switch(l){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":B.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":B.deleteForward(n);break;case"deleteContentBackward":B.deleteBackward(n);break;case"deleteEntireSoftLine":B.deleteBackward(n,{unit:"line"}),B.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":B.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":B.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":B.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":B.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":B.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":B.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":B.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(l==="insertFromPaste"&&!dE.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&B.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!o&&ho(n,r.target)){var l=R.findDocumentOrShadowRoot(n);if(a!==l.activeElement){var s=r.relatedTarget;if(!(s===R.toDOMNode(n,n)||Mo(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Js(s)&&R.hasDOMNode(n,s)){var u=R.toSlateNode(n,s);if(_e.isElement(u)&&!n.isVoid(u))return}if(rg){var c=l.getSelection();c==null||c.removeAllRanges()}Xs.delete(n)}}}},focus:function(e,t,n){var r=R.toDOMNode(n,n),o=R.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,ng&&e.target!==r?r.focus():Xs.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&rd(n,e.target)&&Js(e.target)){var r=R.toSlateNode(n,e.target),o=R.findPath(n,r);if(B.hasPath(n,o)&&he.get(n,o)===r){var a=B.start(n,o),l=B.end(n,o),s=B.void(n,{at:a}),u=B.void(n,{at:l});if(s&&u&&Y.equals(s[1],u[1])){var c=B.range(n,a);Q.select(n,c)}}}},compositionstart:function(e,t,n){if(ho(n,e.target)){var r=n.selection;if(r&&re.isExpanded(r)&&(B.deleteFragment(n),Promise.resolve().then(function(){bR(t,n,!0)})),r&&re.isCollapsed(r)){var o=R.toDOMRange(n,r).startContainer,a=o.textContent||"";eD.set(n,a),wR.set(n,o)}t.isComposing=!0,function(l,s){var u;s.getConfig().placeholder&&s.isEmpty()&&l.showPlaceholder&&((u=l.$placeholder)===null||u===void 0||u.hide(),l.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(ho(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(mE||ng)&&R.cleanExposedTexNodeInSelectionBlock(n);for(var a=re.isBackward(o)?o.focus:o.anchor,l=it(B.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var u=it(B.node(n,a.path.slice(0,s+1)),1)[0];if(_e.isElement(u)&&((rg||ng)&&u.type==="link"||u.type==="code")){R.setNewKey(l);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var d=R.getLeftLengthOfMaxLength(n);d<c.length?(R.toDOMRange(n,o).startContainer.textContent=eD.get(n)||"",d>0&&B.insertText(n,c.slice(0,d)),t.changeViewState()):B.insertText(n,c)}else B.insertText(n,c);rg||setTimeout(function(){var f=n.selection;if(f!=null){var g=wR.get(n);g!=null&&R.toDOMRange(n,f).startContainer!==g&&(g.textContent=eD.get(n)||"")}})}}}},compositionupdate:function(e,t,n){ho(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&ho(n,r.target)){if(function(l,s){var u=v0.get(l),c=u&&u.getMenus(),d=y0.get(l),f=d&&d.getMenus(),g=uo(uo({},c),f);for(var h in g){var p=g[h],y=p.hotkey;if(y&&Ofe(y,s)&&!p.isDisabled(l)){var v=p.getValue(l);p.exec(l,v)}}}(n,r),Gt.isTab(r))return yn(r),void n.handleTab();if(Gt.isRedo(r))return yn(r),void(typeof n.redo=="function"&&n.redo());if(Gt.isUndo(r))return yn(r),void(typeof n.undo=="function"&&n.undo());if(Gt.isMoveLineBackward(r))return yn(r),void Q.move(n,{unit:"line",reverse:!0});if(Gt.isMoveLineForward(r))return yn(r),void Q.move(n,{unit:"line"});if(Gt.isExtendLineBackward(r))return yn(r),void Q.move(n,{unit:"line",edge:"focus",reverse:!0});if(Gt.isExtendLineForward(r))return yn(r),void Q.move(n,{unit:"line",edge:"focus"});if(Gt.isMoveBackward(r))return yn(r),void(o&&re.isCollapsed(o)?Q.move(n,{reverse:!0}):Q.collapse(n,{edge:"start"}));if(Gt.isMoveForward(r))return yn(r),void(o&&re.isCollapsed(o)?Q.move(n):Q.collapse(n,{edge:"end"}));if(Gt.isMoveWordBackward(r))return yn(r),o&&re.isExpanded(o)&&Q.collapse(n,{edge:"focus"}),void Q.move(n,{unit:"word",reverse:!0});if(Gt.isMoveWordForward(r))return yn(r),o&&re.isExpanded(o)&&Q.collapse(n,{edge:"focus"}),void Q.move(n,{unit:"word"});if(Gt.isSelectAll(r))return yn(r),void n.selectAll();if(og){if((mE||rg)&&o&&(Gt.isDeleteBackward(r)||Gt.isDeleteForward(r))&&re.isCollapsed(o)){var a=he.parent(n,o.anchor.path);if(_e.isElement(a)&&B.isVoid(n,a)&&B.isInline(n,a))return r.preventDefault(),void Q.delete(n,{unit:"block"})}}else{if(Gt.isBold(r)||Gt.isItalic(r)||Gt.isTransposeCharacter(r))return void yn(r);if(Gt.isSplitBlock(r))return yn(r),void B.insertBreak(n);if(Gt.isDeleteBackward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"backward"}):B.deleteBackward(n));if(Gt.isDeleteForward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"forward"}):B.deleteForward(n));if(Gt.isDeleteLineBackward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"backward"}):B.deleteBackward(n,{unit:"line"}));if(Gt.isDeleteLineForward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"forward"}):B.deleteForward(n,{unit:"line"}));if(Gt.isDeleteWordBackward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"backward"}):B.deleteBackward(n,{unit:"word"}));if(Gt.isDeleteWordForward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"forward"}):B.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!og&&!n.getConfig().readOnly&&ho(n,e.target)){e.preventDefault();var r=e.key;B.insertText(n,r)}},copy:function(e,t,n){var r=e;if(ho(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&ho(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),o))if(re.isExpanded(o))B.deleteFragment(n);else{var l=he.parent(n,o.anchor.path);B.isVoid(n,l)&&Q.delete(n)}}},paste:function(e,t,n){dE.set(n,!0);var r=e;if(!n.getConfig().readOnly&&ho(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void dE.set(n,!1);if(!og||function(l){return l.clipboardData&&l.clipboardData.getData("text/plain")!==""&&l.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(rd(n,e.target)){var r=R.toSlateNode(n,e.target);B.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(rd(n,r.target)&&!n.getConfig().readOnly){var o=R.toSlateNode(n,r.target),a=R.findPath(n,o);if(B.isVoid(n,o)||B.void(n,{at:a,voids:!0})){var l=B.range(n,a);Q.select(n,l)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&rd(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&rd(n,r.target)&&o!=null&&!(og&&rg&&o.files.length>0)){r.preventDefault();var a=n.selection,l=R.findEventRange(n,r);Q.select(n,l),t.isDraggingInternally&&(a&&Q.delete(n,{at:a}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},gye=1,mye=function(){function e(t){var n=this;this.id=gye++,this.$textArea=null,this.$progressBar=M('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=M('<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=Ns(function(){var l=n.editorInstance;(function(s,u){var c=s.isComposing,d=s.isUpdatingSelection,f=s.isDraggingInternally;if(!(u.getConfig().readOnly||c||d||f)){var g=R.findDocumentOrShadowRoot(u),h=g.activeElement,p=R.toDOMNode(u,u),y=g.getSelection();if(h===p?(s.latestElement=h,Xs.set(u,!0)):Xs.delete(u),!y)return Q.deselect(u);var v=y.anchorNode,b=y.focusNode,m=ho(u,v)||yR(u,v),w=ho(u,b)||yR(u,b);if(m&&w){var S=R.toSlateRange(u,y,{exactMatch:!1,suppressThrow:!1});Q.select(u,S)}else Q.deselect(u)}})(n,l)},100);var r=M(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=M('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var a=M('<div class="w-e-scroll"></div>');o.append(a),this.$scroll=a,this.$textAreaContainer=o,fo(function(){var l=n.editorInstance,s=R.getWindow(l);s.document.addEventListener("selectionchange",n.onDOMSelectionChange),l.on("destroyed",function(){s.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return l.hidePanelOrModal()}),l.on("change",n.changeViewState.bind(n));var u=l.getConfig().onChange;u&&l.on("change",function(){return u(l)}),n.onFocusAndOnBlur(),l.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=rE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(px(hye,function(a,l){n.on(l,function(s){a(s,t,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ns(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,a=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return a&&a(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-R.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;uye(this,n),function(r,o){var a,l=o.getConfig().placeholder;if(l){var s=o.isEmpty();if(s&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var u=M('<div class="w-e-text-placeholder">'+l+"</div>");r.$textAreaContainer.append(u),r.$placeholder=u}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!s&&r.showPlaceholder&&((a=r.$placeholder)===null||a===void 0||a.hide(),r.showPlaceholder=!1)}}(this,n),fo(function(){bR(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function tD(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&&tD(t)}function nD(){return M('<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 SR(){return M('<div class="w-e-bar-divider"></div>')}function CR(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var a=gE?"cmd":"ctrl";r=r.replace("mod",a)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var l=r?n+`
86
- `+r:n;e.attr("data-tooltip",l),e.addClass("w-e-menu-tooltip-v5")}}}U1("match",function(e,t,n){return[function(r){var o=so(this),a=r==null?void 0:Us(r,e);return a?lt(a,r,o):new RegExp(r)[e](Dt(o))},function(r){var o=sn(this),a=Dt(r),l=n(t,o,a);if(l.done)return l.value;if(!o.global)return Jh(o,a);var s=o.unicode;o.lastIndex=0;for(var u,c=[],d=0;(u=Jh(o,a))!==null;){var f=Dt(u[0]);c[d]=f,f===""&&(o.lastIndex=W1(a,Lc(o.lastIndex),s)),d++}return d===0?null:c}]});var rD=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=M('<div class="w-e-bar-item"></div>'),this.$button=M('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,l=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var s=n.title,u=n.hotkey,c=u===void 0?"":u,d=n.iconSvg,f=d===void 0?"":d,g=this.$button;if(f){var h=M(f);tD(h),g.append(h)}else g.text(s);CR(g,f,s,c,r),r&&f&&g.append(M('<span class="title">'+s+"</span>")),l&&g.css("width",l+"px"),g.attr("data-menu-key",t),this.$elem.append(g),fo(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),qr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=qr(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=qr(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=qr(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),pye=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return Gc(t,e),t.prototype.onButtonClick=function(){},t}(rD),oD=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=lE.get(t);n==null&&(n=new Set,lE.set(t,n)),n.add(this),b0.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=b0.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=b0.get(this);t&&t.emit("modalOrPanelHide")}},e}(),vye=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=M('<div class="w-e-drop-panel"></div>'),r}return Gc(t,e),t.prototype.genSelfElem=function(){return null},t}(oD),yye=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var l=nD();a.$button.append(l)}return a}return Gc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=qr(this);if(this.dropPanel==null){var o=new vye(r),a=n.getPanelContentElem(r);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var l=this.dropPanel;l.isShow?l.hide():(a=n.getPanelContentElem(r),l.renderContent(a),l.show())}var s=this.dropPanel;if(s.isShow){var u=this.$elem,c=u.offset().left,d=u.parents(".w-e-bar");c-d.offset().left>=d.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(rD),bye=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=M('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var a=o.$elem;return a.on("click",function(l){return l.stopPropagation()}),a.on("keyup",function(l){l.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Gc(t,e),t.prototype.genSelfElem=function(){var n=this,r=M('<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>'),o=b0.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t}(oD);function Kr(e,t,n){var r=M('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=M('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function od(e,t){var n=M('<div class="button-container"></div>'),r=M('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var wye=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;return a.$body=M("body"),a.modal=null,a.menu=r,a}return Gc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=qr(this),r=this.menu.getModalPositionNode(n);return _e.isElement(r)?qE(n,r,"modal"):KE(n)},t.prototype.handleModal=function(){var n=qr(this),r=this.menu;if(this.modal==null){var o=new bye(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=qr(this),a=this.menu;if(a.getModalContentElem!=null){var l=R.getTextarea(o),s=R.getToolbar(o),u=((s==null?void 0:s.getConfig())||{}).modalAppendToBody,c=a.getModalContentElem(o);if(n.renderContent(c),u)n.setStyle({left:"0",right:"0"});else{var d=this.getPosition();n.setStyle(d)}r&&(u?n.appendTo(this.$body):n.appendTo(l.$textAreaContainer)),n.show(),u||YE(o,n.$elem),setTimeout(function(){o.blur()})}},t}(rD),Sye=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=M('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(a){a.stopPropagation()}),o}return Gc(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=M("<ul></ul>");n.forEach(function(a){var l=a.value,s=a.text,u=a.selected,c=a.styleForRenderMenuList,d=M('<li data-value="'+l+'"></li>');if(c&&d.css(c),u){var f=M('<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>');d.append(f),d.addClass("selected")}d.append(M('<span data-value="'+l+'">'+s+"</span>")),d.attr("title",s),o.append(d)}),r.append(o)},t.prototype.genSelfElem=function(){return null},t}(oD),Cye=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=M('<div class="w-e-bar-item"></div>'),this.$button=M('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var a=n.tag,l=n.title,s=n.width,u=n.iconSvg,c=u===void 0?"":u,d=n.hotkey,f=d===void 0?"":d;if(a!=="select")throw new Error("Invalid tag '"+a+"', expected 'select'");var g=this.$button;s&&g.css("width",s+"px"),g.attr("data-menu-key",t),CR(g,c,l,f,r),this.$elem.append(g),this.menu=n,fo(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),qr(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=qr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Sye(n,r.selectPanelWidth);var o=this.selectList,a=r.getOptions(n);o.renderList(a),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(l){var s=l.target;if(s!=null){l.preventDefault();var u=M(s).attr("data-value");t.onChange(u)}})}else(o=this.selectList).isShow?o.hide():(a=r.getOptions(n),o.renderList(a),o.show())}},e.prototype.onChange=function(t){var n=qr(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=qr(this),n=this.menu,r=n.getValue(t),o=function(s,u){for(var c=s.length,d="",f=0;f<c;f++){var g=s[f];if(g.value===u){d=g.text;break}}return d}(n.getOptions(t),r.toString()),a=this.$button,l=nD();a.empty(),a.text(o),a.append(l)},e.prototype.setDisabled=function(){var t=qr(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),kR=function(){function e(t){this.$elem=M('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=M('<div class="w-e-bar-item-menus-container"></div>'),this.$button=M('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,a=this.$elem,l=this.$button;if(r){var s=M(r);tD(s),l.append(s)}else l.text(o);l.attr("data-menu-key",n);var u=nD();l.append(u),a.append(l);var c=this.$container;a.append(c);var d=this.createObserver();this.observe(d)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var a=n.find("button"),l=a.length;if(l!==0){var s=0;a.each(function(u){M(u).hasClass("disabled")&&s++}),o.disconnect(),s===l?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}});return o},e}(),xR=new WeakMap;function qr(e){var t=iE.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function ER(e,t,n){n===void 0&&(n=!1);var r=xR.get(t);if(r)return r;var o=t.tag;if(o==="button"){var a=t.showDropPanel,l=t.showModal;r=a?new yye(e,t,n):l?new wye(e,t,n):new pye(e,t,n)}if(o==="select"&&(r=new Cye(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return xR.set(t,r),r}function kye(e,t){var n=e.selection;return n!=null&&!re.isCollapsed(n)&&!R.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!Se.isText(t)}var xye=function(){function e(){var t=this;this.$elem=M('<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=XI(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,a=o===void 0?null:o,l=r.menuKeys,s=l===void 0?[]:l;a!=null&&t.changeItemsState(),a&&_e.isElement(a)&&n&&t.isSamePath(a,t.prevSelectedNode)||(t.hideAndClean(),a!=null&&(t.registerItems(s),t.setPosition(a),t.show()),t.prevSelectedNode=a)},200),fo(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),R.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.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 t=this;fo(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var a=SR();r.append(a)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var a=ag[t];if(a==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof a!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=a(),r[t]=o}var l=ER(t,o);this.hoverbarItems.push(l),iE.set(l,n),this.$elem.append(l.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),_e.isElement(t)){var o=qE(n,t,"bar");return r.css(o),void YE(n,r)}if(Se.isText(t))return o=KE(n),r.css(o),void YE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],a=function(s){var u=n[s],c=u.match,d=u.menuKeys,f=d===void 0?[]:d,g=c||function(y,v){return R.checkNodeType(v,s)},h=it(B.nodes(t,{match:function(y){return g(t,y)},universal:!0}),1),p=h[0];if(p!=null)return r=p[0],o=f,"break"};for(var l in n)if(a(l)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=aE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=kye),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=R.findPath(null,t),o=R.findPath(null,n);return Y.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function DR(e,t,n,r){if(tg.set(e,t),qc.set(e,n),_e.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(s,u){return DR(s,u,e,r)}),B.isVoid(r,e)){var a=it(he.texts(e),1),l=it(a[0],1)[0];tg.set(l,0),qc.set(l,e)}}}function Eye(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,a=e.content,l=e.html,s=e.plugins,u=s===void 0?[]:s,c=(b=>{var m=b,{apply:w}=m;return m.history={undos:[],redos:[]},m.redo=()=>{var{history:S}=m,{redos:C}=S;if(C.length>0){var x=C[C.length-1];Hc.withoutSaving(m,()=>{B.withoutNormalizing(m,()=>{for(var k of x)m.apply(k)})}),S.redos.pop(),S.undos.push(x)}},m.undo=()=>{var{history:S}=m,{undos:C}=S;if(C.length>0){var x=C[C.length-1];Hc.withoutSaving(m,()=>{B.withoutNormalizing(m,()=>{var k=x.map(zi.inverse).reverse();for(var E of k)m.apply(E)})}),S.redos.push(x),S.undos.pop()}},m.apply=S=>{var{operations:C,history:x}=m,{undos:k}=x,E=k[k.length-1],A=E&&E[E.length-1],N=((O,F)=>!(!F||O.type!=="set_selection"||F.type!=="set_selection"))(S,A),V=Hc.isSaving(m),D=Hc.isMerging(m);if(V==null&&(V=((O,F)=>O.type!=="set_selection"||O.properties!=null&&O.newProperties!=null)(S)),V){if(D==null&&(D=E!=null&&(C.length!==0||((O,F)=>O.type==="set_selection"||!(!F||O.type!=="insert_text"||F.type!=="insert_text"||O.offset!==F.offset+F.text.length||!Y.equals(O.path,F.path))||!(!F||O.type!=="remove_text"||F.type!=="remove_text"||O.offset+O.text.length!==F.offset||!Y.equals(O.path,F.path)))(S,A)||N)),E&&D)N&&E.pop(),E.push(S);else{var P=[S];k.push(P)}for(;k.length>100;)k.shift();(O=>O.type!=="set_selection")(S)&&(x.redos=[])}w(S)},m})(function(b){var m=b,w=m.insertText,S=m.insertNode,C=m.insertFragment,x=m.dangerouslyInsertHtml;return m.insertText=function(k){if(m.getConfig().maxLength){var E=R.getLeftLengthOfMaxLength(m);E<=0||(E<k.length?w(k.slice(0,E)):w(k))}else w(k)},m.insertNode=function(k){if(m.getConfig().maxLength){var E=R.getLeftLengthOfMaxLength(m);E<=0||E<he.string(k).length||S(k)}else S(k)},m.insertFragment=function(k){if(m.getConfig().maxLength)if(k.length!==1)k.forEach(function(A){m.insertNode(A)});else{var E=k[0];if(R.getLeftLengthOfMaxLength(m)<he.string(E).length)return;C(k)}else C(k)},m.dangerouslyInsertHtml=function(k,E){if(k===void 0&&(k=""),E===void 0&&(E=!1),k)if(m.getConfig().maxLength){var A=R.getLeftLengthOfMaxLength(m);if(!(A<=0)){var N=document.createElement("div");N.innerHTML=k;var V=Array.from(N.childNodes).reduce(function(D,P){var O=P.nodeType,F=P.nodeName;return P?O===pa.TEXT_NODE?D+(P.textContent||""):O===pa.ELEMENT_NODE?tR.has(F.toLowerCase())?D:D+(P.textContent||""):D:D},"");A<V.length||x(k,E)}}else x(k,E)},m}(function(b){var m=b;return m.on=function(w,S){var C=B0(m);if(C.on(w,S),w==="destroyed"&&iR(m,S),w!=="destroyed"){var x=function(){return C.off(w,S)};C.on("destroyed",x),iR(m,x)}},m.once=function(w,S){B0(m).once(w,S)},m.off=function(w,S){B0(m).off(w,S)},m.emit=function(w){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];var x=B0(m);x.emit.apply(x,J1([w],it(S))),w==="destroyed"&&(Zve(m).forEach(function(k){return x.off("destroyed",k)}),Qve(m))},m}(function(b){var m=b;return m.select=function(w){Q.select(m,w)},m.deselect=function(){var w=m.selection,S=R.findDocumentOrShadowRoot(m).getSelection();S&&S.rangeCount>0&&S.removeAllRanges(),w&&Q.deselect(b)},m.move=function(w,S){S===void 0&&(S=!1),w&&(w<0||Q.move(b,{distance:w,unit:"character",reverse:S}))},m.moveReverse=function(w){m.move(w,!0)},m.restoreSelection=function(){var w=cE.get(m);w!=null&&(m.focus(),Q.select(m,w))},m.getSelectionPosition=function(){return KE(m)},m.getNodePosition=function(w){return qE(m,w)},m.isSelectedAll=function(){var w=m.selection;if(w==null)return!1;var S=it(re.edges(w),2),C=S[0],x=S[1],k=it(B.edges(m,[]),2),E=k[0],A=k[1];return!(!Ke.equals(C,E)||!Ke.equals(x,A))},m.selectAll=function(){var w=B.start(m,[]),S=B.end(m,[]);Q.select(m,{anchor:w,focus:S})},m}(function(b){var m=b,w=m.onChange,S=m.insertText,C=m.apply,x=m.deleteBackward;return m.insertText=function(k){m.getConfig().readOnly||S(k)},m.apply=function(k){var E,A,N,V,D,P,O,F,H=[];switch(k.type){case"insert_text":case"remove_text":case"set_node":try{for(var J=co(B.levels(m,{at:k.path})),j=J.next();!j.done;j=J.next()){var z=it(j.value,2),L=z[0],_=z[1],T=R.findKey(m,L);H.push([_,T])}}catch(se){E={error:se}}finally{try{j&&!j.done&&(A=J.return)&&A.call(J)}finally{if(E)throw E.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var I=co(B.levels(m,{at:Y.parent(k.path)})),U=I.next();!U.done;U=I.next()){var $=it(U.value,2);L=$[0],_=$[1],T=R.findKey(m,L),H.push([_,T])}}catch(se){N={error:se}}finally{try{U&&!U.done&&(V=I.return)&&V.call(I)}finally{if(N)throw N.error}}break;case"move_node":try{for(var W=co(B.levels(m,{at:Y.common(Y.parent(k.path),Y.parent(k.newPath))})),Z=W.next();!Z.done;Z=W.next()){var ne=it(Z.value,2);L=ne[0],_=ne[1],T=R.findKey(m,L),H.push([_,T])}}catch(se){D={error:se}}finally{try{Z&&!Z.done&&(P=W.return)&&P.call(W)}finally{if(D)throw D.error}}}C(k);try{for(var me=co(H),de=me.next();!de.done;de=me.next()){var G=it(de.value,2);_=G[0],T=G[1],L=it(B.node(m,_),1)[0],C0.set(L,T)}}catch(se){O={error:se}}finally{try{de&&!de.done&&(F=me.return)&&F.call(me)}finally{if(O)throw O.error}}},m.deleteBackward=function(k){if(k!=="line")return x(k);if(b.selection&&re.isCollapsed(b.selection)){var E=B.above(b,{match:function(D){return B.isBlock(b,D)},at:b.selection});if(E){var A=it(E,2)[1],N=B.range(b,A,b.selection.anchor),V=function(D,P){var O=B.range(D,re.end(P)),F=Array.from(B.positions(D,{at:P})),H=0,J=F.length,j=Math.floor(J/2);if(zF(D,B.range(D,F[H]),O))return B.range(D,F[H],O);if(F.length<2)return B.range(D,F[F.length-1],O);for(;j!==F.length&&j!==H;)zF(D,B.range(D,F[j]),O)?J=j:H=j,j=Math.floor((H+J)/2);return B.range(D,F[J],O)}(m,N);re.isCollapsed(V)||Q.delete(b,{at:V})}}},m.onChange=function(){var k=m.selection;k!=null&&cE.set(m,k),m.emit("change"),w()},m.handleTab=function(){m.insertText(" ")},m.getHtml=function(){var k=m.children;return(k===void 0?[]:k).map(function(E){return LF(E,m)}).join("")},m.getText=function(){var k=m.children;return(k===void 0?[]:k).map(function(E){return he.string(E)}).join(`
85
+ ></div>`)}(o);r.append(f),e.$textArea=f,n=f[0],(h=efe([nfe,ife,sfe,rfe,afe,tfe]))(n,u),X9.set(e,!1),J9.set(e,h)}else{var g=Z9.get(e),h=J9.get(e);if(g==null||h==null)return;n=g.elm,h(g,u)}if(n!=null||(n=hE(o))!=null){if((d?s:t.isFocused())&&n.focus({preventScroll:!0}),d){var p=fE(n);p&&Q9.set(t,p)}sE.set(t,n),S0.set(t,n),w0.set(n,t),Z9.set(e,u)}}function gR(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function mR(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function $E(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return mR(n.overflowY,t)||mR(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function T0(e,t,n,r,o,a,l,s){return a<e&&l>t||a>e&&l<t?0:a<=e&&s<=n||l>=t&&s>=n?a-e-r:l>t&&s<n||a<e&&s>n?l-t+o:0}function pR(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,l=t.boundary,s=t.skipOverflowHiddenElements,u=typeof l=="function"?l:function(de){return de!==l};if(!gR(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],f=e;gR(f)&&u(f);){if((f=f.parentElement)===c){d.push(f);break}f!=null&&f===document.body&&$E(f)&&!$E(document.documentElement)||f!=null&&$E(f,s)&&d.push(f)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),b=v.height,m=v.width,w=v.top,S=v.right,C=v.bottom,x=v.left,k=o==="start"||o==="nearest"?w:o==="end"?C:w+b/2,E=a==="center"?x+m/2:a==="end"?S:x,A=[],N=0;N<d.length;N++){var V=d[N],D=V.getBoundingClientRect(),P=D.height,O=D.width,F=D.top,H=D.right,J=D.bottom,j=D.left;if(r==="if-needed"&&w>=0&&x>=0&&C<=h&&S<=g&&w>=F&&C<=J&&x>=j&&S<=H)return A;var z=getComputedStyle(V),L=parseInt(z.borderLeftWidth,10),_=parseInt(z.borderTopWidth,10),T=parseInt(z.borderRightWidth,10),I=parseInt(z.borderBottomWidth,10),U=0,$=0,W="offsetWidth"in V?V.offsetWidth-V.clientWidth-L-T:0,Z="offsetHeight"in V?V.offsetHeight-V.clientHeight-_-I:0;if(c===V)U=o==="start"?k:o==="end"?k-h:o==="nearest"?T0(y,y+h,h,_,I,y+k,y+k+b,b):k-h/2,$=a==="start"?E:a==="center"?E-g/2:a==="end"?E-g:T0(p,p+g,g,L,T,p+E,p+E+m,m),U=Math.max(0,U+y),$=Math.max(0,$+p);else{U=o==="start"?k-F-_:o==="end"?k-J+I+Z:o==="nearest"?T0(F,J,P,_,I+Z,k,k+b,b):k-(F+P/2)+Z/2,$=a==="start"?E-j-L:a==="center"?E-(j+O/2)+W/2:a==="end"?E-H+T+W:T0(j,H,O,L,T+W,E,E+m,m);var ne=V.scrollLeft,me=V.scrollTop;k+=me-(U=Math.max(0,Math.min(me+U,V.scrollHeight-P+Z))),E+=ne-($=Math.max(0,Math.min(ne+$,V.scrollWidth-O+W)))}A.push({el:V,top:U,left:$})}return A}function vR(e){return e===Object(e)&&Object.keys(e).length!==0}function ho(e,t){return Js(t)&&R.hasDOMNode(e,t,{editable:!0})}function yR(e,t){if(e.getConfig().readOnly)return!1;var n=rd(e,t)&&R.toSlateNode(e,t);return B.isVoid(e,n)}function rd(e,t){return Js(t)&&R.hasDOMNode(e,t)}function bR(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),a=R.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var l=a.type!=="None";if(r||l){var s=sE.get(t),u=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(u=!0),l&&u&&r){var c=R.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(c&&re.equals(c,r)){var d=!0;if(re.isCollapsed(r)){var f=a.anchorNode,g=a.anchorOffset;if(f===s){var h=s.childNodes,p=void 0;(p=h[g])&&p.matches("table")&&(d=!1),(p=h[g-1])&&p.matches("table")&&(d=!1)}}if(d)return}}if(!r||R.hasRange(t,r)){e.isUpdatingSelection=!0;var y=r&&R.toDOMRange(t,r);if(y){re.isBackward(r)?a.setBaseAndExtent(y.endContainer,y.endOffset,y.startContainer,y.startOffset):a.setBaseAndExtent(y.startContainer,y.startOffset,y.endContainer,y.endOffset);var v=y.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=y.getBoundingClientRect.bind(y);var b=document.body;(function(m,w){var S=!m.ownerDocument.documentElement.contains(m);if(vR(w)&&typeof w.behavior=="function")return w.behavior(S?[]:pR(m,w));if(!S){var C=function(x){return x===!1?{block:"end",inline:"nearest"}:vR(x)?x:{block:"start",inline:"nearest"}}(w);(function(x,k){k===void 0&&(k="auto");var E="scrollBehavior"in document.body.style;x.forEach(function(A){var N=A.el,V=A.top,D=A.left;N.scroll&&E?N.scroll({top:V,left:D,behavior:k}):(N.scrollTop=V,N.scrollLeft=D)})})(pR(m,C),C.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:b,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else a.removeAllRanges();setTimeout(function(){y&&ng&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=R.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var eD=new WeakMap,wR=new WeakMap,dye={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"},fye={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"},hye={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Lt=function(e){var t=dye[e],n=fye[e],r=hye[e],o=t&&Vx(t),a=n&&Vx(n),l=r&&Vx(r);return function(s){return!(!o||!o(s))||!!(gE&&a&&a(s))||!(gE||!l||!l(s))}},Gt={isBold:Lt("bold"),isCompose:Lt("compose"),isMoveBackward:Lt("moveBackward"),isMoveForward:Lt("moveForward"),isDeleteBackward:Lt("deleteBackward"),isDeleteForward:Lt("deleteForward"),isDeleteLineBackward:Lt("deleteLineBackward"),isDeleteLineForward:Lt("deleteLineForward"),isDeleteWordBackward:Lt("deleteWordBackward"),isDeleteWordForward:Lt("deleteWordForward"),isExtendBackward:Lt("extendBackward"),isExtendForward:Lt("extendForward"),isExtendLineBackward:Lt("extendLineBackward"),isExtendLineForward:Lt("extendLineForward"),isItalic:Lt("italic"),isMoveLineBackward:Lt("moveLineBackward"),isMoveLineForward:Lt("moveLineForward"),isMoveWordBackward:Lt("moveWordBackward"),isMoveWordForward:Lt("moveWordForward"),isRedo:Lt("redo"),isSplitBlock:Lt("splitBlock"),isTransposeCharacter:Lt("transposeCharacter"),isUndo:Lt("undo"),isTab:Lt("tab"),isSelectAll:Lt("selectAll")};function yn(e){e.preventDefault()}var gye={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(og&&!o&&ho(n,r.target)){var a=n.selection,l=r.inputType,s=r.dataTransfer||r.data||void 0;if(l!=="insertCompositionText"&&l!=="deleteCompositionText"){if(r.preventDefault(),!l.startsWith("delete")||l.startsWith("deleteBy")){var u=it(r.getTargetRanges(),1)[0];if(u){var c=R.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});a&&re.equals(a,c)||Q.select(n,c)}}if(a&&re.isExpanded(a)&&l.startsWith("delete")){var d=l.endsWith("Backward")?"backward":"forward";B.deleteFragment(n,{direction:d})}else switch(l){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":B.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":B.deleteForward(n);break;case"deleteContentBackward":B.deleteBackward(n);break;case"deleteEntireSoftLine":B.deleteBackward(n,{unit:"line"}),B.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":B.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":B.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":B.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":B.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":B.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":B.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":B.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(l==="insertFromPaste"&&!dE.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&B.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!o&&ho(n,r.target)){var l=R.findDocumentOrShadowRoot(n);if(a!==l.activeElement){var s=r.relatedTarget;if(!(s===R.toDOMNode(n,n)||Mo(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Js(s)&&R.hasDOMNode(n,s)){var u=R.toSlateNode(n,s);if(_e.isElement(u)&&!n.isVoid(u))return}if(rg){var c=l.getSelection();c==null||c.removeAllRanges()}Xs.delete(n)}}}},focus:function(e,t,n){var r=R.toDOMNode(n,n),o=R.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,ng&&e.target!==r?r.focus():Xs.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&rd(n,e.target)&&Js(e.target)){var r=R.toSlateNode(n,e.target),o=R.findPath(n,r);if(B.hasPath(n,o)&&he.get(n,o)===r){var a=B.start(n,o),l=B.end(n,o),s=B.void(n,{at:a}),u=B.void(n,{at:l});if(s&&u&&Y.equals(s[1],u[1])){var c=B.range(n,a);Q.select(n,c)}}}},compositionstart:function(e,t,n){if(ho(n,e.target)){var r=n.selection;if(r&&re.isExpanded(r)&&(B.deleteFragment(n),Promise.resolve().then(function(){bR(t,n,!0)})),r&&re.isCollapsed(r)){var o=R.toDOMRange(n,r).startContainer,a=o.textContent||"";eD.set(n,a),wR.set(n,o)}t.isComposing=!0,function(l,s){var u;s.getConfig().placeholder&&s.isEmpty()&&l.showPlaceholder&&((u=l.$placeholder)===null||u===void 0||u.hide(),l.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(ho(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(mE||ng)&&R.cleanExposedTexNodeInSelectionBlock(n);for(var a=re.isBackward(o)?o.focus:o.anchor,l=it(B.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var u=it(B.node(n,a.path.slice(0,s+1)),1)[0];if(_e.isElement(u)&&((rg||ng)&&u.type==="link"||u.type==="code")){R.setNewKey(l);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var d=R.getLeftLengthOfMaxLength(n);d<c.length?(R.toDOMRange(n,o).startContainer.textContent=eD.get(n)||"",d>0&&B.insertText(n,c.slice(0,d)),t.changeViewState()):B.insertText(n,c)}else B.insertText(n,c);rg||setTimeout(function(){var f=n.selection;if(f!=null){var g=wR.get(n);g!=null&&R.toDOMRange(n,f).startContainer!==g&&(g.textContent=eD.get(n)||"")}})}}}},compositionupdate:function(e,t,n){ho(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&ho(n,r.target)){if(function(l,s){var u=v0.get(l),c=u&&u.getMenus(),d=y0.get(l),f=d&&d.getMenus(),g=uo(uo({},c),f);for(var h in g){var p=g[h],y=p.hotkey;if(y&&Ife(y,s)&&!p.isDisabled(l)){var v=p.getValue(l);p.exec(l,v)}}}(n,r),Gt.isTab(r))return yn(r),void n.handleTab();if(Gt.isRedo(r))return yn(r),void(typeof n.redo=="function"&&n.redo());if(Gt.isUndo(r))return yn(r),void(typeof n.undo=="function"&&n.undo());if(Gt.isMoveLineBackward(r))return yn(r),void Q.move(n,{unit:"line",reverse:!0});if(Gt.isMoveLineForward(r))return yn(r),void Q.move(n,{unit:"line"});if(Gt.isExtendLineBackward(r))return yn(r),void Q.move(n,{unit:"line",edge:"focus",reverse:!0});if(Gt.isExtendLineForward(r))return yn(r),void Q.move(n,{unit:"line",edge:"focus"});if(Gt.isMoveBackward(r))return yn(r),void(o&&re.isCollapsed(o)?Q.move(n,{reverse:!0}):Q.collapse(n,{edge:"start"}));if(Gt.isMoveForward(r))return yn(r),void(o&&re.isCollapsed(o)?Q.move(n):Q.collapse(n,{edge:"end"}));if(Gt.isMoveWordBackward(r))return yn(r),o&&re.isExpanded(o)&&Q.collapse(n,{edge:"focus"}),void Q.move(n,{unit:"word",reverse:!0});if(Gt.isMoveWordForward(r))return yn(r),o&&re.isExpanded(o)&&Q.collapse(n,{edge:"focus"}),void Q.move(n,{unit:"word"});if(Gt.isSelectAll(r))return yn(r),void n.selectAll();if(og){if((mE||rg)&&o&&(Gt.isDeleteBackward(r)||Gt.isDeleteForward(r))&&re.isCollapsed(o)){var a=he.parent(n,o.anchor.path);if(_e.isElement(a)&&B.isVoid(n,a)&&B.isInline(n,a))return r.preventDefault(),void Q.delete(n,{unit:"block"})}}else{if(Gt.isBold(r)||Gt.isItalic(r)||Gt.isTransposeCharacter(r))return void yn(r);if(Gt.isSplitBlock(r))return yn(r),void B.insertBreak(n);if(Gt.isDeleteBackward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"backward"}):B.deleteBackward(n));if(Gt.isDeleteForward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"forward"}):B.deleteForward(n));if(Gt.isDeleteLineBackward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"backward"}):B.deleteBackward(n,{unit:"line"}));if(Gt.isDeleteLineForward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"forward"}):B.deleteForward(n,{unit:"line"}));if(Gt.isDeleteWordBackward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"backward"}):B.deleteBackward(n,{unit:"word"}));if(Gt.isDeleteWordForward(r))return yn(r),void(o&&re.isExpanded(o)?B.deleteFragment(n,{direction:"forward"}):B.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!og&&!n.getConfig().readOnly&&ho(n,e.target)){e.preventDefault();var r=e.key;B.insertText(n,r)}},copy:function(e,t,n){var r=e;if(ho(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&ho(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),o))if(re.isExpanded(o))B.deleteFragment(n);else{var l=he.parent(n,o.anchor.path);B.isVoid(n,l)&&Q.delete(n)}}},paste:function(e,t,n){dE.set(n,!0);var r=e;if(!n.getConfig().readOnly&&ho(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void dE.set(n,!1);if(!og||function(l){return l.clipboardData&&l.clipboardData.getData("text/plain")!==""&&l.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(rd(n,e.target)){var r=R.toSlateNode(n,e.target);B.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(rd(n,r.target)&&!n.getConfig().readOnly){var o=R.toSlateNode(n,r.target),a=R.findPath(n,o);if(B.isVoid(n,o)||B.void(n,{at:a,voids:!0})){var l=B.range(n,a);Q.select(n,l)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&rd(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&rd(n,r.target)&&o!=null&&!(og&&rg&&o.files.length>0)){r.preventDefault();var a=n.selection,l=R.findEventRange(n,r);Q.select(n,l),t.isDraggingInternally&&(a&&Q.delete(n,{at:a}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},mye=1,pye=function(){function e(t){var n=this;this.id=mye++,this.$textArea=null,this.$progressBar=M('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=M('<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=Ns(function(){var l=n.editorInstance;(function(s,u){var c=s.isComposing,d=s.isUpdatingSelection,f=s.isDraggingInternally;if(!(u.getConfig().readOnly||c||d||f)){var g=R.findDocumentOrShadowRoot(u),h=g.activeElement,p=R.toDOMNode(u,u),y=g.getSelection();if(h===p?(s.latestElement=h,Xs.set(u,!0)):Xs.delete(u),!y)return Q.deselect(u);var v=y.anchorNode,b=y.focusNode,m=ho(u,v)||yR(u,v),w=ho(u,b)||yR(u,b);if(m&&w){var S=R.toSlateRange(u,y,{exactMatch:!1,suppressThrow:!1});Q.select(u,S)}else Q.deselect(u)}})(n,l)},100);var r=M(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=M('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var a=M('<div class="w-e-scroll"></div>');o.append(a),this.$scroll=a,this.$textAreaContainer=o,fo(function(){var l=n.editorInstance,s=R.getWindow(l);s.document.addEventListener("selectionchange",n.onDOMSelectionChange),l.on("destroyed",function(){s.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return l.hidePanelOrModal()}),l.on("change",n.changeViewState.bind(n));var u=l.getConfig().onChange;u&&l.on("change",function(){return u(l)}),n.onFocusAndOnBlur(),l.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=rE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(px(gye,function(a,l){n.on(l,function(s){a(s,t,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ns(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,a=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return a&&a(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-R.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;cye(this,n),function(r,o){var a,l=o.getConfig().placeholder;if(l){var s=o.isEmpty();if(s&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var u=M('<div class="w-e-text-placeholder">'+l+"</div>");r.$textAreaContainer.append(u),r.$placeholder=u}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!s&&r.showPlaceholder&&((a=r.$placeholder)===null||a===void 0||a.hide(),r.showPlaceholder=!1)}}(this,n),fo(function(){bR(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function tD(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&&tD(t)}function nD(){return M('<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 SR(){return M('<div class="w-e-bar-divider"></div>')}function CR(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var a=gE?"cmd":"ctrl";r=r.replace("mod",a)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var l=r?n+`
86
+ `+r:n;e.attr("data-tooltip",l),e.addClass("w-e-menu-tooltip-v5")}}}U1("match",function(e,t,n){return[function(r){var o=so(this),a=r==null?void 0:Us(r,e);return a?lt(a,r,o):new RegExp(r)[e](Dt(o))},function(r){var o=sn(this),a=Dt(r),l=n(t,o,a);if(l.done)return l.value;if(!o.global)return Jh(o,a);var s=o.unicode;o.lastIndex=0;for(var u,c=[],d=0;(u=Jh(o,a))!==null;){var f=Dt(u[0]);c[d]=f,f===""&&(o.lastIndex=W1(a,Lc(o.lastIndex),s)),d++}return d===0?null:c}]});var rD=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=M('<div class="w-e-bar-item"></div>'),this.$button=M('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,l=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var s=n.title,u=n.hotkey,c=u===void 0?"":u,d=n.iconSvg,f=d===void 0?"":d,g=this.$button;if(f){var h=M(f);tD(h),g.append(h)}else g.text(s);CR(g,f,s,c,r),r&&f&&g.append(M('<span class="title">'+s+"</span>")),l&&g.css("width",l+"px"),g.attr("data-menu-key",t),this.$elem.append(g),fo(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),qr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=qr(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=qr(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=qr(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),vye=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return Gc(t,e),t.prototype.onButtonClick=function(){},t}(rD),oD=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=lE.get(t);n==null&&(n=new Set,lE.set(t,n)),n.add(this),b0.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=b0.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=b0.get(this);t&&t.emit("modalOrPanelHide")}},e}(),yye=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=M('<div class="w-e-drop-panel"></div>'),r}return Gc(t,e),t.prototype.genSelfElem=function(){return null},t}(oD),bye=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var l=nD();a.$button.append(l)}return a}return Gc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=qr(this);if(this.dropPanel==null){var o=new yye(r),a=n.getPanelContentElem(r);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var l=this.dropPanel;l.isShow?l.hide():(a=n.getPanelContentElem(r),l.renderContent(a),l.show())}var s=this.dropPanel;if(s.isShow){var u=this.$elem,c=u.offset().left,d=u.parents(".w-e-bar");c-d.offset().left>=d.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(rD),wye=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=M('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var a=o.$elem;return a.on("click",function(l){return l.stopPropagation()}),a.on("keyup",function(l){l.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Gc(t,e),t.prototype.genSelfElem=function(){var n=this,r=M('<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>'),o=b0.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t}(oD);function Kr(e,t,n){var r=M('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=M('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function od(e,t){var n=M('<div class="button-container"></div>'),r=M('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Sye=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;return a.$body=M("body"),a.modal=null,a.menu=r,a}return Gc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=qr(this),r=this.menu.getModalPositionNode(n);return _e.isElement(r)?qE(n,r,"modal"):KE(n)},t.prototype.handleModal=function(){var n=qr(this),r=this.menu;if(this.modal==null){var o=new wye(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=qr(this),a=this.menu;if(a.getModalContentElem!=null){var l=R.getTextarea(o),s=R.getToolbar(o),u=((s==null?void 0:s.getConfig())||{}).modalAppendToBody,c=a.getModalContentElem(o);if(n.renderContent(c),u)n.setStyle({left:"0",right:"0"});else{var d=this.getPosition();n.setStyle(d)}r&&(u?n.appendTo(this.$body):n.appendTo(l.$textAreaContainer)),n.show(),u||YE(o,n.$elem),setTimeout(function(){o.blur()})}},t}(rD),Cye=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=M('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(a){a.stopPropagation()}),o}return Gc(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=M("<ul></ul>");n.forEach(function(a){var l=a.value,s=a.text,u=a.selected,c=a.styleForRenderMenuList,d=M('<li data-value="'+l+'"></li>');if(c&&d.css(c),u){var f=M('<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>');d.append(f),d.addClass("selected")}d.append(M('<span data-value="'+l+'">'+s+"</span>")),d.attr("title",s),o.append(d)}),r.append(o)},t.prototype.genSelfElem=function(){return null},t}(oD),kye=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=M('<div class="w-e-bar-item"></div>'),this.$button=M('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var a=n.tag,l=n.title,s=n.width,u=n.iconSvg,c=u===void 0?"":u,d=n.hotkey,f=d===void 0?"":d;if(a!=="select")throw new Error("Invalid tag '"+a+"', expected 'select'");var g=this.$button;s&&g.css("width",s+"px"),g.attr("data-menu-key",t),CR(g,c,l,f,r),this.$elem.append(g),this.menu=n,fo(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),qr(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=qr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Cye(n,r.selectPanelWidth);var o=this.selectList,a=r.getOptions(n);o.renderList(a),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(l){var s=l.target;if(s!=null){l.preventDefault();var u=M(s).attr("data-value");t.onChange(u)}})}else(o=this.selectList).isShow?o.hide():(a=r.getOptions(n),o.renderList(a),o.show())}},e.prototype.onChange=function(t){var n=qr(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=qr(this),n=this.menu,r=n.getValue(t),o=function(s,u){for(var c=s.length,d="",f=0;f<c;f++){var g=s[f];if(g.value===u){d=g.text;break}}return d}(n.getOptions(t),r.toString()),a=this.$button,l=nD();a.empty(),a.text(o),a.append(l)},e.prototype.setDisabled=function(){var t=qr(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),kR=function(){function e(t){this.$elem=M('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=M('<div class="w-e-bar-item-menus-container"></div>'),this.$button=M('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,a=this.$elem,l=this.$button;if(r){var s=M(r);tD(s),l.append(s)}else l.text(o);l.attr("data-menu-key",n);var u=nD();l.append(u),a.append(l);var c=this.$container;a.append(c);var d=this.createObserver();this.observe(d)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var a=n.find("button"),l=a.length;if(l!==0){var s=0;a.each(function(u){M(u).hasClass("disabled")&&s++}),o.disconnect(),s===l?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}});return o},e}(),xR=new WeakMap;function qr(e){var t=iE.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function ER(e,t,n){n===void 0&&(n=!1);var r=xR.get(t);if(r)return r;var o=t.tag;if(o==="button"){var a=t.showDropPanel,l=t.showModal;r=a?new bye(e,t,n):l?new Sye(e,t,n):new vye(e,t,n)}if(o==="select"&&(r=new kye(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return xR.set(t,r),r}function xye(e,t){var n=e.selection;return n!=null&&!re.isCollapsed(n)&&!R.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!Se.isText(t)}var Eye=function(){function e(){var t=this;this.$elem=M('<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=XI(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,a=o===void 0?null:o,l=r.menuKeys,s=l===void 0?[]:l;a!=null&&t.changeItemsState(),a&&_e.isElement(a)&&n&&t.isSamePath(a,t.prevSelectedNode)||(t.hideAndClean(),a!=null&&(t.registerItems(s),t.setPosition(a),t.show()),t.prevSelectedNode=a)},200),fo(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),R.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.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 t=this;fo(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var a=SR();r.append(a)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var a=ag[t];if(a==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof a!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=a(),r[t]=o}var l=ER(t,o);this.hoverbarItems.push(l),iE.set(l,n),this.$elem.append(l.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),_e.isElement(t)){var o=qE(n,t,"bar");return r.css(o),void YE(n,r)}if(Se.isText(t))return o=KE(n),r.css(o),void YE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],a=function(s){var u=n[s],c=u.match,d=u.menuKeys,f=d===void 0?[]:d,g=c||function(y,v){return R.checkNodeType(v,s)},h=it(B.nodes(t,{match:function(y){return g(t,y)},universal:!0}),1),p=h[0];if(p!=null)return r=p[0],o=f,"break"};for(var l in n)if(a(l)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=aE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=xye),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=R.findPath(null,t),o=R.findPath(null,n);return Y.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function DR(e,t,n,r){if(tg.set(e,t),qc.set(e,n),_e.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(s,u){return DR(s,u,e,r)}),B.isVoid(r,e)){var a=it(he.texts(e),1),l=it(a[0],1)[0];tg.set(l,0),qc.set(l,e)}}}function Dye(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,a=e.content,l=e.html,s=e.plugins,u=s===void 0?[]:s,c=(b=>{var m=b,{apply:w}=m;return m.history={undos:[],redos:[]},m.redo=()=>{var{history:S}=m,{redos:C}=S;if(C.length>0){var x=C[C.length-1];Hc.withoutSaving(m,()=>{B.withoutNormalizing(m,()=>{for(var k of x)m.apply(k)})}),S.redos.pop(),S.undos.push(x)}},m.undo=()=>{var{history:S}=m,{undos:C}=S;if(C.length>0){var x=C[C.length-1];Hc.withoutSaving(m,()=>{B.withoutNormalizing(m,()=>{var k=x.map(zi.inverse).reverse();for(var E of k)m.apply(E)})}),S.redos.push(x),S.undos.pop()}},m.apply=S=>{var{operations:C,history:x}=m,{undos:k}=x,E=k[k.length-1],A=E&&E[E.length-1],N=((O,F)=>!(!F||O.type!=="set_selection"||F.type!=="set_selection"))(S,A),V=Hc.isSaving(m),D=Hc.isMerging(m);if(V==null&&(V=((O,F)=>O.type!=="set_selection"||O.properties!=null&&O.newProperties!=null)(S)),V){if(D==null&&(D=E!=null&&(C.length!==0||((O,F)=>O.type==="set_selection"||!(!F||O.type!=="insert_text"||F.type!=="insert_text"||O.offset!==F.offset+F.text.length||!Y.equals(O.path,F.path))||!(!F||O.type!=="remove_text"||F.type!=="remove_text"||O.offset+O.text.length!==F.offset||!Y.equals(O.path,F.path)))(S,A)||N)),E&&D)N&&E.pop(),E.push(S);else{var P=[S];k.push(P)}for(;k.length>100;)k.shift();(O=>O.type!=="set_selection")(S)&&(x.redos=[])}w(S)},m})(function(b){var m=b,w=m.insertText,S=m.insertNode,C=m.insertFragment,x=m.dangerouslyInsertHtml;return m.insertText=function(k){if(m.getConfig().maxLength){var E=R.getLeftLengthOfMaxLength(m);E<=0||(E<k.length?w(k.slice(0,E)):w(k))}else w(k)},m.insertNode=function(k){if(m.getConfig().maxLength){var E=R.getLeftLengthOfMaxLength(m);E<=0||E<he.string(k).length||S(k)}else S(k)},m.insertFragment=function(k){if(m.getConfig().maxLength)if(k.length!==1)k.forEach(function(A){m.insertNode(A)});else{var E=k[0];if(R.getLeftLengthOfMaxLength(m)<he.string(E).length)return;C(k)}else C(k)},m.dangerouslyInsertHtml=function(k,E){if(k===void 0&&(k=""),E===void 0&&(E=!1),k)if(m.getConfig().maxLength){var A=R.getLeftLengthOfMaxLength(m);if(!(A<=0)){var N=document.createElement("div");N.innerHTML=k;var V=Array.from(N.childNodes).reduce(function(D,P){var O=P.nodeType,F=P.nodeName;return P?O===pa.TEXT_NODE?D+(P.textContent||""):O===pa.ELEMENT_NODE?tR.has(F.toLowerCase())?D:D+(P.textContent||""):D:D},"");A<V.length||x(k,E)}}else x(k,E)},m}(function(b){var m=b;return m.on=function(w,S){var C=B0(m);if(C.on(w,S),w==="destroyed"&&iR(m,S),w!=="destroyed"){var x=function(){return C.off(w,S)};C.on("destroyed",x),iR(m,x)}},m.once=function(w,S){B0(m).once(w,S)},m.off=function(w,S){B0(m).off(w,S)},m.emit=function(w){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];var x=B0(m);x.emit.apply(x,J1([w],it(S))),w==="destroyed"&&(Qve(m).forEach(function(k){return x.off("destroyed",k)}),$ve(m))},m}(function(b){var m=b;return m.select=function(w){Q.select(m,w)},m.deselect=function(){var w=m.selection,S=R.findDocumentOrShadowRoot(m).getSelection();S&&S.rangeCount>0&&S.removeAllRanges(),w&&Q.deselect(b)},m.move=function(w,S){S===void 0&&(S=!1),w&&(w<0||Q.move(b,{distance:w,unit:"character",reverse:S}))},m.moveReverse=function(w){m.move(w,!0)},m.restoreSelection=function(){var w=cE.get(m);w!=null&&(m.focus(),Q.select(m,w))},m.getSelectionPosition=function(){return KE(m)},m.getNodePosition=function(w){return qE(m,w)},m.isSelectedAll=function(){var w=m.selection;if(w==null)return!1;var S=it(re.edges(w),2),C=S[0],x=S[1],k=it(B.edges(m,[]),2),E=k[0],A=k[1];return!(!Ke.equals(C,E)||!Ke.equals(x,A))},m.selectAll=function(){var w=B.start(m,[]),S=B.end(m,[]);Q.select(m,{anchor:w,focus:S})},m}(function(b){var m=b,w=m.onChange,S=m.insertText,C=m.apply,x=m.deleteBackward;return m.insertText=function(k){m.getConfig().readOnly||S(k)},m.apply=function(k){var E,A,N,V,D,P,O,F,H=[];switch(k.type){case"insert_text":case"remove_text":case"set_node":try{for(var J=co(B.levels(m,{at:k.path})),j=J.next();!j.done;j=J.next()){var z=it(j.value,2),L=z[0],_=z[1],T=R.findKey(m,L);H.push([_,T])}}catch(se){E={error:se}}finally{try{j&&!j.done&&(A=J.return)&&A.call(J)}finally{if(E)throw E.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var I=co(B.levels(m,{at:Y.parent(k.path)})),U=I.next();!U.done;U=I.next()){var $=it(U.value,2);L=$[0],_=$[1],T=R.findKey(m,L),H.push([_,T])}}catch(se){N={error:se}}finally{try{U&&!U.done&&(V=I.return)&&V.call(I)}finally{if(N)throw N.error}}break;case"move_node":try{for(var W=co(B.levels(m,{at:Y.common(Y.parent(k.path),Y.parent(k.newPath))})),Z=W.next();!Z.done;Z=W.next()){var ne=it(Z.value,2);L=ne[0],_=ne[1],T=R.findKey(m,L),H.push([_,T])}}catch(se){D={error:se}}finally{try{Z&&!Z.done&&(P=W.return)&&P.call(W)}finally{if(D)throw D.error}}}C(k);try{for(var me=co(H),de=me.next();!de.done;de=me.next()){var G=it(de.value,2);_=G[0],T=G[1],L=it(B.node(m,_),1)[0],C0.set(L,T)}}catch(se){O={error:se}}finally{try{de&&!de.done&&(F=me.return)&&F.call(me)}finally{if(O)throw O.error}}},m.deleteBackward=function(k){if(k!=="line")return x(k);if(b.selection&&re.isCollapsed(b.selection)){var E=B.above(b,{match:function(D){return B.isBlock(b,D)},at:b.selection});if(E){var A=it(E,2)[1],N=B.range(b,A,b.selection.anchor),V=function(D,P){var O=B.range(D,re.end(P)),F=Array.from(B.positions(D,{at:P})),H=0,J=F.length,j=Math.floor(J/2);if(zF(D,B.range(D,F[H]),O))return B.range(D,F[H],O);if(F.length<2)return B.range(D,F[F.length-1],O);for(;j!==F.length&&j!==H;)zF(D,B.range(D,F[j]),O)?J=j:H=j,j=Math.floor((H+J)/2);return B.range(D,F[J],O)}(m,N);re.isCollapsed(V)||Q.delete(b,{at:V})}}},m.onChange=function(){var k=m.selection;k!=null&&cE.set(m,k),m.emit("change"),w()},m.handleTab=function(){m.insertText(" ")},m.getHtml=function(){var k=m.children;return(k===void 0?[]:k).map(function(E){return LF(E,m)}).join("")},m.getText=function(){var k=m.children;return(k===void 0?[]:k).map(function(E){return he.string(E)}).join(`
87
87
  `)},m.getSelectionText=function(){var k=m.selection;return k==null?"":B.string(b,k)},m.getElemsByType=function(k,E){var A,N;E===void 0&&(E=!1);var V=[],D=B.nodes(m,{at:[],universal:!0});try{for(var P=co(D),O=P.next();!O.done;O=P.next()){var F=it(O.value,1)[0];if(_e.isElement(F)&&(E?F.type.indexOf(k)>=0:F.type===k)){var H=MF(R.findKey(m,F).id);V.push(uo(uo({},F),{id:H}))}}}catch(J){A={error:J}}finally{try{O&&!O.done&&(N=P.return)&&N.call(P)}finally{if(A)throw A.error}}return V},m.getElemsByTypePrefix=function(k){return m.getElemsByType(k,!0)},m.isEmpty=function(){var k=m.children,E=k===void 0?[]:k;if(E.length>1)return!1;var A=E[0];if(A==null)return!0;if(_e.isElement(A)&&A.type==="paragraph"){var N=A.children,V=N===void 0?[]:N;if(V.length>1)return!1;var D=V[0];if(D==null||Se.isText(D)&&D.text==="")return!0}return!1},m.clear=function(){Q.delete(m,{at:{anchor:B.start(m,[]),focus:B.end(m,[])}}),m.children.length===0&&Q.insertNodes(m,[{type:"paragraph",children:[{text:""}]}])},m.getParentNode=function(k){return R.getParentNode(m,k)},m.dangerouslyInsertHtml=function(k,E){if(k===void 0&&(k=""),E===void 0&&(E=!1),k){var A=document.createElement("div");A.innerHTML=k;var N=Array.from(A.childNodes);if(N=N.filter(function(O){var F=O.nodeType,H=O.nodeName;return F===pa.TEXT_NODE||F===pa.ELEMENT_NODE&&!tR.has(H.toLowerCase())}),N.length!==0){var V=m.selection;if(V!=null){var D=null;R.isSelectedEmptyParagraph(m)&&!E&&(D=[V.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var P=0;N.forEach(function(O){var F=O.nodeType,H=O.nodeName,J=O.textContent,j=J===void 0?"":J;if(F!==pa.TEXT_NODE)if(H!=="BR"){var z=O,L=!1;if(HF.includes(H.toLowerCase()))L=!0;else for(var _ in D0)if(z.matches(_)){L=!0;break}if(L){var T=jE(M(z),m);return Array.isArray(T)?(T.forEach(function(U){return nR(m,U)}),P++):(nR(m,T),P++),void(R.isSelectedVoidNode(m)&&m.move(1))}var I=window.getComputedStyle(z).display;R.isSelectedEmptyParagraph(m)||I.indexOf("inline")<0&&m.insertBreak(),m.dangerouslyInsertHtml(z.innerHTML,!0)}else m.insertText(`
88
- `);else{if(!j||!j.trim())return;m.insertNode({text:j})}}),P&&D&&R.isEmptyPath(m,D)&&Q.removeNodes(m,{at:D}),A.remove()}}}},m.setHtml=function(k){k===void 0&&(k="");var E=m.isDisabled(),A=m.isFocused(),N=JSON.stringify(m.selection);m.enable(),m.focus(),m.clear();var V=QF(m,k);if(Q.insertFragment(m,V),A||(m.deselect(),m.blur()),E&&(m.deselect(),m.disable()),m.isFocused())try{m.select(JSON.parse(N))}catch{m.select(B.start(m,[]))}},m}(function(b){var m=b;return m.getAllMenuKeys=function(){var w=[];for(var S in ag)w.push(S);return w},m.getConfig=function(){var w=Y9.get(m);if(w==null)throw new Error("Can not get editor config");return w},m.getMenuConfig=function(w){var S=m.getConfig().MENU_CONF;return(S===void 0?{}:S)[w]||{}},m.alert=function(w,S){S===void 0&&(S="info");var C=m.getConfig().customAlert;C&&C(w,S)},m}(function(b){var m=Lve(lce());return m.id="wangEditor-"+Gpe++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function(w){if(R.toDOMNode(m,m).focus({preventScroll:!0}),Xs.set(m,!0),w){var S=B.end(m,[]);Q.select(m,S)}else{var C=cE.get(m);C?Q.select(m,C):Q.select(m,B.start(m,[]))}},m.isFocused=function(){return!!Xs.get(m)},m.blur=function(){R.toDOMNode(m,m).blur(),Q.deselect(m),Xs.set(m,!1)},m.updateView=function(){R.getTextarea(m).changeViewState();var w=R.getToolbar(m);w&&w.changeToolbarState();var S=R.getHoverbar(m);S&&S.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var w=R.getTextarea(m);w.destroy(),nE.delete(m),rE.delete(w);var S=R.getToolbar(m);S&&(S.destroy(),v0.delete(m),oE.delete(S));var C=R.getHoverbar(m);C&&(C.destroy(),y0.delete(m),aE.delete(C)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(w){if(!m.getConfig().scroll){var S="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return S+=`
88
+ `);else{if(!j||!j.trim())return;m.insertNode({text:j})}}),P&&D&&R.isEmptyPath(m,D)&&Q.removeNodes(m,{at:D}),A.remove()}}}},m.setHtml=function(k){k===void 0&&(k="");var E=m.isDisabled(),A=m.isFocused(),N=JSON.stringify(m.selection);m.enable(),m.focus(),m.clear();var V=QF(m,k);if(Q.insertFragment(m,V),A||(m.deselect(),m.blur()),E&&(m.deselect(),m.disable()),m.isFocused())try{m.select(JSON.parse(N))}catch{m.select(B.start(m,[]))}},m}(function(b){var m=b;return m.getAllMenuKeys=function(){var w=[];for(var S in ag)w.push(S);return w},m.getConfig=function(){var w=Y9.get(m);if(w==null)throw new Error("Can not get editor config");return w},m.getMenuConfig=function(w){var S=m.getConfig().MENU_CONF;return(S===void 0?{}:S)[w]||{}},m.alert=function(w,S){S===void 0&&(S="info");var C=m.getConfig().customAlert;C&&C(w,S)},m}(function(b){var m=Mve(sce());return m.id="wangEditor-"+Kpe++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function(w){if(R.toDOMNode(m,m).focus({preventScroll:!0}),Xs.set(m,!0),w){var S=B.end(m,[]);Q.select(m,S)}else{var C=cE.get(m);C?Q.select(m,C):Q.select(m,B.start(m,[]))}},m.isFocused=function(){return!!Xs.get(m)},m.blur=function(){R.toDOMNode(m,m).blur(),Q.deselect(m),Xs.set(m,!1)},m.updateView=function(){R.getTextarea(m).changeViewState();var w=R.getToolbar(m);w&&w.changeToolbarState();var S=R.getHoverbar(m);S&&S.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var w=R.getTextarea(m);w.destroy(),nE.delete(m),rE.delete(w);var S=R.getToolbar(m);S&&(S.destroy(),v0.delete(m),oE.delete(S));var C=R.getHoverbar(m);C&&(C.destroy(),y0.delete(m),aE.delete(C)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(w){if(!m.getConfig().scroll){var S="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return S+=`
89
89
  You has disabled editor scroll, please do this yourself`,void console.warn(S)}var C=M("#"+w);if(C.length!==0){var x=C[0];if(!R.hasDOMNode(m,x))return S="Element (found by id is '"+w+"') is not in editor DOM",S+=`
90
90
  通过 id '`+w+"' 找到的 element 不在 editor DOM 之内",void console.error(S,x);var k=R.getTextarea(m),E=k.$textAreaContainer,A=k.$scroll,N=C.offset().top,V=E.offset().top;A[0].scrollBy({top:N-V,behavior:"smooth"})}},m.showProgressBar=function(w){w<1||R.getTextarea(m).changeProgress(w)},m.hidePanelOrModal=function(){var w=lE.get(m);w!=null&&w.forEach(function(S){return S.hide()})},m.enable=function(){m.getConfig().readOnly=!1,m.updateView()},m.disable=function(){m.getConfig().readOnly=!0,m.updateView()},m.isDisabled=function(){return m.getConfig().readOnly},m.toDOMNode=function(w){return R.toDOMNode(m,w)},m.fullScreen=function(){if(!m.isFullScreen){var w=null,S=R.getToolbar(m);S&&(w=S.$box);var C=R.getTextarea(m).$box.parent();if(w&&w.parent()[0]!==C[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
91
91
  不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);C.addClass("w-e-full-screen-container");var x=C.css("z-index");C.attr("data-z-index",x.toString()),m.isFullScreen=!0,m.emit("fullScreen")}},m.unFullScreen=function(){if(m.isFullScreen){var w=R.getTextarea(m).$box.parent();setTimeout(function(){w.removeClass("w-e-full-screen-container"),m.isFullScreen=!1,m.emit("unFullScreen")},200)}},m.getEditableContainer=function(){return R.getTextarea(m).$textAreaContainer[0]},m}()))))));if(n&&function(b,m){return ZF(b,"data-w-e-textarea",m)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var d=function(b){b===void 0&&(b={});var m=JI(iF),w={},S=b.MENU_CONF,C=S===void 0?{}:S;return px(m,function(x,k){w[k]=uo(uo({},x),C[k]||{})}),delete b.MENU_CONF,uo({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:w,hoverbarKeys:{},customAlert:function(x,k){window.alert(k+`:
92
- `+x)}},b)}(o);Y9.set(c,d);var f=d.hoverbarKeys,g=f===void 0?{}:f;if(u.forEach(function(b){c=b(c)}),l!=null&&(c.children=QF(c,l)),a&&a.length&&(c.children=a),c.children.length===0&&(c.children=[{type:"paragraph",children:[{text:""}]}]),R.normalizeContent(c),n){var h=new mye(n);nE.set(c,h),rE.set(h,c),h.changeViewState(),fo(function(){var b=h.$scroll;b!=null&&b.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
93
- Textarea height < 300px . This may be cause modal and hoverbar position error`,b)});var p=void 0;Object.keys(g).length>0&&(p=new xye,aE.set(p,c),y0.set(c,p)),c.on("change",function(){c.hidePanelOrModal()}),c.on("scroll",function(){c.hidePanelOrModal()})}else c.children.forEach(function(b,m){return DR(b,m,c,c)});var y=d.onCreated,v=d.onDestroyed;return y&&c.on("created",function(){return y(c)}),v&&c.on("destroyed",function(){return v(c)}),fo(function(){return c.emit("created")}),c}var Dye=i0("splice"),Aye=ce.TypeError,Vye=Math.max,Bye=Math.min;Wt({target:"Array",proto:!0,forced:!Dye},{splice:function(e,t){var n,r,o,a,l,s,u=Zi(this),c=Ks(u),d=jc(e,c),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=c-d):(n=f-2,r=Bye(Vye(Mh(t),0),c-d)),c+n-r>9007199254740991)throw Aye("Maximum allowed length exceeded");for(o=q7(u,r),a=0;a<r;a++)(l=d+a)in u&&qh(o,a,u[l]);if(o.length=r,n<r){for(a=d;a<c-r;a++)s=a+n,(l=a+r)in u?u[s]=u[l]:delete u[s];for(a=c;a>c-r+n;a--)delete u[a-1]}else if(n>r)for(a=c-r;a>d;a--)s=a+n-1,(l=a+r-1)in u?u[s]=u[l]:delete u[s];for(a=0;a<n;a++)u[a+d]=arguments[a+2];return u.length=c-r+n,o}});var _ye=function(){function e(t,n){var r=this;this.$toolbar=M('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=XI(function(){r.toolbarItems.forEach(function(l){l.changeMenuState()})},200),this.config=n;var o=M(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var a=this.$toolbar;a.on("mousedown",function(l){return l.preventDefault()},{passive:!1}),o.append(a),fo(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,a=o.toolbarKeys,l=a===void 0?[]:a,s=o.insertKeys,u=s===void 0?{index:0,keys:[]}:s,c=o.excludeKeys,d=c===void 0?[]:c,f=JI(l);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(p,y){f.splice(u.index+y,0,p)}));var g=f.filter(function(p){if(typeof p=="string"){if(d.includes(p))return!1}else if(d.includes(p.key))return!1;return!0}),h=g.length;g.forEach(function(p,y){if(p==="|"){if(y===0||y+1===h||n==="|")return;var v=SR();return r.append(v),void(n=p)}if(typeof p=="string")return t.registerSingleItem(p,t),void(n=p);t.registerGroup(p),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(c){return new kR(c)}(t),a=t.menuKeys,l=a===void 0?[]:a,s=this.config.excludeKeys,u=s===void 0?[]:s;l.forEach(function(c){u.includes(c)||n.registerSingleItem(c,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof kR,a=this.menus,l=a[t];if(l==null){var s=ag[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");l=s(),a[t]=l}else console.warn("Duplicated toolbar menu key '"+t+`'
94
- 重复注册了菜单栏 menu '`+t+"'");var u=ER(t,l,o);this.toolbarItems.push(u),iE.set(u,r),o?n.appendBarItem(u):n.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=oE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),Tye=Rc.EXISTS,Pye=Fo.f,AR=Function.prototype,Nye=Pe(AR.toString),VR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Oye=Pe(VR.exec);function BR(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,a=e.maxFileSize,l=a===void 0?10485760:a,s=e.maxNumberOfFiles,u=s===void 0?100:s,c=e.meta,d=c===void 0?{}:c,f=e.metaWithUrl,g=f!==void 0&&f,h=e.headers,p=h===void 0?{}:h,y=e.withCredentials,v=y!==void 0&&y,b=e.timeout,m=b===void 0?1e4:b,w=e.onBeforeUpload,S=w===void 0?function(P){return P}:w,C=e.onSuccess,x=C===void 0?function(P,O){}:C,k=e.onError,E=k===void 0?function(P,O,F){console.error(P.name+" upload error",O,F)}:k,A=e.onProgress,N=A===void 0?function(P){}:A;if(!n)throw new Error(`Cannot get upload server address
92
+ `+x)}},b)}(o);Y9.set(c,d);var f=d.hoverbarKeys,g=f===void 0?{}:f;if(u.forEach(function(b){c=b(c)}),l!=null&&(c.children=QF(c,l)),a&&a.length&&(c.children=a),c.children.length===0&&(c.children=[{type:"paragraph",children:[{text:""}]}]),R.normalizeContent(c),n){var h=new pye(n);nE.set(c,h),rE.set(h,c),h.changeViewState(),fo(function(){var b=h.$scroll;b!=null&&b.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
93
+ Textarea height < 300px . This may be cause modal and hoverbar position error`,b)});var p=void 0;Object.keys(g).length>0&&(p=new Eye,aE.set(p,c),y0.set(c,p)),c.on("change",function(){c.hidePanelOrModal()}),c.on("scroll",function(){c.hidePanelOrModal()})}else c.children.forEach(function(b,m){return DR(b,m,c,c)});var y=d.onCreated,v=d.onDestroyed;return y&&c.on("created",function(){return y(c)}),v&&c.on("destroyed",function(){return v(c)}),fo(function(){return c.emit("created")}),c}var Aye=i0("splice"),Vye=ce.TypeError,Bye=Math.max,_ye=Math.min;Wt({target:"Array",proto:!0,forced:!Aye},{splice:function(e,t){var n,r,o,a,l,s,u=Zi(this),c=Ks(u),d=jc(e,c),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=c-d):(n=f-2,r=_ye(Bye(Mh(t),0),c-d)),c+n-r>9007199254740991)throw Vye("Maximum allowed length exceeded");for(o=q7(u,r),a=0;a<r;a++)(l=d+a)in u&&qh(o,a,u[l]);if(o.length=r,n<r){for(a=d;a<c-r;a++)s=a+n,(l=a+r)in u?u[s]=u[l]:delete u[s];for(a=c;a>c-r+n;a--)delete u[a-1]}else if(n>r)for(a=c-r;a>d;a--)s=a+n-1,(l=a+r-1)in u?u[s]=u[l]:delete u[s];for(a=0;a<n;a++)u[a+d]=arguments[a+2];return u.length=c-r+n,o}});var Tye=function(){function e(t,n){var r=this;this.$toolbar=M('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=XI(function(){r.toolbarItems.forEach(function(l){l.changeMenuState()})},200),this.config=n;var o=M(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var a=this.$toolbar;a.on("mousedown",function(l){return l.preventDefault()},{passive:!1}),o.append(a),fo(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,a=o.toolbarKeys,l=a===void 0?[]:a,s=o.insertKeys,u=s===void 0?{index:0,keys:[]}:s,c=o.excludeKeys,d=c===void 0?[]:c,f=JI(l);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(p,y){f.splice(u.index+y,0,p)}));var g=f.filter(function(p){if(typeof p=="string"){if(d.includes(p))return!1}else if(d.includes(p.key))return!1;return!0}),h=g.length;g.forEach(function(p,y){if(p==="|"){if(y===0||y+1===h||n==="|")return;var v=SR();return r.append(v),void(n=p)}if(typeof p=="string")return t.registerSingleItem(p,t),void(n=p);t.registerGroup(p),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(c){return new kR(c)}(t),a=t.menuKeys,l=a===void 0?[]:a,s=this.config.excludeKeys,u=s===void 0?[]:s;l.forEach(function(c){u.includes(c)||n.registerSingleItem(c,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof kR,a=this.menus,l=a[t];if(l==null){var s=ag[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");l=s(),a[t]=l}else console.warn("Duplicated toolbar menu key '"+t+`'
94
+ 重复注册了菜单栏 menu '`+t+"'");var u=ER(t,l,o);this.toolbarItems.push(u),iE.set(u,r),o?n.appendBarItem(u):n.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=oE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),Pye=Rc.EXISTS,Nye=Fo.f,AR=Function.prototype,Oye=Pe(AR.toString),VR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Iye=Pe(VR.exec);function BR(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,a=e.maxFileSize,l=a===void 0?10485760:a,s=e.maxNumberOfFiles,u=s===void 0?100:s,c=e.meta,d=c===void 0?{}:c,f=e.metaWithUrl,g=f!==void 0&&f,h=e.headers,p=h===void 0?{}:h,y=e.withCredentials,v=y!==void 0&&y,b=e.timeout,m=b===void 0?1e4:b,w=e.onBeforeUpload,S=w===void 0?function(P){return P}:w,C=e.onSuccess,x=C===void 0?function(P,O){}:C,k=e.onError,E=k===void 0?function(P,O,F){console.error(P.name+" upload error",O,F)}:k,A=e.onProgress,N=A===void 0?function(P){}:A;if(!n)throw new Error(`Cannot get upload server address
95
95
  没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
96
- 没有配置 fieldName`);var V=n;g&&(V=function(P,O){var F=it(P.split("#"),2),H=F[0],J=F[1],j=[];px(O,function(L,_){j.push(_+"="+L)});var z=j.join("&");return H=H.indexOf("?")>0?H+"&"+z:H+"?"+z,J?H+"#"+J:H}(V,d));var D=new Ah({onBeforeUpload:S,restrictions:{maxFileSize:l,maxNumberOfFiles:u},meta:d}).use(age,{endpoint:V,headers:p,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return D.on("upload-success",function(P,O){var F=O.body,H=F===void 0?{}:F;try{x(P,H)}catch(J){console.error("wangEditor upload file - onSuccess error",J)}D.removeFile(P.id)}),D.on("progress",function(P){P<1||N(P)}),D.on("upload-error",function(P,O,F){try{E(P,O,F)}catch(H){console.error("wangEditor upload file - onError error",H)}D.removeFile(P.id)}),D.on("restriction-failed",function(P,O){try{E(P,O)}catch(F){console.error("wangEditor upload file - onError error",F)}D.removeFile(P.id)}),D}function nl(e){return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function Iye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Iye(e,o,n[o])})}return e}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _R(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 li(e,t,n){return t&&_R(e.prototype,t),n&&_R(e,n),e}function eu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mg(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eu(e)}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ad(e)}function aD(e,t){return aD=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},aD(e,t)}function P0(e,t){if(typeof t!="function"&&t!==null)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&&aD(e,t)}In&&!Tye&&Pye(AR,"name",{configurable:!0,get:function(){try{return Oye(VR,Nye(this))[1]}catch{return""}}});var Fye={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)}},si=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ii(this,e),this.init(t,n)}return li(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Fye,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,bn({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),rl=function(){function e(){ii(this,e),this.observers={}}return li(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value: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];if(this.observers[t]){var a=[].concat(this.observers[t]);a.forEach(function(s){s.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(s){s.apply(s,[t].concat(r))})}}}]),e}();function pg(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function TR(e){return e==null?"":""+e}function Rye(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function iD(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(o())return{};var l=r(a.shift());!e[l]&&n&&(e[l]=new n),e=Object.prototype.hasOwnProperty.call(e,l)?e[l]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function PR(e,t,n){var r=iD(e,t,Object);r.obj[r.k]=n}function N0(e,t){var n=iD(e,t),r=n.obj,o=n.k;if(r)return r[o]}function NR(e,t,n){var r=N0(e,n);return r!==void 0?r:N0(t,n)}function OR(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):OR(e[r],t[r],n):e[r]=t[r]);return e}function id(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Lye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Mye(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Lye[t]}):e}var O0=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function IR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;a<r.length;++a){if(!o||typeof o[r[a]]=="string"&&a+1<r.length)return;if(o[r[a]]===void 0){for(var l=2,s=r.slice(a,a+l).join(n),u=o[s];u===void 0&&r.length>a+l;)l++,u=o[s=r.slice(a,a+l).join(n)];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var c=r.slice(a+l).join(n);return c?IR(u,c,n):void 0}o=o[r[a]]}return o}}var jye=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ii(this,t),r=mg(this,ad(t).call(this)),O0&&rl.call(eu(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return P0(t,rl),li(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[n,r];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(l?o.split(l):o)),n.indexOf(".")>-1&&(u=n.split("."));var c=N0(this.data,u);return c||!s||typeof o!="string"?c:IR(this.data&&this.data[n]&&this.data[n][r],o,l)}},{key:"addResource",value:function(n,r,o,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[n,r];o&&(u=u.concat(s?o.split(s):o)),n.indexOf(".")>-1&&(a=r,r=(u=n.split("."))[1]),this.addNamespaces(r),PR(this.data,u,a),l.silent||this.emit("added",n,r,o,a)}},{key:"addResources",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in o)typeof o[l]!="string"&&Object.prototype.toString.apply(o[l])!=="[object Array]"||this.addResource(n,r,l,o[l],{silent:!0});a.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,a,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[n,r];n.indexOf(".")>-1&&(a=o,o=r,r=(u=n.split("."))[1]),this.addNamespaces(r);var c=N0(this.data,u)||{};a?OR(c,o,l):c=bn({},c,o),PR(this.data,u,c),s.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?bn({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),FR={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach(function(l){a.processors[l]&&(t=a.processors[l].process(t,n,r,o))}),t}},RR={},LR=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ii(this,t),r=mg(this,ad(t).call(this)),O0&&rl.call(eu(r)),Rye(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,eu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=si.create("translator"),r}return P0(t,rl),li(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var s=n.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:n,namespaces:l};var u=n.split(o);(o!==a||o===a&&this.options.ns.indexOf(u[0])>-1)&&(l=u.shift()),n=u.join(a)}return typeof l=="string"&&(l=[l]),{key:n,namespaces:l}}},{key:"translate",value:function(n,r,o){var a=this;if(nl(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(n[n.length-1],r),u=s.key,c=s.namespaces,d=c[c.length-1],f=r.lng||this.language,g=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(g){var h=r.nsSeparator||this.options.nsSeparator;return d+h+u}return u}var p=this.resolve(n,r),y=p&&p.res,v=p&&p.usedKey||u,b=p&&p.exactUsedKey||u,m=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(C&&y&&x&&w.indexOf(m)<0&&(typeof S!="string"||m!=="[object Array]")){if(!r.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(v,y,bn({},r,{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(l){var k=m==="[object Array]",E=k?[]:{},A=k?b:v;for(var N in y)if(Object.prototype.hasOwnProperty.call(y,N)){var V="".concat(A).concat(l).concat(N);E[N]=this.translate(V,bn({},r,{joinArrays:!1,ns:c})),E[N]===V&&(E[N]=y[N])}y=E}}else if(C&&typeof S=="string"&&m==="[object Array]")(y=y.join(S))&&(y=this.extendTranslation(y,n,r,o));else{var D=!1,P=!1,O=r.count!==void 0&&typeof r.count!="string",F=t.hasDefaultValue(r),H=O?this.pluralResolver.getSuffix(f,r.count):"",J=r["defaultValue".concat(H)]||r.defaultValue;!this.isValidLookup(y)&&F&&(D=!0,y=J),this.isValidLookup(y)||(P=!0,y=u);var j=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,z=j&&P?void 0:y,L=F&&J!==y&&this.options.updateMissing;if(P||D||L){if(this.logger.log(L?"updateKey":"missingKey",f,d,u,L?J:y),l){var _=this.resolve(u,bn({},r,{keySeparator:!1}));_&&_.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 T=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(var U=0;U<I.length;U++)T.push(I[U]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(r.lng||this.language):T.push(r.lng||this.language);var $=function(W,Z,ne){a.options.missingKeyHandler?a.options.missingKeyHandler(W,d,Z,L?ne:z,L,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(W,d,Z,L?ne:z,L,r),a.emit("missingKey",W,d,Z,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?T.forEach(function(W){a.pluralResolver.getSuffixes(W).forEach(function(Z){$([W],u+Z,r["defaultValue".concat(Z)]||J)})}):$(T,u,J))}y=this.extendTranslation(y,n,r,p,o),P&&y===u&&this.options.appendNamespaceToMissingKey&&(y="".concat(d,":").concat(u)),(P||D)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(n,r,o,a,l){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(bn({},o,{interpolation:bn({},this.options.interpolation,o.interpolation)}));var u,c=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var d=n.match(this.interpolator.nestingRegexp);u=d&&d.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=bn({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),c){var g=n.match(this.interpolator.nestingRegexp);u<(g&&g.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var y=arguments.length,v=new Array(y),b=0;b<y;b++)v[b]=arguments[b];return l&&l[0]===v[0]&&!o.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):s.translate.apply(s,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var h=o.postProcess||this.options.postProcess,p=typeof h=="string"?[h]:h;return n!=null&&p&&p.length&&o.applyPostProcessor!==!1&&(n=FR.handle(p,n,r,this.options&&this.options.postProcessPassResolved?bn({i18nResolved:a},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,a,l,s,u=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!u.isValidLookup(r)){var f=u.extractFromKey(d,c),g=f.key;o=g;var h=f.namespaces;u.options.fallbackNS&&(h=h.concat(u.options.fallbackNS));var p=c.count!==void 0&&typeof c.count!="string",y=c.context!==void 0&&(typeof c.context=="string"||typeof c.context=="number")&&c.context!=="",v=c.lngs?c.lngs:u.languageUtils.toResolveHierarchy(c.lng||u.language,c.fallbackLng);h.forEach(function(b){u.isValidLookup(r)||(s=b,!RR["".concat(v[0],"-").concat(b)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(s)&&(RR["".concat(v[0],"-").concat(b)]=!0,u.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(s,'" 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!!!")),v.forEach(function(m){if(!u.isValidLookup(r)){l=m;var w,S,C=g,x=[C];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(x,g,m,b,c):(p&&(w=u.pluralResolver.getSuffix(m,c.count)),p&&y&&x.push(C+w),y&&x.push(C+="".concat(u.options.contextSeparator).concat(c.context)),p&&x.push(C+=w));S=x.pop();)u.isValidLookup(r)||(a=S,r=u.getResource(m,b,S,c))}}))})}}),{res:r,usedKey:o,exactUsedKey:a,usedLng:l,usedNS:s}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,a):this.resourceStore.getResource(n,r,o,a)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t}();function lD(e){return e.charAt(0).toUpperCase()+e.slice(1)}var zye=function(){function e(t){ii(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=si.create("languageUtils")}return li(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=lD(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=lD(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=lD(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(o){if(!n){var a=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(a)||(n=a)}}),!n&&this.options.supportedLngs&&t.forEach(function(o){if(!n){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return n=a;n=r.options.supportedLngs.find(function(l){if(l.indexOf(a)===0)return l})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],l=function(s){s&&(r.isSupportedCode(s)?a.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):typeof t=="string"&&l(this.formatLanguageCode(t)),o.forEach(function(s){a.indexOf(s)<0&&l(r.formatLanguageCode(s))}),a}}]),e}(),Hye=[{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}],Uye={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return 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 e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function Wye(){var e={};return Hye.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Uye[t.fc]}})}),e}var Gye=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ii(this,e),this.languageUtils=t,this.options=n,this.logger=si.create("pluralResolver"),this.rules=Wye()}return li(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(o){return n.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var a=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),l=o.numbers[a];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var s=function(){return r.options.prepend&&l.toString()?r.options.prepend+l.toString():l.toString()};return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),Kye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ii(this,e),this.logger=si.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return li(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Mye,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?id(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?id(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?id(n.nestingPrefix):n.nestingPrefixEscaped||id("$t("),this.nestingSuffix=n.nestingSuffix?id(n.nestingSuffix):n.nestingSuffixEscaped||id(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var a,l,s,u=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(y){return y.replace(/\$/g,"$$$$")}var f=function(y){if(y.indexOf(u.formatSeparator)<0){var v=NR(n,c,y);return u.alwaysFormat?u.format(v,void 0,r,bn({},o,n,{interpolationkey:y})):v}var b=y.split(u.formatSeparator),m=b.shift().trim(),w=b.join(u.formatSeparator).trim();return u.format(NR(n,c,m),w,r,bn({},o,n,{interpolationkey:m}))};this.resetRegExp();var g=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(y){return d(y)}},{regex:this.regexp,safeValue:function(y){return u.escapeValue?d(u.escape(y)):d(y)}}];return p.forEach(function(y){for(s=0;a=y.regex.exec(t);){if((l=f(a[1].trim()))===void 0)if(typeof g=="function"){var v=g(t,a,o);l=typeof v=="string"?v:""}else{if(h){l=a[0];continue}u.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),l=""}else typeof l=="string"||u.useRawValueToEscape||(l=TR(l));var b=y.safeValue(l);if(t=t.replace(a[0],b),h?(y.regex.lastIndex+=b.length,y.regex.lastIndex-=a[0].length):y.regex.lastIndex=0,++s>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,o,a=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=bn({},l);function u(g,h){var p=this.nestingOptionsSeparator;if(g.indexOf(p)<0)return g;var y=g.split(new RegExp("".concat(p,"[ ]*{"))),v="{".concat(y[1]);g=y[0],v=(v=this.interpolate(v,s)).replace(/'/g,'"');try{s=JSON.parse(v),h&&(s=bn({},h,s))}catch(b){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),b),"".concat(g).concat(p).concat(v)}return delete s.defaultValue,g}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(t);){var c=[],d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(g){return g.trim()});r[1]=f.shift(),c=f,d=!0}if((o=n(u.call(this,r[1].trim(),s),s))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=TR(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),d&&(o=c.reduce(function(g,h){return a.format(g,h,l.lng,bn({},l,{interpolationkey:r[1].trim()}))},o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e}(),qye=function(e){function t(n,r,o){var a,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ii(this,t),a=mg(this,ad(t).call(this)),O0&&rl.call(eu(a)),a.backend=n,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=l,a.logger=si.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,l.backend,l),a}return P0(t,rl),li(t,[{key:"queueLoad",value:function(n,r,o,a){var l=this,s=[],u=[],c=[],d=[];return n.forEach(function(f){var g=!0;r.forEach(function(h){var p="".concat(f,"|").concat(h);!o.reload&&l.store.hasResourceBundle(f,h)?l.state[p]=2:l.state[p]<0||(l.state[p]===1?u.indexOf(p)<0&&u.push(p):(l.state[p]=1,g=!1,u.indexOf(p)<0&&u.push(p),s.indexOf(p)<0&&s.push(p),d.indexOf(h)<0&&d.push(h)))}),g||c.push(f)}),(s.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:a}),{toLoad:s,pending:u,toLoadLanguages:c,toLoadNamespaces:d}}},{key:"loaded",value:function(n,r,o){var a=n.split("|"),l=a[0],s=a[1];r&&this.emit("failedLoading",l,s,r),o&&this.store.addResourceBundle(l,s,o),this.state[n]=r?-1:2;var u={};this.queue.forEach(function(c){(function(d,f,g,h){var p=iD(d,f,Object),y=p.obj,v=p.k;y[v]=y[v]||[],y[v].push(g)})(c.loaded,[l],s),function(d,f){for(var g=d.indexOf(f);g!==-1;)d.splice(g,1),g=d.indexOf(f)}(c.pending,n),r&&c.errors.push(r),c.pending.length!==0||c.done||(Object.keys(c.loaded).forEach(function(d){u[d]||(u[d]=[]),c.loaded[d].length&&c.loaded[d].forEach(function(f){u[d].indexOf(f)<0&&u[d].push(f)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(n,r,o){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(c,d){c&&d&&l<5?setTimeout(function(){a.read.call(a,n,r,o,l+1,2*s,u)},s):u(c,d)}):u(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=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."),l&&l();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var s=this.queueLoad(n,r,a,l);if(!s.toLoad.length)return s.pending.length||l(),null;s.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=n.split("|"),l=a[0],s=a[1];this.read(l,s,"read",void 0,void 0,function(u,c){u&&r.logger.warn("".concat(o,"loading namespace ").concat(s," for language ").concat(l," failed"),u),!u&&c&&r.logger.log("".concat(o,"loaded namespace ").concat(s," for language ").concat(l),c),r.loaded(n,u,c)})}},{key:"saveMissing",value:function(n,r,o,a,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" 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!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,a,null,bn({},s,{isUpdate:l})),n&&n[0]&&this.store.addResource(n[0],r,o,a))}}]),t}();function Yye(){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(nl(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),nl(e[2])==="object"||nl(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}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 MR(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(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 I0(){}var Xye=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ii(this,t),n=mg(this,ad(t).call(this)),O0&&rl.call(eu(n)),n.options=MR(r),n.services={},n.logger=si,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),mg(n,eu(n));setTimeout(function(){n.init(r,o)},0)}return n}return P0(t,rl),li(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function a(h){return h?typeof h=="function"?new h:h:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.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=bn({},Yye(),this.options,MR(r)),this.format=this.options.interpolation.format,o||(o=I0),!this.options.isClone){this.modules.logger?si.init(a(this.modules.logger),this.options):si.init(null,this.options);var l=new zye(this.options);this.store=new jye(this.options.resources,this.options);var s=this.services;s.logger=si,s.resourceStore=this.store,s.languageUtils=l,s.pluralResolver=new Gye(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new Kye(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new qye(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(h){for(var p=arguments.length,y=new Array(p>1?p-1:0),v=1;v<p;v++)y[v-1]=arguments[v];n.emit.apply(n,[h].concat(y))}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new LR(this.services,this.options),this.translator.on("*",function(h){for(var p=arguments.length,y=new Array(p>1?p-1:0),v=1;v<p;v++)y[v-1]=arguments[v];n.emit.apply(n,[h].concat(y))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach(function(h){n[h]=function(){var p;return(p=n.store)[h].apply(p,arguments)}});var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach(function(h){n[h]=function(){var p;return(p=n.store)[h].apply(p,arguments),n}});var f=pg(),g=function(){var h=function(p,y){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(y),o(p,y)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return h(null,n.t.bind(n));n.changeLanguage(n.options.lng,h)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I0,a=o,l=typeof n=="string"?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var s=[],u=function(d){d&&r.services.languageUtils.toResolveHierarchy(d).forEach(function(f){s.indexOf(f)<0&&s.push(f)})};if(l)u(l);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(d){return u(d)})}this.options.preload&&this.options.preload.forEach(function(d){return u(d)}),this.services.backendConnector.load(s,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(n,r,o){var a=pg();return n||(n=this.languages),r||(r=this.options.ns),o||(o=I0),this.services.backendConnector.reload(n,r,function(l){a.resolve(),o(l)}),a}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&FR.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var a=pg();this.emit("languageChanging",n);var l=function(s){n||s||!o.services.languageDetector||(s=[]);var u=typeof s=="string"?s:o.services.languageUtils.getBestMatchFromCodes(s);u&&(o.language||(o.language=u,o.languages=o.services.languageUtils.toResolveHierarchy(u)),o.translator.language||o.translator.changeLanguage(u),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(u)),o.loadResources(u,function(c){(function(d,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),r&&r(d,function(){return o.t.apply(o,arguments)})})(c,u)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(l):l(n):l(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(n,r,o){var a=this,l=function s(u,c){var d;if(nl(c)!=="object"){for(var f=arguments.length,g=new Array(f>2?f-2:0),h=2;h<f;h++)g[h-2]=arguments[h];d=a.options.overloadTranslationOptionHandler([u,c].concat(g))}else d=bn({},c);d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns;var p=a.options.keySeparator||".",y=o?"".concat(o).concat(p).concat(u):u;return a.t(y,d)};return typeof n=="string"?l.lng=n:l.lngs=n,l.ns=r,l.keyPrefix=o,l}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?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 a=this.languages[0],l=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(d,f){var g=r.services.backendConnector.state["".concat(d,"|").concat(f)];return g===-1||g===2};if(o.precheck){var c=o.precheck(this,u);if(c!==void 0)return c}return!!this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||!(!u(a,n)||l&&!u(s,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,a=pg();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(l){o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),r&&r(l)}),a):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=pg();typeof n=="string"&&(n=[n]);var a=this.options.preload||[],l=n.filter(function(s){return a.indexOf(s)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(s){o.resolve(),r&&r(s)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["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(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I0,a=bn({},this.options,r,{isClone:!0}),l=new t(a),s=["store","services","language"];return s.forEach(function(u){l[u]=n[u]}),l.services=bn({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new LR(l.services,l.options),l.translator.on("*",function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];l.emit.apply(l,[u].concat(d))}),l.init(a,o),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),vg=new Xye;function Vr(e,t){vg.addResourceBundle(e,"translation",t,!0,!0)}function Jye(e){vg.changeLanguage(e)}vg.init({lng:"zh-CN",resources:{}});var ge=vg.t.bind(vg);Vr("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Vr("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Zye=ok?{}.toString:function(){return"[object "+Qv(this)+"]"};ok||ks(Object.prototype,"toString",Zye,{unsafe:!0});var jR=Array.isArray||function(e){return bs(e)=="Array"},zR=function(){},Qye=[],HR=Zf("Reflect","construct"),sD=/^\s*(?:class|function)\b/,$ye=wt(sD.exec),e0e=!sD.exec(zR),yg=function(e){if(!En(e))return!1;try{return HR(zR,Qye,e),!0}catch{return!1}},t0e=!HR||On(function(){var e;return yg(yg.call)||!yg(Object)||!yg(function(){e=!0})||e})?function(e){if(!En(e))return!1;switch(Qv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return e0e||!!$ye(sD,ZC(e))}:yg,n0e=pr("species"),UR=ze.Array,r0e=function(e,t){return new(function(n){var r;return jR(n)&&(r=n.constructor,(t0e(r)&&(r===UR||jR(r.prototype))||sa(r)&&(r=r[n0e])===null)&&(r=void 0)),r===void 0?UR:r}(e))(t===0?0:t)},WR=wt([].push),o0e=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=KC(u),y=WP(p),v=xN(c,d),b=Xv(y),m=0,w=f||r0e,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:WR(S,g)}else switch(e){case 4:return!1;case 7:WR(S,g)}return a?-1:r||o?o:S}},a0e={forEach:o0e(0)}.forEach,i0e=function(e,t){var n=[][e];return!!n&&On(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),uD=i0e?[].forEach:function(e){return a0e(this,e,arguments.length>1?arguments[1]:void 0)},GR=function(e){if(e&&e.forEach!==uD)try{Er(e,"forEach",uD)}catch{e.forEach=uD}};for(var cD in oy)oy[cD]&&GR(ze[cD]&&ze[cD].prototype);GR(FN),Vr("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"}}),Vr("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 l0e={type:"paragraph",renderElem:function(e,t,n){return Fe("p",null,t)}},F0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R0(e){var t={exports:{}};return e(t,t.exports),t.exports}var ol,L0,M0=function(e){return e&&e.Math==Math&&e},We=M0(typeof globalThis=="object"&&globalThis)||M0(typeof window=="object"&&window)||M0(typeof self=="object"&&self)||M0(typeof F0=="object"&&F0)||function(){return this}()||Function("return this")(),Kt=function(e){try{return!!e()}catch{return!0}},jo=!Kt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bg=Function.prototype.call,un=bg.bind?bg.bind(bg):function(){return bg.apply(bg,arguments)},KR={}.propertyIsEnumerable,qR=Object.getOwnPropertyDescriptor,s0e=qR&&!KR.call({1:2},1)?function(e){var t=qR(this,e);return!!t&&t.enumerable}:KR,YR={f:s0e},dD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XR=Function.prototype,fD=XR.bind,hD=XR.call,u0e=fD&&fD.bind(hD),Ie=fD?function(e){return e&&u0e(hD,e)}:function(e){return e&&function(){return hD.apply(e,arguments)}},c0e=Ie({}.toString),d0e=Ie("".slice),al=function(e){return d0e(c0e(e),8,-1)},gD=We.Object,f0e=Ie("".split),j0=Kt(function(){return!gD("z").propertyIsEnumerable(0)})?function(e){return al(e)=="String"?f0e(e,""):gD(e)}:gD,h0e=We.TypeError,go=function(e){if(e==null)throw h0e("Can't call method on "+e);return e},ld=function(e){return j0(go(e))},rr=function(e){return typeof e=="function"},ba=function(e){return typeof e=="object"?e!==null:rr(e)},g0e=function(e){return rr(e)?e:void 0},wg=function(e,t){return arguments.length<2?g0e(We[e]):We[e]&&We[e][t]},JR=Ie({}.isPrototypeOf),mD=wg("navigator","userAgent")||"",ZR=We.process,QR=We.Deno,$R=ZR&&ZR.versions||QR&&QR.version,eL=$R&&$R.v8;eL&&(L0=(ol=eL.split("."))[0]>0&&ol[0]<4?1:+(ol[0]+ol[1])),!L0&&mD&&(!(ol=mD.match(/Edge\/(\d+)/))||ol[1]>=74)&&(ol=mD.match(/Chrome\/(\d+)/))&&(L0=+ol[1]);var pD=L0,vD=!!Object.getOwnPropertySymbols&&!Kt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pD&&pD<41}),yD=vD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",m0e=We.Object,bD=yD?function(e){return typeof e=="symbol"}:function(e){var t=wg("Symbol");return rr(t)&&JR(t.prototype,m0e(e))},p0e=We.String,tL=function(e){try{return p0e(e)}catch{return"Object"}},v0e=We.TypeError,nL=function(e){if(rr(e))return e;throw v0e(tL(e)+" is not a function")},z0=function(e,t){var n=e[t];return n==null?void 0:nL(n)},y0e=We.TypeError,b0e=Object.defineProperty,wD=function(e,t){try{b0e(We,e,{value:t,configurable:!0,writable:!0})}catch{We[e]=t}return t},il=We["__core-js_shared__"]||wD("__core-js_shared__",{}),SD=R0(function(e){(e.exports=function(t,n){return il[t]||(il[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),w0e=We.Object,Sg=function(e){return w0e(go(e))},S0e=Ie({}.hasOwnProperty),mo=Object.hasOwn||function(e,t){return S0e(Sg(e),t)},C0e=0,k0e=Math.random(),x0e=Ie(1 .toString),rL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+x0e(++C0e+k0e,36)},Cg=SD("wks"),tu=We.Symbol,oL=tu&&tu.for,E0e=yD?tu:tu&&tu.withoutSetter||rL,Yr=function(e){if(!mo(Cg,e)||!vD&&typeof Cg[e]!="string"){var t="Symbol."+e;vD&&mo(tu,e)?Cg[e]=tu[e]:Cg[e]=yD&&oL?oL(t):E0e(t)}return Cg[e]},D0e=We.TypeError,A0e=Yr("toPrimitive"),CD=function(e){var t=function(n,r){if(!ba(n)||bD(n))return n;var o,a=z0(n,A0e);if(a){if(o=un(a,n,r),!ba(o)||bD(o))return o;throw D0e("Can't convert object to primitive value")}return function(l,s){var u,c;if(rr(u=l.toString)&&!ba(c=un(u,l))||rr(u=l.valueOf)&&!ba(c=un(u,l)))return c;throw y0e("Can't convert object to primitive value")}(n)}(e,"string");return bD(t)?t:t+""},kD=We.document,V0e=ba(kD)&&ba(kD.createElement),xD=function(e){return V0e?kD.createElement(e):{}},aL=!jo&&!Kt(function(){return Object.defineProperty(xD("div"),"a",{get:function(){return 7}}).a!=7}),iL=Object.getOwnPropertyDescriptor,ED={f:jo?iL:function(e,t){if(e=ld(e),t=CD(t),aL)try{return iL(e,t)}catch{}if(mo(e,t))return dD(!un(YR.f,e,t),e[t])}},B0e=We.String,_0e=We.TypeError,Xr=function(e){if(ba(e))return e;throw _0e(B0e(e)+" is not an object")},T0e=We.TypeError,lL=Object.defineProperty,sd={f:jo?lL:function(e,t,n){if(Xr(e),t=CD(t),Xr(n),aL)try{return lL(e,t,n)}catch{}if("get"in n||"set"in n)throw T0e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ud=jo?function(e,t,n){return sd.f(e,t,dD(1,n))}:function(e,t,n){return e[t]=n,e},P0e=Ie(Function.toString);rr(il.inspectSource)||(il.inspectSource=function(e){return P0e(e)});var DD,H0,AD,VD=il.inspectSource,sL=We.WeakMap,N0e=rr(sL)&&/native code/.test(VD(sL)),uL=SD("keys"),cL=function(e){return uL[e]||(uL[e]=rL(e))},BD={},dL=We.TypeError,O0e=We.WeakMap;if(N0e||il.state){var nu=il.state||(il.state=new O0e),I0e=Ie(nu.get),fL=Ie(nu.has),F0e=Ie(nu.set);DD=function(e,t){if(fL(nu,e))throw new dL("Object already initialized");return t.facade=e,F0e(nu,e,t),t},H0=function(e){return I0e(nu,e)||{}},AD=function(e){return fL(nu,e)}}else{var cd=cL("state");BD[cd]=!0,DD=function(e,t){if(mo(e,cd))throw new dL("Object already initialized");return t.facade=e,ud(e,cd,t),t},H0=function(e){return mo(e,cd)?e[cd]:{}},AD=function(e){return mo(e,cd)}}var _D={get:H0,enforce:function(e){return AD(e)?H0(e):DD(e,{})}},hL=Function.prototype,R0e=jo&&Object.getOwnPropertyDescriptor,TD=mo(hL,"name"),U0={EXISTS:TD,PROPER:TD&&(function(){}).name==="something",CONFIGURABLE:TD&&(!jo||jo&&R0e(hL,"name").configurable)},kg=R0(function(e){var t=U0.CONFIGURABLE,n=_D.get,r=_D.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;rr(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mo(s,"name")||t&&s.name!==h)&&ud(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==We?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:ud(a,l,s)):f?a[l]=s:wD(l,s)})(Function.prototype,"toString",function(){return rr(this)&&n(this).source||VD(this)})}),L0e=Math.ceil,M0e=Math.floor,dd=function(e){var t=+e;return t!=t||t===0?0:(t>0?M0e:L0e)(t)},j0e=Math.max,z0e=Math.min,xg=function(e,t){var n=dd(e);return n<0?j0e(n+t,0):z0e(n,t)},H0e=Math.min,Eg=function(e){return e>0?H0e(dd(e),9007199254740991):0},W0=function(e){return Eg(e.length)},gL=function(e){return function(t,n,r){var o,a=ld(t),l=W0(a),s=xg(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},mL={includes:gL(!0),indexOf:gL(!1)},U0e=mL.indexOf,pL=Ie([].push),vL=function(e,t){var n,r=ld(e),o=0,a=[];for(n in r)!mo(BD,n)&&mo(r,n)&&pL(a,n);for(;t.length>o;)mo(r,n=t[o++])&&(~U0e(a,n)||pL(a,n));return a},G0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],W0e=G0.concat("length","prototype"),G0e={f:Object.getOwnPropertyNames||function(e){return vL(e,W0e)}},yL={f:Object.getOwnPropertySymbols},K0e=Ie([].concat),q0e=wg("Reflect","ownKeys")||function(e){var t=G0e.f(Xr(e)),n=yL.f;return n?K0e(t,n(e)):t},Y0e=function(e,t){for(var n=q0e(t),r=sd.f,o=ED.f,a=0;a<n.length;a++){var l=n[a];mo(e,l)||r(e,l,o(t,l))}},X0e=/#|\.prototype\./,Dg=function(e,t){var n=Z0e[J0e(e)];return n==$0e||n!=Q0e&&(rr(t)?Kt(t):!!t)},J0e=Dg.normalize=function(e){return String(e).replace(X0e,".").toLowerCase()},Z0e=Dg.data={},Q0e=Dg.NATIVE="N",$0e=Dg.POLYFILL="P",ebe=Dg,tbe=ED.f,An=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?We:c?We[s]||wD(s,{}):(We[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=tbe(n,r))&&l.value:n[r],!ebe(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Y0e(a,o)}(e.sham||o&&o.sham)&&ud(a,"sham",!0),kg(n,r,a,e)}},bL=Ie(Ie.bind),K0=Array.isArray||function(e){return al(e)=="Array"},wL={};wL[Yr("toStringTag")]="z";var PD=String(wL)==="[object z]",nbe=Yr("toStringTag"),rbe=We.Object,obe=al(function(){return arguments}())=="Arguments",ND=PD?al:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=rbe(e),nbe))=="string"?n:obe?al(t):(r=al(t))=="Object"&&rr(t.callee)?"Arguments":r},SL=function(){},abe=[],CL=wg("Reflect","construct"),OD=/^\s*(?:class|function)\b/,ibe=Ie(OD.exec),lbe=!OD.exec(SL),Ag=function(e){if(!rr(e))return!1;try{return CL(SL,abe,e),!0}catch{return!1}},ID=!CL||Kt(function(){var e;return Ag(Ag.call)||!Ag(Object)||!Ag(function(){e=!0})||e})?function(e){if(!rr(e))return!1;switch(ND(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lbe||!!ibe(OD,VD(e))}:Ag,sbe=Yr("species"),kL=We.Array,ube=function(e,t){return new(function(n){var r;return K0(n)&&(r=n.constructor,(ID(r)&&(r===kL||K0(r.prototype))||ba(r)&&(r=r[sbe])===null)&&(r=void 0)),r===void 0?kL:r}(e))(t===0?0:t)},xL=Ie([].push),q0=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=Sg(u),y=j0(p),v=function(C,x){return nL(C),x===void 0?C:bL?bL(C,x):function(){return C.apply(x,arguments)}}(c,d),b=W0(y),m=0,w=f||ube,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:xL(S,g)}else switch(e){case 4:return!1;case 7:xL(S,g)}return a?-1:r||o?o:S}},Y0={forEach:q0(0),map:q0(1),filter:q0(2),find:q0(5)},cbe=Yr("species"),FD=function(e){return pD>=51||!Kt(function(){var t=[];return(t.constructor={})[cbe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},dbe=Y0.filter;An({target:"Array",proto:!0,forced:!FD("filter")},{filter:function(e){return dbe(this,e,arguments.length>1?arguments[1]:void 0)}});var fbe=PD?{}.toString:function(){return"[object "+ND(this)+"]"};PD||kg(Object.prototype,"toString",fbe,{unsafe:!0});var X0,hbe=We.String,qt=function(e){if(ND(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return hbe(e)},EL=function(){var e=Xr(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},RD=We.RegExp,LD=Kt(function(){var e=RD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});LD||Kt(function(){return!RD("a","y").sticky});var DL={BROKEN_CARET:LD||Kt(function(){var e=RD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:LD},fd=Object.keys||function(e){return vL(e,G0)},gbe=jo?Object.defineProperties:function(e,t){Xr(e);for(var n,r=ld(t),o=fd(t),a=o.length,l=0;a>l;)sd.f(e,n=o[l++],r[n]);return e},mbe=wg("document","documentElement"),AL=cL("IE_PROTO"),MD=function(){},VL=function(e){return"<script>"+e+"<\/script>"},BL=function(e){e.write(VL("")),e.close();var t=e.parentWindow.Object;return e=null,t},J0=function(){try{X0=new ActiveXObject("htmlfile")}catch{}var e,t;J0=typeof document<"u"?document.domain&&X0?BL(X0):((t=xD("iframe")).style.display="none",mbe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(VL("document.F=Object")),e.close(),e.F):BL(X0);for(var n=G0.length;n--;)delete J0.prototype[G0[n]];return J0()};BD[AL]=!0;var _L,jD,TL=Object.create||function(e,t){var n;return e!==null?(MD.prototype=Xr(e),n=new MD,MD.prototype=null,n[AL]=e):n=J0(),t===void 0?n:gbe(n,t)},pbe=We.RegExp,vbe=Kt(function(){var e=pbe(".","s");return!(e.dotAll&&e.exec(`
97
- `)&&e.flags==="s")}),ybe=We.RegExp,bbe=Kt(function(){var e=ybe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),wbe=_D.get,Sbe=SD("native-string-replace",String.prototype.replace),Z0=RegExp.prototype.exec,zD=Z0,Cbe=Ie("".charAt),kbe=Ie("".indexOf),xbe=Ie("".replace),HD=Ie("".slice),UD=(jD=/b*/g,un(Z0,_L=/a/,"a"),un(Z0,jD,"a"),_L.lastIndex!==0||jD.lastIndex!==0),PL=DL.BROKEN_CARET,WD=/()??/.exec("")[1]!==void 0;(UD||WD||PL||vbe||bbe)&&(zD=function(e){var t,n,r,o,a,l,s,u=this,c=wbe(u),d=qt(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=un(zD,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=PL&&u.sticky,p=un(EL,u),y=u.source,v=0,b=d;if(h&&(p=xbe(p,"y",""),kbe(p,"g")===-1&&(p+="g"),b=HD(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Cbe(d,u.lastIndex-1)!==`
98
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),WD&&(n=new RegExp("^"+y+"$(?!\\s)",p)),UD&&(r=u.lastIndex),o=un(Z0,h?n:u,b),h?o?(o.input=HD(o.input,v),o[0]=HD(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:UD&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),WD&&o&&o.length>1&&un(Sbe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=TL(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Vg=zD;An({target:"RegExp",proto:!0,forced:/./.exec!==Vg},{exec:Vg});var GD=Function.prototype,NL=GD.apply,Ebe=GD.bind,OL=GD.call,IL=typeof Reflect=="object"&&Reflect.apply||(Ebe?OL.bind(NL):function(){return OL.apply(NL,arguments)}),Dbe=Yr("species"),KD=RegExp.prototype,qD=function(e,t,n,r){var o=Yr(e),a=!Kt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Kt(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Dbe]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Ie(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=Ie(c),y=d.exec;return y===Vg||y===KD.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});kg(String.prototype,e,u[0]),kg(KD,o,u[1])}r&&ud(KD[o],"sham",!0)},Abe=Ie("".charAt),FL=Ie("".charCodeAt),Vbe=Ie("".slice),Bbe=function(e){return function(t,n){var r,o,a=qt(go(t)),l=dd(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=FL(a,l))<55296||r>56319||l+1===s||(o=FL(a,l+1))<56320||o>57343?e?Abe(a,l):r:e?Vbe(a,l,l+2):o-56320+(r-55296<<10)+65536}},_be=Bbe(!0),YD=function(e,t,n){return t+(n?_be(e,t).length:1)},Tbe=Math.floor,XD=Ie("".charAt),Pbe=Ie("".replace),JD=Ie("".slice),Nbe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Obe=/\$([$&'`]|\d{1,2})/g,Ibe=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=Obe;return o!==void 0&&(o=Sg(o),u=Nbe),Pbe(a,u,function(c,d){var f;switch(XD(d,0)){case"$":return"$";case"&":return e;case"`":return JD(t,0,n);case"'":return JD(t,l);case"<":f=o[JD(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=Tbe(g/10);return h===0?c:h<=s?r[h-1]===void 0?XD(d,1):r[h-1]+XD(d,1):c}f=r[g-1]}return f===void 0?"":f})},Fbe=We.TypeError,Bg=function(e,t){var n=e.exec;if(rr(n)){var r=un(n,e,t);return r!==null&&Xr(r),r}if(al(e)==="RegExp")return un(Vg,e,t);throw Fbe("RegExp#exec called on incompatible receiver")},ZD=Yr("replace"),Rbe=Math.max,Lbe=Math.min,Mbe=Ie([].concat),QD=Ie([].push),RL=Ie("".indexOf),LL=Ie("".slice),jbe="a".replace(/./,"$0")==="$0",ML=!!/./[ZD]&&/./[ZD]("a","$0")==="";qD("replace",function(e,t,n){var r=ML?"$":"$0";return[function(o,a){var l=go(this),s=o==null?void 0:z0(o,ZD);return s?un(s,o,l,a):un(t,qt(l),o,a)},function(o,a){var l=Xr(this),s=qt(o);if(typeof a=="string"&&RL(a,r)===-1&&RL(a,"$<")===-1){var u=n(t,l,s,a);if(u.done)return u.value}var c=rr(a);c||(a=qt(a));var d=l.global;if(d){var f=l.unicode;l.lastIndex=0}for(var g=[];;){var h=Bg(l,s);if(h===null||(QD(g,h),!d))break;qt(h[0])===""&&(l.lastIndex=YD(s,Eg(l.lastIndex),f))}for(var p,y="",v=0,b=0;b<g.length;b++){for(var m=qt((h=g[b])[0]),w=Rbe(Lbe(dd(h.index),s.length),0),S=[],C=1;C<h.length;C++)QD(S,(p=h[C])===void 0?p:String(p));var x=h.groups;if(c){var k=Mbe([m],S,w,s);x!==void 0&&QD(k,x);var E=qt(IL(a,void 0,k))}else E=Ibe(m,s,w,S,x,a);w>=v&&(y+=LL(s,v,w)+E,v=w+m.length)}return y+LL(s,v)}]},!!Kt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!jbe||ML);var $D=Yr("unscopables"),e4=Array.prototype;e4[$D]==null&&sd.f(e4,$D,{configurable:!0,value:TL(null)});var jL=function(e){e4[$D][e]=!0},zbe=Y0.find,zL=!0;"find"in[]&&Array(1).find(function(){zL=!1}),An({target:"Array",proto:!0,forced:zL},{find:function(e){return zbe(this,e,arguments.length>1?arguments[1]:void 0)}}),jL("find");var Hbe=Yr("match"),HL=function(e){var t;return ba(e)&&((t=e[Hbe])!==void 0?!!t:al(e)=="RegExp")},Ube=We.TypeError,Wbe=Yr("species"),UL=function(e,t,n){var r=CD(t);r in e?sd.f(e,r,dD(0,n)):e[r]=n},Gbe=We.Array,Kbe=Math.max,WL=function(e,t,n){for(var r=W0(e),o=xg(t,r),a=xg(n===void 0?r:n,r),l=Gbe(Kbe(a-o,0)),s=0;o<a;o++,s++)UL(l,s,e[o]);return l.length=s,l},hd=DL.UNSUPPORTED_Y,qbe=Math.min,GL=[].push,Ybe=Ie(/./.exec),gd=Ie(GL),_g=Ie("".slice);qD("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var l=qt(go(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(o===void 0)return[l];if(!HL(o))return un(t,l,o,s);for(var u,c,d,f=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,p=new RegExp(o.source,g+"g");(u=un(Vg,p,l))&&!((c=p.lastIndex)>h&&(gd(f,_g(l,h,u.index)),u.length>1&&u.index<l.length&&IL(GL,f,WL(u,1)),d=u[0].length,h=c,f.length>=s));)p.lastIndex===u.index&&p.lastIndex++;return h===l.length?!d&&Ybe(p,"")||gd(f,""):gd(f,_g(l,h)),f.length>s?WL(f,0,s):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:un(t,this,o,a)}:t,[function(o,a){var l=go(this),s=o==null?void 0:z0(o,e);return s?un(s,o,l,a):un(r,qt(l),o,a)},function(o,a){var l=Xr(this),s=qt(o),u=n(r,l,s,a,r!==t);if(u.done)return u.value;var c=function(S,C){var x,k=Xr(S).constructor;return k===void 0||(x=Xr(k)[Wbe])==null?C:function(E){if(ID(E))return E;throw Ube(tL(E)+" is not a constructor")}(x)}(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(hd?"g":"y"),g=new c(hd?"^(?:"+l.source+")":l,f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return Bg(g,s)===null?[s]:[];for(var p=0,y=0,v=[];y<s.length;){g.lastIndex=hd?0:y;var b,m=Bg(g,hd?_g(s,y):s);if(m===null||(b=qbe(Eg(g.lastIndex+(hd?y:0)),s.length))===p)y=YD(s,y,d);else{if(gd(v,_g(s,p,y)),v.length===h)return v;for(var w=1;w<=m.length-1;w++)if(gd(v,m[w]),v.length===h)return v;y=p=b}}return gd(v,_g(s,p)),v}]},!!Kt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),hd);var t4=`
99
- \v\f\r                 \u2028\u2029\uFEFF`,KL=Ie("".replace),Q0="["+t4+"]",Xbe=RegExp("^"+Q0+Q0+"*"),Jbe=RegExp(Q0+Q0+"*$"),Zbe=function(e){return function(t){var n=qt(go(t));return 1&e&&(n=KL(n,Xbe,"")),2&e&&(n=KL(n,Jbe,"")),n}},Qbe={trim:Zbe(3)},$be=U0.PROPER,ewe=Qbe.trim;function n4(e){return M("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function md(e){return e.length===0?"":e[0].outerHTML}function pd(e){return e.length?e[0].tagName.toLowerCase():""}function zo(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,a=0;a<o;a++){var l=r[a];if(l){var s=l.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}An({target:"String",proto:!0,forced:Kt(function(){return!!t4.trim()||"​…᠎".trim()!=="​…᠎"||$be&&t4.trim.name!=="trim"})},{trim:function(){return ewe(this)}}),An({global:!0},{globalThis:We}),Dy&&(M.fn.css=Dy),ao&&(M.fn.append=ao),dI&&(M.fn.prepend=dI),Sc&&(M.fn.addClass=Sc),Cc&&(M.fn.removeClass=Cc),kc&&(M.fn.hasClass=kc),da&&(M.fn.on=da),lI&&(M.fn.off=lI),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),Cy&&(M.fn.removeAttr=Cy),Ec&&(M.fn.hide=Ec),Ey&&(M.fn.show=Ey),By&&(M.fn.parents=By),xc&&(M.fn.dataset=xc),ca&&(M.fn.val=ca),Vy&&(M.fn.text=Vy),Ui&&(M.fn.html=Ui),Vc&&(M.fn.children=Vc),Bc&&(M.fn.remove=Bc),Ac&&(M.fn.find=Ac),ky&&(M.fn.width=ky),xy&&(M.fn.height=xy),uI&&(M.fn.filter=uI),_c&&(M.fn.empty=_c);var twe={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return!!Se.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},r4=function(e,t){return r4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},r4(e,t);/*! *****************************************************************************
96
+ 没有配置 fieldName`);var V=n;g&&(V=function(P,O){var F=it(P.split("#"),2),H=F[0],J=F[1],j=[];px(O,function(L,_){j.push(_+"="+L)});var z=j.join("&");return H=H.indexOf("?")>0?H+"&"+z:H+"?"+z,J?H+"#"+J:H}(V,d));var D=new Ah({onBeforeUpload:S,restrictions:{maxFileSize:l,maxNumberOfFiles:u},meta:d}).use(ige,{endpoint:V,headers:p,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return D.on("upload-success",function(P,O){var F=O.body,H=F===void 0?{}:F;try{x(P,H)}catch(J){console.error("wangEditor upload file - onSuccess error",J)}D.removeFile(P.id)}),D.on("progress",function(P){P<1||N(P)}),D.on("upload-error",function(P,O,F){try{E(P,O,F)}catch(H){console.error("wangEditor upload file - onError error",H)}D.removeFile(P.id)}),D.on("restriction-failed",function(P,O){try{E(P,O)}catch(F){console.error("wangEditor upload file - onError error",F)}D.removeFile(P.id)}),D}function nl(e){return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function Fye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Fye(e,o,n[o])})}return e}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _R(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 li(e,t,n){return t&&_R(e.prototype,t),n&&_R(e,n),e}function eu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mg(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eu(e)}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ad(e)}function aD(e,t){return aD=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},aD(e,t)}function P0(e,t){if(typeof t!="function"&&t!==null)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&&aD(e,t)}In&&!Pye&&Nye(AR,"name",{configurable:!0,get:function(){try{return Iye(VR,Oye(this))[1]}catch{return""}}});var Rye={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)}},si=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ii(this,e),this.init(t,n)}return li(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Rye,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,bn({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),rl=function(){function e(){ii(this,e),this.observers={}}return li(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value: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];if(this.observers[t]){var a=[].concat(this.observers[t]);a.forEach(function(s){s.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(s){s.apply(s,[t].concat(r))})}}}]),e}();function pg(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function TR(e){return e==null?"":""+e}function Lye(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function iD(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(o())return{};var l=r(a.shift());!e[l]&&n&&(e[l]=new n),e=Object.prototype.hasOwnProperty.call(e,l)?e[l]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function PR(e,t,n){var r=iD(e,t,Object);r.obj[r.k]=n}function N0(e,t){var n=iD(e,t),r=n.obj,o=n.k;if(r)return r[o]}function NR(e,t,n){var r=N0(e,n);return r!==void 0?r:N0(t,n)}function OR(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):OR(e[r],t[r],n):e[r]=t[r]);return e}function id(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Mye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function jye(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Mye[t]}):e}var O0=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function IR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;a<r.length;++a){if(!o||typeof o[r[a]]=="string"&&a+1<r.length)return;if(o[r[a]]===void 0){for(var l=2,s=r.slice(a,a+l).join(n),u=o[s];u===void 0&&r.length>a+l;)l++,u=o[s=r.slice(a,a+l).join(n)];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var c=r.slice(a+l).join(n);return c?IR(u,c,n):void 0}o=o[r[a]]}return o}}var zye=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ii(this,t),r=mg(this,ad(t).call(this)),O0&&rl.call(eu(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return P0(t,rl),li(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[n,r];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(l?o.split(l):o)),n.indexOf(".")>-1&&(u=n.split("."));var c=N0(this.data,u);return c||!s||typeof o!="string"?c:IR(this.data&&this.data[n]&&this.data[n][r],o,l)}},{key:"addResource",value:function(n,r,o,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[n,r];o&&(u=u.concat(s?o.split(s):o)),n.indexOf(".")>-1&&(a=r,r=(u=n.split("."))[1]),this.addNamespaces(r),PR(this.data,u,a),l.silent||this.emit("added",n,r,o,a)}},{key:"addResources",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in o)typeof o[l]!="string"&&Object.prototype.toString.apply(o[l])!=="[object Array]"||this.addResource(n,r,l,o[l],{silent:!0});a.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,a,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[n,r];n.indexOf(".")>-1&&(a=o,o=r,r=(u=n.split("."))[1]),this.addNamespaces(r);var c=N0(this.data,u)||{};a?OR(c,o,l):c=bn({},c,o),PR(this.data,u,c),s.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?bn({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),FR={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach(function(l){a.processors[l]&&(t=a.processors[l].process(t,n,r,o))}),t}},RR={},LR=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ii(this,t),r=mg(this,ad(t).call(this)),O0&&rl.call(eu(r)),Lye(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,eu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=si.create("translator"),r}return P0(t,rl),li(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var s=n.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:n,namespaces:l};var u=n.split(o);(o!==a||o===a&&this.options.ns.indexOf(u[0])>-1)&&(l=u.shift()),n=u.join(a)}return typeof l=="string"&&(l=[l]),{key:n,namespaces:l}}},{key:"translate",value:function(n,r,o){var a=this;if(nl(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(n[n.length-1],r),u=s.key,c=s.namespaces,d=c[c.length-1],f=r.lng||this.language,g=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(g){var h=r.nsSeparator||this.options.nsSeparator;return d+h+u}return u}var p=this.resolve(n,r),y=p&&p.res,v=p&&p.usedKey||u,b=p&&p.exactUsedKey||u,m=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(C&&y&&x&&w.indexOf(m)<0&&(typeof S!="string"||m!=="[object Array]")){if(!r.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(v,y,bn({},r,{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(l){var k=m==="[object Array]",E=k?[]:{},A=k?b:v;for(var N in y)if(Object.prototype.hasOwnProperty.call(y,N)){var V="".concat(A).concat(l).concat(N);E[N]=this.translate(V,bn({},r,{joinArrays:!1,ns:c})),E[N]===V&&(E[N]=y[N])}y=E}}else if(C&&typeof S=="string"&&m==="[object Array]")(y=y.join(S))&&(y=this.extendTranslation(y,n,r,o));else{var D=!1,P=!1,O=r.count!==void 0&&typeof r.count!="string",F=t.hasDefaultValue(r),H=O?this.pluralResolver.getSuffix(f,r.count):"",J=r["defaultValue".concat(H)]||r.defaultValue;!this.isValidLookup(y)&&F&&(D=!0,y=J),this.isValidLookup(y)||(P=!0,y=u);var j=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,z=j&&P?void 0:y,L=F&&J!==y&&this.options.updateMissing;if(P||D||L){if(this.logger.log(L?"updateKey":"missingKey",f,d,u,L?J:y),l){var _=this.resolve(u,bn({},r,{keySeparator:!1}));_&&_.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 T=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(var U=0;U<I.length;U++)T.push(I[U]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(r.lng||this.language):T.push(r.lng||this.language);var $=function(W,Z,ne){a.options.missingKeyHandler?a.options.missingKeyHandler(W,d,Z,L?ne:z,L,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(W,d,Z,L?ne:z,L,r),a.emit("missingKey",W,d,Z,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?T.forEach(function(W){a.pluralResolver.getSuffixes(W).forEach(function(Z){$([W],u+Z,r["defaultValue".concat(Z)]||J)})}):$(T,u,J))}y=this.extendTranslation(y,n,r,p,o),P&&y===u&&this.options.appendNamespaceToMissingKey&&(y="".concat(d,":").concat(u)),(P||D)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(n,r,o,a,l){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(bn({},o,{interpolation:bn({},this.options.interpolation,o.interpolation)}));var u,c=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var d=n.match(this.interpolator.nestingRegexp);u=d&&d.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=bn({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),c){var g=n.match(this.interpolator.nestingRegexp);u<(g&&g.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var y=arguments.length,v=new Array(y),b=0;b<y;b++)v[b]=arguments[b];return l&&l[0]===v[0]&&!o.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):s.translate.apply(s,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var h=o.postProcess||this.options.postProcess,p=typeof h=="string"?[h]:h;return n!=null&&p&&p.length&&o.applyPostProcessor!==!1&&(n=FR.handle(p,n,r,this.options&&this.options.postProcessPassResolved?bn({i18nResolved:a},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,a,l,s,u=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(d){if(!u.isValidLookup(r)){var f=u.extractFromKey(d,c),g=f.key;o=g;var h=f.namespaces;u.options.fallbackNS&&(h=h.concat(u.options.fallbackNS));var p=c.count!==void 0&&typeof c.count!="string",y=c.context!==void 0&&(typeof c.context=="string"||typeof c.context=="number")&&c.context!=="",v=c.lngs?c.lngs:u.languageUtils.toResolveHierarchy(c.lng||u.language,c.fallbackLng);h.forEach(function(b){u.isValidLookup(r)||(s=b,!RR["".concat(v[0],"-").concat(b)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(s)&&(RR["".concat(v[0],"-").concat(b)]=!0,u.logger.warn('key "'.concat(o,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(s,'" 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!!!")),v.forEach(function(m){if(!u.isValidLookup(r)){l=m;var w,S,C=g,x=[C];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(x,g,m,b,c):(p&&(w=u.pluralResolver.getSuffix(m,c.count)),p&&y&&x.push(C+w),y&&x.push(C+="".concat(u.options.contextSeparator).concat(c.context)),p&&x.push(C+=w));S=x.pop();)u.isValidLookup(r)||(a=S,r=u.getResource(m,b,S,c))}}))})}}),{res:r,usedKey:o,exactUsedKey:a,usedLng:l,usedNS:s}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,a):this.resourceStore.getResource(n,r,o,a)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t}();function lD(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Hye=function(){function e(t){ii(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=si.create("languageUtils")}return li(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=lD(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=lD(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=lD(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(o){if(!n){var a=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(a)||(n=a)}}),!n&&this.options.supportedLngs&&t.forEach(function(o){if(!n){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return n=a;n=r.options.supportedLngs.find(function(l){if(l.indexOf(a)===0)return l})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],l=function(s){s&&(r.isSupportedCode(s)?a.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):typeof t=="string"&&l(this.formatLanguageCode(t)),o.forEach(function(s){a.indexOf(s)<0&&l(r.formatLanguageCode(s))}),a}}]),e}(),Uye=[{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}],Wye={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return 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 e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function Gye(){var e={};return Uye.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Wye[t.fc]}})}),e}var Kye=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ii(this,e),this.languageUtils=t,this.options=n,this.logger=si.create("pluralResolver"),this.rules=Gye()}return li(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(o){return n.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var a=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),l=o.numbers[a];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));var s=function(){return r.options.prepend&&l.toString()?r.options.prepend+l.toString():l.toString()};return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?"_plural_".concat(l.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),qye=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ii(this,e),this.logger=si.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return li(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:jye,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?id(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?id(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?id(n.nestingPrefix):n.nestingPrefixEscaped||id("$t("),this.nestingSuffix=n.nestingSuffix?id(n.nestingSuffix):n.nestingSuffixEscaped||id(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var a,l,s,u=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(y){return y.replace(/\$/g,"$$$$")}var f=function(y){if(y.indexOf(u.formatSeparator)<0){var v=NR(n,c,y);return u.alwaysFormat?u.format(v,void 0,r,bn({},o,n,{interpolationkey:y})):v}var b=y.split(u.formatSeparator),m=b.shift().trim(),w=b.join(u.formatSeparator).trim();return u.format(NR(n,c,m),w,r,bn({},o,n,{interpolationkey:m}))};this.resetRegExp();var g=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(y){return d(y)}},{regex:this.regexp,safeValue:function(y){return u.escapeValue?d(u.escape(y)):d(y)}}];return p.forEach(function(y){for(s=0;a=y.regex.exec(t);){if((l=f(a[1].trim()))===void 0)if(typeof g=="function"){var v=g(t,a,o);l=typeof v=="string"?v:""}else{if(h){l=a[0];continue}u.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),l=""}else typeof l=="string"||u.useRawValueToEscape||(l=TR(l));var b=y.safeValue(l);if(t=t.replace(a[0],b),h?(y.regex.lastIndex+=b.length,y.regex.lastIndex-=a[0].length):y.regex.lastIndex=0,++s>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,o,a=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=bn({},l);function u(g,h){var p=this.nestingOptionsSeparator;if(g.indexOf(p)<0)return g;var y=g.split(new RegExp("".concat(p,"[ ]*{"))),v="{".concat(y[1]);g=y[0],v=(v=this.interpolate(v,s)).replace(/'/g,'"');try{s=JSON.parse(v),h&&(s=bn({},h,s))}catch(b){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),b),"".concat(g).concat(p).concat(v)}return delete s.defaultValue,g}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(t);){var c=[],d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(g){return g.trim()});r[1]=f.shift(),c=f,d=!0}if((o=n(u.call(this,r[1].trim(),s),s))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=TR(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),d&&(o=c.reduce(function(g,h){return a.format(g,h,l.lng,bn({},l,{interpolationkey:r[1].trim()}))},o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e}(),Yye=function(e){function t(n,r,o){var a,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ii(this,t),a=mg(this,ad(t).call(this)),O0&&rl.call(eu(a)),a.backend=n,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=l,a.logger=si.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,l.backend,l),a}return P0(t,rl),li(t,[{key:"queueLoad",value:function(n,r,o,a){var l=this,s=[],u=[],c=[],d=[];return n.forEach(function(f){var g=!0;r.forEach(function(h){var p="".concat(f,"|").concat(h);!o.reload&&l.store.hasResourceBundle(f,h)?l.state[p]=2:l.state[p]<0||(l.state[p]===1?u.indexOf(p)<0&&u.push(p):(l.state[p]=1,g=!1,u.indexOf(p)<0&&u.push(p),s.indexOf(p)<0&&s.push(p),d.indexOf(h)<0&&d.push(h)))}),g||c.push(f)}),(s.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:a}),{toLoad:s,pending:u,toLoadLanguages:c,toLoadNamespaces:d}}},{key:"loaded",value:function(n,r,o){var a=n.split("|"),l=a[0],s=a[1];r&&this.emit("failedLoading",l,s,r),o&&this.store.addResourceBundle(l,s,o),this.state[n]=r?-1:2;var u={};this.queue.forEach(function(c){(function(d,f,g,h){var p=iD(d,f,Object),y=p.obj,v=p.k;y[v]=y[v]||[],y[v].push(g)})(c.loaded,[l],s),function(d,f){for(var g=d.indexOf(f);g!==-1;)d.splice(g,1),g=d.indexOf(f)}(c.pending,n),r&&c.errors.push(r),c.pending.length!==0||c.done||(Object.keys(c.loaded).forEach(function(d){u[d]||(u[d]=[]),c.loaded[d].length&&c.loaded[d].forEach(function(f){u[d].indexOf(f)<0&&u[d].push(f)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(n,r,o){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(c,d){c&&d&&l<5?setTimeout(function(){a.read.call(a,n,r,o,l+1,2*s,u)},s):u(c,d)}):u(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=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."),l&&l();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var s=this.queueLoad(n,r,a,l);if(!s.toLoad.length)return s.pending.length||l(),null;s.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=n.split("|"),l=a[0],s=a[1];this.read(l,s,"read",void 0,void 0,function(u,c){u&&r.logger.warn("".concat(o,"loading namespace ").concat(s," for language ").concat(l," failed"),u),!u&&c&&r.logger.log("".concat(o,"loaded namespace ").concat(s," for language ").concat(l),c),r.loaded(n,u,c)})}},{key:"saveMissing",value:function(n,r,o,a,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" 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!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,a,null,bn({},s,{isUpdate:l})),n&&n[0]&&this.store.addResource(n[0],r,o,a))}}]),t}();function Xye(){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(nl(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),nl(e[2])==="object"||nl(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}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 MR(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(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 I0(){}var Jye=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ii(this,t),n=mg(this,ad(t).call(this)),O0&&rl.call(eu(n)),n.options=MR(r),n.services={},n.logger=si,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),mg(n,eu(n));setTimeout(function(){n.init(r,o)},0)}return n}return P0(t,rl),li(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function a(h){return h?typeof h=="function"?new h:h:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.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=bn({},Xye(),this.options,MR(r)),this.format=this.options.interpolation.format,o||(o=I0),!this.options.isClone){this.modules.logger?si.init(a(this.modules.logger),this.options):si.init(null,this.options);var l=new Hye(this.options);this.store=new zye(this.options.resources,this.options);var s=this.services;s.logger=si,s.resourceStore=this.store,s.languageUtils=l,s.pluralResolver=new Kye(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new qye(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Yye(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(h){for(var p=arguments.length,y=new Array(p>1?p-1:0),v=1;v<p;v++)y[v-1]=arguments[v];n.emit.apply(n,[h].concat(y))}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new LR(this.services,this.options),this.translator.on("*",function(h){for(var p=arguments.length,y=new Array(p>1?p-1:0),v=1;v<p;v++)y[v-1]=arguments[v];n.emit.apply(n,[h].concat(y))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach(function(h){n[h]=function(){var p;return(p=n.store)[h].apply(p,arguments)}});var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach(function(h){n[h]=function(){var p;return(p=n.store)[h].apply(p,arguments),n}});var f=pg(),g=function(){var h=function(p,y){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(y),o(p,y)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return h(null,n.t.bind(n));n.changeLanguage(n.options.lng,h)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I0,a=o,l=typeof n=="string"?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var s=[],u=function(d){d&&r.services.languageUtils.toResolveHierarchy(d).forEach(function(f){s.indexOf(f)<0&&s.push(f)})};if(l)u(l);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(d){return u(d)})}this.options.preload&&this.options.preload.forEach(function(d){return u(d)}),this.services.backendConnector.load(s,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(n,r,o){var a=pg();return n||(n=this.languages),r||(r=this.options.ns),o||(o=I0),this.services.backendConnector.reload(n,r,function(l){a.resolve(),o(l)}),a}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&FR.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var a=pg();this.emit("languageChanging",n);var l=function(s){n||s||!o.services.languageDetector||(s=[]);var u=typeof s=="string"?s:o.services.languageUtils.getBestMatchFromCodes(s);u&&(o.language||(o.language=u,o.languages=o.services.languageUtils.toResolveHierarchy(u)),o.translator.language||o.translator.changeLanguage(u),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(u)),o.loadResources(u,function(c){(function(d,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),r&&r(d,function(){return o.t.apply(o,arguments)})})(c,u)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(l):l(n):l(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(n,r,o){var a=this,l=function s(u,c){var d;if(nl(c)!=="object"){for(var f=arguments.length,g=new Array(f>2?f-2:0),h=2;h<f;h++)g[h-2]=arguments[h];d=a.options.overloadTranslationOptionHandler([u,c].concat(g))}else d=bn({},c);d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns;var p=a.options.keySeparator||".",y=o?"".concat(o).concat(p).concat(u):u;return a.t(y,d)};return typeof n=="string"?l.lng=n:l.lngs=n,l.ns=r,l.keyPrefix=o,l}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?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 a=this.languages[0],l=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(d,f){var g=r.services.backendConnector.state["".concat(d,"|").concat(f)];return g===-1||g===2};if(o.precheck){var c=o.precheck(this,u);if(c!==void 0)return c}return!!this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||!(!u(a,n)||l&&!u(s,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,a=pg();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(l){o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),r&&r(l)}),a):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=pg();typeof n=="string"&&(n=[n]);var a=this.options.preload||[],l=n.filter(function(s){return a.indexOf(s)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(s){o.resolve(),r&&r(s)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["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(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I0,a=bn({},this.options,r,{isClone:!0}),l=new t(a),s=["store","services","language"];return s.forEach(function(u){l[u]=n[u]}),l.services=bn({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new LR(l.services,l.options),l.translator.on("*",function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];l.emit.apply(l,[u].concat(d))}),l.init(a,o),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),vg=new Jye;function Vr(e,t){vg.addResourceBundle(e,"translation",t,!0,!0)}function Zye(e){vg.changeLanguage(e)}vg.init({lng:"zh-CN",resources:{}});var ge=vg.t.bind(vg);Vr("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Vr("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Qye=ok?{}.toString:function(){return"[object "+Qv(this)+"]"};ok||ks(Object.prototype,"toString",Qye,{unsafe:!0});var jR=Array.isArray||function(e){return bs(e)=="Array"},zR=function(){},$ye=[],HR=Zf("Reflect","construct"),sD=/^\s*(?:class|function)\b/,e0e=wt(sD.exec),t0e=!sD.exec(zR),yg=function(e){if(!En(e))return!1;try{return HR(zR,$ye,e),!0}catch{return!1}},n0e=!HR||On(function(){var e;return yg(yg.call)||!yg(Object)||!yg(function(){e=!0})||e})?function(e){if(!En(e))return!1;switch(Qv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return t0e||!!e0e(sD,ZC(e))}:yg,r0e=pr("species"),UR=ze.Array,o0e=function(e,t){return new(function(n){var r;return jR(n)&&(r=n.constructor,(n0e(r)&&(r===UR||jR(r.prototype))||sa(r)&&(r=r[r0e])===null)&&(r=void 0)),r===void 0?UR:r}(e))(t===0?0:t)},WR=wt([].push),a0e=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=KC(u),y=WP(p),v=xN(c,d),b=Xv(y),m=0,w=f||o0e,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:WR(S,g)}else switch(e){case 4:return!1;case 7:WR(S,g)}return a?-1:r||o?o:S}},i0e={forEach:a0e(0)}.forEach,l0e=function(e,t){var n=[][e];return!!n&&On(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),uD=l0e?[].forEach:function(e){return i0e(this,e,arguments.length>1?arguments[1]:void 0)},GR=function(e){if(e&&e.forEach!==uD)try{Er(e,"forEach",uD)}catch{e.forEach=uD}};for(var cD in oy)oy[cD]&&GR(ze[cD]&&ze[cD].prototype);GR(FN),Vr("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"}}),Vr("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 s0e={type:"paragraph",renderElem:function(e,t,n){return Fe("p",null,t)}},F0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R0(e){var t={exports:{}};return e(t,t.exports),t.exports}var ol,L0,M0=function(e){return e&&e.Math==Math&&e},We=M0(typeof globalThis=="object"&&globalThis)||M0(typeof window=="object"&&window)||M0(typeof self=="object"&&self)||M0(typeof F0=="object"&&F0)||function(){return this}()||Function("return this")(),Kt=function(e){try{return!!e()}catch{return!0}},jo=!Kt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bg=Function.prototype.call,un=bg.bind?bg.bind(bg):function(){return bg.apply(bg,arguments)},KR={}.propertyIsEnumerable,qR=Object.getOwnPropertyDescriptor,u0e=qR&&!KR.call({1:2},1)?function(e){var t=qR(this,e);return!!t&&t.enumerable}:KR,YR={f:u0e},dD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XR=Function.prototype,fD=XR.bind,hD=XR.call,c0e=fD&&fD.bind(hD),Ie=fD?function(e){return e&&c0e(hD,e)}:function(e){return e&&function(){return hD.apply(e,arguments)}},d0e=Ie({}.toString),f0e=Ie("".slice),al=function(e){return f0e(d0e(e),8,-1)},gD=We.Object,h0e=Ie("".split),j0=Kt(function(){return!gD("z").propertyIsEnumerable(0)})?function(e){return al(e)=="String"?h0e(e,""):gD(e)}:gD,g0e=We.TypeError,go=function(e){if(e==null)throw g0e("Can't call method on "+e);return e},ld=function(e){return j0(go(e))},rr=function(e){return typeof e=="function"},ba=function(e){return typeof e=="object"?e!==null:rr(e)},m0e=function(e){return rr(e)?e:void 0},wg=function(e,t){return arguments.length<2?m0e(We[e]):We[e]&&We[e][t]},JR=Ie({}.isPrototypeOf),mD=wg("navigator","userAgent")||"",ZR=We.process,QR=We.Deno,$R=ZR&&ZR.versions||QR&&QR.version,eL=$R&&$R.v8;eL&&(L0=(ol=eL.split("."))[0]>0&&ol[0]<4?1:+(ol[0]+ol[1])),!L0&&mD&&(!(ol=mD.match(/Edge\/(\d+)/))||ol[1]>=74)&&(ol=mD.match(/Chrome\/(\d+)/))&&(L0=+ol[1]);var pD=L0,vD=!!Object.getOwnPropertySymbols&&!Kt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pD&&pD<41}),yD=vD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",p0e=We.Object,bD=yD?function(e){return typeof e=="symbol"}:function(e){var t=wg("Symbol");return rr(t)&&JR(t.prototype,p0e(e))},v0e=We.String,tL=function(e){try{return v0e(e)}catch{return"Object"}},y0e=We.TypeError,nL=function(e){if(rr(e))return e;throw y0e(tL(e)+" is not a function")},z0=function(e,t){var n=e[t];return n==null?void 0:nL(n)},b0e=We.TypeError,w0e=Object.defineProperty,wD=function(e,t){try{w0e(We,e,{value:t,configurable:!0,writable:!0})}catch{We[e]=t}return t},il=We["__core-js_shared__"]||wD("__core-js_shared__",{}),SD=R0(function(e){(e.exports=function(t,n){return il[t]||(il[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),S0e=We.Object,Sg=function(e){return S0e(go(e))},C0e=Ie({}.hasOwnProperty),mo=Object.hasOwn||function(e,t){return C0e(Sg(e),t)},k0e=0,x0e=Math.random(),E0e=Ie(1 .toString),rL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+E0e(++k0e+x0e,36)},Cg=SD("wks"),tu=We.Symbol,oL=tu&&tu.for,D0e=yD?tu:tu&&tu.withoutSetter||rL,Yr=function(e){if(!mo(Cg,e)||!vD&&typeof Cg[e]!="string"){var t="Symbol."+e;vD&&mo(tu,e)?Cg[e]=tu[e]:Cg[e]=yD&&oL?oL(t):D0e(t)}return Cg[e]},A0e=We.TypeError,V0e=Yr("toPrimitive"),CD=function(e){var t=function(n,r){if(!ba(n)||bD(n))return n;var o,a=z0(n,V0e);if(a){if(o=un(a,n,r),!ba(o)||bD(o))return o;throw A0e("Can't convert object to primitive value")}return function(l,s){var u,c;if(rr(u=l.toString)&&!ba(c=un(u,l))||rr(u=l.valueOf)&&!ba(c=un(u,l)))return c;throw b0e("Can't convert object to primitive value")}(n)}(e,"string");return bD(t)?t:t+""},kD=We.document,B0e=ba(kD)&&ba(kD.createElement),xD=function(e){return B0e?kD.createElement(e):{}},aL=!jo&&!Kt(function(){return Object.defineProperty(xD("div"),"a",{get:function(){return 7}}).a!=7}),iL=Object.getOwnPropertyDescriptor,ED={f:jo?iL:function(e,t){if(e=ld(e),t=CD(t),aL)try{return iL(e,t)}catch{}if(mo(e,t))return dD(!un(YR.f,e,t),e[t])}},_0e=We.String,T0e=We.TypeError,Xr=function(e){if(ba(e))return e;throw T0e(_0e(e)+" is not an object")},P0e=We.TypeError,lL=Object.defineProperty,sd={f:jo?lL:function(e,t,n){if(Xr(e),t=CD(t),Xr(n),aL)try{return lL(e,t,n)}catch{}if("get"in n||"set"in n)throw P0e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ud=jo?function(e,t,n){return sd.f(e,t,dD(1,n))}:function(e,t,n){return e[t]=n,e},N0e=Ie(Function.toString);rr(il.inspectSource)||(il.inspectSource=function(e){return N0e(e)});var DD,H0,AD,VD=il.inspectSource,sL=We.WeakMap,O0e=rr(sL)&&/native code/.test(VD(sL)),uL=SD("keys"),cL=function(e){return uL[e]||(uL[e]=rL(e))},BD={},dL=We.TypeError,I0e=We.WeakMap;if(O0e||il.state){var nu=il.state||(il.state=new I0e),F0e=Ie(nu.get),fL=Ie(nu.has),R0e=Ie(nu.set);DD=function(e,t){if(fL(nu,e))throw new dL("Object already initialized");return t.facade=e,R0e(nu,e,t),t},H0=function(e){return F0e(nu,e)||{}},AD=function(e){return fL(nu,e)}}else{var cd=cL("state");BD[cd]=!0,DD=function(e,t){if(mo(e,cd))throw new dL("Object already initialized");return t.facade=e,ud(e,cd,t),t},H0=function(e){return mo(e,cd)?e[cd]:{}},AD=function(e){return mo(e,cd)}}var _D={get:H0,enforce:function(e){return AD(e)?H0(e):DD(e,{})}},hL=Function.prototype,L0e=jo&&Object.getOwnPropertyDescriptor,TD=mo(hL,"name"),U0={EXISTS:TD,PROPER:TD&&(function(){}).name==="something",CONFIGURABLE:TD&&(!jo||jo&&L0e(hL,"name").configurable)},kg=R0(function(e){var t=U0.CONFIGURABLE,n=_D.get,r=_D.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;rr(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mo(s,"name")||t&&s.name!==h)&&ud(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==We?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:ud(a,l,s)):f?a[l]=s:wD(l,s)})(Function.prototype,"toString",function(){return rr(this)&&n(this).source||VD(this)})}),M0e=Math.ceil,j0e=Math.floor,dd=function(e){var t=+e;return t!=t||t===0?0:(t>0?j0e:M0e)(t)},z0e=Math.max,H0e=Math.min,xg=function(e,t){var n=dd(e);return n<0?z0e(n+t,0):H0e(n,t)},U0e=Math.min,Eg=function(e){return e>0?U0e(dd(e),9007199254740991):0},W0=function(e){return Eg(e.length)},gL=function(e){return function(t,n,r){var o,a=ld(t),l=W0(a),s=xg(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},mL={includes:gL(!0),indexOf:gL(!1)},W0e=mL.indexOf,pL=Ie([].push),vL=function(e,t){var n,r=ld(e),o=0,a=[];for(n in r)!mo(BD,n)&&mo(r,n)&&pL(a,n);for(;t.length>o;)mo(r,n=t[o++])&&(~W0e(a,n)||pL(a,n));return a},G0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],G0e=G0.concat("length","prototype"),K0e={f:Object.getOwnPropertyNames||function(e){return vL(e,G0e)}},yL={f:Object.getOwnPropertySymbols},q0e=Ie([].concat),Y0e=wg("Reflect","ownKeys")||function(e){var t=K0e.f(Xr(e)),n=yL.f;return n?q0e(t,n(e)):t},X0e=function(e,t){for(var n=Y0e(t),r=sd.f,o=ED.f,a=0;a<n.length;a++){var l=n[a];mo(e,l)||r(e,l,o(t,l))}},J0e=/#|\.prototype\./,Dg=function(e,t){var n=Q0e[Z0e(e)];return n==ebe||n!=$0e&&(rr(t)?Kt(t):!!t)},Z0e=Dg.normalize=function(e){return String(e).replace(J0e,".").toLowerCase()},Q0e=Dg.data={},$0e=Dg.NATIVE="N",ebe=Dg.POLYFILL="P",tbe=Dg,nbe=ED.f,An=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?We:c?We[s]||wD(s,{}):(We[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=nbe(n,r))&&l.value:n[r],!tbe(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;X0e(a,o)}(e.sham||o&&o.sham)&&ud(a,"sham",!0),kg(n,r,a,e)}},bL=Ie(Ie.bind),K0=Array.isArray||function(e){return al(e)=="Array"},wL={};wL[Yr("toStringTag")]="z";var PD=String(wL)==="[object z]",rbe=Yr("toStringTag"),obe=We.Object,abe=al(function(){return arguments}())=="Arguments",ND=PD?al:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=obe(e),rbe))=="string"?n:abe?al(t):(r=al(t))=="Object"&&rr(t.callee)?"Arguments":r},SL=function(){},ibe=[],CL=wg("Reflect","construct"),OD=/^\s*(?:class|function)\b/,lbe=Ie(OD.exec),sbe=!OD.exec(SL),Ag=function(e){if(!rr(e))return!1;try{return CL(SL,ibe,e),!0}catch{return!1}},ID=!CL||Kt(function(){var e;return Ag(Ag.call)||!Ag(Object)||!Ag(function(){e=!0})||e})?function(e){if(!rr(e))return!1;switch(ND(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sbe||!!lbe(OD,VD(e))}:Ag,ube=Yr("species"),kL=We.Array,cbe=function(e,t){return new(function(n){var r;return K0(n)&&(r=n.constructor,(ID(r)&&(r===kL||K0(r.prototype))||ba(r)&&(r=r[ube])===null)&&(r=void 0)),r===void 0?kL:r}(e))(t===0?0:t)},xL=Ie([].push),q0=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=Sg(u),y=j0(p),v=function(C,x){return nL(C),x===void 0?C:bL?bL(C,x):function(){return C.apply(x,arguments)}}(c,d),b=W0(y),m=0,w=f||cbe,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:xL(S,g)}else switch(e){case 4:return!1;case 7:xL(S,g)}return a?-1:r||o?o:S}},Y0={forEach:q0(0),map:q0(1),filter:q0(2),find:q0(5)},dbe=Yr("species"),FD=function(e){return pD>=51||!Kt(function(){var t=[];return(t.constructor={})[dbe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},fbe=Y0.filter;An({target:"Array",proto:!0,forced:!FD("filter")},{filter:function(e){return fbe(this,e,arguments.length>1?arguments[1]:void 0)}});var hbe=PD?{}.toString:function(){return"[object "+ND(this)+"]"};PD||kg(Object.prototype,"toString",hbe,{unsafe:!0});var X0,gbe=We.String,qt=function(e){if(ND(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return gbe(e)},EL=function(){var e=Xr(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},RD=We.RegExp,LD=Kt(function(){var e=RD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});LD||Kt(function(){return!RD("a","y").sticky});var DL={BROKEN_CARET:LD||Kt(function(){var e=RD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:LD},fd=Object.keys||function(e){return vL(e,G0)},mbe=jo?Object.defineProperties:function(e,t){Xr(e);for(var n,r=ld(t),o=fd(t),a=o.length,l=0;a>l;)sd.f(e,n=o[l++],r[n]);return e},pbe=wg("document","documentElement"),AL=cL("IE_PROTO"),MD=function(){},VL=function(e){return"<script>"+e+"<\/script>"},BL=function(e){e.write(VL("")),e.close();var t=e.parentWindow.Object;return e=null,t},J0=function(){try{X0=new ActiveXObject("htmlfile")}catch{}var e,t;J0=typeof document<"u"?document.domain&&X0?BL(X0):((t=xD("iframe")).style.display="none",pbe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(VL("document.F=Object")),e.close(),e.F):BL(X0);for(var n=G0.length;n--;)delete J0.prototype[G0[n]];return J0()};BD[AL]=!0;var _L,jD,TL=Object.create||function(e,t){var n;return e!==null?(MD.prototype=Xr(e),n=new MD,MD.prototype=null,n[AL]=e):n=J0(),t===void 0?n:mbe(n,t)},vbe=We.RegExp,ybe=Kt(function(){var e=vbe(".","s");return!(e.dotAll&&e.exec(`
97
+ `)&&e.flags==="s")}),bbe=We.RegExp,wbe=Kt(function(){var e=bbe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Sbe=_D.get,Cbe=SD("native-string-replace",String.prototype.replace),Z0=RegExp.prototype.exec,zD=Z0,kbe=Ie("".charAt),xbe=Ie("".indexOf),Ebe=Ie("".replace),HD=Ie("".slice),UD=(jD=/b*/g,un(Z0,_L=/a/,"a"),un(Z0,jD,"a"),_L.lastIndex!==0||jD.lastIndex!==0),PL=DL.BROKEN_CARET,WD=/()??/.exec("")[1]!==void 0;(UD||WD||PL||ybe||wbe)&&(zD=function(e){var t,n,r,o,a,l,s,u=this,c=Sbe(u),d=qt(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=un(zD,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=PL&&u.sticky,p=un(EL,u),y=u.source,v=0,b=d;if(h&&(p=Ebe(p,"y",""),xbe(p,"g")===-1&&(p+="g"),b=HD(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&kbe(d,u.lastIndex-1)!==`
98
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),WD&&(n=new RegExp("^"+y+"$(?!\\s)",p)),UD&&(r=u.lastIndex),o=un(Z0,h?n:u,b),h?o?(o.input=HD(o.input,v),o[0]=HD(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:UD&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),WD&&o&&o.length>1&&un(Cbe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=TL(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Vg=zD;An({target:"RegExp",proto:!0,forced:/./.exec!==Vg},{exec:Vg});var GD=Function.prototype,NL=GD.apply,Dbe=GD.bind,OL=GD.call,IL=typeof Reflect=="object"&&Reflect.apply||(Dbe?OL.bind(NL):function(){return OL.apply(NL,arguments)}),Abe=Yr("species"),KD=RegExp.prototype,qD=function(e,t,n,r){var o=Yr(e),a=!Kt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Kt(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Abe]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Ie(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=Ie(c),y=d.exec;return y===Vg||y===KD.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});kg(String.prototype,e,u[0]),kg(KD,o,u[1])}r&&ud(KD[o],"sham",!0)},Vbe=Ie("".charAt),FL=Ie("".charCodeAt),Bbe=Ie("".slice),_be=function(e){return function(t,n){var r,o,a=qt(go(t)),l=dd(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=FL(a,l))<55296||r>56319||l+1===s||(o=FL(a,l+1))<56320||o>57343?e?Vbe(a,l):r:e?Bbe(a,l,l+2):o-56320+(r-55296<<10)+65536}},Tbe=_be(!0),YD=function(e,t,n){return t+(n?Tbe(e,t).length:1)},Pbe=Math.floor,XD=Ie("".charAt),Nbe=Ie("".replace),JD=Ie("".slice),Obe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ibe=/\$([$&'`]|\d{1,2})/g,Fbe=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=Ibe;return o!==void 0&&(o=Sg(o),u=Obe),Nbe(a,u,function(c,d){var f;switch(XD(d,0)){case"$":return"$";case"&":return e;case"`":return JD(t,0,n);case"'":return JD(t,l);case"<":f=o[JD(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=Pbe(g/10);return h===0?c:h<=s?r[h-1]===void 0?XD(d,1):r[h-1]+XD(d,1):c}f=r[g-1]}return f===void 0?"":f})},Rbe=We.TypeError,Bg=function(e,t){var n=e.exec;if(rr(n)){var r=un(n,e,t);return r!==null&&Xr(r),r}if(al(e)==="RegExp")return un(Vg,e,t);throw Rbe("RegExp#exec called on incompatible receiver")},ZD=Yr("replace"),Lbe=Math.max,Mbe=Math.min,jbe=Ie([].concat),QD=Ie([].push),RL=Ie("".indexOf),LL=Ie("".slice),zbe="a".replace(/./,"$0")==="$0",ML=!!/./[ZD]&&/./[ZD]("a","$0")==="";qD("replace",function(e,t,n){var r=ML?"$":"$0";return[function(o,a){var l=go(this),s=o==null?void 0:z0(o,ZD);return s?un(s,o,l,a):un(t,qt(l),o,a)},function(o,a){var l=Xr(this),s=qt(o);if(typeof a=="string"&&RL(a,r)===-1&&RL(a,"$<")===-1){var u=n(t,l,s,a);if(u.done)return u.value}var c=rr(a);c||(a=qt(a));var d=l.global;if(d){var f=l.unicode;l.lastIndex=0}for(var g=[];;){var h=Bg(l,s);if(h===null||(QD(g,h),!d))break;qt(h[0])===""&&(l.lastIndex=YD(s,Eg(l.lastIndex),f))}for(var p,y="",v=0,b=0;b<g.length;b++){for(var m=qt((h=g[b])[0]),w=Lbe(Mbe(dd(h.index),s.length),0),S=[],C=1;C<h.length;C++)QD(S,(p=h[C])===void 0?p:String(p));var x=h.groups;if(c){var k=jbe([m],S,w,s);x!==void 0&&QD(k,x);var E=qt(IL(a,void 0,k))}else E=Fbe(m,s,w,S,x,a);w>=v&&(y+=LL(s,v,w)+E,v=w+m.length)}return y+LL(s,v)}]},!!Kt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!zbe||ML);var $D=Yr("unscopables"),e4=Array.prototype;e4[$D]==null&&sd.f(e4,$D,{configurable:!0,value:TL(null)});var jL=function(e){e4[$D][e]=!0},Hbe=Y0.find,zL=!0;"find"in[]&&Array(1).find(function(){zL=!1}),An({target:"Array",proto:!0,forced:zL},{find:function(e){return Hbe(this,e,arguments.length>1?arguments[1]:void 0)}}),jL("find");var Ube=Yr("match"),HL=function(e){var t;return ba(e)&&((t=e[Ube])!==void 0?!!t:al(e)=="RegExp")},Wbe=We.TypeError,Gbe=Yr("species"),UL=function(e,t,n){var r=CD(t);r in e?sd.f(e,r,dD(0,n)):e[r]=n},Kbe=We.Array,qbe=Math.max,WL=function(e,t,n){for(var r=W0(e),o=xg(t,r),a=xg(n===void 0?r:n,r),l=Kbe(qbe(a-o,0)),s=0;o<a;o++,s++)UL(l,s,e[o]);return l.length=s,l},hd=DL.UNSUPPORTED_Y,Ybe=Math.min,GL=[].push,Xbe=Ie(/./.exec),gd=Ie(GL),_g=Ie("".slice);qD("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var l=qt(go(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(o===void 0)return[l];if(!HL(o))return un(t,l,o,s);for(var u,c,d,f=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,p=new RegExp(o.source,g+"g");(u=un(Vg,p,l))&&!((c=p.lastIndex)>h&&(gd(f,_g(l,h,u.index)),u.length>1&&u.index<l.length&&IL(GL,f,WL(u,1)),d=u[0].length,h=c,f.length>=s));)p.lastIndex===u.index&&p.lastIndex++;return h===l.length?!d&&Xbe(p,"")||gd(f,""):gd(f,_g(l,h)),f.length>s?WL(f,0,s):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:un(t,this,o,a)}:t,[function(o,a){var l=go(this),s=o==null?void 0:z0(o,e);return s?un(s,o,l,a):un(r,qt(l),o,a)},function(o,a){var l=Xr(this),s=qt(o),u=n(r,l,s,a,r!==t);if(u.done)return u.value;var c=function(S,C){var x,k=Xr(S).constructor;return k===void 0||(x=Xr(k)[Gbe])==null?C:function(E){if(ID(E))return E;throw Wbe(tL(E)+" is not a constructor")}(x)}(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(hd?"g":"y"),g=new c(hd?"^(?:"+l.source+")":l,f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return Bg(g,s)===null?[s]:[];for(var p=0,y=0,v=[];y<s.length;){g.lastIndex=hd?0:y;var b,m=Bg(g,hd?_g(s,y):s);if(m===null||(b=Ybe(Eg(g.lastIndex+(hd?y:0)),s.length))===p)y=YD(s,y,d);else{if(gd(v,_g(s,p,y)),v.length===h)return v;for(var w=1;w<=m.length-1;w++)if(gd(v,m[w]),v.length===h)return v;y=p=b}}return gd(v,_g(s,p)),v}]},!!Kt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),hd);var t4=`
99
+ \v\f\r                 \u2028\u2029\uFEFF`,KL=Ie("".replace),Q0="["+t4+"]",Jbe=RegExp("^"+Q0+Q0+"*"),Zbe=RegExp(Q0+Q0+"*$"),Qbe=function(e){return function(t){var n=qt(go(t));return 1&e&&(n=KL(n,Jbe,"")),2&e&&(n=KL(n,Zbe,"")),n}},$be={trim:Qbe(3)},ewe=U0.PROPER,twe=$be.trim;function n4(e){return M("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function md(e){return e.length===0?"":e[0].outerHTML}function pd(e){return e.length?e[0].tagName.toLowerCase():""}function zo(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,a=0;a<o;a++){var l=r[a];if(l){var s=l.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}An({target:"String",proto:!0,forced:Kt(function(){return!!t4.trim()||"​…᠎".trim()!=="​…᠎"||ewe&&t4.trim.name!=="trim"})},{trim:function(){return twe(this)}}),An({global:!0},{globalThis:We}),Dy&&(M.fn.css=Dy),ao&&(M.fn.append=ao),dI&&(M.fn.prepend=dI),Sc&&(M.fn.addClass=Sc),Cc&&(M.fn.removeClass=Cc),kc&&(M.fn.hasClass=kc),da&&(M.fn.on=da),lI&&(M.fn.off=lI),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),Cy&&(M.fn.removeAttr=Cy),Ec&&(M.fn.hide=Ec),Ey&&(M.fn.show=Ey),By&&(M.fn.parents=By),xc&&(M.fn.dataset=xc),ca&&(M.fn.val=ca),Vy&&(M.fn.text=Vy),Ui&&(M.fn.html=Ui),Vc&&(M.fn.children=Vc),Bc&&(M.fn.remove=Bc),Ac&&(M.fn.find=Ac),ky&&(M.fn.width=ky),xy&&(M.fn.height=xy),uI&&(M.fn.filter=uI),_c&&(M.fn.empty=_c);var nwe={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return!!Se.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},r4=function(e,t){return r4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},r4(e,t);/*! *****************************************************************************
100
100
  Copyright (c) Microsoft Corporation.
101
101
 
102
102
  Permission to use, copy, modify, and/or distribute this software for any
@@ -109,19 +109,19 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,b
109
109
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
110
110
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
111
111
  PERFORMANCE OF THIS SOFTWARE.
112
- ***************************************************************************** */};function Mt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ll=function(){return ll=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},ll.apply(this,arguments)};function sl(e,t,n,r){return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(d){a(d)}}function s(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){var d;c.done?o(c.value):(d=c.value,d instanceof n?d:new n(function(f){f(d)})).then(l,s)}u((r=r.apply(e,[])).next())})}function ul(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,r=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(f){d=[6,f],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,c])}}}function qL(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 st(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function YL(e){var t=st(B.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!_e.isElement(n)||n.type==="paragraph"||he.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!Se.isText(o[0])&&(Q.setNodes(e,{type:"paragraph"}),!0)}var nwe={renderElems:[l0e],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[twe],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){YL(r)||t(o)},r.deleteForward=function(o){YL(r)||n(o)},r}},rwe=/"/g,owe=Ie("".replace),Tg=function(e,t,n,r){var o=qt(go(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+owe(qt(r),rwe,"&quot;")+'"'),a+">"+o+"</"+t+">"},Pg=function(e){return Kt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function o4(e,t){var n=t,r=e,o=r.bold,a=r.italic,l=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),l&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function ru(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}An({target:"String",proto:!0,forced:Pg("bold")},{bold:function(){return Tg(this,"b","","")}}),An({target:"String",proto:!0,forced:Pg("italics")},{italics:function(){return Tg(this,"i","","")}}),An({target:"String",proto:!0,forced:Pg("sub")},{sub:function(){return Tg(this,"sub","","")}}),An({target:"String",proto:!0,forced:Pg("sup")},{sup:function(){return Tg(this,"sup","","")}});var XL={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},a4=xD("span").classList,JL=a4&&a4.constructor&&a4.constructor.prototype,awe=JL===Object.prototype?void 0:JL,ZL=function(e,t){var n=[][e];return!!n&&Kt(function(){n.call(null,t||function(){throw 1},1)})},iwe=Y0.forEach,i4=ZL("forEach")?[].forEach:function(e){return iwe(this,e,arguments.length>1?arguments[1]:void 0)},QL=function(e){if(e&&e.forEach!==i4)try{ud(e,"forEach",i4)}catch{e.forEach=i4}};for(var l4 in XL)XL[l4]&&QL(We[l4]&&We[l4].prototype);function $L(e,t){return e.selection==null||!!st(B.nodes(e,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(e,n)},universal:!0}),1)[0]}function lwe(e,t){Object.keys(t).forEach(function(n){n!=="text"&&B.removeMark(e,n)})}QL(awe),An({target:"Object",stat:!0,forced:Kt(function(){fd(1)})},{keys:function(e){return fd(Sg(e))}});var ou=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=B.marks(t);return r?r[n]:!!st(B.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return $L(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach(function(a){return t.removeMark(a)}))},e}(),swe='<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>',uwe='<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>',cwe='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',dwe='<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>',fwe='<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>',eM='<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>',tM='<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>',hwe='<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>',gwe='<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>',mwe='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',pwe='<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>',vwe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ywe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',bwe='<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>',wwe='<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>',Swe='<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>',Cwe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',kwe='<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>',xwe='<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>',Ewe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=ge("textStyle.bold"),n.iconSvg=swe,n.hotkey="mod+b",n}return Mt(t,e),t}(ou),Dwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=ge("textStyle.code"),n.iconSvg=fwe,n.hotkey="mod+e",n}return Mt(t,e),t}(ou),Awe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=ge("textStyle.italic"),n.iconSvg=cwe,n.hotkey="mod+i",n}return Mt(t,e),t}(ou),Vwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=ge("textStyle.through"),n.iconSvg=dwe,n.hotkey="mod+shift+x",n}return Mt(t,e),t}(ou),Bwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=ge("textStyle.underline"),n.iconSvg=uwe,n.hotkey="mod+u",n}return Mt(t,e),t}(ou),_we=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=ge("textStyle.sub"),n.iconSvg=xwe,n.hotkey="",n}return Mt(t,e),t}(ou),Twe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=ge("textStyle.sup"),n.iconSvg=kwe,n.hotkey="",n}return Mt(t,e),t}(ou),Pwe=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return $L(t)},e.prototype.exec=function(t,n){var r,o,a=B.nodes(t,{match:function(u){return Se.isText(u)},universal:!0});try{for(var l=qL(a),s=l.next();!s.done;s=l.next())lwe(t,s.value[0])}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},e}(),Nwe={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,a=n.underline,l=n.code,s=n.through,u=n.sub,c=n.sup,d=t;return r&&(d=Fe("strong",null,d)),l&&(d=Fe("code",null,d)),o&&(d=Fe("em",null,d)),a&&(d=Fe("u",null,d)),s&&(d=Fe("s",null,d)),u&&(d=Fe("sub",null,d)),c&&(d=Fe("sup",null,d)),d},menus:[{key:"bold",factory:function(){return new Ewe}},{key:"underline",factory:function(){return new Bwe}},{key:"italic",factory:function(){return new Awe}},{key:"through",factory:function(){return new Vwe}},{key:"code",factory:function(){return new Dwe}},{key:"sub",factory:function(){return new _we}},{key:"sup",factory:function(){return new Twe}},{key:"clearStyle",factory:function(){return new Pwe}}],styleToHtml:function(e,t){if(!Se.isText(e))return t;if(n4(t))return o4(e,t);var n=M(t);if(pd(n)==="br")return o4(e,"<br>");var r=n.html();return r=o4(e,r),n.html(r),md(n)},parseStyleHtml:function(e,t,n){var r=M(e);if(!Se.isText(t))return t;var o=t;return ru(r,"b,strong")&&(o.bold=!0),ru(r,"i,em")&&(o.italic=!0),ru(r,"u")&&(o.underline=!0),ru(r,"s,strike")&&(o.through=!0),ru(r,"sub")&&(o.sub=!0),ru(r,"sup")&&(o.sup=!0),ru(r,"code")&&(o.code=!0),o}};function Ng(e){return function(t,n,r){return Fe("h"+e,null,n)}}var Owe={type:"header1",renderElem:Ng(1)},Iwe={type:"header2",renderElem:Ng(2)},Fwe={type:"header3",renderElem:Ng(3)},Rwe={type:"header4",renderElem:Ng(4)},Lwe={type:"header5",renderElem:Ng(5)},Mwe=U0.PROPER,s4=RegExp.prototype,nM=s4.toString,jwe=Ie(EL),zwe=Kt(function(){return nM.call({source:"a",flags:"b"})!="/a/b"}),Hwe=Mwe&&nM.name!="toString";(zwe||Hwe)&&kg(RegExp.prototype,"toString",function(){var e=Xr(this),t=qt(e.source),n=e.flags;return"/"+t+"/"+qt(n===void 0&&JR(s4,e)&&!("flags"in s4)?jwe(e):n)},{unsafe:!0});var u4,Uwe=We.TypeError,rM=function(e){if(HL(e))throw Uwe("The method doesn't accept regular expressions");return e},Wwe=Yr("match"),oM=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Wwe]=!1,"/./"[e](t)}catch{}}return!1},Gwe=ED.f,aM=Ie("".startsWith),Kwe=Ie("".slice),qwe=Math.min,iM=oM("startsWith");function lM(e){var t=st(B.nodes(e,{match:function(o){return R.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=st(n,1)[0];return R.getNodeType(r)}function sM(e){return e.selection==null||!st(B.nodes(e,{match:function(t){var n=R.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function uM(e,t){t&&Q.setNodes(e,{type:t})}An({target:"String",proto:!0,forced:!(!iM&&(u4=Gwe(String.prototype,"startsWith"),u4&&!u4.writable)||iM)},{startsWith:function(e){var t=qt(go(this));rM(e);var n=Eg(qwe(arguments.length>1?arguments[1]:void 0,t.length)),r=qt(e);return aM?aM(t,r,n):Kwe(t,n,n+r.length)===r}});var Ywe=function(){function e(){this.title=ge("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(t){var n=[{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:ge("header.text")}],r=this.getValue(t).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return lM(t)},e.prototype.isDisabled=function(t){return sM(t)},e.prototype.exec=function(t,n){uM(t,n.toString())},e}(),Og=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return lM(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return sM(t)},e.prototype.exec=function(t,n){var r=this.type;uM(t,n===r?"paragraph":r)},e}(),Xwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Mt(t,e),t}(Og),Jwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Mt(t,e),t}(Og),Zwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Mt(t,e),t}(Og),Qwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Mt(t,e),t}(Og),$we=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Mt(t,e),t}(Og),e2e={key:"headerSelect",factory:function(){return new Ywe}},t2e={key:"header1",factory:function(){return new Xwe}},n2e={key:"header2",factory:function(){return new Jwe}},r2e={key:"header3",factory:function(){return new Zwe}},o2e={key:"header4",factory:function(){return new Qwe}},a2e={key:"header5",factory:function(){return new $we}};function Ig(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Fg(e){return function(t,n,r){var o=M(t);return(n=n.filter(function(a){return!!Se.isText(a)||!!r.isInline(a)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var i2e={renderElems:[Owe,Iwe,Fwe,Rwe,Lwe],elemsToHtml:[{type:"header1",elemToHtml:Ig(1)},{type:"header2",elemToHtml:Ig(2)},{type:"header3",elemToHtml:Ig(3)},{type:"header4",elemToHtml:Ig(4)},{type:"header5",elemToHtml:Ig(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Fg(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Fg(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Fg(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Fg(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Fg(5)}],menus:[e2e,t2e,n2e,r2e,o2e,a2e],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=st(B.nodes(n,{match:function(o){return R.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&R.isSelectionAtLineEnd(e,r[1])?Q.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},vd=Object.assign,cM=Object.defineProperty,l2e=Ie([].concat),dM=!vd||Kt(function(){if(jo&&vd({b:1},vd(cM({},"a",{enumerable:!0,get:function(){cM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),vd({},e)[n]!=7||fd(vd({},t)).join("")!=r})?function(e,t){for(var n=Sg(e),r=arguments.length,o=1,a=yL.f,l=YR.f;r>o;)for(var s,u=j0(arguments[o++]),c=a?l2e(fd(u),a(u)):fd(u),d=c.length,f=0;d>f;)s=c[f++],jo&&!un(l,u,s)||(n[s]=u[s]);return n}:vd;function au(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}An({target:"Object",stat:!0,forced:Object.assign!==dM},{assign:dM});var s2e={selector:"font",preParseHtml:function(e){var t=M(e);if(pd(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},fM=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=B.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!st(B.nodes(t,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=M('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(c){var d=c.target;if(d!=null&&(c.preventDefault(),t.selection!=null)){var f=M(d).attr("data-value");f==="0"?B.removeMark(t,n):B.addMark(t,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var a=this.getValue(t),l=t.getMenuConfig(n).colors;(l===void 0?[]:l).forEach(function(c){var d=M('<div class="color-block" data-value="'+c+'"></div>');d.css("background-color",c);var f=M('<li data-value="'+c+'"></li>');a===c&&f.addClass("active"),f.append(d),o.append(f)});var s="";n==="color"&&(s=ge("color.default")),n==="bgColor"&&(s=ge("color.clear"));var u=M(`
112
+ ***************************************************************************** */};function Mt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ll=function(){return ll=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},ll.apply(this,arguments)};function sl(e,t,n,r){return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(d){a(d)}}function s(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){var d;c.done?o(c.value):(d=c.value,d instanceof n?d:new n(function(f){f(d)})).then(l,s)}u((r=r.apply(e,[])).next())})}function ul(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,r=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(f){d=[6,f],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,c])}}}function qL(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 st(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function YL(e){var t=st(B.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!_e.isElement(n)||n.type==="paragraph"||he.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!Se.isText(o[0])&&(Q.setNodes(e,{type:"paragraph"}),!0)}var rwe={renderElems:[s0e],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[nwe],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){YL(r)||t(o)},r.deleteForward=function(o){YL(r)||n(o)},r}},owe=/"/g,awe=Ie("".replace),Tg=function(e,t,n,r){var o=qt(go(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+awe(qt(r),owe,"&quot;")+'"'),a+">"+o+"</"+t+">"},Pg=function(e){return Kt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function o4(e,t){var n=t,r=e,o=r.bold,a=r.italic,l=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),l&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function ru(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}An({target:"String",proto:!0,forced:Pg("bold")},{bold:function(){return Tg(this,"b","","")}}),An({target:"String",proto:!0,forced:Pg("italics")},{italics:function(){return Tg(this,"i","","")}}),An({target:"String",proto:!0,forced:Pg("sub")},{sub:function(){return Tg(this,"sub","","")}}),An({target:"String",proto:!0,forced:Pg("sup")},{sup:function(){return Tg(this,"sup","","")}});var XL={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},a4=xD("span").classList,JL=a4&&a4.constructor&&a4.constructor.prototype,iwe=JL===Object.prototype?void 0:JL,ZL=function(e,t){var n=[][e];return!!n&&Kt(function(){n.call(null,t||function(){throw 1},1)})},lwe=Y0.forEach,i4=ZL("forEach")?[].forEach:function(e){return lwe(this,e,arguments.length>1?arguments[1]:void 0)},QL=function(e){if(e&&e.forEach!==i4)try{ud(e,"forEach",i4)}catch{e.forEach=i4}};for(var l4 in XL)XL[l4]&&QL(We[l4]&&We[l4].prototype);function $L(e,t){return e.selection==null||!!st(B.nodes(e,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(e,n)},universal:!0}),1)[0]}function swe(e,t){Object.keys(t).forEach(function(n){n!=="text"&&B.removeMark(e,n)})}QL(iwe),An({target:"Object",stat:!0,forced:Kt(function(){fd(1)})},{keys:function(e){return fd(Sg(e))}});var ou=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=B.marks(t);return r?r[n]:!!st(B.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return $L(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach(function(a){return t.removeMark(a)}))},e}(),uwe='<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>',cwe='<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>',dwe='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',fwe='<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>',hwe='<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>',eM='<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>',tM='<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>',gwe='<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>',mwe='<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>',pwe='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',vwe='<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>',ywe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',bwe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',wwe='<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>',Swe='<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>',Cwe='<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>',kwe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',xwe='<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>',Ewe='<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>',Dwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=ge("textStyle.bold"),n.iconSvg=uwe,n.hotkey="mod+b",n}return Mt(t,e),t}(ou),Awe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=ge("textStyle.code"),n.iconSvg=hwe,n.hotkey="mod+e",n}return Mt(t,e),t}(ou),Vwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=ge("textStyle.italic"),n.iconSvg=dwe,n.hotkey="mod+i",n}return Mt(t,e),t}(ou),Bwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=ge("textStyle.through"),n.iconSvg=fwe,n.hotkey="mod+shift+x",n}return Mt(t,e),t}(ou),_we=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=ge("textStyle.underline"),n.iconSvg=cwe,n.hotkey="mod+u",n}return Mt(t,e),t}(ou),Twe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=ge("textStyle.sub"),n.iconSvg=Ewe,n.hotkey="",n}return Mt(t,e),t}(ou),Pwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=ge("textStyle.sup"),n.iconSvg=xwe,n.hotkey="",n}return Mt(t,e),t}(ou),Nwe=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return $L(t)},e.prototype.exec=function(t,n){var r,o,a=B.nodes(t,{match:function(u){return Se.isText(u)},universal:!0});try{for(var l=qL(a),s=l.next();!s.done;s=l.next())swe(t,s.value[0])}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},e}(),Owe={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,a=n.underline,l=n.code,s=n.through,u=n.sub,c=n.sup,d=t;return r&&(d=Fe("strong",null,d)),l&&(d=Fe("code",null,d)),o&&(d=Fe("em",null,d)),a&&(d=Fe("u",null,d)),s&&(d=Fe("s",null,d)),u&&(d=Fe("sub",null,d)),c&&(d=Fe("sup",null,d)),d},menus:[{key:"bold",factory:function(){return new Dwe}},{key:"underline",factory:function(){return new _we}},{key:"italic",factory:function(){return new Vwe}},{key:"through",factory:function(){return new Bwe}},{key:"code",factory:function(){return new Awe}},{key:"sub",factory:function(){return new Twe}},{key:"sup",factory:function(){return new Pwe}},{key:"clearStyle",factory:function(){return new Nwe}}],styleToHtml:function(e,t){if(!Se.isText(e))return t;if(n4(t))return o4(e,t);var n=M(t);if(pd(n)==="br")return o4(e,"<br>");var r=n.html();return r=o4(e,r),n.html(r),md(n)},parseStyleHtml:function(e,t,n){var r=M(e);if(!Se.isText(t))return t;var o=t;return ru(r,"b,strong")&&(o.bold=!0),ru(r,"i,em")&&(o.italic=!0),ru(r,"u")&&(o.underline=!0),ru(r,"s,strike")&&(o.through=!0),ru(r,"sub")&&(o.sub=!0),ru(r,"sup")&&(o.sup=!0),ru(r,"code")&&(o.code=!0),o}};function Ng(e){return function(t,n,r){return Fe("h"+e,null,n)}}var Iwe={type:"header1",renderElem:Ng(1)},Fwe={type:"header2",renderElem:Ng(2)},Rwe={type:"header3",renderElem:Ng(3)},Lwe={type:"header4",renderElem:Ng(4)},Mwe={type:"header5",renderElem:Ng(5)},jwe=U0.PROPER,s4=RegExp.prototype,nM=s4.toString,zwe=Ie(EL),Hwe=Kt(function(){return nM.call({source:"a",flags:"b"})!="/a/b"}),Uwe=jwe&&nM.name!="toString";(Hwe||Uwe)&&kg(RegExp.prototype,"toString",function(){var e=Xr(this),t=qt(e.source),n=e.flags;return"/"+t+"/"+qt(n===void 0&&JR(s4,e)&&!("flags"in s4)?zwe(e):n)},{unsafe:!0});var u4,Wwe=We.TypeError,rM=function(e){if(HL(e))throw Wwe("The method doesn't accept regular expressions");return e},Gwe=Yr("match"),oM=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Gwe]=!1,"/./"[e](t)}catch{}}return!1},Kwe=ED.f,aM=Ie("".startsWith),qwe=Ie("".slice),Ywe=Math.min,iM=oM("startsWith");function lM(e){var t=st(B.nodes(e,{match:function(o){return R.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=st(n,1)[0];return R.getNodeType(r)}function sM(e){return e.selection==null||!st(B.nodes(e,{match:function(t){var n=R.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function uM(e,t){t&&Q.setNodes(e,{type:t})}An({target:"String",proto:!0,forced:!(!iM&&(u4=Kwe(String.prototype,"startsWith"),u4&&!u4.writable)||iM)},{startsWith:function(e){var t=qt(go(this));rM(e);var n=Eg(Ywe(arguments.length>1?arguments[1]:void 0,t.length)),r=qt(e);return aM?aM(t,r,n):qwe(t,n,n+r.length)===r}});var Xwe=function(){function e(){this.title=ge("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(t){var n=[{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:ge("header.text")}],r=this.getValue(t).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return lM(t)},e.prototype.isDisabled=function(t){return sM(t)},e.prototype.exec=function(t,n){uM(t,n.toString())},e}(),Og=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return lM(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return sM(t)},e.prototype.exec=function(t,n){var r=this.type;uM(t,n===r?"paragraph":r)},e}(),Jwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Mt(t,e),t}(Og),Zwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Mt(t,e),t}(Og),Qwe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Mt(t,e),t}(Og),$we=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Mt(t,e),t}(Og),e2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Mt(t,e),t}(Og),t2e={key:"headerSelect",factory:function(){return new Xwe}},n2e={key:"header1",factory:function(){return new Jwe}},r2e={key:"header2",factory:function(){return new Zwe}},o2e={key:"header3",factory:function(){return new Qwe}},a2e={key:"header4",factory:function(){return new $we}},i2e={key:"header5",factory:function(){return new e2e}};function Ig(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Fg(e){return function(t,n,r){var o=M(t);return(n=n.filter(function(a){return!!Se.isText(a)||!!r.isInline(a)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var l2e={renderElems:[Iwe,Fwe,Rwe,Lwe,Mwe],elemsToHtml:[{type:"header1",elemToHtml:Ig(1)},{type:"header2",elemToHtml:Ig(2)},{type:"header3",elemToHtml:Ig(3)},{type:"header4",elemToHtml:Ig(4)},{type:"header5",elemToHtml:Ig(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Fg(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Fg(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Fg(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Fg(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Fg(5)}],menus:[t2e,n2e,r2e,o2e,a2e,i2e],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=st(B.nodes(n,{match:function(o){return R.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&R.isSelectionAtLineEnd(e,r[1])?Q.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},vd=Object.assign,cM=Object.defineProperty,s2e=Ie([].concat),dM=!vd||Kt(function(){if(jo&&vd({b:1},vd(cM({},"a",{enumerable:!0,get:function(){cM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),vd({},e)[n]!=7||fd(vd({},t)).join("")!=r})?function(e,t){for(var n=Sg(e),r=arguments.length,o=1,a=yL.f,l=YR.f;r>o;)for(var s,u=j0(arguments[o++]),c=a?s2e(fd(u),a(u)):fd(u),d=c.length,f=0;d>f;)s=c[f++],jo&&!un(l,u,s)||(n[s]=u[s]);return n}:vd;function au(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}An({target:"Object",stat:!0,forced:Object.assign!==dM},{assign:dM});var u2e={selector:"font",preParseHtml:function(e){var t=M(e);if(pd(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},fM=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=B.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!st(B.nodes(t,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=M('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(c){var d=c.target;if(d!=null&&(c.preventDefault(),t.selection!=null)){var f=M(d).attr("data-value");f==="0"?B.removeMark(t,n):B.addMark(t,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var a=this.getValue(t),l=t.getMenuConfig(n).colors;(l===void 0?[]:l).forEach(function(c){var d=M('<div class="color-block" data-value="'+c+'"></div>');d.css("background-color",c);var f=M('<li data-value="'+c+'"></li>');a===c&&f.addClass("active"),f.append(d),o.append(f)});var s="";n==="color"&&(s=ge("color.default")),n==="bgColor"&&(s=ge("color.clear"));var u=M(`
113
113
  <li data-value="0" class="clear">
114
114
  <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>
115
115
  `+s+`
116
116
  </li>
117
- `);return o.prepend(u),o[0]},e}(),u2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("color.color"),n.iconSvg=hwe,n.mark="color",n}return Mt(t,e),t}(fM),c2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("color.bgColor"),n.iconSvg=gwe,n.mark="bgColor",n}return Mt(t,e),t}(fM),hM=["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)"],d2e={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,a=t;return r&&au(a,{color:r}),o&&au(a,{backgroundColor:o}),a},styleToHtml:function(e,t){if(!Se.isText(e))return t;var n,r=e,o=r.color,a=r.bgColor;return o||a?((n4(t)||pd(n=M(t))!=="span")&&(n=M("<span>"+t+"</span>")),o&&n.css("color",o),a&&n.css("background-color",a),md(n)):t},preParseHtml:[s2e],parseStyleHtml:function(e,t,n){var r=M(e);if(!Se.isText(t))return t;var o=t,a=zo(r,"color");a&&(o.color=a);var l=zo(r,"background-color");return l||(l=zo(r,"background")),l&&(o.bgColor=l),o},menus:[{key:"color",factory:function(){return new u2e},config:{colors:hM}},{key:"bgColor",factory:function(){return new c2e},config:{colors:hM}}]},f2e=/^(?:\w+:)?\/\/(\S+)$/,h2e=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,g2e=/^[^\s\.]+\.\S{2,}$/,m2e=mL.includes;function $0(e){return e===void 0&&(e="r"),e+"-"+vI()}function c4(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gM(e,t,n,r){return sl(this,void 0,void 0,function(){var o,a;return ul(this,function(l){switch(l.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(a=l.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];l.label=2;case 2:return[2,!0]}})})}function mM(e,t,n){return sl(this,void 0,void 0,function(){var r;return ul(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 d4(e){return e.selection==null||!!R.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function f4(e,t){return{type:"link",url:c4(e),children:t?[{text:t}]:[]}}function pM(e,t,n){return sl(this,void 0,void 0,function(){var r,o,a;return ul(this,function(l){switch(l.label){case 0:return n?(t||(t=n),e.restoreSelection(),d4(e)?[2]:[4,gM("insertLink",e,t,n)]):[2];case 1:return l.sent()?[4,mM("insertLink",e,n)]:[2];case 2:return r=l.sent(),(o=e.selection)==null||(re.isCollapsed(o)?(e.insertText(" "),a=f4(r,t),Q.insertNodes(e,a),e.insertFragment([{text:" "}])):B.string(e,o)!==t?(e.deleteFragment(),a=f4(r,t),Q.insertNodes(e,a)):(a=f4(r),Q.wrapNodes(e,a,{split:!0}),Q.collapse(e,{edge:"end"}))),[2]}})})}An({target:"Array",proto:!0},{includes:function(e){return m2e(this,e,arguments.length>1?arguments[1]:void 0)}}),jL("includes");var p2e={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,a=r.target;return Fe("a",{href:o,target:a===void 0?"_blank":a},t)}},v2e={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return!!Se.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function h4(){return $0("w-e-insert-link")}var y2e=function(){function e(){this.title=ge("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=h4(),this.urlInputId=h4(),this.buttonId=h4()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return d4(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,a=r.urlInputId,l=r.buttonId,s=st(Kr(ge("link.text"),o),2),u=s[0],c=M(s[1]),d=st(Kr(ge("link.url"),a),2),f=d[0],g=M(d[1]),h=st(od(l,ge("common.ok")),1)[0];if(this.$content==null){var p=M("<div></div>");p.on("click","#"+l,function(b){b.preventDefault();var m=p.find("#"+o).val(),w=p.find("#"+a).val();pM(t,m,w),t.hidePanelOrModal()}),this.$content=p}var y=this.$content;if(y.empty(),y.append(u),y.append(f),y.append(h),n==null||re.isCollapsed(n))c.val("");else{var v=B.string(t,n);c.val(v)}return g.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function vM(){return $0("w-e-update-link")}var b2e=function(){function e(){this.title=ge("link.edit"),this.iconSvg=eM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=vM(),this.buttonId=vM()}return e.prototype.getSelectedLinkElem=function(t){var n=R.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return R.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=st(Kr(ge("link.url"),n),2),a=o[0],l=M(o[1]),s=st(od(r,ge("common.ok")),1)[0];if(this.$content==null){var u=M("<div></div>");u.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var g=R.getSelectedNodeByType(t,"link"),h=g?he.string(g):"",p=u.find("#"+n).val();(function(y,v,b){sl(this,void 0,void 0,function(){var m,w;return ul(this,function(S){switch(S.label){case 0:return b?[4,gM("editLink",y,v,b)]:[2];case 1:return S.sent()?[4,mM("editLink",y,b)]:[2];case 2:return m=S.sent(),w={url:c4(m)},Q.setNodes(y,w,{match:function(C){return R.checkNodeType(C,"link")}}),[2]}})})})(t,h,p),t.hidePanelOrModal()}),this.$content=u}var c=this.$content;c.empty(),c.append(a),c.append(s);var d=this.getValue(t);return l.val(d),setTimeout(function(){l.focus()}),c[0]},e}(),w2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||R.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Q.unwrapNodes(t,{match:function(r){return R.checkNodeType(r,"link")}})},e}(),S2e=function(){function e(){this.title=ge("link.view"),this.iconSvg=tM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=R.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),yM={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},C2e={renderElems:[p2e],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[v2e],menus:[{key:"insertLink",factory:function(){return new y2e},config:yM},{key:"editLink",factory:function(){return new b2e},config:yM},{key:"unLink",factory:function(){return new w2e}},{key:"viewLink",factory:function(){return new S2e}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(a){return a.type==="link"||t(a)},o.insertData=function(a){var l=a.getData("text/plain");if(function(c){if(typeof c!="string")return!1;var d=c.match(f2e);if(!d)return!1;var f=d[1];return!(!f||!h2e.test(f)&&!g2e.test(f))}(l)){if(!d4(o)){var s=o.selection;if(s!=null){var u=B.string(o,s);pM(o,u,l)}}}else n(a)},o.normalizeNode=function(a){var l=st(a,2),s=l[0],u=l[1];return R.getNodeType(s)!=="link"?r([s,u]):he.string(s)===""?Q.removeNodes(o,{at:u}):r([s,u])},o}},k2e=Ie(1 .valueOf),x2e=We.RangeError,E2e=We.RangeError,bM=We.String,wM=Math.floor,g4=Ie(function(e){var t=qt(go(this)),n="",r=dd(e);if(r<0||r==1/0)throw x2e("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),SM=Ie("".slice),Rg=Ie(1 .toFixed),yd=function(e,t,n){return t===0?n:t%2==1?yd(e,t-1,n*e):yd(e*e,t/2,n)},bd=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=wM(o/1e7)},m4=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=wM(r/t),r=r%t*1e7},CM=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=bM(e[t]);n=n===""?r:n+g4("0",7-r.length)+r}return n};function kM(e,t){return"w-e-image-container-"+R.findKey(e,t).id}An({target:"Number",proto:!0,forced:Kt(function(){return Rg(8e-5,3)!=="0.000"||Rg(.9,0)!=="1"||Rg(1.255,2)!=="1.25"||Rg(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Kt(function(){Rg({})})},{toFixed:function(e){var t,n,r,o,a=k2e(this),l=dd(e),s=[0,0,0,0,0,0],u="",c="0";if(l<0||l>20)throw E2e("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return bM(a);if(a<0&&(u="-",a=-a),a>1e-21)if(n=(t=function(d){for(var f=0,g=d;g>=4096;)f+=12,g/=4096;for(;g>=2;)f+=1,g/=2;return f}(a*yd(2,69,1))-69)<0?a*yd(2,-t,1):a/yd(2,t,1),n*=4503599627370496,(t=52-t)>0){for(bd(s,0,n),r=l;r>=7;)bd(s,1e7,0),r-=7;for(bd(s,yd(10,r,1),0),r=t-1;r>=23;)m4(s,1<<23),r-=23;m4(s,1<<r),bd(s,1,1),m4(s,2),c=CM(s)}else bd(s,0,n),bd(s,1<<-t,0),c=CM(s)+g4("0",l);return l>0?u+((o=c.length)<=l?"0."+g4("0",l-o)+c:SM(c,0,o-l)+"."+SM(c,o-l)):u+c}});var D2e={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,a=r.alt,l=a===void 0?"":a,s=r.href,u=s===void 0?"":s,c=r.style,d=c===void 0?{}:c,f=d.width,g=f===void 0?"":f,h=d.height,p=h===void 0?"":h,y=R.isNodeSelected(n,e),v={};g&&(v.width="100%"),p&&(v.height="100%");var b=Fe("img",{style:v,src:o,alt:l,"data-href":u}),m=n.isDisabled();return y&&!m?function(w,S,C,x){var k=M("body"),E=kM(w,S),A=x.width,N=x.height,V=0,D=0,P=0,O=!1,F=null;function H(L){F=function(){var I=M("#"+E);if(I.length===0)throw new Error("Cannot find image container elem");return I}(),V=L;var _=F.find("img");if(_.length===0)throw new Error("Cannot find image elem");D=_.width(),P=_.height(),k.on("mousemove",J),k.on("mouseup",j);var T=R.getHoverbar(w);T&&T.hideAndClean()}var J=Ns(function(L){L.preventDefault();var _=L.clientX,T=D+(O?V-_:_-V),I=P*(T/D);F!=null&&(T<=15||I<=15||(F.css("width",T+"px"),F.css("height",I+"px")))},100);function j(L){if(k.off("mousemove",J),F!=null){var _=F.width().toFixed(2),T=F.height().toFixed(2),I={style:ll(ll({},S.style),{width:_+"px",height:T+"px"})};Q.setNodes(w,I,{at:R.findPath(w,S)}),k.off("mouseup",j)}}var z={};return A&&(z.width=A),N&&(z.height=N),Fe("div",{id:E,style:z,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(L){var _=M(L.target);_.hasClass("w-e-image-dragger")&&(L.preventDefault(),(_.hasClass("left-top")||_.hasClass("left-bottom"))&&(O=!0),H(L.clientX))}}},C,Fe("div",{className:"w-e-image-dragger left-top"}),Fe("div",{className:"w-e-image-dragger right-top"}),Fe("div",{className:"w-e-image-dragger left-bottom"}),Fe("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,b,{width:g,height:p}):function(w,S,C,x){var k=x.width,E=x.height,A={};return k&&(A.width=k),E&&(A.height=E),Fe("div",{id:kM(w,S),style:A,className:"w-e-image-container"},C)}(n,e,b,{width:g,height:p})}},A2e={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:zo(r,"width"),height:zo(r,"height")},children:[{text:""}]}}};function xM(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),sl(this,void 0,void 0,function(){var a,l;return ul(this,function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,o)]:[3,2];case 1:if(typeof(l=s.sent())=="string")return t.alert(l,"error"),[2,!1];if(l==null)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function EM(e,t,n){return sl(this,void 0,void 0,function(){var r;return ul(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 iu(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),sl(this,void 0,void 0,function(){var o,a,l;return ul(this,function(s){switch(s.label){case 0:return[4,xM("insertImage",e,t,n,r)];case 1:return s.sent()?[4,EM("insertImage",e,t)]:[2];case 2:return o=s.sent(),a={type:"image",src:c4(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),R.getSelectedNodeByType(e,"image")&&e.move(1),eb(e)||(Q.insertNodes(e,a),(l=e.getMenuConfig("insertImage").onInsertedImage)&&l(a)),[2]}})})}function eb(e){var t=e.selection;return t==null||!re.isCollapsed(t)||!!st(B.nodes(e,{match:function(n){var r=R.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!B.isVoid(e,n)},universal:!0}),1)[0]}function tb(){return $0("w-e-insert-image")}var V2e=function(){function e(){this.title=ge("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=tb(),this.altInputId=tb(),this.hrefInputId=tb(),this.buttonId=tb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return eb(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,a=r.altInputId,l=r.hrefInputId,s=r.buttonId,u=st(Kr(ge("image.src"),o),2),c=u[0],d=M(u[1]),f=st(Kr(ge("image.desc"),a),2),g=f[0],h=M(f[1]),p=st(Kr(ge("image.link"),l),2),y=p[0],v=M(p[1]),b=st(od(s,ge("common.ok")),1)[0];if(this.$content==null){var m=M("<div></div>");m.on("click","#"+s,function(S){S.preventDefault();var C=m.find("#"+o).val().trim(),x=m.find("#"+a).val().trim(),k=m.find("#"+l).val().trim();n.insertImage(t,C,x,k),t.hidePanelOrModal()}),this.$content=m}var w=this.$content;return w.empty(),w.append(c),w.append(g),w.append(y),w.append(b),d.val(""),h.val(""),v.val(""),setTimeout(function(){d.focus()}),w[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||iu(t,n,r,o))},e}(),B2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||R.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Q.removeNodes(t,{match:function(r){return R.checkNodeType(r,"image")}})},e}();function nb(){return $0("w-e-edit-image")}var _2e=function(){function e(){this.title=ge("image.edit"),this.iconSvg=eM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=nb(),this.altInputId=nb(),this.hrefInputId=nb(),this.buttonId=nb()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return R.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,a=r.altInputId,l=r.hrefInputId,s=r.buttonId,u=this.getImageNode(t);if(u==null)throw new Error("Not found selected image node");var c=st(Kr(ge("image.src"),o),2),d=c[0],f=M(c[1]),g=st(Kr(ge("image.desc"),a),2),h=g[0],p=M(g[1]),y=st(Kr(ge("image.link"),l),2),v=y[0],b=M(y[1]),m=st(od(s,ge("common.ok")),1)[0];if(this.$content==null){var w=M("<div></div>");w.on("click","#"+s,function(V){V.preventDefault();var D=w.find("#"+o).val(),P=w.find("#"+a).val(),O=w.find("#"+l).val();n.updateImage(t,D,P,O),t.hidePanelOrModal()}),this.$content=w}var S=this.$content;S.empty(),S.append(d),S.append(h),S.append(v),S.append(m);var C=u,x=C.src,k=C.alt,E=k===void 0?"":k,A=C.href,N=A===void 0?"":A;return f.val(x),p.val(E),b.val(N),setTimeout(function(){f.focus()}),S[0]},e.prototype.updateImage=function(t,n,r,o,a){r===void 0&&(r=""),o===void 0&&(o=""),a===void 0&&(a={}),n&&(t.restoreSelection(),this.isDisabled(t)||function(l,s,u,c,d){u===void 0&&(u=""),c===void 0&&(c=""),d===void 0&&(d={}),sl(this,void 0,void 0,function(){var f,g,h,p,y,v;return ul(this,function(b){switch(b.label){case 0:return[4,xM("editImage",l,s,u,c)];case 1:return b.sent()?[4,EM("editImage",l,s)]:[2];case 2:return f=b.sent(),(g=R.getSelectedNodeByType(l,"image"))==null||(h=g.style,p={src:f,alt:u,href:c,style:ll(ll({},h===void 0?{}:h),d)},Q.setNodes(l,p,{match:function(m){return R.checkNodeType(m,"image")}}),y=R.getSelectedNodeByType(l,"image"),(v=l.getMenuConfig("editImage").onUpdatedImage)&&v(y)),[2]}})})}(t,n,r,o,a))},e}(),T2e=function(){function e(){this.title=ge("image.viewLink"),this.iconSvg=tM,this.tag="button"}return e.prototype.getValue=function(t){var n=R.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),p4=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return R.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=R.getHoverbar(t);o&&o.hideAndClean();var a=r.style,l={style:ll(ll({},a===void 0?{}:a),{width:this.value,height:""})};Q.setNodes(t,l,{match:function(s){return R.checkNodeType(s,"image")}})}}},e}(),P2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Mt(t,e),t}(p4),N2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Mt(t,e),t}(p4),O2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Mt(t,e),t}(p4),DM={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},I2e={renderElems:[D2e],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,a=o===void 0?"":o,l=n.href,s=l===void 0?"":l,u=n.style,c=u===void 0?{}:u,d=c.width,f=d===void 0?"":d,g=c.height,h=g===void 0?"":g,p="";return f&&(p+="width: "+f+";"),h&&(p+="height: "+h+";"),'<img src="'+r+'" alt="'+a+'" data-href="'+s+'" style="'+p+'"/>'}}],parseElemsHtml:[A2e],menus:[{key:"insertImage",factory:function(){return new V2e},config:DM},{key:"deleteImage",factory:function(){return new B2e}},{key:"editImage",factory:function(){return new _2e},config:DM},{key:"viewImageLink",factory:function(){return new T2e}},{key:"imageWidth30",factory:function(){return new P2e}},{key:"imageWidth50",factory:function(){return new N2e}},{key:"imageWidth100",factory:function(){return new O2e}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},F2e={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Fe("div",{style:{margin:"5px 0"}},Fe("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Fe("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(a){var l=R.findPath(n,e),s={checked:a.target.checked};Q.setNodes(n,s,{at:l})}}})),Fe("span",null,t));return o}},R2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!!R.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(B.isVoid(t,n)&&B.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);Q.setNodes(t,{type:r?"paragraph":"todo"})},e}(),L2e={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=M(e);(t=t.filter(function(a){return!!Se.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},M2e={renderElems:[F2e],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=M(e).find("li"),n=M('<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:[L2e],menus:[{key:"todo",factory:function(){return new R2e}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&re.isCollapsed(o)){var a=R.getSelectedNodeByType(e,"todo");if(a&&he.string(a).length===0)return void Q.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},j2e={type:"blockquote",renderElem:function(e,t,n){return Fe("blockquote",null,t)}},z2e={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return!!Se.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},H2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!!R.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!st(B.nodes(t,{match:function(n){var r=R.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";Q.setNodes(t,{type:r},{mode:"highest"})}},e}(),U2e={key:"blockquote",factory:function(){return new H2e}},W2e=Ie([].slice),G2e=FD("slice"),K2e=Yr("species"),v4=We.Array,q2e=Math.max;An({target:"Array",proto:!0,forced:!G2e},{slice:function(e,t){var n,r,o,a=ld(this),l=W0(a),s=xg(e,l),u=xg(t===void 0?l:t,l);if(K0(a)&&(n=a.constructor,(ID(n)&&(n===v4||K0(n.prototype))||ba(n)&&(n=n[K2e])===null)&&(n=void 0),n===v4||n===void 0))return W2e(a,s,u);for(r=new(n===void 0?v4:n)(q2e(u-s,0)),o=0;s<u;s++,o++)s in a&&UL(r,o,a[s]);return r.length=o,r}});var Y2e={renderElems:[j2e],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[z2e],menus:[U2e],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var a=st(B.nodes(e,{match:function(d){return R.checkNodeType(d,"blockquote")},universal:!0}),1)[0];if(!a)return t();var l=a[0],s=R.findPath(e,l),u=B.end(e,s);if(Ke.equals(u,o.focus)){var c=he.string(l);if(c&&c.slice(-1)===`
117
+ `);return o.prepend(u),o[0]},e}(),c2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("color.color"),n.iconSvg=gwe,n.mark="color",n}return Mt(t,e),t}(fM),d2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("color.bgColor"),n.iconSvg=mwe,n.mark="bgColor",n}return Mt(t,e),t}(fM),hM=["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)"],f2e={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,a=t;return r&&au(a,{color:r}),o&&au(a,{backgroundColor:o}),a},styleToHtml:function(e,t){if(!Se.isText(e))return t;var n,r=e,o=r.color,a=r.bgColor;return o||a?((n4(t)||pd(n=M(t))!=="span")&&(n=M("<span>"+t+"</span>")),o&&n.css("color",o),a&&n.css("background-color",a),md(n)):t},preParseHtml:[u2e],parseStyleHtml:function(e,t,n){var r=M(e);if(!Se.isText(t))return t;var o=t,a=zo(r,"color");a&&(o.color=a);var l=zo(r,"background-color");return l||(l=zo(r,"background")),l&&(o.bgColor=l),o},menus:[{key:"color",factory:function(){return new c2e},config:{colors:hM}},{key:"bgColor",factory:function(){return new d2e},config:{colors:hM}}]},h2e=/^(?:\w+:)?\/\/(\S+)$/,g2e=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,m2e=/^[^\s\.]+\.\S{2,}$/,p2e=mL.includes;function $0(e){return e===void 0&&(e="r"),e+"-"+vI()}function c4(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gM(e,t,n,r){return sl(this,void 0,void 0,function(){var o,a;return ul(this,function(l){switch(l.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(a=l.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];l.label=2;case 2:return[2,!0]}})})}function mM(e,t,n){return sl(this,void 0,void 0,function(){var r;return ul(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 d4(e){return e.selection==null||!!R.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function f4(e,t){return{type:"link",url:c4(e),children:t?[{text:t}]:[]}}function pM(e,t,n){return sl(this,void 0,void 0,function(){var r,o,a;return ul(this,function(l){switch(l.label){case 0:return n?(t||(t=n),e.restoreSelection(),d4(e)?[2]:[4,gM("insertLink",e,t,n)]):[2];case 1:return l.sent()?[4,mM("insertLink",e,n)]:[2];case 2:return r=l.sent(),(o=e.selection)==null||(re.isCollapsed(o)?(e.insertText(" "),a=f4(r,t),Q.insertNodes(e,a),e.insertFragment([{text:" "}])):B.string(e,o)!==t?(e.deleteFragment(),a=f4(r,t),Q.insertNodes(e,a)):(a=f4(r),Q.wrapNodes(e,a,{split:!0}),Q.collapse(e,{edge:"end"}))),[2]}})})}An({target:"Array",proto:!0},{includes:function(e){return p2e(this,e,arguments.length>1?arguments[1]:void 0)}}),jL("includes");var v2e={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,a=r.target;return Fe("a",{href:o,target:a===void 0?"_blank":a},t)}},y2e={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return!!Se.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function h4(){return $0("w-e-insert-link")}var b2e=function(){function e(){this.title=ge("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=h4(),this.urlInputId=h4(),this.buttonId=h4()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return d4(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,a=r.urlInputId,l=r.buttonId,s=st(Kr(ge("link.text"),o),2),u=s[0],c=M(s[1]),d=st(Kr(ge("link.url"),a),2),f=d[0],g=M(d[1]),h=st(od(l,ge("common.ok")),1)[0];if(this.$content==null){var p=M("<div></div>");p.on("click","#"+l,function(b){b.preventDefault();var m=p.find("#"+o).val(),w=p.find("#"+a).val();pM(t,m,w),t.hidePanelOrModal()}),this.$content=p}var y=this.$content;if(y.empty(),y.append(u),y.append(f),y.append(h),n==null||re.isCollapsed(n))c.val("");else{var v=B.string(t,n);c.val(v)}return g.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function vM(){return $0("w-e-update-link")}var w2e=function(){function e(){this.title=ge("link.edit"),this.iconSvg=eM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=vM(),this.buttonId=vM()}return e.prototype.getSelectedLinkElem=function(t){var n=R.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return R.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=st(Kr(ge("link.url"),n),2),a=o[0],l=M(o[1]),s=st(od(r,ge("common.ok")),1)[0];if(this.$content==null){var u=M("<div></div>");u.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var g=R.getSelectedNodeByType(t,"link"),h=g?he.string(g):"",p=u.find("#"+n).val();(function(y,v,b){sl(this,void 0,void 0,function(){var m,w;return ul(this,function(S){switch(S.label){case 0:return b?[4,gM("editLink",y,v,b)]:[2];case 1:return S.sent()?[4,mM("editLink",y,b)]:[2];case 2:return m=S.sent(),w={url:c4(m)},Q.setNodes(y,w,{match:function(C){return R.checkNodeType(C,"link")}}),[2]}})})})(t,h,p),t.hidePanelOrModal()}),this.$content=u}var c=this.$content;c.empty(),c.append(a),c.append(s);var d=this.getValue(t);return l.val(d),setTimeout(function(){l.focus()}),c[0]},e}(),S2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||R.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Q.unwrapNodes(t,{match:function(r){return R.checkNodeType(r,"link")}})},e}(),C2e=function(){function e(){this.title=ge("link.view"),this.iconSvg=tM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=R.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),yM={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},k2e={renderElems:[v2e],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[y2e],menus:[{key:"insertLink",factory:function(){return new b2e},config:yM},{key:"editLink",factory:function(){return new w2e},config:yM},{key:"unLink",factory:function(){return new S2e}},{key:"viewLink",factory:function(){return new C2e}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(a){return a.type==="link"||t(a)},o.insertData=function(a){var l=a.getData("text/plain");if(function(c){if(typeof c!="string")return!1;var d=c.match(h2e);if(!d)return!1;var f=d[1];return!(!f||!g2e.test(f)&&!m2e.test(f))}(l)){if(!d4(o)){var s=o.selection;if(s!=null){var u=B.string(o,s);pM(o,u,l)}}}else n(a)},o.normalizeNode=function(a){var l=st(a,2),s=l[0],u=l[1];return R.getNodeType(s)!=="link"?r([s,u]):he.string(s)===""?Q.removeNodes(o,{at:u}):r([s,u])},o}},x2e=Ie(1 .valueOf),E2e=We.RangeError,D2e=We.RangeError,bM=We.String,wM=Math.floor,g4=Ie(function(e){var t=qt(go(this)),n="",r=dd(e);if(r<0||r==1/0)throw E2e("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),SM=Ie("".slice),Rg=Ie(1 .toFixed),yd=function(e,t,n){return t===0?n:t%2==1?yd(e,t-1,n*e):yd(e*e,t/2,n)},bd=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=wM(o/1e7)},m4=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=wM(r/t),r=r%t*1e7},CM=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=bM(e[t]);n=n===""?r:n+g4("0",7-r.length)+r}return n};function kM(e,t){return"w-e-image-container-"+R.findKey(e,t).id}An({target:"Number",proto:!0,forced:Kt(function(){return Rg(8e-5,3)!=="0.000"||Rg(.9,0)!=="1"||Rg(1.255,2)!=="1.25"||Rg(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Kt(function(){Rg({})})},{toFixed:function(e){var t,n,r,o,a=x2e(this),l=dd(e),s=[0,0,0,0,0,0],u="",c="0";if(l<0||l>20)throw D2e("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return bM(a);if(a<0&&(u="-",a=-a),a>1e-21)if(n=(t=function(d){for(var f=0,g=d;g>=4096;)f+=12,g/=4096;for(;g>=2;)f+=1,g/=2;return f}(a*yd(2,69,1))-69)<0?a*yd(2,-t,1):a/yd(2,t,1),n*=4503599627370496,(t=52-t)>0){for(bd(s,0,n),r=l;r>=7;)bd(s,1e7,0),r-=7;for(bd(s,yd(10,r,1),0),r=t-1;r>=23;)m4(s,1<<23),r-=23;m4(s,1<<r),bd(s,1,1),m4(s,2),c=CM(s)}else bd(s,0,n),bd(s,1<<-t,0),c=CM(s)+g4("0",l);return l>0?u+((o=c.length)<=l?"0."+g4("0",l-o)+c:SM(c,0,o-l)+"."+SM(c,o-l)):u+c}});var A2e={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,a=r.alt,l=a===void 0?"":a,s=r.href,u=s===void 0?"":s,c=r.style,d=c===void 0?{}:c,f=d.width,g=f===void 0?"":f,h=d.height,p=h===void 0?"":h,y=R.isNodeSelected(n,e),v={};g&&(v.width="100%"),p&&(v.height="100%");var b=Fe("img",{style:v,src:o,alt:l,"data-href":u}),m=n.isDisabled();return y&&!m?function(w,S,C,x){var k=M("body"),E=kM(w,S),A=x.width,N=x.height,V=0,D=0,P=0,O=!1,F=null;function H(L){F=function(){var I=M("#"+E);if(I.length===0)throw new Error("Cannot find image container elem");return I}(),V=L;var _=F.find("img");if(_.length===0)throw new Error("Cannot find image elem");D=_.width(),P=_.height(),k.on("mousemove",J),k.on("mouseup",j);var T=R.getHoverbar(w);T&&T.hideAndClean()}var J=Ns(function(L){L.preventDefault();var _=L.clientX,T=D+(O?V-_:_-V),I=P*(T/D);F!=null&&(T<=15||I<=15||(F.css("width",T+"px"),F.css("height",I+"px")))},100);function j(L){if(k.off("mousemove",J),F!=null){var _=F.width().toFixed(2),T=F.height().toFixed(2),I={style:ll(ll({},S.style),{width:_+"px",height:T+"px"})};Q.setNodes(w,I,{at:R.findPath(w,S)}),k.off("mouseup",j)}}var z={};return A&&(z.width=A),N&&(z.height=N),Fe("div",{id:E,style:z,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(L){var _=M(L.target);_.hasClass("w-e-image-dragger")&&(L.preventDefault(),(_.hasClass("left-top")||_.hasClass("left-bottom"))&&(O=!0),H(L.clientX))}}},C,Fe("div",{className:"w-e-image-dragger left-top"}),Fe("div",{className:"w-e-image-dragger right-top"}),Fe("div",{className:"w-e-image-dragger left-bottom"}),Fe("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,b,{width:g,height:p}):function(w,S,C,x){var k=x.width,E=x.height,A={};return k&&(A.width=k),E&&(A.height=E),Fe("div",{id:kM(w,S),style:A,className:"w-e-image-container"},C)}(n,e,b,{width:g,height:p})}},V2e={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:zo(r,"width"),height:zo(r,"height")},children:[{text:""}]}}};function xM(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),sl(this,void 0,void 0,function(){var a,l;return ul(this,function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,o)]:[3,2];case 1:if(typeof(l=s.sent())=="string")return t.alert(l,"error"),[2,!1];if(l==null)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function EM(e,t,n){return sl(this,void 0,void 0,function(){var r;return ul(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 iu(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),sl(this,void 0,void 0,function(){var o,a,l;return ul(this,function(s){switch(s.label){case 0:return[4,xM("insertImage",e,t,n,r)];case 1:return s.sent()?[4,EM("insertImage",e,t)]:[2];case 2:return o=s.sent(),a={type:"image",src:c4(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),R.getSelectedNodeByType(e,"image")&&e.move(1),eb(e)||(Q.insertNodes(e,a),(l=e.getMenuConfig("insertImage").onInsertedImage)&&l(a)),[2]}})})}function eb(e){var t=e.selection;return t==null||!re.isCollapsed(t)||!!st(B.nodes(e,{match:function(n){var r=R.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!B.isVoid(e,n)},universal:!0}),1)[0]}function tb(){return $0("w-e-insert-image")}var B2e=function(){function e(){this.title=ge("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=tb(),this.altInputId=tb(),this.hrefInputId=tb(),this.buttonId=tb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return eb(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,a=r.altInputId,l=r.hrefInputId,s=r.buttonId,u=st(Kr(ge("image.src"),o),2),c=u[0],d=M(u[1]),f=st(Kr(ge("image.desc"),a),2),g=f[0],h=M(f[1]),p=st(Kr(ge("image.link"),l),2),y=p[0],v=M(p[1]),b=st(od(s,ge("common.ok")),1)[0];if(this.$content==null){var m=M("<div></div>");m.on("click","#"+s,function(S){S.preventDefault();var C=m.find("#"+o).val().trim(),x=m.find("#"+a).val().trim(),k=m.find("#"+l).val().trim();n.insertImage(t,C,x,k),t.hidePanelOrModal()}),this.$content=m}var w=this.$content;return w.empty(),w.append(c),w.append(g),w.append(y),w.append(b),d.val(""),h.val(""),v.val(""),setTimeout(function(){d.focus()}),w[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||iu(t,n,r,o))},e}(),_2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||R.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Q.removeNodes(t,{match:function(r){return R.checkNodeType(r,"image")}})},e}();function nb(){return $0("w-e-edit-image")}var T2e=function(){function e(){this.title=ge("image.edit"),this.iconSvg=eM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=nb(),this.altInputId=nb(),this.hrefInputId=nb(),this.buttonId=nb()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return R.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,a=r.altInputId,l=r.hrefInputId,s=r.buttonId,u=this.getImageNode(t);if(u==null)throw new Error("Not found selected image node");var c=st(Kr(ge("image.src"),o),2),d=c[0],f=M(c[1]),g=st(Kr(ge("image.desc"),a),2),h=g[0],p=M(g[1]),y=st(Kr(ge("image.link"),l),2),v=y[0],b=M(y[1]),m=st(od(s,ge("common.ok")),1)[0];if(this.$content==null){var w=M("<div></div>");w.on("click","#"+s,function(V){V.preventDefault();var D=w.find("#"+o).val(),P=w.find("#"+a).val(),O=w.find("#"+l).val();n.updateImage(t,D,P,O),t.hidePanelOrModal()}),this.$content=w}var S=this.$content;S.empty(),S.append(d),S.append(h),S.append(v),S.append(m);var C=u,x=C.src,k=C.alt,E=k===void 0?"":k,A=C.href,N=A===void 0?"":A;return f.val(x),p.val(E),b.val(N),setTimeout(function(){f.focus()}),S[0]},e.prototype.updateImage=function(t,n,r,o,a){r===void 0&&(r=""),o===void 0&&(o=""),a===void 0&&(a={}),n&&(t.restoreSelection(),this.isDisabled(t)||function(l,s,u,c,d){u===void 0&&(u=""),c===void 0&&(c=""),d===void 0&&(d={}),sl(this,void 0,void 0,function(){var f,g,h,p,y,v;return ul(this,function(b){switch(b.label){case 0:return[4,xM("editImage",l,s,u,c)];case 1:return b.sent()?[4,EM("editImage",l,s)]:[2];case 2:return f=b.sent(),(g=R.getSelectedNodeByType(l,"image"))==null||(h=g.style,p={src:f,alt:u,href:c,style:ll(ll({},h===void 0?{}:h),d)},Q.setNodes(l,p,{match:function(m){return R.checkNodeType(m,"image")}}),y=R.getSelectedNodeByType(l,"image"),(v=l.getMenuConfig("editImage").onUpdatedImage)&&v(y)),[2]}})})}(t,n,r,o,a))},e}(),P2e=function(){function e(){this.title=ge("image.viewLink"),this.iconSvg=tM,this.tag="button"}return e.prototype.getValue=function(t){var n=R.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),p4=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return R.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=R.getHoverbar(t);o&&o.hideAndClean();var a=r.style,l={style:ll(ll({},a===void 0?{}:a),{width:this.value,height:""})};Q.setNodes(t,l,{match:function(s){return R.checkNodeType(s,"image")}})}}},e}(),N2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Mt(t,e),t}(p4),O2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Mt(t,e),t}(p4),I2e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Mt(t,e),t}(p4),DM={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},F2e={renderElems:[A2e],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,a=o===void 0?"":o,l=n.href,s=l===void 0?"":l,u=n.style,c=u===void 0?{}:u,d=c.width,f=d===void 0?"":d,g=c.height,h=g===void 0?"":g,p="";return f&&(p+="width: "+f+";"),h&&(p+="height: "+h+";"),'<img src="'+r+'" alt="'+a+'" data-href="'+s+'" style="'+p+'"/>'}}],parseElemsHtml:[V2e],menus:[{key:"insertImage",factory:function(){return new B2e},config:DM},{key:"deleteImage",factory:function(){return new _2e}},{key:"editImage",factory:function(){return new T2e},config:DM},{key:"viewImageLink",factory:function(){return new P2e}},{key:"imageWidth30",factory:function(){return new N2e}},{key:"imageWidth50",factory:function(){return new O2e}},{key:"imageWidth100",factory:function(){return new I2e}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},R2e={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Fe("div",{style:{margin:"5px 0"}},Fe("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Fe("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(a){var l=R.findPath(n,e),s={checked:a.target.checked};Q.setNodes(n,s,{at:l})}}})),Fe("span",null,t));return o}},L2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!!R.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(B.isVoid(t,n)&&B.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);Q.setNodes(t,{type:r?"paragraph":"todo"})},e}(),M2e={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=M(e);(t=t.filter(function(a){return!!Se.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},j2e={renderElems:[R2e],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=M(e).find("li"),n=M('<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:[M2e],menus:[{key:"todo",factory:function(){return new L2e}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&re.isCollapsed(o)){var a=R.getSelectedNodeByType(e,"todo");if(a&&he.string(a).length===0)return void Q.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},z2e={type:"blockquote",renderElem:function(e,t,n){return Fe("blockquote",null,t)}},H2e={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return!!Se.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},U2e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!!R.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!st(B.nodes(t,{match:function(n){var r=R.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";Q.setNodes(t,{type:r},{mode:"highest"})}},e}(),W2e={key:"blockquote",factory:function(){return new U2e}},G2e=Ie([].slice),K2e=FD("slice"),q2e=Yr("species"),v4=We.Array,Y2e=Math.max;An({target:"Array",proto:!0,forced:!K2e},{slice:function(e,t){var n,r,o,a=ld(this),l=W0(a),s=xg(e,l),u=xg(t===void 0?l:t,l);if(K0(a)&&(n=a.constructor,(ID(n)&&(n===v4||K0(n.prototype))||ba(n)&&(n=n[q2e])===null)&&(n=void 0),n===v4||n===void 0))return G2e(a,s,u);for(r=new(n===void 0?v4:n)(Y2e(u-s,0)),o=0;s<u;s++,o++)s in a&&UL(r,o,a[s]);return r.length=o,r}});var X2e={renderElems:[z2e],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[H2e],menus:[W2e],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var a=st(B.nodes(e,{match:function(d){return R.checkNodeType(d,"blockquote")},universal:!0}),1)[0];if(!a)return t();var l=a[0],s=R.findPath(e,l),u=B.end(e,s);if(Ke.equals(u,o.focus)){var c=he.string(l);if(c&&c.slice(-1)===`
118
118
  `)return e.deleteBackward("character"),void Q.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
119
- `)},r}},X2e=function(){function e(){this.title=ge("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(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!st(B.nodes(t,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=M('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var l=a.target;if(l!=null){a.preventDefault();var s=M(l).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var l=M("<li>"+a+"</li>");r.append(l)}),r[0]},e}(),J2e={menus:[{key:"emotion",factory:function(){return new X2e},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Z2e={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Q2e={selector:"font",preParseHtml:function(e){var t=M(e);if(pd(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Z2e[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},$2e=Ie("".indexOf);An({target:"String",proto:!0,forced:!oM("includes")},{includes:function(e){return!!~$2e(qt(go(this)),qt(rM(e)),arguments.length>1?arguments[1]:void 0)}});var cl,rb,ob=function(e){return e&&e.Math==Math&&e},Xe=ob(typeof globalThis=="object"&&globalThis)||ob(typeof window=="object"&&window)||ob(typeof self=="object"&&self)||ob(typeof F0=="object"&&F0)||function(){return this}()||Function("return this")(),y4=Function.prototype,AM=y4.apply,eSe=y4.bind,VM=y4.call,BM=typeof Reflect=="object"&&Reflect.apply||(eSe?VM.bind(AM):function(){return VM.apply(AM,arguments)}),_M=Function.prototype,b4=_M.bind,w4=_M.call,tSe=b4&&b4.bind(w4),$t=b4?function(e){return e&&tSe(w4,e)}:function(e){return e&&function(){return w4.apply(e,arguments)}},or=function(e){return typeof e=="function"},Jr=function(e){try{return!!e()}catch{return!0}},Br=!Jr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Lg=Function.prototype.call,wa=Lg.bind?Lg.bind(Lg):function(){return Lg.apply(Lg,arguments)},TM={}.propertyIsEnumerable,PM=Object.getOwnPropertyDescriptor,nSe=PM&&!TM.call({1:2},1)?function(e){var t=PM(this,e);return!!t&&t.enumerable}:TM,S4={f:nSe},lu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rSe=$t({}.toString),oSe=$t("".slice),su=function(e){return oSe(rSe(e),8,-1)},C4=Xe.Object,aSe=$t("".split),NM=Jr(function(){return!C4("z").propertyIsEnumerable(0)})?function(e){return su(e)=="String"?aSe(e,""):C4(e)}:C4,iSe=Xe.TypeError,k4=function(e){if(e==null)throw iSe("Can't call method on "+e);return e},Sa=function(e){return NM(k4(e))},Ho=function(e){return typeof e=="object"?e!==null:or(e)},po={},OM=function(e){return or(e)?e:void 0},Mg=function(e,t){return arguments.length<2?OM(po[e])||OM(Xe[e]):po[e]&&po[e][t]||Xe[e]&&Xe[e][t]},IM=$t({}.isPrototypeOf),x4=Mg("navigator","userAgent")||"",FM=Xe.process,RM=Xe.Deno,LM=FM&&FM.versions||RM&&RM.version,MM=LM&&LM.v8;MM&&(rb=(cl=MM.split("."))[0]>0&&cl[0]<4?1:+(cl[0]+cl[1])),!rb&&x4&&(!(cl=x4.match(/Edge\/(\d+)/))||cl[1]>=74)&&(cl=x4.match(/Chrome\/(\d+)/))&&(rb=+cl[1]);var ab=rb,Ca=!!Object.getOwnPropertySymbols&&!Jr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ab&&ab<41}),E4=Ca&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lSe=Xe.Object,wd=E4?function(e){return typeof e=="symbol"}:function(e){var t=Mg("Symbol");return or(t)&&IM(t.prototype,lSe(e))},sSe=Xe.String,uSe=Xe.TypeError,jM=function(e){if(or(e))return e;throw uSe(function(t){try{return sSe(t)}catch{return"Object"}}(e)+" is not a function")},cSe=Xe.TypeError,dSe=Object.defineProperty,dl=Xe["__core-js_shared__"]||function(e,t){try{dSe(Xe,e,{value:t,configurable:!0,writable:!0})}catch{Xe[e]=t}return t}("__core-js_shared__",{}),uu=R0(function(e){(e.exports=function(t,n){return dl[t]||(dl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),fSe=Xe.Object,jg=function(e){return fSe(k4(e))},hSe=$t({}.hasOwnProperty),ut=Object.hasOwn||function(e,t){return hSe(jg(e),t)},gSe=0,mSe=Math.random(),pSe=$t(1 .toString),ib=function(e){return"Symbol("+(e===void 0?"":e)+")_"+pSe(++gSe+mSe,36)},zg=uu("wks"),cu=Xe.Symbol,zM=cu&&cu.for,vSe=E4?cu:cu&&cu.withoutSetter||ib,Zr=function(e){if(!ut(zg,e)||!Ca&&typeof zg[e]!="string"){var t="Symbol."+e;Ca&&ut(cu,e)?zg[e]=cu[e]:zg[e]=E4&&zM?zM(t):vSe(t)}return zg[e]},ySe=Xe.TypeError,bSe=Zr("toPrimitive"),Sd=function(e){var t=function(n,r){if(!Ho(n)||wd(n))return n;var o,a,l=(o=n[bSe])==null?void 0:jM(o);if(l){if(a=wa(l,n,r),!Ho(a)||wd(a))return a;throw ySe("Can't convert object to primitive value")}return function(s,u){var c,d;if(or(c=s.toString)&&!Ho(d=wa(c,s))||or(c=s.valueOf)&&!Ho(d=wa(c,s)))return d;throw cSe("Can't convert object to primitive value")}(n)}(e,"string");return wd(t)?t:t+""},D4=Xe.document,wSe=Ho(D4)&&Ho(D4.createElement),HM=function(e){return wSe?D4.createElement(e):{}},UM=!Br&&!Jr(function(){return Object.defineProperty(HM("div"),"a",{get:function(){return 7}}).a!=7}),WM=Object.getOwnPropertyDescriptor,A4={f:Br?WM:function(e,t){if(e=Sa(e),t=Sd(t),UM)try{return WM(e,t)}catch{}if(ut(e,t))return lu(!wa(S4.f,e,t),e[t])}},SSe=/#|\.prototype\./,Hg=function(e,t){var n=kSe[CSe(e)];return n==ESe||n!=xSe&&(or(t)?Jr(t):!!t)},CSe=Hg.normalize=function(e){return String(e).replace(SSe,".").toLowerCase()},kSe=Hg.data={},xSe=Hg.NATIVE="N",ESe=Hg.POLYFILL="P",DSe=Hg,GM=$t($t.bind),KM=function(e,t){return jM(e),t===void 0?e:GM?GM(e,t):function(){return e.apply(t,arguments)}},ASe=Xe.String,VSe=Xe.TypeError,du=function(e){if(Ho(e))return e;throw VSe(ASe(e)+" is not an object")},BSe=Xe.TypeError,qM=Object.defineProperty,fu={f:Br?qM:function(e,t,n){if(du(e),t=Sd(t),du(n),UM)try{return qM(e,t,n)}catch{}if("get"in n||"set"in n)throw BSe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ka=Br?function(e,t,n){return fu.f(e,t,lu(1,n))}:function(e,t,n){return e[t]=n,e},_Se=A4.f,TSe=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 BM(e,this,arguments)};return t.prototype=e.prototype,t},fl=function(e,t){var n,r,o,a,l,s,u,c,d=e.target,f=e.global,g=e.stat,h=e.proto,p=f?Xe:g?Xe[d]:(Xe[d]||{}).prototype,y=f?po:po[d]||ka(po,d,{})[d],v=y.prototype;for(o in t)n=!DSe(f?o:d+(g?".":"#")+o,e.forced)&&p&&ut(p,o),l=y[o],n&&(s=e.noTargetGet?(c=_Se(p,o))&&c.value:p[o]),a=n&&s?s:t[o],n&&typeof l==typeof a||(u=e.bind&&n?KM(a,Xe):e.wrap&&n?TSe(a):h&&or(a)?$t(a):a,(e.sham||a&&a.sham||l&&l.sham)&&ka(u,"sham",!0),ka(y,o,u),h&&(ut(po,r=d+"Prototype")||ka(po,r,{}),ka(po[r],o,a),e.real&&v&&!v[o]&&ka(v,o,a)))},lb=Array.isArray||function(e){return su(e)=="Array"},PSe=Math.ceil,NSe=Math.floor,V4=function(e){var t=+e;return t!=t||t===0?0:(t>0?NSe:PSe)(t)},OSe=Math.min,sb=function(e){return(t=e.length)>0?OSe(V4(t),9007199254740991):0;var t},B4=function(e,t,n){var r=Sd(t);r in e?fu.f(e,r,lu(0,n)):e[r]=n},YM={};YM[Zr("toStringTag")]="z";var _4=String(YM)==="[object z]",ISe=Zr("toStringTag"),FSe=Xe.Object,RSe=su(function(){return arguments}())=="Arguments",ub=_4?su:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=FSe(e),ISe))=="string"?n:RSe?su(t):(r=su(t))=="Object"&&or(t.callee)?"Arguments":r},LSe=$t(Function.toString);or(dl.inspectSource)||(dl.inspectSource=function(e){return LSe(e)});var XM=dl.inspectSource,JM=function(){},MSe=[],ZM=Mg("Reflect","construct"),T4=/^\s*(?:class|function)\b/,jSe=$t(T4.exec),zSe=!T4.exec(JM),Ug=function(e){if(!or(e))return!1;try{return ZM(JM,MSe,e),!0}catch{return!1}},HSe=!ZM||Jr(function(){var e;return Ug(Ug.call)||!Ug(Object)||!Ug(function(){e=!0})||e})?function(e){if(!or(e))return!1;switch(ub(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zSe||!!jSe(T4,XM(e))}:Ug,USe=Zr("species"),QM=Xe.Array,$M=function(e,t){return new(function(n){var r;return lb(n)&&(r=n.constructor,(HSe(r)&&(r===QM||lb(r.prototype))||Ho(r)&&(r=r[USe])===null)&&(r=void 0)),r===void 0?QM:r}(e))(t===0?0:t)},WSe=Zr("species"),ej=Zr("isConcatSpreadable"),tj=Xe.TypeError,GSe=ab>=51||!Jr(function(){var e=[];return e[ej]=!1,e.concat()[0]!==e}),KSe=ab>=51||!Jr(function(){var e=[];return(e.constructor={})[WSe]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),qSe=function(e){if(!Ho(e))return!1;var t=e[ej];return t!==void 0?!!t:lb(e)};fl({target:"Array",proto:!0,forced:!GSe||!KSe},{concat:function(e){var t,n,r,o,a,l=jg(this),s=$M(l,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(qSe(a=t===-1?l:arguments[t])){if(u+(o=sb(a))>9007199254740991)throw tj("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in a&&B4(s,u,a[n])}else{if(u>=9007199254740991)throw tj("Maximum allowed index exceeded");B4(s,u++,a)}return s.length=u,s}});var cb,YSe=Xe.String,db=function(e){if(ub(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return YSe(e)},XSe=Math.max,JSe=Math.min,P4=function(e,t){var n=V4(e);return n<0?XSe(n+t,0):JSe(n,t)},ZSe=function(e){return function(t,n,r){var o,a=Sa(t),l=sb(a),s=P4(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},QSe={indexOf:ZSe(!1)},Wg={},$Se=QSe.indexOf,nj=$t([].push),rj=function(e,t){var n,r=Sa(e),o=0,a=[];for(n in r)!ut(Wg,n)&&ut(r,n)&&nj(a,n);for(;t.length>o;)ut(r,n=t[o++])&&(~$Se(a,n)||nj(a,n));return a},fb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],N4=Object.keys||function(e){return rj(e,fb)},eCe=Br?Object.defineProperties:function(e,t){du(e);for(var n,r=Sa(t),o=N4(t),a=o.length,l=0;a>l;)fu.f(e,n=o[l++],r[n]);return e},tCe=Mg("document","documentElement"),oj=uu("keys"),hb=function(e){return oj[e]||(oj[e]=ib(e))},aj=hb("IE_PROTO"),O4=function(){},ij=function(e){return"<script>"+e+"<\/script>"},lj=function(e){e.write(ij("")),e.close();var t=e.parentWindow.Object;return e=null,t},gb=function(){try{cb=new ActiveXObject("htmlfile")}catch{}var e,t;gb=typeof document<"u"?document.domain&&cb?lj(cb):((t=HM("iframe")).style.display="none",tCe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ij("document.F=Object")),e.close(),e.F):lj(cb);for(var n=fb.length;n--;)delete gb.prototype[fb[n]];return gb()};Wg[aj]=!0;var mb,Gg,pb,hu=Object.create||function(e,t){var n;return e!==null?(O4.prototype=du(e),n=new O4,O4.prototype=null,n[aj]=e):n=gb(),t===void 0?n:eCe(n,t)},nCe=fb.concat("length","prototype"),sj={f:Object.getOwnPropertyNames||function(e){return rj(e,nCe)}},rCe=Xe.Array,oCe=Math.max,uj=sj.f,cj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dj={f:function(e){return cj&&su(e)=="Window"?function(t){try{return uj(t)}catch{return function(r,o,a){for(var l=sb(r),s=P4(void 0,l),u=P4(l,l),c=rCe(oCe(u-s,0)),d=0;s<u;s++,d++)B4(c,d,r[s]);return c.length=d,c}(cj)}}(e):uj(Sa(e))}},I4={f:Object.getOwnPropertySymbols},aCe=$t([].slice),vb=function(e,t,n,r){ka(e,t,n)},F4={f:Zr},iCe=fu.f,cn=function(e){var t=po.Symbol||(po.Symbol={});ut(t,e)||iCe(t,e,{value:F4.f(e)})},lCe=_4?{}.toString:function(){return"[object "+ub(this)+"]"},sCe=fu.f,fj=Zr("toStringTag"),yb=function(e,t,n,r){if(e){var o=n?e:e.prototype;ut(o,fj)||sCe(o,fj,{configurable:!0,value:t}),r&&!_4&&ka(o,"toString",lCe)}},hj=Xe.WeakMap,uCe=or(hj)&&/native code/.test(XM(hj)),R4=Xe.TypeError,cCe=Xe.WeakMap;if(uCe||dl.state){var gu=dl.state||(dl.state=new cCe),dCe=$t(gu.get),gj=$t(gu.has),fCe=$t(gu.set);mb=function(e,t){if(gj(gu,e))throw new R4("Object already initialized");return t.facade=e,fCe(gu,e,t),t},Gg=function(e){return dCe(gu,e)||{}},pb=function(e){return gj(gu,e)}}else{var Cd=hb("state");Wg[Cd]=!0,mb=function(e,t){if(ut(e,Cd))throw new R4("Object already initialized");return t.facade=e,ka(e,Cd,t),t},Gg=function(e){return ut(e,Cd)?e[Cd]:{}},pb=function(e){return ut(e,Cd)}}var kd={set:mb,get:Gg,has:pb,enforce:function(e){return pb(e)?Gg(e):mb(e,{})},getterFor:function(e){return function(t){var n;if(!Ho(t)||(n=Gg(t)).type!==e)throw R4("Incompatible receiver, "+e+" required");return n}}},mj=$t([].push),hl=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=jg(u),y=NM(p),v=KM(c,d),b=sb(y),m=0,w=f||$M,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:mj(S,g)}else switch(e){case 4:return!1;case 7:mj(S,g)}return a?-1:r||o?o:S}},bb=[hl(0),hl(1),hl(2),hl(3),hl(4),hl(5),hl(6),hl(7)][0],_r=hb("hidden"),pj=Zr("toPrimitive"),hCe=kd.set,vj=kd.getterFor("Symbol"),Uo=Object.prototype,gl=Xe.Symbol,ml=gl&&gl.prototype,yj=Xe.TypeError,L4=Xe.QObject,Kg=Mg("JSON","stringify"),bj=A4.f,pl=fu.f,wj=dj.f,gCe=S4.f,Sj=$t([].push),ui=uu("symbols"),qg=uu("op-symbols"),M4=uu("string-to-symbol-registry"),j4=uu("symbol-to-string-registry"),mCe=uu("wks"),z4=!L4||!L4.prototype||!L4.prototype.findChild,H4=Br&&Jr(function(){return hu(pl({},"a",{get:function(){return pl(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=bj(Uo,t);r&&delete Uo[t],pl(e,t,n),r&&e!==Uo&&pl(Uo,t,r)}:pl,U4=function(e,t){var n=ui[e]=hu(ml);return hCe(n,{type:"Symbol",tag:e,description:t}),Br||(n.description=t),n},wb=function(e,t,n){e===Uo&&wb(qg,t,n),du(e);var r=Sd(t);return du(n),ut(ui,r)?(n.enumerable?(ut(e,_r)&&e[_r][r]&&(e[_r][r]=!1),n=hu(n,{enumerable:lu(0,!1)})):(ut(e,_r)||pl(e,_r,lu(1,{})),e[_r][r]=!0),H4(e,r,n)):pl(e,r,n)},Cj=function(e,t){du(e);var n=Sa(t),r=N4(n).concat(W4(n));return bb(r,function(o){Br&&!wa(kj,n,o)||wb(e,o,n[o])}),e},kj=function(e){var t=Sd(e),n=wa(gCe,this,t);return!(this===Uo&&ut(ui,t)&&!ut(qg,t))&&(!(n||!ut(this,t)||!ut(ui,t)||ut(this,_r)&&this[_r][t])||n)},xj=function(e,t){var n=Sa(e),r=Sd(t);if(n!==Uo||!ut(ui,r)||ut(qg,r)){var o=bj(n,r);return!o||!ut(ui,r)||ut(n,_r)&&n[_r][r]||(o.enumerable=!0),o}},Ej=function(e){var t=wj(Sa(e)),n=[];return bb(t,function(r){ut(ui,r)||ut(Wg,r)||Sj(n,r)}),n},W4=function(e){var t=e===Uo,n=wj(t?qg:Sa(e)),r=[];return bb(n,function(o){!ut(ui,o)||t&&!ut(Uo,o)||Sj(r,ui[o])}),r};if(Ca||(ml=(gl=function(){if(IM(ml,this))throw yj("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?db(arguments[0]):void 0,t=ib(e),n=function(r){this===Uo&&wa(n,qg,r),ut(this,_r)&&ut(this[_r],t)&&(this[_r][t]=!1),H4(this,t,lu(1,r))};return Br&&z4&&H4(Uo,t,{configurable:!0,set:n}),U4(t,e)}).prototype,vb(ml,"toString",function(){return vj(this).tag}),vb(gl,"withoutSetter",function(e){return U4(ib(e),e)}),S4.f=kj,fu.f=wb,A4.f=xj,sj.f=dj.f=Ej,I4.f=W4,F4.f=function(e){return U4(Zr(e),e)},Br&&pl(ml,"description",{configurable:!0,get:function(){return vj(this).description}})),fl({global:!0,wrap:!0,forced:!Ca,sham:!Ca},{Symbol:gl}),bb(N4(mCe),function(e){cn(e)}),fl({target:"Symbol",stat:!0,forced:!Ca},{for:function(e){var t=db(e);if(ut(M4,t))return M4[t];var n=gl(t);return M4[t]=n,j4[n]=t,n},keyFor:function(e){if(!wd(e))throw yj(e+" is not a symbol");if(ut(j4,e))return j4[e]},useSetter:function(){z4=!0},useSimple:function(){z4=!1}}),fl({target:"Object",stat:!0,forced:!Ca,sham:!Br},{create:function(e,t){return t===void 0?hu(e):Cj(hu(e),t)},defineProperty:wb,defineProperties:Cj,getOwnPropertyDescriptor:xj}),fl({target:"Object",stat:!0,forced:!Ca},{getOwnPropertyNames:Ej,getOwnPropertySymbols:W4}),fl({target:"Object",stat:!0,forced:Jr(function(){I4.f(1)})},{getOwnPropertySymbols:function(e){return I4.f(jg(e))}}),Kg){var pCe=!Ca||Jr(function(){var e=gl();return Kg([e])!="[null]"||Kg({a:e})!="{}"||Kg(Object(e))!="{}"});fl({target:"JSON",stat:!0,forced:pCe},{stringify:function(e,t,n){var r=aCe(arguments),o=t;if((Ho(t)||e!==void 0)&&!wd(e))return lb(t)||(t=function(a,l){if(or(o)&&(l=wa(o,this,a,l)),!wd(l))return l}),r[1]=t,BM(Kg,null,r)}})}if(!ml[pj]){var vCe=ml.valueOf;vb(ml,pj,function(e){return wa(vCe,this)})}yb(gl,"Symbol"),Wg[_r]=!0,cn("asyncIterator"),cn("hasInstance"),cn("isConcatSpreadable"),cn("iterator"),cn("match"),cn("matchAll"),cn("replace"),cn("search"),cn("species"),cn("split"),cn("toPrimitive"),cn("toStringTag"),cn("unscopables"),yb(Xe.JSON,"JSON",!0);var vl,Dj,Aj,yCe=po.Symbol,mu={},Vj=Function.prototype,bCe=Br&&Object.getOwnPropertyDescriptor,Bj=ut(Vj,"name"),wCe={PROPER:Bj&&(function(){}).name==="something",CONFIGURABLE:Bj&&(!Br||Br&&bCe(Vj,"name").configurable)},SCe=!Jr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),_j=hb("IE_PROTO"),G4=Xe.Object,CCe=G4.prototype,K4=SCe?G4.getPrototypeOf:function(e){var t=jg(e);if(ut(t,_j))return t[_j];var n=t.constructor;return or(n)&&t instanceof n?n.prototype:t instanceof G4?CCe:null},q4=Zr("iterator"),Tj=!1;[].keys&&("next"in(Aj=[].keys())?(Dj=K4(K4(Aj)))!==Object.prototype&&(vl=Dj):Tj=!0);var kCe=vl==null||Jr(function(){var e={};return vl[q4].call(e)!==e});vl=kCe?{}:hu(vl),or(vl[q4])||vb(vl,q4,function(){return this});var Pj={IteratorPrototype:vl,BUGGY_SAFARI_ITERATORS:Tj},xCe=Pj.IteratorPrototype,ECe=function(){return this};Xe.String,Xe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{$t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var DCe=wCe.PROPER,Y4=Pj.BUGGY_SAFARI_ITERATORS,ACe=Zr("iterator"),VCe=function(){return this},Nj=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=hu(xCe,{next:lu(1,m)}),yb(v,S,!1,!0),mu[S]=ECe})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!Y4&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[ACe]||g["@@iterator"]||o&&g[o],p=!Y4&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=K4(y.call(new e)))!==Object.prototype&&s.next&&(yb(s,d,!0,!0),mu[d]=VCe),DCe&&o=="values"&&h&&h.name!=="values"&&(f=!0,p=function(){return wa(h,this)}),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||fl({target:t,proto:!0,forced:Y4||f},u)),mu[t]=p,u},BCe=kd.set,_Ce=kd.getterFor("Array Iterator");Nj(Array,"Array",function(e,t){BCe(this,{type:"Array Iterator",target:Sa(e),index:0,kind:t})},function(){var e=_Ce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),mu.Arguments=mu.Array;var Oj=Zr("toStringTag");for(var X4 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 Ij=Xe[X4],J4=Ij&&Ij.prototype;J4&&ub(J4)!==Oj&&ka(J4,Oj,X4),mu[X4]=mu.Array}var TCe=yCe;cn("asyncDispose"),cn("dispose"),cn("matcher"),cn("metadata"),cn("observable"),cn("patternMatch"),cn("replaceAll");var Sb=TCe,PCe=$t("".charAt),Fj=$t("".charCodeAt),NCe=$t("".slice),OCe=function(e){return function(t,n){var r,o,a=db(k4(t)),l=V4(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=Fj(a,l))<55296||r>56319||l+1===s||(o=Fj(a,l+1))<56320||o>57343?e?PCe(a,l):r:e?NCe(a,l,l+2):o-56320+(r-55296<<10)+65536}},ICe=OCe(!0),FCe=kd.set,RCe=kd.getterFor("String Iterator");Nj(String,"String",function(e){FCe(this,{type:"String Iterator",string:db(e),index:0})},function(){var e,t=RCe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ICe(n,r),t.index+=e.length,{value:e,done:!1})});var LCe=F4.f("iterator"),MCe=R0(function(e){function t(n){return typeof Sb=="function"&&typeof LCe=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof Sb=="function"&&r.constructor===Sb&&r!==Sb.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Rj=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(MCe),jCe=U0.EXISTS,zCe=sd.f,Lj=Function.prototype,HCe=Ie(Lj.toString),Mj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,UCe=Ie(Mj.exec);jo&&!jCe&&zCe(Lj,"name",{configurable:!0,get:function(){try{return UCe(Mj,HCe(this))[1]}catch{return""}}});var jj=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=B.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!st(B.nodes(t,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),WCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("fontSize.title"),n.iconSvg=mwe,n.mark="fontSize",n}return Mt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,a=o===void 0?[]:o;r.push({text:ge("fontSize.default"),value:""}),a.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s});else if(Rj(s)==="object"){var u=s.name,c=s.value;r.push({text:u,value:c})}});var l=this.getValue(n);return r.forEach(function(s){s.value===l?s.selected=!0:delete s.selected}),r},t}(jj),GCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("fontFamily.title"),n.iconSvg=pwe,n.mark="fontFamily",n.selectPanelWidth=150,n}return Mt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,a=o===void 0?[]:o;r.push({text:ge("fontFamily.default"),value:""}),a.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(Rj(s)==="object"){var u=s.name,c=s.value;r.push({text:u,value:c,styleForRenderMenuList:{"font-family":c}})}});var l=this.getValue(n);return r.forEach(function(s){s.value===l?s.selected=!0:delete s.selected}),r},t}(jj),KCe={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,a=t;return r&&au(a,{fontSize:r}),o&&au(a,{fontFamily:o}),a},styleToHtml:function(e,t){if(!Se.isText(e))return t;var n,r=e,o=r.fontSize,a=r.fontFamily;return o||a?((n4(t)||pd(n=M(t))!=="span")&&(n=M("<span>"+t+"</span>")),o&&n.css("font-size",o),a&&n.css("font-family",a),md(n)):t},preParseHtml:[Q2e],parseStyleHtml:function(e,t,n){var r=M(e);if(!Se.isText(t))return t;var o=t,a=n.getMenuConfig("fontSize").fontSizeList,l=a===void 0?[]:a,s=zo(r,"font-size"),u=l.find(function(h){return h.value&&h.value===s})||l.includes(s);s&&u&&(o.fontSize=s);var c=n.getMenuConfig("fontFamily").fontFamilyList,d=c===void 0?[]:c,f=zo(r,"font-family").replace(/"/g,""),g=d.find(function(h){return h.value&&h.value===f})||d.includes(f);return f&&g&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new WCe},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 GCe},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},qCe={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=M(e),n=zo(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]}},zj=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=st(B.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":st(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=st(B.nodes(t,{match:function(r){var o=R.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),YCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("indent.decrease"),n.iconSvg=vwe,n}return Mt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){Q.setNodes(n,{indent:null},{match:function(o){return _e.isElement(o)}})},t}(zj),XCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("indent.increase"),n.iconSvg=ywe,n}return Mt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){Q.setNodes(n,{indent:"2em"},{match:function(o){return _e.isElement(o)},mode:"highest"})},t}(zj),JCe={renderStyle:function(e,t){if(!_e.isElement(e))return t;var n=e.indent,r=t;return n&&au(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!_e.isElement(e))return t;var n=e.indent;if(!n)return t;var r=M(t);return r.css("text-indent",n),md(r)},preParseHtml:[qCe],parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t))return t;var o=t,a=zo(r,"text-indent"),l=parseInt(a,10);return a&&l>0&&(o.indent=a),o},menus:[{key:"indent",factory:function(){return new XCe}},{key:"delIndent",factory:function(){return new YCe}}]},Cb=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=st(B.nodes(t,{match:function(r){var o=R.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(B.isVoid(t,n)&&B.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),ZCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.left"),n.iconSvg=bwe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"left"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),QCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.right"),n.iconSvg=wwe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"right"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),$Ce=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.center"),n.iconSvg=Swe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"center"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),eke=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.justify"),n.iconSvg=Cwe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"justify"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),tke={renderStyle:function(e,t){if(!_e.isElement(e))return t;var n=e.textAlign,r=t;return n&&au(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!_e.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=M(t);return r.css("text-align",n),md(r)},parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t))return t;var o=t,a=zo(r,"text-align");return a&&(o.textAlign=a),o},menus:[{key:"justifyLeft",factory:function(){return new ZCe}},{key:"justifyRight",factory:function(){return new QCe}},{key:"justifyCenter",factory:function(){return new $Ce}},{key:"justifyJustify",factory:function(){return new eke}}]},nke=function(){function e(){this.title=ge("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(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:ge("lineHeight.default"),value:""}),o.forEach(function(l){n.push({text:l,value:l})});var a=this.getValue(t);return n.forEach(function(l){l.value===a?l.selected=!0:delete l.selected}),n},e.prototype.getMatchNode=function(t){var n=st(B.nodes(t,{match:function(r){var o=R.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":_e.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){Q.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),rke={renderStyle:function(e,t){if(!_e.isElement(e))return t;var n=e.lineHeight,r=t;return n&&au(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!_e.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=M(t);return r.css("line-height",n),md(r)},parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t))return t;var o=t,a=n.getMenuConfig("lineHeight").lineHeightList,l=a===void 0?[]:a,s=zo(r,"line-height");return s&&l.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new nke},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},oke=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),ake=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),ike={menus:[{key:"redo",factory:function(){return new oke}},{key:"undo",factory:function(){return new ake}}]},lke={type:"divider",renderElem:function(e,t,n){return Tc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:R.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Tc("hr")])}},ske=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=R.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){Q.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),uke={renderElems:[lke],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 ske}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var a=st(o,2),l=a[0],s=a[1];if(R.getNodeType(l)!=="divider")return n([l,s]);R.isLastNode(r,l)&&Q.insertNodes(r,R.genEmptyParagraph(),{at:[s[0]+1]})},r}},cke=Y0.map;An({target:"Array",proto:!0,forced:!FD("map")},{map:function(e){return cke(this,e,arguments.length>1?arguments[1]:void 0)}});var dke=Ie([].join),fke=j0!=Object,hke=ZL("join",",");An({target:"Array",proto:!0,forced:fke||!hke},{join:function(e){return dke(ld(this),e===void 0?",":e)}});var gke=function(){function e(){this.title=ge("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(t){var n=R.getSelectedNodeByType(t,"code");if(n==null)return null;var r=R.getParentNode(t,n);return r==null||R.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=R.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var o=R.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=he.string(n);Q.removeNodes(t,{mode:"highest"});var o=r.split(`
119
+ `)},r}},J2e=function(){function e(){this.title=ge("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(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!st(B.nodes(t,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=M('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var l=a.target;if(l!=null){a.preventDefault();var s=M(l).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var l=M("<li>"+a+"</li>");r.append(l)}),r[0]},e}(),Z2e={menus:[{key:"emotion",factory:function(){return new J2e},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Q2e={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},$2e={selector:"font",preParseHtml:function(e){var t=M(e);if(pd(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Q2e[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},eSe=Ie("".indexOf);An({target:"String",proto:!0,forced:!oM("includes")},{includes:function(e){return!!~eSe(qt(go(this)),qt(rM(e)),arguments.length>1?arguments[1]:void 0)}});var cl,rb,ob=function(e){return e&&e.Math==Math&&e},Xe=ob(typeof globalThis=="object"&&globalThis)||ob(typeof window=="object"&&window)||ob(typeof self=="object"&&self)||ob(typeof F0=="object"&&F0)||function(){return this}()||Function("return this")(),y4=Function.prototype,AM=y4.apply,tSe=y4.bind,VM=y4.call,BM=typeof Reflect=="object"&&Reflect.apply||(tSe?VM.bind(AM):function(){return VM.apply(AM,arguments)}),_M=Function.prototype,b4=_M.bind,w4=_M.call,nSe=b4&&b4.bind(w4),$t=b4?function(e){return e&&nSe(w4,e)}:function(e){return e&&function(){return w4.apply(e,arguments)}},or=function(e){return typeof e=="function"},Jr=function(e){try{return!!e()}catch{return!0}},Br=!Jr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Lg=Function.prototype.call,wa=Lg.bind?Lg.bind(Lg):function(){return Lg.apply(Lg,arguments)},TM={}.propertyIsEnumerable,PM=Object.getOwnPropertyDescriptor,rSe=PM&&!TM.call({1:2},1)?function(e){var t=PM(this,e);return!!t&&t.enumerable}:TM,S4={f:rSe},lu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oSe=$t({}.toString),aSe=$t("".slice),su=function(e){return aSe(oSe(e),8,-1)},C4=Xe.Object,iSe=$t("".split),NM=Jr(function(){return!C4("z").propertyIsEnumerable(0)})?function(e){return su(e)=="String"?iSe(e,""):C4(e)}:C4,lSe=Xe.TypeError,k4=function(e){if(e==null)throw lSe("Can't call method on "+e);return e},Sa=function(e){return NM(k4(e))},Ho=function(e){return typeof e=="object"?e!==null:or(e)},po={},OM=function(e){return or(e)?e:void 0},Mg=function(e,t){return arguments.length<2?OM(po[e])||OM(Xe[e]):po[e]&&po[e][t]||Xe[e]&&Xe[e][t]},IM=$t({}.isPrototypeOf),x4=Mg("navigator","userAgent")||"",FM=Xe.process,RM=Xe.Deno,LM=FM&&FM.versions||RM&&RM.version,MM=LM&&LM.v8;MM&&(rb=(cl=MM.split("."))[0]>0&&cl[0]<4?1:+(cl[0]+cl[1])),!rb&&x4&&(!(cl=x4.match(/Edge\/(\d+)/))||cl[1]>=74)&&(cl=x4.match(/Chrome\/(\d+)/))&&(rb=+cl[1]);var ab=rb,Ca=!!Object.getOwnPropertySymbols&&!Jr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ab&&ab<41}),E4=Ca&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sSe=Xe.Object,wd=E4?function(e){return typeof e=="symbol"}:function(e){var t=Mg("Symbol");return or(t)&&IM(t.prototype,sSe(e))},uSe=Xe.String,cSe=Xe.TypeError,jM=function(e){if(or(e))return e;throw cSe(function(t){try{return uSe(t)}catch{return"Object"}}(e)+" is not a function")},dSe=Xe.TypeError,fSe=Object.defineProperty,dl=Xe["__core-js_shared__"]||function(e,t){try{fSe(Xe,e,{value:t,configurable:!0,writable:!0})}catch{Xe[e]=t}return t}("__core-js_shared__",{}),uu=R0(function(e){(e.exports=function(t,n){return dl[t]||(dl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),hSe=Xe.Object,jg=function(e){return hSe(k4(e))},gSe=$t({}.hasOwnProperty),ut=Object.hasOwn||function(e,t){return gSe(jg(e),t)},mSe=0,pSe=Math.random(),vSe=$t(1 .toString),ib=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vSe(++mSe+pSe,36)},zg=uu("wks"),cu=Xe.Symbol,zM=cu&&cu.for,ySe=E4?cu:cu&&cu.withoutSetter||ib,Zr=function(e){if(!ut(zg,e)||!Ca&&typeof zg[e]!="string"){var t="Symbol."+e;Ca&&ut(cu,e)?zg[e]=cu[e]:zg[e]=E4&&zM?zM(t):ySe(t)}return zg[e]},bSe=Xe.TypeError,wSe=Zr("toPrimitive"),Sd=function(e){var t=function(n,r){if(!Ho(n)||wd(n))return n;var o,a,l=(o=n[wSe])==null?void 0:jM(o);if(l){if(a=wa(l,n,r),!Ho(a)||wd(a))return a;throw bSe("Can't convert object to primitive value")}return function(s,u){var c,d;if(or(c=s.toString)&&!Ho(d=wa(c,s))||or(c=s.valueOf)&&!Ho(d=wa(c,s)))return d;throw dSe("Can't convert object to primitive value")}(n)}(e,"string");return wd(t)?t:t+""},D4=Xe.document,SSe=Ho(D4)&&Ho(D4.createElement),HM=function(e){return SSe?D4.createElement(e):{}},UM=!Br&&!Jr(function(){return Object.defineProperty(HM("div"),"a",{get:function(){return 7}}).a!=7}),WM=Object.getOwnPropertyDescriptor,A4={f:Br?WM:function(e,t){if(e=Sa(e),t=Sd(t),UM)try{return WM(e,t)}catch{}if(ut(e,t))return lu(!wa(S4.f,e,t),e[t])}},CSe=/#|\.prototype\./,Hg=function(e,t){var n=xSe[kSe(e)];return n==DSe||n!=ESe&&(or(t)?Jr(t):!!t)},kSe=Hg.normalize=function(e){return String(e).replace(CSe,".").toLowerCase()},xSe=Hg.data={},ESe=Hg.NATIVE="N",DSe=Hg.POLYFILL="P",ASe=Hg,GM=$t($t.bind),KM=function(e,t){return jM(e),t===void 0?e:GM?GM(e,t):function(){return e.apply(t,arguments)}},VSe=Xe.String,BSe=Xe.TypeError,du=function(e){if(Ho(e))return e;throw BSe(VSe(e)+" is not an object")},_Se=Xe.TypeError,qM=Object.defineProperty,fu={f:Br?qM:function(e,t,n){if(du(e),t=Sd(t),du(n),UM)try{return qM(e,t,n)}catch{}if("get"in n||"set"in n)throw _Se("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ka=Br?function(e,t,n){return fu.f(e,t,lu(1,n))}:function(e,t,n){return e[t]=n,e},TSe=A4.f,PSe=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 BM(e,this,arguments)};return t.prototype=e.prototype,t},fl=function(e,t){var n,r,o,a,l,s,u,c,d=e.target,f=e.global,g=e.stat,h=e.proto,p=f?Xe:g?Xe[d]:(Xe[d]||{}).prototype,y=f?po:po[d]||ka(po,d,{})[d],v=y.prototype;for(o in t)n=!ASe(f?o:d+(g?".":"#")+o,e.forced)&&p&&ut(p,o),l=y[o],n&&(s=e.noTargetGet?(c=TSe(p,o))&&c.value:p[o]),a=n&&s?s:t[o],n&&typeof l==typeof a||(u=e.bind&&n?KM(a,Xe):e.wrap&&n?PSe(a):h&&or(a)?$t(a):a,(e.sham||a&&a.sham||l&&l.sham)&&ka(u,"sham",!0),ka(y,o,u),h&&(ut(po,r=d+"Prototype")||ka(po,r,{}),ka(po[r],o,a),e.real&&v&&!v[o]&&ka(v,o,a)))},lb=Array.isArray||function(e){return su(e)=="Array"},NSe=Math.ceil,OSe=Math.floor,V4=function(e){var t=+e;return t!=t||t===0?0:(t>0?OSe:NSe)(t)},ISe=Math.min,sb=function(e){return(t=e.length)>0?ISe(V4(t),9007199254740991):0;var t},B4=function(e,t,n){var r=Sd(t);r in e?fu.f(e,r,lu(0,n)):e[r]=n},YM={};YM[Zr("toStringTag")]="z";var _4=String(YM)==="[object z]",FSe=Zr("toStringTag"),RSe=Xe.Object,LSe=su(function(){return arguments}())=="Arguments",ub=_4?su:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=RSe(e),FSe))=="string"?n:LSe?su(t):(r=su(t))=="Object"&&or(t.callee)?"Arguments":r},MSe=$t(Function.toString);or(dl.inspectSource)||(dl.inspectSource=function(e){return MSe(e)});var XM=dl.inspectSource,JM=function(){},jSe=[],ZM=Mg("Reflect","construct"),T4=/^\s*(?:class|function)\b/,zSe=$t(T4.exec),HSe=!T4.exec(JM),Ug=function(e){if(!or(e))return!1;try{return ZM(JM,jSe,e),!0}catch{return!1}},USe=!ZM||Jr(function(){var e;return Ug(Ug.call)||!Ug(Object)||!Ug(function(){e=!0})||e})?function(e){if(!or(e))return!1;switch(ub(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return HSe||!!zSe(T4,XM(e))}:Ug,WSe=Zr("species"),QM=Xe.Array,$M=function(e,t){return new(function(n){var r;return lb(n)&&(r=n.constructor,(USe(r)&&(r===QM||lb(r.prototype))||Ho(r)&&(r=r[WSe])===null)&&(r=void 0)),r===void 0?QM:r}(e))(t===0?0:t)},GSe=Zr("species"),ej=Zr("isConcatSpreadable"),tj=Xe.TypeError,KSe=ab>=51||!Jr(function(){var e=[];return e[ej]=!1,e.concat()[0]!==e}),qSe=ab>=51||!Jr(function(){var e=[];return(e.constructor={})[GSe]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),YSe=function(e){if(!Ho(e))return!1;var t=e[ej];return t!==void 0?!!t:lb(e)};fl({target:"Array",proto:!0,forced:!KSe||!qSe},{concat:function(e){var t,n,r,o,a,l=jg(this),s=$M(l,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(YSe(a=t===-1?l:arguments[t])){if(u+(o=sb(a))>9007199254740991)throw tj("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in a&&B4(s,u,a[n])}else{if(u>=9007199254740991)throw tj("Maximum allowed index exceeded");B4(s,u++,a)}return s.length=u,s}});var cb,XSe=Xe.String,db=function(e){if(ub(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return XSe(e)},JSe=Math.max,ZSe=Math.min,P4=function(e,t){var n=V4(e);return n<0?JSe(n+t,0):ZSe(n,t)},QSe=function(e){return function(t,n,r){var o,a=Sa(t),l=sb(a),s=P4(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},$Se={indexOf:QSe(!1)},Wg={},eCe=$Se.indexOf,nj=$t([].push),rj=function(e,t){var n,r=Sa(e),o=0,a=[];for(n in r)!ut(Wg,n)&&ut(r,n)&&nj(a,n);for(;t.length>o;)ut(r,n=t[o++])&&(~eCe(a,n)||nj(a,n));return a},fb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],N4=Object.keys||function(e){return rj(e,fb)},tCe=Br?Object.defineProperties:function(e,t){du(e);for(var n,r=Sa(t),o=N4(t),a=o.length,l=0;a>l;)fu.f(e,n=o[l++],r[n]);return e},nCe=Mg("document","documentElement"),oj=uu("keys"),hb=function(e){return oj[e]||(oj[e]=ib(e))},aj=hb("IE_PROTO"),O4=function(){},ij=function(e){return"<script>"+e+"<\/script>"},lj=function(e){e.write(ij("")),e.close();var t=e.parentWindow.Object;return e=null,t},gb=function(){try{cb=new ActiveXObject("htmlfile")}catch{}var e,t;gb=typeof document<"u"?document.domain&&cb?lj(cb):((t=HM("iframe")).style.display="none",nCe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ij("document.F=Object")),e.close(),e.F):lj(cb);for(var n=fb.length;n--;)delete gb.prototype[fb[n]];return gb()};Wg[aj]=!0;var mb,Gg,pb,hu=Object.create||function(e,t){var n;return e!==null?(O4.prototype=du(e),n=new O4,O4.prototype=null,n[aj]=e):n=gb(),t===void 0?n:tCe(n,t)},rCe=fb.concat("length","prototype"),sj={f:Object.getOwnPropertyNames||function(e){return rj(e,rCe)}},oCe=Xe.Array,aCe=Math.max,uj=sj.f,cj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dj={f:function(e){return cj&&su(e)=="Window"?function(t){try{return uj(t)}catch{return function(r,o,a){for(var l=sb(r),s=P4(void 0,l),u=P4(l,l),c=oCe(aCe(u-s,0)),d=0;s<u;s++,d++)B4(c,d,r[s]);return c.length=d,c}(cj)}}(e):uj(Sa(e))}},I4={f:Object.getOwnPropertySymbols},iCe=$t([].slice),vb=function(e,t,n,r){ka(e,t,n)},F4={f:Zr},lCe=fu.f,cn=function(e){var t=po.Symbol||(po.Symbol={});ut(t,e)||lCe(t,e,{value:F4.f(e)})},sCe=_4?{}.toString:function(){return"[object "+ub(this)+"]"},uCe=fu.f,fj=Zr("toStringTag"),yb=function(e,t,n,r){if(e){var o=n?e:e.prototype;ut(o,fj)||uCe(o,fj,{configurable:!0,value:t}),r&&!_4&&ka(o,"toString",sCe)}},hj=Xe.WeakMap,cCe=or(hj)&&/native code/.test(XM(hj)),R4=Xe.TypeError,dCe=Xe.WeakMap;if(cCe||dl.state){var gu=dl.state||(dl.state=new dCe),fCe=$t(gu.get),gj=$t(gu.has),hCe=$t(gu.set);mb=function(e,t){if(gj(gu,e))throw new R4("Object already initialized");return t.facade=e,hCe(gu,e,t),t},Gg=function(e){return fCe(gu,e)||{}},pb=function(e){return gj(gu,e)}}else{var Cd=hb("state");Wg[Cd]=!0,mb=function(e,t){if(ut(e,Cd))throw new R4("Object already initialized");return t.facade=e,ka(e,Cd,t),t},Gg=function(e){return ut(e,Cd)?e[Cd]:{}},pb=function(e){return ut(e,Cd)}}var kd={set:mb,get:Gg,has:pb,enforce:function(e){return pb(e)?Gg(e):mb(e,{})},getterFor:function(e){return function(t){var n;if(!Ho(t)||(n=Gg(t)).type!==e)throw R4("Incompatible receiver, "+e+" required");return n}}},mj=$t([].push),hl=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=jg(u),y=NM(p),v=KM(c,d),b=sb(y),m=0,w=f||$M,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:mj(S,g)}else switch(e){case 4:return!1;case 7:mj(S,g)}return a?-1:r||o?o:S}},bb=[hl(0),hl(1),hl(2),hl(3),hl(4),hl(5),hl(6),hl(7)][0],_r=hb("hidden"),pj=Zr("toPrimitive"),gCe=kd.set,vj=kd.getterFor("Symbol"),Uo=Object.prototype,gl=Xe.Symbol,ml=gl&&gl.prototype,yj=Xe.TypeError,L4=Xe.QObject,Kg=Mg("JSON","stringify"),bj=A4.f,pl=fu.f,wj=dj.f,mCe=S4.f,Sj=$t([].push),ui=uu("symbols"),qg=uu("op-symbols"),M4=uu("string-to-symbol-registry"),j4=uu("symbol-to-string-registry"),pCe=uu("wks"),z4=!L4||!L4.prototype||!L4.prototype.findChild,H4=Br&&Jr(function(){return hu(pl({},"a",{get:function(){return pl(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=bj(Uo,t);r&&delete Uo[t],pl(e,t,n),r&&e!==Uo&&pl(Uo,t,r)}:pl,U4=function(e,t){var n=ui[e]=hu(ml);return gCe(n,{type:"Symbol",tag:e,description:t}),Br||(n.description=t),n},wb=function(e,t,n){e===Uo&&wb(qg,t,n),du(e);var r=Sd(t);return du(n),ut(ui,r)?(n.enumerable?(ut(e,_r)&&e[_r][r]&&(e[_r][r]=!1),n=hu(n,{enumerable:lu(0,!1)})):(ut(e,_r)||pl(e,_r,lu(1,{})),e[_r][r]=!0),H4(e,r,n)):pl(e,r,n)},Cj=function(e,t){du(e);var n=Sa(t),r=N4(n).concat(W4(n));return bb(r,function(o){Br&&!wa(kj,n,o)||wb(e,o,n[o])}),e},kj=function(e){var t=Sd(e),n=wa(mCe,this,t);return!(this===Uo&&ut(ui,t)&&!ut(qg,t))&&(!(n||!ut(this,t)||!ut(ui,t)||ut(this,_r)&&this[_r][t])||n)},xj=function(e,t){var n=Sa(e),r=Sd(t);if(n!==Uo||!ut(ui,r)||ut(qg,r)){var o=bj(n,r);return!o||!ut(ui,r)||ut(n,_r)&&n[_r][r]||(o.enumerable=!0),o}},Ej=function(e){var t=wj(Sa(e)),n=[];return bb(t,function(r){ut(ui,r)||ut(Wg,r)||Sj(n,r)}),n},W4=function(e){var t=e===Uo,n=wj(t?qg:Sa(e)),r=[];return bb(n,function(o){!ut(ui,o)||t&&!ut(Uo,o)||Sj(r,ui[o])}),r};if(Ca||(ml=(gl=function(){if(IM(ml,this))throw yj("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?db(arguments[0]):void 0,t=ib(e),n=function(r){this===Uo&&wa(n,qg,r),ut(this,_r)&&ut(this[_r],t)&&(this[_r][t]=!1),H4(this,t,lu(1,r))};return Br&&z4&&H4(Uo,t,{configurable:!0,set:n}),U4(t,e)}).prototype,vb(ml,"toString",function(){return vj(this).tag}),vb(gl,"withoutSetter",function(e){return U4(ib(e),e)}),S4.f=kj,fu.f=wb,A4.f=xj,sj.f=dj.f=Ej,I4.f=W4,F4.f=function(e){return U4(Zr(e),e)},Br&&pl(ml,"description",{configurable:!0,get:function(){return vj(this).description}})),fl({global:!0,wrap:!0,forced:!Ca,sham:!Ca},{Symbol:gl}),bb(N4(pCe),function(e){cn(e)}),fl({target:"Symbol",stat:!0,forced:!Ca},{for:function(e){var t=db(e);if(ut(M4,t))return M4[t];var n=gl(t);return M4[t]=n,j4[n]=t,n},keyFor:function(e){if(!wd(e))throw yj(e+" is not a symbol");if(ut(j4,e))return j4[e]},useSetter:function(){z4=!0},useSimple:function(){z4=!1}}),fl({target:"Object",stat:!0,forced:!Ca,sham:!Br},{create:function(e,t){return t===void 0?hu(e):Cj(hu(e),t)},defineProperty:wb,defineProperties:Cj,getOwnPropertyDescriptor:xj}),fl({target:"Object",stat:!0,forced:!Ca},{getOwnPropertyNames:Ej,getOwnPropertySymbols:W4}),fl({target:"Object",stat:!0,forced:Jr(function(){I4.f(1)})},{getOwnPropertySymbols:function(e){return I4.f(jg(e))}}),Kg){var vCe=!Ca||Jr(function(){var e=gl();return Kg([e])!="[null]"||Kg({a:e})!="{}"||Kg(Object(e))!="{}"});fl({target:"JSON",stat:!0,forced:vCe},{stringify:function(e,t,n){var r=iCe(arguments),o=t;if((Ho(t)||e!==void 0)&&!wd(e))return lb(t)||(t=function(a,l){if(or(o)&&(l=wa(o,this,a,l)),!wd(l))return l}),r[1]=t,BM(Kg,null,r)}})}if(!ml[pj]){var yCe=ml.valueOf;vb(ml,pj,function(e){return wa(yCe,this)})}yb(gl,"Symbol"),Wg[_r]=!0,cn("asyncIterator"),cn("hasInstance"),cn("isConcatSpreadable"),cn("iterator"),cn("match"),cn("matchAll"),cn("replace"),cn("search"),cn("species"),cn("split"),cn("toPrimitive"),cn("toStringTag"),cn("unscopables"),yb(Xe.JSON,"JSON",!0);var vl,Dj,Aj,bCe=po.Symbol,mu={},Vj=Function.prototype,wCe=Br&&Object.getOwnPropertyDescriptor,Bj=ut(Vj,"name"),SCe={PROPER:Bj&&(function(){}).name==="something",CONFIGURABLE:Bj&&(!Br||Br&&wCe(Vj,"name").configurable)},CCe=!Jr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),_j=hb("IE_PROTO"),G4=Xe.Object,kCe=G4.prototype,K4=CCe?G4.getPrototypeOf:function(e){var t=jg(e);if(ut(t,_j))return t[_j];var n=t.constructor;return or(n)&&t instanceof n?n.prototype:t instanceof G4?kCe:null},q4=Zr("iterator"),Tj=!1;[].keys&&("next"in(Aj=[].keys())?(Dj=K4(K4(Aj)))!==Object.prototype&&(vl=Dj):Tj=!0);var xCe=vl==null||Jr(function(){var e={};return vl[q4].call(e)!==e});vl=xCe?{}:hu(vl),or(vl[q4])||vb(vl,q4,function(){return this});var Pj={IteratorPrototype:vl,BUGGY_SAFARI_ITERATORS:Tj},ECe=Pj.IteratorPrototype,DCe=function(){return this};Xe.String,Xe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{$t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var ACe=SCe.PROPER,Y4=Pj.BUGGY_SAFARI_ITERATORS,VCe=Zr("iterator"),BCe=function(){return this},Nj=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=hu(ECe,{next:lu(1,m)}),yb(v,S,!1,!0),mu[S]=DCe})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!Y4&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[VCe]||g["@@iterator"]||o&&g[o],p=!Y4&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=K4(y.call(new e)))!==Object.prototype&&s.next&&(yb(s,d,!0,!0),mu[d]=BCe),ACe&&o=="values"&&h&&h.name!=="values"&&(f=!0,p=function(){return wa(h,this)}),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||fl({target:t,proto:!0,forced:Y4||f},u)),mu[t]=p,u},_Ce=kd.set,TCe=kd.getterFor("Array Iterator");Nj(Array,"Array",function(e,t){_Ce(this,{type:"Array Iterator",target:Sa(e),index:0,kind:t})},function(){var e=TCe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),mu.Arguments=mu.Array;var Oj=Zr("toStringTag");for(var X4 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 Ij=Xe[X4],J4=Ij&&Ij.prototype;J4&&ub(J4)!==Oj&&ka(J4,Oj,X4),mu[X4]=mu.Array}var PCe=bCe;cn("asyncDispose"),cn("dispose"),cn("matcher"),cn("metadata"),cn("observable"),cn("patternMatch"),cn("replaceAll");var Sb=PCe,NCe=$t("".charAt),Fj=$t("".charCodeAt),OCe=$t("".slice),ICe=function(e){return function(t,n){var r,o,a=db(k4(t)),l=V4(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=Fj(a,l))<55296||r>56319||l+1===s||(o=Fj(a,l+1))<56320||o>57343?e?NCe(a,l):r:e?OCe(a,l,l+2):o-56320+(r-55296<<10)+65536}},FCe=ICe(!0),RCe=kd.set,LCe=kd.getterFor("String Iterator");Nj(String,"String",function(e){RCe(this,{type:"String Iterator",string:db(e),index:0})},function(){var e,t=LCe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=FCe(n,r),t.index+=e.length,{value:e,done:!1})});var MCe=F4.f("iterator"),jCe=R0(function(e){function t(n){return typeof Sb=="function"&&typeof MCe=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof Sb=="function"&&r.constructor===Sb&&r!==Sb.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Rj=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(jCe),zCe=U0.EXISTS,HCe=sd.f,Lj=Function.prototype,UCe=Ie(Lj.toString),Mj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,WCe=Ie(Mj.exec);jo&&!zCe&&HCe(Lj,"name",{configurable:!0,get:function(){try{return WCe(Mj,UCe(this))[1]}catch{return""}}});var jj=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=B.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!st(B.nodes(t,{match:function(n){return R.getNodeType(n)==="pre"||!!B.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),GCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("fontSize.title"),n.iconSvg=pwe,n.mark="fontSize",n}return Mt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,a=o===void 0?[]:o;r.push({text:ge("fontSize.default"),value:""}),a.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s});else if(Rj(s)==="object"){var u=s.name,c=s.value;r.push({text:u,value:c})}});var l=this.getValue(n);return r.forEach(function(s){s.value===l?s.selected=!0:delete s.selected}),r},t}(jj),KCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("fontFamily.title"),n.iconSvg=vwe,n.mark="fontFamily",n.selectPanelWidth=150,n}return Mt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,a=o===void 0?[]:o;r.push({text:ge("fontFamily.default"),value:""}),a.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(Rj(s)==="object"){var u=s.name,c=s.value;r.push({text:u,value:c,styleForRenderMenuList:{"font-family":c}})}});var l=this.getValue(n);return r.forEach(function(s){s.value===l?s.selected=!0:delete s.selected}),r},t}(jj),qCe={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,a=t;return r&&au(a,{fontSize:r}),o&&au(a,{fontFamily:o}),a},styleToHtml:function(e,t){if(!Se.isText(e))return t;var n,r=e,o=r.fontSize,a=r.fontFamily;return o||a?((n4(t)||pd(n=M(t))!=="span")&&(n=M("<span>"+t+"</span>")),o&&n.css("font-size",o),a&&n.css("font-family",a),md(n)):t},preParseHtml:[$2e],parseStyleHtml:function(e,t,n){var r=M(e);if(!Se.isText(t))return t;var o=t,a=n.getMenuConfig("fontSize").fontSizeList,l=a===void 0?[]:a,s=zo(r,"font-size"),u=l.find(function(h){return h.value&&h.value===s})||l.includes(s);s&&u&&(o.fontSize=s);var c=n.getMenuConfig("fontFamily").fontFamilyList,d=c===void 0?[]:c,f=zo(r,"font-family").replace(/"/g,""),g=d.find(function(h){return h.value&&h.value===f})||d.includes(f);return f&&g&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new GCe},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 KCe},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},YCe={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=M(e),n=zo(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]}},zj=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=st(B.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":st(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=st(B.nodes(t,{match:function(r){var o=R.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),XCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("indent.decrease"),n.iconSvg=ywe,n}return Mt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){Q.setNodes(n,{indent:null},{match:function(o){return _e.isElement(o)}})},t}(zj),JCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("indent.increase"),n.iconSvg=bwe,n}return Mt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){Q.setNodes(n,{indent:"2em"},{match:function(o){return _e.isElement(o)},mode:"highest"})},t}(zj),ZCe={renderStyle:function(e,t){if(!_e.isElement(e))return t;var n=e.indent,r=t;return n&&au(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!_e.isElement(e))return t;var n=e.indent;if(!n)return t;var r=M(t);return r.css("text-indent",n),md(r)},preParseHtml:[YCe],parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t))return t;var o=t,a=zo(r,"text-indent"),l=parseInt(a,10);return a&&l>0&&(o.indent=a),o},menus:[{key:"indent",factory:function(){return new JCe}},{key:"delIndent",factory:function(){return new XCe}}]},Cb=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=st(B.nodes(t,{match:function(r){var o=R.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(B.isVoid(t,n)&&B.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),QCe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.left"),n.iconSvg=wwe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"left"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),$Ce=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.right"),n.iconSvg=Swe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"right"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),eke=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.center"),n.iconSvg=Cwe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"center"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),tke=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=ge("justify.justify"),n.iconSvg=kwe,n}return Mt(t,e),t.prototype.exec=function(n,r){Q.setNodes(n,{textAlign:"justify"},{match:function(o){return _e.isElement(o)&&!n.isInline(o)}})},t}(Cb),nke={renderStyle:function(e,t){if(!_e.isElement(e))return t;var n=e.textAlign,r=t;return n&&au(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!_e.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=M(t);return r.css("text-align",n),md(r)},parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t))return t;var o=t,a=zo(r,"text-align");return a&&(o.textAlign=a),o},menus:[{key:"justifyLeft",factory:function(){return new QCe}},{key:"justifyRight",factory:function(){return new $Ce}},{key:"justifyCenter",factory:function(){return new eke}},{key:"justifyJustify",factory:function(){return new tke}}]},rke=function(){function e(){this.title=ge("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(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:ge("lineHeight.default"),value:""}),o.forEach(function(l){n.push({text:l,value:l})});var a=this.getValue(t);return n.forEach(function(l){l.value===a?l.selected=!0:delete l.selected}),n},e.prototype.getMatchNode=function(t){var n=st(B.nodes(t,{match:function(r){var o=R.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":_e.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){Q.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),oke={renderStyle:function(e,t){if(!_e.isElement(e))return t;var n=e.lineHeight,r=t;return n&&au(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!_e.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=M(t);return r.css("line-height",n),md(r)},parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t))return t;var o=t,a=n.getMenuConfig("lineHeight").lineHeightList,l=a===void 0?[]:a,s=zo(r,"line-height");return s&&l.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new rke},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},ake=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),ike=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),lke={menus:[{key:"redo",factory:function(){return new ake}},{key:"undo",factory:function(){return new ike}}]},ske={type:"divider",renderElem:function(e,t,n){return Tc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:R.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Tc("hr")])}},uke=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=R.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){Q.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),cke={renderElems:[ske],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 uke}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var a=st(o,2),l=a[0],s=a[1];if(R.getNodeType(l)!=="divider")return n([l,s]);R.isLastNode(r,l)&&Q.insertNodes(r,R.genEmptyParagraph(),{at:[s[0]+1]})},r}},dke=Y0.map;An({target:"Array",proto:!0,forced:!FD("map")},{map:function(e){return dke(this,e,arguments.length>1?arguments[1]:void 0)}});var fke=Ie([].join),hke=j0!=Object,gke=ZL("join",",");An({target:"Array",proto:!0,forced:hke||!gke},{join:function(e){return fke(ld(this),e===void 0?",":e)}});var mke=function(){function e(){this.title=ge("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(t){var n=R.getSelectedNodeByType(t,"code");if(n==null)return null;var r=R.getParentNode(t,n);return r==null||R.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=R.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var o=R.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=he.string(n);Q.removeNodes(t,{mode:"highest"});var o=r.split(`
120
120
  `).map(function(a){return{type:"paragraph",children:[{text:a}]}});Q.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,a=[],l=B.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var s=qL(l),u=s.next();!u.done;u=s.next()){var c=st(u.value,1)[0];c&&a.push(he.string(c))}}catch(f){r={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}Q.removeNodes(t,{mode:"highest"});var d={type:"pre",children:[{type:"code",language:n,children:[{text:a.join(`
121
- `)}]}]};Q.insertNodes(t,d,{mode:"highest"})},e}(),mke={key:"codeBlock",factory:function(){return new gke}};An({target:"String",proto:!0,forced:Pg("anchor")},{anchor:function(e){return Tg(this,"a","name",e)}}),qD("match",function(e,t,n){return[function(r){var o=go(this),a=r==null?void 0:z0(r,e);return a?un(a,r,o):new RegExp(r)[e](qt(o))},function(r){var o=Xr(this),a=qt(r),l=n(t,o,a);if(l.done)return l.value;if(!o.global)return Bg(o,a);var s=o.unicode;o.lastIndex=0;for(var u,c=[],d=0;(u=Bg(o,a))!==null;){var f=qt(u[0]);c[d]=f,f===""&&(o.lastIndex=YD(a,Eg(o.lastIndex),s)),d++}return d===0?null:c}]});var pke={type:"pre",renderElem:function(e,t,n){return Fe("pre",null,t)}},vke={type:"code",renderElem:function(e,t,n){return Fe("code",null,t)}},yke={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return R.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return R.getNodeType(o)==="code"})}}},bke={menus:[mke],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var a=R.getSelectedNodeByType(o,"code");if(a!=null){var l=function(c,d){var f=d.selection;if(f==null)return"";var g=he.string(c),h=f.anchor.offset,p=g.slice(0,h).split(`
121
+ `)}]}]};Q.insertNodes(t,d,{mode:"highest"})},e}(),pke={key:"codeBlock",factory:function(){return new mke}};An({target:"String",proto:!0,forced:Pg("anchor")},{anchor:function(e){return Tg(this,"a","name",e)}}),qD("match",function(e,t,n){return[function(r){var o=go(this),a=r==null?void 0:z0(r,e);return a?un(a,r,o):new RegExp(r)[e](qt(o))},function(r){var o=Xr(this),a=qt(r),l=n(t,o,a);if(l.done)return l.value;if(!o.global)return Bg(o,a);var s=o.unicode;o.lastIndex=0;for(var u,c=[],d=0;(u=Bg(o,a))!==null;){var f=qt(u[0]);c[d]=f,f===""&&(o.lastIndex=YD(a,Eg(o.lastIndex),s)),d++}return d===0?null:c}]});var vke={type:"pre",renderElem:function(e,t,n){return Fe("pre",null,t)}},yke={type:"code",renderElem:function(e,t,n){return Fe("code",null,t)}},bke={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);return(t=t.filter(function(o){return R.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return R.getNodeType(o)==="code"})}}},wke={menus:[pke],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var a=R.getSelectedNodeByType(o,"code");if(a!=null){var l=function(c,d){var f=d.selection;if(f==null)return"";var g=he.string(c),h=f.anchor.offset,p=g.slice(0,h).split(`
122
122
  `),y=p.length;return y===0?"":p[y-1]}(a,o);if(l){var s=l.match(/^\s+/);if(s!=null&&s[0]!=null){var u=s[0];return void o.insertText(`
123
123
  `+u)}}o.insertText(`
124
- `)}else t()},o.normalizeNode=function(a){var l=st(a,2),s=l[0],u=l[1],c=R.getNodeType(s);return c==="code"&&u.length<=1&&Q.setNodes(o,{type:"paragraph"},{at:u}),c==="pre"&&(R.isLastNode(o,s)&&Q.insertNodes(o,R.genEmptyParagraph(),{at:[u[0]+1]}),R.getNodeType(s.children[0])!=="code"&&(Q.unwrapNodes(o),Q.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,u])},o.insertData=function(a){if(R.getSelectedNodeByType(o,"code")!=null){var l=a.getData("text/plain");B.insertText(o,l)}else r(a)},o},renderElems:[pke,vke],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=M(e);if(pd(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)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:M(e)[0].textContent||""}]}}},yke]},wke=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Ske={menus:[{key:"fullScreen",factory:function(){return new wke}}]},Cke=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!re.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];Q.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(B.start(t,o))}},e}(),kke=[Nwe,d2e,KCe,JCe,tke,rke,I2e,uke,J2e,C2e,bke,Y2e,i2e,nwe,M2e,ike,Ske,{menus:[{key:"enter",factory:function(){return new Cke}}]}];Vr("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Vr("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Hj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z4(e){var t={exports:{}};return e(t,t.exports),t.exports}var yl,kb,xb=function(e){return e&&e.Math==Math&&e},Re=xb(typeof globalThis=="object"&&globalThis)||xb(typeof window=="object"&&window)||xb(typeof self=="object"&&self)||xb(typeof Hj=="object"&&Hj)||function(){return this}()||Function("return this")(),Uj=Function.prototype,Q4=Uj.bind,$4=Uj.call,xke=Q4&&Q4.bind($4),Qe=Q4?function(e){return e&&xke($4,e)}:function(e){return e&&function(){return $4.apply(e,arguments)}},Xt=function(e){try{return!!e()}catch{return!0}},Eke=Qe({}.toString),Dke=Qe("".slice),ci=function(e){return Dke(Eke(e),8,-1)},eA=Re.Object,Ake=Qe("".split),Wj=Xt(function(){return!eA("z").propertyIsEnumerable(0)})?function(e){return ci(e)=="String"?Ake(e,""):eA(e)}:eA,Vke=Re.TypeError,Eb=function(e){if(e==null)throw Vke("Can't call method on "+e);return e},xd=function(e){return Wj(Eb(e))},Bke=Object.defineProperty,tA=function(e,t){try{Bke(Re,e,{value:t,configurable:!0,writable:!0})}catch{Re[e]=t}return t},bl=Re["__core-js_shared__"]||tA("__core-js_shared__",{}),nA=Z4(function(e){(e.exports=function(t,n){return bl[t]||(bl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_ke=Re.Object,Yg=function(e){return _ke(Eb(e))},Tke=Qe({}.hasOwnProperty),Vn=Object.hasOwn||function(e,t){return Tke(Yg(e),t)},Pke=0,Nke=Math.random(),Oke=Qe(1 .toString),rA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Oke(++Pke+Nke,36)},en=function(e){return typeof e=="function"},Ike=function(e){return en(e)?e:void 0},Xg=function(e,t){return arguments.length<2?Ike(Re[e]):Re[e]&&Re[e][t]},oA=Xg("navigator","userAgent")||"",Gj=Re.process,Kj=Re.Deno,qj=Gj&&Gj.versions||Kj&&Kj.version,Yj=qj&&qj.v8;Yj&&(kb=(yl=Yj.split("."))[0]>0&&yl[0]<4?1:+(yl[0]+yl[1])),!kb&&oA&&(!(yl=oA.match(/Edge\/(\d+)/))||yl[1]>=74)&&(yl=oA.match(/Chrome\/(\d+)/))&&(kb=+yl[1]);var Db,aA=kb,iA=!!Object.getOwnPropertySymbols&&!Xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aA&&aA<41}),lA=iA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jg=nA("wks"),pu=Re.Symbol,Xj=pu&&pu.for,Fke=lA?pu:pu&&pu.withoutSetter||rA,Xn=function(e){if(!Vn(Jg,e)||!iA&&typeof Jg[e]!="string"){var t="Symbol."+e;iA&&Vn(pu,e)?Jg[e]=pu[e]:Jg[e]=lA&&Xj?Xj(t):Fke(t)}return Jg[e]},tn=function(e){return typeof e=="object"?e!==null:en(e)},Rke=Re.String,Lke=Re.TypeError,Tr=function(e){if(tn(e))return e;throw Lke(Rke(e)+" is not an object")},wl=!Xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sA=Re.document,Mke=tn(sA)&&tn(sA.createElement),uA=function(e){return Mke?sA.createElement(e):{}},Jj=!wl&&!Xt(function(){return Object.defineProperty(uA("div"),"a",{get:function(){return 7}}).a!=7}),Zg=Function.prototype.call,Fn=Zg.bind?Zg.bind(Zg):function(){return Zg.apply(Zg,arguments)},Ab=Qe({}.isPrototypeOf),jke=Re.Object,cA=lA?function(e){return typeof e=="symbol"}:function(e){var t=Xg("Symbol");return en(t)&&Ab(t.prototype,jke(e))},zke=Re.String,dA=function(e){try{return zke(e)}catch{return"Object"}},Hke=Re.TypeError,fA=function(e){if(en(e))return e;throw Hke(dA(e)+" is not a function")},Qg=function(e,t){var n=e[t];return n==null?void 0:fA(n)},Uke=Re.TypeError,Wke=Re.TypeError,Gke=Xn("toPrimitive"),hA=function(e){var t=function(n,r){if(!tn(n)||cA(n))return n;var o,a=Qg(n,Gke);if(a){if(o=Fn(a,n,r),!tn(o)||cA(o))return o;throw Wke("Can't convert object to primitive value")}return function(l,s){var u,c;if(en(u=l.toString)&&!tn(c=Fn(u,l))||en(u=l.valueOf)&&!tn(c=Fn(u,l)))return c;throw Uke("Can't convert object to primitive value")}(n)}(e,"string");return cA(t)?t:t+""},Kke=Re.TypeError,Zj=Object.defineProperty,vu={f:wl?Zj:function(e,t,n){if(Tr(e),t=hA(t),Tr(n),Jj)try{return Zj(e,t,n)}catch{}if("get"in n||"set"in n)throw Kke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qke=Math.ceil,Yke=Math.floor,$g=function(e){var t=+e;return t!=t||t===0?0:(t>0?Yke:qke)(t)},Xke=Math.max,Jke=Math.min,gA=function(e,t){var n=$g(e);return n<0?Xke(n+t,0):Jke(n,t)},Zke=Math.min,Qj=function(e){return e>0?Zke($g(e),9007199254740991):0},Ed=function(e){return Qj(e.length)},$j=function(e){return function(t,n,r){var o,a=xd(t),l=Ed(a),s=gA(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ez={includes:$j(!0),indexOf:$j(!1)},Vb={},Qke=ez.indexOf,tz=Qe([].push),nz=function(e,t){var n,r=xd(e),o=0,a=[];for(n in r)!Vn(Vb,n)&&Vn(r,n)&&tz(a,n);for(;t.length>o;)Vn(r,n=t[o++])&&(~Qke(a,n)||tz(a,n));return a},Bb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$ke=Object.keys||function(e){return nz(e,Bb)},exe=wl?Object.defineProperties:function(e,t){Tr(e);for(var n,r=xd(t),o=$ke(t),a=o.length,l=0;a>l;)vu.f(e,n=o[l++],r[n]);return e},txe=Xg("document","documentElement"),rz=nA("keys"),mA=function(e){return rz[e]||(rz[e]=rA(e))},oz=mA("IE_PROTO"),pA=function(){},az=function(e){return"<script>"+e+"<\/script>"},iz=function(e){e.write(az("")),e.close();var t=e.parentWindow.Object;return e=null,t},_b=function(){try{Db=new ActiveXObject("htmlfile")}catch{}var e,t;_b=typeof document<"u"?document.domain&&Db?iz(Db):((t=uA("iframe")).style.display="none",txe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(az("document.F=Object")),e.close(),e.F):iz(Db);for(var n=Bb.length;n--;)delete _b.prototype[Bb[n]];return _b()};Vb[oz]=!0;var vA=Object.create||function(e,t){var n;return e!==null?(pA.prototype=Tr(e),n=new pA,pA.prototype=null,n[oz]=e):n=_b(),t===void 0?n:exe(n,t)},yA=Xn("unscopables"),bA=Array.prototype;bA[yA]==null&&vu.f(bA,yA,{configurable:!0,value:vA(null)});var em=function(e){bA[yA][e]=!0},Dd={},nxe=Qe(Function.toString);en(bl.inspectSource)||(bl.inspectSource=function(e){return nxe(e)});var Tb,tm,Pb,wA=bl.inspectSource,lz=Re.WeakMap,sz=en(lz)&&/native code/.test(wA(lz)),Nb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sl=wl?function(e,t,n){return vu.f(e,t,Nb(1,n))}:function(e,t,n){return e[t]=n,e},SA=Re.TypeError,rxe=Re.WeakMap;if(sz||bl.state){var yu=bl.state||(bl.state=new rxe),oxe=Qe(yu.get),uz=Qe(yu.has),axe=Qe(yu.set);Tb=function(e,t){if(uz(yu,e))throw new SA("Object already initialized");return t.facade=e,axe(yu,e,t),t},tm=function(e){return oxe(yu,e)||{}},Pb=function(e){return uz(yu,e)}}else{var Ad=mA("state");Vb[Ad]=!0,Tb=function(e,t){if(Vn(e,Ad))throw new SA("Object already initialized");return t.facade=e,Sl(e,Ad,t),t},tm=function(e){return Vn(e,Ad)?e[Ad]:{}},Pb=function(e){return Vn(e,Ad)}}var bu,cz,dz,xa={set:Tb,get:tm,has:Pb,enforce:function(e){return Pb(e)?tm(e):Tb(e,{})},getterFor:function(e){return function(t){var n;if(!tn(t)||(n=tm(t)).type!==e)throw SA("Incompatible receiver, "+e+" required");return n}}},fz={}.propertyIsEnumerable,hz=Object.getOwnPropertyDescriptor,ixe={f:hz&&!fz.call({1:2},1)?function(e){var t=hz(this,e);return!!t&&t.enumerable}:fz},gz=Object.getOwnPropertyDescriptor,mz={f:wl?gz:function(e,t){if(e=xd(e),t=hA(t),Jj)try{return gz(e,t)}catch{}if(Vn(e,t))return Nb(!Fn(ixe.f,e,t),e[t])}},pz=Function.prototype,lxe=wl&&Object.getOwnPropertyDescriptor,vz=Vn(pz,"name"),CA={PROPER:vz&&(function(){}).name==="something",CONFIGURABLE:vz&&(!wl||wl&&lxe(pz,"name").configurable)},di=Z4(function(e){var t=CA.CONFIGURABLE,n=xa.get,r=xa.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;en(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vn(s,"name")||t&&s.name!==h)&&Sl(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==Re?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Sl(a,l,s)):f?a[l]=s:tA(l,s)})(Function.prototype,"toString",function(){return en(this)&&n(this).source||wA(this)})}),sxe=Bb.concat("length","prototype"),Ob={f:Object.getOwnPropertyNames||function(e){return nz(e,sxe)}},uxe={f:Object.getOwnPropertySymbols},cxe=Qe([].concat),dxe=Xg("Reflect","ownKeys")||function(e){var t=Ob.f(Tr(e)),n=uxe.f;return n?cxe(t,n(e)):t},fxe=function(e,t){for(var n=dxe(t),r=vu.f,o=mz.f,a=0;a<n.length;a++){var l=n[a];Vn(e,l)||r(e,l,o(t,l))}},hxe=/#|\.prototype\./,nm=function(e,t){var n=mxe[gxe(e)];return n==vxe||n!=pxe&&(en(t)?Xt(t):!!t)},gxe=nm.normalize=function(e){return String(e).replace(hxe,".").toLowerCase()},mxe=nm.data={},pxe=nm.NATIVE="N",vxe=nm.POLYFILL="P",kA=nm,yxe=mz.f,Cl=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?Re:c?Re[s]||tA(s,{}):(Re[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=yxe(n,r))&&l.value:n[r],!kA(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;fxe(a,o)}(e.sham||o&&o.sham)&&Sl(a,"sham",!0),di(n,r,a,e)}},bxe=!Xt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yz=mA("IE_PROTO"),xA=Re.Object,wxe=xA.prototype,Ib=bxe?xA.getPrototypeOf:function(e){var t=Yg(e);if(Vn(t,yz))return t[yz];var n=t.constructor;return en(n)&&t instanceof n?n.prototype:t instanceof xA?wxe:null},EA=Xn("iterator"),bz=!1;[].keys&&("next"in(dz=[].keys())?(cz=Ib(Ib(dz)))!==Object.prototype&&(bu=cz):bz=!0);var Sxe=bu==null||Xt(function(){var e={};return bu[EA].call(e)!==e});Sxe&&(bu={}),en(bu[EA])||di(bu,EA,function(){return this});var DA={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:bz},Cxe=vu.f,wz=Xn("toStringTag"),AA=function(e,t,n){e&&!Vn(e=n?e:e.prototype,wz)&&Cxe(e,wz,{configurable:!0,value:t})},kxe=DA.IteratorPrototype,xxe=function(){return this},Exe=Re.String,Dxe=Re.TypeError,Fb=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Qe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Tr(r),function(a){if(typeof a=="object"||en(a))return a;throw Dxe("Can't set "+Exe(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Axe=CA.PROPER,Vxe=CA.CONFIGURABLE,Sz=DA.IteratorPrototype,VA=DA.BUGGY_SAFARI_ITERATORS,rm=Xn("iterator"),Bxe=function(){return this},Cz=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=vA(kxe,{next:Nb(1,m)}),AA(v,S,!1),Dd[S]=xxe})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!VA&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[rm]||g["@@iterator"]||o&&g[o],p=!VA&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=Ib(y.call(new e)))!==Object.prototype&&s.next&&(Ib(s)!==Sz&&(Fb?Fb(s,Sz):en(s[rm])||di(s,rm,Bxe)),AA(s,d,!0)),Axe&&o=="values"&&h&&h.name!=="values"&&(Vxe?Sl(g,"name","values"):(f=!0,p=function(){return Fn(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||Cl({target:t,proto:!0,forced:VA||f},u)),g[rm]!==p&&di(g,rm,p,{name:o}),Dd[t]=p,u},_xe=xa.set,Txe=xa.getterFor("Array Iterator"),om=Cz(Array,"Array",function(e,t){_xe(this,{type:"Array Iterator",target:xd(e),index:0,kind:t})},function(){var e=Txe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Dd.Arguments=Dd.Array,em("keys"),em("values"),em("entries");var kz={};kz[Xn("toStringTag")]="z";var BA=String(kz)==="[object z]",Pxe=Xn("toStringTag"),Nxe=Re.Object,Oxe=ci(function(){return arguments}())=="Arguments",Rb=BA?ci:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=Nxe(e),Pxe))=="string"?n:Oxe?ci(t):(r=ci(t))=="Object"&&en(t.callee)?"Arguments":r},Ixe=BA?{}.toString:function(){return"[object "+Rb(this)+"]"};BA||di(Object.prototype,"toString",Ixe,{unsafe:!0});var Fxe=Re.String,fi=function(e){if(Rb(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Fxe(e)},Rxe=Qe("".charAt),xz=Qe("".charCodeAt),Lxe=Qe("".slice),Mxe=function(e){return function(t,n){var r,o,a=fi(Eb(t)),l=$g(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=xz(a,l))<55296||r>56319||l+1===s||(o=xz(a,l+1))<56320||o>57343?e?Rxe(a,l):r:e?Lxe(a,l,l+2):o-56320+(r-55296<<10)+65536}},Ez={charAt:Mxe(!0)},jxe=Ez.charAt,zxe=xa.set,Hxe=xa.getterFor("String Iterator");Cz(String,"String",function(e){zxe(this,{type:"String Iterator",string:fi(e),index:0})},function(){var e,t=Hxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jxe(n,r),t.index+=e.length,{value:e,done:!1})});var _A=function(e,t,n){for(var r in t)di(e,r,t[r],n);return e},Uxe=Re.Array,Wxe=Math.max,Dz=Ob.f,Az=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gxe={f:function(e){return Az&&ci(e)=="Window"?function(t){try{return Dz(t)}catch{return function(r,o,a){for(var l,s,u,c,d=Ed(r),f=gA(void 0,d),g=gA(d,d),h=Uxe(Wxe(g-f,0)),p=0;f<g;f++,p++)l=h,s=p,u=r[f],(c=hA(s))in l?vu.f(l,c,Nb(0,u)):l[c]=u;return h.length=p,h}(Az)}}(e):Dz(xd(e))}},Vz=Xt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Lb=Object.isExtensible,wu=Xt(function(){Lb(1)})||Vz?function(e){return!!tn(e)&&(!Vz||ci(e)!="ArrayBuffer")&&(!Lb||Lb(e))}:Lb,Kxe=!Xt(function(){return Object.isExtensible(Object.preventExtensions({}))}),TA=Z4(function(e){var t=vu.f,n=!1,r=rA("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=Ob.f,u=Qe([].splice),c={};c[r]=1,s(c).length&&(Ob.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Cl({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Gxe.f}))},fastKey:function(s,u){if(!tn(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Vn(s,r)){if(!wu(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Vn(s,r)){if(!wu(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Kxe&&n&&wu(s)&&!Vn(s,r)&&a(s),s}};Vb[r]=!0}),Bz=Qe(Qe.bind),PA=function(e,t){return fA(e),t===void 0?e:Bz?Bz(e,t):function(){return e.apply(t,arguments)}},qxe=Xn("iterator"),Yxe=Array.prototype,Xxe=Xn("iterator"),_z=function(e){if(e!=null)return Qg(e,Xxe)||Qg(e,"@@iterator")||Dd[Rb(e)]},Jxe=Re.TypeError,Tz=function(e,t,n){var r,o;Tr(e);try{if(!(r=Qg(e,"return"))){if(t==="throw")throw n;return n}r=Fn(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Tr(r),n},Zxe=Re.TypeError,Mb=function(e,t){this.stopped=e,this.result=t},Pz=Mb.prototype,Nz=function(e,t,n){var r,o,a,l,s,u,c,d,f=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=PA(t,f),v=function(m){return r&&Tz(r,"normal",m),new Mb(!0,m)},b=function(m){return g?(Tr(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(h)r=e;else{if(!(o=_z(e)))throw Zxe(dA(e)+" is not iterable");if((d=o)!==void 0&&(Dd.Array===d||Yxe[qxe]===d)){for(a=0,l=Ed(e);l>a;a++)if((s=b(e[a]))&&Ab(Pz,s))return s;return new Mb(!1)}r=function(m,w){var S=arguments.length<2?_z(m):w;if(fA(S))return Tr(Fn(S,m));throw Jxe(dA(m)+" is not iterable")}(e,o)}for(u=r.next;!(c=Fn(u,r)).done;){try{s=b(c.value)}catch(m){Tz(r,"throw",m)}if(typeof s=="object"&&s&&Ab(Pz,s))return s}return new Mb(!1)},Qxe=Re.TypeError,Oz=function(e,t){if(Ab(t,e))return e;throw Qxe("Incorrect invocation")},Iz=Xn("iterator"),Fz=!1;try{var $xe=0,Rz={next:function(){return{done:!!$xe++}},return:function(){Fz=!0}};Rz[Iz]=function(){return this},Array.from(Rz,function(){throw 2})}catch{}var NA=Array.isArray||function(e){return ci(e)=="Array"},Lz=function(){},e1e=[],Mz=Xg("Reflect","construct"),OA=/^\s*(?:class|function)\b/,t1e=Qe(OA.exec),n1e=!OA.exec(Lz),am=function(e){if(!en(e))return!1;try{return Mz(Lz,e1e,e),!0}catch{return!1}},r1e=!Mz||Xt(function(){var e;return am(am.call)||!am(Object)||!am(function(){e=!0})||e})?function(e){if(!en(e))return!1;switch(Rb(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return n1e||!!t1e(OA,wA(e))}:am,o1e=Xn("species"),jz=Re.Array,zz=function(e,t){return new(function(n){var r;return NA(n)&&(r=n.constructor,(r1e(r)&&(r===jz||NA(r.prototype))||tn(r)&&(r=r[o1e])===null)&&(r=void 0)),r===void 0?jz:r}(e))(t===0?0:t)},Hz=Qe([].push),IA=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=Yg(u),y=Wj(p),v=PA(c,d),b=Ed(y),m=0,w=f||zz,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:Hz(S,g)}else switch(e){case 4:return!1;case 7:Hz(S,g)}return a?-1:r||o?o:S}},FA={filter:IA(2),find:IA(5),findIndex:IA(6)},jb=TA.getWeakData,a1e=xa.set,i1e=xa.getterFor,l1e=FA.find,s1e=FA.findIndex,u1e=Qe([].splice),c1e=0,zb=function(e){return e.frozen||(e.frozen=new Uz)},Uz=function(){this.entries=[]},RA=function(e,t){return l1e(e.entries,function(n){return n[0]===t})};Uz.prototype={get:function(e){var t=RA(this,e);if(t)return t[1]},has:function(e){return!!RA(this,e)},set:function(e,t){var n=RA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=s1e(this.entries,function(n){return n[0]===e});return~t&&u1e(this.entries,t,1),!!~t}};var im,Wz={getConstructor:function(e,t,n,r){var o=e(function(u,c){Oz(u,a),a1e(u,{type:t,id:c1e++,frozen:void 0}),c!=null&&Nz(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=i1e(t),s=function(u,c,d){var f=l(u),g=jb(Tr(c),!0);return g===!0?zb(f).set(c,d):g[f.id]=d,u};return _A(a,{delete:function(u){var c=l(this);if(!tn(u))return!1;var d=jb(u);return d===!0?zb(c).delete(u):d&&Vn(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!tn(u))return!1;var d=jb(u);return d===!0?zb(c).has(u):d&&Vn(d,c.id)}}),_A(a,n?{get:function(u){var c=l(this);if(tn(u)){var d=jb(u);return d===!0?zb(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},Hb=xa.enforce,d1e=!Re.ActiveXObject&&"ActiveXObject"in Re,Gz=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},f1e=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=Re[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=Qe(s[v]);di(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!tn(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!tn(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!tn(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(kA(e,!en(l)||!(o||s.forEach&&!Xt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),TA.enable();else if(kA(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=Xt(function(){f.has(1)}),p=function(v,b){if(!Fz)return!1;var m=!1;try{var w={};w[Iz]=function(){return{next:function(){return{done:m=!0}}}},function(S){new l(S)}(w)}catch{}return m}(),y=!o&&Xt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){Oz(v,s);var m=function(w,S,C){var x,k;return Fb&&en(x=S.constructor)&&x!==C&&tn(k=x.prototype)&&k!==C.prototype&&Fb(w,k),w}(new l,v,u);return b!=null&&Nz(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Cl({global:!0,forced:u!=l},c),AA(u,e),o||n.setStrong(u,e,r),u}("WeakMap",Gz,Wz);if(sz&&d1e){im=Wz.getConstructor(Gz,"WeakMap",!0),TA.enable();var lm=f1e.prototype,Kz=Qe(lm.delete),Ub=Qe(lm.has),qz=Qe(lm.get),Yz=Qe(lm.set);_A(lm,{delete:function(e){if(tn(e)&&!wu(e)){var t=Hb(this);return t.frozen||(t.frozen=new im),Kz(this,e)||t.frozen.delete(e)}return Kz(this,e)},has:function(e){if(tn(e)&&!wu(e)){var t=Hb(this);return t.frozen||(t.frozen=new im),Ub(this,e)||t.frozen.has(e)}return Ub(this,e)},get:function(e){if(tn(e)&&!wu(e)){var t=Hb(this);return t.frozen||(t.frozen=new im),Ub(this,e)?qz(this,e):t.frozen.get(e)}return qz(this,e)},set:function(e,t){if(tn(e)&&!wu(e)){var n=Hb(this);n.frozen||(n.frozen=new im),Ub(this,e)?Yz(this,e,t):n.frozen.set(e,t)}else Yz(this,e,t);return this}})}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},LA=uA("span").classList,Jz=LA&&LA.constructor&&LA.constructor.prototype,h1e=Jz===Object.prototype?void 0:Jz,MA=Xn("iterator"),Zz=Xn("toStringTag"),jA=om.values,Qz=function(e,t){if(e){if(e[MA]!==jA)try{Sl(e,MA,jA)}catch{e[MA]=jA}if(e[Zz]||Sl(e,Zz,t),Xz[t]){for(var n in om)if(e[n]!==om[n])try{Sl(e,n,om[n])}catch{e[n]=om[n]}}}};for(var zA in Xz)Qz(Re[zA]&&Re[zA].prototype,zA);Qz(h1e,"DOMTokenList");var HA=new WeakMap,g1e={type:"list-item",renderElem:function(e,t,n){HA.set(e,n);var r=e,o=r.level,a=o===void 0?0:o,l=r.ordered,s={margin:"5px 0 5px "+20*a+"px"},u="";if(l!==void 0&&l){var c=function(f,g){var h=g,p=h.type,y=h.level,v=y===void 0?0:y,b=h.ordered,m=b!==void 0&&b;if(!m)return-1;var w=1,S=g,C=R.findPath(f,S);if(C[0]===0)return 1;for(;C[0]>0;){var x=Y.previous(C),k=B.node(f,x);if(k==null)break;var E=k[0],A=E.level,N=A===void 0?0:A,V=E.type,D=E.ordered;if(V!==p||N<v)break;if(N===v){if(D!==m)break;w++}S=E,C=x}return w}(n,e);u=c+"."}else u=function(f){f===void 0&&(f=0);var g="";switch(f){case 0:g="•";break;case 1:g="◦";break;default:g="▪"}return g}(a);var d=function(f){var g,h=f.children||[],p=h.length;if(p===0)return"";for(var y=0;y<p&&!g;y++){var v=h[y];Se.isText(v)&&(g=v)}return g==null?"":g.color||""}(e);return Fe("div",{style:s},Fe("span",{contentEditable:!1,style:{marginRight:"0.5em",color:d},"data-w-e-reserve":!0},u),Fe("span",null,t))}},UA=function(e,t){return UA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},UA(e,t);/*! *****************************************************************************
124
+ `)}else t()},o.normalizeNode=function(a){var l=st(a,2),s=l[0],u=l[1],c=R.getNodeType(s);return c==="code"&&u.length<=1&&Q.setNodes(o,{type:"paragraph"},{at:u}),c==="pre"&&(R.isLastNode(o,s)&&Q.insertNodes(o,R.genEmptyParagraph(),{at:[u[0]+1]}),R.getNodeType(s.children[0])!=="code"&&(Q.unwrapNodes(o),Q.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,u])},o.insertData=function(a){if(R.getSelectedNodeByType(o,"code")!=null){var l=a.getData("text/plain");B.insertText(o,l)}else r(a)},o},renderElems:[vke,yke],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=M(e);if(pd(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)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:M(e)[0].textContent||""}]}}},bke]},Ske=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Cke={menus:[{key:"fullScreen",factory:function(){return new Ske}}]},kke=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!re.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];Q.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(B.start(t,o))}},e}(),xke=[Owe,f2e,qCe,ZCe,nke,oke,F2e,cke,Z2e,k2e,wke,X2e,l2e,rwe,j2e,lke,Cke,{menus:[{key:"enter",factory:function(){return new kke}}]}];Vr("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Vr("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Hj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z4(e){var t={exports:{}};return e(t,t.exports),t.exports}var yl,kb,xb=function(e){return e&&e.Math==Math&&e},Re=xb(typeof globalThis=="object"&&globalThis)||xb(typeof window=="object"&&window)||xb(typeof self=="object"&&self)||xb(typeof Hj=="object"&&Hj)||function(){return this}()||Function("return this")(),Uj=Function.prototype,Q4=Uj.bind,$4=Uj.call,Eke=Q4&&Q4.bind($4),Qe=Q4?function(e){return e&&Eke($4,e)}:function(e){return e&&function(){return $4.apply(e,arguments)}},Xt=function(e){try{return!!e()}catch{return!0}},Dke=Qe({}.toString),Ake=Qe("".slice),ci=function(e){return Ake(Dke(e),8,-1)},eA=Re.Object,Vke=Qe("".split),Wj=Xt(function(){return!eA("z").propertyIsEnumerable(0)})?function(e){return ci(e)=="String"?Vke(e,""):eA(e)}:eA,Bke=Re.TypeError,Eb=function(e){if(e==null)throw Bke("Can't call method on "+e);return e},xd=function(e){return Wj(Eb(e))},_ke=Object.defineProperty,tA=function(e,t){try{_ke(Re,e,{value:t,configurable:!0,writable:!0})}catch{Re[e]=t}return t},bl=Re["__core-js_shared__"]||tA("__core-js_shared__",{}),nA=Z4(function(e){(e.exports=function(t,n){return bl[t]||(bl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Tke=Re.Object,Yg=function(e){return Tke(Eb(e))},Pke=Qe({}.hasOwnProperty),Vn=Object.hasOwn||function(e,t){return Pke(Yg(e),t)},Nke=0,Oke=Math.random(),Ike=Qe(1 .toString),rA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ike(++Nke+Oke,36)},en=function(e){return typeof e=="function"},Fke=function(e){return en(e)?e:void 0},Xg=function(e,t){return arguments.length<2?Fke(Re[e]):Re[e]&&Re[e][t]},oA=Xg("navigator","userAgent")||"",Gj=Re.process,Kj=Re.Deno,qj=Gj&&Gj.versions||Kj&&Kj.version,Yj=qj&&qj.v8;Yj&&(kb=(yl=Yj.split("."))[0]>0&&yl[0]<4?1:+(yl[0]+yl[1])),!kb&&oA&&(!(yl=oA.match(/Edge\/(\d+)/))||yl[1]>=74)&&(yl=oA.match(/Chrome\/(\d+)/))&&(kb=+yl[1]);var Db,aA=kb,iA=!!Object.getOwnPropertySymbols&&!Xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aA&&aA<41}),lA=iA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jg=nA("wks"),pu=Re.Symbol,Xj=pu&&pu.for,Rke=lA?pu:pu&&pu.withoutSetter||rA,Xn=function(e){if(!Vn(Jg,e)||!iA&&typeof Jg[e]!="string"){var t="Symbol."+e;iA&&Vn(pu,e)?Jg[e]=pu[e]:Jg[e]=lA&&Xj?Xj(t):Rke(t)}return Jg[e]},tn=function(e){return typeof e=="object"?e!==null:en(e)},Lke=Re.String,Mke=Re.TypeError,Tr=function(e){if(tn(e))return e;throw Mke(Lke(e)+" is not an object")},wl=!Xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sA=Re.document,jke=tn(sA)&&tn(sA.createElement),uA=function(e){return jke?sA.createElement(e):{}},Jj=!wl&&!Xt(function(){return Object.defineProperty(uA("div"),"a",{get:function(){return 7}}).a!=7}),Zg=Function.prototype.call,Fn=Zg.bind?Zg.bind(Zg):function(){return Zg.apply(Zg,arguments)},Ab=Qe({}.isPrototypeOf),zke=Re.Object,cA=lA?function(e){return typeof e=="symbol"}:function(e){var t=Xg("Symbol");return en(t)&&Ab(t.prototype,zke(e))},Hke=Re.String,dA=function(e){try{return Hke(e)}catch{return"Object"}},Uke=Re.TypeError,fA=function(e){if(en(e))return e;throw Uke(dA(e)+" is not a function")},Qg=function(e,t){var n=e[t];return n==null?void 0:fA(n)},Wke=Re.TypeError,Gke=Re.TypeError,Kke=Xn("toPrimitive"),hA=function(e){var t=function(n,r){if(!tn(n)||cA(n))return n;var o,a=Qg(n,Kke);if(a){if(o=Fn(a,n,r),!tn(o)||cA(o))return o;throw Gke("Can't convert object to primitive value")}return function(l,s){var u,c;if(en(u=l.toString)&&!tn(c=Fn(u,l))||en(u=l.valueOf)&&!tn(c=Fn(u,l)))return c;throw Wke("Can't convert object to primitive value")}(n)}(e,"string");return cA(t)?t:t+""},qke=Re.TypeError,Zj=Object.defineProperty,vu={f:wl?Zj:function(e,t,n){if(Tr(e),t=hA(t),Tr(n),Jj)try{return Zj(e,t,n)}catch{}if("get"in n||"set"in n)throw qke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yke=Math.ceil,Xke=Math.floor,$g=function(e){var t=+e;return t!=t||t===0?0:(t>0?Xke:Yke)(t)},Jke=Math.max,Zke=Math.min,gA=function(e,t){var n=$g(e);return n<0?Jke(n+t,0):Zke(n,t)},Qke=Math.min,Qj=function(e){return e>0?Qke($g(e),9007199254740991):0},Ed=function(e){return Qj(e.length)},$j=function(e){return function(t,n,r){var o,a=xd(t),l=Ed(a),s=gA(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ez={includes:$j(!0),indexOf:$j(!1)},Vb={},$ke=ez.indexOf,tz=Qe([].push),nz=function(e,t){var n,r=xd(e),o=0,a=[];for(n in r)!Vn(Vb,n)&&Vn(r,n)&&tz(a,n);for(;t.length>o;)Vn(r,n=t[o++])&&(~$ke(a,n)||tz(a,n));return a},Bb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],exe=Object.keys||function(e){return nz(e,Bb)},txe=wl?Object.defineProperties:function(e,t){Tr(e);for(var n,r=xd(t),o=exe(t),a=o.length,l=0;a>l;)vu.f(e,n=o[l++],r[n]);return e},nxe=Xg("document","documentElement"),rz=nA("keys"),mA=function(e){return rz[e]||(rz[e]=rA(e))},oz=mA("IE_PROTO"),pA=function(){},az=function(e){return"<script>"+e+"<\/script>"},iz=function(e){e.write(az("")),e.close();var t=e.parentWindow.Object;return e=null,t},_b=function(){try{Db=new ActiveXObject("htmlfile")}catch{}var e,t;_b=typeof document<"u"?document.domain&&Db?iz(Db):((t=uA("iframe")).style.display="none",nxe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(az("document.F=Object")),e.close(),e.F):iz(Db);for(var n=Bb.length;n--;)delete _b.prototype[Bb[n]];return _b()};Vb[oz]=!0;var vA=Object.create||function(e,t){var n;return e!==null?(pA.prototype=Tr(e),n=new pA,pA.prototype=null,n[oz]=e):n=_b(),t===void 0?n:txe(n,t)},yA=Xn("unscopables"),bA=Array.prototype;bA[yA]==null&&vu.f(bA,yA,{configurable:!0,value:vA(null)});var em=function(e){bA[yA][e]=!0},Dd={},rxe=Qe(Function.toString);en(bl.inspectSource)||(bl.inspectSource=function(e){return rxe(e)});var Tb,tm,Pb,wA=bl.inspectSource,lz=Re.WeakMap,sz=en(lz)&&/native code/.test(wA(lz)),Nb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sl=wl?function(e,t,n){return vu.f(e,t,Nb(1,n))}:function(e,t,n){return e[t]=n,e},SA=Re.TypeError,oxe=Re.WeakMap;if(sz||bl.state){var yu=bl.state||(bl.state=new oxe),axe=Qe(yu.get),uz=Qe(yu.has),ixe=Qe(yu.set);Tb=function(e,t){if(uz(yu,e))throw new SA("Object already initialized");return t.facade=e,ixe(yu,e,t),t},tm=function(e){return axe(yu,e)||{}},Pb=function(e){return uz(yu,e)}}else{var Ad=mA("state");Vb[Ad]=!0,Tb=function(e,t){if(Vn(e,Ad))throw new SA("Object already initialized");return t.facade=e,Sl(e,Ad,t),t},tm=function(e){return Vn(e,Ad)?e[Ad]:{}},Pb=function(e){return Vn(e,Ad)}}var bu,cz,dz,xa={set:Tb,get:tm,has:Pb,enforce:function(e){return Pb(e)?tm(e):Tb(e,{})},getterFor:function(e){return function(t){var n;if(!tn(t)||(n=tm(t)).type!==e)throw SA("Incompatible receiver, "+e+" required");return n}}},fz={}.propertyIsEnumerable,hz=Object.getOwnPropertyDescriptor,lxe={f:hz&&!fz.call({1:2},1)?function(e){var t=hz(this,e);return!!t&&t.enumerable}:fz},gz=Object.getOwnPropertyDescriptor,mz={f:wl?gz:function(e,t){if(e=xd(e),t=hA(t),Jj)try{return gz(e,t)}catch{}if(Vn(e,t))return Nb(!Fn(lxe.f,e,t),e[t])}},pz=Function.prototype,sxe=wl&&Object.getOwnPropertyDescriptor,vz=Vn(pz,"name"),CA={PROPER:vz&&(function(){}).name==="something",CONFIGURABLE:vz&&(!wl||wl&&sxe(pz,"name").configurable)},di=Z4(function(e){var t=CA.CONFIGURABLE,n=xa.get,r=xa.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;en(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vn(s,"name")||t&&s.name!==h)&&Sl(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==Re?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Sl(a,l,s)):f?a[l]=s:tA(l,s)})(Function.prototype,"toString",function(){return en(this)&&n(this).source||wA(this)})}),uxe=Bb.concat("length","prototype"),Ob={f:Object.getOwnPropertyNames||function(e){return nz(e,uxe)}},cxe={f:Object.getOwnPropertySymbols},dxe=Qe([].concat),fxe=Xg("Reflect","ownKeys")||function(e){var t=Ob.f(Tr(e)),n=cxe.f;return n?dxe(t,n(e)):t},hxe=function(e,t){for(var n=fxe(t),r=vu.f,o=mz.f,a=0;a<n.length;a++){var l=n[a];Vn(e,l)||r(e,l,o(t,l))}},gxe=/#|\.prototype\./,nm=function(e,t){var n=pxe[mxe(e)];return n==yxe||n!=vxe&&(en(t)?Xt(t):!!t)},mxe=nm.normalize=function(e){return String(e).replace(gxe,".").toLowerCase()},pxe=nm.data={},vxe=nm.NATIVE="N",yxe=nm.POLYFILL="P",kA=nm,bxe=mz.f,Cl=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?Re:c?Re[s]||tA(s,{}):(Re[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=bxe(n,r))&&l.value:n[r],!kA(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;hxe(a,o)}(e.sham||o&&o.sham)&&Sl(a,"sham",!0),di(n,r,a,e)}},wxe=!Xt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yz=mA("IE_PROTO"),xA=Re.Object,Sxe=xA.prototype,Ib=wxe?xA.getPrototypeOf:function(e){var t=Yg(e);if(Vn(t,yz))return t[yz];var n=t.constructor;return en(n)&&t instanceof n?n.prototype:t instanceof xA?Sxe:null},EA=Xn("iterator"),bz=!1;[].keys&&("next"in(dz=[].keys())?(cz=Ib(Ib(dz)))!==Object.prototype&&(bu=cz):bz=!0);var Cxe=bu==null||Xt(function(){var e={};return bu[EA].call(e)!==e});Cxe&&(bu={}),en(bu[EA])||di(bu,EA,function(){return this});var DA={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:bz},kxe=vu.f,wz=Xn("toStringTag"),AA=function(e,t,n){e&&!Vn(e=n?e:e.prototype,wz)&&kxe(e,wz,{configurable:!0,value:t})},xxe=DA.IteratorPrototype,Exe=function(){return this},Dxe=Re.String,Axe=Re.TypeError,Fb=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Qe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Tr(r),function(a){if(typeof a=="object"||en(a))return a;throw Axe("Can't set "+Dxe(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Vxe=CA.PROPER,Bxe=CA.CONFIGURABLE,Sz=DA.IteratorPrototype,VA=DA.BUGGY_SAFARI_ITERATORS,rm=Xn("iterator"),_xe=function(){return this},Cz=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=vA(xxe,{next:Nb(1,m)}),AA(v,S,!1),Dd[S]=Exe})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!VA&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[rm]||g["@@iterator"]||o&&g[o],p=!VA&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=Ib(y.call(new e)))!==Object.prototype&&s.next&&(Ib(s)!==Sz&&(Fb?Fb(s,Sz):en(s[rm])||di(s,rm,_xe)),AA(s,d,!0)),Vxe&&o=="values"&&h&&h.name!=="values"&&(Bxe?Sl(g,"name","values"):(f=!0,p=function(){return Fn(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||Cl({target:t,proto:!0,forced:VA||f},u)),g[rm]!==p&&di(g,rm,p,{name:o}),Dd[t]=p,u},Txe=xa.set,Pxe=xa.getterFor("Array Iterator"),om=Cz(Array,"Array",function(e,t){Txe(this,{type:"Array Iterator",target:xd(e),index:0,kind:t})},function(){var e=Pxe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Dd.Arguments=Dd.Array,em("keys"),em("values"),em("entries");var kz={};kz[Xn("toStringTag")]="z";var BA=String(kz)==="[object z]",Nxe=Xn("toStringTag"),Oxe=Re.Object,Ixe=ci(function(){return arguments}())=="Arguments",Rb=BA?ci:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=Oxe(e),Nxe))=="string"?n:Ixe?ci(t):(r=ci(t))=="Object"&&en(t.callee)?"Arguments":r},Fxe=BA?{}.toString:function(){return"[object "+Rb(this)+"]"};BA||di(Object.prototype,"toString",Fxe,{unsafe:!0});var Rxe=Re.String,fi=function(e){if(Rb(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rxe(e)},Lxe=Qe("".charAt),xz=Qe("".charCodeAt),Mxe=Qe("".slice),jxe=function(e){return function(t,n){var r,o,a=fi(Eb(t)),l=$g(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=xz(a,l))<55296||r>56319||l+1===s||(o=xz(a,l+1))<56320||o>57343?e?Lxe(a,l):r:e?Mxe(a,l,l+2):o-56320+(r-55296<<10)+65536}},Ez={charAt:jxe(!0)},zxe=Ez.charAt,Hxe=xa.set,Uxe=xa.getterFor("String Iterator");Cz(String,"String",function(e){Hxe(this,{type:"String Iterator",string:fi(e),index:0})},function(){var e,t=Uxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=zxe(n,r),t.index+=e.length,{value:e,done:!1})});var _A=function(e,t,n){for(var r in t)di(e,r,t[r],n);return e},Wxe=Re.Array,Gxe=Math.max,Dz=Ob.f,Az=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kxe={f:function(e){return Az&&ci(e)=="Window"?function(t){try{return Dz(t)}catch{return function(r,o,a){for(var l,s,u,c,d=Ed(r),f=gA(void 0,d),g=gA(d,d),h=Wxe(Gxe(g-f,0)),p=0;f<g;f++,p++)l=h,s=p,u=r[f],(c=hA(s))in l?vu.f(l,c,Nb(0,u)):l[c]=u;return h.length=p,h}(Az)}}(e):Dz(xd(e))}},Vz=Xt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Lb=Object.isExtensible,wu=Xt(function(){Lb(1)})||Vz?function(e){return!!tn(e)&&(!Vz||ci(e)!="ArrayBuffer")&&(!Lb||Lb(e))}:Lb,qxe=!Xt(function(){return Object.isExtensible(Object.preventExtensions({}))}),TA=Z4(function(e){var t=vu.f,n=!1,r=rA("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=Ob.f,u=Qe([].splice),c={};c[r]=1,s(c).length&&(Ob.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Cl({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kxe.f}))},fastKey:function(s,u){if(!tn(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Vn(s,r)){if(!wu(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Vn(s,r)){if(!wu(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return qxe&&n&&wu(s)&&!Vn(s,r)&&a(s),s}};Vb[r]=!0}),Bz=Qe(Qe.bind),PA=function(e,t){return fA(e),t===void 0?e:Bz?Bz(e,t):function(){return e.apply(t,arguments)}},Yxe=Xn("iterator"),Xxe=Array.prototype,Jxe=Xn("iterator"),_z=function(e){if(e!=null)return Qg(e,Jxe)||Qg(e,"@@iterator")||Dd[Rb(e)]},Zxe=Re.TypeError,Tz=function(e,t,n){var r,o;Tr(e);try{if(!(r=Qg(e,"return"))){if(t==="throw")throw n;return n}r=Fn(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Tr(r),n},Qxe=Re.TypeError,Mb=function(e,t){this.stopped=e,this.result=t},Pz=Mb.prototype,Nz=function(e,t,n){var r,o,a,l,s,u,c,d,f=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=PA(t,f),v=function(m){return r&&Tz(r,"normal",m),new Mb(!0,m)},b=function(m){return g?(Tr(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(h)r=e;else{if(!(o=_z(e)))throw Qxe(dA(e)+" is not iterable");if((d=o)!==void 0&&(Dd.Array===d||Xxe[Yxe]===d)){for(a=0,l=Ed(e);l>a;a++)if((s=b(e[a]))&&Ab(Pz,s))return s;return new Mb(!1)}r=function(m,w){var S=arguments.length<2?_z(m):w;if(fA(S))return Tr(Fn(S,m));throw Zxe(dA(m)+" is not iterable")}(e,o)}for(u=r.next;!(c=Fn(u,r)).done;){try{s=b(c.value)}catch(m){Tz(r,"throw",m)}if(typeof s=="object"&&s&&Ab(Pz,s))return s}return new Mb(!1)},$xe=Re.TypeError,Oz=function(e,t){if(Ab(t,e))return e;throw $xe("Incorrect invocation")},Iz=Xn("iterator"),Fz=!1;try{var e1e=0,Rz={next:function(){return{done:!!e1e++}},return:function(){Fz=!0}};Rz[Iz]=function(){return this},Array.from(Rz,function(){throw 2})}catch{}var NA=Array.isArray||function(e){return ci(e)=="Array"},Lz=function(){},t1e=[],Mz=Xg("Reflect","construct"),OA=/^\s*(?:class|function)\b/,n1e=Qe(OA.exec),r1e=!OA.exec(Lz),am=function(e){if(!en(e))return!1;try{return Mz(Lz,t1e,e),!0}catch{return!1}},o1e=!Mz||Xt(function(){var e;return am(am.call)||!am(Object)||!am(function(){e=!0})||e})?function(e){if(!en(e))return!1;switch(Rb(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return r1e||!!n1e(OA,wA(e))}:am,a1e=Xn("species"),jz=Re.Array,zz=function(e,t){return new(function(n){var r;return NA(n)&&(r=n.constructor,(o1e(r)&&(r===jz||NA(r.prototype))||tn(r)&&(r=r[a1e])===null)&&(r=void 0)),r===void 0?jz:r}(e))(t===0?0:t)},Hz=Qe([].push),IA=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=Yg(u),y=Wj(p),v=PA(c,d),b=Ed(y),m=0,w=f||zz,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:Hz(S,g)}else switch(e){case 4:return!1;case 7:Hz(S,g)}return a?-1:r||o?o:S}},FA={filter:IA(2),find:IA(5),findIndex:IA(6)},jb=TA.getWeakData,i1e=xa.set,l1e=xa.getterFor,s1e=FA.find,u1e=FA.findIndex,c1e=Qe([].splice),d1e=0,zb=function(e){return e.frozen||(e.frozen=new Uz)},Uz=function(){this.entries=[]},RA=function(e,t){return s1e(e.entries,function(n){return n[0]===t})};Uz.prototype={get:function(e){var t=RA(this,e);if(t)return t[1]},has:function(e){return!!RA(this,e)},set:function(e,t){var n=RA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=u1e(this.entries,function(n){return n[0]===e});return~t&&c1e(this.entries,t,1),!!~t}};var im,Wz={getConstructor:function(e,t,n,r){var o=e(function(u,c){Oz(u,a),i1e(u,{type:t,id:d1e++,frozen:void 0}),c!=null&&Nz(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=l1e(t),s=function(u,c,d){var f=l(u),g=jb(Tr(c),!0);return g===!0?zb(f).set(c,d):g[f.id]=d,u};return _A(a,{delete:function(u){var c=l(this);if(!tn(u))return!1;var d=jb(u);return d===!0?zb(c).delete(u):d&&Vn(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!tn(u))return!1;var d=jb(u);return d===!0?zb(c).has(u):d&&Vn(d,c.id)}}),_A(a,n?{get:function(u){var c=l(this);if(tn(u)){var d=jb(u);return d===!0?zb(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},Hb=xa.enforce,f1e=!Re.ActiveXObject&&"ActiveXObject"in Re,Gz=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h1e=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=Re[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=Qe(s[v]);di(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!tn(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!tn(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!tn(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(kA(e,!en(l)||!(o||s.forEach&&!Xt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),TA.enable();else if(kA(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=Xt(function(){f.has(1)}),p=function(v,b){if(!Fz)return!1;var m=!1;try{var w={};w[Iz]=function(){return{next:function(){return{done:m=!0}}}},function(S){new l(S)}(w)}catch{}return m}(),y=!o&&Xt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){Oz(v,s);var m=function(w,S,C){var x,k;return Fb&&en(x=S.constructor)&&x!==C&&tn(k=x.prototype)&&k!==C.prototype&&Fb(w,k),w}(new l,v,u);return b!=null&&Nz(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Cl({global:!0,forced:u!=l},c),AA(u,e),o||n.setStrong(u,e,r),u}("WeakMap",Gz,Wz);if(sz&&f1e){im=Wz.getConstructor(Gz,"WeakMap",!0),TA.enable();var lm=h1e.prototype,Kz=Qe(lm.delete),Ub=Qe(lm.has),qz=Qe(lm.get),Yz=Qe(lm.set);_A(lm,{delete:function(e){if(tn(e)&&!wu(e)){var t=Hb(this);return t.frozen||(t.frozen=new im),Kz(this,e)||t.frozen.delete(e)}return Kz(this,e)},has:function(e){if(tn(e)&&!wu(e)){var t=Hb(this);return t.frozen||(t.frozen=new im),Ub(this,e)||t.frozen.has(e)}return Ub(this,e)},get:function(e){if(tn(e)&&!wu(e)){var t=Hb(this);return t.frozen||(t.frozen=new im),Ub(this,e)?qz(this,e):t.frozen.get(e)}return qz(this,e)},set:function(e,t){if(tn(e)&&!wu(e)){var n=Hb(this);n.frozen||(n.frozen=new im),Ub(this,e)?Yz(this,e,t):n.frozen.set(e,t)}else Yz(this,e,t);return this}})}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},LA=uA("span").classList,Jz=LA&&LA.constructor&&LA.constructor.prototype,g1e=Jz===Object.prototype?void 0:Jz,MA=Xn("iterator"),Zz=Xn("toStringTag"),jA=om.values,Qz=function(e,t){if(e){if(e[MA]!==jA)try{Sl(e,MA,jA)}catch{e[MA]=jA}if(e[Zz]||Sl(e,Zz,t),Xz[t]){for(var n in om)if(e[n]!==om[n])try{Sl(e,n,om[n])}catch{e[n]=om[n]}}}};for(var zA in Xz)Qz(Re[zA]&&Re[zA].prototype,zA);Qz(g1e,"DOMTokenList");var HA=new WeakMap,m1e={type:"list-item",renderElem:function(e,t,n){HA.set(e,n);var r=e,o=r.level,a=o===void 0?0:o,l=r.ordered,s={margin:"5px 0 5px "+20*a+"px"},u="";if(l!==void 0&&l){var c=function(f,g){var h=g,p=h.type,y=h.level,v=y===void 0?0:y,b=h.ordered,m=b!==void 0&&b;if(!m)return-1;var w=1,S=g,C=R.findPath(f,S);if(C[0]===0)return 1;for(;C[0]>0;){var x=Y.previous(C),k=B.node(f,x);if(k==null)break;var E=k[0],A=E.level,N=A===void 0?0:A,V=E.type,D=E.ordered;if(V!==p||N<v)break;if(N===v){if(D!==m)break;w++}S=E,C=x}return w}(n,e);u=c+"."}else u=function(f){f===void 0&&(f=0);var g="";switch(f){case 0:g="•";break;case 1:g="◦";break;default:g="▪"}return g}(a);var d=function(f){var g,h=f.children||[],p=h.length;if(p===0)return"";for(var y=0;y<p&&!g;y++){var v=h[y];Se.isText(v)&&(g=v)}return g==null?"":g.color||""}(e);return Fe("div",{style:s},Fe("span",{contentEditable:!1,style:{marginRight:"0.5em",color:d},"data-w-e-reserve":!0},u),Fe("span",null,t))}},UA=function(e,t){return UA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},UA(e,t);/*! *****************************************************************************
125
125
  Copyright (c) Microsoft Corporation.
126
126
 
127
127
  Permission to use, copy, modify, and/or distribute this software for any
@@ -134,12 +134,12 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,b
134
134
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
135
135
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
136
136
  PERFORMANCE OF THIS SOFTWARE.
137
- ***************************************************************************** */};function $z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}UA(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function eH(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 sm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function tH(e){return B.nodes(e,{at:e.selection||void 0,match:function(t){return R.findPath(e,t).length===1}})}var m1e=ez.includes;Cl({target:"Array",proto:!0},{includes:function(e){return m1e(this,e,arguments.length>1?arguments[1]:void 0)}}),em("includes");var nH,WA,p1e=function(){var e=Tr(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},GA=Re.RegExp,rH=Xt(function(){var e=GA("a","y");return e.lastIndex=2,e.exec("abcd")!=null});rH||Xt(function(){return!GA("a","y").sticky});var v1e={BROKEN_CARET:rH||Xt(function(){var e=GA("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},y1e=Re.RegExp,b1e=Xt(function(){var e=y1e(".","s");return!(e.dotAll&&e.exec(`
138
- `)&&e.flags==="s")}),w1e=Re.RegExp,S1e=Xt(function(){var e=w1e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),C1e=xa.get,k1e=nA("native-string-replace",String.prototype.replace),Wb=RegExp.prototype.exec,KA=Wb,x1e=Qe("".charAt),E1e=Qe("".indexOf),D1e=Qe("".replace),qA=Qe("".slice),YA=(WA=/b*/g,Fn(Wb,nH=/a/,"a"),Fn(Wb,WA,"a"),nH.lastIndex!==0||WA.lastIndex!==0),oH=v1e.BROKEN_CARET,XA=/()??/.exec("")[1]!==void 0;(YA||XA||oH||b1e||S1e)&&(KA=function(e){var t,n,r,o,a,l,s,u=this,c=C1e(u),d=fi(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=Fn(KA,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=oH&&u.sticky,p=Fn(p1e,u),y=u.source,v=0,b=d;if(h&&(p=D1e(p,"y",""),E1e(p,"g")===-1&&(p+="g"),b=qA(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&x1e(d,u.lastIndex-1)!==`
139
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),XA&&(n=new RegExp("^"+y+"$(?!\\s)",p)),YA&&(r=u.lastIndex),o=Fn(Wb,h?n:u,b),h?o?(o.input=qA(o.input,v),o[0]=qA(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:YA&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),XA&&o&&o.length>1&&Fn(k1e,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=vA(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Gb=KA;Cl({target:"RegExp",proto:!0,forced:/./.exec!==Gb},{exec:Gb});var aH=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return R.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(B.isVoid(t,n)&&B.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Q.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Q.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),A1e='<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>',V1e='<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>',B1e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=ge("listModule.unOrderedList"),n.iconSvg=A1e,n}return $z(t,e),t}(aH),_1e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=ge("listModule.orderedList"),n.iconSvg=V1e,n}return $z(t,e),t}(aH),T1e={key:"bulletedList",factory:function(){return new B1e}},P1e={key:"numberedList",factory:function(){return new _1e}},iH=[],N1e={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,a=o!==void 0&&o?"ol":"ul",l=function(c){var d=HA.get(c);if(d==null)return 0;var f=c,g=f.type,h=f.ordered,p=h!==void 0&&h,y=f.level,v=y===void 0?0:y,b=R.findPath(d,c);if(b[0]===0)return v+1;var m=Y.previous(b),w=B.node(d,m);if(!w)return 0;var S=sm(w,1)[0];if(R.getNodeType(S)!==g)return v+1;var C=S,x=C.ordered,k=x!==void 0&&x,E=C.level,A=E===void 0?0:E;return A<v?v-A:A>v?0:A===v?k===p?0:1:0}(e);if(l>0)for(var s=0;s<l;s++)n+="<"+a+">",iH.push(a);var u=function(c){var d=HA.get(c);if(d==null)return 0;var f=c,g=f.type,h=f.ordered,p=h!==void 0&&h,y=f.level,v=y===void 0?0:y,b=R.findPath(d,c);if(b[0]===d.children.length-1)return v+1;var m=Y.next(b),w=B.node(d,m);if(!w)return 0;var S=sm(w,1)[0];if(R.getNodeType(S)!==g)return v+1;var C=S,x=C.ordered,k=x!==void 0&&x,E=C.level,A=E===void 0?0:E;return A<v?v-A:A>v?0:A===v?k===p?0:1:0}(e);if(u>0)for(s=0;s<u;s++)r+="</"+iH.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},O1e=Xn("species"),I1e=FA.filter,F1e=aA>=51||!Xt(function(){var e=[];return(e.constructor={})[O1e]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Cl({target:"Array",proto:!0,forced:!F1e},{filter:function(e){return I1e(this,e,arguments.length>1?arguments[1]:void 0)}});var JA=Function.prototype,lH=JA.apply,R1e=JA.bind,sH=JA.call,L1e=typeof Reflect=="object"&&Reflect.apply||(R1e?sH.bind(lH):function(){return sH.apply(lH,arguments)}),uH=(Xn("species"),RegExp.prototype),M1e=Ez.charAt,j1e=function(e,t,n){return t+(n?M1e(e,t).length:1)},z1e=Math.floor,ZA=Qe("".charAt),H1e=Qe("".replace),QA=Qe("".slice),U1e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,W1e=/\$([$&'`]|\d{1,2})/g,G1e=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=W1e;return o!==void 0&&(o=Yg(o),u=U1e),H1e(a,u,function(c,d){var f;switch(ZA(d,0)){case"$":return"$";case"&":return e;case"`":return QA(t,0,n);case"'":return QA(t,l);case"<":f=o[QA(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=z1e(g/10);return h===0?c:h<=s?r[h-1]===void 0?ZA(d,1):r[h-1]+ZA(d,1):c}f=r[g-1]}return f===void 0?"":f})},K1e=Re.TypeError,q1e=function(e,t){var n=e.exec;if(en(n)){var r=Fn(n,e,t);return r!==null&&Tr(r),r}if(ci(e)==="RegExp")return Fn(Gb,e,t);throw K1e("RegExp#exec called on incompatible receiver")},$A=Xn("replace"),Y1e=Math.max,X1e=Math.min,J1e=Qe([].concat),eV=Qe([].push),cH=Qe("".indexOf),dH=Qe("".slice),Z1e="a".replace(/./,"$0")==="$0",fH=!!/./[$A]&&/./[$A]("a","$0")==="";(function(e,t,n,r){var o=Xn(e),a=!Xt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Xt(function(){var c=!1,d=/a/;return d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Qe(/./[o]),u=function(c,d,f){var g=fH?"$":"$0";return[function(h,p){var y=Eb(this),v=h==null?void 0:Qg(h,$A);return v?Fn(v,h,y,p):Fn(d,fi(y),h,p)},function(h,p){var y=Tr(this),v=fi(h);if(typeof p=="string"&&cH(p,g)===-1&&cH(p,"$<")===-1){var b=f(d,y,v,p);if(b.done)return b.value}var m=en(p);m||(p=fi(p));var w=y.global;if(w){var S=y.unicode;y.lastIndex=0}for(var C=[];;){var x=q1e(y,v);if(x===null||(eV(C,x),!w))break;fi(x[0])===""&&(y.lastIndex=j1e(v,Qj(y.lastIndex),S))}for(var k,E="",A=0,N=0;N<C.length;N++){for(var V=fi((x=C[N])[0]),D=Y1e(X1e($g(x.index),v.length),0),P=[],O=1;O<x.length;O++)eV(P,(k=x[O])===void 0?k:String(k));var F=x.groups;if(m){var H=J1e([V],P,D,v);F!==void 0&&eV(H,F);var J=fi(L1e(p,void 0,H))}else J=G1e(V,v,D,P,F,p);D>=A&&(E+=dH(v,A,D)+J,A=D+V.length)}return E+dH(v,A)}]}(0,""[e],function(c,d,f,g,h){var p=Qe(c),y=d.exec;return y===Gb||y===uH.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});di(String.prototype,e,u[0]),di(uH,o,u[1])}})("replace",0,!!Xt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Z1e||fH);var Q1e=Re.TypeError,hH=function(e,t,n,r,o,a,l,s){for(var u,c,d=o,f=0,g=!!l&&PA(l,s);f<r;){if(f in n){if(u=g?g(n[f],f,t):n[f],a>0&&NA(u))c=Ed(u),d=hH(e,t,u,c,d,a-1)-1;else{if(d>=9007199254740991)throw Q1e("Exceed the acceptable array length");e[d]=u}d++}f++}return d},$1e=hH;function tV(e){return e.length?e[0].tagName.toLowerCase():""}Cl({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Yg(this),n=Ed(t),r=zz(t,0);return r.length=$1e(r,t,t,n,0,e===void 0?1:$g(e)),r}}),em("flat"),Cl({global:!0},{globalThis:Re}),ao&&(M.fn.append=ao),oo&&(M.fn.attr=oo),Dc&&(M.fn.parent=Dc);var eEe={renderElems:[g1e],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(a){var l=o.selection;if(l!=null)if(re.isExpanded(l))t(a);else{var s=R.getSelectedNodeByType(o,"list-item");if(s!=null)if(l.focus.offset!==0)t(a);else{var u=s.level,c=u===void 0?0:u;c>0?Q.setNodes(o,{level:c-1}):Q.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(a)}else t(a)},o.handleTab=function(){var a,l,s,u,c=o.selection;if(c!=null){if(re.isCollapsed(c)){var d=R.getSelectedNodeByType(o,"list-item");if(d==null)return void n();if(c.focus.offset===0){var f=d.level,g=f===void 0?0:f;return void Q.setNodes(o,{level:g+1})}}if(re.isExpanded(c)){var h=0,p=!1;try{for(var y=eH(tH(o)),v=y.next();!v.done;v=y.next()){var b=sm(v.value,1)[0];R.getNodeType(b)==="list-item"?h++:p=!0}}catch(k){a={error:k}}finally{try{v&&!v.done&&(l=y.return)&&l.call(y)}finally{if(a)throw a.error}}if(p||h<=1)return void n();try{for(var m=eH(tH(o)),w=m.next();!w.done;w=m.next()){var S=sm(w.value,2),C=(b=S[0],S[1]),x=b.level;g=x===void 0?0:x,Q.setNodes(o,{level:g+1},{at:C})}}catch(k){s={error:k}}finally{try{w&&!w.done&&(u=m.return)&&u.call(m)}finally{if(s)throw s.error}}}else n()}else n()},o.normalizeNode=function(a){var l=sm(a,2),s=l[0],u=l[1],c=R.getNodeType(s);return c!=="bulleted-list"&&c!=="numbered-list"||Q.unwrapNodes(o,{at:u}),r([s,u])},o},menus:[T1e,P1e],elemsToHtml:[N1e],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=M(e);(t=t.filter(function(l){return!!Se.isText(l)||!!n.isInline(l)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(l){return tV(l.parent())==="ol"}(r),a=function(l){for(var s=0,u=l.parent(),c=tV(u);c==="ul"||c==="ol";)c=tV(u=u.parent()),s++;return s-1}(r);return{type:"list-item",ordered:o,level:a,children:t}}}]},gH=gs(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Array]",l="[object Boolean]",s="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",g="[object Object]",h="[object Promise]",p="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",m="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",C=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[o]=k[a]=k[w]=k[l]=k[S]=k[s]=k[u]=k[c]=k[d]=k[f]=k[g]=k[p]=k[y]=k[v]=k[m]=!1;var E=typeof Et=="object"&&Et&&Et.Object===Object&&Et,A=typeof self=="object"&&self&&self.Object===Object&&self,N=E||A||Function("return this")(),V=t&&!t.nodeType&&t,D=V&&e&&!e.nodeType&&e,P=D&&D.exports===V,O=P&&E.process,F=function(){try{return O&&O.binding&&O.binding("util")}catch{}}(),H=F&&F.isTypedArray;function J(q,te){for(var fe=-1,Ne=q==null?0:q.length;++fe<Ne;)if(te(q[fe],fe,q))return!0;return!1}function j(q){var te=-1,fe=Array(q.size);return q.forEach(function(Ne,bt){fe[++te]=[bt,Ne]}),fe}function z(q){var te=-1,fe=Array(q.size);return q.forEach(function(Ne){fe[++te]=Ne}),fe}var L=Array.prototype,_=Function.prototype,T=Object.prototype,I=N["__core-js_shared__"],U=_.toString,$=T.hasOwnProperty,W=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}(),Z=T.toString,ne=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=P?N.Buffer:void 0,de=N.Symbol,G=N.Uint8Array,se=T.propertyIsEnumerable,ee=L.splice,oe=de?de.toStringTag:void 0,ue=Object.getOwnPropertySymbols,we=me?me.isBuffer:void 0,Ee=function(q,te){return function(fe){return q(te(fe))}}(Object.keys,Object),Ae=Yl(N,"DataView"),Oe=Yl(N,"Map"),Be=Yl(N,"Promise"),Le=Yl(N,"Set"),vt=Yl(N,"WeakMap"),_n=Yl(Object,"create"),br=ki(Ae),qo=ki(Oe),bi=ki(Be),Yo=ki(Le),Oa=ki(vt),wi=de?de.prototype:void 0,lr=wi?wi.valueOf:void 0;function sr(q){var te=-1,fe=q==null?0:q.length;for(this.clear();++te<fe;){var Ne=q[te];this.set(Ne[0],Ne[1])}}function ur(q){var te=-1,fe=q==null?0:q.length;for(this.clear();++te<fe;){var Ne=q[te];this.set(Ne[0],Ne[1])}}function wr(q){var te=-1,fe=q==null?0:q.length;for(this.clear();++te<fe;){var Ne=q[te];this.set(Ne[0],Ne[1])}}function Hn(q){var te=-1,fe=q==null?0:q.length;for(this.__data__=new wr;++te<fe;)this.add(q[te])}function xo(q){var te=this.__data__=new ur(q);this.size=te.size}function Bp(q,te){var fe=xi(q),Ne=!fe&&_2(q),bt=!fe&&!Ne&&Ia(q),et=!fe&&!Ne&&!bt&&Ra(q),K=fe||Ne||bt||et,ae=K?function(ot,zt){for(var _t=-1,ct=Array(ot);++_t<ot;)ct[_t]=zt(_t);return ct}(q.length,String):[],be=ae.length;for(var De in q)!$.call(q,De)||K&&(De=="length"||bt&&(De=="offset"||De=="parent")||et&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||_p(De,be))||ae.push(De);return ae}function ql(q,te){for(var fe=q.length;fe--;)if(sf(q[fe][0],te))return fe;return-1}function Si(q){return q==null?q===void 0?"[object Undefined]":"[object Null]":oe&&oe in Object(q)?function(te){var fe=$.call(te,oe),Ne=te[oe];try{te[oe]=void 0;var bt=!0}catch{}var et=Z.call(te);return bt&&(fe?te[oe]=Ne:delete te[oe]),et}(q):function(te){return Z.call(te)}(q)}function af(q){return Xl(q)&&Si(q)==o}function zu(q,te,fe,Ne,bt){return q===te||(q==null||te==null||!Xl(q)&&!Xl(te)?q!=q&&te!=te:function(et,K,ae,be,De,ot){var zt=xi(et),_t=xi(K),ct=zt?a:eo(et),Tn=_t?a:eo(K),cr=(ct=ct==o?g:ct)==g,Hu=(Tn=Tn==o?g:Tn)==g,Ei=ct==Tn;if(Ei&&Ia(et)){if(!Ia(K))return!1;zt=!0,cr=!1}if(Ei&&!cr)return ot||(ot=new xo),zt||Ra(et)?Eo(et,K,ae,be,De,ot):function(rt,dt,ft,nn,Sr,Nr,Zo){switch(ft){case S:if(rt.byteLength!=dt.byteLength||rt.byteOffset!=dt.byteOffset)return!1;rt=rt.buffer,dt=dt.buffer;case w:return!(rt.byteLength!=dt.byteLength||!Nr(new G(rt),new G(dt)));case l:case s:case f:return sf(+rt,+dt);case u:return rt.name==dt.name&&rt.message==dt.message;case p:case v:return rt==dt+"";case d:var Zl=j;case y:var Pp=1&nn;if(Zl||(Zl=z),rt.size!=dt.size&&!Pp)return!1;var N2=Zo.get(rt);if(N2)return N2==dt;nn|=2,Zo.set(rt,dt);var uf=Eo(Zl(rt),Zl(dt),nn,Sr,Nr,Zo);return Zo.delete(rt),uf;case b:if(lr)return lr.call(rt)==lr.call(dt)}return!1}(et,K,ct,ae,be,De,ot);if(!(1&ae)){var Jl=cr&&$.call(et,"__wrapped__"),Me=Hu&&$.call(K,"__wrapped__");if(Jl||Me){var mt=Jl?et.value():et,hn=Me?K.value():K;return ot||(ot=new xo),De(mt,hn,ae,be,ot)}}return Ei?(ot||(ot=new xo),function(rt,dt,ft,nn,Sr,Nr){var Zo=1&ft,Zl=Ci(rt),Pp=Zl.length,N2=Ci(dt).length;if(Pp!=N2&&!Zo)return!1;for(var uf=Pp;uf--;){var Uu=Zl[uf];if(!(Zo?Uu in dt:$.call(dt,Uu)))return!1}var HY=Nr.get(rt);if(HY&&Nr.get(dt))return HY==dt;var O2=!0;Nr.set(rt,dt),Nr.set(dt,rt);for(var C5=Zo;++uf<Pp;){var I2=rt[Uu=Zl[uf]],F2=dt[Uu];if(nn)var UY=Zo?nn(F2,I2,Uu,dt,rt,Nr):nn(I2,F2,Uu,rt,dt,Nr);if(!(UY===void 0?I2===F2||Sr(I2,F2,ft,nn,Nr):UY)){O2=!1;break}C5||(C5=Uu=="constructor")}if(O2&&!C5){var R2=rt.constructor,L2=dt.constructor;R2==L2||!("constructor"in rt)||!("constructor"in dt)||typeof R2=="function"&&R2 instanceof R2&&typeof L2=="function"&&L2 instanceof L2||(O2=!1)}return Nr.delete(rt),Nr.delete(dt),O2}(et,K,ae,be,De,ot)):!1}(q,te,fe,Ne,zu,bt))}function lf(q){return!(!T2(q)||function(te){return!!W&&W in te}(q))&&(Tp(q)?ne:C).test(ki(q))}function Xo(q){if(fe=(te=q)&&te.constructor,Ne=typeof fe=="function"&&fe.prototype||T,te!==Ne)return Ee(q);var te,fe,Ne,bt=[];for(var et in Object(q))$.call(q,et)&&et!="constructor"&&bt.push(et);return bt}function Eo(q,te,fe,Ne,bt,et){var K=1&fe,ae=q.length,be=te.length;if(ae!=be&&!(K&&be>ae))return!1;var De=et.get(q);if(De&&et.get(te))return De==te;var ot=-1,zt=!0,_t=2&fe?new Hn:void 0;for(et.set(q,te),et.set(te,q);++ot<ae;){var ct=q[ot],Tn=te[ot];if(Ne)var cr=K?Ne(Tn,ct,ot,te,q,et):Ne(ct,Tn,ot,q,te,et);if(cr!==void 0){if(cr)continue;zt=!1;break}if(_t){if(!J(te,function(Hu,Ei){if(Jl=Ei,!_t.has(Jl)&&(ct===Hu||bt(ct,Hu,fe,Ne,et)))return _t.push(Ei);var Jl})){zt=!1;break}}else if(ct!==Tn&&!bt(ct,Tn,fe,Ne,et)){zt=!1;break}}return et.delete(q),et.delete(te),zt}function Ci(q){return function(te,fe,Ne){var bt=fe(te);return xi(te)?bt:function(et,K){for(var ae=-1,be=K.length,De=et.length;++ae<be;)et[De+ae]=K[ae];return et}(bt,Ne(te))}(q,P2,B2)}function Jo(q,te){var fe,Ne,bt=q.__data__;return((Ne=typeof(fe=te))=="string"||Ne=="number"||Ne=="symbol"||Ne=="boolean"?fe!=="__proto__":fe===null)?bt[typeof te=="string"?"string":"hash"]:bt.map}function Yl(q,te){var fe=function(Ne,bt){return Ne==null?void 0:Ne[bt]}(q,te);return lf(fe)?fe:void 0}sr.prototype.clear=function(){this.__data__=_n?_n(null):{},this.size=0},sr.prototype.delete=function(q){var te=this.has(q)&&delete this.__data__[q];return this.size-=te?1:0,te},sr.prototype.get=function(q){var te=this.__data__;if(_n){var fe=te[q];return fe===n?void 0:fe}return $.call(te,q)?te[q]:void 0},sr.prototype.has=function(q){var te=this.__data__;return _n?te[q]!==void 0:$.call(te,q)},sr.prototype.set=function(q,te){var fe=this.__data__;return this.size+=this.has(q)?0:1,fe[q]=_n&&te===void 0?n:te,this},ur.prototype.clear=function(){this.__data__=[],this.size=0},ur.prototype.delete=function(q){var te=this.__data__,fe=ql(te,q);return!(fe<0)&&(fe==te.length-1?te.pop():ee.call(te,fe,1),--this.size,!0)},ur.prototype.get=function(q){var te=this.__data__,fe=ql(te,q);return fe<0?void 0:te[fe][1]},ur.prototype.has=function(q){return ql(this.__data__,q)>-1},ur.prototype.set=function(q,te){var fe=this.__data__,Ne=ql(fe,q);return Ne<0?(++this.size,fe.push([q,te])):fe[Ne][1]=te,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(Oe||ur),string:new sr}},wr.prototype.delete=function(q){var te=Jo(this,q).delete(q);return this.size-=te?1:0,te},wr.prototype.get=function(q){return Jo(this,q).get(q)},wr.prototype.has=function(q){return Jo(this,q).has(q)},wr.prototype.set=function(q,te){var fe=Jo(this,q),Ne=fe.size;return fe.set(q,te),this.size+=fe.size==Ne?0:1,this},Hn.prototype.add=Hn.prototype.push=function(q){return this.__data__.set(q,n),this},Hn.prototype.has=function(q){return this.__data__.has(q)},xo.prototype.clear=function(){this.__data__=new ur,this.size=0},xo.prototype.delete=function(q){var te=this.__data__,fe=te.delete(q);return this.size=te.size,fe},xo.prototype.get=function(q){return this.__data__.get(q)},xo.prototype.has=function(q){return this.__data__.has(q)},xo.prototype.set=function(q,te){var fe=this.__data__;if(fe instanceof ur){var Ne=fe.__data__;if(!Oe||Ne.length<199)return Ne.push([q,te]),this.size=++fe.size,this;fe=this.__data__=new wr(Ne)}return fe.set(q,te),this.size=fe.size,this};var B2=ue?function(q){return q==null?[]:(q=Object(q),function(te,fe){for(var Ne=-1,bt=te==null?0:te.length,et=0,K=[];++Ne<bt;){var ae=te[Ne];fe(ae,Ne,te)&&(K[et++]=ae)}return K}(ue(q),function(te){return se.call(q,te)}))}:function(){return[]},eo=Si;function _p(q,te){return!!(te=te??r)&&(typeof q=="number"||x.test(q))&&q>-1&&q%1==0&&q<te}function ki(q){if(q!=null){try{return U.call(q)}catch{}try{return q+""}catch{}}return""}function sf(q,te){return q===te||q!=q&&te!=te}(Ae&&eo(new Ae(new ArrayBuffer(1)))!=S||Oe&&eo(new Oe)!=d||Be&&eo(Be.resolve())!=h||Le&&eo(new Le)!=y||vt&&eo(new vt)!=m)&&(eo=function(q){var te=Si(q),fe=te==g?q.constructor:void 0,Ne=fe?ki(fe):"";if(Ne)switch(Ne){case br:return S;case qo:return d;case bi:return h;case Yo:return y;case Oa:return m}return te});var _2=af(function(){return arguments}())?af:function(q){return Xl(q)&&$.call(q,"callee")&&!se.call(q,"callee")},xi=Array.isArray,Ia=we||function(){return!1};function Tp(q){if(!T2(q))return!1;var te=Si(q);return te==c||te=="[object GeneratorFunction]"||te=="[object AsyncFunction]"||te=="[object Proxy]"}function Fa(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=r}function T2(q){var te=typeof q;return q!=null&&(te=="object"||te=="function")}function Xl(q){return q!=null&&typeof q=="object"}var Ra=H?function(q){return function(te){return q(te)}}(H):function(q){return Xl(q)&&Fa(q.length)&&!!k[Si(q)]};function P2(q){return(te=q)!=null&&Fa(te.length)&&!Tp(te)?Bp(q):Xo(q);var te}e.exports=function(q,te){return zu(q,te)}});Vr("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"}}),Vr("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var mH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pH(e){var t={exports:{}};return e(t,t.exports),t.exports}var kl,Kb,qb=function(e){return e&&e.Math==Math&&e},Je=qb(typeof globalThis=="object"&&globalThis)||qb(typeof window=="object"&&window)||qb(typeof self=="object"&&self)||qb(typeof mH=="object"&&mH)||function(){return this}()||Function("return this")(),wn=function(e){try{return!!e()}catch{return!0}},xl=!wn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),um=Function.prototype.call,Bn=um.bind?um.bind(um):function(){return um.apply(um,arguments)},vH={}.propertyIsEnumerable,yH=Object.getOwnPropertyDescriptor,tEe={f:yH&&!vH.call({1:2},1)?function(e){var t=yH(this,e);return!!t&&t.enumerable}:vH},nV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bH=Function.prototype,rV=bH.bind,oV=bH.call,nEe=rV&&rV.bind(oV),nt=rV?function(e){return e&&nEe(oV,e)}:function(e){return e&&function(){return oV.apply(e,arguments)}},rEe=nt({}.toString),oEe=nt("".slice),El=function(e){return oEe(rEe(e),8,-1)},aV=Je.Object,aEe=nt("".split),wH=wn(function(){return!aV("z").propertyIsEnumerable(0)})?function(e){return El(e)=="String"?aEe(e,""):aV(e)}:aV,iEe=Je.TypeError,Dl=function(e){if(e==null)throw iEe("Can't call method on "+e);return e},cm=function(e){return wH(Dl(e))},ar=function(e){return typeof e=="function"},Ea=function(e){return typeof e=="object"?e!==null:ar(e)},lEe=function(e){return ar(e)?e:void 0},dm=function(e,t){return arguments.length<2?lEe(Je[e]):Je[e]&&Je[e][t]},SH=nt({}.isPrototypeOf),iV=dm("navigator","userAgent")||"",CH=Je.process,kH=Je.Deno,xH=CH&&CH.versions||kH&&kH.version,EH=xH&&xH.v8;EH&&(Kb=(kl=EH.split("."))[0]>0&&kl[0]<4?1:+(kl[0]+kl[1])),!Kb&&iV&&(!(kl=iV.match(/Edge\/(\d+)/))||kl[1]>=74)&&(kl=iV.match(/Chrome\/(\d+)/))&&(Kb=+kl[1]);var lV=Kb,sV=!!Object.getOwnPropertySymbols&&!wn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lV&&lV<41}),uV=sV&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sEe=Je.Object,cV=uV?function(e){return typeof e=="symbol"}:function(e){var t=dm("Symbol");return ar(t)&&SH(t.prototype,sEe(e))},uEe=Je.String,DH=function(e){try{return uEe(e)}catch{return"Object"}},cEe=Je.TypeError,AH=function(e){if(ar(e))return e;throw cEe(DH(e)+" is not a function")},dV=function(e,t){var n=e[t];return n==null?void 0:AH(n)},dEe=Je.TypeError,fEe=Object.defineProperty,fV=function(e,t){try{fEe(Je,e,{value:t,configurable:!0,writable:!0})}catch{Je[e]=t}return t},Al=Je["__core-js_shared__"]||fV("__core-js_shared__",{}),hV=pH(function(e){(e.exports=function(t,n){return Al[t]||(Al[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),hEe=Je.Object,gV=function(e){return hEe(Dl(e))},gEe=nt({}.hasOwnProperty),vo=Object.hasOwn||function(e,t){return gEe(gV(e),t)},mEe=0,pEe=Math.random(),vEe=nt(1 .toString),VH=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vEe(++mEe+pEe,36)},fm=hV("wks"),Su=Je.Symbol,BH=Su&&Su.for,yEe=uV?Su:Su&&Su.withoutSetter||VH,yo=function(e){if(!vo(fm,e)||!sV&&typeof fm[e]!="string"){var t="Symbol."+e;sV&&vo(Su,e)?fm[e]=Su[e]:fm[e]=uV&&BH?BH(t):yEe(t)}return fm[e]},bEe=Je.TypeError,wEe=yo("toPrimitive"),mV=function(e){var t=function(n,r){if(!Ea(n)||cV(n))return n;var o,a=dV(n,wEe);if(a){if(o=Bn(a,n,r),!Ea(o)||cV(o))return o;throw bEe("Can't convert object to primitive value")}return function(l,s){var u,c;if(ar(u=l.toString)&&!Ea(c=Bn(u,l))||ar(u=l.valueOf)&&!Ea(c=Bn(u,l)))return c;throw dEe("Can't convert object to primitive value")}(n)}(e,"string");return cV(t)?t:t+""},pV=Je.document,SEe=Ea(pV)&&Ea(pV.createElement),vV=function(e){return SEe?pV.createElement(e):{}},_H=!xl&&!wn(function(){return Object.defineProperty(vV("div"),"a",{get:function(){return 7}}).a!=7}),TH=Object.getOwnPropertyDescriptor,PH={f:xl?TH:function(e,t){if(e=cm(e),t=mV(t),_H)try{return TH(e,t)}catch{}if(vo(e,t))return nV(!Bn(tEe.f,e,t),e[t])}},CEe=Je.String,kEe=Je.TypeError,bo=function(e){if(Ea(e))return e;throw kEe(CEe(e)+" is not an object")},xEe=Je.TypeError,NH=Object.defineProperty,hm={f:xl?NH:function(e,t,n){if(bo(e),t=mV(t),bo(n),_H)try{return NH(e,t,n)}catch{}if("get"in n||"set"in n)throw xEe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Vd=xl?function(e,t,n){return hm.f(e,t,nV(1,n))}:function(e,t,n){return e[t]=n,e},EEe=nt(Function.toString);ar(Al.inspectSource)||(Al.inspectSource=function(e){return EEe(e)});var yV,Yb,bV,wV=Al.inspectSource,OH=Je.WeakMap,DEe=ar(OH)&&/native code/.test(wV(OH)),IH=hV("keys"),FH=function(e){return IH[e]||(IH[e]=VH(e))},SV={},RH=Je.TypeError,AEe=Je.WeakMap;if(DEe||Al.state){var Cu=Al.state||(Al.state=new AEe),VEe=nt(Cu.get),LH=nt(Cu.has),BEe=nt(Cu.set);yV=function(e,t){if(LH(Cu,e))throw new RH("Object already initialized");return t.facade=e,BEe(Cu,e,t),t},Yb=function(e){return VEe(Cu,e)||{}},bV=function(e){return LH(Cu,e)}}else{var Bd=FH("state");SV[Bd]=!0,yV=function(e,t){if(vo(e,Bd))throw new RH("Object already initialized");return t.facade=e,Vd(e,Bd,t),t},Yb=function(e){return vo(e,Bd)?e[Bd]:{}},bV=function(e){return vo(e,Bd)}}var CV={get:Yb,enforce:function(e){return bV(e)?Yb(e):yV(e,{})}},MH=Function.prototype,_Ee=xl&&Object.getOwnPropertyDescriptor,jH=vo(MH,"name"),kV={PROPER:jH&&(function(){}).name==="something",CONFIGURABLE:jH&&(!xl||xl&&_Ee(MH,"name").configurable)},gm=pH(function(e){var t=kV.CONFIGURABLE,n=CV.get,r=CV.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;ar(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vo(s,"name")||t&&s.name!==h)&&Vd(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==Je?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Vd(a,l,s)):f?a[l]=s:fV(l,s)})(Function.prototype,"toString",function(){return ar(this)&&n(this).source||wV(this)})}),TEe=Math.ceil,PEe=Math.floor,Xb=function(e){var t=+e;return t!=t||t===0?0:(t>0?PEe:TEe)(t)},NEe=Math.max,OEe=Math.min,mm=function(e,t){var n=Xb(e);return n<0?NEe(n+t,0):OEe(n,t)},IEe=Math.min,xV=function(e){return e>0?IEe(Xb(e),9007199254740991):0},Jb=function(e){return xV(e.length)},FEe=function(e){return function(t,n,r){var o,a=cm(t),l=Jb(a),s=mm(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},REe=FEe(!1),zH=nt([].push),HH=function(e,t){var n,r=cm(e),o=0,a=[];for(n in r)!vo(SV,n)&&vo(r,n)&&zH(a,n);for(;t.length>o;)vo(r,n=t[o++])&&(~REe(a,n)||zH(a,n));return a},Zb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],LEe=Zb.concat("length","prototype"),MEe={f:Object.getOwnPropertyNames||function(e){return HH(e,LEe)}},jEe={f:Object.getOwnPropertySymbols},zEe=nt([].concat),HEe=dm("Reflect","ownKeys")||function(e){var t=MEe.f(bo(e)),n=jEe.f;return n?zEe(t,n(e)):t},UEe=function(e,t){for(var n=HEe(t),r=hm.f,o=PH.f,a=0;a<n.length;a++){var l=n[a];vo(e,l)||r(e,l,o(t,l))}},WEe=/#|\.prototype\./,pm=function(e,t){var n=KEe[GEe(e)];return n==YEe||n!=qEe&&(ar(t)?wn(t):!!t)},GEe=pm.normalize=function(e){return String(e).replace(WEe,".").toLowerCase()},KEe=pm.data={},qEe=pm.NATIVE="N",YEe=pm.POLYFILL="P",XEe=pm,JEe=PH.f,Vl=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?Je:c?Je[s]||fV(s,{}):(Je[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=JEe(n,r))&&l.value:n[r],!XEe(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;UEe(a,o)}(e.sham||o&&o.sham)&&Vd(a,"sham",!0),gm(n,r,a,e)}},UH={};UH[yo("toStringTag")]="z";var EV=String(UH)==="[object z]",ZEe=yo("toStringTag"),QEe=Je.Object,$Ee=El(function(){return arguments}())=="Arguments",DV=EV?El:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=QEe(e),ZEe))=="string"?n:$Ee?El(t):(r=El(t))=="Object"&&ar(t.callee)?"Arguments":r},eDe=Je.String,ir=function(e){if(DV(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return eDe(e)},tDe=/"/g,nDe=nt("".replace);Vl({target:"String",proto:!0,forced:wn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ir(Dl(this)),r="<a",(r+=' name="'+nDe(ir(t),tDe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Qb,WH=function(){var e=bo(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},AV=Je.RegExp,VV=wn(function(){var e=AV("a","y");return e.lastIndex=2,e.exec("abcd")!=null});VV||wn(function(){return!AV("a","y").sticky});var GH={BROKEN_CARET:VV||wn(function(){var e=AV("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:VV},rDe=Object.keys||function(e){return HH(e,Zb)},oDe=xl?Object.defineProperties:function(e,t){bo(e);for(var n,r=cm(t),o=rDe(t),a=o.length,l=0;a>l;)hm.f(e,n=o[l++],r[n]);return e},aDe=dm("document","documentElement"),KH=FH("IE_PROTO"),BV=function(){},qH=function(e){return"<script>"+e+"<\/script>"},YH=function(e){e.write(qH("")),e.close();var t=e.parentWindow.Object;return e=null,t},$b=function(){try{Qb=new ActiveXObject("htmlfile")}catch{}var e,t;$b=typeof document<"u"?document.domain&&Qb?YH(Qb):((t=vV("iframe")).style.display="none",aDe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(qH("document.F=Object")),e.close(),e.F):YH(Qb);for(var n=Zb.length;n--;)delete $b.prototype[Zb[n]];return $b()};SV[KH]=!0;var XH,_V,JH=Object.create||function(e,t){var n;return e!==null?(BV.prototype=bo(e),n=new BV,BV.prototype=null,n[KH]=e):n=$b(),t===void 0?n:oDe(n,t)},iDe=Je.RegExp,lDe=wn(function(){var e=iDe(".","s");return!(e.dotAll&&e.exec(`
140
- `)&&e.flags==="s")}),sDe=Je.RegExp,uDe=wn(function(){var e=sDe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),cDe=CV.get,dDe=hV("native-string-replace",String.prototype.replace),ew=RegExp.prototype.exec,TV=ew,fDe=nt("".charAt),hDe=nt("".indexOf),gDe=nt("".replace),PV=nt("".slice),NV=(_V=/b*/g,Bn(ew,XH=/a/,"a"),Bn(ew,_V,"a"),XH.lastIndex!==0||_V.lastIndex!==0),ZH=GH.BROKEN_CARET,OV=/()??/.exec("")[1]!==void 0;(NV||OV||ZH||lDe||uDe)&&(TV=function(e){var t,n,r,o,a,l,s,u=this,c=cDe(u),d=ir(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=Bn(TV,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=ZH&&u.sticky,p=Bn(WH,u),y=u.source,v=0,b=d;if(h&&(p=gDe(p,"y",""),hDe(p,"g")===-1&&(p+="g"),b=PV(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&fDe(d,u.lastIndex-1)!==`
141
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),OV&&(n=new RegExp("^"+y+"$(?!\\s)",p)),NV&&(r=u.lastIndex),o=Bn(ew,h?n:u,b),h?o?(o.input=PV(o.input,v),o[0]=PV(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:NV&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),OV&&o&&o.length>1&&Bn(dDe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=JH(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var vm=TV;Vl({target:"RegExp",proto:!0,forced:/./.exec!==vm},{exec:vm});var tw=Array.isArray||function(e){return El(e)=="Array"},QH=function(){},mDe=[],$H=dm("Reflect","construct"),IV=/^\s*(?:class|function)\b/,pDe=nt(IV.exec),vDe=!IV.exec(QH),ym=function(e){if(!ar(e))return!1;try{return $H(QH,mDe,e),!0}catch{return!1}},FV=!$H||wn(function(){var e;return ym(ym.call)||!ym(Object)||!ym(function(){e=!0})||e})?function(e){if(!ar(e))return!1;switch(DV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vDe||!!pDe(IV,wV(e))}:ym,eU=function(e,t,n){var r=mV(t);r in e?hm.f(e,r,nV(0,n)):e[r]=n},yDe=yo("species"),RV=function(e){return lV>=51||!wn(function(){var t=[];return(t.constructor={})[yDe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},bDe=nt([].slice),wDe=RV("slice"),SDe=yo("species"),LV=Je.Array,CDe=Math.max;function Wo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function tU(e){var t=e.selection;if(t==null)return!1;var n=Wo(B.nodes(e,{match:function(a){return R.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=Wo(n,2)[1],o=B.start(e,r);if(Ke.equals(t.anchor,o))return!0}return!1}function nU(e,t){var n,r,o=B.nodes(e,{at:t,match:function(u){return R.getNodeType(u)==="table"}}),a=!1;try{for(var l=function(u){var c=typeof Symbol=="function"&&Symbol.iterator,d=c&&u[c],f=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&f>=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=l.next();!s.done;s=l.next())s.value,a=!0}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return a}Vl({target:"Array",proto:!0,forced:!wDe},{slice:function(e,t){var n,r,o,a=cm(this),l=Jb(a),s=mm(e,l),u=mm(t===void 0?l:t,l);if(tw(a)&&(n=a.constructor,(FV(n)&&(n===LV||tw(n.prototype))||Ea(n)&&(n=n[SDe])===null)&&(n=void 0),n===LV||n===void 0))return bDe(a,s,u);for(r=new(n===void 0?LV:n)(CDe(u-s,0)),o=0;s<u;s++,o++)s in a&&eU(r,o,a[s]);return r.length=o,r}});var rU=nt(nt.bind),kDe=yo("species"),oU=Je.Array,xDe=function(e,t){return new(function(n){var r;return tw(n)&&(r=n.constructor,(FV(r)&&(r===oU||tw(r.prototype))||Ea(r)&&(r=r[kDe])===null)&&(r=void 0)),r===void 0?oU:r}(e))(t===0?0:t)},aU=nt([].push),nw=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=gV(u),y=wH(p),v=function(C,x){return AH(C),x===void 0?C:rU?rU(C,x):function(){return C.apply(x,arguments)}}(c,d),b=Jb(y),m=0,w=f||xDe,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:aU(S,g)}else switch(e){case 4:return!1;case 7:aU(S,g)}return a?-1:r||o?o:S}},rw={forEach:nw(0),map:nw(1),filter:nw(2),find:nw(5)},EDe=rw.map;Vl({target:"Array",proto:!0,forced:!RV("map")},{map:function(e){return EDe(this,e,arguments.length>1?arguments[1]:void 0)}});var DDe=EV?{}.toString:function(){return"[object "+DV(this)+"]"};function ow(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function iU(e){return ow(e).every(function(t){return!!t.isHeader})}EV||gm(Object.prototype,"toString",DDe,{unsafe:!0});var ADe=kV.PROPER,MV=RegExp.prototype,lU=MV.toString,VDe=nt(WH),BDe=wn(function(){return lU.call({source:"a",flags:"b"})!="/a/b"}),_De=ADe&&lU.name!="toString";(BDe||_De)&&gm(RegExp.prototype,"toString",function(){var e=bo(this),t=ir(e.source),n=e.flags;return"/"+t+"/"+ir(n===void 0&&SH(MV,e)&&!("flags"in MV)?VDe(e):n)},{unsafe:!0});var jV=yo("unscopables"),zV=Array.prototype;zV[jV]==null&&hm.f(zV,jV,{configurable:!0,value:JH(null)});var TDe=rw.find,sU=!0;"find"in[]&&Array(1).find(function(){sU=!1}),Vl({target:"Array",proto:!0,forced:sU},{find:function(e){return TDe(this,e,arguments.length>1?arguments[1]:void 0)}}),zV[jV].find=!0;var HV=Function.prototype,uU=HV.apply,PDe=HV.bind,cU=HV.call,dU=typeof Reflect=="object"&&Reflect.apply||(PDe?cU.bind(uU):function(){return cU.apply(uU,arguments)}),NDe=yo("species"),UV=RegExp.prototype,fU=function(e,t,n,r){var o=yo(e),a=!wn(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!wn(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[NDe]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=nt(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=nt(c),y=d.exec;return y===vm||y===UV.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});gm(String.prototype,e,u[0]),gm(UV,o,u[1])}r&&Vd(UV[o],"sham",!0)},ODe=yo("match"),IDe=Je.TypeError,FDe=yo("species"),RDe=nt("".charAt),hU=nt("".charCodeAt),LDe=nt("".slice),MDe=function(e){return function(t,n){var r,o,a=ir(Dl(t)),l=Xb(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=hU(a,l))<55296||r>56319||l+1===s||(o=hU(a,l+1))<56320||o>57343?e?RDe(a,l):r:e?LDe(a,l,l+2):o-56320+(r-55296<<10)+65536}},jDe=MDe(!0),gU=function(e,t,n){return t+(n?jDe(e,t).length:1)},zDe=Je.Array,HDe=Math.max,mU=function(e,t,n){for(var r=Jb(e),o=mm(t,r),a=mm(n===void 0?r:n,r),l=zDe(HDe(a-o,0)),s=0;o<a;o++,s++)eU(l,s,e[o]);return l.length=s,l},UDe=Je.TypeError,WV=function(e,t){var n=e.exec;if(ar(n)){var r=Bn(n,e,t);return r!==null&&bo(r),r}if(El(e)==="RegExp")return Bn(vm,e,t);throw UDe("RegExp#exec called on incompatible receiver")},_d=GH.UNSUPPORTED_Y,WDe=Math.min,pU=[].push,GDe=nt(/./.exec),Td=nt(pU),bm=nt("".slice);fU("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var l,s,u=ir(Dl(this)),c=a===void 0?4294967295:a>>>0;if(c===0)return[];if(o===void 0)return[u];if(!Ea(l=o)||!((s=l[ODe])!==void 0?s:El(l)=="RegExp"))return Bn(t,u,o,c);for(var d,f,g,h=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),y=0,v=new RegExp(o.source,p+"g");(d=Bn(vm,v,u))&&!((f=v.lastIndex)>y&&(Td(h,bm(u,y,d.index)),d.length>1&&d.index<u.length&&dU(pU,h,mU(d,1)),g=d[0].length,y=f,h.length>=c));)v.lastIndex===d.index&&v.lastIndex++;return y===u.length?!g&&GDe(v,"")||Td(h,""):Td(h,bm(u,y)),h.length>c?mU(h,0,c):h}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:Bn(t,this,o,a)}:t,[function(o,a){var l=Dl(this),s=o==null?void 0:dV(o,e);return s?Bn(s,o,l,a):Bn(r,ir(l),o,a)},function(o,a){var l=bo(this),s=ir(o),u=n(r,l,s,a,r!==t);if(u.done)return u.value;var c=function(S,C){var x,k=bo(S).constructor;return k===void 0||(x=bo(k)[FDe])==null?C:function(E){if(FV(E))return E;throw IDe(DH(E)+" is not a constructor")}(x)}(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(_d?"g":"y"),g=new c(_d?"^(?:"+l.source+")":l,f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return WV(g,s)===null?[s]:[];for(var p=0,y=0,v=[];y<s.length;){g.lastIndex=_d?0:y;var b,m=WV(g,_d?bm(s,y):s);if(m===null||(b=WDe(xV(g.lastIndex+(_d?y:0)),s.length))===p)y=gU(s,y,d);else{if(Td(v,bm(s,p,y)),v.length===h)return v;for(var w=1;w<=m.length-1;w++)if(Td(v,m[w]),v.length===h)return v;y=p=b}}return Td(v,bm(s,p)),v}]},!!wn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),_d);var GV=`
142
- \v\f\r                 \u2028\u2029\uFEFF`,vU=nt("".replace),aw="["+GV+"]",KDe=RegExp("^"+aw+aw+"*"),qDe=RegExp(aw+aw+"*$"),YDe=function(e){return function(t){var n=ir(Dl(t));return 1&e&&(n=vU(n,KDe,"")),2&e&&(n=vU(n,qDe,"")),n}},XDe={trim:YDe(3)},JDe=kV.PROPER,ZDe=XDe.trim;function yU(e){return e.length?e[0].tagName.toLowerCase():""}Vl({target:"String",proto:!0,forced:function(e){return wn(function(){return!!GV[e]()||"​…᠎"[e]()!=="​…᠎"||JDe&&GV[e].name!==e})}("trim")},{trim:function(){return ZDe(this)}}),Vl({global:!0},{globalThis:Je}),ao&&(M.fn.append=ao),da&&(M.fn.on=da),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),ca&&(M.fn.val=ca),Ui&&(M.fn.html=Ui),xc&&(M.fn.dataset=xc),Sc&&(M.fn.addClass=Sc),Cc&&(M.fn.removeClass=Cc),Vc&&(M.fn.children=Vc),Ay&&(M.fn.each=Ay),Ac&&(M.fn.find=Ac);var wm=!1,bU=0,wU=0,Sm=null,Cm=null,km=M("body");function SU(e){wm=!1,Cm=null,Sm=null,km.off("mousemove",CU),km.off("mouseup",SU)}km.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),wm=!0;var n=e.clientX;bU=n;var r=t.getBoundingClientRect().width;wU=r,km.on("mousemove",CU),km.on("mouseup",SU)}});var CU=Ns(function(e){if(wm&&Cm!=null&&Sm!=null){e.preventDefault();var t=e.clientX,n=wU+(t-bU);(n=Math.floor(100*n)/100)<30&&(n=30),Q.setNodes(Cm,{width:n.toString()},{at:Sm})}},100),QDe={type:"table",renderElem:function(e,t,n){var r=function(s,u){if(s.isDisabled())return!1;var c=s.selection;if(c==null||re.isCollapsed(c))return!0;var d=c.anchor,f=c.focus,g=R.findPath(s,u),h=B.start(s,g),p=B.end(s,g),y=Ke.compare(d,p)<=0&&Ke.compare(d,h)>=0,v=Ke.compare(f,p)<=0&&Ke.compare(f,h)>=0;return!!(y&&v&&Y.equals(d.path.slice(0,3),f.path.slice(0,3)))}(n,e),o=e.width,a=o===void 0?"auto":o,l=Fe("div",{className:"table-container","data-selected":R.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var u=R.findPath(n,e),c=B.start(n,u),d=n.selection;d!=null?d.anchor.path[0]!==u[0]&&n.select(c):n.select(c)}}}},Fe("table",{width:a,contentEditable:r},Fe("colgroup",null,ow(e).map(function(s){var u=s.width;return Fe("col",{width:u===void 0?"auto":u})})),Fe("tbody",null,t)));return l}},$De={type:"table-row",renderElem:function(e,t,n){return Fe("tr",null,t)}},e4e={type:"table-cell",renderElem:function(e,t,n){var r=function(g,h){var p=R.getParentNode(g,h);if(p==null)return!1;var y=R.getParentNode(g,p);return y!=null&&ow(y).some(function(v){return v===h})}(n,e),o=e,a=o.colSpan,l=a===void 0?1:a,s=o.rowSpan,u=s===void 0?1:s,c=o.isHeader,d=c!==void 0&&c;if(!r)return Fe("td",{colSpan:l,rowSpan:u},t);var f=Fe(d?"th":"td",{colSpan:l,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Ns(function(g){var h=this.elm;if(h!=null){var p=h.getBoundingClientRect(),y=p.left,v=p.width,b=p.top,m=p.height,w=g.clientX,S=g.clientY;wm||(w>y+v-5&&w<y+v&&S>b&&S<b+m?(h.style.cursor="col-resize",Cm=n,Sm=R.findPath(n,e)):wm||(h.style.cursor="auto",Cm=null,Sm=null))}},100)}},t);return f}},t4e={selector:"table",preParseHtml:function(e){var t=M(e);if(yU(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},n4e=rw.filter;Vl({target:"Array",proto:!0,forced:!RV("filter")},{filter:function(e){return n4e(this,e,arguments.length>1?arguments[1]:void 0)}});var r4e=Math.floor,KV=nt("".charAt),o4e=nt("".replace),qV=nt("".slice),a4e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,i4e=/\$([$&'`]|\d{1,2})/g,l4e=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=i4e;return o!==void 0&&(o=gV(o),u=a4e),o4e(a,u,function(c,d){var f;switch(KV(d,0)){case"$":return"$";case"&":return e;case"`":return qV(t,0,n);case"'":return qV(t,l);case"<":f=o[qV(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=r4e(g/10);return h===0?c:h<=s?r[h-1]===void 0?KV(d,1):r[h-1]+KV(d,1):c}f=r[g-1]}return f===void 0?"":f})},YV=yo("replace"),s4e=Math.max,u4e=Math.min,c4e=nt([].concat),XV=nt([].push),kU=nt("".indexOf),xU=nt("".slice),d4e="a".replace(/./,"$0")==="$0",EU=!!/./[YV]&&/./[YV]("a","$0")==="";fU("replace",function(e,t,n){var r=EU?"$":"$0";return[function(o,a){var l=Dl(this),s=o==null?void 0:dV(o,YV);return s?Bn(s,o,l,a):Bn(t,ir(l),o,a)},function(o,a){var l=bo(this),s=ir(o);if(typeof a=="string"&&kU(a,r)===-1&&kU(a,"$<")===-1){var u=n(t,l,s,a);if(u.done)return u.value}var c=ar(a);c||(a=ir(a));var d=l.global;if(d){var f=l.unicode;l.lastIndex=0}for(var g=[];;){var h=WV(l,s);if(h===null||(XV(g,h),!d))break;ir(h[0])===""&&(l.lastIndex=gU(s,xV(l.lastIndex),f))}for(var p,y="",v=0,b=0;b<g.length;b++){for(var m=ir((h=g[b])[0]),w=s4e(u4e(Xb(h.index),s.length),0),S=[],C=1;C<h.length;C++)XV(S,(p=h[C])===void 0?p:String(p));var x=h.groups;if(c){var k=c4e([m],S,w,s);x!==void 0&&XV(k,x);var E=ir(dU(a,void 0,k))}else E=l4e(m,s,w,S,x,a);w>=v&&(y+=xU(s,v,w)+E,v=w+m.length)}return y+xU(s,v)}]},!!wn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!d4e||EU);var f4e={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);(t=t.filter(function(s){return!!Se.isText(s)||!!n.isInline(s)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),a=parseInt(r.attr("rowSpan")||"1"),l=r.attr("width")||"auto";return{type:"table-cell",isHeader:yU(r)==="th",colSpan:o,rowSpan:a,width:l,children:t}}},h4e={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return R.getNodeType(r)==="table-cell"})}}},g4e={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e),o="auto";return function(a,l){for(var s="",u=(a.attr("style")||"").split(";"),c=u.length,d=0;d<c;d++){var f=u[d];if(f){var g=f.split(":");g[0].trim()==="width"&&(s=g[1].trim())}}return s}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(a){return R.getNodeType(a)==="table-row"})}}},m4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||!!R.getSelectedElems(t).some(function(r){var o=R.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=M('<div class="w-e-panel-content-table"></div>'),o=M("<span>0 &times; 0</span>"),a=M("<table></table>"),l=0;l<10;l++){for(var s=M("<tr></tr>"),u=0;u<10;u++){var c=M("<td></td>");c.attr("data-x",u.toString()),c.attr("data-y",l.toString()),s.append(c),c.on("mouseenter",function(d){var f=d.target;if(f!=null){var g=M(f).dataset(),h=g.x,p=g.y;o[0].innerHTML=h+1+" &times; "+(p+1),a.children().each(function(y){M(y).children().each(function(v){var b=M(v),m=b.dataset(),w=m.x,S=m.y;w<=h&&S<=p?b.addClass("active"):b.removeClass("active")})})}}),c.on("click",function(d){d.preventDefault();var f=d.target;if(f!=null){var g=M(f).dataset(),h=g.x,p=g.y;n.insertTable(t,p+1,h+1)}})}a.append(s)}return r.append(a),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),a=parseInt(r,10);if(o&&a&&!(o<=0||a<=0)){R.isSelectedEmptyParagraph(t)&&Q.removeNodes(t,{mode:"highest"});var l=function(s,u){for(var c=[],d=0;d<s;d++){for(var f=[],g=0;g<u;g++){var h={type:"table-cell",children:[{text:""}]};d===0&&(h.isHeader=!0),f.push(h)}c.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:c}}(o,a);Q.insertNodes(t,l,{mode:"highest"})}},e}(),p4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Q.removeNodes(t,{mode:"highest"})},e}(),v4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(h){return R.checkNodeType(h,"table-cell")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a),u=(s==null?void 0:s.children.length)||0;if(u!==0){for(var c={type:"table-row",children:[]},d=0;d<u;d++)c.children.push({type:"table-cell",children:[{text:""}]});var f=Y.parent(l),g=Y.next(f);Q.insertNodes(t,c,{at:g})}}},e}(),y4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(u){return R.checkNodeType(u,"table-row")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a);((s==null?void 0:s.children.length)||0)<=1?Q.removeNodes(t,{mode:"highest"}):Q.removeNodes(t,{at:l})}},e}(),DU={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},JV=vV("span").classList,AU=JV&&JV.constructor&&JV.constructor.prototype,b4e=AU===Object.prototype?void 0:AU,w4e=rw.forEach,S4e=function(e,t){var n=[].forEach;return!!n&&wn(function(){n.call(null,function(){throw 1},1)})}(),ZV=S4e?[].forEach:function(e){return w4e(this,e,arguments.length>1?arguments[1]:void 0)},VU=function(e){if(e&&e.forEach!==ZV)try{Vd(e,"forEach",ZV)}catch{e.forEach=ZV}};for(var QV in DU)DU[QV]&&VU(Je[QV]&&Je[QV].prototype);VU(b4e);var C4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(c){return R.checkNodeType(c,"table-cell")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a);if(s!=null){var u=R.getParentNode(t,s);u!=null&&(u.children||[]).forEach(function(c,d){_e.isElement(c)&&(c.children||[]).forEach(function(f){var g=R.findPath(t,f);if(g.length===l.length&&gH(g.slice(-1),l.slice(-1))){var h={type:"table-cell",children:[{text:""}]};d===0&&iU(u)&&(h.isHeader=!0),Q.insertNodes(t,h,{at:g})}})})}}},e}(),k4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(d){return R.checkNodeType(d,"table-cell")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a),u=(s==null?void 0:s.children.length)||0;if(!s||u<=1)Q.removeNodes(t,{mode:"highest"});else{var c=R.getParentNode(t,s);c!=null&&(c.children||[]).forEach(function(d){_e.isElement(d)&&(d.children||[]).forEach(function(f){var g=R.findPath(t,f);g.length===l.length&&gH(g.slice(-1),l.slice(-1))&&Q.removeNodes(t,{at:g})})})}}},e}(),x4e=function(){function e(){this.title=ge("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(t){var n=R.getSelectedNodeByType(t,"table");return n!=null&&iU(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=R.getSelectedNodeByType(t,"table");o!=null&&ow(o).forEach(function(a){return Q.setNodes(t,{isHeader:r},{at:R.findPath(t,a)})})}},e}(),E4e=function(){function e(){this.title=ge("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(t){var n=R.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};Q.setNodes(t,r,{mode:"highest"})}},e}(),D4e={renderElems:[QDe,$De,e4e],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"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=r===void 0?1:r,a=n.rowSpan,l=a===void 0?1:a,s=n.isHeader,u=s!==void 0&&s,c=n.width,d=u?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+l+'" width="'+(c===void 0?"auto":c)+'">'+t+"</"+d+">"}}],preParseHtml:[t4e],parseElemsHtml:[f4e,h4e,g4e],menus:[{key:"insertTable",factory:function(){return new m4e}},{key:"deleteTable",factory:function(){return new p4e}},{key:"insertTableRow",factory:function(){return new v4e}},{key:"deleteTableRow",factory:function(){return new y4e}},{key:"insertTableCol",factory:function(){return new C4e}},{key:"deleteTableCol",factory:function(){return new k4e}},{key:"tableHeader",factory:function(){return new x4e}},{key:"tableFullWidth",factory:function(){return new E4e}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,a=e.insertData,l=e.handleTab,s=e.selectAll,u=e;return u.insertBreak=function(){R.getSelectedNodeByType(u,"table")==null?t():u.insertText(`
137
+ ***************************************************************************** */};function $z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}UA(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function eH(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 sm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function tH(e){return B.nodes(e,{at:e.selection||void 0,match:function(t){return R.findPath(e,t).length===1}})}var p1e=ez.includes;Cl({target:"Array",proto:!0},{includes:function(e){return p1e(this,e,arguments.length>1?arguments[1]:void 0)}}),em("includes");var nH,WA,v1e=function(){var e=Tr(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},GA=Re.RegExp,rH=Xt(function(){var e=GA("a","y");return e.lastIndex=2,e.exec("abcd")!=null});rH||Xt(function(){return!GA("a","y").sticky});var y1e={BROKEN_CARET:rH||Xt(function(){var e=GA("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},b1e=Re.RegExp,w1e=Xt(function(){var e=b1e(".","s");return!(e.dotAll&&e.exec(`
138
+ `)&&e.flags==="s")}),S1e=Re.RegExp,C1e=Xt(function(){var e=S1e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),k1e=xa.get,x1e=nA("native-string-replace",String.prototype.replace),Wb=RegExp.prototype.exec,KA=Wb,E1e=Qe("".charAt),D1e=Qe("".indexOf),A1e=Qe("".replace),qA=Qe("".slice),YA=(WA=/b*/g,Fn(Wb,nH=/a/,"a"),Fn(Wb,WA,"a"),nH.lastIndex!==0||WA.lastIndex!==0),oH=y1e.BROKEN_CARET,XA=/()??/.exec("")[1]!==void 0;(YA||XA||oH||w1e||C1e)&&(KA=function(e){var t,n,r,o,a,l,s,u=this,c=k1e(u),d=fi(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=Fn(KA,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=oH&&u.sticky,p=Fn(v1e,u),y=u.source,v=0,b=d;if(h&&(p=A1e(p,"y",""),D1e(p,"g")===-1&&(p+="g"),b=qA(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&E1e(d,u.lastIndex-1)!==`
139
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),XA&&(n=new RegExp("^"+y+"$(?!\\s)",p)),YA&&(r=u.lastIndex),o=Fn(Wb,h?n:u,b),h?o?(o.input=qA(o.input,v),o[0]=qA(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:YA&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),XA&&o&&o.length>1&&Fn(x1e,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=vA(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Gb=KA;Cl({target:"RegExp",proto:!0,forced:/./.exec!==Gb},{exec:Gb});var aH=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return R.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!R.getSelectedElems(t).some(function(n){if(B.isVoid(t,n)&&B.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Q.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Q.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),V1e='<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>',B1e='<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>',_1e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=ge("listModule.unOrderedList"),n.iconSvg=V1e,n}return $z(t,e),t}(aH),T1e=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=ge("listModule.orderedList"),n.iconSvg=B1e,n}return $z(t,e),t}(aH),P1e={key:"bulletedList",factory:function(){return new _1e}},N1e={key:"numberedList",factory:function(){return new T1e}},iH=[],O1e={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,a=o!==void 0&&o?"ol":"ul",l=function(c){var d=HA.get(c);if(d==null)return 0;var f=c,g=f.type,h=f.ordered,p=h!==void 0&&h,y=f.level,v=y===void 0?0:y,b=R.findPath(d,c);if(b[0]===0)return v+1;var m=Y.previous(b),w=B.node(d,m);if(!w)return 0;var S=sm(w,1)[0];if(R.getNodeType(S)!==g)return v+1;var C=S,x=C.ordered,k=x!==void 0&&x,E=C.level,A=E===void 0?0:E;return A<v?v-A:A>v?0:A===v?k===p?0:1:0}(e);if(l>0)for(var s=0;s<l;s++)n+="<"+a+">",iH.push(a);var u=function(c){var d=HA.get(c);if(d==null)return 0;var f=c,g=f.type,h=f.ordered,p=h!==void 0&&h,y=f.level,v=y===void 0?0:y,b=R.findPath(d,c);if(b[0]===d.children.length-1)return v+1;var m=Y.next(b),w=B.node(d,m);if(!w)return 0;var S=sm(w,1)[0];if(R.getNodeType(S)!==g)return v+1;var C=S,x=C.ordered,k=x!==void 0&&x,E=C.level,A=E===void 0?0:E;return A<v?v-A:A>v?0:A===v?k===p?0:1:0}(e);if(u>0)for(s=0;s<u;s++)r+="</"+iH.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},I1e=Xn("species"),F1e=FA.filter,R1e=aA>=51||!Xt(function(){var e=[];return(e.constructor={})[I1e]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Cl({target:"Array",proto:!0,forced:!R1e},{filter:function(e){return F1e(this,e,arguments.length>1?arguments[1]:void 0)}});var JA=Function.prototype,lH=JA.apply,L1e=JA.bind,sH=JA.call,M1e=typeof Reflect=="object"&&Reflect.apply||(L1e?sH.bind(lH):function(){return sH.apply(lH,arguments)}),uH=(Xn("species"),RegExp.prototype),j1e=Ez.charAt,z1e=function(e,t,n){return t+(n?j1e(e,t).length:1)},H1e=Math.floor,ZA=Qe("".charAt),U1e=Qe("".replace),QA=Qe("".slice),W1e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,G1e=/\$([$&'`]|\d{1,2})/g,K1e=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=G1e;return o!==void 0&&(o=Yg(o),u=W1e),U1e(a,u,function(c,d){var f;switch(ZA(d,0)){case"$":return"$";case"&":return e;case"`":return QA(t,0,n);case"'":return QA(t,l);case"<":f=o[QA(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=H1e(g/10);return h===0?c:h<=s?r[h-1]===void 0?ZA(d,1):r[h-1]+ZA(d,1):c}f=r[g-1]}return f===void 0?"":f})},q1e=Re.TypeError,Y1e=function(e,t){var n=e.exec;if(en(n)){var r=Fn(n,e,t);return r!==null&&Tr(r),r}if(ci(e)==="RegExp")return Fn(Gb,e,t);throw q1e("RegExp#exec called on incompatible receiver")},$A=Xn("replace"),X1e=Math.max,J1e=Math.min,Z1e=Qe([].concat),eV=Qe([].push),cH=Qe("".indexOf),dH=Qe("".slice),Q1e="a".replace(/./,"$0")==="$0",fH=!!/./[$A]&&/./[$A]("a","$0")==="";(function(e,t,n,r){var o=Xn(e),a=!Xt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Xt(function(){var c=!1,d=/a/;return d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Qe(/./[o]),u=function(c,d,f){var g=fH?"$":"$0";return[function(h,p){var y=Eb(this),v=h==null?void 0:Qg(h,$A);return v?Fn(v,h,y,p):Fn(d,fi(y),h,p)},function(h,p){var y=Tr(this),v=fi(h);if(typeof p=="string"&&cH(p,g)===-1&&cH(p,"$<")===-1){var b=f(d,y,v,p);if(b.done)return b.value}var m=en(p);m||(p=fi(p));var w=y.global;if(w){var S=y.unicode;y.lastIndex=0}for(var C=[];;){var x=Y1e(y,v);if(x===null||(eV(C,x),!w))break;fi(x[0])===""&&(y.lastIndex=z1e(v,Qj(y.lastIndex),S))}for(var k,E="",A=0,N=0;N<C.length;N++){for(var V=fi((x=C[N])[0]),D=X1e(J1e($g(x.index),v.length),0),P=[],O=1;O<x.length;O++)eV(P,(k=x[O])===void 0?k:String(k));var F=x.groups;if(m){var H=Z1e([V],P,D,v);F!==void 0&&eV(H,F);var J=fi(M1e(p,void 0,H))}else J=K1e(V,v,D,P,F,p);D>=A&&(E+=dH(v,A,D)+J,A=D+V.length)}return E+dH(v,A)}]}(0,""[e],function(c,d,f,g,h){var p=Qe(c),y=d.exec;return y===Gb||y===uH.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});di(String.prototype,e,u[0]),di(uH,o,u[1])}})("replace",0,!!Xt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Q1e||fH);var $1e=Re.TypeError,hH=function(e,t,n,r,o,a,l,s){for(var u,c,d=o,f=0,g=!!l&&PA(l,s);f<r;){if(f in n){if(u=g?g(n[f],f,t):n[f],a>0&&NA(u))c=Ed(u),d=hH(e,t,u,c,d,a-1)-1;else{if(d>=9007199254740991)throw $1e("Exceed the acceptable array length");e[d]=u}d++}f++}return d},eEe=hH;function tV(e){return e.length?e[0].tagName.toLowerCase():""}Cl({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Yg(this),n=Ed(t),r=zz(t,0);return r.length=eEe(r,t,t,n,0,e===void 0?1:$g(e)),r}}),em("flat"),Cl({global:!0},{globalThis:Re}),ao&&(M.fn.append=ao),oo&&(M.fn.attr=oo),Dc&&(M.fn.parent=Dc);var tEe={renderElems:[m1e],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(a){var l=o.selection;if(l!=null)if(re.isExpanded(l))t(a);else{var s=R.getSelectedNodeByType(o,"list-item");if(s!=null)if(l.focus.offset!==0)t(a);else{var u=s.level,c=u===void 0?0:u;c>0?Q.setNodes(o,{level:c-1}):Q.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(a)}else t(a)},o.handleTab=function(){var a,l,s,u,c=o.selection;if(c!=null){if(re.isCollapsed(c)){var d=R.getSelectedNodeByType(o,"list-item");if(d==null)return void n();if(c.focus.offset===0){var f=d.level,g=f===void 0?0:f;return void Q.setNodes(o,{level:g+1})}}if(re.isExpanded(c)){var h=0,p=!1;try{for(var y=eH(tH(o)),v=y.next();!v.done;v=y.next()){var b=sm(v.value,1)[0];R.getNodeType(b)==="list-item"?h++:p=!0}}catch(k){a={error:k}}finally{try{v&&!v.done&&(l=y.return)&&l.call(y)}finally{if(a)throw a.error}}if(p||h<=1)return void n();try{for(var m=eH(tH(o)),w=m.next();!w.done;w=m.next()){var S=sm(w.value,2),C=(b=S[0],S[1]),x=b.level;g=x===void 0?0:x,Q.setNodes(o,{level:g+1},{at:C})}}catch(k){s={error:k}}finally{try{w&&!w.done&&(u=m.return)&&u.call(m)}finally{if(s)throw s.error}}}else n()}else n()},o.normalizeNode=function(a){var l=sm(a,2),s=l[0],u=l[1],c=R.getNodeType(s);return c!=="bulleted-list"&&c!=="numbered-list"||Q.unwrapNodes(o,{at:u}),r([s,u])},o},menus:[P1e,N1e],elemsToHtml:[O1e],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=M(e);(t=t.filter(function(l){return!!Se.isText(l)||!!n.isInline(l)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(l){return tV(l.parent())==="ol"}(r),a=function(l){for(var s=0,u=l.parent(),c=tV(u);c==="ul"||c==="ol";)c=tV(u=u.parent()),s++;return s-1}(r);return{type:"list-item",ordered:o,level:a,children:t}}}]},gH=gs(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Array]",l="[object Boolean]",s="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",g="[object Object]",h="[object Promise]",p="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",m="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",C=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[o]=k[a]=k[w]=k[l]=k[S]=k[s]=k[u]=k[c]=k[d]=k[f]=k[g]=k[p]=k[y]=k[v]=k[m]=!1;var E=typeof Et=="object"&&Et&&Et.Object===Object&&Et,A=typeof self=="object"&&self&&self.Object===Object&&self,N=E||A||Function("return this")(),V=t&&!t.nodeType&&t,D=V&&e&&!e.nodeType&&e,P=D&&D.exports===V,O=P&&E.process,F=function(){try{return O&&O.binding&&O.binding("util")}catch{}}(),H=F&&F.isTypedArray;function J(q,te){for(var fe=-1,Ne=q==null?0:q.length;++fe<Ne;)if(te(q[fe],fe,q))return!0;return!1}function j(q){var te=-1,fe=Array(q.size);return q.forEach(function(Ne,bt){fe[++te]=[bt,Ne]}),fe}function z(q){var te=-1,fe=Array(q.size);return q.forEach(function(Ne){fe[++te]=Ne}),fe}var L=Array.prototype,_=Function.prototype,T=Object.prototype,I=N["__core-js_shared__"],U=_.toString,$=T.hasOwnProperty,W=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}(),Z=T.toString,ne=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=P?N.Buffer:void 0,de=N.Symbol,G=N.Uint8Array,se=T.propertyIsEnumerable,ee=L.splice,oe=de?de.toStringTag:void 0,ue=Object.getOwnPropertySymbols,we=me?me.isBuffer:void 0,Ee=function(q,te){return function(fe){return q(te(fe))}}(Object.keys,Object),Ae=Yl(N,"DataView"),Oe=Yl(N,"Map"),Be=Yl(N,"Promise"),Le=Yl(N,"Set"),vt=Yl(N,"WeakMap"),_n=Yl(Object,"create"),br=ki(Ae),qo=ki(Oe),bi=ki(Be),Yo=ki(Le),Oa=ki(vt),wi=de?de.prototype:void 0,lr=wi?wi.valueOf:void 0;function sr(q){var te=-1,fe=q==null?0:q.length;for(this.clear();++te<fe;){var Ne=q[te];this.set(Ne[0],Ne[1])}}function ur(q){var te=-1,fe=q==null?0:q.length;for(this.clear();++te<fe;){var Ne=q[te];this.set(Ne[0],Ne[1])}}function wr(q){var te=-1,fe=q==null?0:q.length;for(this.clear();++te<fe;){var Ne=q[te];this.set(Ne[0],Ne[1])}}function Hn(q){var te=-1,fe=q==null?0:q.length;for(this.__data__=new wr;++te<fe;)this.add(q[te])}function xo(q){var te=this.__data__=new ur(q);this.size=te.size}function Bp(q,te){var fe=xi(q),Ne=!fe&&_2(q),bt=!fe&&!Ne&&Ia(q),et=!fe&&!Ne&&!bt&&Ra(q),K=fe||Ne||bt||et,ae=K?function(ot,zt){for(var _t=-1,ct=Array(ot);++_t<ot;)ct[_t]=zt(_t);return ct}(q.length,String):[],be=ae.length;for(var De in q)!$.call(q,De)||K&&(De=="length"||bt&&(De=="offset"||De=="parent")||et&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||_p(De,be))||ae.push(De);return ae}function ql(q,te){for(var fe=q.length;fe--;)if(sf(q[fe][0],te))return fe;return-1}function Si(q){return q==null?q===void 0?"[object Undefined]":"[object Null]":oe&&oe in Object(q)?function(te){var fe=$.call(te,oe),Ne=te[oe];try{te[oe]=void 0;var bt=!0}catch{}var et=Z.call(te);return bt&&(fe?te[oe]=Ne:delete te[oe]),et}(q):function(te){return Z.call(te)}(q)}function af(q){return Xl(q)&&Si(q)==o}function zu(q,te,fe,Ne,bt){return q===te||(q==null||te==null||!Xl(q)&&!Xl(te)?q!=q&&te!=te:function(et,K,ae,be,De,ot){var zt=xi(et),_t=xi(K),ct=zt?a:eo(et),Tn=_t?a:eo(K),cr=(ct=ct==o?g:ct)==g,Hu=(Tn=Tn==o?g:Tn)==g,Ei=ct==Tn;if(Ei&&Ia(et)){if(!Ia(K))return!1;zt=!0,cr=!1}if(Ei&&!cr)return ot||(ot=new xo),zt||Ra(et)?Eo(et,K,ae,be,De,ot):function(rt,dt,ft,nn,Sr,Nr,Zo){switch(ft){case S:if(rt.byteLength!=dt.byteLength||rt.byteOffset!=dt.byteOffset)return!1;rt=rt.buffer,dt=dt.buffer;case w:return!(rt.byteLength!=dt.byteLength||!Nr(new G(rt),new G(dt)));case l:case s:case f:return sf(+rt,+dt);case u:return rt.name==dt.name&&rt.message==dt.message;case p:case v:return rt==dt+"";case d:var Zl=j;case y:var Pp=1&nn;if(Zl||(Zl=z),rt.size!=dt.size&&!Pp)return!1;var N2=Zo.get(rt);if(N2)return N2==dt;nn|=2,Zo.set(rt,dt);var uf=Eo(Zl(rt),Zl(dt),nn,Sr,Nr,Zo);return Zo.delete(rt),uf;case b:if(lr)return lr.call(rt)==lr.call(dt)}return!1}(et,K,ct,ae,be,De,ot);if(!(1&ae)){var Jl=cr&&$.call(et,"__wrapped__"),Me=Hu&&$.call(K,"__wrapped__");if(Jl||Me){var mt=Jl?et.value():et,hn=Me?K.value():K;return ot||(ot=new xo),De(mt,hn,ae,be,ot)}}return Ei?(ot||(ot=new xo),function(rt,dt,ft,nn,Sr,Nr){var Zo=1&ft,Zl=Ci(rt),Pp=Zl.length,N2=Ci(dt).length;if(Pp!=N2&&!Zo)return!1;for(var uf=Pp;uf--;){var Uu=Zl[uf];if(!(Zo?Uu in dt:$.call(dt,Uu)))return!1}var HY=Nr.get(rt);if(HY&&Nr.get(dt))return HY==dt;var O2=!0;Nr.set(rt,dt),Nr.set(dt,rt);for(var C5=Zo;++uf<Pp;){var I2=rt[Uu=Zl[uf]],F2=dt[Uu];if(nn)var UY=Zo?nn(F2,I2,Uu,dt,rt,Nr):nn(I2,F2,Uu,rt,dt,Nr);if(!(UY===void 0?I2===F2||Sr(I2,F2,ft,nn,Nr):UY)){O2=!1;break}C5||(C5=Uu=="constructor")}if(O2&&!C5){var R2=rt.constructor,L2=dt.constructor;R2==L2||!("constructor"in rt)||!("constructor"in dt)||typeof R2=="function"&&R2 instanceof R2&&typeof L2=="function"&&L2 instanceof L2||(O2=!1)}return Nr.delete(rt),Nr.delete(dt),O2}(et,K,ae,be,De,ot)):!1}(q,te,fe,Ne,zu,bt))}function lf(q){return!(!T2(q)||function(te){return!!W&&W in te}(q))&&(Tp(q)?ne:C).test(ki(q))}function Xo(q){if(fe=(te=q)&&te.constructor,Ne=typeof fe=="function"&&fe.prototype||T,te!==Ne)return Ee(q);var te,fe,Ne,bt=[];for(var et in Object(q))$.call(q,et)&&et!="constructor"&&bt.push(et);return bt}function Eo(q,te,fe,Ne,bt,et){var K=1&fe,ae=q.length,be=te.length;if(ae!=be&&!(K&&be>ae))return!1;var De=et.get(q);if(De&&et.get(te))return De==te;var ot=-1,zt=!0,_t=2&fe?new Hn:void 0;for(et.set(q,te),et.set(te,q);++ot<ae;){var ct=q[ot],Tn=te[ot];if(Ne)var cr=K?Ne(Tn,ct,ot,te,q,et):Ne(ct,Tn,ot,q,te,et);if(cr!==void 0){if(cr)continue;zt=!1;break}if(_t){if(!J(te,function(Hu,Ei){if(Jl=Ei,!_t.has(Jl)&&(ct===Hu||bt(ct,Hu,fe,Ne,et)))return _t.push(Ei);var Jl})){zt=!1;break}}else if(ct!==Tn&&!bt(ct,Tn,fe,Ne,et)){zt=!1;break}}return et.delete(q),et.delete(te),zt}function Ci(q){return function(te,fe,Ne){var bt=fe(te);return xi(te)?bt:function(et,K){for(var ae=-1,be=K.length,De=et.length;++ae<be;)et[De+ae]=K[ae];return et}(bt,Ne(te))}(q,P2,B2)}function Jo(q,te){var fe,Ne,bt=q.__data__;return((Ne=typeof(fe=te))=="string"||Ne=="number"||Ne=="symbol"||Ne=="boolean"?fe!=="__proto__":fe===null)?bt[typeof te=="string"?"string":"hash"]:bt.map}function Yl(q,te){var fe=function(Ne,bt){return Ne==null?void 0:Ne[bt]}(q,te);return lf(fe)?fe:void 0}sr.prototype.clear=function(){this.__data__=_n?_n(null):{},this.size=0},sr.prototype.delete=function(q){var te=this.has(q)&&delete this.__data__[q];return this.size-=te?1:0,te},sr.prototype.get=function(q){var te=this.__data__;if(_n){var fe=te[q];return fe===n?void 0:fe}return $.call(te,q)?te[q]:void 0},sr.prototype.has=function(q){var te=this.__data__;return _n?te[q]!==void 0:$.call(te,q)},sr.prototype.set=function(q,te){var fe=this.__data__;return this.size+=this.has(q)?0:1,fe[q]=_n&&te===void 0?n:te,this},ur.prototype.clear=function(){this.__data__=[],this.size=0},ur.prototype.delete=function(q){var te=this.__data__,fe=ql(te,q);return!(fe<0)&&(fe==te.length-1?te.pop():ee.call(te,fe,1),--this.size,!0)},ur.prototype.get=function(q){var te=this.__data__,fe=ql(te,q);return fe<0?void 0:te[fe][1]},ur.prototype.has=function(q){return ql(this.__data__,q)>-1},ur.prototype.set=function(q,te){var fe=this.__data__,Ne=ql(fe,q);return Ne<0?(++this.size,fe.push([q,te])):fe[Ne][1]=te,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(Oe||ur),string:new sr}},wr.prototype.delete=function(q){var te=Jo(this,q).delete(q);return this.size-=te?1:0,te},wr.prototype.get=function(q){return Jo(this,q).get(q)},wr.prototype.has=function(q){return Jo(this,q).has(q)},wr.prototype.set=function(q,te){var fe=Jo(this,q),Ne=fe.size;return fe.set(q,te),this.size+=fe.size==Ne?0:1,this},Hn.prototype.add=Hn.prototype.push=function(q){return this.__data__.set(q,n),this},Hn.prototype.has=function(q){return this.__data__.has(q)},xo.prototype.clear=function(){this.__data__=new ur,this.size=0},xo.prototype.delete=function(q){var te=this.__data__,fe=te.delete(q);return this.size=te.size,fe},xo.prototype.get=function(q){return this.__data__.get(q)},xo.prototype.has=function(q){return this.__data__.has(q)},xo.prototype.set=function(q,te){var fe=this.__data__;if(fe instanceof ur){var Ne=fe.__data__;if(!Oe||Ne.length<199)return Ne.push([q,te]),this.size=++fe.size,this;fe=this.__data__=new wr(Ne)}return fe.set(q,te),this.size=fe.size,this};var B2=ue?function(q){return q==null?[]:(q=Object(q),function(te,fe){for(var Ne=-1,bt=te==null?0:te.length,et=0,K=[];++Ne<bt;){var ae=te[Ne];fe(ae,Ne,te)&&(K[et++]=ae)}return K}(ue(q),function(te){return se.call(q,te)}))}:function(){return[]},eo=Si;function _p(q,te){return!!(te=te??r)&&(typeof q=="number"||x.test(q))&&q>-1&&q%1==0&&q<te}function ki(q){if(q!=null){try{return U.call(q)}catch{}try{return q+""}catch{}}return""}function sf(q,te){return q===te||q!=q&&te!=te}(Ae&&eo(new Ae(new ArrayBuffer(1)))!=S||Oe&&eo(new Oe)!=d||Be&&eo(Be.resolve())!=h||Le&&eo(new Le)!=y||vt&&eo(new vt)!=m)&&(eo=function(q){var te=Si(q),fe=te==g?q.constructor:void 0,Ne=fe?ki(fe):"";if(Ne)switch(Ne){case br:return S;case qo:return d;case bi:return h;case Yo:return y;case Oa:return m}return te});var _2=af(function(){return arguments}())?af:function(q){return Xl(q)&&$.call(q,"callee")&&!se.call(q,"callee")},xi=Array.isArray,Ia=we||function(){return!1};function Tp(q){if(!T2(q))return!1;var te=Si(q);return te==c||te=="[object GeneratorFunction]"||te=="[object AsyncFunction]"||te=="[object Proxy]"}function Fa(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=r}function T2(q){var te=typeof q;return q!=null&&(te=="object"||te=="function")}function Xl(q){return q!=null&&typeof q=="object"}var Ra=H?function(q){return function(te){return q(te)}}(H):function(q){return Xl(q)&&Fa(q.length)&&!!k[Si(q)]};function P2(q){return(te=q)!=null&&Fa(te.length)&&!Tp(te)?Bp(q):Xo(q);var te}e.exports=function(q,te){return zu(q,te)}});Vr("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"}}),Vr("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var mH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pH(e){var t={exports:{}};return e(t,t.exports),t.exports}var kl,Kb,qb=function(e){return e&&e.Math==Math&&e},Je=qb(typeof globalThis=="object"&&globalThis)||qb(typeof window=="object"&&window)||qb(typeof self=="object"&&self)||qb(typeof mH=="object"&&mH)||function(){return this}()||Function("return this")(),wn=function(e){try{return!!e()}catch{return!0}},xl=!wn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),um=Function.prototype.call,Bn=um.bind?um.bind(um):function(){return um.apply(um,arguments)},vH={}.propertyIsEnumerable,yH=Object.getOwnPropertyDescriptor,nEe={f:yH&&!vH.call({1:2},1)?function(e){var t=yH(this,e);return!!t&&t.enumerable}:vH},nV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bH=Function.prototype,rV=bH.bind,oV=bH.call,rEe=rV&&rV.bind(oV),nt=rV?function(e){return e&&rEe(oV,e)}:function(e){return e&&function(){return oV.apply(e,arguments)}},oEe=nt({}.toString),aEe=nt("".slice),El=function(e){return aEe(oEe(e),8,-1)},aV=Je.Object,iEe=nt("".split),wH=wn(function(){return!aV("z").propertyIsEnumerable(0)})?function(e){return El(e)=="String"?iEe(e,""):aV(e)}:aV,lEe=Je.TypeError,Dl=function(e){if(e==null)throw lEe("Can't call method on "+e);return e},cm=function(e){return wH(Dl(e))},ar=function(e){return typeof e=="function"},Ea=function(e){return typeof e=="object"?e!==null:ar(e)},sEe=function(e){return ar(e)?e:void 0},dm=function(e,t){return arguments.length<2?sEe(Je[e]):Je[e]&&Je[e][t]},SH=nt({}.isPrototypeOf),iV=dm("navigator","userAgent")||"",CH=Je.process,kH=Je.Deno,xH=CH&&CH.versions||kH&&kH.version,EH=xH&&xH.v8;EH&&(Kb=(kl=EH.split("."))[0]>0&&kl[0]<4?1:+(kl[0]+kl[1])),!Kb&&iV&&(!(kl=iV.match(/Edge\/(\d+)/))||kl[1]>=74)&&(kl=iV.match(/Chrome\/(\d+)/))&&(Kb=+kl[1]);var lV=Kb,sV=!!Object.getOwnPropertySymbols&&!wn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lV&&lV<41}),uV=sV&&!Symbol.sham&&typeof Symbol.iterator=="symbol",uEe=Je.Object,cV=uV?function(e){return typeof e=="symbol"}:function(e){var t=dm("Symbol");return ar(t)&&SH(t.prototype,uEe(e))},cEe=Je.String,DH=function(e){try{return cEe(e)}catch{return"Object"}},dEe=Je.TypeError,AH=function(e){if(ar(e))return e;throw dEe(DH(e)+" is not a function")},dV=function(e,t){var n=e[t];return n==null?void 0:AH(n)},fEe=Je.TypeError,hEe=Object.defineProperty,fV=function(e,t){try{hEe(Je,e,{value:t,configurable:!0,writable:!0})}catch{Je[e]=t}return t},Al=Je["__core-js_shared__"]||fV("__core-js_shared__",{}),hV=pH(function(e){(e.exports=function(t,n){return Al[t]||(Al[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gEe=Je.Object,gV=function(e){return gEe(Dl(e))},mEe=nt({}.hasOwnProperty),vo=Object.hasOwn||function(e,t){return mEe(gV(e),t)},pEe=0,vEe=Math.random(),yEe=nt(1 .toString),VH=function(e){return"Symbol("+(e===void 0?"":e)+")_"+yEe(++pEe+vEe,36)},fm=hV("wks"),Su=Je.Symbol,BH=Su&&Su.for,bEe=uV?Su:Su&&Su.withoutSetter||VH,yo=function(e){if(!vo(fm,e)||!sV&&typeof fm[e]!="string"){var t="Symbol."+e;sV&&vo(Su,e)?fm[e]=Su[e]:fm[e]=uV&&BH?BH(t):bEe(t)}return fm[e]},wEe=Je.TypeError,SEe=yo("toPrimitive"),mV=function(e){var t=function(n,r){if(!Ea(n)||cV(n))return n;var o,a=dV(n,SEe);if(a){if(o=Bn(a,n,r),!Ea(o)||cV(o))return o;throw wEe("Can't convert object to primitive value")}return function(l,s){var u,c;if(ar(u=l.toString)&&!Ea(c=Bn(u,l))||ar(u=l.valueOf)&&!Ea(c=Bn(u,l)))return c;throw fEe("Can't convert object to primitive value")}(n)}(e,"string");return cV(t)?t:t+""},pV=Je.document,CEe=Ea(pV)&&Ea(pV.createElement),vV=function(e){return CEe?pV.createElement(e):{}},_H=!xl&&!wn(function(){return Object.defineProperty(vV("div"),"a",{get:function(){return 7}}).a!=7}),TH=Object.getOwnPropertyDescriptor,PH={f:xl?TH:function(e,t){if(e=cm(e),t=mV(t),_H)try{return TH(e,t)}catch{}if(vo(e,t))return nV(!Bn(nEe.f,e,t),e[t])}},kEe=Je.String,xEe=Je.TypeError,bo=function(e){if(Ea(e))return e;throw xEe(kEe(e)+" is not an object")},EEe=Je.TypeError,NH=Object.defineProperty,hm={f:xl?NH:function(e,t,n){if(bo(e),t=mV(t),bo(n),_H)try{return NH(e,t,n)}catch{}if("get"in n||"set"in n)throw EEe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Vd=xl?function(e,t,n){return hm.f(e,t,nV(1,n))}:function(e,t,n){return e[t]=n,e},DEe=nt(Function.toString);ar(Al.inspectSource)||(Al.inspectSource=function(e){return DEe(e)});var yV,Yb,bV,wV=Al.inspectSource,OH=Je.WeakMap,AEe=ar(OH)&&/native code/.test(wV(OH)),IH=hV("keys"),FH=function(e){return IH[e]||(IH[e]=VH(e))},SV={},RH=Je.TypeError,VEe=Je.WeakMap;if(AEe||Al.state){var Cu=Al.state||(Al.state=new VEe),BEe=nt(Cu.get),LH=nt(Cu.has),_Ee=nt(Cu.set);yV=function(e,t){if(LH(Cu,e))throw new RH("Object already initialized");return t.facade=e,_Ee(Cu,e,t),t},Yb=function(e){return BEe(Cu,e)||{}},bV=function(e){return LH(Cu,e)}}else{var Bd=FH("state");SV[Bd]=!0,yV=function(e,t){if(vo(e,Bd))throw new RH("Object already initialized");return t.facade=e,Vd(e,Bd,t),t},Yb=function(e){return vo(e,Bd)?e[Bd]:{}},bV=function(e){return vo(e,Bd)}}var CV={get:Yb,enforce:function(e){return bV(e)?Yb(e):yV(e,{})}},MH=Function.prototype,TEe=xl&&Object.getOwnPropertyDescriptor,jH=vo(MH,"name"),kV={PROPER:jH&&(function(){}).name==="something",CONFIGURABLE:jH&&(!xl||xl&&TEe(MH,"name").configurable)},gm=pH(function(e){var t=kV.CONFIGURABLE,n=CV.get,r=CV.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;ar(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vo(s,"name")||t&&s.name!==h)&&Vd(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==Je?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Vd(a,l,s)):f?a[l]=s:fV(l,s)})(Function.prototype,"toString",function(){return ar(this)&&n(this).source||wV(this)})}),PEe=Math.ceil,NEe=Math.floor,Xb=function(e){var t=+e;return t!=t||t===0?0:(t>0?NEe:PEe)(t)},OEe=Math.max,IEe=Math.min,mm=function(e,t){var n=Xb(e);return n<0?OEe(n+t,0):IEe(n,t)},FEe=Math.min,xV=function(e){return e>0?FEe(Xb(e),9007199254740991):0},Jb=function(e){return xV(e.length)},REe=function(e){return function(t,n,r){var o,a=cm(t),l=Jb(a),s=mm(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},LEe=REe(!1),zH=nt([].push),HH=function(e,t){var n,r=cm(e),o=0,a=[];for(n in r)!vo(SV,n)&&vo(r,n)&&zH(a,n);for(;t.length>o;)vo(r,n=t[o++])&&(~LEe(a,n)||zH(a,n));return a},Zb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],MEe=Zb.concat("length","prototype"),jEe={f:Object.getOwnPropertyNames||function(e){return HH(e,MEe)}},zEe={f:Object.getOwnPropertySymbols},HEe=nt([].concat),UEe=dm("Reflect","ownKeys")||function(e){var t=jEe.f(bo(e)),n=zEe.f;return n?HEe(t,n(e)):t},WEe=function(e,t){for(var n=UEe(t),r=hm.f,o=PH.f,a=0;a<n.length;a++){var l=n[a];vo(e,l)||r(e,l,o(t,l))}},GEe=/#|\.prototype\./,pm=function(e,t){var n=qEe[KEe(e)];return n==XEe||n!=YEe&&(ar(t)?wn(t):!!t)},KEe=pm.normalize=function(e){return String(e).replace(GEe,".").toLowerCase()},qEe=pm.data={},YEe=pm.NATIVE="N",XEe=pm.POLYFILL="P",JEe=pm,ZEe=PH.f,Vl=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?Je:c?Je[s]||fV(s,{}):(Je[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=ZEe(n,r))&&l.value:n[r],!JEe(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;WEe(a,o)}(e.sham||o&&o.sham)&&Vd(a,"sham",!0),gm(n,r,a,e)}},UH={};UH[yo("toStringTag")]="z";var EV=String(UH)==="[object z]",QEe=yo("toStringTag"),$Ee=Je.Object,eDe=El(function(){return arguments}())=="Arguments",DV=EV?El:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=$Ee(e),QEe))=="string"?n:eDe?El(t):(r=El(t))=="Object"&&ar(t.callee)?"Arguments":r},tDe=Je.String,ir=function(e){if(DV(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tDe(e)},nDe=/"/g,rDe=nt("".replace);Vl({target:"String",proto:!0,forced:wn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ir(Dl(this)),r="<a",(r+=' name="'+rDe(ir(t),nDe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Qb,WH=function(){var e=bo(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},AV=Je.RegExp,VV=wn(function(){var e=AV("a","y");return e.lastIndex=2,e.exec("abcd")!=null});VV||wn(function(){return!AV("a","y").sticky});var GH={BROKEN_CARET:VV||wn(function(){var e=AV("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:VV},oDe=Object.keys||function(e){return HH(e,Zb)},aDe=xl?Object.defineProperties:function(e,t){bo(e);for(var n,r=cm(t),o=oDe(t),a=o.length,l=0;a>l;)hm.f(e,n=o[l++],r[n]);return e},iDe=dm("document","documentElement"),KH=FH("IE_PROTO"),BV=function(){},qH=function(e){return"<script>"+e+"<\/script>"},YH=function(e){e.write(qH("")),e.close();var t=e.parentWindow.Object;return e=null,t},$b=function(){try{Qb=new ActiveXObject("htmlfile")}catch{}var e,t;$b=typeof document<"u"?document.domain&&Qb?YH(Qb):((t=vV("iframe")).style.display="none",iDe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(qH("document.F=Object")),e.close(),e.F):YH(Qb);for(var n=Zb.length;n--;)delete $b.prototype[Zb[n]];return $b()};SV[KH]=!0;var XH,_V,JH=Object.create||function(e,t){var n;return e!==null?(BV.prototype=bo(e),n=new BV,BV.prototype=null,n[KH]=e):n=$b(),t===void 0?n:aDe(n,t)},lDe=Je.RegExp,sDe=wn(function(){var e=lDe(".","s");return!(e.dotAll&&e.exec(`
140
+ `)&&e.flags==="s")}),uDe=Je.RegExp,cDe=wn(function(){var e=uDe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dDe=CV.get,fDe=hV("native-string-replace",String.prototype.replace),ew=RegExp.prototype.exec,TV=ew,hDe=nt("".charAt),gDe=nt("".indexOf),mDe=nt("".replace),PV=nt("".slice),NV=(_V=/b*/g,Bn(ew,XH=/a/,"a"),Bn(ew,_V,"a"),XH.lastIndex!==0||_V.lastIndex!==0),ZH=GH.BROKEN_CARET,OV=/()??/.exec("")[1]!==void 0;(NV||OV||ZH||sDe||cDe)&&(TV=function(e){var t,n,r,o,a,l,s,u=this,c=dDe(u),d=ir(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=Bn(TV,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=ZH&&u.sticky,p=Bn(WH,u),y=u.source,v=0,b=d;if(h&&(p=mDe(p,"y",""),gDe(p,"g")===-1&&(p+="g"),b=PV(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&hDe(d,u.lastIndex-1)!==`
141
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),OV&&(n=new RegExp("^"+y+"$(?!\\s)",p)),NV&&(r=u.lastIndex),o=Bn(ew,h?n:u,b),h?o?(o.input=PV(o.input,v),o[0]=PV(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:NV&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),OV&&o&&o.length>1&&Bn(fDe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=JH(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var vm=TV;Vl({target:"RegExp",proto:!0,forced:/./.exec!==vm},{exec:vm});var tw=Array.isArray||function(e){return El(e)=="Array"},QH=function(){},pDe=[],$H=dm("Reflect","construct"),IV=/^\s*(?:class|function)\b/,vDe=nt(IV.exec),yDe=!IV.exec(QH),ym=function(e){if(!ar(e))return!1;try{return $H(QH,pDe,e),!0}catch{return!1}},FV=!$H||wn(function(){var e;return ym(ym.call)||!ym(Object)||!ym(function(){e=!0})||e})?function(e){if(!ar(e))return!1;switch(DV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yDe||!!vDe(IV,wV(e))}:ym,eU=function(e,t,n){var r=mV(t);r in e?hm.f(e,r,nV(0,n)):e[r]=n},bDe=yo("species"),RV=function(e){return lV>=51||!wn(function(){var t=[];return(t.constructor={})[bDe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},wDe=nt([].slice),SDe=RV("slice"),CDe=yo("species"),LV=Je.Array,kDe=Math.max;function Wo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function tU(e){var t=e.selection;if(t==null)return!1;var n=Wo(B.nodes(e,{match:function(a){return R.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=Wo(n,2)[1],o=B.start(e,r);if(Ke.equals(t.anchor,o))return!0}return!1}function nU(e,t){var n,r,o=B.nodes(e,{at:t,match:function(u){return R.getNodeType(u)==="table"}}),a=!1;try{for(var l=function(u){var c=typeof Symbol=="function"&&Symbol.iterator,d=c&&u[c],f=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&f>=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=l.next();!s.done;s=l.next())s.value,a=!0}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return a}Vl({target:"Array",proto:!0,forced:!SDe},{slice:function(e,t){var n,r,o,a=cm(this),l=Jb(a),s=mm(e,l),u=mm(t===void 0?l:t,l);if(tw(a)&&(n=a.constructor,(FV(n)&&(n===LV||tw(n.prototype))||Ea(n)&&(n=n[CDe])===null)&&(n=void 0),n===LV||n===void 0))return wDe(a,s,u);for(r=new(n===void 0?LV:n)(kDe(u-s,0)),o=0;s<u;s++,o++)s in a&&eU(r,o,a[s]);return r.length=o,r}});var rU=nt(nt.bind),xDe=yo("species"),oU=Je.Array,EDe=function(e,t){return new(function(n){var r;return tw(n)&&(r=n.constructor,(FV(r)&&(r===oU||tw(r.prototype))||Ea(r)&&(r=r[xDe])===null)&&(r=void 0)),r===void 0?oU:r}(e))(t===0?0:t)},aU=nt([].push),nw=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=gV(u),y=wH(p),v=function(C,x){return AH(C),x===void 0?C:rU?rU(C,x):function(){return C.apply(x,arguments)}}(c,d),b=Jb(y),m=0,w=f||EDe,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:aU(S,g)}else switch(e){case 4:return!1;case 7:aU(S,g)}return a?-1:r||o?o:S}},rw={forEach:nw(0),map:nw(1),filter:nw(2),find:nw(5)},DDe=rw.map;Vl({target:"Array",proto:!0,forced:!RV("map")},{map:function(e){return DDe(this,e,arguments.length>1?arguments[1]:void 0)}});var ADe=EV?{}.toString:function(){return"[object "+DV(this)+"]"};function ow(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function iU(e){return ow(e).every(function(t){return!!t.isHeader})}EV||gm(Object.prototype,"toString",ADe,{unsafe:!0});var VDe=kV.PROPER,MV=RegExp.prototype,lU=MV.toString,BDe=nt(WH),_De=wn(function(){return lU.call({source:"a",flags:"b"})!="/a/b"}),TDe=VDe&&lU.name!="toString";(_De||TDe)&&gm(RegExp.prototype,"toString",function(){var e=bo(this),t=ir(e.source),n=e.flags;return"/"+t+"/"+ir(n===void 0&&SH(MV,e)&&!("flags"in MV)?BDe(e):n)},{unsafe:!0});var jV=yo("unscopables"),zV=Array.prototype;zV[jV]==null&&hm.f(zV,jV,{configurable:!0,value:JH(null)});var PDe=rw.find,sU=!0;"find"in[]&&Array(1).find(function(){sU=!1}),Vl({target:"Array",proto:!0,forced:sU},{find:function(e){return PDe(this,e,arguments.length>1?arguments[1]:void 0)}}),zV[jV].find=!0;var HV=Function.prototype,uU=HV.apply,NDe=HV.bind,cU=HV.call,dU=typeof Reflect=="object"&&Reflect.apply||(NDe?cU.bind(uU):function(){return cU.apply(uU,arguments)}),ODe=yo("species"),UV=RegExp.prototype,fU=function(e,t,n,r){var o=yo(e),a=!wn(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!wn(function(){var c=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[ODe]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=nt(/./[o]),u=t(o,""[e],function(c,d,f,g,h){var p=nt(c),y=d.exec;return y===vm||y===UV.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});gm(String.prototype,e,u[0]),gm(UV,o,u[1])}r&&Vd(UV[o],"sham",!0)},IDe=yo("match"),FDe=Je.TypeError,RDe=yo("species"),LDe=nt("".charAt),hU=nt("".charCodeAt),MDe=nt("".slice),jDe=function(e){return function(t,n){var r,o,a=ir(Dl(t)),l=Xb(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=hU(a,l))<55296||r>56319||l+1===s||(o=hU(a,l+1))<56320||o>57343?e?LDe(a,l):r:e?MDe(a,l,l+2):o-56320+(r-55296<<10)+65536}},zDe=jDe(!0),gU=function(e,t,n){return t+(n?zDe(e,t).length:1)},HDe=Je.Array,UDe=Math.max,mU=function(e,t,n){for(var r=Jb(e),o=mm(t,r),a=mm(n===void 0?r:n,r),l=HDe(UDe(a-o,0)),s=0;o<a;o++,s++)eU(l,s,e[o]);return l.length=s,l},WDe=Je.TypeError,WV=function(e,t){var n=e.exec;if(ar(n)){var r=Bn(n,e,t);return r!==null&&bo(r),r}if(El(e)==="RegExp")return Bn(vm,e,t);throw WDe("RegExp#exec called on incompatible receiver")},_d=GH.UNSUPPORTED_Y,GDe=Math.min,pU=[].push,KDe=nt(/./.exec),Td=nt(pU),bm=nt("".slice);fU("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var l,s,u=ir(Dl(this)),c=a===void 0?4294967295:a>>>0;if(c===0)return[];if(o===void 0)return[u];if(!Ea(l=o)||!((s=l[IDe])!==void 0?s:El(l)=="RegExp"))return Bn(t,u,o,c);for(var d,f,g,h=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),y=0,v=new RegExp(o.source,p+"g");(d=Bn(vm,v,u))&&!((f=v.lastIndex)>y&&(Td(h,bm(u,y,d.index)),d.length>1&&d.index<u.length&&dU(pU,h,mU(d,1)),g=d[0].length,y=f,h.length>=c));)v.lastIndex===d.index&&v.lastIndex++;return y===u.length?!g&&KDe(v,"")||Td(h,""):Td(h,bm(u,y)),h.length>c?mU(h,0,c):h}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:Bn(t,this,o,a)}:t,[function(o,a){var l=Dl(this),s=o==null?void 0:dV(o,e);return s?Bn(s,o,l,a):Bn(r,ir(l),o,a)},function(o,a){var l=bo(this),s=ir(o),u=n(r,l,s,a,r!==t);if(u.done)return u.value;var c=function(S,C){var x,k=bo(S).constructor;return k===void 0||(x=bo(k)[RDe])==null?C:function(E){if(FV(E))return E;throw FDe(DH(E)+" is not a constructor")}(x)}(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(_d?"g":"y"),g=new c(_d?"^(?:"+l.source+")":l,f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return WV(g,s)===null?[s]:[];for(var p=0,y=0,v=[];y<s.length;){g.lastIndex=_d?0:y;var b,m=WV(g,_d?bm(s,y):s);if(m===null||(b=GDe(xV(g.lastIndex+(_d?y:0)),s.length))===p)y=gU(s,y,d);else{if(Td(v,bm(s,p,y)),v.length===h)return v;for(var w=1;w<=m.length-1;w++)if(Td(v,m[w]),v.length===h)return v;y=p=b}}return Td(v,bm(s,p)),v}]},!!wn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),_d);var GV=`
142
+ \v\f\r                 \u2028\u2029\uFEFF`,vU=nt("".replace),aw="["+GV+"]",qDe=RegExp("^"+aw+aw+"*"),YDe=RegExp(aw+aw+"*$"),XDe=function(e){return function(t){var n=ir(Dl(t));return 1&e&&(n=vU(n,qDe,"")),2&e&&(n=vU(n,YDe,"")),n}},JDe={trim:XDe(3)},ZDe=kV.PROPER,QDe=JDe.trim;function yU(e){return e.length?e[0].tagName.toLowerCase():""}Vl({target:"String",proto:!0,forced:function(e){return wn(function(){return!!GV[e]()||"​…᠎"[e]()!=="​…᠎"||ZDe&&GV[e].name!==e})}("trim")},{trim:function(){return QDe(this)}}),Vl({global:!0},{globalThis:Je}),ao&&(M.fn.append=ao),da&&(M.fn.on=da),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),ca&&(M.fn.val=ca),Ui&&(M.fn.html=Ui),xc&&(M.fn.dataset=xc),Sc&&(M.fn.addClass=Sc),Cc&&(M.fn.removeClass=Cc),Vc&&(M.fn.children=Vc),Ay&&(M.fn.each=Ay),Ac&&(M.fn.find=Ac);var wm=!1,bU=0,wU=0,Sm=null,Cm=null,km=M("body");function SU(e){wm=!1,Cm=null,Sm=null,km.off("mousemove",CU),km.off("mouseup",SU)}km.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),wm=!0;var n=e.clientX;bU=n;var r=t.getBoundingClientRect().width;wU=r,km.on("mousemove",CU),km.on("mouseup",SU)}});var CU=Ns(function(e){if(wm&&Cm!=null&&Sm!=null){e.preventDefault();var t=e.clientX,n=wU+(t-bU);(n=Math.floor(100*n)/100)<30&&(n=30),Q.setNodes(Cm,{width:n.toString()},{at:Sm})}},100),$De={type:"table",renderElem:function(e,t,n){var r=function(s,u){if(s.isDisabled())return!1;var c=s.selection;if(c==null||re.isCollapsed(c))return!0;var d=c.anchor,f=c.focus,g=R.findPath(s,u),h=B.start(s,g),p=B.end(s,g),y=Ke.compare(d,p)<=0&&Ke.compare(d,h)>=0,v=Ke.compare(f,p)<=0&&Ke.compare(f,h)>=0;return!!(y&&v&&Y.equals(d.path.slice(0,3),f.path.slice(0,3)))}(n,e),o=e.width,a=o===void 0?"auto":o,l=Fe("div",{className:"table-container","data-selected":R.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var u=R.findPath(n,e),c=B.start(n,u),d=n.selection;d!=null?d.anchor.path[0]!==u[0]&&n.select(c):n.select(c)}}}},Fe("table",{width:a,contentEditable:r},Fe("colgroup",null,ow(e).map(function(s){var u=s.width;return Fe("col",{width:u===void 0?"auto":u})})),Fe("tbody",null,t)));return l}},e4e={type:"table-row",renderElem:function(e,t,n){return Fe("tr",null,t)}},t4e={type:"table-cell",renderElem:function(e,t,n){var r=function(g,h){var p=R.getParentNode(g,h);if(p==null)return!1;var y=R.getParentNode(g,p);return y!=null&&ow(y).some(function(v){return v===h})}(n,e),o=e,a=o.colSpan,l=a===void 0?1:a,s=o.rowSpan,u=s===void 0?1:s,c=o.isHeader,d=c!==void 0&&c;if(!r)return Fe("td",{colSpan:l,rowSpan:u},t);var f=Fe(d?"th":"td",{colSpan:l,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Ns(function(g){var h=this.elm;if(h!=null){var p=h.getBoundingClientRect(),y=p.left,v=p.width,b=p.top,m=p.height,w=g.clientX,S=g.clientY;wm||(w>y+v-5&&w<y+v&&S>b&&S<b+m?(h.style.cursor="col-resize",Cm=n,Sm=R.findPath(n,e)):wm||(h.style.cursor="auto",Cm=null,Sm=null))}},100)}},t);return f}},n4e={selector:"table",preParseHtml:function(e){var t=M(e);if(yU(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},r4e=rw.filter;Vl({target:"Array",proto:!0,forced:!RV("filter")},{filter:function(e){return r4e(this,e,arguments.length>1?arguments[1]:void 0)}});var o4e=Math.floor,KV=nt("".charAt),a4e=nt("".replace),qV=nt("".slice),i4e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l4e=/\$([$&'`]|\d{1,2})/g,s4e=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=l4e;return o!==void 0&&(o=gV(o),u=i4e),a4e(a,u,function(c,d){var f;switch(KV(d,0)){case"$":return"$";case"&":return e;case"`":return qV(t,0,n);case"'":return qV(t,l);case"<":f=o[qV(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=o4e(g/10);return h===0?c:h<=s?r[h-1]===void 0?KV(d,1):r[h-1]+KV(d,1):c}f=r[g-1]}return f===void 0?"":f})},YV=yo("replace"),u4e=Math.max,c4e=Math.min,d4e=nt([].concat),XV=nt([].push),kU=nt("".indexOf),xU=nt("".slice),f4e="a".replace(/./,"$0")==="$0",EU=!!/./[YV]&&/./[YV]("a","$0")==="";fU("replace",function(e,t,n){var r=EU?"$":"$0";return[function(o,a){var l=Dl(this),s=o==null?void 0:dV(o,YV);return s?Bn(s,o,l,a):Bn(t,ir(l),o,a)},function(o,a){var l=bo(this),s=ir(o);if(typeof a=="string"&&kU(a,r)===-1&&kU(a,"$<")===-1){var u=n(t,l,s,a);if(u.done)return u.value}var c=ar(a);c||(a=ir(a));var d=l.global;if(d){var f=l.unicode;l.lastIndex=0}for(var g=[];;){var h=WV(l,s);if(h===null||(XV(g,h),!d))break;ir(h[0])===""&&(l.lastIndex=gU(s,xV(l.lastIndex),f))}for(var p,y="",v=0,b=0;b<g.length;b++){for(var m=ir((h=g[b])[0]),w=u4e(c4e(Xb(h.index),s.length),0),S=[],C=1;C<h.length;C++)XV(S,(p=h[C])===void 0?p:String(p));var x=h.groups;if(c){var k=d4e([m],S,w,s);x!==void 0&&XV(k,x);var E=ir(dU(a,void 0,k))}else E=s4e(m,s,w,S,x,a);w>=v&&(y+=xU(s,v,w)+E,v=w+m.length)}return y+xU(s,v)}]},!!wn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!f4e||EU);var h4e={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e);(t=t.filter(function(s){return!!Se.isText(s)||!!n.isInline(s)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),a=parseInt(r.attr("rowSpan")||"1"),l=r.attr("width")||"auto";return{type:"table-cell",isHeader:yU(r)==="th",colSpan:o,rowSpan:a,width:l,children:t}}},g4e={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return R.getNodeType(r)==="table-cell"})}}},m4e={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=M(e),o="auto";return function(a,l){for(var s="",u=(a.attr("style")||"").split(";"),c=u.length,d=0;d<c;d++){var f=u[d];if(f){var g=f.split(":");g[0].trim()==="width"&&(s=g[1].trim())}}return s}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(a){return R.getNodeType(a)==="table-row"})}}},p4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||!!R.getSelectedElems(t).some(function(r){var o=R.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=M('<div class="w-e-panel-content-table"></div>'),o=M("<span>0 &times; 0</span>"),a=M("<table></table>"),l=0;l<10;l++){for(var s=M("<tr></tr>"),u=0;u<10;u++){var c=M("<td></td>");c.attr("data-x",u.toString()),c.attr("data-y",l.toString()),s.append(c),c.on("mouseenter",function(d){var f=d.target;if(f!=null){var g=M(f).dataset(),h=g.x,p=g.y;o[0].innerHTML=h+1+" &times; "+(p+1),a.children().each(function(y){M(y).children().each(function(v){var b=M(v),m=b.dataset(),w=m.x,S=m.y;w<=h&&S<=p?b.addClass("active"):b.removeClass("active")})})}}),c.on("click",function(d){d.preventDefault();var f=d.target;if(f!=null){var g=M(f).dataset(),h=g.x,p=g.y;n.insertTable(t,p+1,h+1)}})}a.append(s)}return r.append(a),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),a=parseInt(r,10);if(o&&a&&!(o<=0||a<=0)){R.isSelectedEmptyParagraph(t)&&Q.removeNodes(t,{mode:"highest"});var l=function(s,u){for(var c=[],d=0;d<s;d++){for(var f=[],g=0;g<u;g++){var h={type:"table-cell",children:[{text:""}]};d===0&&(h.isHeader=!0),f.push(h)}c.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:c}}(o,a);Q.insertNodes(t,l,{mode:"highest"})}},e}(),v4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Q.removeNodes(t,{mode:"highest"})},e}(),y4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(h){return R.checkNodeType(h,"table-cell")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a),u=(s==null?void 0:s.children.length)||0;if(u!==0){for(var c={type:"table-row",children:[]},d=0;d<u;d++)c.children.push({type:"table-cell",children:[{text:""}]});var f=Y.parent(l),g=Y.next(f);Q.insertNodes(t,c,{at:g})}}},e}(),b4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(u){return R.checkNodeType(u,"table-row")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a);((s==null?void 0:s.children.length)||0)<=1?Q.removeNodes(t,{mode:"highest"}):Q.removeNodes(t,{at:l})}},e}(),DU={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},JV=vV("span").classList,AU=JV&&JV.constructor&&JV.constructor.prototype,w4e=AU===Object.prototype?void 0:AU,S4e=rw.forEach,C4e=function(e,t){var n=[].forEach;return!!n&&wn(function(){n.call(null,function(){throw 1},1)})}(),ZV=C4e?[].forEach:function(e){return S4e(this,e,arguments.length>1?arguments[1]:void 0)},VU=function(e){if(e&&e.forEach!==ZV)try{Vd(e,"forEach",ZV)}catch{e.forEach=ZV}};for(var QV in DU)DU[QV]&&VU(Je[QV]&&Je[QV].prototype);VU(w4e);var k4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(c){return R.checkNodeType(c,"table-cell")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a);if(s!=null){var u=R.getParentNode(t,s);u!=null&&(u.children||[]).forEach(function(c,d){_e.isElement(c)&&(c.children||[]).forEach(function(f){var g=R.findPath(t,f);if(g.length===l.length&&gH(g.slice(-1),l.slice(-1))){var h={type:"table-cell",children:[{text:""}]};d===0&&iU(u)&&(h.isHeader=!0),Q.insertNodes(t,h,{at:g})}})})}}},e}(),x4e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Wo(B.nodes(t,{match:function(d){return R.checkNodeType(d,"table-cell")},universal:!0}),1),o=Wo(r[0],2),a=o[0],l=o[1],s=R.getParentNode(t,a),u=(s==null?void 0:s.children.length)||0;if(!s||u<=1)Q.removeNodes(t,{mode:"highest"});else{var c=R.getParentNode(t,s);c!=null&&(c.children||[]).forEach(function(d){_e.isElement(d)&&(d.children||[]).forEach(function(f){var g=R.findPath(t,f);g.length===l.length&&gH(g.slice(-1),l.slice(-1))&&Q.removeNodes(t,{at:g})})})}}},e}(),E4e=function(){function e(){this.title=ge("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(t){var n=R.getSelectedNodeByType(t,"table");return n!=null&&iU(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=R.getSelectedNodeByType(t,"table");o!=null&&ow(o).forEach(function(a){return Q.setNodes(t,{isHeader:r},{at:R.findPath(t,a)})})}},e}(),D4e=function(){function e(){this.title=ge("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(t){var n=R.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||R.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};Q.setNodes(t,r,{mode:"highest"})}},e}(),A4e={renderElems:[$De,e4e,t4e],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"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=r===void 0?1:r,a=n.rowSpan,l=a===void 0?1:a,s=n.isHeader,u=s!==void 0&&s,c=n.width,d=u?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+l+'" width="'+(c===void 0?"auto":c)+'">'+t+"</"+d+">"}}],preParseHtml:[n4e],parseElemsHtml:[h4e,g4e,m4e],menus:[{key:"insertTable",factory:function(){return new p4e}},{key:"deleteTable",factory:function(){return new v4e}},{key:"insertTableRow",factory:function(){return new y4e}},{key:"deleteTableRow",factory:function(){return new b4e}},{key:"insertTableCol",factory:function(){return new k4e}},{key:"deleteTableCol",factory:function(){return new x4e}},{key:"tableHeader",factory:function(){return new E4e}},{key:"tableFullWidth",factory:function(){return new D4e}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,a=e.insertData,l=e.handleTab,s=e.selectAll,u=e;return u.insertBreak=function(){R.getSelectedNodeByType(u,"table")==null?t():u.insertText(`
143
143
  `)},u.deleteBackward=function(c){if(!tU(u)){var d=u.selection;if(d){var f=B.before(u,d);if(f){var g=nU(u,f),h=nU(u,d);if(g&&!h)return}}n(c)}},u.handleTab=function(){var c;if(R.getSelectedNodeByType(u,"table")){var d=B.above(e);R.checkNodeType(d[0],"table-cell")&&Q.select(e,d[1]);var f=B.next(e);if(f)f[0]&&f[0].text&&(f=(c=B.above(e,{at:f[1]}))!==null&&c!==void 0?c:f),Q.select(e,f[1]);else{var g=u.children||[],h=g.length;if(R.checkNodeType(g[h-1],"table")){var p=R.genEmptyParagraph();Q.insertNodes(u,p,{at:[h]}),u.handleTab()}}}else l()},u.deleteForward=function(c){tU(u)||r(c)},u.normalizeNode=function(c){var d=Wo(c,2),f=d[0],g=d[1];if(R.getNodeType(f)!=="table")return o([f,g]);if(R.isLastNode(u,f)){var h=R.genEmptyParagraph();Q.insertNodes(u,h,{at:[g[0]+1]})}},u.insertData=function(c){if(R.getSelectedNodeByType(u,"table")!=null){var d=c.getData("text/plain");d===`
144
144
  `||/<img[^>]+>/.test(c.getData("text/html"))?a(c):B.insertText(u,d)}else a(c)},u.selectAll=function(){var c=u.selection;if(c!=null){var d=R.getSelectedNodeByType(u,"table-cell");if(d!=null){var f=c.anchor,g=c.focus;if(Y.equals(f.path.slice(0,3),g.path.slice(0,3)))if(he.string(d).length!==0){var h=R.findPath(u,d),p={anchor:B.start(u,h),focus:B.end(u,h)};u.select(p)}else s();else s()}else s()}else s()},u}};Vr("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"}}),Vr("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
145
145
  Copyright (c) Microsoft Corporation.
@@ -154,15 +154,15 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,b
154
154
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
155
155
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
156
156
  PERFORMANCE OF THIS SOFTWARE.
157
- ***************************************************************************** */var iw=function(){return iw=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},iw.apply(this,arguments)};function lw(e,t,n,r){return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(d){a(d)}}function s(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){var d;c.done?o(c.value):(d=c.value,d instanceof n?d:new n(function(f){f(d)})).then(l,s)}u((r=r.apply(e,[])).next())})}function sw(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,r=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(f){d=[6,f],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,c])}}}function ku(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function A4e(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(o){var a=typeof Symbol=="function"&&Symbol.iterator,l=a&&o[a],s=0;if(l)return l.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"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(o){t[o]=e[o]&&function(a){return new Promise(function(l,s){(function(u,c,d,f){Promise.resolve(f).then(function(g){u({value:g,done:d})},c)})(l,s,(a=e[o](a)).done,a.value)})}}}var BU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $V(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bl,uw,cw=function(e){return e&&e.Math==Math&&e},ve=cw(typeof globalThis=="object"&&globalThis)||cw(typeof window=="object"&&window)||cw(typeof self=="object"&&self)||cw(typeof BU=="object"&&BU)||function(){return this}()||Function("return this")(),Vt=function(e){try{return!!e()}catch{return!0}},Da=!Vt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xm=Function.prototype.call,Bt=xm.bind?xm.bind(xm):function(){return xm.apply(xm,arguments)},_U={}.propertyIsEnumerable,TU=Object.getOwnPropertyDescriptor,V4e={f:TU&&!_U.call({1:2},1)?function(e){var t=TU(this,e);return!!t&&t.enumerable}:_U},dw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PU=Function.prototype,eB=PU.bind,tB=PU.call,B4e=eB&&eB.bind(tB),He=eB?function(e){return e&&B4e(tB,e)}:function(e){return e&&function(){return tB.apply(e,arguments)}},_4e=He({}.toString),T4e=He("".slice),Aa=function(e){return T4e(_4e(e),8,-1)},nB=ve.Object,P4e=He("".split),rB=Vt(function(){return!nB("z").propertyIsEnumerable(0)})?function(e){return Aa(e)=="String"?P4e(e,""):nB(e)}:nB,N4e=ve.TypeError,Em=function(e){if(e==null)throw N4e("Can't call method on "+e);return e},_l=function(e){return rB(Em(e))},Ct=function(e){return typeof e=="function"},jt=function(e){return typeof e=="object"?e!==null:Ct(e)},O4e=function(e){return Ct(e)?e:void 0},xu=function(e,t){return arguments.length<2?O4e(ve[e]):ve[e]&&ve[e][t]},Dm=He({}.isPrototypeOf),Pd=xu("navigator","userAgent")||"",NU=ve.process,OU=ve.Deno,IU=NU&&NU.versions||OU&&OU.version,FU=IU&&IU.v8;FU&&(uw=(Bl=FU.split("."))[0]>0&&Bl[0]<4?1:+(Bl[0]+Bl[1])),!uw&&Pd&&(!(Bl=Pd.match(/Edge\/(\d+)/))||Bl[1]>=74)&&(Bl=Pd.match(/Chrome\/(\d+)/))&&(uw=+Bl[1]);var Am=uw,oB=!!Object.getOwnPropertySymbols&&!Vt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Am&&Am<41}),aB=oB&&!Symbol.sham&&typeof Symbol.iterator=="symbol",I4e=ve.Object,iB=aB?function(e){return typeof e=="symbol"}:function(e){var t=xu("Symbol");return Ct(t)&&Dm(t.prototype,I4e(e))},F4e=ve.String,fw=function(e){try{return F4e(e)}catch{return"Object"}},R4e=ve.TypeError,Tl=function(e){if(Ct(e))return e;throw R4e(fw(e)+" is not a function")},Vm=function(e,t){var n=e[t];return n==null?void 0:Tl(n)},L4e=ve.TypeError,M4e=Object.defineProperty,lB=function(e,t){try{M4e(ve,e,{value:t,configurable:!0,writable:!0})}catch{ve[e]=t}return t},Pl=ve["__core-js_shared__"]||lB("__core-js_shared__",{}),sB=$V(function(e){(e.exports=function(t,n){return Pl[t]||(Pl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),j4e=ve.Object,hw=function(e){return j4e(Em(e))},z4e=He({}.hasOwnProperty),Sn=Object.hasOwn||function(e,t){return z4e(hw(e),t)},H4e=0,U4e=Math.random(),W4e=He(1 .toString),uB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+W4e(++H4e+U4e,36)},Bm=sB("wks"),Eu=ve.Symbol,RU=Eu&&Eu.for,G4e=aB?Eu:Eu&&Eu.withoutSetter||uB,dn=function(e){if(!Sn(Bm,e)||!oB&&typeof Bm[e]!="string"){var t="Symbol."+e;oB&&Sn(Eu,e)?Bm[e]=Eu[e]:Bm[e]=aB&&RU?RU(t):G4e(t)}return Bm[e]},K4e=ve.TypeError,q4e=dn("toPrimitive"),cB=function(e){var t=function(n,r){if(!jt(n)||iB(n))return n;var o,a=Vm(n,q4e);if(a){if(o=Bt(a,n,r),!jt(o)||iB(o))return o;throw K4e("Can't convert object to primitive value")}return function(l,s){var u,c;if(Ct(u=l.toString)&&!jt(c=Bt(u,l))||Ct(u=l.valueOf)&&!jt(c=Bt(u,l)))return c;throw L4e("Can't convert object to primitive value")}(n)}(e,"string");return iB(t)?t:t+""},dB=ve.document,Y4e=jt(dB)&&jt(dB.createElement),_m=function(e){return Y4e?dB.createElement(e):{}},LU=!Da&&!Vt(function(){return Object.defineProperty(_m("div"),"a",{get:function(){return 7}}).a!=7}),MU=Object.getOwnPropertyDescriptor,fB={f:Da?MU:function(e,t){if(e=_l(e),t=cB(t),LU)try{return MU(e,t)}catch{}if(Sn(e,t))return dw(!Bt(V4e.f,e,t),e[t])}},X4e=ve.String,J4e=ve.TypeError,Rn=function(e){if(jt(e))return e;throw J4e(X4e(e)+" is not an object")},Z4e=ve.TypeError,jU=Object.defineProperty,hi={f:Da?jU:function(e,t,n){if(Rn(e),t=cB(t),Rn(n),LU)try{return jU(e,t,n)}catch{}if("get"in n||"set"in n)throw Z4e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nl=Da?function(e,t,n){return hi.f(e,t,dw(1,n))}:function(e,t,n){return e[t]=n,e},Q4e=He(Function.toString);Ct(Pl.inspectSource)||(Pl.inspectSource=function(e){return Q4e(e)});var gw,Tm,mw,pw=Pl.inspectSource,zU=ve.WeakMap,HU=Ct(zU)&&/native code/.test(pw(zU)),UU=sB("keys"),hB=function(e){return UU[e]||(UU[e]=uB(e))},vw={},gB=ve.TypeError,$4e=ve.WeakMap;if(HU||Pl.state){var Du=Pl.state||(Pl.state=new $4e),eAe=He(Du.get),WU=He(Du.has),tAe=He(Du.set);gw=function(e,t){if(WU(Du,e))throw new gB("Object already initialized");return t.facade=e,tAe(Du,e,t),t},Tm=function(e){return eAe(Du,e)||{}},mw=function(e){return WU(Du,e)}}else{var Nd=hB("state");vw[Nd]=!0,gw=function(e,t){if(Sn(e,Nd))throw new gB("Object already initialized");return t.facade=e,Nl(e,Nd,t),t},Tm=function(e){return Sn(e,Nd)?e[Nd]:{}},mw=function(e){return Sn(e,Nd)}}var Qr={set:gw,get:Tm,has:mw,enforce:function(e){return mw(e)?Tm(e):gw(e,{})},getterFor:function(e){return function(t){var n;if(!jt(t)||(n=Tm(t)).type!==e)throw gB("Incompatible receiver, "+e+" required");return n}}},GU=Function.prototype,nAe=Da&&Object.getOwnPropertyDescriptor,mB=Sn(GU,"name"),Od={EXISTS:mB,PROPER:mB&&(function(){}).name==="something",CONFIGURABLE:mB&&(!Da||Da&&nAe(GU,"name").configurable)},wo=$V(function(e){var t=Od.CONFIGURABLE,n=Qr.get,r=Qr.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;Ct(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(s,"name")||t&&s.name!==h)&&Nl(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==ve?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Nl(a,l,s)):f?a[l]=s:lB(l,s)})(Function.prototype,"toString",function(){return Ct(this)&&n(this).source||pw(this)})}),rAe=Math.ceil,oAe=Math.floor,yw=function(e){var t=+e;return t!=t||t===0?0:(t>0?oAe:rAe)(t)},aAe=Math.max,iAe=Math.min,Pm=function(e,t){var n=yw(e);return n<0?aAe(n+t,0):iAe(n,t)},lAe=Math.min,KU=function(e){return e>0?lAe(yw(e),9007199254740991):0},Nm=function(e){return KU(e.length)},qU=function(e){return function(t,n,r){var o,a=_l(t),l=Nm(a),s=Pm(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},YU={includes:qU(!0),indexOf:qU(!1)},sAe=YU.indexOf,XU=He([].push),JU=function(e,t){var n,r=_l(e),o=0,a=[];for(n in r)!Sn(vw,n)&&Sn(r,n)&&XU(a,n);for(;t.length>o;)Sn(r,n=t[o++])&&(~sAe(a,n)||XU(a,n));return a},bw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uAe=bw.concat("length","prototype"),ww={f:Object.getOwnPropertyNames||function(e){return JU(e,uAe)}},cAe={f:Object.getOwnPropertySymbols},dAe=He([].concat),fAe=xu("Reflect","ownKeys")||function(e){var t=ww.f(Rn(e)),n=cAe.f;return n?dAe(t,n(e)):t},hAe=function(e,t){for(var n=fAe(t),r=hi.f,o=fB.f,a=0;a<n.length;a++){var l=n[a];Sn(e,l)||r(e,l,o(t,l))}},gAe=/#|\.prototype\./,Om=function(e,t){var n=pAe[mAe(e)];return n==yAe||n!=vAe&&(Ct(t)?Vt(t):!!t)},mAe=Om.normalize=function(e){return String(e).replace(gAe,".").toLowerCase()},pAe=Om.data={},vAe=Om.NATIVE="N",yAe=Om.POLYFILL="P",Sw=Om,bAe=fB.f,Pr=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?ve:c?ve[s]||lB(s,{}):(ve[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=bAe(n,r))&&l.value:n[r],!Sw(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;hAe(a,o)}(e.sham||o&&o.sham)&&Nl(a,"sham",!0),wo(n,r,a,e)}},ZU={};ZU[dn("toStringTag")]="z";var pB=String(ZU)==="[object z]",wAe=dn("toStringTag"),SAe=ve.Object,CAe=Aa(function(){return arguments}())=="Arguments",Cw=pB?Aa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=SAe(e),wAe))=="string"?n:CAe?Aa(t):(r=Aa(t))=="Object"&&Ct(t.callee)?"Arguments":r},kAe=ve.String,So=function(e){if(Cw(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kAe(e)},vB=`
158
- \v\f\r                 \u2028\u2029\uFEFF`,QU=He("".replace),kw="["+vB+"]",xAe=RegExp("^"+kw+kw+"*"),EAe=RegExp(kw+kw+"*$"),DAe=function(e){return function(t){var n=So(Em(t));return 1&e&&(n=QU(n,xAe,"")),2&e&&(n=QU(n,EAe,"")),n}},AAe={trim:DAe(3)},VAe=Od.PROPER,BAe=AAe.trim;function $U(e){return e.length?e[0].tagName.toLowerCase():""}function eW(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=M(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Pr({target:"String",proto:!0,forced:Vt(function(){return!!vB.trim()||"​…᠎".trim()!=="​…᠎"||VAe&&vB.trim.name!=="trim"})},{trim:function(){return BAe(this)}}),Pr({global:!0},{globalThis:ve}),ao&&(M.fn.append=ao),da&&(M.fn.on=da),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),ca&&(M.fn.val=ca),Ui&&(M.fn.html=Ui),Dc&&(M.fn.parent=Dc),kc&&(M.fn.hasClass=kc),_c&&(M.fn.empty=_c);var xw,_Ae={type:"video",renderElem:function(e,t,n){var r,o=e,a=o.src,l=a===void 0?"":a,s=o.poster,u=s===void 0?"":s,c=o.width,d=c===void 0?"auto":c,f=o.height,g=f===void 0?"auto":f,h=R.isNodeSelected(n,e);if(l.trim().indexOf("<iframe ")===0)r=Fe("div",{className:"w-e-textarea-video-container","data-selected":h?"true":"",innerHTML:eW(l,d,g)});else{var p=Fe("video",{poster:u,controls:!0},Fe("source",{src:l,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
159
- 抱歉,浏览器不支持 video 视频`);d!=="auto"&&(p.data.width=d),g!=="auto"&&(p.data.height=g),r=Fe("div",{className:"w-e-textarea-video-container","data-selected":h?"true":""},p)}return Tc("div",{props:{contentEditable:!1},on:{mousedown:function(y){return y.preventDefault()}}},r)}},TAe={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,a=n.poster,l=a===void 0?"":a,s=n.width,u=s===void 0?"auto":s,c=n.height,d=c===void 0?"auto":c,f=`<div data-w-e-type="video" data-w-e-is-void>
157
+ ***************************************************************************** */var iw=function(){return iw=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},iw.apply(this,arguments)};function lw(e,t,n,r){return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(d){a(d)}}function s(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){var d;c.done?o(c.value):(d=c.value,d instanceof n?d:new n(function(f){f(d)})).then(l,s)}u((r=r.apply(e,[])).next())})}function sw(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,r=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(f){d=[6,f],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,c])}}}function ku(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)l.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return l}function V4e(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(o){var a=typeof Symbol=="function"&&Symbol.iterator,l=a&&o[a],s=0;if(l)return l.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"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(o){t[o]=e[o]&&function(a){return new Promise(function(l,s){(function(u,c,d,f){Promise.resolve(f).then(function(g){u({value:g,done:d})},c)})(l,s,(a=e[o](a)).done,a.value)})}}}var BU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $V(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bl,uw,cw=function(e){return e&&e.Math==Math&&e},ve=cw(typeof globalThis=="object"&&globalThis)||cw(typeof window=="object"&&window)||cw(typeof self=="object"&&self)||cw(typeof BU=="object"&&BU)||function(){return this}()||Function("return this")(),Vt=function(e){try{return!!e()}catch{return!0}},Da=!Vt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xm=Function.prototype.call,Bt=xm.bind?xm.bind(xm):function(){return xm.apply(xm,arguments)},_U={}.propertyIsEnumerable,TU=Object.getOwnPropertyDescriptor,B4e={f:TU&&!_U.call({1:2},1)?function(e){var t=TU(this,e);return!!t&&t.enumerable}:_U},dw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PU=Function.prototype,eB=PU.bind,tB=PU.call,_4e=eB&&eB.bind(tB),He=eB?function(e){return e&&_4e(tB,e)}:function(e){return e&&function(){return tB.apply(e,arguments)}},T4e=He({}.toString),P4e=He("".slice),Aa=function(e){return P4e(T4e(e),8,-1)},nB=ve.Object,N4e=He("".split),rB=Vt(function(){return!nB("z").propertyIsEnumerable(0)})?function(e){return Aa(e)=="String"?N4e(e,""):nB(e)}:nB,O4e=ve.TypeError,Em=function(e){if(e==null)throw O4e("Can't call method on "+e);return e},_l=function(e){return rB(Em(e))},Ct=function(e){return typeof e=="function"},jt=function(e){return typeof e=="object"?e!==null:Ct(e)},I4e=function(e){return Ct(e)?e:void 0},xu=function(e,t){return arguments.length<2?I4e(ve[e]):ve[e]&&ve[e][t]},Dm=He({}.isPrototypeOf),Pd=xu("navigator","userAgent")||"",NU=ve.process,OU=ve.Deno,IU=NU&&NU.versions||OU&&OU.version,FU=IU&&IU.v8;FU&&(uw=(Bl=FU.split("."))[0]>0&&Bl[0]<4?1:+(Bl[0]+Bl[1])),!uw&&Pd&&(!(Bl=Pd.match(/Edge\/(\d+)/))||Bl[1]>=74)&&(Bl=Pd.match(/Chrome\/(\d+)/))&&(uw=+Bl[1]);var Am=uw,oB=!!Object.getOwnPropertySymbols&&!Vt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Am&&Am<41}),aB=oB&&!Symbol.sham&&typeof Symbol.iterator=="symbol",F4e=ve.Object,iB=aB?function(e){return typeof e=="symbol"}:function(e){var t=xu("Symbol");return Ct(t)&&Dm(t.prototype,F4e(e))},R4e=ve.String,fw=function(e){try{return R4e(e)}catch{return"Object"}},L4e=ve.TypeError,Tl=function(e){if(Ct(e))return e;throw L4e(fw(e)+" is not a function")},Vm=function(e,t){var n=e[t];return n==null?void 0:Tl(n)},M4e=ve.TypeError,j4e=Object.defineProperty,lB=function(e,t){try{j4e(ve,e,{value:t,configurable:!0,writable:!0})}catch{ve[e]=t}return t},Pl=ve["__core-js_shared__"]||lB("__core-js_shared__",{}),sB=$V(function(e){(e.exports=function(t,n){return Pl[t]||(Pl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),z4e=ve.Object,hw=function(e){return z4e(Em(e))},H4e=He({}.hasOwnProperty),Sn=Object.hasOwn||function(e,t){return H4e(hw(e),t)},U4e=0,W4e=Math.random(),G4e=He(1 .toString),uB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+G4e(++U4e+W4e,36)},Bm=sB("wks"),Eu=ve.Symbol,RU=Eu&&Eu.for,K4e=aB?Eu:Eu&&Eu.withoutSetter||uB,dn=function(e){if(!Sn(Bm,e)||!oB&&typeof Bm[e]!="string"){var t="Symbol."+e;oB&&Sn(Eu,e)?Bm[e]=Eu[e]:Bm[e]=aB&&RU?RU(t):K4e(t)}return Bm[e]},q4e=ve.TypeError,Y4e=dn("toPrimitive"),cB=function(e){var t=function(n,r){if(!jt(n)||iB(n))return n;var o,a=Vm(n,Y4e);if(a){if(o=Bt(a,n,r),!jt(o)||iB(o))return o;throw q4e("Can't convert object to primitive value")}return function(l,s){var u,c;if(Ct(u=l.toString)&&!jt(c=Bt(u,l))||Ct(u=l.valueOf)&&!jt(c=Bt(u,l)))return c;throw M4e("Can't convert object to primitive value")}(n)}(e,"string");return iB(t)?t:t+""},dB=ve.document,X4e=jt(dB)&&jt(dB.createElement),_m=function(e){return X4e?dB.createElement(e):{}},LU=!Da&&!Vt(function(){return Object.defineProperty(_m("div"),"a",{get:function(){return 7}}).a!=7}),MU=Object.getOwnPropertyDescriptor,fB={f:Da?MU:function(e,t){if(e=_l(e),t=cB(t),LU)try{return MU(e,t)}catch{}if(Sn(e,t))return dw(!Bt(B4e.f,e,t),e[t])}},J4e=ve.String,Z4e=ve.TypeError,Rn=function(e){if(jt(e))return e;throw Z4e(J4e(e)+" is not an object")},Q4e=ve.TypeError,jU=Object.defineProperty,hi={f:Da?jU:function(e,t,n){if(Rn(e),t=cB(t),Rn(n),LU)try{return jU(e,t,n)}catch{}if("get"in n||"set"in n)throw Q4e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nl=Da?function(e,t,n){return hi.f(e,t,dw(1,n))}:function(e,t,n){return e[t]=n,e},$4e=He(Function.toString);Ct(Pl.inspectSource)||(Pl.inspectSource=function(e){return $4e(e)});var gw,Tm,mw,pw=Pl.inspectSource,zU=ve.WeakMap,HU=Ct(zU)&&/native code/.test(pw(zU)),UU=sB("keys"),hB=function(e){return UU[e]||(UU[e]=uB(e))},vw={},gB=ve.TypeError,eAe=ve.WeakMap;if(HU||Pl.state){var Du=Pl.state||(Pl.state=new eAe),tAe=He(Du.get),WU=He(Du.has),nAe=He(Du.set);gw=function(e,t){if(WU(Du,e))throw new gB("Object already initialized");return t.facade=e,nAe(Du,e,t),t},Tm=function(e){return tAe(Du,e)||{}},mw=function(e){return WU(Du,e)}}else{var Nd=hB("state");vw[Nd]=!0,gw=function(e,t){if(Sn(e,Nd))throw new gB("Object already initialized");return t.facade=e,Nl(e,Nd,t),t},Tm=function(e){return Sn(e,Nd)?e[Nd]:{}},mw=function(e){return Sn(e,Nd)}}var Qr={set:gw,get:Tm,has:mw,enforce:function(e){return mw(e)?Tm(e):gw(e,{})},getterFor:function(e){return function(t){var n;if(!jt(t)||(n=Tm(t)).type!==e)throw gB("Incompatible receiver, "+e+" required");return n}}},GU=Function.prototype,rAe=Da&&Object.getOwnPropertyDescriptor,mB=Sn(GU,"name"),Od={EXISTS:mB,PROPER:mB&&(function(){}).name==="something",CONFIGURABLE:mB&&(!Da||Da&&rAe(GU,"name").configurable)},wo=$V(function(e){var t=Od.CONFIGURABLE,n=Qr.get,r=Qr.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;Ct(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(s,"name")||t&&s.name!==h)&&Nl(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==ve?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:Nl(a,l,s)):f?a[l]=s:lB(l,s)})(Function.prototype,"toString",function(){return Ct(this)&&n(this).source||pw(this)})}),oAe=Math.ceil,aAe=Math.floor,yw=function(e){var t=+e;return t!=t||t===0?0:(t>0?aAe:oAe)(t)},iAe=Math.max,lAe=Math.min,Pm=function(e,t){var n=yw(e);return n<0?iAe(n+t,0):lAe(n,t)},sAe=Math.min,KU=function(e){return e>0?sAe(yw(e),9007199254740991):0},Nm=function(e){return KU(e.length)},qU=function(e){return function(t,n,r){var o,a=_l(t),l=Nm(a),s=Pm(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},YU={includes:qU(!0),indexOf:qU(!1)},uAe=YU.indexOf,XU=He([].push),JU=function(e,t){var n,r=_l(e),o=0,a=[];for(n in r)!Sn(vw,n)&&Sn(r,n)&&XU(a,n);for(;t.length>o;)Sn(r,n=t[o++])&&(~uAe(a,n)||XU(a,n));return a},bw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cAe=bw.concat("length","prototype"),ww={f:Object.getOwnPropertyNames||function(e){return JU(e,cAe)}},dAe={f:Object.getOwnPropertySymbols},fAe=He([].concat),hAe=xu("Reflect","ownKeys")||function(e){var t=ww.f(Rn(e)),n=dAe.f;return n?fAe(t,n(e)):t},gAe=function(e,t){for(var n=hAe(t),r=hi.f,o=fB.f,a=0;a<n.length;a++){var l=n[a];Sn(e,l)||r(e,l,o(t,l))}},mAe=/#|\.prototype\./,Om=function(e,t){var n=vAe[pAe(e)];return n==bAe||n!=yAe&&(Ct(t)?Vt(t):!!t)},pAe=Om.normalize=function(e){return String(e).replace(mAe,".").toLowerCase()},vAe=Om.data={},yAe=Om.NATIVE="N",bAe=Om.POLYFILL="P",Sw=Om,wAe=fB.f,Pr=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?ve:c?ve[s]||lB(s,{}):(ve[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=wAe(n,r))&&l.value:n[r],!Sw(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;gAe(a,o)}(e.sham||o&&o.sham)&&Nl(a,"sham",!0),wo(n,r,a,e)}},ZU={};ZU[dn("toStringTag")]="z";var pB=String(ZU)==="[object z]",SAe=dn("toStringTag"),CAe=ve.Object,kAe=Aa(function(){return arguments}())=="Arguments",Cw=pB?Aa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=CAe(e),SAe))=="string"?n:kAe?Aa(t):(r=Aa(t))=="Object"&&Ct(t.callee)?"Arguments":r},xAe=ve.String,So=function(e){if(Cw(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return xAe(e)},vB=`
158
+ \v\f\r                 \u2028\u2029\uFEFF`,QU=He("".replace),kw="["+vB+"]",EAe=RegExp("^"+kw+kw+"*"),DAe=RegExp(kw+kw+"*$"),AAe=function(e){return function(t){var n=So(Em(t));return 1&e&&(n=QU(n,EAe,"")),2&e&&(n=QU(n,DAe,"")),n}},VAe={trim:AAe(3)},BAe=Od.PROPER,_Ae=VAe.trim;function $U(e){return e.length?e[0].tagName.toLowerCase():""}function eW(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=M(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Pr({target:"String",proto:!0,forced:Vt(function(){return!!vB.trim()||"​…᠎".trim()!=="​…᠎"||BAe&&vB.trim.name!=="trim"})},{trim:function(){return _Ae(this)}}),Pr({global:!0},{globalThis:ve}),ao&&(M.fn.append=ao),da&&(M.fn.on=da),Wi&&(M.fn.focus=Wi),oo&&(M.fn.attr=oo),ca&&(M.fn.val=ca),Ui&&(M.fn.html=Ui),Dc&&(M.fn.parent=Dc),kc&&(M.fn.hasClass=kc),_c&&(M.fn.empty=_c);var xw,TAe={type:"video",renderElem:function(e,t,n){var r,o=e,a=o.src,l=a===void 0?"":a,s=o.poster,u=s===void 0?"":s,c=o.width,d=c===void 0?"auto":c,f=o.height,g=f===void 0?"auto":f,h=R.isNodeSelected(n,e);if(l.trim().indexOf("<iframe ")===0)r=Fe("div",{className:"w-e-textarea-video-container","data-selected":h?"true":"",innerHTML:eW(l,d,g)});else{var p=Fe("video",{poster:u,controls:!0},Fe("source",{src:l,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
159
+ 抱歉,浏览器不支持 video 视频`);d!=="auto"&&(p.data.width=d),g!=="auto"&&(p.data.height=g),r=Fe("div",{className:"w-e-textarea-video-container","data-selected":h?"true":""},p)}return Tc("div",{props:{contentEditable:!1},on:{mousedown:function(y){return y.preventDefault()}}},r)}},PAe={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,a=n.poster,l=a===void 0?"":a,s=n.width,u=s===void 0?"auto":s,c=n.height,d=c===void 0?"auto":c,f=`<div data-w-e-type="video" data-w-e-is-void>
160
160
  `;return o.trim().indexOf("<iframe ")===0?f+=eW(o,u,d):f+='<video poster="'+l+'" controls="true" width="'+u+'" height="'+d+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
161
- </div>`}},PAe=Object.keys||function(e){return JU(e,bw)},NAe=Da?Object.defineProperties:function(e,t){Rn(e);for(var n,r=_l(t),o=PAe(t),a=o.length,l=0;a>l;)hi.f(e,n=o[l++],r[n]);return e},yB=xu("document","documentElement"),tW=hB("IE_PROTO"),bB=function(){},nW=function(e){return"<script>"+e+"<\/script>"},rW=function(e){e.write(nW("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ew=function(){try{xw=new ActiveXObject("htmlfile")}catch{}var e,t;Ew=typeof document<"u"?document.domain&&xw?rW(xw):((t=_m("iframe")).style.display="none",yB.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(nW("document.F=Object")),e.close(),e.F):rW(xw);for(var n=bw.length;n--;)delete Ew.prototype[bw[n]];return Ew()};vw[tW]=!0;var wB=Object.create||function(e,t){var n;return e!==null?(bB.prototype=Rn(e),n=new bB,bB.prototype=null,n[tW]=e):n=Ew(),t===void 0?n:NAe(n,t)},SB=dn("unscopables"),CB=Array.prototype;CB[SB]==null&&hi.f(CB,SB,{configurable:!0,value:wB(null)});var Im=function(e){CB[SB][e]=!0},OAe=YU.includes;Pr({target:"Array",proto:!0},{includes:function(e){return OAe(this,e,arguments.length>1?arguments[1]:void 0)}}),Im("includes");var IAe={selector:"iframe,video,p",preParseHtml:function(e){var t=M(e),n=t;if($U(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=M(o))}}var l=$U(n);if(l!=="iframe"&&l!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=M('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},oW=He(He.bind),Fm=function(e,t){return Tl(e),t===void 0?e:oW?oW(e,t):function(){return e.apply(t,arguments)}},Dw=Array.isArray||function(e){return Aa(e)=="Array"},aW=function(){},FAe=[],iW=xu("Reflect","construct"),kB=/^\s*(?:class|function)\b/,RAe=He(kB.exec),LAe=!kB.exec(aW),Rm=function(e){if(!Ct(e))return!1;try{return iW(aW,FAe,e),!0}catch{return!1}},xB=!iW||Vt(function(){var e;return Rm(Rm.call)||!Rm(Object)||!Rm(function(){e=!0})||e})?function(e){if(!Ct(e))return!1;switch(Cw(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LAe||!!RAe(kB,pw(e))}:Rm,MAe=dn("species"),lW=ve.Array,jAe=function(e,t){return new(function(n){var r;return Dw(n)&&(r=n.constructor,(xB(r)&&(r===lW||Dw(r.prototype))||jt(r)&&(r=r[MAe])===null)&&(r=void 0)),r===void 0?lW:r}(e))(t===0?0:t)},sW=He([].push),uW=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=hw(u),y=rB(p),v=Fm(c,d),b=Nm(y),m=0,w=f||jAe,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:sW(S,g)}else switch(e){case 4:return!1;case 7:sW(S,g)}return a?-1:r||o?o:S}},EB={find:uW(5),findIndex:uW(6)},zAe=EB.find,cW=!0;"find"in[]&&Array(1).find(function(){cW=!1}),Pr({target:"Array",proto:!0,forced:cW},{find:function(e){return zAe(this,e,arguments.length>1?arguments[1]:void 0)}}),Im("find");var HAe=pB?{}.toString:function(){return"[object "+Cw(this)+"]"};function dW(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}pB||wo(Object.prototype,"toString",HAe,{unsafe:!0});var fW,DB,UAe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=M(e),o="",a="",l="auto",s="auto",u=r.find("iframe");if(u.length>0)return l=u.attr("width")||"auto",s=u.attr("height")||"auto",dW(o=u[0].outerHTML,a,l,s);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),l=c.attr("width")||"auto",s=c.attr("height")||"auto",dW(o,a=c.attr("poster")||"",l,s)}},hW=function(){var e=Rn(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},AB=ve.RegExp,gW=Vt(function(){var e=AB("a","y");return e.lastIndex=2,e.exec("abcd")!=null});gW||Vt(function(){return!AB("a","y").sticky});var WAe={BROKEN_CARET:gW||Vt(function(){var e=AB("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},GAe=ve.RegExp,KAe=Vt(function(){var e=GAe(".","s");return!(e.dotAll&&e.exec(`
162
- `)&&e.flags==="s")}),qAe=ve.RegExp,YAe=Vt(function(){var e=qAe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),XAe=Qr.get,JAe=sB("native-string-replace",String.prototype.replace),Aw=RegExp.prototype.exec,VB=Aw,ZAe=He("".charAt),QAe=He("".indexOf),$Ae=He("".replace),BB=He("".slice),_B=(DB=/b*/g,Bt(Aw,fW=/a/,"a"),Bt(Aw,DB,"a"),fW.lastIndex!==0||DB.lastIndex!==0),mW=WAe.BROKEN_CARET,TB=/()??/.exec("")[1]!==void 0;(_B||TB||mW||KAe||YAe)&&(VB=function(e){var t,n,r,o,a,l,s,u=this,c=XAe(u),d=So(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=Bt(VB,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=mW&&u.sticky,p=Bt(hW,u),y=u.source,v=0,b=d;if(h&&(p=$Ae(p,"y",""),QAe(p,"g")===-1&&(p+="g"),b=BB(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&ZAe(d,u.lastIndex-1)!==`
163
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),TB&&(n=new RegExp("^"+y+"$(?!\\s)",p)),_B&&(r=u.lastIndex),o=Bt(Aw,h?n:u,b),h?o?(o.input=BB(o.input,v),o[0]=BB(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:_B&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),TB&&o&&o.length>1&&Bt(JAe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=wB(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Vw=VB;Pr({target:"RegExp",proto:!0,forced:/./.exec!==Vw},{exec:Vw});var PB=Function.prototype,pW=PB.apply,eVe=PB.bind,vW=PB.call,yW=typeof Reflect=="object"&&Reflect.apply||(eVe?vW.bind(pW):function(){return vW.apply(pW,arguments)}),bW=(dn("species"),RegExp.prototype),tVe=He("".charAt),wW=He("".charCodeAt),nVe=He("".slice),rVe=function(e){return function(t,n){var r,o,a=So(Em(t)),l=yw(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=wW(a,l))<55296||r>56319||l+1===s||(o=wW(a,l+1))<56320||o>57343?e?tVe(a,l):r:e?nVe(a,l,l+2):o-56320+(r-55296<<10)+65536}},SW={charAt:rVe(!0)},oVe=SW.charAt,aVe=function(e,t,n){return t+(n?oVe(e,t).length:1)},iVe=Math.floor,NB=He("".charAt),lVe=He("".replace),OB=He("".slice),sVe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uVe=/\$([$&'`]|\d{1,2})/g,cVe=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=uVe;return o!==void 0&&(o=hw(o),u=sVe),lVe(a,u,function(c,d){var f;switch(NB(d,0)){case"$":return"$";case"&":return e;case"`":return OB(t,0,n);case"'":return OB(t,l);case"<":f=o[OB(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=iVe(g/10);return h===0?c:h<=s?r[h-1]===void 0?NB(d,1):r[h-1]+NB(d,1):c}f=r[g-1]}return f===void 0?"":f})},dVe=ve.TypeError,fVe=function(e,t){var n=e.exec;if(Ct(n)){var r=Bt(n,e,t);return r!==null&&Rn(r),r}if(Aa(e)==="RegExp")return Bt(Vw,e,t);throw dVe("RegExp#exec called on incompatible receiver")},IB=dn("replace"),hVe=Math.max,gVe=Math.min,mVe=He([].concat),FB=He([].push),CW=He("".indexOf),kW=He("".slice),pVe="a".replace(/./,"$0")==="$0",xW=!!/./[IB]&&/./[IB]("a","$0")==="";function EW(e){return e+"-"+vI()}(function(e,t,n,r){var o=dn(e),a=!Vt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Vt(function(){var c=!1,d=/a/;return d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=He(/./[o]),u=function(c,d,f){var g=xW?"$":"$0";return[function(h,p){var y=Em(this),v=h==null?void 0:Vm(h,IB);return v?Bt(v,h,y,p):Bt(d,So(y),h,p)},function(h,p){var y=Rn(this),v=So(h);if(typeof p=="string"&&CW(p,g)===-1&&CW(p,"$<")===-1){var b=f(d,y,v,p);if(b.done)return b.value}var m=Ct(p);m||(p=So(p));var w=y.global;if(w){var S=y.unicode;y.lastIndex=0}for(var C=[];;){var x=fVe(y,v);if(x===null||(FB(C,x),!w))break;So(x[0])===""&&(y.lastIndex=aVe(v,KU(y.lastIndex),S))}for(var k,E="",A=0,N=0;N<C.length;N++){for(var V=So((x=C[N])[0]),D=hVe(gVe(yw(x.index),v.length),0),P=[],O=1;O<x.length;O++)FB(P,(k=x[O])===void 0?k:String(k));var F=x.groups;if(m){var H=mVe([V],P,D,v);F!==void 0&&FB(H,F);var J=So(yW(p,void 0,H))}else J=cVe(V,v,D,P,F,p);D>=A&&(E+=kW(v,A,D)+J,A=D+V.length)}return E+kW(v,A)}]}(0,""[e],function(c,d,f,g,h){var p=He(c),y=d.exec;return y===Vw||y===bW.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});wo(String.prototype,e,u[0]),wo(bW,o,u[1])}})("replace",0,!!Vt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!pVe||xW);var Bw=ve.Promise,_w=function(e,t,n){for(var r in t)wo(e,r,t[r],n);return e},vVe=ve.String,yVe=ve.TypeError,Id=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=He(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Rn(r),function(a){if(typeof a=="object"||Ct(a))return a;throw yVe("Can't set "+vVe(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),bVe=hi.f,DW=dn("toStringTag"),Tw=function(e,t,n){e&&!Sn(e=n?e:e.prototype,DW)&&bVe(e,DW,{configurable:!0,value:t})},AW=dn("species"),wVe=ve.TypeError,RB=function(e,t){if(Dm(t,e))return e;throw wVe("Incorrect invocation")},Fd={},SVe=dn("iterator"),CVe=Array.prototype,kVe=dn("iterator"),VW=function(e){if(e!=null)return Vm(e,kVe)||Vm(e,"@@iterator")||Fd[Cw(e)]},xVe=ve.TypeError,BW=function(e,t,n){var r,o;Rn(e);try{if(!(r=Vm(e,"return"))){if(t==="throw")throw n;return n}r=Bt(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Rn(r),n},EVe=ve.TypeError,Pw=function(e,t){this.stopped=e,this.result=t},_W=Pw.prototype,Nw=function(e,t,n){var r,o,a,l,s,u,c,d,f=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=Fm(t,f),v=function(m){return r&&BW(r,"normal",m),new Pw(!0,m)},b=function(m){return g?(Rn(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(h)r=e;else{if(!(o=VW(e)))throw EVe(fw(e)+" is not iterable");if((d=o)!==void 0&&(Fd.Array===d||CVe[SVe]===d)){for(a=0,l=Nm(e);l>a;a++)if((s=b(e[a]))&&Dm(_W,s))return s;return new Pw(!1)}r=function(m,w){var S=arguments.length<2?VW(m):w;if(Tl(S))return Rn(Bt(S,m));throw xVe(fw(m)+" is not iterable")}(e,o)}for(u=r.next;!(c=Bt(u,r)).done;){try{s=b(c.value)}catch(m){BW(r,"throw",m)}if(typeof s=="object"&&s&&Dm(_W,s))return s}return new Pw(!1)},TW=dn("iterator"),PW=!1;try{var DVe=0,NW={next:function(){return{done:!!DVe++}},return:function(){PW=!0}};NW[TW]=function(){return this},Array.from(NW,function(){throw 2})}catch{}var Lm,Rd,OW,LB,IW=function(e,t){if(!PW)return!1;var n=!1;try{var r={};r[TW]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},AVe=ve.TypeError,VVe=dn("species"),FW=He([].slice),RW=/(?:ipad|iphone|ipod).*applewebkit/i.test(Pd),Ol=Aa(ve.process)=="process",MB=ve.setImmediate,LW=ve.clearImmediate,BVe=ve.process,jB=ve.Dispatch,_Ve=ve.Function,MW=ve.MessageChannel,TVe=ve.String,zB=0,Mm={};try{Lm=ve.location}catch{}var HB=function(e){if(Sn(Mm,e)){var t=Mm[e];delete Mm[e],t()}},UB=function(e){return function(){HB(e)}},jW=function(e){HB(e.data)},zW=function(e){ve.postMessage(TVe(e),Lm.protocol+"//"+Lm.host)};MB&&LW||(MB=function(e){var t=FW(arguments,1);return Mm[++zB]=function(){yW(Ct(e)?e:_Ve(e),void 0,t)},Rd(zB),zB},LW=function(e){delete Mm[e]},Ol?Rd=function(e){BVe.nextTick(UB(e))}:jB&&jB.now?Rd=function(e){jB.now(UB(e))}:MW&&!RW?(LB=(OW=new MW).port2,OW.port1.onmessage=jW,Rd=Fm(LB.postMessage,LB)):ve.addEventListener&&Ct(ve.postMessage)&&!ve.importScripts&&Lm&&Lm.protocol!=="file:"&&!Vt(zW)?(Rd=zW,ve.addEventListener("message",jW,!1)):Rd="onreadystatechange"in _m("script")?function(e){yB.appendChild(_m("script")).onreadystatechange=function(){yB.removeChild(this),HB(e)}}:function(e){setTimeout(UB(e),0)});var jm,Au,zm,Ld,WB,GB,KB,HW,UW={set:MB},PVe=/ipad|iphone|ipod/i.test(Pd)&&ve.Pebble!==void 0,NVe=/web0s(?!.*chrome)/i.test(Pd),OVe=fB.f,qB=UW.set,WW=ve.MutationObserver||ve.WebKitMutationObserver,GW=ve.document,KW=ve.process,Ow=ve.Promise,qW=OVe(ve,"queueMicrotask"),YW=qW&&qW.value;YW||(jm=function(){var e,t;for(Ol&&(e=KW.domain)&&e.exit();Au;){t=Au.fn,Au=Au.next;try{t()}catch(n){throw Au?Ld():zm=void 0,n}}zm=void 0,e&&e.enter()},RW||Ol||NVe||!WW||!GW?!PVe&&Ow&&Ow.resolve?((KB=Ow.resolve(void 0)).constructor=Ow,HW=Fm(KB.then,KB),Ld=function(){HW(jm)}):Ol?Ld=function(){KW.nextTick(jm)}:(qB=Fm(qB,ve),Ld=function(){qB(jm)}):(WB=!0,GB=GW.createTextNode(""),new WW(jm).observe(GB,{characterData:!0}),Ld=function(){GB.data=WB=!WB}));var YB,XW,JW,ZW,QW=YW||function(e){var t={fn:e,next:void 0};zm&&(zm.next=t),Au||(Au=t,Ld()),zm=t},IVe=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Tl(t),this.reject=Tl(n)},XB={f:function(e){return new IVe(e)}},JB=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},FVe=typeof window=="object",$W=UW.set,RVe=dn("species"),gi="Promise",eG=Qr.getterFor(gi),LVe=Qr.set,MVe=Qr.getterFor(gi),Vu=Bw&&Bw.prototype,Va=Bw,Hm=Vu,tG=ve.TypeError,ZB=ve.document,QB=ve.process,Md=XB.f,jVe=Md,zVe=!!(ZB&&ZB.createEvent&&ve.dispatchEvent),nG=Ct(ve.PromiseRejectionEvent),rG=!1,Um=Sw(gi,function(){var e=pw(Va),t=e!==String(Va);if(!t&&Am===66)return!0;if(Am>=51&&/native code/.test(e))return!1;var n=new Va(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[RVe]=r,!(rG=n.then(function(){})instanceof r)||!t&&FVe&&!nG}),HVe=Um||!IW(function(e){Va.all(e).catch(function(){})}),oG=function(e){var t;return!(!jt(e)||!Ct(t=e.then))&&t},$B=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;QW(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var l,s,u,c=n[a++],d=o?c.ok:c.fail,f=c.resolve,g=c.reject,h=c.domain;try{d?(o||(e.rejection===2&&WVe(e),e.rejection=1),d===!0?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),u=!0)),l===c.promise?g(tG("Promise-chain cycle")):(s=oG(l))?Bt(s,l,f,g):f(l)):g(r)}catch(p){h&&!u&&h.exit(),g(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&UVe(e)})}},aG=function(e,t,n){var r,o;zVe?((r=ZB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ve.dispatchEvent(r)):r={promise:t,reason:n},!nG&&(o=ve["on"+e])?o(r):e==="unhandledrejection"&&function(a,l){var s=ve.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,l))}("Unhandled promise rejection",n)},UVe=function(e){Bt($W,ve,function(){var t,n=e.facade,r=e.value;if(iG(e)&&(t=JB(function(){Ol?QB.emit("unhandledRejection",r,n):aG("unhandledrejection",n,r)}),e.rejection=Ol||iG(e)?2:1,t.error))throw t.value})},iG=function(e){return e.rejection!==1&&!e.parent},WVe=function(e){Bt($W,ve,function(){var t=e.facade;Ol?QB.emit("rejectionHandled",t):aG("rejectionhandled",t,e.value)})},jd=function(e,t,n){return function(r){e(t,r,n)}},zd=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,$B(e,!0))},e3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tG("Promise can't be resolved itself");var r=oG(t);r?QW(function(){var o={done:!1};try{Bt(r,t,jd(e3,o,e),jd(zd,o,e))}catch(a){zd(o,a,e)}}):(e.value=t,e.state=1,$B(e,!1))}catch(o){zd({done:!1},o,e)}}};if(Um&&(Hm=(Va=function(e){RB(this,Hm),Tl(e),Bt(YB,this);var t=eG(this);try{e(jd(e3,t),jd(zd,t))}catch(n){zd(t,n)}}).prototype,(YB=function(e){LVe(this,{type:gi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_w(Hm,{then:function(e,t){var n=MVe(this),r=n.reactions,o=Md(function(a,l){var s,u=Rn(a).constructor;return u===void 0||(s=Rn(u)[VVe])==null?l:function(c){if(xB(c))return c;throw AVe(fw(c)+" is not a constructor")}(s)}(this,Va));return o.ok=!Ct(e)||e,o.fail=Ct(t)&&t,o.domain=Ol?QB.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&$B(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),XW=function(){var e=new YB,t=eG(e);this.promise=e,this.resolve=jd(e3,t),this.reject=jd(zd,t)},XB.f=Md=function(e){return e===Va||e===JW?new XW(e):jVe(e)},Ct(Bw)&&Vu!==Object.prototype)){ZW=Vu.then,rG||(wo(Vu,"then",function(e,t){var n=this;return new Va(function(r,o){Bt(ZW,n,r,o)}).then(e,t)},{unsafe:!0}),wo(Vu,"catch",Hm.catch,{unsafe:!0}));try{delete Vu.constructor}catch{}Id&&Id(Vu,Hm)}function Wm(e,t,n){return n===void 0&&(n=""),lw(this,void 0,void 0,function(){var r,o,a,l,s,u,c;return sw(this,function(d){switch(d.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,a=r.checkVideo,l=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=d.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,l(t)];case 2:return(u=d.sent()).trim().indexOf("<iframe ")!==0&&(u=u.replace(/</g,"&lt;").replace(/>/g,"&gt;")),c={type:"video",src:u,poster:n,children:[{text:""}]},Promise.resolve().then(function(){Q.insertNodes(e,c)}),o(c),[2]}})})}function t3(){return EW("w-e-insert-video")}Pr({global:!0,wrap:!0,forced:Um},{Promise:Va}),Tw(Va,gi,!1),function(e){var t=xu("Promise"),n=hi.f;Da&&t&&!t[AW]&&n(t,AW,{configurable:!0,get:function(){return this}})}(),JW=xu(gi),Pr({target:gi,stat:!0,forced:Um},{reject:function(e){var t=Md(this);return Bt(t.reject,void 0,e),t.promise}}),Pr({target:gi,stat:!0,forced:Um},{resolve:function(e){return function(t,n){if(Rn(t),jt(n)&&n.constructor===t)return n;var r=XB.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Pr({target:gi,stat:!0,forced:HVe},{all:function(e){var t=this,n=Md(t),r=n.resolve,o=n.reject,a=JB(function(){var l=Tl(t.resolve),s=[],u=0,c=1;Nw(e,function(d){var f=u++,g=!1;c++,Bt(l,t,d).then(function(h){g||(g=!0,s[f]=h,--c||r(s))},o)}),--c||r(s)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=Md(t),r=n.reject,o=JB(function(){var a=Tl(t.resolve);Nw(e,function(l){Bt(a,t,l).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var GVe=function(){function e(){this.title=ge("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=t3(),this.posterInputId=t3(),this.buttonId=t3()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||!!R.getSelectedElems(t).some(function(r){var o=R.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,a=r.posterInputId,l=r.buttonId,s=ku(Kr(ge("videoModule.videoSrc"),o,ge("videoModule.videoSrcPlaceHolder")),2),u=s[0],c=s[1],d=ku(Kr(ge("videoModule.videoPoster"),a,ge("videoModule.videoPosterPlaceHolder")),2),f=d[0],g=d[1],h=M(c),p=M(g),y=ku(od(l,ge("videoModule.ok")),1)[0];if(this.$content==null){var v=M("<div></div>");v.on("click","#"+l,function(m){return lw(n,void 0,void 0,function(){var w,S;return sw(this,function(C){switch(C.label){case 0:return m.preventDefault(),w=v.find("#"+o).val().trim(),S=v.find("#"+a).val().trim(),[4,Wm(t,w,S)];case 1:return C.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=v}var b=this.$content;return b.empty(),b.append(u),b.append(f),b.append(y),h.val(""),p.val(""),setTimeout(function(){h.focus()}),b[0]},e}(),KVe=He([].join),qVe=rB!=Object,YVe=function(e,t){var n=[].join;return!!n&&Vt(function(){n.call(null,",",1)})}();Pr({target:"Array",proto:!0,forced:qVe||!YVe},{join:function(e){return KVe(_l(this),e===void 0?",":e)}});var Bu,lG,sG,XVe=!Vt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),uG=hB("IE_PROTO"),n3=ve.Object,JVe=n3.prototype,Iw=XVe?n3.getPrototypeOf:function(e){var t=hw(e);if(Sn(t,uG))return t[uG];var n=t.constructor;return Ct(n)&&t instanceof n?n.prototype:t instanceof n3?JVe:null},r3=dn("iterator"),cG=!1;[].keys&&("next"in(sG=[].keys())?(lG=Iw(Iw(sG)))!==Object.prototype&&(Bu=lG):cG=!0);var ZVe=Bu==null||Vt(function(){var e={};return Bu[r3].call(e)!==e});ZVe&&(Bu={}),Ct(Bu[r3])||wo(Bu,r3,function(){return this});var o3={IteratorPrototype:Bu,BUGGY_SAFARI_ITERATORS:cG},QVe=o3.IteratorPrototype,$Ve=function(){return this},eBe=Od.PROPER,tBe=Od.CONFIGURABLE,dG=o3.IteratorPrototype,a3=o3.BUGGY_SAFARI_ITERATORS,Gm=dn("iterator"),nBe=function(){return this},fG=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=wB(QVe,{next:dw(1,m)}),Tw(v,S,!1),Fd[S]=$Ve})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!a3&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[Gm]||g["@@iterator"]||o&&g[o],p=!a3&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=Iw(y.call(new e)))!==Object.prototype&&s.next&&(Iw(s)!==dG&&(Id?Id(s,dG):Ct(s[Gm])||wo(s,Gm,nBe)),Tw(s,d,!0)),eBe&&o=="values"&&h&&h.name!=="values"&&(tBe?Nl(g,"name","values"):(f=!0,p=function(){return Bt(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||Pr({target:t,proto:!0,forced:a3||f},u)),g[Gm]!==p&&wo(g,Gm,p,{name:o}),Fd[t]=p,u},rBe=Qr.set,oBe=Qr.getterFor("Array Iterator"),Km=fG(Array,"Array",function(e,t){rBe(this,{type:"Array Iterator",target:_l(e),index:0,kind:t})},function(){var e=oBe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Fd.Arguments=Fd.Array,Im("keys"),Im("values"),Im("entries");var aBe=SW.charAt,iBe=Qr.set,lBe=Qr.getterFor("String Iterator");fG(String,"String",function(e){iBe(this,{type:"String Iterator",string:So(e),index:0})},function(){var e,t=lBe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=aBe(n,r),t.index+=e.length,{value:e,done:!1})});var hG=function(e,t,n){var r=cB(t);r in e?hi.f(e,r,dw(0,n)):e[r]=n},sBe=ve.Array,uBe=Math.max,gG=ww.f,mG=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cBe={f:function(e){return mG&&Aa(e)=="Window"?function(t){try{return gG(t)}catch{return function(r,o,a){for(var l=Nm(r),s=Pm(void 0,l),u=Pm(l,l),c=sBe(uBe(u-s,0)),d=0;s<u;s++,d++)hG(c,d,r[s]);return c.length=d,c}(mG)}}(e):gG(_l(e))}},pG=Vt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Fw=Object.isExtensible,_u=Vt(function(){Fw(1)})||pG?function(e){return!!jt(e)&&(!pG||Aa(e)!="ArrayBuffer")&&(!Fw||Fw(e))}:Fw,dBe=!Vt(function(){return Object.isExtensible(Object.preventExtensions({}))}),i3=$V(function(e){var t=hi.f,n=!1,r=uB("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=ww.f,u=He([].splice),c={};c[r]=1,s(c).length&&(ww.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Pr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cBe.f}))},fastKey:function(s,u){if(!jt(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Sn(s,r)){if(!_u(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Sn(s,r)){if(!_u(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return dBe&&n&&_u(s)&&!Sn(s,r)&&a(s),s}};vw[r]=!0}),Rw=i3.getWeakData,fBe=Qr.set,hBe=Qr.getterFor,gBe=EB.find,mBe=EB.findIndex,pBe=He([].splice),vBe=0,Lw=function(e){return e.frozen||(e.frozen=new vG)},vG=function(){this.entries=[]},l3=function(e,t){return gBe(e.entries,function(n){return n[0]===t})};vG.prototype={get:function(e){var t=l3(this,e);if(t)return t[1]},has:function(e){return!!l3(this,e)},set:function(e,t){var n=l3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=mBe(this.entries,function(n){return n[0]===e});return~t&&pBe(this.entries,t,1),!!~t}};var qm,yG={getConstructor:function(e,t,n,r){var o=e(function(u,c){RB(u,a),fBe(u,{type:t,id:vBe++,frozen:void 0}),c!=null&&Nw(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=hBe(t),s=function(u,c,d){var f=l(u),g=Rw(Rn(c),!0);return g===!0?Lw(f).set(c,d):g[f.id]=d,u};return _w(a,{delete:function(u){var c=l(this);if(!jt(u))return!1;var d=Rw(u);return d===!0?Lw(c).delete(u):d&&Sn(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!jt(u))return!1;var d=Rw(u);return d===!0?Lw(c).has(u):d&&Sn(d,c.id)}}),_w(a,n?{get:function(u){var c=l(this);if(jt(u)){var d=Rw(u);return d===!0?Lw(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},Mw=Qr.enforce,yBe=!ve.ActiveXObject&&"ActiveXObject"in ve,bG=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bBe=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=ve[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=He(s[v]);wo(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!jt(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!jt(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!jt(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(Sw(e,!Ct(l)||!(o||s.forEach&&!Vt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),i3.enable();else if(Sw(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=Vt(function(){f.has(1)}),p=IW(function(v){new l(v)}),y=!o&&Vt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){RB(v,s);var m=function(w,S,C){var x,k;return Id&&Ct(x=S.constructor)&&x!==C&&jt(k=x.prototype)&&k!==C.prototype&&Id(w,k),w}(new l,v,u);return b!=null&&Nw(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Pr({global:!0,forced:u!=l},c),Tw(u,e),o||n.setStrong(u,e,r),u}("WeakMap",bG,yG);if(HU&&yBe){qm=yG.getConstructor(bG,"WeakMap",!0),i3.enable();var Ym=bBe.prototype,wG=He(Ym.delete),jw=He(Ym.has),SG=He(Ym.get),CG=He(Ym.set);_w(Ym,{delete:function(e){if(jt(e)&&!_u(e)){var t=Mw(this);return t.frozen||(t.frozen=new qm),wG(this,e)||t.frozen.delete(e)}return wG(this,e)},has:function(e){if(jt(e)&&!_u(e)){var t=Mw(this);return t.frozen||(t.frozen=new qm),jw(this,e)||t.frozen.has(e)}return jw(this,e)},get:function(e){if(jt(e)&&!_u(e)){var t=Mw(this);return t.frozen||(t.frozen=new qm),jw(this,e)?SG(this,e):t.frozen.get(e)}return SG(this,e)},set:function(e,t){if(jt(e)&&!_u(e)){var n=Mw(this);n.frozen||(n.frozen=new qm),jw(this,e)?CG(this,e,t):n.frozen.set(e,t)}else CG(this,e,t);return this}})}var kG={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},s3=_m("span").classList,xG=s3&&s3.constructor&&s3.constructor.prototype,wBe=xG===Object.prototype?void 0:xG,u3=dn("iterator"),EG=dn("toStringTag"),c3=Km.values,DG=function(e,t){if(e){if(e[u3]!==c3)try{Nl(e,u3,c3)}catch{e[u3]=c3}if(e[EG]||Nl(e,EG,t),kG[t]){for(var n in Km)if(e[n]!==Km[n])try{Nl(e,n,Km[n])}catch{e[n]=Km[n]}}}};for(var d3 in kG)DG(ve[d3]&&ve[d3].prototype,d3);DG(wBe,"DOMTokenList");var SBe=Od.EXISTS,CBe=hi.f,AG=Function.prototype,kBe=He(AG.toString),VG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xBe=He(VG.exec);Da&&!SBe&&CBe(AG,"name",{configurable:!0,get:function(){try{return xBe(VG,kBe(this))[1]}catch{return""}}});var EBe=dn("species"),DBe=Am>=51||!Vt(function(){var e=[];return(e.constructor={})[EBe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),ABe=dn("species"),f3=ve.Array,VBe=Math.max;function BG(e){return e.getMenuConfig("uploadVideo")}Pr({target:"Array",proto:!0,forced:!DBe},{slice:function(e,t){var n,r,o,a=_l(this),l=Nm(a),s=Pm(e,l),u=Pm(t===void 0?l:t,l);if(Dw(a)&&(n=a.constructor,(xB(n)&&(n===f3||Dw(n.prototype))||jt(n)&&(n=n[ABe])===null)&&(n=void 0),n===f3||n===void 0))return FW(a,s,u);for(r=new(n===void 0?f3:n)(VBe(u-s,0)),o=0;s<u;s++,o++)s in a&&hG(r,o,a[s]);return r.length=o,r}});var _G=new WeakMap;function BBe(e,t){return lw(this,void 0,void 0,function(){var n,r,o,a;return sw(this,function(l){switch(l.label){case 0:return n=function(s){var u=_G.get(s);if(u!=null)return u;var c=BG(s),d=c.onSuccess,f=c.onProgress,g=c.onFailed,h=c.customInsert,p=c.onError;return u=BR(iw(iw({},c),{onProgress:function(y){s.showProgressBar(y),f&&f(y)},onSuccess:function(y,v){if(h)return h(v,function(E,A){return Wm(s,E,A)}),void d(y,v);var b=v.errno,m=b===void 0?1:b,w=v.data,S=w===void 0?{}:w;if(m===0){var C=S.url,x=C===void 0?"":C,k=S.poster;Wm(s,x,k===void 0?"":k),d(y,v)}else g(y,v)},onError:function(y,v,b){p(y,v,b)}})),_G.set(s,u),u}(e),r=t.name,o=t.type,a=t.size,n.addFile({name:r,type:o,size:a,data:t}),[4,n.upload()];case 1:return l.sent(),[2]}})})}var _Be=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,a=o===void 0?[]:o,l=r.customBrowseAndUpload;if(l)l(function(d,f){return Wm(t,d,f)});else{var s="";a.length>0&&(s='accept="'+a.join(", ")+'"');var u=M("body"),c=M('<input type="file" '+s+" multiple/>");c.hide(),u.append(c),c.click(),c.on("change",function(){var d=c[0].files;(function(f,g){var h,p;lw(this,void 0,void 0,function(){var y,v,b,m,w,S;return sw(this,function(C){switch(C.label){case 0:if(g==null)return[2];y=Array.prototype.slice.call(g),v=BG(f).customUpload,C.label=1;case 1:C.trys.push([1,9,10,15]),b=A4e(y),C.label=2;case 2:return[4,b.next()];case 3:return(m=C.sent()).done?[3,8]:(w=m.value,v?[4,v(w,function(x,k){return Wm(f,x,k)})]:[3,5]);case 4:return C.sent(),[3,7];case 5:return[4,BBe(f,w)];case 6:C.sent(),C.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return S=C.sent(),h={error:S},[3,15];case 10:return C.trys.push([10,,13,14]),m&&!m.done&&(p=b.return)?[4,p.call(b)]:[3,12];case 11:C.sent(),C.label=12;case 12:return[3,14];case 13:if(h)throw h.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,d)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||!!R.getSelectedElems(t).some(function(r){var o=R.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),TBe=Od.PROPER,h3=RegExp.prototype,TG=h3.toString,PBe=He(hW),NBe=Vt(function(){return TG.call({source:"a",flags:"b"})!="/a/b"}),OBe=TBe&&TG.name!="toString";function g3(){return EW("w-e-insert-video")}(NBe||OBe)&&wo(RegExp.prototype,"toString",function(){var e=Rn(this),t=So(e.source),n=e.flags;return"/"+t+"/"+So(n===void 0&&Dm(h3,e)&&!("flags"in h3)?PBe(e):n)},{unsafe:!0});var IBe=function(){function e(){this.title=ge("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=g3(),this.heightInputId=g3(),this.buttonId=g3()}return e.prototype.getSelectedVideoNode=function(t){return R.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,a=n.buttonId,l=ku(Kr(ge("videoModule.width"),r,"auto"),2),s=l[0],u=M(l[1]),c=ku(Kr(ge("videoModule.height"),o,"auto"),2),d=c[0],f=M(c[1]),g=ku(od(a,ge("videoModule.ok")),1)[0];if(this.$content==null){var h=M("<div></div>");h.on("click","#"+a,function(S){S.preventDefault();var C=h.find("#"+r).val().trim(),x=h.find("#"+o).val().trim(),k=parseInt(C),E=parseInt(x),A=k?k.toString():"auto",N=E?E.toString():"auto";t.restoreSelection(),Q.setNodes(t,{width:A,height:N},{match:function(V){return R.checkNodeType(V,"video")}}),t.hidePanelOrModal()}),this.$content=h}var p=this.$content;p.empty(),p.append(s),p.append(d),p.append(g);var y=this.getSelectedVideoNode(t);if(y==null)return p[0];var v=y.width,b=v===void 0?"auto":v,m=y.height,w=m===void 0?"auto":m;return u.val(b),f.val(w),setTimeout(function(){u.focus()}),p[0]},e}(),FBe={renderElems:[_Ae],elemsToHtml:[TAe],preParseHtml:[IAe],parseElemsHtml:[UAe],menus:[{key:"insertVideo",factory:function(){return new GVe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new _Be},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 IBe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var a=ku(o,2),l=a[0],s=a[1];return R.getNodeType(l)==="video"&&R.isLastNode(r,l)&&Q.insertNodes(r,R.genEmptyParagraph(),{at:[s[0]+1]}),n([l,s])},r}};Vr("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Vr("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var PG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m3(e){var t={exports:{}};return e(t,t.exports),t.exports}var Il,zw,Hw=function(e){return e&&e.Math==Math&&e},pe=Hw(typeof globalThis=="object"&&globalThis)||Hw(typeof window=="object"&&window)||Hw(typeof self=="object"&&self)||Hw(typeof PG=="object"&&PG)||function(){return this}()||Function("return this")(),Nt=function(e){try{return!!e()}catch{return!0}},Ba=!Nt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xm=Function.prototype.call,yt=Xm.bind?Xm.bind(Xm):function(){return Xm.apply(Xm,arguments)},NG={}.propertyIsEnumerable,OG=Object.getOwnPropertyDescriptor,RBe={f:OG&&!NG.call({1:2},1)?function(e){var t=OG(this,e);return!!t&&t.enumerable}:NG},Uw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},IG=Function.prototype,p3=IG.bind,v3=IG.call,LBe=p3&&p3.bind(v3),Ze=p3?function(e){return e&&LBe(v3,e)}:function(e){return e&&function(){return v3.apply(e,arguments)}},MBe=Ze({}.toString),jBe=Ze("".slice),Go=function(e){return jBe(MBe(e),8,-1)},y3=pe.Object,zBe=Ze("".split),b3=Nt(function(){return!y3("z").propertyIsEnumerable(0)})?function(e){return Go(e)=="String"?zBe(e,""):y3(e)}:y3,HBe=pe.TypeError,Jm=function(e){if(e==null)throw HBe("Can't call method on "+e);return e},Fl=function(e){return b3(Jm(e))},At=function(e){return typeof e=="function"},Ot=function(e){return typeof e=="object"?e!==null:At(e)},UBe=function(e){return At(e)?e:void 0},Tu=function(e,t){return arguments.length<2?UBe(pe[e]):pe[e]&&pe[e][t]},Zm=Ze({}.isPrototypeOf),Hd=Tu("navigator","userAgent")||"",FG=pe.process,RG=pe.Deno,LG=FG&&FG.versions||RG&&RG.version,MG=LG&&LG.v8;MG&&(zw=(Il=MG.split("."))[0]>0&&Il[0]<4?1:+(Il[0]+Il[1])),!zw&&Hd&&(!(Il=Hd.match(/Edge\/(\d+)/))||Il[1]>=74)&&(Il=Hd.match(/Chrome\/(\d+)/))&&(zw=+Il[1]);var Qm=zw,w3=!!Object.getOwnPropertySymbols&&!Nt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qm&&Qm<41}),S3=w3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",WBe=pe.Object,C3=S3?function(e){return typeof e=="symbol"}:function(e){var t=Tu("Symbol");return At(t)&&Zm(t.prototype,WBe(e))},GBe=pe.String,Ww=function(e){try{return GBe(e)}catch{return"Object"}},KBe=pe.TypeError,Rl=function(e){if(At(e))return e;throw KBe(Ww(e)+" is not a function")},$m=function(e,t){var n=e[t];return n==null?void 0:Rl(n)},qBe=pe.TypeError,YBe=Object.defineProperty,k3=function(e,t){try{YBe(pe,e,{value:t,configurable:!0,writable:!0})}catch{pe[e]=t}return t},Ll=pe["__core-js_shared__"]||k3("__core-js_shared__",{}),x3=m3(function(e){(e.exports=function(t,n){return Ll[t]||(Ll[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),XBe=pe.Object,E3=function(e){return XBe(Jm(e))},JBe=Ze({}.hasOwnProperty),Cn=Object.hasOwn||function(e,t){return JBe(E3(e),t)},ZBe=0,QBe=Math.random(),$Be=Ze(1 .toString),D3=function(e){return"Symbol("+(e===void 0?"":e)+")_"+$Be(++ZBe+QBe,36)},ep=x3("wks"),Pu=pe.Symbol,jG=Pu&&Pu.for,e3e=S3?Pu:Pu&&Pu.withoutSetter||D3,fn=function(e){if(!Cn(ep,e)||!w3&&typeof ep[e]!="string"){var t="Symbol."+e;w3&&Cn(Pu,e)?ep[e]=Pu[e]:ep[e]=S3&&jG?jG(t):e3e(t)}return ep[e]},t3e=pe.TypeError,n3e=fn("toPrimitive"),A3=function(e){var t=function(n,r){if(!Ot(n)||C3(n))return n;var o,a=$m(n,n3e);if(a){if(o=yt(a,n,r),!Ot(o)||C3(o))return o;throw t3e("Can't convert object to primitive value")}return function(l,s){var u,c;if(At(u=l.toString)&&!Ot(c=yt(u,l))||At(u=l.valueOf)&&!Ot(c=yt(u,l)))return c;throw qBe("Can't convert object to primitive value")}(n)}(e,"string");return C3(t)?t:t+""},V3=pe.document,r3e=Ot(V3)&&Ot(V3.createElement),tp=function(e){return r3e?V3.createElement(e):{}},zG=!Ba&&!Nt(function(){return Object.defineProperty(tp("div"),"a",{get:function(){return 7}}).a!=7}),HG=Object.getOwnPropertyDescriptor,B3={f:Ba?HG:function(e,t){if(e=Fl(e),t=A3(t),zG)try{return HG(e,t)}catch{}if(Cn(e,t))return Uw(!yt(RBe.f,e,t),e[t])}},o3e=pe.String,a3e=pe.TypeError,Ln=function(e){if(Ot(e))return e;throw a3e(o3e(e)+" is not an object")},i3e=pe.TypeError,UG=Object.defineProperty,mi={f:Ba?UG:function(e,t,n){if(Ln(e),t=A3(t),Ln(n),zG)try{return UG(e,t,n)}catch{}if("get"in n||"set"in n)throw i3e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_a=Ba?function(e,t,n){return mi.f(e,t,Uw(1,n))}:function(e,t,n){return e[t]=n,e},l3e=Ze(Function.toString);At(Ll.inspectSource)||(Ll.inspectSource=function(e){return l3e(e)});var Gw,np,Kw,qw=Ll.inspectSource,WG=pe.WeakMap,GG=At(WG)&&/native code/.test(qw(WG)),KG=x3("keys"),_3=function(e){return KG[e]||(KG[e]=D3(e))},Yw={},T3=pe.TypeError,s3e=pe.WeakMap;if(GG||Ll.state){var Nu=Ll.state||(Ll.state=new s3e),u3e=Ze(Nu.get),qG=Ze(Nu.has),c3e=Ze(Nu.set);Gw=function(e,t){if(qG(Nu,e))throw new T3("Object already initialized");return t.facade=e,c3e(Nu,e,t),t},np=function(e){return u3e(Nu,e)||{}},Kw=function(e){return qG(Nu,e)}}else{var Ud=_3("state");Yw[Ud]=!0,Gw=function(e,t){if(Cn(e,Ud))throw new T3("Object already initialized");return t.facade=e,_a(e,Ud,t),t},np=function(e){return Cn(e,Ud)?e[Ud]:{}},Kw=function(e){return Cn(e,Ud)}}var $r={set:Gw,get:np,has:Kw,enforce:function(e){return Kw(e)?np(e):Gw(e,{})},getterFor:function(e){return function(t){var n;if(!Ot(t)||(n=np(t)).type!==e)throw T3("Incompatible receiver, "+e+" required");return n}}},YG=Function.prototype,d3e=Ba&&Object.getOwnPropertyDescriptor,P3=Cn(YG,"name"),rp={EXISTS:P3,PROPER:P3&&(function(){}).name==="something",CONFIGURABLE:P3&&(!Ba||Ba&&d3e(YG,"name").configurable)},Co=m3(function(e){var t=rp.CONFIGURABLE,n=$r.get,r=$r.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;At(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cn(s,"name")||t&&s.name!==h)&&_a(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==pe?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:_a(a,l,s)):f?a[l]=s:k3(l,s)})(Function.prototype,"toString",function(){return At(this)&&n(this).source||qw(this)})}),f3e=Math.ceil,h3e=Math.floor,N3=function(e){var t=+e;return t!=t||t===0?0:(t>0?h3e:f3e)(t)},g3e=Math.max,m3e=Math.min,op=function(e,t){var n=N3(e);return n<0?g3e(n+t,0):m3e(n,t)},p3e=Math.min,XG=function(e){return e>0?p3e(N3(e),9007199254740991):0},ap=function(e){return XG(e.length)},v3e=function(e){return function(t,n,r){var o,a=Fl(t),l=ap(a),s=op(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},y3e=v3e(!1),JG=Ze([].push),ZG=function(e,t){var n,r=Fl(e),o=0,a=[];for(n in r)!Cn(Yw,n)&&Cn(r,n)&&JG(a,n);for(;t.length>o;)Cn(r,n=t[o++])&&(~y3e(a,n)||JG(a,n));return a},Xw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b3e=Xw.concat("length","prototype"),Jw={f:Object.getOwnPropertyNames||function(e){return ZG(e,b3e)}},w3e={f:Object.getOwnPropertySymbols},S3e=Ze([].concat),C3e=Tu("Reflect","ownKeys")||function(e){var t=Jw.f(Ln(e)),n=w3e.f;return n?S3e(t,n(e)):t},k3e=function(e,t){for(var n=C3e(t),r=mi.f,o=B3.f,a=0;a<n.length;a++){var l=n[a];Cn(e,l)||r(e,l,o(t,l))}},x3e=/#|\.prototype\./,ip=function(e,t){var n=D3e[E3e(e)];return n==V3e||n!=A3e&&(At(t)?Nt(t):!!t)},E3e=ip.normalize=function(e){return String(e).replace(x3e,".").toLowerCase()},D3e=ip.data={},A3e=ip.NATIVE="N",V3e=ip.POLYFILL="P",Zw=ip,B3e=B3.f,Ta=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?pe:c?pe[s]||k3(s,{}):(pe[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=B3e(n,r))&&l.value:n[r],!Zw(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;k3e(a,o)}(e.sham||o&&o.sham)&&_a(a,"sham",!0),Co(n,r,a,e)}},Qw=Array.isArray||function(e){return Go(e)=="Array"},QG={};QG[fn("toStringTag")]="z";var O3=String(QG)==="[object z]",_3e=fn("toStringTag"),T3e=pe.Object,P3e=Go(function(){return arguments}())=="Arguments",$w=O3?Go:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=T3e(e),_3e))=="string"?n:P3e?Go(t):(r=Go(t))=="Object"&&At(t.callee)?"Arguments":r},$G=function(){},N3e=[],eK=Tu("Reflect","construct"),I3=/^\s*(?:class|function)\b/,O3e=Ze(I3.exec),I3e=!I3.exec($G),lp=function(e){if(!At(e))return!1;try{return eK($G,N3e,e),!0}catch{return!1}},F3=!eK||Nt(function(){var e;return lp(lp.call)||!lp(Object)||!lp(function(){e=!0})||e})?function(e){if(!At(e))return!1;switch($w(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return I3e||!!O3e(I3,qw(e))}:lp,tK=function(e,t,n){var r=A3(t);r in e?mi.f(e,r,Uw(0,n)):e[r]=n},F3e=fn("species"),nK=Ze([].slice),R3e=Qm>=51||!Nt(function(){var e=[];return(e.constructor={})[F3e]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),L3e=fn("species"),R3=pe.Array,M3e=Math.max;Ta({target:"Array",proto:!0,forced:!R3e},{slice:function(e,t){var n,r,o,a=Fl(this),l=ap(a),s=op(e,l),u=op(t===void 0?l:t,l);if(Qw(a)&&(n=a.constructor,(F3(n)&&(n===R3||Qw(n.prototype))||Ot(n)&&(n=n[L3e])===null)&&(n=void 0),n===R3||n===void 0))return nK(a,s,u);for(r=new(n===void 0?R3:n)(M3e(u-s,0)),o=0;s<u;s++,o++)s in a&&tK(r,o,a[s]);return r.length=o,r}});var j3e=O3?{}.toString:function(){return"[object "+$w(this)+"]"};O3||Co(Object.prototype,"toString",j3e,{unsafe:!0});var e2,z3e=pe.String,Ml=function(e){if($w(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return z3e(e)},rK=function(){var e=Ln(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},L3=pe.RegExp,M3=Nt(function(){var e=L3("a","y");return e.lastIndex=2,e.exec("abcd")!=null});M3||Nt(function(){return!L3("a","y").sticky});var oK={BROKEN_CARET:M3||Nt(function(){var e=L3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:M3},H3e=Object.keys||function(e){return ZG(e,Xw)},U3e=Ba?Object.defineProperties:function(e,t){Ln(e);for(var n,r=Fl(t),o=H3e(t),a=o.length,l=0;a>l;)mi.f(e,n=o[l++],r[n]);return e},j3=Tu("document","documentElement"),aK=_3("IE_PROTO"),z3=function(){},iK=function(e){return"<script>"+e+"<\/script>"},lK=function(e){e.write(iK("")),e.close();var t=e.parentWindow.Object;return e=null,t},t2=function(){try{e2=new ActiveXObject("htmlfile")}catch{}var e,t;t2=typeof document<"u"?document.domain&&e2?lK(e2):((t=tp("iframe")).style.display="none",j3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(iK("document.F=Object")),e.close(),e.F):lK(e2);for(var n=Xw.length;n--;)delete t2.prototype[Xw[n]];return t2()};Yw[aK]=!0;var sK,H3,U3=Object.create||function(e,t){var n;return e!==null?(z3.prototype=Ln(e),n=new z3,z3.prototype=null,n[aK]=e):n=t2(),t===void 0?n:U3e(n,t)},W3e=pe.RegExp,G3e=Nt(function(){var e=W3e(".","s");return!(e.dotAll&&e.exec(`
164
- `)&&e.flags==="s")}),K3e=pe.RegExp,q3e=Nt(function(){var e=K3e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Y3e=$r.get,X3e=x3("native-string-replace",String.prototype.replace),n2=RegExp.prototype.exec,W3=n2,J3e=Ze("".charAt),Z3e=Ze("".indexOf),Q3e=Ze("".replace),G3=Ze("".slice),K3=(H3=/b*/g,yt(n2,sK=/a/,"a"),yt(n2,H3,"a"),sK.lastIndex!==0||H3.lastIndex!==0),uK=oK.BROKEN_CARET,q3=/()??/.exec("")[1]!==void 0;(K3||q3||uK||G3e||q3e)&&(W3=function(e){var t,n,r,o,a,l,s,u=this,c=Y3e(u),d=Ml(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=yt(W3,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=uK&&u.sticky,p=yt(rK,u),y=u.source,v=0,b=d;if(h&&(p=Q3e(p,"y",""),Z3e(p,"g")===-1&&(p+="g"),b=G3(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&J3e(d,u.lastIndex-1)!==`
165
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),q3&&(n=new RegExp("^"+y+"$(?!\\s)",p)),K3&&(r=u.lastIndex),o=yt(n2,h?n:u,b),h?o?(o.input=G3(o.input,v),o[0]=G3(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:K3&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),q3&&o&&o.length>1&&yt(X3e,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=U3(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var sp=W3;Ta({target:"RegExp",proto:!0,forced:/./.exec!==sp},{exec:sp});var Y3=Function.prototype,cK=Y3.apply,$3e=Y3.bind,dK=Y3.call,fK=typeof Reflect=="object"&&Reflect.apply||($3e?dK.bind(cK):function(){return dK.apply(cK,arguments)}),e_e=fn("species"),X3=RegExp.prototype,t_e=fn("match"),n_e=pe.TypeError,r_e=fn("species"),hK=function(e,t){var n,r=Ln(e).constructor;return r===void 0||(n=Ln(r)[r_e])==null?t:function(o){if(F3(o))return o;throw n_e(Ww(o)+" is not a constructor")}(n)},o_e=Ze("".charAt),gK=Ze("".charCodeAt),a_e=Ze("".slice),i_e=function(e){return function(t,n){var r,o,a=Ml(Jm(t)),l=N3(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=gK(a,l))<55296||r>56319||l+1===s||(o=gK(a,l+1))<56320||o>57343?e?o_e(a,l):r:e?a_e(a,l,l+2):o-56320+(r-55296<<10)+65536}},mK={charAt:i_e(!0)},l_e=mK.charAt,s_e=function(e,t,n){return t+(n?l_e(e,t).length:1)},u_e=pe.Array,c_e=Math.max,J3=function(e,t,n){for(var r=ap(e),o=op(t,r),a=op(n===void 0?r:n,r),l=u_e(c_e(a-o,0)),s=0;o<a;o++,s++)tK(l,s,e[o]);return l.length=s,l},d_e=pe.TypeError,pK=function(e,t){var n=e.exec;if(At(n)){var r=yt(n,e,t);return r!==null&&Ln(r),r}if(Go(e)==="RegExp")return yt(sp,e,t);throw d_e("RegExp#exec called on incompatible receiver")},Wd=oK.UNSUPPORTED_Y,f_e=Math.min,vK=[].push,h_e=Ze(/./.exec),Gd=Ze(vK),up=Ze("".slice);(function(e,t,n,r){var o=fn(e),a=!Nt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Nt(function(){var c=!1,d=/a/;return(d={}).constructor={},d.constructor[e_e]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Ze(/./[o]),u=function(c,d,f){var g;return g="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(h,p){var y,v,b=Ml(Jm(this)),m=p===void 0?4294967295:p>>>0;if(m===0)return[];if(h===void 0)return[b];if(!Ot(y=h)||!((v=y[t_e])!==void 0?v:Go(y)=="RegExp"))return yt(d,b,h,m);for(var w,S,C,x=[],k=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),E=0,A=new RegExp(h.source,k+"g");(w=yt(sp,A,b))&&!((S=A.lastIndex)>E&&(Gd(x,up(b,E,w.index)),w.length>1&&w.index<b.length&&fK(vK,x,J3(w,1)),C=w[0].length,E=S,x.length>=m));)A.lastIndex===w.index&&A.lastIndex++;return E===b.length?!C&&h_e(A,"")||Gd(x,""):Gd(x,up(b,E)),x.length>m?J3(x,0,m):x}:"0".split(void 0,0).length?function(h,p){return h===void 0&&p===0?[]:yt(d,this,h,p)}:d,[function(h,p){var y=Jm(this),v=h==null?void 0:$m(h,c);return v?yt(v,h,y,p):yt(g,Ml(y),h,p)},function(h,p){var y=Ln(this),v=Ml(h),b=f(g,y,v,p,g!==d);if(b.done)return b.value;var m=hK(y,RegExp),w=y.unicode,S=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(Wd?"g":"y"),C=new m(Wd?"^(?:"+y.source+")":y,S),x=p===void 0?4294967295:p>>>0;if(x===0)return[];if(v.length===0)return pK(C,v)===null?[v]:[];for(var k=0,E=0,A=[];E<v.length;){C.lastIndex=Wd?0:E;var N,V=pK(C,Wd?up(v,E):v);if(V===null||(N=f_e(XG(C.lastIndex+(Wd?E:0)),v.length))===k)E=s_e(v,E,w);else{if(Gd(A,up(v,k,E)),A.length===x)return A;for(var D=1;D<=V.length-1;D++)if(Gd(A,V[D]),A.length===x)return A;E=k=N}}return Gd(A,up(v,k)),A}]}(o,""[e],function(c,d,f,g,h){var p=Ze(c),y=d.exec;return y===sp||y===X3.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});Co(String.prototype,e,u[0]),Co(X3,o,u[1])}r&&_a(X3[o],"sham",!0)})("split",0,!!Nt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Wd);/*! *****************************************************************************
161
+ </div>`}},NAe=Object.keys||function(e){return JU(e,bw)},OAe=Da?Object.defineProperties:function(e,t){Rn(e);for(var n,r=_l(t),o=NAe(t),a=o.length,l=0;a>l;)hi.f(e,n=o[l++],r[n]);return e},yB=xu("document","documentElement"),tW=hB("IE_PROTO"),bB=function(){},nW=function(e){return"<script>"+e+"<\/script>"},rW=function(e){e.write(nW("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ew=function(){try{xw=new ActiveXObject("htmlfile")}catch{}var e,t;Ew=typeof document<"u"?document.domain&&xw?rW(xw):((t=_m("iframe")).style.display="none",yB.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(nW("document.F=Object")),e.close(),e.F):rW(xw);for(var n=bw.length;n--;)delete Ew.prototype[bw[n]];return Ew()};vw[tW]=!0;var wB=Object.create||function(e,t){var n;return e!==null?(bB.prototype=Rn(e),n=new bB,bB.prototype=null,n[tW]=e):n=Ew(),t===void 0?n:OAe(n,t)},SB=dn("unscopables"),CB=Array.prototype;CB[SB]==null&&hi.f(CB,SB,{configurable:!0,value:wB(null)});var Im=function(e){CB[SB][e]=!0},IAe=YU.includes;Pr({target:"Array",proto:!0},{includes:function(e){return IAe(this,e,arguments.length>1?arguments[1]:void 0)}}),Im("includes");var FAe={selector:"iframe,video,p",preParseHtml:function(e){var t=M(e),n=t;if($U(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=M(o))}}var l=$U(n);if(l!=="iframe"&&l!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=M('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},oW=He(He.bind),Fm=function(e,t){return Tl(e),t===void 0?e:oW?oW(e,t):function(){return e.apply(t,arguments)}},Dw=Array.isArray||function(e){return Aa(e)=="Array"},aW=function(){},RAe=[],iW=xu("Reflect","construct"),kB=/^\s*(?:class|function)\b/,LAe=He(kB.exec),MAe=!kB.exec(aW),Rm=function(e){if(!Ct(e))return!1;try{return iW(aW,RAe,e),!0}catch{return!1}},xB=!iW||Vt(function(){var e;return Rm(Rm.call)||!Rm(Object)||!Rm(function(){e=!0})||e})?function(e){if(!Ct(e))return!1;switch(Cw(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return MAe||!!LAe(kB,pw(e))}:Rm,jAe=dn("species"),lW=ve.Array,zAe=function(e,t){return new(function(n){var r;return Dw(n)&&(r=n.constructor,(xB(r)&&(r===lW||Dw(r.prototype))||jt(r)&&(r=r[jAe])===null)&&(r=void 0)),r===void 0?lW:r}(e))(t===0?0:t)},sW=He([].push),uW=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=hw(u),y=rB(p),v=Fm(c,d),b=Nm(y),m=0,w=f||zAe,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:sW(S,g)}else switch(e){case 4:return!1;case 7:sW(S,g)}return a?-1:r||o?o:S}},EB={find:uW(5),findIndex:uW(6)},HAe=EB.find,cW=!0;"find"in[]&&Array(1).find(function(){cW=!1}),Pr({target:"Array",proto:!0,forced:cW},{find:function(e){return HAe(this,e,arguments.length>1?arguments[1]:void 0)}}),Im("find");var UAe=pB?{}.toString:function(){return"[object "+Cw(this)+"]"};function dW(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}pB||wo(Object.prototype,"toString",UAe,{unsafe:!0});var fW,DB,WAe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=M(e),o="",a="",l="auto",s="auto",u=r.find("iframe");if(u.length>0)return l=u.attr("width")||"auto",s=u.attr("height")||"auto",dW(o=u[0].outerHTML,a,l,s);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),l=c.attr("width")||"auto",s=c.attr("height")||"auto",dW(o,a=c.attr("poster")||"",l,s)}},hW=function(){var e=Rn(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},AB=ve.RegExp,gW=Vt(function(){var e=AB("a","y");return e.lastIndex=2,e.exec("abcd")!=null});gW||Vt(function(){return!AB("a","y").sticky});var GAe={BROKEN_CARET:gW||Vt(function(){var e=AB("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},KAe=ve.RegExp,qAe=Vt(function(){var e=KAe(".","s");return!(e.dotAll&&e.exec(`
162
+ `)&&e.flags==="s")}),YAe=ve.RegExp,XAe=Vt(function(){var e=YAe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),JAe=Qr.get,ZAe=sB("native-string-replace",String.prototype.replace),Aw=RegExp.prototype.exec,VB=Aw,QAe=He("".charAt),$Ae=He("".indexOf),eVe=He("".replace),BB=He("".slice),_B=(DB=/b*/g,Bt(Aw,fW=/a/,"a"),Bt(Aw,DB,"a"),fW.lastIndex!==0||DB.lastIndex!==0),mW=GAe.BROKEN_CARET,TB=/()??/.exec("")[1]!==void 0;(_B||TB||mW||qAe||XAe)&&(VB=function(e){var t,n,r,o,a,l,s,u=this,c=JAe(u),d=So(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=Bt(VB,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=mW&&u.sticky,p=Bt(hW,u),y=u.source,v=0,b=d;if(h&&(p=eVe(p,"y",""),$Ae(p,"g")===-1&&(p+="g"),b=BB(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&QAe(d,u.lastIndex-1)!==`
163
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),TB&&(n=new RegExp("^"+y+"$(?!\\s)",p)),_B&&(r=u.lastIndex),o=Bt(Aw,h?n:u,b),h?o?(o.input=BB(o.input,v),o[0]=BB(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:_B&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),TB&&o&&o.length>1&&Bt(ZAe,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=wB(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Vw=VB;Pr({target:"RegExp",proto:!0,forced:/./.exec!==Vw},{exec:Vw});var PB=Function.prototype,pW=PB.apply,tVe=PB.bind,vW=PB.call,yW=typeof Reflect=="object"&&Reflect.apply||(tVe?vW.bind(pW):function(){return vW.apply(pW,arguments)}),bW=(dn("species"),RegExp.prototype),nVe=He("".charAt),wW=He("".charCodeAt),rVe=He("".slice),oVe=function(e){return function(t,n){var r,o,a=So(Em(t)),l=yw(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=wW(a,l))<55296||r>56319||l+1===s||(o=wW(a,l+1))<56320||o>57343?e?nVe(a,l):r:e?rVe(a,l,l+2):o-56320+(r-55296<<10)+65536}},SW={charAt:oVe(!0)},aVe=SW.charAt,iVe=function(e,t,n){return t+(n?aVe(e,t).length:1)},lVe=Math.floor,NB=He("".charAt),sVe=He("".replace),OB=He("".slice),uVe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cVe=/\$([$&'`]|\d{1,2})/g,dVe=function(e,t,n,r,o,a){var l=n+e.length,s=r.length,u=cVe;return o!==void 0&&(o=hw(o),u=uVe),sVe(a,u,function(c,d){var f;switch(NB(d,0)){case"$":return"$";case"&":return e;case"`":return OB(t,0,n);case"'":return OB(t,l);case"<":f=o[OB(d,1,-1)];break;default:var g=+d;if(g===0)return c;if(g>s){var h=lVe(g/10);return h===0?c:h<=s?r[h-1]===void 0?NB(d,1):r[h-1]+NB(d,1):c}f=r[g-1]}return f===void 0?"":f})},fVe=ve.TypeError,hVe=function(e,t){var n=e.exec;if(Ct(n)){var r=Bt(n,e,t);return r!==null&&Rn(r),r}if(Aa(e)==="RegExp")return Bt(Vw,e,t);throw fVe("RegExp#exec called on incompatible receiver")},IB=dn("replace"),gVe=Math.max,mVe=Math.min,pVe=He([].concat),FB=He([].push),CW=He("".indexOf),kW=He("".slice),vVe="a".replace(/./,"$0")==="$0",xW=!!/./[IB]&&/./[IB]("a","$0")==="";function EW(e){return e+"-"+vI()}(function(e,t,n,r){var o=dn(e),a=!Vt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Vt(function(){var c=!1,d=/a/;return d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=He(/./[o]),u=function(c,d,f){var g=xW?"$":"$0";return[function(h,p){var y=Em(this),v=h==null?void 0:Vm(h,IB);return v?Bt(v,h,y,p):Bt(d,So(y),h,p)},function(h,p){var y=Rn(this),v=So(h);if(typeof p=="string"&&CW(p,g)===-1&&CW(p,"$<")===-1){var b=f(d,y,v,p);if(b.done)return b.value}var m=Ct(p);m||(p=So(p));var w=y.global;if(w){var S=y.unicode;y.lastIndex=0}for(var C=[];;){var x=hVe(y,v);if(x===null||(FB(C,x),!w))break;So(x[0])===""&&(y.lastIndex=iVe(v,KU(y.lastIndex),S))}for(var k,E="",A=0,N=0;N<C.length;N++){for(var V=So((x=C[N])[0]),D=gVe(mVe(yw(x.index),v.length),0),P=[],O=1;O<x.length;O++)FB(P,(k=x[O])===void 0?k:String(k));var F=x.groups;if(m){var H=pVe([V],P,D,v);F!==void 0&&FB(H,F);var J=So(yW(p,void 0,H))}else J=dVe(V,v,D,P,F,p);D>=A&&(E+=kW(v,A,D)+J,A=D+V.length)}return E+kW(v,A)}]}(0,""[e],function(c,d,f,g,h){var p=He(c),y=d.exec;return y===Vw||y===bW.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});wo(String.prototype,e,u[0]),wo(bW,o,u[1])}})("replace",0,!!Vt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!vVe||xW);var Bw=ve.Promise,_w=function(e,t,n){for(var r in t)wo(e,r,t[r],n);return e},yVe=ve.String,bVe=ve.TypeError,Id=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=He(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Rn(r),function(a){if(typeof a=="object"||Ct(a))return a;throw bVe("Can't set "+yVe(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),wVe=hi.f,DW=dn("toStringTag"),Tw=function(e,t,n){e&&!Sn(e=n?e:e.prototype,DW)&&wVe(e,DW,{configurable:!0,value:t})},AW=dn("species"),SVe=ve.TypeError,RB=function(e,t){if(Dm(t,e))return e;throw SVe("Incorrect invocation")},Fd={},CVe=dn("iterator"),kVe=Array.prototype,xVe=dn("iterator"),VW=function(e){if(e!=null)return Vm(e,xVe)||Vm(e,"@@iterator")||Fd[Cw(e)]},EVe=ve.TypeError,BW=function(e,t,n){var r,o;Rn(e);try{if(!(r=Vm(e,"return"))){if(t==="throw")throw n;return n}r=Bt(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Rn(r),n},DVe=ve.TypeError,Pw=function(e,t){this.stopped=e,this.result=t},_W=Pw.prototype,Nw=function(e,t,n){var r,o,a,l,s,u,c,d,f=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=Fm(t,f),v=function(m){return r&&BW(r,"normal",m),new Pw(!0,m)},b=function(m){return g?(Rn(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(h)r=e;else{if(!(o=VW(e)))throw DVe(fw(e)+" is not iterable");if((d=o)!==void 0&&(Fd.Array===d||kVe[CVe]===d)){for(a=0,l=Nm(e);l>a;a++)if((s=b(e[a]))&&Dm(_W,s))return s;return new Pw(!1)}r=function(m,w){var S=arguments.length<2?VW(m):w;if(Tl(S))return Rn(Bt(S,m));throw EVe(fw(m)+" is not iterable")}(e,o)}for(u=r.next;!(c=Bt(u,r)).done;){try{s=b(c.value)}catch(m){BW(r,"throw",m)}if(typeof s=="object"&&s&&Dm(_W,s))return s}return new Pw(!1)},TW=dn("iterator"),PW=!1;try{var AVe=0,NW={next:function(){return{done:!!AVe++}},return:function(){PW=!0}};NW[TW]=function(){return this},Array.from(NW,function(){throw 2})}catch{}var Lm,Rd,OW,LB,IW=function(e,t){if(!PW)return!1;var n=!1;try{var r={};r[TW]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},VVe=ve.TypeError,BVe=dn("species"),FW=He([].slice),RW=/(?:ipad|iphone|ipod).*applewebkit/i.test(Pd),Ol=Aa(ve.process)=="process",MB=ve.setImmediate,LW=ve.clearImmediate,_Ve=ve.process,jB=ve.Dispatch,TVe=ve.Function,MW=ve.MessageChannel,PVe=ve.String,zB=0,Mm={};try{Lm=ve.location}catch{}var HB=function(e){if(Sn(Mm,e)){var t=Mm[e];delete Mm[e],t()}},UB=function(e){return function(){HB(e)}},jW=function(e){HB(e.data)},zW=function(e){ve.postMessage(PVe(e),Lm.protocol+"//"+Lm.host)};MB&&LW||(MB=function(e){var t=FW(arguments,1);return Mm[++zB]=function(){yW(Ct(e)?e:TVe(e),void 0,t)},Rd(zB),zB},LW=function(e){delete Mm[e]},Ol?Rd=function(e){_Ve.nextTick(UB(e))}:jB&&jB.now?Rd=function(e){jB.now(UB(e))}:MW&&!RW?(LB=(OW=new MW).port2,OW.port1.onmessage=jW,Rd=Fm(LB.postMessage,LB)):ve.addEventListener&&Ct(ve.postMessage)&&!ve.importScripts&&Lm&&Lm.protocol!=="file:"&&!Vt(zW)?(Rd=zW,ve.addEventListener("message",jW,!1)):Rd="onreadystatechange"in _m("script")?function(e){yB.appendChild(_m("script")).onreadystatechange=function(){yB.removeChild(this),HB(e)}}:function(e){setTimeout(UB(e),0)});var jm,Au,zm,Ld,WB,GB,KB,HW,UW={set:MB},NVe=/ipad|iphone|ipod/i.test(Pd)&&ve.Pebble!==void 0,OVe=/web0s(?!.*chrome)/i.test(Pd),IVe=fB.f,qB=UW.set,WW=ve.MutationObserver||ve.WebKitMutationObserver,GW=ve.document,KW=ve.process,Ow=ve.Promise,qW=IVe(ve,"queueMicrotask"),YW=qW&&qW.value;YW||(jm=function(){var e,t;for(Ol&&(e=KW.domain)&&e.exit();Au;){t=Au.fn,Au=Au.next;try{t()}catch(n){throw Au?Ld():zm=void 0,n}}zm=void 0,e&&e.enter()},RW||Ol||OVe||!WW||!GW?!NVe&&Ow&&Ow.resolve?((KB=Ow.resolve(void 0)).constructor=Ow,HW=Fm(KB.then,KB),Ld=function(){HW(jm)}):Ol?Ld=function(){KW.nextTick(jm)}:(qB=Fm(qB,ve),Ld=function(){qB(jm)}):(WB=!0,GB=GW.createTextNode(""),new WW(jm).observe(GB,{characterData:!0}),Ld=function(){GB.data=WB=!WB}));var YB,XW,JW,ZW,QW=YW||function(e){var t={fn:e,next:void 0};zm&&(zm.next=t),Au||(Au=t,Ld()),zm=t},FVe=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Tl(t),this.reject=Tl(n)},XB={f:function(e){return new FVe(e)}},JB=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},RVe=typeof window=="object",$W=UW.set,LVe=dn("species"),gi="Promise",eG=Qr.getterFor(gi),MVe=Qr.set,jVe=Qr.getterFor(gi),Vu=Bw&&Bw.prototype,Va=Bw,Hm=Vu,tG=ve.TypeError,ZB=ve.document,QB=ve.process,Md=XB.f,zVe=Md,HVe=!!(ZB&&ZB.createEvent&&ve.dispatchEvent),nG=Ct(ve.PromiseRejectionEvent),rG=!1,Um=Sw(gi,function(){var e=pw(Va),t=e!==String(Va);if(!t&&Am===66)return!0;if(Am>=51&&/native code/.test(e))return!1;var n=new Va(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[LVe]=r,!(rG=n.then(function(){})instanceof r)||!t&&RVe&&!nG}),UVe=Um||!IW(function(e){Va.all(e).catch(function(){})}),oG=function(e){var t;return!(!jt(e)||!Ct(t=e.then))&&t},$B=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;QW(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var l,s,u,c=n[a++],d=o?c.ok:c.fail,f=c.resolve,g=c.reject,h=c.domain;try{d?(o||(e.rejection===2&&GVe(e),e.rejection=1),d===!0?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),u=!0)),l===c.promise?g(tG("Promise-chain cycle")):(s=oG(l))?Bt(s,l,f,g):f(l)):g(r)}catch(p){h&&!u&&h.exit(),g(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&WVe(e)})}},aG=function(e,t,n){var r,o;HVe?((r=ZB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ve.dispatchEvent(r)):r={promise:t,reason:n},!nG&&(o=ve["on"+e])?o(r):e==="unhandledrejection"&&function(a,l){var s=ve.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,l))}("Unhandled promise rejection",n)},WVe=function(e){Bt($W,ve,function(){var t,n=e.facade,r=e.value;if(iG(e)&&(t=JB(function(){Ol?QB.emit("unhandledRejection",r,n):aG("unhandledrejection",n,r)}),e.rejection=Ol||iG(e)?2:1,t.error))throw t.value})},iG=function(e){return e.rejection!==1&&!e.parent},GVe=function(e){Bt($W,ve,function(){var t=e.facade;Ol?QB.emit("rejectionHandled",t):aG("rejectionhandled",t,e.value)})},jd=function(e,t,n){return function(r){e(t,r,n)}},zd=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,$B(e,!0))},e3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tG("Promise can't be resolved itself");var r=oG(t);r?QW(function(){var o={done:!1};try{Bt(r,t,jd(e3,o,e),jd(zd,o,e))}catch(a){zd(o,a,e)}}):(e.value=t,e.state=1,$B(e,!1))}catch(o){zd({done:!1},o,e)}}};if(Um&&(Hm=(Va=function(e){RB(this,Hm),Tl(e),Bt(YB,this);var t=eG(this);try{e(jd(e3,t),jd(zd,t))}catch(n){zd(t,n)}}).prototype,(YB=function(e){MVe(this,{type:gi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_w(Hm,{then:function(e,t){var n=jVe(this),r=n.reactions,o=Md(function(a,l){var s,u=Rn(a).constructor;return u===void 0||(s=Rn(u)[BVe])==null?l:function(c){if(xB(c))return c;throw VVe(fw(c)+" is not a constructor")}(s)}(this,Va));return o.ok=!Ct(e)||e,o.fail=Ct(t)&&t,o.domain=Ol?QB.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&$B(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),XW=function(){var e=new YB,t=eG(e);this.promise=e,this.resolve=jd(e3,t),this.reject=jd(zd,t)},XB.f=Md=function(e){return e===Va||e===JW?new XW(e):zVe(e)},Ct(Bw)&&Vu!==Object.prototype)){ZW=Vu.then,rG||(wo(Vu,"then",function(e,t){var n=this;return new Va(function(r,o){Bt(ZW,n,r,o)}).then(e,t)},{unsafe:!0}),wo(Vu,"catch",Hm.catch,{unsafe:!0}));try{delete Vu.constructor}catch{}Id&&Id(Vu,Hm)}function Wm(e,t,n){return n===void 0&&(n=""),lw(this,void 0,void 0,function(){var r,o,a,l,s,u,c;return sw(this,function(d){switch(d.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,a=r.checkVideo,l=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=d.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,l(t)];case 2:return(u=d.sent()).trim().indexOf("<iframe ")!==0&&(u=u.replace(/</g,"&lt;").replace(/>/g,"&gt;")),c={type:"video",src:u,poster:n,children:[{text:""}]},Promise.resolve().then(function(){Q.insertNodes(e,c)}),o(c),[2]}})})}function t3(){return EW("w-e-insert-video")}Pr({global:!0,wrap:!0,forced:Um},{Promise:Va}),Tw(Va,gi,!1),function(e){var t=xu("Promise"),n=hi.f;Da&&t&&!t[AW]&&n(t,AW,{configurable:!0,get:function(){return this}})}(),JW=xu(gi),Pr({target:gi,stat:!0,forced:Um},{reject:function(e){var t=Md(this);return Bt(t.reject,void 0,e),t.promise}}),Pr({target:gi,stat:!0,forced:Um},{resolve:function(e){return function(t,n){if(Rn(t),jt(n)&&n.constructor===t)return n;var r=XB.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Pr({target:gi,stat:!0,forced:UVe},{all:function(e){var t=this,n=Md(t),r=n.resolve,o=n.reject,a=JB(function(){var l=Tl(t.resolve),s=[],u=0,c=1;Nw(e,function(d){var f=u++,g=!1;c++,Bt(l,t,d).then(function(h){g||(g=!0,s[f]=h,--c||r(s))},o)}),--c||r(s)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=Md(t),r=n.reject,o=JB(function(){var a=Tl(t.resolve);Nw(e,function(l){Bt(a,t,l).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var KVe=function(){function e(){this.title=ge("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=t3(),this.posterInputId=t3(),this.buttonId=t3()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||!!R.getSelectedElems(t).some(function(r){var o=R.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,a=r.posterInputId,l=r.buttonId,s=ku(Kr(ge("videoModule.videoSrc"),o,ge("videoModule.videoSrcPlaceHolder")),2),u=s[0],c=s[1],d=ku(Kr(ge("videoModule.videoPoster"),a,ge("videoModule.videoPosterPlaceHolder")),2),f=d[0],g=d[1],h=M(c),p=M(g),y=ku(od(l,ge("videoModule.ok")),1)[0];if(this.$content==null){var v=M("<div></div>");v.on("click","#"+l,function(m){return lw(n,void 0,void 0,function(){var w,S;return sw(this,function(C){switch(C.label){case 0:return m.preventDefault(),w=v.find("#"+o).val().trim(),S=v.find("#"+a).val().trim(),[4,Wm(t,w,S)];case 1:return C.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=v}var b=this.$content;return b.empty(),b.append(u),b.append(f),b.append(y),h.val(""),p.val(""),setTimeout(function(){h.focus()}),b[0]},e}(),qVe=He([].join),YVe=rB!=Object,XVe=function(e,t){var n=[].join;return!!n&&Vt(function(){n.call(null,",",1)})}();Pr({target:"Array",proto:!0,forced:YVe||!XVe},{join:function(e){return qVe(_l(this),e===void 0?",":e)}});var Bu,lG,sG,JVe=!Vt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),uG=hB("IE_PROTO"),n3=ve.Object,ZVe=n3.prototype,Iw=JVe?n3.getPrototypeOf:function(e){var t=hw(e);if(Sn(t,uG))return t[uG];var n=t.constructor;return Ct(n)&&t instanceof n?n.prototype:t instanceof n3?ZVe:null},r3=dn("iterator"),cG=!1;[].keys&&("next"in(sG=[].keys())?(lG=Iw(Iw(sG)))!==Object.prototype&&(Bu=lG):cG=!0);var QVe=Bu==null||Vt(function(){var e={};return Bu[r3].call(e)!==e});QVe&&(Bu={}),Ct(Bu[r3])||wo(Bu,r3,function(){return this});var o3={IteratorPrototype:Bu,BUGGY_SAFARI_ITERATORS:cG},$Ve=o3.IteratorPrototype,eBe=function(){return this},tBe=Od.PROPER,nBe=Od.CONFIGURABLE,dG=o3.IteratorPrototype,a3=o3.BUGGY_SAFARI_ITERATORS,Gm=dn("iterator"),rBe=function(){return this},fG=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=wB($Ve,{next:dw(1,m)}),Tw(v,S,!1),Fd[S]=eBe})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!a3&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[Gm]||g["@@iterator"]||o&&g[o],p=!a3&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=Iw(y.call(new e)))!==Object.prototype&&s.next&&(Iw(s)!==dG&&(Id?Id(s,dG):Ct(s[Gm])||wo(s,Gm,rBe)),Tw(s,d,!0)),tBe&&o=="values"&&h&&h.name!=="values"&&(nBe?Nl(g,"name","values"):(f=!0,p=function(){return Bt(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||Pr({target:t,proto:!0,forced:a3||f},u)),g[Gm]!==p&&wo(g,Gm,p,{name:o}),Fd[t]=p,u},oBe=Qr.set,aBe=Qr.getterFor("Array Iterator"),Km=fG(Array,"Array",function(e,t){oBe(this,{type:"Array Iterator",target:_l(e),index:0,kind:t})},function(){var e=aBe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Fd.Arguments=Fd.Array,Im("keys"),Im("values"),Im("entries");var iBe=SW.charAt,lBe=Qr.set,sBe=Qr.getterFor("String Iterator");fG(String,"String",function(e){lBe(this,{type:"String Iterator",string:So(e),index:0})},function(){var e,t=sBe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iBe(n,r),t.index+=e.length,{value:e,done:!1})});var hG=function(e,t,n){var r=cB(t);r in e?hi.f(e,r,dw(0,n)):e[r]=n},uBe=ve.Array,cBe=Math.max,gG=ww.f,mG=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dBe={f:function(e){return mG&&Aa(e)=="Window"?function(t){try{return gG(t)}catch{return function(r,o,a){for(var l=Nm(r),s=Pm(void 0,l),u=Pm(l,l),c=uBe(cBe(u-s,0)),d=0;s<u;s++,d++)hG(c,d,r[s]);return c.length=d,c}(mG)}}(e):gG(_l(e))}},pG=Vt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Fw=Object.isExtensible,_u=Vt(function(){Fw(1)})||pG?function(e){return!!jt(e)&&(!pG||Aa(e)!="ArrayBuffer")&&(!Fw||Fw(e))}:Fw,fBe=!Vt(function(){return Object.isExtensible(Object.preventExtensions({}))}),i3=$V(function(e){var t=hi.f,n=!1,r=uB("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=ww.f,u=He([].splice),c={};c[r]=1,s(c).length&&(ww.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Pr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dBe.f}))},fastKey:function(s,u){if(!jt(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Sn(s,r)){if(!_u(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Sn(s,r)){if(!_u(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return fBe&&n&&_u(s)&&!Sn(s,r)&&a(s),s}};vw[r]=!0}),Rw=i3.getWeakData,hBe=Qr.set,gBe=Qr.getterFor,mBe=EB.find,pBe=EB.findIndex,vBe=He([].splice),yBe=0,Lw=function(e){return e.frozen||(e.frozen=new vG)},vG=function(){this.entries=[]},l3=function(e,t){return mBe(e.entries,function(n){return n[0]===t})};vG.prototype={get:function(e){var t=l3(this,e);if(t)return t[1]},has:function(e){return!!l3(this,e)},set:function(e,t){var n=l3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pBe(this.entries,function(n){return n[0]===e});return~t&&vBe(this.entries,t,1),!!~t}};var qm,yG={getConstructor:function(e,t,n,r){var o=e(function(u,c){RB(u,a),hBe(u,{type:t,id:yBe++,frozen:void 0}),c!=null&&Nw(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=gBe(t),s=function(u,c,d){var f=l(u),g=Rw(Rn(c),!0);return g===!0?Lw(f).set(c,d):g[f.id]=d,u};return _w(a,{delete:function(u){var c=l(this);if(!jt(u))return!1;var d=Rw(u);return d===!0?Lw(c).delete(u):d&&Sn(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!jt(u))return!1;var d=Rw(u);return d===!0?Lw(c).has(u):d&&Sn(d,c.id)}}),_w(a,n?{get:function(u){var c=l(this);if(jt(u)){var d=Rw(u);return d===!0?Lw(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},Mw=Qr.enforce,bBe=!ve.ActiveXObject&&"ActiveXObject"in ve,bG=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wBe=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=ve[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=He(s[v]);wo(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!jt(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!jt(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!jt(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(Sw(e,!Ct(l)||!(o||s.forEach&&!Vt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),i3.enable();else if(Sw(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=Vt(function(){f.has(1)}),p=IW(function(v){new l(v)}),y=!o&&Vt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){RB(v,s);var m=function(w,S,C){var x,k;return Id&&Ct(x=S.constructor)&&x!==C&&jt(k=x.prototype)&&k!==C.prototype&&Id(w,k),w}(new l,v,u);return b!=null&&Nw(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Pr({global:!0,forced:u!=l},c),Tw(u,e),o||n.setStrong(u,e,r),u}("WeakMap",bG,yG);if(HU&&bBe){qm=yG.getConstructor(bG,"WeakMap",!0),i3.enable();var Ym=wBe.prototype,wG=He(Ym.delete),jw=He(Ym.has),SG=He(Ym.get),CG=He(Ym.set);_w(Ym,{delete:function(e){if(jt(e)&&!_u(e)){var t=Mw(this);return t.frozen||(t.frozen=new qm),wG(this,e)||t.frozen.delete(e)}return wG(this,e)},has:function(e){if(jt(e)&&!_u(e)){var t=Mw(this);return t.frozen||(t.frozen=new qm),jw(this,e)||t.frozen.has(e)}return jw(this,e)},get:function(e){if(jt(e)&&!_u(e)){var t=Mw(this);return t.frozen||(t.frozen=new qm),jw(this,e)?SG(this,e):t.frozen.get(e)}return SG(this,e)},set:function(e,t){if(jt(e)&&!_u(e)){var n=Mw(this);n.frozen||(n.frozen=new qm),jw(this,e)?CG(this,e,t):n.frozen.set(e,t)}else CG(this,e,t);return this}})}var kG={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},s3=_m("span").classList,xG=s3&&s3.constructor&&s3.constructor.prototype,SBe=xG===Object.prototype?void 0:xG,u3=dn("iterator"),EG=dn("toStringTag"),c3=Km.values,DG=function(e,t){if(e){if(e[u3]!==c3)try{Nl(e,u3,c3)}catch{e[u3]=c3}if(e[EG]||Nl(e,EG,t),kG[t]){for(var n in Km)if(e[n]!==Km[n])try{Nl(e,n,Km[n])}catch{e[n]=Km[n]}}}};for(var d3 in kG)DG(ve[d3]&&ve[d3].prototype,d3);DG(SBe,"DOMTokenList");var CBe=Od.EXISTS,kBe=hi.f,AG=Function.prototype,xBe=He(AG.toString),VG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,EBe=He(VG.exec);Da&&!CBe&&kBe(AG,"name",{configurable:!0,get:function(){try{return EBe(VG,xBe(this))[1]}catch{return""}}});var DBe=dn("species"),ABe=Am>=51||!Vt(function(){var e=[];return(e.constructor={})[DBe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),VBe=dn("species"),f3=ve.Array,BBe=Math.max;function BG(e){return e.getMenuConfig("uploadVideo")}Pr({target:"Array",proto:!0,forced:!ABe},{slice:function(e,t){var n,r,o,a=_l(this),l=Nm(a),s=Pm(e,l),u=Pm(t===void 0?l:t,l);if(Dw(a)&&(n=a.constructor,(xB(n)&&(n===f3||Dw(n.prototype))||jt(n)&&(n=n[VBe])===null)&&(n=void 0),n===f3||n===void 0))return FW(a,s,u);for(r=new(n===void 0?f3:n)(BBe(u-s,0)),o=0;s<u;s++,o++)s in a&&hG(r,o,a[s]);return r.length=o,r}});var _G=new WeakMap;function _Be(e,t){return lw(this,void 0,void 0,function(){var n,r,o,a;return sw(this,function(l){switch(l.label){case 0:return n=function(s){var u=_G.get(s);if(u!=null)return u;var c=BG(s),d=c.onSuccess,f=c.onProgress,g=c.onFailed,h=c.customInsert,p=c.onError;return u=BR(iw(iw({},c),{onProgress:function(y){s.showProgressBar(y),f&&f(y)},onSuccess:function(y,v){if(h)return h(v,function(E,A){return Wm(s,E,A)}),void d(y,v);var b=v.errno,m=b===void 0?1:b,w=v.data,S=w===void 0?{}:w;if(m===0){var C=S.url,x=C===void 0?"":C,k=S.poster;Wm(s,x,k===void 0?"":k),d(y,v)}else g(y,v)},onError:function(y,v,b){p(y,v,b)}})),_G.set(s,u),u}(e),r=t.name,o=t.type,a=t.size,n.addFile({name:r,type:o,size:a,data:t}),[4,n.upload()];case 1:return l.sent(),[2]}})})}var TBe=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,a=o===void 0?[]:o,l=r.customBrowseAndUpload;if(l)l(function(d,f){return Wm(t,d,f)});else{var s="";a.length>0&&(s='accept="'+a.join(", ")+'"');var u=M("body"),c=M('<input type="file" '+s+" multiple/>");c.hide(),u.append(c),c.click(),c.on("change",function(){var d=c[0].files;(function(f,g){var h,p;lw(this,void 0,void 0,function(){var y,v,b,m,w,S;return sw(this,function(C){switch(C.label){case 0:if(g==null)return[2];y=Array.prototype.slice.call(g),v=BG(f).customUpload,C.label=1;case 1:C.trys.push([1,9,10,15]),b=V4e(y),C.label=2;case 2:return[4,b.next()];case 3:return(m=C.sent()).done?[3,8]:(w=m.value,v?[4,v(w,function(x,k){return Wm(f,x,k)})]:[3,5]);case 4:return C.sent(),[3,7];case 5:return[4,_Be(f,w)];case 6:C.sent(),C.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return S=C.sent(),h={error:S},[3,15];case 10:return C.trys.push([10,,13,14]),m&&!m.done&&(p=b.return)?[4,p.call(b)]:[3,12];case 11:C.sent(),C.label=12;case 12:return[3,14];case 13:if(h)throw h.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,d)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!re.isCollapsed(n)||!!R.getSelectedElems(t).some(function(r){var o=R.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),PBe=Od.PROPER,h3=RegExp.prototype,TG=h3.toString,NBe=He(hW),OBe=Vt(function(){return TG.call({source:"a",flags:"b"})!="/a/b"}),IBe=PBe&&TG.name!="toString";function g3(){return EW("w-e-insert-video")}(OBe||IBe)&&wo(RegExp.prototype,"toString",function(){var e=Rn(this),t=So(e.source),n=e.flags;return"/"+t+"/"+So(n===void 0&&Dm(h3,e)&&!("flags"in h3)?NBe(e):n)},{unsafe:!0});var FBe=function(){function e(){this.title=ge("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=g3(),this.heightInputId=g3(),this.buttonId=g3()}return e.prototype.getSelectedVideoNode=function(t){return R.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,a=n.buttonId,l=ku(Kr(ge("videoModule.width"),r,"auto"),2),s=l[0],u=M(l[1]),c=ku(Kr(ge("videoModule.height"),o,"auto"),2),d=c[0],f=M(c[1]),g=ku(od(a,ge("videoModule.ok")),1)[0];if(this.$content==null){var h=M("<div></div>");h.on("click","#"+a,function(S){S.preventDefault();var C=h.find("#"+r).val().trim(),x=h.find("#"+o).val().trim(),k=parseInt(C),E=parseInt(x),A=k?k.toString():"auto",N=E?E.toString():"auto";t.restoreSelection(),Q.setNodes(t,{width:A,height:N},{match:function(V){return R.checkNodeType(V,"video")}}),t.hidePanelOrModal()}),this.$content=h}var p=this.$content;p.empty(),p.append(s),p.append(d),p.append(g);var y=this.getSelectedVideoNode(t);if(y==null)return p[0];var v=y.width,b=v===void 0?"auto":v,m=y.height,w=m===void 0?"auto":m;return u.val(b),f.val(w),setTimeout(function(){u.focus()}),p[0]},e}(),RBe={renderElems:[TAe],elemsToHtml:[PAe],preParseHtml:[FAe],parseElemsHtml:[WAe],menus:[{key:"insertVideo",factory:function(){return new KVe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new TBe},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 FBe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var a=ku(o,2),l=a[0],s=a[1];return R.getNodeType(l)==="video"&&R.isLastNode(r,l)&&Q.insertNodes(r,R.genEmptyParagraph(),{at:[s[0]+1]}),n([l,s])},r}};Vr("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Vr("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var PG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m3(e){var t={exports:{}};return e(t,t.exports),t.exports}var Il,zw,Hw=function(e){return e&&e.Math==Math&&e},pe=Hw(typeof globalThis=="object"&&globalThis)||Hw(typeof window=="object"&&window)||Hw(typeof self=="object"&&self)||Hw(typeof PG=="object"&&PG)||function(){return this}()||Function("return this")(),Nt=function(e){try{return!!e()}catch{return!0}},Ba=!Nt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xm=Function.prototype.call,yt=Xm.bind?Xm.bind(Xm):function(){return Xm.apply(Xm,arguments)},NG={}.propertyIsEnumerable,OG=Object.getOwnPropertyDescriptor,LBe={f:OG&&!NG.call({1:2},1)?function(e){var t=OG(this,e);return!!t&&t.enumerable}:NG},Uw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},IG=Function.prototype,p3=IG.bind,v3=IG.call,MBe=p3&&p3.bind(v3),Ze=p3?function(e){return e&&MBe(v3,e)}:function(e){return e&&function(){return v3.apply(e,arguments)}},jBe=Ze({}.toString),zBe=Ze("".slice),Go=function(e){return zBe(jBe(e),8,-1)},y3=pe.Object,HBe=Ze("".split),b3=Nt(function(){return!y3("z").propertyIsEnumerable(0)})?function(e){return Go(e)=="String"?HBe(e,""):y3(e)}:y3,UBe=pe.TypeError,Jm=function(e){if(e==null)throw UBe("Can't call method on "+e);return e},Fl=function(e){return b3(Jm(e))},At=function(e){return typeof e=="function"},Ot=function(e){return typeof e=="object"?e!==null:At(e)},WBe=function(e){return At(e)?e:void 0},Tu=function(e,t){return arguments.length<2?WBe(pe[e]):pe[e]&&pe[e][t]},Zm=Ze({}.isPrototypeOf),Hd=Tu("navigator","userAgent")||"",FG=pe.process,RG=pe.Deno,LG=FG&&FG.versions||RG&&RG.version,MG=LG&&LG.v8;MG&&(zw=(Il=MG.split("."))[0]>0&&Il[0]<4?1:+(Il[0]+Il[1])),!zw&&Hd&&(!(Il=Hd.match(/Edge\/(\d+)/))||Il[1]>=74)&&(Il=Hd.match(/Chrome\/(\d+)/))&&(zw=+Il[1]);var Qm=zw,w3=!!Object.getOwnPropertySymbols&&!Nt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qm&&Qm<41}),S3=w3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",GBe=pe.Object,C3=S3?function(e){return typeof e=="symbol"}:function(e){var t=Tu("Symbol");return At(t)&&Zm(t.prototype,GBe(e))},KBe=pe.String,Ww=function(e){try{return KBe(e)}catch{return"Object"}},qBe=pe.TypeError,Rl=function(e){if(At(e))return e;throw qBe(Ww(e)+" is not a function")},$m=function(e,t){var n=e[t];return n==null?void 0:Rl(n)},YBe=pe.TypeError,XBe=Object.defineProperty,k3=function(e,t){try{XBe(pe,e,{value:t,configurable:!0,writable:!0})}catch{pe[e]=t}return t},Ll=pe["__core-js_shared__"]||k3("__core-js_shared__",{}),x3=m3(function(e){(e.exports=function(t,n){return Ll[t]||(Ll[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),JBe=pe.Object,E3=function(e){return JBe(Jm(e))},ZBe=Ze({}.hasOwnProperty),Cn=Object.hasOwn||function(e,t){return ZBe(E3(e),t)},QBe=0,$Be=Math.random(),e3e=Ze(1 .toString),D3=function(e){return"Symbol("+(e===void 0?"":e)+")_"+e3e(++QBe+$Be,36)},ep=x3("wks"),Pu=pe.Symbol,jG=Pu&&Pu.for,t3e=S3?Pu:Pu&&Pu.withoutSetter||D3,fn=function(e){if(!Cn(ep,e)||!w3&&typeof ep[e]!="string"){var t="Symbol."+e;w3&&Cn(Pu,e)?ep[e]=Pu[e]:ep[e]=S3&&jG?jG(t):t3e(t)}return ep[e]},n3e=pe.TypeError,r3e=fn("toPrimitive"),A3=function(e){var t=function(n,r){if(!Ot(n)||C3(n))return n;var o,a=$m(n,r3e);if(a){if(o=yt(a,n,r),!Ot(o)||C3(o))return o;throw n3e("Can't convert object to primitive value")}return function(l,s){var u,c;if(At(u=l.toString)&&!Ot(c=yt(u,l))||At(u=l.valueOf)&&!Ot(c=yt(u,l)))return c;throw YBe("Can't convert object to primitive value")}(n)}(e,"string");return C3(t)?t:t+""},V3=pe.document,o3e=Ot(V3)&&Ot(V3.createElement),tp=function(e){return o3e?V3.createElement(e):{}},zG=!Ba&&!Nt(function(){return Object.defineProperty(tp("div"),"a",{get:function(){return 7}}).a!=7}),HG=Object.getOwnPropertyDescriptor,B3={f:Ba?HG:function(e,t){if(e=Fl(e),t=A3(t),zG)try{return HG(e,t)}catch{}if(Cn(e,t))return Uw(!yt(LBe.f,e,t),e[t])}},a3e=pe.String,i3e=pe.TypeError,Ln=function(e){if(Ot(e))return e;throw i3e(a3e(e)+" is not an object")},l3e=pe.TypeError,UG=Object.defineProperty,mi={f:Ba?UG:function(e,t,n){if(Ln(e),t=A3(t),Ln(n),zG)try{return UG(e,t,n)}catch{}if("get"in n||"set"in n)throw l3e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_a=Ba?function(e,t,n){return mi.f(e,t,Uw(1,n))}:function(e,t,n){return e[t]=n,e},s3e=Ze(Function.toString);At(Ll.inspectSource)||(Ll.inspectSource=function(e){return s3e(e)});var Gw,np,Kw,qw=Ll.inspectSource,WG=pe.WeakMap,GG=At(WG)&&/native code/.test(qw(WG)),KG=x3("keys"),_3=function(e){return KG[e]||(KG[e]=D3(e))},Yw={},T3=pe.TypeError,u3e=pe.WeakMap;if(GG||Ll.state){var Nu=Ll.state||(Ll.state=new u3e),c3e=Ze(Nu.get),qG=Ze(Nu.has),d3e=Ze(Nu.set);Gw=function(e,t){if(qG(Nu,e))throw new T3("Object already initialized");return t.facade=e,d3e(Nu,e,t),t},np=function(e){return c3e(Nu,e)||{}},Kw=function(e){return qG(Nu,e)}}else{var Ud=_3("state");Yw[Ud]=!0,Gw=function(e,t){if(Cn(e,Ud))throw new T3("Object already initialized");return t.facade=e,_a(e,Ud,t),t},np=function(e){return Cn(e,Ud)?e[Ud]:{}},Kw=function(e){return Cn(e,Ud)}}var $r={set:Gw,get:np,has:Kw,enforce:function(e){return Kw(e)?np(e):Gw(e,{})},getterFor:function(e){return function(t){var n;if(!Ot(t)||(n=np(t)).type!==e)throw T3("Incompatible receiver, "+e+" required");return n}}},YG=Function.prototype,f3e=Ba&&Object.getOwnPropertyDescriptor,P3=Cn(YG,"name"),rp={EXISTS:P3,PROPER:P3&&(function(){}).name==="something",CONFIGURABLE:P3&&(!Ba||Ba&&f3e(YG,"name").configurable)},Co=m3(function(e){var t=rp.CONFIGURABLE,n=$r.get,r=$r.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;At(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cn(s,"name")||t&&s.name!==h)&&_a(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==pe?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:_a(a,l,s)):f?a[l]=s:k3(l,s)})(Function.prototype,"toString",function(){return At(this)&&n(this).source||qw(this)})}),h3e=Math.ceil,g3e=Math.floor,N3=function(e){var t=+e;return t!=t||t===0?0:(t>0?g3e:h3e)(t)},m3e=Math.max,p3e=Math.min,op=function(e,t){var n=N3(e);return n<0?m3e(n+t,0):p3e(n,t)},v3e=Math.min,XG=function(e){return e>0?v3e(N3(e),9007199254740991):0},ap=function(e){return XG(e.length)},y3e=function(e){return function(t,n,r){var o,a=Fl(t),l=ap(a),s=op(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},b3e=y3e(!1),JG=Ze([].push),ZG=function(e,t){var n,r=Fl(e),o=0,a=[];for(n in r)!Cn(Yw,n)&&Cn(r,n)&&JG(a,n);for(;t.length>o;)Cn(r,n=t[o++])&&(~b3e(a,n)||JG(a,n));return a},Xw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],w3e=Xw.concat("length","prototype"),Jw={f:Object.getOwnPropertyNames||function(e){return ZG(e,w3e)}},S3e={f:Object.getOwnPropertySymbols},C3e=Ze([].concat),k3e=Tu("Reflect","ownKeys")||function(e){var t=Jw.f(Ln(e)),n=S3e.f;return n?C3e(t,n(e)):t},x3e=function(e,t){for(var n=k3e(t),r=mi.f,o=B3.f,a=0;a<n.length;a++){var l=n[a];Cn(e,l)||r(e,l,o(t,l))}},E3e=/#|\.prototype\./,ip=function(e,t){var n=A3e[D3e(e)];return n==B3e||n!=V3e&&(At(t)?Nt(t):!!t)},D3e=ip.normalize=function(e){return String(e).replace(E3e,".").toLowerCase()},A3e=ip.data={},V3e=ip.NATIVE="N",B3e=ip.POLYFILL="P",Zw=ip,_3e=B3.f,Ta=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?pe:c?pe[s]||k3(s,{}):(pe[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=_3e(n,r))&&l.value:n[r],!Zw(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;x3e(a,o)}(e.sham||o&&o.sham)&&_a(a,"sham",!0),Co(n,r,a,e)}},Qw=Array.isArray||function(e){return Go(e)=="Array"},QG={};QG[fn("toStringTag")]="z";var O3=String(QG)==="[object z]",T3e=fn("toStringTag"),P3e=pe.Object,N3e=Go(function(){return arguments}())=="Arguments",$w=O3?Go:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=P3e(e),T3e))=="string"?n:N3e?Go(t):(r=Go(t))=="Object"&&At(t.callee)?"Arguments":r},$G=function(){},O3e=[],eK=Tu("Reflect","construct"),I3=/^\s*(?:class|function)\b/,I3e=Ze(I3.exec),F3e=!I3.exec($G),lp=function(e){if(!At(e))return!1;try{return eK($G,O3e,e),!0}catch{return!1}},F3=!eK||Nt(function(){var e;return lp(lp.call)||!lp(Object)||!lp(function(){e=!0})||e})?function(e){if(!At(e))return!1;switch($w(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return F3e||!!I3e(I3,qw(e))}:lp,tK=function(e,t,n){var r=A3(t);r in e?mi.f(e,r,Uw(0,n)):e[r]=n},R3e=fn("species"),nK=Ze([].slice),L3e=Qm>=51||!Nt(function(){var e=[];return(e.constructor={})[R3e]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),M3e=fn("species"),R3=pe.Array,j3e=Math.max;Ta({target:"Array",proto:!0,forced:!L3e},{slice:function(e,t){var n,r,o,a=Fl(this),l=ap(a),s=op(e,l),u=op(t===void 0?l:t,l);if(Qw(a)&&(n=a.constructor,(F3(n)&&(n===R3||Qw(n.prototype))||Ot(n)&&(n=n[M3e])===null)&&(n=void 0),n===R3||n===void 0))return nK(a,s,u);for(r=new(n===void 0?R3:n)(j3e(u-s,0)),o=0;s<u;s++,o++)s in a&&tK(r,o,a[s]);return r.length=o,r}});var z3e=O3?{}.toString:function(){return"[object "+$w(this)+"]"};O3||Co(Object.prototype,"toString",z3e,{unsafe:!0});var e2,H3e=pe.String,Ml=function(e){if($w(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return H3e(e)},rK=function(){var e=Ln(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},L3=pe.RegExp,M3=Nt(function(){var e=L3("a","y");return e.lastIndex=2,e.exec("abcd")!=null});M3||Nt(function(){return!L3("a","y").sticky});var oK={BROKEN_CARET:M3||Nt(function(){var e=L3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:M3},U3e=Object.keys||function(e){return ZG(e,Xw)},W3e=Ba?Object.defineProperties:function(e,t){Ln(e);for(var n,r=Fl(t),o=U3e(t),a=o.length,l=0;a>l;)mi.f(e,n=o[l++],r[n]);return e},j3=Tu("document","documentElement"),aK=_3("IE_PROTO"),z3=function(){},iK=function(e){return"<script>"+e+"<\/script>"},lK=function(e){e.write(iK("")),e.close();var t=e.parentWindow.Object;return e=null,t},t2=function(){try{e2=new ActiveXObject("htmlfile")}catch{}var e,t;t2=typeof document<"u"?document.domain&&e2?lK(e2):((t=tp("iframe")).style.display="none",j3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(iK("document.F=Object")),e.close(),e.F):lK(e2);for(var n=Xw.length;n--;)delete t2.prototype[Xw[n]];return t2()};Yw[aK]=!0;var sK,H3,U3=Object.create||function(e,t){var n;return e!==null?(z3.prototype=Ln(e),n=new z3,z3.prototype=null,n[aK]=e):n=t2(),t===void 0?n:W3e(n,t)},G3e=pe.RegExp,K3e=Nt(function(){var e=G3e(".","s");return!(e.dotAll&&e.exec(`
164
+ `)&&e.flags==="s")}),q3e=pe.RegExp,Y3e=Nt(function(){var e=q3e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),X3e=$r.get,J3e=x3("native-string-replace",String.prototype.replace),n2=RegExp.prototype.exec,W3=n2,Z3e=Ze("".charAt),Q3e=Ze("".indexOf),$3e=Ze("".replace),G3=Ze("".slice),K3=(H3=/b*/g,yt(n2,sK=/a/,"a"),yt(n2,H3,"a"),sK.lastIndex!==0||H3.lastIndex!==0),uK=oK.BROKEN_CARET,q3=/()??/.exec("")[1]!==void 0;(K3||q3||uK||K3e||Y3e)&&(W3=function(e){var t,n,r,o,a,l,s,u=this,c=X3e(u),d=Ml(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=yt(W3,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=uK&&u.sticky,p=yt(rK,u),y=u.source,v=0,b=d;if(h&&(p=$3e(p,"y",""),Q3e(p,"g")===-1&&(p+="g"),b=G3(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Z3e(d,u.lastIndex-1)!==`
165
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),q3&&(n=new RegExp("^"+y+"$(?!\\s)",p)),K3&&(r=u.lastIndex),o=yt(n2,h?n:u,b),h?o?(o.input=G3(o.input,v),o[0]=G3(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:K3&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),q3&&o&&o.length>1&&yt(J3e,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=U3(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var sp=W3;Ta({target:"RegExp",proto:!0,forced:/./.exec!==sp},{exec:sp});var Y3=Function.prototype,cK=Y3.apply,e_e=Y3.bind,dK=Y3.call,fK=typeof Reflect=="object"&&Reflect.apply||(e_e?dK.bind(cK):function(){return dK.apply(cK,arguments)}),t_e=fn("species"),X3=RegExp.prototype,n_e=fn("match"),r_e=pe.TypeError,o_e=fn("species"),hK=function(e,t){var n,r=Ln(e).constructor;return r===void 0||(n=Ln(r)[o_e])==null?t:function(o){if(F3(o))return o;throw r_e(Ww(o)+" is not a constructor")}(n)},a_e=Ze("".charAt),gK=Ze("".charCodeAt),i_e=Ze("".slice),l_e=function(e){return function(t,n){var r,o,a=Ml(Jm(t)),l=N3(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=gK(a,l))<55296||r>56319||l+1===s||(o=gK(a,l+1))<56320||o>57343?e?a_e(a,l):r:e?i_e(a,l,l+2):o-56320+(r-55296<<10)+65536}},mK={charAt:l_e(!0)},s_e=mK.charAt,u_e=function(e,t,n){return t+(n?s_e(e,t).length:1)},c_e=pe.Array,d_e=Math.max,J3=function(e,t,n){for(var r=ap(e),o=op(t,r),a=op(n===void 0?r:n,r),l=c_e(d_e(a-o,0)),s=0;o<a;o++,s++)tK(l,s,e[o]);return l.length=s,l},f_e=pe.TypeError,pK=function(e,t){var n=e.exec;if(At(n)){var r=yt(n,e,t);return r!==null&&Ln(r),r}if(Go(e)==="RegExp")return yt(sp,e,t);throw f_e("RegExp#exec called on incompatible receiver")},Wd=oK.UNSUPPORTED_Y,h_e=Math.min,vK=[].push,g_e=Ze(/./.exec),Gd=Ze(vK),up=Ze("".slice);(function(e,t,n,r){var o=fn(e),a=!Nt(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Nt(function(){var c=!1,d=/a/;return(d={}).constructor={},d.constructor[t_e]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=Ze(/./[o]),u=function(c,d,f){var g;return g="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(h,p){var y,v,b=Ml(Jm(this)),m=p===void 0?4294967295:p>>>0;if(m===0)return[];if(h===void 0)return[b];if(!Ot(y=h)||!((v=y[n_e])!==void 0?v:Go(y)=="RegExp"))return yt(d,b,h,m);for(var w,S,C,x=[],k=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),E=0,A=new RegExp(h.source,k+"g");(w=yt(sp,A,b))&&!((S=A.lastIndex)>E&&(Gd(x,up(b,E,w.index)),w.length>1&&w.index<b.length&&fK(vK,x,J3(w,1)),C=w[0].length,E=S,x.length>=m));)A.lastIndex===w.index&&A.lastIndex++;return E===b.length?!C&&g_e(A,"")||Gd(x,""):Gd(x,up(b,E)),x.length>m?J3(x,0,m):x}:"0".split(void 0,0).length?function(h,p){return h===void 0&&p===0?[]:yt(d,this,h,p)}:d,[function(h,p){var y=Jm(this),v=h==null?void 0:$m(h,c);return v?yt(v,h,y,p):yt(g,Ml(y),h,p)},function(h,p){var y=Ln(this),v=Ml(h),b=f(g,y,v,p,g!==d);if(b.done)return b.value;var m=hK(y,RegExp),w=y.unicode,S=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(Wd?"g":"y"),C=new m(Wd?"^(?:"+y.source+")":y,S),x=p===void 0?4294967295:p>>>0;if(x===0)return[];if(v.length===0)return pK(C,v)===null?[v]:[];for(var k=0,E=0,A=[];E<v.length;){C.lastIndex=Wd?0:E;var N,V=pK(C,Wd?up(v,E):v);if(V===null||(N=h_e(XG(C.lastIndex+(Wd?E:0)),v.length))===k)E=u_e(v,E,w);else{if(Gd(A,up(v,k,E)),A.length===x)return A;for(var D=1;D<=V.length-1;D++)if(Gd(A,V[D]),A.length===x)return A;E=k=N}}return Gd(A,up(v,k)),A}]}(o,""[e],function(c,d,f,g,h){var p=Ze(c),y=d.exec;return y===sp||y===X3.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});Co(String.prototype,e,u[0]),Co(X3,o,u[1])}r&&_a(X3[o],"sham",!0)})("split",0,!!Nt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Wd);/*! *****************************************************************************
166
166
  Copyright (c) Microsoft Corporation.
167
167
 
168
168
  Permission to use, copy, modify, and/or distribute this software for any
@@ -175,16 +175,16 @@ Textarea height < 300px . This may be cause modal and hoverbar position error`,b
175
175
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
176
176
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
177
177
  PERFORMANCE OF THIS SOFTWARE.
178
- ***************************************************************************** */var r2=function(){return r2=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},r2.apply(this,arguments)};function Z3(e,t,n,r){return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(d){a(d)}}function s(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){var d;c.done?o(c.value):(d=c.value,d instanceof n?d:new n(function(f){f(d)})).then(l,s)}u((r=r.apply(e,[])).next())})}function Q3(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,r=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(f){d=[6,f],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,c])}}}function g_e(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(o){var a=typeof Symbol=="function"&&Symbol.iterator,l=a&&o[a],s=0;if(l)return l.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"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(o){t[o]=e[o]&&function(a){return new Promise(function(l,s){(function(u,c,d,f){Promise.resolve(f).then(function(g){u({value:g,done:d})},c)})(l,s,(a=e[o](a)).done,a.value)})}}}var $3=fn("unscopables"),e_=Array.prototype;e_[$3]==null&&mi.f(e_,$3,{configurable:!0,value:U3(null)});var Ou,yK,bK,t_=function(e){e_[$3][e]=!0},Kd={},m_e=!Nt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),wK=_3("IE_PROTO"),n_=pe.Object,p_e=n_.prototype,o2=m_e?n_.getPrototypeOf:function(e){var t=E3(e);if(Cn(t,wK))return t[wK];var n=t.constructor;return At(n)&&t instanceof n?n.prototype:t instanceof n_?p_e:null},r_=fn("iterator"),SK=!1;[].keys&&("next"in(bK=[].keys())?(yK=o2(o2(bK)))!==Object.prototype&&(Ou=yK):SK=!0);var v_e=Ou==null||Nt(function(){var e={};return Ou[r_].call(e)!==e});v_e&&(Ou={}),At(Ou[r_])||Co(Ou,r_,function(){return this});var o_={IteratorPrototype:Ou,BUGGY_SAFARI_ITERATORS:SK},y_e=mi.f,CK=fn("toStringTag"),a2=function(e,t,n){e&&!Cn(e=n?e:e.prototype,CK)&&y_e(e,CK,{configurable:!0,value:t})},b_e=o_.IteratorPrototype,w_e=function(){return this},S_e=pe.String,C_e=pe.TypeError,qd=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ze(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Ln(r),function(a){if(typeof a=="object"||At(a))return a;throw C_e("Can't set "+S_e(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),k_e=rp.PROPER,x_e=rp.CONFIGURABLE,kK=o_.IteratorPrototype,a_=o_.BUGGY_SAFARI_ITERATORS,cp=fn("iterator"),E_e=function(){return this},xK=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=U3(b_e,{next:Uw(1,m)}),a2(v,S,!1),Kd[S]=w_e})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!a_&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[cp]||g["@@iterator"]||o&&g[o],p=!a_&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=o2(y.call(new e)))!==Object.prototype&&s.next&&(o2(s)!==kK&&(qd?qd(s,kK):At(s[cp])||Co(s,cp,E_e)),a2(s,d,!0)),k_e&&o=="values"&&h&&h.name!=="values"&&(x_e?_a(g,"name","values"):(f=!0,p=function(){return yt(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||Ta({target:t,proto:!0,forced:a_||f},u)),g[cp]!==p&&Co(g,cp,p,{name:o}),Kd[t]=p,u},D_e=$r.set,A_e=$r.getterFor("Array Iterator"),dp=xK(Array,"Array",function(e,t){D_e(this,{type:"Array Iterator",target:Fl(e),index:0,kind:t})},function(){var e=A_e(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Kd.Arguments=Kd.Array,t_("keys"),t_("values"),t_("entries");var V_e=mK.charAt,B_e=$r.set,__e=$r.getterFor("String Iterator");xK(String,"String",function(e){B_e(this,{type:"String Iterator",string:Ml(e),index:0})},function(){var e,t=__e(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=V_e(n,r),t.index+=e.length,{value:e,done:!1})});var i2=function(e,t,n){for(var r in t)Co(e,r,t[r],n);return e},EK=Jw.f,DK=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T_e={f:function(e){return DK&&Go(e)=="Window"?function(t){try{return EK(t)}catch{return J3(DK)}}(e):EK(Fl(e))}},AK=Nt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),l2=Object.isExtensible,Iu=Nt(function(){l2(1)})||AK?function(e){return!!Ot(e)&&(!AK||Go(e)!="ArrayBuffer")&&(!l2||l2(e))}:l2,P_e=!Nt(function(){return Object.isExtensible(Object.preventExtensions({}))}),i_=m3(function(e){var t=mi.f,n=!1,r=D3("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=Jw.f,u=Ze([].splice),c={};c[r]=1,s(c).length&&(Jw.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Ta({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:T_e.f}))},fastKey:function(s,u){if(!Ot(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Cn(s,r)){if(!Iu(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Cn(s,r)){if(!Iu(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return P_e&&n&&Iu(s)&&!Cn(s,r)&&a(s),s}};Yw[r]=!0}),VK=Ze(Ze.bind),fp=function(e,t){return Rl(e),t===void 0?e:VK?VK(e,t):function(){return e.apply(t,arguments)}},N_e=fn("iterator"),O_e=Array.prototype,I_e=fn("iterator"),BK=function(e){if(e!=null)return $m(e,I_e)||$m(e,"@@iterator")||Kd[$w(e)]},F_e=pe.TypeError,_K=function(e,t,n){var r,o;Ln(e);try{if(!(r=$m(e,"return"))){if(t==="throw")throw n;return n}r=yt(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Ln(r),n},R_e=pe.TypeError,s2=function(e,t){this.stopped=e,this.result=t},TK=s2.prototype,u2=function(e,t,n){var r,o,a,l,s,u,c,d,f=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=fp(t,f),v=function(m){return r&&_K(r,"normal",m),new s2(!0,m)},b=function(m){return g?(Ln(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(h)r=e;else{if(!(o=BK(e)))throw R_e(Ww(e)+" is not iterable");if((d=o)!==void 0&&(Kd.Array===d||O_e[N_e]===d)){for(a=0,l=ap(e);l>a;a++)if((s=b(e[a]))&&Zm(TK,s))return s;return new s2(!1)}r=function(m,w){var S=arguments.length<2?BK(m):w;if(Rl(S))return Ln(yt(S,m));throw F_e(Ww(m)+" is not iterable")}(e,o)}for(u=r.next;!(c=yt(u,r)).done;){try{s=b(c.value)}catch(m){_K(r,"throw",m)}if(typeof s=="object"&&s&&Zm(TK,s))return s}return new s2(!1)},L_e=pe.TypeError,l_=function(e,t){if(Zm(t,e))return e;throw L_e("Incorrect invocation")},PK=fn("iterator"),NK=!1;try{var M_e=0,OK={next:function(){return{done:!!M_e++}},return:function(){NK=!0}};OK[PK]=function(){return this},Array.from(OK,function(){throw 2})}catch{}var IK=function(e,t){if(!NK)return!1;var n=!1;try{var r={};r[PK]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},j_e=fn("species"),FK=pe.Array,z_e=function(e,t){return new(function(n){var r;return Qw(n)&&(r=n.constructor,(F3(r)&&(r===FK||Qw(r.prototype))||Ot(r)&&(r=r[j_e])===null)&&(r=void 0)),r===void 0?FK:r}(e))(t===0?0:t)},RK=Ze([].push),s_=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=E3(u),y=b3(p),v=fp(c,d),b=ap(y),m=0,w=f||z_e,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:RK(S,g)}else switch(e){case 4:return!1;case 7:RK(S,g)}return a?-1:r||o?o:S}},u_={forEach:s_(0),find:s_(5),findIndex:s_(6)},c2=i_.getWeakData,H_e=$r.set,U_e=$r.getterFor,W_e=u_.find,G_e=u_.findIndex,K_e=Ze([].splice),q_e=0,d2=function(e){return e.frozen||(e.frozen=new LK)},LK=function(){this.entries=[]},c_=function(e,t){return W_e(e.entries,function(n){return n[0]===t})};LK.prototype={get:function(e){var t=c_(this,e);if(t)return t[1]},has:function(e){return!!c_(this,e)},set:function(e,t){var n=c_(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=G_e(this.entries,function(n){return n[0]===e});return~t&&K_e(this.entries,t,1),!!~t}};var hp,MK={getConstructor:function(e,t,n,r){var o=e(function(u,c){l_(u,a),H_e(u,{type:t,id:q_e++,frozen:void 0}),c!=null&&u2(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=U_e(t),s=function(u,c,d){var f=l(u),g=c2(Ln(c),!0);return g===!0?d2(f).set(c,d):g[f.id]=d,u};return i2(a,{delete:function(u){var c=l(this);if(!Ot(u))return!1;var d=c2(u);return d===!0?d2(c).delete(u):d&&Cn(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!Ot(u))return!1;var d=c2(u);return d===!0?d2(c).has(u):d&&Cn(d,c.id)}}),i2(a,n?{get:function(u){var c=l(this);if(Ot(u)){var d=c2(u);return d===!0?d2(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},f2=$r.enforce,Y_e=!pe.ActiveXObject&&"ActiveXObject"in pe,jK=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},X_e=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=pe[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=Ze(s[v]);Co(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!Ot(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!Ot(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!Ot(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(Zw(e,!At(l)||!(o||s.forEach&&!Nt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),i_.enable();else if(Zw(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=Nt(function(){f.has(1)}),p=IK(function(v){new l(v)}),y=!o&&Nt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){l_(v,s);var m=function(w,S,C){var x,k;return qd&&At(x=S.constructor)&&x!==C&&Ot(k=x.prototype)&&k!==C.prototype&&qd(w,k),w}(new l,v,u);return b!=null&&u2(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Ta({global:!0,forced:u!=l},c),a2(u,e),o||n.setStrong(u,e,r),u}("WeakMap",jK,MK);if(GG&&Y_e){hp=MK.getConstructor(jK,"WeakMap",!0),i_.enable();var gp=X_e.prototype,zK=Ze(gp.delete),h2=Ze(gp.has),HK=Ze(gp.get),UK=Ze(gp.set);i2(gp,{delete:function(e){if(Ot(e)&&!Iu(e)){var t=f2(this);return t.frozen||(t.frozen=new hp),zK(this,e)||t.frozen.delete(e)}return zK(this,e)},has:function(e){if(Ot(e)&&!Iu(e)){var t=f2(this);return t.frozen||(t.frozen=new hp),h2(this,e)||t.frozen.has(e)}return h2(this,e)},get:function(e){if(Ot(e)&&!Iu(e)){var t=f2(this);return t.frozen||(t.frozen=new hp),h2(this,e)?HK(this,e):t.frozen.get(e)}return HK(this,e)},set:function(e,t){if(Ot(e)&&!Iu(e)){var n=f2(this);n.frozen||(n.frozen=new hp),h2(this,e)?UK(this,e,t):n.frozen.set(e,t)}else UK(this,e,t);return this}})}var g2={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},d_=tp("span").classList,WK=d_&&d_.constructor&&d_.constructor.prototype,GK=WK===Object.prototype?void 0:WK,f_=fn("iterator"),KK=fn("toStringTag"),h_=dp.values,qK=function(e,t){if(e){if(e[f_]!==h_)try{_a(e,f_,h_)}catch{e[f_]=h_}if(e[KK]||_a(e,KK,t),g2[t]){for(var n in dp)if(e[n]!==dp[n])try{_a(e,n,dp[n])}catch{e[n]=dp[n]}}}};for(var g_ in g2)qK(pe[g_]&&pe[g_].prototype,g_);qK(GK,"DOMTokenList");var YK=function(e,t){var n=[][e];return!!n&&Nt(function(){n.call(null,t||function(){throw 1},1)})},J_e=u_.forEach,m_=YK("forEach")?[].forEach:function(e){return J_e(this,e,arguments.length>1?arguments[1]:void 0)},XK=function(e){if(e&&e.forEach!==m_)try{_a(e,"forEach",m_)}catch{e.forEach=m_}};for(var p_ in g2)g2[p_]&&XK(pe[p_]&&pe[p_].prototype);XK(GK);var mp,Yd,JK,v_,m2=pe.Promise,ZK=fn("species"),QK=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hd),jl=Go(pe.process)=="process",y_=pe.setImmediate,$K=pe.clearImmediate,Z_e=pe.process,b_=pe.Dispatch,Q_e=pe.Function,eq=pe.MessageChannel,$_e=pe.String,w_=0,pp={};try{mp=pe.location}catch{}var S_=function(e){if(Cn(pp,e)){var t=pp[e];delete pp[e],t()}},C_=function(e){return function(){S_(e)}},tq=function(e){S_(e.data)},nq=function(e){pe.postMessage($_e(e),mp.protocol+"//"+mp.host)};y_&&$K||(y_=function(e){var t=nK(arguments,1);return pp[++w_]=function(){fK(At(e)?e:Q_e(e),void 0,t)},Yd(w_),w_},$K=function(e){delete pp[e]},jl?Yd=function(e){Z_e.nextTick(C_(e))}:b_&&b_.now?Yd=function(e){b_.now(C_(e))}:eq&&!QK?(v_=(JK=new eq).port2,JK.port1.onmessage=tq,Yd=fp(v_.postMessage,v_)):pe.addEventListener&&At(pe.postMessage)&&!pe.importScripts&&mp&&mp.protocol!=="file:"&&!Nt(nq)?(Yd=nq,pe.addEventListener("message",tq,!1)):Yd="onreadystatechange"in tp("script")?function(e){j3.appendChild(tp("script")).onreadystatechange=function(){j3.removeChild(this),S_(e)}}:function(e){setTimeout(C_(e),0)});var vp,Fu,yp,Xd,k_,x_,E_,rq,oq={set:y_},e5e=/ipad|iphone|ipod/i.test(Hd)&&pe.Pebble!==void 0,t5e=/web0s(?!.*chrome)/i.test(Hd),n5e=B3.f,D_=oq.set,aq=pe.MutationObserver||pe.WebKitMutationObserver,iq=pe.document,lq=pe.process,p2=pe.Promise,sq=n5e(pe,"queueMicrotask"),uq=sq&&sq.value;uq||(vp=function(){var e,t;for(jl&&(e=lq.domain)&&e.exit();Fu;){t=Fu.fn,Fu=Fu.next;try{t()}catch(n){throw Fu?Xd():yp=void 0,n}}yp=void 0,e&&e.enter()},QK||jl||t5e||!aq||!iq?!e5e&&p2&&p2.resolve?((E_=p2.resolve(void 0)).constructor=p2,rq=fp(E_.then,E_),Xd=function(){rq(vp)}):jl?Xd=function(){lq.nextTick(vp)}:(D_=fp(D_,pe),Xd=function(){D_(vp)}):(k_=!0,x_=iq.createTextNode(""),new aq(vp).observe(x_,{characterData:!0}),Xd=function(){x_.data=k_=!k_}));var A_,cq,dq,fq,hq=uq||function(e){var t={fn:e,next:void 0};yp&&(yp.next=t),Fu||(Fu=t,Xd()),yp=t},r5e=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Rl(t),this.reject=Rl(n)},V_={f:function(e){return new r5e(e)}},B_=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},o5e=typeof window=="object",gq=oq.set,a5e=fn("species"),pi="Promise",mq=$r.getterFor(pi),i5e=$r.set,l5e=$r.getterFor(pi),Ru=m2&&m2.prototype,Pa=m2,bp=Ru,pq=pe.TypeError,__=pe.document,T_=pe.process,Jd=V_.f,s5e=Jd,u5e=!!(__&&__.createEvent&&pe.dispatchEvent),vq=At(pe.PromiseRejectionEvent),yq=!1,wp=Zw(pi,function(){var e=qw(Pa),t=e!==String(Pa);if(!t&&Qm===66)return!0;if(Qm>=51&&/native code/.test(e))return!1;var n=new Pa(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[a5e]=r,!(yq=n.then(function(){})instanceof r)||!t&&o5e&&!vq}),c5e=wp||!IK(function(e){Pa.all(e).catch(function(){})}),bq=function(e){var t;return!(!Ot(e)||!At(t=e.then))&&t},P_=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hq(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var l,s,u,c=n[a++],d=o?c.ok:c.fail,f=c.resolve,g=c.reject,h=c.domain;try{d?(o||(e.rejection===2&&f5e(e),e.rejection=1),d===!0?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),u=!0)),l===c.promise?g(pq("Promise-chain cycle")):(s=bq(l))?yt(s,l,f,g):f(l)):g(r)}catch(p){h&&!u&&h.exit(),g(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&d5e(e)})}},wq=function(e,t,n){var r,o;u5e?((r=__.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),pe.dispatchEvent(r)):r={promise:t,reason:n},!vq&&(o=pe["on"+e])?o(r):e==="unhandledrejection"&&function(a,l){var s=pe.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,l))}("Unhandled promise rejection",n)},d5e=function(e){yt(gq,pe,function(){var t,n=e.facade,r=e.value;if(Sq(e)&&(t=B_(function(){jl?T_.emit("unhandledRejection",r,n):wq("unhandledrejection",n,r)}),e.rejection=jl||Sq(e)?2:1,t.error))throw t.value})},Sq=function(e){return e.rejection!==1&&!e.parent},f5e=function(e){yt(gq,pe,function(){var t=e.facade;jl?T_.emit("rejectionHandled",t):wq("rejectionhandled",t,e.value)})},Zd=function(e,t,n){return function(r){e(t,r,n)}},Qd=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,P_(e,!0))},N_=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw pq("Promise can't be resolved itself");var r=bq(t);r?hq(function(){var o={done:!1};try{yt(r,t,Zd(N_,o,e),Zd(Qd,o,e))}catch(a){Qd(o,a,e)}}):(e.value=t,e.state=1,P_(e,!1))}catch(o){Qd({done:!1},o,e)}}};if(wp&&(bp=(Pa=function(e){l_(this,bp),Rl(e),yt(A_,this);var t=mq(this);try{e(Zd(N_,t),Zd(Qd,t))}catch(n){Qd(t,n)}}).prototype,(A_=function(e){i5e(this,{type:pi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=i2(bp,{then:function(e,t){var n=l5e(this),r=n.reactions,o=Jd(hK(this,Pa));return o.ok=!At(e)||e,o.fail=At(t)&&t,o.domain=jl?T_.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&P_(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),cq=function(){var e=new A_,t=mq(e);this.promise=e,this.resolve=Zd(N_,t),this.reject=Zd(Qd,t)},V_.f=Jd=function(e){return e===Pa||e===dq?new cq(e):s5e(e)},At(m2)&&Ru!==Object.prototype)){fq=Ru.then,yq||(Co(Ru,"then",function(e,t){var n=this;return new Pa(function(r,o){yt(fq,n,r,o)}).then(e,t)},{unsafe:!0}),Co(Ru,"catch",bp.catch,{unsafe:!0}));try{delete Ru.constructor}catch{}qd&&qd(Ru,bp)}Ta({global:!0,wrap:!0,forced:wp},{Promise:Pa}),a2(Pa,pi,!1),function(e){var t=Tu("Promise"),n=mi.f;Ba&&t&&!t[ZK]&&n(t,ZK,{configurable:!0,get:function(){return this}})}(),dq=Tu(pi),Ta({target:pi,stat:!0,forced:wp},{reject:function(e){var t=Jd(this);return yt(t.reject,void 0,e),t.promise}}),Ta({target:pi,stat:!0,forced:wp},{resolve:function(e){return function(t,n){if(Ln(t),Ot(n)&&n.constructor===t)return n;var r=V_.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Ta({target:pi,stat:!0,forced:c5e},{all:function(e){var t=this,n=Jd(t),r=n.resolve,o=n.reject,a=B_(function(){var l=Rl(t.resolve),s=[],u=0,c=1;u2(e,function(d){var f=u++,g=!1;c++,yt(l,t,d).then(function(h){g||(g=!0,s[f]=h,--c||r(s))},o)}),--c||r(s)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=Jd(t),r=n.reject,o=B_(function(){var a=Rl(t.resolve);u2(e,function(l){yt(a,t,l).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var h5e=rp.PROPER,O_=RegExp.prototype,Cq=O_.toString,g5e=Ze(rK),m5e=Nt(function(){return Cq.call({source:"a",flags:"b"})!="/a/b"}),p5e=h5e&&Cq.name!="toString";(m5e||p5e)&&Co(RegExp.prototype,"toString",function(){var e=Ln(this),t=Ml(e.source),n=e.flags;return"/"+t+"/"+Ml(n===void 0&&Zm(O_,e)&&!("flags"in O_)?g5e(e):n)},{unsafe:!0});var v5e=rp.EXISTS,y5e=mi.f,kq=Function.prototype,b5e=Ze(kq.toString),xq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,w5e=Ze(xq.exec);Ba&&!v5e&&y5e(kq,"name",{configurable:!0,get:function(){try{return w5e(xq,b5e(this))[1]}catch{return""}}});var Eq=new WeakMap;function Dq(e){return e.getMenuConfig("uploadImage")}function S5e(e,t){return Z3(this,void 0,void 0,function(){return Q3(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var a=o.result;if(a){var l=a.toString(),s=l.indexOf("data:image")===0?"":l;iu(e,l,t.name,s),r("ok")}}})]})})}function C5e(e,t){return Z3(this,void 0,void 0,function(){var n,r,o,a;return Q3(this,function(l){switch(l.label){case 0:return n=function(s){var u=Eq.get(s);if(u!=null)return u;var c=Dq(s),d=c.onSuccess,f=c.onProgress,g=c.onFailed,h=c.customInsert,p=c.onError;return u=BR(r2(r2({},c),{onProgress:function(y){s.showProgressBar(y),f&&f(y)},onSuccess:function(y,v){if(h)return h(v,function(N,V,D){return iu(s,N,V,D)}),void d(y,v);var b=v.errno,m=b===void 0?1:b,w=v.data,S=w===void 0?{}:w;if(m===0){if(Array.isArray(S))S.forEach(function(N){var V=N.url,D=V===void 0?"":V,P=N.alt,O=P===void 0?"":P,F=N.href;iu(s,D,O,F===void 0?"":F)});else{var C=S.url,x=C===void 0?"":C,k=S.alt,E=k===void 0?"":k,A=S.href;iu(s,x,E,A===void 0?"":A)}d(y,v)}else g(y,v)},onError:function(y,v,b){p(y,v,b)}})),Eq.set(s,u),u}(e),r=t.name,o=t.type,a=t.size,n.addFile({name:r,type:o,size:a,data:t}),[4,n.upload()];case 1:return l.sent(),[2]}})})}function Aq(e,t){var n,r;return Z3(this,void 0,void 0,function(){var o,a,l,s,u,c,d,f,g;return Q3(this,function(h){switch(h.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),a=Dq(e),l=a.customUpload,s=a.base64LimitSize,h.label=1;case 1:h.trys.push([1,11,12,17]),u=g_e(o),h.label=2;case 2:return[4,u.next()];case 3:return(c=h.sent()).done?[3,10]:(d=c.value,f=d.size,s&&f<=s?[4,S5e(e,d)]:[3,5]);case 4:return h.sent(),[3,9];case 5:return l?[4,l(d,function(p,y,v){return iu(e,p,y,v)})]:[3,7];case 6:return h.sent(),[3,9];case 7:return[4,C5e(e,d)];case 8:h.sent(),h.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return g=h.sent(),n={error:g},[3,17];case 12:return h.trys.push([12,,15,16]),c&&!c.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:h.sent(),h.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 k5e=Ze([].join),x5e=b3!=Object,E5e=YK("join",",");Ta({target:"Array",proto:!0,forced:x5e||!E5e},{join:function(e){return k5e(Fl(this),e===void 0?",":e)}}),ao&&(M.fn.append=ao),da&&(M.fn.on=da),Bc&&(M.fn.remove=Bc),ca&&(M.fn.val=ca),hI&&(M.fn.click=hI),Ec&&(M.fn.hide=Ec);var D5e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return eb(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,a=o===void 0?[]:o,l=r.customBrowseAndUpload;if(l)l(function(d,f,g){return iu(t,d,f,g)});else{var s="";a.length>0&&(s='accept="'+a.join(", ")+'"');var u=M("body"),c=M('<input type="file" '+s+" multiple/>");c.hide(),u.append(c),c.click(),c.on("change",function(){var d=c[0].files;Aq(t,d)})}},e}(),A5e={menus:[{key:"uploadImage",factory:function(){return new D5e},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(eb(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(a){return function(l,s){var u=typeof Symbol=="function"&&l[Symbol.iterator];if(!u)return l;var c,d,f=u.call(l),g=[];try{for(;(s===void 0||s-- >0)&&!(c=f.next()).done;)g.push(c.value)}catch(h){d={error:h}}finally{try{c&&!c.done&&(u=f.return)&&u.call(f)}finally{if(d)throw d.error}}return g}(a.type.split("/"),1)[0]==="image"})?Aq(e,o):t(r)}},n}};Vr("en",{highLightModule:{selectLang:"Language"}}),Vr("zh-CN",{highLightModule:{selectLang:"选择语言"}});var v2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I_(e){var t={exports:{}};return e(t,t.exports),t.exports}var zl,y2,b2=function(e){return e&&e.Math==Math&&e},$e=b2(typeof globalThis=="object"&&globalThis)||b2(typeof window=="object"&&window)||b2(typeof self=="object"&&self)||b2(typeof v2=="object"&&v2)||function(){return this}()||Function("return this")(),V5e=Object.defineProperty,F_=function(e,t){try{V5e($e,e,{value:t,configurable:!0,writable:!0})}catch{$e[e]=t}return t},Hl=$e["__core-js_shared__"]||F_("__core-js_shared__",{}),R_=I_(function(e){(e.exports=function(t,n){return Hl[t]||(Hl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Vq=Function.prototype,L_=Vq.bind,M_=Vq.call,B5e=L_&&L_.bind(M_),pt=L_?function(e){return e&&B5e(M_,e)}:function(e){return e&&function(){return M_.apply(e,arguments)}},_5e=$e.TypeError,$d=function(e){if(e==null)throw _5e("Can't call method on "+e);return e},T5e=$e.Object,j_=function(e){return T5e($d(e))},P5e=pt({}.hasOwnProperty),ko=Object.hasOwn||function(e,t){return P5e(j_(e),t)},N5e=0,O5e=Math.random(),I5e=pt(1 .toString),Bq=function(e){return"Symbol("+(e===void 0?"":e)+")_"+I5e(++N5e+O5e,36)},yr=function(e){return typeof e=="function"},F5e=function(e){return yr(e)?e:void 0},Sp=function(e,t){return arguments.length<2?F5e($e[e]):$e[e]&&$e[e][t]},z_=Sp("navigator","userAgent")||"",_q=$e.process,Tq=$e.Deno,Pq=_q&&_q.versions||Tq&&Tq.version,Nq=Pq&&Pq.v8;Nq&&(y2=(zl=Nq.split("."))[0]>0&&zl[0]<4?1:+(zl[0]+zl[1])),!y2&&z_&&(!(zl=z_.match(/Edge\/(\d+)/))||zl[1]>=74)&&(zl=z_.match(/Chrome\/(\d+)/))&&(y2=+zl[1]);var Oq=y2,Mn=function(e){try{return!!e()}catch{return!0}},H_=!!Object.getOwnPropertySymbols&&!Mn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Oq&&Oq<41}),U_=H_&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Cp=R_("wks"),Lu=$e.Symbol,Iq=Lu&&Lu.for,R5e=U_?Lu:Lu&&Lu.withoutSetter||Bq,Ul=function(e){if(!ko(Cp,e)||!H_&&typeof Cp[e]!="string"){var t="Symbol."+e;H_&&ko(Lu,e)?Cp[e]=Lu[e]:Cp[e]=U_&&Iq?Iq(t):R5e(t)}return Cp[e]},Fq={};Fq[Ul("toStringTag")]="z";var W_=String(Fq)==="[object z]",Na=!Mn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),vi=function(e){return typeof e=="object"?e!==null:yr(e)},G_=$e.document,L5e=vi(G_)&&vi(G_.createElement),K_=function(e){return L5e?G_.createElement(e):{}},Rq=!Na&&!Mn(function(){return Object.defineProperty(K_("div"),"a",{get:function(){return 7}}).a!=7}),M5e=$e.String,j5e=$e.TypeError,Ko=function(e){if(vi(e))return e;throw j5e(M5e(e)+" is not an object")},kp=Function.prototype.call,jn=kp.bind?kp.bind(kp):function(){return kp.apply(kp,arguments)},Lq=pt({}.isPrototypeOf),z5e=$e.Object,q_=U_?function(e){return typeof e=="symbol"}:function(e){var t=Sp("Symbol");return yr(t)&&Lq(t.prototype,z5e(e))},H5e=$e.String,Mq=function(e){try{return H5e(e)}catch{return"Object"}},U5e=$e.TypeError,jq=function(e){if(yr(e))return e;throw U5e(Mq(e)+" is not a function")},zq=function(e,t){var n=e[t];return n==null?void 0:jq(n)},W5e=$e.TypeError,G5e=$e.TypeError,K5e=Ul("toPrimitive"),Y_=function(e){var t=function(n,r){if(!vi(n)||q_(n))return n;var o,a=zq(n,K5e);if(a){if(o=jn(a,n,r),!vi(o)||q_(o))return o;throw G5e("Can't convert object to primitive value")}return function(l,s){var u,c;if(yr(u=l.toString)&&!vi(c=jn(u,l))||yr(u=l.valueOf)&&!vi(c=jn(u,l)))return c;throw W5e("Can't convert object to primitive value")}(n)}(e,"string");return q_(t)?t:t+""},q5e=$e.TypeError,Hq=Object.defineProperty,w2={f:Na?Hq:function(e,t,n){if(Ko(e),t=Y_(t),Ko(n),Rq)try{return Hq(e,t,n)}catch{}if("get"in n||"set"in n)throw q5e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},X_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ef=Na?function(e,t,n){return w2.f(e,t,X_(1,n))}:function(e,t,n){return e[t]=n,e},Y5e=pt(Function.toString);yr(Hl.inspectSource)||(Hl.inspectSource=function(e){return Y5e(e)});var J_,S2,Z_,Q_=Hl.inspectSource,Uq=$e.WeakMap,X5e=yr(Uq)&&/native code/.test(Q_(Uq)),Wq=R_("keys"),Gq=function(e){return Wq[e]||(Wq[e]=Bq(e))},$_={},Kq=$e.TypeError,J5e=$e.WeakMap;if(X5e||Hl.state){var Mu=Hl.state||(Hl.state=new J5e),Z5e=pt(Mu.get),qq=pt(Mu.has),Q5e=pt(Mu.set);J_=function(e,t){if(qq(Mu,e))throw new Kq("Object already initialized");return t.facade=e,Q5e(Mu,e,t),t},S2=function(e){return Z5e(Mu,e)||{}},Z_=function(e){return qq(Mu,e)}}else{var tf=Gq("state");$_[tf]=!0,J_=function(e,t){if(ko(e,tf))throw new Kq("Object already initialized");return t.facade=e,ef(e,tf,t),t},S2=function(e){return ko(e,tf)?e[tf]:{}},Z_=function(e){return ko(e,tf)}}var e5={get:S2,enforce:function(e){return Z_(e)?S2(e):J_(e,{})}},Yq=Function.prototype,$5e=Na&&Object.getOwnPropertyDescriptor,Xq=ko(Yq,"name"),Jq={PROPER:Xq&&(function(){}).name==="something",CONFIGURABLE:Xq&&(!Na||Na&&$5e(Yq,"name").configurable)},xp=I_(function(e){var t=Jq.CONFIGURABLE,n=e5.get,r=e5.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;yr(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ko(s,"name")||t&&s.name!==h)&&ef(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==$e?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:ef(a,l,s)):f?a[l]=s:F_(l,s)})(Function.prototype,"toString",function(){return yr(this)&&n(this).source||Q_(this)})}),e6e=pt({}.toString),t6e=pt("".slice),Wl=function(e){return t6e(e6e(e),8,-1)},n6e=Ul("toStringTag"),r6e=$e.Object,o6e=Wl(function(){return arguments}())=="Arguments",t5=W_?Wl:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=r6e(e),n6e))=="string"?n:o6e?Wl(t):(r=Wl(t))=="Object"&&yr(t.callee)?"Arguments":r},a6e=W_?{}.toString:function(){return"[object "+t5(this)+"]"};W_||xp(Object.prototype,"toString",a6e,{unsafe:!0});var Zq,Qq={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},n5=K_("span").classList,$q=n5&&n5.constructor&&n5.constructor.prototype,i6e=$q===Object.prototype?void 0:$q,eY=pt(pt.bind),r5=$e.Object,l6e=pt("".split),o5=Mn(function(){return!r5("z").propertyIsEnumerable(0)})?function(e){return Wl(e)=="String"?l6e(e,""):r5(e)}:r5,s6e=Math.ceil,u6e=Math.floor,a5=function(e){var t=+e;return t!=t||t===0?0:(t>0?u6e:s6e)(t)},c6e=Math.min,tY=function(e){return e>0?c6e(a5(e),9007199254740991):0},i5=function(e){return tY(e.length)},nY=Array.isArray||function(e){return Wl(e)=="Array"},rY=function(){},d6e=[],oY=Sp("Reflect","construct"),l5=/^\s*(?:class|function)\b/,f6e=pt(l5.exec),h6e=!l5.exec(rY),Ep=function(e){if(!yr(e))return!1;try{return oY(rY,d6e,e),!0}catch{return!1}},aY=!oY||Mn(function(){var e;return Ep(Ep.call)||!Ep(Object)||!Ep(function(){e=!0})||e})?function(e){if(!yr(e))return!1;switch(t5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h6e||!!f6e(l5,Q_(e))}:Ep,g6e=Ul("species"),iY=$e.Array,m6e=function(e,t){return new(function(n){var r;return nY(n)&&(r=n.constructor,(aY(r)&&(r===iY||nY(r.prototype))||vi(r)&&(r=r[g6e])===null)&&(r=void 0)),r===void 0?iY:r}(e))(t===0?0:t)},lY=pt([].push),Gl=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=j_(u),y=o5(p),v=function(C,x){return jq(C),x===void 0?C:eY?eY(C,x):function(){return C.apply(x,arguments)}}(c,d),b=i5(y),m=0,w=f||m6e,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:lY(S,g)}else switch(e){case 4:return!1;case 7:lY(S,g)}return a?-1:r||o?o:S}},p6e=[Gl(0),Gl(1),Gl(2),Gl(3),Gl(4),Gl(5),Gl(6),Gl(7)][0],s5=(Zq=[].forEach)&&Mn(function(){Zq.call(null,function(){throw 1},1)})?[].forEach:function(e){return p6e(this,e,arguments.length>1?arguments[1]:void 0)},sY=function(e){if(e&&e.forEach!==s5)try{ef(e,"forEach",s5)}catch{e.forEach=s5}};for(var u5 in Qq)Qq[u5]&&sY($e[u5]&&$e[u5].prototype);sY(i6e);var uY={}.propertyIsEnumerable,cY=Object.getOwnPropertyDescriptor,dY={f:cY&&!uY.call({1:2},1)?function(e){var t=cY(this,e);return!!t&&t.enumerable}:uY},C2=function(e){return o5($d(e))},fY=Object.getOwnPropertyDescriptor,hY={f:Na?fY:function(e,t){if(e=C2(e),t=Y_(t),Rq)try{return fY(e,t)}catch{}if(ko(e,t))return X_(!jn(dY.f,e,t),e[t])}},v6e=Math.max,y6e=Math.min,c5=function(e,t){var n=a5(e);return n<0?v6e(n+t,0):y6e(n,t)},b6e=function(e){return function(t,n,r){var o,a=C2(t),l=i5(a),s=c5(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},w6e=b6e(!1),gY=pt([].push),mY=function(e,t){var n,r=C2(e),o=0,a=[];for(n in r)!ko($_,n)&&ko(r,n)&&gY(a,n);for(;t.length>o;)ko(r,n=t[o++])&&(~w6e(a,n)||gY(a,n));return a},k2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],S6e=k2.concat("length","prototype"),C6e={f:Object.getOwnPropertyNames||function(e){return mY(e,S6e)}},pY={f:Object.getOwnPropertySymbols},k6e=pt([].concat),x6e=Sp("Reflect","ownKeys")||function(e){var t=C6e.f(Ko(e)),n=pY.f;return n?k6e(t,n(e)):t},E6e=function(e,t){for(var n=x6e(t),r=w2.f,o=hY.f,a=0;a<n.length;a++){var l=n[a];ko(e,l)||r(e,l,o(t,l))}},D6e=/#|\.prototype\./,Dp=function(e,t){var n=V6e[A6e(e)];return n==_6e||n!=B6e&&(yr(t)?Mn(t):!!t)},A6e=Dp.normalize=function(e){return String(e).replace(D6e,".").toLowerCase()},V6e=Dp.data={},B6e=Dp.NATIVE="N",_6e=Dp.POLYFILL="P",T6e=Dp,P6e=hY.f,x2=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?$e:c?$e[s]||F_(s,{}):($e[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=P6e(n,r))&&l.value:n[r],!T6e(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;E6e(a,o)}(e.sham||o&&o.sham)&&ef(a,"sham",!0),xp(n,r,a,e)}},E2=Object.keys||function(e){return mY(e,k2)},nf=Object.assign,vY=Object.defineProperty,N6e=pt([].concat),yY=!nf||Mn(function(){if(Na&&nf({b:1},nf(vY({},"a",{enumerable:!0,get:function(){vY(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),nf({},e)[n]!=7||E2(nf({},t)).join("")!=r})?function(e,t){for(var n=j_(e),r=arguments.length,o=1,a=pY.f,l=dY.f;r>o;)for(var s,u=o5(arguments[o++]),c=a?N6e(E2(u),a(u)):E2(u),d=c.length,f=0;d>f;)s=c[f++],Na&&!jn(l,u,s)||(n[s]=u[s]);return n}:nf;x2({target:"Object",stat:!0,forced:Object.assign!==yY},{assign:yY});var bY=I_(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,a={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(b){return b instanceof s?new s(b.type,v(b.content),b.alias):Array.isArray(b)?b.map(v):b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(b,m){var w,S;switch(m=m||{},l.util.type(b)){case"Object":if(S=l.util.objId(b),m[S])return m[S];for(var C in w={},m[S]=w,b)b.hasOwnProperty(C)&&(w[C]=v(b[C],m));return w;case"Array":return S=l.util.objId(b),m[S]?m[S]:(w=[],m[S]=w,b.forEach(function(x,k){w[k]=v(x,m)}),w);default:return b}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var b=document.getElementsByTagName("script");for(var m in b)if(b[m].src==v)return b[m]}return null}},isActive:function(v,b,m){for(var w="no-"+b;v;){var S=v.classList;if(S.contains(b))return!0;if(S.contains(w))return!1;v=v.parentElement}return!!m}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,b){var m=l.util.clone(l.languages[v]);for(var w in b)m[w]=b[w];return m},insertBefore:function(v,b,m,w){var S=(w=w||l.languages)[v],C={};for(var x in S)if(S.hasOwnProperty(x)){if(x==b)for(var k in m)m.hasOwnProperty(k)&&(C[k]=m[k]);m.hasOwnProperty(x)||(C[x]=S[x])}var E=w[v];return w[v]=C,l.languages.DFS(l.languages,function(A,N){N===E&&A!=v&&(this[A]=C)}),C},DFS:function v(b,m,w,S){S=S||{};var C=l.util.objId;for(var x in b)if(b.hasOwnProperty(x)){m.call(b,x,b[x],w||x);var k=b[x],E=l.util.type(k);E!=="Object"||S[C(k)]?E!=="Array"||S[C(k)]||(S[C(k)]=!0,v(k,m,x,S)):(S[C(k)]=!0,v(k,m,null,S))}}},plugins:{},highlightAll:function(v,b){l.highlightAllUnder(document,v,b)},highlightAllUnder:function(v,b,m){var w={callback:m,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var S,C=0;S=w.elements[C++];)l.highlightElement(S,b===!0,w.callback)},highlightElement:function(v,b,m){var w=l.util.getLanguage(v),S=l.languages[w];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+w;var C=v.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&(C.className=C.className.replace(r,"").replace(/\s+/g," ")+" language-"+w);var x={element:v,language:w,grammar:S,code:v.textContent};function k(A){x.highlightedCode=A,l.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,l.hooks.run("after-highlight",x),l.hooks.run("complete",x),m&&m.call(x.element)}if(l.hooks.run("before-sanity-check",x),(C=x.element.parentElement)&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!x.code)return l.hooks.run("complete",x),void(m&&m.call(x.element));if(l.hooks.run("before-highlight",x),x.grammar)if(b&&n.Worker){var E=new Worker(l.filename);E.onmessage=function(A){k(A.data)},E.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else k(l.highlight(x.code,x.grammar,x.language));else k(l.util.encode(x.code))},highlight:function(v,b,m){var w={code:v,grammar:b,language:m};return l.hooks.run("before-tokenize",w),w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),s.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(v,b){var m=b.rest;if(m){for(var w in m)b[w]=m[w];delete b.rest}var S=new d;return f(S,S.head,v),c(v,S,b,S.head,0),function(C){for(var x=[],k=C.head.next;k!==C.tail;)x.push(k.value),k=k.next;return x}(S)},hooks:{all:{},add:function(v,b){var m=l.hooks.all;m[v]=m[v]||[],m[v].push(b)},run:function(v,b){var m=l.hooks.all[v];if(m&&m.length)for(var w,S=0;w=m[S++];)w(b)}},Token:s};function s(v,b,m,w){this.type=v,this.content=b,this.alias=m,this.length=0|(w||"").length}function u(v,b,m,w){v.lastIndex=b;var S=v.exec(m);if(S&&w&&S[1]){var C=S[1].length;S.index+=C,S[0]=S[0].slice(C)}return S}function c(v,b,m,w,S,C){for(var x in m)if(m.hasOwnProperty(x)&&m[x]){var k=m[x];k=Array.isArray(k)?k:[k];for(var E=0;E<k.length;++E){if(C&&C.cause==x+","+E)return;var A=k[E],N=A.inside,V=!!A.lookbehind,D=!!A.greedy,P=A.alias;if(D&&!A.pattern.global){var O=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,O+"g")}for(var F=A.pattern||A,H=w.next,J=S;H!==b.tail&&!(C&&J>=C.reach);J+=H.value.length,H=H.next){var j=H.value;if(b.length>v.length)return;if(!(j instanceof s)){var z,L=1;if(D){if(!(z=u(F,J,v,V)))break;var _=z.index,T=z.index+z[0].length,I=J;for(I+=H.value.length;_>=I;)I+=(H=H.next).value.length;if(J=I-=H.value.length,H.value instanceof s)continue;for(var U=H;U!==b.tail&&(I<T||typeof U.value=="string");U=U.next)L++,I+=U.value.length;L--,j=v.slice(J,I),z.index-=J}else if(!(z=u(F,0,j,V)))continue;_=z.index;var $=z[0],W=j.slice(0,_),Z=j.slice(_+$.length),ne=J+j.length;C&&ne>C.reach&&(C.reach=ne);var me=H.prev;if(W&&(me=f(b,me,W),J+=W.length),g(b,me,L),H=f(b,me,new s(x,N?l.tokenize($,N):$,P,$)),Z&&f(b,H,Z),L>1){var de={cause:x+","+E,reach:ne};c(v,b,m,H.prev,J,de),C&&de.reach>C.reach&&(C.reach=de.reach)}}}}}}function d(){var v={value:null,prev:null,next:null},b={value:null,prev:v,next:null};v.next=b,this.head=v,this.tail=b,this.length=0}function f(v,b,m){var w=b.next,S={value:m,prev:b,next:w};return b.next=S,w.prev=S,v.length++,S}function g(v,b,m){for(var w=b.next,S=0;S<m&&w!==v.tail;S++)w=w.next;b.next=w,w.prev=b,v.length-=S}if(n.Prism=l,s.stringify=function v(b,m){if(typeof b=="string")return b;if(Array.isArray(b)){var w="";return b.forEach(function(E){w+=v(E,m)}),w}var S={type:b.type,content:v(b.content,m),tag:"span",classes:["token",b.type],attributes:{},language:m},C=b.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(S.classes,C):S.classes.push(C)),l.hooks.run("wrap",S);var x="";for(var k in S.attributes)x+=" "+k+'="'+(S.attributes[k]||"").replace(/"/g,"&quot;")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+x+">"+S.content+"</"+S.tag+">"},!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(v){var b=JSON.parse(v.data),m=b.language,w=b.code,S=b.immediateClose;n.postMessage(l.highlight(w,l.languages[m],m)),S&&n.close()},!1)),l;var h=l.util.currentScript();function p(){l.manual||l.highlightAll()}if(h&&(l.filename=h.src,h.hasAttribute("data-manual")&&(l.manual=!0)),!l.manual){var y=document.readyState;y==="loading"||y==="interactive"&&h&&h.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return l}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
178
+ ***************************************************************************** */var r2=function(){return r2=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},r2.apply(this,arguments)};function Z3(e,t,n,r){return new(n||(n=Promise))(function(o,a){function l(c){try{u(r.next(c))}catch(d){a(d)}}function s(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){var d;c.done?o(c.value):(d=c.value,d instanceof n?d:new n(function(f){f(d)})).then(l,s)}u((r=r.apply(e,[])).next())})}function Q3(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,r=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(f){d=[6,f],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([u,c])}}}function m_e(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(o){var a=typeof Symbol=="function"&&Symbol.iterator,l=a&&o[a],s=0;if(l)return l.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"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(o){t[o]=e[o]&&function(a){return new Promise(function(l,s){(function(u,c,d,f){Promise.resolve(f).then(function(g){u({value:g,done:d})},c)})(l,s,(a=e[o](a)).done,a.value)})}}}var $3=fn("unscopables"),e_=Array.prototype;e_[$3]==null&&mi.f(e_,$3,{configurable:!0,value:U3(null)});var Ou,yK,bK,t_=function(e){e_[$3][e]=!0},Kd={},p_e=!Nt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),wK=_3("IE_PROTO"),n_=pe.Object,v_e=n_.prototype,o2=p_e?n_.getPrototypeOf:function(e){var t=E3(e);if(Cn(t,wK))return t[wK];var n=t.constructor;return At(n)&&t instanceof n?n.prototype:t instanceof n_?v_e:null},r_=fn("iterator"),SK=!1;[].keys&&("next"in(bK=[].keys())?(yK=o2(o2(bK)))!==Object.prototype&&(Ou=yK):SK=!0);var y_e=Ou==null||Nt(function(){var e={};return Ou[r_].call(e)!==e});y_e&&(Ou={}),At(Ou[r_])||Co(Ou,r_,function(){return this});var o_={IteratorPrototype:Ou,BUGGY_SAFARI_ITERATORS:SK},b_e=mi.f,CK=fn("toStringTag"),a2=function(e,t,n){e&&!Cn(e=n?e:e.prototype,CK)&&b_e(e,CK,{configurable:!0,value:t})},w_e=o_.IteratorPrototype,S_e=function(){return this},C_e=pe.String,k_e=pe.TypeError,qd=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ze(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Ln(r),function(a){if(typeof a=="object"||At(a))return a;throw k_e("Can't set "+C_e(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),x_e=rp.PROPER,E_e=rp.CONFIGURABLE,kK=o_.IteratorPrototype,a_=o_.BUGGY_SAFARI_ITERATORS,cp=fn("iterator"),D_e=function(){return this},xK=function(e,t,n,r,o,a,l){(function(v,b,m,w){var S=b+" Iterator";v.prototype=U3(w_e,{next:Uw(1,m)}),a2(v,S,!1),Kd[S]=S_e})(n,t,r);var s,u,c=function(v){if(v===o&&p)return p;if(!a_&&v in g)return g[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,g=e.prototype,h=g[cp]||g["@@iterator"]||o&&g[o],p=!a_&&h||c(o),y=t=="Array"&&g.entries||h;return y&&(s=o2(y.call(new e)))!==Object.prototype&&s.next&&(o2(s)!==kK&&(qd?qd(s,kK):At(s[cp])||Co(s,cp,D_e)),a2(s,d,!0)),x_e&&o=="values"&&h&&h.name!=="values"&&(E_e?_a(g,"name","values"):(f=!0,p=function(){return yt(h,this)})),o&&(u={values:c("values"),keys:c("keys"),entries:c("entries")},l||Ta({target:t,proto:!0,forced:a_||f},u)),g[cp]!==p&&Co(g,cp,p,{name:o}),Kd[t]=p,u},A_e=$r.set,V_e=$r.getterFor("Array Iterator"),dp=xK(Array,"Array",function(e,t){A_e(this,{type:"Array Iterator",target:Fl(e),index:0,kind:t})},function(){var e=V_e(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Kd.Arguments=Kd.Array,t_("keys"),t_("values"),t_("entries");var B_e=mK.charAt,__e=$r.set,T_e=$r.getterFor("String Iterator");xK(String,"String",function(e){__e(this,{type:"String Iterator",string:Ml(e),index:0})},function(){var e,t=T_e(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=B_e(n,r),t.index+=e.length,{value:e,done:!1})});var i2=function(e,t,n){for(var r in t)Co(e,r,t[r],n);return e},EK=Jw.f,DK=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],P_e={f:function(e){return DK&&Go(e)=="Window"?function(t){try{return EK(t)}catch{return J3(DK)}}(e):EK(Fl(e))}},AK=Nt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),l2=Object.isExtensible,Iu=Nt(function(){l2(1)})||AK?function(e){return!!Ot(e)&&(!AK||Go(e)!="ArrayBuffer")&&(!l2||l2(e))}:l2,N_e=!Nt(function(){return Object.isExtensible(Object.preventExtensions({}))}),i_=m3(function(e){var t=mi.f,n=!1,r=D3("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},l=e.exports={enable:function(){l.enable=function(){},n=!0;var s=Jw.f,u=Ze([].splice),c={};c[r]=1,s(c).length&&(Jw.f=function(d){for(var f=s(d),g=0,h=f.length;g<h;g++)if(f[g]===r){u(f,g,1);break}return f},Ta({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:P_e.f}))},fastKey:function(s,u){if(!Ot(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Cn(s,r)){if(!Iu(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Cn(s,r)){if(!Iu(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return N_e&&n&&Iu(s)&&!Cn(s,r)&&a(s),s}};Yw[r]=!0}),VK=Ze(Ze.bind),fp=function(e,t){return Rl(e),t===void 0?e:VK?VK(e,t):function(){return e.apply(t,arguments)}},O_e=fn("iterator"),I_e=Array.prototype,F_e=fn("iterator"),BK=function(e){if(e!=null)return $m(e,F_e)||$m(e,"@@iterator")||Kd[$w(e)]},R_e=pe.TypeError,_K=function(e,t,n){var r,o;Ln(e);try{if(!(r=$m(e,"return"))){if(t==="throw")throw n;return n}r=yt(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Ln(r),n},L_e=pe.TypeError,s2=function(e,t){this.stopped=e,this.result=t},TK=s2.prototype,u2=function(e,t,n){var r,o,a,l,s,u,c,d,f=n&&n.that,g=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=fp(t,f),v=function(m){return r&&_K(r,"normal",m),new s2(!0,m)},b=function(m){return g?(Ln(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(h)r=e;else{if(!(o=BK(e)))throw L_e(Ww(e)+" is not iterable");if((d=o)!==void 0&&(Kd.Array===d||I_e[O_e]===d)){for(a=0,l=ap(e);l>a;a++)if((s=b(e[a]))&&Zm(TK,s))return s;return new s2(!1)}r=function(m,w){var S=arguments.length<2?BK(m):w;if(Rl(S))return Ln(yt(S,m));throw R_e(Ww(m)+" is not iterable")}(e,o)}for(u=r.next;!(c=yt(u,r)).done;){try{s=b(c.value)}catch(m){_K(r,"throw",m)}if(typeof s=="object"&&s&&Zm(TK,s))return s}return new s2(!1)},M_e=pe.TypeError,l_=function(e,t){if(Zm(t,e))return e;throw M_e("Incorrect invocation")},PK=fn("iterator"),NK=!1;try{var j_e=0,OK={next:function(){return{done:!!j_e++}},return:function(){NK=!0}};OK[PK]=function(){return this},Array.from(OK,function(){throw 2})}catch{}var IK=function(e,t){if(!NK)return!1;var n=!1;try{var r={};r[PK]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},z_e=fn("species"),FK=pe.Array,H_e=function(e,t){return new(function(n){var r;return Qw(n)&&(r=n.constructor,(F3(r)&&(r===FK||Qw(r.prototype))||Ot(r)&&(r=r[z_e])===null)&&(r=void 0)),r===void 0?FK:r}(e))(t===0?0:t)},RK=Ze([].push),s_=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=E3(u),y=b3(p),v=fp(c,d),b=ap(y),m=0,w=f||H_e,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:RK(S,g)}else switch(e){case 4:return!1;case 7:RK(S,g)}return a?-1:r||o?o:S}},u_={forEach:s_(0),find:s_(5),findIndex:s_(6)},c2=i_.getWeakData,U_e=$r.set,W_e=$r.getterFor,G_e=u_.find,K_e=u_.findIndex,q_e=Ze([].splice),Y_e=0,d2=function(e){return e.frozen||(e.frozen=new LK)},LK=function(){this.entries=[]},c_=function(e,t){return G_e(e.entries,function(n){return n[0]===t})};LK.prototype={get:function(e){var t=c_(this,e);if(t)return t[1]},has:function(e){return!!c_(this,e)},set:function(e,t){var n=c_(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=K_e(this.entries,function(n){return n[0]===e});return~t&&q_e(this.entries,t,1),!!~t}};var hp,MK={getConstructor:function(e,t,n,r){var o=e(function(u,c){l_(u,a),U_e(u,{type:t,id:Y_e++,frozen:void 0}),c!=null&&u2(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,l=W_e(t),s=function(u,c,d){var f=l(u),g=c2(Ln(c),!0);return g===!0?d2(f).set(c,d):g[f.id]=d,u};return i2(a,{delete:function(u){var c=l(this);if(!Ot(u))return!1;var d=c2(u);return d===!0?d2(c).delete(u):d&&Cn(d,c.id)&&delete d[c.id]},has:function(u){var c=l(this);if(!Ot(u))return!1;var d=c2(u);return d===!0?d2(c).has(u):d&&Cn(d,c.id)}}),i2(a,n?{get:function(u){var c=l(this);if(Ot(u)){var d=c2(u);return d===!0?d2(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),o}},f2=$r.enforce,X_e=!pe.ActiveXObject&&"ActiveXObject"in pe,jK=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},J_e=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=r?"set":"add",l=pe[e],s=l&&l.prototype,u=l,c={},d=function(v){var b=Ze(s[v]);Co(s,v,v=="add"?function(m){return b(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!Ot(m))&&b(this,m===0?0:m)}:v=="get"?function(m){return o&&!Ot(m)?void 0:b(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!Ot(m))&&b(this,m===0?0:m)}:function(m,w){return b(this,m===0?0:m,w),this})};if(Zw(e,!At(l)||!(o||s.forEach&&!Nt(function(){new l().entries().next()}))))u=n.getConstructor(t,e,r,a),i_.enable();else if(Zw(e,!0)){var f=new u,g=f[a](o?{}:-0,1)!=f,h=Nt(function(){f.has(1)}),p=IK(function(v){new l(v)}),y=!o&&Nt(function(){for(var v=new l,b=5;b--;)v[a](b,b);return!v.has(-0)});p||((u=t(function(v,b){l_(v,s);var m=function(w,S,C){var x,k;return qd&&At(x=S.constructor)&&x!==C&&Ot(k=x.prototype)&&k!==C.prototype&&qd(w,k),w}(new l,v,u);return b!=null&&u2(b,m[a],{that:m,AS_ENTRIES:r}),m})).prototype=s,s.constructor=u),(h||y)&&(d("delete"),d("has"),r&&d("get")),(y||g)&&d(a),o&&s.clear&&delete s.clear}return c[e]=u,Ta({global:!0,forced:u!=l},c),a2(u,e),o||n.setStrong(u,e,r),u}("WeakMap",jK,MK);if(GG&&X_e){hp=MK.getConstructor(jK,"WeakMap",!0),i_.enable();var gp=J_e.prototype,zK=Ze(gp.delete),h2=Ze(gp.has),HK=Ze(gp.get),UK=Ze(gp.set);i2(gp,{delete:function(e){if(Ot(e)&&!Iu(e)){var t=f2(this);return t.frozen||(t.frozen=new hp),zK(this,e)||t.frozen.delete(e)}return zK(this,e)},has:function(e){if(Ot(e)&&!Iu(e)){var t=f2(this);return t.frozen||(t.frozen=new hp),h2(this,e)||t.frozen.has(e)}return h2(this,e)},get:function(e){if(Ot(e)&&!Iu(e)){var t=f2(this);return t.frozen||(t.frozen=new hp),h2(this,e)?HK(this,e):t.frozen.get(e)}return HK(this,e)},set:function(e,t){if(Ot(e)&&!Iu(e)){var n=f2(this);n.frozen||(n.frozen=new hp),h2(this,e)?UK(this,e,t):n.frozen.set(e,t)}else UK(this,e,t);return this}})}var g2={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},d_=tp("span").classList,WK=d_&&d_.constructor&&d_.constructor.prototype,GK=WK===Object.prototype?void 0:WK,f_=fn("iterator"),KK=fn("toStringTag"),h_=dp.values,qK=function(e,t){if(e){if(e[f_]!==h_)try{_a(e,f_,h_)}catch{e[f_]=h_}if(e[KK]||_a(e,KK,t),g2[t]){for(var n in dp)if(e[n]!==dp[n])try{_a(e,n,dp[n])}catch{e[n]=dp[n]}}}};for(var g_ in g2)qK(pe[g_]&&pe[g_].prototype,g_);qK(GK,"DOMTokenList");var YK=function(e,t){var n=[][e];return!!n&&Nt(function(){n.call(null,t||function(){throw 1},1)})},Z_e=u_.forEach,m_=YK("forEach")?[].forEach:function(e){return Z_e(this,e,arguments.length>1?arguments[1]:void 0)},XK=function(e){if(e&&e.forEach!==m_)try{_a(e,"forEach",m_)}catch{e.forEach=m_}};for(var p_ in g2)g2[p_]&&XK(pe[p_]&&pe[p_].prototype);XK(GK);var mp,Yd,JK,v_,m2=pe.Promise,ZK=fn("species"),QK=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hd),jl=Go(pe.process)=="process",y_=pe.setImmediate,$K=pe.clearImmediate,Q_e=pe.process,b_=pe.Dispatch,$_e=pe.Function,eq=pe.MessageChannel,e5e=pe.String,w_=0,pp={};try{mp=pe.location}catch{}var S_=function(e){if(Cn(pp,e)){var t=pp[e];delete pp[e],t()}},C_=function(e){return function(){S_(e)}},tq=function(e){S_(e.data)},nq=function(e){pe.postMessage(e5e(e),mp.protocol+"//"+mp.host)};y_&&$K||(y_=function(e){var t=nK(arguments,1);return pp[++w_]=function(){fK(At(e)?e:$_e(e),void 0,t)},Yd(w_),w_},$K=function(e){delete pp[e]},jl?Yd=function(e){Q_e.nextTick(C_(e))}:b_&&b_.now?Yd=function(e){b_.now(C_(e))}:eq&&!QK?(v_=(JK=new eq).port2,JK.port1.onmessage=tq,Yd=fp(v_.postMessage,v_)):pe.addEventListener&&At(pe.postMessage)&&!pe.importScripts&&mp&&mp.protocol!=="file:"&&!Nt(nq)?(Yd=nq,pe.addEventListener("message",tq,!1)):Yd="onreadystatechange"in tp("script")?function(e){j3.appendChild(tp("script")).onreadystatechange=function(){j3.removeChild(this),S_(e)}}:function(e){setTimeout(C_(e),0)});var vp,Fu,yp,Xd,k_,x_,E_,rq,oq={set:y_},t5e=/ipad|iphone|ipod/i.test(Hd)&&pe.Pebble!==void 0,n5e=/web0s(?!.*chrome)/i.test(Hd),r5e=B3.f,D_=oq.set,aq=pe.MutationObserver||pe.WebKitMutationObserver,iq=pe.document,lq=pe.process,p2=pe.Promise,sq=r5e(pe,"queueMicrotask"),uq=sq&&sq.value;uq||(vp=function(){var e,t;for(jl&&(e=lq.domain)&&e.exit();Fu;){t=Fu.fn,Fu=Fu.next;try{t()}catch(n){throw Fu?Xd():yp=void 0,n}}yp=void 0,e&&e.enter()},QK||jl||n5e||!aq||!iq?!t5e&&p2&&p2.resolve?((E_=p2.resolve(void 0)).constructor=p2,rq=fp(E_.then,E_),Xd=function(){rq(vp)}):jl?Xd=function(){lq.nextTick(vp)}:(D_=fp(D_,pe),Xd=function(){D_(vp)}):(k_=!0,x_=iq.createTextNode(""),new aq(vp).observe(x_,{characterData:!0}),Xd=function(){x_.data=k_=!k_}));var A_,cq,dq,fq,hq=uq||function(e){var t={fn:e,next:void 0};yp&&(yp.next=t),Fu||(Fu=t,Xd()),yp=t},o5e=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Rl(t),this.reject=Rl(n)},V_={f:function(e){return new o5e(e)}},B_=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},a5e=typeof window=="object",gq=oq.set,i5e=fn("species"),pi="Promise",mq=$r.getterFor(pi),l5e=$r.set,s5e=$r.getterFor(pi),Ru=m2&&m2.prototype,Pa=m2,bp=Ru,pq=pe.TypeError,__=pe.document,T_=pe.process,Jd=V_.f,u5e=Jd,c5e=!!(__&&__.createEvent&&pe.dispatchEvent),vq=At(pe.PromiseRejectionEvent),yq=!1,wp=Zw(pi,function(){var e=qw(Pa),t=e!==String(Pa);if(!t&&Qm===66)return!0;if(Qm>=51&&/native code/.test(e))return!1;var n=new Pa(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[i5e]=r,!(yq=n.then(function(){})instanceof r)||!t&&a5e&&!vq}),d5e=wp||!IK(function(e){Pa.all(e).catch(function(){})}),bq=function(e){var t;return!(!Ot(e)||!At(t=e.then))&&t},P_=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hq(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var l,s,u,c=n[a++],d=o?c.ok:c.fail,f=c.resolve,g=c.reject,h=c.domain;try{d?(o||(e.rejection===2&&h5e(e),e.rejection=1),d===!0?l=r:(h&&h.enter(),l=d(r),h&&(h.exit(),u=!0)),l===c.promise?g(pq("Promise-chain cycle")):(s=bq(l))?yt(s,l,f,g):f(l)):g(r)}catch(p){h&&!u&&h.exit(),g(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&f5e(e)})}},wq=function(e,t,n){var r,o;c5e?((r=__.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),pe.dispatchEvent(r)):r={promise:t,reason:n},!vq&&(o=pe["on"+e])?o(r):e==="unhandledrejection"&&function(a,l){var s=pe.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,l))}("Unhandled promise rejection",n)},f5e=function(e){yt(gq,pe,function(){var t,n=e.facade,r=e.value;if(Sq(e)&&(t=B_(function(){jl?T_.emit("unhandledRejection",r,n):wq("unhandledrejection",n,r)}),e.rejection=jl||Sq(e)?2:1,t.error))throw t.value})},Sq=function(e){return e.rejection!==1&&!e.parent},h5e=function(e){yt(gq,pe,function(){var t=e.facade;jl?T_.emit("rejectionHandled",t):wq("rejectionhandled",t,e.value)})},Zd=function(e,t,n){return function(r){e(t,r,n)}},Qd=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,P_(e,!0))},N_=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw pq("Promise can't be resolved itself");var r=bq(t);r?hq(function(){var o={done:!1};try{yt(r,t,Zd(N_,o,e),Zd(Qd,o,e))}catch(a){Qd(o,a,e)}}):(e.value=t,e.state=1,P_(e,!1))}catch(o){Qd({done:!1},o,e)}}};if(wp&&(bp=(Pa=function(e){l_(this,bp),Rl(e),yt(A_,this);var t=mq(this);try{e(Zd(N_,t),Zd(Qd,t))}catch(n){Qd(t,n)}}).prototype,(A_=function(e){l5e(this,{type:pi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=i2(bp,{then:function(e,t){var n=s5e(this),r=n.reactions,o=Jd(hK(this,Pa));return o.ok=!At(e)||e,o.fail=At(t)&&t,o.domain=jl?T_.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&P_(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),cq=function(){var e=new A_,t=mq(e);this.promise=e,this.resolve=Zd(N_,t),this.reject=Zd(Qd,t)},V_.f=Jd=function(e){return e===Pa||e===dq?new cq(e):u5e(e)},At(m2)&&Ru!==Object.prototype)){fq=Ru.then,yq||(Co(Ru,"then",function(e,t){var n=this;return new Pa(function(r,o){yt(fq,n,r,o)}).then(e,t)},{unsafe:!0}),Co(Ru,"catch",bp.catch,{unsafe:!0}));try{delete Ru.constructor}catch{}qd&&qd(Ru,bp)}Ta({global:!0,wrap:!0,forced:wp},{Promise:Pa}),a2(Pa,pi,!1),function(e){var t=Tu("Promise"),n=mi.f;Ba&&t&&!t[ZK]&&n(t,ZK,{configurable:!0,get:function(){return this}})}(),dq=Tu(pi),Ta({target:pi,stat:!0,forced:wp},{reject:function(e){var t=Jd(this);return yt(t.reject,void 0,e),t.promise}}),Ta({target:pi,stat:!0,forced:wp},{resolve:function(e){return function(t,n){if(Ln(t),Ot(n)&&n.constructor===t)return n;var r=V_.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Ta({target:pi,stat:!0,forced:d5e},{all:function(e){var t=this,n=Jd(t),r=n.resolve,o=n.reject,a=B_(function(){var l=Rl(t.resolve),s=[],u=0,c=1;u2(e,function(d){var f=u++,g=!1;c++,yt(l,t,d).then(function(h){g||(g=!0,s[f]=h,--c||r(s))},o)}),--c||r(s)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=Jd(t),r=n.reject,o=B_(function(){var a=Rl(t.resolve);u2(e,function(l){yt(a,t,l).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var g5e=rp.PROPER,O_=RegExp.prototype,Cq=O_.toString,m5e=Ze(rK),p5e=Nt(function(){return Cq.call({source:"a",flags:"b"})!="/a/b"}),v5e=g5e&&Cq.name!="toString";(p5e||v5e)&&Co(RegExp.prototype,"toString",function(){var e=Ln(this),t=Ml(e.source),n=e.flags;return"/"+t+"/"+Ml(n===void 0&&Zm(O_,e)&&!("flags"in O_)?m5e(e):n)},{unsafe:!0});var y5e=rp.EXISTS,b5e=mi.f,kq=Function.prototype,w5e=Ze(kq.toString),xq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,S5e=Ze(xq.exec);Ba&&!y5e&&b5e(kq,"name",{configurable:!0,get:function(){try{return S5e(xq,w5e(this))[1]}catch{return""}}});var Eq=new WeakMap;function Dq(e){return e.getMenuConfig("uploadImage")}function C5e(e,t){return Z3(this,void 0,void 0,function(){return Q3(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var a=o.result;if(a){var l=a.toString(),s=l.indexOf("data:image")===0?"":l;iu(e,l,t.name,s),r("ok")}}})]})})}function k5e(e,t){return Z3(this,void 0,void 0,function(){var n,r,o,a;return Q3(this,function(l){switch(l.label){case 0:return n=function(s){var u=Eq.get(s);if(u!=null)return u;var c=Dq(s),d=c.onSuccess,f=c.onProgress,g=c.onFailed,h=c.customInsert,p=c.onError;return u=BR(r2(r2({},c),{onProgress:function(y){s.showProgressBar(y),f&&f(y)},onSuccess:function(y,v){if(h)return h(v,function(N,V,D){return iu(s,N,V,D)}),void d(y,v);var b=v.errno,m=b===void 0?1:b,w=v.data,S=w===void 0?{}:w;if(m===0){if(Array.isArray(S))S.forEach(function(N){var V=N.url,D=V===void 0?"":V,P=N.alt,O=P===void 0?"":P,F=N.href;iu(s,D,O,F===void 0?"":F)});else{var C=S.url,x=C===void 0?"":C,k=S.alt,E=k===void 0?"":k,A=S.href;iu(s,x,E,A===void 0?"":A)}d(y,v)}else g(y,v)},onError:function(y,v,b){p(y,v,b)}})),Eq.set(s,u),u}(e),r=t.name,o=t.type,a=t.size,n.addFile({name:r,type:o,size:a,data:t}),[4,n.upload()];case 1:return l.sent(),[2]}})})}function Aq(e,t){var n,r;return Z3(this,void 0,void 0,function(){var o,a,l,s,u,c,d,f,g;return Q3(this,function(h){switch(h.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),a=Dq(e),l=a.customUpload,s=a.base64LimitSize,h.label=1;case 1:h.trys.push([1,11,12,17]),u=m_e(o),h.label=2;case 2:return[4,u.next()];case 3:return(c=h.sent()).done?[3,10]:(d=c.value,f=d.size,s&&f<=s?[4,C5e(e,d)]:[3,5]);case 4:return h.sent(),[3,9];case 5:return l?[4,l(d,function(p,y,v){return iu(e,p,y,v)})]:[3,7];case 6:return h.sent(),[3,9];case 7:return[4,k5e(e,d)];case 8:h.sent(),h.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return g=h.sent(),n={error:g},[3,17];case 12:return h.trys.push([12,,15,16]),c&&!c.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:h.sent(),h.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 x5e=Ze([].join),E5e=b3!=Object,D5e=YK("join",",");Ta({target:"Array",proto:!0,forced:E5e||!D5e},{join:function(e){return x5e(Fl(this),e===void 0?",":e)}}),ao&&(M.fn.append=ao),da&&(M.fn.on=da),Bc&&(M.fn.remove=Bc),ca&&(M.fn.val=ca),hI&&(M.fn.click=hI),Ec&&(M.fn.hide=Ec);var A5e=function(){function e(){this.title=ge("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return eb(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,a=o===void 0?[]:o,l=r.customBrowseAndUpload;if(l)l(function(d,f,g){return iu(t,d,f,g)});else{var s="";a.length>0&&(s='accept="'+a.join(", ")+'"');var u=M("body"),c=M('<input type="file" '+s+" multiple/>");c.hide(),u.append(c),c.click(),c.on("change",function(){var d=c[0].files;Aq(t,d)})}},e}(),V5e={menus:[{key:"uploadImage",factory:function(){return new A5e},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(eb(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(a){return function(l,s){var u=typeof Symbol=="function"&&l[Symbol.iterator];if(!u)return l;var c,d,f=u.call(l),g=[];try{for(;(s===void 0||s-- >0)&&!(c=f.next()).done;)g.push(c.value)}catch(h){d={error:h}}finally{try{c&&!c.done&&(u=f.return)&&u.call(f)}finally{if(d)throw d.error}}return g}(a.type.split("/"),1)[0]==="image"})?Aq(e,o):t(r)}},n}};Vr("en",{highLightModule:{selectLang:"Language"}}),Vr("zh-CN",{highLightModule:{selectLang:"选择语言"}});var v2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I_(e){var t={exports:{}};return e(t,t.exports),t.exports}var zl,y2,b2=function(e){return e&&e.Math==Math&&e},$e=b2(typeof globalThis=="object"&&globalThis)||b2(typeof window=="object"&&window)||b2(typeof self=="object"&&self)||b2(typeof v2=="object"&&v2)||function(){return this}()||Function("return this")(),B5e=Object.defineProperty,F_=function(e,t){try{B5e($e,e,{value:t,configurable:!0,writable:!0})}catch{$e[e]=t}return t},Hl=$e["__core-js_shared__"]||F_("__core-js_shared__",{}),R_=I_(function(e){(e.exports=function(t,n){return Hl[t]||(Hl[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Vq=Function.prototype,L_=Vq.bind,M_=Vq.call,_5e=L_&&L_.bind(M_),pt=L_?function(e){return e&&_5e(M_,e)}:function(e){return e&&function(){return M_.apply(e,arguments)}},T5e=$e.TypeError,$d=function(e){if(e==null)throw T5e("Can't call method on "+e);return e},P5e=$e.Object,j_=function(e){return P5e($d(e))},N5e=pt({}.hasOwnProperty),ko=Object.hasOwn||function(e,t){return N5e(j_(e),t)},O5e=0,I5e=Math.random(),F5e=pt(1 .toString),Bq=function(e){return"Symbol("+(e===void 0?"":e)+")_"+F5e(++O5e+I5e,36)},yr=function(e){return typeof e=="function"},R5e=function(e){return yr(e)?e:void 0},Sp=function(e,t){return arguments.length<2?R5e($e[e]):$e[e]&&$e[e][t]},z_=Sp("navigator","userAgent")||"",_q=$e.process,Tq=$e.Deno,Pq=_q&&_q.versions||Tq&&Tq.version,Nq=Pq&&Pq.v8;Nq&&(y2=(zl=Nq.split("."))[0]>0&&zl[0]<4?1:+(zl[0]+zl[1])),!y2&&z_&&(!(zl=z_.match(/Edge\/(\d+)/))||zl[1]>=74)&&(zl=z_.match(/Chrome\/(\d+)/))&&(y2=+zl[1]);var Oq=y2,Mn=function(e){try{return!!e()}catch{return!0}},H_=!!Object.getOwnPropertySymbols&&!Mn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Oq&&Oq<41}),U_=H_&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Cp=R_("wks"),Lu=$e.Symbol,Iq=Lu&&Lu.for,L5e=U_?Lu:Lu&&Lu.withoutSetter||Bq,Ul=function(e){if(!ko(Cp,e)||!H_&&typeof Cp[e]!="string"){var t="Symbol."+e;H_&&ko(Lu,e)?Cp[e]=Lu[e]:Cp[e]=U_&&Iq?Iq(t):L5e(t)}return Cp[e]},Fq={};Fq[Ul("toStringTag")]="z";var W_=String(Fq)==="[object z]",Na=!Mn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),vi=function(e){return typeof e=="object"?e!==null:yr(e)},G_=$e.document,M5e=vi(G_)&&vi(G_.createElement),K_=function(e){return M5e?G_.createElement(e):{}},Rq=!Na&&!Mn(function(){return Object.defineProperty(K_("div"),"a",{get:function(){return 7}}).a!=7}),j5e=$e.String,z5e=$e.TypeError,Ko=function(e){if(vi(e))return e;throw z5e(j5e(e)+" is not an object")},kp=Function.prototype.call,jn=kp.bind?kp.bind(kp):function(){return kp.apply(kp,arguments)},Lq=pt({}.isPrototypeOf),H5e=$e.Object,q_=U_?function(e){return typeof e=="symbol"}:function(e){var t=Sp("Symbol");return yr(t)&&Lq(t.prototype,H5e(e))},U5e=$e.String,Mq=function(e){try{return U5e(e)}catch{return"Object"}},W5e=$e.TypeError,jq=function(e){if(yr(e))return e;throw W5e(Mq(e)+" is not a function")},zq=function(e,t){var n=e[t];return n==null?void 0:jq(n)},G5e=$e.TypeError,K5e=$e.TypeError,q5e=Ul("toPrimitive"),Y_=function(e){var t=function(n,r){if(!vi(n)||q_(n))return n;var o,a=zq(n,q5e);if(a){if(o=jn(a,n,r),!vi(o)||q_(o))return o;throw K5e("Can't convert object to primitive value")}return function(l,s){var u,c;if(yr(u=l.toString)&&!vi(c=jn(u,l))||yr(u=l.valueOf)&&!vi(c=jn(u,l)))return c;throw G5e("Can't convert object to primitive value")}(n)}(e,"string");return q_(t)?t:t+""},Y5e=$e.TypeError,Hq=Object.defineProperty,w2={f:Na?Hq:function(e,t,n){if(Ko(e),t=Y_(t),Ko(n),Rq)try{return Hq(e,t,n)}catch{}if("get"in n||"set"in n)throw Y5e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},X_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ef=Na?function(e,t,n){return w2.f(e,t,X_(1,n))}:function(e,t,n){return e[t]=n,e},X5e=pt(Function.toString);yr(Hl.inspectSource)||(Hl.inspectSource=function(e){return X5e(e)});var J_,S2,Z_,Q_=Hl.inspectSource,Uq=$e.WeakMap,J5e=yr(Uq)&&/native code/.test(Q_(Uq)),Wq=R_("keys"),Gq=function(e){return Wq[e]||(Wq[e]=Bq(e))},$_={},Kq=$e.TypeError,Z5e=$e.WeakMap;if(J5e||Hl.state){var Mu=Hl.state||(Hl.state=new Z5e),Q5e=pt(Mu.get),qq=pt(Mu.has),$5e=pt(Mu.set);J_=function(e,t){if(qq(Mu,e))throw new Kq("Object already initialized");return t.facade=e,$5e(Mu,e,t),t},S2=function(e){return Q5e(Mu,e)||{}},Z_=function(e){return qq(Mu,e)}}else{var tf=Gq("state");$_[tf]=!0,J_=function(e,t){if(ko(e,tf))throw new Kq("Object already initialized");return t.facade=e,ef(e,tf,t),t},S2=function(e){return ko(e,tf)?e[tf]:{}},Z_=function(e){return ko(e,tf)}}var e5={get:S2,enforce:function(e){return Z_(e)?S2(e):J_(e,{})}},Yq=Function.prototype,e6e=Na&&Object.getOwnPropertyDescriptor,Xq=ko(Yq,"name"),Jq={PROPER:Xq&&(function(){}).name==="something",CONFIGURABLE:Xq&&(!Na||Na&&e6e(Yq,"name").configurable)},xp=I_(function(e){var t=Jq.CONFIGURABLE,n=e5.get,r=e5.enforce,o=String(String).split("String");(e.exports=function(a,l,s,u){var c,d=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet,h=u&&u.name!==void 0?u.name:l;yr(s)&&(String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ko(s,"name")||t&&s.name!==h)&&ef(s,"name",h),(c=r(s)).source||(c.source=o.join(typeof h=="string"?h:""))),a!==$e?(d?!g&&a[l]&&(f=!0):delete a[l],f?a[l]=s:ef(a,l,s)):f?a[l]=s:F_(l,s)})(Function.prototype,"toString",function(){return yr(this)&&n(this).source||Q_(this)})}),t6e=pt({}.toString),n6e=pt("".slice),Wl=function(e){return n6e(t6e(e),8,-1)},r6e=Ul("toStringTag"),o6e=$e.Object,a6e=Wl(function(){return arguments}())=="Arguments",t5=W_?Wl:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=o6e(e),r6e))=="string"?n:a6e?Wl(t):(r=Wl(t))=="Object"&&yr(t.callee)?"Arguments":r},i6e=W_?{}.toString:function(){return"[object "+t5(this)+"]"};W_||xp(Object.prototype,"toString",i6e,{unsafe:!0});var Zq,Qq={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},n5=K_("span").classList,$q=n5&&n5.constructor&&n5.constructor.prototype,l6e=$q===Object.prototype?void 0:$q,eY=pt(pt.bind),r5=$e.Object,s6e=pt("".split),o5=Mn(function(){return!r5("z").propertyIsEnumerable(0)})?function(e){return Wl(e)=="String"?s6e(e,""):r5(e)}:r5,u6e=Math.ceil,c6e=Math.floor,a5=function(e){var t=+e;return t!=t||t===0?0:(t>0?c6e:u6e)(t)},d6e=Math.min,tY=function(e){return e>0?d6e(a5(e),9007199254740991):0},i5=function(e){return tY(e.length)},nY=Array.isArray||function(e){return Wl(e)=="Array"},rY=function(){},f6e=[],oY=Sp("Reflect","construct"),l5=/^\s*(?:class|function)\b/,h6e=pt(l5.exec),g6e=!l5.exec(rY),Ep=function(e){if(!yr(e))return!1;try{return oY(rY,f6e,e),!0}catch{return!1}},aY=!oY||Mn(function(){var e;return Ep(Ep.call)||!Ep(Object)||!Ep(function(){e=!0})||e})?function(e){if(!yr(e))return!1;switch(t5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return g6e||!!h6e(l5,Q_(e))}:Ep,m6e=Ul("species"),iY=$e.Array,p6e=function(e,t){return new(function(n){var r;return nY(n)&&(r=n.constructor,(aY(r)&&(r===iY||nY(r.prototype))||vi(r)&&(r=r[m6e])===null)&&(r=void 0)),r===void 0?iY:r}(e))(t===0?0:t)},lY=pt([].push),Gl=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,l=e==7,s=e==5||a;return function(u,c,d,f){for(var g,h,p=j_(u),y=o5(p),v=function(C,x){return jq(C),x===void 0?C:eY?eY(C,x):function(){return C.apply(x,arguments)}}(c,d),b=i5(y),m=0,w=f||p6e,S=t?w(u,b):n||l?w(u,0):void 0;b>m;m++)if((s||m in y)&&(h=v(g=y[m],m,p),e))if(t)S[m]=h;else if(h)switch(e){case 3:return!0;case 5:return g;case 6:return m;case 2:lY(S,g)}else switch(e){case 4:return!1;case 7:lY(S,g)}return a?-1:r||o?o:S}},v6e=[Gl(0),Gl(1),Gl(2),Gl(3),Gl(4),Gl(5),Gl(6),Gl(7)][0],s5=(Zq=[].forEach)&&Mn(function(){Zq.call(null,function(){throw 1},1)})?[].forEach:function(e){return v6e(this,e,arguments.length>1?arguments[1]:void 0)},sY=function(e){if(e&&e.forEach!==s5)try{ef(e,"forEach",s5)}catch{e.forEach=s5}};for(var u5 in Qq)Qq[u5]&&sY($e[u5]&&$e[u5].prototype);sY(l6e);var uY={}.propertyIsEnumerable,cY=Object.getOwnPropertyDescriptor,dY={f:cY&&!uY.call({1:2},1)?function(e){var t=cY(this,e);return!!t&&t.enumerable}:uY},C2=function(e){return o5($d(e))},fY=Object.getOwnPropertyDescriptor,hY={f:Na?fY:function(e,t){if(e=C2(e),t=Y_(t),Rq)try{return fY(e,t)}catch{}if(ko(e,t))return X_(!jn(dY.f,e,t),e[t])}},y6e=Math.max,b6e=Math.min,c5=function(e,t){var n=a5(e);return n<0?y6e(n+t,0):b6e(n,t)},w6e=function(e){return function(t,n,r){var o,a=C2(t),l=i5(a),s=c5(r,l);if(e&&n!=n){for(;l>s;)if((o=a[s++])!=o)return!0}else for(;l>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},S6e=w6e(!1),gY=pt([].push),mY=function(e,t){var n,r=C2(e),o=0,a=[];for(n in r)!ko($_,n)&&ko(r,n)&&gY(a,n);for(;t.length>o;)ko(r,n=t[o++])&&(~S6e(a,n)||gY(a,n));return a},k2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],C6e=k2.concat("length","prototype"),k6e={f:Object.getOwnPropertyNames||function(e){return mY(e,C6e)}},pY={f:Object.getOwnPropertySymbols},x6e=pt([].concat),E6e=Sp("Reflect","ownKeys")||function(e){var t=k6e.f(Ko(e)),n=pY.f;return n?x6e(t,n(e)):t},D6e=function(e,t){for(var n=E6e(t),r=w2.f,o=hY.f,a=0;a<n.length;a++){var l=n[a];ko(e,l)||r(e,l,o(t,l))}},A6e=/#|\.prototype\./,Dp=function(e,t){var n=B6e[V6e(e)];return n==T6e||n!=_6e&&(yr(t)?Mn(t):!!t)},V6e=Dp.normalize=function(e){return String(e).replace(A6e,".").toLowerCase()},B6e=Dp.data={},_6e=Dp.NATIVE="N",T6e=Dp.POLYFILL="P",P6e=Dp,N6e=hY.f,x2=function(e,t){var n,r,o,a,l,s=e.target,u=e.global,c=e.stat;if(n=u?$e:c?$e[s]||F_(s,{}):($e[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(l=N6e(n,r))&&l.value:n[r],!P6e(u?r:s+(c?".":"#")+r,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;D6e(a,o)}(e.sham||o&&o.sham)&&ef(a,"sham",!0),xp(n,r,a,e)}},E2=Object.keys||function(e){return mY(e,k2)},nf=Object.assign,vY=Object.defineProperty,O6e=pt([].concat),yY=!nf||Mn(function(){if(Na&&nf({b:1},nf(vY({},"a",{enumerable:!0,get:function(){vY(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),nf({},e)[n]!=7||E2(nf({},t)).join("")!=r})?function(e,t){for(var n=j_(e),r=arguments.length,o=1,a=pY.f,l=dY.f;r>o;)for(var s,u=o5(arguments[o++]),c=a?O6e(E2(u),a(u)):E2(u),d=c.length,f=0;d>f;)s=c[f++],Na&&!jn(l,u,s)||(n[s]=u[s]);return n}:nf;x2({target:"Object",stat:!0,forced:Object.assign!==yY},{assign:yY});var bY=I_(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,a={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(b){return b instanceof s?new s(b.type,v(b.content),b.alias):Array.isArray(b)?b.map(v):b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(b,m){var w,S;switch(m=m||{},l.util.type(b)){case"Object":if(S=l.util.objId(b),m[S])return m[S];for(var C in w={},m[S]=w,b)b.hasOwnProperty(C)&&(w[C]=v(b[C],m));return w;case"Array":return S=l.util.objId(b),m[S]?m[S]:(w=[],m[S]=w,b.forEach(function(x,k){w[k]=v(x,m)}),w);default:return b}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var b=document.getElementsByTagName("script");for(var m in b)if(b[m].src==v)return b[m]}return null}},isActive:function(v,b,m){for(var w="no-"+b;v;){var S=v.classList;if(S.contains(b))return!0;if(S.contains(w))return!1;v=v.parentElement}return!!m}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,b){var m=l.util.clone(l.languages[v]);for(var w in b)m[w]=b[w];return m},insertBefore:function(v,b,m,w){var S=(w=w||l.languages)[v],C={};for(var x in S)if(S.hasOwnProperty(x)){if(x==b)for(var k in m)m.hasOwnProperty(k)&&(C[k]=m[k]);m.hasOwnProperty(x)||(C[x]=S[x])}var E=w[v];return w[v]=C,l.languages.DFS(l.languages,function(A,N){N===E&&A!=v&&(this[A]=C)}),C},DFS:function v(b,m,w,S){S=S||{};var C=l.util.objId;for(var x in b)if(b.hasOwnProperty(x)){m.call(b,x,b[x],w||x);var k=b[x],E=l.util.type(k);E!=="Object"||S[C(k)]?E!=="Array"||S[C(k)]||(S[C(k)]=!0,v(k,m,x,S)):(S[C(k)]=!0,v(k,m,null,S))}}},plugins:{},highlightAll:function(v,b){l.highlightAllUnder(document,v,b)},highlightAllUnder:function(v,b,m){var w={callback:m,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var S,C=0;S=w.elements[C++];)l.highlightElement(S,b===!0,w.callback)},highlightElement:function(v,b,m){var w=l.util.getLanguage(v),S=l.languages[w];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+w;var C=v.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&(C.className=C.className.replace(r,"").replace(/\s+/g," ")+" language-"+w);var x={element:v,language:w,grammar:S,code:v.textContent};function k(A){x.highlightedCode=A,l.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,l.hooks.run("after-highlight",x),l.hooks.run("complete",x),m&&m.call(x.element)}if(l.hooks.run("before-sanity-check",x),(C=x.element.parentElement)&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!x.code)return l.hooks.run("complete",x),void(m&&m.call(x.element));if(l.hooks.run("before-highlight",x),x.grammar)if(b&&n.Worker){var E=new Worker(l.filename);E.onmessage=function(A){k(A.data)},E.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else k(l.highlight(x.code,x.grammar,x.language));else k(l.util.encode(x.code))},highlight:function(v,b,m){var w={code:v,grammar:b,language:m};return l.hooks.run("before-tokenize",w),w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),s.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(v,b){var m=b.rest;if(m){for(var w in m)b[w]=m[w];delete b.rest}var S=new d;return f(S,S.head,v),c(v,S,b,S.head,0),function(C){for(var x=[],k=C.head.next;k!==C.tail;)x.push(k.value),k=k.next;return x}(S)},hooks:{all:{},add:function(v,b){var m=l.hooks.all;m[v]=m[v]||[],m[v].push(b)},run:function(v,b){var m=l.hooks.all[v];if(m&&m.length)for(var w,S=0;w=m[S++];)w(b)}},Token:s};function s(v,b,m,w){this.type=v,this.content=b,this.alias=m,this.length=0|(w||"").length}function u(v,b,m,w){v.lastIndex=b;var S=v.exec(m);if(S&&w&&S[1]){var C=S[1].length;S.index+=C,S[0]=S[0].slice(C)}return S}function c(v,b,m,w,S,C){for(var x in m)if(m.hasOwnProperty(x)&&m[x]){var k=m[x];k=Array.isArray(k)?k:[k];for(var E=0;E<k.length;++E){if(C&&C.cause==x+","+E)return;var A=k[E],N=A.inside,V=!!A.lookbehind,D=!!A.greedy,P=A.alias;if(D&&!A.pattern.global){var O=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,O+"g")}for(var F=A.pattern||A,H=w.next,J=S;H!==b.tail&&!(C&&J>=C.reach);J+=H.value.length,H=H.next){var j=H.value;if(b.length>v.length)return;if(!(j instanceof s)){var z,L=1;if(D){if(!(z=u(F,J,v,V)))break;var _=z.index,T=z.index+z[0].length,I=J;for(I+=H.value.length;_>=I;)I+=(H=H.next).value.length;if(J=I-=H.value.length,H.value instanceof s)continue;for(var U=H;U!==b.tail&&(I<T||typeof U.value=="string");U=U.next)L++,I+=U.value.length;L--,j=v.slice(J,I),z.index-=J}else if(!(z=u(F,0,j,V)))continue;_=z.index;var $=z[0],W=j.slice(0,_),Z=j.slice(_+$.length),ne=J+j.length;C&&ne>C.reach&&(C.reach=ne);var me=H.prev;if(W&&(me=f(b,me,W),J+=W.length),g(b,me,L),H=f(b,me,new s(x,N?l.tokenize($,N):$,P,$)),Z&&f(b,H,Z),L>1){var de={cause:x+","+E,reach:ne};c(v,b,m,H.prev,J,de),C&&de.reach>C.reach&&(C.reach=de.reach)}}}}}}function d(){var v={value:null,prev:null,next:null},b={value:null,prev:v,next:null};v.next=b,this.head=v,this.tail=b,this.length=0}function f(v,b,m){var w=b.next,S={value:m,prev:b,next:w};return b.next=S,w.prev=S,v.length++,S}function g(v,b,m){for(var w=b.next,S=0;S<m&&w!==v.tail;S++)w=w.next;b.next=w,w.prev=b,v.length-=S}if(n.Prism=l,s.stringify=function v(b,m){if(typeof b=="string")return b;if(Array.isArray(b)){var w="";return b.forEach(function(E){w+=v(E,m)}),w}var S={type:b.type,content:v(b.content,m),tag:"span",classes:["token",b.type],attributes:{},language:m},C=b.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(S.classes,C):S.classes.push(C)),l.hooks.run("wrap",S);var x="";for(var k in S.attributes)x+=" "+k+'="'+(S.attributes[k]||"").replace(/"/g,"&quot;")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+x+">"+S.content+"</"+S.tag+">"},!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(v){var b=JSON.parse(v.data),m=b.language,w=b.code,S=b.immediateClose;n.postMessage(l.highlight(w,l.languages[m],m)),S&&n.close()},!1)),l;var h=l.util.currentScript();function p(){l.manual||l.highlightAll()}if(h&&(l.filename=h.src,h.hasAttribute("data-manual")&&(l.manual=!0)),!l.manual){var y=document.readyState;y==="loading"||y==="interactive"&&h&&h.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return l}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
179
179
  * Prism: Lightweight, robust, elegant syntax highlighting
180
180
  *
181
181
  * @license MIT <https://opensource.org/licenses/MIT>
182
182
  * @author Lea Verou <https://lea.verou.me>
183
183
  * @namespace
184
184
  * @public
185
- */e.exports&&(e.exports=t),v2!==void 0&&(v2.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(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var l={};l[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[r,"language-"+r],inside:t.languages[r]},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(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.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(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(u){u.selector+=", "+o}),t.hooks.add("before-sanity-check",function(u){var c=u.element;if(c.matches(o)){u.code="",c.setAttribute(r,"loading");var d=c.appendChild(document.createElement("CODE"));d.textContent="Loading…";var f=c.getAttribute("data-src"),g=u.language;if(g==="none"){var h=(/\.(\w+)$/.exec(f)||[,"none"])[1];g=n[h]||h}s(d,g),s(c,g);var p=t.plugins.autoloader;p&&p.loadLanguages(g);var y=new XMLHttpRequest;y.open("GET",f,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?(c.setAttribute(r,"loaded"),d.textContent=y.responseText,t.highlightElement(d)):(c.setAttribute(r,"failed"),y.status>=400?d.textContent="✖ Error "+y.status+" while fetching file: "+y.statusText:d.textContent="✖ Error: File does not exist or is empty"))},y.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var c,d=(u||document).querySelectorAll(o),f=0;c=d[f++];)t.highlightElement(c)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(u,c){var d=u.className;d=d.replace(a," ")+" language-"+c,u.className=d.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 a(u,c){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(u,c)}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\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:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},s=function(u){for(var c=[],d=0;d<u.length;d++){var f=u[d],g=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===l(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content==="/>"||c.push({tagName:l(f.content[0].content[1]),openedBraces:0}):c.length>0&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:g=!0),(g||typeof f=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var h=l(f);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(h+=l(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(h=l(u[d-1])+h,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",h,null,h)}f.content&&typeof f.content!="string"&&s(f.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||s(u.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){e.type==="entity"&&(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}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;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:a};var l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:l}},{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:l}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"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(T,I){return T.replace(/<<(\d+)>>/g,function(U,$){return"(?:"+I[+$]+")"})}function n(T,I,U){return RegExp(t(T,I),"")}function r(T,I){for(var U=0;U<I;U++)T=T.replace(/<<self>>/g,function(){return"(?:"+T+")"});return T.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",a="class enum interface record struct",l="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*{)",s="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 u(T){return"\\b(?:"+T.trim().replace(/ /g,"|")+")\\b"}var c=u(a),d=RegExp(u(o+" "+a+" "+l+" "+s)),f=u(a+" "+l+" "+s),g=u(o+" "+a+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=r(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[y,h]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,w=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,m]),S=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,m]),C=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[S]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,b,m]),k={keyword:d,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,N=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(E),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,x]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,v]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,g,y]),inside:k}],keyword:d,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,[y]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,b]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,h]),inside:{function:n(/^<<0>>/.source,[y]),generic:{pattern:RegExp(h),alias:"class-name",inside:k}}},"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,[c,v,y,x,d.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(x),greedy:!0,inside:k},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 V=A+"|"+E,D=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[V]),P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var H=/:[^}\r\n]+/.source,J=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,H]),z=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[V]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,H]);function _(T,I){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[T]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[I,H]),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:_(j,J)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:_(L,z)}]})}(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]*)?(?:\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"],a=r.variable[1].inside,l=0;l<o.length;l++)a[o[l]]=e.languages.bash[o[l]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(c){return c=c.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+c+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \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+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),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(c){["url","bold","italic","strike","code-snippet"].forEach(function(d){c!==d&&(e.languages.markdown[c].inside.content.inside[d]=e.languages.markdown[d])})}),e.hooks.add("after-tokenize",function(c){c.language!=="markdown"&&c.language!=="md"||function d(f){if(f&&typeof f!="string")for(var g=0,h=f.length;g<h;g++){var p=f[g];if(p.type==="code"){var y=p.content[1],v=p.content[3];if(y&&v&&y.type==="code-language"&&v.type==="code-block"&&typeof y.content=="string"){var b=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+(b=(/[a-z][\w-]*/i.exec(b)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,m]:v.alias.push(m):v.alias=[m]}}else d(p.content)}}(c.tokens)}),e.hooks.add("wrap",function(c){if(c.type==="code-block"){for(var d="",f=0,g=c.classes.length;f<g;f++){var h=c.classes[f],p=/language-(.+)/.exec(h);if(p){d=p[1];break}}var y=e.languages[d];if(y)c.content=e.highlight(function(b){var m=b.replace(l,"");return m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(w,S){var C;return(S=S.toLowerCase())[0]==="#"?(C=S[1]==="x"?parseInt(S.slice(2),16):Number(S.slice(1)),u(C)):s[S]||w})}(c.content),y,d);else if(d&&d!=="none"&&e.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());c.attributes.id=v,e.plugins.autoloader.loadLanguages(d,function(){var b=document.getElementById(v);b&&(b.innerHTML=e.highlight(b.textContent,e.languages[d],d))})}}});var l=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=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(e.language==="groovy"&&e.type==="string"){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 O6e=["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 wY(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+wY(n)},0)}var D2,I6e=$e.String,yi=function(e){if(t5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return I6e(e)},SY=function(){var e=Ko(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},d5=$e.RegExp,f5=Mn(function(){var e=d5("a","y");return e.lastIndex=2,e.exec("abcd")!=null});f5||Mn(function(){return!d5("a","y").sticky});var CY={BROKEN_CARET:f5||Mn(function(){var e=d5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:f5},F6e=Na?Object.defineProperties:function(e,t){Ko(e);for(var n,r=C2(t),o=E2(t),a=o.length,l=0;a>l;)w2.f(e,n=o[l++],r[n]);return e},R6e=Sp("document","documentElement"),kY=Gq("IE_PROTO"),h5=function(){},xY=function(e){return"<script>"+e+"<\/script>"},EY=function(e){e.write(xY("")),e.close();var t=e.parentWindow.Object;return e=null,t},A2=function(){try{D2=new ActiveXObject("htmlfile")}catch{}var e,t;A2=typeof document<"u"?document.domain&&D2?EY(D2):((t=K_("iframe")).style.display="none",R6e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(xY("document.F=Object")),e.close(),e.F):EY(D2);for(var n=k2.length;n--;)delete A2.prototype[k2[n]];return A2()};$_[kY]=!0;var DY,g5,L6e=Object.create||function(e,t){var n;return e!==null?(h5.prototype=Ko(e),n=new h5,h5.prototype=null,n[kY]=e):n=A2(),t===void 0?n:F6e(n,t)},M6e=$e.RegExp,j6e=Mn(function(){var e=M6e(".","s");return!(e.dotAll&&e.exec(`
186
- `)&&e.flags==="s")}),z6e=$e.RegExp,H6e=Mn(function(){var e=z6e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),U6e=e5.get,W6e=R_("native-string-replace",String.prototype.replace),V2=RegExp.prototype.exec,m5=V2,G6e=pt("".charAt),K6e=pt("".indexOf),q6e=pt("".replace),p5=pt("".slice),v5=(g5=/b*/g,jn(V2,DY=/a/,"a"),jn(V2,g5,"a"),DY.lastIndex!==0||g5.lastIndex!==0),AY=CY.BROKEN_CARET,y5=/()??/.exec("")[1]!==void 0;(v5||y5||AY||j6e||H6e)&&(m5=function(e){var t,n,r,o,a,l,s,u=this,c=U6e(u),d=yi(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=jn(m5,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=AY&&u.sticky,p=jn(SY,u),y=u.source,v=0,b=d;if(h&&(p=q6e(p,"y",""),K6e(p,"g")===-1&&(p+="g"),b=p5(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&G6e(d,u.lastIndex-1)!==`
187
- `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),y5&&(n=new RegExp("^"+y+"$(?!\\s)",p)),v5&&(r=u.lastIndex),o=jn(V2,h?n:u,b),h?o?(o.input=p5(o.input,v),o[0]=p5(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:v5&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),y5&&o&&o.length>1&&jn(W6e,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=L6e(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Ap=m5;x2({target:"RegExp",proto:!0,forced:/./.exec!==Ap},{exec:Ap});var b5=Function.prototype,VY=b5.apply,Y6e=b5.bind,BY=b5.call,X6e=typeof Reflect=="object"&&Reflect.apply||(Y6e?BY.bind(VY):function(){return BY.apply(VY,arguments)}),J6e=Ul("species"),w5=RegExp.prototype,Z6e=Ul("match"),Q6e=$e.TypeError,$6e=Ul("species"),eTe=pt("".charAt),_Y=pt("".charCodeAt),tTe=pt("".slice),nTe=function(e){return function(t,n){var r,o,a=yi($d(t)),l=a5(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=_Y(a,l))<55296||r>56319||l+1===s||(o=_Y(a,l+1))<56320||o>57343?e?eTe(a,l):r:e?tTe(a,l,l+2):o-56320+(r-55296<<10)+65536}},rTe=nTe(!0),oTe=function(e,t,n){return t+(n?rTe(e,t).length:1)},aTe=$e.Array,iTe=Math.max,TY=function(e,t,n){for(var r,o,a,l,s=i5(e),u=c5(t,s),c=c5(n===void 0?s:n,s),d=aTe(iTe(c-u,0)),f=0;u<c;u++,f++)r=d,o=f,a=e[u],(l=Y_(o))in r?w2.f(r,l,X_(0,a)):r[l]=a;return d.length=f,d},lTe=$e.TypeError,PY=function(e,t){var n=e.exec;if(yr(n)){var r=jn(n,e,t);return r!==null&&Ko(r),r}if(Wl(e)==="RegExp")return jn(Ap,e,t);throw lTe("RegExp#exec called on incompatible receiver")},rf=CY.UNSUPPORTED_Y,sTe=Math.min,NY=[].push,uTe=pt(/./.exec),of=pt(NY),Vp=pt("".slice);(function(e,t,n,r){var o=Ul(e),a=!Mn(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Mn(function(){var c=!1,d=/a/;return(d={}).constructor={},d.constructor[J6e]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=pt(/./[o]),u=function(c,d,f){var g;return g="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(h,p){var y,v,b=yi($d(this)),m=p===void 0?4294967295:p>>>0;if(m===0)return[];if(h===void 0)return[b];if(!vi(y=h)||!((v=y[Z6e])!==void 0?v:Wl(y)=="RegExp"))return jn(d,b,h,m);for(var w,S,C,x=[],k=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),E=0,A=new RegExp(h.source,k+"g");(w=jn(Ap,A,b))&&!((S=A.lastIndex)>E&&(of(x,Vp(b,E,w.index)),w.length>1&&w.index<b.length&&X6e(NY,x,TY(w,1)),C=w[0].length,E=S,x.length>=m));)A.lastIndex===w.index&&A.lastIndex++;return E===b.length?!C&&uTe(A,"")||of(x,""):of(x,Vp(b,E)),x.length>m?TY(x,0,m):x}:"0".split(void 0,0).length?function(h,p){return h===void 0&&p===0?[]:jn(d,this,h,p)}:d,[function(h,p){var y=$d(this),v=h==null?void 0:zq(h,c);return v?jn(v,h,y,p):jn(g,yi(y),h,p)},function(h,p){var y=Ko(this),v=yi(h),b=f(g,y,v,p,g!==d);if(b.done)return b.value;var m=function(P,O){var F,H=Ko(P).constructor;return H===void 0||(F=Ko(H)[$6e])==null?O:function(J){if(aY(J))return J;throw Q6e(Mq(J)+" is not a constructor")}(F)}(y,RegExp),w=y.unicode,S=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(rf?"g":"y"),C=new m(rf?"^(?:"+y.source+")":y,S),x=p===void 0?4294967295:p>>>0;if(x===0)return[];if(v.length===0)return PY(C,v)===null?[v]:[];for(var k=0,E=0,A=[];E<v.length;){C.lastIndex=rf?0:E;var N,V=PY(C,rf?Vp(v,E):v);if(V===null||(N=sTe(tY(C.lastIndex+(rf?E:0)),v.length))===k)E=oTe(v,E,w);else{if(of(A,Vp(v,k,E)),A.length===x)return A;for(var D=1;D<=V.length-1;D++)if(of(A,V[D]),A.length===x)return A;E=k=N}}return of(A,Vp(v,k)),A}]}(o,""[e],function(c,d,f,g,h){var p=pt(c),y=d.exec;return y===Ap||y===w5.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});xp(String.prototype,e,u[0]),xp(w5,o,u[1])}r&&ef(w5[o],"sham",!0)})("split",0,!!Mn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),rf),x2({global:!0},{globalThis:$e}),oo&&(M.fn.attr=oo);var cTe=Jq.PROPER,S5=RegExp.prototype,OY=S5.toString,dTe=pt(SY),fTe=Mn(function(){return OY.call({source:"a",flags:"b"})!="/a/b"}),hTe=cTe&&OY.name!="toString";(fTe||hTe)&&xp(RegExp.prototype,"toString",function(){var e=Ko(this),t=yi(e.source),n=e.flags;return"/"+t+"/"+yi(n===void 0&&Lq(S5,e)&&!("flags"in S5)?dTe(e):n)},{unsafe:!0});var gTe=function(){function e(){this.title=ge("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(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(l){var s=l.text,u=l.value;n.push({text:s,value:u})});var a=this.getValue(t);return n.forEach(function(l){l.value===a?l.selected=!0:delete l.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!_e.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(a){return a.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};Q.setNodes(t,r,{match:function(o){return R.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=R.getSelectedNodeByType(t,"code");if(n==null)return null;var r=R.getParentNode(t,n);return _e.isElement(r)?r.type!=="pre"?null:n:null},e}(),mTe={renderStyle:function(e,t){var n=e,r=t,o="";return O6e.forEach(function(a){n[a]&&(o=a)}),o&&function(a,l){a.data==null&&(a.data={});var s=a.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:l})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t)||R.getNodeType(t)!=="code")return t;var o=t,a=r.attr("class")||"";return a.indexOf("language-")===0?o.language=a.split("-")[1]||"":o.language=a.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new gTe},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=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},pTe=/"/g,vTe=pt("".replace);x2({target:"String",proto:!0,forced:Mn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=yi($d(this)),r="<a",(r+=' name="'+vTe(yi(t),pTe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var IY=function(e){var t,n,r,o=function(b,m){var w=typeof Symbol=="function"&&b[Symbol.iterator];if(!w)return b;var S,C,x=w.call(b),k=[];try{for(;(m===void 0||m-- >0)&&!(S=x.next()).done;)k.push(S.value)}catch(E){C={error:E}}finally{try{S&&!S.done&&(w=x.return)&&w.call(x)}finally{if(C)throw C.error}}return k}(e,2),a=o[0],l=o[1],s=[],u=function(b){if(!Se.isText(b))return null;var m=R.getParentNode(null,b);if(m&&R.getNodeType(m)==="code"){var w=R.getParentNode(null,m);if(w&&R.getNodeType(w)==="pre")return m}return null}(a);if(u==null)return s;var c=u.language,d=c===void 0?"":c;if(!d)return s;var f=function(b,m){if(!m)return[];var w=bY.languages[m];return w?bY.tokenize(b.text,w):[]}(a,d),g=0;try{for(var h=function(b){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&b[m],S=0;if(w)return w.call(b);if(b&&typeof b.length=="number")return{next:function(){return b&&S>=b.length&&(b=void 0),{value:b&&b[S++],done:!b}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),p=h.next();!p.done;p=h.next()){var y=p.value,v=g+wY(y);typeof y!="string"&&s.push(((r={})[y.type]=!0,r.anchor={path:l,offset:g},r.focus={path:l,offset:v},r)),g=v}}catch(b){t={error:b}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return s},Jt=function(){return Jt=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},Jt.apply(this,arguments)},zn=function(){function e(){throw new Error(`不能实例化
185
+ */e.exports&&(e.exports=t),v2!==void 0&&(v2.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(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var l={};l[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[r,"language-"+r],inside:t.languages[r]},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(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.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(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(u){u.selector+=", "+o}),t.hooks.add("before-sanity-check",function(u){var c=u.element;if(c.matches(o)){u.code="",c.setAttribute(r,"loading");var d=c.appendChild(document.createElement("CODE"));d.textContent="Loading…";var f=c.getAttribute("data-src"),g=u.language;if(g==="none"){var h=(/\.(\w+)$/.exec(f)||[,"none"])[1];g=n[h]||h}s(d,g),s(c,g);var p=t.plugins.autoloader;p&&p.loadLanguages(g);var y=new XMLHttpRequest;y.open("GET",f,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?(c.setAttribute(r,"loaded"),d.textContent=y.responseText,t.highlightElement(d)):(c.setAttribute(r,"failed"),y.status>=400?d.textContent="✖ Error "+y.status+" while fetching file: "+y.statusText:d.textContent="✖ Error: File does not exist or is empty"))},y.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var c,d=(u||document).querySelectorAll(o),f=0;c=d[f++];)t.highlightElement(c)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(u,c){var d=u.className;d=d.replace(a," ")+" language-"+c,u.className=d.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 a(u,c){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(u,c)}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\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:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},s=function(u){for(var c=[],d=0;d<u.length;d++){var f=u[d],g=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===l(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content==="/>"||c.push({tagName:l(f.content[0].content[1]),openedBraces:0}):c.length>0&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:g=!0),(g||typeof f=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var h=l(f);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(h+=l(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(h=l(u[d-1])+h,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",h,null,h)}f.content&&typeof f.content!="string"&&s(f.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||s(u.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){e.type==="entity"&&(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}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;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:a};var l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:l}},{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:l}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"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(T,I){return T.replace(/<<(\d+)>>/g,function(U,$){return"(?:"+I[+$]+")"})}function n(T,I,U){return RegExp(t(T,I),"")}function r(T,I){for(var U=0;U<I;U++)T=T.replace(/<<self>>/g,function(){return"(?:"+T+")"});return T.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",a="class enum interface record struct",l="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*{)",s="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 u(T){return"\\b(?:"+T.trim().replace(/ /g,"|")+")\\b"}var c=u(a),d=RegExp(u(o+" "+a+" "+l+" "+s)),f=u(a+" "+l+" "+s),g=u(o+" "+a+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=r(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[y,h]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,w=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,m]),S=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,m]),C=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[S]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,b,m]),k={keyword:d,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,N=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(E),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,x]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,v]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,g,y]),inside:k}],keyword:d,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,[y]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,b]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,h]),inside:{function:n(/^<<0>>/.source,[y]),generic:{pattern:RegExp(h),alias:"class-name",inside:k}}},"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,[c,v,y,x,d.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(x),greedy:!0,inside:k},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 V=A+"|"+E,D=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[V]),P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var H=/:[^}\r\n]+/.source,J=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,H]),z=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[V]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,H]);function _(T,I){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[T]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[I,H]),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:_(j,J)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:_(L,z)}]})}(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]*)?(?:\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"],a=r.variable[1].inside,l=0;l<o.length;l++)a[o[l]]=e.languages.bash[o[l]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(c){return c=c.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+c+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \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+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),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(c){["url","bold","italic","strike","code-snippet"].forEach(function(d){c!==d&&(e.languages.markdown[c].inside.content.inside[d]=e.languages.markdown[d])})}),e.hooks.add("after-tokenize",function(c){c.language!=="markdown"&&c.language!=="md"||function d(f){if(f&&typeof f!="string")for(var g=0,h=f.length;g<h;g++){var p=f[g];if(p.type==="code"){var y=p.content[1],v=p.content[3];if(y&&v&&y.type==="code-language"&&v.type==="code-block"&&typeof y.content=="string"){var b=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+(b=(/[a-z][\w-]*/i.exec(b)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,m]:v.alias.push(m):v.alias=[m]}}else d(p.content)}}(c.tokens)}),e.hooks.add("wrap",function(c){if(c.type==="code-block"){for(var d="",f=0,g=c.classes.length;f<g;f++){var h=c.classes[f],p=/language-(.+)/.exec(h);if(p){d=p[1];break}}var y=e.languages[d];if(y)c.content=e.highlight(function(b){var m=b.replace(l,"");return m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(w,S){var C;return(S=S.toLowerCase())[0]==="#"?(C=S[1]==="x"?parseInt(S.slice(2),16):Number(S.slice(1)),u(C)):s[S]||w})}(c.content),y,d);else if(d&&d!=="none"&&e.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());c.attributes.id=v,e.plugins.autoloader.loadLanguages(d,function(){var b=document.getElementById(v);b&&(b.innerHTML=e.highlight(b.textContent,e.languages[d],d))})}}});var l=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=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(e.language==="groovy"&&e.type==="string"){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 I6e=["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 wY(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+wY(n)},0)}var D2,F6e=$e.String,yi=function(e){if(t5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return F6e(e)},SY=function(){var e=Ko(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},d5=$e.RegExp,f5=Mn(function(){var e=d5("a","y");return e.lastIndex=2,e.exec("abcd")!=null});f5||Mn(function(){return!d5("a","y").sticky});var CY={BROKEN_CARET:f5||Mn(function(){var e=d5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:f5},R6e=Na?Object.defineProperties:function(e,t){Ko(e);for(var n,r=C2(t),o=E2(t),a=o.length,l=0;a>l;)w2.f(e,n=o[l++],r[n]);return e},L6e=Sp("document","documentElement"),kY=Gq("IE_PROTO"),h5=function(){},xY=function(e){return"<script>"+e+"<\/script>"},EY=function(e){e.write(xY("")),e.close();var t=e.parentWindow.Object;return e=null,t},A2=function(){try{D2=new ActiveXObject("htmlfile")}catch{}var e,t;A2=typeof document<"u"?document.domain&&D2?EY(D2):((t=K_("iframe")).style.display="none",L6e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(xY("document.F=Object")),e.close(),e.F):EY(D2);for(var n=k2.length;n--;)delete A2.prototype[k2[n]];return A2()};$_[kY]=!0;var DY,g5,M6e=Object.create||function(e,t){var n;return e!==null?(h5.prototype=Ko(e),n=new h5,h5.prototype=null,n[kY]=e):n=A2(),t===void 0?n:R6e(n,t)},j6e=$e.RegExp,z6e=Mn(function(){var e=j6e(".","s");return!(e.dotAll&&e.exec(`
186
+ `)&&e.flags==="s")}),H6e=$e.RegExp,U6e=Mn(function(){var e=H6e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),W6e=e5.get,G6e=R_("native-string-replace",String.prototype.replace),V2=RegExp.prototype.exec,m5=V2,K6e=pt("".charAt),q6e=pt("".indexOf),Y6e=pt("".replace),p5=pt("".slice),v5=(g5=/b*/g,jn(V2,DY=/a/,"a"),jn(V2,g5,"a"),DY.lastIndex!==0||g5.lastIndex!==0),AY=CY.BROKEN_CARET,y5=/()??/.exec("")[1]!==void 0;(v5||y5||AY||z6e||U6e)&&(m5=function(e){var t,n,r,o,a,l,s,u=this,c=W6e(u),d=yi(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=jn(m5,f,d),u.lastIndex=f.lastIndex,t;var g=c.groups,h=AY&&u.sticky,p=jn(SY,u),y=u.source,v=0,b=d;if(h&&(p=Y6e(p,"y",""),q6e(p,"g")===-1&&(p+="g"),b=p5(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&K6e(d,u.lastIndex-1)!==`
187
+ `)&&(y="(?: "+y+")",b=" "+b,v++),n=new RegExp("^(?:"+y+")",p)),y5&&(n=new RegExp("^"+y+"$(?!\\s)",p)),v5&&(r=u.lastIndex),o=jn(V2,h?n:u,b),h?o?(o.input=p5(o.input,v),o[0]=p5(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:v5&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),y5&&o&&o.length>1&&jn(G6e,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&g)for(o.groups=l=M6e(null),a=0;a<g.length;a++)l[(s=g[a])[0]]=o[s[1]];return o});var Ap=m5;x2({target:"RegExp",proto:!0,forced:/./.exec!==Ap},{exec:Ap});var b5=Function.prototype,VY=b5.apply,X6e=b5.bind,BY=b5.call,J6e=typeof Reflect=="object"&&Reflect.apply||(X6e?BY.bind(VY):function(){return BY.apply(VY,arguments)}),Z6e=Ul("species"),w5=RegExp.prototype,Q6e=Ul("match"),$6e=$e.TypeError,eTe=Ul("species"),tTe=pt("".charAt),_Y=pt("".charCodeAt),nTe=pt("".slice),rTe=function(e){return function(t,n){var r,o,a=yi($d(t)),l=a5(n),s=a.length;return l<0||l>=s?e?"":void 0:(r=_Y(a,l))<55296||r>56319||l+1===s||(o=_Y(a,l+1))<56320||o>57343?e?tTe(a,l):r:e?nTe(a,l,l+2):o-56320+(r-55296<<10)+65536}},oTe=rTe(!0),aTe=function(e,t,n){return t+(n?oTe(e,t).length:1)},iTe=$e.Array,lTe=Math.max,TY=function(e,t,n){for(var r,o,a,l,s=i5(e),u=c5(t,s),c=c5(n===void 0?s:n,s),d=iTe(lTe(c-u,0)),f=0;u<c;u++,f++)r=d,o=f,a=e[u],(l=Y_(o))in r?w2.f(r,l,X_(0,a)):r[l]=a;return d.length=f,d},sTe=$e.TypeError,PY=function(e,t){var n=e.exec;if(yr(n)){var r=jn(n,e,t);return r!==null&&Ko(r),r}if(Wl(e)==="RegExp")return jn(Ap,e,t);throw sTe("RegExp#exec called on incompatible receiver")},rf=CY.UNSUPPORTED_Y,uTe=Math.min,NY=[].push,cTe=pt(/./.exec),of=pt(NY),Vp=pt("".slice);(function(e,t,n,r){var o=Ul(e),a=!Mn(function(){var c={};return c[o]=function(){return 7},""[e](c)!=7}),l=a&&!Mn(function(){var c=!1,d=/a/;return(d={}).constructor={},d.constructor[Z6e]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return c=!0,null},d[o](""),!c});if(!a||!l||n){var s=pt(/./[o]),u=function(c,d,f){var g;return g="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(h,p){var y,v,b=yi($d(this)),m=p===void 0?4294967295:p>>>0;if(m===0)return[];if(h===void 0)return[b];if(!vi(y=h)||!((v=y[Q6e])!==void 0?v:Wl(y)=="RegExp"))return jn(d,b,h,m);for(var w,S,C,x=[],k=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),E=0,A=new RegExp(h.source,k+"g");(w=jn(Ap,A,b))&&!((S=A.lastIndex)>E&&(of(x,Vp(b,E,w.index)),w.length>1&&w.index<b.length&&J6e(NY,x,TY(w,1)),C=w[0].length,E=S,x.length>=m));)A.lastIndex===w.index&&A.lastIndex++;return E===b.length?!C&&cTe(A,"")||of(x,""):of(x,Vp(b,E)),x.length>m?TY(x,0,m):x}:"0".split(void 0,0).length?function(h,p){return h===void 0&&p===0?[]:jn(d,this,h,p)}:d,[function(h,p){var y=$d(this),v=h==null?void 0:zq(h,c);return v?jn(v,h,y,p):jn(g,yi(y),h,p)},function(h,p){var y=Ko(this),v=yi(h),b=f(g,y,v,p,g!==d);if(b.done)return b.value;var m=function(P,O){var F,H=Ko(P).constructor;return H===void 0||(F=Ko(H)[eTe])==null?O:function(J){if(aY(J))return J;throw $6e(Mq(J)+" is not a constructor")}(F)}(y,RegExp),w=y.unicode,S=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(rf?"g":"y"),C=new m(rf?"^(?:"+y.source+")":y,S),x=p===void 0?4294967295:p>>>0;if(x===0)return[];if(v.length===0)return PY(C,v)===null?[v]:[];for(var k=0,E=0,A=[];E<v.length;){C.lastIndex=rf?0:E;var N,V=PY(C,rf?Vp(v,E):v);if(V===null||(N=uTe(tY(C.lastIndex+(rf?E:0)),v.length))===k)E=aTe(v,E,w);else{if(of(A,Vp(v,k,E)),A.length===x)return A;for(var D=1;D<=V.length-1;D++)if(of(A,V[D]),A.length===x)return A;E=k=N}}return of(A,Vp(v,k)),A}]}(o,""[e],function(c,d,f,g,h){var p=pt(c),y=d.exec;return y===Ap||y===w5.exec?a&&!h?{done:!0,value:s(d,f,g)}:{done:!0,value:p(f,d,g)}:{done:!1}});xp(String.prototype,e,u[0]),xp(w5,o,u[1])}r&&ef(w5[o],"sham",!0)})("split",0,!!Mn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),rf),x2({global:!0},{globalThis:$e}),oo&&(M.fn.attr=oo);var dTe=Jq.PROPER,S5=RegExp.prototype,OY=S5.toString,fTe=pt(SY),hTe=Mn(function(){return OY.call({source:"a",flags:"b"})!="/a/b"}),gTe=dTe&&OY.name!="toString";(hTe||gTe)&&xp(RegExp.prototype,"toString",function(){var e=Ko(this),t=yi(e.source),n=e.flags;return"/"+t+"/"+yi(n===void 0&&Lq(S5,e)&&!("flags"in S5)?fTe(e):n)},{unsafe:!0});var mTe=function(){function e(){this.title=ge("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(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(l){var s=l.text,u=l.value;n.push({text:s,value:u})});var a=this.getValue(t);return n.forEach(function(l){l.value===a?l.selected=!0:delete l.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!_e.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(a){return a.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};Q.setNodes(t,r,{match:function(o){return R.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=R.getSelectedNodeByType(t,"code");if(n==null)return null;var r=R.getParentNode(t,n);return _e.isElement(r)?r.type!=="pre"?null:n:null},e}(),pTe={renderStyle:function(e,t){var n=e,r=t,o="";return I6e.forEach(function(a){n[a]&&(o=a)}),o&&function(a,l){a.data==null&&(a.data={});var s=a.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:l})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=M(e);if(!_e.isElement(t)||R.getNodeType(t)!=="code")return t;var o=t,a=r.attr("class")||"";return a.indexOf("language-")===0?o.language=a.split("-")[1]||"":o.language=a.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new mTe},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=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},vTe=/"/g,yTe=pt("".replace);x2({target:"String",proto:!0,forced:Mn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=yi($d(this)),r="<a",(r+=' name="'+yTe(yi(t),vTe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var IY=function(e){var t,n,r,o=function(b,m){var w=typeof Symbol=="function"&&b[Symbol.iterator];if(!w)return b;var S,C,x=w.call(b),k=[];try{for(;(m===void 0||m-- >0)&&!(S=x.next()).done;)k.push(S.value)}catch(E){C={error:E}}finally{try{S&&!S.done&&(w=x.return)&&w.call(x)}finally{if(C)throw C.error}}return k}(e,2),a=o[0],l=o[1],s=[],u=function(b){if(!Se.isText(b))return null;var m=R.getParentNode(null,b);if(m&&R.getNodeType(m)==="code"){var w=R.getParentNode(null,m);if(w&&R.getNodeType(w)==="pre")return m}return null}(a);if(u==null)return s;var c=u.language,d=c===void 0?"":c;if(!d)return s;var f=function(b,m){if(!m)return[];var w=bY.languages[m];return w?bY.tokenize(b.text,w):[]}(a,d),g=0;try{for(var h=function(b){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&b[m],S=0;if(w)return w.call(b);if(b&&typeof b.length=="number")return{next:function(){return b&&S>=b.length&&(b=void 0),{value:b&&b[S++],done:!b}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),p=h.next();!p.done;p=h.next()){var y=p.value,v=g+wY(y);typeof y!="string"&&s.push(((r={})[y.type]=!0,r.anchor={path:l,offset:g},r.focus={path:l,offset:v},r)),g=v}}catch(b){t={error:b}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return s},Jt=function(){return Jt=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},Jt.apply(this,arguments)},zn=function(){function e(){throw new Error(`不能实例化
188
188
  Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Jt(Jt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Jt(Jt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Jt(Jt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Jt(Jt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var a=r.key,l=r.factory,s=r.config,u=uo(uo({},s),o||{});if(ag[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");ag[a]=l,function(c,d){d!=null&&(iF[c]=d)}(a,u)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;fR[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){JE.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;sF[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){vE.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){UF.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;D0[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){FE.push(n)})(t)},e.registerModule=function(t){ju(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
189
189
  Copyright (c) Microsoft Corporation.
190
190
 
@@ -198,5 +198,5 @@ Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&
198
198
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
199
199
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
200
200
  PERFORMANCE OF THIS SOFTWARE.
201
- ***************************************************************************** */function ju(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,a=e.styleToHtml,l=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach(function(d){return zn.registerMenu(d)}),n&&n.forEach(function(d){return zn.registerRenderElem(d)}),r&&zn.registerRenderStyle(r),o&&o.forEach(function(d){return zn.registerElemToHtml(d)}),a&&zn.registerStyleToHtml(a),l&&l.forEach(function(d){return zn.registerPreParseHtml(d)}),s&&s.forEach(function(d){return zn.registerParseElemHtml(d)}),u&&zn.registerParseStyleHtml(u),c&&zn.registerPlugin(c)}kke.forEach(function(e){return ju(e)}),ju(eEe),ju(D4e),ju(FBe),ju(A5e),ju(mTe);var FY='<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>',RY={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"]}},yTe={hoverbarKeys:Jt(Jt({},RY),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};zn.setEditorConfig(Jt(Jt({},yTe),{decorate:IY}));var bTe={hoverbarKeys:RY};zn.setSimpleEditorConfig(Jt(Jt({},bTe),{decorate:IY}));var wTe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ge("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:ge("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:ge("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:ge("editor.image"),iconSvg:FY,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ge("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"]};zn.setToolbarConfig(wTe);var STe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ge("editor.image"),iconSvg:FY,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function CTe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,a=e.html,l=e.config,s=l===void 0?{}:l,u=e.mode,c=(u===void 0?"default":u)==="simple"?zn.simpleEditorConfig:zn.editorConfig,d=Jt(Jt({},c.hoverbarKeys||{}),s.hoverbarKeys||{});return Eye({selector:n,config:Jt(Jt(Jt({},c),s),{hoverbarKeys:d}),content:o,html:a,plugins:zn.plugins})}function kTe(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,a=e.mode,l=a===void 0?"default":a;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=l==="simple"?zn.simpleToolbarConfig:zn.toolbarConfig,u=function(c,d){if(c==null)throw new Error("Cannot create toolbar, because editor is null");var f=d.selector,g=d.config,h=g===void 0?{}:g;if(function(v,b){return ZF(v,"data-w-e-toolbar",b)}(c,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var p=uo({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},h||{}),y=new _ye(f,p);return oE.set(y,c),v0.set(c,y),y}(n,{selector:t,config:Jt(Jt({},s),o)});return u}zn.setSimpleToolbarConfig(STe);var xTe=Object.defineProperty,ETe=Object.defineProperties,DTe=Object.getOwnPropertyDescriptors,LY=Object.getOwnPropertySymbols,ATe=Object.prototype.hasOwnProperty,VTe=Object.prototype.propertyIsEnumerable,MY=(e,t,n)=>t in e?xTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BTe=(e,t)=>{for(var n in t||(t={}))ATe.call(t,n)&&MY(e,n,t[n]);if(LY)for(var n of LY(t))VTe.call(t,n)&&MY(e,n,t[n]);return e},_Te=(e,t)=>ETe(e,DTe(t));function Kl(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
202
- Please use '@${e}' event instead of props`,t}var jY=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const TTe=i.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=i.ref(null),r=i.shallowRef(null),o=i.ref(""),a=()=>{if(!n.value)return;const s=i.toRaw(e.defaultContent);CTe({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:_Te(BTe({},e.defaultConfig),{onCreated(u){if(r.value=u,t.emit("onCreated",u),e.defaultConfig.onCreated){const c=Kl("onCreated");throw new Error(c)}},onChange(u){const c=u.getHtml();if(o.value=c,t.emit("update:modelValue",c),t.emit("onChange",u),e.defaultConfig.onChange){const d=Kl("onChange");throw new Error(d)}},onDestroyed(u){if(t.emit("onDestroyed",u),e.defaultConfig.onDestroyed){const c=Kl("onDestroyed");throw new Error(c)}},onMaxLength(u){if(t.emit("onMaxLength",u),e.defaultConfig.onMaxLength){const c=Kl("onMaxLength");throw new Error(c)}},onFocus(u){if(t.emit("onFocus",u),e.defaultConfig.onFocus){const c=Kl("onFocus");throw new Error(c)}},onBlur(u){if(t.emit("onBlur",u),e.defaultConfig.onBlur){const c=Kl("onBlur");throw new Error(c)}},customAlert(u,c){if(t.emit("customAlert",u,c),e.defaultConfig.customAlert){const d=Kl("customAlert");throw new Error(d)}},customPaste:(u,c)=>{if(e.defaultConfig.customPaste){const f=Kl("customPaste");throw new Error(f)}let d;return t.emit("customPaste",u,c,f=>{d=f}),d}})})};function l(s){const u=r.value;u!=null&&u.setHtml(s)}return i.onMounted(()=>{a()}),i.watch(()=>e.modelValue,s=>{s!==o.value&&l(s)}),{box:n}}}),PTe={ref:"box",style:{height:"100%"}};function NTe(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",PTe,null,512)}var OTe=jY(TTe,[["render",NTe]]);const ITe=i.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=i.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");R.getToolbar(r)||kTe({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),FTe={ref:"selector"};function RTe(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",FTe,null,512)}var LTe=jY(ITe,[["render",RTe]]);Jye("en");const MTe={name:"RtRichText",components:{Editor:OTe,Toolbar:LTe},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=i.shallowRef(null),r=i.ref(e.modelValue),o="default",a={excludeKeys:["fontSize","fontFamily","lineHeight"]},l={placeholder:""};i.watch(()=>e.modelValue,p=>{p!==r.value&&(r.value=p)}),i.watch(r,p=>{t("update:modelValue",p)});const s=p=>{n.value=p},u=p=>{console.log("change:",p.getHtml())},c=p=>{console.log("destroyed",p)},d=p=>{console.log("focus",p)},f=p=>{console.log("blur",p)},g=(p,y)=>{alert(`[Custom Alert] ${y} - ${p}`)},h=(p,y,v)=>{console.log("Custom paste event:",y),p.insertText("[Pasted]"),v(!1)};return i.onMounted(()=>{}),i.onBeforeUnmount(()=>{var p;(p=n.value)==null||p.destroy()}),{editorRef:n,valueHtml:r,mode:o,toolbarConfig:a,editorConfig:l,handleCreated:s,handleChange:u,handleDestroyed:c,handleFocus:d,handleBlur:f,customAlert:g,customPaste:h}}},jTe={style:{border:"1px solid #ccc","margin-top":"10px"}};function zTe(e,t,n,r,o,a){const l=i.resolveComponent("Toolbar"),s=i.resolveComponent("Editor");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",jTe,[i.createVNode(l,{editor:r.editorRef,defaultConfig:r.toolbarConfig,mode:r.mode,style:{"border-bottom":"1px solid #ccc"}},null,8,["editor","defaultConfig","mode"]),i.createVNode(s,{defaultConfig:r.editorConfig,mode:r.mode,modelValue:r.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=u=>r.valueHtml=u),style:{height:"400px","overflow-y":"hidden"},onOnCreated:r.handleCreated,onOnChange:r.handleChange,onOnDestroyed:r.handleDestroyed,onOnFocus:r.handleFocus,onOnBlur:r.handleBlur,onCustomAlert:r.customAlert,onCustomPaste:r.customPaste},null,8,["defaultConfig","mode","modelValue","onOnCreated","onOnChange","onOnDestroyed","onOnFocus","onOnBlur","onCustomAlert","onCustomPaste"])])])}const HTe=ke(MTe,[["render",zTe],["__scopeId","data-v-3ba04ad4"]]);return{install:(e,t)=>{e.component("RtAlert",dJ),e.component("RtAvatar",CJ),e.component("RtBadge",VJ),e.component("RtBottomNavigation",MJ),e.component("RtBottomSheet",CZ),e.component("RtBreadcrumbs",NZ),e.component("RtButton",ta),e.component("RtCalendar",FZ),e.component("RtCard",jZ),e.component("RtCheckbox",tQ),e.component("RtColorPicker",OQ),e.component("RtComboBox",E$),e.component("RtConfirmEdit",P$),e.component("RtDateInput",Q$),e.component("RtDatePicker",tee),e.component("RtDialog",oee),e.component("RtDivider",lee),e.component("RtExpansionPanel",gee),e.component("RtFileInput",bee),e.component("RtFloatingButton",Cee),e.component("RtForm",Bee),e.component("RtGrid",Nee),e.component("RtHeader",o8),e.component("RtHover",Zee),e.component("RtIcon",Zu),e.component("RtImage",V6),e.component("RtInfiniteScroll",ite),e.component("RtInput",JS),e.component("RtList",ute),e.component("RtMenu",fte),e.component("RtNavigationDrawer",xte),e.component("RtOtp",Bte),e.component("RtOverlay",Nte),e.component("RtPage",Fte),e.component("RtPagination",Ute),e.component("RtParallax",Xte),e.component("RtPopover",$te),e.component("RtProgressCircle",nne),e.component("RtRadioGroup",cne),e.component("RtRangeSlider",mne),e.component("RtRatings",wne),e.component("RtSelect",t8),e.component("RtSelectAutocomplete",Ene),e.component("RtSheet",Vne),e.component("RtSlider",Tne),e.component("RtSnackbar",Lne),e.component("RtSpeedDial",Wne),e.component("RtStepper",fre),e.component("RtSwitch",vre),e.component("RtSystemBar",kre),e.component("RtTable",goe),e.component("RtTabs",Eoe),e.component("RtTextArea",Voe),e.component("RtTimeline",Foe),e.component("RtTimePicker",Xoe),e.component("RtTimePickerUI",Qoe),e.component("RtToolBar",tae),e.component("RtTreeview",lae),e.component("RtContainer",cae),e.component("RtTooltip",hae),e.component("RtHorizontalRule",vae),e.component("RtButtonGroup",Sae),e.component("RtDialogDynamic",xae),e.component("RtDialogWrapper",Aae),e.component("RtRichText",HTe)}}});
201
+ ***************************************************************************** */function ju(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,a=e.styleToHtml,l=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach(function(d){return zn.registerMenu(d)}),n&&n.forEach(function(d){return zn.registerRenderElem(d)}),r&&zn.registerRenderStyle(r),o&&o.forEach(function(d){return zn.registerElemToHtml(d)}),a&&zn.registerStyleToHtml(a),l&&l.forEach(function(d){return zn.registerPreParseHtml(d)}),s&&s.forEach(function(d){return zn.registerParseElemHtml(d)}),u&&zn.registerParseStyleHtml(u),c&&zn.registerPlugin(c)}xke.forEach(function(e){return ju(e)}),ju(tEe),ju(A4e),ju(RBe),ju(V5e),ju(pTe);var FY='<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>',RY={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"]}},bTe={hoverbarKeys:Jt(Jt({},RY),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};zn.setEditorConfig(Jt(Jt({},bTe),{decorate:IY}));var wTe={hoverbarKeys:RY};zn.setSimpleEditorConfig(Jt(Jt({},wTe),{decorate:IY}));var STe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ge("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:ge("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:ge("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:ge("editor.image"),iconSvg:FY,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ge("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"]};zn.setToolbarConfig(STe);var CTe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ge("editor.image"),iconSvg:FY,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function kTe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,a=e.html,l=e.config,s=l===void 0?{}:l,u=e.mode,c=(u===void 0?"default":u)==="simple"?zn.simpleEditorConfig:zn.editorConfig,d=Jt(Jt({},c.hoverbarKeys||{}),s.hoverbarKeys||{});return Dye({selector:n,config:Jt(Jt(Jt({},c),s),{hoverbarKeys:d}),content:o,html:a,plugins:zn.plugins})}function xTe(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,a=e.mode,l=a===void 0?"default":a;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=l==="simple"?zn.simpleToolbarConfig:zn.toolbarConfig,u=function(c,d){if(c==null)throw new Error("Cannot create toolbar, because editor is null");var f=d.selector,g=d.config,h=g===void 0?{}:g;if(function(v,b){return ZF(v,"data-w-e-toolbar",b)}(c,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var p=uo({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},h||{}),y=new Tye(f,p);return oE.set(y,c),v0.set(c,y),y}(n,{selector:t,config:Jt(Jt({},s),o)});return u}zn.setSimpleToolbarConfig(CTe);var ETe=Object.defineProperty,DTe=Object.defineProperties,ATe=Object.getOwnPropertyDescriptors,LY=Object.getOwnPropertySymbols,VTe=Object.prototype.hasOwnProperty,BTe=Object.prototype.propertyIsEnumerable,MY=(e,t,n)=>t in e?ETe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_Te=(e,t)=>{for(var n in t||(t={}))VTe.call(t,n)&&MY(e,n,t[n]);if(LY)for(var n of LY(t))BTe.call(t,n)&&MY(e,n,t[n]);return e},TTe=(e,t)=>DTe(e,ATe(t));function Kl(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
202
+ Please use '@${e}' event instead of props`,t}var jY=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const PTe=i.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=i.ref(null),r=i.shallowRef(null),o=i.ref(""),a=()=>{if(!n.value)return;const s=i.toRaw(e.defaultContent);kTe({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:TTe(_Te({},e.defaultConfig),{onCreated(u){if(r.value=u,t.emit("onCreated",u),e.defaultConfig.onCreated){const c=Kl("onCreated");throw new Error(c)}},onChange(u){const c=u.getHtml();if(o.value=c,t.emit("update:modelValue",c),t.emit("onChange",u),e.defaultConfig.onChange){const d=Kl("onChange");throw new Error(d)}},onDestroyed(u){if(t.emit("onDestroyed",u),e.defaultConfig.onDestroyed){const c=Kl("onDestroyed");throw new Error(c)}},onMaxLength(u){if(t.emit("onMaxLength",u),e.defaultConfig.onMaxLength){const c=Kl("onMaxLength");throw new Error(c)}},onFocus(u){if(t.emit("onFocus",u),e.defaultConfig.onFocus){const c=Kl("onFocus");throw new Error(c)}},onBlur(u){if(t.emit("onBlur",u),e.defaultConfig.onBlur){const c=Kl("onBlur");throw new Error(c)}},customAlert(u,c){if(t.emit("customAlert",u,c),e.defaultConfig.customAlert){const d=Kl("customAlert");throw new Error(d)}},customPaste:(u,c)=>{if(e.defaultConfig.customPaste){const f=Kl("customPaste");throw new Error(f)}let d;return t.emit("customPaste",u,c,f=>{d=f}),d}})})};function l(s){const u=r.value;u!=null&&u.setHtml(s)}return i.onMounted(()=>{a()}),i.watch(()=>e.modelValue,s=>{s!==o.value&&l(s)}),{box:n}}}),NTe={ref:"box",style:{height:"100%"}};function OTe(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",NTe,null,512)}var ITe=jY(PTe,[["render",OTe]]);const FTe=i.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=i.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");R.getToolbar(r)||xTe({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),RTe={ref:"selector"};function LTe(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("div",RTe,null,512)}var MTe=jY(FTe,[["render",LTe]]);Zye("en");const jTe={name:"RtRichText",components:{Editor:ITe,Toolbar:MTe},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=i.shallowRef(null),r=i.ref(e.modelValue),o="default",a={excludeKeys:["fontSize","fontFamily","lineHeight"]},l={placeholder:""};i.watch(()=>e.modelValue,p=>{p!==r.value&&(r.value=p)}),i.watch(r,p=>{t("update:modelValue",p)});const s=p=>{n.value=p},u=p=>{console.log("change:",p.getHtml())},c=p=>{console.log("destroyed",p)},d=p=>{console.log("focus",p)},f=p=>{console.log("blur",p)},g=(p,y)=>{alert(`[Custom Alert] ${y} - ${p}`)},h=(p,y,v)=>{console.log("Custom paste event:",y),p.insertText("[Pasted]"),v(!1)};return i.onMounted(()=>{}),i.onBeforeUnmount(()=>{var p;(p=n.value)==null||p.destroy()}),{editorRef:n,valueHtml:r,mode:o,toolbarConfig:a,editorConfig:l,handleCreated:s,handleChange:u,handleDestroyed:c,handleFocus:d,handleBlur:f,customAlert:g,customPaste:h}}},zTe={style:{border:"1px solid #ccc","margin-top":"10px"}};function HTe(e,t,n,r,o,a){const l=i.resolveComponent("Toolbar"),s=i.resolveComponent("Editor");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",zTe,[i.createVNode(l,{editor:r.editorRef,defaultConfig:r.toolbarConfig,mode:r.mode,style:{"border-bottom":"1px solid #ccc"}},null,8,["editor","defaultConfig","mode"]),i.createVNode(s,{defaultConfig:r.editorConfig,mode:r.mode,modelValue:r.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=u=>r.valueHtml=u),style:{height:"400px","overflow-y":"hidden"},onOnCreated:r.handleCreated,onOnChange:r.handleChange,onOnDestroyed:r.handleDestroyed,onOnFocus:r.handleFocus,onOnBlur:r.handleBlur,onCustomAlert:r.customAlert,onCustomPaste:r.customPaste},null,8,["defaultConfig","mode","modelValue","onOnCreated","onOnChange","onOnDestroyed","onOnFocus","onOnBlur","onCustomAlert","onCustomPaste"])])])}const UTe=ke(jTe,[["render",HTe],["__scopeId","data-v-3ba04ad4"]]);return{install:(e,t)=>{e.component("RtAlert",dJ),e.component("RtAvatar",CJ),e.component("RtBadge",VJ),e.component("RtBottomNavigation",MJ),e.component("RtBottomSheet",CZ),e.component("RtBreadcrumbs",NZ),e.component("RtButton",ta),e.component("RtCalendar",FZ),e.component("RtCard",jZ),e.component("RtCheckbox",tQ),e.component("RtColorPicker",OQ),e.component("RtComboBox",E$),e.component("RtConfirmEdit",P$),e.component("RtDateInput",Q$),e.component("RtDatePicker",tee),e.component("RtDialog",oee),e.component("RtDivider",lee),e.component("RtExpansionPanel",gee),e.component("RtFileInput",bee),e.component("RtFloatingButton",Cee),e.component("RtForm",Bee),e.component("RtGrid",Nee),e.component("RtHeader",o8),e.component("RtHover",Zee),e.component("RtIcon",Zu),e.component("RtImage",V6),e.component("RtInfiniteScroll",ite),e.component("RtInput",JS),e.component("RtList",ute),e.component("RtMenu",fte),e.component("RtNavigationDrawer",xte),e.component("RtOtp",Bte),e.component("RtOverlay",Nte),e.component("RtPage",Fte),e.component("RtPagination",Ute),e.component("RtParallax",Xte),e.component("RtPopover",$te),e.component("RtProgressCircle",nne),e.component("RtRadioGroup",cne),e.component("RtRangeSlider",mne),e.component("RtRatings",wne),e.component("RtSelect",t8),e.component("RtSelectAutocomplete",Ene),e.component("RtSheet",Vne),e.component("RtSlider",Tne),e.component("RtSnackbar",Lne),e.component("RtSpeedDial",Wne),e.component("RtStepper",fre),e.component("RtSwitch",vre),e.component("RtSystemBar",kre),e.component("RtTable",goe),e.component("RtTabs",Eoe),e.component("RtTextArea",Voe),e.component("RtTimeline",Foe),e.component("RtTimePicker",Xoe),e.component("RtTimePickerUI",Qoe),e.component("RtToolBar",tae),e.component("RtTreeview",lae),e.component("RtContainer",cae),e.component("RtTooltip",hae),e.component("RtHorizontalRule",vae),e.component("RtButtonGroup",Cae),e.component("RtDialogDynamic",Eae),e.component("RtDialogWrapper",Vae),e.component("RtRichText",UTe)}}});