officialblock 1.0.1 → 1.0.2
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.
- package/README.md +25 -1
- package/dist/official-block.cjs.js +186 -1
- package/dist/official-block.es.js +22619 -73
- package/dist/official-block.umd.js +186 -1
- package/dist/style.css +1 -1
- package/package.json +12 -2
- package/src/App.vue +32 -82
- package/src/components/ArticleList/article.vue +73 -0
- package/src/components/ArticleList/contact.vue +95 -0
- package/src/components/ArticleList/index.vue +215 -48
- package/src/components/ArticleList/setting.vue +407 -0
- package/src/components/Button/index.vue +183 -0
- package/src/components/Media/index.vue +327 -0
- package/src/components/Operate/index.vue +74 -0
- package/src/components/RichTextEditor/RichTextEditor.vue +277 -0
- package/src/components/RichTextEditor/index.ts +7 -0
- package/src/components/ThemePreview/ThemePreview.vue +462 -0
- package/src/components/ThemePreview/index.ts +4 -0
- package/src/components/index.ts +3 -0
- package/src/composables/useTheme.ts +205 -0
- package/src/index.ts +15 -4
- package/src/main.ts +16 -1
- package/src/router/index.ts +84 -0
- package/src/style.css +0 -1
- package/src/styles/editor.scss +649 -0
- package/src/styles/test.scss +20 -0
- package/src/styles/variables.scss +639 -0
- package/src/utils/common.ts +13 -0
- package/src/utils/theme.ts +335 -0
- package/src/views/Layout.vue +247 -0
- package/src/views/NotFound.vue +114 -0
- package/src/views/components/ArticleListDemo.vue +167 -0
- package/src/views/components/HeroSlideDemo.vue +353 -0
- package/src/views/components/RichTextEditorDemo.vue +53 -0
- package/src/views/components/ThemeDemo.vue +477 -0
- package/src/views/guide/Installation.vue +234 -0
- package/src/views/guide/Introduction.vue +174 -0
- package/src/views/guide/QuickStart.vue +265 -0
|
@@ -1 +1,186 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h={class:"content"},y=e.defineComponent({name:"ArticleList",__name:"index",props:{size:{default:"medium"},disabled:{type:Boolean,default:!1},modelValue:{}},emits:["update:modelValue","change","focus"],setup(t,{emit:i}){const n=t,a=i,o=e.computed(()=>`Current value: ${n.modelValue}`);function c(){n.disabled||a("change",n.modelValue)}return(l,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["your-component",[`size-${l.size}`,{"is-disabled":l.disabled}]]),onClick:c},[e.renderSlot(l.$slots,"header",{title:o.value},void 0,!0),e.createElementVNode("div",h,[e.renderSlot(l.$slots,"default",{value:l.modelValue},()=>[e.createTextVNode(e.toDisplayString(l.modelValue),1)],!0)])],2))}}),v=(t,i)=>{const n=t.__vccOpts||t;for(const[a,o]of i)n[a]=o;return n},u=v(y,[["__scopeId","data-v-03506405"]]),B={class:"hero-slide"},g={class:"slide-container"},S={key:0,class:"slide-indicators"},V=["onClick"],C=e.defineComponent({name:"HeroSlide",__name:"index",props:{autoPlayInterval:{default:3e3},showIndicators:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!0}},emits:["change","click"],setup(t,{emit:i}){const n=t,a=i,o=e.ref(0),c=e.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let l=null;const p=r=>{o.value=r,a("change",r)},_=()=>{o.value=(o.value+1)%c.value.length,a("change",o.value)},f=()=>{n.autoPlay&&(l=window.setInterval(_,n.autoPlayInterval))},k=()=>{l&&(clearInterval(l),l=null)};return e.onMounted(()=>{f()}),e.onUnmounted(()=>{k()}),(r,I)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(d,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["slide-item",{active:o.value===s}])},[e.createElementVNode("h2",null,e.toDisplayString(d.title),1),e.createElementVNode("p",null,e.toDisplayString(d.description),1)],2))),128))]),r.showIndicators?(e.openBlock(),e.createElementBlock("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(d,s)=>(e.openBlock(),e.createElementBlock("span",{key:s,class:e.normalizeClass(["indicator",{active:o.value===s}]),onClick:L=>p(s)},null,10,V))),128))])):e.createCommentVNode("",!0)]))}}),m=v(C,[["__scopeId","data-v-4198d280"]]),E={install:t=>{t.component("ArticleList",u)}},P={install:t=>{t.component("HeroSlide",m)}},A={install:t=>{t.component("ArticleList",u),t.component("HeroSlide",m)}};exports.ArticleList=u;exports.ArticleListPlugin=E;exports.HeroSlide=m;exports.HeroSlidePlugin=P;exports.default=A;
|
|
1
|
+
"use strict";var qV=Object.defineProperty;var KV=(t,e,r)=>e in t?qV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X8=(t,e,r)=>KV(t,typeof e!="symbol"?e+"":e,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("vue");function Ue(t=16){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}const YV={class:"button-text"},XV={class:"link-text"},ZV=b.defineComponent({__name:"index",props:{type:{type:String,default:"button"},data:{type:Object,default:()=>{}}},setup(t){const e=t,r=()=>{window.open(e.data.url,"_blank")};return console.log("data=====",e.data),(n,o)=>t.type==="button"?(b.openBlock(),b.createElementBlock("div",{key:0,class:"button-primary flex-inline flex-center justify-center",onClick:r},[b.createElementVNode("span",YV,b.toDisplayString(t.data.text),1),o[0]||(o[0]=b.createElementVNode("span",{class:"button-icon"},null,-1))])):(b.openBlock(),b.createElementBlock("div",{key:1,class:"link-button flex-inline flex-center justify-center",onClick:r},[b.createElementVNode("span",XV,b.toDisplayString(t.data.text),1),o[1]||(o[1]=b.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),jo=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},Zw=jo(ZV,[["__scopeId","data-v-e3a7083f"]]),JV={class:"article-item"},QV={class:"article-item-title"},tz=["innerHTML"],ez={class:"article-item-button"},rz={class:"article-item-link"},nz=b.defineComponent({__name:"article",props:{article:{type:Object,default:()=>{}}},setup(t){return(e,r)=>(b.openBlock(),b.createElementBlock("div",JV,[b.createElementVNode("h4",QV,b.toDisplayString(t.article.title),1),b.createElementVNode("div",{class:"editor-content",innerHTML:t.article.content},null,8,tz),b.createElementVNode("div",ez,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.article.buttonList,n=>(b.openBlock(),b.createBlock(Zw,{key:n.id,data:n},null,8,["data"]))),128))]),b.createElementVNode("div",rz,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.article.linkList,n=>(b.openBlock(),b.createBlock(Zw,{key:n.id,data:n,type:"link"},null,8,["data"]))),128))])]))}}),oz=jo(nz,[["__scopeId","data-v-7f3f4d15"]]),iz={class:"contact-item"},az={class:"contact-item-categories"},uz={class:"contact-item-title"},sz=["innerHTML"],lz={class:"contact-item-link"},cz=b.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(t){return(e,r)=>(b.openBlock(),b.createElementBlock("div",iz,[b.createElementVNode("div",az,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.contact.categories,n=>(b.openBlock(),b.createElementBlock("p",{class:"categories",key:n.id},b.toDisplayString(n.text),1))),128))]),b.createElementVNode("h4",uz,b.toDisplayString(t.contact.title),1),b.createElementVNode("div",{class:"editor-content",innerHTML:t.contact.content},null,8,sz),b.createElementVNode("div",lz,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.contact.linkList,n=>(b.openBlock(),b.createBlock(Zw,{key:n.id,data:n,type:"link"},null,8,["data"]))),128))])]))}}),fz=jo(cz,[["__scopeId","data-v-e9c9c007"]]),dz={key:0,class:"image-container"},pz={key:0,class:"image-desc"},hz={key:1,class:"video-container flex-inline flex-center justify-center"},gz=["src"],vz={class:"video-thumbnail flex flex-center justify-center"},mz=["src"],yz={key:2,class:"image-list-container"},bz={key:0,class:"image-preview"},wz={class:"image-list-wrapper"},Ez=["src","onClick"],Cz=b.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(t){var v,h,m;const e=t,r=b.ref(),n=b.ref(!1),o=()=>{var y;(y=r.value)==null||y.play(),n.value=!0},i=b.ref(((m=(h=(v=e.data)==null?void 0:v.imageList)==null?void 0:h[0])==null?void 0:m.src)||""),a=y=>{i.value=y},u=b.ref(null),s=b.ref(!1),l=b.ref(!1),c=()=>{const y=u.value;y&&(s.value=y.scrollLeft>0,l.value=y.scrollLeft+y.clientWidth<y.scrollWidth)},f=()=>{const y=u.value;y&&y.scrollBy({left:-y.clientWidth/1.5,behavior:"smooth"})},d=()=>{const y=u.value;y&&y.scrollBy({left:y.clientWidth/1.5,behavior:"smooth"})},p=()=>{c()};return b.watch(()=>{var y;return(y=e.data)==null?void 0:y.imageList},async()=>{await b.nextTick(),c()}),b.onMounted(()=>{window.addEventListener("resize",c),b.nextTick(c)}),b.onUnmounted(()=>{window.removeEventListener("resize",c)}),(y,g)=>{const w=b.resolveComponent("a-image"),E=b.resolveComponent("icon-caret-right");return b.openBlock(),b.createElementBlock(b.Fragment,null,[t.type==="Image"?(b.openBlock(),b.createElementBlock("div",dz,[b.createVNode(w,{class:"image",src:t.data.imgSrc,preview:t.preview,alt:t.data.alt,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview","alt"]),t.data.caption?(b.openBlock(),b.createElementBlock("p",pz,b.toDisplayString(t.data.caption),1)):b.createCommentVNode("",!0)])):b.createCommentVNode("",!0),t.type==="Video"?(b.openBlock(),b.createElementBlock("div",hz,[b.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:r,src:t.data.videoSrc,controls:""},null,8,gz),n.value?b.createCommentVNode("",!0):(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.createElementVNode("div",vz,[b.createElementVNode("img",{src:t.data.imgSrc},null,8,mz)]),b.createElementVNode("div",{class:"play-button flex flex-center justify-center",onClick:o},[b.createVNode(E,{style:{color:"#fff"}})])],64))])):b.createCommentVNode("",!0),t.type==="ImageList"?(b.openBlock(),b.createElementBlock("div",yz,[i.value?(b.openBlock(),b.createElementBlock("div",bz,[b.createVNode(w,{class:"image",src:i.value,preview:t.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):b.createCommentVNode("",!0),b.createElementVNode("div",wz,[b.withDirectives(b.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:f}," ‹ ",512),[[b.vShow,s.value]]),b.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:u,onScroll:p},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.data.imageList,x=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:x.id},[x.src?(b.openBlock(),b.createElementBlock("img",{key:0,class:"image",src:x.src,onClick:D=>a(x.src)},null,8,Ez)):b.createCommentVNode("",!0)],64))),128))],544),b.withDirectives(b.createElementVNode("div",{class:"thumbnail__nav__next",onClick:d}," › ",512),[[b.vShow,l.value]])])])):b.createCommentVNode("",!0)],64)}}}),xz=jo(Cz,[["__scopeId","data-v-07c1a741"]]);var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sz(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ns(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ci,Bg,Ch=function(t){return t&&t.Math==Math&&t},Bt=Ch(typeof globalThis=="object"&&globalThis)||Ch(typeof window=="object"&&window)||Ch(typeof self=="object"&&self)||Ch(typeof ue=="object"&&ue)||function(){return this}()||Function("return this")(),Nx=Function.prototype,Z8=Nx.apply,Dz=Nx.bind,J8=Nx.call,WT=typeof Reflect=="object"&&Reflect.apply||(Dz?J8.bind(Z8):function(){return J8.apply(Z8,arguments)}),GT=Function.prototype,Jw=GT.bind,Qw=GT.call,Az=Jw&&Jw.bind(Qw),he=Jw?function(t){return t&&Az(Qw,t)}:function(t){return t&&function(){return Qw.apply(t,arguments)}},hr=function(t){return typeof t=="function"},qr=function(t){try{return!!t()}catch{return!0}},Hr=!qr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Cc=Function.prototype.call,rn=Cc.bind?Cc.bind(Cc):function(){return Cc.apply(Cc,arguments)},Q8={}.propertyIsEnumerable,tS=Object.getOwnPropertyDescriptor,Oz=tS&&!Q8.call({1:2},1)?function(t){var e=tS(this,t);return!!e&&e.enumerable}:Q8,jx={f:Oz},qn=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},kz=he({}.toString),Bz=he("".slice),mu=function(t){return Bz(kz(t),8,-1)},_y=Bt.Object,_z=he("".split),qT=qr(function(){return!_y("z").propertyIsEnumerable(0)})?function(t){return mu(t)=="String"?_z(t,""):_y(t)}:_y,Fz=Bt.TypeError,Ix=function(t){if(t==null)throw Fz("Can't call method on "+t);return t},Io=function(t){return qT(Ix(t))},xn=function(t){return typeof t=="object"?t!==null:hr(t)},tn={},eS=function(t){return hr(t)?t:void 0},Jl=function(t,e){return arguments.length<2?eS(tn[t])||eS(Bt[t]):tn[t]&&tn[t][e]||Bt[t]&&Bt[t][e]},Sd=he({}.isPrototypeOf),Fy=Jl("navigator","userAgent")||"",rS=Bt.process,nS=Bt.Deno,oS=rS&&rS.versions||nS&&nS.version,iS=oS&&oS.v8;iS&&(Bg=(Ci=iS.split("."))[0]>0&&Ci[0]<4?1:+(Ci[0]+Ci[1])),!Bg&&Fy&&(!(Ci=Fy.match(/Edge\/(\d+)/))||Ci[1]>=74)&&(Ci=Fy.match(/Chrome\/(\d+)/))&&(Bg=+Ci[1]);var xh,lv=Bg,fo=!!Object.getOwnPropertySymbols&&!qr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&lv&&lv<41}),Lx=fo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Tz=Bt.Object,cl=Lx?function(t){return typeof t=="symbol"}:function(t){var e=Jl("Symbol");return hr(e)&&Sd(e.prototype,Tz(t))},Pz=Bt.String,tE=function(t){try{return Pz(t)}catch{return"Object"}},Nz=Bt.TypeError,Rx=function(t){if(hr(t))return t;throw Nz(tE(t)+" is not a function")},cv=function(t,e){var r=t[e];return r==null?void 0:Rx(r)},jz=Bt.TypeError,Iz=Object.defineProperty,Zi=Bt["__core-js_shared__"]||function(t,e){try{Iz(Bt,t,{value:e,configurable:!0,writable:!0})}catch{Bt[t]=e}return e}("__core-js_shared__",{}),os=ns(function(t){(t.exports=function(e,r){return Zi[e]||(Zi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Lz=Bt.Object,Cp=function(t){return Lz(Ix(t))},Rz=he({}.hasOwnProperty),Ut=Object.hasOwn||function(t,e){return Rz(Cp(t),e)},Mz=0,Vz=Math.random(),zz=he(1 .toString),fv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+zz(++Mz+Vz,36)},xc=os("wks"),yu=Bt.Symbol,aS=yu&&yu.for,$z=Lx?yu:yu&&yu.withoutSetter||fv,Br=function(t){if(!Ut(xc,t)||!fo&&typeof xc[t]!="string"){var e="Symbol."+t;fo&&Ut(yu,t)?xc[t]=yu[t]:xc[t]=Lx&&aS?aS(e):$z(e)}return xc[t]},Hz=Bt.TypeError,Uz=Br("toPrimitive"),Wz=function(t,e){if(!xn(t)||cl(t))return t;var r,n=cv(t,Uz);if(n){if(r=rn(n,t,e),!xn(r)||cl(r))return r;throw Hz("Can't convert object to primitive value")}return function(o,i){var a,u;if(hr(a=o.toString)&&!xn(u=rn(a,o))||hr(a=o.valueOf)&&!xn(u=rn(a,o)))return u;throw jz("Can't convert object to primitive value")}(t)},Ql=function(t){var e=Wz(t,"string");return cl(e)?e:e+""},eE=Bt.document,Gz=xn(eE)&&xn(eE.createElement),KT=function(t){return Gz?eE.createElement(t):{}},YT=!Hr&&!qr(function(){return Object.defineProperty(KT("div"),"a",{get:function(){return 7}}).a!=7}),uS=Object.getOwnPropertyDescriptor,qz=Hr?uS:function(t,e){if(t=Io(t),e=Ql(e),YT)try{return uS(t,e)}catch{}if(Ut(t,e))return qn(!rn(jx.f,t,e),t[e])},Em={f:qz},Kz=/#|\.prototype\./,xp=function(t,e){var r=Xz[Yz(t)];return r==Jz||r!=Zz&&(hr(e)?qr(e):!!e)},Yz=xp.normalize=function(t){return String(t).replace(Kz,".").toLowerCase()},Xz=xp.data={},Zz=xp.NATIVE="N",Jz=xp.POLYFILL="P",Qz=xp,sS=he(he.bind),Mx=function(t,e){return Rx(t),e===void 0?t:sS?sS(t,e):function(){return t.apply(e,arguments)}},t$=Bt.String,e$=Bt.TypeError,an=function(t){if(xn(t))return t;throw e$(t$(t)+" is not an object")},r$=Bt.TypeError,lS=Object.defineProperty,n$=Hr?lS:function(t,e,r){if(an(t),e=Ql(e),an(r),YT)try{return lS(t,e,r)}catch{}if("get"in r||"set"in r)throw r$("Accessors not supported");return"value"in r&&(t[e]=r.value),t},_a={f:n$},Tr=Hr?function(t,e,r){return _a.f(t,e,qn(1,r))}:function(t,e,r){return t[e]=r,t},o$=Em.f,i$=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return WT(t,this,arguments)};return e.prototype=t.prototype,e},Xo=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Bt:d?Bt[c]:(Bt[c]||{}).prototype,h=f?tn:tn[c]||Tr(tn,c,{})[c],m=h.prototype;for(o in e)r=!Qz(f?o:c+(d?".":"#")+o,t.forced)&&v&&Ut(v,o),a=h[o],r&&(u=t.noTargetGet?(l=o$(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?Mx(i,Bt):t.wrap&&r?i$(i):p&&hr(i)?he(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Tr(s,"sham",!0),Tr(h,o,s),p&&(Ut(tn,n=c+"Prototype")||Tr(tn,n,{}),Tr(tn[n],o,i),t.real&&m&&!m[o]&&Tr(m,o,i)))},cS=os("keys"),Cm=function(t){return cS[t]||(cS[t]=fv(t))},a$=!qr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),fS=Cm("IE_PROTO"),rE=Bt.Object,u$=rE.prototype,dv=a$?rE.getPrototypeOf:function(t){var e=Cp(t);if(Ut(e,fS))return e[fS];var r=e.constructor;return hr(r)&&e instanceof r?r.prototype:e instanceof rE?u$:null},s$=Bt.String,l$=Bt.TypeError,pv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=he(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return an(n),function(i){if(typeof i=="object"||hr(i))return i;throw l$("Can't set "+s$(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),c$=Math.ceil,f$=Math.floor,Vx=function(t){var e=+t;return e!=e||e===0?0:(e>0?f$:c$)(e)},d$=Math.max,p$=Math.min,nE=function(t,e){var r=Vx(t);return r<0?d$(r+e,0):p$(r,e)},h$=Math.min,Sp=function(t){return(e=t.length)>0?h$(Vx(e),9007199254740991):0;var e},g$=function(t){return function(e,r,n){var o,i=Io(e),a=Sp(i),u=nE(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},v$={indexOf:g$(!1)},Dp={},m$=v$.indexOf,dS=he([].push),XT=function(t,e){var r,n=Io(t),o=0,i=[];for(r in n)!Ut(Dp,r)&&Ut(n,r)&&dS(i,r);for(;e.length>o;)Ut(n,r=e[o++])&&(~m$(i,r)||dS(i,r));return i},hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],y$=hv.concat("length","prototype"),b$=Object.getOwnPropertyNames||function(t){return XT(t,y$)},zx={f:b$},_g={f:Object.getOwnPropertySymbols},w$=he([].concat),E$=Jl("Reflect","ownKeys")||function(t){var e=zx.f(an(t)),r=_g.f;return r?w$(e,r(t)):e},$x=Object.keys||function(t){return XT(t,hv)},C$=Hr?Object.defineProperties:function(t,e){an(t);for(var r,n=Io(e),o=$x(e),i=o.length,a=0;i>a;)_a.f(t,r=o[a++],n[r]);return t},x$=Jl("document","documentElement"),ZT=Cm("IE_PROTO"),Ty=function(){},JT=function(t){return"<script>"+t+"<\/script>"},pS=function(t){t.write(JT("")),t.close();var e=t.parentWindow.Object;return t=null,e},Fg=function(){try{xh=new ActiveXObject("htmlfile")}catch{}var t,e;Fg=typeof document<"u"?document.domain&&xh?pS(xh):((e=KT("iframe")).style.display="none",x$.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(JT("document.F=Object")),t.close(),t.F):pS(xh);for(var r=hv.length;r--;)delete Fg.prototype[hv[r]];return Fg()};Dp[ZT]=!0;var si=Object.create||function(t,e){var r;return t!==null?(Ty.prototype=an(t),r=new Ty,Ty.prototype=null,r[ZT]=t):r=Fg(),e===void 0?r:C$(r,e)},oE=function(t,e,r){var n=Ql(e);n in t?_a.f(t,n,qn(0,r)):t[n]=r},S$=Bt.Array,D$=Math.max,QT=function(t,e,r){for(var n=Sp(t),o=nE(e,n),i=nE(n,n),a=S$(D$(i-o,0)),u=0;o<i;o++,u++)oE(a,u,t[o]);return a.length=u,a},A$=he("".replace),O$=he("".split),k$=he([].join),iE=String(Error("zxcasd").stack),tP=/\n\s*at [^:]*:[^\n]*/,B$=tP.test(iE),_$=/@[^\n]*\n/.test(iE)&&!/zxcasd/.test(iE),F$=function(t,e){if(typeof t!="string")return t;if(B$)for(;e--;)t=A$(t,tP,"");else if(_$)return k$(QT(O$(t,`
|
|
2
|
+
`),e),`
|
|
3
|
+
`);return t},T$=function(t,e){xn(e)&&"cause"in e&&Tr(t,"cause",e.cause)},oi={},P$=Br("iterator"),N$=Array.prototype,eP={};eP[Br("toStringTag")]="z";var Hx=String(eP)==="[object z]",j$=Br("toStringTag"),I$=Bt.Object,L$=mu(function(){return arguments}())=="Arguments",Ap=Hx?mu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=I$(t),j$))=="string"?r:L$?mu(e):(n=mu(e))=="Object"&&hr(e.callee)?"Arguments":n},R$=Br("iterator"),hS=function(t){if(t!=null)return cv(t,R$)||cv(t,"@@iterator")||oi[Ap(t)]},M$=Bt.TypeError,gS=function(t,e,r){var n,o;an(t);try{if(!(n=cv(t,"return"))){if(e==="throw")throw r;return r}n=rn(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return an(n),r},V$=Bt.TypeError,Tg=function(t,e){this.stopped=t,this.result=e},vS=Tg.prototype,z$=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Mx(e,c),h=function(y){return n&&gS(n,"normal",y),new Tg(!0,y)},m=function(y){return f?(an(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(d)n=t;else{if(!(o=hS(t)))throw V$(tE(t)+" is not iterable");if(function(y){return y!==void 0&&(oi.Array===y||N$[P$]===y)}(o)){for(i=0,a=Sp(t);a>i;i++)if((u=m(t[i]))&&Sd(vS,u))return u;return new Tg(!1)}n=function(y,g){var w=arguments.length<2?hS(y):g;if(Rx(w))return an(rn(w,y));throw M$(tE(y)+" is not iterable")}(t,o)}for(s=n.next;!(l=rn(s,n)).done;){try{u=m(l.value)}catch(y){gS(n,"throw",y)}if(typeof u=="object"&&u&&Sd(vS,u))return u}return new Tg(!1)},$$=Bt.String,Dd=function(t){if(Ap(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $$(t)},H$=function(t,e){return t===void 0?arguments.length<2?"":e:Dd(t)},U$=!qr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",qn(1,7)),t.stack!==7)}),W$=Br("toStringTag"),gv=Bt.Error,G$=[].push,Ad=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=Sd(Py,this);pv?r=pv(new gv(void 0),o?dv(this):Py):(r=o?this:si(Py),Tr(r,W$,"Error")),Tr(r,"message",H$(e,"")),U$&&Tr(r,"stack",F$(r.stack,1)),T$(r,n);var i=[];return z$(t,G$,{that:i}),Tr(r,"errors",i),r};pv?pv(Ad,gv):function(t,e){for(var r=E$(e),n=_a.f,o=Em.f,i=0;i<r.length;i++){var a=r[i];Ut(t,a)||n(t,a,o(e,a))}}(Ad,gv);var Py=Ad.prototype=si(gv.prototype,{constructor:qn(1,Ad),message:qn(1,""),name:qn(1,"AggregateError")});Xo({global:!0},{AggregateError:Ad});var q$=he(Function.toString);hr(Zi.inspectSource)||(Zi.inspectSource=function(t){return q$(t)});var vv,td,mv,rP=Zi.inspectSource,mS=Bt.WeakMap,K$=hr(mS)&&/native code/.test(rP(mS)),aE=Bt.TypeError,Y$=Bt.WeakMap;if(K$||Zi.state){var $a=Zi.state||(Zi.state=new Y$),X$=he($a.get),yS=he($a.has),Z$=he($a.set);vv=function(t,e){if(yS($a,t))throw new aE("Object already initialized");return e.facade=t,Z$($a,t,e),e},td=function(t){return X$($a,t)||{}},mv=function(t){return yS($a,t)}}else{var ws=Cm("state");Dp[ws]=!0,vv=function(t,e){if(Ut(t,ws))throw new aE("Object already initialized");return e.facade=t,Tr(t,ws,e),e},td=function(t){return Ut(t,ws)?t[ws]:{}},mv=function(t){return Ut(t,ws)}}var Wi,bS,wS,tc={set:vv,get:td,has:mv,enforce:function(t){return mv(t)?td(t):vv(t,{})},getterFor:function(t){return function(e){var r;if(!xn(e)||(r=td(e)).type!==t)throw aE("Incompatible receiver, "+t+" required");return r}}},nP=Function.prototype,J$=Hr&&Object.getOwnPropertyDescriptor,ES=Ut(nP,"name"),Q$={PROPER:ES&&(function(){}).name==="something",CONFIGURABLE:ES&&(!Hr||Hr&&J$(nP,"name").configurable)},yv=function(t,e,r,n){Tr(t,e,r)},uE=Br("iterator"),oP=!1;[].keys&&("next"in(wS=[].keys())?(bS=dv(dv(wS)))!==Object.prototype&&(Wi=bS):oP=!0);var tH=Wi==null||qr(function(){var t={};return Wi[uE].call(t)!==t});Wi=tH?{}:si(Wi),hr(Wi[uE])||yv(Wi,uE,function(){return this});var iP={IteratorPrototype:Wi,BUGGY_SAFARI_ITERATORS:oP},eH=Hx?{}.toString:function(){return"[object "+Ap(this)+"]"},rH=_a.f,CS=Br("toStringTag"),bv=function(t,e,r,n){if(t){var o=r?t:t.prototype;Ut(o,CS)||rH(o,CS,{configurable:!0,value:e}),n&&!Hx&&Tr(o,"toString",eH)}},nH=iP.IteratorPrototype,oH=function(){return this},iH=Q$.PROPER,Ny=iP.BUGGY_SAFARI_ITERATORS,aH=Br("iterator"),uH=function(){return this},aP=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=si(nH,{next:qn(1,g)}),bv(m,E,!1,!0),oi[E]=oH})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!Ny&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[aH]||d["@@iterator"]||o&&d[o],v=!Ny&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=dv(h.call(new t)))!==Object.prototype&&u.next&&(bv(u,c,!0,!0),oi[c]=uH),iH&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return rn(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Xo({target:e,proto:!0,forced:Ny||f},s)),oi[e]=v,s},sH=tc.set,lH=tc.getterFor("Array Iterator");aP(Array,"Array",function(t,e){sH(this,{type:"Array Iterator",target:Io(t),index:0,kind:e})},function(){var t=lH(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),oi.Arguments=oi.Array;var cH=he("".charAt),xS=he("".charCodeAt),fH=he("".slice),dH=function(t){return function(e,r){var n,o,i=Dd(Ix(e)),a=Vx(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=xS(i,a))<55296||n>56319||a+1===u||(o=xS(i,a+1))<56320||o>57343?t?cH(i,a):n:t?fH(i,a,a+2):o-56320+(n-55296<<10)+65536}},pH={charAt:dH(!0)}.charAt,hH=tc.set,gH=tc.getterFor("String Iterator");aP(String,"String",function(t){hH(this,{type:"String Iterator",string:Dd(t),index:0})},function(){var t,e=gH(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=pH(r,n),e.index+=t.length,{value:t,done:!1})});var vH=tn.AggregateError,SS=Br("toStringTag");for(var jy 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 DS=Bt[jy],Iy=DS&&DS.prototype;Iy&&Ap(Iy)!==SS&&Tr(Iy,SS,jy),oi[jy]=oi.Array}var xi,Pg,mH=vH,Sh=function(t){return t&&t.Math==Math&&t},Ct=Sh(typeof globalThis=="object"&&globalThis)||Sh(typeof window=="object"&&window)||Sh(typeof self=="object"&&self)||Sh(typeof ue=="object"&&ue)||function(){return this}()||Function("return this")(),lr=function(t){try{return!!t()}catch{return!0}},ko=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Sc=Function.prototype.call,pr=Sc.bind?Sc.bind(Sc):function(){return Sc.apply(Sc,arguments)},AS={}.propertyIsEnumerable,OS=Object.getOwnPropertyDescriptor,yH=OS&&!AS.call({1:2},1)?function(t){var e=OS(this,t);return!!e&&e.enumerable}:AS,bH={f:yH},Ji=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},uP=Function.prototype,sE=uP.bind,lE=uP.call,wH=sE&&sE.bind(lE),ne=sE?function(t){return t&&wH(lE,t)}:function(t){return t&&function(){return lE.apply(t,arguments)}},EH=ne({}.toString),CH=ne("".slice),bu=function(t){return CH(EH(t),8,-1)},Ly=Ct.Object,xH=ne("".split),sP=lr(function(){return!Ly("z").propertyIsEnumerable(0)})?function(t){return bu(t)=="String"?xH(t,""):Ly(t)}:Ly,SH=Ct.TypeError,xm=function(t){if(t==null)throw SH("Can't call method on "+t);return t},ec=function(t){return sP(xm(t))},rr=function(t){return typeof t=="function"},yo=function(t){return typeof t=="object"?t!==null:rr(t)},DH=function(t){return rr(t)?t:void 0},Op=function(t,e){return arguments.length<2?DH(Ct[t]):Ct[t]&&Ct[t][e]},wv=ne({}.isPrototypeOf),Ry=Op("navigator","userAgent")||"",kS=Ct.process,BS=Ct.Deno,_S=kS&&kS.versions||BS&&BS.version,FS=_S&&_S.v8;FS&&(Pg=(xi=FS.split("."))[0]>0&&xi[0]<4?1:+(xi[0]+xi[1])),!Pg&&Ry&&(!(xi=Ry.match(/Edge\/(\d+)/))||xi[1]>=74)&&(xi=Ry.match(/Chrome\/(\d+)/))&&(Pg=+xi[1]);var TS=Pg,cE=!!Object.getOwnPropertySymbols&&!lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&TS&&TS<41}),Ux=cE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",AH=Ct.Object,fE=Ux?function(t){return typeof t=="symbol"}:function(t){var e=Op("Symbol");return rr(e)&&wv(e.prototype,AH(t))},OH=Ct.String,dE=function(t){try{return OH(t)}catch{return"Object"}},kH=Ct.TypeError,Wx=function(t){if(rr(t))return t;throw kH(dE(t)+" is not a function")},Od=function(t,e){var r=t[e];return r==null?void 0:Wx(r)},BH=Ct.TypeError,_H=Object.defineProperty,Gx=function(t,e){try{_H(Ct,t,{value:e,configurable:!0,writable:!0})}catch{Ct[t]=e}return e},Qi=Ct["__core-js_shared__"]||Gx("__core-js_shared__",{}),qx=ns(function(t){(t.exports=function(e,r){return Qi[e]||(Qi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),FH=Ct.Object,Kx=function(t){return FH(xm(t))},TH=ne({}.hasOwnProperty),Ur=Object.hasOwn||function(t,e){return TH(Kx(t),e)},PH=0,NH=Math.random(),jH=ne(1 .toString),lP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+jH(++PH+NH,36)},Dc=qx("wks"),wu=Ct.Symbol,PS=wu&&wu.for,IH=Ux?wu:wu&&wu.withoutSetter||lP,jr=function(t){if(!Ur(Dc,t)||!cE&&typeof Dc[t]!="string"){var e="Symbol."+t;cE&&Ur(wu,t)?Dc[t]=wu[t]:Dc[t]=Ux&&PS?PS(e):IH(e)}return Dc[t]},LH=Ct.TypeError,RH=jr("toPrimitive"),MH=function(t,e){if(!yo(t)||fE(t))return t;var r,n=Od(t,RH);if(n){if(r=pr(n,t,e),!yo(r)||fE(r))return r;throw LH("Can't convert object to primitive value")}return function(o,i){var a,u;if(rr(a=o.toString)&&!yo(u=pr(a,o))||rr(a=o.valueOf)&&!yo(u=pr(a,o)))return u;throw BH("Can't convert object to primitive value")}(t)},Yx=function(t){var e=MH(t,"string");return fE(e)?e:e+""},pE=Ct.document,VH=yo(pE)&&yo(pE.createElement),Xx=function(t){return VH?pE.createElement(t):{}},cP=!ko&&!lr(function(){return Object.defineProperty(Xx("div"),"a",{get:function(){return 7}}).a!=7}),NS=Object.getOwnPropertyDescriptor,zH=ko?NS:function(t,e){if(t=ec(t),e=Yx(e),cP)try{return NS(t,e)}catch{}if(Ur(t,e))return Ji(!pr(bH.f,t,e),t[e])},Zx={f:zH},$H=Ct.String,HH=Ct.TypeError,un=function(t){if(yo(t))return t;throw HH($H(t)+" is not an object")},UH=Ct.TypeError,jS=Object.defineProperty,WH=ko?jS:function(t,e,r){if(un(t),e=Yx(e),un(r),cP)try{return jS(t,e,r)}catch{}if("get"in r||"set"in r)throw UH("Accessors not supported");return"value"in r&&(t[e]=r.value),t},rc={f:WH},zr=ko?function(t,e,r){return rc.f(t,e,Ji(1,r))}:function(t,e,r){return t[e]=r,t},GH=ne(Function.toString);rr(Qi.inspectSource)||(Qi.inspectSource=function(t){return GH(t)});var Ev,ed,Cv,Jx=Qi.inspectSource,IS=Ct.WeakMap,qH=rr(IS)&&/native code/.test(Jx(IS)),LS=qx("keys"),Qx=function(t){return LS[t]||(LS[t]=lP(t))},t6={},hE=Ct.TypeError,KH=Ct.WeakMap;if(qH||Qi.state){var Ha=Qi.state||(Qi.state=new KH),YH=ne(Ha.get),RS=ne(Ha.has),XH=ne(Ha.set);Ev=function(t,e){if(RS(Ha,t))throw new hE("Object already initialized");return e.facade=t,XH(Ha,t,e),e},ed=function(t){return YH(Ha,t)||{}},Cv=function(t){return RS(Ha,t)}}else{var Es=Qx("state");t6[Es]=!0,Ev=function(t,e){if(Ur(t,Es))throw new hE("Object already initialized");return e.facade=t,zr(t,Es,e),e},ed=function(t){return Ur(t,Es)?t[Es]:{}},Cv=function(t){return Ur(t,Es)}}var zu={set:Ev,get:ed,has:Cv,enforce:function(t){return Cv(t)?ed(t):Ev(t,{})},getterFor:function(t){return function(e){var r;if(!yo(e)||(r=ed(e)).type!==t)throw hE("Incompatible receiver, "+t+" required");return r}}},fP=Function.prototype,ZH=ko&&Object.getOwnPropertyDescriptor,MS=Ur(fP,"name"),e6={PROPER:MS&&(function(){}).name==="something",CONFIGURABLE:MS&&(!ko||ko&&ZH(fP,"name").configurable)},$u=ns(function(t){var e=e6.CONFIGURABLE,r=zu.get,n=zu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;rr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ur(u,"name")||e&&u.name!==p)&&zr(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ct?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zr(i,a,u)):f?i[a]=u:Gx(a,u)})(Function.prototype,"toString",function(){return rr(this)&&r(this).source||Jx(this)})}),JH=Math.ceil,QH=Math.floor,r6=function(t){var e=+t;return e!=e||e===0?0:(e>0?QH:JH)(e)},tU=Math.max,eU=Math.min,gE=function(t,e){var r=r6(t);return r<0?tU(r+e,0):eU(r,e)},rU=Math.min,dP=function(t){return t>0?rU(r6(t),9007199254740991):0},Sm=function(t){return dP(t.length)},nU=function(t){return function(e,r,n){var o,i=ec(e),a=Sm(i),u=gE(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},oU={indexOf:nU(!1)}.indexOf,VS=ne([].push),pP=function(t,e){var r,n=ec(t),o=0,i=[];for(r in n)!Ur(t6,r)&&Ur(n,r)&&VS(i,r);for(;e.length>o;)Ur(n,r=e[o++])&&(~oU(i,r)||VS(i,r));return i},xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iU=xv.concat("length","prototype"),aU=Object.getOwnPropertyNames||function(t){return pP(t,iU)},uU={f:aU},sU={f:Object.getOwnPropertySymbols},lU=ne([].concat),cU=Op("Reflect","ownKeys")||function(t){var e=uU.f(un(t)),r=sU.f;return r?lU(e,r(t)):e},hP=function(t,e){for(var r=cU(e),n=rc.f,o=Zx.f,i=0;i<r.length;i++){var a=r[i];Ur(t,a)||n(t,a,o(e,a))}},fU=/#|\.prototype\./,kp=function(t,e){var r=pU[dU(t)];return r==gU||r!=hU&&(rr(e)?lr(e):!!e)},dU=kp.normalize=function(t){return String(t).replace(fU,".").toLowerCase()},pU=kp.data={},hU=kp.NATIVE="N",gU=kp.POLYFILL="P",vU=kp,mU=Zx.f,Bp=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Ct:l?Ct[u]||Gx(u,{}):(Ct[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=mU(r,n))&&a.value:r[n],!vU(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;hP(i,o)}(t.sham||o&&o.sham)&&zr(i,"sham",!0),$u(r,n,i,t)}},gP={};gP[jr("toStringTag")]="z";var Dh,n6=String(gP)==="[object z]",yU=jr("toStringTag"),bU=Ct.Object,wU=bu(function(){return arguments}())=="Arguments",Dm=n6?bu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=bU(t),yU))=="string"?r:wU?bu(e):(n=bu(e))=="Object"&&rr(e.callee)?"Arguments":n},EU=Ct.String,Eu=function(t){if(Dm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return EU(t)},CU=function(){var t=un(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},o6=Ct.RegExp,vP=lr(function(){var t=o6("a","y");return t.lastIndex=2,t.exec("abcd")!=null});vP||lr(function(){return!o6("a","y").sticky});var xU=vP||lr(function(){var t=o6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),SU={BROKEN_CARET:xU},DU=Object.keys||function(t){return pP(t,xv)},AU=ko?Object.defineProperties:function(t,e){un(t);for(var r,n=ec(e),o=DU(e),i=o.length,a=0;i>a;)rc.f(t,r=o[a++],n[r]);return t},OU=Op("document","documentElement"),mP=Qx("IE_PROTO"),My=function(){},yP=function(t){return"<script>"+t+"<\/script>"},zS=function(t){t.write(yP("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ng=function(){try{Dh=new ActiveXObject("htmlfile")}catch{}var t,e;Ng=typeof document<"u"?document.domain&&Dh?zS(Dh):((e=Xx("iframe")).style.display="none",OU.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(yP("document.F=Object")),t.close(),t.F):zS(Dh);for(var r=xv.length;r--;)delete Ng.prototype[xv[r]];return Ng()};t6[mP]=!0;var $S,Vy,_p=Object.create||function(t,e){var r;return t!==null?(My.prototype=un(t),r=new My,My.prototype=null,r[mP]=t):r=Ng(),e===void 0?r:AU(r,e)},kU=Ct.RegExp,BU=lr(function(){var t=kU(".","s");return!(t.dotAll&&t.exec(`
|
|
4
|
+
`)&&t.flags==="s")}),_U=Ct.RegExp,FU=lr(function(){var t=_U("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),TU=zu.get,PU=qx("native-string-replace",String.prototype.replace),Sv=RegExp.prototype.exec,vE=Sv,NU=ne("".charAt),jU=ne("".indexOf),IU=ne("".replace),zy=ne("".slice),$y=(Vy=/b*/g,pr(Sv,$S=/a/,"a"),pr(Sv,Vy,"a"),$S.lastIndex!==0||Vy.lastIndex!==0),HS=SU.BROKEN_CARET,Hy=/()??/.exec("")[1]!==void 0;($y||Hy||HS||BU||FU)&&(vE=function(t){var e,r,n,o,i,a,u,s=this,l=TU(s),c=Eu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=pr(vE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=HS&&s.sticky,v=pr(CU,s),h=s.source,m=0,y=c;if(p&&(v=IU(v,"y",""),jU(v,"g")===-1&&(v+="g"),y=zy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&NU(c,s.lastIndex-1)!==`
|
|
5
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),Hy&&(r=new RegExp("^"+h+"$(?!\\s)",v)),$y&&(n=s.lastIndex),o=pr(Sv,p?r:s,y),p?o?(o.input=zy(o.input,m),o[0]=zy(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$y&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Hy&&o&&o.length>1&&pr(PU,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=_p(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Dv=vE;Bp({target:"RegExp",proto:!0,forced:/./.exec!==Dv},{exec:Dv});var LU=jr("species"),US=RegExp.prototype,RU=ne("".charAt),WS=ne("".charCodeAt),MU=ne("".slice),VU=function(t){return function(e,r){var n,o,i=Eu(xm(e)),a=r6(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=WS(i,a))<55296||n>56319||a+1===u||(o=WS(i,a+1))<56320||o>57343?t?RU(i,a):n:t?MU(i,a,a+2):o-56320+(n-55296<<10)+65536}},bP={charAt:VU(!0)},zU=bP.charAt,$U=function(t,e,r){return e+(r?zU(t,e).length:1)},HU=Ct.TypeError,GS=function(t,e){var r=t.exec;if(rr(r)){var n=pr(r,t,e);return n!==null&&un(n),n}if(bu(t)==="RegExp")return pr(Dv,t,e);throw HU("RegExp#exec called on incompatible receiver")};(function(t,e,r,n){var o=jr(t),i=!lr(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!lr(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[LU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=ne(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=ne(l),h=c.exec;return h===Dv||h===US.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});$u(String.prototype,t,s[0]),$u(US,o,s[1])}})("match",function(t,e,r){return[function(n){var o=xm(this),i=n==null?void 0:Od(n,t);return i?pr(i,n,o):new RegExp(n)[t](Eu(o))},function(n){var o=un(this),i=Eu(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return GS(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=GS(o,i))!==null;){var f=Eu(s[0]);l[c]=f,f===""&&(o.lastIndex=$U(i,dP(o.lastIndex),u)),c++}return c===0?null:l}]}),Bp({global:!0},{globalThis:Ct});var UU=!lr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),qS=Qx("IE_PROTO"),mE=Ct.Object,WU=mE.prototype,kd=UU?mE.getPrototypeOf:function(t){var e=Kx(t);if(Ur(e,qS))return e[qS];var r=e.constructor;return rr(r)&&e instanceof r?r.prototype:e instanceof mE?WU:null},GU=Ct.String,qU=Ct.TypeError,xl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return un(n),function(i){if(typeof i=="object"||rr(i))return i;throw qU("Can't set "+GU(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),KU=Ct.Array,YU=Math.max,XU=ne("".replace),ZU=ne("".split),JU=ne([].join),yE=String(Error("zxcasd").stack),wP=/\n\s*at [^:]*:[^\n]*/,QU=wP.test(yE),tW=/@[^\n]*\n/.test(yE)&&!/zxcasd/.test(yE),eW=function(t,e){if(typeof t!="string")return t;if(QU)for(;e--;)t=XU(t,wP,"");else if(tW)return JU(function(r,n,o){for(var i,a,u,s,l=Sm(r),c=gE(n,l),f=gE(l,l),d=KU(YU(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=Yx(a))in i?rc.f(i,s,Ji(0,u)):i[s]=u;return d.length=p,d}(ZU(t,`
|
|
6
|
+
`),e),`
|
|
7
|
+
`);return t},rW=function(t,e){yo(e)&&"cause"in e&&zr(t,"cause",e.cause)},KS=ne(ne.bind),EP=function(t,e){return Wx(t),e===void 0?t:KS?KS(t,e):function(){return t.apply(e,arguments)}},Sl={},nW=jr("iterator"),oW=Array.prototype,iW=jr("iterator"),YS=function(t){if(t!=null)return Od(t,iW)||Od(t,"@@iterator")||Sl[Dm(t)]},aW=Ct.TypeError,XS=function(t,e,r){var n,o;un(t);try{if(!(n=Od(t,"return"))){if(e==="throw")throw r;return r}n=pr(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return un(n),r},uW=Ct.TypeError,jg=function(t,e){this.stopped=t,this.result=e},ZS=jg.prototype,sW=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=EP(e,c),h=function(y){return n&&XS(n,"normal",y),new jg(!0,y)},m=function(y){return f?(un(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(d)n=t;else{if(!(o=YS(t)))throw uW(dE(t)+" is not iterable");if(function(y){return y!==void 0&&(Sl.Array===y||oW[nW]===y)}(o)){for(i=0,a=Sm(t);a>i;i++)if((u=m(t[i]))&&wv(ZS,u))return u;return new jg(!1)}n=function(y,g){var w=arguments.length<2?YS(y):g;if(Wx(w))return un(pr(w,y));throw aW(dE(y)+" is not iterable")}(t,o)}for(s=n.next;!(l=pr(s,n)).done;){try{u=m(l.value)}catch(y){XS(n,"throw",y)}if(typeof u=="object"&&u&&wv(ZS,u))return u}return new jg(!1)},lW=function(t,e){return t===void 0?arguments.length<2?"":e:Eu(t)},cW=!lr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ji(1,7)),t.stack!==7)}),fW=jr("toStringTag"),Av=Ct.Error,dW=[].push,Bd=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=wv(Uy,this);xl?r=xl(new Av(void 0),o?kd(this):Uy):(r=o?this:_p(Uy),zr(r,fW,"Error")),zr(r,"message",lW(e,"")),cW&&zr(r,"stack",eW(r.stack,1)),rW(r,n);var i=[];return sW(t,dW,{that:i}),zr(r,"errors",i),r};xl?xl(Bd,Av):hP(Bd,Av);var Uy=Bd.prototype=_p(Av.prototype,{constructor:Ji(1,Bd),message:Ji(1,""),name:Ji(1,"AggregateError")});Bp({global:!0},{AggregateError:Bd});var bE=jr("unscopables"),wE=Array.prototype;wE[bE]==null&&rc.f(wE,bE,{configurable:!0,value:_p(null)});var Cu,JS,QS,Wy=function(t){wE[bE][t]=!0},EE=jr("iterator"),CP=!1;[].keys&&("next"in(QS=[].keys())?(JS=kd(kd(QS)))!==Object.prototype&&(Cu=JS):CP=!0);var pW=Cu==null||lr(function(){var t={};return Cu[EE].call(t)!==t});pW&&(Cu={}),rr(Cu[EE])||$u(Cu,EE,function(){return this});var i6={IteratorPrototype:Cu,BUGGY_SAFARI_ITERATORS:CP},hW=rc.f,tD=jr("toStringTag"),eD=function(t,e,r){t&&!Ur(t=r?t:t.prototype,tD)&&hW(t,tD,{configurable:!0,value:e})},gW=i6.IteratorPrototype,vW=function(){return this},mW=e6.PROPER,yW=e6.CONFIGURABLE,rD=i6.IteratorPrototype,Gy=i6.BUGGY_SAFARI_ITERATORS,Ac=jr("iterator"),bW=function(){return this},xP=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=_p(gW,{next:Ji(1,g)}),eD(m,E,!1),Sl[E]=vW})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!Gy&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Ac]||d["@@iterator"]||o&&d[o],v=!Gy&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=kd(h.call(new t)))!==Object.prototype&&u.next&&(kd(u)!==rD&&(xl?xl(u,rD):rr(u[Ac])||$u(u,Ac,bW)),eD(u,c,!0)),mW&&o=="values"&&p&&p.name!=="values"&&(yW?zr(d,"name","values"):(f=!0,v=function(){return pr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Bp({target:e,proto:!0,forced:Gy||f},s)),d[Ac]!==v&&$u(d,Ac,v,{name:o}),Sl[e]=v,s},wW=zu.set,EW=zu.getterFor("Array Iterator"),Uf=xP(Array,"Array",function(t,e){wW(this,{type:"Array Iterator",target:ec(t),index:0,kind:e})},function(){var t=EW(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Sl.Arguments=Sl.Array,Wy("keys"),Wy("values"),Wy("entries");var CW=bP.charAt,xW=zu.set,SW=zu.getterFor("String Iterator");xP(String,"String",function(t){xW(this,{type:"String Iterator",string:Eu(t),index:0})},function(){var t,e=SW(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=CW(r,n),e.index+=t.length,{value:t,done:!1})});var qy,Ov={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},Ky=Xx("span").classList,nD=Ky&&Ky.constructor&&Ky.constructor.prototype,SP=nD===Object.prototype?void 0:nD,Yy=jr("iterator"),oD=jr("toStringTag"),Xy=Uf.values,DP=function(t,e){if(t){if(t[Yy]!==Xy)try{zr(t,Yy,Xy)}catch{t[Yy]=Xy}if(t[oD]||zr(t,oD,e),Ov[e]){for(var r in Uf)if(t[r]!==Uf[r])try{zr(t,r,Uf[r])}catch{t[r]=Uf[r]}}}};for(var Zy in Ov)DP(Ct[Zy]&&Ct[Zy].prototype,Zy);DP(SP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
8
|
+
Sorry, wangEditor V5+ versions do not support IE browser.`),iD(),aD()):global&&(!((qy=global.navigator)===null||qy===void 0)&&qy.userAgent.match("QQBrowser"))&&(iD(),aD());function iD(){typeof globalThis>"u"&&(window.globalThis=window)}function aD(){mH===void 0&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var uD,kv=Array.isArray||function(t){return mu(t)=="Array"},AP=function(){},DW=[],OP=Jl("Reflect","construct"),a6=/^\s*(?:class|function)\b/,AW=he(a6.exec),OW=!a6.exec(AP),Oc=function(t){if(!hr(t))return!1;try{return OP(AP,DW,t),!0}catch{return!1}},kW=!OP||qr(function(){var t;return Oc(Oc.call)||!Oc(Object)||!Oc(function(){t=!0})||t})?function(t){if(!hr(t))return!1;switch(Ap(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OW||!!AW(a6,rP(t))}:Oc,BW=Br("species"),sD=Bt.Array,kP=function(t,e){return new(function(r){var n;return kv(r)&&(n=r.constructor,(kW(n)&&(n===sD||kv(n.prototype))||xn(n)&&(n=n[BW])===null)&&(n=void 0)),n===void 0?sD:n}(t))(e===0?0:e)},_W=Br("species"),BP=Br("isConcatSpreadable"),lD=Bt.TypeError,FW=lv>=51||!qr(function(){var t=[];return t[BP]=!1,t.concat()[0]!==t}),TW=(uD="concat",lv>=51||!qr(function(){var t=[];return(t.constructor={})[_W]=function(){return{foo:1}},t[uD](Boolean).foo!==1})),PW=function(t){if(!xn(t))return!1;var e=t[BP];return e!==void 0?!!e:kv(t)};Xo({target:"Array",proto:!0,forced:!FW||!TW},{concat:function(t){var e,r,n,o,i,a=Cp(this),u=kP(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(PW(i=e===-1?a:arguments[e])){if(s+(o=Sp(i))>9007199254740991)throw lD("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&oE(u,s,i[r])}else{if(s>=9007199254740991)throw lD("Maximum allowed index exceeded");oE(u,s++,i)}return u.length=s,u}});var cD=zx.f,fD=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_P={f:function(t){return fD&&mu(t)=="Window"?function(e){try{return cD(e)}catch{return QT(fD)}}(t):cD(Io(t))}},NW=he([].slice),u6={f:Br},jW=_a.f,Ne=function(t){var e=tn.Symbol||(tn.Symbol={});Ut(e,t)||jW(e,t,{value:u6.f(t)})},dD=he([].push),IW=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Cp(s),h=qT(v),m=Mx(l,c),y=Sp(h),g=0,w=f||kP,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:dD(E,d)}else switch(t){case 4:return!1;case 7:dD(E,d)}return i?-1:n||o?o:E}},Am={forEach:IW(0)}.forEach,Mr=Cm("hidden"),pD=Br("toPrimitive"),LW=tc.set,hD=tc.getterFor("Symbol"),Un=Object.prototype,zi=Bt.Symbol,Gi=zi&&zi.prototype,gD=Bt.TypeError,Jy=Bt.QObject,kc=Jl("JSON","stringify"),FP=Em.f,$i=_a.f,TP=_P.f,RW=jx.f,PP=he([].push),li=os("symbols"),Fp=os("op-symbols"),Qy=os("string-to-symbol-registry"),t1=os("symbol-to-string-registry"),MW=os("wks"),e1=!Jy||!Jy.prototype||!Jy.prototype.findChild,CE=Hr&&qr(function(){return si($i({},"a",{get:function(){return $i(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=FP(Un,e);n&&delete Un[e],$i(t,e,r),n&&t!==Un&&$i(Un,e,n)}:$i,r1=function(t,e){var r=li[t]=si(Gi);return LW(r,{type:"Symbol",tag:t,description:e}),Hr||(r.description=e),r},Bv=function(t,e,r){t===Un&&Bv(Fp,e,r),an(t);var n=Ql(e);return an(r),Ut(li,n)?(r.enumerable?(Ut(t,Mr)&&t[Mr][n]&&(t[Mr][n]=!1),r=si(r,{enumerable:qn(0,!1)})):(Ut(t,Mr)||$i(t,Mr,qn(1,{})),t[Mr][n]=!0),CE(t,n,r)):$i(t,n,r)},vD=function(t,e){an(t);var r=Io(e),n=$x(r).concat(xE(r));return Am(n,function(o){Hr&&!rn(NP,r,o)||Bv(t,o,r[o])}),t},NP=function(t){var e=Ql(t),r=rn(RW,this,e);return!(this===Un&&Ut(li,e)&&!Ut(Fp,e))&&(!(r||!Ut(this,e)||!Ut(li,e)||Ut(this,Mr)&&this[Mr][e])||r)},mD=function(t,e){var r=Io(t),n=Ql(e);if(r!==Un||!Ut(li,n)||Ut(Fp,n)){var o=FP(r,n);return!o||!Ut(li,n)||Ut(r,Mr)&&r[Mr][n]||(o.enumerable=!0),o}},yD=function(t){var e=TP(Io(t)),r=[];return Am(e,function(n){Ut(li,n)||Ut(Dp,n)||PP(r,n)}),r},xE=function(t){var e=t===Un,r=TP(e?Fp:Io(t)),n=[];return Am(r,function(o){!Ut(li,o)||e&&!Ut(Un,o)||PP(n,li[o])}),n};if(fo||(Gi=(zi=function(){if(Sd(Gi,this))throw gD("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Dd(arguments[0]):void 0,e=fv(t),r=function(n){this===Un&&rn(r,Fp,n),Ut(this,Mr)&&Ut(this[Mr],e)&&(this[Mr][e]=!1),CE(this,e,qn(1,n))};return Hr&&e1&&CE(Un,e,{configurable:!0,set:r}),r1(e,t)}).prototype,yv(Gi,"toString",function(){return hD(this).tag}),yv(zi,"withoutSetter",function(t){return r1(fv(t),t)}),jx.f=NP,_a.f=Bv,Em.f=mD,zx.f=_P.f=yD,_g.f=xE,u6.f=function(t){return r1(Br(t),t)},Hr&&$i(Gi,"description",{configurable:!0,get:function(){return hD(this).description}})),Xo({global:!0,wrap:!0,forced:!fo,sham:!fo},{Symbol:zi}),Am($x(MW),function(t){Ne(t)}),Xo({target:"Symbol",stat:!0,forced:!fo},{for:function(t){var e=Dd(t);if(Ut(Qy,e))return Qy[e];var r=zi(e);return Qy[e]=r,t1[r]=e,r},keyFor:function(t){if(!cl(t))throw gD(t+" is not a symbol");if(Ut(t1,t))return t1[t]},useSetter:function(){e1=!0},useSimple:function(){e1=!1}}),Xo({target:"Object",stat:!0,forced:!fo,sham:!Hr},{create:function(t,e){return e===void 0?si(t):vD(si(t),e)},defineProperty:Bv,defineProperties:vD,getOwnPropertyDescriptor:mD}),Xo({target:"Object",stat:!0,forced:!fo},{getOwnPropertyNames:yD,getOwnPropertySymbols:xE}),Xo({target:"Object",stat:!0,forced:qr(function(){_g.f(1)})},{getOwnPropertySymbols:function(t){return _g.f(Cp(t))}}),kc){var VW=!fo||qr(function(){var t=zi();return kc([t])!="[null]"||kc({a:t})!="{}"||kc(Object(t))!="{}"});Xo({target:"JSON",stat:!0,forced:VW},{stringify:function(t,e,r){var n=NW(arguments),o=e;if((xn(e)||t!==void 0)&&!cl(t))return kv(e)||(e=function(i,a){if(hr(o)&&(a=rn(o,this,i,a)),!cl(a))return a}),n[1]=e,WT(kc,null,n)}})}if(!Gi[pD]){var zW=Gi.valueOf;yv(Gi,pD,function(t){return rn(zW,this)})}bv(zi,"Symbol"),Dp[Mr]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),bv(Bt.JSON,"JSON",!0);var $W=tn.Symbol;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var Ah=$W,HW=u6.f("iterator"),UW=ns(function(t){function e(r){return typeof Ah=="function"&&typeof HW=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Ah=="function"&&n.constructor===Ah&&n!==Ah.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),WW=Sz(UW),jP=Zx.f,GW=lr(function(){jP(1)});if(Bp({target:"Object",stat:!0,forced:!ko||GW,sham:!ko},{getOwnPropertyDescriptor:function(t,e){return jP(ec(t),e)}}),(typeof global>"u"?"undefined":WW(global))==="object"){var qW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!qW.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(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
|
|
9
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/function bD(t){return Object.prototype.toString.call(t)==="[object Object]"}function xr(t){var e,r;return bD(t)!==!1&&((e=t.constructor)===void 0||bD(r=e.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function Hn(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Hu(t){return!!t&&!!t[sn]}function Uu(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===QW}(t)||Array.isArray(t)||!!t[OD]||!!t.constructor[OD]||s6(t)||l6(t))}function _d(t,e,r){r===void 0&&(r=!1),Dl(t)===0?(r?Object.keys:h6)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function Dl(t){var e=t[sn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:s6(t)?2:l6(t)?3:0}function SE(t,e){return Dl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function IP(t,e,r){var n=Dl(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function s6(t){return ZW&&t instanceof Map}function l6(t){return JW&&t instanceof Set}function eu(t){return t.o||t.t}function c6(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=tG(t);delete e[sn];for(var r=h6(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function f6(t,e){return e===void 0&&(e=!1),d6(t)||Hu(t)||!Uu(t)||(Dl(t)>1&&(t.set=t.add=t.clear=t.delete=KW),Object.freeze(t),e&&_d(t,function(r,n){return f6(n,!0)},!0)),t}function KW(){Hn(2)}function d6(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ii(t){var e=eG[t];return e||Hn(18,t),e}function wD(){return Fd}function n1(t,e){e&&(ii("Patches"),t.u=[],t.s=[],t.v=e)}function _v(t){DE(t),t.p.forEach(YW),t.p=null}function DE(t){t===Fd&&(Fd=t.l)}function ED(t){return Fd={p:[],l:Fd,h:t,m:!0,_:0}}function YW(t){var e=t[sn];e.i===0||e.i===1?e.j():e.O=!0}function o1(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||ii("ES5").S(e,t,n),n?(r[sn].P&&(_v(e),Hn(4)),Uu(t)&&(t=Fv(e,t),e.l||Tv(e,t)),e.u&&ii("Patches").M(r[sn],t,e.u,e.s)):t=Fv(e,r,[]),_v(e),e.u&&e.v(e.u,e.s),t!==LP?t:void 0}function Fv(t,e,r){if(d6(e))return e;var n=e[sn];if(!n)return _d(e,function(i,a){return CD(t,n,e,i,a,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Tv(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=c6(n.k):n.o;_d(n.i===3?new Set(o):o,function(i,a){return CD(t,n,o,i,a,r)}),Tv(t,o,!1),r&&t.u&&ii("Patches").R(n,r,t.u,t.s)}return n.o}function CD(t,e,r,n,o,i){if(Hu(o)){var a=Fv(t,o,i&&e&&e.i!==3&&!SE(e.D,n)?i.concat(n):void 0);if(IP(r,n,a),!Hu(a))return;t.m=!1}if(Uu(o)&&!d6(o)){if(!t.h.F&&t._<1)return;Fv(t,o),e&&e.A.l||Tv(t,o)}}function Tv(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&f6(e,r)}function i1(t,e){var r=t[sn];return(r?eu(r):t)[e]}function xD(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function AE(t){t.P||(t.P=!0,t.l&&AE(t.l))}function a1(t){t.o||(t.o=c6(t.t))}function OE(t,e,r){var n=s6(e)?ii("MapSet").N(e,r):l6(e)?ii("MapSet").T(e,r):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:wD(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Ig;a&&(s=[u],l=Lg);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,r):ii("ES5").J(e,r);return(r?r.A:wD()).p.push(n),n}function XW(t){return Hu(t)||Hn(22,t),function e(r){if(!Uu(r))return r;var n,o=r[sn],i=Dl(r);if(o){if(!o.P&&(o.i<4||!ii("ES5").K(o)))return o.t;o.I=!0,n=SD(r,i),o.I=!1}else n=SD(r,i);return _d(n,function(a,u){o&&function(s,l){return Dl(s)===2?s.get(l):s[l]}(o.t,a)===u||IP(n,a,e(u))}),i===3?new Set(n):n}(t)}function SD(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return c6(t)}var DD,Fd,p6=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ZW=typeof Map<"u",JW=typeof Set<"u",AD=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",LP=p6?Symbol.for("immer-nothing"):((DD={})["immer-nothing"]=!0,DD),OD=p6?Symbol.for("immer-draftable"):"__$immer_draftable",sn=p6?Symbol.for("immer-state"):"__$immer_state",QW=""+Object.prototype.constructor,h6=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,tG=Object.getOwnPropertyDescriptors||function(t){var e={};return h6(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},eG={},Ig={get:function(t,e){if(e===sn)return t;var r=eu(t);if(!SE(r,e))return function(o,i,a){var u,s=xD(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!Uu(n)?n:n===i1(t.t,e)?(a1(t),t.o[e]=OE(t.A.h,n,t)):n},has:function(t,e){return e in eu(t)},ownKeys:function(t){return Reflect.ownKeys(eu(t))},set:function(t,e,r){var n=xD(eu(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=i1(eu(t),e),i=o==null?void 0:o[sn];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(r,o)&&(r!==void 0||SE(t.t,e)))return!0;a1(t),AE(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return i1(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,a1(t),AE(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=eu(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Hn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Hn(12)}},Lg={};_d(Ig,function(t,e){Lg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Lg.deleteProperty=function(t,e){return Ig.deleteProperty.call(this,t[0],e)},Lg.set=function(t,e,r){return Ig.set.call(this,t[0],e,r,t[0])};var rG=function(){function t(r){var n=this;this.g=AD,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(p){var v=this;p===void 0&&(p=u);for(var h=arguments.length,m=Array(h>1?h-1:0),y=1;y<h;y++)m[y-1]=arguments[y];return s.produce(p,function(g){var w;return(w=i).call.apply(w,[v,g].concat(m))})}}var l;if(typeof i!="function"&&Hn(6),a!==void 0&&typeof a!="function"&&Hn(7),Uu(o)){var c=ED(n),f=OE(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?_v(c):DE(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return n1(c,a),o1(p,c)},function(p){throw _v(c),p}):(n1(c,a),o1(l,c))}if(!o||typeof o!="object")return(l=i(o))===LP?void 0:(l===void 0&&(l=o),n.F&&f6(l,!0),l);Hn(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Uu(r)||Hn(8),Hu(r)&&(r=XW(r));var n=ED(this),o=OE(this,r,void 0);return o[sn].C=!0,DE(n),o},e.finishDraft=function(r,n){var o=(r&&r[sn]).A;return n1(o,n),o1(void 0,o)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!AD&&Hn(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=ii("Patches").$;return Hu(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},t}(),Jr=new rG,Om=Jr.produce;Jr.produceWithPatches.bind(Jr),Jr.setAutoFreeze.bind(Jr),Jr.setUseProxies.bind(Jr),Jr.applyPatches.bind(Jr);var kD=Jr.createDraft.bind(Jr),BD=Jr.finishDraft.bind(Jr);function Lo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Pv=new WeakMap,Bc=new WeakMap,_D=new WeakMap,FD=new WeakMap,TD=new WeakMap,PD=new WeakMap;function ND(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Oh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ND(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ND(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var nG=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var r of C.pathRefs(t))PG.transform(r,e);for(var n of C.pointRefs(t))NG.transform(n,e);for(var o of C.rangeRefs(t))IG.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Pv.get(t)||[],l=oG(e);for(var c of s)u(I.transform(c,e));for(var f of l)u(f);Pv.set(t,a),R.transform(t,e),t.operations.push(e),C.normalize(t),e.type==="set_selection"&&(t.marks=null),Bc.get(t)||(Bc.set(t,!0),Promise.resolve().then(()=>{Bc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,r)=>{var{selection:n}=t;if(n)if(z.isExpanded(n))R.setNodes(t,{[e]:r},{match:it.isText,split:!0});else{var o=Oh(Oh({},C.marks(t)||{}),{},{[e]:r});t.marks=o,Bc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:r}=t;r&&z.isCollapsed(r)&&R.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:r}=t;r&&z.isCollapsed(r)&&R.delete(t,{unit:e})},deleteFragment:e=>{var{selection:r}=t;r&&z.isExpanded(r)&&R.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{R.splitNodes(t,{always:!0})},insertFragment:e=>{R.insertFragment(t,e)},insertNode:e=>{R.insertNodes(t,e)},insertText:e=>{var{selection:r,marks:n}=t;if(r){if(n){var o=Oh({text:e},n);R.insertNodes(t,o)}else R.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[r,n]=e;if(!it.isText(r))if(ft.isElement(r)&&r.children.length===0)R.insertNodes(t,{text:""},{at:n.concat(0),voids:!0});else for(var o=!C.isEditor(r)&&ft.isElement(r)&&(t.isInline(r)||r.children.length===0||it.isText(r.children[0])||t.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=Q.get(t,n);if(!it.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(it.isText(s)||ft.isElement(s)&&t.isInline(s))!==o?(R.removeNodes(t,{at:n.concat(i),voids:!0}),i--):ft.isElement(s)?t.isInline(s)&&(l!=null&&it.isText(l)?c&&(R.insertNodes(t,{text:""},{at:n.concat(i+1),voids:!0}),i++):(R.insertNodes(t,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&it.isText(l)&&(it.equals(s,l,{loose:!0})?(R.mergeNodes(t,{at:n.concat(i),voids:!0}),i--):l.text===""?(R.removeNodes(t,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(R.removeNodes(t,{at:n.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:r}=t;if(r)if(z.isExpanded(r))R.unsetNodes(t,e,{match:it.isText,split:!0});else{var n=Oh({},C.marks(t)||{});delete n[e],t.marks=n,Bc.get(t)||t.onChange()}}};return t},oG=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return I.levels(e);case"insert_node":var{node:r,path:n}=t,o=I.levels(n),i=it.isText(r)?[]:Array.from(Q.nodes(r),E=>{var[,x]=E;return n.concat(x)});return[...o,...i];case"merge_node":var{path:a}=t;return[...I.ancestors(a),I.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(I.equals(u,s))return[];var l=[],c=[];for(var f of I.ancestors(u)){var d=I.transform(f,t);l.push(d)}for(var p of I.ancestors(s)){var v=I.transform(p,t);c.push(v)}var h=c[c.length-1],m=s[s.length-1],y=h.concat(m);return[...l,...c,y];case"remove_node":var{path:g}=t;return[...I.ancestors(g)];case"split_node":var{path:w}=t;return[...I.levels(w),I.next(w)];default:return[]}};function ci(t,e){if(t==null)return{};var r,n,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Dt,kE=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!e,n=e?lG(t):t,o=Dt.None,i=Dt.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=EG(s,l);if([o,i]=r?[i,c]:[c,o],ol(o,Dt.ZWJ)&&ol(i,Dt.ExtPict)&&!DG(r?t.substring(0,a):t.substring(0,t.length-a))||ol(o,Dt.RI)&&ol(i,Dt.RI)&&!(u=u!==null?!u:!!r||OG(t.substring(0,t.length-a)))||o!==Dt.None&&i!==Dt.None&&xG(o,i))break;a+=s.length}return a||1},iG=/\s/,aG=/[\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]/,uG=/['\u2018\u2019]/,BE=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},sG=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(iG.test(e))return!1;if(uG.test(e)){var o=kE(r,n),[i,a]=BE(r,o,n);if(t(i,a,n))return!0}return!aG.test(e)},lG=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(fG(n.charCodeAt(0))){var o=t.charAt(e-r-1);if(cG(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},cG=t=>t>=55296&&t<=56319,fG=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Dt||(Dt={}));var dG=/^(?:[\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])$/,pG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,hG=/^(?:[\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])$/,gG=/^[\u1100-\u115F\uA960-\uA97C]$/,vG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,mG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,yG=/^[\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]$/,bG=/^[\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]$/,wG=/^(?:[\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])$/,EG=(t,e)=>{var r=Dt.Any;return t.search(dG)!==-1&&(r|=Dt.Extend),e===8205&&(r|=Dt.ZWJ),e>=127462&&e<=127487&&(r|=Dt.RI),t.search(pG)!==-1&&(r|=Dt.Prepend),t.search(hG)!==-1&&(r|=Dt.SpacingMark),t.search(gG)!==-1&&(r|=Dt.L),t.search(vG)!==-1&&(r|=Dt.V),t.search(mG)!==-1&&(r|=Dt.T),t.search(yG)!==-1&&(r|=Dt.LV),t.search(bG)!==-1&&(r|=Dt.LVT),t.search(wG)!==-1&&(r|=Dt.ExtPict),r};function ol(t,e){return(t&e)!=0}var CG=[[Dt.L,Dt.L|Dt.V|Dt.LV|Dt.LVT],[Dt.LV|Dt.V,Dt.V|Dt.T],[Dt.LVT|Dt.T,Dt.T],[Dt.Any,Dt.Extend|Dt.ZWJ],[Dt.Any,Dt.SpacingMark],[Dt.Prepend,Dt.Any],[Dt.ZWJ,Dt.ExtPict],[Dt.RI,Dt.RI]];function xG(t,e){return CG.findIndex(r=>ol(t,r[0])&&ol(e,r[1]))===-1}var SG=/(?:[\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$/,DG=t=>t.search(SG)!==-1,AG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,OG=t=>{var e=t.match(AG);return e!==null&&e[0].length/2%2==1},jD=t=>xr(t)&&Q.isNodeList(t.children)&&!C.isEditor(t),ft={isAncestor:t=>xr(t)&&Q.isNodeList(t.children),isElement:jD,isElementList:t=>Array.isArray(t)&&t.every(e=>ft.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return jD(t)&&t[r]===e},matches(t,e){for(var r in e)if(r!=="children"&&t[r]!==e[r])return!1;return!0}},kG=["text"],BG=["text"];function ID(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Cs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ID(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ID(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var LD=new WeakMap,C={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:i}=e;if(o){var a=C.path(t,o),u=n==="lowest";for(var[s,l]of C.levels(t,{at:a,voids:r,match:i,reverse:u}))if(!it.isText(s)&&!I.equals(a,l))return[s,l]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.point(t,e,{edge:"end"}),focus:C.end(t,[])},{distance:i=1}=n,a=0;for(var u of C.positions(t,Cs(Cs({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.start(t,[]),focus:C.point(t,e,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of C.positions(t,Cs(Cs({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[C.start(t,e),C.end(t,e)],end:(t,e)=>C.point(t,e,{edge:"end"}),first(t,e){var r=C.path(t,e,{edge:"start"});return C.node(t,r)},fragment(t,e){var r=C.range(t,e);return Q.fragment(t,r)},hasBlocks:(t,e)=>e.children.some(r=>C.isBlock(t,r)),hasInlines:(t,e)=>e.children.some(r=>it.isText(r)||C.isInline(t,r)),hasTexts:(t,e)=>e.children.every(r=>it.isText(r)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ft.isElement(e)&&!t.isInline(e),isEditor(t){if(!xr(t))return!1;var e=LD.get(t);if(e!==void 0)return e;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||xr(t.marks))&&(t.selection===null||z.isRange(t.selection))&&Q.isNodeList(t.children)&&qi.isOperationList(t.operations);return LD.set(t,r),r},isEnd(t,e,r){var n=C.end(t,r);return _t.equals(e,n)},isEdge:(t,e,r)=>C.isStart(t,e,r)||C.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return r.length===0||r.length===1&&it.isText(n)&&n.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=_D.get(t);return e===void 0||e},isStart(t,e,r){if(e.offset!==0)return!1;var n=C.start(t,r);return _t.equals(e,n)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var r=C.path(t,e,{edge:"end"});return C.node(t,r)},leaf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r);return[Q.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),r){var a=[],u=C.path(t,r);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&C.isVoid(t,s)))break;n&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(z.isExpanded(r)){var[n]=C.nodes(t,{match:it.isText});if(n){var[o]=n;return ci(o,kG)}return{}}var{anchor:i}=r,{path:a}=i,[u]=C.leaf(t,a);if(i.offset===0){var s=C.previous(t,{at:a,match:it.isText}),l=C.above(t,{match:p=>C.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;I.isAncestor(d,f)&&(u=c)}}return ci(u,BG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.after(t,i,{voids:n});if(a){var[,u]=C.last(t,[]),s=[a.path,u];if(I.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(I.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{at:s,match:o,mode:r,voids:n});return c}}},node(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r);return[Q.get(t,n),n]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),r){var s,l;if(_G.isSpan(r))s=r[0],l=r[1];else{var c=C.path(t,r,{edge:"start"}),f=C.path(t,r,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Q.nodes(t,{reverse:i,from:s,to:l,pass:w=>{var[E]=w;return!a&&C.isVoid(t,E)}}),v=[];for(var[h,m]of p){var y=d&&I.compare(m,d[1])===0;if(n!=="highest"||!y){if(u(h,m))if(n==="lowest"&&y)d=[h,m];else{var g=n==="lowest"?d:[h,m];g&&(o?v.push(g):yield g),d=[h,m]}else if(o&&!y&&it.isText(h))return}}n==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=e,n=i=>Pv.get(i)||[];if(C.isNormalizing(t)){if(r){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Pv.set(t,o)}n(t).length!==0&&C.withoutNormalizing(t,()=>{for(var i of n(t))if(Q.has(t,i)){var a=C.node(t,i),[u,s]=a;ft.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*n(t).length,c=0;n(t).length!==0;){if(c>l)throw new Error(`
|
|
14
|
+
Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
|
|
15
|
+
`));var f=n(t).pop();if(Q.has(t,f)){var d=C.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r),o=I.parent(n);return C.node(t,o)},path(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(I.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return z.isRange(e)&&(e=o==="start"?z.start(e):o==="end"?z.end(e):I.common(e.anchor.path,e.focus.path)),_t.isPoint(e)&&(e=e.path),n!=null&&(e=e.slice(0,n)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.pathRefs(t).delete(o),o.current=null,i}};return C.pathRefs(t).add(o),o},pathRefs(t){var e=FD.get(t);return e||(e=new Set,FD.set(t,e)),e},point(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(I.isPath(e)){var o;if(n==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!it.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(z.isRange(e)){var[s,l]=z.edges(e);return n==="start"?s:l}return e},pointRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.pointRefs(t).delete(o),o.current=null,i}};return C.pointRefs(t).add(o),o},pointRefs(t){var e=TD.get(t);return e||(e=new Set,TD.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=e;if(r){var a=C.range(t,r),[u,s]=z.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[h,m]of C.nodes(t,{at:r,reverse:o,voids:i})){if(ft.isElement(h)){if(!i&&t.isVoid(h)){yield C.start(t,m);continue}if(t.isInline(h))continue;if(C.hasInlines(t,h)){var y=I.isAncestor(m,s.path)?s:C.end(t,m),g=I.isAncestor(m,u.path)?u:C.start(t,m);f=C.string(t,{anchor:g,focus:y},{voids:i}),c=!0}}if(it.isText(h)){var w=I.equals(m,l.path);for(w?(p=o?l.offset:h.text.length-l.offset,v=l.offset):(p=h.text.length,v=o?p:0),(w||c||n==="offset")&&(yield{path:m,offset:v},c=!1);;){if(d===0){if(f==="")break;d=E(f,n,o),f=BE(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:m,offset:v}}}}}function E(x,D,S){return D==="character"?kE(x,S):D==="word"?function(k){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],$=0,W=!1;k.length>0;){var j=kE(k,F),[L,V]=BE(k,j,F);if(sG(L,V,F))W=!0,$+=j;else{if(W)break;$+=j}k=V}return $}(x,S):D==="line"||D==="block"?x.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.before(t,i,{voids:n});if(a){var[,u]=C.first(t,[]),s=[a.path,u];if(I.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(I.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(t,e,r)=>z.isRange(e)&&!r?e:{anchor:C.start(t,e),focus:C.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.rangeRefs(t).delete(o),o.current=null,i}};return C.rangeRefs(t).add(o),o},rangeRefs(t){var e=PD.get(t);return e||(e=new Set,PD.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){_D.set(t,e)},start:(t,e)=>C.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=C.range(t,e),[i,a]=z.edges(o),u="";for(var[s,l]of C.nodes(t,{at:o,match:it.isText,voids:n})){var c=s.text;I.equals(l,a.path)&&(c=c.slice(0,a.offset)),I.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=z.edges(e);if(o.offset!==0||i.offset!==0||z.isCollapsed(e))return e;var a=C.above(t,{at:i,match:d=>C.isBlock(t,d)}),u=a?a[1]:[],s={anchor:C.start(t,[]),focus:i},l=!0;for(var[c,f]of C.nodes(t,{at:s,match:it.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||I.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,Cs(Cs({},e),{},{match:r=>C.isVoid(t,r)}))},withoutNormalizing(t,e){var r=C.isNormalizing(t);C.setNormalizing(t,!1);try{e()}finally{C.setNormalizing(t,r)}C.normalize(t)}},_G={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(I.isPath)},FG=["children"],TG=["text"],RD=new WeakMap,Q={ancestor(t,e){var r=Q.get(t,e);if(it.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of I.ancestors(e,r)){var o=[Q.ancestor(t,n),n];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var r=t.children[e];if(r==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=Q.ancestor(t,e),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=n?a-1:a+1}},common(t,e,r){var n=I.common(e,r);return[Q.get(t,n),n]},descendant(t,e){var r=Q.get(t,e);if(C.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))n.length!==0&&(yield[r,n])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))ft.isElement(r)&&(yield[r,n])},extractProps:t=>ft.isAncestor(t)?ci(t,FG):ci(t,TG),first(t,e){for(var r=e.slice(),n=Q.get(t,r);n&&!it.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var r=Om({children:t.children},n=>{var[o,i]=z.edges(e),a=Q.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!z.includes(e,p)}});for(var[,u]of a){if(!z.includes(e,u)){var s=Q.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(I.equals(u,i.path)){var c=Q.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(I.equals(u,o.path)){var f=Q.leaf(n,u);f.text=f.text.slice(o.offset)}}C.isEditor(n)&&(n.selection=null)});return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(it.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(it.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:t=>it.isText(t)||ft.isElement(t)||C.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=RD.get(t);if(e!==void 0)return e;var r=t.every(n=>Q.isNode(n));return RD.set(t,r),r},last(t,e){for(var r=e.slice(),n=Q.get(t,r);n&&!it.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=Q.get(t,e);if(!it.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of I.levels(e,r)){var o=Q.get(t,n);yield[o,n]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(n?I.isBefore(u,i):I.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=I.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}n&&u[u.length-1]!==0?(u=I.previous(u),s=Q.get(t,u)):(u=I.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;I.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var r=I.parent(e),n=Q.get(t,r);if(it.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},string:t=>it.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))it.isText(r)&&(yield[r,n])}};function MD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?MD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var qi={isNodeOperation:t=>qi.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!xr(t))return!1;switch(t.type){case"insert_node":case"remove_node":return I.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&I.isPath(t.path);case"merge_node":return typeof t.position=="number"&&I.isPath(t.path)&&xr(t.properties);case"move_node":return I.isPath(t.path)&&I.isPath(t.newPath);case"set_node":return I.isPath(t.path)&&xr(t.properties)&&xr(t.newProperties);case"set_selection":return t.properties===null&&z.isRange(t.newProperties)||t.newProperties===null&&z.isRange(t.properties)||xr(t.properties)&&xr(t.newProperties);case"split_node":return I.isPath(t.path)&&typeof t.position=="number"&&xr(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>qi.isOperation(e)),isSelectionOperation:t=>qi.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>qi.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return ze(ze({},t),{},{type:"remove_node"});case"insert_text":return ze(ze({},t),{},{type:"remove_text"});case"merge_node":return ze(ze({},t),{},{type:"split_node",path:I.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(I.equals(e,r))return t;if(I.isSibling(r,e))return ze(ze({},t),{},{path:e,newPath:r});var n=I.transform(r,t),o=I.transform(I.next(r),t);return ze(ze({},t),{},{path:n,newPath:o});case"remove_node":return ze(ze({},t),{},{type:"insert_node"});case"remove_text":return ze(ze({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return ze(ze({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return ze(ze({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ze(ze({},t),{},{type:"merge_node",path:I.next(t.path)})}}},I={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=I.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return I.equals(n,o)&&i>a},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return I.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return I.equals(n,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>I.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&I.compare(t,e)===0,isBefore:(t,e)=>I.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&I.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&I.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&I.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&I.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&I.equals(r,n)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!I.isAncestor(e,t)&&!I.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Om(t,n=>{var{affinity:o="forward"}=r;if(t&&(t==null?void 0:t.length)!==0){if(n===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(I.equals(i,n)||I.endsBefore(i,n)||I.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(I.equals(a,n)||I.isAncestor(a,n))return null;I.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;I.equals(u,n)||I.endsBefore(u,n)?n[u.length-1]-=1:I.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(I.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else I.endsBefore(l,n)?n[l.length-1]+=1:I.isAncestor(l,n)&&t[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(I.equals(f,d))return;if(I.isAncestor(f,n)||I.equals(f,n)){var p=d.slice();return I.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}I.isSibling(f,d)&&(I.isAncestor(d,n)||I.equals(d,n))?I.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:I.endsBefore(d,n)||I.equals(d,n)||I.isAncestor(d,n)?(I.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):I.endsBefore(f,n)&&(I.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},PG={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=I.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}};function VD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function zD(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var _t={compare(t,e){var r=I.compare(t.path,e.path);return r===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},isAfter:(t,e)=>_t.compare(t,e)===1,isBefore:(t,e)=>_t.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&I.equals(t.path,e.path),isPoint:t=>xr(t)&&typeof t.offset=="number"&&I.isPath(t.path),transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Om(t,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(e.type){case"insert_node":case"move_node":n.path=I.transform(i,e,r);break;case"insert_text":I.equals(e.path,i)&&e.offset<=a&&(n.offset+=e.text.length);break;case"merge_node":I.equals(e.path,i)&&(n.offset+=e.position),n.path=I.transform(i,e,r);break;case"remove_text":I.equals(e.path,i)&&e.offset<=a&&(n.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(I.equals(e.path,i)||I.isAncestor(e.path,i))return null;n.path=I.transform(i,e,r);break;case"split_node":if(I.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(n.offset-=e.position,n.path=I.transform(i,e,zD(zD({},r),{},{affinity:"forward"})))}else n.path=I.transform(i,e,r)}})}},NG={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=_t.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},jG=["anchor","focus"];function $D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}var z={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return z.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=z.edges(t);return e},equals:(t,e)=>_t.equals(t.anchor,e.anchor)&&_t.equals(t.focus,e.focus),includes(t,e){if(z.isRange(e)){if(z.includes(t,e.anchor)||z.includes(t,e.focus))return!0;var[r,n]=z.edges(t),[o,i]=z.edges(e);return _t.isBefore(r,o)&&_t.isAfter(n,i)}var[a,u]=z.edges(t),s=!1,l=!1;return _t.isPoint(e)?(s=_t.compare(e,a)>=0,l=_t.compare(e,u)<=0):(s=I.compare(e,a.path)>=0,l=I.compare(e,u.path)<=0),s&&l},intersection(t,e){var r=ci(t,jG),[n,o]=z.edges(t),[i,a]=z.edges(e),u=_t.isBefore(n,i)?i:n,s=_t.isBefore(o,a)?o:a;return _t.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?$D(Object(f),!0).forEach(function(d){Lo(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):$D(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return _t.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return _t.equals(e,r)},isExpanded:t=>!z.isCollapsed(t),isForward:t=>!z.isBackward(t),isRange:t=>xr(t)&&_t.isPoint(t.anchor)&&_t.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=z.edges(t);return e},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Om(t,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=z.isCollapsed(n);z.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?z.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=_t.transform(n.anchor,e,{affinity:o}),l=_t.transform(n.focus,e,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l})}},IG={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=z.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},RP=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(xr(n)&&xr(o)){if(!RP(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},LG=["text"],RG=["anchor","focus"];function HD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Wo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?HD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var it={equals(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return ci(i,LG)}return RP(n?o(t):t,n?o(e):e)},isText:t=>xr(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var r in e)if(r!=="text"&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[Wo({},t)];for(var n of e){var o=ci(n,RG),[i,a]=z.edges(n),u=[],s=0;for(var l of r){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var h=a.offset-f;v=Wo(Wo({},d),{},{text:d.text.slice(h)}),d=Wo(Wo({},d),{},{text:d.text.slice(0,h)})}if(i.offset>f){var m=i.offset-f;p=Wo(Wo({},d),{},{text:d.text.slice(0,m)}),d=Wo(Wo({},d),{},{text:d.text.slice(m)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}r=u}return r}};function UD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function _c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?UD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var MG={transform(t,e){t.children=kD(t.children);var r=t.selection&&kD(t.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of z.points(o))o[f]=_t.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var h=Q.leaf(n,d),m=h.text.slice(0,p),y=h.text.slice(p);if(h.text=m+v+y,o)for(var[g,w]of z.points(o))o[w]=_t.transform(g,i);break;case"merge_node":var{path:E}=i,x=Q.get(n,E),D=I.previous(E),S=Q.get(n,D),k=Q.parent(n,E),F=E[E.length-1];if(it.isText(x)&&it.isText(S))S.text+=x.text;else{if(it.isText(x)||it.isText(S))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(x," ").concat(S));S.children.push(...x.children)}if(k.children.splice(F,1),o)for(var[$,W]of z.points(o))o[W]=_t.transform($,i);break;case"move_node":var{path:j,newPath:L}=i;if(I.isAncestor(j,L))throw new Error("Cannot move a path [".concat(j,"] to new path [").concat(L,"] because the destination is inside itself."));var V=Q.get(n,j),q=Q.parent(n,j),Y=j[j.length-1];q.children.splice(Y,1);var rt=I.transform(j,i),lt=Q.get(n,I.parent(rt)),st=rt[rt.length-1];if(lt.children.splice(st,0,V),o)for(var[ut,B]of z.points(o))o[B]=_t.transform(ut,i);break;case"remove_node":var{path:A}=i,N=A[A.length-1];if(Q.parent(n,A).children.splice(N,1),o)for(var[U,X]of z.points(o)){var G=_t.transform(U,i);if(o!=null&&G!=null)o[X]=G;else{var at=void 0,vt=void 0;for(var[mt,xt]of Q.texts(n)){if(I.compare(xt,A)!==-1){vt=[mt,xt];break}at=[mt,xt]}var K=!1;at&&vt&&(K=I.equals(vt[1],A)?!I.hasPrevious(vt[1]):I.common(at[1],A).length<I.common(vt[1],A).length),at&&!K?(U.path=at[1],U.offset=at[0].text.length):vt?(U.path=vt[1],U.offset=0):o=null}}break;case"remove_text":var{path:Lt,offset:Ot,text:pt}=i;if(pt.length===0)break;var kt=Q.leaf(n,Lt),ke=kt.text.slice(0,Ot),$t=kt.text.slice(Ot+pt.length);if(kt.text=ke+$t,o)for(var[te,ve]of z.points(o))o[ve]=_t.transform(te,i);break;case"set_node":var{path:vr,properties:Vt,newProperties:Ir}=i;if(vr.length===0)throw new Error("Cannot set properties on the root node!");var In=Q.get(n,vr);for(var ro in Ir){if(ro==="children"||ro==="text")throw new Error('Cannot set the "'.concat(ro,'" property of nodes!'));var gs=Ir[ro];gs==null?delete In[ro]:In[ro]=gs}for(var Ra in Vt)Ir.hasOwnProperty(Ra)||delete In[Ra];break;case"set_selection":var{newProperties:Ln}=i;if(Ln==null)o=Ln;else{if(o==null){if(!z.isRange(Ln))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Ln)," when there is no current selection."));o=_c({},Ln)}for(var no in Ln){var Mo=Ln[no];if(Mo==null){if(no==="anchor"||no==="focus")throw new Error('Cannot remove the "'.concat(no,'" selection property'));delete o[no]}else o[no]=Mo}}break;case"split_node":var{path:mr,position:yr,properties:br}=i;if(mr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(mr,"] because the root node cannot be split."));var _r,nr=Q.get(n,mr),hn=Q.parent(n,mr),yc=mr[mr.length-1];if(it.isText(nr)){var mi=nr.text.slice(0,yr),Vo=nr.text.slice(yr);nr.text=mi,_r=_c(_c({},br),{},{text:Vo})}else{var vs=nr.children.slice(0,yr),Ma=nr.children.slice(yr);nr.children=vs,_r=_c(_c({},br),{},{children:Ma})}if(hn.children.splice(yc+1,0,_r),o)for(var[ms,Rn]of z.points(o))o[Rn]=_t.transform(ms,i)}return o})(t,r,e)}finally{t.children=BD(t.children),t.selection=r?Hu(r)?BD(r):r:null}}},VG=["text"],zG=["children"];function WD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function GD(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?WD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var $G={insertNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?C.end(t,[]):[0],s=!0),s==null&&(s=!1),z.isRange(a))if(n||(a=C.unhangRange(t,a)),z.isCollapsed(a))a=a.anchor;else{var[,c]=z.edges(a),f=C.pointRef(t,c);R.delete(t,{at:a}),a=f.unref()}if(_t.isPoint(a)){u==null&&(u=it.isText(l)?D=>it.isText(D):t.isInline(l)?D=>it.isText(D)||C.isInline(t,D):D=>C.isBlock(t,D));var[d]=C.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=C.pathRef(t,p),h=C.isEnd(t,a,p);R.splitNodes(t,{at:a,match:u,mode:i,voids:o});var m=v.unref();a=h?I.next(m):m}var y=I.parent(a),g=a[a.length-1];if(o||!C.void(t,{at:y})){for(var w of e){var E=y.concat(g);g++,t.apply({type:"insert_node",path:E,node:w}),a=I.next(a)}if(a=I.previous(a),s){var x=C.end(t,a);x&&R.select(t,x)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=I.isPath(r)?xs(t,r):w=>C.isBlock(t,w)),r){var a=C.nodes(t,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,w=>{var[,E]=w;return C.pathRef(t,E)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=C.node(t,I.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var h=I.next(d);R.moveNodes(t,{at:l,to:h,voids:o}),R.removeNodes(t,{at:d,voids:o})}else if(p===0)R.moveNodes(t,{at:l,to:d,voids:o});else if(p===v-1){var m=I.next(d);R.moveNodes(t,{at:l,to:m,voids:o})}else{var y=I.next(l),g=I.next(d);R.splitNodes(t,{at:y,voids:o}),R.moveNodes(t,{at:l,to:g,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{match:r,at:n=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(n){if(r==null)if(I.isPath(n)){var[u]=C.parent(t,n);r=F=>u.children.includes(F)}else r=F=>C.isBlock(t,F);if(!o&&z.isRange(n)&&(n=C.unhangRange(t,n)),z.isRange(n))if(z.isCollapsed(n))n=n.anchor;else{var[,s]=z.edges(n),l=C.pointRef(t,s);R.delete(t,{at:n}),n=l.unref(),e.at==null&&R.select(t,n)}var[c]=C.nodes(t,{at:n,match:r,voids:i,mode:a}),f=C.previous(t,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,h]=f;if(p.length!==0&&h.length!==0){var m,y,g=I.next(h),w=I.common(p,h),E=I.isSibling(p,h),x=Array.from(C.levels(t,{at:p}),F=>{var[$]=F;return $}).slice(w.length).slice(0,-1),D=C.above(t,{at:p,mode:"highest",match:F=>x.includes(F)&&MP(t,F)}),S=D&&C.pathRef(t,D[1]);if(it.isText(d)&&it.isText(v)){var k=ci(d,VG);y=v.text.length,m=k}else{if(!ft.isElement(d)||!ft.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));k=ci(d,zG),y=v.children.length,m=k}E||R.moveNodes(t,{at:p,to:g,voids:i}),S&&R.removeNodes(t,{at:S.current,voids:i}),ft.isElement(v)&&C.isEmpty(t,v)||it.isText(v)&&v.text===""&&h[h.length-1]!==0?R.removeNodes(t,{at:h,voids:i}):t.apply({type:"merge_node",path:g,position:y,properties:m}),S&&S.unref()}}}})},moveNodes(t,e){C.withoutNormalizing(t,()=>{var{to:r,at:n=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(n){a==null&&(a=I.isPath(n)?xs(t,n):p=>C.isBlock(t,p));var u=C.pathRef(t,r),s=C.nodes(t,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return C.pathRef(t,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&I.isSibling(d,f)&&I.isAfter(d,f)&&(u.current=I.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=I.isPath(i)?xs(t,i):d=>C.isBlock(t,d)),!r&&z.isRange(i)&&(i=C.unhangRange(t,i));var u=C.nodes(t,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,d=>{var[,p]=d;return C.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=C.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=I.isPath(o)?xs(t,o):x=>C.isBlock(t,x)),!i&&z.isRange(o)&&(o=C.unhangRange(t,o)),u&&z.isRange(o)){if(z.isCollapsed(o)&&C.leaf(t,o.anchor)[0].text.length>0)return;var l=C.rangeRef(t,o,{affinity:"inward"}),[c,f]=z.edges(o),d=a==="lowest"?"lowest":"highest",p=C.isEnd(t,f,f.path);R.splitNodes(t,{at:f,match:n,mode:d,voids:s,always:!p});var v=C.isStart(t,c,c.path);R.splitNodes(t,{at:c,match:n,mode:d,voids:s,always:!v}),o=l.unref(),r.at==null&&R.select(t,o)}for(var[h,m]of C.nodes(t,{at:o,match:n,mode:a,voids:s})){var y={},g={};if(m.length!==0){var w=!1;for(var E in e)E!=="children"&&E!=="text"&&e[E]!==h[E]&&(w=!0,h.hasOwnProperty(E)&&(y[E]=h[E]),e[E]!=null&&(g[E]=e[E]));w&&t.apply({type:"set_node",path:m,properties:y,newProperties:g})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=V=>C.isBlock(t,V)),z.isRange(i)&&(i=HG(t,i)),I.isPath(i)){var s=i,l=C.point(t,s),[c]=C.parent(t,s);o=V=>V===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=C.pointRef(t,i,{affinity:"backward"}),[d]=C.nodes(t,{at:i,match:o,mode:r,voids:n});if(d){var p=C.void(t,{at:i,mode:"highest"});if(!n&&p){var[v,h]=p;if(ft.isElement(v)&&t.isInline(v)){var m=C.after(t,h);if(!m){var y=I.next(h);R.insertNodes(t,{text:""},{at:y,voids:n}),m=C.point(t,y)}i=m,u=!0}a=i.path.length-h.length+1,u=!0}var g=C.pointRef(t,i),w=i.path.length-a,[,E]=d,x=i.path.slice(0,w),D=a===0?i.offset:i.path[w]+0;for(var[S,k]of C.levels(t,{at:x,reverse:!0,voids:n})){var F=!1;if(k.length<E.length||k.length===0||!n&&C.isVoid(t,S))break;var $=f.current,W=C.isEnd(t,$,k);if(u||!f||!C.isEdge(t,$,k)){F=!0;var j=Q.extractProps(S);t.apply({type:"split_node",path:k,position:D,properties:j})}D=k[k.length-1]+(F||W?1:0)}if(e.at==null){var L=g.current||C.end(t,[]);R.select(t,L)}f.unref(),g.unref()}}})},unsetNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;R.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=I.isPath(i)?xs(t,i):d=>C.isBlock(t,d)),I.isPath(i)&&(i=C.range(t,i));var u=z.isRange(i)?C.rangeRef(t,i):null,s=C.nodes(t,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,d=>{var[,p]=d;return C.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[v]=C.node(t,p),h=C.range(t,p);n&&u&&(h=z.intersection(u.current,h)),R.liftNodes(t,{at:h,match:m=>ft.isAncestor(v)&&v.children.includes(m),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=t.selection}=r;if(u){if(a==null&&(a=I.isPath(u)?xs(t,u):t.isInline(e)?m=>C.isInline(t,m)||it.isText(m):m=>C.isBlock(t,m)),o&&z.isRange(u)){var[s,l]=z.edges(u),c=C.rangeRef(t,u,{affinity:"inward"});R.splitNodes(t,{at:l,match:a,voids:i}),R.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&R.select(t,u)}var f=Array.from(C.nodes(t,{at:u,match:t.isInline(e)?m=>C.isBlock(t,m):m=>C.isEditor(m),mode:"lowest",voids:i}));for(var[,d]of f){var p=z.isRange(u)?z.intersection(u,C.range(t,d)):u;if(p){var v=Array.from(C.nodes(t,{at:p,match:a,mode:n,voids:i}));if(v.length>0){var h=function(){var[m]=v,y=v[v.length-1],[,g]=m,[,w]=y;if(g.length===0&&w.length===0)return"continue";var E=I.equals(g,w)?I.parent(g):I.common(g,w),x=C.range(t,g,w),D=C.node(t,E),[S]=D,k=E.length+1,F=I.next(w.slice(0,k)),$=GD(GD({},e),{},{children:[]});R.insertNodes(t,$,{at:F,voids:i}),R.moveNodes(t,{at:x,match:W=>ft.isAncestor(S)&&S.children.includes(W),to:F.concat(0),voids:i})}();if(h==="continue")continue}}}}})}},MP=(t,e)=>{if(ft.isElement(e)){var r=e;return!!C.isVoid(t,e)||r.children.length===1&&MP(t,r.children[0])}return!C.isEditor(e)},HG=(t,e)=>{if(z.isCollapsed(e))return e.anchor;var[,r]=z.edges(e),n=C.pointRef(t,r);return R.delete(t,{at:e}),n.unref()},xs=(t,e)=>{var[r]=C.node(t,e);return n=>n===r};function qD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function KD(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var UG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n){if(r==="anchor")R.select(t,n.anchor);else if(r==="focus")R.select(t,n.focus);else if(r==="start"){var[o]=z.edges(n);R.select(t,o)}else if(r==="end"){var[,i]=z.edges(n);R.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:n=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(r){a==="start"&&(a=z.isBackward(r)?"focus":"anchor"),a==="end"&&(a=z.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?C.before(t,u,l):C.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?C.before(t,s,l):C.after(t,s,l);d&&(c.focus=d)}R.setSelection(t,c)}},select(t,e){var{selection:r}=t;if(e=C.range(t,e),r)R.setSelection(t,e);else{if(!z.isRange(e))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(e)));t.apply({type:"set_selection",properties:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){o==="start"&&(o=z.isBackward(n)?"focus":"anchor"),o==="end"&&(o=z.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;R.setSelection(t,{[o==="anchor"?"anchor":"focus"]:KD(KD({},u),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var i in e)(i==="anchor"&&e.anchor!=null&&!_t.equals(e.anchor,r.anchor)||i==="focus"&&e.focus!=null&&!_t.equals(e.focus,r.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==r[i])&&(n[i]=r[i],o[i]=e[i]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},WG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(z.isRange(a)&&z.isCollapsed(a)&&(a=a.anchor),_t.isPoint(a)){var s=C.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?C.before(t,a,c)||C.start(t,[]):C.after(t,a,c)||C.end(t,[])},u=!0}}if(I.isPath(a))R.removeNodes(t,{at:a,voids:i});else if(!z.isCollapsed(a)){if(!u){var[,f]=z.edges(a),d=C.end(t,[]);_t.equals(f,d)||(a=C.unhangRange(t,a,{voids:i}))}var[p,v]=z.edges(a),h=C.above(t,{match:vt=>C.isBlock(t,vt),at:p,voids:i}),m=C.above(t,{match:vt=>C.isBlock(t,vt),at:v,voids:i}),y=h&&m&&!I.equals(h[1],m[1]),g=I.equals(p.path,v.path),w=i?null:C.void(t,{at:p,mode:"highest"}),E=i?null:C.void(t,{at:v,mode:"highest"});if(w){var x=C.before(t,p);x&&h&&I.isAncestor(h[1],x.path)&&(p=x)}if(E){var D=C.after(t,v);D&&m&&I.isAncestor(m[1],D.path)&&(v=D)}var S,k=[];for(var F of C.nodes(t,{at:a,voids:i})){var[$,W]=F;S&&I.compare(W,S)===0||(!i&&C.isVoid(t,$)||!I.isCommon(W,p.path)&&!I.isCommon(W,v.path))&&(k.push(F),S=W)}var j=Array.from(k,vt=>{var[,mt]=vt;return C.pathRef(t,mt)}),L=C.pointRef(t,p),V=C.pointRef(t,v);if(!g&&!w){var q=L.current,[Y]=C.leaf(t,q),{path:rt}=q,{offset:lt}=p,st=Y.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:rt,offset:lt,text:st})}for(var ut of j){var B=ut.unref();R.removeNodes(t,{at:B,voids:i})}if(!E){var A=V.current,[N]=C.leaf(t,A),{path:U}=A,X=g?p.offset:0,G=N.text.slice(X,v.offset);G.length>0&&t.apply({type:"remove_text",path:U,offset:X,text:G})}!g&&y&&V.current&&L.current&&R.mergeNodes(t,{at:V.current,hanging:!0,voids:i});var at=r?L.unref()||V.unref():V.unref()||L.unref();e.at==null&&at&&R.select(t,at)}}})},insertFragment(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=t.selection}=r;if(e.length&&i){if(z.isRange(i))if(n||(i=C.unhangRange(t,i)),z.isCollapsed(i))i=i.anchor;else{var[,a]=z.edges(i);if(!o&&C.void(t,{at:a}))return;var u=C.pointRef(t,a);R.delete(t,{at:i}),i=u.unref()}else I.isPath(i)&&(i=C.start(t,i));if(o||!C.void(t,{at:i})){var s=C.above(t,{at:i,match:A=>C.isInline(t,A),mode:"highest",voids:o});if(s){var[,l]=s;C.isEnd(t,i,l)?i=C.after(t,l):C.isStart(t,i,l)&&(i=C.before(t,l))}var c=C.above(t,{match:A=>C.isBlock(t,A),at:i,voids:o}),[,f]=c,d=C.isStart(t,i,f),p=C.isEnd(t,i,f),v=d&&p,h=!d||d&&p,m=!p,[,y]=Q.first({children:e},[]),[,g]=Q.last({children:e},[]),w=[],E=A=>{var[N,U]=A;return U.length!==0&&(!!v||!(h&&I.isAncestor(U,y)&&ft.isElement(N)&&!t.isVoid(N)&&!t.isInline(N))&&!(m&&I.isAncestor(U,g)&&ft.isElement(N)&&!t.isVoid(N)&&!t.isInline(N)))};for(var x of Q.nodes({children:e},{pass:E}))E(x)&&w.push(x);var D=[],S=[],k=[],F=!0,$=!1;for(var[W]of w)ft.isElement(W)&&!t.isInline(W)?(F=!1,$=!0,S.push(W)):F?D.push(W):k.push(W);var[j]=C.nodes(t,{at:i,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),[,L]=j,V=C.isStart(t,i,L),q=C.isEnd(t,i,L),Y=C.pathRef(t,p?I.next(f):f),rt=C.pathRef(t,q?I.next(L):L),lt=C.pathRef(t,f);R.splitNodes(t,{at:i,match:A=>$?C.isBlock(t,A):it.isText(A)||C.isInline(t,A),mode:$?"lowest":"highest",voids:o});var st=C.pathRef(t,!V||V&&q?I.next(L):L);if(R.insertNodes(t,D,{at:st.current,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),v&&S.length&&R.delete(t,{at:lt.unref(),voids:o}),R.insertNodes(t,S,{at:Y.current,match:A=>C.isBlock(t,A),mode:"lowest",voids:o}),R.insertNodes(t,k,{at:rt.current,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),!r.at){var ut;ut=k.length>0?I.previous(rt.current):S.length>0?I.previous(Y.current):I.previous(st.current);var B=C.end(t,ut);R.select(t,B)}st.unref(),Y.unref(),rt.unref()}}})},insertText(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(I.isPath(o)&&(o=C.range(t,o)),z.isRange(o))if(z.isCollapsed(o))o=o.anchor;else{var i=z.end(o);if(!n&&C.void(t,{at:i}))return;var a=C.pointRef(t,i);R.delete(t,{at:o,voids:n}),o=a.unref(),R.setSelection(t,{anchor:o,focus:o})}if(n||!C.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function YD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function kh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?YD(Object(r),!0).forEach(function(n){Lo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var R=kh(kh(kh(kh({},MG),$G),UG),WG),_E="[object Map]",FE="[object Set]",GG=/^\[object .+?Constructor\]$/,qG=/^(?:0|[1-9]\d*)$/,KG="[\\ud800-\\udfff]",TE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",PE="\\ud83c[\\udffb-\\udfff]",VP="[^\\ud800-\\udfff]",zP="(?:\\ud83c[\\udde6-\\uddff]){2}",$P="[\\ud800-\\udbff][\\udc00-\\udfff]",XD="(?:"+TE+"|"+PE+")?",YG="[\\ufe0e\\ufe0f]?"+XD+("(?:\\u200d(?:"+[VP,zP,$P].join("|")+")[\\ufe0e\\ufe0f]?"+XD+")*"),XG="(?:"+[VP+TE+"?",TE,zP,$P,KG].join("|")+")",ZG=RegExp(PE+"(?="+PE+")|"+XG+YG,"g"),JG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),QG=typeof ue=="object"&&ue&&ue.Object===Object&&ue,tq=typeof self=="object"&&self&&self.Object===Object&&self,is=QG||tq||Function("return this")();function eq(t,e){return function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a}(e,function(r){return t[r]})}function rq(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function nq(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}function oq(t){return function(e){return JG.test(e)}(t)?function(e){return e.match(ZG)||[]}(t):function(e){return e.split("")}(t)}var ZD,JD,iq=Function.prototype,km=Object.prototype,u1=is["__core-js_shared__"],QD=function(){var t=/[^.]+$/.exec(u1&&u1.keys&&u1.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),HP=iq.toString,Nv=km.hasOwnProperty,Tp=km.toString,aq=RegExp("^"+HP.call(Nv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tA=is.Symbol,s1=tA?tA.iterator:void 0,uq=km.propertyIsEnumerable,sq=(ZD=Object.keys,JD=Object,function(t){return ZD(JD(t))}),NE=Pp(is,"DataView"),jE=Pp(is,"Map"),IE=Pp(is,"Promise"),LE=Pp(is,"Set"),RE=Pp(is,"WeakMap"),lq=as(NE),cq=as(jE),fq=as(IE),dq=as(LE),pq=as(RE);function hq(t,e){var r=UP(t)||function(a){return function(u){return qP(u)&&g6(u)}(a)&&Nv.call(a,"callee")&&(!uq.call(a,"callee")||Tp.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!Nv.call(t,i)||o&&(i=="length"||mq(i,n))||r.push(i);return r}function gq(t){if(!GP(t)||function(r){return!!QD&&QD in r}(t))return!1;var e=WP(t)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n}(t)?aq:GG;return e.test(as(t))}function vq(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||km,e!==n)return sq(t);var e,r,n,o=[];for(var i in Object(t))Nv.call(t,i)&&i!="constructor"&&o.push(i);return o}function Pp(t,e){var r=function(n,o){return n==null?void 0:n[o]}(t,e);return gq(r)?r:void 0}var ru=function(t){return Tp.call(t)};function mq(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||qG.test(t))&&t>-1&&t%1==0&&t<e}function as(t){if(t!=null){try{return HP.call(t)}catch{}try{return t+""}catch{}}return""}(NE&&ru(new NE(new ArrayBuffer(1)))!="[object DataView]"||jE&&ru(new jE)!=_E||IE&&ru(IE.resolve())!="[object Promise]"||LE&&ru(new LE)!=FE||RE&&ru(new RE)!="[object WeakMap]")&&(ru=function(t){var e=Tp.call(t),r=e=="[object Object]"?t.constructor:void 0,n=r?as(r):void 0;if(n)switch(n){case lq:return"[object DataView]";case cq:return _E;case fq:return"[object Promise]";case dq:return FE;case pq:return"[object WeakMap]"}return e});var UP=Array.isArray;function g6(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!WP(t)}function WP(t){var e=GP(t)?Tp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function GP(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function qP(t){return!!t&&typeof t=="object"}function yq(t){return t?eq(t,function(e){return g6(e)?hq(e):vq(e)}(t)):[]}var eA=function(t){if(!t)return[];if(g6(t))return function(r){return typeof r=="string"||!UP(r)&&qP(r)&&Tp.call(r)=="[object String]"}(t)?oq(t):function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n}(t);if(s1&&t[s1])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(t[s1]());var e=ru(t);return(e==_E?rq:e==FE?nq:yq)(t)};function rA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function v6(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(r){t[r]===void 0?t[r]=e[r]:rA(e[r])&&rA(t[r])&&Object.keys(e[r]).length>0&&v6(t[r],e[r])})}var KP={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 Np(){var t=typeof document<"u"?document:{};return v6(t,KP),t}var bq={document:KP,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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function us(){var t=typeof window<"u"?window:{};return v6(t,bq),t}function ME(t){return ME=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ME(t)}function jv(t,e){return jv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},jv(t,e)}function wq(){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 VE(t,e,r){return VE=wq()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&jv(u,i.prototype),u},VE.apply(null,arguments)}function zE(t){var e=typeof Map=="function"?new Map:void 0;return zE=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return VE(r,arguments,ME(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),jv(n,r)},zE(t)}var Ki=function(t){var e,r;function n(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(zE(Array));function Bm(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(r){Array.isArray(r)?e.push.apply(e,Bm(r)):e.push(r)}),e}function YP(t,e){return Array.prototype.filter.call(t,e)}function _(t,e){var r=us(),n=Np(),o=[];if(!e&&t instanceof Ki)return t;if(!t)return new Ki(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof Ki)return t;o=t}return new Ki(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function Al(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Bm(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function Ol(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Bm(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function kl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Bm(e.map(function(o){return o.split(" ")}));return YP(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function kn(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,e);else for(var n in t)this[r][n]=t[n],this[r].setAttribute(n,t[n]);return this}function Iv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Bl(){var t=this[0];if(t){var e,r={};if(t.dataset)for(var n in t.dataset)r[n]=t.dataset[n];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(r[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function Bo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<e.selectedOptions.length;n+=1)r.push(e.selectedOptions[n].value);return r}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function _o(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];function u(h){var m=h.target;if(m){var y=h.target.dom7EventData||[];if(y.indexOf(h)<0&&y.unshift(h),_(m).is(o))i.apply(m,y);else for(var g=_(m).parents(),w=0;w<g.length;w+=1)_(g[w]).is(o)&&i.apply(g[w],y)}}function s(h){var m=h&&h.target&&h.target.dom7EventData||[];m.indexOf(h)<0&&m.unshift(h),i.apply(this,m)}typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function nA(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=n.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function Lv(){var t=us();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Rv(){var t=us();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function oA(){if(this.length>0){var t=us(),e=Np(),r=this[0],n=r.getBoundingClientRect(),o=e.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function _l(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Mv(){for(var t=us(),e=0;e<this.length;e+=1){var r=this[e];r.style.display==="none"&&(r.style.display=""),t.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Vv(t,e){var r,n=us();if(arguments.length===1){if(typeof t!="string"){for(r=0;r<this.length;r+=1)for(var o in t)this[r].style[o]=t[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function zv(t){return t?(this.forEach(function(e,r){t.apply(e,[e,r])}),this):this}function iA(t){return _(YP(this,t))}function ya(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function $v(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function aA(t){var e,r,n=us(),o=Np(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=_(t),r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}if(t===o)return i===o;if(t===n)return i===n;if(t.nodeType||t instanceof Ki){for(e=t.nodeType?[t]:t,r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}return!1}function Bn(){for(var t,e=Np(),r=0;r<arguments.length;r+=1){t=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof Ki)for(var i=0;i<t.length;i+=1)this[n].appendChild(t[i]);else this[n].appendChild(t)}return this}function uA(t){var e,r,n=Np();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=n.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(o.childNodes[r],this[e].childNodes[0])}else if(t instanceof Ki)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Fl(t){for(var e=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?_(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return _(e)}function Hv(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)t?_(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return _(e)}function Tl(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return _(e)}function Pl(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)t&&!_(n[o]).is(t)||e.push(n[o]);return _(e)}function Nl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function jl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var r=0;r<e.childNodes.length;r+=1)e.childNodes[r].parentNode&&e.childNodes[r].parentNode.removeChild(e.childNodes[r]);e.textContent=""}}return this}_.fn=Ki.prototype;var Eq="resize scroll".split(" ");function XP(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)Eq.indexOf(t)<0&&(t in this[o]?this[o][t]():_(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(r))}}var sA=XP("click"),ba=XP("focus"),Cq="[object GeneratorFunction]",xq=/^(?:0|[1-9]\d*)$/;function Sq(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}var _m=Object.prototype,$E=_m.hasOwnProperty,ZP=_m.toString,Dq=_m.propertyIsEnumerable,Aq=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object);function Oq(t,e){var r=JP(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&m6(u)}(a)&&$E.call(a,"callee")&&(!Dq.call(a,"callee")||ZP.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!$E.call(t,i)||o&&(i=="length"||Fq(i,n))||r.push(i);return r}var lA,kq=(lA=function(t,e){return t&&Bq(t,e,Tq)},function(t,e){if(t==null)return t;if(!m6(t))return lA(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&e(o[n],n,o)!==!1;);return t}),Bq=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return e}}();function _q(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||_m,e!==n)return Aq(t);var e,r,n,o=[];for(var i in Object(t))$E.call(t,i)&&i!="constructor"&&o.push(i);return o}function Fq(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||xq.test(t))&&t>-1&&t%1==0&&t<e}var JP=Array.isArray;function m6(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(e)?ZP.call(e):"";return r=="[object Function]"||r==Cq}(t)}function Tq(t){return m6(t)?Oq(t):_q(t)}function Pq(t){return t}var y6=function(t,e){return(JP(t)?Sq:kq)(t,typeof e=="function"?e:Pq)};let QP=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var Nq=/^\s+|\s+$/g,jq=/^[-+]0x[0-9a-f]+$/i,Iq=/^0b[01]+$/i,Lq=/^0o[0-7]+$/i,Rq=parseInt,Mq=typeof ue=="object"&&ue&&ue.Object===Object&&ue,Vq=typeof self=="object"&&self&&self.Object===Object&&self,zq=Mq||Vq||Function("return this")(),$q=Object.prototype.toString,Hq=Math.max,Uq=Math.min,l1=function(){return zq.Date.now()};function Wq(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(w){var E=n,x=o;return n=o=void 0,l=w,a=t.apply(x,E)}function v(w){return l=w,u=setTimeout(m,e),c?p(w):a}function h(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=i}function m(){var w=l1();if(h(w))return y(w);u=setTimeout(m,function(E){var x=e-(E-s);return f?Uq(x,i-(E-l)):x}(w))}function y(w){return u=void 0,d&&n?p(w):(n=o=void 0,a)}function g(){var w=l1(),E=h(w);if(n=arguments,o=this,s=w,E){if(u===void 0)return v(s);if(f)return u=setTimeout(m,e),p(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=cA(e)||0,Uv(r)&&(c=!!r.leading,i=(f="maxWait"in r)?Hq(cA(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},g.flush=function(){return u===void 0?a:y(l1())},g}function Uv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function cA(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&$q.call(n)=="[object Symbol]"}(t))return NaN;if(Uv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Uv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Nq,"");var r=Iq.test(t);return r||Lq.test(t)?Rq(t.slice(2),r?2:8):jq.test(t)?NaN:+t}var Wu=function(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return Uv(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Wq(t,e,{leading:n,maxWait:e,trailing:o})};const Gq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Td(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:e===void 0?void 0:e.key}}const HE=Array.isArray;function Rg(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function c1(t){return t===void 0}function Zr(t){return t!==void 0}const fA=Td("",{},[],void 0,void 0);function Fc(t,e){var r,n;const o=t.key===e.key,i=((r=t.data)===null||r===void 0?void 0:r.is)===((n=e.data)===null||n===void 0?void 0:n.is);return t.sel===e.sel&&o&&i}function qq(t,e,r){var n;const o={};for(let i=e;i<=r;++i){const a=(n=t[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const Kq=["create","update","remove","destroy","pre","post"];function Yq(t,e){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=Gq;for(const f of Kq)for(const d of t){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Td(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,v;let h,m=f.data;if(m!==void 0){const w=(p=m.hook)===null||p===void 0?void 0:p.init;Zr(w)&&(w(f),m=f.data)}const y=f.children,g=f.sel;if(g==="!")c1(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(g!==void 0){const w=g.indexOf("#"),E=g.indexOf(".",w),x=w>0?w:g.length,D=E>0?E:g.length,S=w!==-1||E!==-1?g.slice(0,Math.min(x,D)):g,k=f.elm=Zr(m)&&Zr(h=m.ns)?n.createElementNS(h,S,m):n.createElement(S,m);for(x<D&&k.setAttribute("id",g.slice(x+1,D)),E>0&&k.setAttribute("class",g.slice(D+1).replace(/\./g," ")),h=0;h<r.create.length;++h)r.create[h](fA,f);if(HE(y))for(h=0;h<y.length;++h){const $=y[h];$!=null&&n.appendChild(k,a($,d))}else Rg(f.text)&&n.appendChild(k,n.createTextNode(f.text));const F=f.data.hook;Zr(F)&&((v=F.create)===null||v===void 0||v.call(F,fA,f),F.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,v,h,m){for(;v<=h;++v){const y=p[v];y!=null&&n.insertBefore(f,a(y,m),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let h=0;h<r.destroy.length;++h)r.destroy[h](f);if(f.children!==void 0)for(let h=0;h<f.children.length;++h){const m=f.children[h];m!=null&&typeof m!="string"&&s(m)}}}function l(f,d,p,v){for(var h,m;p<=v;++p){let y,g;const w=d[p];if(w!=null)if(Zr(w.sel)){s(w),y=r.remove.length+1,g=i(w.elm,y);for(let x=0;x<r.remove.length;++x)r.remove[x](w,g);const E=(m=(h=w==null?void 0:w.data)===null||h===void 0?void 0:h.hook)===null||m===void 0?void 0:m.remove;Zr(E)?E(w,g):g()}else n.removeChild(f,w.elm)}}function c(f,d,p){var v,h,m,y,g;const w=(v=d.data)===null||v===void 0?void 0:v.hook;(h=w==null?void 0:w.prepatch)===null||h===void 0||h.call(w,f,d);const E=d.elm=f.elm,x=f.children,D=d.children;if(f!==d){if(d.data!==void 0){for(let S=0;S<r.update.length;++S)r.update[S](f,d);(y=(m=d.data.hook)===null||m===void 0?void 0:m.update)===null||y===void 0||y.call(m,f,d)}c1(d.text)?Zr(x)&&Zr(D)?x!==D&&function(S,k,F,$){let W,j,L,V,q=0,Y=0,rt=k.length-1,lt=k[0],st=k[rt],ut=F.length-1,B=F[0],A=F[ut];for(;q<=rt&&Y<=ut;)lt==null?lt=k[++q]:st==null?st=k[--rt]:B==null?B=F[++Y]:A==null?A=F[--ut]:Fc(lt,B)?(c(lt,B,$),lt=k[++q],B=F[++Y]):Fc(st,A)?(c(st,A,$),st=k[--rt],A=F[--ut]):Fc(lt,A)?(c(lt,A,$),n.insertBefore(S,lt.elm,n.nextSibling(st.elm)),lt=k[++q],A=F[--ut]):Fc(st,B)?(c(st,B,$),n.insertBefore(S,st.elm,lt.elm),st=k[--rt],B=F[++Y]):(W===void 0&&(W=qq(k,q,rt)),j=W[B.key],c1(j)?n.insertBefore(S,a(B,$),lt.elm):(L=k[j],L.sel!==B.sel?n.insertBefore(S,a(B,$),lt.elm):(c(L,B,$),k[j]=void 0,n.insertBefore(S,L.elm,lt.elm))),B=F[++Y]);(q<=rt||Y<=ut)&&(q>rt?(V=F[ut+1]==null?null:F[ut+1].elm,u(S,V,F,Y,ut,$)):l(S,k,q,rt))}(E,x,D,p):Zr(D)?(Zr(f.text)&&n.setTextContent(E,""),u(E,null,D,0,D.length-1,p)):Zr(x)?l(E,x,0,x.length-1):Zr(f.text)&&n.setTextContent(E,""):f.text!==d.text&&(Zr(x)&&l(E,x,0,x.length-1),n.setTextContent(E,d.text)),(g=w==null?void 0:w.postpatch)===null||g===void 0||g.call(w,f,d)}}return function(f,d){let p,v,h;const m=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Fc(f,d)?c(f,d,m):(v=f.elm,h=n.parentNode(v),a(d,m),h!==null&&(n.insertBefore(h,d.elm,n.nextSibling(v)),l(h,[f],0,0))),p=0;p<m.length;++p)m[p].data.hook.insert(m[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function tN(t,e,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){const o=e[n].data;o!==void 0&&tN(o,e[n].children,e[n].sel)}}function Il(t,e,r){let n,o,i,a={};if(r!==void 0?(e!==null&&(a=e),HE(r)?n=r:Rg(r)?o=r.toString():r&&r.sel&&(n=[r])):e!=null&&(HE(e)?n=e:Rg(e)?o=e.toString():e&&e.sel?n=[e]:a=e),n!==void 0)for(i=0;i<n.length;++i)Rg(n[i])&&(n[i]=Td(void 0,void 0,void 0,n[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||tN(a,n,t),Td(t,a,n,o,void 0)}function dA(t,e){let r;const n=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const Xq={create:dA,update:dA};function pA(t,e){let r,n;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const Zq={create:pA,update:pA},hA=/[A-Z]/g;function gA(t,e){const r=e.elm;let n,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(hA,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(hA,"-$&").toLowerCase(),i[n]))}const Jq={create:gA,update:gA};function eN(t,e,r){if(typeof t=="function")t.call(e,r,e);else if(typeof t=="object")for(let n=0;n<t.length;n++)eN(t[n],e,r)}function Qq(t,e){const r=t.type,n=e.data.on;n&&n[r]&&eN(n[r],e,t)}function f1(t,e){const r=t.data.on,n=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=e.listener=t.listener||function l(c){Qq(c,l.vnode)};if(s.vnode=e,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const tK={create:f1,update:f1,destroy:f1};function vA(t,e){let r,n,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const eK={create:vA,update:vA},mA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let d1=!1;function rK(t,e,r){(function(n){mA(function(){mA(n)})})(function(){t[e]=r})}function yA(t,e){let r,n;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||rK(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const nK={pre:function(){d1=!1},create:yA,update:yA,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;d1||(t.elm.offsetLeft,d1=!0);const o=t.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function rN(t,e){for(const r of t)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?rN(r,e):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?e.push(Td(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function wt(t,e,...r){const n=rN(r,[]);return typeof t=="function"?t(e,n):n.length===1&&!n[0].sel&&n[0].text?Il(t,e,n[0].text):Il(t,e,n)}wt||(wt={});var oK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,iK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nN="\\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",aK="[\\ud800-\\udfff]",bA="["+nN+"]",Wv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",oN="\\d+",uK="[\\u2700-\\u27bf]",iN="[a-z\\xdf-\\xf6\\xf8-\\xff]",aN="[^\\ud800-\\udfff"+nN+oN+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",UE="\\ud83c[\\udffb-\\udfff]",uN="[^\\ud800-\\udfff]",b6="(?:\\ud83c[\\udde6-\\uddff]){2}",w6="[\\ud800-\\udbff][\\udc00-\\udfff]",Js="[A-Z\\xc0-\\xd6\\xd8-\\xde]",wA="(?:"+iN+"|"+aN+")",sK="(?:"+Js+"|"+aN+")",EA="(?:"+Wv+"|"+UE+")?",sN="[\\ufe0e\\ufe0f]?"+EA+("(?:\\u200d(?:"+[uN,b6,w6].join("|")+")[\\ufe0e\\ufe0f]?"+EA+")*"),lK="(?:"+[uK,b6,w6].join("|")+")"+sN,cK="(?:"+[uN+Wv+"?",Wv,b6,w6,aK].join("|")+")",fK=RegExp("['’]","g"),dK=RegExp(Wv,"g"),pK=RegExp(UE+"(?="+UE+")|"+cK+sN,"g"),hK=RegExp([Js+"?"+iN+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[bA,Js,"$"].join("|")+")",sK+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[bA,Js+wA,"$"].join("|")+")",Js+"?"+wA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Js+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",oN,lK].join("|"),"g"),gK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),vK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mK=typeof ue=="object"&&ue&&ue.Object===Object&&ue,yK=typeof self=="object"&&self&&self.Object===Object&&self,bK=mK||yK||Function("return this")(),p1,wK=(p1={À:"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(t){return p1==null?void 0:p1[t]});function lN(t){return gK.test(t)}function EK(t){return lN(t)?function(e){return e.match(pK)||[]}(t):function(e){return e.split("")}(t)}var CK=Object.prototype.toString,CA=bK.Symbol,xA=CA?CA.prototype:void 0,SA=xA?xA.toString:void 0;function xK(t){if(typeof t=="string")return t;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&CK.call(r)=="[object Symbol]"}(t))return SA?SA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function SK(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,r)}function Mg(t){return t==null?"":xK(t)}var DA,DK=(DA=function(t,e,r){return e=e.toLowerCase(),t+(r?AK(Mg(e).toLowerCase()):e)},function(t){return function(e,r,n,o){var i=-1,a=e?e.length:0;for(o;++i<a;)n=r(n,e[i],i,e);return n}(function(e,r,n){return e=Mg(e),(r=r)===void 0?function(o){return vK.test(o)}(e)?function(o){return o.match(hK)||[]}(e):function(o){return o.match(oK)||[]}(e):e.match(r)||[]}(function(e){return(e=Mg(e))&&e.replace(iK,wK).replace(dK,"")}(t).replace(fK,"")),DA,"")}),AA,AK=(AA="toUpperCase",function(t){var e=lN(t=Mg(t))?EK(t):void 0,r=e?e[0]:t.charAt(0),n=e?SK(e,1).join(""):t.slice(1);return r[AA]()+n});for(var OK=DK,kK=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),h1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},cN={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:kK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},E6={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},Bh=1;Bh<20;Bh++)E6["f"+Bh]=111+Bh;function fN(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in h1)l[h1[d]]=!1;var p=!0,v=!1,h=void 0;try{for(var m,y=c[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var g=m.value,w=g.endsWith("?")&&g.length>1;w&&(g=g.slice(0,-1));var E=dN(g),x=h1[E];if(g.length>1&&!x&&!cN[g]&&!E6[E])throw new TypeError('Unknown modifier: "'+g+'"');f!==1&&x||(s?l.key=E:l.which=BK(g)),x&&(l[x]=!w||null)}}catch(D){v=!0,h=D}finally{try{!p&&y.return&&y.return()}finally{if(v)throw h}}return l}(i,e)}),o=function(i){return n.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return r==null?o:o(r)}function BK(t){return t=dN(t),E6[t]||t.toUpperCase().charCodeAt(0)}function dN(t){return t=t.toLowerCase(),t=cN[t]||t}var _K=fN,g1=function(t,e){return fN(t,{byKey:!0},e)},FK=/^\s+|\s+$/g,TK=/^[-+]0x[0-9a-f]+$/i,PK=/^0b[01]+$/i,NK=/^0o[0-7]+$/i,jK=parseInt,IK=typeof ue=="object"&&ue&&ue.Object===Object&&ue,LK=typeof self=="object"&&self&&self.Object===Object&&self,RK=IK||LK||Function("return this")(),MK=Object.prototype.toString,VK=Math.max,zK=Math.min,v1=function(){return RK.Date.now()};function WE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function OA(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&MK.call(n)=="[object Symbol]"}(t))return NaN;if(WE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=WE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(FK,"");var r=PK.test(t);return r||NK.test(t)?jK(t.slice(2),r?2:8):TK.test(t)?NaN:+t}var Ss,pN=function(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(w){var E=n,x=o;return n=o=void 0,l=w,a=t.apply(x,E)}function v(w){return l=w,u=setTimeout(m,e),c?p(w):a}function h(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=i}function m(){var w=v1();if(h(w))return y(w);u=setTimeout(m,function(E){var x=e-(E-s);return f?zK(x,i-(E-l)):x}(w))}function y(w){return u=void 0,d&&n?p(w):(n=o=void 0,a)}function g(){var w=v1(),E=h(w);if(n=arguments,o=this,s=w,E){if(u===void 0)return v(s);if(f)return u=setTimeout(m,e),p(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=OA(e)||0,WE(r)&&(c=!!r.leading,i=(f="maxWait"in r)?VK(OA(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},g.flush=function(){return u===void 0?a:y(v1())},g},hN=ns(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",h="[object String]",m="[object Symbol]",y="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",D="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",F="[object Uint8Array]",$="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/\w*$/,V=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,Y={};Y[o]=Y["[object Array]"]=Y[g]=Y[w]=Y[i]=Y[a]=Y[E]=Y[x]=Y[D]=Y[S]=Y[k]=Y[l]=Y[c]=Y[f]=Y[p]=Y[v]=Y[h]=Y[m]=Y[F]=Y[$]=Y[W]=Y[j]=!0,Y["[object Error]"]=Y[u]=Y[y]=!1;var rt=typeof ue=="object"&&ue&&ue.Object===Object&&ue,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=rt||lt||Function("return this")(),ut=e&&!e.nodeType&&e,B=ut&&t&&!t.nodeType&&t,A=B&&B.exports===ut;function N(T,H){return T.set(H[0],H[1]),T}function U(T,H){return T.add(H),T}function X(T,H,ot,ct){var zt=-1,me=T?T.length:0;for(ct;++zt<me;)ot=H(ot,T[zt],zt,T);return ot}function G(T){var H=!1;if(T!=null&&typeof T.toString!="function")try{H=!!(T+"")}catch{}return H}function at(T){var H=-1,ot=Array(T.size);return T.forEach(function(ct,zt){ot[++H]=[zt,ct]}),ot}function vt(T,H){return function(ot){return T(H(ot))}}function mt(T){var H=-1,ot=Array(T.size);return T.forEach(function(ct){ot[++H]=ct}),ot}var xt=Array.prototype,K=Function.prototype,Lt=Object.prototype,Ot=st["__core-js_shared__"],pt=function(){var T=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),kt=K.toString,ke=Lt.hasOwnProperty,$t=Lt.toString,te=RegExp("^"+kt.call(ke).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=A?st.Buffer:void 0,vr=st.Symbol,Vt=st.Uint8Array,Ir=vt(Object.getPrototypeOf,Object),In=Object.create,ro=Lt.propertyIsEnumerable,gs=xt.splice,Ra=Object.getOwnPropertySymbols,Ln=ve?ve.isBuffer:void 0,no=vt(Object.keys,Object),Mo=oo(st,"DataView"),mr=oo(st,"Map"),yr=oo(st,"Promise"),br=oo(st,"Set"),_r=oo(st,"WeakMap"),nr=oo(Object,"create"),hn=ao(Mo),yc=ao(mr),mi=ao(yr),Vo=ao(br),vs=ao(_r),Ma=vr?vr.prototype:void 0,ms=Ma?Ma.valueOf:void 0;function Rn(T){var H=-1,ot=T?T.length:0;for(this.clear();++H<ot;){var ct=T[H];this.set(ct[0],ct[1])}}function gn(T){var H=-1,ot=T?T.length:0;for(this.clear();++H<ot;){var ct=T[H];this.set(ct[0],ct[1])}}function zo(T){var H=-1,ot=T?T.length:0;for(this.clear();++H<ot;){var ct=T[H];this.set(ct[0],ct[1])}}function Mn(T){this.__data__=new gn(T)}function yi(T,H){var ot=P(T)||function(le){return function(Wt){return function(Ze){return!!Ze&&typeof Ze=="object"}(Wt)&&M(Wt)}(le)&&ke.call(le,"callee")&&(!ro.call(le,"callee")||$t.call(le)==o)}(T)?function(le,Wt){for(var Ze=-1,wr=Array(le);++Ze<le;)wr[Ze]=Wt(Ze);return wr}(T.length,String):[],ct=ot.length,zt=!!ct;for(var me in T)!ke.call(T,me)||zt&&(me=="length"||hh(me,ct))||ot.push(me);return ot}function dh(T,H,ot){var ct=T[H];ke.call(T,H)&&gh(ct,ot)&&(ot!==void 0||H in T)||(T[H]=ot)}function Xr(T,H){for(var ot=T.length;ot--;)if(gh(T[ot][0],H))return ot;return-1}function bc(T,H,ot,ct,zt,me,le){var Wt;if(ct&&(Wt=me?ct(T,zt,me,le):ct(T)),Wt!==void 0)return Wt;if(!ee(T))return T;var Ze=P(T);if(Ze){if(Wt=function(bt){var Zt=bt.length,Pe=bt.constructor(Zt);return Zt&&typeof bt[0]=="string"&&ke.call(bt,"index")&&(Pe.index=bt.index,Pe.input=bt.input),Pe}(T),!H)return function(bt,Zt){var Pe=-1,Rt=bt.length;for(Zt||(Zt=Array(Rt));++Pe<Rt;)Zt[Pe]=bt[Pe];return Zt}(T,Wt)}else{var wr=io(T),Va=wr==u||wr==s;if(J(T))return function(bt,Zt){if(Zt)return bt.slice();var Pe=new bt.constructor(bt.length);return bt.copy(Pe),Pe}(T,H);if(wr==f||wr==o||Va&&!me){if(G(T))return me?T:{};if(Wt=function(bt){return typeof bt.constructor!="function"||bi(bt)?{}:(Zt=Ir(bt),ee(Zt)?In(Zt):{});var Zt}(Va?{}:T),!H)return function(bt,Zt){return ph(bt,wc(bt),Zt)}(T,function(bt,Zt){return bt&&ph(Zt,Nt(Zt),bt)}(Wt,T))}else{if(!Y[wr])return me?T:{};Wt=function(bt,Zt,Pe,Rt){var Gt=bt.constructor;switch(Zt){case g:return ys(bt);case i:case a:return new Gt(+bt);case w:return function(qt,Be){var Fr=Be?ys(qt.buffer):qt.buffer;return new qt.constructor(Fr,qt.byteOffset,qt.byteLength)}(bt,Rt);case E:case x:case D:case S:case k:case F:case $:case W:case j:return function(qt,Be){var Fr=Be?ys(qt.buffer):qt.buffer;return new qt.constructor(Fr,qt.byteOffset,qt.length)}(bt,Rt);case l:return function(qt,Be,Fr){return X(Be?Fr(at(qt),!0):at(qt),N,new qt.constructor)}(bt,Rt,Pe);case c:case h:return new Gt(bt);case p:return function(qt){var Be=new qt.constructor(qt.source,L.exec(qt));return Be.lastIndex=qt.lastIndex,Be}(bt);case v:return function(qt,Be,Fr){return X(Be?Fr(mt(qt),!0):mt(qt),U,new qt.constructor)}(bt,Rt,Pe);case m:return function(qt){return ms?Object(ms.call(qt)):{}}(bt)}}(T,wr,bc,H)}}le||(le=new Mn);var Uo=le.get(T);if(Uo)return Uo;if(le.set(T,Wt),!Ze)var wi=ot?function(bt){return function(Zt,Pe,Rt){var Gt=Pe(Zt);return P(Zt)?Gt:function(qt,Be){for(var Fr=-1,Lr=Be.length,Vn=qt.length;++Fr<Lr;)qt[Vn+Fr]=Be[Fr];return qt}(Gt,Rt(Zt))}(bt,Nt,wc)}(T):Nt(T);return function(bt,Zt){for(var Pe=-1,Rt=bt?bt.length:0;++Pe<Rt&&Zt(bt[Pe],Pe,bt)!==!1;);}(wi||T,function(bt,Zt){wi&&(bt=T[Zt=bt]),dh(Wt,Zt,bc(bt,H,ot,ct,Zt,T,le))}),Wt}function $o(T){return!(!ee(T)||function(H){return!!pt&&pt in H}(T))&&(gt(T)||G(T)?te:V).test(ao(T))}function ys(T){var H=new T.constructor(T.byteLength);return new Vt(H).set(new Vt(T)),H}function ph(T,H,ot,ct){ot||(ot={});for(var zt=-1,me=H.length;++zt<me;){var le=H[zt],Wt=void 0;dh(ot,le,Wt===void 0?T[le]:Wt)}return ot}function Ho(T,H){var ot,ct,zt=T.__data__;return((ct=typeof(ot=H))=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?ot!=="__proto__":ot===null)?zt[typeof H=="string"?"string":"hash"]:zt.map}function oo(T,H){var ot=function(ct,zt){return ct==null?void 0:ct[zt]}(T,H);return $o(ot)?ot:void 0}Rn.prototype.clear=function(){this.__data__=nr?nr(null):{}},Rn.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},Rn.prototype.get=function(T){var H=this.__data__;if(nr){var ot=H[T];return ot===r?void 0:ot}return ke.call(H,T)?H[T]:void 0},Rn.prototype.has=function(T){var H=this.__data__;return nr?H[T]!==void 0:ke.call(H,T)},Rn.prototype.set=function(T,H){return this.__data__[T]=nr&&H===void 0?r:H,this},gn.prototype.clear=function(){this.__data__=[]},gn.prototype.delete=function(T){var H=this.__data__,ot=Xr(H,T);return!(ot<0)&&(ot==H.length-1?H.pop():gs.call(H,ot,1),!0)},gn.prototype.get=function(T){var H=this.__data__,ot=Xr(H,T);return ot<0?void 0:H[ot][1]},gn.prototype.has=function(T){return Xr(this.__data__,T)>-1},gn.prototype.set=function(T,H){var ot=this.__data__,ct=Xr(ot,T);return ct<0?ot.push([T,H]):ot[ct][1]=H,this},zo.prototype.clear=function(){this.__data__={hash:new Rn,map:new(mr||gn),string:new Rn}},zo.prototype.delete=function(T){return Ho(this,T).delete(T)},zo.prototype.get=function(T){return Ho(this,T).get(T)},zo.prototype.has=function(T){return Ho(this,T).has(T)},zo.prototype.set=function(T,H){return Ho(this,T).set(T,H),this},Mn.prototype.clear=function(){this.__data__=new gn},Mn.prototype.delete=function(T){return this.__data__.delete(T)},Mn.prototype.get=function(T){return this.__data__.get(T)},Mn.prototype.has=function(T){return this.__data__.has(T)},Mn.prototype.set=function(T,H){var ot=this.__data__;if(ot instanceof gn){var ct=ot.__data__;if(!mr||ct.length<199)return ct.push([T,H]),this;ot=this.__data__=new zo(ct)}return ot.set(T,H),this};var wc=Ra?vt(Ra,Object):function(){return[]},io=function(T){return $t.call(T)};function hh(T,H){return!!(H=H??n)&&(typeof T=="number"||q.test(T))&&T>-1&&T%1==0&&T<H}function bi(T){var H=T&&T.constructor;return T===(typeof H=="function"&&H.prototype||Lt)}function ao(T){if(T!=null){try{return kt.call(T)}catch{}try{return T+""}catch{}}return""}function gh(T,H){return T===H||T!=T&&H!=H}(Mo&&io(new Mo(new ArrayBuffer(1)))!=w||mr&&io(new mr)!=l||yr&&io(yr.resolve())!=d||br&&io(new br)!=v||_r&&io(new _r)!=y)&&(io=function(T){var H=$t.call(T),ot=H==f?T.constructor:void 0,ct=ot?ao(ot):void 0;if(ct)switch(ct){case hn:return w;case yc:return l;case mi:return d;case Vo:return v;case vs:return y}return H});var P=Array.isArray;function M(T){return T!=null&&function(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=n}(T.length)&&!gt(T)}var J=Ln||function(){return!1};function gt(T){var H=ee(T)?$t.call(T):"";return H==u||H==s}function ee(T){var H=typeof T;return!!T&&(H=="object"||H=="function")}function Nt(T){return M(T)?yi(T):function(H){if(!bi(H))return no(H);var ot=[];for(var ct in Object(H))ke.call(H,ct)&&ct!="constructor"&&ot.push(ct);return ot}(T)}t.exports=function(T){return bc(T,!0,!0)}});function kA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var $K=0;function HK(t){return"__private_"+$K+++"_"+t}function UK(t,e,r){const n=[];return t.forEach(o=>typeof o!="string"?n.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})),n}/**
|
|
16
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
17
|
+
* and replaces it with values from options `{smart_count: 5}`
|
|
18
|
+
*
|
|
19
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
20
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
21
|
+
*
|
|
22
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
|
23
|
+
* @param {object} options with values that will be used to replace placeholders
|
|
24
|
+
* @returns {any[]} interpolated
|
|
25
|
+
*/function BA(t,e){const r=/\$/g;let n=[t];if(e==null)return n;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=UK(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var gN=(Ss=HK("apply"),class{constructor(t){Object.defineProperty(this,Ss,{value:WK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(kA(this,Ss)[Ss],this):kA(this,Ss)[Ss](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(e&&e.smart_count!==void 0)return BA(r[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return BA(r,e)}});function WK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var vN=function(){var t={},e=t._fns={};return t.emit=function(r,n,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(e),h=0,m=v.length;h<m;h++){var y=v[h];if(y==="*"&&(f=f.concat(e[y])),p.length===2&&p[0]===y){f=f.concat(e[y]);break}}return f}(r);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(r,l,[n,o,i,a,u,s])},t.on=function(r,n){e[r]||(e[r]=[]),e[r].push(n)},t.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),t.off(r,o)})},t.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},t},GK={nanoid:(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},m1=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function mN(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}mN.prototype.match=function(t){var e,r,n=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<i;e++)o[e]!=="*"&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if(typeof t.splice=="function")for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if(typeof t=="object")for(var a in n={},t)this.match(a)&&(n[a]=t[a]);return n};var qK=/[\/\+\.]/,KK=function(t,e){function r(n){var o=function(i,a,u){var s=new mN(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(n,t,qK);return o&&o.length>=2}return e?r(e.split(";")[0]):r},YK=0;function XK(t){return"__private_"+YK+++"_"+t}var y1=XK("publish");class yN{constructor(){Object.defineProperty(this,y1,{value:ZK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const r={...this.state},n={...this.state,...e};this.state=n,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,y1)[y1](r,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function ZK(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach(n=>{n(...e)})}yN.VERSION="2.0.3";var _A=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},FA={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 TA(t){let e="";return t.replace(/[^A-Z0-9]/gi,r=>(e+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+e}var JK=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function b1(t){return t<10?`0${t}`:t.toString()}var _h=function(){const t=new Date;return`${b1(t.getHours())}:${b1(t.getMinutes())}:${b1(t.getSeconds())}`},bN={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${_h()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.debug(`[Uppy] [${_h()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.warn(`[Uppy] [${_h()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${_h()}]`,...e)}}},QK={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}"}}},wN=GK;let EN,CN;function dt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var tY=0;function Xe(t){return"__private_"+tY+++"_"+t}const{nanoid:eY}=wN,{justErrorsLogger:rY,debugLogger:nY}=bN;class vo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class oY extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var dr=Xe("plugins"),Tc=Xe("storeUnsubscribe"),Go=Xe("emitter"),uu=Xe("preProcessors"),su=Xe("uploaders"),Jo=Xe("postProcessors"),rd=Xe("checkRestrictions"),w1=Xe("checkMinNumberOfFiles"),Pd=Xe("checkRequiredMetaFieldsOnFile"),E1=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),Pc=Xe("assertNewUploadAllowed"),Nc=Xe("checkAndCreateFileStateObject"),jc=Xe("startIfAutoProceed"),C1=Xe("addListeners"),$n=Xe("updateOnlineStatus"),qo=Xe("createUpload"),x1=Xe("getUpload"),du=Xe("removeUpload"),Ko=Xe("runUpload");EN=Symbol.for("uppy test: getPlugins"),CN=Symbol.for("uppy test: createUpload");class xN{constructor(e){Object.defineProperty(this,Ko,{value:mY}),Object.defineProperty(this,du,{value:vY}),Object.defineProperty(this,x1,{value:gY}),Object.defineProperty(this,qo,{value:hY}),Object.defineProperty(this,C1,{value:pY}),Object.defineProperty(this,jc,{value:dY}),Object.defineProperty(this,Nc,{value:fY}),Object.defineProperty(this,Pc,{value:cY}),Object.defineProperty(this,Je,{value:lY}),Object.defineProperty(this,E1,{value:sY}),Object.defineProperty(this,Pd,{value:uY}),Object.defineProperty(this,w1,{value:aY}),Object.defineProperty(this,rd,{value:iY}),Object.defineProperty(this,dr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Tc,{writable:!0,value:void 0}),Object.defineProperty(this,Go,{writable:!0,value:vN()}),Object.defineProperty(this,uu,{writable:!0,value:new Set}),Object.defineProperty(this,su,{writable:!0,value:new Set}),Object.defineProperty(this,Jo,{writable:!0,value:new Set}),Object.defineProperty(this,$n,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=QK;const r={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:n=>n,onBeforeUpload:n=>n,store:new yN,logger:rY,infoTimeout:5e3};if(this.opts={...r,...e,restrictions:{...r.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=nY),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=Wu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:JK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),dt(this,Tc)[Tc]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),dt(this,C1)[C1]()}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];dt(this,Go)[Go].emit(e,...n)}on(e,r){return dt(this,Go)[Go].on(e,r),this}once(e,r){return dt(this,Go)[Go].once(e,r),this}off(e,r){return dt(this,Go)[Go].off(e,r),this}updateAll(e){this.iteratePlugins(r=>{r.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,r){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...r}}})}i18nInit(){const e=new gN([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const i={...r[o]};i.progress={...i.progress,...e},n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){dt(this,uu)[uu].add(e)}removePreProcessor(e){return dt(this,uu)[uu].delete(e)}addPostProcessor(e){dt(this,Jo)[Jo].add(e)}removePostProcessor(e){return dt(this,Jo)[Jo].delete(e)}addUploader(e){dt(this,su)[su].add(e)}removeUploader(e){return dt(this,su)[su].delete(e)}setMeta(e){const r={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:r,files:n})}setFileMeta(e,r){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...n[e].meta,...r};n[e]={...n[e],meta:o},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:r,error:n}=this.getState(),o=Object.values(e),i=o.filter(v=>{let{progress:h}=v;return!h.uploadComplete&&h.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(e,r){try{return dt(this,rd)[rd](e,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:r}=this.getState();return!(!r[e]||r[e].isGhost)}addFile(e){dt(this,Pc)[Pc](e);const{files:r}=this.getState();let n=dt(this,Nc)[Nc](r,e);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),dt(this,jc)[jc](),n.id}addFiles(e){dt(this,Pc)[Pc]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<e.length;i++)try{let a=dt(this,Nc)[Nc](r,e[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
|
|
26
|
+
id: ${n[i].id}
|
|
27
|
+
type: ${n[i].type}`)}),n.length>0&&dt(this,jc)[jc](),o.length>0){let i=`Multiple errors occurred while adding files:
|
|
28
|
+
`;if(o.forEach(a=>{i+=`
|
|
29
|
+
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{n[f]&&(u[f]=n[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,r){r===void 0&&(r=null),this.removeFiles([e],r)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const r=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:r}),this.emit("upload-pause",e,r),r}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!0};e[r]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!1,error:null};e[r]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},r=Object.keys(e).filter(o=>e[o].error);if(r.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=dt(this,qo)[qo](r,{forceAllowNewUpload:!0});return dt(this,Ko)[Ko](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),r=Object.keys(e);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const r=dt(this,qo)[qo]([e],{forceAllowNewUpload:!0});return dt(this,Ko)[Ko](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,r){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=e.filter(s=>s.progress.bytesTotal!=null),n=e.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*e.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(s=>{a+=s.progress.bytesUploaded}),n.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}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(e,r){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
|
|
30
|
+
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),n.type in dt(this,dr)[dr]?dt(this,dr)[dr][n.type].push(n):dt(this,dr)[dr][n.type]=[n],n.install(),this}getPlugin(e){for(const r of Object.values(dt(this,dr)[dr])){const n=r.find(o=>o.id===e);if(n!=null)return n}}[EN](e){return dt(this,dr)[dr][e]}iteratePlugins(e){Object.values(dt(this,dr)[dr]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const r=dt(this,dr)[dr][e.type],n=r.findIndex(i=>i.id===e.id);n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),dt(this,Tc)[Tc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,$n)[$n]),window.removeEventListener("offline",dt(this,$n)[$n]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:r,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,r){const{logger:n}=this.opts;switch(r){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?dt(this,Ko)[Ko](e):(dt(this,du)[du](e),Promise.reject(new Error("Nonexistent upload")))}[CN](){return dt(this,qo)[qo](...arguments)}addResultData(e,r){if(!dt(this,x1)[x1](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),o={...n[e],result:{...n[e].result,...r}};this.setState({currentUploads:{...n,[e]:o}})}upload(){var e;(e=dt(this,dr)[dr].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{dt(this,w1)[w1](r),dt(this,E1)[E1](r)}).catch(o=>{dt(this,Je)[Je](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=dt(this,qo)[qo](a);return dt(this,Ko)[Ko](u)}).catch(o=>{dt(this,Je)[Je](o,{showInformer:!1})}))}}function iY(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new vo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&KK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new vo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new vo(this.i18n("exceedsSize",{size:m1(o),file:t.name}))}if(r&&t.size!=null&&t.size>r)throw new vo(this.i18n("exceedsSize",{size:m1(r),file:t.name}));if(n&&t.size!=null&&t.size<n)throw new vo(this.i18n("inferiorSize",{size:m1(n)}))}function aY(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new vo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function uY(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<e.length;i++)if(!r.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new vo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);n.push(a),o.push(e[i]),dt(this,Je)[Je](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),n}function sY(t){const e=Object.keys(t).flatMap(r=>{const n=this.getFile(r);return dt(this,Pd)[Pd](n)});if(e.length)throw new oY(e,`${this.i18n("missingRequiredMetaField")}`)}function lY(t,e){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",n,t)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function cY(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,Je)[Je](new vo(this.i18n("noMoreFilesAllowed")),{file:t})}function fY(t,e){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=_A(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in FA?FA[p]:"application/octet-stream"}(e),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,e),o=_A(n).extension,i=!!e.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${TA(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${TA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...e,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new vo(this.i18n("noDuplicates",{fileName:n}));dt(this,Je)[Je](f,{file:e})}const u=e.meta||{};u.name=n,u.type=r;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?dt(this,Je)[Je](new vo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(d=>t[d]);dt(this,rd)[rd](l,f)}catch(f){dt(this,Je)[Je](f,{file:l})}return l}function dY(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function pY(){const t=(e,r,n)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),dt(this,Je)[Je](o,{throwErr:!1})}else dt(this,Je)[Je](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,r)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:dt(this,Jo)[Jo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&dt(this,Pd)[Pd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",dt(this,$n)[$n]),window.addEventListener("offline",dt(this,$n)[$n]),setTimeout(dt(this,$n)[$n],3e3))}function hY(t,e){e===void 0&&(e={});const{forceAllowNewUpload:r=!1}=e,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=eY();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function gY(t){const{currentUploads:e}=this.getState();return e[t]}function vY(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function mY(t){let{currentUploads:e}=this.getState(),r=e[t];const n=r.step||0,o=[...dt(this,uu)[uu],...dt(this,su)[su],...dt(this,Jo)[Jo]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(a){throw this.emit("error",a),dt(this,du)[du](t),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,r=e[t]}let i;return r&&(i=r.result,this.emit("complete",i),dt(this,du)[du](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}xN.VERSION="2.1.3";var SN=xN,yY=ns(function(t,e){var r,n,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(B,A){for(var N in A)B[N]=A[N];return B}function v(B){var A=B.parentNode;A&&A.removeChild(B)}function h(B,A,N){var U,X,G,at={};for(G in A)G=="key"?U=A[G]:G=="ref"?X=A[G]:at[G]=A[G];if(arguments.length>2&&(at.children=arguments.length>3?r.call(arguments,2):N),typeof B=="function"&&B.defaultProps!=null)for(G in B.defaultProps)at[G]===void 0&&(at[G]=B.defaultProps[G]);return m(B,at,U,X,null)}function m(B,A,N,U,X){var G={type:B,props:A,key:N,ref:U,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X??++o};return X==null&&n.vnode!=null&&n.vnode(G),G}function y(B){return B.children}function g(B,A){this.props=B,this.context=A}function w(B,A){if(A==null)return B.__?w(B.__,B.__.__k.indexOf(B)+1):null;for(var N;A<B.__k.length;A++)if((N=B.__k[A])!=null&&N.__e!=null)return N.__e;return typeof B.type=="function"?w(B):null}function E(B){var A,N;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,A=0;A<B.__k.length;A++)if((N=B.__k[A])!=null&&N.__e!=null){B.__e=B.__c.base=N.__e;break}return E(B)}}function x(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!D.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(D)}function D(){for(var B;D.__r=a.length;)B=a.sort(function(A,N){return A.__v.__b-N.__v.__b}),a=[],B.some(function(A){var N,U,X,G,at,vt;A.__d&&(at=(G=(N=A).__v).__e,(vt=N.__P)&&(U=[],(X=p({},G)).__v=G.__v+1,V(vt,G,X,N.__n,vt.ownerSVGElement!==void 0,G.__h!=null?[at]:null,U,at??w(G),G.__h),q(U,G),G.__e!=at&&E(G)))})}function S(B,A,N,U,X,G,at,vt,mt,xt){var K,Lt,Ot,pt,kt,ke,$t,te=U&&U.__k||f,ve=te.length;for(N.__k=[],K=0;K<A.length;K++)if((pt=N.__k[K]=(pt=A[K])==null||typeof pt=="boolean"?null:typeof pt=="string"||typeof pt=="number"||typeof pt=="bigint"?m(null,pt,null,null,pt):Array.isArray(pt)?m(y,{children:pt},null,null,null):pt.__b>0?m(pt.type,pt.props,pt.key,null,pt.__v):pt)!=null){if(pt.__=N,pt.__b=N.__b+1,(Ot=te[K])===null||Ot&&pt.key==Ot.key&&pt.type===Ot.type)te[K]=void 0;else for(Lt=0;Lt<ve;Lt++){if((Ot=te[Lt])&&pt.key==Ot.key&&pt.type===Ot.type){te[Lt]=void 0;break}Ot=null}V(B,pt,Ot=Ot||c,X,G,at,vt,mt,xt),kt=pt.__e,(Lt=pt.ref)&&Ot.ref!=Lt&&($t||($t=[]),Ot.ref&&$t.push(Ot.ref,null,pt),$t.push(Lt,pt.__c||kt,pt)),kt!=null?(ke==null&&(ke=kt),typeof pt.type=="function"&&pt.__k===Ot.__k?pt.__d=mt=k(pt,mt,B):mt=F(B,pt,Ot,te,kt,mt),typeof N.type=="function"&&(N.__d=mt)):mt&&Ot.__e==mt&&mt.parentNode!=B&&(mt=w(Ot))}for(N.__e=ke,K=ve;K--;)te[K]!=null&&(typeof N.type=="function"&&te[K].__e!=null&&te[K].__e==N.__d&&(N.__d=w(U,K+1)),lt(te[K],te[K]));if($t)for(K=0;K<$t.length;K++)rt($t[K],$t[++K],$t[++K])}function k(B,A,N){for(var U,X=B.__k,G=0;X&&G<X.length;G++)(U=X[G])&&(U.__=B,A=typeof U.type=="function"?k(U,A,N):F(N,U,U,X,U.__e,A));return A}function F(B,A,N,U,X,G){var at,vt,mt;if(A.__d!==void 0)at=A.__d,A.__d=void 0;else if(N==null||X!=G||X.parentNode==null)t:if(G==null||G.parentNode!==B)B.appendChild(X),at=null;else{for(vt=G,mt=0;(vt=vt.nextSibling)&&mt<U.length;mt+=2)if(vt==X)break t;B.insertBefore(X,G),at=G}return at!==void 0?at:X.nextSibling}function $(B,A,N){A[0]==="-"?B.setProperty(A,N):B[A]=N==null?"":typeof N!="number"||d.test(A)?N:N+"px"}function W(B,A,N,U,X){var G;t:if(A==="style")if(typeof N=="string")B.style.cssText=N;else{if(typeof U=="string"&&(B.style.cssText=U=""),U)for(A in U)N&&A in N||$(B.style,A,"");if(N)for(A in N)U&&N[A]===U[A]||$(B.style,A,N[A])}else if(A[0]==="o"&&A[1]==="n")G=A!==(A=A.replace(/Capture$/,"")),A=A.toLowerCase()in B?A.toLowerCase().slice(2):A.slice(2),B.l||(B.l={}),B.l[A+G]=N,N?U||B.addEventListener(A,G?L:j,G):B.removeEventListener(A,G?L:j,G);else if(A!=="dangerouslySetInnerHTML"){if(X)A=A.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(A!=="href"&&A!=="list"&&A!=="form"&&A!=="tabIndex"&&A!=="download"&&A in B)try{B[A]=N??"";break t}catch{}typeof N=="function"||(N!=null&&(N!==!1||A[0]==="a"&&A[1]==="r")?B.setAttribute(A,N):B.removeAttribute(A))}}function j(B){this.l[B.type+!1](n.event?n.event(B):B)}function L(B){this.l[B.type+!0](n.event?n.event(B):B)}function V(B,A,N,U,X,G,at,vt,mt){var xt,K,Lt,Ot,pt,kt,ke,$t,te,ve,vr,Vt=A.type;if(A.constructor!==void 0)return null;N.__h!=null&&(mt=N.__h,vt=A.__e=N.__e,A.__h=null,G=[vt]),(xt=n.__b)&&xt(A);try{t:if(typeof Vt=="function"){if($t=A.props,te=(xt=Vt.contextType)&&U[xt.__c],ve=xt?te?te.props.value:xt.__:U,N.__c?ke=(K=A.__c=N.__c).__=K.__E:("prototype"in Vt&&Vt.prototype.render?A.__c=K=new Vt($t,ve):(A.__c=K=new g($t,ve),K.constructor=Vt,K.render=st),te&&te.sub(K),K.props=$t,K.state||(K.state={}),K.context=ve,K.__n=U,Lt=K.__d=!0,K.__h=[]),K.__s==null&&(K.__s=K.state),Vt.getDerivedStateFromProps!=null&&(K.__s==K.state&&(K.__s=p({},K.__s)),p(K.__s,Vt.getDerivedStateFromProps($t,K.__s))),Ot=K.props,pt=K.state,Lt)Vt.getDerivedStateFromProps==null&&K.componentWillMount!=null&&K.componentWillMount(),K.componentDidMount!=null&&K.__h.push(K.componentDidMount);else{if(Vt.getDerivedStateFromProps==null&&$t!==Ot&&K.componentWillReceiveProps!=null&&K.componentWillReceiveProps($t,ve),!K.__e&&K.shouldComponentUpdate!=null&&K.shouldComponentUpdate($t,K.__s,ve)===!1||A.__v===N.__v){K.props=$t,K.state=K.__s,A.__v!==N.__v&&(K.__d=!1),K.__v=A,A.__e=N.__e,A.__k=N.__k,A.__k.forEach(function(Ir){Ir&&(Ir.__=A)}),K.__h.length&&at.push(K);break t}K.componentWillUpdate!=null&&K.componentWillUpdate($t,K.__s,ve),K.componentDidUpdate!=null&&K.__h.push(function(){K.componentDidUpdate(Ot,pt,kt)})}K.context=ve,K.props=$t,K.state=K.__s,(xt=n.__r)&&xt(A),K.__d=!1,K.__v=A,K.__P=B,xt=K.render(K.props,K.state,K.context),K.state=K.__s,K.getChildContext!=null&&(U=p(p({},U),K.getChildContext())),Lt||K.getSnapshotBeforeUpdate==null||(kt=K.getSnapshotBeforeUpdate(Ot,pt)),vr=xt!=null&&xt.type===y&&xt.key==null?xt.props.children:xt,S(B,Array.isArray(vr)?vr:[vr],A,N,U,X,G,at,vt,mt),K.base=A.__e,A.__h=null,K.__h.length&&at.push(K),ke&&(K.__E=K.__=null),K.__e=!1}else G==null&&A.__v===N.__v?(A.__k=N.__k,A.__e=N.__e):A.__e=Y(N.__e,A,N,U,X,G,at,mt);(xt=n.diffed)&&xt(A)}catch(Ir){A.__v=null,(mt||G!=null)&&(A.__e=vt,A.__h=!!mt,G[G.indexOf(vt)]=null),n.__e(Ir,A,N)}}function q(B,A){n.__c&&n.__c(A,B),B.some(function(N){try{B=N.__h,N.__h=[],B.some(function(U){U.call(N)})}catch(U){n.__e(U,N.__v)}})}function Y(B,A,N,U,X,G,at,vt){var mt,xt,K,Lt=N.props,Ot=A.props,pt=A.type,kt=0;if(pt==="svg"&&(X=!0),G!=null){for(;kt<G.length;kt++)if((mt=G[kt])&&"setAttribute"in mt==!!pt&&(pt?mt.localName===pt:mt.nodeType===3)){B=mt,G[kt]=null;break}}if(B==null){if(pt===null)return document.createTextNode(Ot);B=X?document.createElementNS("http://www.w3.org/2000/svg",pt):document.createElement(pt,Ot.is&&Ot),G=null,vt=!1}if(pt===null)Lt===Ot||vt&&B.data===Ot||(B.data=Ot);else{if(G=G&&r.call(B.childNodes),xt=(Lt=N.props||c).dangerouslySetInnerHTML,K=Ot.dangerouslySetInnerHTML,!vt){if(G!=null)for(Lt={},kt=0;kt<B.attributes.length;kt++)Lt[B.attributes[kt].name]=B.attributes[kt].value;(K||xt)&&(K&&(xt&&K.__html==xt.__html||K.__html===B.innerHTML)||(B.innerHTML=K&&K.__html||""))}if(function(ke,$t,te,ve,vr){var Vt;for(Vt in te)Vt==="children"||Vt==="key"||Vt in $t||W(ke,Vt,null,te[Vt],ve);for(Vt in $t)vr&&typeof $t[Vt]!="function"||Vt==="children"||Vt==="key"||Vt==="value"||Vt==="checked"||te[Vt]===$t[Vt]||W(ke,Vt,$t[Vt],te[Vt],ve)}(B,Ot,Lt,X,vt),K)A.__k=[];else if(kt=A.props.children,S(B,Array.isArray(kt)?kt:[kt],A,N,U,X&&pt!=="foreignObject",G,at,G?G[0]:N.__k&&w(N,0),vt),G!=null)for(kt=G.length;kt--;)G[kt]!=null&&v(G[kt]);vt||("value"in Ot&&(kt=Ot.value)!==void 0&&(kt!==Lt.value||kt!==B.value||pt==="progress"&&!kt)&&W(B,"value",kt,Lt.value,!1),"checked"in Ot&&(kt=Ot.checked)!==void 0&&kt!==B.checked&&W(B,"checked",kt,Lt.checked,!1))}return B}function rt(B,A,N){try{typeof B=="function"?B(A):B.current=A}catch(U){n.__e(U,N)}}function lt(B,A,N){var U,X;if(n.unmount&&n.unmount(B),(U=B.ref)&&(U.current&&U.current!==B.__e||rt(U,null,A)),(U=B.__c)!=null){if(U.componentWillUnmount)try{U.componentWillUnmount()}catch(G){n.__e(G,A)}U.base=U.__P=null}if(U=B.__k)for(X=0;X<U.length;X++)U[X]&<(U[X],A,typeof B.type!="function");N||B.__e==null||v(B.__e),B.__e=B.__d=void 0}function st(B,A,N){return this.constructor(B,N)}function ut(B,A,N){var U,X,G;n.__&&n.__(B,A),X=(U=typeof N=="function")?null:N&&N.__k||A.__k,G=[],V(A,B=(!U&&N||A).__k=h(y,null,[B]),X||c,c,A.ownerSVGElement!==void 0,!U&&N?[N]:X?null:A.firstChild?r.call(A.childNodes):null,G,!U&&N?N:X?X.__e:A.firstChild,U),q(G,B)}r=f.slice,n={__e:function(B,A){for(var N,U,X;A=A.__;)if((N=A.__c)&&!N.__)try{if((U=N.constructor)&&U.getDerivedStateFromError!=null&&(N.setState(U.getDerivedStateFromError(B)),X=N.__d),N.componentDidCatch!=null&&(N.componentDidCatch(B),X=N.__d),X)return N.__E=N}catch(G){B=G}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},g.prototype.setState=function(B,A){var N;N=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof B=="function"&&(B=B(p({},N),this.props)),B&&p(N,B),B!=null&&this.__v&&(A&&this.__h.push(A),x(this))},g.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),x(this))},g.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,e.Component=g,e.Fragment=y,e.cloneElement=function(B,A,N){var U,X,G,at=p({},B.props);for(G in A)G=="key"?U=A[G]:G=="ref"?X=A[G]:at[G]=A[G];return arguments.length>2&&(at.children=arguments.length>3?r.call(arguments,2):N),m(B.type,at,U||B.key,X||B.ref,null)},e.createContext=function(B,A){var N={__c:A="__cC"+l++,__:B,Consumer:function(U,X){return U.children(X)},Provider:function(U){var X,G;return this.getChildContext||(X=[],(G={})[A]=this,this.getChildContext=function(){return G},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&X.some(x)},this.sub=function(at){X.push(at);var vt=at.componentWillUnmount;at.componentWillUnmount=function(){X.splice(X.indexOf(at),1),vt&&vt.call(at)}}),U.children}};return N.Provider.__=N.Consumer.contextType=N},e.createElement=h,e.createRef=function(){return{current:null}},e.h=h,e.hydrate=function B(A,N){ut(A,N,B)},e.isValidElement=i,e.options=n,e.render=ut,e.toChildArray=function B(A,N){return N=N||[],A==null||typeof A=="boolean"||(Array.isArray(A)?A.some(function(U){B(U,N)}):N.push(A)),N}}),bY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((r=t)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?t:null;var r},C6=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new gN([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),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 PA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var wY=0;function EY(t){return"__private_"+wY+++"_"+t}const{render:NA}=yY;var Ic=EY("updateUI");class x6 extends C6{constructor(){super(...arguments),Object.defineProperty(this,Ic,{writable:!0,value:void 0})}mount(e,r){const n=r.id,o=bY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return PA(this,Ic)[Ic]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(NA(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),NA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof x6)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof e=="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(a)}update(e){var r,n;this.el!=null&&((r=(n=PA(this,Ic))[Ic])==null||r.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var CY=x6;const{debugLogger:xY}=bN;var Wf=SN,SY=SN,DY=CY,AY=C6,OY=xY;Wf.Uppy=SY,Wf.UIPlugin=DY,Wf.BasePlugin=AY,Wf.debugLogger=OY;class kY extends Error{constructor(e,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=r}}var S6=kY,S1=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new S6(t)})};class BY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Fh,Si,co,Di,jA,_Y=BY;function lo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var FY=0;function D1(t){return"__private_"+FY+++"_"+t}async function A1(t){if(t.status===401)throw new _Y;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const n=await e;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return e}var IA=(Si=D1("getPostResponseFunc"),co=D1("getUrl"),Di=D1("errorHandler"),jA=Fh=class DN{constructor(e,r){Object.defineProperty(this,Di,{value:PY}),Object.defineProperty(this,co,{value:TY}),Object.defineProperty(this,Si,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),r=this.opts.companionUrl;return(e&&e[r]?e[r]:r).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...DN.defaultHeaders,...e})}onReceiveResponse(e){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(lo(this,co)[co](e),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,r){return this.preflightAndHeaders(e).then(n=>S1(lo(this,co)[co](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(lo(this,Si)[Si](r)).then(A1).catch(lo(this,Di)[Di]("get",e))}post(e,r,n){const o="post";return this.preflightAndHeaders(e).then(i=>S1(lo(this,co)[co](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(lo(this,Si)[Si](n)).then(A1).catch(lo(this,Di)[Di](o,e))}delete(e,r,n){const o="delete";return this.preflightAndHeaders(e).then(i=>S1(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(lo(this,Si)[Si](n)).then(A1).catch(lo(this,Di)[Di](o,e))}},Fh.VERSION="2.0.4",Fh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Fh.VERSION}`},jA);function TY(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function PY(t,e){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${t} ${lo(this,co)[co](e)}`);o.cause=r,r=o}return Promise.reject(r)}}var NY={setItem:(t,e)=>new Promise(r=>{localStorage.setItem(t,e),r()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},uo,Ai,vn,Er,Th;let LA,RA;function $e(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jY=0;function Lc(t){return"__private_"+jY+++"_"+t}var IY=(uo=Lc("queued"),Ai=Lc("emitter"),vn=Lc("isOpen"),Er=Lc("socket"),Th=Lc("handleMessage"),LA=Symbol.for("uppy test: getSocket"),RA=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,uo,{writable:!0,value:[]}),Object.defineProperty(this,Ai,{writable:!0,value:vN()}),Object.defineProperty(this,vn,{writable:!0,value:!1}),Object.defineProperty(this,Er,{writable:!0,value:void 0}),Object.defineProperty(this,Th,{writable:!0,value:e=>{try{const r=JSON.parse(e.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return $e(this,vn)[vn]}[LA](){return $e(this,Er)[Er]}[RA](){return $e(this,uo)[uo]}open(){$e(this,Er)[Er]=new WebSocket(this.opts.target),$e(this,Er)[Er].onopen=()=>{for($e(this,vn)[vn]=!0;$e(this,uo)[uo].length>0&&$e(this,vn)[vn];){const t=$e(this,uo)[uo].shift();this.send(t.action,t.payload)}},$e(this,Er)[Er].onclose=()=>{$e(this,vn)[vn]=!1},$e(this,Er)[Er].onmessage=$e(this,Th)[Th]}close(){var t;(t=$e(this,Er)[Er])==null||t.close()}send(t,e){$e(this,vn)[vn]?$e(this,Er)[Er].send(JSON.stringify({action:t,payload:e})):$e(this,uo)[uo].push({action:t,payload:e})}on(t,e){$e(this,Ai)[Ai].on(t,e)}emit(t,e){$e(this,Ai)[Ai].emit(t,e)}once(t,e){$e(this,Ai)[Ai].once(t,e)}}),LY={RequestClient:IA,Provider:class extends IA{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.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(t=>{let[e,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:r}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...e}),e.serverUrl||e.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(e.companionAllowedHosts){const n=e.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||NY}},Socket:IY},Oi,Ds,RY=Wu(function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Rc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var MY=0;function MA(t){return"__private_"+MY+++"_"+t}var VA=(Oi=MA("emitter"),Ds=MA("events"),class{constructor(t){Object.defineProperty(this,Oi,{writable:!0,value:void 0}),Object.defineProperty(this,Ds,{writable:!0,value:[]}),Rc(this,Oi)[Oi]=t}on(t,e){return Rc(this,Ds)[Ds].push([t,e]),Rc(this,Oi)[Oi].on(t,e)}remove(){for(const[t,e]of Rc(this,Ds)[Ds].splice(0))Rc(this,Oi)[Oi].off(t,e)}});function mn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var VY=0;function Fm(t){return"__private_"+VY+++"_"+t}var Yo=Fm("aliveTimer"),Ua=Fm("isDone"),Mc=Fm("onTimedOut"),Wa=Fm("timeout"),zA=class{constructor(t,e){Object.defineProperty(this,Yo,{writable:!0,value:void 0}),Object.defineProperty(this,Ua,{writable:!0,value:!1}),Object.defineProperty(this,Mc,{writable:!0,value:void 0}),Object.defineProperty(this,Wa,{writable:!0,value:void 0}),mn(this,Wa)[Wa]=t,mn(this,Mc)[Mc]=e}progress(){mn(this,Ua)[Ua]||mn(this,Wa)[Wa]>0&&(clearTimeout(mn(this,Yo)[Yo]),mn(this,Yo)[Yo]=setTimeout(mn(this,Mc)[Mc],mn(this,Wa)[Wa]))}done(){mn(this,Ua)[Ua]||(clearTimeout(mn(this,Yo)[Yo]),mn(this,Yo)[Yo]=null,mn(this,Ua)[Ua]=!0)}};function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var zY=0;function ss(t){return"__private_"+zY+++"_"+t}function $Y(){return new Error("Cancelled")}var Qr=ss("activeRequests"),Pr=ss("queuedHandlers"),nd=ss("call"),Gf=ss("queueNext"),GE=ss("next"),O1=ss("queue"),qE=ss("dequeue");function HY(t){Ge(this,Qr)[Qr]+=1;let e,r=!1;try{e=t()}catch(n){throw Ge(this,Qr)[Qr]-=1,n}return{abort:()=>{r||(r=!0,Ge(this,Qr)[Qr]-=1,e(),Ge(this,Gf)[Gf]())},done:()=>{r||(r=!0,Ge(this,Qr)[Qr]-=1,Ge(this,Gf)[Gf]())}}}function UY(){queueMicrotask(()=>Ge(this,GE)[GE]())}function WY(){if(Ge(this,Qr)[Qr]>=this.limit||Ge(this,Pr)[Pr].length===0)return;const t=Ge(this,Pr)[Pr].shift(),e=Ge(this,nd)[nd](t.fn);t.abort=e.abort,t.done=e.done}function GY(t,e){e===void 0&&(e={});const r={fn:t,priority:e.priority||0,abort:()=>{Ge(this,qE)[qE](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Ge(this,Pr)[Pr].findIndex(o=>r.priority>o.priority);return n===-1?Ge(this,Pr)[Pr].push(r):Ge(this,Pr)[Pr].splice(n,0,r),r}function qY(t){const e=Ge(this,Pr)[Pr].indexOf(t);e!==-1&&Ge(this,Pr)[Pr].splice(e,1)}var KY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,qE,{value:qY}),Object.defineProperty(this,O1,{value:GY}),Object.defineProperty(this,GE,{value:WY}),Object.defineProperty(this,Gf,{value:UY}),Object.defineProperty(this,nd,{value:HY}),Object.defineProperty(this,Qr,{writable:!0,value:0}),Object.defineProperty(this,Pr,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ge(this,Qr)[Qr]<this.limit?Ge(this,nd)[nd](t):Ge(this,O1)[O1](t,e)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=$Y()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},$A,HA,AN=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},YY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:XY}=wN,{Provider:ZY,RequestClient:JY,Socket:QY}=LY,{RateLimitedQueue:tX,internalRateLimitedQueue:k1}=KY;function UA(t,e){let r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),AN(t)?(r=new S6(r,t),r):(r.request=t,r)}function WA(t){return t.data.slice(0,t.data.size,t.meta.type)}var eX=(HA=$A=class extends C6{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=YY;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){t.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return AN(o)&&(i=new S6(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),k1 in this.opts?this.requests=this.opts[k1]:this.requests=new tX(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(t){const e=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach(n=>{t.append(n,e[n])})}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=WA(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach(o=>{const i=this.getOptions(o),a=WA(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(t,e,r){const n=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=n.formData?this.createFormDataUpload(t,n):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new VA(this.uppy);const s=new zA(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=XY();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const h=n.getResponseData(u.responseText,u),m=h[n.responseUrlFieldName],y={status:f.target.status,body:h,uploadURL:m};return this.uppy.emit("upload-success",t,y),m&&this.uppy.log(`Download ${t.name} from ${m}`),o(t)}const d=n.getResponseData(u.responseText,u),p=UA(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=UA(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((r,n)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?ZY:JY)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new QY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new VA(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>RY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),s.on("error",c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),n(i)})})}uploadBundle(t){return new Promise((e,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new zA(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(v=>{this.uppy.emit("upload-success",v,p)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((r,n)=>{const o=parseInt(n,10)+1,i=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map(u=>u.then(i,a))).then(()=>({successful:n,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&e(r.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[k1]||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 e=t.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(e.some(r=>r.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(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},$A.VERSION="2.0.6",HA),GA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jp(t){var e={exports:{}};return t(e,e.exports),e.exports}var ki,Vg,Ph=function(t){return t&&t.Math==Math&&t},Z=Ph(typeof globalThis=="object"&&globalThis)||Ph(typeof window=="object"&&window)||Ph(typeof self=="object"&&self)||Ph(typeof GA=="object"&&GA)||function(){return this}()||Function("return this")(),rX=Object.defineProperty,D6=function(t,e){try{rX(Z,t,{value:e,configurable:!0,writable:!0})}catch{Z[t]=e}return e},ta=Z["__core-js_shared__"]||D6("__core-js_shared__",{}),A6=jp(function(t){(t.exports=function(e,r){return ta[e]||(ta[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ON=Function.prototype,KE=ON.bind,YE=ON.call,nX=KE&&KE.bind(YE),ht=KE?function(t){return t&&nX(YE,t)}:function(t){return t&&function(){return YE.apply(t,arguments)}},oX=Z.TypeError,_n=function(t){if(t==null)throw oX("Can't call method on "+t);return t},iX=Z.Object,Fa=function(t){return iX(_n(t))},aX=ht({}.hasOwnProperty),Le=Object.hasOwn||function(t,e){return aX(Fa(t),e)},uX=0,sX=Math.random(),lX=ht(1 .toString),O6=function(t){return"Symbol("+(t===void 0?"":t)+")_"+lX(++uX+sX,36)},oe=function(t){return typeof t=="function"},cX=function(t){return oe(t)?t:void 0},ls=function(t,e){return arguments.length<2?cX(Z[t]):Z[t]&&Z[t][e]},fl=ls("navigator","userAgent")||"",qA=Z.process,KA=Z.Deno,YA=qA&&qA.versions||KA&&KA.version,XA=YA&&YA.v8;XA&&(Vg=(ki=XA.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!Vg&&fl&&(!(ki=fl.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=fl.match(/Chrome\/(\d+)/))&&(Vg=+ki[1]);var Nd=Vg,Jt=function(t){try{return!!t()}catch{return!0}},XE=!!Object.getOwnPropertySymbols&&!Jt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Nd&&Nd<41}),k6=XE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vc=A6("wks"),xu=Z.Symbol,ZA=xu&&xu.for,fX=k6?xu:xu&&xu.withoutSetter||O6,De=function(t){if(!Le(Vc,t)||!XE&&typeof Vc[t]!="string"){var e="Symbol."+t;XE&&Le(xu,t)?Vc[t]=xu[t]:Vc[t]=k6&&ZA?ZA(e):fX(e)}return Vc[t]},kN={};kN[De("toStringTag")]="z";var B6=String(kN)==="[object z]",ir=!Jt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),de=function(t){return typeof t=="object"?t!==null:oe(t)},ZE=Z.document,dX=de(ZE)&&de(ZE.createElement),jd=function(t){return dX?ZE.createElement(t):{}},BN=!ir&&!Jt(function(){return Object.defineProperty(jd("div"),"a",{get:function(){return 7}}).a!=7}),pX=Z.String,hX=Z.TypeError,Re=function(t){if(de(t))return t;throw hX(pX(t)+" is not an object")},zc=Function.prototype.call,Kt=zc.bind?zc.bind(zc):function(){return zc.apply(zc,arguments)},Gu=ht({}.isPrototypeOf),gX=Z.Object,B1=k6?function(t){return typeof t=="symbol"}:function(t){var e=ls("Symbol");return oe(e)&&Gu(e.prototype,gX(t))},vX=Z.String,Tm=function(t){try{return vX(t)}catch{return"Object"}},mX=Z.TypeError,wa=function(t){if(oe(t))return t;throw mX(Tm(t)+" is not a function")},qu=function(t,e){var r=t[e];return r==null?void 0:wa(r)},yX=Z.TypeError,bX=Z.TypeError,wX=De("toPrimitive"),_6=function(t){var e=function(r,n){if(!de(r)||B1(r))return r;var o,i=qu(r,wX);if(i){if(o=Kt(i,r,n),!de(o)||B1(o))return o;throw bX("Can't convert object to primitive value")}return function(a,u){var s,l;if(oe(s=a.toString)&&!de(l=Kt(s,a))||oe(s=a.valueOf)&&!de(l=Kt(s,a)))return l;throw yX("Can't convert object to primitive value")}(r)}(t,"string");return B1(e)?e:e+""},EX=Z.TypeError,JA=Object.defineProperty,eo={f:ir?JA:function(t,e,r){if(Re(t),e=_6(e),Re(r),BN)try{return JA(t,e,r)}catch{}if("get"in r||"set"in r)throw EX("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Pm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Kn=ir?function(t,e,r){return eo.f(t,e,Pm(1,r))}:function(t,e,r){return t[e]=r,t},CX=ht(Function.toString);oe(ta.inspectSource)||(ta.inspectSource=function(t){return CX(t)});var Gv,od,qv,Nm=ta.inspectSource,QA=Z.WeakMap,_N=oe(QA)&&/native code/.test(Nm(QA)),t7=A6("keys"),F6=function(t){return t7[t]||(t7[t]=O6(t))},jm={},JE=Z.TypeError,xX=Z.WeakMap;if(_N||ta.state){var Ga=ta.state||(ta.state=new xX),SX=ht(Ga.get),e7=ht(Ga.has),DX=ht(Ga.set);Gv=function(t,e){if(e7(Ga,t))throw new JE("Object already initialized");return e.facade=t,DX(Ga,t,e),e},od=function(t){return SX(Ga,t)||{}},qv=function(t){return e7(Ga,t)}}else{var As=F6("state");jm[As]=!0,Gv=function(t,e){if(Le(t,As))throw new JE("Object already initialized");return e.facade=t,Kn(t,As,e),e},od=function(t){return Le(t,As)?t[As]:{}},qv=function(t){return Le(t,As)}}var Dr={set:Gv,get:od,has:qv,enforce:function(t){return qv(t)?od(t):Gv(t,{})},getterFor:function(t){return function(e){var r;if(!de(e)||(r=od(e)).type!==t)throw JE("Incompatible receiver, "+t+" required");return r}}},FN=Function.prototype,AX=ir&&Object.getOwnPropertyDescriptor,_1=Le(FN,"name"),nc={EXISTS:_1,PROPER:_1&&(function(){}).name==="something",CONFIGURABLE:_1&&(!ir||ir&&AX(FN,"name").configurable)},Wr=jp(function(t){var e=nc.CONFIGURABLE,r=Dr.get,n=Dr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;oe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Le(u,"name")||e&&u.name!==p)&&Kn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Z?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Kn(i,a,u)):f?i[a]=u:D6(a,u)})(Function.prototype,"toString",function(){return oe(this)&&r(this).source||Nm(this)})}),OX=ht({}.toString),kX=ht("".slice),Yn=function(t){return kX(OX(t),8,-1)},BX=De("toStringTag"),_X=Z.Object,FX=Yn(function(){return arguments}())=="Arguments",Im=B6?Yn:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=_X(t),BX))=="string"?r:FX?Yn(e):(n=Yn(e))=="Object"&&oe(e.callee)?"Arguments":n},TX=B6?{}.toString:function(){return"[object "+Im(this)+"]"};B6||Wr(Object.prototype,"toString",TX,{unsafe:!0});var Kv={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},F1=jd("span").classList,r7=F1&&F1.constructor&&F1.constructor.prototype,TN=r7===Object.prototype?void 0:r7,n7=ht(ht.bind),Ku=function(t,e){return wa(t),e===void 0?t:n7?n7(t,e):function(){return t.apply(e,arguments)}},T1=Z.Object,PX=ht("".split),Lm=Jt(function(){return!T1("z").propertyIsEnumerable(0)})?function(t){return Yn(t)=="String"?PX(t,""):T1(t)}:T1,NX=Math.ceil,jX=Math.floor,Ip=function(t){var e=+t;return e!=e||e===0?0:(e>0?jX:NX)(e)},IX=Math.min,oc=function(t){return t>0?IX(Ip(t),9007199254740991):0},cs=function(t){return oc(t.length)},Yv=Array.isArray||function(t){return Yn(t)=="Array"},PN=function(){},LX=[],NN=ls("Reflect","construct"),T6=/^\s*(?:class|function)\b/,RX=ht(T6.exec),MX=!T6.exec(PN),$c=function(t){if(!oe(t))return!1;try{return NN(PN,LX,t),!0}catch{return!1}},Rm=!NN||Jt(function(){var t;return $c($c.call)||!$c(Object)||!$c(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(Im(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return MX||!!RX(T6,Nm(t))}:$c,VX=De("species"),o7=Z.Array,jN=function(t,e){return new(function(r){var n;return Yv(r)&&(n=r.constructor,(Rm(n)&&(n===o7||Yv(n.prototype))||de(n)&&(n=n[VX])===null)&&(n=void 0)),n===void 0?o7:n}(t))(e===0?0:e)},i7=ht([].push),Hc=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Fa(s),h=Lm(v),m=Ku(l,c),y=cs(h),g=0,w=f||jN,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:i7(E,d)}else switch(t){case 4:return!1;case 7:i7(E,d)}return i?-1:n||o?o:E}},ic={forEach:Hc(0),map:Hc(1),filter:Hc(2),find:Hc(5),findIndex:Hc(6)},IN=function(t,e){var r=[][t];return!!r&&Jt(function(){r.call(null,e||function(){throw 1},1)})},zX=ic.forEach,P1=IN("forEach")?[].forEach:function(t){return zX(this,t,arguments.length>1?arguments[1]:void 0)},LN=function(t){if(t&&t.forEach!==P1)try{Kn(t,"forEach",P1)}catch{t.forEach=P1}};for(var N1 in Kv)Kv[N1]&&LN(Z[N1]&&Z[N1].prototype);LN(TN);var a7={}.propertyIsEnumerable,u7=Object.getOwnPropertyDescriptor,$X=u7&&!a7.call({1:2},1)?function(t){var e=u7(this,t);return!!e&&e.enumerable}:a7,RN={f:$X},Ta=function(t){return Lm(_n(t))},s7=Object.getOwnPropertyDescriptor,Lp={f:ir?s7:function(t,e){if(t=Ta(t),e=_6(e),BN)try{return s7(t,e)}catch{}if(Le(t,e))return Pm(!Kt(RN.f,t,e),t[e])}},HX=Math.max,UX=Math.min,Ll=function(t,e){var r=Ip(t);return r<0?HX(r+e,0):UX(r,e)},l7=function(t){return function(e,r,n){var o,i=Ta(e),a=cs(i),u=Ll(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},MN={includes:l7(!0),indexOf:l7(!1)},WX=MN.indexOf,c7=ht([].push),VN=function(t,e){var r,n=Ta(t),o=0,i=[];for(r in n)!Le(jm,r)&&Le(n,r)&&c7(i,r);for(;e.length>o;)Le(n,r=e[o++])&&(~WX(i,r)||c7(i,r));return i},Xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],GX=Xv.concat("length","prototype"),Id={f:Object.getOwnPropertyNames||function(t){return VN(t,GX)}},zN={f:Object.getOwnPropertySymbols},qX=ht([].concat),KX=ls("Reflect","ownKeys")||function(t){var e=Id.f(Re(t)),r=zN.f;return r?qX(e,r(t)):e},YX=function(t,e){for(var r=KX(e),n=eo.f,o=Lp.f,i=0;i<r.length;i++){var a=r[i];Le(t,a)||n(t,a,o(e,a))}},XX=/#|\.prototype\./,Rp=function(t,e){var r=JX[ZX(t)];return r==tZ||r!=QX&&(oe(e)?Jt(e):!!e)},ZX=Rp.normalize=function(t){return String(t).replace(XX,".").toLowerCase()},JX=Rp.data={},QX=Rp.NATIVE="N",tZ=Rp.POLYFILL="P",Ld=Rp,eZ=Lp.f,xe=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Z:l?Z[u]||D6(u,{}):(Z[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=eZ(r,n))&&a.value:r[n],!Ld(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;YX(i,o)}(t.sham||o&&o.sham)&&Kn(i,"sham",!0),Wr(r,n,i,t)}},dl=Object.keys||function(t){return VN(t,Xv)},rZ=Jt(function(){dl(1)});/*!
|
|
31
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/function f7(t){return Object.prototype.toString.call(t)==="[object Object]"}xe({target:"Object",stat:!0,forced:rZ},{keys:function(t){return dl(Fa(t))}});var nZ={isHistory(t){return f7(e=t)!==!1&&((r=e.constructor)===void 0||f7(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||qi.isOperationList(t.redos[0]))&&(t.undos.length===0||qi.isOperationList(t.undos[0]));var e,r,n}},j1=new WeakMap,I1=new WeakMap,il={isHistoryEditor:t=>nZ.isHistory(t.history)&&C.isEditor(t),isMerging:t=>I1.get(t),isSaving:t=>j1.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var r=il.isMerging(t);I1.set(t,!1),e(),I1.set(t,r)},withoutSaving(t,e){var r=il.isSaving(t);j1.set(t,!1),e(),j1.set(t,r)}},oZ=Z.String,ae=function(t){if(Im(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oZ(t)},P6=function(){var t=Re(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},iZ=nc.PROPER,QE=RegExp.prototype,$N=QE.toString,aZ=ht(P6),uZ=Jt(function(){return $N.call({source:"a",flags:"b"})!="/a/b"}),sZ=iZ&&$N.name!="toString";(uZ||sZ)&&Wr(RegExp.prototype,"toString",function(){var t=Re(this),e=ae(t.source),r=t.flags;return"/"+e+"/"+ae(r===void 0&&Gu(QE,t)&&!("flags"in QE)?aZ(t):r)},{unsafe:!0});var Nh,lZ=ir?Object.defineProperties:function(t,e){Re(t);for(var r,n=Ta(e),o=dl(e),i=o.length,a=0;i>a;)eo.f(t,r=o[a++],n[r]);return t},t4=ls("document","documentElement"),HN=F6("IE_PROTO"),L1=function(){},UN=function(t){return"<script>"+t+"<\/script>"},d7=function(t){t.write(UN("")),t.close();var e=t.parentWindow.Object;return t=null,e},zg=function(){try{Nh=new ActiveXObject("htmlfile")}catch{}var t,e;zg=typeof document<"u"?document.domain&&Nh?d7(Nh):((e=jd("iframe")).style.display="none",t4.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(UN("document.F=Object")),t.close(),t.F):d7(Nh);for(var r=Xv.length;r--;)delete zg.prototype[Xv[r]];return zg()};jm[HN]=!0;var Mm=Object.create||function(t,e){var r;return t!==null?(L1.prototype=Re(t),r=new L1,L1.prototype=null,r[HN]=t):r=zg(),e===void 0?r:lZ(r,e)},e4=De("unscopables"),r4=Array.prototype;r4[e4]==null&&eo.f(r4,e4,{configurable:!0,value:Mm(null)});var id=function(t){r4[e4][t]=!0},cZ=MN.includes;xe({target:"Array",proto:!0},{includes:function(t){return cZ(this,t,arguments.length>1?arguments[1]:void 0)}}),id("includes");var fZ=De("match"),N6=function(t){var e;return de(t)&&((e=t[fZ])!==void 0?!!e:Yn(t)=="RegExp")},dZ=Z.TypeError,j6=function(t){if(N6(t))throw dZ("The method doesn't accept regular expressions");return t},pZ=De("match"),I6=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[pZ]=!1,"/./"[t](e)}catch{}}return!1},hZ=ht("".indexOf);xe({target:"String",proto:!0,forced:!I6("includes")},{includes:function(t){return!!~hZ(ae(_n(this)),ae(j6(t)),arguments.length>1?arguments[1]:void 0)}});var gZ=/"/g,vZ=ht("".replace);xe({target:"String",proto:!0,forced:Jt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=ae(_n(this)),n="<a",(n+=' name="'+vZ(ae(e),gZ,""")+'"')+">"+r+"</a>";var e,r,n}});var n4=function(t,e,r){var n,o;Re(t);try{if(!(n=qu(t,"return"))){if(e==="throw")throw r;return r}n=Kt(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Re(n),r},mZ=function(t,e,r,n){try{return n?e(Re(r)[0],r[1]):e(r)}catch(o){n4(t,"throw",o)}},Rl={},yZ=De("iterator"),bZ=Array.prototype,WN=function(t){return t!==void 0&&(Rl.Array===t||bZ[yZ]===t)},Rd=function(t,e,r){var n=_6(e);n in t?eo.f(t,n,Pm(0,r)):t[n]=r},wZ=De("iterator"),L6=function(t){if(t!=null)return qu(t,wZ)||qu(t,"@@iterator")||Rl[Im(t)]},EZ=Z.TypeError,GN=function(t,e){var r=arguments.length<2?L6(t):e;if(wa(r))return Re(Kt(r,t));throw EZ(Tm(t)+" is not iterable")},p7=Z.Array,qN=De("iterator"),KN=!1;try{var CZ=0,h7={next:function(){return{done:!!CZ++}},return:function(){KN=!0}};h7[qN]=function(){return this},Array.from(h7,function(){throw 2})}catch{}var R6=function(t,e){if(!KN)return!1;var r=!1;try{var n={};n[qN]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},xZ=!R6(function(t){Array.from(t)});xe({target:"Array",stat:!0,forced:xZ},{from:function(t){var e=Fa(t),r=Rm(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Ku(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=L6(e),p=0;if(!d||this==p7&&WN(d))for(a=cs(e),u=r?new this(a):p7(a);a>p;p++)f=i?o(e[p],p):e[p],Rd(u,p,f);else for(c=(l=GN(e,d)).next,u=r?new this:[];!(s=Kt(c,l)).done;p++)f=i?mZ(l,o,[s.value,p],!0):s.value,Rd(u,p,f);return u.length=p,u}});var Su,g7,v7,SZ=ht("".charAt),m7=ht("".charCodeAt),DZ=ht("".slice),AZ=function(t){return function(e,r){var n,o,i=ae(_n(e)),a=Ip(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=m7(i,a))<55296||n>56319||a+1===u||(o=m7(i,a+1))<56320||o>57343?t?SZ(i,a):n:t?DZ(i,a,a+2):o-56320+(n-55296<<10)+65536}},YN={charAt:AZ(!0)},OZ=!Jt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),y7=F6("IE_PROTO"),o4=Z.Object,kZ=o4.prototype,Zv=OZ?o4.getPrototypeOf:function(t){var e=Fa(t);if(Le(e,y7))return e[y7];var r=e.constructor;return oe(r)&&e instanceof r?r.prototype:e instanceof o4?kZ:null},i4=De("iterator"),XN=!1;[].keys&&("next"in(v7=[].keys())?(g7=Zv(Zv(v7)))!==Object.prototype&&(Su=g7):XN=!0);var BZ=Su==null||Jt(function(){var t={};return Su[i4].call(t)!==t});BZ&&(Su={}),oe(Su[i4])||Wr(Su,i4,function(){return this});var M6={IteratorPrototype:Su,BUGGY_SAFARI_ITERATORS:XN},_Z=eo.f,b7=De("toStringTag"),Jv=function(t,e,r){t&&!Le(t=r?t:t.prototype,b7)&&_Z(t,b7,{configurable:!0,value:e})},FZ=M6.IteratorPrototype,TZ=function(){return this},PZ=Z.String,NZ=Z.TypeError,Ml=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Re(n),function(i){if(typeof i=="object"||oe(i))return i;throw NZ("Can't set "+PZ(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),jZ=nc.PROPER,IZ=nc.CONFIGURABLE,w7=M6.IteratorPrototype,jh=M6.BUGGY_SAFARI_ITERATORS,Uc=De("iterator"),LZ=function(){return this},V6=function(t,e,r,n,o,i,a){(function(y,g,w,E){var x=g+" Iterator";y.prototype=Mm(FZ,{next:Pm(1,w)}),Jv(y,x,!1),Rl[x]=TZ})(r,e,n);var u,s,l,c=function(y){if(y===o&&h)return h;if(!jh&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,p=t.prototype,v=p[Uc]||p["@@iterator"]||o&&p[o],h=!jh&&v||c(o),m=e=="Array"&&p.entries||v;if(m&&(u=Zv(m.call(new t)))!==Object.prototype&&u.next&&(Zv(u)!==w7&&(Ml?Ml(u,w7):oe(u[Uc])||Wr(u,Uc,LZ)),Jv(u,f,!0)),jZ&&o=="values"&&v&&v.name!=="values"&&(IZ?Kn(p,"name","values"):(d=!0,h=function(){return Kt(v,this)})),o)if(s={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},a)for(l in s)(jh||d||!(l in p))&&Wr(p,l,s[l]);else xe({target:e,proto:!0,forced:jh||d},s);return p[Uc]!==h&&Wr(p,Uc,h,{name:o}),Rl[e]=h,s},RZ=YN.charAt,MZ=Dr.set,VZ=Dr.getterFor("String Iterator");V6(String,"String",function(t){MZ(this,{type:"String Iterator",string:ae(t),index:0})},function(){var t,e=VZ(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=RZ(r,n),e.index+=t.length,{value:t,done:!1})});var R1,zZ=Lp.f,E7=ht("".endsWith),$Z=ht("".slice),HZ=Math.min,ZN=I6("endsWith"),UZ=!(ZN||(R1=zZ(String.prototype,"endsWith"),!R1||R1.writable));xe({target:"String",proto:!0,forced:!UZ&&!ZN},{endsWith:function(t){var e=ae(_n(this));j6(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=r===void 0?n:HZ(oc(r),n),i=ae(t);return E7?E7(e,i,o):$Z(e,o-i.length,o)===i}});var WZ=ht([].join),GZ=Lm!=Object,qZ=IN("join",",");xe({target:"Array",proto:!0,forced:GZ||!qZ},{join:function(t){return WZ(Ta(this),t===void 0?",":t)}});var KZ=De("species"),Vm=function(t){return Nd>=51||!Jt(function(){var e=[];return(e.constructor={})[KZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},YZ=ic.map,XZ=Vm("map");xe({target:"Array",proto:!0,forced:!XZ},{map:function(t){return YZ(this,t,arguments.length>1?arguments[1]:void 0)}});var z6=Z.RegExp,a4=Jt(function(){var t=z6("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ZZ=a4||Jt(function(){return!z6("a","y").sticky}),zm={BROKEN_CARET:a4||Jt(function(){var t=z6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ZZ,UNSUPPORTED_Y:a4},JZ=Z.RegExp,$6=Jt(function(){var t=JZ(".","s");return!(t.dotAll&&t.exec(`
|
|
36
|
+
`)&&t.flags==="s")}),QZ=Z.RegExp,H6=Jt(function(){var t=QZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),tJ=Dr.get,eJ=A6("native-string-replace",String.prototype.replace),Qv=RegExp.prototype.exec,u4=Qv,rJ=ht("".charAt),nJ=ht("".indexOf),oJ=ht("".replace),M1=ht("".slice),V1=function(){var t=/a/,e=/b*/g;return Kt(Qv,t,"a"),Kt(Qv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),C7=zm.BROKEN_CARET,z1=/()??/.exec("")[1]!==void 0;(V1||z1||C7||$6||H6)&&(u4=function(t){var e,r,n,o,i,a,u,s=this,l=tJ(s),c=ae(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Kt(u4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=C7&&s.sticky,v=Kt(P6,s),h=s.source,m=0,y=c;if(p&&(v=oJ(v,"y",""),nJ(v,"g")===-1&&(v+="g"),y=M1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&rJ(c,s.lastIndex-1)!==`
|
|
37
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),z1&&(r=new RegExp("^"+h+"$(?!\\s)",v)),V1&&(n=s.lastIndex),o=Kt(Qv,p?r:s,y),p?o?(o.input=M1(o.input,m),o[0]=M1(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:V1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),z1&&o&&o.length>1&&Kt(eJ,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Mm(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Md=u4;xe({target:"RegExp",proto:!0,forced:/./.exec!==Md},{exec:Md});var U6=Function.prototype,x7=U6.apply,iJ=U6.bind,S7=U6.call,W6=typeof Reflect=="object"&&Reflect.apply||(iJ?S7.bind(x7):function(){return S7.apply(x7,arguments)}),aJ=De("species"),$1=RegExp.prototype,G6=function(t,e,r,n){var o=De(t),i=!Jt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Jt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[aJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=ht(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=ht(l),h=c.exec;return h===Md||h===$1.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Wr(String.prototype,t,s[0]),Wr($1,o,s[1])}n&&Kn($1[o],"sham",!0)},uJ=YN.charAt,q6=function(t,e,r){return e+(r?uJ(t,e).length:1)},sJ=Math.floor,H1=ht("".charAt),lJ=ht("".replace),U1=ht("".slice),cJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fJ=/\$([$&'`]|\d{1,2})/g,dJ=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=fJ;return o!==void 0&&(o=Fa(o),s=cJ),lJ(i,s,function(l,c){var f;switch(H1(c,0)){case"$":return"$";case"&":return t;case"`":return U1(e,0,r);case"'":return U1(e,a);case"<":f=o[U1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=sJ(d/10);return p===0?l:p<=u?n[p-1]===void 0?H1(c,1):n[p-1]+H1(c,1):l}f=n[d-1]}return f===void 0?"":f})},pJ=Z.TypeError,Vd=function(t,e){var r=t.exec;if(oe(r)){var n=Kt(r,t,e);return n!==null&&Re(n),n}if(Yn(t)==="RegExp")return Kt(Md,t,e);throw pJ("RegExp#exec called on incompatible receiver")},s4=De("replace"),hJ=Math.max,gJ=Math.min,vJ=ht([].concat),W1=ht([].push),D7=ht("".indexOf),A7=ht("".slice),mJ="a".replace(/./,"$0")==="$0",O7=!!/./[s4]&&/./[s4]("a","$0")==="";G6("replace",function(t,e,r){var n=O7?"$":"$0";return[function(o,i){var a=_n(this),u=o==null?void 0:qu(o,s4);return u?Kt(u,o,a,i):Kt(e,ae(a),o,i)},function(o,i){var a=Re(this),u=ae(o);if(typeof i=="string"&&D7(i,n)===-1&&D7(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=oe(i);l||(i=ae(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Vd(a,u);if(p===null||(W1(d,p),!c))break;ae(p[0])===""&&(a.lastIndex=q6(u,oc(a.lastIndex),f))}for(var v,h="",m=0,y=0;y<d.length;y++){for(var g=ae((p=d[y])[0]),w=hJ(gJ(Ip(p.index),u.length),0),E=[],x=1;x<p.length;x++)W1(E,(v=p[x])===void 0?v:String(v));var D=p.groups;if(l){var S=vJ([g],E,w,u);D!==void 0&&W1(S,D);var k=ae(W6(i,void 0,S))}else k=dJ(g,u,w,E,D,i);w>=m&&(h+=A7(u,m,w)+k,m=w+g.length)}return h+A7(u,m)}]},!!Jt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!mJ||O7);/*! *****************************************************************************
|
|
38
|
+
Copyright (c) Microsoft Corporation.
|
|
39
|
+
|
|
40
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
41
|
+
purpose with or without fee is hereby granted.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
44
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
45
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
46
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
47
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
48
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
49
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
50
|
+
***************************************************************************** */var l4=function(t,e){return l4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},l4(t,e)};function ac(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}l4(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var En=function(){return En=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},En.apply(this,arguments)};function Cn(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function c4(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var yJ=0,k7=function(){this.id=""+yJ++},bJ=Dr.set,wJ=Dr.getterFor("Array Iterator"),qf=V6(Array,"Array",function(t,e){bJ(this,{type:"Array Iterator",target:Ta(t),index:0,kind:e})},function(){var t=wJ(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Rl.Arguments=Rl.Array,id("keys"),id("values"),id("entries");var Vl=function(t,e,r){for(var n in e)Wr(t,n,e[n],r);return t},EJ=Z.Array,CJ=Math.max,f4=function(t,e,r){for(var n=cs(t),o=Ll(e,n),i=Ll(r===void 0?n:r,n),a=EJ(CJ(i-o,0)),u=0;o<i;o++,u++)Rd(a,u,t[o]);return a.length=u,a},B7=Id.f,_7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xJ={f:function(t){return _7&&Yn(t)=="Window"?function(e){try{return B7(e)}catch{return f4(_7)}}(t):B7(Ta(t))}},F7=Jt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Ih=Object.isExtensible,pu=Jt(function(){Ih(1)})||F7?function(t){return!!de(t)&&(!F7||Yn(t)!="ArrayBuffer")&&(!Ih||Ih(t))}:Ih,SJ=!Jt(function(){return Object.isExtensible(Object.preventExtensions({}))}),$m=jp(function(t){var e=eo.f,r=!1,n=O6("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Id.f,s=ht([].splice),l={};l[n]=1,u(l).length&&(Id.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},xe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:xJ.f}))},fastKey:function(u,s){if(!de(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Le(u,n)){if(!pu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Le(u,n)){if(!pu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return SJ&&r&&pu(u)&&!Le(u,n)&&i(u),u}};jm[n]=!0}),DJ=Z.TypeError,$g=function(t,e){this.stopped=t,this.result=e},T7=$g.prototype,zd=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Ku(e,c),h=function(y){return n&&n4(n,"normal",y),new $g(!0,y)},m=function(y){return f?(Re(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(d)n=t;else{if(!(o=L6(t)))throw DJ(Tm(t)+" is not iterable");if(WN(o)){for(i=0,a=cs(t);a>i;i++)if((u=m(t[i]))&&Gu(T7,u))return u;return new $g(!1)}n=GN(t,o)}for(s=n.next;!(l=Kt(s,n)).done;){try{u=m(l.value)}catch(y){n4(n,"throw",y)}if(typeof u=="object"&&u&&Gu(T7,u))return u}return new $g(!1)},AJ=Z.TypeError,Hm=function(t,e){if(Gu(e,t))return t;throw AJ("Incorrect invocation")},JN=function(t,e,r){var n,o;return Ml&&oe(n=e.constructor)&&n!==r&&de(o=n.prototype)&&o!==r.prototype&&Ml(t,o),t},QN=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=Z[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=ht(u[m]);Wr(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!de(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!de(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!de(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(Ld(t,!oe(a)||!(o||u.forEach&&!Jt(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),$m.enable();else if(Ld(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Jt(function(){f.has(1)}),v=R6(function(m){new a(m)}),h=!o&&Jt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){Hm(m,u);var g=JN(new a,m,s);return y!=null&&zd(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,xe({global:!0,forced:s!=a},l),Jv(s,t),o||r.setStrong(s,t,n),s},Lh=$m.getWeakData,OJ=Dr.set,kJ=Dr.getterFor,BJ=ic.find,_J=ic.findIndex,FJ=ht([].splice),TJ=0,Rh=function(t){return t.frozen||(t.frozen=new tj)},tj=function(){this.entries=[]},G1=function(t,e){return BJ(t.entries,function(r){return r[0]===e})};tj.prototype={get:function(t){var e=G1(this,t);if(e)return e[1]},has:function(t){return!!G1(this,t)},set:function(t,e){var r=G1(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=_J(this.entries,function(r){return r[0]===t});return~e&&FJ(this.entries,e,1),!!~e}};var Wc,ej={getConstructor:function(t,e,r,n){var o=t(function(s,l){Hm(s,i),OJ(s,{type:e,id:TJ++,frozen:void 0}),l!=null&&zd(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=kJ(e),u=function(s,l,c){var f=a(s),d=Lh(Re(l),!0);return d===!0?Rh(f).set(l,c):d[f.id]=c,s};return Vl(i,{delete:function(s){var l=a(this);if(!de(s))return!1;var c=Lh(s);return c===!0?Rh(l).delete(s):c&&Le(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!de(s))return!1;var c=Lh(s);return c===!0?Rh(l).has(s):c&&Le(c,l.id)}}),Vl(i,r?{get:function(s){var l=a(this);if(de(s)){var c=Lh(s);return c===!0?Rh(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Mh=Dr.enforce,PJ=!Z.ActiveXObject&&"ActiveXObject"in Z,rj=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},NJ=QN("WeakMap",rj,ej);if(_N&&PJ){Wc=ej.getConstructor(rj,"WeakMap",!0),$m.enable();var Gc=NJ.prototype,P7=ht(Gc.delete),Vh=ht(Gc.has),N7=ht(Gc.get),j7=ht(Gc.set);Vl(Gc,{delete:function(t){if(de(t)&&!pu(t)){var e=Mh(this);return e.frozen||(e.frozen=new Wc),P7(this,t)||e.frozen.delete(t)}return P7(this,t)},has:function(t){if(de(t)&&!pu(t)){var e=Mh(this);return e.frozen||(e.frozen=new Wc),Vh(this,t)||e.frozen.has(t)}return Vh(this,t)},get:function(t){if(de(t)&&!pu(t)){var e=Mh(this);return e.frozen||(e.frozen=new Wc),Vh(this,t)?N7(this,t):e.frozen.get(t)}return N7(this,t)},set:function(t,e){if(de(t)&&!pu(t)){var r=Mh(this);r.frozen||(r.frozen=new Wc),Vh(this,t)?j7(this,t,e):r.frozen.set(t,e)}else j7(this,t,e);return this}})}var q1=De("iterator"),I7=De("toStringTag"),K1=qf.values,nj=function(t,e){if(t){if(t[q1]!==K1)try{Kn(t,q1,K1)}catch{t[q1]=K1}if(t[I7]||Kn(t,I7,e),Kv[e]){for(var r in qf)if(t[r]!==qf[r])try{Kn(t,r,qf[r])}catch{t[r]=qf[r]}}}};for(var Y1 in Kv)nj(Z[Y1]&&Z[Y1].prototype,Y1);nj(TN,"DOMTokenList");var d4=new WeakMap,p4=new WeakMap,K6=new WeakMap,Um=new WeakMap,h4=new WeakMap,t0=new WeakMap,Y6=new WeakMap,g4=new WeakMap,Hg=new WeakMap,L7=new WeakMap,R7=new WeakMap,M7=new WeakMap,V7=new WeakMap,$d=new WeakMap,zl=new WeakMap,X6=new WeakMap,e0=new WeakMap,v4=new WeakMap,r0=new WeakMap,Ug=new WeakMap,oj=new WeakMap,Du=new WeakMap,X1=new WeakMap,z7=new WeakMap,Z1=new WeakMap,jJ=ic.find,$7=!0;"find"in[]&&Array(1).find(function(){$7=!1}),xe({target:"Array",proto:!0,forced:$7},{find:function(t){return jJ(this,t,arguments.length>1?arguments[1]:void 0)}}),id("find"),xe({global:!0},{globalThis:Z});const IJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Vv&&(_.fn.css=Vv),Bn&&(_.fn.append=Bn),Al&&(_.fn.addClass=Al),Ol&&(_.fn.removeClass=Ol),kl&&(_.fn.hasClass=kl),_o&&(_.fn.on=_o),ba&&(_.fn.focus=ba),kn&&(_.fn.attr=kn),Iv&&(_.fn.removeAttr=Iv),_l&&(_.fn.hide=_l),Mv&&(_.fn.show=Mv),oA&&(_.fn.offset=oA),Lv&&(_.fn.width=Lv),Rv&&(_.fn.height=Rv),Fl&&(_.fn.parent=Fl),Hv&&(_.fn.parents=Hv),aA&&(_.fn.is=aA),Bl&&(_.fn.dataset=Bl),Bo&&(_.fn.val=Bo),$v&&(_.fn.text=$v),ya&&(_.fn.html=ya),Pl&&(_.fn.children=Pl),Nl&&(_.fn.remove=Nl),Tl&&(_.fn.find=Tl),zv&&(_.fn.each=zv),jl&&(_.fn.empty=jl);var mo,Cr,Z6=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},zn=function(t){return Yu(t)&&t.nodeType===1},Yu=function(t){var e=Z6(t);return!!e&&t instanceof e.Node},H7=function(t){var e=t&&t.anchorNode&&Z6(t.anchorNode);return!!e&&t instanceof e.Selection},ij=function(t){return Yu(t)&&t.nodeType===3},m4=function(t){var e,r,n;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(t))||null},aj=function(t,e,r){for(var n,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Yu(n=i)&&n.nodeType===8||zn(i)&&i.childNodes.length===0||zn(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,r="backward"):a<0?(s=!0,a=e+1,r="forward"):(i=o[a],e=a,a+=r==="forward"?1:-1);return[i,e]},LJ=function(t,e,r){return Ht(aj(t,e,r),1)[0]},RJ=function t(e){var r,n,o="";if(ij(e)&&e.nodeValue)return e.nodeValue;if(zn(e)){try{for(var i=Cn(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
|
|
51
|
+
`)}return o};function uj(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var r=t.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||uj(o,e)}}function U7(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==mo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Cr=mo||(mo={}))[Cr.ELEMENT_NODE=1]="ELEMENT_NODE",Cr[Cr.TEXT_NODE=3]="TEXT_NODE",Cr[Cr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Cr[Cr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Cr[Cr.COMMENT_NODE=8]="COMMENT_NODE",Cr[Cr.DOCUMENT_NODE=9]="DOCUMENT_NODE",Cr[Cr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Cr[Cr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var y4=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ad=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),qc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),MJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),VJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),b4=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Kc=!VJ&&!MJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",O={getWindow:function(t){var e=oj.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=Ug.get(e);return r||(r=new k7,Ug.set(e,r)),r},setNewKey:function(t){var e=new k7;Ug.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=zl.get(n);if(o==null){if(C.isEditor(n))return r;break}var i=$d.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=O.toDOMNode(t,t),r=e.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:e.ownerDocument},getParentNode:function(t,e){return zl.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&n!=null;){var o=O.getParentNode(t,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[O.findPath(t,e)[0]];return Q.get(t,r)},toDOMNode:function(t,e){var r;if(C.isEditor(e))r=X6.get(t);else{var n=O.findKey(t,e);r=v4.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return r},hasDOMNode:function(t,e,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=O.toDOMNode(t,t);try{n=zn(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=z.isBackward(e),i=O.toDOMPoint(t,r),a=z.isCollapsed(e)?i:O.toDOMPoint(t,n),u=O.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),d=f[0],p=f[1],v=!!(zn(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(zn(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,h?1:p),u},toDOMPoint:function(t,e){var r,n,o,i=Ht(C.node(t,e.path),1)[0],a=O.toDOMNode(t,i);C.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Cn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),h=s+(v==null?p:parseInt(v,10));if(e.offset<=h){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=h}}}catch(m){r={error:m}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var r=zn(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?e0.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=O.toSlateNode(t,e.target),u=O.findPath(t,a);if(C.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=C.point(t,u,{edge:l?"start":"end"}),f=l?C.before(t,c):C.after(t,c);if(f)return C.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return O.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((H7(e)?e.anchorNode:e.startContainer)&&(H7(e)?(n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=b4&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=O.toSlatePoint(t,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:O.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return z.isExpanded(d)&&z.isForward(d)&&zn(i)&&C.void(t,{at:d.focus,mode:"highest"})&&(d=C.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,i=r.suppressThrow,a=Ht(o?e:function(g){var w,E=Ht(g,2),x=E[0],D=E[1];if(zn(x)&&x.childNodes.length){var S=D===x.childNodes.length,k=S?D-1:D;for(x=(w=Ht(aj(x,k,S?"backward":"forward"),2))[0],S=(k=w[1])<D;zn(x)&&x.childNodes.length;){var F=S?x.childNodes.length-1:0;x=LJ(x,F,S?"backward":"forward")}D=S&&x.textContent!=null?x.textContent.length:0}return[x,D]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var h=O.getWindow(t).document.createRange();h.setStart(c,0),h.setEnd(u,s);var m=h.cloneContents();c4(c4([],Ht(eA(m.querySelectorAll("[data-slate-zero-width]")))),Ht(eA(m.querySelectorAll("[contenteditable=false]")))).forEach(function(g){g.parentNode.removeChild(g)}),f=m.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(g){f-=g.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||ad&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
|
|
52
|
+
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=O.toSlateNode(t,c);return{path:O.findPath(t,y),offset:f}},hasRange:function(t,e){var r=e.anchor,n=e.focus;return C.hasPath(t,r.path)&&C.hasPath(t,n.path)},getNodeType:function(t){return ft.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,r,n=[],o=C.nodes(t,{universal:!0});try{for(var i=Cn(o),a=i.next();!a.done;a=i.next()){var u=Ht(a.value,1)[0];ft.isElement(u)&&n.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=Ht(C.nodes(t,{match:function(i){return r.checkNodeType(i,e)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ht(C.nodes(t,{match:function(n){return it.isText(n)},universal:!0}),1),r=e[0];return r==null?null:r[0]},isNodeSelected:function(t,e){var r=Ht(C.nodes(t,{match:function(o){return o===e},universal:!0}),1),n=r[0];return n!=null&&Ht(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(C.isEnd(t,r.anchor,e)||C.isEnd(t,r.focus,e))},getTextarea:function(t){var e=d4.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Um.get(t)||null},getHoverbar:function(t){return t0.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,r){t.normalizeNode([e,[r]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,i=O.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Cn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(h){e={error:h}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var c=C.nodes(t,{match:function(h){return!(!ft.isElement(h)||t.isInline(h))},universal:!0});try{for(var f=Cn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];uj(O.toDOMNode(t,v),function(h,m){var y=_(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(h)})}}}catch(h){n={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=C.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Cn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||z.isExpanded(e))return!1;var r=O.getSelectedNodeByType(t,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(t,e){var r=C.node(t,e);if(r==null)return!1;var n=Ht(r,1)[0].children;return n.length===1&&n[0].text===""}},zJ=1,sj={},Hd={},$J=ic.filter,HJ=Vm("filter");xe({target:"Array",proto:!0,forced:!HJ},{filter:function(t){return $J(this,t,arguments.length>1?arguments[1]:void 0)}});var w4=`
|
|
53
|
+
\v\f\r \u2028\u2029\uFEFF`,W7=ht("".replace),n0="["+w4+"]",UJ=RegExp("^"+n0+n0+"*"),WJ=RegExp(n0+n0+"*$"),GJ=function(t){return function(e){var r=ae(_n(e));return 1&t&&(r=W7(r,UJ,"")),2&t&&(r=W7(r,WJ,"")),r}},qJ={trim:GJ(3)},KJ=nc.PROPER,YJ=qJ.trim;xe({target:"String",proto:!0,forced:function(t){return Jt(function(){return!!w4[t]()||"
"[t]()!=="
"||KJ&&w4[t].name!==t})}("trim")},{trim:function(){return YJ(this)}});var E4=[],lj={};function XJ(t,e,r){var n=r.isInline(t)?"span":"div";return"<"+n+">"+e+"</"+n+">"}var Ud,Os,G7,J1,o0=Z.Promise,q7=De("species"),J6=function(t){var e=ls(t),r=eo.f;ir&&e&&!e[q7]&&r(e,q7,{configurable:!0,get:function(){return this}})},ZJ=Z.TypeError,JJ=De("species"),cj=function(t,e){var r,n=Re(t).constructor;return n===void 0||(r=Re(n)[JJ])==null?e:function(o){if(Rm(o))return o;throw ZJ(Tm(o)+" is not a constructor")}(r)},fj=ht([].slice),dj=/(?:ipad|iphone|ipod).*applewebkit/i.test(fl),ea=Yn(Z.process)=="process",C4=Z.setImmediate,K7=Z.clearImmediate,QJ=Z.process,Q1=Z.Dispatch,tQ=Z.Function,Y7=Z.MessageChannel,eQ=Z.String,tb=0,ud={};try{Ud=Z.location}catch{}var Q6=function(t){if(Le(ud,t)){var e=ud[t];delete ud[t],e()}},eb=function(t){return function(){Q6(t)}},X7=function(t){Q6(t.data)},Z7=function(t){Z.postMessage(eQ(t),Ud.protocol+"//"+Ud.host)};C4&&K7||(C4=function(t){var e=fj(arguments,1);return ud[++tb]=function(){W6(oe(t)?t:tQ(t),void 0,e)},Os(tb),tb},K7=function(t){delete ud[t]},ea?Os=function(t){QJ.nextTick(eb(t))}:Q1&&Q1.now?Os=function(t){Q1.now(eb(t))}:Y7&&!dj?(J1=(G7=new Y7).port2,G7.port1.onmessage=X7,Os=Ku(J1.postMessage,J1)):Z.addEventListener&&oe(Z.postMessage)&&!Z.importScripts&&Ud&&Ud.protocol!=="file:"&&!Jt(Z7)?(Os=Z7,Z.addEventListener("message",X7,!1)):Os="onreadystatechange"in jd("script")?function(t){t4.appendChild(jd("script")).onreadystatechange=function(){t4.removeChild(this),Q6(t)}}:function(t){setTimeout(eb(t),0)});var Yc,lu,sd,Qs,rb,nb,ob,J7,pj={set:C4},rQ=/ipad|iphone|ipod/i.test(fl)&&Z.Pebble!==void 0,nQ=/web0s(?!.*chrome)/i.test(fl),oQ=Lp.f,ib=pj.set,Q7=Z.MutationObserver||Z.WebKitMutationObserver,t9=Z.document,e9=Z.process,zh=Z.Promise,r9=oQ(Z,"queueMicrotask"),hj=r9&&r9.value;hj||(Yc=function(){var t,e;for(ea&&(t=e9.domain)&&t.exit();lu;){e=lu.fn,lu=lu.next;try{e()}catch(r){throw lu?Qs():sd=void 0,r}}sd=void 0,t&&t.enter()},dj||ea||nQ||!Q7||!t9?!rQ&&zh&&zh.resolve?((ob=zh.resolve(void 0)).constructor=zh,J7=Ku(ob.then,ob),Qs=function(){J7(Yc)}):ea?Qs=function(){e9.nextTick(Yc)}:(ib=Ku(ib,Z),Qs=function(){ib(Yc)}):(rb=!0,nb=t9.createTextNode(""),new Q7(Yc).observe(nb,{characterData:!0}),Qs=function(){nb.data=rb=!rb}));var ab,n9,gj,o9,vj=hj||function(t){var e={fn:t,next:void 0};sd&&(sd.next=e),lu||(lu=e,Qs()),sd=e},iQ=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=wa(e),this.reject=wa(r)},t3={f:function(t){return new iQ(t)}},x4=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},aQ=typeof window=="object",mj=pj.set,uQ=De("species"),ho="Promise",i9=Dr.getterFor(ho),sQ=Dr.set,lQ=Dr.getterFor(ho),nu=o0&&o0.prototype,bo=o0,Xc=nu,yj=Z.TypeError,S4=Z.document,e3=Z.process,pl=t3.f,cQ=pl,fQ=!!(S4&&S4.createEvent&&Z.dispatchEvent),bj=oe(Z.PromiseRejectionEvent),wj=!1,ld=Ld(ho,function(){var t=Nm(bo),e=t!==String(bo);if(!e&&Nd===66)return!0;if(Nd>=51&&/native code/.test(t))return!1;var r=new bo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[uQ]=n,!(wj=r.then(function(){})instanceof n)||!e&&aQ&&!bj}),dQ=ld||!R6(function(t){bo.all(t).catch(function(){})}),Ej=function(t){var e;return!(!de(t)||!oe(e=t.then))&&e},r3=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;vj(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&hQ(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(yj("Promise-chain cycle")):(u=Ej(a))?Kt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&pQ(t)})}},Cj=function(t,e,r){var n,o;fQ?((n=S4.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Z.dispatchEvent(n)):n={promise:e,reason:r},!bj&&(o=Z["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=Z.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},pQ=function(t){Kt(mj,Z,function(){var e,r=t.facade,n=t.value;if(a9(t)&&(e=x4(function(){ea?e3.emit("unhandledRejection",n,r):Cj("unhandledrejection",r,n)}),t.rejection=ea||a9(t)?2:1,e.error))throw e.value})},a9=function(t){return t.rejection!==1&&!t.parent},hQ=function(t){Kt(mj,Z,function(){var e=t.facade;ea?e3.emit("rejectionHandled",e):Cj("rejectionhandled",e,t.value)})},al=function(t,e,r){return function(n){t(e,n,r)}},hl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,r3(t,!0))},D4=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw yj("Promise can't be resolved itself");var n=Ej(e);n?vj(function(){var o={done:!1};try{Kt(n,e,al(D4,o,t),al(hl,o,t))}catch(i){hl(o,i,t)}}):(t.value=e,t.state=1,r3(t,!1))}catch(o){hl({done:!1},o,t)}}};if(ld&&(Xc=(bo=function(t){Hm(this,Xc),wa(t),Kt(ab,this);var e=i9(this);try{t(al(D4,e),al(hl,e))}catch(r){hl(e,r)}}).prototype,(ab=function(t){sQ(this,{type:ho,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Vl(Xc,{then:function(t,e){var r=lQ(this),n=r.reactions,o=pl(cj(this,bo));return o.ok=!oe(t)||t,o.fail=oe(e)&&e,o.domain=ea?e3.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&r3(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),n9=function(){var t=new ab,e=i9(t);this.promise=t,this.resolve=al(D4,e),this.reject=al(hl,e)},t3.f=pl=function(t){return t===bo||t===gj?new n9(t):cQ(t)},oe(o0)&&nu!==Object.prototype)){o9=nu.then,wj||(Wr(nu,"then",function(t,e){var r=this;return new bo(function(n,o){Kt(o9,r,n,o)}).then(t,e)},{unsafe:!0}),Wr(nu,"catch",Xc.catch,{unsafe:!0}));try{delete nu.constructor}catch{}Ml&&Ml(nu,Xc)}xe({global:!0,wrap:!0,forced:ld},{Promise:bo}),Jv(bo,ho,!1),J6(ho),gj=ls(ho),xe({target:ho,stat:!0,forced:ld},{reject:function(t){var e=pl(this);return Kt(e.reject,void 0,t),e.promise}}),xe({target:ho,stat:!0,forced:ld},{resolve:function(t){return function(e,r){if(Re(e),de(r)&&r.constructor===e)return r;var n=t3.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),xe({target:ho,stat:!0,forced:dQ},{all:function(t){var e=this,r=pl(e),n=r.resolve,o=r.reject,i=x4(function(){var a=wa(e.resolve),u=[],s=0,l=1;zd(t,function(c){var f=s++,d=!1;l++,Kt(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=pl(e),n=r.reject,o=x4(function(){var i=wa(e.resolve);zd(t,function(a){Kt(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var ks=zm.UNSUPPORTED_Y,gQ=Math.min,xj=[].push,vQ=ht(/./.exec),Bs=ht(xj),Zc=ht("".slice);function Fn(t){Promise.resolve().then(t)}function Sj(t,e){return ft.isElement(t)?function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=C.isVoid(n,r),l="";s||(l=u.map(function(y){return Sj(y,n)}).join(""));var c=function(y){return lj[y]||XJ}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||E4.forEach(function(y){return d=y(r,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,h=f.suffix,m=h===void 0?"":h;return v&&(d=v+d),m&&(d+=m),d}(t,e):function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=O.getParentsNodes(n,r).some(function(s){return O.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=O.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return E4.forEach(function(s){return i=s(r,i)}),i}(t,e)}function Dj(t){return"w-e-element-"+t}G6("split",function(t,e,r){var n;return n="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,i){var a=ae(_n(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!N6(o))return Kt(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Kt(Md,v,a))&&!((l=v.lastIndex)>p&&(Bs(f,Zc(a,p,s.index)),s.length>1&&s.index<a.length&&W6(xj,f,f4(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&vQ(v,"")||Bs(f,""):Bs(f,Zc(a,p)),f.length>u?f4(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Kt(e,this,o,i)}:e,[function(o,i){var a=_n(this),u=o==null?void 0:qu(o,t);return u?Kt(u,o,a,i):Kt(n,ae(a),o,i)},function(o,i){var a=Re(this),u=ae(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=cj(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ks?"g":"y"),d=new l(ks?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Vd(d,u)===null?[u]:[];for(var v=0,h=0,m=[];h<u.length;){d.lastIndex=ks?0:h;var y,g=Vd(d,ks?Zc(u,h):u);if(g===null||(y=gQ(oc(d.lastIndex+(ks?h:0)),u.length))===v)h=q6(u,h,c);else{if(Bs(m,Zc(u,v,h)),m.length===p)return m;for(var w=1;w<=g.length-1;w++)if(Bs(m,g[w]),m.length===p)return m;h=v=y}}return Bs(m,Zc(u,v)),m}]},!!Jt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),ks);var u9=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},s9=function(t,e,r){var n=O.toDOMRange(t,e).getBoundingClientRect(),o=O.toDOMRange(t,r).getBoundingClientRect();return u9(n,o)&&u9(o,n)},Aj=["span","b","strong","i","em","s","strike","u","font","sub","sup"],Oj=[],n3=[],i0={},mQ=eo.f,yQ=Id.f,bQ=Dr.enforce,wQ=De("match"),ei=Z.RegExp,tl=ei.prototype,EQ=Z.SyntaxError,CQ=ht(P6),xQ=ht(tl.exec),$h=ht("".charAt),l9=ht("".replace),c9=ht("".indexOf),SQ=ht("".slice),DQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Au=/a/g,ub=/a/g,AQ=new ei(Au)!==Au,kj=zm.MISSED_STICKY,OQ=zm.UNSUPPORTED_Y,kQ=ir&&(!AQ||kj||$6||H6||Jt(function(){return ub[wQ]=!1,ei(Au)!=Au||ei(ub)==ub||ei(Au,"i")!="/a/i"}));if(Ld("RegExp",kQ)){for(var Bi=function(t,e){var r,n,o,i,a,u,s=Gu(tl,this),l=N6(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===Bi)return t;if((l||Gu(tl,t))&&(t=t.source,c&&(e="flags"in d?d.flags:CQ(d))),t=t===void 0?"":ae(t),e=e===void 0?"":ae(e),d=t,$6&&"dotAll"in Au&&(n=!!e&&c9(e,"s")>-1)&&(e=l9(e,/s/g,"")),r=e,kj&&"sticky"in Au&&(o=!!e&&c9(e,"y")>-1)&&OQ&&(e=l9(e,/y/g,"")),H6&&(i=function(p){for(var v,h=p.length,m=0,y="",g=[],w={},E=!1,x=!1,D=0,S="";m<=h;m++){if((v=$h(p,m))==="\\")v+=$h(p,++m);else if(v==="]")E=!1;else if(!E)switch(!0){case v==="[":E=!0;break;case v==="(":xQ(DQ,SQ(p,m+1))&&(m+=2,x=!0),y+=v,D++;continue;case(v===">"&&x):if(S===""||Le(w,S))throw new EQ("Invalid capture group name");w[S]=!0,g[g.length]=[S,D],x=!1,S="";continue}x?S+=v:y+=v}return[y,g]}(t),t=i[0],f=i[1]),a=JN(ei(t,e),s?this:tl,Bi),(n||o||f.length)&&(u=bQ(a),n&&(u.dotAll=!0,u.raw=Bi(function(p){for(var v,h=p.length,m=0,y="",g=!1;m<=h;m++)(v=$h(p,m))!=="\\"?g||v!=="."?(v==="["?g=!0:v==="]"&&(g=!1),y+=v):y+="[\\s\\S]":y+=v+$h(p,++m);return y}(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Kn(a,"source",d===""?"(?:)":d)}catch{}return a},BQ=function(t){t in Bi||mQ(Bi,t,{configurable:!0,get:function(){return ei[t]},set:function(e){ei[t]=e}})},f9=yQ(ei),d9=0;f9.length>d9;)BQ(f9[d9++]);tl.constructor=Bi,Bi.prototype=tl,Wr(Z,"RegExp",Bi)}J6("RegExp");var _Q=new RegExp(" ","g");function Bj(t){return t.replace(_Q," ")}function p9(t,e){var r=t.length;if(r){var n=t[r-1];if(it.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+e,!0}}return!1}function FQ(t,e,r){return{type:"paragraph",children:[{text:_(t).text().replace(/\s+/gm," ")}]}}function sb(t,e){var r=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==mo.ELEMENT_NODE){if(l.nodeType===mo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
|
|
54
|
+
`)>=0)return;c&&(c=Bj(c),p9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(p9(u,`
|
|
55
|
+
`)||u.push({text:`
|
|
56
|
+
`}));var f=o3(_(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),n=function(i){for(var a in i0)if(i[0].matches(a))return i0[a];return FQ}(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){C.isVoid(e,i)||(r.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),n3.forEach(function(a){i=a(t[0],i,e)}))}),o}function lb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
|
57
|
+
`));var r=t[0].textContent||"";r=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(r);var n={text:r=Bj(r)};return n3.forEach(function(o){n=o(t[0],n,e)}),n}function o3(t,e){Oj.forEach(function(n){var o=n.selector,i=n.preParseHtml;t[0].matches(o)&&(t=_(i(t[0])))});var r=U7(t);return r==="span"?t.attr("data-w-e-type")?sb(t,e):lb(t,e):r==="code"?U7(t.parent())==="pre"?sb(t,e):lb(t,e):Aj.includes(r)?lb(t,e):sb(t,e)}function _j(t,e,r){var n=_(r);return!!n.attr(e)||(n.attr(e,"true"),t.on("destroyed",function(){n.removeAttr(e)}),!1)}function h9(t,e){e===void 0&&(e="");var r=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=_("<div>"+e+"</div>");return Array.from(n.children()).forEach(function(o){var i=o3(_(o),t);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var TQ=eo.f,g9=$m.fastKey,v9=Dr.set,cb=Dr.getterFor,PQ={getConstructor:function(t,e,r,n){var o=t(function(l,c){Hm(l,i),v9(l,{type:e,index:Mm(null),first:void 0,last:void 0,size:0}),ir||(l.size=0),c!=null&&zd(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=cb(e),u=function(l,c,f){var d,p,v=a(l),h=s(l,c);return h?h.value=f:(v.last=h={index:p=g9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=h),d&&(d.next=h),ir?v.size++:l.size++,p!=="F"&&(v.index[p]=h)),l},s=function(l,c){var f,d=a(l),p=g9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Vl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,ir?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),ir?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Ku(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Vl(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),ir&&TQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=cb(e),i=cb(n);V6(t,e,function(a,u){v9(this,{type:n,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),J6(e)}};QN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},PQ);var m9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function y9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):R.insertNodes(t,e,{mode:"highest"})}var NQ=function(t){var e=t,r=e.insertText;return e.insertFragment,e.setFragmentData=function(n){var o=e.selection;if(o){var i=Ht(z.edges(o),2),a=i[0],u=i[1],s=C.void(e,{at:a.path}),l=C.void(e,{at:u.path});if(!z.isCollapsed(o)||s){var c=O.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(x){x.textContent&&x.textContent.trim()!==""&&(d=x)}),l){var p=Ht(l,1)[0],v=c.cloneRange(),h=O.toDOMNode(e,p);v.setEndAfter(h),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(x){var D=x.getAttribute("data-slate-zero-width")==="n";x.textContent=D?`
|
|
58
|
+
`:""}),ij(d)){var m=d.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(d),f.appendChild(m),d=m}var y=e.getFragment(),g=JSON.stringify(y),w=window.btoa(encodeURIComponent(g));d.setAttribute("data-slate-fragment",w),n.setData("application/x-slate-fragment",w);var E=f.ownerDocument.createElement("div");return E.appendChild(f),E.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(E),n.setData("text/html",E.innerHTML),n.setData("text/plain",RJ(E)),f.ownerDocument.body.removeChild(E),n}}},e.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Cn(f),v=p.next();!v.done;v=p.next()){var h=v.value;d&&R.splitNodes(e,{always:!0}),r(h),d=!0}}catch(m){o={error:m}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},Kf=function(t){return t!=null},jQ={object:!0,function:!0,undefined:!0},IQ=/^\s*class[\s{/}]/,LQ=Function.prototype.toString,b9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(r){if(!function(n){return!!Kf(n)&&hasOwnProperty.call(jQ,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}(e)}(t)&&!IQ.test(LQ.call(t))},i3=function(t){return t!=null},RQ=Object.keys,MQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return RQ(i3(t)?Object(t):t)},VQ=function(t){if(!i3(t))throw new TypeError("Cannot use null or undefined");return t},zQ=Math.max,w9=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var r,n,o,i=zQ(arguments.length,2);for(t=Object(VQ(t)),o=function(a){try{t[a]=e[a]}catch(u){r||(r=u)}},n=1;n<i;++n)MQ(e=arguments[n]).forEach(o);if(r!==void 0)throw r;return t},$Q=Array.prototype.forEach,HQ=Object.create,UQ=function(t,e){var r;for(r in t)e[r]=t[r]},E9=function(t){var e=HQ(null);return $Q.call(arguments,function(r){i3(r)&&UQ(Object(r),e)}),e},fb="razdwatrzy",WQ=String.prototype.indexOf,Jc=typeof fb.contains=="function"&&fb.contains("dwa")===!0&&fb.contains("foo")===!1?String.prototype.contains:function(t){return WQ.call(this,t,arguments[1])>-1},Hh=jp(function(t){var e=t.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Kf(r)?(o=Jc.call(r,"c"),i=Jc.call(r,"e"),a=Jc.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?w9(E9(u),s):s};e.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Kf(n)?b9(n)?Kf(o)?b9(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Kf(r)?(i=Jc.call(r,"c"),a=Jc.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?w9(E9(u),s):s}}),db=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},GQ=jp(function(t,e){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};r=function(m,y){var g;return db(y),v.call(this,"__ee__")?g=this.__ee__:(g=h.value=f(null),d(this,"__ee__",h),h.value=null),g[m]?typeof g[m]=="object"?g[m].push(y):g[m]=[g[m],y]:g[m]=y,this},n=function(m,y){var g,w;return db(y),w=this,r.call(this,m,g=function(){o.call(w,m,g),l.call(y,this,arguments)}),g.__eeOnceListener__=y,this},o=function(m,y){var g,w,E,x;if(db(y),!v.call(this,"__ee__"))return this;if(!(g=this.__ee__)[m])return this;if(typeof(w=g[m])=="object")for(x=0;E=w[x];++x)E!==y&&E.__eeOnceListener__!==y||(w.length===2?g[m]=w[x?0:1]:w.splice(x,1));else w!==y&&w.__eeOnceListener__!==y||delete g[m];return this},i=function(m){var y,g,w,E,x;if(v.call(this,"__ee__")&&(E=this.__ee__[m]))if(typeof E=="object"){for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];for(E=E.slice(),y=0;w=E[y];++y)l.call(w,this,x)}else switch(arguments.length){case 1:c.call(E,this);break;case 2:c.call(E,this,arguments[1]);break;case 3:c.call(E,this,arguments[1],arguments[2]);break;default:for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];l.call(E,this,x)}},a={on:r,once:n,off:o,emit:i},u={on:Hh(r),once:Hh(n),off:Hh(o),emit:Hh(i)},s=p({},u),t.exports=e=function(m){return m==null?f(s):p(Object(m),u)},e.methods=a});function Uh(t){var e=z7.get(t);return e==null&&(e=GQ(),z7.set(t,e)),e}var a0=new WeakMap;function C9(t,e){var r=a0.get(t);r==null&&(r=new Set,a0.set(t,r)),r.add(e)}function qQ(t){return a0.get(t)||new Set}function KQ(t){a0.set(t,new Set)}function a3(t){var e=O.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function u3(t){var e={top:"0",left:"0"},r=t.selection;if(r==null)return e;var n=a3(t);if(n==null)return e;var o=n.top,i=n.left,a=n.width,u=n.height,s=O.toDOMRange(t,r).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var h=f+l;h<0&&(h=0),c.top=h+5+"px"}return c}function s3(t,e,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(t.selection==null)return n;var o=ft.isElement(e)&&t.isVoid(e),i=ft.isElement(e)&&t.isInline(e),a=r0.get(e);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(S){var k=[];k.push(S);for(var F=0;k.length>0;){var $=k.pop();if($==null||++F>1e4)break;var W=$.nodeName;if($.nodeType===1){var j=W.toLowerCase();if(IJ.includes(j)||j==="iframe"||j==="video")return $;var L=$.children||[],V=L.length;if(V)for(var q=V-1;q>=0;q--)k.push(L[q])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=a3(t);if(v==null)return n;var h,m=v.top,y=v.left,g=v.width,w=v.height,E={},x=s-m,D=l-y;if(r==="bar")return E.left=D+"px",x>40?E.bottom=w-x+5+"px":E.top=x+c+5+"px",E;if(r==="modal")return o?i?D>(g-f)/2?E.right=g-D+5+"px":E.left=D+f+5+"px":E.left="20px":E.left=D+"px",o?((h=x)<0&&(h=0),E.top=h+"px"):x>(w-c)/2?E.bottom=w-x+5+"px":((h=x+c)<0&&(h=0),E.top=h+5+"px"),E;throw new Error("type '"+r+"' is invalid")}function A4(t,e){Fn(function(){var r=a3(t);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,v=c-i,h=e.attr("style");if(h.indexOf("top")>=0&&(n=p+d-u)>0){var m=e.css("top"),y=parseInt(m.toString())-n;y<0&&(y=0),e.css("top",y+"px")}if(h.indexOf("bottom")>=0&&l<0){var g=e.css("bottom"),w=parseInt(g.toString())-Math.abs(l);e.css("bottom",w+"px")}if(h.indexOf("left")>=0&&(n=v+f-a)>0){var E=e.css("left"),x=parseInt(E.toString())-n;x<0&&(x=0),e.css("left",x+"px")}if(h.indexOf("right")>=0&&c<0){var D=e.css("right"),S=parseInt(D.toString())-Math.abs(c);e.css("right",S+"px")}}})}var YQ=Vm("slice"),XQ=De("species"),pb=Z.Array,ZQ=Math.max;xe({target:"Array",proto:!0,forced:!YQ},{slice:function(t,e){var r,n,o,i=Ta(this),a=cs(i),u=Ll(t,a),s=Ll(e===void 0?a:e,a);if(Yv(i)&&(r=i.constructor,(Rm(r)&&(r===pb||Yv(r.prototype))||de(r)&&(r=r[XQ])===null)&&(r=void 0),r===pb||r===void 0))return fj(i,u,s);for(n=new(r===void 0?pb:r)(ZQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Rd(n,o,i[u]);return n.length=o,n}});var JQ=Lp.f,x9=ht("".startsWith),QQ=ht("".slice),ttt=Math.min,Fj=I6("startsWith"),ett=!Fj&&!!function(){var t=JQ(String.prototype,"startsWith");return t&&!t.writable}();xe({target:"String",proto:!0,forced:!ett&&!Fj},{startsWith:function(t){var e=ae(_n(this));j6(t);var r=oc(ttt(arguments.length>1?arguments[1]:void 0,e.length)),n=ae(t);return x9?x9(e,n,r):QQ(e,r,r+n.length)===n}});var _s=Object.assign,S9=Object.defineProperty,rtt=ht([].concat),D9=!_s||Jt(function(){if(ir&&_s({b:1},_s(S9({},"a",{enumerable:!0,get:function(){S9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),_s({},t)[r]!=7||dl(_s({},e)).join("")!=n})?function(t,e){for(var r=Fa(t),n=arguments.length,o=1,i=zN.f,a=RN.f;n>o;)for(var u,s=Lm(arguments[o++]),l=i?rtt(dl(s),i(s)):dl(s),c=l.length,f=0;c>f;)u=l[f++],ir&&!Kt(a,s,u)||(r[u]=s[u]);return r}:_s;xe({target:"Object",stat:!0,forced:Object.assign!==D9},{assign:D9});var ntt=["props","attrs","style","dataset","on","hook"];function Tj(t){var e=t.data,r=e===void 0?{}:e,n=t.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,u,s=r[i];if(i!=="key"){if(!ntt.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=OK(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[i]=s,u)),delete r[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&Tj(i)})}var O4=[],Pj={};function ott(t,e,r){return wt(r.isInline(t)?"span":"div",null,e)}function A9(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
|
|
59
|
+
`:t)}function hb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),wt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?wt("br",null):null)}function k4(t,e,r,n){return $d.set(t,e),zl.set(t,r),ft.isElement(t)?function(o,i){var a,u=O.findKey(i,o),s=i.isInline(o),l=C.isVoid(i,o),c=Dj(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,h=function(x){return Pj[x]||ott}(d);a=l?null:v.map(function(x,D){return k4(x,D,o,i)});var m=h(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",g=Ht(Q.texts(o),1),w=Ht(g[0],1)[0],E=wt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},k4(w,0,o,i));m=wt(y,{style:{position:"relative"}},m,E),$d.set(w,0),zl.set(w,o)}return m.data==null&&(m.data={}),Object.assign(m.data,f),l||s||(m=function(x,D){var S=D;return O4.forEach(function(k){S=k(x,D)}),S}(o,m)),Fn(function(){var x=m4(c);x!=null&&(v4.set(u,x),r0.set(o,x),e0.set(x,o))}),m}(t,n):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=O.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=O.findPath(a,o),c=s([o,l]),f=it.decorations(o,c),d=f.map(function(h,m){var y=function(g,w,E,x,D){w===void 0&&(w=!1);var S=g.text,k=O.findPath(D,E),F=I.parent(k);if(C.isEditor(x))throw new Error("Text node "+JSON.stringify(E)+" parent is Editor");return D.isVoid(x)?hb(Q.string(x).length):S!==""||x.children[x.children.length-1]!==E||D.isInline(x)||C.string(D,F)!==""?S===""?hb():w&&S.slice(-1)===`
|
|
60
|
+
`?A9(S,!0):A9(S):hb(0,!0)}(h,m===f.length-1,o,i,a);return y=function(g,w){var E=w;return O4.forEach(function(x){E=x(g,E)}),E}(h,y),wt("span",{"data-slate-leaf":!0},y)}),p=function(h){return"w-e-text-"+h}(u.id),v=wt("span",{"data-slate-node":"text",id:p,key:u.id},d);return Fn(function(){var h=m4(p);h!=null&&(v4.set(u,h),r0.set(o,h),e0.set(h,o))}),v}(t,r,n)}function itt(t,e){var r,n=t.$scroll,o=function(h){return"w-e-textarea-"+h}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(h,m){return m===void 0&&(m=!1),Il("div#"+h,{props:{contentEditable:!m}})}(o,a),l=e.children||[];s.children=l.map(function(h,m){var y=k4(h,m,e,e);return Tj(y),y});var c=R7.get(t);if(c==null&&(c=!0),c){var f=function(h,m){return _(`<div
|
|
61
|
+
id="`+h+`"
|
|
62
|
+
data-slate-editor
|
|
63
|
+
data-slate-node="value"
|
|
64
|
+
suppressContentEditableWarning
|
|
65
|
+
role="textarea"
|
|
66
|
+
spellCheck="true"
|
|
67
|
+
autoCorrect="true"
|
|
68
|
+
autoCapitalize="true"
|
|
69
|
+
></div>`)}(o);n.append(f),t.$textArea=f,r=f[0],(p=Yq([Zq,eK,nK,Jq,tK,Xq]))(r,s),R7.set(t,!1),M7.set(t,p)}else{var d=V7.get(t),p=M7.get(t);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=m4(o))!=null){if((c?u:e.isFocused())&&r.focus({preventScroll:!0}),c){var v=Z6(r);v&&oj.set(e,v)}X6.set(e,r),r0.set(e,r),e0.set(r,e),V7.set(t,s)}}function O9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function k9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function gb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return k9(r.overflowY,e)||k9(r.overflowX,e)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(t)}return!1}function Wh(t,e,r,n,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=r||a>=e&&u>=r?i-t-n:a>e&&u<r||i<t&&u>r?a-e+o:0}function B9(t,e){var r=window,n=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(xt){return xt!==a};if(!O9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;O9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&gb(f)&&!gb(document.documentElement)||f!=null&&gb(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),y=m.height,g=m.width,w=m.top,E=m.right,x=m.bottom,D=m.left,S=o==="start"||o==="nearest"?w:o==="end"?x:w+y/2,k=i==="center"?D+g/2:i==="end"?E:D,F=[],$=0;$<c.length;$++){var W=c[$],j=W.getBoundingClientRect(),L=j.height,V=j.width,q=j.top,Y=j.right,rt=j.bottom,lt=j.left;if(n==="if-needed"&&w>=0&&D>=0&&x<=p&&E<=d&&w>=q&&x<=rt&&D>=lt&&E<=Y)return F;var st=getComputedStyle(W),ut=parseInt(st.borderLeftWidth,10),B=parseInt(st.borderTopWidth,10),A=parseInt(st.borderRightWidth,10),N=parseInt(st.borderBottomWidth,10),U=0,X=0,G="offsetWidth"in W?W.offsetWidth-W.clientWidth-ut-A:0,at="offsetHeight"in W?W.offsetHeight-W.clientHeight-B-N:0;if(l===W)U=o==="start"?S:o==="end"?S-p:o==="nearest"?Wh(h,h+p,p,B,N,h+S,h+S+y,y):S-p/2,X=i==="start"?k:i==="center"?k-d/2:i==="end"?k-d:Wh(v,v+d,d,ut,A,v+k,v+k+g,g),U=Math.max(0,U+h),X=Math.max(0,X+v);else{U=o==="start"?S-q-B:o==="end"?S-rt+N+at:o==="nearest"?Wh(q,rt,L,B,N+at,S,S+y,y):S-(q+L/2)+at/2,X=i==="start"?k-lt-ut:i==="center"?k-(lt+V/2)+G/2:i==="end"?k-Y+A+G:Wh(lt,Y,V,ut,A+G,k,k+g,g);var vt=W.scrollLeft,mt=W.scrollTop;S+=mt-(U=Math.max(0,Math.min(mt+U,W.scrollHeight-L+at))),k+=vt-(X=Math.max(0,Math.min(vt+X,W.scrollWidth-V+G)))}F.push({el:W,top:U,left:X})}return F}function _9(t){return t===Object(t)&&Object.keys(t).length!==0}function yn(t,e){return Yu(e)&&O.hasDOMNode(t,e,{editable:!0})}function F9(t,e){if(t.getConfig().readOnly)return!1;var r=el(t,e)&&O.toSlateNode(t,e);return C.isVoid(t,r)}function el(t,e){return Yu(e)&&O.hasDOMNode(t,e)}function Nj(t,e,r){r===void 0&&(r=!1);var n=e.selection,o=e.getConfig(),i=O.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||r)&&e.isFocused()){var a=i.type!=="None";if(n||a){var u=X6.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=O.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&z.equals(l,n)){var c=!0;if(z.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||O.hasRange(e,n)){t.isUpdatingSelection=!0;var h=n&&O.toDOMRange(e,n);if(h){z.isBackward(n)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var m=h.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=h.getBoundingClientRect.bind(h);var y=document.body;(function(g,w){var E=!g.ownerDocument.documentElement.contains(g);if(_9(w)&&typeof w.behavior=="function")return w.behavior(E?[]:B9(g,w));if(!E){var x=function(D){return D===!1?{block:"end",inline:"nearest"}:_9(D)?D:{block:"start",inline:"nearest"}}(w);(function(D,S){S===void 0&&(S="auto");var k="scrollBehavior"in document.body.style;D.forEach(function(F){var $=F.el,W=F.top,j=F.left;$.scroll&&k?$.scroll({top:W,left:j,behavior:S}):($.scrollTop=W,$.scrollLeft=j)})})(B9(g,x),x.behavior)}})(m,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){h&&ad&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=O.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var vb=new WeakMap,T9=new WeakMap,att={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"},utt={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"},stt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ye=function(t){var e=att[t],r=utt[t],n=stt[t],o=e&&g1(e),i=r&&g1(r),a=n&&g1(n);return function(u){return!(!o||!o(u))||!!(y4&&i&&i(u))||!(y4||!a||!a(u))}},Ee={isBold:ye("bold"),isCompose:ye("compose"),isMoveBackward:ye("moveBackward"),isMoveForward:ye("moveForward"),isDeleteBackward:ye("deleteBackward"),isDeleteForward:ye("deleteForward"),isDeleteLineBackward:ye("deleteLineBackward"),isDeleteLineForward:ye("deleteLineForward"),isDeleteWordBackward:ye("deleteWordBackward"),isDeleteWordForward:ye("deleteWordForward"),isExtendBackward:ye("extendBackward"),isExtendForward:ye("extendForward"),isExtendLineBackward:ye("extendLineBackward"),isExtendLineForward:ye("extendLineForward"),isItalic:ye("italic"),isMoveLineBackward:ye("moveLineBackward"),isMoveLineForward:ye("moveLineForward"),isMoveWordBackward:ye("moveWordBackward"),isMoveWordForward:ye("moveWordForward"),isRedo:ye("redo"),isSplitBlock:ye("splitBlock"),isTransposeCharacter:ye("transposeCharacter"),isUndo:ye("undo"),isTab:ye("tab"),isSelectAll:ye("selectAll")};function He(t){t.preventDefault()}var ltt={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(Kc&&!o&&yn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ht(n.getTargetRanges(),1)[0];if(s){var l=O.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&z.equals(i,l)||R.select(r,l)}}if(i&&z.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";C.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":C.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":C.deleteForward(r);break;case"deleteContentBackward":C.deleteBackward(r);break;case"deleteEntireSoftLine":C.deleteBackward(r,{unit:"line"}),C.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":C.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":C.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":C.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":C.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":C.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":C.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":C.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Z1.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&C.insertText(r,u)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,i=e.latestElement;if(!r.getConfig().readOnly&&!o&&yn(r,n.target)){var a=O.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===O.toDOMNode(r,r)||zn(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Yu(u)&&O.hasDOMNode(r,u)){var s=O.toSlateNode(r,u);if(ft.isElement(s)&&!r.isVoid(s))return}if(qc){var l=a.getSelection();l==null||l.removeAllRanges()}Du.delete(r)}}}},focus:function(t,e,r){var n=O.toDOMNode(r,r),o=O.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,ad&&t.target!==n?n.focus():Du.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&el(r,t.target)&&Yu(t.target)){var n=O.toSlateNode(r,t.target),o=O.findPath(r,n);if(C.hasPath(r,o)&&Q.get(r,o)===n){var i=C.start(r,o),a=C.end(r,o),u=C.void(r,{at:i}),s=C.void(r,{at:a});if(u&&s&&I.equals(u[1],s[1])){var l=C.range(r,i);R.select(r,l)}}}},compositionstart:function(t,e,r){if(yn(r,t.target)){var n=r.selection;if(n&&z.isExpanded(n)&&(C.deleteFragment(r),Promise.resolve().then(function(){Nj(e,r,!0)})),n&&z.isCollapsed(n)){var o=O.toDOMRange(r,n).startContainer,i=o.textContent||"";vb.set(r,i),T9.set(r,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,r)}},compositionend:function(t,e,r){var n=t;if(yn(r,n.target)){e.isComposing=!1;var o=r.selection;if(o!=null){(b4||ad)&&O.cleanExposedTexNodeInSelectionBlock(r);for(var i=z.isBackward(o)?o.focus:o.anchor,a=Ht(C.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ht(C.node(r,i.path.slice(0,u+1)),1)[0];if(ft.isElement(s)&&((qc||ad)&&s.type==="link"||s.type==="code")){O.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=O.getLeftLengthOfMaxLength(r);c<l.length?(O.toDOMRange(r,o).startContainer.textContent=vb.get(r)||"",c>0&&C.insertText(r,l.slice(0,c)),e.changeViewState()):C.insertText(r,l)}else C.insertText(r,l);qc||setTimeout(function(){var f=r.selection;if(f!=null){var d=T9.get(r);d!=null&&O.toDOMRange(r,f).startContainer!==d&&(d.textContent=vb.get(r)||"")}})}}}},compositionupdate:function(t,e,r){yn(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&yn(r,n.target)){if(function(a,u){var s=Um.get(a),l=s&&s.getMenus(),c=t0.get(a),f=c&&c.getMenus(),d=En(En({},l),f);for(var p in d){var v=d[p],h=v.hotkey;if(h&&_K(h,u)&&!v.isDisabled(a)){var m=v.getValue(a);v.exec(a,m)}}}(r,n),Ee.isTab(n))return He(n),void r.handleTab();if(Ee.isRedo(n))return He(n),void(typeof r.redo=="function"&&r.redo());if(Ee.isUndo(n))return He(n),void(typeof r.undo=="function"&&r.undo());if(Ee.isMoveLineBackward(n))return He(n),void R.move(r,{unit:"line",reverse:!0});if(Ee.isMoveLineForward(n))return He(n),void R.move(r,{unit:"line"});if(Ee.isExtendLineBackward(n))return He(n),void R.move(r,{unit:"line",edge:"focus",reverse:!0});if(Ee.isExtendLineForward(n))return He(n),void R.move(r,{unit:"line",edge:"focus"});if(Ee.isMoveBackward(n))return He(n),void(o&&z.isCollapsed(o)?R.move(r,{reverse:!0}):R.collapse(r,{edge:"start"}));if(Ee.isMoveForward(n))return He(n),void(o&&z.isCollapsed(o)?R.move(r):R.collapse(r,{edge:"end"}));if(Ee.isMoveWordBackward(n))return He(n),o&&z.isExpanded(o)&&R.collapse(r,{edge:"focus"}),void R.move(r,{unit:"word",reverse:!0});if(Ee.isMoveWordForward(n))return He(n),o&&z.isExpanded(o)&&R.collapse(r,{edge:"focus"}),void R.move(r,{unit:"word"});if(Ee.isSelectAll(n))return He(n),void r.selectAll();if(Kc){if((b4||qc)&&o&&(Ee.isDeleteBackward(n)||Ee.isDeleteForward(n))&&z.isCollapsed(o)){var i=Q.parent(r,o.anchor.path);if(ft.isElement(i)&&C.isVoid(r,i)&&C.isInline(r,i))return n.preventDefault(),void R.delete(r,{unit:"block"})}}else{if(Ee.isBold(n)||Ee.isItalic(n)||Ee.isTransposeCharacter(n))return void He(n);if(Ee.isSplitBlock(n))return He(n),void C.insertBreak(r);if(Ee.isDeleteBackward(n))return He(n),void(o&&z.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r));if(Ee.isDeleteForward(n))return He(n),void(o&&z.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r));if(Ee.isDeleteLineBackward(n))return He(n),void(o&&z.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r,{unit:"line"}));if(Ee.isDeleteLineForward(n))return He(n),void(o&&z.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r,{unit:"line"}));if(Ee.isDeleteWordBackward(n))return He(n),void(o&&z.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r,{unit:"word"}));if(Ee.isDeleteWordForward(n))return He(n),void(o&&z.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!Kc&&!r.getConfig().readOnly&&yn(r,t.target)){t.preventDefault();var n=t.key;C.insertText(r,n)}},copy:function(t,e,r){var n=t;if(yn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&yn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(z.isExpanded(o))C.deleteFragment(r);else{var a=Q.parent(r,o.anchor.path);C.isVoid(r,a)&&R.delete(r)}}},paste:function(t,e,r){Z1.set(r,!0);var n=t;if(!r.getConfig().readOnly&&yn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void Z1.set(r,!1);if(!Kc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(t,e,r){if(el(r,t.target)){var n=O.toSlateNode(r,t.target);C.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(el(r,n.target)&&!r.getConfig().readOnly){var o=O.toSlateNode(r,n.target),i=O.findPath(r,o);if(C.isVoid(r,o)||C.void(r,{at:i,voids:!0})){var a=C.range(r,i);R.select(r,a)}var u=n.dataTransfer;u!=null&&(e.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&el(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&el(r,n.target)&&o!=null&&!(Kc&&qc&&o.files.length>0)){n.preventDefault();var i=r.selection,a=O.findEventRange(r,n);R.select(r,a),e.isDraggingInternally&&(i&&R.delete(r,{at:i}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},ctt=1,ftt=function(){function t(e){var r=this;this.id=ctt++,this.$textArea=null,this.$progressBar=_('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=_('<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=Wu(function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=O.findDocumentOrShadowRoot(s),p=d.activeElement,v=O.toDOMNode(s,s),h=d.getSelection();if(p===v?(u.latestElement=p,Du.set(s,!0)):Du.delete(s),!h)return R.deselect(s);var m=h.anchorNode,y=h.focusNode,g=yn(s,m)||F9(s,m),w=yn(s,y)||F9(s,y);if(g&&w){var E=O.toSlateRange(s,h,{exactMatch:!1,suppressThrow:!1});R.select(s,E)}else R.deselect(s)}})(r,a)},100);var n=_(e);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var o=_('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=_('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Fn(function(){var a=r.editorInstance,u=O.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=p4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(y6(ltt,function(i,a){r.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Wu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){e.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):e.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),e.latestEditorSelection=r.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,r=e.getConfig().maxLength;if(r){var n=r-O.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},t.prototype.changeProgress=function(e){var r=this.$progressBar;r.css("width",e+"%"),e>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},t.prototype.changeViewState=function(){var e=this,r=this.editorInstance;itt(this,r),function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=_('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),Fn(function(){Nj(e,r)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function l3(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&l3(e)}function c3(){return _('<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 jj(){return _('<div class="w-e-bar-divider"></div>')}function Ij(t,e,r,n,o){if(o===void 0&&(o=!1),e){if(n){var i=y4?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=n?r+`
|
|
70
|
+
`+n:r;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}G6("match",function(t,e,r){return[function(n){var o=_n(this),i=n==null?void 0:qu(n,t);return i?Kt(i,n,o):new RegExp(n)[t](ae(o))},function(n){var o=Re(this),i=ae(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Vd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Vd(o,i))!==null;){var f=ae(s[0]);l[c]=f,f===""&&(o.lastIndex=q6(i,oc(o.lastIndex),u)),c++}return c===0?null:l}]});var f3=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=_('<div class="w-e-bar-item"></div>'),this.$button=_('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=_(f);l3(p),d.append(p)}else d.text(u);Ij(d,f,u,l,n),n&&f&&d.append(_('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),Fn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),en(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=en(this),r=this.menu,n=r.getValue(e);r.exec(e,n)},t.prototype.setActive=function(){var e=en(this),r=this.$button,n="active";this.menu.isActive(e)?r.addClass(n):r.removeClass(n)},t.prototype.setDisabled=function(){var e=en(this),r=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),dtt=function(t){function e(r,n,o){return o===void 0&&(o=!1),t.call(this,r,n,o)||this}return ac(e,t),e.prototype.onButtonClick=function(){},e}(f3),d3=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var r=g4.get(e);r==null&&(r=new Set,g4.set(e,r)),r.add(this),Hg.set(this,e)},t.prototype.renderContent=function(e){var r=this.$elem;r.empty(),r.append(e);var n=this.genSelfElem();n&&r.append(n)},t.prototype.appendTo=function(e){var r=this.$elem;e.append(r)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Hg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Hg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),ptt=function(t){function e(r){var n=t.call(this,r)||this;return n.type="dropPanel",n.$elem=_('<div class="w-e-drop-panel"></div>'),n}return ac(e,t),e.prototype.genSelfElem=function(){return null},e}(d3),htt=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=c3();i.$button.append(a)}return i}return ac(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=en(this);if(this.dropPanel==null){var o=new ptt(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(f3),gtt=function(t){function e(r,n){n===void 0&&(n=0);var o=t.call(this,r)||this;o.type="modal",o.$elem=_('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return ac(e,t),e.prototype.genSelfElem=function(){var r=this,n=_('<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=Hg.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},e.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},e}(d3);function nn(t,e,r){var n=_('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=_('<input type="text" id="'+e+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function uc(t,e){var r=_('<div class="button-container"></div>'),n=_('<button type="button" id="'+t+'">'+e+"</button>");return r.append(n),[r[0],n[0]]}var vtt=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;return i.$body=_("body"),i.modal=null,i.menu=n,i}return ac(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var r=en(this),n=this.menu.getModalPositionNode(r);return ft.isElement(n)?s3(r,n,"modal"):u3(r)},e.prototype.handleModal=function(){var r=en(this),n=this.menu;if(this.modal==null){var o=new gtt(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=en(this),i=this.menu;if(i.getModalContentElem!=null){var a=O.getTextarea(o),u=O.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||A4(o,r.$elem),setTimeout(function(){o.blur()})}},e}(f3),mtt=function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="selectList",o.$elem=_('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return ac(e,t),e.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=_("<ul></ul>");r.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=_('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=_('<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>');c.append(f),c.addClass("selected")}c.append(_('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),n.append(o)},e.prototype.genSelfElem=function(){return null},e}(d3),ytt=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=_('<div class="w-e-bar-item"></div>'),this.$button=_('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),Ij(d,l,a,f,n),this.$elem.append(d),this.menu=r,Fn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),en(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,r=en(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new mtt(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=_(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var r=en(this),n=this.menu;n.exec&&n.exec(r,e)},t.prototype.setSelectedValue=function(){var e=en(this),r=this.menu,n=r.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(r.getOptions(e),n.toString()),i=this.$button,a=c3();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=en(this),r=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),P9=function(){function t(e){this.$elem=_('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=_('<div class="w-e-bar-item-menus-container"></div>'),this.$button=_('<button type="button"></button>');var r=e.key,n=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(n){var u=_(n);l3(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=c3();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var r=e.$elem;this.$container.append(r)},t.prototype.observe=function(e){var r=this.$container;e.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){_(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),e.observe(o)}});return o},t}(),N9=new WeakMap;function en(t){var e=Y6.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function Lj(t,e,r){r===void 0&&(r=!1);var n=N9.get(e);if(n)return n;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;n=i?new htt(t,e,r):a?new vtt(t,e,r):new dtt(t,e,r)}if(o==="select"&&(n=new ytt(t,e,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return N9.set(e,n),n}function btt(t,e){var r=t.selection;return r!=null&&!z.isCollapsed(r)&&!O.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var wtt=function(){function t(){var e=this;this.$elem=_('<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=pN(function(){var r=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ft.isElement(i)&&r&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Fn(function(){var r=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),O.getTextarea(r).$textAreaContainer.append(n),r.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(r=!0),r?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Fn(function(){e.hoverbarItems.forEach(function(r){r.changeMenuState()})})},t.prototype.registerItems=function(e){var r=this,n=this.$elem;e.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=jj();n.append(i)}})},t.prototype.registerSingleItem=function(e){var r=this.getEditorInstance(),n=this.menus,o=n[e];if(o==null){var i=Hd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),n[e]=o}var a=Lj(e,o);this.hoverbarItems.push(a),Y6.set(a,r),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ft.isElement(e)){var o=s3(r,e,"bar");return n.css(o),void A4(r,n)}if(it.isText(e))return o=u3(r),n.css(o),void A4(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(h,m){return O.checkNodeType(m,u)},p=Ht(C.nodes(e,{match:function(h){return d(e,h)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=h4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,r=e===void 0?{}:e,n=r.text;return n&&n.match==null&&(n.match=btt),r},t.prototype.isSamePath=function(e,r){if(e==null||r==null)return!1;var n=O.findPath(null,e),o=O.findPath(null,r);return I.equals(n,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function Rj(t,e,r,n){if($d.set(t,e),zl.set(t,r),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return Rj(u,s,t,n)}),C.isVoid(n,t)){var i=Ht(Q.texts(t),1),a=Ht(i[0],1)[0];$d.set(a,0),zl.set(a,t)}}}function Ett(t){var e=t.selector,r=e===void 0?"":e,n=t.config,o=n===void 0?{}:n,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var g=y,{apply:w}=g;return g.history={undos:[],redos:[]},g.redo=()=>{var{history:E}=g,{redos:x}=E;if(x.length>0){var D=x[x.length-1];il.withoutSaving(g,()=>{C.withoutNormalizing(g,()=>{for(var S of D)g.apply(S)})}),E.redos.pop(),E.undos.push(D)}},g.undo=()=>{var{history:E}=g,{undos:x}=E;if(x.length>0){var D=x[x.length-1];il.withoutSaving(g,()=>{C.withoutNormalizing(g,()=>{var S=D.map(qi.inverse).reverse();for(var k of S)g.apply(k)})}),E.redos.push(D),E.undos.pop()}},g.apply=E=>{var{operations:x,history:D}=g,{undos:S}=D,k=S[S.length-1],F=k&&k[k.length-1],$=((V,q)=>!(!q||V.type!=="set_selection"||q.type!=="set_selection"))(E,F),W=il.isSaving(g),j=il.isMerging(g);if(W==null&&(W=((V,q)=>V.type!=="set_selection"||V.properties!=null&&V.newProperties!=null)(E)),W){if(j==null&&(j=k!=null&&(x.length!==0||((V,q)=>V.type==="set_selection"||!(!q||V.type!=="insert_text"||q.type!=="insert_text"||V.offset!==q.offset+q.text.length||!I.equals(V.path,q.path))||!(!q||V.type!=="remove_text"||q.type!=="remove_text"||V.offset+V.text.length!==q.offset||!I.equals(V.path,q.path)))(E,F)||$)),k&&j)$&&k.pop(),k.push(E);else{var L=[E];S.push(L)}for(;S.length>100;)S.shift();(V=>V.type!=="set_selection")(E)&&(D.redos=[])}w(E)},g})(function(y){var g=y,w=g.insertText,E=g.insertNode,x=g.insertFragment,D=g.dangerouslyInsertHtml;return g.insertText=function(S){if(g.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(g);k<=0||(k<S.length?w(S.slice(0,k)):w(S))}else w(S)},g.insertNode=function(S){if(g.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(g);k<=0||k<Q.string(S).length||E(S)}else E(S)},g.insertFragment=function(S){if(g.getConfig().maxLength)if(S.length!==1)S.forEach(function(F){g.insertNode(F)});else{var k=S[0];if(O.getLeftLengthOfMaxLength(g)<Q.string(k).length)return;x(S)}else x(S)},g.dangerouslyInsertHtml=function(S,k){if(S===void 0&&(S=""),k===void 0&&(k=!1),S)if(g.getConfig().maxLength){var F=O.getLeftLengthOfMaxLength(g);if(!(F<=0)){var $=document.createElement("div");$.innerHTML=S;var W=Array.from($.childNodes).reduce(function(j,L){var V=L.nodeType,q=L.nodeName;return L?V===mo.TEXT_NODE?j+(L.textContent||""):V===mo.ELEMENT_NODE?m9.has(q.toLowerCase())?j:j+(L.textContent||""):j:j},"");F<W.length||D(S,k)}}else D(S,k)},g}(function(y){var g=y;return g.on=function(w,E){var x=Uh(g);if(x.on(w,E),w==="destroyed"&&C9(g,E),w!=="destroyed"){var D=function(){return x.off(w,E)};x.on("destroyed",D),C9(g,D)}},g.once=function(w,E){Uh(g).once(w,E)},g.off=function(w,E){Uh(g).off(w,E)},g.emit=function(w){for(var E=[],x=1;x<arguments.length;x++)E[x-1]=arguments[x];var D=Uh(g);D.emit.apply(D,c4([w],Ht(E))),w==="destroyed"&&(qQ(g).forEach(function(S){return D.off("destroyed",S)}),KQ(g))},g}(function(y){var g=y;return g.select=function(w){R.select(g,w)},g.deselect=function(){var w=g.selection,E=O.findDocumentOrShadowRoot(g).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),w&&R.deselect(y)},g.move=function(w,E){E===void 0&&(E=!1),w&&(w<0||R.move(y,{distance:w,unit:"character",reverse:E}))},g.moveReverse=function(w){g.move(w,!0)},g.restoreSelection=function(){var w=X1.get(g);w!=null&&(g.focus(),R.select(g,w))},g.getSelectionPosition=function(){return u3(g)},g.getNodePosition=function(w){return s3(g,w)},g.isSelectedAll=function(){var w=g.selection;if(w==null)return!1;var E=Ht(z.edges(w),2),x=E[0],D=E[1],S=Ht(C.edges(g,[]),2),k=S[0],F=S[1];return!(!_t.equals(x,k)||!_t.equals(D,F))},g.selectAll=function(){var w=C.start(g,[]),E=C.end(g,[]);R.select(g,{anchor:w,focus:E})},g}(function(y){var g=y,w=g.onChange,E=g.insertText,x=g.apply,D=g.deleteBackward;return g.insertText=function(S){g.getConfig().readOnly||E(S)},g.apply=function(S){var k,F,$,W,j,L,V,q,Y=[];switch(S.type){case"insert_text":case"remove_text":case"set_node":try{for(var rt=Cn(C.levels(g,{at:S.path})),lt=rt.next();!lt.done;lt=rt.next()){var st=Ht(lt.value,2),ut=st[0],B=st[1],A=O.findKey(g,ut);Y.push([B,A])}}catch(Lt){k={error:Lt}}finally{try{lt&&!lt.done&&(F=rt.return)&&F.call(rt)}finally{if(k)throw k.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var N=Cn(C.levels(g,{at:I.parent(S.path)})),U=N.next();!U.done;U=N.next()){var X=Ht(U.value,2);ut=X[0],B=X[1],A=O.findKey(g,ut),Y.push([B,A])}}catch(Lt){$={error:Lt}}finally{try{U&&!U.done&&(W=N.return)&&W.call(N)}finally{if($)throw $.error}}break;case"move_node":try{for(var G=Cn(C.levels(g,{at:I.common(I.parent(S.path),I.parent(S.newPath))})),at=G.next();!at.done;at=G.next()){var vt=Ht(at.value,2);ut=vt[0],B=vt[1],A=O.findKey(g,ut),Y.push([B,A])}}catch(Lt){j={error:Lt}}finally{try{at&&!at.done&&(L=G.return)&&L.call(G)}finally{if(j)throw j.error}}}x(S);try{for(var mt=Cn(Y),xt=mt.next();!xt.done;xt=mt.next()){var K=Ht(xt.value,2);B=K[0],A=K[1],ut=Ht(C.node(g,B),1)[0],Ug.set(ut,A)}}catch(Lt){V={error:Lt}}finally{try{xt&&!xt.done&&(q=mt.return)&&q.call(mt)}finally{if(V)throw V.error}}},g.deleteBackward=function(S){if(S!=="line")return D(S);if(y.selection&&z.isCollapsed(y.selection)){var k=C.above(y,{match:function(j){return C.isBlock(y,j)},at:y.selection});if(k){var F=Ht(k,2)[1],$=C.range(y,F,y.selection.anchor),W=function(j,L){var V=C.range(j,z.end(L)),q=Array.from(C.positions(j,{at:L})),Y=0,rt=q.length,lt=Math.floor(rt/2);if(s9(j,C.range(j,q[Y]),V))return C.range(j,q[Y],V);if(q.length<2)return C.range(j,q[q.length-1],V);for(;lt!==q.length&<!==Y;)s9(j,C.range(j,q[lt]),V)?rt=lt:Y=lt,lt=Math.floor((Y+rt)/2);return C.range(j,q[rt],V)}(g,$);z.isCollapsed(W)||R.delete(y,{at:W})}}},g.onChange=function(){var S=g.selection;S!=null&&X1.set(g,S),g.emit("change"),w()},g.handleTab=function(){g.insertText(" ")},g.getHtml=function(){var S=g.children;return(S===void 0?[]:S).map(function(k){return Sj(k,g)}).join("")},g.getText=function(){var S=g.children;return(S===void 0?[]:S).map(function(k){return Q.string(k)}).join(`
|
|
71
|
+
`)},g.getSelectionText=function(){var S=g.selection;return S==null?"":C.string(y,S)},g.getElemsByType=function(S,k){var F,$;k===void 0&&(k=!1);var W=[],j=C.nodes(g,{at:[],universal:!0});try{for(var L=Cn(j),V=L.next();!V.done;V=L.next()){var q=Ht(V.value,1)[0];if(ft.isElement(q)&&(k?q.type.indexOf(S)>=0:q.type===S)){var Y=Dj(O.findKey(g,q).id);W.push(En(En({},q),{id:Y}))}}}catch(rt){F={error:rt}}finally{try{V&&!V.done&&($=L.return)&&$.call(L)}finally{if(F)throw F.error}}return W},g.getElemsByTypePrefix=function(S){return g.getElemsByType(S,!0)},g.isEmpty=function(){var S=g.children,k=S===void 0?[]:S;if(k.length>1)return!1;var F=k[0];if(F==null)return!0;if(ft.isElement(F)&&F.type==="paragraph"){var $=F.children,W=$===void 0?[]:$;if(W.length>1)return!1;var j=W[0];if(j==null||it.isText(j)&&j.text==="")return!0}return!1},g.clear=function(){R.delete(g,{at:{anchor:C.start(g,[]),focus:C.end(g,[])}}),g.children.length===0&&R.insertNodes(g,[{type:"paragraph",children:[{text:""}]}])},g.getParentNode=function(S){return O.getParentNode(g,S)},g.dangerouslyInsertHtml=function(S,k){if(S===void 0&&(S=""),k===void 0&&(k=!1),S){var F=document.createElement("div");F.innerHTML=S;var $=Array.from(F.childNodes);if($=$.filter(function(V){var q=V.nodeType,Y=V.nodeName;return q===mo.TEXT_NODE||q===mo.ELEMENT_NODE&&!m9.has(Y.toLowerCase())}),$.length!==0){var W=g.selection;if(W!=null){var j=null;O.isSelectedEmptyParagraph(g)&&!k&&(j=[W.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var L=0;$.forEach(function(V){var q=V.nodeType,Y=V.nodeName,rt=V.textContent,lt=rt===void 0?"":rt;if(q!==mo.TEXT_NODE)if(Y!=="BR"){var st=V,ut=!1;if(Aj.includes(Y.toLowerCase()))ut=!0;else for(var B in i0)if(st.matches(B)){ut=!0;break}if(ut){var A=o3(_(st),g);return Array.isArray(A)?(A.forEach(function(U){return y9(g,U)}),L++):(y9(g,A),L++),void(O.isSelectedVoidNode(g)&&g.move(1))}var N=window.getComputedStyle(st).display;O.isSelectedEmptyParagraph(g)||N.indexOf("inline")<0&&g.insertBreak(),g.dangerouslyInsertHtml(st.innerHTML,!0)}else g.insertText(`
|
|
72
|
+
`);else{if(!lt||!lt.trim())return;g.insertNode({text:lt})}}),L&&j&&O.isEmptyPath(g,j)&&R.removeNodes(g,{at:j}),F.remove()}}}},g.setHtml=function(S){S===void 0&&(S="");var k=g.isDisabled(),F=g.isFocused(),$=JSON.stringify(g.selection);g.enable(),g.focus(),g.clear();var W=h9(g,S);if(R.insertFragment(g,W),F||(g.deselect(),g.blur()),k&&(g.deselect(),g.disable()),g.isFocused())try{g.select(JSON.parse($))}catch{g.select(C.start(g,[]))}},g}(function(y){var g=y;return g.getAllMenuKeys=function(){var w=[];for(var E in Hd)w.push(E);return w},g.getConfig=function(){var w=L7.get(g);if(w==null)throw new Error("Can not get editor config");return w},g.getMenuConfig=function(w){var E=g.getConfig().MENU_CONF;return(E===void 0?{}:E)[w]||{}},g.alert=function(w,E){E===void 0&&(E="info");var x=g.getConfig().customAlert;x&&x(w,E)},g}(function(y){var g=NQ(nG());return g.id="wangEditor-"+zJ++,g.isDestroyed=!1,g.isFullScreen=!1,g.focus=function(w){if(O.toDOMNode(g,g).focus({preventScroll:!0}),Du.set(g,!0),w){var E=C.end(g,[]);R.select(g,E)}else{var x=X1.get(g);x?R.select(g,x):R.select(g,C.start(g,[]))}},g.isFocused=function(){return!!Du.get(g)},g.blur=function(){O.toDOMNode(g,g).blur(),R.deselect(g),Du.set(g,!1)},g.updateView=function(){O.getTextarea(g).changeViewState();var w=O.getToolbar(g);w&&w.changeToolbarState();var E=O.getHoverbar(g);E&&E.changeHoverbarState()},g.destroy=function(){if(!g.isDestroyed){var w=O.getTextarea(g);w.destroy(),d4.delete(g),p4.delete(w);var E=O.getToolbar(g);E&&(E.destroy(),Um.delete(g),K6.delete(E));var x=O.getHoverbar(g);x&&(x.destroy(),t0.delete(g),h4.delete(x)),g.isDestroyed=!0,g.emit("destroyed")}},g.scrollToElem=function(w){if(!g.getConfig().scroll){var E="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return E+=`
|
|
73
|
+
You has disabled editor scroll, please do this yourself`,void console.warn(E)}var x=_("#"+w);if(x.length!==0){var D=x[0];if(!O.hasDOMNode(g,D))return E="Element (found by id is '"+w+"') is not in editor DOM",E+=`
|
|
74
|
+
通过 id '`+w+"' 找到的 element 不在 editor DOM 之内",void console.error(E,D);var S=O.getTextarea(g),k=S.$textAreaContainer,F=S.$scroll,$=x.offset().top,W=k.offset().top;F[0].scrollBy({top:$-W,behavior:"smooth"})}},g.showProgressBar=function(w){w<1||O.getTextarea(g).changeProgress(w)},g.hidePanelOrModal=function(){var w=g4.get(g);w!=null&&w.forEach(function(E){return E.hide()})},g.enable=function(){g.getConfig().readOnly=!1,g.updateView()},g.disable=function(){g.getConfig().readOnly=!0,g.updateView()},g.isDisabled=function(){return g.getConfig().readOnly},g.toDOMNode=function(w){return O.toDOMNode(g,w)},g.fullScreen=function(){if(!g.isFullScreen){var w=null,E=O.getToolbar(g);E&&(w=E.$box);var x=O.getTextarea(g).$box.parent();if(w&&w.parent()[0]!==x[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
|
|
75
|
+
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);x.addClass("w-e-full-screen-container");var D=x.css("z-index");x.attr("data-z-index",D.toString()),g.isFullScreen=!0,g.emit("fullScreen")}},g.unFullScreen=function(){if(g.isFullScreen){var w=O.getTextarea(g).$box.parent();setTimeout(function(){w.removeClass("w-e-full-screen-container"),g.isFullScreen=!1,g.emit("unFullScreen")},200)}},g.getEditableContainer=function(){return O.getTextarea(g).$textAreaContainer[0]},g}()))))));if(r&&function(y,g){return _j(y,"data-w-e-textarea",g)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(y){y===void 0&&(y={});var g=hN(sj),w={},E=y.MENU_CONF,x=E===void 0?{}:E;return y6(g,function(D,S){w[S]=En(En({},D),x[S]||{})}),delete y.MENU_CONF,En({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:w,hoverbarKeys:{},customAlert:function(D,S){window.alert(S+`:
|
|
76
|
+
`+D)}},y)}(o);L7.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=h9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),O.normalizeContent(l),r){var p=new ftt(r);d4.set(l,p),p4.set(p,l),p.changeViewState(),Fn(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
|
77
|
+
Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var v=void 0;Object.keys(d).length>0&&(v=new wtt,h4.set(v,l),t0.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,g){return Rj(y,g,l,l)});var h=c.onCreated,m=c.onDestroyed;return h&&l.on("created",function(){return h(l)}),m&&l.on("destroyed",function(){return m(l)}),Fn(function(){return l.emit("created")}),l}var Ctt=Vm("splice"),xtt=Z.TypeError,Stt=Math.max,Dtt=Math.min;xe({target:"Array",proto:!0,forced:!Ctt},{splice:function(t,e){var r,n,o,i,a,u,s=Fa(this),l=cs(s),c=Ll(t,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=Dtt(Stt(Ip(e),0),l-c)),l+r-n>9007199254740991)throw xtt("Maximum allowed length exceeded");for(o=jN(s,n),i=0;i<n;i++)(a=c+i)in s&&Rd(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var Att=function(){function t(e,r){var n=this;this.$toolbar=_('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=pN(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;var o=_(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Fn(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=hN(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,h){f.splice(s.index+h,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,h){if(v==="|"){if(h===0||h+1===p||r==="|")return;var m=jj();return n.append(m),void(r=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(r=v);e.registerGroup(v),r="group"})},t.prototype.registerGroup=function(e){var r=this,n=this.$toolbar,o=function(l){return new P9(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||r.registerSingleItem(l,o)}),n.append(o.$elem)},t.prototype.registerSingleItem=function(e,r){var n=this.getEditorInstance(),o=r instanceof P9,i=this.menus,a=i[e];if(a==null){var u=Hd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
|
|
78
|
+
重复注册了菜单栏 menu '`+e+"'");var s=Lj(e,a,o);this.toolbarItems.push(s),Y6.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=K6.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),Ott=nc.EXISTS,ktt=eo.f,Mj=Function.prototype,Btt=ht(Mj.toString),Vj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_tt=ht(Vj.exec);function zj(t){var e=t.server,r=e===void 0?"":e,n=t.fieldName,o=n===void 0?"":n,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,v=p===void 0?{}:p,h=t.withCredentials,m=h!==void 0&&h,y=t.timeout,g=y===void 0?1e4:y,w=t.onBeforeUpload,E=w===void 0?function(L){return L}:w,x=t.onSuccess,D=x===void 0?function(L,V){}:x,S=t.onError,k=S===void 0?function(L,V,q){console.error(L.name+" upload error",V,q)}:S,F=t.onProgress,$=F===void 0?function(L){}:F;if(!r)throw new Error(`Cannot get upload server address
|
|
79
|
+
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
|
|
80
|
+
没有配置 fieldName`);var W=r;d&&(W=function(L,V){var q=Ht(L.split("#"),2),Y=q[0],rt=q[1],lt=[];y6(V,function(ut,B){lt.push(B+"="+ut)});var st=lt.join("&");return Y=Y.indexOf("?")>0?Y+"&"+st:Y+"?"+st,rt?Y+"#"+rt:Y}(W,c));var j=new Wf({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(eX,{endpoint:W,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:g});return j.on("upload-success",function(L,V){var q=V.body,Y=q===void 0?{}:q;try{D(L,Y)}catch(rt){console.error("wangEditor upload file - onSuccess error",rt)}j.removeFile(L.id)}),j.on("progress",function(L){L<1||$(L)}),j.on("upload-error",function(L,V,q){try{k(L,V,q)}catch(Y){console.error("wangEditor upload file - onError error",Y)}j.removeFile(L.id)}),j.on("restriction-failed",function(L,V){try{k(L,V)}catch(q){console.error("wangEditor upload file - onError error",q)}j.removeFile(L.id)}),j}function ra(t){return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ra(t)}function Ftt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){Ftt(t,o,r[o])})}return t}function pi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hi(t,e,r){return e&&j9(t.prototype,e),r&&j9(t,r),t}function Xu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wd(t,e){if(e&&(ra(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xu(t)}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$l(t)}function B4(t,e){return B4=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},B4(t,e)}function Wm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B4(t,e)}ir&&!Ott&&ktt(Mj,"name",{configurable:!0,get:function(){try{return _tt(Vj,Btt(this))[1]}catch{return""}}});var Ttt={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},ri=new(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pi(this,t),this.init(e,r)}return hi(t,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||Ttt,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new t(this.logger,We({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Ea=function(){function t(){pi(this,t),this.observers={}}return hi(t,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(e,r){this.observers[e]&&(r?this.observers[e]=this.observers[e].filter(function(n){return n!==r}):delete this.observers[e])}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(n))})}}}]),t}();function Qc(){var t,e,r=new Promise(function(n,o){t=n,e=o});return r.resolve=t,r.reject=e,r}function I9(t){return t==null?"":""+t}function Ptt(t,e,r){t.forEach(function(n){e[n]&&(r[n]=e[n])})}function p3(t,e,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:n(i.shift())}}function L9(t,e,r){var n=p3(t,e,Object);n.obj[n.k]=r}function u0(t,e){var r=p3(t,e),n=r.obj,o=r.k;if(n)return n[o]}function R9(t,e,r){var n=u0(t,r);return n!==void 0?n:u0(e,r)}function $j(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):$j(t[n],e[n],r):t[n]=e[n]);return t}function Fs(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ntt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jtt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Ntt[e]}):t}var Gm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Hj(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),o=t,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?Hj(s,l,r):void 0}o=o[n[i]]}return o}}var Itt=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return pi(this,e),n=Wd(this,$l(e).call(this)),Gm&&Ea.call(Xu(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Wm(e,Ea),hi(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=u0(this.data,s);return l||!u||typeof o!="string"?l:Hj(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),L9(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=u0(this.data,s)||{};i?$j(l,o,a):l=We({},l,o),L9(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),e}(),Uj={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,r,n,o))}),e}},M9={},V9=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return pi(this,e),n=Wd(this,$l(e).call(this)),Gm&&Ea.call(Xu(n)),Ptt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Xu(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=ri.create("translator"),n}return Wm(e,Ea),hi(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(ra(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(r,n),h=v&&v.res,m=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,g=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],E=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(x&&h&&D&&w.indexOf(g)<0&&(typeof E!="string"||g!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,We({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var S=g==="[object Array]",k=S?[]:{},F=S?y:m;for(var $ in h)if(Object.prototype.hasOwnProperty.call(h,$)){var W="".concat(F).concat(a).concat($);k[$]=this.translate(W,We({},n,{joinArrays:!1,ns:l})),k[$]===W&&(k[$]=h[$])}h=k}}else if(x&&typeof E=="string"&&g==="[object Array]")(h=h.join(E))&&(h=this.extendTranslation(h,r,n,o));else{var j=!1,L=!1,V=n.count!==void 0&&typeof n.count!="string",q=e.hasDefaultValue(n),Y=V?this.pluralResolver.getSuffix(f,n.count):"",rt=n["defaultValue".concat(Y)]||n.defaultValue;!this.isValidLookup(h)&&q&&(j=!0,h=rt),this.isValidLookup(h)||(L=!0,h=s);var lt=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&L?void 0:h,ut=q&&rt!==h&&this.options.updateMissing;if(L||j||ut){if(this.logger.log(ut?"updateKey":"missingKey",f,c,s,ut?rt:h),a){var B=this.resolve(s,We({},n,{keySeparator:!1}));B&&B.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 A=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(var U=0;U<N.length;U++)A.push(N[U]);else this.options.saveMissingTo==="all"?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);var X=function(G,at,vt){i.options.missingKeyHandler?i.options.missingKeyHandler(G,c,at,ut?vt:st,ut,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(G,c,at,ut?vt:st,ut,n),i.emit("missingKey",G,c,at,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&V?A.forEach(function(G){i.pluralResolver.getSuffixes(G).forEach(function(at){X([G],s+at,n["defaultValue".concat(at)]||rt)})}):X(A,s,rt))}h=this.extendTranslation(h,r,n,v,o),L&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),(L||j)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(We({},o,{interpolation:We({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=We({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var h=arguments.length,m=new Array(h),y=0;y<h;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(n[0])),null):u.translate.apply(u,m.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=Uj.handle(v,r,n,this.options&&this.options.postProcessPassResolved?We({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",h=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",m=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(n)||(u=y,!M9["".concat(m[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(M9["".concat(m[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(m.join(", "),`" won't get resolved as namespace "`).concat(u,'" 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!!!")),m.forEach(function(g){if(!s.isValidLookup(n)){a=g;var w,E,x=d,D=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,d,g,y,l):(v&&(w=s.pluralResolver.getSuffix(g,l.count)),v&&h&&D.push(x+w),h&&D.push(x+="".concat(s.options.contextSeparator).concat(l.context)),v&&D.push(x+=w));E=D.pop();)s.isValidLookup(n)||(i=E,n=s.getResource(g,y,E,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),e}();function mb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ltt=function(){function t(e){pi(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ri.create("languageUtils")}return hi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=mb(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=mb(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=mb(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var r,n=this;return e?(e.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&e.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))}),i}}]),t}(),Rtt=[{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}],Mtt={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Vtt(){var t={};return Rtt.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:Mtt[e.fc]}})}),t}var ztt=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pi(this,t),this.languageUtils=e,this.options=r,this.logger=ri.create("pluralResolver"),this.rules=Vtt()}return hi(t,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=this.getRule(e);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){return this.getSuffixes(e).map(function(n){return r+n})}},{key:"getSuffixes",value:function(e){var r=this,n=this.getRule(e);return n?n.numbers.map(function(o){return r.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,r){var n=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),$tt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pi(this,t),this.logger=ri.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},this.init(e)}return hi(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var r=e.interpolation;this.escape=r.escape!==void 0?r.escape:jtt,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?Fs(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Fs(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Fs(r.nestingPrefix):r.nestingPrefixEscaped||Fs("$t("),this.nestingSuffix=r.nestingSuffix?Fs(r.nestingSuffix):r.nestingSuffixEscaped||Fs(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(h){return h.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(s.formatSeparator)<0){var m=R9(r,l,h);return s.alwaysFormat?s.format(m,void 0,n,We({},o,r,{interpolationkey:h})):m}var y=h.split(s.formatSeparator),g=y.shift().trim(),w=y.join(s.formatSeparator).trim();return s.format(R9(r,l,g),w,n,We({},o,r,{interpolationkey:g}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return s.escapeValue?c(s.escape(h)):c(h)}}];return v.forEach(function(h){for(u=0;i=h.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var m=d(e,i,o);a=typeof m=="string"?m:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=I9(a));var y=h.safeValue(a);if(e=e.replace(i[0],y),p?(h.regex.lastIndex+=y.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=We({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var h=d.split(new RegExp("".concat(v,"[ ]*{"))),m="{".concat(h[1]);d=h[0],m=(m=this.interpolate(m,u)).replace(/'/g,'"');try{u=JSON.parse(m),p&&(u=We({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).concat(m)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=I9(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,We({},a,{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Htt=function(t){function e(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return pi(this,e),i=Wd(this,$l(e).call(this)),Gm&&Ea.call(Xu(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ri.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Wm(e,Ea),hi(e,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.forEach(function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var v=p3(c,f,Object),h=v.obj,m=v.k;h[m]=h[m]||[],h[m].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" 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(r,n,o,i,null,We({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),e}();function Utt(){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(t){var e={};if(ra(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),ra(t[2])==="object"||ra(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(n){e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function z9(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Gh(){}var Wtt=function(t){function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(pi(this,e),r=Wd(this,$l(e).call(this)),Gm&&Ea.call(Xu(r)),r.options=z9(n),r.services={},r.logger=ri,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),Wd(r,Xu(r));setTimeout(function(){r.init(n,o)},0)}return r}return Wm(e,Ea),hi(e,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.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=We({},Utt(),this.options,z9(n)),this.format=this.options.interpolation.format,o||(o=Gh),!this.options.isClone){this.modules.logger?ri.init(i(this.modules.logger),this.options):ri.init(null,this.options);var a=new Ltt(this.options);this.store=new Itt(this.options.resources,this.options);var u=this.services;u.logger=ri,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new ztt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new $tt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Htt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),m=1;m<v;m++)h[m-1]=arguments[m];r.emit.apply(r,[p].concat(h))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new V9(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),m=1;m<v;m++)h[m-1]=arguments[m];r.emit.apply(r,[p].concat(h))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}});var f=Qc(),d=function(){var p=function(v,h){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(h),o(v,h)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gh,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Qc();return r||(r=this.languages),n||(n=this.options.ns),o||(o=Gh),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Uj.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Qc();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,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,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(ra(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=We({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",h=o?"".concat(o).concat(v).concat(s):s;return i.t(h,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=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 i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Qc();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Qc();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["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(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gh,i=We({},this.options,n,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=r[s]}),a.services=We({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new V9(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),s0=new Wtt;function Kr(t,e){s0.addResourceBundle(t,"translation",e,!0,!0)}s0.init({lng:"zh-CN",resources:{}});var tt=s0.t.bind(s0);Kr("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Kr("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Gtt=n6?{}.toString:function(){return"[object "+Dm(this)+"]"};n6||$u(Object.prototype,"toString",Gtt,{unsafe:!0});var $9=Array.isArray||function(t){return bu(t)=="Array"},Wj=function(){},qtt=[],Gj=Op("Reflect","construct"),h3=/^\s*(?:class|function)\b/,Ktt=ne(h3.exec),Ytt=!h3.exec(Wj),tf=function(t){if(!rr(t))return!1;try{return Gj(Wj,qtt,t),!0}catch{return!1}},Xtt=!Gj||lr(function(){var t;return tf(tf.call)||!tf(Object)||!tf(function(){t=!0})||t})?function(t){if(!rr(t))return!1;switch(Dm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ytt||!!Ktt(h3,Jx(t))}:tf,Ztt=jr("species"),H9=Ct.Array,Jtt=function(t,e){return new(function(r){var n;return $9(r)&&(n=r.constructor,(Xtt(n)&&(n===H9||$9(n.prototype))||yo(n)&&(n=n[Ztt])===null)&&(n=void 0)),n===void 0?H9:n}(t))(e===0?0:e)},U9=ne([].push),Qtt=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Kx(s),h=sP(v),m=EP(l,c),y=Sm(h),g=0,w=f||Jtt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:U9(E,d)}else switch(t){case 4:return!1;case 7:U9(E,d)}return i?-1:n||o?o:E}},tet={forEach:Qtt(0)}.forEach,eet=function(t,e){var r=[][t];return!!r&&lr(function(){r.call(null,e||function(){throw 1},1)})}("forEach"),yb=eet?[].forEach:function(t){return tet(this,t,arguments.length>1?arguments[1]:void 0)},qj=function(t){if(t&&t.forEach!==yb)try{zr(t,"forEach",yb)}catch{t.forEach=yb}};for(var bb in Ov)Ov[bb]&&qj(Ct[bb]&&Ct[bb].prototype);qj(SP),Kr("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"}}),Kr("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 ret={type:"paragraph",renderElem:function(t,e,r){return wt("p",null,e)}},l0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qm(t){var e={exports:{}};return t(e,e.exports),e.exports}var _i,Wg,qh=function(t){return t&&t.Math==Math&&t},At=qh(typeof globalThis=="object"&&globalThis)||qh(typeof window=="object"&&window)||qh(typeof self=="object"&&self)||qh(typeof l0=="object"&&l0)||function(){return this}()||Function("return this")(),Se=function(t){try{return!!t()}catch{return!0}},Qn=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ef=Function.prototype.call,Ie=ef.bind?ef.bind(ef):function(){return ef.apply(ef,arguments)},W9={}.propertyIsEnumerable,G9=Object.getOwnPropertyDescriptor,net=G9&&!W9.call({1:2},1)?function(t){var e=G9(this,t);return!!e&&e.enumerable}:W9,Kj={f:net},g3=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Yj=Function.prototype,_4=Yj.bind,F4=Yj.call,oet=_4&&_4.bind(F4),yt=_4?function(t){return t&&oet(F4,t)}:function(t){return t&&function(){return F4.apply(t,arguments)}},iet=yt({}.toString),aet=yt("".slice),na=function(t){return aet(iet(t),8,-1)},wb=At.Object,uet=yt("".split),Km=Se(function(){return!wb("z").propertyIsEnumerable(0)})?function(t){return na(t)=="String"?uet(t,""):wb(t)}:wb,set=At.TypeError,Tn=function(t){if(t==null)throw set("Can't call method on "+t);return t},sc=function(t){return Km(Tn(t))},Ar=function(t){return typeof t=="function"},wo=function(t){return typeof t=="object"?t!==null:Ar(t)},cet=function(t){return Ar(t)?t:void 0},Mp=function(t,e){return arguments.length<2?cet(At[t]):At[t]&&At[t][e]},Xj=yt({}.isPrototypeOf),Eb=Mp("navigator","userAgent")||"",q9=At.process,K9=At.Deno,Y9=q9&&q9.versions||K9&&K9.version,X9=Y9&&Y9.v8;X9&&(Wg=(_i=X9.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!Wg&&Eb&&(!(_i=Eb.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=Eb.match(/Chrome\/(\d+)/))&&(Wg=+_i[1]);var T4=Wg,P4=!!Object.getOwnPropertySymbols&&!Se(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&T4&&T4<41}),v3=P4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fet=At.Object,Cb=v3?function(t){return typeof t=="symbol"}:function(t){var e=Mp("Symbol");return Ar(e)&&Xj(e.prototype,fet(t))},det=At.String,Zj=function(t){try{return det(t)}catch{return"Object"}},pet=At.TypeError,Jj=function(t){if(Ar(t))return t;throw pet(Zj(t)+" is not a function")},Ym=function(t,e){var r=t[e];return r==null?void 0:Jj(r)},het=At.TypeError,get=Object.defineProperty,m3=function(t,e){try{get(At,t,{value:e,configurable:!0,writable:!0})}catch{At[t]=e}return e},oa=At["__core-js_shared__"]||m3("__core-js_shared__",{}),y3=qm(function(t){(t.exports=function(e,r){return oa[e]||(oa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),vet=At.Object,Vp=function(t){return vet(Tn(t))},met=yt({}.hasOwnProperty),Sn=Object.hasOwn||function(t,e){return met(Vp(t),e)},yet=0,bet=Math.random(),wet=yt(1 .toString),Qj=function(t){return"Symbol("+(t===void 0?"":t)+")_"+wet(++yet+bet,36)},rf=y3("wks"),Ou=At.Symbol,Z9=Ou&&Ou.for,Eet=v3?Ou:Ou&&Ou.withoutSetter||Qj,dn=function(t){if(!Sn(rf,t)||!P4&&typeof rf[t]!="string"){var e="Symbol."+t;P4&&Sn(Ou,t)?rf[t]=Ou[t]:rf[t]=v3&&Z9?Z9(e):Eet(e)}return rf[t]},Cet=At.TypeError,xet=dn("toPrimitive"),b3=function(t){var e=function(r,n){if(!wo(r)||Cb(r))return r;var o,i=Ym(r,xet);if(i){if(o=Ie(i,r,n),!wo(o)||Cb(o))return o;throw Cet("Can't convert object to primitive value")}return function(a,u){var s,l;if(Ar(s=a.toString)&&!wo(l=Ie(s,a))||Ar(s=a.valueOf)&&!wo(l=Ie(s,a)))return l;throw het("Can't convert object to primitive value")}(r)}(t,"string");return Cb(e)?e:e+""},N4=At.document,Det=wo(N4)&&wo(N4.createElement),w3=function(t){return Det?N4.createElement(t):{}},tI=!Qn&&!Se(function(){return Object.defineProperty(w3("div"),"a",{get:function(){return 7}}).a!=7}),J9=Object.getOwnPropertyDescriptor,E3={f:Qn?J9:function(t,e){if(t=sc(t),e=b3(e),tI)try{return J9(t,e)}catch{}if(Sn(t,e))return g3(!Ie(Kj.f,t,e),t[e])}},Aet=At.String,Oet=At.TypeError,on=function(t){if(wo(t))return t;throw Oet(Aet(t)+" is not an object")},ket=At.TypeError,Q9=Object.defineProperty,lc={f:Qn?Q9:function(t,e,r){if(on(t),e=b3(e),on(r),tI)try{return Q9(t,e,r)}catch{}if("get"in r||"set"in r)throw ket("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Hl=Qn?function(t,e,r){return lc.f(t,e,g3(1,r))}:function(t,e,r){return t[e]=r,t},Bet=yt(Function.toString);Ar(oa.inspectSource)||(oa.inspectSource=function(t){return Bet(t)});var j4,c0,I4,C3=oa.inspectSource,tO=At.WeakMap,_et=Ar(tO)&&/native code/.test(C3(tO)),eO=y3("keys"),eI=function(t){return eO[t]||(eO[t]=Qj(t))},x3={},rO=At.TypeError,Fet=At.WeakMap;if(_et||oa.state){var qa=oa.state||(oa.state=new Fet),Tet=yt(qa.get),nO=yt(qa.has),Pet=yt(qa.set);j4=function(t,e){if(nO(qa,t))throw new rO("Object already initialized");return e.facade=t,Pet(qa,t,e),e},c0=function(t){return Tet(qa,t)||{}},I4=function(t){return nO(qa,t)}}else{var Ts=eI("state");x3[Ts]=!0,j4=function(t,e){if(Sn(t,Ts))throw new rO("Object already initialized");return e.facade=t,Hl(t,Ts,e),e},c0=function(t){return Sn(t,Ts)?t[Ts]:{}},I4=function(t){return Sn(t,Ts)}}var L4={get:c0,enforce:function(t){return I4(t)?c0(t):j4(t,{})}},rI=Function.prototype,Net=Qn&&Object.getOwnPropertyDescriptor,xb=Sn(rI,"name"),Xm={EXISTS:xb,PROPER:xb&&(function(){}).name==="something",CONFIGURABLE:xb&&(!Qn||Qn&&Net(rI,"name").configurable)},Gd=qm(function(t){var e=Xm.CONFIGURABLE,r=L4.get,n=L4.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ar(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(u,"name")||e&&u.name!==p)&&Hl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==At?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Hl(i,a,u)):f?i[a]=u:m3(a,u)})(Function.prototype,"toString",function(){return Ar(this)&&r(this).source||C3(this)})}),jet=Math.ceil,Iet=Math.floor,cc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Iet:jet)(e)},Let=Math.max,Ret=Math.min,qd=function(t,e){var r=cc(t);return r<0?Let(r+e,0):Ret(r,e)},Met=Math.min,zp=function(t){return t>0?Met(cc(t),9007199254740991):0},Zm=function(t){return zp(t.length)},oO=function(t){return function(e,r,n){var o,i=sc(e),a=Zm(i),u=qd(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},nI={includes:oO(!0),indexOf:oO(!1)},Vet=nI.indexOf,iO=yt([].push),oI=function(t,e){var r,n=sc(t),o=0,i=[];for(r in n)!Sn(x3,r)&&Sn(n,r)&&iO(i,r);for(;e.length>o;)Sn(n,r=e[o++])&&(~Vet(i,r)||iO(i,r));return i},f0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zet=f0.concat("length","prototype"),$et={f:Object.getOwnPropertyNames||function(t){return oI(t,zet)}},iI={f:Object.getOwnPropertySymbols},Het=yt([].concat),Uet=Mp("Reflect","ownKeys")||function(t){var e=$et.f(on(t)),r=iI.f;return r?Het(e,r(t)):e},Wet=function(t,e){for(var r=Uet(e),n=lc.f,o=E3.f,i=0;i<r.length;i++){var a=r[i];Sn(t,a)||n(t,a,o(e,a))}},Get=/#|\.prototype\./,$p=function(t,e){var r=Ket[qet(t)];return r==Xet||r!=Yet&&(Ar(e)?Se(e):!!e)},qet=$p.normalize=function(t){return String(t).replace(Get,".").toLowerCase()},Ket=$p.data={},Yet=$p.NATIVE="N",Xet=$p.POLYFILL="P",Zet=$p,Jet=E3.f,tr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?At:l?At[u]||m3(u,{}):(At[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Jet(r,n))&&a.value:r[n],!Zet(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Wet(i,o)}(t.sham||o&&o.sham)&&Hl(i,"sham",!0),Gd(r,n,i,t)}},aO=yt(yt.bind),d0=Array.isArray||function(t){return na(t)=="Array"},aI={};aI[dn("toStringTag")]="z";var S3=String(aI)==="[object z]",Qet=dn("toStringTag"),trt=At.Object,ert=na(function(){return arguments}())=="Arguments",D3=S3?na:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=trt(t),Qet))=="string"?r:ert?na(e):(n=na(e))=="Object"&&Ar(e.callee)?"Arguments":n},uI=function(){},rrt=[],sI=Mp("Reflect","construct"),A3=/^\s*(?:class|function)\b/,nrt=yt(A3.exec),ort=!A3.exec(uI),nf=function(t){if(!Ar(t))return!1;try{return sI(uI,rrt,t),!0}catch{return!1}},O3=!sI||Se(function(){var t;return nf(nf.call)||!nf(Object)||!nf(function(){t=!0})||t})?function(t){if(!Ar(t))return!1;switch(D3(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ort||!!nrt(A3,C3(t))}:nf,irt=dn("species"),uO=At.Array,art=function(t,e){return new(function(r){var n;return d0(r)&&(n=r.constructor,(O3(n)&&(n===uO||d0(n.prototype))||wo(n)&&(n=n[irt])===null)&&(n=void 0)),n===void 0?uO:n}(t))(e===0?0:e)},sO=yt([].push),Kh=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Vp(s),h=Km(v),m=function(x,D){return Jj(x),D===void 0?x:aO?aO(x,D):function(){return x.apply(D,arguments)}}(l,c),y=Zm(h),g=0,w=f||art,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:sO(E,d)}else switch(t){case 4:return!1;case 7:sO(E,d)}return i?-1:n||o?o:E}},Jm={forEach:Kh(0),map:Kh(1),filter:Kh(2),find:Kh(5)},urt=dn("species"),k3=function(t){return T4>=51||!Se(function(){var e=[];return(e.constructor={})[urt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},srt=Jm.filter;tr({target:"Array",proto:!0,forced:!k3("filter")},{filter:function(t){return srt(this,t,arguments.length>1?arguments[1]:void 0)}});var lrt=S3?{}.toString:function(){return"[object "+D3(this)+"]"};S3||Gd(Object.prototype,"toString",lrt,{unsafe:!0});var Yh,crt=At.String,Ce=function(t){if(D3(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return crt(t)},lI=function(){var t=on(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},B3=At.RegExp,R4=Se(function(){var t=B3("a","y");return t.lastIndex=2,t.exec("abcd")!=null});R4||Se(function(){return!B3("a","y").sticky});var cI={BROKEN_CARET:R4||Se(function(){var t=B3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:R4},gl=Object.keys||function(t){return oI(t,f0)},frt=Qn?Object.defineProperties:function(t,e){on(t);for(var r,n=sc(e),o=gl(e),i=o.length,a=0;i>a;)lc.f(t,r=o[a++],n[r]);return t},drt=Mp("document","documentElement"),fI=eI("IE_PROTO"),Sb=function(){},dI=function(t){return"<script>"+t+"<\/script>"},lO=function(t){t.write(dI("")),t.close();var e=t.parentWindow.Object;return t=null,e},Gg=function(){try{Yh=new ActiveXObject("htmlfile")}catch{}var t,e;Gg=typeof document<"u"?document.domain&&Yh?lO(Yh):((e=w3("iframe")).style.display="none",drt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(dI("document.F=Object")),t.close(),t.F):lO(Yh);for(var r=f0.length;r--;)delete Gg.prototype[f0[r]];return Gg()};x3[fI]=!0;var cO,Db,pI=Object.create||function(t,e){var r;return t!==null?(Sb.prototype=on(t),r=new Sb,Sb.prototype=null,r[fI]=t):r=Gg(),e===void 0?r:frt(r,e)},prt=At.RegExp,hrt=Se(function(){var t=prt(".","s");return!(t.dotAll&&t.exec(`
|
|
81
|
+
`)&&t.flags==="s")}),grt=At.RegExp,vrt=Se(function(){var t=grt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),mrt=L4.get,yrt=y3("native-string-replace",String.prototype.replace),p0=RegExp.prototype.exec,M4=p0,brt=yt("".charAt),wrt=yt("".indexOf),Ert=yt("".replace),Ab=yt("".slice),Ob=(Db=/b*/g,Ie(p0,cO=/a/,"a"),Ie(p0,Db,"a"),cO.lastIndex!==0||Db.lastIndex!==0),fO=cI.BROKEN_CARET,kb=/()??/.exec("")[1]!==void 0;(Ob||kb||fO||hrt||vrt)&&(M4=function(t){var e,r,n,o,i,a,u,s=this,l=mrt(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ie(M4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=fO&&s.sticky,v=Ie(lI,s),h=s.source,m=0,y=c;if(p&&(v=Ert(v,"y",""),wrt(v,"g")===-1&&(v+="g"),y=Ab(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&brt(c,s.lastIndex-1)!==`
|
|
82
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),kb&&(r=new RegExp("^"+h+"$(?!\\s)",v)),Ob&&(n=s.lastIndex),o=Ie(p0,p?r:s,y),p?o?(o.input=Ab(o.input,m),o[0]=Ab(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ob&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),kb&&o&&o.length>1&&Ie(yrt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=pI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Kd=M4;tr({target:"RegExp",proto:!0,forced:/./.exec!==Kd},{exec:Kd});var _3=Function.prototype,dO=_3.apply,Crt=_3.bind,pO=_3.call,hI=typeof Reflect=="object"&&Reflect.apply||(Crt?pO.bind(dO):function(){return pO.apply(dO,arguments)}),xrt=dn("species"),Bb=RegExp.prototype,F3=function(t,e,r,n){var o=dn(t),i=!Se(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Se(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[xrt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=yt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=yt(l),h=c.exec;return h===Kd||h===Bb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Gd(String.prototype,t,s[0]),Gd(Bb,o,s[1])}n&&Hl(Bb[o],"sham",!0)},Srt=yt("".charAt),hO=yt("".charCodeAt),Drt=yt("".slice),Art=function(t){return function(e,r){var n,o,i=Ce(Tn(e)),a=cc(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=hO(i,a))<55296||n>56319||a+1===u||(o=hO(i,a+1))<56320||o>57343?t?Srt(i,a):n:t?Drt(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ort=Art(!0),T3=function(t,e,r){return e+(r?Ort(t,e).length:1)},krt=Math.floor,_b=yt("".charAt),Brt=yt("".replace),Fb=yt("".slice),_rt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Frt=/\$([$&'`]|\d{1,2})/g,Trt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Frt;return o!==void 0&&(o=Vp(o),s=_rt),Brt(i,s,function(l,c){var f;switch(_b(c,0)){case"$":return"$";case"&":return t;case"`":return Fb(e,0,r);case"'":return Fb(e,a);case"<":f=o[Fb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=krt(d/10);return p===0?l:p<=u?n[p-1]===void 0?_b(c,1):n[p-1]+_b(c,1):l}f=n[d-1]}return f===void 0?"":f})},Prt=At.TypeError,Yd=function(t,e){var r=t.exec;if(Ar(r)){var n=Ie(r,t,e);return n!==null&&on(n),n}if(na(t)==="RegExp")return Ie(Kd,t,e);throw Prt("RegExp#exec called on incompatible receiver")},V4=dn("replace"),Nrt=Math.max,jrt=Math.min,Irt=yt([].concat),Tb=yt([].push),gO=yt("".indexOf),vO=yt("".slice),Lrt="a".replace(/./,"$0")==="$0",mO=!!/./[V4]&&/./[V4]("a","$0")==="";F3("replace",function(t,e,r){var n=mO?"$":"$0";return[function(o,i){var a=Tn(this),u=o==null?void 0:Ym(o,V4);return u?Ie(u,o,a,i):Ie(e,Ce(a),o,i)},function(o,i){var a=on(this),u=Ce(o);if(typeof i=="string"&&gO(i,n)===-1&&gO(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Ar(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Yd(a,u);if(p===null||(Tb(d,p),!c))break;Ce(p[0])===""&&(a.lastIndex=T3(u,zp(a.lastIndex),f))}for(var v,h="",m=0,y=0;y<d.length;y++){for(var g=Ce((p=d[y])[0]),w=Nrt(jrt(cc(p.index),u.length),0),E=[],x=1;x<p.length;x++)Tb(E,(v=p[x])===void 0?v:String(v));var D=p.groups;if(l){var S=Irt([g],E,w,u);D!==void 0&&Tb(S,D);var k=Ce(hI(i,void 0,S))}else k=Trt(g,u,w,E,D,i);w>=m&&(h+=vO(u,m,w)+k,m=w+g.length)}return h+vO(u,m)}]},!!Se(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Lrt||mO);var z4=dn("unscopables"),$4=Array.prototype;$4[z4]==null&&lc.f($4,z4,{configurable:!0,value:pI(null)});var gI=function(t){$4[z4][t]=!0},Rrt=Jm.find,yO=!0;"find"in[]&&Array(1).find(function(){yO=!1}),tr({target:"Array",proto:!0,forced:yO},{find:function(t){return Rrt(this,t,arguments.length>1?arguments[1]:void 0)}}),gI("find");var Mrt=dn("match"),vI=function(t){var e;return wo(t)&&((e=t[Mrt])!==void 0?!!e:na(t)=="RegExp")},Vrt=At.TypeError,zrt=dn("species"),mI=function(t,e,r){var n=b3(e);n in t?lc.f(t,n,g3(0,r)):t[n]=r},$rt=At.Array,Hrt=Math.max,bO=function(t,e,r){for(var n=Zm(t),o=qd(e,n),i=qd(r===void 0?n:r,n),a=$rt(Hrt(i-o,0)),u=0;o<i;o++,u++)mI(a,u,t[o]);return a.length=u,a},Ps=cI.UNSUPPORTED_Y,Urt=Math.min,yI=[].push,Wrt=yt(/./.exec),Ns=yt(yI),of=yt("".slice);F3("split",function(t,e,r){var n;return n="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,i){var a=Ce(Tn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!vI(o))return Ie(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Ie(Kd,v,a))&&!((l=v.lastIndex)>p&&(Ns(f,of(a,p,s.index)),s.length>1&&s.index<a.length&&hI(yI,f,bO(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&Wrt(v,"")||Ns(f,""):Ns(f,of(a,p)),f.length>u?bO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ie(e,this,o,i)}:e,[function(o,i){var a=Tn(this),u=o==null?void 0:Ym(o,t);return u?Ie(u,o,a,i):Ie(n,Ce(a),o,i)},function(o,i){var a=on(this),u=Ce(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(E,x){var D,S=on(E).constructor;return S===void 0||(D=on(S)[zrt])==null?x:function(k){if(O3(k))return k;throw Vrt(Zj(k)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ps?"g":"y"),d=new l(Ps?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Yd(d,u)===null?[u]:[];for(var v=0,h=0,m=[];h<u.length;){d.lastIndex=Ps?0:h;var y,g=Yd(d,Ps?of(u,h):u);if(g===null||(y=Urt(zp(d.lastIndex+(Ps?h:0)),u.length))===v)h=T3(u,h,c);else{if(Ns(m,of(u,v,h)),m.length===p)return m;for(var w=1;w<=g.length-1;w++)if(Ns(m,g[w]),m.length===p)return m;h=v=y}}return Ns(m,of(u,v)),m}]},!!Se(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ps);var H4=`
|
|
83
|
+
\v\f\r \u2028\u2029\uFEFF`,wO=yt("".replace),h0="["+H4+"]",Grt=RegExp("^"+h0+h0+"*"),qrt=RegExp(h0+h0+"*$"),Krt=function(t){return function(e){var r=Ce(Tn(e));return 1&t&&(r=wO(r,Grt,"")),2&t&&(r=wO(r,qrt,"")),r}},Yrt={trim:Krt(3)},Xrt=Xm.PROPER,Zrt=Yrt.trim;function P3(t){return _("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function fc(t){return t.length===0?"":t[0].outerHTML}function dc(t){return t.length?t[0].tagName.toLowerCase():""}function Xn(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===e&&(r=u[1].trim())}}return r}tr({target:"String",proto:!0,forced:Se(function(){return!!H4.trim()||"
".trim()!=="
"||Xrt&&H4.trim.name!=="trim"})},{trim:function(){return Zrt(this)}}),tr({global:!0},{globalThis:At}),Vv&&(_.fn.css=Vv),Bn&&(_.fn.append=Bn),uA&&(_.fn.prepend=uA),Al&&(_.fn.addClass=Al),Ol&&(_.fn.removeClass=Ol),kl&&(_.fn.hasClass=kl),_o&&(_.fn.on=_o),nA&&(_.fn.off=nA),ba&&(_.fn.focus=ba),kn&&(_.fn.attr=kn),Iv&&(_.fn.removeAttr=Iv),_l&&(_.fn.hide=_l),Mv&&(_.fn.show=Mv),Hv&&(_.fn.parents=Hv),Bl&&(_.fn.dataset=Bl),Bo&&(_.fn.val=Bo),$v&&(_.fn.text=$v),ya&&(_.fn.html=ya),Pl&&(_.fn.children=Pl),Nl&&(_.fn.remove=Nl),Tl&&(_.fn.find=Tl),Lv&&(_.fn.width=Lv),Rv&&(_.fn.height=Rv),iA&&(_.fn.filter=iA),jl&&(_.fn.empty=jl);var Jrt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},U4=function(t,e){return U4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},U4(t,e);/*! *****************************************************************************
|
|
84
|
+
Copyright (c) Microsoft Corporation.
|
|
85
|
+
|
|
86
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
87
|
+
purpose with or without fee is hereby granted.
|
|
88
|
+
|
|
89
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
90
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
91
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
92
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
93
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
94
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
95
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
96
|
+
***************************************************************************** */};function we(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}U4(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ca=function(){return Ca=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ca.apply(this,arguments)};function Pa(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function Na(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function bI(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function EO(t){var e=Xt(C.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var r=e[0];if(!ft.isElement(r)||r.type==="paragraph"||Q.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!it.isText(o[0])&&(R.setNodes(t,{type:"paragraph"}),!0)}var Qrt={renderElems:[ret],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Jrt],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward;t.insertText,t.insertBreak;var n=t;return n.deleteBackward=function(o){EO(n)||e(o)},n.deleteForward=function(o){EO(n)||r(o)},n}},tnt=/"/g,ent=yt("".replace),Yf=function(t,e,r,n){var o=Ce(Tn(t)),i="<"+e;return r!==""&&(i+=" "+r+'="'+ent(Ce(n),tnt,""")+'"'),i+">"+o+"</"+e+">"},Xf=function(t){return Se(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function Pb(t,e){var r=e,n=t,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Ka(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tr({target:"String",proto:!0,forced:Xf("bold")},{bold:function(){return Yf(this,"b","","")}}),tr({target:"String",proto:!0,forced:Xf("italics")},{italics:function(){return Yf(this,"i","","")}}),tr({target:"String",proto:!0,forced:Xf("sub")},{sub:function(){return Yf(this,"sub","","")}}),tr({target:"String",proto:!0,forced:Xf("sup")},{sup:function(){return Yf(this,"sup","","")}});var CO={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},Nb=w3("span").classList,xO=Nb&&Nb.constructor&&Nb.constructor.prototype,rnt=xO===Object.prototype?void 0:xO,wI=function(t,e){var r=[][t];return!!r&&Se(function(){r.call(null,e||function(){throw 1},1)})},nnt=Jm.forEach,jb=wI("forEach")?[].forEach:function(t){return nnt(this,t,arguments.length>1?arguments[1]:void 0)},EI=function(t){if(t&&t.forEach!==jb)try{Hl(t,"forEach",jb)}catch{t.forEach=jb}};for(var Ib in CO)CO[Ib]&&EI(At[Ib]&&At[Ib].prototype);function CI(t,e){return t.selection==null||!!Xt(C.nodes(t,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(t,r)},universal:!0}),1)[0]}function ont(t,e){Object.keys(e).forEach(function(r){r!=="text"&&C.removeMark(t,r)})}EI(rnt),tr({target:"Object",stat:!0,forced:Se(function(){gl(1)})},{keys:function(t){return gl(Vp(t))}});var fs=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n?n[r]:!!Xt(C.nodes(e,{match:function(o){return o[r]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return CI(e,this.mark)},t.prototype.exec=function(e,r){var n=this.mark,o=this.marksNeedToRemove;r?e.removeMark(n):(e.addMark(n,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),int='<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>',ant='<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>',unt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',snt='<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>',lnt='<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>',xI='<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>',SI='<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>',cnt='<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>',fnt='<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>',dnt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',pnt='<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>',hnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',gnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',vnt='<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>',mnt='<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>',ynt='<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>',bnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',wnt='<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>',Ent='<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>',Cnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="bold",r.title=tt("textStyle.bold"),r.iconSvg=int,r.hotkey="mod+b",r}return we(e,t),e}(fs),xnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="code",r.title=tt("textStyle.code"),r.iconSvg=lnt,r.hotkey="mod+e",r}return we(e,t),e}(fs),Snt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="italic",r.title=tt("textStyle.italic"),r.iconSvg=unt,r.hotkey="mod+i",r}return we(e,t),e}(fs),Dnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="through",r.title=tt("textStyle.through"),r.iconSvg=snt,r.hotkey="mod+shift+x",r}return we(e,t),e}(fs),Ant=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="underline",r.title=tt("textStyle.underline"),r.iconSvg=ant,r.hotkey="mod+u",r}return we(e,t),e}(fs),Ont=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=tt("textStyle.sub"),r.iconSvg=Ent,r.hotkey="",r}return we(e,t),e}(fs),knt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=tt("textStyle.sup"),r.iconSvg=wnt,r.hotkey="",r}return we(e,t),e}(fs),Bnt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return CI(e)},t.prototype.exec=function(e,r){var n,o,i=C.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=bI(i),u=a.next();!u.done;u=a.next())ont(e,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t}(),_nt={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=e;return n&&(c=wt("strong",null,c)),a&&(c=wt("code",null,c)),o&&(c=wt("em",null,c)),i&&(c=wt("u",null,c)),u&&(c=wt("s",null,c)),s&&(c=wt("sub",null,c)),l&&(c=wt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Cnt}},{key:"underline",factory:function(){return new Ant}},{key:"italic",factory:function(){return new Snt}},{key:"through",factory:function(){return new Dnt}},{key:"code",factory:function(){return new xnt}},{key:"sub",factory:function(){return new Ont}},{key:"sup",factory:function(){return new knt}},{key:"clearStyle",factory:function(){return new Bnt}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(P3(e))return Pb(t,e);var r=_(e);if(dc(r)==="br")return Pb(t,"<br>");var n=r.html();return n=Pb(t,n),r.html(n),fc(r)},parseStyleHtml:function(t,e,r){var n=_(t);if(!it.isText(e))return e;var o=e;return Ka(n,"b,strong")&&(o.bold=!0),Ka(n,"i,em")&&(o.italic=!0),Ka(n,"u")&&(o.underline=!0),Ka(n,"s,strike")&&(o.through=!0),Ka(n,"sub")&&(o.sub=!0),Ka(n,"sup")&&(o.sup=!0),Ka(n,"code")&&(o.code=!0),o}};function Hp(t){return function(e,r,n){return wt("h"+t,null,r)}}var Fnt={type:"header1",renderElem:Hp(1)},Tnt={type:"header2",renderElem:Hp(2)},Pnt={type:"header3",renderElem:Hp(3)},Nnt={type:"header4",renderElem:Hp(4)},jnt={type:"header5",renderElem:Hp(5)},Int=Xm.PROPER,W4=RegExp.prototype,DI=W4.toString,Lnt=yt(lI),Rnt=Se(function(){return DI.call({source:"a",flags:"b"})!="/a/b"}),Mnt=Int&&DI.name!="toString";(Rnt||Mnt)&&Gd(RegExp.prototype,"toString",function(){var t=on(this),e=Ce(t.source),r=t.flags;return"/"+e+"/"+Ce(r===void 0&&Xj(W4,t)&&!("flags"in W4)?Lnt(t):r)},{unsafe:!0});var Lb,Vnt=At.TypeError,AI=function(t){if(vI(t))throw Vnt("The method doesn't accept regular expressions");return t},znt=dn("match"),OI=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[znt]=!1,"/./"[t](e)}catch{}}return!1},$nt=E3.f,SO=yt("".startsWith),Hnt=yt("".slice),Unt=Math.min,DO=OI("startsWith");function kI(t){var e=Xt(C.nodes(t,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1),r=e[0];if(r==null)return"paragraph";var n=Xt(r,1)[0];return O.getNodeType(n)}function BI(t){return t.selection==null||!Xt(C.nodes(t,{match:function(e){var r=O.getNodeType(e);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function _I(t,e){e&&R.setNodes(t,{type:e})}tr({target:"String",proto:!0,forced:!(!DO&&(Lb=$nt(String.prototype,"startsWith"),Lb&&!Lb.writable)||DO)},{startsWith:function(t){var e=Ce(Tn(this));AI(t);var r=zp(Unt(arguments.length>1?arguments[1]:void 0,e.length)),n=Ce(t);return SO?SO(e,n,r):Hnt(e,r,r+n.length)===n}});var Wnt=function(){function t(){this.title=tt("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 t.prototype.getOptions=function(e){var r=[{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:tt("header.text")}],n=this.getValue(e).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return kI(e)},t.prototype.isDisabled=function(e){return BI(e)},t.prototype.exec=function(e,r){_I(e,r.toString())},t}(),Up=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return kI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return BI(e)},t.prototype.exec=function(e,r){var n=this.type;_I(e,r===n?"paragraph":n)},t}(),Gnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return we(e,t),e}(Up),qnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return we(e,t),e}(Up),Knt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return we(e,t),e}(Up),Ynt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return we(e,t),e}(Up),Xnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return we(e,t),e}(Up),Znt={key:"headerSelect",factory:function(){return new Wnt}},Jnt={key:"header1",factory:function(){return new Gnt}},Qnt={key:"header2",factory:function(){return new qnt}},tot={key:"header3",factory:function(){return new Knt}},eot={key:"header4",factory:function(){return new Ynt}},rot={key:"header5",factory:function(){return new Xnt}};function af(t){return function(e,r){return"<h"+t+">"+r+"</h"+t+">"}}function uf(t){return function(e,r,n){var o=_(e);return(r=r.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:r}}}var not={renderElems:[Fnt,Tnt,Pnt,Nnt,jnt],elemsToHtml:[{type:"header1",elemToHtml:af(1)},{type:"header2",elemToHtml:af(2)},{type:"header3",elemToHtml:af(3)},{type:"header4",elemToHtml:af(4)},{type:"header5",elemToHtml:af(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:uf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:uf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:uf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:uf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:uf(5)}],menus:[Znt,Jnt,Qnt,tot,eot,rot],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var r=t;return r.insertBreak=function(){var n=Xt(C.nodes(r,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&O.isSelectionAtLineEnd(t,n[1])?R.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},js=Object.assign,AO=Object.defineProperty,oot=yt([].concat),OO=!js||Se(function(){if(Qn&&js({b:1},js(AO({},"a",{enumerable:!0,get:function(){AO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),js({},t)[r]!=7||gl(js({},e)).join("")!=n})?function(t,e){for(var r=Vp(t),n=arguments.length,o=1,i=iI.f,a=Kj.f;n>o;)for(var u,s=Km(arguments[o++]),l=i?oot(gl(s),i(s)):gl(s),c=l.length,f=0;c>f;)u=l[f++],Qn&&!Ie(a,s,u)||(r[u]=s[u]);return r}:js;function Zu(t,e){t.data==null&&(t.data={});var r=t.data;r.style==null&&(r.style={}),Object.assign(r.style,e)}tr({target:"Object",stat:!0,forced:Object.assign!==OO},{assign:OO});var iot={selector:"font",preParseHtml:function(t){var e=_(t);if(dc(e)!=="font")return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},FI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n&&n[r]?n[r]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(C.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var r=this.mark;if(this.$content==null){var n=_('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=_(c).attr("data-value");f==="0"?C.removeMark(e,r):C.addMark(e,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(r).colors;(a===void 0?[]:a).forEach(function(l){var c=_('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=_('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";r==="color"&&(u=tt("color.default")),r==="bgColor"&&(u=tt("color.clear"));var s=_(`
|
|
97
|
+
<li data-value="0" class="clear">
|
|
98
|
+
<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>
|
|
99
|
+
`+u+`
|
|
100
|
+
</li>
|
|
101
|
+
`);return o.prepend(s),o[0]},t}(),aot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("color.color"),r.iconSvg=cnt,r.mark="color",r}return we(e,t),e}(FI),uot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("color.bgColor"),r.iconSvg=fnt,r.mark="bgColor",r}return we(e,t),e}(FI),kO=["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)"],sot={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,i=e;return n&&Zu(i,{color:n}),o&&Zu(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var r,n=t,o=n.color,i=n.bgColor;return o||i?((P3(e)||dc(r=_(e))!=="span")&&(r=_("<span>"+e+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),fc(r)):e},preParseHtml:[iot],parseStyleHtml:function(t,e,r){var n=_(t);if(!it.isText(e))return e;var o=e,i=Xn(n,"color");i&&(o.color=i);var a=Xn(n,"background-color");return a||(a=Xn(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new aot},config:{colors:kO}},{key:"bgColor",factory:function(){return new uot},config:{colors:kO}}]},lot=/^(?:\w+:)?\/\/(\S+)$/,cot=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,fot=/^[^\s\.]+\.\S{2,}$/,dot=nI.includes;function Qm(t){return t===void 0&&(t="r"),t+"-"+QP()}function N3(t){return t.replace(/</g,"<").replace(/>/g,">")}function TI(t,e,r,n){return Pa(this,void 0,void 0,function(){var o,i;return Na(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function PI(t,e,r){return Pa(this,void 0,void 0,function(){var n;return Na(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function j3(t){return t.selection==null||!!O.getSelectedElems(t).some(function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)||void 0})}function Rb(t,e){return{type:"link",url:N3(t),children:e?[{text:e}]:[]}}function NI(t,e,r){return Pa(this,void 0,void 0,function(){var n,o,i;return Na(this,function(a){switch(a.label){case 0:return r?(e||(e=r),t.restoreSelection(),j3(t)?[2]:[4,TI("insertLink",t,e,r)]):[2];case 1:return a.sent()?[4,PI("insertLink",t,r)]:[2];case 2:return n=a.sent(),(o=t.selection)==null||(z.isCollapsed(o)?(t.insertText(" "),i=Rb(n,e),R.insertNodes(t,i),t.insertFragment([{text:" "}])):C.string(t,o)!==e?(t.deleteFragment(),i=Rb(n,e),R.insertNodes(t,i)):(i=Rb(n),R.wrapNodes(t,i,{split:!0}),R.collapse(t,{edge:"end"}))),[2]}})})}tr({target:"Array",proto:!0},{includes:function(t){return dot(this,t,arguments.length>1?arguments[1]:void 0)}}),gI("includes");var pot={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,i=n.target;return wt("a",{href:o,target:i===void 0?"_blank":i},e)}},hot={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:e}}};function Mb(){return Qm("w-e-insert-link")}var got=function(){function t(){this.title=tt("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=Mb(),this.urlInputId=Mb(),this.buttonId=Mb()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return j3(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=e.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=Xt(nn(tt("link.text"),o),2),s=u[0],l=_(u[1]),c=Xt(nn(tt("link.url"),i),2),f=c[0],d=_(c[1]),p=Xt(uc(a,tt("common.ok")),1)[0];if(this.$content==null){var v=_("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var g=v.find("#"+o).val(),w=v.find("#"+i).val();NI(e,g,w),e.hidePanelOrModal()}),this.$content=v}var h=this.$content;if(h.empty(),h.append(s),h.append(f),h.append(p),r==null||z.isCollapsed(r))l.val("");else{var m=C.string(e,r);l.val(m)}return d.val(""),setTimeout(function(){l.focus()}),h[0]},t}();function BO(){return Qm("w-e-update-link")}var vot=function(){function t(){this.title=tt("link.edit"),this.iconSvg=xI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=BO(),this.buttonId=BO()}return t.prototype.getSelectedLinkElem=function(e){var r=O.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return O.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var r=this.urlInputId,n=this.buttonId,o=Xt(nn(tt("link.url"),r),2),i=o[0],a=_(o[1]),u=Xt(uc(n,tt("common.ok")),1)[0];if(this.$content==null){var s=_("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=O.getSelectedNodeByType(e,"link"),p=d?Q.string(d):"",v=s.find("#"+r).val();(function(h,m,y){Pa(this,void 0,void 0,function(){var g,w;return Na(this,function(E){switch(E.label){case 0:return y?[4,TI("editLink",h,m,y)]:[2];case 1:return E.sent()?[4,PI("editLink",h,y)]:[2];case 2:return g=E.sent(),w={url:N3(g)},R.setNodes(h,w,{match:function(x){return O.checkNodeType(x,"link")}}),[2]}})})})(e,p,v),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),mot=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||R.unwrapNodes(e,{match:function(n){return O.checkNodeType(n,"link")}})},t}(),yot=function(){function t(){this.title=tt("link.view"),this.iconSvg=SI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var r=O.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},t}(),_O={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},bot={renderElems:[pot],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[hot],menus:[{key:"insertLink",factory:function(){return new got},config:_O},{key:"editLink",factory:function(){return new vot},config:_O},{key:"unLink",factory:function(){return new mot}},{key:"viewLink",factory:function(){return new yot}}],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(lot);if(!c)return!1;var f=c[1];return!(!f||!cot.test(f)&&!fot.test(f))}(a)){if(!j3(o)){var u=o.selection;if(u!=null){var s=C.string(o,u);NI(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1];return O.getNodeType(u)!=="link"?n([u,s]):Q.string(u)===""?R.removeNodes(o,{at:s}):n([u,s])},o}},wot=yt(1 .valueOf),Eot=At.RangeError,Cot=At.RangeError,jI=At.String,II=Math.floor,G4=yt(function(t){var e=Ce(Tn(this)),r="",n=cc(t);if(n<0||n==1/0)throw Eot("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r}),FO=yt("".slice),sf=yt(1 .toFixed),ul=function(t,e,r){return e===0?r:e%2==1?ul(t,e-1,r*t):ul(t*t,e/2,r)},Is=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=II(o/1e7)},Vb=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=II(n/e),n=n%e*1e7},TO=function(t){for(var e=6,r="";--e>=0;)if(r!==""||e===0||t[e]!==0){var n=jI(t[e]);r=r===""?n:r+G4("0",7-n.length)+n}return r};function PO(t,e){return"w-e-image-container-"+O.findKey(t,e).id}tr({target:"Number",proto:!0,forced:Se(function(){return sf(8e-5,3)!=="0.000"||sf(.9,0)!=="1"||sf(1.255,2)!=="1.25"||sf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Se(function(){sf({})})},{toFixed:function(t){var e,r,n,o,i=wot(this),a=cc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Cot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return jI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*ul(2,69,1))-69)<0?i*ul(2,-e,1):i/ul(2,e,1),r*=4503599627370496,(e=52-e)>0){for(Is(u,0,r),n=a;n>=7;)Is(u,1e7,0),n-=7;for(Is(u,ul(10,n,1),0),n=e-1;n>=23;)Vb(u,1<<23),n-=23;Vb(u,1<<n),Is(u,1,1),Vb(u,2),l=TO(u)}else Is(u,0,r),Is(u,1<<-e,0),l=TO(u)+G4("0",a);return a>0?s+((o=l.length)<=a?"0."+G4("0",a-o)+l:FO(l,0,o-a)+"."+FO(l,o-a)):s+l}});var xot={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,h=O.isNodeSelected(r,t),m={};d&&(m.width="100%"),v&&(m.height="100%");var y=wt("img",{style:m,src:o,alt:a,"data-href":s}),g=r.isDisabled();return h&&!g?function(w,E,x,D){var S=_("body"),k=PO(w,E),F=D.width,$=D.height,W=0,j=0,L=0,V=!1,q=null;function Y(ut){q=function(){var N=_("#"+k);if(N.length===0)throw new Error("Cannot find image container elem");return N}(),W=ut;var B=q.find("img");if(B.length===0)throw new Error("Cannot find image elem");j=B.width(),L=B.height(),S.on("mousemove",rt),S.on("mouseup",lt);var A=O.getHoverbar(w);A&&A.hideAndClean()}var rt=Wu(function(ut){ut.preventDefault();var B=ut.clientX,A=j+(V?W-B:B-W),N=L*(A/j);q!=null&&(A<=15||N<=15||(q.css("width",A+"px"),q.css("height",N+"px")))},100);function lt(ut){if(S.off("mousemove",rt),q!=null){var B=q.width().toFixed(2),A=q.height().toFixed(2),N={style:Ca(Ca({},E.style),{width:B+"px",height:A+"px"})};R.setNodes(w,N,{at:O.findPath(w,E)}),S.off("mouseup",lt)}}var st={};return F&&(st.width=F),$&&(st.height=$),wt("div",{id:k,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ut){var B=_(ut.target);B.hasClass("w-e-image-dragger")&&(ut.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(V=!0),Y(ut.clientX))}}},x,wt("div",{className:"w-e-image-dragger left-top"}),wt("div",{className:"w-e-image-dragger right-top"}),wt("div",{className:"w-e-image-dragger left-bottom"}),wt("div",{className:"w-e-image-dragger right-bottom"}))}(r,t,y,{width:d,height:v}):function(w,E,x,D){var S=D.width,k=D.height,F={};return S&&(F.width=S),k&&(F.height=k),wt("div",{id:PO(w,E),style:F,className:"w-e-image-container"},x)}(r,t,y,{width:d,height:v})}},Sot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:Xn(n,"width"),height:Xn(n,"height")},children:[{text:""}]}}};function LI(t,e,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Pa(this,void 0,void 0,function(){var i,a;return Na(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function RI(t,e,r){return Pa(this,void 0,void 0,function(){var n;return Na(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function ku(t,e,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Pa(this,void 0,void 0,function(){var o,i,a;return Na(this,function(u){switch(u.label){case 0:return[4,LI("insertImage",t,e,r,n)];case 1:return u.sent()?[4,RI("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:N3(o),href:n,alt:r,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),O.getSelectedNodeByType(t,"image")&&t.move(1),ty(t)||(R.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function ty(t){var e=t.selection;return e==null||!z.isCollapsed(e)||!!Xt(C.nodes(t,{match:function(r){var n=O.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!C.isVoid(t,r)},universal:!0}),1)[0]}function Xh(){return Qm("w-e-insert-image")}var Dot=function(){function t(){this.title=tt("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=Xh(),this.altInputId=Xh(),this.hrefInputId=Xh(),this.buttonId=Xh()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return ty(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=Xt(nn(tt("image.src"),o),2),l=s[0],c=_(s[1]),f=Xt(nn(tt("image.desc"),i),2),d=f[0],p=_(f[1]),v=Xt(nn(tt("image.link"),a),2),h=v[0],m=_(v[1]),y=Xt(uc(u,tt("common.ok")),1)[0];if(this.$content==null){var g=_("<div></div>");g.on("click","#"+u,function(E){E.preventDefault();var x=g.find("#"+o).val().trim(),D=g.find("#"+i).val().trim(),S=g.find("#"+a).val().trim();r.insertImage(e,x,D,S),e.hidePanelOrModal()}),this.$content=g}var w=this.$content;return w.empty(),w.append(l),w.append(d),w.append(h),w.append(y),c.val(""),p.val(""),m.val(""),setTimeout(function(){c.focus()}),w[0]},t.prototype.insertImage=function(e,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(e.restoreSelection(),this.isDisabled(e)||ku(e,r,n,o))},t}(),Aot=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||R.removeNodes(e,{match:function(n){return O.checkNodeType(n,"image")}})},t}();function Zh(){return Qm("w-e-edit-image")}var Oot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=xI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Zh(),this.altInputId=Zh(),this.hrefInputId=Zh(),this.buttonId=Zh()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Xt(nn(tt("image.src"),o),2),c=l[0],f=_(l[1]),d=Xt(nn(tt("image.desc"),i),2),p=d[0],v=_(d[1]),h=Xt(nn(tt("image.link"),a),2),m=h[0],y=_(h[1]),g=Xt(uc(u,tt("common.ok")),1)[0];if(this.$content==null){var w=_("<div></div>");w.on("click","#"+u,function(W){W.preventDefault();var j=w.find("#"+o).val(),L=w.find("#"+i).val(),V=w.find("#"+a).val();r.updateImage(e,j,L,V),e.hidePanelOrModal()}),this.$content=w}var E=this.$content;E.empty(),E.append(c),E.append(p),E.append(m),E.append(g);var x=s,D=x.src,S=x.alt,k=S===void 0?"":S,F=x.href,$=F===void 0?"":F;return f.val(D),v.val(k),y.val($),setTimeout(function(){f.focus()}),E[0]},t.prototype.updateImage=function(e,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Pa(this,void 0,void 0,function(){var f,d,p,v,h,m;return Na(this,function(y){switch(y.label){case 0:return[4,LI("editImage",a,u,s,l)];case 1:return y.sent()?[4,RI("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=O.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:Ca(Ca({},p===void 0?{}:p),c)},R.setNodes(a,v,{match:function(g){return O.checkNodeType(g,"image")}}),h=O.getSelectedNodeByType(a,"image"),(m=a.getMenuConfig("editImage").onUpdatedImage)&&m(h)),[2]}})})}(e,r,n,o,i))},t}(),kot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=SI,this.tag="button"}return t.prototype.getValue=function(e){var r=O.getSelectedNodeByType(e,"image");return r&&r.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},t}(),I3=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var o=O.getHoverbar(e);o&&o.hideAndClean();var i=n.style,a={style:Ca(Ca({},i===void 0?{}:i),{width:this.value,height:""})};R.setNodes(e,a,{match:function(u){return O.checkNodeType(u,"image")}})}}},t}(),Bot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return we(e,t),e}(I3),_ot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return we(e,t),e}(I3),Fot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return we(e,t),e}(I3),NO={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},Tot={renderElems:[xot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[Sot],menus:[{key:"insertImage",factory:function(){return new Dot},config:NO},{key:"deleteImage",factory:function(){return new Aot}},{key:"editImage",factory:function(){return new Oot},config:NO},{key:"viewImageLink",factory:function(){return new kot}},{key:"imageWidth30",factory:function(){return new Bot}},{key:"imageWidth50",factory:function(){return new _ot}},{key:"imageWidth100",factory:function(){return new Fot}}],editorPlugin:function(t){var e=t.isInline,r=t.isVoid;t.insertNode;var n=t;return n.isInline=function(o){return o.type==="image"||e(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},Pot={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=wt("div",{style:{margin:"5px 0"}},wt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wt("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(i){var a=O.findPath(r,t),u={checked:i.target.checked};R.setNodes(r,u,{at:a})}}})),wt("span",null,e));return o}},Not=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},t.prototype.exec=function(e,r){var n=this.isActive(e);R.setNodes(e,{type:n?"paragraph":"todo"})},t}(),jot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=_(t);(e=e.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Iot={renderElems:[Pot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=_(t).find("li"),r=_('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+e[0].innerHTML,r[0]}}],parseElemsHtml:[jot],menus:[{key:"todo",factory:function(){return new Not}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(n){var o=t.selection;if(o&&z.isCollapsed(o)){var i=O.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void R.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},r}},Lot={type:"blockquote",renderElem:function(t,e,r){return wt("blockquote",null,e)}},Rot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Mot=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Xt(C.nodes(e,{match:function(r){var n=O.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";R.setNodes(e,{type:n},{mode:"highest"})}},t}(),Vot={key:"blockquote",factory:function(){return new Mot}},zot=yt([].slice),$ot=k3("slice"),Hot=dn("species"),zb=At.Array,Uot=Math.max;tr({target:"Array",proto:!0,forced:!$ot},{slice:function(t,e){var r,n,o,i=sc(this),a=Zm(i),u=qd(t,a),s=qd(e===void 0?a:e,a);if(d0(i)&&(r=i.constructor,(O3(r)&&(r===zb||d0(r.prototype))||wo(r)&&(r=r[Hot])===null)&&(r=void 0),r===zb||r===void 0))return zot(i,u,s);for(n=new(r===void 0?zb:r)(Uot(s-u,0)),o=0;u<s;u++,o++)u in i&&mI(n,o,i[u]);return n.length=o,n}});var Wot={renderElems:[Lot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Rot],menus:[Vot],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(o==null)return e();var i=Xt(C.nodes(t,{match:function(c){return O.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=O.findPath(t,a),s=C.end(t,u);if(_t.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
|
|
102
|
+
`)return t.deleteBackward("character"),void R.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
|
|
103
|
+
`)},n}},Got=function(){function t(){this.title=tt("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 t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(C.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var r=_('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=_(a).text();e.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=_("<li>"+i+"</li>");n.append(a)}),n[0]},t}(),qot={menus:[{key:"emotion",factory:function(){return new Got},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Kot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Yot={selector:"font",preParseHtml:function(t){var e=_(t);if(dc(e)!=="font")return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",Kot[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}},Xot=yt("".indexOf);tr({target:"String",proto:!0,forced:!OI("includes")},{includes:function(t){return!!~Xot(Ce(Tn(this)),Ce(AI(t)),arguments.length>1?arguments[1]:void 0)}});var Fi,qg,Jh=function(t){return t&&t.Math==Math&&t},Ft=Jh(typeof globalThis=="object"&&globalThis)||Jh(typeof window=="object"&&window)||Jh(typeof self=="object"&&self)||Jh(typeof l0=="object"&&l0)||function(){return this}()||Function("return this")(),L3=Function.prototype,jO=L3.apply,Zot=L3.bind,IO=L3.call,MI=typeof Reflect=="object"&&Reflect.apply||(Zot?IO.bind(jO):function(){return IO.apply(jO,arguments)}),VI=Function.prototype,q4=VI.bind,K4=VI.call,Jot=q4&&q4.bind(K4),Fe=q4?function(t){return t&&Jot(K4,t)}:function(t){return t&&function(){return K4.apply(t,arguments)}},Or=function(t){return typeof t=="function"},ln=function(t){try{return!!t()}catch{return!0}},Gr=!ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),lf=Function.prototype.call,Do=lf.bind?lf.bind(lf):function(){return lf.apply(lf,arguments)},LO={}.propertyIsEnumerable,RO=Object.getOwnPropertyDescriptor,Qot=RO&&!LO.call({1:2},1)?function(t){var e=RO(this,t);return!!e&&e.enumerable}:LO,R3={f:Qot},Ju=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},tit=Fe({}.toString),eit=Fe("".slice),Bu=function(t){return eit(tit(t),8,-1)},$b=Ft.Object,rit=Fe("".split),zI=ln(function(){return!$b("z").propertyIsEnumerable(0)})?function(t){return Bu(t)=="String"?rit(t,""):$b(t)}:$b,nit=Ft.TypeError,M3=function(t){if(t==null)throw nit("Can't call method on "+t);return t},Ro=function(t){return zI(M3(t))},Wn=function(t){return typeof t=="object"?t!==null:Or(t)},bn={},MO=function(t){return Or(t)?t:void 0},Wp=function(t,e){return arguments.length<2?MO(bn[t])||MO(Ft[t]):bn[t]&&bn[t][e]||Ft[t]&&Ft[t][e]},$I=Fe({}.isPrototypeOf),Hb=Wp("navigator","userAgent")||"",VO=Ft.process,zO=Ft.Deno,$O=VO&&VO.versions||zO&&zO.version,HO=$O&&$O.v8;HO&&(qg=(Fi=HO.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!qg&&Hb&&(!(Fi=Hb.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=Hb.match(/Chrome\/(\d+)/))&&(qg=+Fi[1]);var g0=qg,po=!!Object.getOwnPropertySymbols&&!ln(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&g0&&g0<41}),V3=po&&!Symbol.sham&&typeof Symbol.iterator=="symbol",oit=Ft.Object,vl=V3?function(t){return typeof t=="symbol"}:function(t){var e=Wp("Symbol");return Or(e)&&$I(e.prototype,oit(t))},iit=Ft.String,ait=Ft.TypeError,HI=function(t){if(Or(t))return t;throw ait(function(e){try{return iit(e)}catch{return"Object"}}(t)+" is not a function")},uit=Ft.TypeError,sit=Object.defineProperty,ia=Ft["__core-js_shared__"]||function(t,e){try{sit(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),ds=qm(function(t){(t.exports=function(e,r){return ia[e]||(ia[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),lit=Ft.Object,Gp=function(t){return lit(M3(t))},cit=Fe({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return cit(Gp(t),e)},fit=0,dit=Math.random(),pit=Fe(1 .toString),v0=function(t){return"Symbol("+(t===void 0?"":t)+")_"+pit(++fit+dit,36)},cf=ds("wks"),_u=Ft.Symbol,UO=_u&&_u.for,hit=V3?_u:_u&&_u.withoutSetter||v0,pn=function(t){if(!Yt(cf,t)||!po&&typeof cf[t]!="string"){var e="Symbol."+t;po&&Yt(_u,t)?cf[t]=_u[t]:cf[t]=V3&&UO?UO(e):hit(e)}return cf[t]},git=Ft.TypeError,vit=pn("toPrimitive"),pc=function(t){var e=function(r,n){if(!Wn(r)||vl(r))return r;var o,i,a=(o=r[vit])==null?void 0:HI(o);if(a){if(i=Do(a,r,n),!Wn(i)||vl(i))return i;throw git("Can't convert object to primitive value")}return function(u,s){var l,c;if(Or(l=u.toString)&&!Wn(c=Do(l,u))||Or(l=u.valueOf)&&!Wn(c=Do(l,u)))return c;throw uit("Can't convert object to primitive value")}(r)}(t,"string");return vl(e)?e:e+""},Y4=Ft.document,mit=Wn(Y4)&&Wn(Y4.createElement),UI=function(t){return mit?Y4.createElement(t):{}},WI=!Gr&&!ln(function(){return Object.defineProperty(UI("div"),"a",{get:function(){return 7}}).a!=7}),WO=Object.getOwnPropertyDescriptor,z3={f:Gr?WO:function(t,e){if(t=Ro(t),e=pc(e),WI)try{return WO(t,e)}catch{}if(Yt(t,e))return Ju(!Do(R3.f,t,e),t[e])}},yit=/#|\.prototype\./,qp=function(t,e){var r=wit[bit(t)];return r==Cit||r!=Eit&&(Or(e)?ln(e):!!e)},bit=qp.normalize=function(t){return String(t).replace(yit,".").toLowerCase()},wit=qp.data={},Eit=qp.NATIVE="N",Cit=qp.POLYFILL="P",xit=qp,GO=Fe(Fe.bind),GI=function(t,e){return HI(t),e===void 0?t:GO?GO(t,e):function(){return t.apply(e,arguments)}},Sit=Ft.String,Dit=Ft.TypeError,Qu=function(t){if(Wn(t))return t;throw Dit(Sit(t)+" is not an object")},Ait=Ft.TypeError,qO=Object.defineProperty,ps={f:Gr?qO:function(t,e,r){if(Qu(t),e=pc(e),Qu(r),WI)try{return qO(t,e,r)}catch{}if("get"in r||"set"in r)throw Ait("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},go=Gr?function(t,e,r){return ps.f(t,e,Ju(1,r))}:function(t,e,r){return t[e]=r,t},Oit=z3.f,kit=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return MI(t,this,arguments)};return e.prototype=t.prototype,e},Vi=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Ft:d?Ft[c]:(Ft[c]||{}).prototype,h=f?bn:bn[c]||go(bn,c,{})[c],m=h.prototype;for(o in e)r=!xit(f?o:c+(d?".":"#")+o,t.forced)&&v&&Yt(v,o),a=h[o],r&&(u=t.noTargetGet?(l=Oit(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?GI(i,Ft):t.wrap&&r?kit(i):p&&Or(i)?Fe(i):i,(t.sham||i&&i.sham||a&&a.sham)&&go(s,"sham",!0),go(h,o,s),p&&(Yt(bn,n=c+"Prototype")||go(bn,n,{}),go(bn[n],o,i),t.real&&m&&!m[o]&&go(m,o,i)))},m0=Array.isArray||function(t){return Bu(t)=="Array"},Bit=Math.ceil,_it=Math.floor,$3=function(t){var e=+t;return e!=e||e===0?0:(e>0?_it:Bit)(e)},Fit=Math.min,ey=function(t){return(e=t.length)>0?Fit($3(e),9007199254740991):0;var e},X4=function(t,e,r){var n=pc(e);n in t?ps.f(t,n,Ju(0,r)):t[n]=r},qI={};qI[pn("toStringTag")]="z";var H3=String(qI)==="[object z]",Tit=pn("toStringTag"),Pit=Ft.Object,Nit=Bu(function(){return arguments}())=="Arguments",ry=H3?Bu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Pit(t),Tit))=="string"?r:Nit?Bu(e):(n=Bu(e))=="Object"&&Or(e.callee)?"Arguments":n},jit=Fe(Function.toString);Or(ia.inspectSource)||(ia.inspectSource=function(t){return jit(t)});var KI=ia.inspectSource,YI=function(){},Iit=[],XI=Wp("Reflect","construct"),U3=/^\s*(?:class|function)\b/,Lit=Fe(U3.exec),Rit=!U3.exec(YI),ff=function(t){if(!Or(t))return!1;try{return XI(YI,Iit,t),!0}catch{return!1}},Mit=!XI||ln(function(){var t;return ff(ff.call)||!ff(Object)||!ff(function(){t=!0})||t})?function(t){if(!Or(t))return!1;switch(ry(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rit||!!Lit(U3,KI(t))}:ff,Vit=pn("species"),KO=Ft.Array,ZI=function(t,e){return new(function(r){var n;return m0(r)&&(n=r.constructor,(Mit(n)&&(n===KO||m0(n.prototype))||Wn(n)&&(n=n[Vit])===null)&&(n=void 0)),n===void 0?KO:n}(t))(e===0?0:e)},zit=pn("species"),JI=pn("isConcatSpreadable"),YO=Ft.TypeError,$it=g0>=51||!ln(function(){var t=[];return t[JI]=!1,t.concat()[0]!==t}),Hit=g0>=51||!ln(function(){var t=[];return(t.constructor={})[zit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Uit=function(t){if(!Wn(t))return!1;var e=t[JI];return e!==void 0?!!e:m0(t)};Vi({target:"Array",proto:!0,forced:!$it||!Hit},{concat:function(t){var e,r,n,o,i,a=Gp(this),u=ZI(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Uit(i=e===-1?a:arguments[e])){if(s+(o=ey(i))>9007199254740991)throw YO("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&X4(u,s,i[r])}else{if(s>=9007199254740991)throw YO("Maximum allowed index exceeded");X4(u,s++,i)}return u.length=s,u}});var Qh,Wit=Ft.String,y0=function(t){if(ry(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Wit(t)},Git=Math.max,qit=Math.min,Z4=function(t,e){var r=$3(t);return r<0?Git(r+e,0):qit(r,e)},Kit=function(t){return function(e,r,n){var o,i=Ro(e),a=ey(i),u=Z4(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Yit={indexOf:Kit(!1)},Kp={},Xit=Yit.indexOf,XO=Fe([].push),QI=function(t,e){var r,n=Ro(t),o=0,i=[];for(r in n)!Yt(Kp,r)&&Yt(n,r)&&XO(i,r);for(;e.length>o;)Yt(n,r=e[o++])&&(~Xit(i,r)||XO(i,r));return i},b0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],W3=Object.keys||function(t){return QI(t,b0)},Zit=Gr?Object.defineProperties:function(t,e){Qu(t);for(var r,n=Ro(e),o=W3(e),i=o.length,a=0;i>a;)ps.f(t,r=o[a++],n[r]);return t},Jit=Wp("document","documentElement"),ZO=ds("keys"),ny=function(t){return ZO[t]||(ZO[t]=v0(t))},tL=ny("IE_PROTO"),Ub=function(){},eL=function(t){return"<script>"+t+"<\/script>"},JO=function(t){t.write(eL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Kg=function(){try{Qh=new ActiveXObject("htmlfile")}catch{}var t,e;Kg=typeof document<"u"?document.domain&&Qh?JO(Qh):((e=UI("iframe")).style.display="none",Jit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(eL("document.F=Object")),t.close(),t.F):JO(Qh);for(var r=b0.length;r--;)delete Kg.prototype[b0[r]];return Kg()};Kp[tL]=!0;var w0,cd,E0,ts=Object.create||function(t,e){var r;return t!==null?(Ub.prototype=Qu(t),r=new Ub,Ub.prototype=null,r[tL]=t):r=Kg(),e===void 0?r:Zit(r,e)},Qit=b0.concat("length","prototype"),rL={f:Object.getOwnPropertyNames||function(t){return QI(t,Qit)}},tat=Ft.Array,eat=Math.max,QO=rL.f,tk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nL={f:function(t){return tk&&Bu(t)=="Window"?function(e){try{return QO(e)}catch{return function(n,o,i){for(var a=ey(n),u=Z4(void 0,a),s=Z4(a,a),l=tat(eat(s-u,0)),c=0;u<s;u++,c++)X4(l,c,n[u]);return l.length=c,l}(tk)}}(t):QO(Ro(t))}},Wb={f:Object.getOwnPropertySymbols},rat=Fe([].slice),C0=function(t,e,r,n){go(t,e,r)},G3={f:pn},nat=ps.f,je=function(t){var e=bn.Symbol||(bn.Symbol={});Yt(e,t)||nat(e,t,{value:G3.f(t)})},oat=H3?{}.toString:function(){return"[object "+ry(this)+"]"},iat=ps.f,ek=pn("toStringTag"),x0=function(t,e,r,n){if(t){var o=r?t:t.prototype;Yt(o,ek)||iat(o,ek,{configurable:!0,value:e}),n&&!H3&&go(o,"toString",oat)}},rk=Ft.WeakMap,aat=Or(rk)&&/native code/.test(KI(rk)),J4=Ft.TypeError,uat=Ft.WeakMap;if(aat||ia.state){var Ya=ia.state||(ia.state=new uat),sat=Fe(Ya.get),nk=Fe(Ya.has),lat=Fe(Ya.set);w0=function(t,e){if(nk(Ya,t))throw new J4("Object already initialized");return e.facade=t,lat(Ya,t,e),e},cd=function(t){return sat(Ya,t)||{}},E0=function(t){return nk(Ya,t)}}else{var Ls=ny("state");Kp[Ls]=!0,w0=function(t,e){if(Yt(t,Ls))throw new J4("Object already initialized");return e.facade=t,go(t,Ls,e),e},cd=function(t){return Yt(t,Ls)?t[Ls]:{}},E0=function(t){return Yt(t,Ls)}}var hc={set:w0,get:cd,has:E0,enforce:function(t){return E0(t)?cd(t):w0(t,{})},getterFor:function(t){return function(e){var r;if(!Wn(e)||(r=cd(e)).type!==t)throw J4("Incompatible receiver, "+t+" required");return r}}},ok=Fe([].push),Ti=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Gp(s),h=zI(v),m=GI(l,c),y=ey(h),g=0,w=f||ZI,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:ok(E,d)}else switch(t){case 4:return!1;case 7:ok(E,d)}return i?-1:n||o?o:E}},oy=[Ti(0),Ti(1),Ti(2),Ti(3),Ti(4),Ti(5),Ti(6),Ti(7)][0],Vr=ny("hidden"),ik=pn("toPrimitive"),cat=hc.set,ak=hc.getterFor("Symbol"),Gn=Object.prototype,Hi=Ft.Symbol,Yi=Hi&&Hi.prototype,uk=Ft.TypeError,Gb=Ft.QObject,df=Wp("JSON","stringify"),oL=z3.f,Ui=ps.f,iL=nL.f,fat=R3.f,aL=Fe([].push),fi=ds("symbols"),Yp=ds("op-symbols"),qb=ds("string-to-symbol-registry"),Kb=ds("symbol-to-string-registry"),dat=ds("wks"),Yb=!Gb||!Gb.prototype||!Gb.prototype.findChild,Q4=Gr&&ln(function(){return ts(Ui({},"a",{get:function(){return Ui(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=oL(Gn,e);n&&delete Gn[e],Ui(t,e,r),n&&t!==Gn&&Ui(Gn,e,n)}:Ui,Xb=function(t,e){var r=fi[t]=ts(Yi);return cat(r,{type:"Symbol",tag:t,description:e}),Gr||(r.description=e),r},S0=function(t,e,r){t===Gn&&S0(Yp,e,r),Qu(t);var n=pc(e);return Qu(r),Yt(fi,n)?(r.enumerable?(Yt(t,Vr)&&t[Vr][n]&&(t[Vr][n]=!1),r=ts(r,{enumerable:Ju(0,!1)})):(Yt(t,Vr)||Ui(t,Vr,Ju(1,{})),t[Vr][n]=!0),Q4(t,n,r)):Ui(t,n,r)},sk=function(t,e){Qu(t);var r=Ro(e),n=W3(r).concat(tC(r));return oy(n,function(o){Gr&&!Do(uL,r,o)||S0(t,o,r[o])}),t},uL=function(t){var e=pc(t),r=Do(fat,this,e);return!(this===Gn&&Yt(fi,e)&&!Yt(Yp,e))&&(!(r||!Yt(this,e)||!Yt(fi,e)||Yt(this,Vr)&&this[Vr][e])||r)},lk=function(t,e){var r=Ro(t),n=pc(e);if(r!==Gn||!Yt(fi,n)||Yt(Yp,n)){var o=oL(r,n);return!o||!Yt(fi,n)||Yt(r,Vr)&&r[Vr][n]||(o.enumerable=!0),o}},ck=function(t){var e=iL(Ro(t)),r=[];return oy(e,function(n){Yt(fi,n)||Yt(Kp,n)||aL(r,n)}),r},tC=function(t){var e=t===Gn,r=iL(e?Yp:Ro(t)),n=[];return oy(r,function(o){!Yt(fi,o)||e&&!Yt(Gn,o)||aL(n,fi[o])}),n};if(po||(Yi=(Hi=function(){if($I(Yi,this))throw uk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?y0(arguments[0]):void 0,e=v0(t),r=function(n){this===Gn&&Do(r,Yp,n),Yt(this,Vr)&&Yt(this[Vr],e)&&(this[Vr][e]=!1),Q4(this,e,Ju(1,n))};return Gr&&Yb&&Q4(Gn,e,{configurable:!0,set:r}),Xb(e,t)}).prototype,C0(Yi,"toString",function(){return ak(this).tag}),C0(Hi,"withoutSetter",function(t){return Xb(v0(t),t)}),R3.f=uL,ps.f=S0,z3.f=lk,rL.f=nL.f=ck,Wb.f=tC,G3.f=function(t){return Xb(pn(t),t)},Gr&&Ui(Yi,"description",{configurable:!0,get:function(){return ak(this).description}})),Vi({global:!0,wrap:!0,forced:!po,sham:!po},{Symbol:Hi}),oy(W3(dat),function(t){je(t)}),Vi({target:"Symbol",stat:!0,forced:!po},{for:function(t){var e=y0(t);if(Yt(qb,e))return qb[e];var r=Hi(e);return qb[e]=r,Kb[r]=e,r},keyFor:function(t){if(!vl(t))throw uk(t+" is not a symbol");if(Yt(Kb,t))return Kb[t]},useSetter:function(){Yb=!0},useSimple:function(){Yb=!1}}),Vi({target:"Object",stat:!0,forced:!po,sham:!Gr},{create:function(t,e){return e===void 0?ts(t):sk(ts(t),e)},defineProperty:S0,defineProperties:sk,getOwnPropertyDescriptor:lk}),Vi({target:"Object",stat:!0,forced:!po},{getOwnPropertyNames:ck,getOwnPropertySymbols:tC}),Vi({target:"Object",stat:!0,forced:ln(function(){Wb.f(1)})},{getOwnPropertySymbols:function(t){return Wb.f(Gp(t))}}),df){var pat=!po||ln(function(){var t=Hi();return df([t])!="[null]"||df({a:t})!="{}"||df(Object(t))!="{}"});Vi({target:"JSON",stat:!0,forced:pat},{stringify:function(t,e,r){var n=rat(arguments),o=e;if((Wn(e)||t!==void 0)&&!vl(t))return m0(e)||(e=function(i,a){if(Or(o)&&(a=Do(o,this,i,a)),!vl(a))return a}),n[1]=e,MI(df,null,n)}})}if(!Yi[ik]){var hat=Yi.valueOf;C0(Yi,ik,function(t){return Do(hat,this)})}x0(Hi,"Symbol"),Kp[Vr]=!0,je("asyncIterator"),je("hasInstance"),je("isConcatSpreadable"),je("iterator"),je("match"),je("matchAll"),je("replace"),je("search"),je("species"),je("split"),je("toPrimitive"),je("toStringTag"),je("unscopables"),x0(Ft.JSON,"JSON",!0);var Xi,fk,dk,gat=bn.Symbol,Fu={},sL=Function.prototype,vat=Gr&&Object.getOwnPropertyDescriptor,pk=Yt(sL,"name"),mat={PROPER:pk&&(function(){}).name==="something",CONFIGURABLE:pk&&(!Gr||Gr&&vat(sL,"name").configurable)},yat=!ln(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),hk=ny("IE_PROTO"),eC=Ft.Object,bat=eC.prototype,rC=yat?eC.getPrototypeOf:function(t){var e=Gp(t);if(Yt(e,hk))return e[hk];var r=e.constructor;return Or(r)&&e instanceof r?r.prototype:e instanceof eC?bat:null},nC=pn("iterator"),lL=!1;[].keys&&("next"in(dk=[].keys())?(fk=rC(rC(dk)))!==Object.prototype&&(Xi=fk):lL=!0);var wat=Xi==null||ln(function(){var t={};return Xi[nC].call(t)!==t});Xi=wat?{}:ts(Xi),Or(Xi[nC])||C0(Xi,nC,function(){return this});var cL={IteratorPrototype:Xi,BUGGY_SAFARI_ITERATORS:lL},Eat=cL.IteratorPrototype,Cat=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Fe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var xat=mat.PROPER,Zb=cL.BUGGY_SAFARI_ITERATORS,Sat=pn("iterator"),Dat=function(){return this},fL=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=ts(Eat,{next:Ju(1,g)}),x0(m,E,!1,!0),Fu[E]=Cat})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!Zb&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Sat]||d["@@iterator"]||o&&d[o],v=!Zb&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=rC(h.call(new t)))!==Object.prototype&&u.next&&(x0(u,c,!0,!0),Fu[c]=Dat),xat&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Do(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Vi({target:e,proto:!0,forced:Zb||f},s)),Fu[e]=v,s},Aat=hc.set,Oat=hc.getterFor("Array Iterator");fL(Array,"Array",function(t,e){Aat(this,{type:"Array Iterator",target:Ro(t),index:0,kind:e})},function(){var t=Oat(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),Fu.Arguments=Fu.Array;var gk=pn("toStringTag");for(var Jb 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 vk=Ft[Jb],Qb=vk&&vk.prototype;Qb&&ry(Qb)!==gk&&go(Qb,gk,Jb),Fu[Jb]=Fu.Array}var kat=gat;je("asyncDispose"),je("dispose"),je("matcher"),je("metadata"),je("observable"),je("patternMatch"),je("replaceAll");var tg=kat,Bat=Fe("".charAt),mk=Fe("".charCodeAt),_at=Fe("".slice),Fat=function(t){return function(e,r){var n,o,i=y0(M3(e)),a=$3(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=mk(i,a))<55296||n>56319||a+1===u||(o=mk(i,a+1))<56320||o>57343?t?Bat(i,a):n:t?_at(i,a,a+2):o-56320+(n-55296<<10)+65536}},Tat=Fat(!0),Pat=hc.set,Nat=hc.getterFor("String Iterator");fL(String,"String",function(t){Pat(this,{type:"String Iterator",string:y0(t),index:0})},function(){var t,e=Nat(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Tat(r,n),e.index+=t.length,{value:t,done:!1})});var jat=G3.f("iterator"),Iat=qm(function(t){function e(r){return typeof tg=="function"&&typeof jat=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof tg=="function"&&n.constructor===tg&&n!==tg.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),dL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Iat),Lat=Xm.EXISTS,Rat=lc.f,pL=Function.prototype,Mat=yt(pL.toString),hL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vat=yt(hL.exec);Qn&&!Lat&&Rat(pL,"name",{configurable:!0,get:function(){try{return Vat(hL,Mat(this))[1]}catch{return""}}});var gL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n&&n[r]?n[r]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Xt(C.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0])},t.prototype.exec=function(e,r){var n=this.mark;r?e.addMark(n,r):e.removeMark(n)},t}(),zat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("fontSize.title"),r.iconSvg=dnt,r.mark="fontSize",r}return we(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(dL(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(gL),$at=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("fontFamily.title"),r.iconSvg=pnt,r.mark="fontFamily",r.selectPanelWidth=150,r}return we(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(dL(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(gL),Hat={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,i=e;return n&&Zu(i,{fontSize:n}),o&&Zu(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var r,n=t,o=n.fontSize,i=n.fontFamily;return o||i?((P3(e)||dc(r=_(e))!=="span")&&(r=_("<span>"+e+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),fc(r)):e},preParseHtml:[Yot],parseStyleHtml:function(t,e,r){var n=_(t);if(!it.isText(e))return e;var o=e,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Xn(n,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Xn(n,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new zat},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 $at},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Uat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=_(t),r=Xn(e,"padding-left");return/\dem/.test(r)&&e.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}},vL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var r=Xt(C.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":Xt(n,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=Xt(C.nodes(e,{match:function(n){var o=O.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t}(),Wat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("indent.decrease"),r.iconSvg=hnt,r}return we(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},e.prototype.exec=function(r,n){R.setNodes(r,{indent:null},{match:function(o){return ft.isElement(o)}})},e}(vL),Gat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("indent.increase"),r.iconSvg=gnt,r}return we(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},e.prototype.exec=function(r,n){R.setNodes(r,{indent:"2em"},{match:function(o){return ft.isElement(o)},mode:"highest"})},e}(vL),qat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.indent,n=e;return r&&Zu(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.indent;if(!r)return e;var n=_(e);return n.css("text-indent",r),fc(n)},preParseHtml:[Uat],parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e))return e;var o=e,i=Xn(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Gat}},{key:"delIndent",factory:function(){return new Wat}}]},iy=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=Xt(C.nodes(e,{match:function(n){var o=O.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},t}(),Kat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.left"),r.iconSvg=vnt,r}return we(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"left"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(iy),Yat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.right"),r.iconSvg=mnt,r}return we(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"right"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(iy),Xat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.center"),r.iconSvg=ynt,r}return we(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"center"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(iy),Zat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.justify"),r.iconSvg=bnt,r}return we(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"justify"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(iy),Jat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.textAlign,n=e;return r&&Zu(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=_(e);return n.css("text-align",r),fc(n)},parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e))return e;var o=e,i=Xn(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Kat}},{key:"justifyRight",factory:function(){return new Yat}},{key:"justifyCenter",factory:function(){return new Xat}},{key:"justifyJustify",factory:function(){return new Zat}}]},Qat=function(){function t(){this.title=tt("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 t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.getMatchNode=function(e){var r=Xt(C.nodes(e,{match:function(n){var o=O.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getMatchNode(e);return r==null?"":ft.isElement(r)&&r.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,r){R.setNodes(e,{lineHeight:r.toString()},{mode:"highest"})},t}(),tut={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.lineHeight,n=e;return r&&Zu(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=_(e);return n.css("line-height",r),fc(n)},parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e))return e;var o=e,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Xn(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Qat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},eut=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.redo=="function"&&e.redo()},t}(),rut=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.undo=="function"&&e.undo()},t}(),nut={menus:[{key:"redo",factory:function(){return new eut}},{key:"undo",factory:function(){return new rut}}]},out={type:"divider",renderElem:function(t,e,r){return Il("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:O.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Il("hr")])}},iut=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var n=O.getNodeType(r);return n==="table"||n==="pre"||void 0})},t.prototype.exec=function(e,r){R.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),aut={renderElems:[out],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new iut}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="divider"||e(o)},n.normalizeNode=function(o){var i=Xt(o,2),a=i[0],u=i[1];if(O.getNodeType(a)!=="divider")return r([a,u]);O.isLastNode(n,a)&&R.insertNodes(n,O.genEmptyParagraph(),{at:[u[0]+1]})},n}},uut=Jm.map;tr({target:"Array",proto:!0,forced:!k3("map")},{map:function(t){return uut(this,t,arguments.length>1?arguments[1]:void 0)}});var sut=yt([].join),lut=Km!=Object,cut=wI("join",",");tr({target:"Array",proto:!0,forced:lut||!cut},{join:function(t){return sut(sc(this),t===void 0?",":t)}});var fut=function(){function t(){this.title=tt("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 t.prototype.getSelectCodeElem=function(e){var r=O.getSelectedNodeByType(e,"code");if(r==null)return null;var n=O.getParentNode(e,r);return n==null||O.getNodeType(n)!=="pre"?null:r},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);return r==null?"":r.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var r=O.getSelectedElems(e);return!!r.some(function(n){return e.isVoid(n)})||!r.some(function(n){var o=O.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,r){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,r.toString())},t.prototype.changeToPlainText=function(e){var r=this.getSelectCodeElem(e);if(r!=null){var n=Q.string(r);R.removeNodes(e,{mode:"highest"});var o=n.split(`
|
|
104
|
+
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});R.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,r){var n,o,i=[],a=C.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=bI(a),s=u.next();!s.done;s=u.next()){var l=Xt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}R.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
|
|
105
|
+
`)}]}]};R.insertNodes(e,c,{mode:"highest"})},t}(),dut={key:"codeBlock",factory:function(){return new fut}};tr({target:"String",proto:!0,forced:Xf("anchor")},{anchor:function(t){return Yf(this,"a","name",t)}}),F3("match",function(t,e,r){return[function(n){var o=Tn(this),i=n==null?void 0:Ym(n,t);return i?Ie(i,n,o):new RegExp(n)[t](Ce(o))},function(n){var o=on(this),i=Ce(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Yd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Yd(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=T3(i,zp(o.lastIndex),u)),c++}return c===0?null:l}]});var put={type:"pre",renderElem:function(t,e,r){return wt("pre",null,e)}},hut={type:"code",renderElem:function(t,e,r){return wt("code",null,e)}},gut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return O.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return O.getNodeType(o)==="code"})}}},vut={menus:[dut],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=O.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=Q.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
|
|
106
|
+
`),h=v.length;return h===0?"":v[h-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
|
|
107
|
+
`+s)}}o.insertText(`
|
|
108
|
+
`)}else e()},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l==="code"&&s.length<=1&&R.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(O.isLastNode(o,u)&&R.insertNodes(o,O.genEmptyParagraph(),{at:[s[0]+1]}),O.getNodeType(u.children[0])!=="code"&&(R.unwrapNodes(o),R.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(O.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");C.insertText(o,a)}else n(i)},o},renderElems:[put,hut],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=_(t);if(dc(e)!=="code")return t;var r=e.find("xmp");if(r.length===0)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:_(t)[0].textContent||""}]}}},gut]},mut=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,r){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),yut={menus:[{key:"fullScreen",factory:function(){return new mut}}]},but=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!!z.isExpanded(r)},t.prototype.exec=function(e,r){var n=e.selection;if(n!=null){var o=[n.anchor.path[0]];R.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(C.start(e,o))}},t}(),wut=[_nt,sot,Hat,qat,Jat,tut,Tot,aut,qot,bot,vut,Wot,not,Qrt,Iot,nut,yut,{menus:[{key:"enter",factory:function(){return new but}}]}];Kr("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Kr("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var yk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q3(t){var e={exports:{}};return t(e,e.exports),e.exports}var Pi,Yg,eg=function(t){return t&&t.Math==Math&&t},Et=eg(typeof globalThis=="object"&&globalThis)||eg(typeof window=="object"&&window)||eg(typeof self=="object"&&self)||eg(typeof yk=="object"&&yk)||function(){return this}()||Function("return this")(),mL=Function.prototype,oC=mL.bind,iC=mL.call,Eut=oC&&oC.bind(iC),jt=oC?function(t){return t&&Eut(iC,t)}:function(t){return t&&function(){return iC.apply(t,arguments)}},Oe=function(t){try{return!!t()}catch{return!0}},Cut=jt({}.toString),xut=jt("".slice),ai=function(t){return xut(Cut(t),8,-1)},t2=Et.Object,Sut=jt("".split),yL=Oe(function(){return!t2("z").propertyIsEnumerable(0)})?function(t){return ai(t)=="String"?Sut(t,""):t2(t)}:t2,Dut=Et.TypeError,ay=function(t){if(t==null)throw Dut("Can't call method on "+t);return t},gc=function(t){return yL(ay(t))},Aut=Object.defineProperty,K3=function(t,e){try{Aut(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},aa=Et["__core-js_shared__"]||K3("__core-js_shared__",{}),Y3=q3(function(t){(t.exports=function(e,r){return aa[e]||(aa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Out=Et.Object,Xp=function(t){return Out(ay(t))},kut=jt({}.hasOwnProperty),er=Object.hasOwn||function(t,e){return kut(Xp(t),e)},But=0,_ut=Math.random(),Fut=jt(1 .toString),X3=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Fut(++But+_ut,36)},Te=function(t){return typeof t=="function"},Tut=function(t){return Te(t)?t:void 0},Zp=function(t,e){return arguments.length<2?Tut(Et[t]):Et[t]&&Et[t][e]},e2=Zp("navigator","userAgent")||"",bk=Et.process,wk=Et.Deno,Ek=bk&&bk.versions||wk&&wk.version,Ck=Ek&&Ek.v8;Ck&&(Yg=(Pi=Ck.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!Yg&&e2&&(!(Pi=e2.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=e2.match(/Chrome\/(\d+)/))&&(Yg=+Pi[1]);var rg,aC=Yg,uC=!!Object.getOwnPropertySymbols&&!Oe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&aC&&aC<41}),Z3=uC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pf=Y3("wks"),Tu=Et.Symbol,xk=Tu&&Tu.for,Put=Z3?Tu:Tu&&Tu.withoutSetter||X3,gr=function(t){if(!er(pf,t)||!uC&&typeof pf[t]!="string"){var e="Symbol."+t;uC&&er(Tu,t)?pf[t]=Tu[t]:pf[t]=Z3&&xk?xk(e):Put(e)}return pf[t]},_e=function(t){return typeof t=="object"?t!==null:Te(t)},Nut=Et.String,jut=Et.TypeError,Yr=function(t){if(_e(t))return t;throw jut(Nut(t)+" is not an object")},xa=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sC=Et.document,Iut=_e(sC)&&_e(sC.createElement),J3=function(t){return Iut?sC.createElement(t):{}},bL=!xa&&!Oe(function(){return Object.defineProperty(J3("div"),"a",{get:function(){return 7}}).a!=7}),hf=Function.prototype.call,ur=hf.bind?hf.bind(hf):function(){return hf.apply(hf,arguments)},D0=jt({}.isPrototypeOf),Lut=Et.Object,r2=Z3?function(t){return typeof t=="symbol"}:function(t){var e=Zp("Symbol");return Te(e)&&D0(e.prototype,Lut(t))},Rut=Et.String,lC=function(t){try{return Rut(t)}catch{return"Object"}},Mut=Et.TypeError,Q3=function(t){if(Te(t))return t;throw Mut(lC(t)+" is not a function")},Xd=function(t,e){var r=t[e];return r==null?void 0:Q3(r)},Vut=Et.TypeError,zut=Et.TypeError,$ut=gr("toPrimitive"),t5=function(t){var e=function(r,n){if(!_e(r)||r2(r))return r;var o,i=Xd(r,$ut);if(i){if(o=ur(i,r,n),!_e(o)||r2(o))return o;throw zut("Can't convert object to primitive value")}return function(a,u){var s,l;if(Te(s=a.toString)&&!_e(l=ur(s,a))||Te(s=a.valueOf)&&!_e(l=ur(s,a)))return l;throw Vut("Can't convert object to primitive value")}(r)}(t,"string");return r2(e)?e:e+""},Hut=Et.TypeError,Sk=Object.defineProperty,hs={f:xa?Sk:function(t,e,r){if(Yr(t),e=t5(e),Yr(r),bL)try{return Sk(t,e,r)}catch{}if("get"in r||"set"in r)throw Hut("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Uut=Math.ceil,Wut=Math.floor,Jp=function(t){var e=+t;return e!=e||e===0?0:(e>0?Wut:Uut)(e)},Gut=Math.max,qut=Math.min,cC=function(t,e){var r=Jp(t);return r<0?Gut(r+e,0):qut(r,e)},Kut=Math.min,wL=function(t){return t>0?Kut(Jp(t),9007199254740991):0},vc=function(t){return wL(t.length)},Dk=function(t){return function(e,r,n){var o,i=gc(e),a=vc(i),u=cC(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},EL={includes:Dk(!0),indexOf:Dk(!1)},uy={},Yut=EL.indexOf,Ak=jt([].push),CL=function(t,e){var r,n=gc(t),o=0,i=[];for(r in n)!er(uy,r)&&er(n,r)&&Ak(i,r);for(;e.length>o;)er(n,r=e[o++])&&(~Yut(i,r)||Ak(i,r));return i},A0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xut=Object.keys||function(t){return CL(t,A0)},Zut=xa?Object.defineProperties:function(t,e){Yr(t);for(var r,n=gc(e),o=Xut(e),i=o.length,a=0;i>a;)hs.f(t,r=o[a++],n[r]);return t},Jut=Zp("document","documentElement"),Ok=Y3("keys"),e5=function(t){return Ok[t]||(Ok[t]=X3(t))},xL=e5("IE_PROTO"),n2=function(){},SL=function(t){return"<script>"+t+"<\/script>"},kk=function(t){t.write(SL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xg=function(){try{rg=new ActiveXObject("htmlfile")}catch{}var t,e;Xg=typeof document<"u"?document.domain&&rg?kk(rg):((e=J3("iframe")).style.display="none",Jut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(SL("document.F=Object")),t.close(),t.F):kk(rg);for(var r=A0.length;r--;)delete Xg.prototype[A0[r]];return Xg()};uy[xL]=!0;var r5=Object.create||function(t,e){var r;return t!==null?(n2.prototype=Yr(t),r=new n2,n2.prototype=null,r[xL]=t):r=Xg(),e===void 0?r:Zut(r,e)},fC=gr("unscopables"),dC=Array.prototype;dC[fC]==null&&hs.f(dC,fC,{configurable:!0,value:r5(null)});var fd=function(t){dC[fC][t]=!0},Ul={},Qut=jt(Function.toString);Te(aa.inspectSource)||(aa.inspectSource=function(t){return Qut(t)});var O0,dd,k0,n5=aa.inspectSource,Bk=Et.WeakMap,DL=Te(Bk)&&/native code/.test(n5(Bk)),sy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ua=xa?function(t,e,r){return hs.f(t,e,sy(1,r))}:function(t,e,r){return t[e]=r,t},pC=Et.TypeError,tst=Et.WeakMap;if(DL||aa.state){var Xa=aa.state||(aa.state=new tst),est=jt(Xa.get),_k=jt(Xa.has),rst=jt(Xa.set);O0=function(t,e){if(_k(Xa,t))throw new pC("Object already initialized");return e.facade=t,rst(Xa,t,e),e},dd=function(t){return est(Xa,t)||{}},k0=function(t){return _k(Xa,t)}}else{var Rs=e5("state");uy[Rs]=!0,O0=function(t,e){if(er(t,Rs))throw new pC("Object already initialized");return e.facade=t,ua(t,Rs,e),e},dd=function(t){return er(t,Rs)?t[Rs]:{}},k0=function(t){return er(t,Rs)}}var Pu,Fk,Tk,Fo={set:O0,get:dd,has:k0,enforce:function(t){return k0(t)?dd(t):O0(t,{})},getterFor:function(t){return function(e){var r;if(!_e(e)||(r=dd(e)).type!==t)throw pC("Incompatible receiver, "+t+" required");return r}}},Pk={}.propertyIsEnumerable,Nk=Object.getOwnPropertyDescriptor,nst={f:Nk&&!Pk.call({1:2},1)?function(t){var e=Nk(this,t);return!!e&&e.enumerable}:Pk},jk=Object.getOwnPropertyDescriptor,AL={f:xa?jk:function(t,e){if(t=gc(t),e=t5(e),bL)try{return jk(t,e)}catch{}if(er(t,e))return sy(!ur(nst.f,t,e),t[e])}},OL=Function.prototype,ost=xa&&Object.getOwnPropertyDescriptor,Ik=er(OL,"name"),o5={PROPER:Ik&&(function(){}).name==="something",CONFIGURABLE:Ik&&(!xa||xa&&ost(OL,"name").configurable)},di=q3(function(t){var e=o5.CONFIGURABLE,r=Fo.get,n=Fo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Te(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!er(u,"name")||e&&u.name!==p)&&ua(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ua(i,a,u)):f?i[a]=u:K3(a,u)})(Function.prototype,"toString",function(){return Te(this)&&r(this).source||n5(this)})}),ist=A0.concat("length","prototype"),B0={f:Object.getOwnPropertyNames||function(t){return CL(t,ist)}},ast={f:Object.getOwnPropertySymbols},ust=jt([].concat),sst=Zp("Reflect","ownKeys")||function(t){var e=B0.f(Yr(t)),r=ast.f;return r?ust(e,r(t)):e},lst=function(t,e){for(var r=sst(e),n=hs.f,o=AL.f,i=0;i<r.length;i++){var a=r[i];er(t,a)||n(t,a,o(e,a))}},cst=/#|\.prototype\./,Qp=function(t,e){var r=dst[fst(t)];return r==hst||r!=pst&&(Te(e)?Oe(e):!!e)},fst=Qp.normalize=function(t){return String(t).replace(cst,".").toLowerCase()},dst=Qp.data={},pst=Qp.NATIVE="N",hst=Qp.POLYFILL="P",hC=Qp,gst=AL.f,Sa=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Et:l?Et[u]||K3(u,{}):(Et[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=gst(r,n))&&a.value:r[n],!hC(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;lst(i,o)}(t.sham||o&&o.sham)&&ua(i,"sham",!0),di(r,n,i,t)}},vst=!Oe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Lk=e5("IE_PROTO"),gC=Et.Object,mst=gC.prototype,_0=vst?gC.getPrototypeOf:function(t){var e=Xp(t);if(er(e,Lk))return e[Lk];var r=e.constructor;return Te(r)&&e instanceof r?r.prototype:e instanceof gC?mst:null},vC=gr("iterator"),kL=!1;[].keys&&("next"in(Tk=[].keys())?(Fk=_0(_0(Tk)))!==Object.prototype&&(Pu=Fk):kL=!0);var yst=Pu==null||Oe(function(){var t={};return Pu[vC].call(t)!==t});yst&&(Pu={}),Te(Pu[vC])||di(Pu,vC,function(){return this});var i5={IteratorPrototype:Pu,BUGGY_SAFARI_ITERATORS:kL},bst=hs.f,Rk=gr("toStringTag"),mC=function(t,e,r){t&&!er(t=r?t:t.prototype,Rk)&&bst(t,Rk,{configurable:!0,value:e})},wst=i5.IteratorPrototype,Est=function(){return this},Cst=Et.String,xst=Et.TypeError,F0=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Yr(n),function(i){if(typeof i=="object"||Te(i))return i;throw xst("Can't set "+Cst(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),Sst=o5.PROPER,Dst=o5.CONFIGURABLE,Mk=i5.IteratorPrototype,o2=i5.BUGGY_SAFARI_ITERATORS,gf=gr("iterator"),Ast=function(){return this},BL=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=r5(wst,{next:sy(1,g)}),mC(m,E,!1),Ul[E]=Est})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!o2&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[gf]||d["@@iterator"]||o&&d[o],v=!o2&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=_0(h.call(new t)))!==Object.prototype&&u.next&&(_0(u)!==Mk&&(F0?F0(u,Mk):Te(u[gf])||di(u,gf,Ast)),mC(u,c,!0)),Sst&&o=="values"&&p&&p.name!=="values"&&(Dst?ua(d,"name","values"):(f=!0,v=function(){return ur(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Sa({target:e,proto:!0,forced:o2||f},s)),d[gf]!==v&&di(d,gf,v,{name:o}),Ul[e]=v,s},Ost=Fo.set,kst=Fo.getterFor("Array Iterator"),Zf=BL(Array,"Array",function(t,e){Ost(this,{type:"Array Iterator",target:gc(t),index:0,kind:e})},function(){var t=kst(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ul.Arguments=Ul.Array,fd("keys"),fd("values"),fd("entries");var _L={};_L[gr("toStringTag")]="z";var a5=String(_L)==="[object z]",Bst=gr("toStringTag"),_st=Et.Object,Fst=ai(function(){return arguments}())=="Arguments",ly=a5?ai:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=_st(t),Bst))=="string"?r:Fst?ai(e):(n=ai(e))=="Object"&&Te(e.callee)?"Arguments":n},Tst=a5?{}.toString:function(){return"[object "+ly(this)+"]"};a5||di(Object.prototype,"toString",Tst,{unsafe:!0});var Pst=Et.String,Zo=function(t){if(ly(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pst(t)},Nst=jt("".charAt),Vk=jt("".charCodeAt),jst=jt("".slice),Ist=function(t){return function(e,r){var n,o,i=Zo(ay(e)),a=Jp(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Vk(i,a))<55296||n>56319||a+1===u||(o=Vk(i,a+1))<56320||o>57343?t?Nst(i,a):n:t?jst(i,a,a+2):o-56320+(n-55296<<10)+65536}},FL={charAt:Ist(!0)},Lst=FL.charAt,Rst=Fo.set,Mst=Fo.getterFor("String Iterator");BL(String,"String",function(t){Rst(this,{type:"String Iterator",string:Zo(t),index:0})},function(){var t,e=Mst(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Lst(r,n),e.index+=t.length,{value:t,done:!1})});var yC=function(t,e,r){for(var n in e)di(t,n,e[n],r);return t},Vst=Et.Array,zst=Math.max,zk=B0.f,$k=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$st={f:function(t){return $k&&ai(t)=="Window"?function(e){try{return zk(e)}catch{return function(n,o,i){for(var a,u,s,l,c=vc(n),f=cC(void 0,c),d=cC(c,c),p=Vst(zst(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=n[f],(l=t5(u))in a?hs.f(a,l,sy(0,s)):a[l]=s;return p.length=v,p}($k)}}(t):zk(gc(t))}},Hk=Oe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),ng=Object.isExtensible,hu=Oe(function(){ng(1)})||Hk?function(t){return!!_e(t)&&(!Hk||ai(t)!="ArrayBuffer")&&(!ng||ng(t))}:ng,Hst=!Oe(function(){return Object.isExtensible(Object.preventExtensions({}))}),u5=q3(function(t){var e=hs.f,r=!1,n=X3("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=B0.f,s=jt([].splice),l={};l[n]=1,u(l).length&&(B0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Sa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$st.f}))},fastKey:function(u,s){if(!_e(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!er(u,n)){if(!hu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!er(u,n)){if(!hu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Hst&&r&&hu(u)&&!er(u,n)&&i(u),u}};uy[n]=!0}),Uk=jt(jt.bind),s5=function(t,e){return Q3(t),e===void 0?t:Uk?Uk(t,e):function(){return t.apply(e,arguments)}},Ust=gr("iterator"),Wst=Array.prototype,Gst=gr("iterator"),Wk=function(t){if(t!=null)return Xd(t,Gst)||Xd(t,"@@iterator")||Ul[ly(t)]},qst=Et.TypeError,Gk=function(t,e,r){var n,o;Yr(t);try{if(!(n=Xd(t,"return"))){if(e==="throw")throw r;return r}n=ur(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Yr(n),r},Kst=Et.TypeError,Zg=function(t,e){this.stopped=t,this.result=e},qk=Zg.prototype,TL=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=s5(e,f),m=function(g){return n&&Gk(n,"normal",g),new Zg(!0,g)},y=function(g){return d?(Yr(g),v?h(g[0],g[1],m):h(g[0],g[1])):v?h(g,m):h(g)};if(p)n=t;else{if(!(o=Wk(t)))throw Kst(lC(t)+" is not iterable");if((c=o)!==void 0&&(Ul.Array===c||Wst[Ust]===c)){for(i=0,a=vc(t);a>i;i++)if((u=y(t[i]))&&D0(qk,u))return u;return new Zg(!1)}n=function(g,w){var E=arguments.length<2?Wk(g):w;if(Q3(E))return Yr(ur(E,g));throw qst(lC(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=ur(s,n)).done;){try{u=y(l.value)}catch(g){Gk(n,"throw",g)}if(typeof u=="object"&&u&&D0(qk,u))return u}return new Zg(!1)},Yst=Et.TypeError,PL=function(t,e){if(D0(e,t))return t;throw Yst("Incorrect invocation")},NL=gr("iterator"),jL=!1;try{var Xst=0,Kk={next:function(){return{done:!!Xst++}},return:function(){jL=!0}};Kk[NL]=function(){return this},Array.from(Kk,function(){throw 2})}catch{}var bC=Array.isArray||function(t){return ai(t)=="Array"},IL=function(){},Zst=[],LL=Zp("Reflect","construct"),l5=/^\s*(?:class|function)\b/,Jst=jt(l5.exec),Qst=!l5.exec(IL),vf=function(t){if(!Te(t))return!1;try{return LL(IL,Zst,t),!0}catch{return!1}},tlt=!LL||Oe(function(){var t;return vf(vf.call)||!vf(Object)||!vf(function(){t=!0})||t})?function(t){if(!Te(t))return!1;switch(ly(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Qst||!!Jst(l5,n5(t))}:vf,elt=gr("species"),Yk=Et.Array,RL=function(t,e){return new(function(r){var n;return bC(r)&&(n=r.constructor,(tlt(n)&&(n===Yk||bC(n.prototype))||_e(n)&&(n=n[elt])===null)&&(n=void 0)),n===void 0?Yk:n}(t))(e===0?0:e)},Xk=jt([].push),i2=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Xp(s),h=yL(v),m=s5(l,c),y=vc(h),g=0,w=f||RL,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:Xk(E,d)}else switch(t){case 4:return!1;case 7:Xk(E,d)}return i?-1:n||o?o:E}},c5={filter:i2(2),find:i2(5),findIndex:i2(6)},og=u5.getWeakData,rlt=Fo.set,nlt=Fo.getterFor,olt=c5.find,ilt=c5.findIndex,alt=jt([].splice),ult=0,ig=function(t){return t.frozen||(t.frozen=new ML)},ML=function(){this.entries=[]},a2=function(t,e){return olt(t.entries,function(r){return r[0]===e})};ML.prototype={get:function(t){var e=a2(this,t);if(e)return e[1]},has:function(t){return!!a2(this,t)},set:function(t,e){var r=a2(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=ilt(this.entries,function(r){return r[0]===t});return~e&&alt(this.entries,e,1),!!~e}};var mf,VL={getConstructor:function(t,e,r,n){var o=t(function(s,l){PL(s,i),rlt(s,{type:e,id:ult++,frozen:void 0}),l!=null&&TL(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=nlt(e),u=function(s,l,c){var f=a(s),d=og(Yr(l),!0);return d===!0?ig(f).set(l,c):d[f.id]=c,s};return yC(i,{delete:function(s){var l=a(this);if(!_e(s))return!1;var c=og(s);return c===!0?ig(l).delete(s):c&&er(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!_e(s))return!1;var c=og(s);return c===!0?ig(l).has(s):c&&er(c,l.id)}}),yC(i,r?{get:function(s){var l=a(this);if(_e(s)){var c=og(s);return c===!0?ig(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},ag=Fo.enforce,slt=!Et.ActiveXObject&&"ActiveXObject"in Et,zL=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},llt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=Et[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=jt(u[m]);di(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!_e(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!_e(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!_e(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(hC(t,!Te(a)||!(o||u.forEach&&!Oe(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),u5.enable();else if(hC(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Oe(function(){f.has(1)}),v=function(m,y){if(!jL)return!1;var g=!1;try{var w={};w[NL]=function(){return{next:function(){return{done:g=!0}}}},function(E){new a(E)}(w)}catch{}return g}(),h=!o&&Oe(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){PL(m,u);var g=function(w,E,x){var D,S;return F0&&Te(D=E.constructor)&&D!==x&&_e(S=D.prototype)&&S!==x.prototype&&F0(w,S),w}(new a,m,s);return y!=null&&TL(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Sa({global:!0,forced:s!=a},l),mC(s,t),o||r.setStrong(s,t,n),s}("WeakMap",zL,VL);if(DL&&slt){mf=VL.getConstructor(zL,"WeakMap",!0),u5.enable();var yf=llt.prototype,Zk=jt(yf.delete),ug=jt(yf.has),Jk=jt(yf.get),Qk=jt(yf.set);yC(yf,{delete:function(t){if(_e(t)&&!hu(t)){var e=ag(this);return e.frozen||(e.frozen=new mf),Zk(this,t)||e.frozen.delete(t)}return Zk(this,t)},has:function(t){if(_e(t)&&!hu(t)){var e=ag(this);return e.frozen||(e.frozen=new mf),ug(this,t)||e.frozen.has(t)}return ug(this,t)},get:function(t){if(_e(t)&&!hu(t)){var e=ag(this);return e.frozen||(e.frozen=new mf),ug(this,t)?Jk(this,t):e.frozen.get(t)}return Jk(this,t)},set:function(t,e){if(_e(t)&&!hu(t)){var r=ag(this);r.frozen||(r.frozen=new mf),ug(this,t)?Qk(this,t,e):r.frozen.set(t,e)}else Qk(this,t,e);return this}})}var $L={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},u2=J3("span").classList,tB=u2&&u2.constructor&&u2.constructor.prototype,clt=tB===Object.prototype?void 0:tB,s2=gr("iterator"),eB=gr("toStringTag"),l2=Zf.values,HL=function(t,e){if(t){if(t[s2]!==l2)try{ua(t,s2,l2)}catch{t[s2]=l2}if(t[eB]||ua(t,eB,e),$L[e]){for(var r in Zf)if(t[r]!==Zf[r])try{ua(t,r,Zf[r])}catch{t[r]=Zf[r]}}}};for(var c2 in $L)HL(Et[c2]&&Et[c2].prototype,c2);HL(clt,"DOMTokenList");var wC=new WeakMap,flt={type:"list-item",renderElem:function(t,e,r){wC.set(t,r);var n=t,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,v=p.type,h=p.level,m=h===void 0?0:h,y=p.ordered,g=y!==void 0&&y;if(!g)return-1;var w=1,E=d,x=O.findPath(f,E);if(x[0]===0)return 1;for(;x[0]>0;){var D=I.previous(x),S=C.node(f,D);if(S==null)break;var k=S[0],F=k.level,$=F===void 0?0:F,W=k.type,j=k.ordered;if(W!==v||$<m)break;if($===m){if(j!==g)break;w++}E=k,x=D}return w}(r,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var h=0;h<v&&!d;h++){var m=p[h];it.isText(m)&&(d=m)}return d==null?"":d.color||""}(t);return wt("div",{style:u},wt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wt("span",null,e))}},EC=function(t,e){return EC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},EC(t,e);/*! *****************************************************************************
|
|
109
|
+
Copyright (c) Microsoft Corporation.
|
|
110
|
+
|
|
111
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
112
|
+
purpose with or without fee is hereby granted.
|
|
113
|
+
|
|
114
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
115
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
116
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
117
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
118
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
119
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
120
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
121
|
+
***************************************************************************** */};function UL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}EC(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function rB(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pd(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function nB(t){return C.nodes(t,{at:t.selection||void 0,match:function(e){return O.findPath(t,e).length===1}})}var dlt=EL.includes;Sa({target:"Array",proto:!0},{includes:function(t){return dlt(this,t,arguments.length>1?arguments[1]:void 0)}}),fd("includes");var oB,f2,plt=function(){var t=Yr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},f5=Et.RegExp,WL=Oe(function(){var t=f5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});WL||Oe(function(){return!f5("a","y").sticky});var hlt={BROKEN_CARET:WL||Oe(function(){var t=f5("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},glt=Et.RegExp,vlt=Oe(function(){var t=glt(".","s");return!(t.dotAll&&t.exec(`
|
|
122
|
+
`)&&t.flags==="s")}),mlt=Et.RegExp,ylt=Oe(function(){var t=mlt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),blt=Fo.get,wlt=Y3("native-string-replace",String.prototype.replace),T0=RegExp.prototype.exec,CC=T0,Elt=jt("".charAt),Clt=jt("".indexOf),xlt=jt("".replace),d2=jt("".slice),p2=(f2=/b*/g,ur(T0,oB=/a/,"a"),ur(T0,f2,"a"),oB.lastIndex!==0||f2.lastIndex!==0),iB=hlt.BROKEN_CARET,h2=/()??/.exec("")[1]!==void 0;(p2||h2||iB||vlt||ylt)&&(CC=function(t){var e,r,n,o,i,a,u,s=this,l=blt(s),c=Zo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ur(CC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=iB&&s.sticky,v=ur(plt,s),h=s.source,m=0,y=c;if(p&&(v=xlt(v,"y",""),Clt(v,"g")===-1&&(v+="g"),y=d2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Elt(c,s.lastIndex-1)!==`
|
|
123
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),h2&&(r=new RegExp("^"+h+"$(?!\\s)",v)),p2&&(n=s.lastIndex),o=ur(T0,p?r:s,y),p?o?(o.input=d2(o.input,m),o[0]=d2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:p2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),h2&&o&&o.length>1&&ur(wlt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=r5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var P0=CC;Sa({target:"RegExp",proto:!0,forced:/./.exec!==P0},{exec:P0});var GL=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var r=this.type;return O.getSelectedNodeByType(e,r)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var r=this.getListNode(e);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},t.prototype.exec=function(e,r){this.isActive(e)?R.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):R.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Slt='<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>',Dlt='<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>',Alt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!1,r.title=tt("listModule.unOrderedList"),r.iconSvg=Slt,r}return UL(e,t),e}(GL),Olt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!0,r.title=tt("listModule.orderedList"),r.iconSvg=Dlt,r}return UL(e,t),e}(GL),klt={key:"bulletedList",factory:function(){return new Alt}},Blt={key:"numberedList",factory:function(){return new Olt}},aB=[],_lt={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=wC.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,m=h===void 0?0:h,y=O.findPath(c,l);if(y[0]===0)return m+1;var g=I.previous(y),w=C.node(c,g);if(!w)return 0;var E=pd(w,1)[0];if(O.getNodeType(E)!==d)return m+1;var x=E,D=x.ordered,S=D!==void 0&&D,k=x.level,F=k===void 0?0:k;return F<m?m-F:F>m?0:F===m?S===v?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",aB.push(i);var s=function(l){var c=wC.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,m=h===void 0?0:h,y=O.findPath(c,l);if(y[0]===c.children.length-1)return m+1;var g=I.next(y),w=C.node(c,g);if(!w)return 0;var E=pd(w,1)[0];if(O.getNodeType(E)!==d)return m+1;var x=E,D=x.ordered,S=D!==void 0&&D,k=x.level,F=k===void 0?0:k;return F<m?m-F:F>m?0:F===m?S===v?0:1:0}(t);if(s>0)for(u=0;u<s;u++)n+="</"+aB.pop()+">";return{html:"<li>"+e+"</li>",prefix:r,suffix:n}}},Flt=gr("species"),Tlt=c5.filter,Plt=aC>=51||!Oe(function(){var t=[];return(t.constructor={})[Flt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Sa({target:"Array",proto:!0,forced:!Plt},{filter:function(t){return Tlt(this,t,arguments.length>1?arguments[1]:void 0)}});var d5=Function.prototype,uB=d5.apply,Nlt=d5.bind,sB=d5.call,jlt=typeof Reflect=="object"&&Reflect.apply||(Nlt?sB.bind(uB):function(){return sB.apply(uB,arguments)}),lB=(gr("species"),RegExp.prototype),Ilt=FL.charAt,Llt=function(t,e,r){return e+(r?Ilt(t,e).length:1)},Rlt=Math.floor,g2=jt("".charAt),Mlt=jt("".replace),v2=jt("".slice),Vlt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zlt=/\$([$&'`]|\d{1,2})/g,$lt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=zlt;return o!==void 0&&(o=Xp(o),s=Vlt),Mlt(i,s,function(l,c){var f;switch(g2(c,0)){case"$":return"$";case"&":return t;case"`":return v2(e,0,r);case"'":return v2(e,a);case"<":f=o[v2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Rlt(d/10);return p===0?l:p<=u?n[p-1]===void 0?g2(c,1):n[p-1]+g2(c,1):l}f=n[d-1]}return f===void 0?"":f})},Hlt=Et.TypeError,Ult=function(t,e){var r=t.exec;if(Te(r)){var n=ur(r,t,e);return n!==null&&Yr(n),n}if(ai(t)==="RegExp")return ur(P0,t,e);throw Hlt("RegExp#exec called on incompatible receiver")},xC=gr("replace"),Wlt=Math.max,Glt=Math.min,qlt=jt([].concat),m2=jt([].push),cB=jt("".indexOf),fB=jt("".slice),Klt="a".replace(/./,"$0")==="$0",dB=!!/./[xC]&&/./[xC]("a","$0")==="";(function(t,e,r,n){var o=gr(t),i=!Oe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Oe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=jt(/./[o]),s=function(l,c,f){var d=dB?"$":"$0";return[function(p,v){var h=ay(this),m=p==null?void 0:Xd(p,xC);return m?ur(m,p,h,v):ur(c,Zo(h),p,v)},function(p,v){var h=Yr(this),m=Zo(p);if(typeof v=="string"&&cB(v,d)===-1&&cB(v,"$<")===-1){var y=f(c,h,m,v);if(y.done)return y.value}var g=Te(v);g||(v=Zo(v));var w=h.global;if(w){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var D=Ult(h,m);if(D===null||(m2(x,D),!w))break;Zo(D[0])===""&&(h.lastIndex=Llt(m,wL(h.lastIndex),E))}for(var S,k="",F=0,$=0;$<x.length;$++){for(var W=Zo((D=x[$])[0]),j=Wlt(Glt(Jp(D.index),m.length),0),L=[],V=1;V<D.length;V++)m2(L,(S=D[V])===void 0?S:String(S));var q=D.groups;if(g){var Y=qlt([W],L,j,m);q!==void 0&&m2(Y,q);var rt=Zo(jlt(v,void 0,Y))}else rt=$lt(W,m,j,L,q,v);j>=F&&(k+=fB(m,F,j)+rt,F=j+W.length)}return k+fB(m,F)}]}(0,""[t],function(l,c,f,d,p){var v=jt(l),h=c.exec;return h===P0||h===lB.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});di(String.prototype,t,s[0]),di(lB,o,s[1])}})("replace",0,!!Oe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Klt||dB);var Ylt=Et.TypeError,qL=function(t,e,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&s5(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,e):r[f],i>0&&bC(s))l=vc(s),c=qL(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Ylt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Xlt=qL;function y2(t){return t.length?t[0].tagName.toLowerCase():""}Sa({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Xp(this),r=vc(e),n=RL(e,0);return n.length=Xlt(n,e,e,r,0,t===void 0?1:Jp(t)),n}}),fd("flat"),Sa({global:!0},{globalThis:Et}),Bn&&(_.fn.append=Bn),kn&&(_.fn.attr=kn),Fl&&(_.fn.parent=Fl);var Zlt={renderElems:[flt],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(z.isExpanded(a))e(i);else{var u=O.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?R.setNodes(o,{level:l-1}):R.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(z.isCollapsed(l)){var c=O.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void R.setNodes(o,{level:d+1})}}if(z.isExpanded(l)){var p=0,v=!1;try{for(var h=rB(nB(o)),m=h.next();!m.done;m=h.next()){var y=pd(m.value,1)[0];O.getNodeType(y)==="list-item"?p++:v=!0}}catch(S){i={error:S}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}if(v||p<=1)return void r();try{for(var g=rB(nB(o)),w=g.next();!w.done;w=g.next()){var E=pd(w.value,2),x=(y=E[0],E[1]),D=y.level;d=D===void 0?0:D,R.setNodes(o,{level:d+1},{at:x})}}catch(S){u={error:S}}finally{try{w&&!w.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=pd(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||R.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[klt,Blt],elemsToHtml:[_lt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);(e=e.filter(function(a){return!!it.isText(a)||!!r.isInline(a)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(a){return y2(a.parent())==="ol"}(n),i=function(a){for(var u=0,s=a.parent(),l=y2(s);l==="ul"||l==="ol";)l=y2(s=s.parent()),u++;return u-1}(n);return{type:"list-item",ordered:o,level:i,children:e}}}]},KL=ns(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",h="[object Set]",m="[object String]",y="[object Symbol]",g="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",x=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[i]=S[w]=S[a]=S[E]=S[u]=S[s]=S[l]=S[c]=S[f]=S[d]=S[v]=S[h]=S[m]=S[g]=!1;var k=typeof ue=="object"&&ue&&ue.Object===Object&&ue,F=typeof self=="object"&&self&&self.Object===Object&&self,$=k||F||Function("return this")(),W=e&&!e.nodeType&&e,j=W&&t&&!t.nodeType&&t,L=j&&j.exports===W,V=L&&k.process,q=function(){try{return V&&V.binding&&V.binding("util")}catch{}}(),Y=q&&q.isTypedArray;function rt(P,M){for(var J=-1,gt=P==null?0:P.length;++J<gt;)if(M(P[J],J,P))return!0;return!1}function lt(P){var M=-1,J=Array(P.size);return P.forEach(function(gt,ee){J[++M]=[ee,gt]}),J}function st(P){var M=-1,J=Array(P.size);return P.forEach(function(gt){J[++M]=gt}),J}var ut=Array.prototype,B=Function.prototype,A=Object.prototype,N=$["__core-js_shared__"],U=B.toString,X=A.hasOwnProperty,G=function(){var P=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),at=A.toString,vt=RegExp("^"+U.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=L?$.Buffer:void 0,xt=$.Symbol,K=$.Uint8Array,Lt=A.propertyIsEnumerable,Ot=ut.splice,pt=xt?xt.toStringTag:void 0,kt=Object.getOwnPropertySymbols,ke=mt?mt.isBuffer:void 0,$t=function(P,M){return function(J){return P(M(J))}}(Object.keys,Object),te=yi($,"DataView"),ve=yi($,"Map"),vr=yi($,"Promise"),Vt=yi($,"Set"),Ir=yi($,"WeakMap"),In=yi(Object,"create"),ro=$o(te),gs=$o(ve),Ra=$o(vr),Ln=$o(Vt),no=$o(Ir),Mo=xt?xt.prototype:void 0,mr=Mo?Mo.valueOf:void 0;function yr(P){var M=-1,J=P==null?0:P.length;for(this.clear();++M<J;){var gt=P[M];this.set(gt[0],gt[1])}}function br(P){var M=-1,J=P==null?0:P.length;for(this.clear();++M<J;){var gt=P[M];this.set(gt[0],gt[1])}}function _r(P){var M=-1,J=P==null?0:P.length;for(this.clear();++M<J;){var gt=P[M];this.set(gt[0],gt[1])}}function nr(P){var M=-1,J=P==null?0:P.length;for(this.__data__=new _r;++M<J;)this.add(P[M])}function hn(P){var M=this.__data__=new br(P);this.size=M.size}function yc(P,M){var J=Ho(P),gt=!J&&ph(P),ee=!J&&!gt&&oo(P),Nt=!J&&!gt&&!ee&&ao(P),T=J||gt||ee||Nt,H=T?function(zt,me){for(var le=-1,Wt=Array(zt);++le<zt;)Wt[le]=me(le);return Wt}(P.length,String):[],ot=H.length;for(var ct in P)!X.call(P,ct)||T&&(ct=="length"||ee&&(ct=="offset"||ct=="parent")||Nt&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||bc(ct,ot))||H.push(ct);return H}function mi(P,M){for(var J=P.length;J--;)if(ys(P[J][0],M))return J;return-1}function Vo(P){return P==null?P===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(P)?function(M){var J=X.call(M,pt),gt=M[pt];try{M[pt]=void 0;var ee=!0}catch{}var Nt=at.call(M);return ee&&(J?M[pt]=gt:delete M[pt]),Nt}(P):function(M){return at.call(M)}(P)}function vs(P){return bi(P)&&Vo(P)==o}function Ma(P,M,J,gt,ee){return P===M||(P==null||M==null||!bi(P)&&!bi(M)?P!=P&&M!=M:function(Nt,T,H,ot,ct,zt){var me=Ho(Nt),le=Ho(T),Wt=me?i:Xr(Nt),Ze=le?i:Xr(T),wr=(Wt=Wt==o?d:Wt)==d,Va=(Ze=Ze==o?d:Ze)==d,Uo=Wt==Ze;if(Uo&&oo(Nt)){if(!oo(T))return!1;me=!0,wr=!1}if(Uo&&!wr)return zt||(zt=new hn),me||ao(Nt)?gn(Nt,T,H,ot,ct,zt):function(Rt,Gt,qt,Be,Fr,Lr,Vn){switch(qt){case E:if(Rt.byteLength!=Gt.byteLength||Rt.byteOffset!=Gt.byteOffset)return!1;Rt=Rt.buffer,Gt=Gt.buffer;case w:return!(Rt.byteLength!=Gt.byteLength||!Lr(new K(Rt),new K(Gt)));case a:case u:case f:return ys(+Rt,+Gt);case s:return Rt.name==Gt.name&&Rt.message==Gt.message;case v:case m:return Rt==Gt+"";case c:var Ei=lt;case h:var Ec=1&Be;if(Ei||(Ei=st),Rt.size!=Gt.size&&!Ec)return!1;var vh=Vn.get(Rt);if(vh)return vh==Gt;Be|=2,Vn.set(Rt,Gt);var bs=gn(Ei(Rt),Ei(Gt),Be,Fr,Lr,Vn);return Vn.delete(Rt),bs;case y:if(mr)return mr.call(Rt)==mr.call(Gt)}return!1}(Nt,T,Wt,H,ot,ct,zt);if(!(1&H)){var wi=wr&&X.call(Nt,"__wrapped__"),bt=Va&&X.call(T,"__wrapped__");if(wi||bt){var Zt=wi?Nt.value():Nt,Pe=bt?T.value():T;return zt||(zt=new hn),ct(Zt,Pe,H,ot,zt)}}return Uo?(zt||(zt=new hn),function(Rt,Gt,qt,Be,Fr,Lr){var Vn=1&qt,Ei=zo(Rt),Ec=Ei.length,vh=zo(Gt).length;if(Ec!=vh&&!Vn)return!1;for(var bs=Ec;bs--;){var za=Ei[bs];if(!(Vn?za in Gt:X.call(Gt,za)))return!1}var K8=Lr.get(Rt);if(K8&&Lr.get(Gt))return K8==Gt;var mh=!0;Lr.set(Rt,Gt),Lr.set(Gt,Rt);for(var By=Vn;++bs<Ec;){var yh=Rt[za=Ei[bs]],bh=Gt[za];if(Be)var Y8=Vn?Be(bh,yh,za,Gt,Rt,Lr):Be(yh,bh,za,Rt,Gt,Lr);if(!(Y8===void 0?yh===bh||Fr(yh,bh,qt,Be,Lr):Y8)){mh=!1;break}By||(By=za=="constructor")}if(mh&&!By){var wh=Rt.constructor,Eh=Gt.constructor;wh==Eh||!("constructor"in Rt)||!("constructor"in Gt)||typeof wh=="function"&&wh instanceof wh&&typeof Eh=="function"&&Eh instanceof Eh||(mh=!1)}return Lr.delete(Rt),Lr.delete(Gt),mh}(Nt,T,H,ot,ct,zt)):!1}(P,M,J,gt,Ma,ee))}function ms(P){return!(!hh(P)||function(M){return!!G&&G in M}(P))&&(wc(P)?vt:x).test($o(P))}function Rn(P){if(J=(M=P)&&M.constructor,gt=typeof J=="function"&&J.prototype||A,M!==gt)return $t(P);var M,J,gt,ee=[];for(var Nt in Object(P))X.call(P,Nt)&&Nt!="constructor"&&ee.push(Nt);return ee}function gn(P,M,J,gt,ee,Nt){var T=1&J,H=P.length,ot=M.length;if(H!=ot&&!(T&&ot>H))return!1;var ct=Nt.get(P);if(ct&&Nt.get(M))return ct==M;var zt=-1,me=!0,le=2&J?new nr:void 0;for(Nt.set(P,M),Nt.set(M,P);++zt<H;){var Wt=P[zt],Ze=M[zt];if(gt)var wr=T?gt(Ze,Wt,zt,M,P,Nt):gt(Wt,Ze,zt,P,M,Nt);if(wr!==void 0){if(wr)continue;me=!1;break}if(le){if(!rt(M,function(Va,Uo){if(wi=Uo,!le.has(wi)&&(Wt===Va||ee(Wt,Va,J,gt,Nt)))return le.push(Uo);var wi})){me=!1;break}}else if(Wt!==Ze&&!ee(Wt,Ze,J,gt,Nt)){me=!1;break}}return Nt.delete(P),Nt.delete(M),me}function zo(P){return function(M,J,gt){var ee=J(M);return Ho(M)?ee:function(Nt,T){for(var H=-1,ot=T.length,ct=Nt.length;++H<ot;)Nt[ct+H]=T[H];return Nt}(ee,gt(M))}(P,gh,dh)}function Mn(P,M){var J,gt,ee=P.__data__;return((gt=typeof(J=M))=="string"||gt=="number"||gt=="symbol"||gt=="boolean"?J!=="__proto__":J===null)?ee[typeof M=="string"?"string":"hash"]:ee.map}function yi(P,M){var J=function(gt,ee){return gt==null?void 0:gt[ee]}(P,M);return ms(J)?J:void 0}yr.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},yr.prototype.delete=function(P){var M=this.has(P)&&delete this.__data__[P];return this.size-=M?1:0,M},yr.prototype.get=function(P){var M=this.__data__;if(In){var J=M[P];return J===r?void 0:J}return X.call(M,P)?M[P]:void 0},yr.prototype.has=function(P){var M=this.__data__;return In?M[P]!==void 0:X.call(M,P)},yr.prototype.set=function(P,M){var J=this.__data__;return this.size+=this.has(P)?0:1,J[P]=In&&M===void 0?r:M,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(P){var M=this.__data__,J=mi(M,P);return!(J<0)&&(J==M.length-1?M.pop():Ot.call(M,J,1),--this.size,!0)},br.prototype.get=function(P){var M=this.__data__,J=mi(M,P);return J<0?void 0:M[J][1]},br.prototype.has=function(P){return mi(this.__data__,P)>-1},br.prototype.set=function(P,M){var J=this.__data__,gt=mi(J,P);return gt<0?(++this.size,J.push([P,M])):J[gt][1]=M,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(ve||br),string:new yr}},_r.prototype.delete=function(P){var M=Mn(this,P).delete(P);return this.size-=M?1:0,M},_r.prototype.get=function(P){return Mn(this,P).get(P)},_r.prototype.has=function(P){return Mn(this,P).has(P)},_r.prototype.set=function(P,M){var J=Mn(this,P),gt=J.size;return J.set(P,M),this.size+=J.size==gt?0:1,this},nr.prototype.add=nr.prototype.push=function(P){return this.__data__.set(P,r),this},nr.prototype.has=function(P){return this.__data__.has(P)},hn.prototype.clear=function(){this.__data__=new br,this.size=0},hn.prototype.delete=function(P){var M=this.__data__,J=M.delete(P);return this.size=M.size,J},hn.prototype.get=function(P){return this.__data__.get(P)},hn.prototype.has=function(P){return this.__data__.has(P)},hn.prototype.set=function(P,M){var J=this.__data__;if(J instanceof br){var gt=J.__data__;if(!ve||gt.length<199)return gt.push([P,M]),this.size=++J.size,this;J=this.__data__=new _r(gt)}return J.set(P,M),this.size=J.size,this};var dh=kt?function(P){return P==null?[]:(P=Object(P),function(M,J){for(var gt=-1,ee=M==null?0:M.length,Nt=0,T=[];++gt<ee;){var H=M[gt];J(H,gt,M)&&(T[Nt++]=H)}return T}(kt(P),function(M){return Lt.call(P,M)}))}:function(){return[]},Xr=Vo;function bc(P,M){return!!(M=M??n)&&(typeof P=="number"||D.test(P))&&P>-1&&P%1==0&&P<M}function $o(P){if(P!=null){try{return U.call(P)}catch{}try{return P+""}catch{}}return""}function ys(P,M){return P===M||P!=P&&M!=M}(te&&Xr(new te(new ArrayBuffer(1)))!=E||ve&&Xr(new ve)!=c||vr&&Xr(vr.resolve())!=p||Vt&&Xr(new Vt)!=h||Ir&&Xr(new Ir)!=g)&&(Xr=function(P){var M=Vo(P),J=M==d?P.constructor:void 0,gt=J?$o(J):"";if(gt)switch(gt){case ro:return E;case gs:return c;case Ra:return p;case Ln:return h;case no:return g}return M});var ph=vs(function(){return arguments}())?vs:function(P){return bi(P)&&X.call(P,"callee")&&!Lt.call(P,"callee")},Ho=Array.isArray,oo=ke||function(){return!1};function wc(P){if(!hh(P))return!1;var M=Vo(P);return M==l||M=="[object GeneratorFunction]"||M=="[object AsyncFunction]"||M=="[object Proxy]"}function io(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=n}function hh(P){var M=typeof P;return P!=null&&(M=="object"||M=="function")}function bi(P){return P!=null&&typeof P=="object"}var ao=Y?function(P){return function(M){return P(M)}}(Y):function(P){return bi(P)&&io(P.length)&&!!S[Vo(P)]};function gh(P){return(M=P)!=null&&io(M.length)&&!wc(M)?yc(P):Rn(P);var M}t.exports=function(P,M){return Ma(P,M)}});Kr("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"}}),Kr("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var pB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function YL(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ni,Jg,sg=function(t){return t&&t.Math==Math&&t},Pt=sg(typeof globalThis=="object"&&globalThis)||sg(typeof window=="object"&&window)||sg(typeof self=="object"&&self)||sg(typeof pB=="object"&&pB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch{return!0}},Da=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bf=Function.prototype.call,Qe=bf.bind?bf.bind(bf):function(){return bf.apply(bf,arguments)},hB={}.propertyIsEnumerable,gB=Object.getOwnPropertyDescriptor,Jlt={f:gB&&!hB.call({1:2},1)?function(t){var e=gB(this,t);return!!e&&e.enumerable}:hB},p5=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},XL=Function.prototype,SC=XL.bind,DC=XL.call,Qlt=SC&&SC.bind(DC),Mt=SC?function(t){return t&&Qlt(DC,t)}:function(t){return t&&function(){return DC.apply(t,arguments)}},tct=Mt({}.toString),ect=Mt("".slice),sa=function(t){return ect(tct(t),8,-1)},b2=Pt.Object,rct=Mt("".split),ZL=Ye(function(){return!b2("z").propertyIsEnumerable(0)})?function(t){return sa(t)=="String"?rct(t,""):b2(t)}:b2,nct=Pt.TypeError,Aa=function(t){if(t==null)throw nct("Can't call method on "+t);return t},th=function(t){return ZL(Aa(t))},kr=function(t){return typeof t=="function"},Eo=function(t){return typeof t=="object"?t!==null:kr(t)},oct=function(t){return kr(t)?t:void 0},eh=function(t,e){return arguments.length<2?oct(Pt[t]):Pt[t]&&Pt[t][e]},JL=Mt({}.isPrototypeOf),w2=eh("navigator","userAgent")||"",vB=Pt.process,mB=Pt.Deno,yB=vB&&vB.versions||mB&&mB.version,bB=yB&&yB.v8;bB&&(Jg=(Ni=bB.split("."))[0]>0&&Ni[0]<4?1:+(Ni[0]+Ni[1])),!Jg&&w2&&(!(Ni=w2.match(/Edge\/(\d+)/))||Ni[1]>=74)&&(Ni=w2.match(/Chrome\/(\d+)/))&&(Jg=+Ni[1]);var AC=Jg,OC=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&AC&&AC<41}),h5=OC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ict=Pt.Object,E2=h5?function(t){return typeof t=="symbol"}:function(t){var e=eh("Symbol");return kr(e)&&JL(e.prototype,ict(t))},act=Pt.String,QL=function(t){try{return act(t)}catch{return"Object"}},uct=Pt.TypeError,tR=function(t){if(kr(t))return t;throw uct(QL(t)+" is not a function")},g5=function(t,e){var r=t[e];return r==null?void 0:tR(r)},sct=Pt.TypeError,lct=Object.defineProperty,v5=function(t,e){try{lct(Pt,t,{value:e,configurable:!0,writable:!0})}catch{Pt[t]=e}return e},la=Pt["__core-js_shared__"]||v5("__core-js_shared__",{}),m5=YL(function(t){(t.exports=function(e,r){return la[e]||(la[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cct=Pt.Object,y5=function(t){return cct(Aa(t))},fct=Mt({}.hasOwnProperty),Dn=Object.hasOwn||function(t,e){return fct(y5(t),e)},dct=0,pct=Math.random(),hct=Mt(1 .toString),eR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+hct(++dct+pct,36)},wf=m5("wks"),Nu=Pt.Symbol,wB=Nu&&Nu.for,gct=h5?Nu:Nu&&Nu.withoutSetter||eR,jn=function(t){if(!Dn(wf,t)||!OC&&typeof wf[t]!="string"){var e="Symbol."+t;OC&&Dn(Nu,t)?wf[t]=Nu[t]:wf[t]=h5&&wB?wB(e):gct(e)}return wf[t]},vct=Pt.TypeError,mct=jn("toPrimitive"),b5=function(t){var e=function(r,n){if(!Eo(r)||E2(r))return r;var o,i=g5(r,mct);if(i){if(o=Qe(i,r,n),!Eo(o)||E2(o))return o;throw vct("Can't convert object to primitive value")}return function(a,u){var s,l;if(kr(s=a.toString)&&!Eo(l=Qe(s,a))||kr(s=a.valueOf)&&!Eo(l=Qe(s,a)))return l;throw sct("Can't convert object to primitive value")}(r)}(t,"string");return E2(e)?e:e+""},kC=Pt.document,yct=Eo(kC)&&Eo(kC.createElement),w5=function(t){return yct?kC.createElement(t):{}},rR=!Da&&!Ye(function(){return Object.defineProperty(w5("div"),"a",{get:function(){return 7}}).a!=7}),EB=Object.getOwnPropertyDescriptor,nR={f:Da?EB:function(t,e){if(t=th(t),e=b5(e),rR)try{return EB(t,e)}catch{}if(Dn(t,e))return p5(!Qe(Jlt.f,t,e),t[e])}},bct=Pt.String,wct=Pt.TypeError,An=function(t){if(Eo(t))return t;throw wct(bct(t)+" is not an object")},Ect=Pt.TypeError,CB=Object.defineProperty,rh={f:Da?CB:function(t,e,r){if(An(t),e=b5(e),An(r),rR)try{return CB(t,e,r)}catch{}if("get"in r||"set"in r)throw Ect("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Wl=Da?function(t,e,r){return rh.f(t,e,p5(1,r))}:function(t,e,r){return t[e]=r,t},Cct=Mt(Function.toString);kr(la.inspectSource)||(la.inspectSource=function(t){return Cct(t)});var BC,N0,_C,E5=la.inspectSource,xB=Pt.WeakMap,xct=kr(xB)&&/native code/.test(E5(xB)),SB=m5("keys"),oR=function(t){return SB[t]||(SB[t]=eR(t))},C5={},DB=Pt.TypeError,Sct=Pt.WeakMap;if(xct||la.state){var Za=la.state||(la.state=new Sct),Dct=Mt(Za.get),AB=Mt(Za.has),Act=Mt(Za.set);BC=function(t,e){if(AB(Za,t))throw new DB("Object already initialized");return e.facade=t,Act(Za,t,e),e},N0=function(t){return Dct(Za,t)||{}},_C=function(t){return AB(Za,t)}}else{var Ms=oR("state");C5[Ms]=!0,BC=function(t,e){if(Dn(t,Ms))throw new DB("Object already initialized");return e.facade=t,Wl(t,Ms,e),e},N0=function(t){return Dn(t,Ms)?t[Ms]:{}},_C=function(t){return Dn(t,Ms)}}var FC={get:N0,enforce:function(t){return _C(t)?N0(t):BC(t,{})}},iR=Function.prototype,Oct=Da&&Object.getOwnPropertyDescriptor,OB=Dn(iR,"name"),x5={PROPER:OB&&(function(){}).name==="something",CONFIGURABLE:OB&&(!Da||Da&&Oct(iR,"name").configurable)},Zd=YL(function(t){var e=x5.CONFIGURABLE,r=FC.get,n=FC.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;kr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dn(u,"name")||e&&u.name!==p)&&Wl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Pt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Wl(i,a,u)):f?i[a]=u:v5(a,u)})(Function.prototype,"toString",function(){return kr(this)&&r(this).source||E5(this)})}),kct=Math.ceil,Bct=Math.floor,cy=function(t){var e=+t;return e!=e||e===0?0:(e>0?Bct:kct)(e)},_ct=Math.max,Fct=Math.min,Jd=function(t,e){var r=cy(t);return r<0?_ct(r+e,0):Fct(r,e)},Tct=Math.min,S5=function(t){return t>0?Tct(cy(t),9007199254740991):0},fy=function(t){return S5(t.length)},Pct=function(t){return function(e,r,n){var o,i=th(e),a=fy(i),u=Jd(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Nct=Pct(!1),kB=Mt([].push),aR=function(t,e){var r,n=th(t),o=0,i=[];for(r in n)!Dn(C5,r)&&Dn(n,r)&&kB(i,r);for(;e.length>o;)Dn(n,r=e[o++])&&(~Nct(i,r)||kB(i,r));return i},j0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jct=j0.concat("length","prototype"),Ict={f:Object.getOwnPropertyNames||function(t){return aR(t,jct)}},Lct={f:Object.getOwnPropertySymbols},Rct=Mt([].concat),Mct=eh("Reflect","ownKeys")||function(t){var e=Ict.f(An(t)),r=Lct.f;return r?Rct(e,r(t)):e},Vct=function(t,e){for(var r=Mct(e),n=rh.f,o=nR.f,i=0;i<r.length;i++){var a=r[i];Dn(t,a)||n(t,a,o(e,a))}},zct=/#|\.prototype\./,nh=function(t,e){var r=Hct[$ct(t)];return r==Wct||r!=Uct&&(kr(e)?Ye(e):!!e)},$ct=nh.normalize=function(t){return String(t).replace(zct,".").toLowerCase()},Hct=nh.data={},Uct=nh.NATIVE="N",Wct=nh.POLYFILL="P",Gct=nh,qct=nR.f,Oa=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Pt:l?Pt[u]||v5(u,{}):(Pt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=qct(r,n))&&a.value:r[n],!Gct(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Vct(i,o)}(t.sham||o&&o.sham)&&Wl(i,"sham",!0),Zd(r,n,i,t)}},uR={};uR[jn("toStringTag")]="z";var D5=String(uR)==="[object z]",Kct=jn("toStringTag"),Yct=Pt.Object,Xct=sa(function(){return arguments}())=="Arguments",A5=D5?sa:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Yct(t),Kct))=="string"?r:Xct?sa(e):(n=sa(e))=="Object"&&kr(e.callee)?"Arguments":n},Zct=Pt.String,Sr=function(t){if(A5(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zct(t)},Jct=/"/g,Qct=Mt("".replace);Oa({target:"String",proto:!0,forced:Ye(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=Sr(Aa(this)),n="<a",(n+=' name="'+Qct(Sr(e),Jct,""")+'"')+">"+r+"</a>";var e,r,n}});var lg,sR=function(){var t=An(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},O5=Pt.RegExp,TC=Ye(function(){var t=O5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});TC||Ye(function(){return!O5("a","y").sticky});var lR={BROKEN_CARET:TC||Ye(function(){var t=O5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:TC},tft=Object.keys||function(t){return aR(t,j0)},eft=Da?Object.defineProperties:function(t,e){An(t);for(var r,n=th(e),o=tft(e),i=o.length,a=0;i>a;)rh.f(t,r=o[a++],n[r]);return t},rft=eh("document","documentElement"),cR=oR("IE_PROTO"),C2=function(){},fR=function(t){return"<script>"+t+"<\/script>"},BB=function(t){t.write(fR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qg=function(){try{lg=new ActiveXObject("htmlfile")}catch{}var t,e;Qg=typeof document<"u"?document.domain&&lg?BB(lg):((e=w5("iframe")).style.display="none",rft.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(fR("document.F=Object")),t.close(),t.F):BB(lg);for(var r=j0.length;r--;)delete Qg.prototype[j0[r]];return Qg()};C5[cR]=!0;var _B,x2,dR=Object.create||function(t,e){var r;return t!==null?(C2.prototype=An(t),r=new C2,C2.prototype=null,r[cR]=t):r=Qg(),e===void 0?r:eft(r,e)},nft=Pt.RegExp,oft=Ye(function(){var t=nft(".","s");return!(t.dotAll&&t.exec(`
|
|
124
|
+
`)&&t.flags==="s")}),ift=Pt.RegExp,aft=Ye(function(){var t=ift("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),uft=FC.get,sft=m5("native-string-replace",String.prototype.replace),I0=RegExp.prototype.exec,PC=I0,lft=Mt("".charAt),cft=Mt("".indexOf),fft=Mt("".replace),S2=Mt("".slice),D2=(x2=/b*/g,Qe(I0,_B=/a/,"a"),Qe(I0,x2,"a"),_B.lastIndex!==0||x2.lastIndex!==0),FB=lR.BROKEN_CARET,A2=/()??/.exec("")[1]!==void 0;(D2||A2||FB||oft||aft)&&(PC=function(t){var e,r,n,o,i,a,u,s=this,l=uft(s),c=Sr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(PC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=FB&&s.sticky,v=Qe(sR,s),h=s.source,m=0,y=c;if(p&&(v=fft(v,"y",""),cft(v,"g")===-1&&(v+="g"),y=S2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&lft(c,s.lastIndex-1)!==`
|
|
125
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),A2&&(r=new RegExp("^"+h+"$(?!\\s)",v)),D2&&(n=s.lastIndex),o=Qe(I0,p?r:s,y),p?o?(o.input=S2(o.input,m),o[0]=S2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:D2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),A2&&o&&o.length>1&&Qe(sft,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=dR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Qd=PC;Oa({target:"RegExp",proto:!0,forced:/./.exec!==Qd},{exec:Qd});var L0=Array.isArray||function(t){return sa(t)=="Array"},pR=function(){},dft=[],hR=eh("Reflect","construct"),k5=/^\s*(?:class|function)\b/,pft=Mt(k5.exec),hft=!k5.exec(pR),Ef=function(t){if(!kr(t))return!1;try{return hR(pR,dft,t),!0}catch{return!1}},B5=!hR||Ye(function(){var t;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){t=!0})||t})?function(t){if(!kr(t))return!1;switch(A5(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hft||!!pft(k5,E5(t))}:Ef,gR=function(t,e,r){var n=b5(e);n in t?rh.f(t,n,p5(0,r)):t[n]=r},gft=jn("species"),_5=function(t){return AC>=51||!Ye(function(){var e=[];return(e.constructor={})[gft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},vft=Mt([].slice),mft=_5("slice"),yft=jn("species"),O2=Pt.Array,bft=Math.max;function to(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function TB(t){var e=t.selection;if(e==null)return!1;var r=to(C.nodes(t,{match:function(i){return O.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=to(r,2)[1],o=C.start(t,n);if(_t.equals(e.anchor,o))return!0}return!1}function PB(t,e){var r,n,o=C.nodes(t,{at:e,match:function(s){return O.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}Oa({target:"Array",proto:!0,forced:!mft},{slice:function(t,e){var r,n,o,i=th(this),a=fy(i),u=Jd(t,a),s=Jd(e===void 0?a:e,a);if(L0(i)&&(r=i.constructor,(B5(r)&&(r===O2||L0(r.prototype))||Eo(r)&&(r=r[yft])===null)&&(r=void 0),r===O2||r===void 0))return vft(i,u,s);for(n=new(r===void 0?O2:r)(bft(s-u,0)),o=0;u<s;u++,o++)u in i&&gR(n,o,i[u]);return n.length=o,n}});var NB=Mt(Mt.bind),wft=jn("species"),jB=Pt.Array,Eft=function(t,e){return new(function(r){var n;return L0(r)&&(n=r.constructor,(B5(n)&&(n===jB||L0(n.prototype))||Eo(n)&&(n=n[wft])===null)&&(n=void 0)),n===void 0?jB:n}(t))(e===0?0:e)},IB=Mt([].push),cg=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=y5(s),h=ZL(v),m=function(x,D){return tR(x),D===void 0?x:NB?NB(x,D):function(){return x.apply(D,arguments)}}(l,c),y=fy(h),g=0,w=f||Eft,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:IB(E,d)}else switch(t){case 4:return!1;case 7:IB(E,d)}return i?-1:n||o?o:E}},dy={forEach:cg(0),map:cg(1),filter:cg(2),find:cg(5)},Cft=dy.map;Oa({target:"Array",proto:!0,forced:!_5("map")},{map:function(t){return Cft(this,t,arguments.length>1?arguments[1]:void 0)}});var xft=D5?{}.toString:function(){return"[object "+A5(this)+"]"};function py(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function vR(t){return py(t).every(function(e){return!!e.isHeader})}D5||Zd(Object.prototype,"toString",xft,{unsafe:!0});var Sft=x5.PROPER,NC=RegExp.prototype,mR=NC.toString,Dft=Mt(sR),Aft=Ye(function(){return mR.call({source:"a",flags:"b"})!="/a/b"}),Oft=Sft&&mR.name!="toString";(Aft||Oft)&&Zd(RegExp.prototype,"toString",function(){var t=An(this),e=Sr(t.source),r=t.flags;return"/"+e+"/"+Sr(r===void 0&&JL(NC,t)&&!("flags"in NC)?Dft(t):r)},{unsafe:!0});var jC=jn("unscopables"),IC=Array.prototype;IC[jC]==null&&rh.f(IC,jC,{configurable:!0,value:dR(null)});var kft=dy.find,LB=!0;"find"in[]&&Array(1).find(function(){LB=!1}),Oa({target:"Array",proto:!0,forced:LB},{find:function(t){return kft(this,t,arguments.length>1?arguments[1]:void 0)}}),IC[jC].find=!0;var F5=Function.prototype,RB=F5.apply,Bft=F5.bind,MB=F5.call,yR=typeof Reflect=="object"&&Reflect.apply||(Bft?MB.bind(RB):function(){return MB.apply(RB,arguments)}),_ft=jn("species"),k2=RegExp.prototype,bR=function(t,e,r,n){var o=jn(t),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[_ft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Mt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=Mt(l),h=c.exec;return h===Qd||h===k2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Zd(String.prototype,t,s[0]),Zd(k2,o,s[1])}n&&Wl(k2[o],"sham",!0)},Fft=jn("match"),Tft=Pt.TypeError,Pft=jn("species"),Nft=Mt("".charAt),VB=Mt("".charCodeAt),jft=Mt("".slice),Ift=function(t){return function(e,r){var n,o,i=Sr(Aa(e)),a=cy(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=VB(i,a))<55296||n>56319||a+1===u||(o=VB(i,a+1))<56320||o>57343?t?Nft(i,a):n:t?jft(i,a,a+2):o-56320+(n-55296<<10)+65536}},Lft=Ift(!0),wR=function(t,e,r){return e+(r?Lft(t,e).length:1)},Rft=Pt.Array,Mft=Math.max,zB=function(t,e,r){for(var n=fy(t),o=Jd(e,n),i=Jd(r===void 0?n:r,n),a=Rft(Mft(i-o,0)),u=0;o<i;o++,u++)gR(a,u,t[o]);return a.length=u,a},Vft=Pt.TypeError,LC=function(t,e){var r=t.exec;if(kr(r)){var n=Qe(r,t,e);return n!==null&&An(n),n}if(sa(t)==="RegExp")return Qe(Qd,t,e);throw Vft("RegExp#exec called on incompatible receiver")},Vs=lR.UNSUPPORTED_Y,zft=Math.min,ER=[].push,$ft=Mt(/./.exec),zs=Mt(ER),Cf=Mt("".slice);bR("split",function(t,e,r){var n;return n="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,i){var a,u,s=Sr(Aa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Eo(a=o)||!((u=a[Fft])!==void 0?u:sa(a)=="RegExp"))return Qe(e,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,m=new RegExp(o.source,v+"g");(c=Qe(Qd,m,s))&&!((f=m.lastIndex)>h&&(zs(p,Cf(s,h,c.index)),c.length>1&&c.index<s.length&&yR(ER,p,zB(c,1)),d=c[0].length,h=f,p.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return h===s.length?!d&&$ft(m,"")||zs(p,""):zs(p,Cf(s,h)),p.length>l?zB(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Qe(e,this,o,i)}:e,[function(o,i){var a=Aa(this),u=o==null?void 0:g5(o,t);return u?Qe(u,o,a,i):Qe(n,Sr(a),o,i)},function(o,i){var a=An(this),u=Sr(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(E,x){var D,S=An(E).constructor;return S===void 0||(D=An(S)[Pft])==null?x:function(k){if(B5(k))return k;throw Tft(QL(k)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Vs?"g":"y"),d=new l(Vs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return LC(d,u)===null?[u]:[];for(var v=0,h=0,m=[];h<u.length;){d.lastIndex=Vs?0:h;var y,g=LC(d,Vs?Cf(u,h):u);if(g===null||(y=zft(S5(d.lastIndex+(Vs?h:0)),u.length))===v)h=wR(u,h,c);else{if(zs(m,Cf(u,v,h)),m.length===p)return m;for(var w=1;w<=g.length-1;w++)if(zs(m,g[w]),m.length===p)return m;h=v=y}}return zs(m,Cf(u,v)),m}]},!!Ye(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Vs);var RC=`
|
|
126
|
+
\v\f\r \u2028\u2029\uFEFF`,$B=Mt("".replace),R0="["+RC+"]",Hft=RegExp("^"+R0+R0+"*"),Uft=RegExp(R0+R0+"*$"),Wft=function(t){return function(e){var r=Sr(Aa(e));return 1&t&&(r=$B(r,Hft,"")),2&t&&(r=$B(r,Uft,"")),r}},Gft={trim:Wft(3)},qft=x5.PROPER,Kft=Gft.trim;function CR(t){return t.length?t[0].tagName.toLowerCase():""}Oa({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!RC[t]()||"
"[t]()!=="
"||qft&&RC[t].name!==t})}("trim")},{trim:function(){return Kft(this)}}),Oa({global:!0},{globalThis:Pt}),Bn&&(_.fn.append=Bn),_o&&(_.fn.on=_o),ba&&(_.fn.focus=ba),kn&&(_.fn.attr=kn),Bo&&(_.fn.val=Bo),ya&&(_.fn.html=ya),Bl&&(_.fn.dataset=Bl),Al&&(_.fn.addClass=Al),Ol&&(_.fn.removeClass=Ol),Pl&&(_.fn.children=Pl),zv&&(_.fn.each=zv),Tl&&(_.fn.find=Tl);var tp=!1,xR=0,SR=0,ep=null,rp=null,hd=_("body");function DR(t){tp=!1,rp=null,ep=null,hd.off("mousemove",AR),hd.off("mouseup",DR)}hd.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),tp=!0;var r=t.clientX;xR=r;var n=e.getBoundingClientRect().width;SR=n,hd.on("mousemove",AR),hd.on("mouseup",DR)}});var AR=Wu(function(t){if(tp&&rp!=null&&ep!=null){t.preventDefault();var e=t.clientX,r=SR+(e-xR);(r=Math.floor(100*r)/100)<30&&(r=30),R.setNodes(rp,{width:r.toString()},{at:ep})}},100),Yft={type:"table",renderElem:function(t,e,r){var n=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||z.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=O.findPath(u,s),p=C.start(u,d),v=C.end(u,d),h=_t.compare(c,v)<=0&&_t.compare(c,p)>=0,m=_t.compare(f,v)<=0&&_t.compare(f,p)>=0;return!!(h&&m&&I.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,t),o=t.width,i=o===void 0?"auto":o,a=wt("div",{className:"table-container","data-selected":O.isNodeSelected(r,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=O.findPath(r,t),l=C.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},wt("table",{width:i,contentEditable:n},wt("colgroup",null,py(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},Xft={type:"table-row",renderElem:function(t,e,r){return wt("tr",null,e)}},Zft={type:"table-cell",renderElem:function(t,e,r){var n=function(d,p){var v=O.getParentNode(d,p);if(v==null)return!1;var h=O.getParentNode(d,v);return h!=null&&py(h).some(function(m){return m===p})}(r,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!n)return wt("td",{colSpan:a,rowSpan:s},e);var f=wt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Wu(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),h=v.left,m=v.width,y=v.top,g=v.height,w=d.clientX,E=d.clientY;tp||(w>h+m-5&&w<h+m&&E>y&&E<y+g?(p.style.cursor="col-resize",rp=r,ep=O.findPath(r,t)):tp||(p.style.cursor="auto",rp=null,ep=null))}},100)}},e);return f}},Jft={selector:"table",preParseHtml:function(t){var e=_(t);if(CR(e)!=="table")return t;var r=e.find("tbody");if(r.length===0)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Qft=dy.filter;Oa({target:"Array",proto:!0,forced:!_5("filter")},{filter:function(t){return Qft(this,t,arguments.length>1?arguments[1]:void 0)}});var tdt=Math.floor,B2=Mt("".charAt),edt=Mt("".replace),_2=Mt("".slice),rdt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ndt=/\$([$&'`]|\d{1,2})/g,odt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=ndt;return o!==void 0&&(o=y5(o),s=rdt),edt(i,s,function(l,c){var f;switch(B2(c,0)){case"$":return"$";case"&":return t;case"`":return _2(e,0,r);case"'":return _2(e,a);case"<":f=o[_2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=tdt(d/10);return p===0?l:p<=u?n[p-1]===void 0?B2(c,1):n[p-1]+B2(c,1):l}f=n[d-1]}return f===void 0?"":f})},MC=jn("replace"),idt=Math.max,adt=Math.min,udt=Mt([].concat),F2=Mt([].push),HB=Mt("".indexOf),UB=Mt("".slice),sdt="a".replace(/./,"$0")==="$0",WB=!!/./[MC]&&/./[MC]("a","$0")==="";bR("replace",function(t,e,r){var n=WB?"$":"$0";return[function(o,i){var a=Aa(this),u=o==null?void 0:g5(o,MC);return u?Qe(u,o,a,i):Qe(e,Sr(a),o,i)},function(o,i){var a=An(this),u=Sr(o);if(typeof i=="string"&&HB(i,n)===-1&&HB(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=kr(i);l||(i=Sr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=LC(a,u);if(p===null||(F2(d,p),!c))break;Sr(p[0])===""&&(a.lastIndex=wR(u,S5(a.lastIndex),f))}for(var v,h="",m=0,y=0;y<d.length;y++){for(var g=Sr((p=d[y])[0]),w=idt(adt(cy(p.index),u.length),0),E=[],x=1;x<p.length;x++)F2(E,(v=p[x])===void 0?v:String(v));var D=p.groups;if(l){var S=udt([g],E,w,u);D!==void 0&&F2(S,D);var k=Sr(yR(i,void 0,S))}else k=odt(g,u,w,E,D,i);w>=m&&(h+=UB(u,m,w)+k,m=w+g.length)}return h+UB(u,m)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!sdt||WB);var ldt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);(e=e.filter(function(u){return!!it.isText(u)||!!r.isInline(u)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:CR(n)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},cdt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"table-row",children:e.filter(function(n){return O.getNodeType(n)==="table-cell"})}}},fdt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return O.getNodeType(i)==="table-row"})}}},ddt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||!!O.getSelectedElems(e).some(function(n){var o=O.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getPanelContentElem=function(e){var r=this;if(this.$content)return this.$content[0];for(var n=_('<div class="w-e-panel-content-table"></div>'),o=_("<span>0 × 0</span>"),i=_("<table></table>"),a=0;a<10;a++){for(var u=_("<tr></tr>"),s=0;s<10;s++){var l=_("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=_(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" × "+(v+1),i.children().each(function(h){_(h).children().each(function(m){var y=_(m),g=y.dataset(),w=g.x,E=g.y;w<=p&&E<=v?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=_(f).dataset(),p=d.x,v=d.y;r.insertTable(e,v+1,p+1)}})}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},t.prototype.insertTable=function(e,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){O.isSelectedEmptyParagraph(e)&&R.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);R.insertNodes(e,a,{mode:"highest"})}},t}(),pdt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||R.removeNodes(e,{mode:"highest"})},t}(),hdt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=to(C.nodes(e,{match:function(p){return O.checkNodeType(p,"table-cell")},universal:!0}),1),o=to(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=I.parent(a),d=I.next(f);R.insertNodes(e,l,{at:d})}}},t}(),gdt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=to(C.nodes(e,{match:function(s){return O.checkNodeType(s,"table-row")},universal:!0}),1),o=to(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?R.removeNodes(e,{mode:"highest"}):R.removeNodes(e,{at:a})}},t}(),GB={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},T2=w5("span").classList,qB=T2&&T2.constructor&&T2.constructor.prototype,vdt=qB===Object.prototype?void 0:qB,mdt=dy.forEach,ydt=function(t,e){var r=[].forEach;return!!r&&Ye(function(){r.call(null,function(){throw 1},1)})}(),P2=ydt?[].forEach:function(t){return mdt(this,t,arguments.length>1?arguments[1]:void 0)},OR=function(t){if(t&&t.forEach!==P2)try{Wl(t,"forEach",P2)}catch{t.forEach=P2}};for(var N2 in GB)GB[N2]&&OR(Pt[N2]&&Pt[N2].prototype);OR(vdt);var bdt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=to(C.nodes(e,{match:function(l){return O.checkNodeType(l,"table-cell")},universal:!0}),1),o=to(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);if(u!=null){var s=O.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var d=O.findPath(e,f);if(d.length===a.length&&KL(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&vR(s)&&(p.isHeader=!0),R.insertNodes(e,p,{at:d})}})})}}},t}(),wdt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=to(C.nodes(e,{match:function(c){return O.checkNodeType(c,"table-cell")},universal:!0}),1),o=to(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)R.removeNodes(e,{mode:"highest"});else{var l=O.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var d=O.findPath(e,f);d.length===a.length&&KL(d.slice(-1),a.slice(-1))&&R.removeNodes(e,{at:d})})})}}},t}(),Edt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){var r=O.getSelectedNodeByType(e,"table");return r!=null&&vR(r)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=!r,o=O.getSelectedNodeByType(e,"table");o!=null&&py(o).forEach(function(i){return R.setNodes(e,{isHeader:n},{at:O.findPath(e,i)})})}},t}(),Cdt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){var r=O.getSelectedNodeByType(e,"table");return r!=null&&r.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n={width:r?"auto":"100%"};R.setNodes(e,n,{mode:"highest"})}},t}(),xdt={renderElems:[Yft,Xft,Zft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Jft],parseElemsHtml:[ldt,cdt,fdt],menus:[{key:"insertTable",factory:function(){return new ddt}},{key:"deleteTable",factory:function(){return new pdt}},{key:"insertTableRow",factory:function(){return new hdt}},{key:"deleteTableRow",factory:function(){return new gdt}},{key:"insertTableCol",factory:function(){return new bdt}},{key:"deleteTableCol",factory:function(){return new wdt}},{key:"tableHeader",factory:function(){return new Edt}},{key:"tableFullWidth",factory:function(){return new Cdt}}],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){O.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
|
|
127
|
+
`)},s.deleteBackward=function(l){if(!TB(s)){var c=s.selection;if(c){var f=C.before(s,c);if(f){var d=PB(s,f),p=PB(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(O.getSelectedNodeByType(s,"table")){var c=C.above(t);O.checkNodeType(c[0],"table-cell")&&R.select(t,c[1]);var f=C.next(t);if(f)f[0]&&f[0].text&&(f=(l=C.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),R.select(t,f[1]);else{var d=s.children||[],p=d.length;if(O.checkNodeType(d[p-1],"table")){var v=O.genEmptyParagraph();R.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){TB(s)||n(l)},s.normalizeNode=function(l){var c=to(l,2),f=c[0],d=c[1];if(O.getNodeType(f)!=="table")return o([f,d]);if(O.isLastNode(s,f)){var p=O.genEmptyParagraph();R.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(O.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
|
|
128
|
+
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):C.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=O.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(I.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Q.string(c).length!==0){var p=O.findPath(s,c),v={anchor:C.start(s,p),focus:C.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};Kr("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"}}),Kr("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
|
|
129
|
+
Copyright (c) Microsoft Corporation.
|
|
130
|
+
|
|
131
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
132
|
+
purpose with or without fee is hereby granted.
|
|
133
|
+
|
|
134
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
135
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
136
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
137
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
138
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
139
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
140
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
141
|
+
***************************************************************************** */var M0=function(){return M0=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},M0.apply(this,arguments)};function hy(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function gy(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function ju(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Sdt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var KB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T5(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,tv,fg=function(t){return t&&t.Math==Math&&t},nt=fg(typeof globalThis=="object"&&globalThis)||fg(typeof window=="object"&&window)||fg(typeof self=="object"&&self)||fg(typeof KB=="object"&&KB)||function(){return this}()||Function("return this")(),fe=function(t){try{return!!t()}catch{return!0}},To=!fe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xf=Function.prototype.call,ce=xf.bind?xf.bind(xf):function(){return xf.apply(xf,arguments)},YB={}.propertyIsEnumerable,XB=Object.getOwnPropertyDescriptor,Ddt={f:XB&&!YB.call({1:2},1)?function(t){var e=XB(this,t);return!!e&&e.enumerable}:YB},vy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},kR=Function.prototype,VC=kR.bind,zC=kR.call,Adt=VC&&VC.bind(zC),St=VC?function(t){return t&&Adt(zC,t)}:function(t){return t&&function(){return zC.apply(t,arguments)}},Odt=St({}.toString),kdt=St("".slice),Ao=function(t){return kdt(Odt(t),8,-1)},j2=nt.Object,Bdt=St("".split),P5=fe(function(){return!j2("z").propertyIsEnumerable(0)})?function(t){return Ao(t)=="String"?Bdt(t,""):j2(t)}:j2,_dt=nt.TypeError,oh=function(t){if(t==null)throw _dt("Can't call method on "+t);return t},ja=function(t){return P5(oh(t))},ie=function(t){return typeof t=="function"},be=function(t){return typeof t=="object"?t!==null:ie(t)},Fdt=function(t){return ie(t)?t:void 0},es=function(t,e){return arguments.length<2?Fdt(nt[t]):nt[t]&&nt[t][e]},np=St({}.isPrototypeOf),ml=es("navigator","userAgent")||"",ZB=nt.process,JB=nt.Deno,QB=ZB&&ZB.versions||JB&&JB.version,t_=QB&&QB.v8;t_&&(tv=(ji=t_.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!tv&&ml&&(!(ji=ml.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=ml.match(/Chrome\/(\d+)/))&&(tv=+ji[1]);var op=tv,$C=!!Object.getOwnPropertySymbols&&!fe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&op&&op<41}),N5=$C&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Tdt=nt.Object,I2=N5?function(t){return typeof t=="symbol"}:function(t){var e=es("Symbol");return ie(e)&&np(e.prototype,Tdt(t))},Pdt=nt.String,V0=function(t){try{return Pdt(t)}catch{return"Object"}},Ndt=nt.TypeError,ka=function(t){if(ie(t))return t;throw Ndt(V0(t)+" is not a function")},ip=function(t,e){var r=t[e];return r==null?void 0:ka(r)},jdt=nt.TypeError,Idt=Object.defineProperty,j5=function(t,e){try{Idt(nt,t,{value:e,configurable:!0,writable:!0})}catch{nt[t]=e}return e},ca=nt["__core-js_shared__"]||j5("__core-js_shared__",{}),I5=T5(function(t){(t.exports=function(e,r){return ca[e]||(ca[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ldt=nt.Object,my=function(t){return Ldt(oh(t))},Rdt=St({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return Rdt(my(t),e)},Mdt=0,Vdt=Math.random(),zdt=St(1 .toString),L5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+zdt(++Mdt+Vdt,36)},Sf=I5("wks"),Iu=nt.Symbol,e_=Iu&&Iu.for,$dt=N5?Iu:Iu&&Iu.withoutSetter||L5,Me=function(t){if(!qe(Sf,t)||!$C&&typeof Sf[t]!="string"){var e="Symbol."+t;$C&&qe(Iu,t)?Sf[t]=Iu[t]:Sf[t]=N5&&e_?e_(e):$dt(e)}return Sf[t]},Hdt=nt.TypeError,Udt=Me("toPrimitive"),R5=function(t){var e=function(r,n){if(!be(r)||I2(r))return r;var o,i=ip(r,Udt);if(i){if(o=ce(i,r,n),!be(o)||I2(o))return o;throw Hdt("Can't convert object to primitive value")}return function(a,u){var s,l;if(ie(s=a.toString)&&!be(l=ce(s,a))||ie(s=a.valueOf)&&!be(l=ce(s,a)))return l;throw jdt("Can't convert object to primitive value")}(r)}(t,"string");return I2(e)?e:e+""},HC=nt.document,Wdt=be(HC)&&be(HC.createElement),ap=function(t){return Wdt?HC.createElement(t):{}},BR=!To&&!fe(function(){return Object.defineProperty(ap("div"),"a",{get:function(){return 7}}).a!=7}),r_=Object.getOwnPropertyDescriptor,M5={f:To?r_:function(t,e){if(t=ja(t),e=R5(e),BR)try{return r_(t,e)}catch{}if(qe(t,e))return vy(!ce(Ddt.f,t,e),t[e])}},Gdt=nt.String,qdt=nt.TypeError,cr=function(t){if(be(t))return t;throw qdt(Gdt(t)+" is not an object")},Kdt=nt.TypeError,n_=Object.defineProperty,gi={f:To?n_:function(t,e,r){if(cr(t),e=R5(e),cr(r),BR)try{return n_(t,e,r)}catch{}if("get"in r||"set"in r)throw Kdt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},fa=To?function(t,e,r){return gi.f(t,e,vy(1,r))}:function(t,e,r){return t[e]=r,t},Ydt=St(Function.toString);ie(ca.inspectSource)||(ca.inspectSource=function(t){return Ydt(t)});var z0,gd,$0,yy=ca.inspectSource,o_=nt.WeakMap,_R=ie(o_)&&/native code/.test(yy(o_)),i_=I5("keys"),V5=function(t){return i_[t]||(i_[t]=L5(t))},by={},UC=nt.TypeError,Xdt=nt.WeakMap;if(_R||ca.state){var Ja=ca.state||(ca.state=new Xdt),Zdt=St(Ja.get),a_=St(Ja.has),Jdt=St(Ja.set);z0=function(t,e){if(a_(Ja,t))throw new UC("Object already initialized");return e.facade=t,Jdt(Ja,t,e),e},gd=function(t){return Zdt(Ja,t)||{}},$0=function(t){return a_(Ja,t)}}else{var $s=V5("state");by[$s]=!0,z0=function(t,e){if(qe(t,$s))throw new UC("Object already initialized");return e.facade=t,fa(t,$s,e),e},gd=function(t){return qe(t,$s)?t[$s]:{}},$0=function(t){return qe(t,$s)}}var cn={set:z0,get:gd,has:$0,enforce:function(t){return $0(t)?gd(t):z0(t,{})},getterFor:function(t){return function(e){var r;if(!be(e)||(r=gd(e)).type!==t)throw UC("Incompatible receiver, "+t+" required");return r}}},FR=Function.prototype,Qdt=To&&Object.getOwnPropertyDescriptor,L2=qe(FR,"name"),mc={EXISTS:L2,PROPER:L2&&(function(){}).name==="something",CONFIGURABLE:L2&&(!To||To&&Qdt(FR,"name").configurable)},Pn=T5(function(t){var e=mc.CONFIGURABLE,r=cn.get,n=cn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ie(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qe(u,"name")||e&&u.name!==p)&&fa(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==nt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:fa(i,a,u)):f?i[a]=u:j5(a,u)})(Function.prototype,"toString",function(){return ie(this)&&r(this).source||yy(this)})}),tpt=Math.ceil,ept=Math.floor,wy=function(t){var e=+t;return e!=e||e===0?0:(e>0?ept:tpt)(e)},rpt=Math.max,npt=Math.min,up=function(t,e){var r=wy(t);return r<0?rpt(r+e,0):npt(r,e)},opt=Math.min,TR=function(t){return t>0?opt(wy(t),9007199254740991):0},ih=function(t){return TR(t.length)},u_=function(t){return function(e,r,n){var o,i=ja(e),a=ih(i),u=up(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},PR={includes:u_(!0),indexOf:u_(!1)},ipt=PR.indexOf,s_=St([].push),NR=function(t,e){var r,n=ja(t),o=0,i=[];for(r in n)!qe(by,r)&&qe(n,r)&&s_(i,r);for(;e.length>o;)qe(n,r=e[o++])&&(~ipt(i,r)||s_(i,r));return i},H0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],apt=H0.concat("length","prototype"),U0={f:Object.getOwnPropertyNames||function(t){return NR(t,apt)}},upt={f:Object.getOwnPropertySymbols},spt=St([].concat),lpt=es("Reflect","ownKeys")||function(t){var e=U0.f(cr(t)),r=upt.f;return r?spt(e,r(t)):e},cpt=function(t,e){for(var r=lpt(e),n=gi.f,o=M5.f,i=0;i<r.length;i++){var a=r[i];qe(t,a)||n(t,a,o(e,a))}},fpt=/#|\.prototype\./,ah=function(t,e){var r=ppt[dpt(t)];return r==gpt||r!=hpt&&(ie(e)?fe(e):!!e)},dpt=ah.normalize=function(t){return String(t).replace(fpt,".").toLowerCase()},ppt=ah.data={},hpt=ah.NATIVE="N",gpt=ah.POLYFILL="P",W0=ah,vpt=M5.f,$r=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?nt:l?nt[u]||j5(u,{}):(nt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=vpt(r,n))&&a.value:r[n],!W0(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;cpt(i,o)}(t.sham||o&&o.sham)&&fa(i,"sham",!0),Pn(r,n,i,t)}},jR={};jR[Me("toStringTag")]="z";var z5=String(jR)==="[object z]",mpt=Me("toStringTag"),ypt=nt.Object,bpt=Ao(function(){return arguments}())=="Arguments",Ey=z5?Ao:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=ypt(t),mpt))=="string"?r:bpt?Ao(e):(n=Ao(e))=="Object"&&ie(e.callee)?"Arguments":n},wpt=nt.String,wn=function(t){if(Ey(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wpt(t)},WC=`
|
|
142
|
+
\v\f\r \u2028\u2029\uFEFF`,l_=St("".replace),G0="["+WC+"]",Ept=RegExp("^"+G0+G0+"*"),Cpt=RegExp(G0+G0+"*$"),xpt=function(t){return function(e){var r=wn(oh(e));return 1&t&&(r=l_(r,Ept,"")),2&t&&(r=l_(r,Cpt,"")),r}},Spt={trim:xpt(3)},Dpt=mc.PROPER,Apt=Spt.trim;function c_(t){return t.length?t[0].tagName.toLowerCase():""}function IR(t,e,r){e===void 0&&(e="auto"),r===void 0&&(r="auto");var n=_(t);return n.attr("width",e),n.attr("height",r),n[0].outerHTML}$r({target:"String",proto:!0,forced:fe(function(){return!!WC.trim()||"
".trim()!=="
"||Dpt&&WC.trim.name!=="trim"})},{trim:function(){return Apt(this)}}),$r({global:!0},{globalThis:nt}),Bn&&(_.fn.append=Bn),_o&&(_.fn.on=_o),ba&&(_.fn.focus=ba),kn&&(_.fn.attr=kn),Bo&&(_.fn.val=Bo),ya&&(_.fn.html=ya),Fl&&(_.fn.parent=Fl),kl&&(_.fn.hasClass=kl),jl&&(_.fn.empty=jl);var dg,Opt={type:"video",renderElem:function(t,e,r){var n,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=O.isNodeSelected(r,t);if(a.trim().indexOf("<iframe ")===0)n=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:IR(a,c,d)});else{var v=wt("video",{poster:s,controls:!0},wt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
|
|
143
|
+
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Il("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},n)}},kpt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
|
|
144
|
+
`;return o.trim().indexOf("<iframe ")===0?f+=IR(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
|
|
145
|
+
</div>`}},Bpt=Object.keys||function(t){return NR(t,H0)},_pt=To?Object.defineProperties:function(t,e){cr(t);for(var r,n=ja(e),o=Bpt(e),i=o.length,a=0;i>a;)gi.f(t,r=o[a++],n[r]);return t},GC=es("document","documentElement"),LR=V5("IE_PROTO"),R2=function(){},RR=function(t){return"<script>"+t+"<\/script>"},f_=function(t){t.write(RR("")),t.close();var e=t.parentWindow.Object;return t=null,e},ev=function(){try{dg=new ActiveXObject("htmlfile")}catch{}var t,e;ev=typeof document<"u"?document.domain&&dg?f_(dg):((e=ap("iframe")).style.display="none",GC.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(RR("document.F=Object")),t.close(),t.F):f_(dg);for(var r=H0.length;r--;)delete ev.prototype[H0[r]];return ev()};by[LR]=!0;var $5=Object.create||function(t,e){var r;return t!==null?(R2.prototype=cr(t),r=new R2,R2.prototype=null,r[LR]=t):r=ev(),e===void 0?r:_pt(r,e)},qC=Me("unscopables"),KC=Array.prototype;KC[qC]==null&&gi.f(KC,qC,{configurable:!0,value:$5(null)});var vd=function(t){KC[qC][t]=!0},Fpt=PR.includes;$r({target:"Array",proto:!0},{includes:function(t){return Fpt(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("includes");var Tpt={selector:"iframe,video,p",preParseHtml:function(t){var e=_(t),r=e;if(c_(e)==="p"){var n=e.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=_(o))}}var a=c_(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=_('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},d_=St(St.bind),sp=function(t,e){return ka(t),e===void 0?t:d_?d_(t,e):function(){return t.apply(e,arguments)}},q0=Array.isArray||function(t){return Ao(t)=="Array"},MR=function(){},Ppt=[],VR=es("Reflect","construct"),H5=/^\s*(?:class|function)\b/,Npt=St(H5.exec),jpt=!H5.exec(MR),Df=function(t){if(!ie(t))return!1;try{return VR(MR,Ppt,t),!0}catch{return!1}},U5=!VR||fe(function(){var t;return Df(Df.call)||!Df(Object)||!Df(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(Ey(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jpt||!!Npt(H5,yy(t))}:Df,Ipt=Me("species"),p_=nt.Array,Lpt=function(t,e){return new(function(r){var n;return q0(r)&&(n=r.constructor,(U5(n)&&(n===p_||q0(n.prototype))||be(n)&&(n=n[Ipt])===null)&&(n=void 0)),n===void 0?p_:n}(t))(e===0?0:e)},h_=St([].push),g_=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=my(s),h=P5(v),m=sp(l,c),y=ih(h),g=0,w=f||Lpt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:h_(E,d)}else switch(t){case 4:return!1;case 7:h_(E,d)}return i?-1:n||o?o:E}},W5={find:g_(5),findIndex:g_(6)},Rpt=W5.find,v_=!0;"find"in[]&&Array(1).find(function(){v_=!1}),$r({target:"Array",proto:!0,forced:v_},{find:function(t){return Rpt(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("find");var Mpt=z5?{}.toString:function(){return"[object "+Ey(this)+"]"};function m_(t,e,r,n){return e===void 0&&(e=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:t,poster:e,width:r,height:n,children:[{text:""}]}}z5||Pn(Object.prototype,"toString",Mpt,{unsafe:!0});var y_,M2,Vpt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=_(t),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",m_(o=s[0].outerHTML,i,a,u);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",m_(o,i=l.attr("poster")||"",a,u)}},zR=function(){var t=cr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},G5=nt.RegExp,$R=fe(function(){var t=G5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});$R||fe(function(){return!G5("a","y").sticky});var zpt={BROKEN_CARET:$R||fe(function(){var t=G5("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},$pt=nt.RegExp,Hpt=fe(function(){var t=$pt(".","s");return!(t.dotAll&&t.exec(`
|
|
146
|
+
`)&&t.flags==="s")}),Upt=nt.RegExp,Wpt=fe(function(){var t=Upt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Gpt=cn.get,qpt=I5("native-string-replace",String.prototype.replace),K0=RegExp.prototype.exec,YC=K0,Kpt=St("".charAt),Ypt=St("".indexOf),Xpt=St("".replace),V2=St("".slice),z2=(M2=/b*/g,ce(K0,y_=/a/,"a"),ce(K0,M2,"a"),y_.lastIndex!==0||M2.lastIndex!==0),b_=zpt.BROKEN_CARET,$2=/()??/.exec("")[1]!==void 0;(z2||$2||b_||Hpt||Wpt)&&(YC=function(t){var e,r,n,o,i,a,u,s=this,l=Gpt(s),c=wn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ce(YC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=b_&&s.sticky,v=ce(zR,s),h=s.source,m=0,y=c;if(p&&(v=Xpt(v,"y",""),Ypt(v,"g")===-1&&(v+="g"),y=V2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Kpt(c,s.lastIndex-1)!==`
|
|
147
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),$2&&(r=new RegExp("^"+h+"$(?!\\s)",v)),z2&&(n=s.lastIndex),o=ce(K0,p?r:s,y),p?o?(o.input=V2(o.input,m),o[0]=V2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:z2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),$2&&o&&o.length>1&&ce(qpt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=$5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Y0=YC;$r({target:"RegExp",proto:!0,forced:/./.exec!==Y0},{exec:Y0});var q5=Function.prototype,w_=q5.apply,Zpt=q5.bind,E_=q5.call,HR=typeof Reflect=="object"&&Reflect.apply||(Zpt?E_.bind(w_):function(){return E_.apply(w_,arguments)}),C_=(Me("species"),RegExp.prototype),Jpt=St("".charAt),x_=St("".charCodeAt),Qpt=St("".slice),tht=function(t){return function(e,r){var n,o,i=wn(oh(e)),a=wy(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=x_(i,a))<55296||n>56319||a+1===u||(o=x_(i,a+1))<56320||o>57343?t?Jpt(i,a):n:t?Qpt(i,a,a+2):o-56320+(n-55296<<10)+65536}},UR={charAt:tht(!0)},eht=UR.charAt,rht=function(t,e,r){return e+(r?eht(t,e).length:1)},nht=Math.floor,H2=St("".charAt),oht=St("".replace),U2=St("".slice),iht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,aht=/\$([$&'`]|\d{1,2})/g,uht=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=aht;return o!==void 0&&(o=my(o),s=iht),oht(i,s,function(l,c){var f;switch(H2(c,0)){case"$":return"$";case"&":return t;case"`":return U2(e,0,r);case"'":return U2(e,a);case"<":f=o[U2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=nht(d/10);return p===0?l:p<=u?n[p-1]===void 0?H2(c,1):n[p-1]+H2(c,1):l}f=n[d-1]}return f===void 0?"":f})},sht=nt.TypeError,lht=function(t,e){var r=t.exec;if(ie(r)){var n=ce(r,t,e);return n!==null&&cr(n),n}if(Ao(t)==="RegExp")return ce(Y0,t,e);throw sht("RegExp#exec called on incompatible receiver")},XC=Me("replace"),cht=Math.max,fht=Math.min,dht=St([].concat),W2=St([].push),S_=St("".indexOf),D_=St("".slice),pht="a".replace(/./,"$0")==="$0",A_=!!/./[XC]&&/./[XC]("a","$0")==="";function WR(t){return t+"-"+QP()}(function(t,e,r,n){var o=Me(t),i=!fe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!fe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=St(/./[o]),s=function(l,c,f){var d=A_?"$":"$0";return[function(p,v){var h=oh(this),m=p==null?void 0:ip(p,XC);return m?ce(m,p,h,v):ce(c,wn(h),p,v)},function(p,v){var h=cr(this),m=wn(p);if(typeof v=="string"&&S_(v,d)===-1&&S_(v,"$<")===-1){var y=f(c,h,m,v);if(y.done)return y.value}var g=ie(v);g||(v=wn(v));var w=h.global;if(w){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var D=lht(h,m);if(D===null||(W2(x,D),!w))break;wn(D[0])===""&&(h.lastIndex=rht(m,TR(h.lastIndex),E))}for(var S,k="",F=0,$=0;$<x.length;$++){for(var W=wn((D=x[$])[0]),j=cht(fht(wy(D.index),m.length),0),L=[],V=1;V<D.length;V++)W2(L,(S=D[V])===void 0?S:String(S));var q=D.groups;if(g){var Y=dht([W],L,j,m);q!==void 0&&W2(Y,q);var rt=wn(HR(v,void 0,Y))}else rt=uht(W,m,j,L,q,v);j>=F&&(k+=D_(m,F,j)+rt,F=j+W.length)}return k+D_(m,F)}]}(0,""[t],function(l,c,f,d,p){var v=St(l),h=c.exec;return h===Y0||h===C_.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Pn(String.prototype,t,s[0]),Pn(C_,o,s[1])}})("replace",0,!!fe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!pht||A_);var X0=nt.Promise,Z0=function(t,e,r){for(var n in e)Pn(t,n,e[n],r);return t},hht=nt.String,ght=nt.TypeError,Gl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=St(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return cr(n),function(i){if(typeof i=="object"||ie(i))return i;throw ght("Can't set "+hht(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),vht=gi.f,O_=Me("toStringTag"),J0=function(t,e,r){t&&!qe(t=r?t:t.prototype,O_)&&vht(t,O_,{configurable:!0,value:e})},k_=Me("species"),mht=nt.TypeError,K5=function(t,e){if(np(e,t))return t;throw mht("Incorrect invocation")},ql={},yht=Me("iterator"),bht=Array.prototype,wht=Me("iterator"),B_=function(t){if(t!=null)return ip(t,wht)||ip(t,"@@iterator")||ql[Ey(t)]},Eht=nt.TypeError,__=function(t,e,r){var n,o;cr(t);try{if(!(n=ip(t,"return"))){if(e==="throw")throw r;return r}n=ce(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return cr(n),r},Cht=nt.TypeError,rv=function(t,e){this.stopped=t,this.result=e},F_=rv.prototype,Q0=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=sp(e,f),m=function(g){return n&&__(n,"normal",g),new rv(!0,g)},y=function(g){return d?(cr(g),v?h(g[0],g[1],m):h(g[0],g[1])):v?h(g,m):h(g)};if(p)n=t;else{if(!(o=B_(t)))throw Cht(V0(t)+" is not iterable");if((c=o)!==void 0&&(ql.Array===c||bht[yht]===c)){for(i=0,a=ih(t);a>i;i++)if((u=y(t[i]))&&np(F_,u))return u;return new rv(!1)}n=function(g,w){var E=arguments.length<2?B_(g):w;if(ka(E))return cr(ce(E,g));throw Eht(V0(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=ce(s,n)).done;){try{u=y(l.value)}catch(g){__(n,"throw",g)}if(typeof u=="object"&&u&&np(F_,u))return u}return new rv(!1)},GR=Me("iterator"),qR=!1;try{var xht=0,T_={next:function(){return{done:!!xht++}},return:function(){qR=!0}};T_[GR]=function(){return this},Array.from(T_,function(){throw 2})}catch{}var lp,Hs,P_,G2,KR=function(t,e){if(!qR)return!1;var r=!1;try{var n={};n[GR]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},Sht=nt.TypeError,Dht=Me("species"),YR=St([].slice),XR=/(?:ipad|iphone|ipod).*applewebkit/i.test(ml),da=Ao(nt.process)=="process",ZC=nt.setImmediate,N_=nt.clearImmediate,Aht=nt.process,q2=nt.Dispatch,Oht=nt.Function,j_=nt.MessageChannel,kht=nt.String,K2=0,md={};try{lp=nt.location}catch{}var Y5=function(t){if(qe(md,t)){var e=md[t];delete md[t],e()}},Y2=function(t){return function(){Y5(t)}},I_=function(t){Y5(t.data)},L_=function(t){nt.postMessage(kht(t),lp.protocol+"//"+lp.host)};ZC&&N_||(ZC=function(t){var e=YR(arguments,1);return md[++K2]=function(){HR(ie(t)?t:Oht(t),void 0,e)},Hs(K2),K2},N_=function(t){delete md[t]},da?Hs=function(t){Aht.nextTick(Y2(t))}:q2&&q2.now?Hs=function(t){q2.now(Y2(t))}:j_&&!XR?(G2=(P_=new j_).port2,P_.port1.onmessage=I_,Hs=sp(G2.postMessage,G2)):nt.addEventListener&&ie(nt.postMessage)&&!nt.importScripts&&lp&&lp.protocol!=="file:"&&!fe(L_)?(Hs=L_,nt.addEventListener("message",I_,!1)):Hs="onreadystatechange"in ap("script")?function(t){GC.appendChild(ap("script")).onreadystatechange=function(){GC.removeChild(this),Y5(t)}}:function(t){setTimeout(Y2(t),0)});var Af,cu,yd,rl,X2,Z2,J2,R_,ZR={set:ZC},Bht=/ipad|iphone|ipod/i.test(ml)&&nt.Pebble!==void 0,_ht=/web0s(?!.*chrome)/i.test(ml),Fht=M5.f,Q2=ZR.set,M_=nt.MutationObserver||nt.WebKitMutationObserver,V_=nt.document,z_=nt.process,pg=nt.Promise,$_=Fht(nt,"queueMicrotask"),JR=$_&&$_.value;JR||(Af=function(){var t,e;for(da&&(t=z_.domain)&&t.exit();cu;){e=cu.fn,cu=cu.next;try{e()}catch(r){throw cu?rl():yd=void 0,r}}yd=void 0,t&&t.enter()},XR||da||_ht||!M_||!V_?!Bht&&pg&&pg.resolve?((J2=pg.resolve(void 0)).constructor=pg,R_=sp(J2.then,J2),rl=function(){R_(Af)}):da?rl=function(){z_.nextTick(Af)}:(Q2=sp(Q2,nt),rl=function(){Q2(Af)}):(X2=!0,Z2=V_.createTextNode(""),new M_(Af).observe(Z2,{characterData:!0}),rl=function(){Z2.data=X2=!X2}));var tw,H_,QR,U_,tM=JR||function(t){var e={fn:t,next:void 0};yd&&(yd.next=e),cu||(cu=e,rl()),yd=e},Tht=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=ka(e),this.reject=ka(r)},X5={f:function(t){return new Tht(t)}},JC=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Pht=typeof window=="object",eM=ZR.set,Nht=Me("species"),Qo="Promise",W_=cn.getterFor(Qo),jht=cn.set,Iht=cn.getterFor(Qo),ou=X0&&X0.prototype,Co=X0,Of=ou,rM=nt.TypeError,QC=nt.document,Z5=nt.process,yl=X5.f,Lht=yl,Rht=!!(QC&&QC.createEvent&&nt.dispatchEvent),nM=ie(nt.PromiseRejectionEvent),oM=!1,bd=W0(Qo,function(){var t=yy(Co),e=t!==String(Co);if(!e&&op===66)return!0;if(op>=51&&/native code/.test(t))return!1;var r=new Co(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[Nht]=n,!(oM=r.then(function(){})instanceof n)||!e&&Pht&&!nM}),Mht=bd||!KR(function(t){Co.all(t).catch(function(){})}),iM=function(t){var e;return!(!be(t)||!ie(e=t.then))&&e},J5=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;tM(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&zht(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(rM("Promise-chain cycle")):(u=iM(a))?ce(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Vht(t)})}},aM=function(t,e,r){var n,o;Rht?((n=QC.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),nt.dispatchEvent(n)):n={promise:e,reason:r},!nM&&(o=nt["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=nt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},Vht=function(t){ce(eM,nt,function(){var e,r=t.facade,n=t.value;if(G_(t)&&(e=JC(function(){da?Z5.emit("unhandledRejection",n,r):aM("unhandledrejection",r,n)}),t.rejection=da||G_(t)?2:1,e.error))throw e.value})},G_=function(t){return t.rejection!==1&&!t.parent},zht=function(t){ce(eM,nt,function(){var e=t.facade;da?Z5.emit("rejectionHandled",e):aM("rejectionhandled",e,t.value)})},sl=function(t,e,r){return function(n){t(e,n,r)}},bl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,J5(t,!0))},tx=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw rM("Promise can't be resolved itself");var n=iM(e);n?tM(function(){var o={done:!1};try{ce(n,e,sl(tx,o,t),sl(bl,o,t))}catch(i){bl(o,i,t)}}):(t.value=e,t.state=1,J5(t,!1))}catch(o){bl({done:!1},o,t)}}};if(bd&&(Of=(Co=function(t){K5(this,Of),ka(t),ce(tw,this);var e=W_(this);try{t(sl(tx,e),sl(bl,e))}catch(r){bl(e,r)}}).prototype,(tw=function(t){jht(this,{type:Qo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Z0(Of,{then:function(t,e){var r=Iht(this),n=r.reactions,o=yl(function(i,a){var u,s=cr(i).constructor;return s===void 0||(u=cr(s)[Dht])==null?a:function(l){if(U5(l))return l;throw Sht(V0(l)+" is not a constructor")}(u)}(this,Co));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=da?Z5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&J5(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),H_=function(){var t=new tw,e=W_(t);this.promise=t,this.resolve=sl(tx,e),this.reject=sl(bl,e)},X5.f=yl=function(t){return t===Co||t===QR?new H_(t):Lht(t)},ie(X0)&&ou!==Object.prototype)){U_=ou.then,oM||(Pn(ou,"then",function(t,e){var r=this;return new Co(function(n,o){ce(U_,r,n,o)}).then(t,e)},{unsafe:!0}),Pn(ou,"catch",Of.catch,{unsafe:!0}));try{delete ou.constructor}catch{}Gl&&Gl(ou,Of)}function cp(t,e,r){return r===void 0&&(r=""),hy(this,void 0,void 0,function(){var n,o,i,a,u,s,l;return gy(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(e,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then(function(){R.insertNodes(t,l)}),o(l),[2]}})})}function ew(){return WR("w-e-insert-video")}$r({global:!0,wrap:!0,forced:bd},{Promise:Co}),J0(Co,Qo,!1),function(t){var e=es("Promise"),r=gi.f;To&&e&&!e[k_]&&r(e,k_,{configurable:!0,get:function(){return this}})}(),QR=es(Qo),$r({target:Qo,stat:!0,forced:bd},{reject:function(t){var e=yl(this);return ce(e.reject,void 0,t),e.promise}}),$r({target:Qo,stat:!0,forced:bd},{resolve:function(t){return function(e,r){if(cr(e),be(r)&&r.constructor===e)return r;var n=X5.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),$r({target:Qo,stat:!0,forced:Mht},{all:function(t){var e=this,r=yl(e),n=r.resolve,o=r.reject,i=JC(function(){var a=ka(e.resolve),u=[],s=0,l=1;Q0(t,function(c){var f=s++,d=!1;l++,ce(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=yl(e),n=r.reject,o=JC(function(){var i=ka(e.resolve);Q0(t,function(a){ce(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var $ht=function(){function t(){this.title=tt("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=ew(),this.posterInputId=ew(),this.buttonId=ew()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||!!O.getSelectedElems(e).some(function(n){var o=O.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=ju(nn(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=ju(nn(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=_(l),v=_(d),h=ju(uc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var m=_("<div></div>");m.on("click","#"+a,function(g){return hy(r,void 0,void 0,function(){var w,E;return gy(this,function(x){switch(x.label){case 0:return g.preventDefault(),w=m.find("#"+o).val().trim(),E=m.find("#"+i).val().trim(),[4,cp(e,w,E)];case 1:return x.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=m}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(h),p.val(""),v.val(""),setTimeout(function(){p.focus()}),y[0]},t}(),Hht=St([].join),Uht=P5!=Object,Wht=function(t,e){var r=[].join;return!!r&&fe(function(){r.call(null,",",1)})}();$r({target:"Array",proto:!0,forced:Uht||!Wht},{join:function(t){return Hht(ja(this),t===void 0?",":t)}});var Lu,q_,K_,Ght=!fe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Y_=V5("IE_PROTO"),ex=nt.Object,qht=ex.prototype,tm=Ght?ex.getPrototypeOf:function(t){var e=my(t);if(qe(e,Y_))return e[Y_];var r=e.constructor;return ie(r)&&e instanceof r?r.prototype:e instanceof ex?qht:null},rx=Me("iterator"),uM=!1;[].keys&&("next"in(K_=[].keys())?(q_=tm(tm(K_)))!==Object.prototype&&(Lu=q_):uM=!0);var Kht=Lu==null||fe(function(){var t={};return Lu[rx].call(t)!==t});Kht&&(Lu={}),ie(Lu[rx])||Pn(Lu,rx,function(){return this});var Q5={IteratorPrototype:Lu,BUGGY_SAFARI_ITERATORS:uM},Yht=Q5.IteratorPrototype,Xht=function(){return this},Zht=mc.PROPER,Jht=mc.CONFIGURABLE,X_=Q5.IteratorPrototype,rw=Q5.BUGGY_SAFARI_ITERATORS,kf=Me("iterator"),Qht=function(){return this},sM=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=$5(Yht,{next:vy(1,g)}),J0(m,E,!1),ql[E]=Xht})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!rw&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[kf]||d["@@iterator"]||o&&d[o],v=!rw&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=tm(h.call(new t)))!==Object.prototype&&u.next&&(tm(u)!==X_&&(Gl?Gl(u,X_):ie(u[kf])||Pn(u,kf,Qht)),J0(u,c,!0)),Zht&&o=="values"&&p&&p.name!=="values"&&(Jht?fa(d,"name","values"):(f=!0,v=function(){return ce(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||$r({target:e,proto:!0,forced:rw||f},s)),d[kf]!==v&&Pn(d,kf,v,{name:o}),ql[e]=v,s},tgt=cn.set,egt=cn.getterFor("Array Iterator"),Jf=sM(Array,"Array",function(t,e){tgt(this,{type:"Array Iterator",target:ja(t),index:0,kind:e})},function(){var t=egt(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");ql.Arguments=ql.Array,vd("keys"),vd("values"),vd("entries");var rgt=UR.charAt,ngt=cn.set,ogt=cn.getterFor("String Iterator");sM(String,"String",function(t){ngt(this,{type:"String Iterator",string:wn(t),index:0})},function(){var t,e=ogt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=rgt(r,n),e.index+=t.length,{value:t,done:!1})});var lM=function(t,e,r){var n=R5(e);n in t?gi.f(t,n,vy(0,r)):t[n]=r},igt=nt.Array,agt=Math.max,Z_=U0.f,J_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ugt={f:function(t){return J_&&Ao(t)=="Window"?function(e){try{return Z_(e)}catch{return function(n,o,i){for(var a=ih(n),u=up(void 0,a),s=up(a,a),l=igt(agt(s-u,0)),c=0;u<s;u++,c++)lM(l,c,n[u]);return l.length=c,l}(J_)}}(t):Z_(ja(t))}},Q_=fe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),hg=Object.isExtensible,gu=fe(function(){hg(1)})||Q_?function(t){return!!be(t)&&(!Q_||Ao(t)!="ArrayBuffer")&&(!hg||hg(t))}:hg,sgt=!fe(function(){return Object.isExtensible(Object.preventExtensions({}))}),t8=T5(function(t){var e=gi.f,r=!1,n=L5("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=U0.f,s=St([].splice),l={};l[n]=1,u(l).length&&(U0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},$r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ugt.f}))},fastKey:function(u,s){if(!be(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qe(u,n)){if(!gu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!qe(u,n)){if(!gu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return sgt&&r&&gu(u)&&!qe(u,n)&&i(u),u}};by[n]=!0}),gg=t8.getWeakData,lgt=cn.set,cgt=cn.getterFor,fgt=W5.find,dgt=W5.findIndex,pgt=St([].splice),hgt=0,vg=function(t){return t.frozen||(t.frozen=new cM)},cM=function(){this.entries=[]},nw=function(t,e){return fgt(t.entries,function(r){return r[0]===e})};cM.prototype={get:function(t){var e=nw(this,t);if(e)return e[1]},has:function(t){return!!nw(this,t)},set:function(t,e){var r=nw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=dgt(this.entries,function(r){return r[0]===t});return~e&&pgt(this.entries,e,1),!!~e}};var Bf,fM={getConstructor:function(t,e,r,n){var o=t(function(s,l){K5(s,i),lgt(s,{type:e,id:hgt++,frozen:void 0}),l!=null&&Q0(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=cgt(e),u=function(s,l,c){var f=a(s),d=gg(cr(l),!0);return d===!0?vg(f).set(l,c):d[f.id]=c,s};return Z0(i,{delete:function(s){var l=a(this);if(!be(s))return!1;var c=gg(s);return c===!0?vg(l).delete(s):c&&qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!be(s))return!1;var c=gg(s);return c===!0?vg(l).has(s):c&&qe(c,l.id)}}),Z0(i,r?{get:function(s){var l=a(this);if(be(s)){var c=gg(s);return c===!0?vg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},mg=cn.enforce,ggt=!nt.ActiveXObject&&"ActiveXObject"in nt,dM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},vgt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=nt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=St(u[m]);Pn(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!be(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!be(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!be(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(W0(t,!ie(a)||!(o||u.forEach&&!fe(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),t8.enable();else if(W0(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=fe(function(){f.has(1)}),v=KR(function(m){new a(m)}),h=!o&&fe(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){K5(m,u);var g=function(w,E,x){var D,S;return Gl&&ie(D=E.constructor)&&D!==x&&be(S=D.prototype)&&S!==x.prototype&&Gl(w,S),w}(new a,m,s);return y!=null&&Q0(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,$r({global:!0,forced:s!=a},l),J0(s,t),o||r.setStrong(s,t,n),s}("WeakMap",dM,fM);if(_R&&ggt){Bf=fM.getConstructor(dM,"WeakMap",!0),t8.enable();var _f=vgt.prototype,tF=St(_f.delete),yg=St(_f.has),eF=St(_f.get),rF=St(_f.set);Z0(_f,{delete:function(t){if(be(t)&&!gu(t)){var e=mg(this);return e.frozen||(e.frozen=new Bf),tF(this,t)||e.frozen.delete(t)}return tF(this,t)},has:function(t){if(be(t)&&!gu(t)){var e=mg(this);return e.frozen||(e.frozen=new Bf),yg(this,t)||e.frozen.has(t)}return yg(this,t)},get:function(t){if(be(t)&&!gu(t)){var e=mg(this);return e.frozen||(e.frozen=new Bf),yg(this,t)?eF(this,t):e.frozen.get(t)}return eF(this,t)},set:function(t,e){if(be(t)&&!gu(t)){var r=mg(this);r.frozen||(r.frozen=new Bf),yg(this,t)?rF(this,t,e):r.frozen.set(t,e)}else rF(this,t,e);return this}})}var pM={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},ow=ap("span").classList,nF=ow&&ow.constructor&&ow.constructor.prototype,mgt=nF===Object.prototype?void 0:nF,iw=Me("iterator"),oF=Me("toStringTag"),aw=Jf.values,hM=function(t,e){if(t){if(t[iw]!==aw)try{fa(t,iw,aw)}catch{t[iw]=aw}if(t[oF]||fa(t,oF,e),pM[e]){for(var r in Jf)if(t[r]!==Jf[r])try{fa(t,r,Jf[r])}catch{t[r]=Jf[r]}}}};for(var uw in pM)hM(nt[uw]&&nt[uw].prototype,uw);hM(mgt,"DOMTokenList");var ygt=mc.EXISTS,bgt=gi.f,gM=Function.prototype,wgt=St(gM.toString),vM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Egt=St(vM.exec);To&&!ygt&&bgt(gM,"name",{configurable:!0,get:function(){try{return Egt(vM,wgt(this))[1]}catch{return""}}});var Cgt=Me("species"),xgt=op>=51||!fe(function(){var t=[];return(t.constructor={})[Cgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Sgt=Me("species"),sw=nt.Array,Dgt=Math.max;function mM(t){return t.getMenuConfig("uploadVideo")}$r({target:"Array",proto:!0,forced:!xgt},{slice:function(t,e){var r,n,o,i=ja(this),a=ih(i),u=up(t,a),s=up(e===void 0?a:e,a);if(q0(i)&&(r=i.constructor,(U5(r)&&(r===sw||q0(r.prototype))||be(r)&&(r=r[Sgt])===null)&&(r=void 0),r===sw||r===void 0))return YR(i,u,s);for(n=new(r===void 0?sw:r)(Dgt(s-u,0)),o=0;u<s;u++,o++)u in i&&lM(n,o,i[u]);return n.length=o,n}});var iF=new WeakMap;function Agt(t,e){return hy(this,void 0,void 0,function(){var r,n,o,i;return gy(this,function(a){switch(a.label){case 0:return r=function(u){var s=iF.get(u);if(s!=null)return s;var l=mM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=zj(M0(M0({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,m){if(p)return p(m,function(k,F){return cp(u,k,F)}),void c(h,m);var y=m.errno,g=y===void 0?1:y,w=m.data,E=w===void 0?{}:w;if(g===0){var x=E.url,D=x===void 0?"":x,S=E.poster;cp(u,D,S===void 0?"":S),c(h,m)}else d(h,m)},onError:function(h,m,y){v(h,m,y)}})),iF.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var Ogt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return cp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=_("body"),l=_('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;hy(this,void 0,void 0,function(){var h,m,y,g,w,E;return gy(this,function(x){switch(x.label){case 0:if(d==null)return[2];h=Array.prototype.slice.call(d),m=mM(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=Sdt(h),x.label=2;case 2:return[4,y.next()];case 3:return(g=x.sent()).done?[3,8]:(w=g.value,m?[4,m(w,function(D,S){return cp(f,D,S)})]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,Agt(f,w)];case 6:x.sent(),x.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return E=x.sent(),p={error:E},[3,15];case 10:return x.trys.push([10,,13,14]),g&&!g.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:x.sent(),x.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!z.isCollapsed(r)||!!O.getSelectedElems(e).some(function(n){var o=O.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),kgt=mc.PROPER,nx=RegExp.prototype,yM=nx.toString,Bgt=St(zR),_gt=fe(function(){return yM.call({source:"a",flags:"b"})!="/a/b"}),Fgt=kgt&&yM.name!="toString";function lw(){return WR("w-e-insert-video")}(_gt||Fgt)&&Pn(RegExp.prototype,"toString",function(){var t=cr(this),e=wn(t.source),r=t.flags;return"/"+e+"/"+wn(r===void 0&&np(nx,t)&&!("flags"in nx)?Bgt(t):r)},{unsafe:!0});var Tgt=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=lw(),this.heightInputId=lw(),this.buttonId=lw()}return t.prototype.getSelectedVideoNode=function(e){return O.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=ju(nn(tt("videoModule.width"),n,"auto"),2),u=a[0],s=_(a[1]),l=ju(nn(tt("videoModule.height"),o,"auto"),2),c=l[0],f=_(l[1]),d=ju(uc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var p=_("<div></div>");p.on("click","#"+i,function(E){E.preventDefault();var x=p.find("#"+n).val().trim(),D=p.find("#"+o).val().trim(),S=parseInt(x),k=parseInt(D),F=S?S.toString():"auto",$=k?k.toString():"auto";e.restoreSelection(),R.setNodes(e,{width:F,height:$},{match:function(W){return O.checkNodeType(W,"video")}}),e.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var h=this.getSelectedVideoNode(e);if(h==null)return v[0];var m=h.width,y=m===void 0?"auto":m,g=h.height,w=g===void 0?"auto":g;return s.val(y),f.val(w),setTimeout(function(){s.focus()}),v[0]},t}(),Pgt={renderElems:[Opt],elemsToHtml:[kpt],preParseHtml:[Tpt],parseElemsHtml:[Vpt],menus:[{key:"insertVideo",factory:function(){return new $ht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Ogt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+" upload error",e,r)}}},{key:"editVideoSize",factory:function(){return new Tgt}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="video"||e(o)},n.normalizeNode=function(o){var i=ju(o,2),a=i[0],u=i[1];return O.getNodeType(a)==="video"&&O.isLastNode(n,a)&&R.insertNodes(n,O.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};Kr("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Kr("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var aF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ii,nv,bg=function(t){return t&&t.Math==Math&&t},et=bg(typeof globalThis=="object"&&globalThis)||bg(typeof window=="object"&&window)||bg(typeof self=="object"&&self)||bg(typeof aF=="object"&&aF)||function(){return this}()||Function("return this")(),ge=function(t){try{return!!t()}catch{return!0}},Po=!ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ff=Function.prototype.call,re=Ff.bind?Ff.bind(Ff):function(){return Ff.apply(Ff,arguments)},uF={}.propertyIsEnumerable,sF=Object.getOwnPropertyDescriptor,Ngt={f:sF&&!uF.call({1:2},1)?function(t){var e=sF(this,t);return!!e&&e.enumerable}:uF},Cy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},bM=Function.prototype,ox=bM.bind,ix=bM.call,jgt=ox&&ox.bind(ix),Tt=ox?function(t){return t&&jgt(ix,t)}:function(t){return t&&function(){return ix.apply(t,arguments)}},Igt=Tt({}.toString),Lgt=Tt("".slice),Zn=function(t){return Lgt(Igt(t),8,-1)},cw=et.Object,Rgt=Tt("".split),r8=ge(function(){return!cw("z").propertyIsEnumerable(0)})?function(t){return Zn(t)=="String"?Rgt(t,""):cw(t)}:cw,Mgt=et.TypeError,fp=function(t){if(t==null)throw Mgt("Can't call method on "+t);return t},Ia=function(t){return r8(fp(t))},se=function(t){return typeof t=="function"},pe=function(t){return typeof t=="object"?t!==null:se(t)},Vgt=function(t){return se(t)?t:void 0},rs=function(t,e){return arguments.length<2?Vgt(et[t]):et[t]&&et[t][e]},dp=Tt({}.isPrototypeOf),wl=rs("navigator","userAgent")||"",lF=et.process,cF=et.Deno,fF=lF&&lF.versions||cF&&cF.version,dF=fF&&fF.v8;dF&&(nv=(Ii=dF.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!nv&&wl&&(!(Ii=wl.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=wl.match(/Chrome\/(\d+)/))&&(nv=+Ii[1]);var pp=nv,ax=!!Object.getOwnPropertySymbols&&!ge(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pp&&pp<41}),n8=ax&&!Symbol.sham&&typeof Symbol.iterator=="symbol",zgt=et.Object,fw=n8?function(t){return typeof t=="symbol"}:function(t){var e=rs("Symbol");return se(e)&&dp(e.prototype,zgt(t))},$gt=et.String,em=function(t){try{return $gt(t)}catch{return"Object"}},Hgt=et.TypeError,Ba=function(t){if(se(t))return t;throw Hgt(em(t)+" is not a function")},hp=function(t,e){var r=t[e];return r==null?void 0:Ba(r)},Ugt=et.TypeError,Wgt=Object.defineProperty,o8=function(t,e){try{Wgt(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},pa=et["__core-js_shared__"]||o8("__core-js_shared__",{}),i8=e8(function(t){(t.exports=function(e,r){return pa[e]||(pa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ggt=et.Object,a8=function(t){return Ggt(fp(t))},qgt=Tt({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return qgt(a8(t),e)},Kgt=0,Ygt=Math.random(),Xgt=Tt(1 .toString),u8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Xgt(++Kgt+Ygt,36)},Tf=i8("wks"),Ru=et.Symbol,pF=Ru&&Ru.for,Zgt=n8?Ru:Ru&&Ru.withoutSetter||u8,Ve=function(t){if(!Ke(Tf,t)||!ax&&typeof Tf[t]!="string"){var e="Symbol."+t;ax&&Ke(Ru,t)?Tf[t]=Ru[t]:Tf[t]=n8&&pF?pF(e):Zgt(e)}return Tf[t]},Jgt=et.TypeError,Qgt=Ve("toPrimitive"),s8=function(t){var e=function(r,n){if(!pe(r)||fw(r))return r;var o,i=hp(r,Qgt);if(i){if(o=re(i,r,n),!pe(o)||fw(o))return o;throw Jgt("Can't convert object to primitive value")}return function(a,u){var s,l;if(se(s=a.toString)&&!pe(l=re(s,a))||se(s=a.valueOf)&&!pe(l=re(s,a)))return l;throw Ugt("Can't convert object to primitive value")}(r)}(t,"string");return fw(e)?e:e+""},ux=et.document,tvt=pe(ux)&&pe(ux.createElement),gp=function(t){return tvt?ux.createElement(t):{}},wM=!Po&&!ge(function(){return Object.defineProperty(gp("div"),"a",{get:function(){return 7}}).a!=7}),hF=Object.getOwnPropertyDescriptor,l8={f:Po?hF:function(t,e){if(t=Ia(t),e=s8(e),wM)try{return hF(t,e)}catch{}if(Ke(t,e))return Cy(!re(Ngt.f,t,e),t[e])}},evt=et.String,rvt=et.TypeError,fr=function(t){if(pe(t))return t;throw rvt(evt(t)+" is not an object")},nvt=et.TypeError,gF=Object.defineProperty,vi={f:Po?gF:function(t,e,r){if(fr(t),e=s8(e),fr(r),wM)try{return gF(t,e,r)}catch{}if("get"in r||"set"in r)throw nvt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Oo=Po?function(t,e,r){return vi.f(t,e,Cy(1,r))}:function(t,e,r){return t[e]=r,t},ovt=Tt(Function.toString);se(pa.inspectSource)||(pa.inspectSource=function(t){return ovt(t)});var rm,wd,nm,xy=pa.inspectSource,vF=et.WeakMap,EM=se(vF)&&/native code/.test(xy(vF)),mF=i8("keys"),c8=function(t){return mF[t]||(mF[t]=u8(t))},Sy={},sx=et.TypeError,ivt=et.WeakMap;if(EM||pa.state){var Qa=pa.state||(pa.state=new ivt),avt=Tt(Qa.get),yF=Tt(Qa.has),uvt=Tt(Qa.set);rm=function(t,e){if(yF(Qa,t))throw new sx("Object already initialized");return e.facade=t,uvt(Qa,t,e),e},wd=function(t){return avt(Qa,t)||{}},nm=function(t){return yF(Qa,t)}}else{var Us=c8("state");Sy[Us]=!0,rm=function(t,e){if(Ke(t,Us))throw new sx("Object already initialized");return e.facade=t,Oo(t,Us,e),e},wd=function(t){return Ke(t,Us)?t[Us]:{}},nm=function(t){return Ke(t,Us)}}var fn={set:rm,get:wd,has:nm,enforce:function(t){return nm(t)?wd(t):rm(t,{})},getterFor:function(t){return function(e){var r;if(!pe(e)||(r=wd(e)).type!==t)throw sx("Incompatible receiver, "+t+" required");return r}}},CM=Function.prototype,svt=Po&&Object.getOwnPropertyDescriptor,dw=Ke(CM,"name"),uh={EXISTS:dw,PROPER:dw&&(function(){}).name==="something",CONFIGURABLE:dw&&(!Po||Po&&svt(CM,"name").configurable)},Nn=e8(function(t){var e=uh.CONFIGURABLE,r=fn.get,n=fn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;se(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ke(u,"name")||e&&u.name!==p)&&Oo(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Oo(i,a,u)):f?i[a]=u:o8(a,u)})(Function.prototype,"toString",function(){return se(this)&&r(this).source||xy(this)})}),lvt=Math.ceil,cvt=Math.floor,f8=function(t){var e=+t;return e!=e||e===0?0:(e>0?cvt:lvt)(e)},fvt=Math.max,dvt=Math.min,vp=function(t,e){var r=f8(t);return r<0?fvt(r+e,0):dvt(r,e)},pvt=Math.min,xM=function(t){return t>0?pvt(f8(t),9007199254740991):0},sh=function(t){return xM(t.length)},hvt=function(t){return function(e,r,n){var o,i=Ia(e),a=sh(i),u=vp(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},gvt=hvt(!1),bF=Tt([].push),SM=function(t,e){var r,n=Ia(t),o=0,i=[];for(r in n)!Ke(Sy,r)&&Ke(n,r)&&bF(i,r);for(;e.length>o;)Ke(n,r=e[o++])&&(~gvt(i,r)||bF(i,r));return i},om=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vvt=om.concat("length","prototype"),im={f:Object.getOwnPropertyNames||function(t){return SM(t,vvt)}},mvt={f:Object.getOwnPropertySymbols},yvt=Tt([].concat),bvt=rs("Reflect","ownKeys")||function(t){var e=im.f(fr(t)),r=mvt.f;return r?yvt(e,r(t)):e},wvt=function(t,e){for(var r=bvt(e),n=vi.f,o=l8.f,i=0;i<r.length;i++){var a=r[i];Ke(t,a)||n(t,a,o(e,a))}},Evt=/#|\.prototype\./,lh=function(t,e){var r=xvt[Cvt(t)];return r==Dvt||r!=Svt&&(se(e)?ge(e):!!e)},Cvt=lh.normalize=function(t){return String(t).replace(Evt,".").toLowerCase()},xvt=lh.data={},Svt=lh.NATIVE="N",Dvt=lh.POLYFILL="P",am=lh,Avt=l8.f,xo=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?et:l?et[u]||o8(u,{}):(et[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Avt(r,n))&&a.value:r[n],!am(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;wvt(i,o)}(t.sham||o&&o.sham)&&Oo(i,"sham",!0),Nn(r,n,i,t)}},um=Array.isArray||function(t){return Zn(t)=="Array"},DM={};DM[Ve("toStringTag")]="z";var d8=String(DM)==="[object z]",Ovt=Ve("toStringTag"),kvt=et.Object,Bvt=Zn(function(){return arguments}())=="Arguments",Dy=d8?Zn:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=kvt(t),Ovt))=="string"?r:Bvt?Zn(e):(n=Zn(e))=="Object"&&se(e.callee)?"Arguments":n},AM=function(){},_vt=[],OM=rs("Reflect","construct"),p8=/^\s*(?:class|function)\b/,Fvt=Tt(p8.exec),Tvt=!p8.exec(AM),Pf=function(t){if(!se(t))return!1;try{return OM(AM,_vt,t),!0}catch{return!1}},h8=!OM||ge(function(){var t;return Pf(Pf.call)||!Pf(Object)||!Pf(function(){t=!0})||t})?function(t){if(!se(t))return!1;switch(Dy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Tvt||!!Fvt(p8,xy(t))}:Pf,kM=function(t,e,r){var n=s8(e);n in t?vi.f(t,n,Cy(0,r)):t[n]=r},Pvt=Ve("species"),BM=Tt([].slice),Nvt=pp>=51||!ge(function(){var t=[];return(t.constructor={})[Pvt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),jvt=Ve("species"),pw=et.Array,Ivt=Math.max;xo({target:"Array",proto:!0,forced:!Nvt},{slice:function(t,e){var r,n,o,i=Ia(this),a=sh(i),u=vp(t,a),s=vp(e===void 0?a:e,a);if(um(i)&&(r=i.constructor,(h8(r)&&(r===pw||um(r.prototype))||pe(r)&&(r=r[jvt])===null)&&(r=void 0),r===pw||r===void 0))return BM(i,u,s);for(n=new(r===void 0?pw:r)(Ivt(s-u,0)),o=0;u<s;u++,o++)u in i&&kM(n,o,i[u]);return n.length=o,n}});var Lvt=d8?{}.toString:function(){return"[object "+Dy(this)+"]"};d8||Nn(Object.prototype,"toString",Lvt,{unsafe:!0});var wg,Rvt=et.String,ha=function(t){if(Dy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rvt(t)},_M=function(){var t=fr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},g8=et.RegExp,lx=ge(function(){var t=g8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});lx||ge(function(){return!g8("a","y").sticky});var FM={BROKEN_CARET:lx||ge(function(){var t=g8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:lx},Mvt=Object.keys||function(t){return SM(t,om)},Vvt=Po?Object.defineProperties:function(t,e){fr(t);for(var r,n=Ia(e),o=Mvt(e),i=o.length,a=0;i>a;)vi.f(t,r=o[a++],n[r]);return t},cx=rs("document","documentElement"),TM=c8("IE_PROTO"),hw=function(){},PM=function(t){return"<script>"+t+"<\/script>"},wF=function(t){t.write(PM("")),t.close();var e=t.parentWindow.Object;return t=null,e},ov=function(){try{wg=new ActiveXObject("htmlfile")}catch{}var t,e;ov=typeof document<"u"?document.domain&&wg?wF(wg):((e=gp("iframe")).style.display="none",cx.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(PM("document.F=Object")),t.close(),t.F):wF(wg);for(var r=om.length;r--;)delete ov.prototype[om[r]];return ov()};Sy[TM]=!0;var EF,gw,v8=Object.create||function(t,e){var r;return t!==null?(hw.prototype=fr(t),r=new hw,hw.prototype=null,r[TM]=t):r=ov(),e===void 0?r:Vvt(r,e)},zvt=et.RegExp,$vt=ge(function(){var t=zvt(".","s");return!(t.dotAll&&t.exec(`
|
|
148
|
+
`)&&t.flags==="s")}),Hvt=et.RegExp,Uvt=ge(function(){var t=Hvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Wvt=fn.get,Gvt=i8("native-string-replace",String.prototype.replace),sm=RegExp.prototype.exec,fx=sm,qvt=Tt("".charAt),Kvt=Tt("".indexOf),Yvt=Tt("".replace),vw=Tt("".slice),mw=(gw=/b*/g,re(sm,EF=/a/,"a"),re(sm,gw,"a"),EF.lastIndex!==0||gw.lastIndex!==0),CF=FM.BROKEN_CARET,yw=/()??/.exec("")[1]!==void 0;(mw||yw||CF||$vt||Uvt)&&(fx=function(t){var e,r,n,o,i,a,u,s=this,l=Wvt(s),c=ha(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=re(fx,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=CF&&s.sticky,v=re(_M,s),h=s.source,m=0,y=c;if(p&&(v=Yvt(v,"y",""),Kvt(v,"g")===-1&&(v+="g"),y=vw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&qvt(c,s.lastIndex-1)!==`
|
|
149
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),yw&&(r=new RegExp("^"+h+"$(?!\\s)",v)),mw&&(n=s.lastIndex),o=re(sm,p?r:s,y),p?o?(o.input=vw(o.input,m),o[0]=vw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:mw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),yw&&o&&o.length>1&&re(Gvt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=v8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var mp=fx;xo({target:"RegExp",proto:!0,forced:/./.exec!==mp},{exec:mp});var m8=Function.prototype,xF=m8.apply,Xvt=m8.bind,SF=m8.call,NM=typeof Reflect=="object"&&Reflect.apply||(Xvt?SF.bind(xF):function(){return SF.apply(xF,arguments)}),Zvt=Ve("species"),bw=RegExp.prototype,Jvt=Ve("match"),Qvt=et.TypeError,t0t=Ve("species"),jM=function(t,e){var r,n=fr(t).constructor;return n===void 0||(r=fr(n)[t0t])==null?e:function(o){if(h8(o))return o;throw Qvt(em(o)+" is not a constructor")}(r)},e0t=Tt("".charAt),DF=Tt("".charCodeAt),r0t=Tt("".slice),n0t=function(t){return function(e,r){var n,o,i=ha(fp(e)),a=f8(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=DF(i,a))<55296||n>56319||a+1===u||(o=DF(i,a+1))<56320||o>57343?t?e0t(i,a):n:t?r0t(i,a,a+2):o-56320+(n-55296<<10)+65536}},IM={charAt:n0t(!0)},o0t=IM.charAt,i0t=function(t,e,r){return e+(r?o0t(t,e).length:1)},a0t=et.Array,u0t=Math.max,dx=function(t,e,r){for(var n=sh(t),o=vp(e,n),i=vp(r===void 0?n:r,n),a=a0t(u0t(i-o,0)),u=0;o<i;o++,u++)kM(a,u,t[o]);return a.length=u,a},s0t=et.TypeError,AF=function(t,e){var r=t.exec;if(se(r)){var n=re(r,t,e);return n!==null&&fr(n),n}if(Zn(t)==="RegExp")return re(mp,t,e);throw s0t("RegExp#exec called on incompatible receiver")},Ws=FM.UNSUPPORTED_Y,l0t=Math.min,LM=[].push,c0t=Tt(/./.exec),Gs=Tt(LM),Nf=Tt("".slice);(function(t,e,r,n){var o=Ve(t),i=!ge(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ge(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Zvt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Tt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,m,y=ha(fp(this)),g=v===void 0?4294967295:v>>>0;if(g===0)return[];if(p===void 0)return[y];if(!pe(h=p)||!((m=h[Jvt])!==void 0?m:Zn(h)=="RegExp"))return re(c,y,p,g);for(var w,E,x,D=[],S=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,F=new RegExp(p.source,S+"g");(w=re(mp,F,y))&&!((E=F.lastIndex)>k&&(Gs(D,Nf(y,k,w.index)),w.length>1&&w.index<y.length&&NM(LM,D,dx(w,1)),x=w[0].length,k=E,D.length>=g));)F.lastIndex===w.index&&F.lastIndex++;return k===y.length?!x&&c0t(F,"")||Gs(D,""):Gs(D,Nf(y,k)),D.length>g?dx(D,0,g):D}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:re(c,this,p,v)}:c,[function(p,v){var h=fp(this),m=p==null?void 0:hp(p,l);return m?re(m,p,h,v):re(d,ha(h),p,v)},function(p,v){var h=fr(this),m=ha(p),y=f(d,h,m,v,d!==c);if(y.done)return y.value;var g=jM(h,RegExp),w=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(Ws?"g":"y"),x=new g(Ws?"^(?:"+h.source+")":h,E),D=v===void 0?4294967295:v>>>0;if(D===0)return[];if(m.length===0)return AF(x,m)===null?[m]:[];for(var S=0,k=0,F=[];k<m.length;){x.lastIndex=Ws?0:k;var $,W=AF(x,Ws?Nf(m,k):m);if(W===null||($=l0t(xM(x.lastIndex+(Ws?k:0)),m.length))===S)k=i0t(m,k,w);else{if(Gs(F,Nf(m,S,k)),F.length===D)return F;for(var j=1;j<=W.length-1;j++)if(Gs(F,W[j]),F.length===D)return F;k=S=$}}return Gs(F,Nf(m,S)),F}]}(o,""[t],function(l,c,f,d,p){var v=Tt(l),h=c.exec;return h===mp||h===bw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Nn(String.prototype,t,s[0]),Nn(bw,o,s[1])}n&&Oo(bw[o],"sham",!0)})("split",0,!!ge(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ws);/*! *****************************************************************************
|
|
150
|
+
Copyright (c) Microsoft Corporation.
|
|
151
|
+
|
|
152
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
153
|
+
purpose with or without fee is hereby granted.
|
|
154
|
+
|
|
155
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
156
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
157
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
158
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
159
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
160
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
161
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
162
|
+
***************************************************************************** */var lm=function(){return lm=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},lm.apply(this,arguments)};function y8(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function b8(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function f0t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var px=Ve("unscopables"),hx=Array.prototype;hx[px]==null&&vi.f(hx,px,{configurable:!0,value:v8(null)});var Mu,OF,kF,ww=function(t){hx[px][t]=!0},Kl={},d0t=!ge(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),BF=c8("IE_PROTO"),gx=et.Object,p0t=gx.prototype,cm=d0t?gx.getPrototypeOf:function(t){var e=a8(t);if(Ke(e,BF))return e[BF];var r=e.constructor;return se(r)&&e instanceof r?r.prototype:e instanceof gx?p0t:null},vx=Ve("iterator"),RM=!1;[].keys&&("next"in(kF=[].keys())?(OF=cm(cm(kF)))!==Object.prototype&&(Mu=OF):RM=!0);var h0t=Mu==null||ge(function(){var t={};return Mu[vx].call(t)!==t});h0t&&(Mu={}),se(Mu[vx])||Nn(Mu,vx,function(){return this});var w8={IteratorPrototype:Mu,BUGGY_SAFARI_ITERATORS:RM},g0t=vi.f,_F=Ve("toStringTag"),fm=function(t,e,r){t&&!Ke(t=r?t:t.prototype,_F)&&g0t(t,_F,{configurable:!0,value:e})},v0t=w8.IteratorPrototype,m0t=function(){return this},y0t=et.String,b0t=et.TypeError,Yl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return fr(n),function(i){if(typeof i=="object"||se(i))return i;throw b0t("Can't set "+y0t(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),w0t=uh.PROPER,E0t=uh.CONFIGURABLE,FF=w8.IteratorPrototype,Ew=w8.BUGGY_SAFARI_ITERATORS,jf=Ve("iterator"),C0t=function(){return this},MM=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=v8(v0t,{next:Cy(1,g)}),fm(m,E,!1),Kl[E]=m0t})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!Ew&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[jf]||d["@@iterator"]||o&&d[o],v=!Ew&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=cm(h.call(new t)))!==Object.prototype&&u.next&&(cm(u)!==FF&&(Yl?Yl(u,FF):se(u[jf])||Nn(u,jf,C0t)),fm(u,c,!0)),w0t&&o=="values"&&p&&p.name!=="values"&&(E0t?Oo(d,"name","values"):(f=!0,v=function(){return re(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||xo({target:e,proto:!0,forced:Ew||f},s)),d[jf]!==v&&Nn(d,jf,v,{name:o}),Kl[e]=v,s},x0t=fn.set,S0t=fn.getterFor("Array Iterator"),Qf=MM(Array,"Array",function(t,e){x0t(this,{type:"Array Iterator",target:Ia(t),index:0,kind:e})},function(){var t=S0t(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Kl.Arguments=Kl.Array,ww("keys"),ww("values"),ww("entries");var D0t=IM.charAt,A0t=fn.set,O0t=fn.getterFor("String Iterator");MM(String,"String",function(t){A0t(this,{type:"String Iterator",string:ha(t),index:0})},function(){var t,e=O0t(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=D0t(r,n),e.index+=t.length,{value:t,done:!1})});var dm=function(t,e,r){for(var n in e)Nn(t,n,e[n],r);return t},TF=im.f,PF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k0t={f:function(t){return PF&&Zn(t)=="Window"?function(e){try{return TF(e)}catch{return dx(PF)}}(t):TF(Ia(t))}},NF=ge(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Eg=Object.isExtensible,vu=ge(function(){Eg(1)})||NF?function(t){return!!pe(t)&&(!NF||Zn(t)!="ArrayBuffer")&&(!Eg||Eg(t))}:Eg,B0t=!ge(function(){return Object.isExtensible(Object.preventExtensions({}))}),E8=e8(function(t){var e=vi.f,r=!1,n=u8("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=im.f,s=Tt([].splice),l={};l[n]=1,u(l).length&&(im.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},xo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:k0t.f}))},fastKey:function(u,s){if(!pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ke(u,n)){if(!vu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Ke(u,n)){if(!vu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return B0t&&r&&vu(u)&&!Ke(u,n)&&i(u),u}};Sy[n]=!0}),jF=Tt(Tt.bind),yp=function(t,e){return Ba(t),e===void 0?t:jF?jF(t,e):function(){return t.apply(e,arguments)}},_0t=Ve("iterator"),F0t=Array.prototype,T0t=Ve("iterator"),IF=function(t){if(t!=null)return hp(t,T0t)||hp(t,"@@iterator")||Kl[Dy(t)]},P0t=et.TypeError,LF=function(t,e,r){var n,o;fr(t);try{if(!(n=hp(t,"return"))){if(e==="throw")throw r;return r}n=re(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return fr(n),r},N0t=et.TypeError,iv=function(t,e){this.stopped=t,this.result=e},RF=iv.prototype,pm=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=yp(e,f),m=function(g){return n&&LF(n,"normal",g),new iv(!0,g)},y=function(g){return d?(fr(g),v?h(g[0],g[1],m):h(g[0],g[1])):v?h(g,m):h(g)};if(p)n=t;else{if(!(o=IF(t)))throw N0t(em(t)+" is not iterable");if((c=o)!==void 0&&(Kl.Array===c||F0t[_0t]===c)){for(i=0,a=sh(t);a>i;i++)if((u=y(t[i]))&&dp(RF,u))return u;return new iv(!1)}n=function(g,w){var E=arguments.length<2?IF(g):w;if(Ba(E))return fr(re(E,g));throw P0t(em(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=re(s,n)).done;){try{u=y(l.value)}catch(g){LF(n,"throw",g)}if(typeof u=="object"&&u&&dp(RF,u))return u}return new iv(!1)},j0t=et.TypeError,C8=function(t,e){if(dp(e,t))return t;throw j0t("Incorrect invocation")},VM=Ve("iterator"),zM=!1;try{var I0t=0,MF={next:function(){return{done:!!I0t++}},return:function(){zM=!0}};MF[VM]=function(){return this},Array.from(MF,function(){throw 2})}catch{}var $M=function(t,e){if(!zM)return!1;var r=!1;try{var n={};n[VM]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},L0t=Ve("species"),VF=et.Array,R0t=function(t,e){return new(function(r){var n;return um(r)&&(n=r.constructor,(h8(n)&&(n===VF||um(n.prototype))||pe(n)&&(n=n[L0t])===null)&&(n=void 0)),n===void 0?VF:n}(t))(e===0?0:e)},zF=Tt([].push),Cw=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=a8(s),h=r8(v),m=yp(l,c),y=sh(h),g=0,w=f||R0t,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:zF(E,d)}else switch(t){case 4:return!1;case 7:zF(E,d)}return i?-1:n||o?o:E}},x8={forEach:Cw(0),find:Cw(5),findIndex:Cw(6)},Cg=E8.getWeakData,M0t=fn.set,V0t=fn.getterFor,z0t=x8.find,$0t=x8.findIndex,H0t=Tt([].splice),U0t=0,xg=function(t){return t.frozen||(t.frozen=new HM)},HM=function(){this.entries=[]},xw=function(t,e){return z0t(t.entries,function(r){return r[0]===e})};HM.prototype={get:function(t){var e=xw(this,t);if(e)return e[1]},has:function(t){return!!xw(this,t)},set:function(t,e){var r=xw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=$0t(this.entries,function(r){return r[0]===t});return~e&&H0t(this.entries,e,1),!!~e}};var If,UM={getConstructor:function(t,e,r,n){var o=t(function(s,l){C8(s,i),M0t(s,{type:e,id:U0t++,frozen:void 0}),l!=null&&pm(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=V0t(e),u=function(s,l,c){var f=a(s),d=Cg(fr(l),!0);return d===!0?xg(f).set(l,c):d[f.id]=c,s};return dm(i,{delete:function(s){var l=a(this);if(!pe(s))return!1;var c=Cg(s);return c===!0?xg(l).delete(s):c&&Ke(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pe(s))return!1;var c=Cg(s);return c===!0?xg(l).has(s):c&&Ke(c,l.id)}}),dm(i,r?{get:function(s){var l=a(this);if(pe(s)){var c=Cg(s);return c===!0?xg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Sg=fn.enforce,W0t=!et.ActiveXObject&&"ActiveXObject"in et,WM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},G0t=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=Tt(u[m]);Nn(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!pe(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!pe(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!pe(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(am(t,!se(a)||!(o||u.forEach&&!ge(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),E8.enable();else if(am(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ge(function(){f.has(1)}),v=$M(function(m){new a(m)}),h=!o&&ge(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){C8(m,u);var g=function(w,E,x){var D,S;return Yl&&se(D=E.constructor)&&D!==x&&pe(S=D.prototype)&&S!==x.prototype&&Yl(w,S),w}(new a,m,s);return y!=null&&pm(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,xo({global:!0,forced:s!=a},l),fm(s,t),o||r.setStrong(s,t,n),s}("WeakMap",WM,UM);if(EM&&W0t){If=UM.getConstructor(WM,"WeakMap",!0),E8.enable();var Lf=G0t.prototype,$F=Tt(Lf.delete),Dg=Tt(Lf.has),HF=Tt(Lf.get),UF=Tt(Lf.set);dm(Lf,{delete:function(t){if(pe(t)&&!vu(t)){var e=Sg(this);return e.frozen||(e.frozen=new If),$F(this,t)||e.frozen.delete(t)}return $F(this,t)},has:function(t){if(pe(t)&&!vu(t)){var e=Sg(this);return e.frozen||(e.frozen=new If),Dg(this,t)||e.frozen.has(t)}return Dg(this,t)},get:function(t){if(pe(t)&&!vu(t)){var e=Sg(this);return e.frozen||(e.frozen=new If),Dg(this,t)?HF(this,t):e.frozen.get(t)}return HF(this,t)},set:function(t,e){if(pe(t)&&!vu(t)){var r=Sg(this);r.frozen||(r.frozen=new If),Dg(this,t)?UF(this,t,e):r.frozen.set(t,e)}else UF(this,t,e);return this}})}var hm={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},Sw=gp("span").classList,WF=Sw&&Sw.constructor&&Sw.constructor.prototype,GM=WF===Object.prototype?void 0:WF,Dw=Ve("iterator"),GF=Ve("toStringTag"),Aw=Qf.values,qM=function(t,e){if(t){if(t[Dw]!==Aw)try{Oo(t,Dw,Aw)}catch{t[Dw]=Aw}if(t[GF]||Oo(t,GF,e),hm[e]){for(var r in Qf)if(t[r]!==Qf[r])try{Oo(t,r,Qf[r])}catch{t[r]=Qf[r]}}}};for(var Ow in hm)qM(et[Ow]&&et[Ow].prototype,Ow);qM(GM,"DOMTokenList");var KM=function(t,e){var r=[][t];return!!r&&ge(function(){r.call(null,e||function(){throw 1},1)})},q0t=x8.forEach,kw=KM("forEach")?[].forEach:function(t){return q0t(this,t,arguments.length>1?arguments[1]:void 0)},YM=function(t){if(t&&t.forEach!==kw)try{Oo(t,"forEach",kw)}catch{t.forEach=kw}};for(var Bw in hm)hm[Bw]&&YM(et[Bw]&&et[Bw].prototype);YM(GM);var bp,qs,qF,_w,gm=et.Promise,KF=Ve("species"),XM=/(?:ipad|iphone|ipod).*applewebkit/i.test(wl),ga=Zn(et.process)=="process",mx=et.setImmediate,YF=et.clearImmediate,K0t=et.process,Fw=et.Dispatch,Y0t=et.Function,XF=et.MessageChannel,X0t=et.String,Tw=0,Ed={};try{bp=et.location}catch{}var S8=function(t){if(Ke(Ed,t)){var e=Ed[t];delete Ed[t],e()}},Pw=function(t){return function(){S8(t)}},ZF=function(t){S8(t.data)},JF=function(t){et.postMessage(X0t(t),bp.protocol+"//"+bp.host)};mx&&YF||(mx=function(t){var e=BM(arguments,1);return Ed[++Tw]=function(){NM(se(t)?t:Y0t(t),void 0,e)},qs(Tw),Tw},YF=function(t){delete Ed[t]},ga?qs=function(t){K0t.nextTick(Pw(t))}:Fw&&Fw.now?qs=function(t){Fw.now(Pw(t))}:XF&&!XM?(_w=(qF=new XF).port2,qF.port1.onmessage=ZF,qs=yp(_w.postMessage,_w)):et.addEventListener&&se(et.postMessage)&&!et.importScripts&&bp&&bp.protocol!=="file:"&&!ge(JF)?(qs=JF,et.addEventListener("message",ZF,!1)):qs="onreadystatechange"in gp("script")?function(t){cx.appendChild(gp("script")).onreadystatechange=function(){cx.removeChild(this),S8(t)}}:function(t){setTimeout(Pw(t),0)});var Rf,fu,Cd,nl,Nw,jw,Iw,QF,ZM={set:mx},Z0t=/ipad|iphone|ipod/i.test(wl)&&et.Pebble!==void 0,J0t=/web0s(?!.*chrome)/i.test(wl),Q0t=l8.f,Lw=ZM.set,tT=et.MutationObserver||et.WebKitMutationObserver,eT=et.document,rT=et.process,Ag=et.Promise,nT=Q0t(et,"queueMicrotask"),JM=nT&&nT.value;JM||(Rf=function(){var t,e;for(ga&&(t=rT.domain)&&t.exit();fu;){e=fu.fn,fu=fu.next;try{e()}catch(r){throw fu?nl():Cd=void 0,r}}Cd=void 0,t&&t.enter()},XM||ga||J0t||!tT||!eT?!Z0t&&Ag&&Ag.resolve?((Iw=Ag.resolve(void 0)).constructor=Ag,QF=yp(Iw.then,Iw),nl=function(){QF(Rf)}):ga?nl=function(){rT.nextTick(Rf)}:(Lw=yp(Lw,et),nl=function(){Lw(Rf)}):(Nw=!0,jw=eT.createTextNode(""),new tT(Rf).observe(jw,{characterData:!0}),nl=function(){jw.data=Nw=!Nw}));var Rw,oT,QM,iT,tV=JM||function(t){var e={fn:t,next:void 0};Cd&&(Cd.next=e),fu||(fu=e,nl()),Cd=e},tmt=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=Ba(e),this.reject=Ba(r)},D8={f:function(t){return new tmt(t)}},yx=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},emt=typeof window=="object",eV=ZM.set,rmt=Ve("species"),ti="Promise",aT=fn.getterFor(ti),nmt=fn.set,omt=fn.getterFor(ti),iu=gm&&gm.prototype,So=gm,Mf=iu,rV=et.TypeError,bx=et.document,A8=et.process,El=D8.f,imt=El,amt=!!(bx&&bx.createEvent&&et.dispatchEvent),nV=se(et.PromiseRejectionEvent),oV=!1,xd=am(ti,function(){var t=xy(So),e=t!==String(So);if(!e&&pp===66)return!0;if(pp>=51&&/native code/.test(t))return!1;var r=new So(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[rmt]=n,!(oV=r.then(function(){})instanceof n)||!e&&emt&&!nV}),umt=xd||!$M(function(t){So.all(t).catch(function(){})}),iV=function(t){var e;return!(!pe(t)||!se(e=t.then))&&e},O8=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;tV(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&lmt(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(rV("Promise-chain cycle")):(u=iV(a))?re(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&smt(t)})}},aV=function(t,e,r){var n,o;amt?((n=bx.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),et.dispatchEvent(n)):n={promise:e,reason:r},!nV&&(o=et["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},smt=function(t){re(eV,et,function(){var e,r=t.facade,n=t.value;if(uT(t)&&(e=yx(function(){ga?A8.emit("unhandledRejection",n,r):aV("unhandledrejection",r,n)}),t.rejection=ga||uT(t)?2:1,e.error))throw e.value})},uT=function(t){return t.rejection!==1&&!t.parent},lmt=function(t){re(eV,et,function(){var e=t.facade;ga?A8.emit("rejectionHandled",e):aV("rejectionhandled",e,t.value)})},ll=function(t,e,r){return function(n){t(e,n,r)}},Cl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,O8(t,!0))},wx=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw rV("Promise can't be resolved itself");var n=iV(e);n?tV(function(){var o={done:!1};try{re(n,e,ll(wx,o,t),ll(Cl,o,t))}catch(i){Cl(o,i,t)}}):(t.value=e,t.state=1,O8(t,!1))}catch(o){Cl({done:!1},o,t)}}};if(xd&&(Mf=(So=function(t){C8(this,Mf),Ba(t),re(Rw,this);var e=aT(this);try{t(ll(wx,e),ll(Cl,e))}catch(r){Cl(e,r)}}).prototype,(Rw=function(t){nmt(this,{type:ti,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=dm(Mf,{then:function(t,e){var r=omt(this),n=r.reactions,o=El(jM(this,So));return o.ok=!se(t)||t,o.fail=se(e)&&e,o.domain=ga?A8.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&O8(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),oT=function(){var t=new Rw,e=aT(t);this.promise=t,this.resolve=ll(wx,e),this.reject=ll(Cl,e)},D8.f=El=function(t){return t===So||t===QM?new oT(t):imt(t)},se(gm)&&iu!==Object.prototype)){iT=iu.then,oV||(Nn(iu,"then",function(t,e){var r=this;return new So(function(n,o){re(iT,r,n,o)}).then(t,e)},{unsafe:!0}),Nn(iu,"catch",Mf.catch,{unsafe:!0}));try{delete iu.constructor}catch{}Yl&&Yl(iu,Mf)}xo({global:!0,wrap:!0,forced:xd},{Promise:So}),fm(So,ti,!1),function(t){var e=rs("Promise"),r=vi.f;Po&&e&&!e[KF]&&r(e,KF,{configurable:!0,get:function(){return this}})}(),QM=rs(ti),xo({target:ti,stat:!0,forced:xd},{reject:function(t){var e=El(this);return re(e.reject,void 0,t),e.promise}}),xo({target:ti,stat:!0,forced:xd},{resolve:function(t){return function(e,r){if(fr(e),pe(r)&&r.constructor===e)return r;var n=D8.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),xo({target:ti,stat:!0,forced:umt},{all:function(t){var e=this,r=El(e),n=r.resolve,o=r.reject,i=yx(function(){var a=Ba(e.resolve),u=[],s=0,l=1;pm(t,function(c){var f=s++,d=!1;l++,re(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=El(e),n=r.reject,o=yx(function(){var i=Ba(e.resolve);pm(t,function(a){re(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var cmt=uh.PROPER,Ex=RegExp.prototype,uV=Ex.toString,fmt=Tt(_M),dmt=ge(function(){return uV.call({source:"a",flags:"b"})!="/a/b"}),pmt=cmt&&uV.name!="toString";(dmt||pmt)&&Nn(RegExp.prototype,"toString",function(){var t=fr(this),e=ha(t.source),r=t.flags;return"/"+e+"/"+ha(r===void 0&&dp(Ex,t)&&!("flags"in Ex)?fmt(t):r)},{unsafe:!0});var hmt=uh.EXISTS,gmt=vi.f,sV=Function.prototype,vmt=Tt(sV.toString),lV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mmt=Tt(lV.exec);Po&&!hmt&&gmt(sV,"name",{configurable:!0,get:function(){try{return mmt(lV,vmt(this))[1]}catch{return""}}});var sT=new WeakMap;function cV(t){return t.getMenuConfig("uploadImage")}function ymt(t,e){return y8(this,void 0,void 0,function(){return b8(this,function(r){return[2,new Promise(function(n){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;ku(t,a,e.name,u),n("ok")}}})]})})}function bmt(t,e){return y8(this,void 0,void 0,function(){var r,n,o,i;return b8(this,function(a){switch(a.label){case 0:return r=function(u){var s=sT.get(u);if(s!=null)return s;var l=cV(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=zj(lm(lm({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,m){if(p)return p(m,function($,W,j){return ku(u,$,W,j)}),void c(h,m);var y=m.errno,g=y===void 0?1:y,w=m.data,E=w===void 0?{}:w;if(g===0){if(Array.isArray(E))E.forEach(function($){var W=$.url,j=W===void 0?"":W,L=$.alt,V=L===void 0?"":L,q=$.href;ku(u,j,V,q===void 0?"":q)});else{var x=E.url,D=x===void 0?"":x,S=E.alt,k=S===void 0?"":S,F=E.href;ku(u,D,k,F===void 0?"":F)}c(h,m)}else d(h,m)},onError:function(h,m,y){v(h,m,y)}})),sT.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function fV(t,e){var r,n;return y8(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return b8(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=cV(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=f0t(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,ymt(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,h,m){return ku(t,v,h,m)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,bmt(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var wmt=Tt([].join),Emt=r8!=Object,Cmt=KM("join",",");xo({target:"Array",proto:!0,forced:Emt||!Cmt},{join:function(t){return wmt(Ia(this),t===void 0?",":t)}}),Bn&&(_.fn.append=Bn),_o&&(_.fn.on=_o),Nl&&(_.fn.remove=Nl),Bo&&(_.fn.val=Bo),sA&&(_.fn.click=sA),_l&&(_.fn.hide=_l);var xmt=function(){function t(){this.title=tt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return ty(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,d){return ku(e,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=_("body"),l=_('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;fV(e,c)})}},t}(),Smt={menus:[{key:"uploadImage",factory:function(){return new xmt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(ty(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?fV(t,o):e(n)}},r}};Kr("en",{highLightModule:{selectLang:"Language"}}),Kr("zh-CN",{highLightModule:{selectLang:"选择语言"}});var vm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Li,av,Og=function(t){return t&&t.Math==Math&&t},It=Og(typeof globalThis=="object"&&globalThis)||Og(typeof window=="object"&&window)||Og(typeof self=="object"&&self)||Og(typeof vm=="object"&&vm)||function(){return this}()||Function("return this")(),Dmt=Object.defineProperty,B8=function(t,e){try{Dmt(It,t,{value:e,configurable:!0,writable:!0})}catch{It[t]=e}return e},va=It["__core-js_shared__"]||B8("__core-js_shared__",{}),_8=k8(function(t){(t.exports=function(e,r){return va[e]||(va[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dV=Function.prototype,Cx=dV.bind,xx=dV.call,Amt=Cx&&Cx.bind(xx),Qt=Cx?function(t){return t&&Amt(xx,t)}:function(t){return t&&function(){return xx.apply(t,arguments)}},Omt=It.TypeError,Xl=function(t){if(t==null)throw Omt("Can't call method on "+t);return t},kmt=It.Object,F8=function(t){return kmt(Xl(t))},Bmt=Qt({}.hasOwnProperty),On=Object.hasOwn||function(t,e){return Bmt(F8(t),e)},_mt=0,Fmt=Math.random(),Tmt=Qt(1 .toString),pV=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Tmt(++_mt+Fmt,36)},Nr=function(t){return typeof t=="function"},Pmt=function(t){return Nr(t)?t:void 0},ch=function(t,e){return arguments.length<2?Pmt(It[t]):It[t]&&It[t][e]},Mw=ch("navigator","userAgent")||"",lT=It.process,cT=It.Deno,fT=lT&&lT.versions||cT&&cT.version,dT=fT&&fT.v8;dT&&(av=(Li=dT.split("."))[0]>0&&Li[0]<4?1:+(Li[0]+Li[1])),!av&&Mw&&(!(Li=Mw.match(/Edge\/(\d+)/))||Li[1]>=74)&&(Li=Mw.match(/Chrome\/(\d+)/))&&(av=+Li[1]);var pT=av,sr=function(t){try{return!!t()}catch{return!0}},Sx=!!Object.getOwnPropertySymbols&&!sr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pT&&pT<41}),T8=Sx&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vf=_8("wks"),Vu=It.Symbol,hT=Vu&&Vu.for,Nmt=T8?Vu:Vu&&Vu.withoutSetter||pV,La=function(t){if(!On(Vf,t)||!Sx&&typeof Vf[t]!="string"){var e="Symbol."+t;Sx&&On(Vu,t)?Vf[t]=Vu[t]:Vf[t]=T8&&hT?hT(e):Nmt(e)}return Vf[t]},hV={};hV[La("toStringTag")]="z";var P8=String(hV)==="[object z]",No=!sr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ni=function(t){return typeof t=="object"?t!==null:Nr(t)},Dx=It.document,jmt=ni(Dx)&&ni(Dx.createElement),N8=function(t){return jmt?Dx.createElement(t):{}},gV=!No&&!sr(function(){return Object.defineProperty(N8("div"),"a",{get:function(){return 7}}).a!=7}),Imt=It.String,Lmt=It.TypeError,Jn=function(t){if(ni(t))return t;throw Lmt(Imt(t)+" is not an object")},zf=Function.prototype.call,ar=zf.bind?zf.bind(zf):function(){return zf.apply(zf,arguments)},vV=Qt({}.isPrototypeOf),Rmt=It.Object,Vw=T8?function(t){return typeof t=="symbol"}:function(t){var e=ch("Symbol");return Nr(e)&&vV(e.prototype,Rmt(t))},Mmt=It.String,mV=function(t){try{return Mmt(t)}catch{return"Object"}},Vmt=It.TypeError,yV=function(t){if(Nr(t))return t;throw Vmt(mV(t)+" is not a function")},bV=function(t,e){var r=t[e];return r==null?void 0:yV(r)},zmt=It.TypeError,$mt=It.TypeError,Hmt=La("toPrimitive"),j8=function(t){var e=function(r,n){if(!ni(r)||Vw(r))return r;var o,i=bV(r,Hmt);if(i){if(o=ar(i,r,n),!ni(o)||Vw(o))return o;throw $mt("Can't convert object to primitive value")}return function(a,u){var s,l;if(Nr(s=a.toString)&&!ni(l=ar(s,a))||Nr(s=a.valueOf)&&!ni(l=ar(s,a)))return l;throw zmt("Can't convert object to primitive value")}(r)}(t,"string");return Vw(e)?e:e+""},Umt=It.TypeError,gT=Object.defineProperty,Ay={f:No?gT:function(t,e,r){if(Jn(t),e=j8(e),Jn(r),gV)try{return gT(t,e,r)}catch{}if("get"in r||"set"in r)throw Umt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},I8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Zl=No?function(t,e,r){return Ay.f(t,e,I8(1,r))}:function(t,e,r){return t[e]=r,t},Wmt=Qt(Function.toString);Nr(va.inspectSource)||(va.inspectSource=function(t){return Wmt(t)});var Ax,mm,Ox,L8=va.inspectSource,vT=It.WeakMap,Gmt=Nr(vT)&&/native code/.test(L8(vT)),mT=_8("keys"),wV=function(t){return mT[t]||(mT[t]=pV(t))},R8={},yT=It.TypeError,qmt=It.WeakMap;if(Gmt||va.state){var tu=va.state||(va.state=new qmt),Kmt=Qt(tu.get),bT=Qt(tu.has),Ymt=Qt(tu.set);Ax=function(t,e){if(bT(tu,t))throw new yT("Object already initialized");return e.facade=t,Ymt(tu,t,e),e},mm=function(t){return Kmt(tu,t)||{}},Ox=function(t){return bT(tu,t)}}else{var Ks=wV("state");R8[Ks]=!0,Ax=function(t,e){if(On(t,Ks))throw new yT("Object already initialized");return e.facade=t,Zl(t,Ks,e),e},mm=function(t){return On(t,Ks)?t[Ks]:{}},Ox=function(t){return On(t,Ks)}}var kx={get:mm,enforce:function(t){return Ox(t)?mm(t):Ax(t,{})}},EV=Function.prototype,Xmt=No&&Object.getOwnPropertyDescriptor,wT=On(EV,"name"),CV={PROPER:wT&&(function(){}).name==="something",CONFIGURABLE:wT&&(!No||No&&Xmt(EV,"name").configurable)},wp=k8(function(t){var e=CV.CONFIGURABLE,r=kx.get,n=kx.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Nr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!On(u,"name")||e&&u.name!==p)&&Zl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==It?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Zl(i,a,u)):f?i[a]=u:B8(a,u)})(Function.prototype,"toString",function(){return Nr(this)&&r(this).source||L8(this)})}),Zmt=Qt({}.toString),Jmt=Qt("".slice),ma=function(t){return Jmt(Zmt(t),8,-1)},Qmt=La("toStringTag"),tyt=It.Object,eyt=ma(function(){return arguments}())=="Arguments",M8=P8?ma:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=tyt(t),Qmt))=="string"?r:eyt?ma(e):(n=ma(e))=="Object"&&Nr(e.callee)?"Arguments":n},ryt=P8?{}.toString:function(){return"[object "+M8(this)+"]"};P8||wp(Object.prototype,"toString",ryt,{unsafe:!0});var ET,CT={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},zw=N8("span").classList,xT=zw&&zw.constructor&&zw.constructor.prototype,nyt=xT===Object.prototype?void 0:xT,ST=Qt(Qt.bind),$w=It.Object,oyt=Qt("".split),V8=sr(function(){return!$w("z").propertyIsEnumerable(0)})?function(t){return ma(t)=="String"?oyt(t,""):$w(t)}:$w,iyt=Math.ceil,ayt=Math.floor,z8=function(t){var e=+t;return e!=e||e===0?0:(e>0?ayt:iyt)(e)},uyt=Math.min,xV=function(t){return t>0?uyt(z8(t),9007199254740991):0},$8=function(t){return xV(t.length)},DT=Array.isArray||function(t){return ma(t)=="Array"},SV=function(){},syt=[],DV=ch("Reflect","construct"),H8=/^\s*(?:class|function)\b/,lyt=Qt(H8.exec),cyt=!H8.exec(SV),$f=function(t){if(!Nr(t))return!1;try{return DV(SV,syt,t),!0}catch{return!1}},AV=!DV||sr(function(){var t;return $f($f.call)||!$f(Object)||!$f(function(){t=!0})||t})?function(t){if(!Nr(t))return!1;switch(M8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cyt||!!lyt(H8,L8(t))}:$f,fyt=La("species"),AT=It.Array,dyt=function(t,e){return new(function(r){var n;return DT(r)&&(n=r.constructor,(AV(n)&&(n===AT||DT(n.prototype))||ni(n)&&(n=n[fyt])===null)&&(n=void 0)),n===void 0?AT:n}(t))(e===0?0:e)},OT=Qt([].push),Ri=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=F8(s),h=V8(v),m=function(x,D){return yV(x),D===void 0?x:ST?ST(x,D):function(){return x.apply(D,arguments)}}(l,c),y=$8(h),g=0,w=f||dyt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:OT(E,d)}else switch(t){case 4:return!1;case 7:OT(E,d)}return i?-1:n||o?o:E}},pyt=[Ri(0),Ri(1),Ri(2),Ri(3),Ri(4),Ri(5),Ri(6),Ri(7)][0],Hw=(ET=[].forEach)&&sr(function(){ET.call(null,function(){throw 1},1)})?[].forEach:function(t){return pyt(this,t,arguments.length>1?arguments[1]:void 0)},OV=function(t){if(t&&t.forEach!==Hw)try{Zl(t,"forEach",Hw)}catch{t.forEach=Hw}};for(var Uw in CT)CT[Uw]&&OV(It[Uw]&&It[Uw].prototype);OV(nyt);var kT={}.propertyIsEnumerable,BT=Object.getOwnPropertyDescriptor,kV={f:BT&&!kT.call({1:2},1)?function(t){var e=BT(this,t);return!!e&&e.enumerable}:kT},Oy=function(t){return V8(Xl(t))},_T=Object.getOwnPropertyDescriptor,BV={f:No?_T:function(t,e){if(t=Oy(t),e=j8(e),gV)try{return _T(t,e)}catch{}if(On(t,e))return I8(!ar(kV.f,t,e),t[e])}},hyt=Math.max,gyt=Math.min,Bx=function(t,e){var r=z8(t);return r<0?hyt(r+e,0):gyt(r,e)},vyt=function(t){return function(e,r,n){var o,i=Oy(e),a=$8(i),u=Bx(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},myt=vyt(!1),FT=Qt([].push),_V=function(t,e){var r,n=Oy(t),o=0,i=[];for(r in n)!On(R8,r)&&On(n,r)&&FT(i,r);for(;e.length>o;)On(n,r=e[o++])&&(~myt(i,r)||FT(i,r));return i},ym=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yyt=ym.concat("length","prototype"),byt={f:Object.getOwnPropertyNames||function(t){return _V(t,yyt)}},FV={f:Object.getOwnPropertySymbols},wyt=Qt([].concat),Eyt=ch("Reflect","ownKeys")||function(t){var e=byt.f(Jn(t)),r=FV.f;return r?wyt(e,r(t)):e},Cyt=function(t,e){for(var r=Eyt(e),n=Ay.f,o=BV.f,i=0;i<r.length;i++){var a=r[i];On(t,a)||n(t,a,o(e,a))}},xyt=/#|\.prototype\./,fh=function(t,e){var r=Dyt[Syt(t)];return r==Oyt||r!=Ayt&&(Nr(e)?sr(e):!!e)},Syt=fh.normalize=function(t){return String(t).replace(xyt,".").toLowerCase()},Dyt=fh.data={},Ayt=fh.NATIVE="N",Oyt=fh.POLYFILL="P",kyt=fh,Byt=BV.f,ky=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?It:l?It[u]||B8(u,{}):(It[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Byt(r,n))&&a.value:r[n],!kyt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Cyt(i,o)}(t.sham||o&&o.sham)&&Zl(i,"sham",!0),wp(r,n,i,t)}},uv=Object.keys||function(t){return _V(t,ym)},Ys=Object.assign,TT=Object.defineProperty,_yt=Qt([].concat),PT=!Ys||sr(function(){if(No&&Ys({b:1},Ys(TT({},"a",{enumerable:!0,get:function(){TT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Ys({},t)[r]!=7||uv(Ys({},e)).join("")!=n})?function(t,e){for(var r=F8(t),n=arguments.length,o=1,i=FV.f,a=kV.f;n>o;)for(var u,s=V8(arguments[o++]),l=i?_yt(uv(s),i(s)):uv(s),c=l.length,f=0;c>f;)u=l[f++],No&&!ar(a,s,u)||(r[u]=s[u]);return r}:Ys;ky({target:"Object",stat:!0,forced:Object.assign!==PT},{assign:PT});var NT=k8(function(t){var e=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function m(y){return y instanceof u?new u(y.type,m(y.content),y.alias):Array.isArray(y)?y.map(m):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(y,g){var w,E;switch(g=g||{},a.util.type(y)){case"Object":if(E=a.util.objId(y),g[E])return g[E];for(var x in w={},g[E]=w,y)y.hasOwnProperty(x)&&(w[x]=m(y[x],g));return w;case"Array":return E=a.util.objId(y),g[E]?g[E]:(w=[],g[E]=w,y.forEach(function(D,S){w[S]=m(D,g)}),w);default:return y}},getLanguage:function(m){for(;m&&!n.test(m.className);)m=m.parentElement;return m?(m.className.match(n)||[,"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 m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(m){var y=document.getElementsByTagName("script");for(var g in y)if(y[g].src==m)return y[g]}return null}},isActive:function(m,y,g){for(var w="no-"+y;m;){var E=m.classList;if(E.contains(y))return!0;if(E.contains(w))return!1;m=m.parentElement}return!!g}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(m,y){var g=a.util.clone(a.languages[m]);for(var w in y)g[w]=y[w];return g},insertBefore:function(m,y,g,w){var E=(w=w||a.languages)[m],x={};for(var D in E)if(E.hasOwnProperty(D)){if(D==y)for(var S in g)g.hasOwnProperty(S)&&(x[S]=g[S]);g.hasOwnProperty(D)||(x[D]=E[D])}var k=w[m];return w[m]=x,a.languages.DFS(a.languages,function(F,$){$===k&&F!=m&&(this[F]=x)}),x},DFS:function m(y,g,w,E){E=E||{};var x=a.util.objId;for(var D in y)if(y.hasOwnProperty(D)){g.call(y,D,y[D],w||D);var S=y[D],k=a.util.type(S);k!=="Object"||E[x(S)]?k!=="Array"||E[x(S)]||(E[x(S)]=!0,m(S,g,D,E)):(E[x(S)]=!0,m(S,g,null,E))}}},plugins:{},highlightAll:function(m,y){a.highlightAllUnder(document,m,y)},highlightAllUnder:function(m,y,g){var w={callback:g,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),a.hooks.run("before-all-elements-highlight",w);for(var E,x=0;E=w.elements[x++];)a.highlightElement(E,y===!0,w.callback)},highlightElement:function(m,y,g){var w=a.util.getLanguage(m),E=a.languages[w];m.className=m.className.replace(n,"").replace(/\s+/g," ")+" language-"+w;var x=m.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(n,"").replace(/\s+/g," ")+" language-"+w);var D={element:m,language:w,grammar:E,code:m.textContent};function S(F){D.highlightedCode=F,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),g&&g.call(D.element)}if(a.hooks.run("before-sanity-check",D),(x=D.element.parentElement)&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!D.code)return a.hooks.run("complete",D),void(g&&g.call(D.element));if(a.hooks.run("before-highlight",D),D.grammar)if(y&&r.Worker){var k=new Worker(a.filename);k.onmessage=function(F){S(F.data)},k.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else S(a.highlight(D.code,D.grammar,D.language));else S(a.util.encode(D.code))},highlight:function(m,y,g){var w={code:m,grammar:y,language:g};return a.hooks.run("before-tokenize",w),w.tokens=a.tokenize(w.code,w.grammar),a.hooks.run("after-tokenize",w),u.stringify(a.util.encode(w.tokens),w.language)},tokenize:function(m,y){var g=y.rest;if(g){for(var w in g)y[w]=g[w];delete y.rest}var E=new c;return f(E,E.head,m),l(m,E,y,E.head,0),function(x){for(var D=[],S=x.head.next;S!==x.tail;)D.push(S.value),S=S.next;return D}(E)},hooks:{all:{},add:function(m,y){var g=a.hooks.all;g[m]=g[m]||[],g[m].push(y)},run:function(m,y){var g=a.hooks.all[m];if(g&&g.length)for(var w,E=0;w=g[E++];)w(y)}},Token:u};function u(m,y,g,w){this.type=m,this.content=y,this.alias=g,this.length=0|(w||"").length}function s(m,y,g,w){m.lastIndex=y;var E=m.exec(g);if(E&&w&&E[1]){var x=E[1].length;E.index+=x,E[0]=E[0].slice(x)}return E}function l(m,y,g,w,E,x){for(var D in g)if(g.hasOwnProperty(D)&&g[D]){var S=g[D];S=Array.isArray(S)?S:[S];for(var k=0;k<S.length;++k){if(x&&x.cause==D+","+k)return;var F=S[k],$=F.inside,W=!!F.lookbehind,j=!!F.greedy,L=F.alias;if(j&&!F.pattern.global){var V=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,V+"g")}for(var q=F.pattern||F,Y=w.next,rt=E;Y!==y.tail&&!(x&&rt>=x.reach);rt+=Y.value.length,Y=Y.next){var lt=Y.value;if(y.length>m.length)return;if(!(lt instanceof u)){var st,ut=1;if(j){if(!(st=s(q,rt,m,W)))break;var B=st.index,A=st.index+st[0].length,N=rt;for(N+=Y.value.length;B>=N;)N+=(Y=Y.next).value.length;if(rt=N-=Y.value.length,Y.value instanceof u)continue;for(var U=Y;U!==y.tail&&(N<A||typeof U.value=="string");U=U.next)ut++,N+=U.value.length;ut--,lt=m.slice(rt,N),st.index-=rt}else if(!(st=s(q,0,lt,W)))continue;B=st.index;var X=st[0],G=lt.slice(0,B),at=lt.slice(B+X.length),vt=rt+lt.length;x&&vt>x.reach&&(x.reach=vt);var mt=Y.prev;if(G&&(mt=f(y,mt,G),rt+=G.length),d(y,mt,ut),Y=f(y,mt,new u(D,$?a.tokenize(X,$):X,L,X)),at&&f(y,Y,at),ut>1){var xt={cause:D+","+k,reach:vt};l(m,y,g,Y.prev,rt,xt),x&&xt.reach>x.reach&&(x.reach=xt.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},y={value:null,prev:m,next:null};m.next=y,this.head=m,this.tail=y,this.length=0}function f(m,y,g){var w=y.next,E={value:g,prev:y,next:w};return y.next=E,w.prev=E,m.length++,E}function d(m,y,g){for(var w=y.next,E=0;E<g&&w!==m.tail;E++)w=w.next;y.next=w,w.prev=y,m.length-=E}if(r.Prism=a,u.stringify=function m(y,g){if(typeof y=="string")return y;if(Array.isArray(y)){var w="";return y.forEach(function(k){w+=m(k,g)}),w}var E={type:y.type,content:m(y.content,g),tag:"span",classes:["token",y.type],attributes:{},language:g},x=y.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(E.classes,x):E.classes.push(x)),a.hooks.run("wrap",E);var D="";for(var S in E.attributes)D+=" "+S+'="'+(E.attributes[S]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+D+">"+E.content+"</"+E.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(m){var y=JSON.parse(m.data),g=y.language,w=y.code,E=y.immediateClose;r.postMessage(a.highlight(w,a.languages[g],g)),E&&r.close()},!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;h==="loading"||h==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
|
|
163
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
164
|
+
*
|
|
165
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
166
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
167
|
+
* @namespace
|
|
168
|
+
* @public
|
|
169
|
+
*/t.exports&&(t.exports=e),vm!==void 0&&(vm.Prism=e),e.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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.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:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}u(c,d),u(l,d);var v=e.plugins.autoloader;v&&v.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",f,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?(l.setAttribute(n,"loaded"),c.textContent=h.responseText,e.highlightElement(c)):(l.setAttribute(n,"failed"),h.status>=400?c.textContent="✖ Error "+h.status+" while fetching file: "+h.statusText:c.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"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://,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(t){var e=/\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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[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:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.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":n,keyword:e,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 e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\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/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.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:e,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/}),t.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(A,N){return A.replace(/<<(\d+)>>/g,function(U,X){return"(?:"+N[+X]+")"})}function r(A,N,U){return RegExp(e(A,N),"")}function n(A,N){for(var U=0;U<N;U++)A=A.replace(/<<self>>/g,function(){return"(?:"+A+")"});return A.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(A){return"\\b(?:"+A.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=e(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),g=/\[\s*(?:,\s*)*\]/.source,w=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,g]),E=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,g]),x=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),D=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,g]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(k),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,D]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,h]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,h,D,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,v]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:S},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 W=F+"|"+k,j=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[W]),L=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,q=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,L]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[L]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Y=/:[^}\r\n]+/.source,rt=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[rt,Y]),st=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[W]),2),ut=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,Y]);function B(A,N){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[A]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,Y]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:B(lt,rt)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ut]),lookbehind:!0,greedy:!0,inside:B(ut,st)}]})}(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(t){t.languages.ruby=t.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 e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.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:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],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:t.languages.ruby}}}),t.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)/}),t.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:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{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:e}},{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:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.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(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.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}},r.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:t.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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var h=v.content[1],m=v.content[3];if(h&&m&&h.type==="code-language"&&m.type==="code-block"&&typeof h.content=="string"){var y=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),g="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());m.alias?typeof m.alias=="string"?m.alias=[m.alias,g]:m.alias.push(g):m.alias=[g]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var h=t.languages[c];if(h)l.content=t.highlight(function(y){var g=y.replace(a,"");return g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(w,E){var x;return(E=E.toLowerCase())[0]==="#"?(x=E[1]==="x"?parseInt(E.slice(2),16):Number(E.slice(1)),s(x)):u[E]||w})}(l.content),h,c);else if(c&&c!=="none"&&t.plugins.autoloader){var m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=m,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(m);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Fyt=["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 TV(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,r){return e+TV(r)},0)}var kg,Tyt=It.String,ui=function(t){if(M8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tyt(t)},PV=function(){var t=Jn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},U8=It.RegExp,_x=sr(function(){var t=U8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});_x||sr(function(){return!U8("a","y").sticky});var NV={BROKEN_CARET:_x||sr(function(){var t=U8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:_x},Pyt=No?Object.defineProperties:function(t,e){Jn(t);for(var r,n=Oy(e),o=uv(e),i=o.length,a=0;i>a;)Ay.f(t,r=o[a++],n[r]);return t},Nyt=ch("document","documentElement"),jV=wV("IE_PROTO"),Ww=function(){},IV=function(t){return"<script>"+t+"<\/script>"},jT=function(t){t.write(IV("")),t.close();var e=t.parentWindow.Object;return t=null,e},sv=function(){try{kg=new ActiveXObject("htmlfile")}catch{}var t,e;sv=typeof document<"u"?document.domain&&kg?jT(kg):((e=N8("iframe")).style.display="none",Nyt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(IV("document.F=Object")),t.close(),t.F):jT(kg);for(var r=ym.length;r--;)delete sv.prototype[ym[r]];return sv()};R8[jV]=!0;var IT,Gw,jyt=Object.create||function(t,e){var r;return t!==null?(Ww.prototype=Jn(t),r=new Ww,Ww.prototype=null,r[jV]=t):r=sv(),e===void 0?r:Pyt(r,e)},Iyt=It.RegExp,Lyt=sr(function(){var t=Iyt(".","s");return!(t.dotAll&&t.exec(`
|
|
170
|
+
`)&&t.flags==="s")}),Ryt=It.RegExp,Myt=sr(function(){var t=Ryt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Vyt=kx.get,zyt=_8("native-string-replace",String.prototype.replace),bm=RegExp.prototype.exec,Fx=bm,$yt=Qt("".charAt),Hyt=Qt("".indexOf),Uyt=Qt("".replace),qw=Qt("".slice),Kw=(Gw=/b*/g,ar(bm,IT=/a/,"a"),ar(bm,Gw,"a"),IT.lastIndex!==0||Gw.lastIndex!==0),LT=NV.BROKEN_CARET,Yw=/()??/.exec("")[1]!==void 0;(Kw||Yw||LT||Lyt||Myt)&&(Fx=function(t){var e,r,n,o,i,a,u,s=this,l=Vyt(s),c=ui(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ar(Fx,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=LT&&s.sticky,v=ar(PV,s),h=s.source,m=0,y=c;if(p&&(v=Uyt(v,"y",""),Hyt(v,"g")===-1&&(v+="g"),y=qw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&$yt(c,s.lastIndex-1)!==`
|
|
171
|
+
`)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),Yw&&(r=new RegExp("^"+h+"$(?!\\s)",v)),Kw&&(n=s.lastIndex),o=ar(bm,p?r:s,y),p?o?(o.input=qw(o.input,m),o[0]=qw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Kw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Yw&&o&&o.length>1&&ar(zyt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=jyt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ep=Fx;ky({target:"RegExp",proto:!0,forced:/./.exec!==Ep},{exec:Ep});var W8=Function.prototype,RT=W8.apply,Wyt=W8.bind,MT=W8.call,Gyt=typeof Reflect=="object"&&Reflect.apply||(Wyt?MT.bind(RT):function(){return MT.apply(RT,arguments)}),qyt=La("species"),Xw=RegExp.prototype,Kyt=La("match"),Yyt=It.TypeError,Xyt=La("species"),Zyt=Qt("".charAt),VT=Qt("".charCodeAt),Jyt=Qt("".slice),Qyt=function(t){return function(e,r){var n,o,i=ui(Xl(e)),a=z8(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=VT(i,a))<55296||n>56319||a+1===u||(o=VT(i,a+1))<56320||o>57343?t?Zyt(i,a):n:t?Jyt(i,a,a+2):o-56320+(n-55296<<10)+65536}},t1t=Qyt(!0),e1t=function(t,e,r){return e+(r?t1t(t,e).length:1)},r1t=It.Array,n1t=Math.max,zT=function(t,e,r){for(var n,o,i,a,u=$8(t),s=Bx(e,u),l=Bx(r===void 0?u:r,u),c=r1t(n1t(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=t[s],(a=j8(o))in n?Ay.f(n,a,I8(0,i)):n[a]=i;return c.length=f,c},o1t=It.TypeError,$T=function(t,e){var r=t.exec;if(Nr(r)){var n=ar(r,t,e);return n!==null&&Jn(n),n}if(ma(t)==="RegExp")return ar(Ep,t,e);throw o1t("RegExp#exec called on incompatible receiver")},Xs=NV.UNSUPPORTED_Y,i1t=Math.min,LV=[].push,a1t=Qt(/./.exec),Zs=Qt(LV),Hf=Qt("".slice);(function(t,e,r,n){var o=La(t),i=!sr(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!sr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[qyt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Qt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,m,y=ui(Xl(this)),g=v===void 0?4294967295:v>>>0;if(g===0)return[];if(p===void 0)return[y];if(!ni(h=p)||!((m=h[Kyt])!==void 0?m:ma(h)=="RegExp"))return ar(c,y,p,g);for(var w,E,x,D=[],S=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,F=new RegExp(p.source,S+"g");(w=ar(Ep,F,y))&&!((E=F.lastIndex)>k&&(Zs(D,Hf(y,k,w.index)),w.length>1&&w.index<y.length&&Gyt(LV,D,zT(w,1)),x=w[0].length,k=E,D.length>=g));)F.lastIndex===w.index&&F.lastIndex++;return k===y.length?!x&&a1t(F,"")||Zs(D,""):Zs(D,Hf(y,k)),D.length>g?zT(D,0,g):D}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ar(c,this,p,v)}:c,[function(p,v){var h=Xl(this),m=p==null?void 0:bV(p,l);return m?ar(m,p,h,v):ar(d,ui(h),p,v)},function(p,v){var h=Jn(this),m=ui(p),y=f(d,h,m,v,d!==c);if(y.done)return y.value;var g=function(L,V){var q,Y=Jn(L).constructor;return Y===void 0||(q=Jn(Y)[Xyt])==null?V:function(rt){if(AV(rt))return rt;throw Yyt(mV(rt)+" is not a constructor")}(q)}(h,RegExp),w=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(Xs?"g":"y"),x=new g(Xs?"^(?:"+h.source+")":h,E),D=v===void 0?4294967295:v>>>0;if(D===0)return[];if(m.length===0)return $T(x,m)===null?[m]:[];for(var S=0,k=0,F=[];k<m.length;){x.lastIndex=Xs?0:k;var $,W=$T(x,Xs?Hf(m,k):m);if(W===null||($=i1t(xV(x.lastIndex+(Xs?k:0)),m.length))===S)k=e1t(m,k,w);else{if(Zs(F,Hf(m,S,k)),F.length===D)return F;for(var j=1;j<=W.length-1;j++)if(Zs(F,W[j]),F.length===D)return F;k=S=$}}return Zs(F,Hf(m,S)),F}]}(o,""[t],function(l,c,f,d,p){var v=Qt(l),h=c.exec;return h===Ep||h===Xw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});wp(String.prototype,t,s[0]),wp(Xw,o,s[1])}n&&Zl(Xw[o],"sham",!0)})("split",0,!!sr(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Xs),ky({global:!0},{globalThis:It}),kn&&(_.fn.attr=kn);var u1t=CV.PROPER,Tx=RegExp.prototype,RV=Tx.toString,s1t=Qt(PV),l1t=sr(function(){return RV.call({source:"a",flags:"b"})!="/a/b"}),c1t=u1t&&RV.name!="toString";(l1t||c1t)&&wp(RegExp.prototype,"toString",function(){var t=Jn(this),e=ui(t.source),r=t.flags;return"/"+e+"/"+ui(r===void 0&&vV(Tx,t)&&!("flags"in Tx)?s1t(t):r)},{unsafe:!0});var f1t=function(){function t(){this.title=tt("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 t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;r.push({text:u,value:s})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);if(r==null||!ft.isElement(r))return"";var n=r.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,r){if(this.getSelectCodeElem(e)!=null){var n={language:r.toString()};R.setNodes(e,n,{match:function(o){return O.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var r=O.getSelectedNodeByType(e,"code");if(r==null)return null;var n=O.getParentNode(e,r);return ft.isElement(n)?n.type!=="pre"?null:r:null},t}(),d1t={renderStyle:function(t,e){var r=t,n=e,o="";return Fyt.forEach(function(i){r[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(n,o="token "+o),n},parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e)||O.getNodeType(e)!=="code")return e;var o=e,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new f1t},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(t,e){var r=t.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+e+"</code>"}}]},p1t=/"/g,h1t=Qt("".replace);ky({target:"String",proto:!0,forced:sr(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=ui(Xl(this)),n="<a",(n+=' name="'+h1t(ui(e),p1t,""")+'"')+">"+r+"</a>";var e,r,n}});var MV=function(t){var e,r,n,o=function(y,g){var w=typeof Symbol=="function"&&y[Symbol.iterator];if(!w)return y;var E,x,D=w.call(y),S=[];try{for(;(g===void 0||g-- >0)&&!(E=D.next()).done;)S.push(E.value)}catch(k){x={error:k}}finally{try{E&&!E.done&&(w=D.return)&&w.call(D)}finally{if(x)throw x.error}}return S}(t,2),i=o[0],a=o[1],u=[],s=function(y){if(!it.isText(y))return null;var g=O.getParentNode(null,y);if(g&&O.getNodeType(g)==="code"){var w=O.getParentNode(null,g);if(w&&O.getNodeType(w)==="pre")return g}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,g){if(!g)return[];var w=NT.languages[g];return w?NT.tokenize(y.text,w):[]}(i,c),d=0;try{for(var p=function(y){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&y[g],E=0;if(w)return w.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&E>=y.length&&(y=void 0),{value:y&&y[E++],done:!y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var h=v.value,m=d+TV(h);typeof h!="string"&&u.push(((n={})[h.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:m},n)),d=m}}catch(y){e={error:y}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return u},Ae=function(){return Ae=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ae.apply(this,arguments)},or=function(){function t(){throw new Error(`不能实例化
|
|
172
|
+
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Ae(Ae({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Ae(Ae({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Ae(Ae({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Ae(Ae({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=En(En({},u),o||{});if(Hd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Hd[i]=a,function(l,c){c!=null&&(sj[l]=c)}(i,s)})(e,r)},t.registerRenderElem=function(e){(function(r){var n=r.type,o=r.renderElem;Pj[n||""]=o})(e)},t.registerRenderStyle=function(e){(function(r){O4.push(r)})(e)},t.registerElemToHtml=function(e){(function(r){var n=r.type,o=r.elemToHtml;lj[n||""]=o})(e)},t.registerStyleToHtml=function(e){(function(r){E4.push(r)})(e)},t.registerPreParseHtml=function(e){(function(r){Oj.push(r)})(e)},t.registerParseElemHtml=function(e){(function(r){var n=r.selector,o=r.parseElemHtml;i0[n]=o})(e)},t.registerParseStyleHtml=function(e){(function(r){n3.push(r)})(e)},t.registerModule=function(e){au(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
|
|
173
|
+
Copyright (c) Microsoft Corporation.
|
|
174
|
+
|
|
175
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
176
|
+
purpose with or without fee is hereby granted.
|
|
177
|
+
|
|
178
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
179
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
180
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
181
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
182
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
183
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
184
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
185
|
+
***************************************************************************** */function au(t){var e=t.menus,r=t.renderElems,n=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return or.registerMenu(c)}),r&&r.forEach(function(c){return or.registerRenderElem(c)}),n&&or.registerRenderStyle(n),o&&o.forEach(function(c){return or.registerElemToHtml(c)}),i&&or.registerStyleToHtml(i),a&&a.forEach(function(c){return or.registerPreParseHtml(c)}),u&&u.forEach(function(c){return or.registerParseElemHtml(c)}),s&&or.registerParseStyleHtml(s),l&&or.registerPlugin(l)}wut.forEach(function(t){return au(t)}),au(Zlt),au(xdt),au(Pgt),au(Smt),au(d1t);var VV='<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>',zV={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"]}},g1t={hoverbarKeys:Ae(Ae({},zV),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};or.setEditorConfig(Ae(Ae({},g1t),{decorate:MV}));var v1t={hoverbarKeys:zV};or.setSimpleEditorConfig(Ae(Ae({},v1t),{decorate:MV}));var m1t={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("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:tt("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:tt("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:tt("editor.image"),iconSvg:VV,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("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"]};or.setToolbarConfig(m1t);var y1t={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:VV,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function b1t(t){t===void 0&&(t={});var e=t.selector,r=e===void 0?"":e,n=t.content,o=n===void 0?[]:n,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?or.simpleEditorConfig:or.editorConfig,c=Ae(Ae({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return Ett({selector:r,config:Ae(Ae(Ae({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:or.plugins})}function w1t(t){var e=t.selector,r=t.editor,n=t.config,o=n===void 0?{}:n,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?or.simpleToolbarConfig:or.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(m,y){return _j(m,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=En({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new Att(f,v);return K6.set(h,l),Um.set(l,h),h}(r,{selector:e,config:Ae(Ae({},u),o)});return s}or.setSimpleToolbarConfig(y1t);var E1t=Object.defineProperty,C1t=Object.defineProperties,x1t=Object.getOwnPropertyDescriptors,HT=Object.getOwnPropertySymbols,S1t=Object.prototype.hasOwnProperty,D1t=Object.prototype.propertyIsEnumerable,UT=(t,e,r)=>e in t?E1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A1t=(t,e)=>{for(var r in e||(e={}))S1t.call(e,r)&&UT(t,r,e[r]);if(HT)for(var r of HT(e))D1t.call(e,r)&&UT(t,r,e[r]);return t},O1t=(t,e)=>C1t(t,x1t(e));function Mi(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
|
|
186
|
+
Please use '@${t}' event instead of props`,e}var $V=(t,e)=>{for(const[r,n]of e)t[r]=n;return t};const k1t=b.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const r=b.ref(null),n=b.shallowRef(null),o=b.ref(""),i=()=>{if(!r.value)return;const u=b.toRaw(t.defaultContent);b1t({selector:r.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:O1t(A1t({},t.defaultConfig),{onCreated(s){if(n.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Mi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Mi("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Mi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Mi("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Mi("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Mi("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Mi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Mi("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s!=null&&s.setHtml(u)}return b.onMounted(()=>{i()}),b.watch(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),B1t={ref:"box",style:{height:"100%"}};function _1t(t,e,r,n,o,i){return b.openBlock(),b.createElementBlock("div",B1t,null,512)}var F1t=$V(k1t,[["render",_1t]]);const T1t=b.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=b.ref(null),r=n=>{if(e.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");O.getToolbar(n)||w1t({editor:n,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return b.watchEffect(()=>{const{editor:n}=t;n!=null&&r(n)}),{selector:e}}}),P1t={ref:"selector"};function N1t(t,e,r,n,o,i){return b.openBlock(),b.createElementBlock("div",P1t,null,512)}var j1t=$V(T1t,[["render",N1t]]);const I1t={class:"rich-text-editor"},L1t=b.defineComponent({__name:"RichTextEditor",props:{modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]},uploadImgServer:{default:""},uploadVideoServer:{default:""}},emits:["update:modelValue","change","focus","blur","created"],setup(t,{expose:e,emit:r}){const n=t,o=r,i=b.shallowRef(),a=b.ref(""),u=b.computed(()=>typeof n.height=="number"?`${n.height}px`:n.height),s={excludeKeys:n.excludeKeys,insertKeys:{index:0,keys:n.includeKeys}},l={placeholder:n.placeholder,readOnly:n.disabled,maxLength:n.maxLength,MENU_CONF:{uploadImage:{server:n.uploadImgServer,fieldName:"file",maxFileSize:5*1024*1024,allowedFileTypes:["image/*"],meta:{},headers:{},withCredentials:!1,timeout:30*1e3,onBeforeUpload(h){return console.log("onBeforeUpload",h),h},onProgress(h){console.log("onProgress",h)},onSuccess(h,m){console.log("onSuccess",h,m)},onFailed(h,m){console.log("onFailed",h,m)},onError(h,m){console.log("onError",h,m)}},uploadVideo:{server:n.uploadVideoServer,fieldName:"file",maxFileSize:50*1024*1024,allowedFileTypes:["video/*"],meta:{},headers:{},withCredentials:!1,timeout:60*1e3,onBeforeUpload(h){return console.log("onBeforeUpload video",h),h},onProgress(h){console.log("onProgress video",h)},onSuccess(h,m){console.log("onSuccess video",h,m)},onFailed(h,m){console.log("onFailed video",h,m)},onError(h,m){console.log("onError video",h,m)}}}};b.onBeforeUnmount(()=>{const h=i.value;h!=null&&h.destroy()}),b.watch(()=>n.modelValue,h=>{h!==a.value&&(a.value=h||"")},{immediate:!0});const c=h=>{i.value=h,o("created",h)},f=h=>{o("update:modelValue",a.value),o("change",h)},d=()=>{i.value=void 0},p=h=>{o("focus",h)},v=h=>{o("blur",h)};return e({editor:i,getHtml:()=>a.value,getText:()=>{var h;return((h=i.value)==null?void 0:h.getText())||""},isEmpty:()=>{var h;return((h=i.value)==null?void 0:h.isEmpty())||!0},clear:()=>{var h;return(h=i.value)==null?void 0:h.clear()},focus:()=>{var h;return(h=i.value)==null?void 0:h.focus()},blur:()=>{var h;return(h=i.value)==null?void 0:h.blur()},disable:()=>{var h;return(h=i.value)==null?void 0:h.disable()},enable:()=>{var h;return(h=i.value)==null?void 0:h.enable()}}),(h,m)=>(b.openBlock(),b.createElementBlock("div",I1t,[b.createVNode(b.unref(j1t),{class:"editor-toolbar",editor:i.value,defaultConfig:s,mode:h.mode},null,8,["editor","mode"]),b.createVNode(b.unref(F1t),{class:"editor-content",style:b.normalizeStyle({height:u.value}),modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=y=>a.value=y),defaultConfig:l,mode:h.mode,onOnCreated:c,onOnChange:f,onOnDestroyed:d,onOnFocus:p,onOnBlur:v},null,8,["style","modelValue","mode"])]))}}),wm=jo(L1t,[["__scopeId","data-v-760a12a3"]]),R1t={class:"setting-content"},M1t={class:"setting-header flex items-center"},V1t={class:"setting-header flex items-center"},z1t={class:"setting-body"},$1t={class:"item-name"},H1t={class:"item-action flex items-center"},U1t=["onClick"],W1t={class:"item-action flex items-center"},G1t=["onClick"],q1t={class:"item-action flex items-center"},K1t=["onClick"],Y1t={class:"item-action flex items-center"},X1t=["onClick"],Z1t=["src"],J1t={class:"item-uplaod flex items-center"},Q1t={class:"item-img-list"},tbt={key:0,class:"item-img-box"},ebt=["src"],rbt={class:"item-right flex-1"},nbt=["onClick"],obt=["src"],ibt={class:"item-uplaod flex items-center"},abt=["src"],ubt={class:"item-uplaod flex items-center"},sbt=b.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(t,{emit:e}){const r=t,n=e,o=()=>{n("update:show",!1)},i=v=>{const h=r.data;v==="Article"?h.data.push({id:Ue(),type:"Article",data:{title:"",content:"",buttonList:[],linkList:[]}}):v==="Contact"?h.data.push({id:Ue(),type:"Contact",data:{title:"",content:"",categories:[],linkList:[]}}):v==="Image"?h.data.push({id:Ue(),type:"Image",data:{imgSrc:"",caption:"",alt:"",isRound:!1}}):v==="ImageList"?h.data.push({id:Ue(),type:"ImageList",data:{imageList:[]}}):v==="Video"&&h.data.push({id:Ue(),type:"Video",data:{videoSrc:"",imgSrc:""}})},a=v=>{v.push({id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1})},u=(v,h)=>{v.splice(v.findIndex(m=>m.id===h),1)},s=v=>{v.push({id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1})},l=(v,h)=>{v.splice(v.findIndex(m=>m.id===h),1)},c=v=>{v.push({id:Ue(),text:"分类"})},f=(v,h)=>{v.splice(v.findIndex(m=>m.id===h),1)},d=v=>{v.push({id:Ue(),src:""})},p=(v,h)=>{v.splice(v.findIndex(m=>m===h),1)};return(v,h)=>{const m=b.resolveComponent("a-option"),y=b.resolveComponent("a-select"),g=b.resolveComponent("icon-plus"),w=b.resolveComponent("a-button"),E=b.resolveComponent("a-button-group"),x=b.resolveComponent("a-input"),D=b.resolveComponent("icon-delete"),S=b.resolveComponent("a-checkbox"),k=b.resolveComponent("a-link"),F=b.resolveComponent("a-upload"),$=b.resolveComponent("icon-close-circle-fill"),W=b.resolveComponent("a-drawer");return b.openBlock(),b.createBlock(W,{width:500,visible:t.show,footer:!1,onCancel:o,unmountOnClose:""},{title:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(t.data.type)+"组件编辑 ",1)]),default:b.withCtx(()=>[b.createElementVNode("div",R1t,[b.createElementVNode("div",M1t,[h[11]||(h[11]=b.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),b.createVNode(y,{modelValue:t.data.width,"onUpdate:modelValue":h[0]||(h[0]=j=>t.data.width=j),placeholder:"请选择","allow-clear":""},{default:b.withCtx(()=>[b.createVNode(m,{value:"default"},{default:b.withCtx(()=>h[7]||(h[7]=[b.createTextVNode("默认")])),_:1,__:[7]}),b.createVNode(m,{value:"small"},{default:b.withCtx(()=>h[8]||(h[8]=[b.createTextVNode("小")])),_:1,__:[8]}),b.createVNode(m,{value:"medium"},{default:b.withCtx(()=>h[9]||(h[9]=[b.createTextVNode("中")])),_:1,__:[9]}),b.createVNode(m,{value:"large"},{default:b.withCtx(()=>h[10]||(h[10]=[b.createTextVNode("大")])),_:1,__:[10]})]),_:1},8,["modelValue"])]),b.createElementVNode("div",V1t,[h[14]||(h[14]=b.createElementVNode("span",{class:"header-title"},"组件背景",-1)),b.createVNode(y,{modelValue:t.data.background,"onUpdate:modelValue":h[1]||(h[1]=j=>t.data.background=j),placeholder:"请选择","allow-clear":""},{default:b.withCtx(()=>[b.createVNode(m,{value:"white"},{default:b.withCtx(()=>h[12]||(h[12]=[b.createTextVNode("白色")])),_:1,__:[12]}),b.createVNode(m,{value:"grey"},{default:b.withCtx(()=>h[13]||(h[13]=[b.createTextVNode("灰色")])),_:1,__:[13]})]),_:1},8,["modelValue"])]),b.createVNode(E,{type:"primary"},{default:b.withCtx(()=>[b.createVNode(w,{size:"mini",onClick:h[2]||(h[2]=j=>i("Article"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[15]||(h[15]=b.createTextVNode(" Article "))]),_:1,__:[15]}),b.createVNode(w,{size:"mini",onClick:h[3]||(h[3]=j=>i("Contact"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[16]||(h[16]=b.createTextVNode(" Contact "))]),_:1,__:[16]}),b.createVNode(w,{size:"mini",onClick:h[4]||(h[4]=j=>i("Image"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[17]||(h[17]=b.createTextVNode(" Image "))]),_:1,__:[17]}),b.createVNode(w,{size:"mini",onClick:h[5]||(h[5]=j=>i("ImageList"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[18]||(h[18]=b.createTextVNode(" ImageList "))]),_:1,__:[18]}),b.createVNode(w,{size:"mini",onClick:h[6]||(h[6]=j=>i("Video"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[19]||(h[19]=b.createTextVNode(" Video "))]),_:1,__:[19]})]),_:1}),b.createElementVNode("div",z1t,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.data.data,j=>(b.openBlock(),b.createElementBlock("div",{class:"setting-item",key:j.id},[b.createElementVNode("p",$1t,b.toDisplayString(j.type),1),j.type==="Article"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[h[24]||(h[24]=b.createElementVNode("p",{class:"item-title"},"标题",-1)),b.createVNode(x,{modelValue:j.data.title,"onUpdate:modelValue":L=>j.data.title=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[25]||(h[25]=b.createElementVNode("p",{class:"item-title"},"内容",-1)),b.createVNode(b.unref(wm),{modelValue:j.data.content,"onUpdate:modelValue":L=>j.data.content=L},null,8,["modelValue","onUpdate:modelValue"]),h[26]||(h[26]=b.createElementVNode("p",{class:"item-title"},"按钮",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.buttonList,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:V=>u(j.data.buttonList,L.id)},null,8,["onClick"]),b.createVNode(w,{type:"primary"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",H1t,[b.createVNode(x,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":V=>L.text=V,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{modelValue:L.url,"onUpdate:modelValue":V=>L.url=V,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(S,{"model-value":L.isExternal},{default:b.withCtx(()=>h[20]||(h[20]=[b.createTextVNode("是否外部链接")])),_:2,__:[20]},1032,["model-value"])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>a(j.data.buttonList)},[b.createVNode(g),h[21]||(h[21]=b.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,U1t),h[27]||(h[27]=b.createElementVNode("p",{class:"item-title"},"链接",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.linkList,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:V=>l(j.data.linkList,L.id)},null,8,["onClick"]),b.createVNode(k,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",W1t,[b.createVNode(x,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":V=>L.text=V,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{modelValue:L.url,"onUpdate:modelValue":V=>L.url=V,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(S,{"model-value":L.isExternal},{default:b.withCtx(()=>h[22]||(h[22]=[b.createTextVNode("是否外部链接")])),_:2,__:[22]},1032,["model-value"])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>s(j.data.linkList)},[b.createVNode(g),h[23]||(h[23]=b.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,G1t)],64)):b.createCommentVNode("",!0),j.type==="Contact"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[h[31]||(h[31]=b.createElementVNode("p",{class:"item-title"},"标题",-1)),b.createVNode(x,{modelValue:j.data.title,"onUpdate:modelValue":L=>j.data.title=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[32]||(h[32]=b.createElementVNode("p",{class:"item-title"},"内容",-1)),b.createVNode(b.unref(wm),{modelValue:j.data.content,"onUpdate:modelValue":L=>j.data.content=L},null,8,["modelValue","onUpdate:modelValue"]),h[33]||(h[33]=b.createElementVNode("p",{class:"item-title"},"分类",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.categories,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:V=>f(j.data.categories,L.id)},null,8,["onClick"]),b.createVNode(k,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",q1t,[b.createVNode(x,{modelValue:L.text,"onUpdate:modelValue":V=>L.text=V,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>c(j.data.categories)},[b.createVNode(g),h[28]||(h[28]=b.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,K1t),h[34]||(h[34]=b.createElementVNode("p",{class:"item-title"},"链接",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.linkList,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:V=>l(j.data.linkList,L.id)},null,8,["onClick"]),b.createVNode(k,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",Y1t,[b.createVNode(x,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":V=>L.text=V,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{modelValue:L.url,"onUpdate:modelValue":V=>L.url=V,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(S,{"model-value":L.isExternal},{default:b.withCtx(()=>h[29]||(h[29]=[b.createTextVNode("是否外部链接")])),_:2,__:[29]},1032,["model-value"])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>s(j.data.linkList)},[b.createVNode(g),h[30]||(h[30]=b.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,X1t)],64)):b.createCommentVNode("",!0),j.type==="Image"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.createElementVNode("img",{class:"item-img",src:j.data.imgSrc},null,8,Z1t),b.createElementVNode("div",J1t,[b.createVNode(x,{modelValue:j.data.imgSrc,"onUpdate:modelValue":L=>j.data.imgSrc=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{class:"fit-content","show-file-list":!1,action:"/"})]),b.createVNode(x,{class:"mt-10",modelValue:j.data.caption,"onUpdate:modelValue":L=>j.data.caption=L,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{class:"mt-10",modelValue:j.data.alt,"onUpdate:modelValue":L=>j.data.alt=L,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(S,{class:"pt-10","model-value":j.data.isRound},{default:b.withCtx(()=>h[35]||(h[35]=[b.createTextVNode("圆角")])),_:2,__:[35]},1032,["model-value"])],64)):b.createCommentVNode("",!0),j.type==="ImageList"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:3},[h[37]||(h[37]=b.createElementVNode("p",{class:"item-title"},"图片组",-1)),b.createElementVNode("div",Q1t,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.imageList,L=>(b.openBlock(),b.createElementBlock("div",{class:"img-list-item flex",key:L.id},[L.src?(b.openBlock(),b.createElementBlock("div",tbt,[b.createVNode($,{class:"item-img-dlete",onClick:V=>p(j.data.imageList,L.id)},null,8,["onClick"]),b.createElementVNode("img",{class:"item-img small-img",src:L.src},null,8,ebt)])):b.createCommentVNode("",!0),b.createElementVNode("div",rbt,[b.createVNode(x,{style:{"margin-bottom":"12px"},modelValue:L.src,"onUpdate:modelValue":V=>L.src=V,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{"show-file-list":!1,action:"/"})])]))),128))]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>d(j.data.imageList)},[b.createVNode(g),h[36]||(h[36]=b.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,nbt)],64)):b.createCommentVNode("",!0),j.type==="Video"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:4},[h[38]||(h[38]=b.createElementVNode("p",{class:"item-title"},"视频",-1)),b.createElementVNode("video",{class:"item-img",src:j.data.videoSrc,controls:""},null,8,obt),b.createElementVNode("div",ibt,[b.createVNode(x,{modelValue:j.data.videoSrc,"onUpdate:modelValue":L=>j.data.videoSrc=L,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{class:"fit-content","show-file-list":!1,action:"/"})]),b.createElementVNode("img",{class:"item-img",src:j.data.imgSrc},null,8,abt),b.createElementVNode("div",ubt,[b.createVNode(x,{modelValue:j.data.imgSrc,"onUpdate:modelValue":L=>j.data.imgSrc=L,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):b.createCommentVNode("",!0)]))),128))])])]),_:1},8,["visible"])}}}),lbt=jo(sbt,[["__scopeId","data-v-741a0180"]]),cbt={class:"operate-page"},fbt={class:"operate-btn flex justify-end"},dbt=b.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit"],setup(t,{emit:e}){const r=e,n=()=>{r("handleCopy")},o=()=>{r("handleDelete")},i=()=>{r("handleEdit")};return(a,u)=>{const s=b.resolveComponent("icon-copy"),l=b.resolveComponent("icon-delete"),c=b.resolveComponent("icon-edit");return b.withDirectives((b.openBlock(),b.createElementBlock("div",cbt,[b.createElementVNode("div",fbt,[b.createElementVNode("div",{class:"btn-item btn-copy flex items-center",onClick:n},[b.createVNode(s),u[0]||(u[0]=b.createElementVNode("span",{class:"btn-text"},"复制",-1))]),b.createElementVNode("div",{class:"btn-item btn-delete flex items-center",onClick:o},[b.createVNode(l),u[1]||(u[1]=b.createElementVNode("span",{class:"btn-text"},"删除",-1))]),b.createElementVNode("div",{class:"btn-item btn-edit flex items-center",onClick:i},[b.createVNode(c),u[2]||(u[2]=b.createElementVNode("span",{class:"btn-text"},"编辑",-1))])])],512)),[[b.vShow,t.show]])}}}),pbt=jo(dbt,[["__scopeId","data-v-5213869a"]]),hbt={class:"article-list-left"},gbt={class:"article-list-right"},vbt=b.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(t,{emit:e}){const r=t,n=e,o=b.computed(()=>r.modelValue&&r.modelValue.data&&r.modelValue.data.length?r.modelValue.data.some(c=>c.type==="Image"||c.type==="Video"||c.type==="ImageList"):!1),i=()=>{if(r.modelValue&&r.modelValue.id)return;const c={id:Ue(),type:"ArticleList",isPreview:!1,width:"",background:"",data:[{id:Ue(),type:"Article",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[{id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}],linkList:[{id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:Ue(),type:"Image",data:{imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}},{id:Ue(),type:"Contact",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",categories:[{id:Ue(),text:"分类1"}],linkList:[{id:Ue(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:Ue(),type:"ImageList",data:{imageList:[{id:Ue(),src:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}]}},{id:Ue(),type:"Video",data:{videoSrc:"http://mpv.videocc.net/4b964bbdf4/3/4b964bbdf481505df84cfd703c4b3043_2.mp4",imgSrc:"https://object.ycyw.com/media-library/ycyw-edu/news/20250628%20HKDSE%20Forum/Cover.jpg"}}]};n("update:modelValue",c)},a=b.ref(!1),u=b.ref(!1),s=()=>{n("handleDelete",r.modelValue.id)},l=()=>{n("handleCopy",r.modelValue)};return i(),(c,f)=>{const d=b.resolveComponent("a-col"),p=b.resolveComponent("a-row");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createVNode(p,{class:"article-list",onMouseenter:f[2]||(f[2]=v=>a.value=!0),onMouseleave:f[3]||(f[3]=v=>a.value=!1)},{default:b.withCtx(()=>[b.createVNode(d,{sm:{span:24},md:{span:o.value?12:24}},{default:b.withCtx(()=>{var v;return[b.createElementVNode("div",hbt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((v=t.modelValue)==null?void 0:v.data,h=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:h.id},[h.type==="Article"?(b.openBlock(),b.createBlock(oz,{key:0,article:h.data},null,8,["article"])):b.createCommentVNode("",!0),h.type==="Contact"?(b.openBlock(),b.createBlock(fz,{key:1,contact:h.data},null,8,["contact"])):b.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),o.value?(b.openBlock(),b.createBlock(d,{key:0,sm:{span:24},md:{span:12}},{default:b.withCtx(()=>{var v;return[b.createElementVNode("div",gbt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((v=t.modelValue)==null?void 0:v.data,h=>(b.openBlock(),b.createBlock(xz,{key:h.id,type:h.type,data:h.data,preview:t.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):b.createCommentVNode("",!0),b.createVNode(pbt,{show:a.value,"onUpdate:show":f[0]||(f[0]=v=>a.value=v),onHandleEdit:f[1]||(f[1]=v=>u.value=!0),onHandleDelete:s,onHandleCopy:l},null,8,["show"])]),_:1}),b.createVNode(lbt,{show:u.value,"onUpdate:show":f[4]||(f[4]=v=>u.value=v),data:t.modelValue},null,8,["show","data"])],64)}}}),G8=jo(vbt,[["__scopeId","data-v-67fab774"]]),mbt={class:"hero-slide"},ybt={class:"slide-container"},bbt={key:0,class:"slide-indicators"},wbt=["onClick"],Ebt=b.defineComponent({name:"HeroSlide",__name:"index",props:{autoPlayInterval:{default:3e3},showIndicators:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!0}},emits:["change","click"],setup(t,{emit:e}){const r=t,n=e,o=b.ref(0),i=b.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let a=null;const u=f=>{o.value=f,n("change",f)},s=()=>{o.value=(o.value+1)%i.value.length,n("change",o.value)},l=()=>{r.autoPlay&&(a=window.setInterval(s,r.autoPlayInterval))},c=()=>{a&&(clearInterval(a),a=null)};return b.onMounted(()=>{l()}),b.onUnmounted(()=>{c()}),(f,d)=>(b.openBlock(),b.createElementBlock("div",mbt,[b.createElementVNode("div",ybt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(i.value,(p,v)=>(b.openBlock(),b.createElementBlock("div",{key:v,class:b.normalizeClass(["slide-item",{active:o.value===v}])},[b.createElementVNode("h2",null,b.toDisplayString(p.title),1),b.createElementVNode("p",null,b.toDisplayString(p.description),1)],2))),128))]),f.showIndicators?(b.openBlock(),b.createElementBlock("div",bbt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(i.value,(p,v)=>(b.openBlock(),b.createElementBlock("span",{key:v,class:b.normalizeClass(["indicator",{active:o.value===v}]),onClick:h=>u(v)},null,10,wbt))),128))])):b.createCommentVNode("",!0)]))}}),q8=jo(Ebt,[["__scopeId","data-v-4198d280"]]),Px={default:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},dark:{primaryColor:"#60a5fa",secondaryColor:"#c084fc",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},compact:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"12px",fontFamily:"Inter, sans-serif",borderRadius:"4px",spacing:"12px"},large:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"16px",fontFamily:"Inter, sans-serif",borderRadius:"8px",spacing:"20px"}},Rr=b.ref(Px.default),so=b.ref(!1);function HV(){const t=v=>{typeof v=="string"?Rr.value={...Px[v]}:Rr.value={...v},n()},e=v=>{Rr.value={...Rr.value,...v},n()},r=()=>{so.value=!so.value,document.documentElement.classList.toggle("dark",so.value)},n=()=>{const v=document.documentElement,h=Rr.value;v.style.setProperty("--theme-primary",h.primaryColor),v.style.setProperty("--theme-secondary",h.secondaryColor),v.style.setProperty("--font-size-default",h.fontSize),v.style.setProperty("--font-family-sans",h.fontFamily),v.style.setProperty("--radius-md",h.borderRadius),v.style.setProperty("--spacing-md",h.spacing)},o=v=>b.computed(()=>v==="primary"?Rr.value.primaryColor:Rr.value.secondaryColor),i=()=>b.computed(()=>Rr.value.fontSize),a=()=>b.computed(()=>Rr.value.fontFamily),u=()=>b.computed(()=>Rr.value.borderRadius),s=()=>b.computed(()=>Rr.value.spacing),l=()=>{t("default"),so.value=!1,document.documentElement.classList.remove("dark")},c=()=>JSON.stringify(Rr.value,null,2),f=v=>{try{const h=JSON.parse(v);return t(h),!0}catch(h){return console.error("Invalid theme configuration:",h),!1}},d=()=>{const v=localStorage.getItem("officialblock-theme"),h=localStorage.getItem("officialblock-dark-mode");if(v)try{const g=JSON.parse(v);t(g)}catch(g){console.error("Failed to restore theme:",g)}h&&(so.value=h==="true",document.documentElement.classList.toggle("dark",so.value));const m=window.matchMedia("(prefers-color-scheme: dark)"),y=g=>{localStorage.getItem("officialblock-dark-mode")||(so.value=g.matches,document.documentElement.classList.toggle("dark",so.value))};m.addEventListener("change",y),n()},p=()=>{localStorage.setItem("officialblock-theme",JSON.stringify(Rr.value)),localStorage.setItem("officialblock-dark-mode",so.value.toString())};return{currentTheme:b.computed(()=>Rr.value),isDarkMode:b.computed(()=>so.value),themePresets:Px,setTheme:t,updateTheme:e,toggleDarkMode:r,resetTheme:l,exportTheme:c,importTheme:f,initTheme:d,saveTheme:p,getThemeColor:o,getFontSize:i,getFontFamily:a,getBorderRadius:u,getSpacing:s}}class UV{static hexToRgb(e){const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}static rgbToHex(e,r,n){return"#"+((1<<24)+(e<<16)+(r<<8)+n).toString(16).slice(1)}static adjustBrightness(e,r){const n=this.hexToRgb(e);if(!n)return e;const o=i=>{const a=Math.round(i*(1+r/100));return Math.max(0,Math.min(255,a))};return this.rgbToHex(o(n.r),o(n.g),o(n.b))}static generateColorScale(e){const r=[50,100,200,300,400,500,600,700,800,900,950],n={};return r.forEach((o,i)=>{let a;o<=500?a=80-i*16:a=-20-(i-5)*12,n[o.toString()]=this.adjustBrightness(e,a)}),n}static getContrastRatio(e,r){const n=s=>{const l=this.hexToRgb(s);if(!l)return 0;const c=f=>{const d=f/255;return d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)};return .2126*c(l.r)+.7152*c(l.g)+.0722*c(l.b)},o=n(e),i=n(r),a=Math.max(o,i),u=Math.min(o,i);return(a+.05)/(u+.05)}static isDarkColor(e){const r=this.hexToRgb(e);return r?(r.r*299+r.g*587+r.b*114)/1e3<128:!1}static getBestTextColor(e){return this.isDarkColor(e)?"#ffffff":"#000000"}static mixColors(e,r,n=.5){const o=this.hexToRgb(e),i=this.hexToRgb(r);if(!o||!i)return e;const a=(u,s)=>Math.round(u*(1-n)+s*n);return this.rgbToHex(a(o.r,i.r),a(o.g,i.g),a(o.b,i.b))}}class Cbt{static getCurrentBreakpoint(){const e=window.innerWidth;return e<475?"xs":e<640?"sm":e<768?"md":e<1024?"lg":e<1280?"xl":"2xl"}static isMobile(){return window.innerWidth<768}static isTablet(){const e=window.innerWidth;return e>=768&&e<1024}static isDesktop(){return window.innerWidth>=1024}static onBreakpointChange(e){let r=this.getCurrentBreakpoint();const n=()=>{const o=this.getCurrentBreakpoint();o!==r&&(r=o,e(o))};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}}}class WV{static animate(e,r,n,o,i=this.easing.easeOutQuad){const a=performance.now();let u;const s=l=>{const c=l-a,f=Math.min(c/n,1),d=i(f),p=e+(r-e)*d;o(p),f<1&&(u=requestAnimationFrame(s))};return u=requestAnimationFrame(s),()=>{u&&cancelAnimationFrame(u)}}static scrollTo(e,r,n=300,o=this.easing.easeOutQuad){return new Promise(i=>{const a=e===window,u=a?window.pageYOffset:e.scrollTop;this.animate(u,r,n,s=>{a?window.scrollTo(0,s):e.scrollTop=s},o),setTimeout(i,n)})}}X8(WV,"easing",{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:-1+(4-2*e)*e,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1});class xbt{static setItem(e,r){try{return localStorage.setItem(e,JSON.stringify(r)),!0}catch(n){return console.warn("Failed to save to localStorage:",n),!1}}static getItem(e,r){try{const n=localStorage.getItem(e);return n?JSON.parse(n):r||null}catch(n){return console.warn("Failed to read from localStorage:",n),r||null}}static removeItem(e){try{return localStorage.removeItem(e),!0}catch(r){return console.warn("Failed to remove from localStorage:",r),!1}}static cleanExpired(){const e=Date.now(),r=[];for(let n=0;n<localStorage.length;n++){const o=localStorage.key(n);if(o&&o.startsWith("officialblock-"))try{const i=JSON.parse(localStorage.getItem(o)||"{}");i.expires&&i.expires<e&&r.push(o)}catch{}}r.forEach(n=>localStorage.removeItem(n))}}const Sbt={class:"theme-preview"},Dbt={class:"preview-content"},Abt={class:"color-preview"},Obt={class:"color-swatches"},kbt={class:"typography-preview"},Bbt={class:"font-samples"},_bt={class:"component-preview"},Fbt={class:"component-samples"},Tbt={class:"sample-group"},Pbt={class:"button-group"},Nbt={class:"sample-group"},jbt={class:"sample-group"},Ibt={class:"sample-group"},Lbt={class:"tag-group"},Rbt={class:"layout-preview"},Mbt={class:"item-header"},Vbt={class:"item-info"},zbt={class:"item-content"},$bt=b.defineComponent({__name:"ThemePreview",setup(t){const{currentTheme:e}=HV(),r=n=>UV.getBestTextColor(n);return(n,o)=>(b.openBlock(),b.createElementBlock("div",Sbt,[o[12]||(o[12]=b.createElementVNode("div",{class:"preview-header"},[b.createElementVNode("h3",null,"主题预览"),b.createElementVNode("p",null,"实时预览当前主题效果")],-1)),b.createElementVNode("div",Dbt,[b.createElementVNode("div",Abt,[o[3]||(o[3]=b.createElementVNode("h4",null,"颜色系统",-1)),b.createElementVNode("div",Obt,[b.createElementVNode("div",{class:"color-swatch primary",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor})},[b.createElementVNode("span",{style:b.normalizeStyle({color:r(b.unref(e).primaryColor)})}," Primary ",4)],4),b.createElementVNode("div",{class:"color-swatch secondary",style:b.normalizeStyle({backgroundColor:b.unref(e).secondaryColor})},[b.createElementVNode("span",{style:b.normalizeStyle({color:r(b.unref(e).secondaryColor)})}," Secondary ",4)],4),o[0]||(o[0]=b.createElementVNode("div",{class:"color-swatch success"},[b.createElementVNode("span",null,"Success")],-1)),o[1]||(o[1]=b.createElementVNode("div",{class:"color-swatch warning"},[b.createElementVNode("span",null,"Warning")],-1)),o[2]||(o[2]=b.createElementVNode("div",{class:"color-swatch error"},[b.createElementVNode("span",null,"Error")],-1))])]),b.createElementVNode("div",kbt,[o[5]||(o[5]=b.createElementVNode("h4",null,"字体系统",-1)),b.createElementVNode("div",Bbt,[b.createElementVNode("div",{class:"font-sample",style:b.normalizeStyle({fontSize:b.unref(e).fontSize,fontFamily:b.unref(e).fontFamily})},[b.createElementVNode("strong",null,"默认字体 ("+b.toDisplayString(b.unref(e).fontSize)+")",1),o[4]||(o[4]=b.createElementVNode("p",null,"这是使用当前主题字体设置的示例文本。The quick brown fox jumps over the lazy dog.",-1))],4)])]),b.createElementVNode("div",_bt,[o[10]||(o[10]=b.createElementVNode("h4",null,"组件预览",-1)),b.createElementVNode("div",Fbt,[b.createElementVNode("div",Tbt,[o[6]||(o[6]=b.createElementVNode("label",null,"按钮",-1)),b.createElementVNode("div",Pbt,[b.createElementVNode("button",{class:"btn btn-primary",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 主要按钮 ",4),b.createElementVNode("button",{class:"btn btn-secondary",style:b.normalizeStyle({backgroundColor:b.unref(e).secondaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 次要按钮 ",4),b.createElementVNode("button",{class:"btn btn-outline",style:b.normalizeStyle({borderColor:b.unref(e).primaryColor,color:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 轮廓按钮 ",4)])]),b.createElementVNode("div",Nbt,[o[7]||(o[7]=b.createElementVNode("label",null,"卡片",-1)),b.createElementVNode("div",{class:"card-sample",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("h5",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 1.2)`})}," 卡片标题 ",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})}," 这是一个卡片组件的预览示例,展示了当前主题的样式效果。 ",4)],4)]),b.createElementVNode("div",jbt,[o[8]||(o[8]=b.createElementVNode("label",null,"输入框",-1)),b.createElementVNode("input",{type:"text",class:"input-sample",placeholder:"输入框示例",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize,padding:`calc(${b.unref(e).spacing} * 0.5) ${b.unref(e).spacing}`})},null,4)]),b.createElementVNode("div",Ibt,[o[9]||(o[9]=b.createElementVNode("label",null,"标签",-1)),b.createElementVNode("div",Lbt,[b.createElementVNode("span",{class:"tag tag-primary",style:b.normalizeStyle({backgroundColor:`${b.unref(e).primaryColor}20`,color:b.unref(e).primaryColor,borderRadius:`calc(${b.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${b.unref(e).fontSize} * 0.875)`,padding:`calc(${b.unref(e).spacing} * 0.25) calc(${b.unref(e).spacing} * 0.5)`})}," 主要标签 ",4),b.createElementVNode("span",{class:"tag tag-secondary",style:b.normalizeStyle({backgroundColor:`${b.unref(e).secondaryColor}20`,color:b.unref(e).secondaryColor,borderRadius:`calc(${b.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${b.unref(e).fontSize} * 0.875)`,padding:`calc(${b.unref(e).spacing} * 0.25) calc(${b.unref(e).spacing} * 0.5)`})}," 次要标签 ",4)])])])]),b.createElementVNode("div",Rbt,[o[11]||(o[11]=b.createElementVNode("h4",null,"布局预览",-1)),b.createElementVNode("div",{class:"layout-sample",style:b.normalizeStyle({gap:b.unref(e).spacing})},[b.createElementVNode("div",{class:"layout-item",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("div",Mbt,[b.createElementVNode("div",{class:"item-avatar",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius})},null,4),b.createElementVNode("div",Vbt,[b.createElementVNode("h6",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})},"用户名称",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 0.875)`})}," 用户描述信息 ",4)])])],4),b.createElementVNode("div",{class:"layout-item",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("div",zbt,[b.createElementVNode("h6",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})},"内容标题",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 0.875)`})}," 这是一段示例内容,用于展示当前主题的布局效果。 ",4)])],4)],4)])])]))}}),GV=jo($bt,[["__scopeId","data-v-8a4e29bd"]]),Hbt={install:t=>{t.component("ArticleList",G8)}},Ubt={install:t=>{t.component("HeroSlide",q8)}},Wbt={install:t=>{t.component("ArticleList",G8),t.component("HeroSlide",q8),t.component("RichTextEditor",wm),t.component("ThemePreview",GV)}};exports.AnimationUtils=WV;exports.ArticleList=G8;exports.ArticleListPlugin=Hbt;exports.HeroSlide=q8;exports.HeroSlidePlugin=Ubt;exports.ResponsiveUtils=Cbt;exports.RichTextEditor=wm;exports.StorageUtils=xbt;exports.ThemePreview=GV;exports.ThemeUtils=UV;exports.default=Wbt;exports.useTheme=HV;
|