HM-SPMS/web/nginx/html/knowledge/static/js/keywordSearch-97253702.js

248 lines
1.4 MiB
JavaScript
Raw Normal View History

2026-01-06 04:47:40 +08:00
import{$ as bn,a9 as _ae,aa as Wd,ab as BE,ac as uc,ad as kB,ae as Aae,af as gG,ag as kae,ah as Rf,ai as PE,aj as Tae,ak as Vl,al as mG,am as Gd,an as q5,ao as Gx,ap as yG,aq as jp,ar as Dae,as as xG,at as Oae,au as Fae,av as Bae,aw as Pae,ax as Fn,ay as Nae,m as In,o as ge,c as Oe,p as Pe,k as xt,l as Tn,az as Iae,aA as NE,a as ce,aB as y8,aC as ui,I as Ge,f as T,S as $r,aD as bG,K as li,aE as Wl,u as ct,aF as Rae,aG as Lae,aH as wG,aI as xs,D as ps,v as ke,N as of,aJ as Mae,aK as EG,C as Nt,a5 as SG,b as ar,L as on,d as Fe,a3 as Kx,i as tt,P as hs,j as ua,aL as jae,M as Do,aM as $ae,B as Lf,R as Pr,U as Os,h as Ce,aN as X5,aO as $p,A as Ke,F as xn,n as mt,J as n0,aP as Uae,aQ as sS,w as De,e as ze,r as Wn,q as pr,X as Pa,t as rr,g as We,T as Hae,aR as lo,aS as Up,aT as zae,W as Ar,Y as ta,z as nn,E as zo,aU as Gg,Z as bs,aV as Vae,aW as CG,aX as Wae,aY as _G,a4 as Kd,aZ as AG,a_ as kG,a$ as Gae,b0 as Kae,b1 as qae,b2 as TG,b3 as Mf,b4 as qx,b5 as DG,b6 as Xae,b7 as Co,s as im,b8 as Yae,b9 as x8,O as OG,ba as wo,bb as mh,bc as uS,bd as Jae,V as Fa,be as Zae,x as xl,y as go,bf as Qae,a2 as b8,bg as eie,Q as FG,bh as tie,bi as rie,bj as TB,a0 as BG,a1 as DB,bk as nie,bl as aie,bm as iie,bn as PG,_ as NG,a6 as oie,a7 as sie}from"./index-ed90acfe.js";const zs=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},uie=()=>bn&&/firefox/i.test(window.navigator.userAgent);var lie=/\s/;function cie(e){for(var t=e.length;t--&&lie.test(e.charAt(t)););return t}var fie=/^\s+/;function die(e){return e&&e.slice(0,cie(e)+1).replace(fie,"")}var OB=0/0,pie=/^[-+]0x[0-9a-f]+$/i,hie=/^0b[01]+$/i,vie=/^0o[0-7]+$/i,gie=parseInt;function FB(e){if(typeof e=="number")return e;if(_ae(e))return OB;if(Wd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=die(e);var r=hie.test(e);return r||vie.test(e)?gie(e.slice(2),r?2:8):pie.test(e)?OB:+e}function mie(e){return e}var yie=BE(uc,"WeakMap");const w8=yie;var BB=Object.create,xie=function(){function e(){}return function(t){if(!Wd(t))return{};if(BB)return BB(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const bie=xie;function wie(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Eie(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Sie=800,Cie=16,_ie=Date.now;function Aie(e){var t=0,r=0;return function(){var n=_ie(),a=Cie-(n-r);if(r=n,a>0){if(++t>=Sie)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function kie(e){return function(){return e}}var Tie=kB?function(e,t){return kB(e,"toString",{configurable:!0,enumerable:!1,value:kie(t),writable:!0})}:mie;const Die=Tie;var Oie=Aie(Die);const Fie=Oie;function Bie(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function IE(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),a?Aae(r,s,u):gG(r,s,u)}return r}var PB=Math.max;function Pie(e,t,r){return t=PB(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=PB(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),wie(e,this,s)}}var Nie=9007199254740991;function Y5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nie}function IG(e){return e!=null&&Y5(e.length)&&!kae(e)}var Iie=Object.prototype;function J5(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Iie;return e===r}function Rie(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Lie="[object Arguments]";function NB(e){return Rf(e)&&PE(e)==Lie}var RG=Object.prototype,Mie=RG.hasOwnProperty,jie=RG.propertyIsEnumerable,$ie=NB(function(){return arguments}())?NB:function(e){return Rf(e)&&Mie.call(e,"callee")&&!jie.call(e,"callee")};const Z5=$ie;function Uie(){return!1}var LG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,IB=LG&&typeof module=="object"&&module&&!module.nodeType
(?:
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+a+"$"),u=function(b){return b&&b.exact?i:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+a+t(b)+")","g")};u.v4=function(x){return x&&x.exact?o:new RegExp(""+t(x)+r+t(x),"g")},u.v6=function(x){return x&&x.exact?s:new RegExp(""+t(x)+a+t(x),"g")};var l="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,d=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+l+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+p+v+h+")"+g+m;return by=new RegExp("(?:^"+y+"$)","i"),by},SP={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Hv={integer:function(t){return Hv.number(t)&&parseInt(t,10)===t},float:function(t){return Hv.number(t)&&!Hv.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(r){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Hv.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(SP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(U0e())},hex:function(t){return typeof t=="string"&&!!t.match(SP.hex)}},H0e=function(t,r,n,a,i){if(t.required&&r===void 0){EK(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Hv[s](r)||a.push(wi(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(wi(i.messages.types[s],t.fullField,t.type))},z0e=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,f=null,d=typeof r=="number",p=typeof r=="string",v=Array.isArray(r);if(d?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),p&&(c=r.replace(l,"_").length),o?c!==t.len&&a.push(wi(i.messages[f].len,t.fullField,t.len)):s&&!u&&c<t.min?a.push(wi(i.messages[f].min,t.fullField,t.min)):u&&!s&&c>t.max?a.push(wi(i.messages[f].max,t.fullField,t.max)):s&&u&&(c<t.min||c>t.max)&&a.push(wi(i.messages[f].range,t.fullField,t.min,t.max))},k0="enum",V0e=function(t,r,n,a,i){t[k0]=Array.isArray(t[k0])?t[k0]:[],t[k0].indexOf(r)===-1&&a.push(wi(i.messages[k0],t.fullField,t[k0].join(", ")))},W0e=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(wi(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(wi(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},$t={required:EK,whitespace:$0e,type:H0e,range:z0e,enum:V0e,pattern:W0e},G0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r,"string")&&!t.required)return n();$t.required(t,r,a,o,i,"string"),Mn(r,"string")||($t.type(t,r,a,o,i),$t.range(t,r,a,o,i),$t.pattern(t,r,a,o,i),t.whitespace===!0&&$t.whitespace(t,r,a,o,i))}n(o)},K0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&$t.type(t,r,a,o,i)}n(o)},q0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&($t.type(t,r,a,o,i),$t.range(t,r,a,o,i))}n(o)},X0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if
height:0 !important;
visibility:hidden !important;
${uie()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,hde=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function vde(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:hde.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:n,borderSize:a,boxSizing:r}}function _P(e,t=1,r){var n;mo||(mo=document.createElement("textarea"),document.body.appendChild(mo));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=vde(e);mo.setAttribute("style",`${s};${pde}`),mo.value=e.value||e.placeholder||"";let u=mo.scrollHeight;const l={};o==="border-box"?u=u+i:o==="content-box"&&(u=u-a),mo.value="";const c=mo.scrollHeight-a;if(Fn(t)){let f=c*t;o==="border-box"&&(f=f+a+i),u=Math.max(f,u),l.minHeight=`${f}px`}if(Fn(r)){let f=c*r;o==="border-box"&&(f=f+a+i),u=Math.min(f,u)}return l.height=`${u}px`,(n=mo.parentNode)==null||n.removeChild(mo),mo=void 0,l}const gde=ar({id:{type:String,default:void 0},size:Up,disabled:Boolean,modelValue:{type:xt([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:xt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:su},prefixIcon:{type:su},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:xt([Object,Array,String]),default:()=>zc({})}}),mde={[zr]:e=>In(e),input:e=>In(e),change:e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},yde=["role"],xde=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],bde=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],wde=Fe({name:"ElInput",inheritAttrs:!1}),Ede=Fe({...wde,props:gde,emits:mde,setup(e,{expose:t,emit:r}){const n=e,a=zae(),i=n0(),o=ce(()=>{const Se={};return n.containerRole==="combobox"&&(Se["aria-haspopup"]=a["aria-haspopup"],Se["aria-owns"]=a["aria-owns"],Se["aria-expanded"]=a["aria-expanded"]),Se}),s=ce(()=>[n.type==="textarea"?g.b():h.b(),h.m(p.value),h.is("disabled",v.value),h.is("exceed",M.value),{[h.b("group")]:i.prepend||i.append,[h.bm("group","append")]:i.append,[h.bm("group","prepend")]:i.prepend,[h.m("prefix")]:i.prefix||n.prefixIcon,[h.m("suffix")]:i.suffix||n.suffixIcon||n.clearable||n.showPassword,[h.bm("suffix","password-clear")]:V.value&&ie.value},a.class]),u=ce(()=>[h.e("wrapper"),h.is("focus",x.value)]),l=Zce({excludeKeys:ce(()=>Object.keys(o.value))}),{form:c,formItem:f}=a0(),{inputId:d}=jE(n,{formItemContext:f}),p=lu(),v=um(),h=ct("input"),g=ct("textarea"),m=ps(),y=ps(),x=ke(!1),b=ke(!1),E=ke(!1),S=ke(!1),w=ke(),C=ps(n.inputStyle),_=ce(()=>m.value||y.value),O=ce(()=>{var Se;return(Se=c==null?void 0:c.statusIcon)!=null?Se:!1}),P=ce(()=>(f==null?void 0:f.validateState)||""),F=ce(()=>P.value&&Gce[P.value]),q=ce(()=>S.value?Pce:dce),ee=ce(()=>[a.style,n.inputStyle]),J=ce(()=>[n.inputStyle,C.value,{resize:n.resize}]),Z=ce(()=>RE(n.modelValue)?"":String(n.modelValue)),V=ce(()=>n.clearable&&!v.value&&!n.readonly&&!!Z.value&&(x.value||b.value)),ie=ce(()=>n.showPassword&
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Q1e[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ZP=Symbol("internals");function bh(e){return e&&String(e).trim().toLowerCase()}function ux(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(ux):String(e)}function tme(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const rme=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bS(e,t,r,n,a){if(Ee.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))return t.indexOf(n)!==-1;if(Ee.isRegExp(n))return n.test(t)}}function nme(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ame(e,t){const r=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class GE{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,u,l){const c=bh(u);if(!c)throw new Error("header name must be a non-empty string");const f=Ee.findKey(a,c);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||u]=ux(s))}const o=(s,u)=>Ee.forEach(s,(l,c)=>i(l,c,u));return Ee.isPlainObject(t)||t instanceof this.constructor?o(t,r):Ee.isString(t)&&(t=t.trim())&&!rme(t)?o(eme(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=bh(t),t){const n=Ee.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return tme(a);if(Ee.isFunction(r))return r.call(this,a,n);if(Ee.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=bh(t),t){const n=Ee.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bS(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=bh(o),o){const s=Ee.findKey(n,o);s&&(!r||bS(n,n[s],s,r))&&(delete n[s],a=!0)}}return Ee.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||bS(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ee.forEach(this,(a,i)=>{const o=Ee.findKey(n,i);if(o){r[o]=ux(a),delete r[i];return}const s=t?nme(i):String(i).trim();s!==i&&delete r[i],r[s]=ux(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ee.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[ZP]=this[ZP]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=bh(o);n[s]||(ame(a,o),n[s]=!0)}return Ee.isArray(t)?t.forEach(i):i(t),this}}GE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.freezeMethods(GE.prototype);Ee.freezeMethods(GE);const eu=GE;function wS(e,t){const r=this||TD,n=t||r,a=eu.from(n.headers);let i=n.data;return Ee.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Tq(e){return!!(e&&e.__CANCEL__)}function dm(e,t,r){Qt.call(this,e==null?"canceled":e,Qt.ERR_CANCELED,t,r),this.name="CanceledError"}Ee.inherits(dm,Qt,{__CANCEL__:!0});function ime(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Qt("Request failed with status code "+r.status,[Qt.ERR_BAD_REQUEST,Qt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ome=us.isStandardBrowserEnv?function(){return{write:function(r,n,a,i,o,s){const u=[];u.push(r+"="+encodeURIComponent(n)),Ee.isNumber(a)&&u.push("expires="+new Date(a).toGMTString()),Ee.isString(i)&&u.push("path="+i),Ee.isString(o)&&u.push("domain="+o),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sme(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ume(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Dq(e,t){return e&&!sme(t)?ume(e,t):t}const lme=us.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const s=Ee.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function cme(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fme(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),c=n[i];o||(o=l),r[a]=u,n[a]=l;let f=i,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(d*1e3/p):void 0}}function QP(e,t){let r=0;const n=fme(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-r,u=n(s),l=i<=o;r=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:u||void 0,estimated:u&&o&&l?(o-i)/u:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const dme=typeof XMLHttpRequest<"u",pme=dme&&function(e){return new Promise(function(r,n){let a=e.data;const i=eu.from(e.headers).normalize(),o=e.responseType;let s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}Ee.isFormData(a)&&(us.isStandardBrowserEnv||us.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+v))}const c=Dq(e.baseURL,e.url);l.open(e.method.toUpperCase(),_q(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const p=eu.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),h={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,h
`)>=0)return!1;return!0}function Sye(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ns.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ns.call(Array(t+1),r)}}function Y8(e,t){if(e.length===0)return"";var r=`
`+t.prev+t.base;return r+ns.call(e,","+r)+`
`+t.prev}function Ty(e,t){var r=X8(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=tl(e,a)?t(e[a],e):""}var i=typeof TS=="function"?TS(e):[],o;if(ap){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var u in e)tl(e,u)&&(r&&String(Number(u))===u&&u<e.length||ap&&o["$"+u]instanceof Symbol||(Rq.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof TS=="function")for(var l=0;l<i.length;l++)Lq.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}var RD=BD,Wp=Gme,Cye=iye,_ye=RD("%TypeError%"),Dy=RD("%WeakMap%",!0),Oy=RD("%Map%",!0),Aye=Wp("WeakMap.prototype.get",!0),kye=Wp("WeakMap.prototype.set",!0),Tye=Wp("WeakMap.prototype.has",!0),Dye=Wp("Map.prototype.get",!0),Oye=Wp("Map.prototype.set",!0),Fye=Wp("Map.prototype.has",!0),LD=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Bye=function(e,t){var r=LD(e,t);return r&&r.value},Pye=function(e,t,r){var n=LD(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Nye=function(e,t){return!!LD(e,t)},Iye=function(){var t,r,n,a={assert:function(i){if(!a.has(i))throw new _ye("Side channel does not contain "+Cye(i))},get:function(i){if(Dy&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Aye(t,i)}else if(Oy){if(r)return Dye(r,i)}else if(n)return Bye(n,i)},has:function(i){if(Dy&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Tye(t,i)}else if(Oy){if(r)return Fye(r,i)}else if(n)return Nye(n,i);return!1},set:function(i,o){Dy&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Dy),kye(t,i,o)):Oy?(r||(r=new Oy),Oye(r,i,o)):(n||(n={key:{},next:null}),Pye(n,i,o))}};return a},Rye=String.prototype.replace,Lye=/%20/g,OS={RFC1738:"RFC1738",RFC3986:"RFC3986"},MD={default:OS.RFC3986,formatters:{RFC1738:function(e){return Rye.call(e,Lye,"+")},RFC3986:function(e){return String(e)}},RFC1738:OS.RFC1738,RFC3986:OS.RFC3986},Mye=MD,FS=Object.prototype.hasOwnProperty,Vc=Array.isArray,Xo=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jye=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Vc(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&a.push(n[i]);r.obj[r.prop]=a}}},Hq=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(n[a]=t[a]);return n},$ye=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Vc(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!FS.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var a=t;return Vc(t)&&!Vc(r)&&(a=Hq(t,n)),Vc(t)&&Vc(r)?(r.forEach(function(i,o){if(FS.call(t,o)){var s=t[o];s&&typeof s=="object"&&i&&typeof i=="object"?t[o]=e(s,i,n):t.push(i)}else t[o]=i}),t):Object.keys(r).reduce(function(i,o){var s=r[o];return FS.call(i,o)?i[o]=e(i[o],s,n):i[o]=s,i},a)},Uye=function(t,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},t)},Hye=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(a){return n}},zye=function(t,r,n,a,i){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var s="",u=0;u<o.length;++u){var l=o.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Mye.RFC1738&&(l===40||l===41)){s+=o.charAt(u);continue}if(l<128){s=s+Xo[l];continue}if(l<2048){s=s+(Xo[192|l>>6]+Xo[128|l&63]);continue}if(l<55296||l>=57344){s=s+(Xo[224|l>>12]+Xo[128|l>>6&63]+Xo[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|o.charCodeAt(u)&1023),s+=Xo[240|l>>18]+Xo[128|l>>12&63]+Xo[128|l>>6&63]+Xo[128|l&63]}return s},Vye=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a<r.length;++a)for(var i=r[a],o=i.obj[i.prop],s=Object.keys(o),u=0;u<s.length;++u){var l=s[u],c=o[l];typeof c=="object"&&c!=
`)+`\r
`}function ci(B){var G=B.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ue){var oe=ue.charCodeAt(0).toString(16).toUpperCase();return"="+(oe.length==1?"0"+oe:oe)});G=G.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),G.charAt(0)==`
`&&(G="=0D"+G.slice(1)),G=G.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var R=[],j=G.split(`\r
`),K=0;K<j.length;++K){var k=j[K];if(k.length==0){R.push("");continue}for(var H=0;H<k.length;){var ae=76,re=k.slice(H,H+ae);re.charAt(ae-1)=="="?ae--:re.charAt(ae-2)=="="?ae-=2:re.charAt(ae-3)=="="&&(ae-=3),re=k.slice(H,H+ae),H+=ae,H<k.length&&(re+="="),R.push(re)}}return R.join(`\r
`)}function _0(B){for(var G=[],R=0;R<B.length;++R){for(var j=B[R];R<=B.length&&j.charAt(j.length-1)=="=";)j=j.slice(0,j.length-1)+B[++R];G.push(j)}for(var K=0;K<G.length;++K)G[K]=G[K].replace(/[=][0-9A-Fa-f]{2}/g,function(k){return String.fromCharCode(parseInt(k.slice(1),16))});return _o(G.join(`\r
`))}function Ta(B,G,R){for(var j="",K="",k="",H,ae=0;ae<10;++ae){var re=G[ae];if(!re||re.match(/^\s*$/))break;var ue=re.match(/^(.*?):\s*([^\s].*)$/);if(ue)switch(ue[1].toLowerCase()){case"content-location":j=ue[2].trim();break;case"content-type":k=ue[2].trim();break;case"content-transfer-encoding":K=ue[2].trim();break}}switch(++ae,K.toLowerCase()){case"base64":H=_o(Ai(G.slice(ae).join("")));break;case"quoted-printable":H=_0(G.slice(ae));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+K)}var oe=wu(B,j.slice(R.length),H,{unsafe:!0});k&&(oe.ctype=k)}function bc(B,G){if(W(B.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var R=G&&G.root||"",j=(Kt&&Buffer.isBuffer(B)?B.toString("binary"):W(B)).split(`\r
`),K=0,k="";for(K=0;K<j.length;++K)if(k=j[K],!!/^Content-Location:/i.test(k)&&(k=k.slice(k.indexOf("file")),R||(R=k.slice(0,k.lastIndexOf("/")+1)),k.slice(0,R.length)!=R))for(;R.length>0&&(R=R.slice(0,R.length-1),R=R.slice(0,R.lastIndexOf("/")+1),k.slice(0,R.length)!=R););var H=(j[1]||"").match(/boundary="(.*?)"/);if(!H)throw new Error("MAD cannot find boundary");var ae="--"+(H[1]||""),re=[],ue=[],oe={FileIndex:re,FullPaths:ue};w(oe);var U,ne=0;for(K=0;K<j.length;++K){var ye=j[K];ye!==ae&&ye!==ae+"--"||(ne++&&Ta(oe,j.slice(U,K),R),U=K)}return oe}function po(B,G){var R=G||{},j=R.boundary||"SheetJS";j="------="+j;for(var K=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+j.slice(2)+'"',"","",""],k=B.FullPaths[0],H=k,ae=B.FileIndex[0],re=1;re<B.FullPaths.length;++re)if(H=B.FullPaths[re].slice(k.length),ae=B.FileIndex[re],!(!ae.size||!ae.content||H=="Sh33tJ5")){H=H.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ue){return"_x"+Ue.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ue){return"_u"+Ue.charCodeAt(0).toString(16)+"_"});for(var ue=ae.content,oe=Kt&&Buffer.isBuffer(ue)?ue.toString("binary"):W(ue),U=0,ne=Math.min(1024,oe.length),ye=0,me=0;me<=ne;++me)(ye=oe.charCodeAt(me))>=32&&ye<128&&++U;var Ae=U>=ne*4/5;K.push(j),K.push("Content-Location: "+(R.root||"file:///C:/SheetJS/")+H),K.push("Content-Transfer-Encoding: "+(Ae?"quoted-printable":"base64")),K.push("Content-Type: "+Zt(ae,H)),K.push(""),K.push(Ae?ci(oe):tr(oe))}return K.push(j+`--\r
`),K.join(`\r
`)}function bu(B){var G={};return w(G,B),G}function wu(B,G,R,j){var K=j&&j.unsafe;K||w(B);var k=!K&&Yt.find(B,G);if(!k){var H=B.FullPaths[0];G.slice(0,H.length)==H?H=G:(H.slice(-1)!="/"&&(H+="/"),H=(H+G).replace("//","/")),k={name:a(G),type:2},B.FileIndex.push(k),B.FullPaths.push(H),K||Yt.utils.cfb_gc(B)}return k.content=R,k.size=R?R.length:0,j&&(j.CLSID&&(k.clsid=j.CLSID),j.mt&&(k.mt=j.mt),j.ct&&(k.ct=j.ct)),k}function ho(B,G){w(B);var R=Yt.find(B,G);if(R){for(var j=0;j<B.FileIndex.length;++j)if(B.FileIndex[j]==R)return B.FileIndex.splice(j,1),B.FullPaths.splice(j,1),!0}return!1}function Ii(B,G,R){w(B);var j=Yt.find(B,G);if(j){for(var K=0;K<B.FileIndex.length;++K)if(B.FileIndex[K]==j)return B.FileIndex[K].name=a(R),B.FullPaths[K]=R,!0}return!1}function wc(B){_(B,!0)}return t.find=P,t.read=S,t.parse=c,t.write=de,t.writeFile=ie,t.utils={cfb_new:bu,cfb_add:wu,cfb_del:ho,cfb_mov:Ii,cfb_gc:wc,ReadShift:cg,CheckField:FX,prep_blob:ea,bconcat:al,use_zlib:A,_deflateRaw:Ze,_inflateRaw:_e,consts:V},t}();function ixe(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function Es(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function VD(e){for(var t=[],r=Es(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}var db=new Date(1899,11,30,0,0,0);function $a(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=db.getTime()+(e.getTimezoneOffset()-db.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var lX=new Date,oxe=db.getTime()+(lX.getTimezoneOffset()-db.getTimezoneOffset())*6e4,PN=lX.getTimezoneOffset();function qE(e){var t=new Date;return t.setTime(e*24*60*60*1e3+oxe),t.getTimezoneOffset()!==PN&&t.setTime(t.getTime()+(t.getTimezoneOffset()-PN)*6e4),t}function sxe(e){var t=0,r=0,n=!1,a=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=a.length;++i)if(a[i]){switch(r=1,i>3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(a[i],10)}return t}var NN=new Date("2017-02-19T19:06:09.000Z"),cX=isNaN(NN.getFullYear())?new Date("2/19/17"):NN,uxe=cX.getFullYear()==2017;function Kn(e,t){var r=new Date(e);if(uxe)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(cX.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function $f(e,t){if(Kt&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Gv(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Gv(Yq(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Gv(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Gv(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","":"‹",Œ:"Œ",Ž:"Ž","":"‘","":"’","“":"“","”":"”","•":"•","":"–","—":"—","˜":"˜","™":"™",š:"š","":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch(i){}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.joi
`,pxe=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,RN=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,hxe=/<[^>]*>/g,Aa=vX.match(RN)?RN:hxe,vxe=/<\w*:/,gxe=/<(\/?)\w+:/;function lt(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var o=e.match(pxe),s=0,u="",l=0,c="",f="",d=1;if(o)for(l=0;l!=o.length;++l){for(f=o[l],i=0;i!=f.length&&f.charCodeAt(i)!==61;++i);for(c=f.slice(0,i).trim();f.charCodeAt(i+1)==32;)++i;for(d=(a=f.charCodeAt(i+1))==34||a==39?1:0,u=f.slice(i+1+d,f.length-d),s=0;s!=c.length&&c.charCodeAt(s)!==58;++s);if(s===c.length)c.indexOf("_")>0&&(c=c.slice(0,c.indexOf("_"))),n[c]=u,r||(n[c.toLowerCase()]=u);else{var p=(s===5&&c.slice(0,5)==="xmlns"?"xmlns":"")+c.slice(s+1);if(n[p]&&c.slice(s-3,s)=="ext")continue;n[p]=u,r||(n[p.toLowerCase()]=u)}}return n}function Bs(e){return e.replace(gxe,"<$1")}var gX={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},mxe=VD(gX),er=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("<![CDATA[");if(i==-1)return a.replace(e,function(s,u){return gX[s]||String.fromCharCode(parseInt(u,s.indexOf("x")>-1?16:10))||s}).replace(t,function(s,u){return String.fromCharCode(parseInt(u,16))});var o=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,o)+r(a.slice(o+3))}}(),yxe=/[&<>'"]/g,xxe=/[\u0000-\u001f]/g;function GD(e){var t=e+"";return t.replace(yxe,function(r){return mxe[r]}).replace(/\n/g,"<br/>").replace(xxe,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var LN=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function Rr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function IS(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,t+=String.fromCharCode(o);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function MN(e){var t=ql(2*e.length),r,n,a=1,i=0,o=0,s;for(n=0;n<e.length;n+=a)a=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),a=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[i++]=o&255,t[i++]=o>>>8,o=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function jN(e){return s0(e,"binary").toString("utf8")}var By="foo bar baz☃🍣",_r=Kt&&(jN(By)==IS(By)&&jN||MN(By)==IS(By)&&MN)||IS,Gv=Kt?function(e){return s0(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},e1=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),mX=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for
`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),bxe=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),wxe=/<\/?(?:vt:)?variant>/g,Exe=/<(?:vt:)([^>]*)>([\s\S]*)</;function $N(e,t){var r=lt(e),n=e.match(bxe(r.baseType))||[],a=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return a}return n.forEach(function(i){var o=i.replace(wxe,"").match(Exe);o&&a.push({v:_r(o[2]),t:o[1]})}),a}var Sxe=/(^\s|\s$|\n)/;function Cxe(e){return Es(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function _xe(e,t,r){return"<"+e+(r!=null?Cxe(r):"")+(t!=null?(t.match(Sxe)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function KD(e){if(Kt&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return _r(u0(UD(e)));throw new Error("Bad input format: expected Buffer or string")}var t1=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Axe={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},kxe=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function Txe(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Dxe(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,o=n?-t:t;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var s=0;s<=5;++s,i/=256)e[r+s]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var UN=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},HN=Kt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:s0(t)})):UN(e)}:UN,zN=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Ys(e,a)));return n.join("").replace(ja,"")},qD=Kt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(ja,""):zN(e,t,r)}:zN,VN=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},yX=Kt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):VN(e,t,r)}:VN,WN=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(dd(e,a)));return n.join("")},hm=Kt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):WN(t,r,n)}:WN,xX=function(e,t){var r=gi(e,t);return r>0?hm(e,t+4,t+4+r-1):""},bX=xX,wX=function(e,t){var r=gi(e,t);return r>0?hm(e,t+4,t+4+r-1):""},EX=wX,SX=function(e,t){var r=2*gi(e,t);return r>0?hm(e,t+4,t+4+r-1):""},CX=SX,_X=function(t,r){var n=gi(t,r);return n>0?qD(t,r+4,r+4+n):""},AX=_X,kX=function(e,t){var r=gi(e,t);return r>0?hm(e,t+4,t+4+r):""},TX=kX,DX=function(e,t){return Txe
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),d["!cols"]&&l(v,d["!cols"]),d["!rows"]&&c(v,d["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var b=g.s.r;b<=g.e.r;++b)for(var E=g.s.c;E<=g.e.c;++E){var S=yt({r:b,c:E});m=y?(d[b]||[])[E]:d[S],!(!m||m.v==null&&(!m.f||m.F))&&h.push(u(m,d,b,E))}return v.join(x)+x+h.join(x)+x+"E"+x}return{to_workbook:s,to_sheet:o,from_sheet:f}}(),zwe=function(){function e(i,o){switch(o.type){case"base64":return t(Ai(i),o);case"binary":return t(i,o);case"buffer":return t(Kt&&Buffer.isBuffer(i)?i.toString("binary"):u0(i),o);case"array":return t($f(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){for(var s=i.split(`
`),u=-1,l=-1,c=0,f=[];c!==s.length;++c){if(s[c].trim()==="BOT"){f[++u]=[],l=0;continue}if(!(u<0)){var d=s[c].trim().split(","),p=d[0],v=d[1];++c;for(var h=s[c]||"";(h.match(/["]/g)||[]).length&1&&c<s.length-1;)h+=`
`+s[++c];switch(h=h.trim(),+p){case-1:if(h==="BOT"){f[++u]=[],l=0;continue}else if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?f[u][l]=!0:h==="FALSE"?f[u][l]=!1:isNaN(Ro(v))?isNaN(op(v).getDate())?f[u][l]=v:f[u][l]=Kn(v):f[u][l]=Ro(v),++l;break;case 1:h=h.slice(1,h.length-1),h=h.replace(/""/g,'"'),h&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),f[u][l++]=h!==""?h:null;break}if(h==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(i,o){return qp(e(i,o),o)}function n(i,o){return fc(r(i,o),o)}var a=function(){var i=function(u,l,c,f,d){u.push(l),u.push(c+","+f),u.push('"'+d.replace(/"/g,'""')+'"')},o=function(u,l,c,f){u.push(l+","+c),u.push(l==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(u){var l=[],c=Zr(u["!ref"]),f,d=Array.isArray(u);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var p=c.s.r;p<=c.e.r;++p){o(l,-1,0,"BOT");for(var v=c.s.c;v<=c.e.c;++v){var h=yt({r:p,c:v});if(f=d?(u[p]||[])[v]:u[h],!f){o(l,1,0,"");continue}switch(f.t){case"n":var g=f.w;!g&&f.v!=null&&(g=f.v),g==null?f.f&&!f.F?o(l,1,0,"="+f.f):o(l,1,0,""):o(l,0,g,"V");break;case"b":o(l,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(l,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=no(f.z||Ct[14],$a(Kn(f.v)))),o(l,0,f.w,"V");break;default:o(l,1,0,"")}}}o(l,-1,0,"EOD");var m=`\r
`,y=l.join(m);return y}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Vwe=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var p=f.split(`
`),v=-1,h=-1,g=0,m=[];g!==p.length;++g){var y=p[g].trim().split(":");if(y[0]==="cell"){var x=La(y[1]);if(m.length<=x.r)for(v=m.length;v<=x.r;++v)m[v]||(m[v]=[]);switch(v=x.r,h=x.c,y[2]){case"t":m[v][h]=e(y[3]);break;case"v":m[v][h]=+y[3];break;case"vtf":var b=y[y.length-1];case"vtc":switch(y[3]){case"nl":m[v][h]=!!+y[4];break;default:m[v][h]=+y[4];break}y[2]=="vtf"&&(m[v][h]=[m[v][h],b])}}}return d&&d.sheetRows&&(m=m.slice(0,d.sheetRows)),m}function n(f,d){return qp(r(f,d),d)}function a(f,d){return fc(n(f,d),d)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),u="--SocialCalcSpreadsheetControlSave--";function l(f){if(!f||!f["!ref"])return"";for(var d=[],p=[],v,h="",g=Kp(f["!ref"]),m=Array.isArray(f),y=g.s.r;y<=g.e.r;++y)for(var x=g.s.c;x<=g.e.c;++x)if(h=yt({r:y,c:x}),v=m?(f[y]||[])[x]:f[h],!(!v||v.v==null||v.t==="z")){switch(p=["cell",h,"t"],v.t){case"s":case"str":p.push(t(v.v));break;case"n":v.f?(p[2]="vtf",p[3]="n",p[4]=v.v,p[5]=t(v.f)):(p[2]="v",p[3]=v.v);break;case"b":p[2]="vt"+(v.f?"f":"c"),p[3]="nl",p[4]=v.v?"1":"0",p[5]=t(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var b=$a(Kn(v.v));p[2]="vtc",p[3]="nd",p[4]=""+b,p[5]=v.w||no(v.z||Ct[14],b);break;case"e":continue}d.push(p.join(":"))}return d.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
`)}function c(f){return[i,o,s,o,l(f),u].join(`
`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),r1=function(){function e(c,f,d,p,v){v.raw?f[d][p]=c:c===""||(c==="TRUE"?f[d][p]=!0:c==="FALSE"?f[d][p]=!1:isNaN(Ro(c))?isNaN(op(c).getDate())?f[d][p]=c:f[d][p]=Kn(c):f[d][p]=Ro(c))}function t(c,f){var d=f||{},p=[];if(!c||c.length===0)return p;for(var v=c.split(/[\r\n]/),h=v.length-1;h>=0&&v[h].length===0;)--h;for(var g=10,m=0,y=0;y<=h;++y)m=v[y].indexOf(" "),m==-1?m=v[y].length:m++,g=Math.max(g,m);for(y=0;y<=h;++y){p[y]=[];var x=0;for(e(v[y].slice(0,g).trim(),p,y,x,d),x=1;x<=(v[y].length-g)/10+1;++x)e(v[y].slice(g+(x-1)*10,g+x*10).trim(),p,y,x,d)}return d.sheetRows&&(p=p.slice(0,d.sheetRows)),p}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var f={},d=!1,p=0,v=0;p<c.length;++p)(v=c.charCodeAt(p))==34?d=!d:!d&&v in r&&(f[v]=(f[v]||0)+1);v=[];for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&v.push([f[p],p]);if(!v.length){f=n;for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&v.push([f[p],p])}return v.sort(function(h,g){return h[0]-g[0]||n[h[1]]-n[g[1]]}),r[v.pop()[1]]||44}function i(c,f){var d=f||{},p="",v=d.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(p=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(p=c.charAt(4),c=c.slice(6)):p=a(c.slice(0,1024)):d&&d.FS?p=d.FS:p=a(c.slice(0,1024));var g=0,m=0,y=0,x=0,b=0,E=p.charCodeAt(0),S=!1,w=0,C=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var _=d.dateNF!=null?rxe(d.dateNF):null;function O(){var P=c.slice(x,b),F={};if(P.charAt(0)=='"'&&P.charAt(P.length-1)=='"'&&(P=P.slice(1,-1).replace(/""/g,'"')),P.length===0)F.t="z";else if(d.raw)F.t="s",F.v=P;else if(P.trim().length===0)F.t="s",F.v=P;else if(P.charCodeAt(0)==61)P.charCodeAt(1)==34&&P.charCodeAt(P.length-1)==34?(F.t="s",F.v=P.slice(2,-1).replace(/""/g,'"')):O4e(P)?(F.t="n",F.f=P.slice(1)):(F.t="s",F.v=P);else if(P=="TRUE")F.t="b",F.v=!0;else if(P=="FALSE")F.t="b",F.v=!1;else if(!isNaN(y=Ro(P)))F.t="n",d.cellText!==!1&&(F.w=P),F.v=y;else if(!isNaN(op(P).getDate())||_&&P.match(_)){F.z=d.dateNF||Ct[14];var q=0;_&&P.match(_)&&(P=nxe(P,d.dateNF,P.match(_)||[]),q=1),d.cellDates?(F.t="d",F.v=Kn(P,q)):(F.t="n",F.v=$a(Kn(P,q))),d.cellText!==!1&&(F.w=no(F.z,F.v instanceof Date?$a(F.v):F.v)),d.cellNF||delete F.z}else F.t="s",F.v=P;if(F.t=="z"||(d.dense?(v[g]||(v[g]=[]),v[g][m]=F):v[yt({c:m,r:g})]=F),x=b+1,C=c.charCodeAt(x),h.e.c<m&&(h.e.c=m),h.e.r<g&&(h.e.r=g),w==E)++m;else if(m=0,++g,d.sheetRows&&d.sheetRows<=g)return!0}e:for(;b<c.length;++b)switch(w=c.charCodeAt(b)){case 34:C===34&&(S=!S);break;case E:case 10:case 13:if(!S&&O())break e;break}return b-x>0&&O(),v["!ref"]=Jt(h),v}function o(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,f):qp(t(c,f),f)}function s(c,f){var d="",p=f.type=="string"?[0,0,0,0]:lO(c,f);switch(f.type){case"base64":d=Ai(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof nl<"u"?d=nl.utils.decode(f.codepage,c):d=Kt&&Buffer.isBuffer(c)?c.toString("binary"):u0(c);break;case"array":d=$f(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return p[0]==239&&p[1]==187&&p[2]==191?d=_r(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=_r(d):f.type=="binary"&&typeof nl<"u"&&f.codepage&&(d=nl.utils.decode(f.codepage,nl.utils.encode(28591,d))),d.slice(0,19)=="socialcalc:version:"?Vwe.to_sheet(f.type=="string"?d:_r(d),f):o(d,f)}function u(c,f){return fc(s(c,f),f)}function l(c){for(var f=[],d=Zr(c["!ref"]),p,v=Array.isArray(c),h=d.s.r;h<=d.e.r;++h){for(var g=[],m=d.s.c;m<=d.e.c;++m){var y=yt({r:h,c:m});if(p=v?(c[h]||[])[m]:c[y],!p||p.v==null){g.push(" ");continue}for(var x=(p.w||(cu(p),p.w)||"").slice(0,10);x.length<10;)x+=" ";g.push(x+(m===0?" ":""))}f.push(g.join(""))}return f.join(`
`)}return{to_workbook:u,to_sheet:s,from_sheet:l}}();function Wwe(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=Hwe.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return r1.to_workbook(e,t)}}var vg=function(){function e(A,N,I){if(A){ea(A,A.l||0);for(var L=I.Enum||de;A.l<A.length;){var Y=A.read_shift(2),Q=L[Y]||L[65535],le=A.read_shift(2),ve=A.l+le,he=Q.f&&Q.f(A,le,I);if(A.l=ve,N(he,Q,Y))return}}}function t(A,N){switch(N.type){case"base64":return r(_o(Ai(A)),N);case"binary":return r(_o(A),N);case"buffer":case"array":return r(A,N)}throw"Unsupported type "+N.type}function r(A,N){if(!A)return A;var I=N||{},L=I.dense?[]:{},Y="Sheet1",Q="",le=0,ve={},he=[],fe=[],z={s:{r:0,c:0},e:{r:0,c:0}},je=I.sheetRows||0;if(A[2]==0&&(A[3]==8||A[3]==9)&&A.length>=16&&A[14]==5&&A[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(A[2]==2)I.Enum=de,e(A,function(we,Je,ut){switch(ut){case 0:I.vers=we,we>=4096&&(I.qpro=!0);break;case 6:z=we;break;case 204:we&&(Q=we);break;case 222:Q=we;break;case 15:case 51:I.qpro||(we[1].v=we[1].v.slice(1));case 13:case 14:case 16:ut==14&&(we[2]&112)==112&&(we[2]&15)>1&&(we[2]&15)<15&&(we[1].z=I.dateNF||Ct[14],I.cellDates&&(we[1].t="d",we[1].v=qE(we[1].v))),I.qpro&&we[3]>le&&(L["!ref"]=Jt(z),ve[Y]=L,he.push(Y),L=I.dense?[]:{},z={s:{r:0,c:0},e:{r:0,c:0}},le=we[3],Y=Q||"Sheet"+(le+1),Q="");var _t=I.dense?(L[we[0].r]||[])[we[0].c]:L[yt(we[0])];if(_t){_t.t=we[1].t,_t.v=we[1].v,we[1].z!=null&&(_t.z=we[1].z),we[1].f!=null&&(_t.f=we[1].f);break}I.dense?(L[we[0].r]||(L[we[0].r]=[]),L[we[0].r][we[0].c]=we[1]):L[yt(we[0])]=we[1];break}},I);else if(A[2]==26||A[2]==14)I.Enum=M,A[2]==14&&(I.qpro=!0,A.l=0),e(A,function(we,Je,ut){switch(ut){case 204:Y=we;break;case 22:we[1].v=we[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(we[3]>le&&(L["!ref"]=Jt(z),ve[Y]=L,he.push(Y),L=I.dense?[]:{},z={s:{r:0,c:0},e:{r:0,c:0}},le=we[3],Y="Sheet"+(le+1)),je>0&&we[0].r>=je)break;I.dense?(L[we[0].r]||(L[we[0].r]=[]),L[we[0].r][we[0].c]=we[1]):L[yt(we[0])]=we[1],z.e.c<we[0].c&&(z.e.c=we[0].c),z.e.r<we[0].r&&(z.e.r=we[0].r);break;case 27:we[14e3]&&(fe[we[14e3][0]]=we[14e3][1]);break;case 1537:fe[we[0]]=we[1],we[0]==le&&(Y=we[1]);break}},I);else throw new Error("Unrecognized LOTUS BOF "+A[2]);if(L["!ref"]=Jt(z),ve[Q||Y]=L,he.push(Q||Y),!fe.length)return{SheetNames:he,Sheets:ve};for(var Te={},Ne=[],He=0;He<fe.length;++He)ve[he[He]]?(Ne.push(fe[He]||he[He]),Te[fe[He]]=ve[fe[He]]||ve[he[He]]):(Ne.push(fe[He]),Te[fe[He]]={"!ref":"A1"});return{SheetNames:Ne,Sheets:Te}}function n(A,N){var I=N||{};if(+I.codepage>=0&&Fo(+I.codepage),I.type=="string")throw new Error("Cannot write WK1 to JS string");var L=e6(),Y=Zr(A["!ref"]),Q=Array.isArray(A),le=[];xo(L,0,i(1030)),xo(L,6,u(Y));for(var ve=Math.min(Y.e.r,8191),he=Y.s.r;he<=ve;++he)for(var fe=aa(he),z=Y.s.c;z<=Y.e.c;++z){he===Y.s.r&&(le[z]=Bn(z));var je=le[z]+fe,Te=Q?(A[he]||[])[z]:A[je];if(!(!Te||Te.t=="z"))if(Te.t=="n")(Te.v|0)==Te.v&&Te.v>=-32768&&Te.v<=32767?xo(L,13,p(he,z,Te.v)):xo(L,14,h(he,z,Te.v));else{var Ne=cu(Te);xo(L,15,f(he,z,Ne.slice(0,239)))}}return xo(L,1),L.end()}function a(A,N){var I=N||{};if(+I.codepage>=0&&Fo(+I.codepage),I.type=="string")throw new Error("Cannot write WK3 to JS string");var L=e6();xo(L,0,o(A));for(var Y=0,Q=0;Y<A.SheetNames.length;++Y)(A.Sheets[A.SheetNames[Y]]||{})["!ref"]&&xo(L,27,W(A.SheetNames[Y],Q++));var le=0;for(Y=0;Y<A.SheetNames.length;++Y){var ve=A.Sheets[A.SheetNames[Y]];if(!(!ve||!ve["!ref"])){for(var he=Zr(ve["!ref"]),fe=Array.isArray(ve),z=[],je=Math.min(he.e.r,8191),Te=he.s.r;Te<=je;++Te)for(var Ne=aa(Te),He=he.s.c;He<=he.e.c;++He){Te===he.s.r&&(z[He]=Bn(He));var we=z[He]+Ne,Je=fe?(ve[Te]||[])[He]:ve[we];if(!(!Je||Je.t=="z"))if(Je.t=="n")xo(L,23,O(Te,He,le,Je.v));else{var ut=cu(Je);xo(L,22,w(Te,He,le,ut.slice(0,239)))}}++le}}return xo(L,1),L.end()}function i(A){var N=kn(2);return N.write_shift(2,A),N}function o(A){var N=kn(26);N.write_shift(2,4096),N.write_shift(2,4),N.write_shift(4,0);for(var I=0,L=0,Y=0,Q=0;Q<A.SheetNames.length;++Q){var le=A.SheetNames[Q],ve=A.Sheet
`).replace(/\r/g,`
`),t.cellHTML&&(l.h=d.h),n.push(l)}}}}),n}function m4e(e,t){var r=[],n=!1,a={},i=0;return e.replace(Aa,function(s,u){var l=lt(s);switch(Bs(l[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":a={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":a.t!=null&&r.push(a);break;case"<text>":case"<text":i=u+s.length;break;case"</text>":a.t=e.slice(i,u).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return s}),r}function y4e(e,t){var r=[],n=!1;return e.replace(Aa,function(i){var o=lt(i);switch(Bs(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i}),r}function x4e(e){var t={};t.iauthor=e.read_shift(4);var r=c0(e);return t.rfx=r.s,t.ref=yt(r.s),e.l+=16,t}var b4e=ba;function w4e(e,t){var r=[],n=[],a={},i=!1;return vu(e,function(s,u,l){switch(l){case 632:n.push(s);break;case 635:a=s;break;case 637:a.t=s.t,a.h=s.h,a.r=s.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!u.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}),r}var E4e="application/vnd.ms-office.vbaProject";function S4e(e){var t=Yt.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Yt.utils.cfb_add(t,a,e.FileIndex[n].content)}}),Yt.write(t)}function C4e(){return{"!type":"dialog"}}function _4e(){return{"!type":"dialog"}}function A4e(){return{"!type":"macro"}}function k4e(){return{"!type":"macro"}}var Od=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,o){var s=!1,u=!1;i.length==0?u=!0:i.charAt(0)=="["&&(u=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=o.length>0?parseInt(o,10)|0:0;return s?c+=t.c:--c,u?l+=t.r:--l,a+(s?"":"$")+Bn(c)+(u?"":"$")+aa(l)}return function(a,i){return t=i,a.replace(e,r)}}(),iY=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,T4e=function(){return function(t,r){return t.replace(iY,function(n,a,i,o,s,u){var l=YD(o)-(i?0:r.c),c=XD(u)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=l==0?"":i?l+1:"["+l+"]";return a+"R"+f+"C"+d})}}();function oY(e,t){return e.replace(iY,function(r,n,a,i,o,s){return n+(a=="$"?a+i:Bn(YD(i)+t.c))+(o=="$"?o+s:aa(XD(s)+t.r))})}function D4e(e,t,r){var n=Kp(t),a=n.s,i=La(r),o={r:i.r-a.r,c:i.c-a.c};return oY(e,o)}function O4e(e){return e.length!=1}function lI(e){return e.replace(/_xlfn\./g,"")}function cn(e){e.l+=1}function Xl(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function sY(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return uY(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=Xl(e,2),s=Xl(e,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function uY(e){var t=Xl(e,2),r=Xl(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function F4e(e,t,r){if(r.biff<8)return uY(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=Xl(e,2),o=Xl(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function lY(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return B4e(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Xl(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function B4e(e){var t=Xl(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function P4e(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function N4e(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return I4e(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(
`),c.xlfn||(S.f=lI(S.f)),m[0].indexOf('t="array"')>-1)S.F=(E.match(a)||[])[1],S.F.indexOf(":")>-1&&Z.push([Zr(S.F),S.F]);else if(m[0].indexOf('t="shared"')>-1){P=lt(m[0]);var ve=er(_r(m[1]));c.xlfn||(ve=lI(ve)),V[parseInt(P.si,10)]=[P,ve,w.r]}}else(m=E.match(/<f[^>]*\/>/))&&(P=lt(m[0]),V[P.si]&&(S.f=D4e(V[P.si][1],V[P.si][2],w.r)));var he=La(w.r);for(x=0;x<Z.length;++x)he.r>=Z[x][0].s.r&&he.r<=Z[x][0].e.r&&he.c>=Z[x][0].s.c&&he.c<=Z[x][0].e.c&&(S.F=Z[x][1])}if(w.t==null&&S.v===void 0)if(S.f||S.F)S.v=0,S.t="n";else if(A)S.t="z";else continue;else S.t=w.t||"n";switch(f.s.c>_&&(f.s.c=_),f.e.c<_&&(f.e.c=_),S.t){case"n":if(S.v==""||S.v==null){if(!A)continue;S.t="z"}else S.v=parseFloat(S.v);break;case"s":if(typeof S.v>"u"){if(!A)continue;S.t="z"}else O=gg[parseInt(S.v,10)],S.v=O.t,S.r=O.r,c.cellHTML&&(S.h=O.h);break;case"str":S.t="s",S.v=S.v!=null?_r(S.v):"",c.cellHTML&&(S.h=GD(S.v));break;case"inlineStr":m=E.match(n),S.t="s",m!=null&&(O=rO(m[1]))?(S.v=O.t,c.cellHTML&&(S.h=O.h)):S.v="";break;case"b":S.v=Rr(S.v);break;case"d":c.cellDates?S.v=Kn(S.v,1):(S.v=$a(Kn(S.v,1)),S.t="n");break;case"e":(!c||c.cellText!==!1)&&(S.w=S.v),S.v=RX[S.v];break}if(F=q=0,J=null,ee&&w.s!==void 0&&(J=p.CellXf[w.s],J!=null&&(J.numFmtId!=null&&(F=J.numFmtId),c.cellStyles&&J.fillId!=null&&(q=J.fillId))),hY(S,F,q,c,d,p),c.cellDates&&ee&&S.t=="n"&&Gp(Ct[F])&&(S.t="d",S.v=qE(S.v)),w.cm&&c.xlmeta){var fe=(c.xlmeta.Cell||[])[+w.cm-1];fe&&fe.type=="XLDAPR"&&(S.D=!0)}if(ie){var z=La(w.r);l[z.r]||(l[z.r]=[]),l[z.r][z.c]=S}else l[w.r]=S}}}}W.length>0&&(l["!rows"]=W)}}();function x3e(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}var b3e=c0;function w3e(){}function E3e(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Vxe(e),r}function S3e(e){var t=co(e);return[t]}function C3e(e){var t=l0(e);return[t]}function _3e(e){var t=co(e),r=e.read_shift(1);return[t,r,"b"]}function A3e(e){var t=l0(e),r=e.read_shift(1);return[t,r,"b"]}function k3e(e){var t=co(e),r=e.read_shift(1);return[t,r,"e"]}function T3e(e){var t=l0(e),r=e.read_shift(1);return[t,r,"e"]}function D3e(e){var t=co(e),r=e.read_shift(4);return[t,r,"s"]}function O3e(e){var t=l0(e),r=e.read_shift(4);return[t,r,"s"]}function F3e(e){var t=co(e),r=ya(e);return[t,r,"n"]}function gY(e){var t=l0(e),r=ya(e);return[t,r,"n"]}function B3e(e){var t=co(e),r=QD(e);return[t,r,"n"]}function P3e(e){var t=l0(e),r=QD(e);return[t,r,"n"]}function N3e(e){var t=co(e),r=JD(e);return[t,r,"is"]}function I3e(e){var t=co(e),r=ba(e);return[t,r,"str"]}function R3e(e){var t=l0(e),r=ba(e);return[t,r,"str"]}function L3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"b"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}function M3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"e"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}function j3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=ya(e),o=[a,i,"n"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}function $3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=ba(e),o=[a,i,"str"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}var U3e=c0;function H3e(e,t){var r=e.l+t,n=c0(e),a=ZD(e),i=ba(e),o=ba(e),s=ba(e);e.l=r;var u={rfx:n,relId:a,loc:i,display:s};return o&&(u.Tooltip=o),u}function z3e(){}function V3e(e,t,r){var n=e.l+t,a=PX(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=XSe(e,n-e.l,r);o[1]=s}else e.l=n;return o}function W3e(e,t,r){var n=e.l+t,a=c0(e),i=[a];if(r.cellFormula){var o=JSe(e,n-e.l,r);i[1]=o,e.l=n}else e.l=n;return i}var G3e=["left","right","top","bottom","header","footer"];function K3e(e){var t={};return G3e.forEach(function(r){t[r]=ya(e)}),t}function q3e(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function X3e(){}function Y3e(){}function J3e(e,t,r,n,a,i,o){if(!e)return
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function US(e,t){var r=t||{};sX();var n=zv(KD(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=_r(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var o=na(r);return o.type="string",r1.to_workbook(n,o)}if(a.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Je){a.indexOf("<"+Je)>=0&&(i=!0)}),i)return HCe(n,r);yg={"General Number":"General","General Date":Ct[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ct[15],"Short Date":Ct[14],"Long Time":Ct[19],"Medium Time":Ct[18],"Short Time":Ct[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ct[2],Standard:Ct[4],Percent:Ct[10],Scientific:Ct[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,u=[],l,c={},f=[],d=r.dense?[]:{},p="",v={},h={},g=yo('<Data ss:Type="String">'),m=0,y=0,x=0,b={s:{r:2e6,c:2e6},e:{r:0,c:0}},E={},S={},w="",C=0,_=[],O={},P={},F=0,q=[],ee=[],J={},Z=[],V,ie=!1,W=[],de=[],M={},A=0,N=0,I={Sheets:[],WBProps:{date1904:!1}},L={};t1.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var Y="";s=t1.exec(n);)switch(s[3]=(Y=s[3]).toLowerCase()){case"data":if(Y=="data"){if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&u.push([s[3],!0]);break}if(u[u.length-1][1])break;s[1]==="/"?BCe(n.slice(m,s.index),w,g,u[u.length-1][0]=="comment"?J:v,{c:y,r:x},E,Z[y],h,W,r):(w="",g=yo(s[0]),m=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(ee.length>0&&(v.c=ee),(!r.sheetRows||r.sheetRows>x)&&v.v!==void 0&&(r.dense?(d[x]||(d[x]=[]),d[x][y]=v):d[Bn(y)+aa(x)]=v),v.HRef&&(v.l={Target:er(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(A=y+(parseInt(v.MergeAcross,10)|0),N=x+(parseInt(v.MergeDown,10)|0),_.push({s:{c:y,r:x},e:{c:A,r:N}})),!r.sheetStubs)v.MergeAcross?y=A+1:++y;else if(v.MergeAcross||v.MergeDown){for(var Q=y;Q<=A;++Q)for(var le=x;le<=N;++le)(Q>y||le>x)&&(r.dense?(d[le]||(d[le]=[]),d[le][Q]={t:"z"}):d[Bn(Q)+aa(le)]={t:"z"});y=A+1}else++y;else v=kCe(s[0]),v.Index&&(y=+v.Index-1),y<b.s.c&&(b.s.c=y),y>b.e.c&&(b.e.c=y),s[0].slice(-2)==="/>"&&++y,ee=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(x<b.s.r&&(b.s.r=x),x>b.e.r&&(b.e.r=x),s[0].slice(-2)==="/>"&&(h=yo(s[0]),h.Index&&(x=+h.Index-1)),y=0,++x):(h=yo(s[0]),h.Index&&(x=+h.Index-1),M={},(h.AutoFitHeight=="0"||h.Height)&&(M.hpx=parseInt(h.Height,10),M.hpt=nY(M.hpx),de[x]=M),h.Hidden=="1"&&(M.hidden=!0,de[x]=M));break;case"worksheet":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"));f.push(p),b.s.r<=b.e.r&&b.s.c<=b.e.c&&(d["!ref"]=Jt(b),r.sheetRows&&r.sheetRows<=b.e.r&&(d["!fullref"]=d["!ref"],b.e.r=r.sheetRows-1,d["!ref"]=Jt(b))),_.length&&(d["!merges"]=_),Z.length>0&&(d["!cols"]=Z),de.length>0&&(d["!rows"]=de),c[p]=d}else b={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=y=0,u.push([s[3],!1]),l=yo(s[0]),p=er(l.Name),d=r.dense?[]:{},_=[],W=[],de=[],L={name:p,Hidden:0},I.Sheets.push(L);break;case"table":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else{if(s[0].slice(-2)=="/>")break;u.push([s[3],!1]),Z=[],ie=!1}break;case"style":s[1]==="/"?FCe(E,S,r):S=yo(s[0]);break;case"numberformat":S.nf=er(yo(s[0]).Format||"General"),yg[S.nf]&&(S.nf=yg[S.nf]);for(var ve=0;ve!=392&&Ct[ve]!=S.nf;++ve);if(ve==392){for(ve=57;ve!=392;++ve)if(Ct[ve]==null){cf(S.nf,ve);break}}break;case"column":if(u[u.length-1][0]!=="table")break;if(V=yo(s[0]),V.Hidden&&(V.hidden=!0,delete V.Hidden),V.Width&&(V.wpx=parseInt(V.Width,10)),!ie&&V.wpx>10){ie=!0,Na=tY;for(var he=0;he<Z.length;++he)Z[he]&&sp(Z[he])}ie&&sp(V),Z[V.Index-1||Z.length]=V;for(var fe=0;fe<+V.Span;++fe)Z[Z.length]=na(V);break;case"namedrange":if(s[1]==="/")break;I.Names||(I.Names=[]);var z=lt(s[0]),je={Name:z.Name,Ref:Od(z.RefersTo.slice(1),{r:0,c:0})};I.Sheets.length>0&&(je.Sheet=I.Sheets.length-1),I.Names.push(je);break;case"namedcell":
`),r=er(t.replace(/<[^>]*>/g,""));return[r]}var xI={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function CY(e,t){var r=t||{},n=KD(e),a=[],i,o,s={name:""},u="",l=0,c,f,d={},p=[],v=r.dense?[]:{},h,g,m={value:""},y="",x=0,b=[],E=-1,S=-1,w={s:{r:1e6,c:1e7},e:{r:0,c:0}},C=0,_={},O=[],P={},F=0,q=0,ee=[],J=1,Z=1,V=[],ie={Names:[]},W={},de=["",""],M=[],A={},N="",I=0,L=!1,Y=!1,Q=0;for(t1.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");h=t1.exec(n);)switch(h[3]=h[3].replace(/_.*$/,"")){case"table":case"工作表":h[1]==="/"?(w.e.c>=w.s.c&&w.e.r>=w.s.r?v["!ref"]=Jt(w):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=w.e.r&&(v["!fullref"]=v["!ref"],w.e.r=r.sheetRows-1,v["!ref"]=Jt(w)),O.length&&(v["!merges"]=O),ee.length&&(v["!rows"]=ee),c.name=c.名称||c.name,typeof JSON<"u"&&JSON.stringify(c),p.push(c.name),d[c.name]=v,Y=!1):h[0].charAt(h[0].length-2)!=="/"&&(c=lt(h[0],!1),E=S=-1,w.s.r=w.s.c=1e7,w.e.r=w.e.c=0,v=r.dense?[]:{},O=[],ee=[],Y=!0);break;case"table-row-group":h[1]==="/"?--C:++C;break;case"table-row":case"行":if(h[1]==="/"){E+=J,J=1;break}if(f=lt(h[0],!1),f.行号?E=f.行号-1:E==-1&&(E=0),J=+f["number-rows-repeated"]||1,J<10)for(Q=0;Q<J;++Q)C>0&&(ee[E+Q]={level:C});S=-1;break;case"covered-table-cell":h[1]!=="/"&&++S,r.sheetStubs&&(r.dense?(v[E]||(v[E]=[]),v[E][S]={t:"z"}):v[yt({r:E,c:S})]={t:"z"}),y="",b=[];break;case"table-cell":case"数据":if(h[0].charAt(h[0].length-2)==="/")++S,m=lt(h[0],!1),Z=parseInt(m["number-columns-repeated"]||"1",10),g={t:"z",v:null},m.formula&&r.cellFormula!=!1&&(g.f=pI(er(m.formula))),(m.数据类型||m["value-type"])=="string"&&(g.t="s",g.v=er(m["string-value"]||""),r.dense?(v[E]||(v[E]=[]),v[E][S]=g):v[yt({r:E,c:S})]=g),S+=Z-1;else if(h[1]!=="/"){++S,y="",x=0,b=[],Z=1;var le=J?E+J-1:E;if(S>w.e.c&&(w.e.c=S),S<w.s.c&&(w.s.c=S),E<w.s.r&&(w.s.r=E),le>w.e.r&&(w.e.r=le),m=lt(h[0],!1),M=[],A={},g={t:m.数据类型||m["value-type"],v:null},r.cellFormula)if(m.formula&&(m.formula=er(m.formula)),m["number-matrix-columns-spanned"]&&m["number-matrix-rows-spanned"]&&(F=parseInt(m["number-matrix-rows-spanned"],10)||0,q=parseInt(m["number-matrix-columns-spanned"],10)||0,P={s:{r:E,c:S},e:{r:E+F-1,c:S+q-1}},g.F=Jt(P),V.push([P,g.F])),m.formula)g.f=pI(m.formula);else for(Q=0;Q<V.length;++Q)E>=V[Q][0].s.r&&E<=V[Q][0].e.r&&S>=V[Q][0].s.c&&S<=V[Q][0].e.c&&(g.F=V[Q][1]);switch((m["number-columns-spanned"]||m["number-rows-spanned"])&&(F=parseInt(m["number-rows-spanned"],10)||0,q=parseInt(m["number-columns-spanned"],10)||0,P={s:{r:E,c:S},e:{r:E+F-1,c:S+q-1}},O.push(P)),m["number-columns-repeated"]&&(Z=parseInt(m["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Rr(m["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(m.value);break;case"percentage":g.t="n",g.v=parseFloat(m.value);break;case"currency":g.t="n",g.v=parseFloat(m.value);break;case"date":g.t="d",g.v=Kn(m["date-value"]),r.cellDates||(g.t="n",g.v=$a(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=sxe(m["time-value"])/86400,r.cellDates&&(g.t="d",g.v=qE(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(m.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",m["string-value"]!=null&&(y=er(m["string-value"]),b=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(L=!1,g.t==="s"&&(g.v=y||"",b.length&&(g.R=b),L=x==0),W.Target&&(g.l=W),M.length>0&&(g.c=M,M=[]),y&&r.cellText!==!1&&(g.w=y),L&&(g.t="z",delete g.v),(!L||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=E))for(var ve=0;ve<J;++ve){if(Z=parseInt(m["number-columns-repeated"]||"1",10),r.dense)for(v[E+ve]||(v[E+ve]=[]),v[E+ve][S]=ve==0?g:na(g);--Z>0;)v[E+ve][S+Z]=na(g);else for(v[yt({r:E+ve,c:S})]=g;--Z>0;)v[yt({r:E+ve,c:S+Z})]=na(g);w.e.c<=S&&(w.e.c=S)}Z=parseInt(m["number-columns-repeated"]||"1",10),S+=Z-1,Z=0,g={},y="",b=[]}W={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":ca
`:"")+fe[0]}else lt(h[0],!1),x=h.index+h[0].length;break;case"s":break;case"database-range":if(h[1]==="/")break;try{de=$S(lt(h[0])["target-range-address"]),d[de[0]]["!autofilter"]={ref:de[1]}}catch(je){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(h[1]!=="/"){if(W=lt(h[0],!1),!W.href)break;W.Target=er(W.href),delete W.href,W.Target.charAt(0)=="#"&&W.Target.indexOf(".")>-1?(de=$S(W.Target.slice(1)),W.Target="#"+de[0]+"!"+de[1]):W.Target.match(/^\.\.[\\\/]/)&&(W.Target=W.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(h[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(h)}}var z={Sheets:d,SheetNames:p,Workbook:ie};return r.bookSheets&&delete z.Sheets,z}function bI(e,t){t=t||{},Ui(e,"META-INF/manifest.xml")&&lbe(hn(e,"META-INF/manifest.xml"),t);var r=yi(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=CY(_r(r),t);return Ui(e,"meta.xml")&&(n.Props=LX(hn(e,"meta.xml"))),n}function wI(e,t){return CY(e,t)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function oO(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function s6(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):_r(u0(e))}function u6(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function EI(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function qCe(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function i1(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Rn(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128
`,u=s.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],p=n.skipHidden&&e["!rows"]||[],v=a.s.c;v<=a.e.c;++v)(d[v]||{}).hidden||(f[v]=Bn(v));for(var h=0,g=a.s.r;g<=a.e.r;++g)(p[g]||{}).hidden||(c=x_e(e,a,g,f,o,u,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((h++?s:"")+c)));return delete n.dense,r.join("")}function b_e(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=AY(e,t);return r}function w_e(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Zr(e["!ref"]),i="",o=[],s,u=[],l=Array.isArray(e);for(s=a.s.c;s<=a.e.c;++s)o[s]=Bn(s);for(var c=a.s.r;c<=a.e.r;++c)for(i=aa(c),s=a.s.c;s<=a.e.c;++s)if(t=o[s]+i,r=l?(e[c]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}u[u.length]=t+"="+n}return u}function kY(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var u=typeof n.origin=="string"?La(n.origin):n.origin;o=u.r,s=u.c}var l,c={s:{c:0,r:0},e:{c:s,r:o+t.length-1+a}};if(i["!ref"]){var f=Zr(i["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),o==-1&&(o=f.e.r+1,c.e.r=o+t.length-1+a)}else o==-1&&(o=0,c.e.r=t.length-1+a);var d=n.header||[],p=0;t.forEach(function(h,g){Es(h).forEach(function(m){(p=d.indexOf(m))==-1&&(d[p=d.length]=m);var y=h[m],x="z",b="",E=yt({c:s+p,r:o+g+a});l=o1(i,E),y&&typeof y=="object"&&!(y instanceof Date)?i[E]=y:(typeof y=="number"?x="n":typeof y=="boolean"?x="b":typeof y=="string"?x="s":y instanceof Date?(x="d",n.cellDates||(x="n",y=$a(y)),b=n.dateNF||Ct[14]):y===null&&n.nullError&&(x="e",y=0),l?(l.t=x,l.v=y,delete l.w,delete l.R,b&&(l.z=b)):i[E]=l={t:x,v:y},b&&(l.z=b))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var v=aa(o);if(a)for(p=0;p<d.length;++p)i[Bn(p+s)+v]={t:"s",v:d[p]};return i["!ref"]=Jt(c),i}function E_e(e,t){return kY(null,e,t)}function o1(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=La(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?o1(e,yt(t)):o1(e,yt({r:t,c:r||0}))}function S_e(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function cO(){return{SheetNames:[],Sheets:{}}}function fO(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=o+a)!=-1;++a);}if(sCe(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function C_e(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=S_e(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function __e(e,t){return e.z=t,e}function TY(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function A_e(e,t,r){return TY(e,"#"+t,r)}function k_e(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function T_e(e,t,r,n){for(var a=typeof t!="string"?t:Zr(t),i=typeof t=="string"?t:Jt(t),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var u=o1(e,o,s);u.t="n",u.F=i,delete u.v,o==a.s.r&&s==a.s.c&&(u.f=r,n&&(u.D=!0))}return e}var _I={encode_col:Bn,encode_row:aa,encode_cell:yt,encode_range:Jt,decode_col:YD,decode_row:XD,split_cell:$xe,decode_cell:La,decode_range:Kp,format_cell:cu,sheet_add_aoa:BX,sheet_add_json:kY,sheet_add_dom:EY,aoa_to_sheet:qp,json_to_sheet:E_e,table_to_sheet:SY,table_to_book:WCe,sheet_to_csv:AY,sheet_to_txt:b_e,sheet_to_json:c6,sheet_to_html:VCe,sheet_to_formulae:w_e,sheet_to_row_object_array:c6,sheet_get_cell:o1,book_new:cO,book_append_sheet:fO,book_set_sheet_visibility:C_e,cell_set_number_format:__e,cell_set_hyperlink:TY,cell_set_internal_link:A_e,cell_add_comment:k_e,sheet_set_array_formula:T_e,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}
`),t),`
`);return e},$Ae=function(e,t){xi(t)&&"cause"in t&&Ia(e,"cause",t.cause)},nu={},UAe=ka("iterator"),HAe=Array.prototype,$Y={};$Y[ka("toStringTag")]="z";var wO=String($Y)==="[object z]",zAe=ka("toStringTag"),VAe=bt.Object,WAe=df(function(){return arguments}())=="Arguments",Cm=wO?df:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=VAe(e),zAe))=="string"?r:WAe?df(t):(n=df(t))=="Object"&&qn(t.callee)?"Arguments":n},GAe=ka("iterator"),VI=function(e){if(e!=null)return wb(e,GAe)||wb(e,"@@iterator")||nu[Cm(e)]},KAe=bt.TypeError,WI=function(e,t,r){var n,a;ki(e);try{if(!(n=wb(e,"return"))){if(t==="throw")throw r;return r}n=Ja(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return ki(n),r},qAe=bt.TypeError,vx=function(e,t){this.stopped=e,this.result=t},GI=vx.prototype,XAe=function(e,t,r){var n,a,i,o,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=mO(t,c),h=function(m){return n&&WI(n,"normal",m),new vx(!0,m)},g=function(m){return f?(ki(m),p?v(m[0],m[1],h):v(m[0],m[1])):p?v(m,h):v(m)};if(d)n=e;else{if(!(a=VI(e)))throw qAe(p6(e)+" is not iterable");if(function(m){return m!==void 0&&(nu.Array===m||HAe[UAe]===m)}(a)){for(i=0,o=Em(e);o>i;i++)if((s=g(e[i]))&&s1(GI,s))return s;return new vx(!1)}n=function(m,y){var x=arguments.length<2?VI(m):y;if(gO(x))return ki(Ja(x,m));throw KAe(p6(m)+" is not iterable")}(e,a)}for(u=n.next;!(l=Ja(u,n)).done;){try{s=g(l.value)}catch(m){WI(n,"throw",m)}if(typeof s=="object"&&s&&s1(GI,s))return s}return new vx(!1)},YAe=bt.String,u1=function(e){if(Cm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return YAe(e)},JAe=function(e,t){return e===void 0?arguments.length<2?"":t:u1(e)},ZAe=!ii(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Lo(1,7)),e.stack!==7)}),QAe=ka("toStringTag"),Ab=bt.Error,e8e=[].push,l1=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,a=s1(KS,this);Cb?r=Cb(new Ab(void 0),a?Sb(this):KS):(r=a?this:fu(KS),Ia(r,QAe,"Error")),Ia(r,"message",JAe(t,"")),ZAe&&Ia(r,"stack",jAe(r.stack,1)),$Ae(r,n);var i=[];return XAe(e,e8e,{that:i}),Ia(r,"errors",i),r};Cb?Cb(l1,Ab):function(e,t){for(var r=DAe(t),n=dc.f,a=ZE.f,i=0;i<r.length;i++){var o=r[i];Ut(e,o)||n(e,o,a(t,o))}}(l1,Ab);var KS=l1.prototype=fu(Ab.prototype,{constructor:Lo(1,l1),message:Lo(1,""),name:Lo(1,"AggregateError")});Ws({global:!0},{AggregateError:l1});var t8e=kr(Function.toString);qn(El.inspectSource)||(El.inspectSource=function(e){return t8e(e)});var kb,xg,Tb,UY=El.inspectSource,KI=bt.WeakMap,r8e=qn(KI)&&/native code/.test(UY(KI)),x6=bt.TypeError,n8e=bt.WeakMap;if(r8e||El.state){var Sc=El.state||(El.state=new n8e),a8e=kr(Sc.get),qI=kr(Sc.has),i8e=kr(Sc.set);kb=function(e,t){if(qI(Sc,e))throw new x6("Object already initialized");return t.facade=e,i8e(Sc,e,t),t},xg=function(e){return a8e(Sc,e)||{}},Tb=function(e){return qI(Sc,e)}}else{var F0=QE("state");Sm[F0]=!0,kb=function(e,t){if(Ut(e,F0))throw new x6("Object already initialized");return t.facade=e,Ia(e,F0,t),t},xg=function(e){return Ut(e,F0)?e[F0]:{}},Tb=function(e){return Ut(e,F0)}}var pl,XI,YI,Jp={set:kb,get:xg,has:Tb,enforce:function(e){return Tb(e)?xg(e):kb(e,{})},getterFor:function(e){return function(t){var r;if(!xi(t)||(r=xg(t)).type!==e)throw x6("Incompatible receiver, "+e+" required");return r}}},HY=Function.prototype,o8e=ti&&Object.getOwnPropertyDescriptor,qS=Ut(HY,"name"),s8e={EXISTS:qS,PROPER:qS&&function(){}.name==="something",CONFIGURABLE:qS&&(!ti||ti&&o8e(HY,"name").configurable)},up=function(e,t,r,n){n&&n.enumerable?e[t]=r:Ia(e,t,r)},b6=ka("iterator"),zY=!1;[].keys&&("next"in(YI=[].keys())?(XI=Sb(Sb(YI)))!==Object.prototype&&(pl=XI):zY=!0);var u8e=pl==null||ii(function(){var e={};return pl[b6].call(e)!==e});pl=u8e?{}:fu(pl),qn(pl[b6])||up(pl,b6,function(){return this});var VY={IteratorPrototype:pl,BUGGY_SAFARI_ITERATORS:zY},l8e=wO?{}.toString:function(){return"[object "+Cm(this)+"]"},c8e=dc.f,JI=ka("toStringTag"),Db=function(e,t,r,n){if(e){var a=r?e:e.prototype;Ut(a,JI)||c8e(a,J
`)&&e.flags==="s")}),R6e=dt.RegExp,L6e=Yn(function(){var e=R6e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),M6e=Hf.get,j6e=_O("native-string-replace",String.prototype.replace),Nb=RegExp.prototype.exec,D6=Nb,$6e=hr("".charAt),U6e=hr("".indexOf),H6e=hr("".replace),n3=hr("".slice),a3=(r3=/b*/g,Gn(Nb,yR=/a/,"a"),Gn(Nb,r3,"a"),yR.lastIndex!==0||r3.lastIndex!==0),xR=O6e.BROKEN_CARET,i3=/()??/.exec("")[1]!==void 0;(a3||i3||xR||I6e||L6e)&&(D6=function(e){var t,r,n,a,i,o,s,u=this,l=M6e(u),c=gf(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Gn(D6,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=xR&&u.sticky,v=Gn(k6e,u),h=u.source,g=0,m=c;if(p&&(v=H6e(v,"y",""),U6e(v,"g")===-1&&(v+="g"),m=n3(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&$6e(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),i3&&(r=new RegExp("^"+h+"$(?!\\s)",v)),a3&&(n=u.lastIndex),a=Gn(Nb,p?r:u,m),p?a?(a.input=n3(a.input,g),a[0]=n3(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:a3&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),i3&&a&&a.length>1&&Gn(j6e,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=Tm(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var Ib=D6;km({target:"RegExp",proto:!0,forced:/./.exec!==Ib},{exec:Ib});var z6e=Ha("species"),o3=RegExp.prototype,V6e=hr("".charAt),bR=hr("".charCodeAt),W6e=hr("".slice),wR=function(e){return function(t,r){var n,a,i=gf(e4(t)),o=NO(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=bR(i,o))<55296||n>56319||o+1===s||(a=bR(i,o+1))<56320||a>57343?e?V6e(i,o):n:e?W6e(i,o,o+2):a-56320+(n-55296<<10)+65536}},nJ={codeAt:wR(!1),charAt:wR(!0)},G6e=nJ.charAt,K6e=function(e,t,r){return t+(r?G6e(e,t).length:1)},q6e=dt.TypeError,ER=function(e,t){var r=e.exec;if(wn(r)){var n=Gn(r,e,t);return n!==null&&Ti(n),n}if(hf(e)==="RegExp")return Gn(Ib,e,t);throw q6e("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var a=Ha(e),i=!Yn(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Yn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[z6e]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=hr(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=hr(l),h=c.exec;return h===Ib||h===o3.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});_l(String.prototype,e,u[0]),_l(o3,a,u[1])}n&&Ma(o3[a],"sham",!0)})("match",function(e,t,r){return[function(n){var a=e4(this),i=n==null?void 0:c1(n,e);return i?Gn(i,n,a):new RegExp(n)[e](gf(a))},function(n){var a=Ti(this),i=gf(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return ER(a,i);var s=a.unicode;a.lastIndex=0;for(var u,l=[],c=0;(u=ER(a,i))!==null;){var f=gf(u[0]);l[c]=f,f===""&&(a.lastIndex=K6e(i,JY(a.lastIndex),s)),c++}return c===0?null:l}]}),km({global:!0},{globalThis:dt});var X6e=!Yn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SR=FO("IE_PROTO"),O6=dt.Object,Y6e=O6.prototype,f1=X6e?O6.getPrototypeOf:function(e){var t=AO(e);if(ri(t,SR))return t[SR];var r=t.constructor;return wn(r)&&t instanceof r?r.prototype:t instanceof O6?Y6e:null},J6e=dt.String,Z6e=dt.TypeError,lp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=hr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return Ti(n),function(i){if(typeof i=="object"||wn(i))return i;throw Z6e("Can't set "+J6e(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),Q6e=dt.Array,eke=Math.max,tke=hr("".replace),rke=hr("".split),nke=hr([].join),F6=String(Error("zxcasd").stack),aJ=/\n\s*at [^:]*:[^\n]*/,ake=aJ.test(F6),ike=/@[^\n]*\n/.test(F6)&&!/zxcasd/.test(F6),oke=function(e,t){if(typeof e!="string")return e;if(ake)for(;t--;)e=tke(e,aJ,"");else if(ike)return nke(function(r,n,a){for(var i,o,s,u,l=t4(r),c=T6(n,l),f=T6(a===void 0?l:a,l),d=Q6e(eke(f-c,0)),p=0;c<f;c++,p++)i=d,o=p,s=r[c],u=void 0,(u=kO(o))in i?Qp.f(i,u,Sl(0,s)):i[u]=s;return d.length=p,d}(rke(e,`
`),t),`
`);return e},ske=function(e,t){Ao(t)&&"cause"in t&&Ma(e,"cause",t.cause)},CR=hr(hr.bind),iJ=function(e,t){return SO(e),t===void 0?e:CR?CR(e,t):function(){return e.apply(t,arguments)}},cp={},uke=Ha("iterator"),lke=Array.prototype,cke=Ha("iterator"),_R=function(e){if(e!=null)return c1(e,cke)||c1(e,"@@iterator")||cp[r4(e)]},fke=dt.TypeError,AR=function(e,t,r){var n,a;Ti(e);try{if(!(n=c1(e,"return"))){if(t==="throw")throw r;return r}n=Gn(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return Ti(n),r},dke=dt.TypeError,yx=function(e,t){this.stopped=e,this.result=t},kR=yx.prototype,pke=function(e,t,r){var n,a,i,o,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=iJ(t,c),h=function(m){return n&&AR(n,"normal",m),new yx(!0,m)},g=function(m){return f?(Ti(m),p?v(m[0],m[1],h):v(m[0],m[1])):p?v(m,h):v(m)};if(d)n=e;else{if(!(a=_R(e)))throw dke(_6(e)+" is not iterable");if(function(m){return m!==void 0&&(cp.Array===m||lke[uke]===m)}(a)){for(i=0,o=t4(e);o>i;i++)if((s=g(e[i]))&&Ob(kR,s))return s;return new yx(!1)}n=function(m,y){var x=arguments.length<2?_R(m):y;if(SO(x))return Ti(Gn(x,m));throw fke(_6(m)+" is not iterable")}(e,a)}for(u=n.next;!(l=Gn(u,n)).done;){try{s=g(l.value)}catch(m){AR(n,"throw",m)}if(typeof s=="object"&&s&&Ob(kR,s))return s}return new yx(!1)},hke=function(e,t){return e===void 0?arguments.length<2?"":t:gf(e)},vke=!Yn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Sl(1,7)),e.stack!==7)}),gke=Ha("toStringTag"),Rb=dt.Error,mke=[].push,d1=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,a=Ob(s3,this);lp?r=lp(new Rb(void 0),a?f1(this):s3):(r=a?this:Tm(s3),Ma(r,gke,"Error")),Ma(r,"message",hke(t,"")),vke&&Ma(r,"stack",oke(r.stack,1)),ske(r,n);var i=[];return pke(e,mke,{that:i}),Ma(r,"errors",i),r};lp?lp(d1,Rb):QY(d1,Rb);var s3=d1.prototype=Tm(Rb.prototype,{constructor:Sl(1,d1),message:Sl(1,""),name:Sl(1,"AggregateError")});km({global:!0},{AggregateError:d1});var B6=Ha("unscopables"),P6=Array.prototype;P6[B6]==null&&Qp.f(P6,B6,{configurable:!0,value:Tm(null)});var mf,TR,DR,u3=function(e){P6[B6][e]=!0},N6=Ha("iterator"),oJ=!1;[].keys&&("next"in(DR=[].keys())?(TR=f1(f1(DR)))!==Object.prototype&&(mf=TR):oJ=!0);var yke=mf==null||Yn(function(){var e={};return mf[N6].call(e)!==e});yke&&(mf={}),wn(mf[N6])||_l(mf,N6,function(){return this});var MO={IteratorPrototype:mf,BUGGY_SAFARI_ITERATORS:oJ},xke=Qp.f,OR=Ha("toStringTag"),FR=function(e,t,r){e&&!ri(e=r?e:e.prototype,OR)&&xke(e,OR,{configurable:!0,value:t})},bke=MO.IteratorPrototype,wke=function(){return this},Eke=PO.PROPER,Ske=PO.CONFIGURABLE,BR=MO.IteratorPrototype,Wy=MO.BUGGY_SAFARI_ITERATORS,Ah=Ha("iterator"),Cke=function(){return this},sJ=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=Tm(bke,{next:Sl(+!b,x)}),FR(m,E,!1),cp[E]=wke})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!Wy&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[Ah]||p["@@iterator"]||a&&p[a],h=!Wy&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=f1(g.call(new e)))!==Object.prototype&&s.next&&(f1(s)!==BR&&(lp?lp(s,BR):wn(s[Ah])||_l(s,Ah,Cke)),FR(s,f,!0)),Eke&&a=="values"&&v&&v.name!=="values"&&(Ske?Ma(p,"name","values"):(d=!0,h=function(){return Gn(v,this)})),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(Wy||d||!(l in p))&&_l(p,l,u[l]);else km({target:t,proto:!0,forced:Wy||d},u);return p[Ah]!==h&&_l(p,Ah,h,{name:a}),cp[t]=h,u},_ke=Hf.set,Ake=Hf.getterFor("Array Iterator"),Kv=sJ(Array,"Array",function(e,t){_ke(this,{type:"Array Iterator",target:Zp(e),index:0,kind:t})},function(){var e=Ake(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");cp.Arguments=cp.Array,u3("keys"),u3("values"),u3("entries");var kke=nJ.charAt,Tke=Hf.set,Dke=Hf.getterFor("String Iterator");sJ(S
Sorry, wangEditor V5+ versions do not support IE browser.`),IR(),RR()):global&&(!((l3=global.navigator)===null||l3===void 0)&&l3.userAgent.match("QQBrowser"))&&(IR(),RR());function IR(){typeof globalThis>"u"&&(window.globalThis=window)}function RR(){S8e===void 0&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var LR,Mb=Array.isArray||function(e){return df(e)=="Array"},cJ=function(){},Oke=[],fJ=Xp("Reflect","construct"),jO=/^\s*(?:class|function)\b/,Fke=kr(jO.exec),Bke=!jO.exec(cJ),kh=function(e){if(!qn(e))return!1;try{return fJ(cJ,Oke,e),!0}catch(t){return!1}},Pke=!fJ||ii(function(){var e;return kh(kh.call)||!kh(Object)||!kh(function(){e=!0})||e})?function(e){if(!qn(e))return!1;switch(Cm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bke||!!Fke(jO,UY(e))}:kh,Nke=ka("species"),MR=bt.Array,dJ=function(e,t){return new(function(r){var n;return Mb(r)&&(n=r.constructor,(Pke(n)&&(n===MR||Mb(n.prototype))||xi(n)&&(n=n[Nke])===null)&&(n=void 0)),n===void 0?MR:n}(e))(t===0?0:t)},Ike=ka("species"),pJ=ka("isConcatSpreadable"),jR=bt.TypeError,Rke=bb>=51||!ii(function(){var e=[];return e[pJ]=!1,e.concat()[0]!==e}),Lke=(LR="concat",bb>=51||!ii(function(){var e=[];return(e.constructor={})[Ike]=function(){return{foo:1}},e[LR](Boolean).foo!==1})),Mke=function(e){if(!xi(e))return!1;var t=e[pJ];return t!==void 0?!!t:Mb(e)};Ws({target:"Array",proto:!0,forced:!Rke||!Lke},{concat:function(e){var t,r,n,a,i,o=bm(this),s=dJ(o,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Mke(i=t===-1?o:arguments[t])){if(u+(a=Em(i))>9007199254740991)throw jR("Maximum allowed index exceeded");for(r=0;r<a;r++,u++)r in i&&m6(s,u,i[r])}else{if(u>=9007199254740991)throw jR("Maximum allowed index exceeded");m6(s,u++,i)}return s.length=u,s}});var $R=xO.f,UR=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hJ={f:function(e){return UR&&df(e)=="Window"?function(t){try{return $R(t)}catch(r){return MY(UR)}}(e):$R(Ns(e))}},jke=kr([].slice),$O={f:ka},$ke=dc.f,tn=function(e){var t=mi.Symbol||(mi.Symbol={});Ut(t,e)||$ke(t,e,{value:$O.f(e)})},HR=kr([].push),Du=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=bm(u),h=BY(v),g=mO(l,c),m=Em(h),y=0,x=f||dJ,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:HR(b,d)}else switch(e){case 4:return!1;case 7:HR(b,d)}return i?-1:n||a?a:b}},n4={forEach:Du(0),map:Du(1),filter:Du(2),some:Du(3),every:Du(4),find:Du(5),findIndex:Du(6),filterReject:Du(7)}.forEach,Ka=QE("hidden"),zR=ka("toPrimitive"),Uke=Jp.set,VR=Jp.getterFor("Symbol"),Po=Object.prototype,il=bt.Symbol,hl=il&&il.prototype,WR=bt.TypeError,h3=bt.QObject,Th=Xp("JSON","stringify"),vJ=ZE.f,ol=dc.f,gJ=hJ.f,Hke=pO.f,mJ=kr([].push),du=h0("symbols"),Dm=h0("op-symbols"),v3=h0("string-to-symbol-registry"),g3=h0("symbol-to-string-registry"),zke=h0("wks"),m3=!h3||!h3.prototype||!h3.prototype.findChild,I6=ti&&ii(function(){return fu(ol({},"a",{get:function(){return ol(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=vJ(Po,t);n&&delete Po[t],ol(e,t,r),n&&e!==Po&&ol(Po,t,n)}:ol,y3=function(e,t){var r=du[e]=fu(hl);return Uke(r,{type:"Symbol",tag:e,description:t}),ti||(r.description=t),r},jb=function(e,t,r){e===Po&&jb(Dm,t,r),ki(e);var n=Yp(t);return ki(r),Ut(du,n)?(r.enumerable?(Ut(e,Ka)&&e[Ka][n]&&(e[Ka][n]=!1),r=fu(r,{enumerable:Lo(0,!1)})):(Ut(e,Ka)||ol(e,Ka,Lo(1,{})),e[Ka][n]=!0),I6(e,n,r)):ol(e,n,r)},GR=function(e,t){ki(e);var r=Ns(t),n=bO(r).concat(R6(r));return n4(n,function(a){ti&&!Ja(yJ,r,a)||jb(e,a,r[a])}),e},yJ=function(e){var t=Yp(e),r=Ja(Hke,this,t);return!(this===Po&&Ut(du,t)&&!Ut(Dm,t))&&(!(r||!Ut(this,t)||!Ut(du,t)||Ut(this,Ka)&&this[Ka][t])||r)},KR=function(e,t){var r=Ns(e),n=Yp(t);if(r!==Po||!Ut(du,n)||Ut(Dm,n)){var a=vJ(r,n);return!a||!Ut(du,n)||Ut(r,Ka)&&r[Ka][n]||(a.enumerable=!0),a}},qR=function(e){var t=gJ(Ns(e)),r=[];return n4(t,function(n){Ut(du,n)||Ut(Sm,n)||mJ(r,n)}),r},R6=funct
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function XR(e){return Object.prototype.toString.call(e)==="[object Object]"}function ga(e){var t,r;return XR(e)!==!1&&((t=e.constructor)===void 0||XR(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function ko(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zf(e){return!!e&&!!e[Di]}function Vf(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===nTe}(e)||Array.isArray(e)||!!e[nL]||!!e.constructor[nL]||UO(e)||HO(e))}function p1(e,t,r){r===void 0&&(r=!1),fp(e)===0?(r?Object.keys:KO)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function fp(e){var t=e[Di];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:UO(e)?2:HO(e)?3:0}function L6(e,t){return fp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bJ(e,t,r){var n=fp(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function UO(e){return tTe&&e instanceof Map}function HO(e){return rTe&&e instanceof Set}function Lc(e){return e.o||e.t}function zO(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=aTe(e);delete t[Di];for(var r=KO(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function VO(e,t){return t===void 0&&(t=!1),WO(e)||zf(e)||!Vf(e)||(fp(e)>1&&(e.set=e.add=e.clear=e.delete=Zke),Object.freeze(e),t&&p1(e,function(r,n){return VO(n,!0)},!0)),e}function Zke(){ko(2)}function WO(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function au(e){var t=iTe[e];return t||ko(18,e),t}function YR(){return h1}function x3(e,t){t&&(au("Patches"),e.u=[],e.s=[],e.v=t)}function $b(e){M6(e),e.p.forEach(Qke),e.p=null}function M6(e){e===h1&&(h1=e.l)}function JR(e){return h1={p:[],l:h1,h:e,m:!0,_:0}}function Qke(e){var t=e[Di];t.i===0||t.i===1?t.j():t.O=!0}function b3(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||au("ES5").S(t,e,n),n?(r[Di].P&&($b(t),ko(4)),Vf(e)&&(e=Ub(t,e),t.l||Hb(t,e)),t.u&&au("Patches").M(r[Di],e,t.u,t.s)):e=Ub(t,r,[]),$b(t),t.u&&t.v(t.u,t.s),e!==wJ?e:void 0}function Ub(e,t,r){if(WO(t))return t;var n=t[Di];if(!n)return p1(t,function(i,o){return ZR(e,n,t,i,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Hb(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=zO(n.k):n.o;p1(n.i===3?new Set(a):a,function(i,o){return ZR(e,n,a,i,o,r)}),Hb(e,a,!1),r&&e.u&&au("Patches").R(n,r,e.u,e.s)}return n.o}function ZR(e,t,r,n,a,i){if(zf(a)){var o=Ub(e,a,i&&t&&t.i!==3&&!L6(t.D,n)?i.concat(n):void 0);if(bJ(r,n,o),!zf(o))return;e.m=!1}if(Vf(a)&&!WO(a)){if(!e.h.F&&e._<1)return;Ub(e,a),t&&t.A.l||Hb(e,a)}}function Hb(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&VO(t,r)}function w3(e,t){var r=e[Di];return(r?Lc(r):e)[t]}function QR(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function j6(e){e.P||(e.P=!0,e.l&&j6(e.l))}function E3(e){e.o||(e.o=zO(e.t))}function $6(e,t,r){var n=UO(t)?au("MapSet").N(t,r):HO(t)?au("MapSet").T(t,r):e.g?function(a,i){var o=Array.isArray(a),s={i:o?1:0,A:i?i.A:YR(),P:!1,I:!1,D:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=s,l=xx;o&&(u=[s],l=bx);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):au("ES5").J(t,r);return(r?r.A:YR()).p.push(n),n}function eTe(e){return zf(e)||ko(22,e),function t(r){if(!Vf(r))return r;var n,a=r[Di],i=fp(r);if(a){if(!a.P&&(a.i<4||!au("ES5").K(a)))return a.t;a.I=!0,n=eL(r,i),a.I=!1}else n=eL(r,i);return p1(n,function(o,s){a&&function(u,l){return fp(u)===2?u.get(l):u[l]}(a.t,o)===s||bJ(n,o,t(s))}),i===3?new Set(n):n}(e)}function eL(e,t){swi
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.
`));var f=n(e).pop();if(Ie.has(e,f)){var d=D.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r),a=se.parent(n);return D.node(e,a)},path(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:a}=r;if(se.isPath(t)){if(a==="start"){var[,i]=Ie.first(e,t);t=i}else if(a==="end"){var[,o]=Ie.last(e,t);t=o}}return be.isRange(t)&&(t=a==="start"?be.start(t):a==="end"?be.end(t):se.common(t.anchor.path,t.focus.path)),St.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>Ie.has(e,t),pathRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,a={current:t,affinity:n,unref(){var{current:i}=a;return D.pathRefs(e).delete(a),a.current=null,i}};return D.pathRefs(e).add(a),a},pathRefs(e){var t=sL.get(e);return t||(t=new Set,sL.set(e,t)),t},point(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(se.isPath(t)){var a;if(n==="end"){var[,i]=Ie.last(e,t);a=i}else{var[,o]=Ie.first(e,t);a=o}var s=Ie.get(e,a);if(!$e.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:a,offset:n==="end"?s.text.length:0}}if(be.isRange(t)){var[u,l]=be.edges(t);return n==="start"?u:l}return t},pointRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,a={current:t,affinity:n,unref(){var{current:i}=a;return D.pointRefs(e).delete(a),a.current=null,i}};return D.pointRefs(e).add(a),a},pointRefs(e){var t=uL.get(e);return t||(t=new Set,uL.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:a=!1,voids:i=!1}=t;if(r){var o=D.range(e,r),[s,u]=be.edges(o),l=a?u:s,c=!1,f="",d=0,p=0,v=0;for(var[h,g]of D.nodes(e,{at:r,reverse:a,voids:i})){if(qe.isElement(h)){if(!i&&e.isVoid(h)){yield D.start(e,g);continue}if(e.isInline(h))continue;if(D.hasInlines(e,h)){var m=se.isAncestor(g,u.path)?u:D.end(e,g),y=se.isAncestor(g,s.path)?s:D.start(e,g);f=D.string(e,{anchor:y,focus:m},{voids:i}),c=!0}}if($e.isText(h)){var x=se.equals(g,l.path);for(x?(p=a?l.offset:h.text.length-l.offset,v=l.offset):(p=h.text.length,v=a?p:0),(x||c||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=b(f,n,a),f=H6(f,d,a)[1]}if(v=a?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function b(E,S,w){return S==="character"?U6(E,w):S==="word"?function(C){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],O=0,P=!1;C.length>0;){var F=U6(C,_),[q,ee]=H6(C,F,_);if(dTe(q,ee,_))P=!0,O+=F;else{if(P)break;O+=F}C=ee}return O}(E,w):S==="line"||S==="block"?E.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:a,at:i=e.selection}=t;if(i){var o=D.before(e,i,{voids:n});if(o){var[,s]=D.first(e,[]),u=[o.path,s];if(se.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(se.isPath(i)){var[l]=D.parent(e,i);a=f=>l.children.includes(f)}else a=()=>!0;var[c]=D.nodes(e,{reverse:!0,at:u,match:a,mode:r,voids:n});return c}}},range:(e,t,r)=>be.isRange(t)&&!r?t:{anchor:D.start(e,t),focus:D.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,a={current:t,affinity:n,unref(){var{current:i}=a;return D.rangeRefs(e).delete(a),a.current=null,i}};return D.rangeRefs(e).add(a),a},rangeRefs(e){var t=lL.get(e);return t||(t=new Set,lL.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){oL.set(e,t)},start:(e,t)=>D.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,a=D.range(e,t),[i,o]=be.edges(a),s="";for(var[u,l]of D.nodes(e,{at:a,match:$e.isText,voids:n})){var c=u.text;se.equals(l,o.path)&&(c=c.slice(0,o.offset)),se.equals(l,i.path)&&(c=c.slice(i.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&argumen
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function iM(e,t){const r=/\$/g;let n=[e];if(t==null)return n;for(const a of Object.keys(t))if(a!=="_"){let i=t[a];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=qDe(n,new RegExp(`%\\{${a}\\}`,"g"),i)}return n}var QJ=(I0=KDe("apply"),class{constructor(e){Object.defineProperty(this,I0,{value:XDe}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(aM(this,I0)[I0],this):aM(this,I0)[I0](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(n,a){return Object.prototype.hasOwnProperty.call(n,a)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const r=this.locale.strings[e];if(typeof r=="object"){if(t&&t.smart_count!==void 0)return iM(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return iM(r,t)}});function XDe(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var eZ=function(){var e={},t=e._fns={};return e.emit=function(r,n,a,i,o,s,u){var l=function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(t),h=0,g=v.length;h<g;h++){var m=v[h];if(m==="*"&&(f=f.concat(t[m])),p.length===2&&p[0]===m){f=f.concat(t[m]);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,a,i,o,s,u])},e.on=function(r,n){t[r]||(t[r]=[]),t[r].push(n)},e.once=function(r,n){this.on(r,function a(){n.apply(this,arguments),e.off(r,a)})},e.off=function(r,n){var a=[];if(r&&n)for(var i=this._fns[r],o=0,s=i?i.length:0;o<s;o++)i[o]!==n&&a.push(i[o]);a.length?this._fns[r]=a:delete this._fns[r]},e},YDe={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:JDe}=YDe,oM=e=>crypto.getRandomValues(new Uint8Array(e)),sM=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*n*t/e.length);return()=>{let i="";for(;;){let o=r(a),s=a;for(;s--;)if(i+=e[o[s]&n]||"",i.length===t)return i}}};var ZDe={nanoid:(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t},customAlphabet:(e,t)=>sM(e,t,oM),customRandom:sM,urlAlphabet:JDe,random:oM},P3=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var a=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+a:(t?"-":"")+e.toFixed(1)+" "+a};function tZ(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}tZ.prototype.match=function(e){var t,r,n=!0,a=this.parts,i=a.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)a[t]!=="*"&&(n=t<r.length&&a[t]===r[t]);n=n&&r}else n=!1;else if(typeof e.splice=="function")for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if(typeof e=="object")for(var o in n={},e)this.match(o)&&(n[o]=e[o]);return n};var QDe=/[\/\+\.]/,eOe=function(e,t){function r(n){var a=function(i,o,s){var u=new tZ(i,s||/[\/\.]/);return o!==void 0?u.match(o):u}(n,e,QDe);return a&&a.length>=2}return t?r(t.split(";")[0]):r},tOe=0;function rOe(e){return"__private_"+tOe+++"_"+e}var N3=rOe("publish");class rZ{constructor(){Object.defineProperty(this,N3,{value:nOe}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,function(a,i){if(!Object.prototype.hasOwnProperty.call(a,i))throw new TypeError("attempted to use private field on non-instance");return a}(this,N3)[N3](r,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function nOe(){for(var e=arguments.length,t=new Ar
id: ${n[i].id}
type: ${n[i].type}`)}),n.length>0&&Xe(this,Ih)[Ih](),a.length>0){let i=`Multiple errors occurred while adding files:
`;if(a.forEach(o=>{i+=`
* ${o.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:a.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(a,i);{const o=new Error(i);throw o.errors=a,o}}}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},o={...a},s=Object.create(null);function u(f){return s[f]===void 0}t.forEach(f=>{n[f]&&(s[f]=n[f],delete i[f])}),Object.keys(o).forEach(f=>{const d=a[f].fileIDs.filter(u);d.length!==0?o[f]={...a[f],fileIDs:d}:delete o[f]});const l={currentUploads:o,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(s);c.forEach(f=>{this.emit("file-removed",s[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,r){r===void 0&&(r=null),this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!0};t[r]=n}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!1,error:null};t[r]=n}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=Xe(this,$s)[$s](r,{forceAllowNewUpload:!0});return Xe(this,Us)[Us](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),r=Object.keys(t);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=Xe(this,$s)[$s]([t],{forceAllowNewUpload:!0});return Xe(this,Us)[Us](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,r){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(u=>u.progress.uploadStarted||u.progress.preprocess||u.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=t.filter(u=>u.progress.bytesTotal!=null),n=t.filter(u=>u.progress.bytesTotal==null);if(r.length===0){const u=100*t.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/u*100);return void this.setState({totalProgress:c})}let a=r.reduce((u,l)=>u+l.progress.bytesTotal,0);const i=a/r.length;a+=i*n.length;let o=0;r.forEach(u=>{o+=u.progress.bytesUploaded}),n.forEach(u=>{o+=i*(u.progress.percentage||0)/100});let s=a===0?0:Math.round(o/a*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was impo
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(o)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in Xe(this,Qn)[Qn]?Xe(this,Qn)[Qn][n.type].push(n):Xe(this,Qn)[Qn][n.type]=[n],n.install(),this}getPlugin(t){for(const r of Object.values(Xe(this,Qn)[Qn])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[iZ](t){return Xe(this,Qn)[Qn][t]}iteratePlugins(t){Object.values(Xe(this,Qn)[Qn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=Xe(this,Qn)[Qn][t.type],n=r.findIndex(i=>i.id===t.id);n!==-1&&r.splice(n,1);const a={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(a)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Xe(this,Bh)[Bh](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Xe(this,So)[So]),window.removeEventListener("offline",Xe(this,So)[So]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Xe(this,Us)[Us](t):(Xe(this,ef)[ef](t),Promise.reject(new Error("Nonexistent upload")))}[oZ](){return Xe(this,$s)[$s](...arguments)}addResultData(t,r){if(!Xe(this,j3)[j3](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=Xe(this,Qn)[Qn].uploader)!=null&&t.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(()=>{Xe(this,R3)[R3](r),Xe(this,L3)[L3](r)}).catch(a=>{Xe(this,Dn)[Dn](a)}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),o=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);l.progress.uploadStarted||i.indexOf(u)!==-1||o.push(l.id)});const s=Xe(this,$s)[$s](o);return Xe(this,Us)[Us](s)}).catch(a=>{Xe(this,Dn)[Dn](a,{showInformer:!1})}))}}function fOe(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:a,maxNumberOfFiles:i,allowedFileTypes:o}=this.opts.restrictions;if(i&&t.length+1>i)throw new os(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(o&&!o.some(s=>s.indexOf("/")>-1?!!e.type&&eOe(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=o.join(", ");throw new os(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(a&&e.size!=null){let s=0;if(s+=e.size,t.forEach(u=>{s+=u.size}),s>a)throw new os(this.i18n("exceedsSize",{size:P3(a),file:e.name}))}if(r&&e.size!=null&&e.size>r)throw new os(this.i18n("exceedsSize",{size:P3(r),file:e.name}));if(n&&e.size!=null&&e.size<n)throw new os(this.i18n("inferiorSize",{size:P3(n)}))}function dOe(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new os(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function pOe(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],a=[];for(let i=0;i<t.length;i++)if(!r.call(e.meta,t[i])||e.meta[t[i]]===""){const o=new os(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);n.push(o),a.push(t[i]),Xe(this,Dn)[Dn](o,{file:e,showInformer:
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function HM(e){return Object.prototype.toString.call(e)==="[object Object]"}Mr({target:"Object",stat:!0,forced:u9e},{keys:function(e){return Nd(pc(e))}});var l9e={isHistory(e){return HM(t=e)!==!1&&((r=t.constructor)===void 0||HM(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||vl.isOperationList(e.redos[0]))&&(e.undos.length===0||vl.isOperationList(e.undos[0]));var t,r,n}},Z3=new WeakMap,Q3=new WeakMap,Ed={isHistoryEditor:e=>l9e.isHistory(e.history)&&D.isEditor(e),isMerging:e=>Q3.get(e),isSaving:e=>Z3.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=Ed.isMerging(e);Q3.set(e,!1),t(),Q3.set(e,r)},withoutSaving(e,t){var r=Ed.isSaving(e);Z3.set(e,!1),t(),Z3.set(e,r)}},c9e=Be.String,gr=function(e){if(p4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return c9e(e)},dF=function(){var e=sn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},f9e=eh.PROPER,dk=RegExp.prototype,AZ=dk.toString,d9e=Ye(dF),p9e=nr(function(){return AZ.call({source:"a",flags:"b"})!="/a/b"}),h9e=f9e&&AZ.name!="toString";(p9e||h9e)&&ni(RegExp.prototype,"toString",function(){var e=sn(this),t=gr(e.source),r=e.flags;return"/"+t+"/"+gr(r===void 0&&Gf(dk,e)&&!("flags"in dk)?d9e(e):r)},{unsafe:!0});var e2,v9e=Vn?Object.defineProperties:function(e,t){sn(e);for(var r,n=hc(t),a=Nd(t),i=a.length,o=0;i>o;)Ko.f(e,r=a[o++],n[r]);return e},pk=x0("document","documentElement"),kZ=cF("IE_PROTO"),eC=function(){},TZ=function(e){return"<script>"+e+"<\/script>"},zM=function(e){e.write(TZ("")),e.close();var t=e.parentWindow.Object;return e=null,t},Cx=function(){try{e2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Cx=typeof document<"u"?document.domain&&e2?zM(e2):((t=y1("iframe")).style.display="none",pk.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(TZ("document.F=Object")),e.close(),e.F):zM(e2);for(var r=ow.length;r--;)delete Cx.prototype[ow[r]];return Cx()};d4[kZ]=!0;var g4=Object.create||function(e,t){var r;return e!==null?(eC.prototype=sn(e),r=new eC,eC.prototype=null,r[kZ]=e):r=Cx(),t===void 0?r:v9e(r,t)},hk=Ur("unscopables"),vk=Array.prototype;vk[hk]==null&&Ko.f(vk,hk,{configurable:!0,value:g4(null)});var Cg=function(e){vk[hk][e]=!0},g9e=SZ.includes;Mr({target:"Array",proto:!0},{includes:function(e){return g9e(this,e,arguments.length>1?arguments[1]:void 0)}}),Cg("includes");var m9e=Ur("match"),pF=function(e){var t;return xr(e)&&((t=e[m9e])!==void 0?!!t:jo(e)=="RegExp")},y9e=Be.TypeError,hF=function(e){if(pF(e))throw y9e("The method doesn't accept regular expressions");return e},x9e=Ur("match"),vF=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[x9e]=!1,"/./"[e](t)}catch(n){}}return!1},b9e=Ye("".indexOf);Mr({target:"String",proto:!0,forced:!vF("includes")},{includes:function(e){return!!~b9e(gr(oo(this)),gr(hF(e)),arguments.length>1?arguments[1]:void 0)}});var w9e=/"/g,E9e=Ye("".replace);Mr({target:"String",proto:!0,forced:nr(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=gr(oo(this)),n="<a",(n+=' name="'+E9e(gr(t),w9e,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var gk=function(e,t,r){var n,a;sn(e);try{if(!(n=Kf(e,"return"))){if(t==="throw")throw r;return r}n=Ht(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return sn(n),r},S9e=function(e,t,r,n){try{return n?t(sn(r)[0],r[1]):t(r)}catch(a){gk(e,"throw",a)}},Cp={},C9e=Ur("iterator"),_9e=Array.prototype,DZ=function(e){return e!==void 0&&(Cp.Array===e||_9e[C9e]===e)},w1=function(e,t,r){var n=lF(t);n in e?Ko.f(e,n,c4(0,r)):e[n]=r},A9e=Ur("iterator"),gF=function(e){if(e!=null)return Kf(e,A9e)||Kf(e,"@@iterator")||Cp[p4(e)]},k9e=Be.TypeError,OZ=function(e,t){var r=arguments.length<2?gF(e):t;if(Zl(r))return sn(Ht(r,e));throw k9e(l4(e)+" is not iterable")},VM=Be.Array,FZ=Ur("iterator"),BZ=!1;try{var T9e=0,WM={next:function(){return{done:!!T9e++}},return:function(){BZ=!0}};WM[FZ]=function()
`)&&e.flags==="s")}),a7e=Be.RegExp,EF=nr(function(){var e=a7e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),i7e=Ca.get,o7e=iF("native-string-replace",String.prototype.replace),lw=RegExp.prototype.exec,bk=lw,s7e=Ye("".charAt),u7e=Ye("".indexOf),l7e=Ye("".replace),rC=Ye("".slice),nC=function(){var e=/a/,t=/b*/g;return Ht(lw,e,"a"),Ht(lw,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),ej=y4.BROKEN_CARET,aC=/()??/.exec("")[1]!==void 0;(nC||aC||ej||wF||EF)&&(bk=function(e){var t,r,n,a,i,o,s,u=this,l=i7e(u),c=gr(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Ht(bk,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=ej&&u.sticky,v=Ht(dF,u),h=u.source,g=0,m=c;if(p&&(v=l7e(v,"y",""),u7e(v,"g")===-1&&(v+="g"),m=rC(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&s7e(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),aC&&(r=new RegExp("^"+h+"$(?!\\s)",v)),nC&&(n=u.lastIndex),a=Ht(lw,p?r:u,m),p?a?(a.input=rC(a.input,g),a[0]=rC(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:nC&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),aC&&a&&a.length>1&&Ht(o7e,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=g4(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var E1=bk;Mr({target:"RegExp",proto:!0,forced:/./.exec!==E1},{exec:E1});var SF=Function.prototype,tj=SF.apply,c7e=SF.bind,rj=SF.call,CF=typeof Reflect=="object"&&Reflect.apply||(c7e?rj.bind(tj):function(){return rj.apply(tj,arguments)}),f7e=Ur("species"),iC=RegExp.prototype,_F=function(e,t,r,n){var a=Ur(e),i=!nr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!nr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[f7e]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=Ye(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=Ye(l),h=c.exec;return h===E1||h===iC.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});ni(String.prototype,e,u[0]),ni(iC,a,u[1])}n&&Mo(iC[a],"sham",!0)},d7e=PZ.charAt,AF=function(e,t,r){return t+(r?d7e(e,t).length:1)},p7e=Math.floor,oC=Ye("".charAt),h7e=Ye("".replace),sC=Ye("".slice),v7e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,g7e=/\$([$&'`]|\d{1,2})/g,m7e=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=g7e;return a!==void 0&&(a=pc(a),u=v7e),h7e(i,u,function(l,c){var f;switch(oC(c,0)){case"$":return"$";case"&":return e;case"`":return sC(t,0,r);case"'":return sC(t,o);case"<":f=a[sC(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=p7e(d/10);return p===0?l:p<=s?n[p-1]===void 0?oC(c,1):n[p-1]+oC(c,1):l}f=n[d-1]}return f===void 0?"":f})},y7e=Be.TypeError,S1=function(e,t){var r=e.exec;if(ur(r)){var n=Ht(r,e,t);return n!==null&&sn(n),n}if(jo(e)==="RegExp")return Ht(E1,e,t);throw y7e("RegExp#exec called on incompatible receiver")},wk=Ur("replace"),x7e=Math.max,b7e=Math.min,w7e=Ye([].concat),uC=Ye([].push),nj=Ye("".indexOf),aj=Ye("".slice),E7e="a".replace(/./,"$0")==="$0",ij=!!/./[wk]&&/./[wk]("a","$0")==="";_F("replace",function(e,t,r){var n=ij?"$":"$0";return[function(a,i){var o=oo(this),s=a==null?void 0:Kf(a,wk);return s?Ht(s,a,o,i):Ht(t,gr(o),a,i)},function(a,i){var o=sn(this),s=gr(a);if(typeof i=="string"&&nj(i,n)===-1&&nj(i,"$<")===-1){var u=r(t,o,s,i);if(u.done)return u.value}var l=ur(i);l||(i=gr(i));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=S1(o,s);if(p===null||(uC(d,p),!c))break;gr(p[0])===""&&(o.lastIndex=AF(s,th(o.lastIndex),f))}for(var v,h="",g=0,m=0;m<d.length;m++){for(var y=gr((p=d[m])[0]),x=x7e(b7e(Nm(p.index),s.length),0),b=[],E=1;E<p.length;E++)uC(b,(v=p[E])===void 0?v:String(v));var S=p.groups;if(l){var w=w7e([y],b,x,s);S!==void 0&&uC(w,S);var C=gr(CF(i,void 0,w))}else C=m7e(y,s,x,b,S,i);x>=g&&(h+=aj(s,g,x)+C,g=x+y.length)}return h+aj(s,g)}]},!!nr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!E7e||ij);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ek=function(e,t){return Ek=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Ek(e,t)};function nh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ek(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vi=function(){return Vi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Vi.apply(this,arguments)};function Wi(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function Sk(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e}var S7e=0,oj=function(){this.id=""+S7e++},C7e=Ca.set,_7e=Ca.getterFor("Array Iterator"),Yv=xF(Array,"Array",function(e,t){C7e(this,{type:"Array Iterator",target:hc(e),index:0,kind:t})},function(){var e=_7e(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Cp.Arguments=Cp.Array,Cg("keys"),Cg("values"),Cg("entries");var Ap=function(e,t,r){for(var n in t)ni(e,n,t[n],r);return e},A7e=Be.Array,k7e=Math.max,Ck=function(e,t,r){for(var n=b0(e),a=Sp(t,n),i=Sp(r===void 0?n:r,n),o=A7e(k7e(i-a,0)),s=0;a<i;a++,s++)w1(o,s,e[a]);return o.length=s,o},sj=x1.f,uj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T7e={f:function(e){return uj&&jo(e)=="Window"?function(t){try{return sj(t)}catch(r){return Ck(uj)}}(e):sj(hc(e))}},lj=nr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),r2=Object.isExtensible,tf=nr(function(){r2(1)})||lj?function(e){return!!xr(e)&&(!lj||jo(e)!="ArrayBuffer")&&(!r2||r2(e))}:r2,D7e=!nr(function(){return Object.isExtensible(Object.preventExtensions({}))}),x4=Pm(function(e){var t=Ko.f,r=!1,n=oF("meta"),a=0,i=function(s){t(s,n,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},r=!0;var s=x1.f,u=Ye([].splice),l={};l[n]=1,s(l).length&&(x1.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Mr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:T7e.f}))},fastKey:function(s,u){if(!xr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!an(s,n)){if(!tf(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!an(s,n)){if(!tf(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return D7e&&r&&tf(s)&&!an(s,n)&&i(s),s}};d4[n]=!0}),O7e=Be.TypeError,_x=function(e,t){this.stopped=e,this.result=t},cj=_x.prototype,C1=function(e,t,r){var n,a,i,o,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=qf(t,c),h=function(m){return n&&gk(n,"normal",m),new _x(!0,m)},g=function(m){return f?(sn(m),p?v(m[0],m[1],h):v(m[0],m[1])):p?v(m,h):v(m)};if(d)n=e;else{if(!(a=gF(e)))throw O7e(l4(e)+" is not iterable");if(DZ(a)){for(i=0,o=b0(e);o>i;i++)if((s=g(e[i]))&&Gf(cj,s))return s;return new _x(!1)}n=OZ(e,a)}for(u=n.next;!(l=Ht(u,n)).done;){try{s=g(l.value)}catch(m){gk(n,"throw",m)}if(typeof s=="object"&&s&&Gf(cj,s))return s}return new _x(!1)},F7e=Be.TypeError,b4=function(e,t){if(Gf(t,e))return e;t
`)}return a};function WZ(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var r=e.childNodes,n=r.length;n--;){var a=r[n],i=a.nodeType;i==3?t(a,e):i!=1&&i!=9&&i!=11||WZ(a,t)}}function Ej(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==ss.ELEMENT_NODE?"":t.tagName.toLowerCase()}(pa=ss||(ss={}))[pa.ELEMENT_NODE=1]="ELEMENT_NODE",pa[pa.TEXT_NODE=3]="TEXT_NODE",pa[pa.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",pa[pa.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",pa[pa.COMMENT_NODE=8]="COMMENT_NODE",pa[pa.DOCUMENT_NODE=9]="DOCUMENT_NODE",pa[pa.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",pa[pa.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var Fk=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),_g=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Gh=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),V7e=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),W7e=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Bk=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Kh=!W7e&&!V7e&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",X={getWindow:function(e){var t=HZ.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=kx.get(t);return r||(r=new oj,kx.set(t,r)),r},setNewKey:function(e){var t=new oj;kx.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var a=kp.get(n);if(a==null){if(D.isEditor(n))return r;break}var i=_1.get(n);if(i==null)break;r.unshift(i),n=a}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=X.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},getParentNode:function(e,t){return kp.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&n!=null;){var a=X.getParentNode(e,n);if(a==null)break;r.push(a),n=a}return r},getTopNode:function(e,t){var r=[X.findPath(e,t)[0]];return Ie.get(e,r)},toDOMNode:function(e,t){var r;if(D.isEditor(t))r=DF.get(e);else{var n=X.findKey(e,t);r=Dk.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return r},hasDOMNode:function(e,t,r){r===void 0&&(r={});var n,a=r.editable,i=a!==void 0&&a,o=X.toDOMNode(e,e);try{n=Eo(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!n&&n.closest("[data-slate-editor]")===o&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,a=be.isBackward(t),i=X.toDOMPoint(e,r),o=be.isCollapsed(t)?i:X.toDOMPoint(e,n),s=X.getWindow(e).document.createRange(),u=jt(a?o:i,2),l=u[0],c=u[1],f=jt(a?i:o,2),d=f[0],p=f[1],v=!!(Eo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Eo(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,v?1:c),s.setEnd(d,h?1:p),s},toDOMPoint:function(e,t){var r,n,a,i=jt(D.node(e,t.path),1)[0],o=X.toDOMNode(e,i);D.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=Wi(s),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=u+(v==null?p:parseInt(v,10));if(t.offset<=h){a=[d,Math.min(p,Math.max(0,t.offset-u))];break}u=h}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!a)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return a},toSlateNode:function(e,t){var r=Eo(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?fw.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node fr
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=X.toSlateNode(e,c);return{path:X.findPath(e,m),offset:f}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return D.hasPath(e,r.path)&&D.hasPath(e,n.path)},getNodeType:function(e){return qe.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return Ie.string(t)}).join("")},getSelectedElems:function(e){var t,r,n=[],a=D.nodes(e,{universal:!0});try{for(var i=Wi(a),o=i.next();!o.done;o=i.next()){var s=jt(o.value,1)[0];qe.isElement(s)&&n.push(s)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=jt(D.nodes(e,{match:function(i){return r.checkNodeType(i,t)},universal:!0}),1),a=n[0];return a==null?null:a[0]},getSelectedTextNode:function(e){var t=jt(D.nodes(e,{match:function(n){return $e.isText(n)},universal:!0}),1),r=t[0];return r==null?null:r[0]},isNodeSelected:function(e,t){var r=jt(D.nodes(e,{match:function(a){return a===t},universal:!0}),1),n=r[0];return n!=null&&jt(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(D.isEnd(e,r.anchor,t)||D.isEnd(e,r.focus,t))},getTextarea:function(e){var t=_k.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return w4.get(e)||null},getHoverbar:function(e){return cw.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var a=r-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return a<=0&&n&&n(e),a},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,a,i=X.getTextarea(e).$textArea,o=i==null?void 0:i[0].childNodes;if(o)try{for(var s=Wi(Array.from(o)),u=s.next();!u.done;u=s.next()){var l=u.value;if(l.nodeType!==3)break;l.remove()}}catch(h){t={error:h}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}var c=D.nodes(e,{match:function(h){return!(!qe.isElement(h)||e.isInline(h))},universal:!0});try{for(var f=Wi(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];WZ(X.toDOMNode(e,v),function(h,g){var m=te(g);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||g.removeChild(h)})}}}catch(h){n={error:h}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=D.nodes(e,{match:function(s){return e.isVoid(s)}}),a=0;try{for(var i=Wi(n),o=i.next();!o.done;o=i.next())o.value,a++}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return a>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||be.isExpanded(t))return!1;var r=X.getSelectedNodeByType(e,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(e,t){var r=D.node(e,t);if(r==null)return!1;var n=jt(r,1)[0].children;return n.length===1&&n[0].text===""}},G7e=1,GZ={},A1={},K7e=rh.filter,q7e=m4("filter");Mr({target:"Array",proto:!0,forced:!q7e},{filter:function(e){return K7e(this,e,arguments.length>1?arguments[1]:void 0)}});var Pk=`
\v\f\r    \u2028\u2029\uFEFF`,Sj=Ye("".replace),pw="["+Pk+"]",X7e=RegExp("^"+pw+pw+"*"),Y7e=RegExp(pw+pw+"*$"),vC=function(e){return function(t){var r=gr(oo(t));return 1&e&&(r=Sj(r,X7e,"")),2&e&&(r=Sj(r,Y7e,"")),r}},J7e={start:vC(1),end:vC(2),trim:vC(3)},Z7e=eh.PROPER,Q7e=J7e.trim;Mr({target:"String",proto:!0,forced:function(e){return nr(function(){return!!Pk[e]()||"…"[e]()!=="…"||Z7e&&Pk[e].name!==e})}("trim")},{trim:function(){return Q7e(this)}});var Nk=[],KZ={};function eBe(e,t,r){var n=r.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}var k1,M0,Cj,gC,hw=Be.Promise,_j=Ur("species"),FF=function(e){var t=x0(e),r=Ko.f;Vn&&t&&!t[_j]&&r(t,_j,{configurable:!0,get:function(){return this}})},tBe=Be.TypeError,rBe=Ur("species"),qZ=function(e,t){var r,n=sn(e).constructor;return n===void 0||(r=sn(n)[rBe])==null?t:function(a){if(v4(a))return a;throw tBe(l4(a)+" is not a constructor")}(r)},XZ=Ye([].slice),YZ=/(?:ipad|iphone|ipod).*applewebkit/i.test(Pd),kl=jo(Be.process)=="process",Ik=Be.setImmediate,Rk=Be.clearImmediate,nBe=Be.process,mC=Be.Dispatch,aBe=Be.Function,Aj=Be.MessageChannel,iBe=Be.String,yC=0,Ag={};try{k1=Be.location}catch(e){}var BF=function(e){if(an(Ag,e)){var t=Ag[e];delete Ag[e],t()}},xC=function(e){return function(){BF(e)}},kj=function(e){BF(e.data)},Tj=function(e){Be.postMessage(iBe(e),k1.protocol+"//"+k1.host)};Ik&&Rk||(Ik=function(e){var t=XZ(arguments,1);return Ag[++yC]=function(){CF(ur(e)?e:aBe(e),void 0,t)},M0(yC),yC},Rk=function(e){delete Ag[e]},kl?M0=function(e){nBe.nextTick(xC(e))}:mC&&mC.now?M0=function(e){mC.now(xC(e))}:Aj&&!YZ?(gC=(Cj=new Aj).port2,Cj.port1.onmessage=kj,M0=qf(gC.postMessage,gC)):Be.addEventListener&&ur(Be.postMessage)&&!Be.importScripts&&k1&&k1.protocol!=="file:"&&!nr(Tj)?(M0=Tj,Be.addEventListener("message",kj,!1)):M0="onreadystatechange"in y1("script")?function(e){pk.appendChild(y1("script")).onreadystatechange=function(){pk.removeChild(this),BF(e)}}:function(e){setTimeout(xC(e),0)});var qh,qc,kg,hd,bC,wC,EC,Dj,JZ={set:Ik,clear:Rk},oBe=/ipad|iphone|ipod/i.test(Pd)&&Be.Pebble!==void 0,sBe=/web0s(?!.*chrome)/i.test(Pd),uBe=Im.f,SC=JZ.set,Oj=Be.MutationObserver||Be.WebKitMutationObserver,Fj=Be.document,Bj=Be.process,s2=Be.Promise,Pj=uBe(Be,"queueMicrotask"),ZZ=Pj&&Pj.value;ZZ||(qh=function(){var e,t;for(kl&&(e=Bj.domain)&&e.exit();qc;){t=qc.fn,qc=qc.next;try{t()}catch(r){throw qc?hd():kg=void 0,r}}kg=void 0,e&&e.enter()},YZ||kl||sBe||!Oj||!Fj?!oBe&&s2&&s2.resolve?((EC=s2.resolve(void 0)).constructor=s2,Dj=qf(EC.then,EC),hd=function(){Dj(qh)}):kl?hd=function(){Bj.nextTick(qh)}:(SC=qf(SC,Be),hd=function(){SC(qh)}):(bC=!0,wC=Fj.createTextNode(""),new Oj(qh).observe(wC,{characterData:!0}),hd=function(){wC.data=bC=!bC}));var CC,Nj,QZ,Ij,eQ=ZZ||function(e){var t={fn:e,next:void 0};kg&&(kg.next=t),qc||(qc=t,hd()),kg=t},lBe=function(e){var t,r;this.promise=new e(function(n,a){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=a}),this.resolve=Zl(t),this.reject=Zl(r)},PF={f:function(e){return new lBe(e)}},Lk=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},cBe=typeof window=="object",tQ=JZ.set,fBe=Ur("species"),as="Promise",Rj=Ca.getterFor(as),dBe=Ca.set,pBe=Ca.getterFor(as),jc=hw&&hw.prototype,ls=hw,Xh=jc,rQ=Be.TypeError,Mk=Be.document,NF=Be.process,Id=PF.f,hBe=Id,vBe=!!(Mk&&Mk.createEvent&&Be.dispatchEvent),nQ=ur(Be.PromiseRejectionEvent),aQ=!1,Tg=b1(as,function(){var e=f4(ls),t=e!==String(ls);if(!t&&m1===66)return!0;if(m1>=51&&/native code/.test(e))return!1;var r=new ls(function(a){a(1)}),n=function(a){a(function(){},function(){})};return(r.constructor={})[fBe]=n,!(aQ=r.then(function(){})instanceof n)||!t&&cBe&&!nQ}),gBe=Tg||!mF(function(e){ls.all(e).catch(function(){})}),iQ=function(e){var t;return!(!xr(e)||!ur(t=e.then))&&t},IF=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;eQ(function(){for(var n=e.value,a=e.state==1,i=0;r.length>i;){var o,s,u,l=r[i++],c=a?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(a||(e.rejection===2&&yBe(e),e.rejection=1),c===!0?
`)>=0)return;c&&(c=pQ(c),Vj(s,c)||s.push({text:c}))}}else{if(l.nodeName==="BR")return void(Vj(s,`
`)||s.push({text:`
`}));var f=LF(te(l),o);Array.isArray(f)?f.forEach(function(d){return s.push(d)}):s.push(f)}}),s)}(e,t),n=function(i){for(var o in vw)if(i[0].matches(o))return vw[o];return IBe}(e),a=n(e[0],r,t);return Array.isArray(a)||(a=[a]),a.forEach(function(i){D.isVoid(t,i)||(r.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),RF.forEach(function(o){i=o(e[0],i,t)}))}),a}function kC(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var r=e[0].textContent||"";r=function(a){return a.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(r);var n={text:r=pQ(r)};return RF.forEach(function(a){n=a(e[0],n,t)}),n}function LF(e,t){fQ.forEach(function(n){var a=n.selector,i=n.preParseHtml;e[0].matches(a)&&(e=te(i(e[0])))});var r=Ej(e);return r==="span"?e.attr("data-w-e-type")?AC(e,t):kC(e,t):r==="code"?Ej(e.parent())==="pre"?AC(e,t):kC(e,t):cQ.includes(r)?kC(e,t):AC(e,t)}function hQ(e,t,r){var n=te(r);return!!n.attr(t)||(n.attr(t,"true"),e.on("destroyed",function(){n.removeAttr(t)}),!1)}function Wj(e,t){t===void 0&&(t="");var r=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(a){return"<p>"+a+"</p>"}).join(""));var n=te("<div>"+t+"</div>");return Array.from(n.children()).forEach(function(a){var i=LF(te(a),e);Array.isArray(i)?i.forEach(function(o){return r.push(o)}):r.push(i)}),r}var RBe=Ko.f,Gj=x4.fastKey,Kj=Ca.set,TC=Ca.getterFor,LBe={getConstructor:function(e,t,r,n){var a=e(function(l,c){b4(l,i),Kj(l,{type:t,index:g4(null),first:void 0,last:void 0,size:0}),Vn||(l.size=0),c!=null&&C1(c,l[n],{that:l,AS_ENTRIES:r})}),i=a.prototype,o=TC(t),s=function(l,c,f){var d,p,v=o(l),h=u(l,c);return h?h.value=f:(v.last=h={index:p=Gj(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=h),d&&(d.next=h),Vn?v.size++:l.size++,p!=="F"&&(v.index[p]=h)),l},u=function(l,c){var f,d=o(l),p=Gj(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Ap(i,{clear:function(){for(var l=o(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,Vn?l.size=0:this.size=0},delete:function(l){var c=this,f=o(c),d=u(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),Vn?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=o(this),d=qf(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!!u(this,l)}}),Ap(i,r?{get:function(l){var c=u(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Vn&&RBe(i,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,r){var n=t+" Iterator",a=TC(t),i=TC(n);xF(e,t,function(o,s){Kj(this,{type:n,target:o,state:a(o),kind:s,last:void 0})},function(){for(var o=i(this),s=o.kind,u=o.last;u&&u.removed;)u=u.previous;return o.target&&(o.last=u=u?u.next:o.state.first)?s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}:(o.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),FF(t)}};LZ("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},LBe);var qj=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Xj(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):pe.insertNodes(e,t,{mode:"highest"})}var MBe=function(e){var t=e,r=t.insertText;return t.insertFragment,t.setFragmentData=function(n){var a=t.selection;if(a){var i=jt(be.edges(a),2),o=i[0],s=i[1],u=D.void(t,{at:o.path}),l=D.void(t,{at:s.path});if(!be.isCollapsed(a)||u){var c=X.toDOMRange(t,a),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(E){E.textContent&&E.textContent.trim()!==""&&(d=E)}),l){var p=jt(l,1)[0],v=c.cloneRange(),h=X.toDOMNode(t,p);v.setEndAfter(h),f=v.cloneContents()}if(u&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(E){var S=E.getAttribute("data-slate-zero-width")==="n";E.textContent=S?`
`:""}),zZ(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var m=t.getFragment(),y=JSON.stringify(m),x=window.btoa(encodeURIComponent(y));d.setAttribute("data-slate-fragment",x),n.setData("application/x-slate-fragment",x);var b=f.ownerDocument.createElement("div");return b.appendChild(f),b.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(b),n.setData("text/html",b.innerHTML),n.setData("text/plain",z7e(b)),f.ownerDocument.body.removeChild(b),n}}},t.insertData=function(n){var a,i,o=n.getData("application/x-slate-fragment");if(o){var s=decodeURIComponent(window.atob(o)),u=JSON.parse(s);t.insertFragment(u)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Wi(f),v=p.next();!v.done;v=p.next()){var h=v.value;d&&pe.splitNodes(t,{always:!0}),r(h),d=!0}}catch(g){a={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(a)throw a.error}}}}},t},Jv=function(e){return e!=null},jBe={object:!0,function:!0,undefined:!0},$Be=/^\s*class[\s{/}]/,UBe=Function.prototype.toString,Yj=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch(r){return!1}return!function(r){if(!function(n){return!!Jv(n)&&hasOwnProperty.call(jBe,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch(n){return!1}}(t)}(e)&&!$Be.test(UBe.call(e))},MF=function(e){return e!=null},HBe=Object.keys,zBe=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return HBe(MF(e)?Object(e):e)},VBe=function(e){if(!MF(e))throw new TypeError("Cannot use null or undefined");return e},WBe=Math.max,Jj=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var r,n,a,i=WBe(arguments.length,2);for(e=Object(VBe(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n<i;++n)zBe(t=arguments[n]).forEach(a);if(r!==void 0)throw r;return e},GBe=Array.prototype.forEach,KBe=Object.create,qBe=function(e,t){var r;for(r in e)t[r]=e[r]},Zj=function(e){var t=KBe(null);return GBe.call(arguments,function(r){MF(r)&&qBe(Object(r),t)}),t},DC="razdwatrzy",XBe=String.prototype.indexOf,Jh=typeof DC.contains=="function"&&DC.contains("dwa")===!0&&DC.contains("foo")===!1?String.prototype.contains:function(e){return XBe.call(this,e,arguments[1])>-1},l2=Pm(function(e){var t=e.exports=function(r,n){var a,i,o,s,u;return arguments.length<2||typeof r!="string"?(s=n,n=r,r=null):s=arguments[2],Jv(r)?(a=Jh.call(r,"c"),i=Jh.call(r,"e"),o=Jh.call(r,"w")):(a=o=!0,i=!1),u={value:n,configurable:a,enumerable:i,writable:o},s?Jj(Zj(s),u):u};t.gs=function(r,n,a){var i,o,s,u;return typeof r!="string"?(s=a,a=n,n=r,r=null):s=arguments[3],Jv(n)?Yj(n)?Jv(a)?Yj(a)||(s=a,a=void 0):a=void 0:(s=n,n=a=void 0):n=void 0,Jv(r)?(i=Jh.call(r,"c"),o=Jh.call(r,"e")):(i=!0,o=!1),u={get:n,set:a,configurable:i,enumerable:o},s?Jj(Zj(s),u):u}}),OC=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},YBe=Pm(function(e,t){var r,n,a,i,o,s,u,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(g,m){var y;return OC(m),v.call(this,"__ee__")?y=this.__ee__:(y=h.value=f(null),d(this,"__ee__",h),h.value=null),y[g]?typeof y[g]=="object"?y[g].push(m):y[g]=[y[g],m]:y[g]=m,this},n=function(g,m){var y,x;return OC(m),x=this,r.call(this,g,y=function(){a.call(x,g,y),l.call(m,this,arguments)}),y.__eeOnceListener__=m,this},a=function(g,m){var y,x,b,E;if(OC(m),!v.call(this,"__ee__"))return this;if(!(y=this.__ee__)[g])return this;if(typeof(x=y[g])=="object")for(E=0;b=x[E];++E)b!==m&&b.__eeOnceListener__!==m||(x.length===2?y[g]=x[E?0:1]:x.splice(E,1));else x!==m&&x.__eeOnc
`:e)}function BC(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),ot("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?ot("br",null):null)}function Hk(e,t,r,n){return _1.set(e,t),kp.set(e,r),qe.isElement(e)?function(a,i){var o,s=X.findKey(i,a),u=i.isInline(a),l=D.isVoid(i,a),c=lQ(s.id),f={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":u},d=a.type,p=a.children,v=p===void 0?[]:p,h=function(E){return mQ[E]||uPe}(d);o=l?null:v.map(function(E,S){return Hk(E,S,a,i)});var g=h(a,o,i);if(l){f["data-slate-void"]=!0;var m=u?"span":"div",y=jt(Ie.texts(a),1),x=jt(y[0],1)[0],b=ot(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Hk(x,0,a,i));g=ot(m,{style:{position:"relative"}},g,b),_1.set(x,0),kp.set(x,a)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||u||(g=function(E,S){var w=S;return Uk.forEach(function(C){w=C(E,S)}),w}(a,g)),so(function(){var E=Ok(c);E!=null&&(Dk.set(s,E),dw.set(a,E),fw.set(E,a))}),g}(e,n):function(a,i,o){if(a.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(a));var s=X.findKey(o,a),u=o.getConfig().decorate;if(u==null)throw new Error("Can not get config.decorate");var l=X.findPath(o,a),c=u([a,l]),f=$e.decorations(a,c),d=f.map(function(h,g){var m=function(y,x,b,E,S){x===void 0&&(x=!1);var w=y.text,C=X.findPath(S,b),_=se.parent(C);if(D.isEditor(E))throw new Error("Text node "+JSON.stringify(b)+" parent is Editor");return S.isVoid(E)?BC(Ie.string(E).length):w!==""||E.children[E.children.length-1]!==b||S.isInline(E)||D.string(S,_)!==""?w===""?BC():x&&w.slice(-1)===`
`?n$(w,!0):n$(w):BC(0,!0)}(h,g===f.length-1,a,i,o);return m=function(y,x){var b=x;return Uk.forEach(function(E){b=E(y,b)}),b}(h,m),ot("span",{"data-slate-leaf":!0},m)}),p=function(h){return"w-e-text-"+h}(s.id),v=ot("span",{"data-slate-node":"text",id:p,key:s.id},d);return so(function(){var h=Ok(p);h!=null&&(Dk.set(s,h),dw.set(a,h),fw.set(h,a))}),v}(e,r,n)}function lPe(e,t){var r,n=e.$scroll,a=function(h){return"w-e-textarea-"+h}(e.id),i=t.getConfig(),o=i.readOnly,s=i.autoFocus,u=function(h,g){return g===void 0&&(g=!1),Ep("div#"+h,{props:{contentEditable:!g}})}(a,o),l=t.children||[];u.children=l.map(function(h,g){var m=Hk(h,g,t,t);return gQ(m),m});var c=gj.get(e);if(c==null&&(c=!0),c){var f=function(h,g){return te(`<div
id="`+h+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(a);n.append(f),e.$textArea=f,r=f[0],(p=Q5e([tDe,iDe,sDe,rDe,aDe,eDe]))(r,u),gj.set(e,!1),mj.set(e,p)}else{var d=yj.get(e),p=mj.get(e);if(d==null||p==null)return;r=d.elm,p(d,u)}if(r!=null||(r=Ok(a))!=null){if((c?s:t.isFocused())&&r.focus({preventScroll:!0}),c){var v=OF(r);v&&HZ.set(t,v)}DF.set(t,r),dw.set(t,r),fw.set(r,t),yj.set(e,u)}}function a$(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function i$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function PC(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return i$(r.overflowY,t)||i$(r.overflowX,t)||function(n){var a=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(o){return null}}(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)}(e)}return!1}function f2(e,t,r,n,a,i,o,s){return i<e&&o>t||i>e&&o<t?0:i<=e&&s<=r||o>=t&&s>=r?i-e-n:o>t&&s<r||i<e&&s>r?o-t+a:0}function o$(e,t){var r=window,n=t.scrollMode,a=t.block,i=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(he){return he!==o};if(!a$(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;a$(f)&&u(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&PC(f)&&!PC(document.documentElement)||f!=null&&PC(f,s)&&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,g=e.getBoundingClientRect(),m=g.height,y=g.width,x=g.top,b=g.right,E=g.bottom,S=g.left,w=a==="start"||a==="nearest"?x:a==="end"?E:x+m/2,C=i==="center"?S+y/2:i==="end"?b:S,_=[],O=0;O<c.length;O++){var P=c[O],F=P.getBoundingClientRect(),q=F.height,ee=F.width,J=F.top,Z=F.right,V=F.bottom,ie=F.left;if(n==="if-needed"&&x>=0&&S>=0&&E<=p&&b<=d&&x>=J&&E<=V&&S>=ie&&b<=Z)return _;var W=getComputedStyle(P),de=parseInt(W.borderLeftWidth,10),M=parseInt(W.borderTopWidth,10),A=parseInt(W.borderRightWidth,10),N=parseInt(W.borderBottomWidth,10),I=0,L=0,Y="offsetWidth"in P?P.offsetWidth-P.clientWidth-de-A:0,Q="offsetHeight"in P?P.offsetHeight-P.clientHeight-M-N:0;if(l===P)I=a==="start"?w:a==="end"?w-p:a==="nearest"?f2(h,h+p,p,M,N,h+w,h+w+m,m):w-p/2,L=i==="start"?C:i==="center"?C-d/2:i==="end"?C-d:f2(v,v+d,d,de,A,v+C,v+C+y,y),I=Math.max(0,I+h),L=Math.max(0,L+v);else{I=a==="start"?w-J-M:a==="end"?w-V+N+Q:a==="nearest"?f2(J,V,q,M,N+Q,w,w+m,m):w-(J+q/2)+Q/2,L=i==="start"?C-ie-de:i==="center"?C-(ie+ee/2)+Y/2:i==="end"?C-Z+A+Y:f2(ie,Z,ee,de,A+Y,C,C+y,y);var le=P.scrollLeft,ve=P.scrollTop;w+=ve-(I=Math.max(0,Math.min(ve+I,P.scrollHeight-q+Q))),C+=le-(L=Math.max(0,Math.min(le+L,P.scrollWidth-ee+Y)))}_.push({el:P,top:I,left:L})}return _}function s$(e){return e===Object(e)&&Object.keys(e).length!==0}function $i(e,t){return Xf(t)&&X.hasDOMNode(e,t,{editable:!0})}function u$(e,t){if(e.getConfig().readOnly)return!1;var r=gd(e,t)&&X.toSlateNode(e,t);return D.isVoid(e,r)}function gd(e,t){return Xf(t)&&X.hasDOMNode(e,t)}function yQ(e,t,r){r===void 0&&(r=!1);var n=t.selection,a=t.getConfig(),i=X.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var o=i.type!=="None";if(n||o){var s=DF.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),o&&u&&n){var l=X.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&be.equals(l,n)){var c=!0;if(be.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===s){var p=s.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||X.hasRange(t,n)){e.isUpdatingSelection=!0;var h=n&&X.toDOMRange(t,n);if(h){be.isBackward(n)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var m=document.bod
`+n:r;e.attr("data-tooltip",o),e.addClass("w-e-menu-tooltip-v5")}}}_F("match",function(e,t,r){return[function(n){var a=oo(this),i=n==null?void 0:Kf(n,e);return i?Ht(i,n,a):new RegExp(n)[e](gr(a))},function(n){var a=sn(this),i=gr(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return S1(a,i);var s=a.unicode;a.lastIndex=0;for(var u,l=[],c=0;(u=S1(a,i))!==null;){var f=gr(u[0]);l[c]=f,f===""&&(a.lastIndex=AF(i,th(a.lastIndex),s)),c++}return c===0?null:l}]});var VF=function(){function e(t,r,n){var a=this;n===void 0&&(n=!1),this.$elem=te('<div class="w-e-bar-item"></div>'),this.$button=te('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,o=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var s=r.title,u=r.hotkey,l=u===void 0?"":u,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=te(f);HF(p),d.append(p)}else d.text(s);bQ(d,f,s,l,n),n&&f&&d.append(te('<span class="title">'+s+"</span>")),o&&d.css("width",o+"px"),d.attr("data-menu-key",t),this.$elem.append(d),so(function(){return a.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),bi(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=bi(this),r=this.menu,n=r.getValue(t);r.exec(t,n)},e.prototype.setActive=function(){var t=bi(this),r=this.$button,n="active";this.menu.isActive(t)?r.addClass(n):r.removeClass(n)},e.prototype.setDisabled=function(){var t=bi(this),r=this.$button,n=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var a="disabled";n?r.addClass(a):r.removeClass(a),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),gPe=function(e){function t(r,n,a){return a===void 0&&(a=!1),e.call(this,r,n,a)||this}return nh(t,e),t.prototype.onButtonClick=function(){},t}(VF),WF=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var r=Tk.get(t);r==null&&(r=new Set,Tk.set(t,r)),r.add(this),Ax.set(this,t)},e.prototype.renderContent=function(t){var r=this.$elem;r.empty(),r.append(t);var n=this.genSelfElem();n&&r.append(n)},e.prototype.appendTo=function(t){var r=this.$elem;t.append(r)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Ax.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Ax.get(this);t&&t.emit("modalOrPanelHide")}},e}(),mPe=function(e){function t(r){var n=e.call(this,r)||this;return n.type="dropPanel",n.$elem=te('<div class="w-e-drop-panel"></div>'),n}return nh(t,e),t.prototype.genSelfElem=function(){return null},t}(WF),yPe=function(e){function t(r,n,a){a===void 0&&(a=!1);var i=e.call(this,r,n,a)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var o=zF();i.$button.append(o)}return i}return nh(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=bi(this);if(this.dropPanel==null){var a=new mPe(n),i=r.getPanelContentElem(n);a.renderContent(i),a.appendTo(this.$elem),a.show(),this.dropPanel=a}else{var o=this.dropPanel;o.isShow?o.hide():(i=r.getPanelContentElem(n),o.renderContent(i),o.show())}var s=this.dropPanel;if(s.isShow){var u=this.$elem,l=u.offset().left,c=u.parents(".w-e-bar");l-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(VF),xPe=function(e){function t(r,n){n===void 0&&(n=0);var a=e.call(this,r)||this;a.type="modal",a.$elem=te('<div class="w-e-modal"></div>'),a.width=0,n&&(a.width=n);var i=a.$elem;return i.on("click",function(o){return o.stopPropagation()}),i.on("keyup",function(o){o.code==="Escape"&&(a.hide(),r.restoreSelection())}),a}return nh(t,e),t.prototype.genSelfElem=function(){var r=this,n=te('<span class="btn-close"><svg viewBox="0 0 1024 102
`)},y.getSelectionText=function(){var w=y.selection;return w==null?"":D.string(m,w)},y.getElemsByType=function(w,C){var _,O;C===void 0&&(C=!1);var P=[],F=D.nodes(y,{at:[],universal:!0});try{for(var q=Wi(F),ee=q.next();!ee.done;ee=q.next()){var J=jt(ee.value,1)[0];if(qe.isElement(J)&&(C?J.type.indexOf(w)>=0:J.type===w)){var Z=lQ(X.findKey(y,J).id);P.push(Vi(Vi({},J),{id:Z}))}}}catch(V){_={error:V}}finally{try{ee&&!ee.done&&(O=q.return)&&O.call(q)}finally{if(_)throw _.error}}return P},y.getElemsByTypePrefix=function(w){return y.getElemsByType(w,!0)},y.isEmpty=function(){var w=y.children,C=w===void 0?[]:w;if(C.length>1)return!1;var _=C[0];if(_==null)return!0;if(qe.isElement(_)&&_.type==="paragraph"){var O=_.children,P=O===void 0?[]:O;if(P.length>1)return!1;var F=P[0];if(F==null||$e.isText(F)&&F.text==="")return!0}return!1},y.clear=function(){pe.delete(y,{at:{anchor:D.start(y,[]),focus:D.end(y,[])}}),y.children.length===0&&pe.insertNodes(y,[{type:"paragraph",children:[{text:""}]}])},y.getParentNode=function(w){return X.getParentNode(y,w)},y.dangerouslyInsertHtml=function(w,C){if(w===void 0&&(w=""),C===void 0&&(C=!1),w){var _=document.createElement("div");_.innerHTML=w;var O=Array.from(_.childNodes);if(O=O.filter(function(ee){var J=ee.nodeType,Z=ee.nodeName;return J===ss.TEXT_NODE||J===ss.ELEMENT_NODE&&!qj.has(Z.toLowerCase())}),O.length!==0){var P=y.selection;if(P!=null){var F=null;X.isSelectedEmptyParagraph(y)&&!C&&(F=[P.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var q=0;O.forEach(function(ee){var J=ee.nodeType,Z=ee.nodeName,V=ee.textContent,ie=V===void 0?"":V;if(J!==ss.TEXT_NODE)if(Z!=="BR"){var W=ee,de=!1;if(cQ.includes(Z.toLowerCase()))de=!0;else for(var M in vw)if(W.matches(M)){de=!0;break}if(de){var A=LF(te(W),y);return Array.isArray(A)?(A.forEach(function(I){return Xj(y,I)}),q++):(Xj(y,A),q++),void(X.isSelectedVoidNode(y)&&y.move(1))}var N=window.getComputedStyle(W).display;X.isSelectedEmptyParagraph(y)||N.indexOf("inline")<0&&y.insertBreak(),y.dangerouslyInsertHtml(W.innerHTML,!0)}else y.insertText(`
`);else{if(!ie||!ie.trim())return;y.insertNode({text:ie})}}),q&&F&&X.isEmptyPath(y,F)&&pe.removeNodes(y,{at:F}),_.remove()}}}},y.setHtml=function(w){w===void 0&&(w="");var C=y.isDisabled(),_=y.isFocused(),O=JSON.stringify(y.selection);y.enable(),y.focus(),y.clear();var P=Wj(y,w);if(pe.insertFragment(y,P),_||(y.deselect(),y.blur()),C&&(y.deselect(),y.disable()),y.isFocused())try{y.select(JSON.parse(O))}catch(F){y.select(D.start(y,[]))}},y}(function(m){var y=m;return y.getAllMenuKeys=function(){var x=[];for(var b in A1)x.push(b);return x},y.getConfig=function(){var x=vj.get(y);if(x==null)throw new Error("Can not get editor config");return x},y.getMenuConfig=function(x){var b=y.getConfig().MENU_CONF;return(b===void 0?{}:b)[x]||{}},y.alert=function(x,b){b===void 0&&(b="info");var E=y.getConfig().customAlert;E&&E(x,b)},y}(function(m){var y=MBe(sTe());return y.id="wangEditor-"+G7e++,y.isDestroyed=!1,y.isFullScreen=!1,y.focus=function(x){if(X.toDOMNode(y,y).focus({preventScroll:!0}),bf.set(y,!0),x){var b=D.end(y,[]);pe.select(y,b)}else{var E=pC.get(y);E?pe.select(y,E):pe.select(y,D.start(y,[]))}},y.isFocused=function(){return!!bf.get(y)},y.blur=function(){X.toDOMNode(y,y).blur(),pe.deselect(y),bf.set(y,!1)},y.updateView=function(){X.getTextarea(y).changeViewState();var x=X.getToolbar(y);x&&x.changeToolbarState();var b=X.getHoverbar(y);b&&b.changeHoverbarState()},y.destroy=function(){if(!y.isDestroyed){var x=X.getTextarea(y);x.destroy(),_k.delete(y),Ak.delete(x);var b=X.getToolbar(y);b&&(b.destroy(),w4.delete(y),kF.delete(b));var E=X.getHoverbar(y);E&&(E.destroy(),cw.delete(y),kk.delete(E)),y.isDestroyed=!0,y.emit("destroyed")}},y.scrollToElem=function(x){if(!y.getConfig().scroll){var b="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return b+=`
You has disabled editor scroll, please do this yourself`,void console.warn(b)}var E=te("#"+x);if(E.length!==0){var S=E[0];if(!X.hasDOMNode(y,S))return b="Element (found by id is '"+x+"') is not in editor DOM",b+=`
通过 id '`+x+"' 找到的 element 不在 editor DOM 之内",void console.error(b,S);var w=X.getTextarea(y),C=w.$textAreaContainer,_=w.$scroll,O=E.offset().top,P=C.offset().top;_[0].scrollBy({top:O-P,behavior:"smooth"})}},y.showProgressBar=function(x){x<1||X.getTextarea(y).changeProgress(x)},y.hidePanelOrModal=function(){var x=Tk.get(y);x!=null&&x.forEach(function(b){return b.hide()})},y.enable=function(){y.getConfig().readOnly=!1,y.updateView()},y.disable=function(){y.getConfig().readOnly=!0,y.updateView()},y.isDisabled=function(){return y.getConfig().readOnly},y.toDOMNode=function(x){return X.toDOMNode(y,x)},y.fullScreen=function(){if(!y.isFullScreen){var x=null,b=X.getToolbar(y);b&&(x=b.$box);var E=X.getTextarea(y).$box.parent();if(x&&x.parent()[0]!==E[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);E.addClass("w-e-full-screen-container");var S=E.css("z-index");E.attr("data-z-index",S.toString()),y.isFullScreen=!0,y.emit("fullScreen")}},y.unFullScreen=function(){if(y.isFullScreen){var x=X.getTextarea(y).$box.parent();setTimeout(function(){x.removeClass("w-e-full-screen-container"),y.isFullScreen=!1,y.emit("unFullScreen")},200)}},y.getEditableContainer=function(){return X.getTextarea(y).$textAreaContainer[0]},y}()))))));if(r&&function(m,y){return hQ(m,"data-w-e-textarea",y)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(m){m===void 0&&(m={});var y=ZJ(GZ),x={},b=m.MENU_CONF,E=b===void 0?{}:b;return JO(y,function(S,w){x[w]=Vi(Vi({},S),E[w]||{})}),delete m.MENU_CONF,Vi({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:x,hoverbarKeys:{},customAlert:function(S,w){window.alert(w+`:
`+S)}},m)}(a);vj.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(u.forEach(function(m){l=m(l)}),o!=null&&(l.children=Wj(l,o)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),X.normalizeContent(l),r){var p=new vPe(r);_k.set(l,p),Ak.set(p,l),p.changeViewState(),so(function(){var m=p.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var v=void 0;Object.keys(d).length>0&&(v=new CPe,kk.set(v,l),cw.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,y){return EQ(m,y,l,l)});var h=c.onCreated,g=c.onDestroyed;return h&&l.on("created",function(){return h(l)}),g&&l.on("destroyed",function(){return g(l)}),so(function(){return l.emit("created")}),l}var APe=m4("splice"),kPe=Be.TypeError,TPe=Math.max,DPe=Math.min;Mr({target:"Array",proto:!0,forced:!APe},{splice:function(e,t){var r,n,a,i,o,s,u=pc(this),l=b0(u),c=Sp(e,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=DPe(TPe(Nm(t),0),l-c)),l+r-n>9007199254740991)throw kPe("Maximum allowed length exceeded");for(a=xZ(u,n),i=0;i<n;i++)(o=c+i)in u&&w1(a,i,u[o]);if(a.length=n,r<n){for(i=c;i<l-n;i++)s=i+r,(o=i+n)in u?u[s]=u[o]:delete u[s];for(i=l;i>l-n+r;i--)delete u[i-1]}else if(r>n)for(i=l-n;i>c;i--)s=i+r-1,(o=i+n-1)in u?u[s]=u[o]:delete u[s];for(i=0;i<r;i++)u[i+c]=arguments[i+2];return u.length=l-n+r,a}});var OPe=function(){function e(t,r){var n=this;this.$toolbar=te('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=JJ(function(){n.toolbarItems.forEach(function(o){o.changeMenuState()})},200),this.config=r;var a=te(t);if(a.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=a;var i=this.$toolbar;i.on("mousedown",function(o){return o.preventDefault()},{passive:!1}),a.append(i),so(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,r="",n=this.$toolbar,a=this.config,i=a.toolbarKeys,o=i===void 0?[]:i,s=a.insertKeys,u=s===void 0?{index:0,keys:[]}:s,l=a.excludeKeys,c=l===void 0?[]:l,f=ZJ(o);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(v,h){f.splice(u.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 g=xQ();return n.append(g),void(r=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(r=v);t.registerGroup(v),r="group"})},e.prototype.registerGroup=function(t){var r=this,n=this.$toolbar,a=function(l){return new c$(l)}(t),i=t.menuKeys,o=i===void 0?[]:i,s=this.config.excludeKeys,u=s===void 0?[]:s;o.forEach(function(l){u.includes(l)||r.registerSingleItem(l,a)}),n.append(a.$elem)},e.prototype.registerSingleItem=function(t,r){var n=this.getEditorInstance(),a=r instanceof c$,i=this.menus,o=i[t];if(o==null){var s=A1[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=s(),i[t]=o}else console.warn("Duplicated toolbar menu key '"+t+`'
重复注册了菜单栏 menu '`+t+"'");var u=wQ(t,o,a);this.toolbarItems.push(u),TF.set(u,n),a?r.appendBarItem(u):r.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=kF.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),FPe=eh.EXISTS,BPe=Ko.f,SQ=Function.prototype,PPe=Ye(SQ.toString),CQ=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,NPe=Ye(CQ.exec);function _Q(e){var t=e.server,r=t===void 0?"":t,n=e.fieldName,a=n===void 0?"":n,i=e.maxFileSize,o=i===void 0?10485760:i,s=e.maxNumberOfFiles,u=s===void 0?100:s,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,v=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,m=e.timeout,y=m===void 0?1e4:m,x=e.onBeforeUpload,b=x===void 0?function(q){return q}:x,E=e.onSuccess,S=E===void 0?function(q,ee){}:E,w=e.onError,C=w===void 0?function(q,ee,J){console.error(q.name+" upload error",ee,J)}:w,_=e.onProgress,O=_===void 0?function(q){}:_;if(!r)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!a)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var P=r;d&&(P=function(q,ee){var J=jt(q.split("#"),2),Z=J[0],V=J[1],ie=[];JO(ee,function(de,M){ie.push(M+"="+de)});var W=ie.join("&");return Z=Z.indexOf("?")>0?Z+"&"+W:Z+"?"+W,V?Z+"#"+V:Z}(P,c));var F=new qv({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:u},meta:c}).use(sFe,{endpoint:P,headers:v,formData:!0,fieldName:a,bundle:!0,withCredentials:g,timeout:y});return F.on("upload-success",function(q,ee){var J=ee.body,Z=J===void 0?{}:J;try{S(q,Z)}catch(V){console.error("wangEditor upload file - onSuccess error",V)}F.removeFile(q.id)}),F.on("progress",function(q){q<1||O(q)}),F.on("upload-error",function(q,ee,J){try{C(q,ee,J)}catch(Z){console.error("wangEditor upload file - onError error",Z)}F.removeFile(q.id)}),F.on("restriction-failed",function(q,ee){try{C(q,ee)}catch(J){console.error("wangEditor upload file - onError error",J)}F.removeFile(q.id)}),F}function Tl(e){return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function IPe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.forEach(function(a){IPe(e,a,r[a])})}return e}function gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mu(e,t,r){return t&&d$(e.prototype,t),r&&d$(e,r),e}function Yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T1(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(e)}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Tp(e)}function zk(e,t){return zk=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},zk(e,t)}function E4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zk(e,t)}Vn&&!FPe&&BPe(SQ,"name",{configurable:!0,get:function(){try{return NPe(CQ,PPe(this))[1]}catch(e){return""}}});var RPe={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Zs=new(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gu(this,e),this.init(t,r)}return mu(e,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||RPe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),t
`)&&e.flags==="s")}),mIe=vt.RegExp,yIe=jr(function(){var e=mIe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xIe=Yk.get,bIe=JF("native-string-replace",String.prototype.replace),Cw=RegExp.prototype.exec,Zk=Cw,wIe=it("".charAt),EIe=it("".indexOf),SIe=it("".replace),VC=it("".slice),WC=(zC=/b*/g,Yr(Cw,$$=/a/,"a"),Yr(Cw,zC,"a"),$$.lastIndex!==0||zC.lastIndex!==0),U$=qQ.BROKEN_CARET,GC=/()??/.exec("")[1]!==void 0;(WC||GC||U$||gIe||yIe)&&(Zk=function(e){var t,r,n,a,i,o,s,u=this,l=xIe(u),c=Lr(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Yr(Zk,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=U$&&u.sticky,v=Yr(KQ,u),h=u.source,g=0,m=c;if(p&&(v=SIe(v,"y",""),EIe(v,"g")===-1&&(v+="g"),m=VC(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&wIe(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),GC&&(r=new RegExp("^"+h+"$(?!\\s)",v)),WC&&(n=u.lastIndex),a=Yr(Cw,p?r:u,m),p?a?(a.input=VC(a.input,g),a[0]=VC(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:WC&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),GC&&a&&a.length>1&&Yr(bIe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=JQ(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var F1=Zk;Pn({target:"RegExp",proto:!0,forced:/./.exec!==F1},{exec:F1});var l9=Function.prototype,H$=l9.apply,CIe=l9.bind,z$=l9.call,ZQ=typeof Reflect=="object"&&Reflect.apply||(CIe?z$.bind(H$):function(){return z$.apply(H$,arguments)}),_Ie=Pi("species"),KC=RegExp.prototype,c9=function(e,t,r,n){var a=Pi(e),i=!jr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!jr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[_Ie]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=it(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=it(l),h=c.exec;return h===F1||h===KC.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});D1(String.prototype,e,u[0]),D1(KC,a,u[1])}n&&Dp(KC[a],"sham",!0)},AIe=it("".charAt),V$=it("".charCodeAt),kIe=it("".slice),TIe=function(e){return function(t,r){var n,a,i=Lr(uo(t)),o=sh(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=V$(i,o))<55296||n>56319||o+1===s||(a=V$(i,o+1))<56320||a>57343?e?AIe(i,o):n:e?kIe(i,o,o+2):a-56320+(n-55296<<10)+65536}},DIe=TIe(!0),f9=function(e,t,r){return t+(r?DIe(e,t).length:1)},OIe=Math.floor,qC=it("".charAt),FIe=it("".replace),XC=it("".slice),BIe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,PIe=/\$([$&'`]|\d{1,2})/g,NIe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=PIe;return a!==void 0&&(a=Mm(a),u=BIe),FIe(i,u,function(l,c){var f;switch(qC(c,0)){case"$":return"$";case"&":return e;case"`":return XC(t,0,r);case"'":return XC(t,o);case"<":f=a[XC(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=OIe(d/10);return p===0?l:p<=s?n[p-1]===void 0?qC(c,1):n[p-1]+qC(c,1):l}f=n[d-1]}return f===void 0?"":f})},IIe=vt.TypeError,B1=function(e,t){var r=e.exec;if(ia(r)){var n=Yr(r,e,t);return n!==null&&Si(n),n}if(Dl(e)==="RegExp")return Yr(F1,e,t);throw IIe("RegExp#exec called on incompatible receiver")},Qk=Pi("replace"),RIe=Math.max,LIe=Math.min,MIe=it([].concat),YC=it([].push),W$=it("".indexOf),G$=it("".slice),jIe="a".replace(/./,"$0")==="$0",K$=!!/./[Qk]&&/./[Qk]("a","$0")==="";c9("replace",function(e,t,r){var n=K$?"$":"$0";return[function(a,i){var o=uo(this),s=a==null?void 0:A4(a,Qk);return s?Yr(s,a,o,i):Yr(t,Lr(o),a,i)},function(a,i){var o=Si(this),s=Lr(a);if(typeof i=="string"&&W$(i,n)===-1&&W$(i,"$<")===-1){var u=r(t,o,s,i);if(u.done)return u.value}var l=ia(i);l||(i=Lr(i));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=B1(o,s);if(p===null||(YC(d,p),!c))break;Lr(p[0])===""&&(o.lastIndex=f9(s,jm(o.lastIndex),f))}for(var v,h="",g=0,m=0;m<d.length;m++){for(var y=Lr((p=d[m])[0]),x=RIe(LIe(sh(p.index),s.length),0),b=[],E=1;E<p.length;E++)YC(b,(v=p[E])===void 0?v:String(v));var S=p.groups;if(l){var w=MIe([y],b,x,s);S!==void 0&&YC(w,S);var C=Lr(ZQ(i,void 0,w))}else C=NIe(y,s,x,b,S,i);x>=g&&(h+=G$(s,g,x)+C,g=x+y.length)}return h+G$(s,g)}]},!!jr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!jIe||K$);var eT=Pi("unscopables"),tT=Array.prototype;tT[eT]==null&&oh.f(tT,eT,{configurable:!0,value:JQ(null)});var QQ=function(e){tT[eT][e]=!0},$Ie=D4.find,q$=!0;"find"in[]&&Array(1).find(function(){q$=!1}),Pn({target:"Array",proto:!0,forced:q$},{find:function(e){return $Ie(this,e,arguments.length>1?arguments[1]:void 0)}}),QQ("find");var UIe=Pi("match"),eee=function(e){var t;return Gi(e)&&((t=e[UIe])!==void 0?!!t:Dl(e)=="RegExp")},HIe=vt.TypeError,zIe=Pi("species"),tee=function(e,t,r){var n=ZF(t);n in e?oh.f(e,n,qF(0,r)):e[n]=r},VIe=vt.Array,WIe=Math.max,X$=function(e,t,r){for(var n=T4(e),a=O1(t,n),i=O1(r
\v\f\r    \u2028\u2029\uFEFF`,Y$=it("".replace),_w="["+rT+"]",qIe=RegExp("^"+_w+_w+"*"),XIe=RegExp(_w+_w+"*$"),JC=function(e){return function(t){var r=Lr(uo(t));return 1&e&&(r=Y$(r,qIe,"")),2&e&&(r=Y$(r,XIe,"")),r}},YIe={start:JC(1),end:JC(2),trim:JC(3)},JIe=k4.PROPER,ZIe=YIe.trim;function d9(e){return te("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function uh(e){return e.length===0?"":e[0].outerHTML}function lh(e){return e.length?e[0].tagName.toLowerCase():""}function $o(e,t){for(var r="",n=(e.attr("style")||"").split(";"),a=n.length,i=0;i<a;i++){var o=n[i];if(o){var s=o.split(":");s[0].trim()===t&&(r=s[1].trim())}}return r}Pn({target:"String",proto:!0,forced:jr(function(){return!!rT.trim()||"…".trim()!=="…"||JIe&&rT.trim.name!=="trim"})},{trim:function(){return ZIe(this)}}),Pn({global:!0},{globalThis:vt}),Yb&&(te.fn.css=Yb),io&&(te.fn.append=io),LL&&(te.fn.prepend=LL),dp&&(te.fn.addClass=dp),pp&&(te.fn.removeClass=pp),hp&&(te.fn.hasClass=hp),_s&&(te.fn.on=_s),PL&&(te.fn.off=PL),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Gb&&(te.fn.removeAttr=Gb),gp&&(te.fn.hide=gp),Xb&&(te.fn.show=Xb),Qb&&(te.fn.parents=Qb),vp&&(te.fn.dataset=vp),Cs&&(te.fn.val=Cs),Zb&&(te.fn.text=Zb),Yl&&(te.fn.html=Yl),xp&&(te.fn.children=xp),bp&&(te.fn.remove=bp),yp&&(te.fn.find=yp),Kb&&(te.fn.width=Kb),qb&&(te.fn.height=qb),IL&&(te.fn.filter=IL),wp&&(te.fn.empty=wp);var QIe={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);return(t=t.filter(function(a){return!!$e.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},nT=function(e,t){return nT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},nT(e,t);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function Nr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}nT(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ec=function(){return ec=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ec.apply(this,arguments)};function vc(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?a(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(o,s)}u((n=n.apply(e,t||[])).next())})}function gc(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(f){c=[6,f],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function nee(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function J$(e){var t=Xt(D.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var r=t[0];if(!qe.isElement(r)||r.type==="paragraph"||Ie.string(r)!=="")return!1;var n=r.children,a=n===void 0?[]:n;return!!$e.isText(a[0])&&(pe.setNodes(e,{type:"paragraph"}),!0)}var eRe={renderElems:[iNe],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[QIe],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(a){J$(n)||t(a)},n.deleteForward=function(a){J$(n)||r(a)},n}},tRe=/"/g,rRe=it("".replace),Zv=function(e,t,r,n){var a=Lr(uo(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+rRe(Lr(n),tRe,"&quot;")+'"'),i+">"+a+"</"+t+">"},Qv=function(e){return jr(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function ZC(e,t){var r=t,n=e,a=n.bold,i=n.italic,o=n.underline;return a&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),o&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Dc(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Pn({target:"String",proto:!0,forced:Qv("bold")},{bold:function(){return Zv(this,"b","","")}}),Pn({target:"String",proto:!0,forced:Qv("italics")},{italics:function(){return Zv(this,"i","","")}}),Pn({target:"String",proto:!0,forced:Qv("sub")},{sub:function(){return Zv(this,"sub","","")}}),Pn({target:"String",proto:!0,forced:Qv("sup")},{sup:function(){return Z
<li data-value="0" class="clear">
<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>
`+s+`
</li>
`);return a.prepend(u),a[0]},e}(),sLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("color.color"),r.iconSvg=fRe,r.mark="color",r}return Nr(t,e),t}(vee),uLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("color.bgColor"),r.iconSvg=dRe,r.mark="bgColor",r}return Nr(t,e),t}(vee),aU=["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)"],lLe={renderStyle:function(e,t){var r=e,n=r.color,a=r.bgColor,i=t;return n&&Jf(i,{color:n}),a&&Jf(i,{backgroundColor:a}),i},styleToHtml:function(e,t){if(!$e.isText(e))return t;var r,n=e,a=n.color,i=n.bgColor;return a||i?((d9(t)||lh(r=te(t))!=="span")&&(r=te("<span>"+t+"</span>")),a&&r.css("color",a),i&&r.css("background-color",i),uh(r)):t},preParseHtml:[oLe],parseStyleHtml:function(e,t,r){var n=te(e);if(!$e.isText(t))return t;var a=t,i=$o(n,"color");i&&(a.color=i);var o=$o(n,"background-color");return o||(o=$o(n,"background")),o&&(a.bgColor=o),a},menus:[{key:"color",factory:function(){return new sLe},config:{colors:aU}},{key:"bgColor",factory:function(){return new uLe},config:{colors:aU}}]},cLe=/^(?:\w+:)?\/\/(\S+)$/,fLe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,dLe=/^[^\s\.]+\.\S{2,}$/,pLe=UQ.includes;function O4(e){return e===void 0&&(e="r"),e+"-"+LJ()}function p9(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gee(e,t,r,n){return vc(this,void 0,void 0,function(){var a,i;return gc(this,function(o){switch(o.label){case 0:return(a=t.getMenuConfig(e).checkLink)?[4,a(r,n)]:[3,2];case 1:if(typeof(i=o.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];o.label=2;case 2:return[2,!0]}})})}function mee(e,t,r){return vc(this,void 0,void 0,function(){var n;return gc(this,function(a){switch(a.label){case 0:return(n=t.getMenuConfig(e).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,a.sent()];case 2:return[2,r]}})})}function h9(e){return e.selection==null||!!X.getSelectedElems(e).some(function(t){var r=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(r)||void 0})}function n_(e,t){return{type:"link",url:p9(e),children:t?[{text:t}]:[]}}function yee(e,t,r){return vc(this,void 0,void 0,function(){var n,a,i;return gc(this,function(o){switch(o.label){case 0:return r?(t||(t=r),e.restoreSelection(),h9(e)?[2]:[4,gee("insertLink",e,t,r)]):[2];case 1:return o.sent()?[4,mee("insertLink",e,r)]:[2];case 2:return n=o.sent(),(a=e.selection)==null||(be.isCollapsed(a)?(e.insertText(" "),i=n_(n,t),pe.insertNodes(e,i),e.insertFragment([{text:" "}])):D.string(e,a)!==t?(e.deleteFragment(),i=n_(n,t),pe.insertNodes(e,i)):(i=n_(n),pe.wrapNodes(e,i,{split:!0}),pe.collapse(e,{edge:"end"}))),[2]}})})}Pn({target:"Array",proto:!0},{includes:function(e){return pLe(this,e,arguments.length>1?arguments[1]:
`)return e.deleteBackward("character"),void pe.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
`)},n}},KLe=function(){function e(){this.title=Re("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Xt(D.nodes(t,{match:function(r){return X.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var r=te('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var o=i.target;if(o!=null){i.preventDefault();var s=te(o).text();t.insertText(s)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var a=t.getMenuConfig("emotion").emotions;return(a===void 0?[]:a).forEach(function(i){var o=te("<li>"+i+"</li>");n.append(o)}),n[0]},e}(),qLe={menus:[{key:"emotion",factory:function(){return new KLe},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},XLe={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},YLe={selector:"font",preParseHtml:function(e){var t=te(e);if(lh(t)!=="font")return e;var r=t.attr("size")||"";r&&(t.removeAttr("size"),t.css("font-size",XLe[r]));var n=t.attr("face")||"";return n&&(t.removeAttr("face"),t.css("font-family",n)),t[0]}},JLe=it("".indexOf);Pn({target:"String",proto:!0,forced:!fee("includes")},{includes:function(e){return!!~JLe(Lr(uo(this)),Lr(cee(e)),arguments.length>1?arguments[1]:void 0)}});var $u,Ox,m2=function(e){return e&&e.Math==Math&&e},At=m2(typeof globalThis=="object"&&globalThis)||m2(typeof window=="object"&&window)||m2(typeof self=="object"&&self)||m2(typeof xw=="object"&&xw)||function(){return this}()||Function("return this")(),g9=Function.prototype,fU=g9.apply,ZLe=g9.bind,dU=g9.call,See=typeof Reflect=="object"&&Reflect.apply||(ZLe?dU.bind(fU):function(){return dU.apply(fU,arguments)}),Cee=Function.prototype,oT=Cee.bind,sT=Cee.call,QLe=oT&&oT.bind(sT),Jr=oT?function(e){return e&&QLe(sT,e)}:function(e){return e&&function(){return sT.apply(e,arguments)}},oa=function(e){return typeof e=="function"},Oi=function(e){try{return!!e()}catch(t){return!0}},ai=!Oi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sv=Function.prototype.call,No=sv.bind?sv.bind(sv):function(){return sv.apply(sv,arguments)},pU={}.propertyIsEnumerable,hU=Object.getOwnPropertyDescriptor,eMe=hU&&!pU.call({1:2},1)?function(e){var t=hU(this,e);return!!t&&t.enumerable}:pU,m9={f:eMe},Zf=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tMe=Jr({}.toString),rMe=Jr("".slice),Cf=function(e){return rMe(tMe(e),8,-1)},s_=At.Object,nMe=Jr("".split),_ee=Oi(function(){return!s_("z").propertyIsEnumerable(0)})?function(e){return Cf(e)=="String"?nMe(e,""):s_(e)}:s_,aMe=At.TypeError,y9=function(e){if(e==null)throw aMe("Can't call method on "+e);return e},Rs=function(e){return _ee(y9(e))},Ki=function(e){return typeof e=="object"?e!==null:oa(e)},Hi={},vU=function(e
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});pe.insertNodes(t,a,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,r){var n,a,i=[],o=D.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var s=nee(o),u=s.next();!u.done;u=s.next()){var l=Xt(u.value,1)[0];l&&i.push(Ie.string(l))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(n)throw n.error}}pe.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
`)}]}]};pe.insertNodes(t,c,{mode:"highest"})},e}(),f$e={key:"codeBlock",factory:function(){return new c$e}};Pn({target:"String",proto:!0,forced:Qv("anchor")},{anchor:function(e){return Zv(this,"a","name",e)}}),c9("match",function(e,t,r){return[function(n){var a=uo(this),i=n==null?void 0:A4(n,e);return i?Yr(i,n,a):new RegExp(n)[e](Lr(a))},function(n){var a=Si(this),i=Lr(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return B1(a,i);var s=a.unicode;a.lastIndex=0;for(var u,l=[],c=0;(u=B1(a,i))!==null;){var f=Lr(u[0]);l[c]=f,f===""&&(a.lastIndex=f9(i,jm(a.lastIndex),s)),c++}return c===0?null:l}]});var d$e={type:"pre",renderElem:function(e,t,r){return ot("pre",null,t)}},p$e={type:"code",renderElem:function(e,t,r){return ot("code",null,t)}},h$e={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);return(t=t.filter(function(a){return X.getNodeType(a)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:t.filter(function(a){return X.getNodeType(a)==="code"})}}},v$e={menus:[f$e],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,n=e.insertData;e.insertNode;var a=e;return a.insertBreak=function(){var i=X.getSelectedNodeByType(a,"code");if(i!=null){var o=function(l,c){var f=c.selection;if(f==null)return"";var d=Ie.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
`),h=v.length;return h===0?"":v[h-1]}(i,a);if(o){var s=o.match(/^\s+/);if(s!=null&&s[0]!=null){var u=s[0];return void a.insertText(`
`+u)}}a.insertText(`
`)}else t()},a.normalizeNode=function(i){var o=Xt(i,2),s=o[0],u=o[1],l=X.getNodeType(s);return l==="code"&&u.length<=1&&pe.setNodes(a,{type:"paragraph"},{at:u}),l==="pre"&&(X.isLastNode(a,s)&&pe.insertNodes(a,X.genEmptyParagraph(),{at:[u[0]+1]}),X.getNodeType(s.children[0])!=="code"&&(pe.unwrapNodes(a),pe.setNodes(a,{type:"paragraph"},{mode:"highest"}))),r([s,u])},a.insertData=function(i){if(X.getSelectedNodeByType(a,"code")!=null){var o=i.getData("text/plain");D.insertText(a,o)}else n(i)},a},renderElems:[d$e,p$e],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=te(e);if(lh(t)!=="code")return e;var r=t.find("xmp");if(r.length===0)return e;var n=r.text();return r.remove(),t.text(n),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,r){return{type:"code",language:"",children:[{text:te(e)[0].textContent||""}]}}},h$e]},g$e=function(){function e(){this.title=Re("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,r){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),m$e={menus:[{key:"fullScreen",factory:function(){return new g$e}}]},y$e=function(){function e(){this.title=Re("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!!be.isExpanded(r)},e.prototype.exec=function(t,r){var n=t.selection;if(n!=null){var a=[n.anchor.path[0]];pe.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:a}),t.select(D.start(t,a))}},e}(),x$e=[FRe,lLe,Hje,Gje,Jje,Qje,PLe,i$e,qLe,bLe,v$e,GLe,aLe,eRe,LLe,r$e,m$e,{menus:[{key:"enter",factory:function(){return new y$e}}]}];oi("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),oi("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var qU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A9(e){var t={exports:{}};return e(t,t.exports),t.exports}var Hu,Bx,w2=function(e){return e&&e.Math==Math&&e},st=w2(typeof globalThis=="object"&&globalThis)||w2(typeof window=="object"&&window)||w2(typeof self=="object"&&self)||w2(typeof qU=="object"&&qU)||function(){re
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function Tte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}NT(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function BH(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pg(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function PH(e){return D.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var cHe=ite.includes;rc({target:"Array",proto:!0},{includes:function(e){return cHe(this,e,arguments.length>1?arguments[1]:void 0)}}),Fg("includes");var NH,O_,fHe=function(){var e=si(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},V9=st.RegExp,IT=Wr(function(){var e=V9("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),dHe=IT||Wr(function(){return!V9("a","y").sticky}),pHe={BROKEN_CARET:IT||Wr(function(){var e=V9("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:dHe,UNSUPPORTED_Y:IT},hHe=st.RegExp,vHe=Wr(function(){var e=hHe(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),gHe=st.RegExp,mHe=Wr(function(){var e=gHe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),yHe=As.get,xHe=T9("native-string-replace",String.prototype.replace),Hw=RegExp.prototype.exec,RT=Hw,bHe=Dt("".charAt),wHe=Dt("".indexOf),EHe=Dt("".replace),F_=Dt("".slice),B_=(O_=/b*/g,Nn(Hw,NH=/a/,"a"),Nn(Hw,O_,"a"),NH.lastIndex!==0||O_.lastIndex!==0),IH=pHe.BROKEN_CARET,P_=/()??/.exec("")[1]!==void 0;(B_||P_||IH||vHe||mHe)&&(RT=function(e){var t,r,n,a,i,o,s,u=this,l=yHe(u),c=Gs(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Nn(RT,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=IH&&u.sticky,v=Nn(fHe,u),h=u.source,g=0,m=c;if(p&&(v=EHe(v,"y",""),wHe(v,"g")===-1&&(v+="g"),m=F_(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&bHe(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),P_&&(r=new RegExp("^"+h+"$(?!\\s)",v)),B_&&(n=u.lastIndex),a=Nn(Hw,p?r:u,m),p?a?(a.input=F_(a.input,g),a[0]=F_(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:B_&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),P_&&a&&a.length>1&&Nn(xHe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=I9(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var zw=RT;rc({target:"RegExp",proto:!0,forced:/./.exec!==zw},{exec:zw});var Dte=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var r=this.type;return X.getSelectedNodeByType(t,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var r=this.getListNode(t);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!X.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},e.prototype.exec=function(t,r){this.isActive(t)?pe.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):pe.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),SHe='<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>',CHe='<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>',_He=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=Re("listModule.unOrderedList"),r.iconSvg=SHe,r}return Tte(t,e),t}(Dte),AHe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=Re("listModule.orderedList"),r.iconSvg=CHe,r}return Tte(t,e),t}(Dte),kHe={key:"bulletedList",factory:function(){return new _He}},THe={key:"numberedList",factory:function(){return new AHe}},RH=[],DHe={type:"list-item",elemToHtml:function(e,t){var r="",n="",a=e.ordered,i=a!==void 0&&a?"ol":"ul",o=function(l){var c=PT.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,g=h===void 0?0:h,m=X.findPath(c,l);if(m[0]===0)return g+1;var y=se.previous(m),x=D.node(c,y);if(!x)return 0;var b=Pg(x,1)[0];if(X.getNodeType(b)!==d)return g+1;var E=b,S=E.ordered,w=S!==void 0&&S,C=E.level,_=C===void 0?0:C;return _<g?g-_:_>g?0:_===g?w===v?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)r+="<"+i+">",RH.push(i);var u=function(l){var c=PT.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,g=h===void 0?0:h,m=X.findPath(c,l);if(m[0]===c.children.length-1)return g+1;var y=se.next(m),x=D.node(c,y);if(!x)return 0;var b=Pg(x,1)[0];if(X.getNodeType(b)!==d)return g+1;var E=b,S=E.ordered,w=S!==void 0&&S,C=E.level,_=C===void 0?0:C;return _<g?g-_:_>g?0:_===g?w===v?0:1:0}(e);if(u>0)for(s=0;s<u;s++)n+="</"+RH.pop()+">";return{html:"<li>"+t+"</li>",prefix:r,suffix:n}}},OHe=la("species"),FHe=z9.filter,BHe=xT>=51||!Wr(function(){var e=[];return(e.constructor={})[OHe]=function(){return{foo:1}},e.filter(Boolean).foo!==1});rc({target:"Array",proto:!0,forced:!BHe},{filter:function(e){return FHe(this,e,arguments.length>1?arguments[1]:void 0)}});var W9=Function.prototype,LH=W9.apply,PHe=W9.bind,MH=W9.call,NHe=typeof Reflect=="object"&&Reflect.apply||(PHe?MH.bind(LH):function(){return MH.apply(LH,arguments)}),jH=(la("species"),RegExp.prototype),IHe=vte.charAt,RHe=function(e,t,r){return t+(r?IHe(e,t).length:1)},LHe=Math.floor,N_=Dt("".charAt),MHe=Dt("".replace),I_=Dt("".slice),jHe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$He=/\$([$&'`]|\d{1,2})/g,UHe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=$He;return a!==void 0&&(a=qm(a),u=jHe),MHe(i,u,fun
`)&&e.flags==="s")}),iVe=Tt.RegExp,oVe=Cn(function(){var e=iVe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),sVe=VT.get,uVe=Y9("native-string-replace",String.prototype.replace),Kw=RegExp.prototype.exec,GT=Kw,lVe=Pt("".charAt),cVe=Pt("".indexOf),fVe=Pt("".replace),V_=Pt("".slice),W_=(z_=/b*/g,yn(Kw,az=/a/,"a"),yn(Kw,z_,"a"),az.lastIndex!==0||z_.lastIndex!==0),iz=Gte.BROKEN_CARET,G_=/()??/.exec("")[1]!==void 0;(W_||G_||iz||aVe||oVe)&&(GT=function(e){var t,r,n,a,i,o,s,u=this,l=sVe(u),c=ma(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=yn(GT,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=iz&&u.sticky,v=yn(Wte,u),h=u.source,g=0,m=c;if(p&&(v=fVe(v,"y",""),cVe(v,"g")===-1&&(v+="g"),m=V_(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&lVe(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),G_&&(r=new RegExp("^"+h+"$(?!\\s)",v)),W_&&(n=u.lastIndex),a=yn(Kw,p?r:u,m),p?a?(a.input=V_(a.input,g),a[0]=V_(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:W_&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),G_&&a&&a.length>1&&yn(uVe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=Xte(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var R1=GT;ic({target:"RegExp",proto:!0,forced:/./.exec!==R1},{exec:R1});var qw=Array.isArray||function(e){return Nl(e)=="Array"},Yte=function(){},dVe=[],Jte=Qm("Reflect","construct"),s7=/^\s*(?:class|function)\b/,pVe=Pt(s7.exec),hVe=!s7.exec(Yte),xv=function(e){if(!sa(e))return!1;try{return Jte(Yte,dVe,e),!0}catch(t){return!1}},u7=!Jte||Cn(function(){var e;return xv(xv.call)||!xv(Object)||!xv(function(){e=!0})||e})?function(e){if(!sa(e))return!1;switch(i7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hVe||!!pVe(s7,e7(e))}:xv,Zte=function(e,t,r){var n=Z9(t);n in e?ey.f(e,n,G9(0,r)):e[n]=r},vVe=fo("species"),l7=function(e){return $T>=51||!Cn(function(){var t=[];return(t.constructor={})[vVe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},gVe=Pt([].slice),mVe=l7("slice"),yVe=fo("species"),K_=Tt.Array,xVe=Math.max;function Wo(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function oz(e){var t=e.selection;if(t==null)return!1;var r=Wo(D.nodes(e,{match:function(i){return X.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Wo(r,2)[1],a=D.start(e,n);if(St.equals(t.anchor,a))return!0}return!1}function sz(e,t){var r,n,a=D.nodes(e,{at:t,match:function(u){return X.getNodeType(u)==="table"}}),i=!1;try{for(var o=function(u){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&u[l],f=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&f>=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),s=o.next();!s.done;s=o.next())s.value,i=!0}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}ic({target:"Array",proto:!0,forced:!mVe},{slice:function(e,t){var r,n,a,i=Zm(this),o=H4(i),s=I1(e,o),u=I1(t===void 0?o:t,o);if(qw(i)&&(r=i.constructor,(u7(r)&&(r===K_||qw(r.prototype))||qi(r)&&(r=r[yVe])===null)&&(r=void 0),r===K_||r===void 0))return gVe(i,s,u);for(n=new(r===void 0?K_:r)(xVe(u-s,0)),a=0;s<u;s++,a++)s in i&&Zte(n,a,i[s]);return n.length=a,n}});var uz=Pt(Pt.bind),bVe=fo("species"),lz=Tt.Array,wVe=function(e,t){return new(function(r){var n;return qw(r)&&(n=r.constructor,(u7(n)&&(n===lz||qw(n.prototype))||qi(n)&&(n=n[bVe])===null)&&(n=void 0)),n===void 0?lz:n}(e))(t===0?0:t)},cz=Pt([].push),Wu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=J9(u),h=Nte(v),g=function(E,S){return Lte(E),S===void 0?E:uz?uz(E,S):function(){return E.apply(S,arguments)}}(l,c),m=H4(h),y=0,x=f||wVe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:cz(b,d)}else switch(e){case 4:return!1;case 7:cz(b,d)}return i?-1:n||a?a:b}},z4={forEach:Wu(0),map:Wu(1),filter:Wu(2),some:Wu(3),every:Wu(4),find:Wu(5),findIndex:Wu(6),filterReject:Wu(7)},EVe=z4.map;ic({target:"Array",proto:!0,forced:!l7("map")},{map:function(e){return EVe(this,e,arguments.length>1?arguments[1]:void 0)}});var SVe=a7?{}.toString:function(){return"[object "+i7(this)+"]"};function V4(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function Qte(e){return V4(e).every(function(t){return!!t.isHeader})}a7||N1(Object.prototype,"toString",SVe,{unsafe:!0});var CVe=r7.PROPER,KT=RegExp.prototype,ere=KT.toStri
\v\f\r    \u2028\u2029\uFEFF`,gz=Pt("".replace),Xw="["+JT+"]",zVe=RegExp("^"+Xw+Xw+"*"),VVe=RegExp(Xw+Xw+"*$"),X_=function(e){return function(t){var r=ma(ac(t));return 1&e&&(r=gz(r,zVe,"")),2&e&&(r=gz(r,VVe,"")),r}},WVe={start:X_(1),end:X_(2),trim:X_(3)},GVe=r7.PROPER,KVe=WVe.trim;function ire(e){return e.length?e[0].tagName.toLowerCase():""}ic({target:"String",proto:!0,forced:function(e){return Cn(function(){return!!JT[e]()||"…"[e]()!=="…"||GVe&&JT[e].name!==e})}("trim")},{trim:function(){return KVe(this)}}),ic({global:!0},{globalThis:Tt}),io&&(te.fn.append=io),_s&&(te.fn.on=_s),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Cs&&(te.fn.val=Cs),Yl&&(te.fn.html=Yl),vp&&(te.fn.dataset=vp),dp&&(te.fn.addClass=dp),pp&&(te.fn.removeClass=pp),xp&&(te.fn.children=xp),Jb&&(te.fn.each=Jb),yp&&(te.fn.find=yp);var L1=!1,ore=0,sre=0,M1=null,j1=null,Ig=te("body");function ure(e){L1=!1,j1=null,M1=null,Ig.off("mousemove",lre),Ig.off("mouseup",ure)}Ig.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),L1=!0;var r=e.clientX;ore=r;var n=t.getBoundingClientRect().width;sre=n,Ig.on("mousemove",lre),Ig.on("mouseup",ure)}});var lre=Wf(function(e){if(L1&&j1!=null&&M1!=null){e.preventDefault();var t=e.clientX,r=sre+(t-ore);(r=Math.floor(100*r)/100)<30&&(r=30),pe.setNodes(j1,{width:r.toString()},{at:M1})}},100),qVe={type:"table",renderElem:function(e,t,r){var n=function(s,u){if(s.isDisabled())return!1;var l=s.selection;if(l==null||be.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=X.findPath(s,u),p=D.start(s,d),v=D.end(s,d),h=St.compare(c,v)<=0&&St.compare(c,p)>=0,g=St.compare(f,v)<=0&&St.compare(f,p)>=0;return!!(h&&g&&se.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,e),a=e.width,i=a===void 0?"auto":a,o=ot("div",{className:"table-container","data-selected":X.isNodeSelected(r,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!r.isDisabled()){var u=X.findPath(r,e),l=D.start(r,u),c=r.selection;c!=null?c.anchor.path[0]!==u[0]&&r.select(l):r.select(l)}}}},ot("table",{width:i,contentEditable:n},ot("colgroup",null,V4(e).map(function(s){var u=s.width;return ot("col",{width:u===void 0?"auto":u})})),ot("tbody",null,t)));return o}},XVe={type:"table-row",renderElem:function(e,t,r){return ot("tr",null,t)}},YVe={type:"table-cell",renderElem:function(e,t,r){var n=function(d,p){var v=X.getParentNode(d,p);if(v==null)return!1;var h=X.getParentNode(d,v);return h!=null&&V4(h).some(function(g){return g===p})}(r,e),a=e,i=a.colSpan,o=i===void 0?1:i,s=a.rowSpan,u=s===void 0?1:s,l=a.isHeader,c=l!==void 0&&l;if(!n)return ot("td",{colSpan:o,rowSpan:u},t);var f=ot(c?"th":"td",{colSpan:o,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Wf(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),h=v.left,g=v.width,m=v.top,y=v.height,x=d.clientX,b=d.clientY;L1||(x>h+g-5&&x<h+g&&b>m&&b<m+y?(p.style.cursor="col-resize",j1=r,M1=X.findPath(r,e)):L1||(p.style.cursor="auto",j1=null,M1=null))}},100)}},t);return f}},JVe={selector:"table",preParseHtml:function(e){var t=te(e);if(ire(t)!=="table")return e;var r=t.find("tbody");if(r.length===0)return e;var n=t.find("tr");return t.append(n),r.remove(),t[0]}},ZVe=z4.filter;ic({target:"Array",proto:!0,forced:!l7("filter")},{filter:function(e){return ZVe(this,e,arguments.length>1?arguments[1]:void 0)}});var QVe=Math.floor,Y_=Pt("".charAt),eWe=Pt("".replace),J_=Pt("".slice),tWe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rWe=/\$([$&'`]|\d{1,2})/g,nWe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=rWe;return a!==void 0&&(a=J9(a),u=tWe),eWe(i,u,function(l,c){var f;switch(Y_(c,0)){case"$":return"$";case"&":return e;case"`":return J_(t,0,r);case"'":return J_(t,o);case"<":f=a[J_(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=QVe(d/10);return p===0?l:p<=s?n[p-1]===void 0?Y_(c,1):n[p-1]+Y_(c,1):l}f=n[d-1]}return f===void 0?"":f})},ZT=fo("replace"),aWe=Math.max,iWe=Math.min,oWe=Pt([].concat),Z_=Pt([].push),mz=Pt("".indexOf),yz=Pt("".slic
`)},u.deleteBackward=function(l){if(!oz(u)){var c=u.selection;if(c){var f=D.before(u,c);if(f){var d=sz(u,f),p=sz(u,c);if(d&&!p)return}}r(l)}},u.handleTab=function(){var l;if(X.getSelectedNodeByType(u,"table")){var c=D.above(e);X.checkNodeType(c[0],"table-cell")&&pe.select(e,c[1]);var f=D.next(e);if(f)f[0]&&f[0].text&&(f=(l=D.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),pe.select(e,f[1]);else{var d=u.children||[],p=d.length;if(X.checkNodeType(d[p-1],"table")){var v=X.genEmptyParagraph();pe.insertNodes(u,v,{at:[p]}),u.handleTab()}}}else o()},u.deleteForward=function(l){oz(u)||n(l)},u.normalizeNode=function(l){var c=Wo(l,2),f=c[0],d=c[1];if(X.getNodeType(f)!=="table")return a([f,d]);if(X.isLastNode(u,f)){var p=X.genEmptyParagraph();pe.insertNodes(u,p,{at:[d[0]+1]})}},u.insertData=function(l){if(X.getSelectedNodeByType(u,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):D.insertText(u,c)}else i(l)},u.selectAll=function(){var l=u.selection;if(l!=null){var c=X.getSelectedNodeByType(u,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(se.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Ie.string(c).length!==0){var p=X.findPath(u,c),v={anchor:D.start(u,p),focus:D.end(u,p)};u.select(v)}else s();else s()}else s()}else s()},u}};oi("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"}}),oi("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Yw=function(){return Yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Yw.apply(this,arguments)};function W4(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?a(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(o,s)}u((n=n.apply(e,t||[])).next())})}function G4(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(f){c=[6,f],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function Of(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function SWe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(a){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&a[i],s=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&s>=a.length&&(a=void 0),{value:a&&a[s++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(i){return new Promise(function(o,s){(function(u,l,c,f){Promise.resolve(f).then(function(d){u({value:d,done:c})},l)})(o,s,(i=e[a](i)).done,i.value)})}}}var Ez=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f7(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gu,Lx,F2=function(e){return e&&e.Math==Math&&e},Me=F2(typeof globalThis=="object"&&globalThis)||F2(typeof window=="object"&&window)||F2(typeof self=="object"&&self)||F2(typeof Ez=="object"&&Ez)||function(){return this}()||Function("return this")(),wr=function(e){try{return!!e()}catch(t){return!0}},ks=!wr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wv=Function.prototype.call,yr=wv.bind?wv.bind(wv):function(){return wv.apply(wv,arguments)},Sz={}.propertyIsEnumerable,Cz=Object.getOwnPropertyDescriptor,CWe={f:Cz&&!Sz.call({1:2},1)?function(e){var t=Cz(this,e);return!!t&&t.enumerable}:Sz},K4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fre=Function.prototype,QT=fre.bind,e5=fre.call,_We=QT&&QT.bind(e5),pt=QT?function(e){return e&&_We(e5,e)}:function(e){return e&&function(){return e5.apply(e,arguments)}},AWe=pt({}.toString),kWe=pt("".slice),ms=function(e){return kWe(AWe(e),8,-1)},rA=Me.Object,TWe=pt("".split),d7=wr(function(){return!rA("z").propertyIsEnumerable(0)})?function(e){return ms(e)=="String"?TWe(e,""):rA(e)}:rA,DWe=Me.TypeError,ry=function(e){if(e==null)throw DWe("Can't call method on "+e);return e},mc=function(e){return d7(ry(e))},lr=function(e){return
\v\f\r    \u2028\u2029\uFEFF`,Lz=pt("".replace),nE="["+a5+"]",bGe=RegExp("^"+nE+nE+"*"),wGe=RegExp(nE+nE+"*$"),iA=function(e){return function(t){var r=zi(ry(t));return 1&e&&(r=Lz(r,bGe,"")),2&e&&(r=Lz(r,wGe,"")),r}},EGe={start:iA(1),end:iA(2),trim:iA(3)},SGe=hh.PROPER,CGe=EGe.trim;function Mz(e){return e.length?e[0].tagName.toLowerCase():""}function xre(e,t,r){t===void 0&&(t="auto"),r===void 0&&(r="auto");var n=te(e);return n.attr("width",t),n.attr("height",r),n[0].outerHTML}Za({target:"String",proto:!0,forced:wr(function(){return!!a5.trim()||"…".trim()!=="…"||SGe&&a5.trim.name!=="trim"})},{trim:function(){return CGe(this)}}),Za({global:!0},{globalThis:Me}),io&&(te.fn.append=io),_s&&(te.fn.on=_s),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Cs&&(te.fn.val=Cs),Yl&&(te.fn.html=Yl),mp&&(te.fn.parent=mp),hp&&(te.fn.hasClass=hp),wp&&(te.fn.empty=wp);var B2,_Ge={type:"video",renderElem:function(e,t,r){var n,a=e,i=a.src,o=i===void 0?"":i,s=a.poster,u=s===void 0?"":s,l=a.width,c=l===void 0?"auto":l,f=a.height,d=f===void 0?"auto":f,p=X.isNodeSelected(r,e);if(o.trim().indexOf("<iframe ")===0)n=ot("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:xre(o,c,d)});else{var v=ot("video",{poster:u,controls:!0},ot("source",{src:o,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=ot("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Ep("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},n)}},AGe={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,a=n===void 0?"":n,i=r.poster,o=i===void 0?"":i,s=r.width,u=s===void 0?"auto":s,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return a.trim().indexOf("<iframe ")===0?f+=xre(a,u,c):f+='<video poster="'+o+'" controls="true" width="'+u+'" height="'+c+'"><source src="'+a+'" type="video/mp4"/></video>',f+`
</div>`}},kGe=Object.keys||function(e){return mre(e,eE)},TGe=ks?Object.defineProperties:function(e,t){Jn(e);for(var r,n=mc(t),a=kGe(t),i=a.length,o=0;i>o;)yu.f(e,r=a[o++],n[r]);return e},i5=t0("document","documentElement"),bre=x7("IE_PROTO"),oA=function(){},wre=function(e){return"<script>"+e+"<\/script>"},jz=function(e){e.write(wre("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mx=function(){try{B2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Mx=typeof document<"u"?document.domain&&B2?jz(B2):((t=z1("iframe")).style.display="none",i5.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(wre("document.F=Object")),e.close(),e.F):jz(B2);for(var r=eE.length;r--;)delete Mx.prototype[eE[r]];return Mx()};Y4[bre]=!0;var w7=Object.create||function(e,t){var r;return e!==null?(oA.prototype=Jn(e),r=new oA,oA.prototype=null,r[bre]=e):r=Mx(),t===void 0?r:TGe(r,t)},o5=un("unscopables"),s5=Array.prototype;s5[o5]==null&&yu.f(s5,o5,{configurable:!0,value:w7(null)});var Lg=function(e){s5[o5][e]=!0},DGe=gre.includes;Za({target:"Array",proto:!0},{includes:function(e){return DGe(this,e,arguments.length>1?arguments[1]:void 0)}}),Lg("includes");var OGe={selector:"iframe,video,p",preParseHtml:function(e){var t=te(e),r=t;if(Mz(t)==="p"){var n=t.children();if(n.length===1){var a=n[0],i=a.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=te(a))}}var o=Mz(r);if(o!=="iframe"&&o!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var s=te('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(r),s[0]}},$z=pt(pt.bind),W1=function(e,t){return oc(e),t===void 0?e:$z?$z(e,t):function(){return e.apply(t,arguments)}},aE=Array.isArray||function(e){return ms(e)=="Array"},Ere=function(){},FGe=[],Sre=t0("Reflect","construct"),E7=/^\s*(?:class|function)\b/,BGe=pt(E7.exec),PGe=!E7.exec(Ere),Sv=function(e){if(!lr(e))return!1;try{return Sre(Ere,FGe,e),!0}catch(t){return!1}},S7=!Sre||wr(function(){var e;return Sv(Sv.call)||!Sv(Object)||!Sv(function(){e=!0})||e})?function(e){if(!lr(e))return!1;switch(Z4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return PGe||!!BGe(E7,X4(e))}:Sv,NGe=un("species"),Uz=Me.Array,IGe=function(e,t){return new(function(r){var n;return aE(r)&&(n=r.constructor,(S7(n)&&(n===Uz||aE(n.prototype))||Cr(n)&&(n=n[NGe])===null)&&(n=void 0)),n===void 0?Uz:n}(e))(t===0?0:t)},Hz=pt([].push),Ku=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=q4(u),h=d7(v),g=W1(l,c),m=ny(h),y=0,x=f||IGe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Hz(b,d)}else switch(e){case 4:return!1;case 7:Hz(b,d)}return i?-1:n||a?a:b}},C7={forEach:Ku(0),map:Ku(1),filter:Ku(2),some:Ku(3),every:Ku(4),find:Ku(5),findIndex:Ku(6),filterReject:Ku(7)},RGe=C7.find,zz=!0;"find"in[]&&Array(1).find(function(){zz=!1}),Za({target:"Array",proto:!0,forced:zz},{find:function(e){return RGe(this,e,arguments.length>1?arguments[1]:void 0)}}),Lg("find");var LGe=b7?{}.toString:function(){return"[object "+Z4(this)+"]"};function Vz(e,t,r,n){return t===void 0&&(t=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:e,poster:t,width:r,height:n,children:[{text:""}]}}b7||Ci(Object.prototype,"toString",LGe,{unsafe:!0});var Wz,sA,MGe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=te(e),a="",i="",o="auto",s="auto",u=n.find("iframe");if(u.length>0)return o=u.attr("width")||"auto",s=u.attr("height")||"auto",Vz(a=u[0].outerHTML,i,o,s);var l=n.find("video");return(a=l.attr("src")||"")||l.length>0&&(a=l.find("source").attr("src")||""),o=l.attr("width")||"auto",s=l.attr("height")||"auto",Vz(a,i=l.attr("poster")||"",o,s)}},Cre=function(){var e=Jn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_7=Me.RegExp,u5=wr(function(){var e=_7("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),jGe=u5||wr(funct
`)&&e.flags==="s")}),zGe=Me.RegExp,VGe=wr(function(){var e=zGe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),WGe=Fi.get,GGe=v7("native-string-replace",String.prototype.replace),iE=RegExp.prototype.exec,l5=iE,KGe=pt("".charAt),qGe=pt("".indexOf),XGe=pt("".replace),uA=pt("".slice),lA=(sA=/b*/g,yr(iE,Wz=/a/,"a"),yr(iE,sA,"a"),Wz.lastIndex!==0||sA.lastIndex!==0),Gz=$Ge.BROKEN_CARET,cA=/()??/.exec("")[1]!==void 0;(lA||cA||Gz||HGe||VGe)&&(l5=function(e){var t,r,n,a,i,o,s,u=this,l=WGe(u),c=zi(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=yr(l5,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=Gz&&u.sticky,v=yr(Cre,u),h=u.source,g=0,m=c;if(p&&(v=XGe(v,"y",""),qGe(v,"g")===-1&&(v+="g"),m=uA(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&KGe(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),cA&&(r=new RegExp("^"+h+"$(?!\\s)",v)),lA&&(n=u.lastIndex),a=yr(iE,p?r:u,m),p?a?(a.input=uA(a.input,g),a[0]=uA(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:lA&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),cA&&a&&a.length>1&&yr(GGe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=w7(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var oE=l5;Za({target:"RegExp",proto:!0,forced:/./.exec!==oE},{exec:oE});var A7=Function.prototype,Kz=A7.apply,YGe=A7.bind,qz=A7.call,_re=typeof Reflect=="object"&&Reflect.apply||(YGe?qz.bind(Kz):function(){return qz.apply(Kz,arguments)}),Xz=(un("species"),RegExp.prototype),JGe=pt("".charAt),Yz=pt("".charCodeAt),ZGe=pt("".slice),Jz=function(e){return function(t,r){var n,a,i=zi(ry(t)),o=J4(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=Yz(i,o))<55296||n>56319||o+1===s||(a=Yz(i,o+1))<56320||a>57343?e?JGe(i,o):n:e?ZGe(i,o,o+2):a-56320+(n-55296<<10)+65536}},Are={codeAt:Jz(!1),charAt:Jz(!0)},QGe=Are.charAt,eKe=function(e,t,r){return t+(r?QGe(e,t).length:1)},tKe=Math.floor,fA=pt("".charAt),rKe=pt("".replace),dA=pt("".slice),nKe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,aKe=/\$([$&'`]|\d{1,2})/g,iKe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=aKe;return a!==void 0&&(a=q4(a),u=nKe),rKe(i,u,function(l,c){var f;switch(fA(c,0)){case"$":return"$";case"&":return e;case"`":return dA(t,0,r);case"'":return dA(t,o);case"<":f=a[dA(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=tKe(d/10);return p===0?l:p<=s?n[p-1]===void 0?fA(c,1):n[p-1]+fA(c,1):l}f=n[d-1]}return f===void 0?"":f})},oKe=Me.TypeError,sKe=function(e,t){var r=e.exec;if(lr(r)){var n=yr(r,e,t);return n!==null&&Jn(n),n}if(ms(e)==="RegExp")return yr(oE,e,t);throw oKe("RegExp#exec called on incompatible receiver")},c5=un("replace"),uKe=Math.max,lKe=Math.min,cKe=pt([].concat),pA=pt([].push),Zz=pt("".indexOf),Qz=pt("".slice),fKe="a".replace(/./,"$0")==="$0",eV=!!/./[c5]&&/./[c5]("a","$0")==="";function kre(e){return e===void 0&&(e="r"),e+"-"+LJ()}(function(e,t,r,n){var a=un(e),i=!wr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!wr(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=pt(/./[a]),u=function(l,c,f){var d=eV?"$":"$0";return[function(p,v){var h=ry(this),g=p==null?void 0:H1(p,c5);return g?yr(g,p,h,v):yr(c,zi(h),p,v)},function(p,v){var h=Jn(this),g=zi(p);if(typeof v=="string"&&Zz(v,d)===-1&&Zz(v,"$<")===-1){var m=f(c,h,g,v);if(m.done)return m.value}var y=lr(v);y||(v=zi(v));var x=h.global;if(x){var b=h.unicode;h.lastIndex=0}for(var E=[];;){var S=sKe(h,g);if(S===null||(pA(E,S),!x))break;zi(S[0])===""&&(h.lastIndex=eKe(g,vre(h.lastIndex),b))}for(var w,C="",_=0,O=0;O<E.length;O++){for(var P=zi((S=E[O])[0]),F=uKe(lKe(J4(S.index),g.length),0),q=[],ee=1;ee<S.length;ee++)pA(q,(w=S[ee])===void 0?w:String(w));var J=S.groups;if(y){var Z=cKe([P],q,F,g);J!==void 0&&pA(Z,J);var V=zi(_re(v,void 0,Z))}else V=iKe(P,g,F,q,J,v);F>=_&&(C+=Qz(g,_,F)+V,_=F+P.length)}return C+Qz(g,_)}]}(0,""[e],function(l,c,f,d,p){var v=pt(l),h=c.exec;return h===oE||h===Xz.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ci(String.prototype,e,u[0]),Ci(Xz,a,u[1])}})("replace",0,!!wr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!fKe||eV);var sE=Me.Promise,uE=function(e,t,r){for(var n in t)Ci(e,n,t[n],r);return e},dKe=Me.String,pKe=Me.TypeError,Pp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return Jn(n),function(i){if(typeof i=="object"||lr(i))return i;throw pKe("Can't set "+dKe(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),hKe=yu.f,tV=un("toStringTag"),lE=function(e,t,r){e&&!En(e=r?e:e.prototype,tV)&&hKe(e,tV,{configurable:!0,value:t})},rV=un("species"),vKe=Me.TypeError,k7=function(e,
`)&&e.flags==="s")}),HXe=Le.RegExp,zXe=Tr(function(){var e=HXe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),VXe=Bi.get,WXe=M7("native-string-replace",String.prototype.replace),xE=RegExp.prototype.exec,A5=xE,GXe=kt("".charAt),KXe=kt("".indexOf),qXe=kt("".replace),LA=kt("".slice),MA=(RA=/b*/g,or(xE,qV=/a/,"a"),or(xE,RA,"a"),qV.lastIndex!==0||RA.lastIndex!==0),XV=pne.BROKEN_CARET,jA=/()??/.exec("")[1]!==void 0;(MA||jA||XV||UXe||zXe)&&(A5=function(e){var t,r,n,a,i,o,s,u=this,l=VXe(u),c=$l(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=or(A5,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=XV&&u.sticky,v=or(dne,u),h=u.source,g=0,m=c;if(p&&(v=qXe(v,"y",""),KXe(v,"g")===-1&&(v+="g"),m=LA(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&GXe(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),jA&&(r=new RegExp("^"+h+"$(?!\\s)",v)),MA&&(n=u.lastIndex),a=or(xE,p?r:u,m),p?a?(a.input=LA(a.input,g),a[0]=LA(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:MA&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),jA&&a&&a.length>1&&or(WXe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=X7(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var em=A5;fs({target:"RegExp",proto:!0,forced:/./.exec!==em},{exec:em});var Y7=Function.prototype,YV=Y7.apply,XXe=Y7.bind,JV=Y7.call,gne=typeof Reflect=="object"&&Reflect.apply||(XXe?JV.bind(YV):function(){return JV.apply(YV,arguments)}),YXe=ln("species"),$A=RegExp.prototype,JXe=ln("match"),ZXe=Le.TypeError,QXe=ln("species"),mne=function(e,t){var r,n=Zn(e).constructor;return n===void 0||(r=Zn(n)[QXe])==null?t:function(a){if(K7(a))return a;throw ZXe(dE(a)+" is not a constructor")}(r)},eYe=kt("".charAt),ZV=kt("".charCodeAt),tYe=kt("".slice),QV=function(e){return function(t,r){var n,a,i=$l(q1(t)),o=V7(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=ZV(i,o))<55296||n>56319||o+1===s||(a=ZV(i,o+1))<56320||a>57343?e?eYe(i,o):n:e?tYe(i,o,o+2):a-56320+(n-55296<<10)+65536}},yne={codeAt:QV(!1),charAt:QV(!0)},rYe=yne.charAt,nYe=function(e,t,r){return t+(r?rYe(e,t).length:1)},aYe=Le.Array,iYe=Math.max,k5=function(e,t,r){for(var n=oy(e),a=Q1(t,n),i=Q1(r===void 0?n:r,n),o=aYe(iYe(i-a,0)),s=0;a<i;a++,s++)cne(o,s,e[a]);return o.length=s,o},oYe=Le.TypeError,eW=function(e,t){var r=e.exec;if(vr(r)){var n=or(r,e,t);return n!==null&&Zn(n),n}if(Uo(e)==="RegExp")return or(em,e,t);throw oYe("RegExp#exec called on incompatible receiver")},rd=pne.UNSUPPORTED_Y,sYe=Math.min,xne=[].push,uYe=kt(/./.exec),nd=kt(xne),Bv=kt("".slice);(function(e,t,r,n){var a=ln(e),i=!Tr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Tr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[YXe]=function(){return c},c.flags="",c[a]=/./[a],c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=kt(/./[a]),u=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,g,m=$l(q1(this)),y=v===void 0?4294967295:v>>>0;if(y===0)return[];if(p===void 0)return[m];if(!br(h=p)||!((g=h[JXe])!==void 0?g:Uo(h)=="RegExp"))return or(c,m,p,y);for(var x,b,E,S=[],w=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),C=0,_=new RegExp(p.source,w+"g");(x=or(em,_,m))&&!((b=_.lastIndex)>C&&(nd(S,Bv(m,C,x.index)),x.length>1&&x.index<m.length&&gne(xne,S,k5(x,1)),E=x[0].length,C=b,S.length>=y));)_.lastIndex===x.index&&_.lastIndex++;return C===m.length?!E&&uYe(_,"")||nd(S,""):nd(S,Bv(m,C)),S.length>y?k5(S,0,y):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:or(c,this,p,v)}:c,[function(p,v){var h=q1(this),g=p==null?void 0:J1(p,l);return g?or(g,p,h,v):or(d,$l(h),p,v)},function(p,v){var h=Zn(this),g=$l(p),m=f(d,h,g,v,d!==c);if(m.done)return m.value;var y=mne(h,RegExp),x=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(rd?"g":"y"),E=new y(rd?"^(?:"+h.source+")":h,b),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return eW(E,g)===null?[g]:[];for(var w=0,C=0,_=[];C<g.length;){E.lastIndex=rd?0:C;var O,P=eW(E,rd?Bv(g,C):g);if(P===null||(O=sYe(ine(E.lastIndex+(rd?C:0)),g.length))===w)C=nYe(g,C,x);else{if(nd(_,Bv(g,w,C)),_.length===S)return _;for(var F=1;F<=P.length-1;F++)if(nd(_,P[F]),_.length===S)return _;C=w=O}}return nd(_,Bv(g,w)),_}]}(a,""[e],function(l,c,f,d,p){var v=kt(l),h=c.exec;return h===em||h===$A.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});_i(String.prototype,e,u[0]),_i($A,a,u[1])}n&&ys($A[a],"sham",!0)})("split",0,!!Tr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),rd);/*!
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var bE=function(){return bE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},bE.apply(this,arguments)};function J7(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?a(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(o,s)}u((n=n.apply(e,t||[])).next())})}function Z7(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(f){c=[6,f],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function lYe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(a){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&a[i],s=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&s>=a.length&&(a=void 0),{value:a&&a[s++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(i){return new Promise(function(o,s){(function(u,l,c,f){Promise.resolve(f).then(function(d){u({value:d,done:c})},l)})(o,s,(i=e[a](i)).done,i.value)})}}}var T5=ln("unscopables"),D5=Array.prototype;D5[T5]==null&&xu.f(D5,T5,{configurable:!0,value:X7(null)});var Nf,tW,rW,UA=function(e){D5[T5][e]=!0},Ip={},cYe=!Tr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nW=z7("IE_PROTO"),O5=Le.Object,fYe=O5.prototype,wE=cYe?O5.getPrototypeOf:function(e){var t=j7(e);if(Sn(t,nW))return t[nW];var r=t.constructor;return vr(r)&&t instanceof r?r.prototype:t instanceof O5?fYe:null},F5=ln("iterator"),bne=!1;[].keys&&("next"in(rW=[].keys())?(tW=wE(wE(rW)))!==Object.prototype&&(Nf=tW):bne=!0);var dYe=Nf==null||Tr(function(){var e={};return Nf[F5].call(e)!==e});dYe&&(Nf={}),vr(Nf[F5])||_i(Nf,F5,function(){return this});var Q7={IteratorPrototype:Nf,BUGGY_SAFARI_ITERATORS:bne},pYe=xu.f,aW=ln("toStringTag"),EE=function(e,t,r){e&&!Sn(e=r?e:e.prototype,aW)&&pYe(e,aW,{configurable:!0,value:t})},hYe=Q7.IteratorPrototype,vYe=function(){return this},gYe=Le.String,mYe=Le.TypeError,Rp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=kt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return Zn(n),function(i){if(typeof i=="object"||vr(i))return i;throw mYe("Can't set "+gYe(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),yYe=iy.PROPER,xYe=iy.CONFIGURABLE,iW=Q7.IteratorPrototype,H2=Q7.BUGGY_SAFARI_ITERATORS,Pv=ln("iterator"),bYe=function(){return this},wne=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=X7(hYe,{next:Q4(1,x)}),EE(m,E,!1),Ip[E]=vYe})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!H2&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":retu
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=t),kE!==void 0&&(kE.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.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:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(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 a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
`)&&e.flags==="s")}),LZe=Ot.RegExp,MZe=Xn(function(){var e=LZe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),jZe=z5.get,$Ze=lB("native-string-replace",String.prototype.replace),FE=RegExp.prototype.exec,G5=FE,UZe=sr("".charAt),HZe=sr("".indexOf),zZe=sr("".replace),p8=sr("".slice),h8=(d8=/b*/g,On(FE,sG=/a/,"a"),On(FE,d8,"a"),sG.lastIndex!==0||d8.lastIndex!==0),uG=gae.BROKEN_CARET,v8=/()??/.exec("")[1]!==void 0;(h8||v8||uG||RZe||MZe)&&(G5=function(e){var t,r,n,a,i,o,s,u=this,l=jZe(u),c=ou(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=On(G5,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=uG&&u.sticky,v=On(vae,u),h=u.source,g=0,m=c;if(p&&(v=zZe(v,"y",""),HZe(v,"g")===-1&&(v+="g"),m=p8(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&UZe(c,u.lastIndex-1)!==`
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),v8&&(r=new RegExp("^"+h+"$(?!\\s)",v)),h8&&(n=u.lastIndex),a=On(FE,p?r:u,m),p?a?(a.input=p8(a.input,g),a[0]=p8(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:h8&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),v8&&a&&a.length>1&&On($Ze,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=NZe(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var am=G5;iS({target:"RegExp",proto:!0,forced:/./.exec!==am},{exec:am});var CB=Function.prototype,lG=CB.apply,VZe=CB.bind,cG=CB.call,WZe=typeof Reflect=="object"&&Reflect.apply||(VZe?cG.bind(lG):function(){return cG.apply(lG,arguments)}),GZe=xc("species"),g8=RegExp.prototype,KZe=xc("match"),qZe=Ot.TypeError,XZe=xc("species"),YZe=sr("".charAt),fG=sr("".charCodeAt),JZe=sr("".slice),ZZe=function(e){return function(t,r){var n,a,i=ou(Lp(t)),o=bB(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=fG(i,o))<55296||n>56319||o+1===s||(a=fG(i,o+1))<56320||a>57343?e?YZe(i,o):n:e?JZe(i,o,o+2):a-56320+(n-55296<<10)+65536}},QZe=ZZe(!0),eQe=function(e,t,r){return t+(r?QZe(e,t).length:1)},tQe=Ot.Array,rQe=Math.max,dG=function(e,t,r){for(var n,a,i,o,s=wB(e),u=V5(t,s),l=V5(r===void 0?s:r,s),c=tQe(rQe(l-u,0)),f=0;u<l;u++,f++)n=c,a=f,i=e[u],(o=hB(a))in n?nS.f(n,o,vB(0,i)):n[o]=i;return c.length=f,c},nQe=Ot.TypeError,pG=function(e,t){var r=e.exec;if(wa(r)){var n=On(r,e,t);return n!==null&&Ho(n),n}if(zl(e)==="RegExp")return On(am,e,t);throw nQe("RegExp#exec called on incompatible receiver")},sd=gae.UNSUPPORTED_Y,aQe=Math.min,xae=[].push,iQe=sr(/./.exec),ud=sr(xae),Uv=sr("".slice);(function(e,t,r,n){var a=xc(e),i=!Xn(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Xn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[GZe]=function(){return c},c.flags="",c[a]=/./[a],c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=sr(/./[a]),u=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,g,m=ou(Lp(this)),y=v===void 0?4294967295:v>>>0;if(y===0)return[];if(p===void 0)return[m];if(!To(h=p)||!((g=h[KZe])!==void 0?g:zl(h)=="RegExp"))return On(c,m,p,y);for(var x,b,E,S=[],w=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),C=0,_=new RegExp(p.source,w+"g");(x=On(am,_,m))&&!((b=_.lastIndex)>C&&(ud(S,Uv(m,C,x.index)),x.length>1&&x.index<m.length&&WZe(xae,S,dG(x,1)),E=x[0].length,C=b,S.length>=y));)_.lastIndex===x.index&&_.lastIndex++;return C===m.length?!E&&iQe(_,"")||ud(S,""):ud(S,Uv(m,C)),S.length>y?dG(S,0,y):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:On(c,this,p,v)}:c,[function(p,v){var h=Lp(this),g=p==null?void 0:tae(p,l);return g?On(g,p,h,v):On(d,ou(h),p,v)},function(p,v){var h=Ho(this),g=ou(p),m=f(d,h,g,v,d!==c);if(m.done)return m.value;var y=function(q,ee){var J,Z=Ho(q).constructor;return Z===void 0||(J=Ho(Z)[XZe])==null?ee:function(V){if(uae(V))return V;throw qZe(Qne(V)+" is not a constructor")}(J)}(h,RegExp),x=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(sd?"g":"y"),E=new y(sd?"^(?:"+h.source+")":h,b),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return pG(E,g)===null?[g]:[];for(var w=0,C=0,_=[];C<g.length;){E.lastIndex=sd?0:C;var O,P=pG(E,sd?Uv(g,C):g);if(P===null||(O=aQe(iae(E.lastIndex+(sd?C:0)),g.length))===w)C=eQe(g,C,x);else{if(ud(_,Uv(g,w,C)),_.length===S)return _;for(var F=1;F<=P.length-1;F++)if(ud(_,P[F]),_.length===S)return _;C=w=O}}return ud(_,Uv(g,w)),_}]}(a,""[e],function(l,c,f,d,p){var v=sr(l),h=c.exec;return h===am||h===g8.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});nm(String.prototype,e,u[0]),nm(g8,a,u[1])}n&&Mp(g8[a],"sham",!0)})("split",0,!!Xn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Hr(Hr({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Hr(Hr({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Hr(Hr({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Hr(Hr({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,r){(function(n,a){var i=n.key,o=n.factory,s=n.config,u=Vi(Vi({},s),a||{});if(A1[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");A1[i]=o,function(l,c){c!=null&&(GZ[l]=c)}(i,u)})(t,r)},e.registerRenderElem=function(t){(function(r){var n=r.type,a=r.renderElem;mQ[n||""]=a})(t)},e.registerRenderStyle=function(t){(function(r){Uk.push(r)})(t)},e.registerElemToHtml=function(t){(function(r){var n=r.type,a=r.elemToHtml;KZ[n||""]=a})(t)},e.registerStyleToHtml=function(t){(function(r){Nk.push(r)})(t)},e.registerPreParseHtml=function(t){(function(r){fQ.push(r)})(t)},e.registerParseElemHtml=function(t){(function(r){var n=r.selector,a=r.parseElemHtml;vw[n]=a})(t)},e.registerParseStyleHtml=function(t){(function(r){RF.push(r)})(t)},e.registerModule=function(t){Hc(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Hc(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,a=e.elemsToHtml,i=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return zn.registerMenu(c)}),r&&r.forEach(function(c){return zn.registerRenderElem(c)}),n&&zn.registerRenderStyle(n),a&&a.forEach(function(c){return zn.registerElemToHtml(c)}),i&&zn.registerStyleToHtml(i),o&&o.forEach(function(c){return zn.registerPreParseHtml(c)}),s&&s.forEach(function(c){return zn.registerParseElemHtml(c)}),u&&zn.registerParseStyleHtml(u),l&&zn.registerPlugin(l)}x$e.forEach(function(e){return Hc(e)}),Hc(YHe),Hc(EWe),Hc(Fqe),Hc(EJe),Hc(fQe);var Eae='<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>',Sae={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"]}},hQe={hoverbarKeys:Hr(Hr({},Sae),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};zn.setEditorConfig(Hr(Hr({},hQe),{decorate:wae}));var vQe={hoverbarKeys:Sae};zn.setSimpleEditorConfig(Hr(Hr({},vQe),{decorate:wae}));var gQe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Re("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:Re("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:Re("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:Re("editor.image"),iconSvg:Eae,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Re("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};zn.setToolbarConfig(gQe);var mQe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Re("editor.image"),iconSvg:Eae,menuKeys:["insertImage","uploadImage"]},"inse
Please use '@${e}' event instead of props`,t}var Cae=(e,t)=>{for(const[r,n]of t)e[r]=n;return e};const kQe=Fe({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const r=ke(null),n=ps(null),a=ke(""),i=()=>{if(!r.value)return;const s=Mf(e.defaultContent);yQe({selector:r.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:AQe(_Qe({},e.defaultConfig),{onCreated(u){if(n.value=u,t.emit("onCreated",u),e.defaultConfig.onCreated){const l=Zu("onCreated");throw new Error(l)}},onChange(u){const l=u.getHtml();if(a.value=l,t.emit("update:modelValue",l),t.emit("onChange",u),e.defaultConfig.onChange){const c=Zu("onChange");throw new Error(c)}},onDestroyed(u){if(t.emit("onDestroyed",u),e.defaultConfig.onDestroyed){const l=Zu("onDestroyed");throw new Error(l)}},onMaxLength(u){if(t.emit("onMaxLength",u),e.defaultConfig.onMaxLength){const l=Zu("onMaxLength");throw new Error(l)}},onFocus(u){if(t.emit("onFocus",u),e.defaultConfig.onFocus){const l=Zu("onFocus");throw new Error(l)}},onBlur(u){if(t.emit("onBlur",u),e.defaultConfig.onBlur){const l=Zu("onBlur");throw new Error(l)}},customAlert(u,l){if(t.emit("customAlert",u,l),e.defaultConfig.customAlert){const c=Zu("customAlert");throw new Error(c)}},customPaste:(u,l)=>{if(e.defaultConfig.customPaste){const f=Zu("customPaste");throw new Error(f)}let c;return t.emit("customPaste",u,l,f=>{c=f}),c}})})};function o(s){const u=n.value;u!=null&&u.setHtml(s)}return $r(()=>{i()}),Ge(()=>e.modelValue,s=>{s!==a.value&&o(s)}),{box:r}}}),TQe={ref:"box",style:{height:"100%"}};function DQe(e,t,r,n,a,i){return ge(),Oe("div",TQe,null,512)}var OQe=Cae(kQe,[["render",DQe]]);const FQe=Fe({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=ke(null),r=n=>{if(t.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");X.getToolbar(n)||xQe({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return bG(()=>{const{editor:n}=e;n!=null&&r(n)}),{selector:t}}}),BQe={ref:"selector"};function PQe(e,t,r,n,a,i){return ge(),Oe("div",BQe,null,512)}var NQe=Cae(FQe,[["render",PQe]]);const IQe={class:"editor-box"},RQe={style:{margin:"8px 0",height:"24px","line-height":"24px"}},LQe=Fe({__name:"wangEditor",props:{value:{},toolbarConfig:{default:()=>({excludeKeys:["fullScreen","justifyJustify"]})},editorConfig:{default:()=>({placeholder:"请输入内容...",MENU_CONF:{},hoverbarKeys:{link:{menuKeys:["editLink","unLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","deleteImage"]}}})},height:{default:"450px"},mode:{default:"default"},hideToolBar:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadImageConfig:{},uploadVideoConfig:{},controlslist:{default:"nodownload"},placeholderext:{}},emits:["update:value","check-validate","clear-validate","contentLength"],setup(e,{expose:t,emit:r}){const n=e,a=ps(),i=["image/png","image/jpg","image/jpeg","image/bmp"],o=["video/mp4"],s=["mp4"],u=ke(0),l=S=>{a.value=S,b(S);let w=document.getElementsByTagName("video");if(n.controlslist)for(let _=0;_<w.length;_++)w[_].setAttribute("controlslist",n.controlslist);let C=document.getElementsByClassName("w-e-scroll");if(C.length>0)for(let _=0;_<C.length;_++)C[_].getElementsByTagName("div")[0].setAttribute("style","height:100%;width:100%")};n.disabled&&mt(()=>a.value.disable());const c=ce({get(){return n.value},set(S){a.value.isEmpty()&&(S=""),r("update:value",S)}}),d=(S=>{let w=!1,C;return(..._)=>(w||(w=!0,C=S(..._),setTimeout(()=>{w=!1},1500)),C)})(S=>{Ya.success(`${S}`)}),p=Pr({onProgress(S){console.log("progress",S)},onSuccess(S,w){console.log(`${S.name} 上传成功`,w),d("上传成功")},onFailed(S,w){console.log(`${S.name} 上传失败`,w),Ya.error(`${S.name} 上传失败`)},onError(S,w,C){console.log(`${S.name} 上传出错 ${w}`),Ya.error(`${S.name} 上传出错 ${w}`)}}),v=Pr({maxFileSize:5*