import{c as fh,d as FS,m as BN,a as Uu,b as Yu,e as UN,r as Rl,g as YN,f as GN,h as zN,w as jN,o as KN,u as TR,i as XN,j as qN,k as mf,l as ZN,F as QN,n as JN,p as eL,q as tL,s as nL,t as rL,v as iL,_ as oL}from"./index-be50c070.js";import{r as bI}from"./worker-ref-b3abaee8.js";import{c as gh}from"./_commonjs-dynamic-modules-302442b1.js";const sL=""+new URL("xlsx-08add3c8.png",import.meta.url).href,aL=""+new URL("loading-43b144a3.gif",import.meta.url).href;var Zl=function(t){return t&&t.Math===Math&&t},_n=Zl(typeof globalThis=="object"&&globalThis)||Zl(typeof window=="object"&&window)||Zl(typeof self=="object"&&self)||Zl(typeof fh=="object"&&fh)||Zl(typeof fh=="object"&&fh)||function(){return this}()||Function("return this")(),WS={},Hr=function(t){try{return!!t()}catch{return!0}},lL=Hr,Ni=!lL(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),uL=Hr,hg=!uL(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),cL=hg,mh=Function.prototype.call,pa=cL?mh.bind(mh):function(){return mh.apply(mh,arguments)},RI={},EI={}.propertyIsEnumerable,TI=Object.getOwnPropertyDescriptor,hL=TI&&!EI.call({1:2},1);RI.f=hL?function(e){var n=TI(this,e);return!!n&&n.enumerable}:EI;var dg=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},_I=hg,MI=Function.prototype,vC=MI.call,dL=_I&&MI.bind.bind(vC,vC),Un=_I?dL:function(t){return function(){return vC.apply(t,arguments)}},AI=Un,fL=AI({}.toString),gL=AI("".slice),$l=function(t){return gL(fL(t),8,-1)},mL=Un,pL=Hr,wL=$l,Hp=Object,vL=mL("".split),CL=pL(function(){return!Hp("z").propertyIsEnumerable(0)})?function(t){return wL(t)==="String"?vL(t,""):Hp(t)}:Hp,VS=function(t){return t==null},SL=VS,yL=TypeError,OI=function(t){if(SL(t))throw new yL("Can't call method on "+t);return t},bL=CL,RL=OI,fg=function(t){return bL(RL(t))},Dp=typeof document=="object"&&document.all,Mn=typeof Dp>"u"&&Dp!==void 0?function(t){return typeof t=="function"||t===Dp}:function(t){return typeof t=="function"},EL=Mn,ws=function(t){return typeof t=="object"?t!==null:EL(t)},Np=_n,TL=Mn,_L=function(t){return TL(t)?t:void 0},kc=function(t,e){return arguments.length<2?_L(Np[t]):Np[t]&&Np[t][e]},ML=Un,BS=ML({}.isPrototypeOf),US=typeof navigator<"u"&&String(navigator.userAgent)||"",II=_n,Lp=US,_R=II.process,MR=II.Deno,AR=_R&&_R.versions||MR&&MR.version,OR=AR&&AR.v8,Qr,pf;OR&&(Qr=OR.split("."),pf=Qr[0]>0&&Qr[0]<4?1:+(Qr[0]+Qr[1]));!pf&&Lp&&(Qr=Lp.match(/Edge\/(\d+)/),(!Qr||Qr[1]>=74)&&(Qr=Lp.match(/Chrome\/(\d+)/),Qr&&(pf=+Qr[1])));var AL=pf,IR=AL,OL=Hr,IL=_n,PL=IL.String,YS=!!Object.getOwnPropertySymbols&&!OL(function(){var t=Symbol("symbol detection");return!PL(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&IR&&IR<41}),xL=YS,PI=xL&&!Symbol.sham&&typeof Symbol.iterator=="symbol",HL=kc,DL=Mn,NL=BS,LL=PI,$L=Object,GS=LL?function(t){return typeof t=="symbol"}:function(t){var e=HL("Symbol");return DL(e)&&NL(e.prototype,$L(t))},kL=String,gg=function(t){try{return kL(t)}catch{return"Object"}},FL=Mn,WL=gg,VL=TypeError,mg=function(t){if(FL(t))return t;throw new VL(WL(t)+" is not a function")},BL=mg,UL=VS,zS=function(t,e){var n=t[e];return UL(n)?void 0:BL(n)},$p=pa,kp=Mn,Fp=ws,YL=TypeError,GL=function(t,e){var n,r;if(e==="string"&&kp(n=t.toString)&&!Fp(r=$p(n,t))||kp(n=t.valueOf)&&!Fp(r=$p(n,t))||e!=="string"&&kp(n=t.toString)&&!Fp(r=$p(n,t)))return r;throw new YL("Can't convert object to primitive value")},xI={exports:{}},PR=_n,zL=Object.defineProperty,jS=function(t,e){try{zL(PR,t,{value:e,configurable:!0,writable:!0})}catch{PR[t]=e}return e},jL=_n,KL=jS,xR="__core-js_shared__",XL=jL[xR]||KL(xR,{}),KS=XL,HR=KS;(xI.exports=function(t,e){return HR[t]||(HR[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.35.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"});var HI=xI.exports,qL=OI,ZL=Object,pg=function(t){return ZL(qL(t))},QL=Un,JL=pg,e$=QL({}.hasOwnProperty),yo=Object.hasOwn||function(e,n){return e$(JL(e),n)},t$=Un,n$=0,r$=Math.random(),i$=t$(1 .toString),DI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+i$(++n$+r$,36)},o$=_n,s$=HI,DR=yo,a$=DI,l$=YS,u$=PI,vl=o$.Symbol,Wp=s$("wks"),c$=u$?vl.for||vl:vl&&vl.withoutSetter||a$,kl=function(t){return DR(Wp,t)||(Wp[t]=l$&&DR(vl,t)?vl[t]:c$("Symbol."+t)),Wp[t]},h$=pa,NR=ws,LR=GS,d$=zS,f$=GL,g$=kl,m$=TypeError,p$=g$("toPrimitive"),w$=function(t,e){if(!NR(t)||LR(t))return t;var n=d$(t,p$),r;if(n){if(e===void 0&&(e="default"),r=h$(n,t,e),!NR(r)||LR(r))return r;throw new m$("Can't convert object to primitive value")}return e===void 0&&(e="number"),f$(t,e)},v$=w$,C$=GS,XS=function(t){var e=v$(t,"string");return C$(e)?e:e+""},S$=_n,$R=ws,CC=S$.document,y$=$R(CC)&&$R(CC.createElement),qS=function(t){return y$?CC.createElement(t):{}},b$=Ni,R$=Hr,E$=qS,NI=!b$&&!R$(function(){return Object.defineProperty(E$("div"),"a",{get:function(){return 7}}).a!==7}),T$=Ni,_$=pa,M$=RI,A$=dg,O$=fg,I$=XS,P$=yo,x$=NI,kR=Object.getOwnPropertyDescriptor;WS.f=T$?kR:function(e,n){if(e=O$(e),n=I$(n),x$)try{return kR(e,n)}catch{}if(P$(e,n))return A$(!_$(M$.f,e,n),e[n])};var vs={},H$=Ni,D$=Hr,LI=H$&&D$(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),N$=ws,L$=String,$$=TypeError,Cs=function(t){if(N$(t))return t;throw new $$(L$(t)+" is not an object")},k$=Ni,F$=NI,W$=LI,ph=Cs,FR=XS,V$=TypeError,Vp=Object.defineProperty,B$=Object.getOwnPropertyDescriptor,Bp="enumerable",Up="configurable",Yp="writable";vs.f=k$?W$?function(e,n,r){if(ph(e),n=FR(n),ph(r),typeof e=="function"&&n==="prototype"&&"value"in r&&Yp in r&&!r[Yp]){var i=B$(e,n);i&&i[Yp]&&(e[n]=r.value,r={configurable:Up in r?r[Up]:i[Up],enumerable:Bp in r?r[Bp]:i[Bp],writable:!1})}return Vp(e,n,r)}:Vp:function(e,n,r){if(ph(e),n=FR(n),ph(r),F$)try{return Vp(e,n,r)}catch{}if("get"in r||"set"in r)throw new V$("Accessors not supported");return"value"in r&&(e[n]=r.value),e};var U$=Ni,Y$=vs,G$=dg,Fc=U$?function(t,e,n){return Y$.f(t,e,G$(1,n))}:function(t,e,n){return t[e]=n,t},$I={exports:{}},SC=Ni,z$=yo,kI=Function.prototype,j$=SC&&Object.getOwnPropertyDescriptor,ZS=z$(kI,"name"),K$=ZS&&(function(){}).name==="something",X$=ZS&&(!SC||SC&&j$(kI,"name").configurable),q$={EXISTS:ZS,PROPER:K$,CONFIGURABLE:X$},Z$=Un,Q$=Mn,yC=KS,J$=Z$(Function.toString);Q$(yC.inspectSource)||(yC.inspectSource=function(t){return J$(t)});var ek=yC.inspectSource,tk=_n,nk=Mn,WR=tk.WeakMap,rk=nk(WR)&&/native code/.test(String(WR)),ik=HI,ok=DI,VR=ik("keys"),FI=function(t){return VR[t]||(VR[t]=ok(t))},QS={},sk=rk,WI=_n,ak=ws,lk=Fc,Gp=yo,zp=KS,uk=FI,ck=QS,BR="Object already initialized",bC=WI.TypeError,hk=WI.WeakMap,wf,Cc,vf,dk=function(t){return vf(t)?Cc(t):wf(t,{})},fk=function(t){return function(e){var n;if(!ak(e)||(n=Cc(e)).type!==t)throw new bC("Incompatible receiver, "+t+" required");return n}};if(sk||zp.state){var li=zp.state||(zp.state=new hk);li.get=li.get,li.has=li.has,li.set=li.set,wf=function(t,e){if(li.has(t))throw new bC(BR);return e.facade=t,li.set(t,e),e},Cc=function(t){return li.get(t)||{}},vf=function(t){return li.has(t)}}else{var Ea=uk("state");ck[Ea]=!0,wf=function(t,e){if(Gp(t,Ea))throw new bC(BR);return e.facade=t,lk(t,Ea,e),e},Cc=function(t){return Gp(t,Ea)?t[Ea]:{}},vf=function(t){return Gp(t,Ea)}}var gk={set:wf,get:Cc,has:vf,enforce:dk,getterFor:fk},JS=Un,mk=Hr,pk=Mn,wh=yo,RC=Ni,wk=q$.CONFIGURABLE,vk=ek,VI=gk,Ck=VI.enforce,Sk=VI.get,UR=String,Vd=Object.defineProperty,yk=JS("".slice),bk=JS("".replace),Rk=JS([].join),Ek=RC&&!mk(function(){return Vd(function(){},"length",{value:8}).length!==8}),Tk=String(String).split("String"),_k=$I.exports=function(t,e,n){yk(UR(e),0,7)==="Symbol("&&(e="["+bk(UR(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!wh(t,"name")||wk&&t.name!==e)&&(RC?Vd(t,"name",{value:e,configurable:!0}):t.name=e),Ek&&n&&wh(n,"arity")&&t.length!==n.arity&&Vd(t,"length",{value:n.arity});try{n&&wh(n,"constructor")&&n.constructor?RC&&Vd(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=Ck(t);return wh(r,"source")||(r.source=Rk(Tk,typeof e=="string"?e:"")),t};Function.prototype.toString=_k(function(){return pk(this)&&Sk(this).source||vk(this)},"toString");var Mk=$I.exports,Ak=Mn,Ok=vs,Ik=Mk,Pk=jS,xk=function(t,e,n,r){r||(r={});var i=r.enumerable,o=r.name!==void 0?r.name:e;if(Ak(n)&&Ik(n,o,r),r.global)i?t[e]=n:Pk(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch{}i?t[e]=n:Ok.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},BI={},Hk=Math.ceil,Dk=Math.floor,Nk=Math.trunc||function(e){var n=+e;return(n>0?Dk:Hk)(n)},Lk=Nk,ey=function(t){var e=+t;return e!==e||e===0?0:Lk(e)},$k=ey,kk=Math.max,Fk=Math.min,Wk=function(t,e){var n=$k(t);return n<0?kk(n+e,0):Fk(n,e)},Vk=ey,Bk=Math.min,Uk=function(t){var e=Vk(t);return e>0?Bk(e,9007199254740991):0},Yk=Uk,Wc=function(t){return Yk(t.length)},Gk=fg,zk=Wk,jk=Wc,YR=function(t){return function(e,n,r){var i=Gk(e),o=jk(i),s=zk(r,o),a;if(t&&n!==n){for(;o>s;)if(a=i[s++],a!==a)return!0}else for(;o>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},Kk={includes:YR(!0),indexOf:YR(!1)},Xk=Un,jp=yo,qk=fg,Zk=Kk.indexOf,Qk=QS,GR=Xk([].push),UI=function(t,e){var n=qk(t),r=0,i=[],o;for(o in n)!jp(Qk,o)&&jp(n,o)&&GR(i,o);for(;e.length>r;)jp(n,o=e[r++])&&(~Zk(i,o)||GR(i,o));return i},ty=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jk=UI,eF=ty,tF=eF.concat("length","prototype");BI.f=Object.getOwnPropertyNames||function(e){return Jk(e,tF)};var YI={};YI.f=Object.getOwnPropertySymbols;var nF=kc,rF=Un,iF=BI,oF=YI,sF=Cs,aF=rF([].concat),lF=nF("Reflect","ownKeys")||function(e){var n=iF.f(sF(e)),r=oF.f;return r?aF(n,r(e)):n},zR=yo,uF=lF,cF=WS,hF=vs,GI=function(t,e,n){for(var r=uF(e),i=hF.f,o=cF.f,s=0;sHF)throw xF("Maximum allowed index exceeded");return t},DF=Ss,NF=pg,LF=Wc,$F=jI,kF=KI,FF=Hr,WF=FF(function(){return[].push.call({length:4294967296},1)!==4294967297}),VF=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},BF=WF||!VF();DF({target:"Array",proto:!0,arity:1,forced:BF},{push:function(e){var n=NF(this),r=LF(n),i=arguments.length;kF(r+i);for(var o=0;oo&&WW(v,arguments[o]),v});h.prototype=u,a!=="Error"?JR?JR(h,c):eE(h,c,{name:!0}):BW&&i in l&&(tE(h,l,i),tE(h,l,"prepareStackTrace")),eE(h,l);try{u.name!==a&&QR(u,"name",a),u.constructor=h}catch{}return h}},nP=Ss,YW=_n,Li=wg,rP=UW,EC="WebAssembly",nE=YW[EC],Cf=new Error("e",{cause:7}).cause!==7,wa=function(t,e){var n={};n[t]=rP(t,e,Cf),nP({global:!0,constructor:!0,arity:1,forced:Cf},n)},ny=function(t,e){if(nE&&nE[t]){var n={};n[t]=rP(EC+"."+t,e,Cf),nP({target:EC,stat:!0,constructor:!0,arity:1,forced:Cf},n)}};wa("Error",function(t){return function(n){return Li(t,this,arguments)}});wa("EvalError",function(t){return function(n){return Li(t,this,arguments)}});wa("RangeError",function(t){return function(n){return Li(t,this,arguments)}});wa("ReferenceError",function(t){return function(n){return Li(t,this,arguments)}});wa("SyntaxError",function(t){return function(n){return Li(t,this,arguments)}});wa("TypeError",function(t){return function(n){return Li(t,this,arguments)}});wa("URIError",function(t){return function(n){return Li(t,this,arguments)}});ny("CompileError",function(t){return function(n){return Li(t,this,arguments)}});ny("LinkError",function(t){return function(n){return Li(t,this,arguments)}});ny("RuntimeError",function(t){return function(n){return Li(t,this,arguments)}});var GW=$l,zW=Un,jW=function(t){if(GW(t)==="Function")return zW(t)},rE=jW,KW=mg,XW=hg,qW=rE(rE.bind),iP=function(t,e){return KW(t),e===void 0?t:XW?qW(t,e):function(){return t.apply(e,arguments)}},ZW=kc,oP=ZW("document","documentElement"),QW=Un,ry=QW([].slice),JW=TypeError,sP=function(t,e){if(tn,s=CV(r)?r:EV(r),a=o?bV(arguments,n):[],l=o?function(){vV(s,this,a)}:s;return e?t(l,i):t(l)}:t},MV=Ss,cP=_n,dE=lP.set,AV=_V,fE=cP.setImmediate?AV(dE,!1):dE;MV({global:!0,bind:!0,enumerable:!0,forced:cP.setImmediate!==fE},{setImmediate:fE});/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function jo(t){"@babel/helpers - typeof";return jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jo(t)}function MC(t,e){return MC=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},MC(t,e)}function OV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ud(t,e,n){return OV()?Ud=Reflect.construct:Ud=function(i,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(i,a),u=new l;return s&&MC(u,s.prototype),u},Ud.apply(null,arguments)}function jr(t){return IV(t)||PV(t)||xV(t)||HV()}function IV(t){if(Array.isArray(t))return AC(t)}function PV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xV(t,e){if(t){if(typeof t=="string")return AC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AC(t,e)}}function AC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),i=1;i/gm),KV=ni(/\${[\w\W]*}/gm),XV=ni(/^data-[\-\w.\u00B7-\uFFFF]/),qV=ni(/^aria-[\-\w]+$/),ZV=ni(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QV=ni(/^(?:\w+script|data):/i),JV=ni(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eB=ni(/^html$/i),tB=function(){return typeof window>"u"?null:window},nB=function(e,n){if(jo(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:function(a){return a},createScriptURL:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function dP(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tB(),e=function(x){return dP(x)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var n=t.document,r=t.document,i=t.DocumentFragment,o=t.HTMLTemplateElement,s=t.Node,a=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,c=u===void 0?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,p=a.prototype,v=Ch(p,"cloneNode"),S=Ch(p,"nextSibling"),y=Ch(p,"childNodes"),R=Ch(p,"parentNode");if(typeof o=="function"){var T=r.createElement("template");T.content&&T.content.ownerDocument&&(r=T.content.ownerDocument)}var N=nB(g,n),I=N?N.createHTML(""):"",F=r,B=F.implementation,ee=F.createNodeIterator,U=F.createDocumentFragment,j=F.getElementsByTagName,re=n.importNode,ie={};try{ie=Es(r).documentMode?r.documentMode:{}}catch{}var oe={};e.isSupported=typeof R=="function"&&B&&B.createHTMLDocument!==void 0&&ie!==9;var ve=zV,_e=jV,rt=KV,Fe=XV,pe=qV,f=QV,m=JV,w=ZV,A=null,O=je({},[].concat(jr(pE),jr(tw),jr(nw),jr(rw),jr(wE))),D=null,z=je({},[].concat(jr(vE),jr(iw),jr(CE),jr(Sh))),G=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,Z=null,K=!0,Se=!0,Pe=!1,Oe=!0,He=!1,Y=!1,lt=!1,Be=!1,xe=!1,De=!1,be=!1,C=!0,b=!1,_="user-content-",k=!0,M=!1,$={},P=null,H=je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),W=null,L=je({},["audio","video","img","source","image","track"]),V=null,te=je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ye="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml",We=Me,St=!1,qe=null,ct=je({},[he,ye,Me],Jp),_t,Ra=["application/xhtml+xml","text/html"],Xl="text/html",Vt,cn=null,bs=r.createElement("form"),In=function(x){return x instanceof RegExp||x instanceof Function},Qt=function(x){cn&&cn===x||((!x||jo(x)!=="object")&&(x={}),x=Es(x),_t=Ra.indexOf(x.PARSER_MEDIA_TYPE)===-1?_t=Xl:_t=x.PARSER_MEDIA_TYPE,Vt=_t==="application/xhtml+xml"?Jp:Yd,A="ALLOWED_TAGS"in x?je({},x.ALLOWED_TAGS,Vt):O,D="ALLOWED_ATTR"in x?je({},x.ALLOWED_ATTR,Vt):z,qe="ALLOWED_NAMESPACES"in x?je({},x.ALLOWED_NAMESPACES,Jp):ct,V="ADD_URI_SAFE_ATTR"in x?je(Es(te),x.ADD_URI_SAFE_ATTR,Vt):te,W="ADD_DATA_URI_TAGS"in x?je(Es(L),x.ADD_DATA_URI_TAGS,Vt):L,P="FORBID_CONTENTS"in x?je({},x.FORBID_CONTENTS,Vt):H,ne="FORBID_TAGS"in x?je({},x.FORBID_TAGS,Vt):{},Z="FORBID_ATTR"in x?je({},x.FORBID_ATTR,Vt):{},$="USE_PROFILES"in x?x.USE_PROFILES:!1,K=x.ALLOW_ARIA_ATTR!==!1,Se=x.ALLOW_DATA_ATTR!==!1,Pe=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=x.SAFE_FOR_TEMPLATES||!1,Y=x.WHOLE_DOCUMENT||!1,xe=x.RETURN_DOM||!1,De=x.RETURN_DOM_FRAGMENT||!1,be=x.RETURN_TRUSTED_TYPE||!1,Be=x.FORCE_BODY||!1,C=x.SANITIZE_DOM!==!1,b=x.SANITIZE_NAMED_PROPS||!1,k=x.KEEP_CONTENT!==!1,M=x.IN_PLACE||!1,w=x.ALLOWED_URI_REGEXP||w,We=x.NAMESPACE||Me,G=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&In(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&In(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(G.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(Se=!1),De&&(xe=!0),$&&(A=je({},jr(wE)),D=[],$.html===!0&&(je(A,pE),je(D,vE)),$.svg===!0&&(je(A,tw),je(D,iw),je(D,Sh)),$.svgFilters===!0&&(je(A,nw),je(D,iw),je(D,Sh)),$.mathMl===!0&&(je(A,rw),je(D,CE),je(D,Sh))),x.ADD_TAGS&&(A===O&&(A=Es(A)),je(A,x.ADD_TAGS,Vt)),x.ADD_ATTR&&(D===z&&(D=Es(D)),je(D,x.ADD_ATTR,Vt)),x.ADD_URI_SAFE_ATTR&&je(V,x.ADD_URI_SAFE_ATTR,Vt),x.FORBID_CONTENTS&&(P===H&&(P=Es(P)),je(P,x.FORBID_CONTENTS,Vt)),k&&(A["#text"]=!0),Y&&je(A,["html","head","body"]),A.table&&(je(A,["tbody"]),delete ne.tbody),Bn&&Bn(x),cn=x)},yt=je({},["mi","mo","mn","ms","mtext"]),wR=je({},["foreignobject","desc","title","annotation-xml"]),kN=je({},["title","style","font","a","script"]),hh=je({},tw);je(hh,nw),je(hh,YV);var Ip=je({},rw);je(Ip,GV);var FN=function(x){var J=R(x);(!J||!J.tagName)&&(J={namespaceURI:We,tagName:"template"});var le=Yd(x.tagName),ut=Yd(J.tagName);return qe[x.namespaceURI]?x.namespaceURI===ye?J.namespaceURI===Me?le==="svg":J.namespaceURI===he?le==="svg"&&(ut==="annotation-xml"||yt[ut]):!!hh[le]:x.namespaceURI===he?J.namespaceURI===Me?le==="math":J.namespaceURI===ye?le==="math"&&wR[ut]:!!Ip[le]:x.namespaceURI===Me?J.namespaceURI===ye&&!wR[ut]||J.namespaceURI===he&&!yt[ut]?!1:!Ip[le]&&(kN[le]||!hh[le]):!!(_t==="application/xhtml+xml"&&qe[x.namespaceURI]):!1},Wi=function(x){Ql(e.removed,{element:x});try{x.parentNode.removeChild(x)}catch{try{x.outerHTML=I}catch{x.remove()}}},Pp=function(x,J){try{Ql(e.removed,{attribute:J.getAttributeNode(x),from:J})}catch{Ql(e.removed,{attribute:null,from:J})}if(J.removeAttribute(x),x==="is"&&!D[x])if(xe||De)try{Wi(J)}catch{}else try{J.setAttribute(x,"")}catch{}},vR=function(x){var J,le;if(Be)x=""+x;else{var ut=WV(x,/^[\r\n\t ]+/);le=ut&&ut[0]}_t==="application/xhtml+xml"&&We===Me&&(x=''+x+"");var Gn=N?N.createHTML(x):x;if(We===Me)try{J=new d().parseFromString(Gn,_t)}catch{}if(!J||!J.documentElement){J=B.createDocument(We,"template",null);try{J.documentElement.innerHTML=St?I:Gn}catch{}}var mn=J.body||J.documentElement;return x&&le&&mn.insertBefore(r.createTextNode(le),mn.childNodes[0]||null),We===Me?j.call(J,Y?"html":"body")[0]:Y?J.documentElement:mn},CR=function(x){return ee.call(x.ownerDocument||x,x,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},WN=function(x){return x instanceof h&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof c)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},ql=function(x){return jo(s)==="object"?x instanceof s:x&&jo(x)==="object"&&typeof x.nodeType=="number"&&typeof x.nodeName=="string"},Vi=function(x,J,le){oe[x]&&FV(oe[x],function(ut){ut.call(e,J,le,cn)})},SR=function(x){var J;if(Vi("beforeSanitizeElements",x,null),WN(x)||Pn(/[\u0080-\uFFFF]/,x.nodeName))return Wi(x),!0;var le=Vt(x.nodeName);if(Vi("uponSanitizeElement",x,{tagName:le,allowedTags:A}),x.hasChildNodes()&&!ql(x.firstElementChild)&&(!ql(x.content)||!ql(x.content.firstElementChild))&&Pn(/<[/\w]/g,x.innerHTML)&&Pn(/<[/\w]/g,x.textContent)||le==="select"&&Pn(/