1const Ln=Symbol("Comlink.proxy"),xr=Symbol("Comlink.endpoint"),Lr=Symbol("Comlink.releaseProxy"),be=Symbol("Comlink.finalizer"),te=Symbol("Comlink.thrown"),Mn=t=>typeof t=="object"&&t!==null||typeof t=="function",Mr={canHandle:t=>Mn(t)&&t[Ln],serialize(t){const{port1:e,port2:r}=new MessageChannel;return ve(t,e),[r,[r]]},deserialize(t){return t.start(),Fr(t)}},kr={canHandle:t=>Mn(t)&&te in t,serialize({value:t}){let e;return t instanceof Error?e={isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:e={isError:!1,value:t},[e,[]]},deserialize(t){throw t.isError?Object.assign(new Error(t.value.message),t.value):t.value}},kn=new Map([["proxy",Mr],["throw",kr]]);function Pr(t,e){for(const r of t)if(e===r||r==="*"||r instanceof RegExp&&r.test(e))return!0;return!1}function ve(t,e=globalThis,r=["*"]){e.addEventListener("message",function i(s){if(!s||!s.data)return;if(!Pr(r,s.origin)){console.warn(`Invalid origin '${s.origin}' for comlink proxy`);return}const{id:c,type:m,path:h}=Object.assign({path:[]},s.data),p=(s.data.argumentList||[]).map(at);let _;try{const g=h.slice(0,-1).reduce((T,M)=>T[M],t),S=h.reduce((T,M)=>T[M],t);switch(m){case"GET":_=S;break;case"SET":g[h.slice(-1)[0]]=at(s.data.value),_=!0;break;case"APPLY":_=S.apply(g,p);break;case"CONSTRUCT":{const T=new S(...p);_=Gr(T)}break;case"ENDPOINT":{const{port1:T,port2:M}=new MessageChannel;ve(t,M),_=vn(T,[T])}break;case"RELEASE":_=void 0;break;default:return}}catch(g){_={value:g,[te]:0}}Promise.resolve(_).catch(g=>({value:g,[te]:0})).then(g=>{const[S,T]=oe(g);e.postMessage(Object.assign(Object.assign({},S),{id:c}),T),m==="RELEASE"&&(e.removeEventListener("message",i),Pn(e),be in t&&typeof t[be]=="function"&&t[be]())}).catch(g=>{const[S,T]=oe({value:new TypeError("Unserializable return value"),[te]:0});e.postMessage(Object.assign(Object.assign({},S),{id:c}),T)})}),e.start&&e.start()}function Ur(t){return t.constructor.name==="MessagePort"}function Pn(t){Ur(t)&&t.close()}function Fr(t,e){const r=new Map;return t.addEventListener("message",function(s){const{data:c}=s;if(!c||!c.id)return;const m=r.get(c.id);if(m)try{m(c)}finally{r.delete(c.id)}}),ke(t,r,[],e)}function Kt(t){if(t)throw new Error("Proxy has been released and is not useable")}function Un(t){return Tt(t,new Map,{type:"RELEASE"}).then(()=>{Pn(t)})}const ne=new WeakMap,re="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(ne.get(t)||0)-1;ne.set(t,e),e===0&&Un(t)});function vr(t,e){const r=(ne.get(e)||0)+1;ne.set(e,r),re&&re.register(t,e,t)}function zr(t){re&&re.unregister(t)}function ke(t,e,r=[],i=function(){}){let s=!1;const c=new Proxy(i,{get(m,h){if(Kt(s),h===Lr)return()=>{zr(c),Un(t),e.clear(),s=!0};if(h==="then"){if(r.length===0)return{then:()=>c};const p=Tt(t,e,{type:"GET",path:r.map(_=>_.toString())}).then(at);return p.then.bind(p)}return ke(t,e,[...r,h])},set(m,h,p){Kt(s);const[_,g]=oe(p);return Tt(t,e,{type:"SET",path:[...r,h].map(S=>S.toString()),value:_},g).then(at)},apply(m,h,p){Kt(s);const _=r[r.length-1];if(_===xr)return Tt(t,e,{type:"ENDPOINT"}).then(at);if(_==="bind")return ke(t,e,r.slice(0,-1));const[g,S]=hn(p);return Tt(t,e,{type:"APPLY",path:r.map(T=>T.toString()),argumentList:g},S).then(at)},construct(m,h){Kt(s);const[p,_]=hn(h);return Tt(t,e,{type:"CONSTRUCT",path:r.map(g=>g.toString()),argumentList:p},_).then(at)}});return vr(c,t),c}function Hr(t){return Array.prototype.concat.apply([],t)}function hn(t){const e=t.map(oe);return[e.map(r=>r[0]),Hr(e.map(r=>r[1]))]}const Fn=new WeakMap;function vn(t,e){return Fn.set(t,e),t}function Gr(t){return Object.assign(t,{[Ln]:!0})}function oe(t){for(const[e,r]of kn)if(r.canHandle(t)){const[i,s]=r.serialize(t);return[{type:"HANDLER",name:e,value:i},s]}return[{type:"RAW",value:t},Fn.get(t)||[]]}function at(t){switch(t.type){case"HANDLER":return kn.get(t.name).deserialize(t.value);case"RAW":return t.value}}function Tt(t,e,r,i){return new Promise(s=>{const c=Wr();e.set(c,s),t.start&&t.start(),t.postMessage(Object.assign({id:c},r),i)})}function Wr(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const zn=(t=Mt.UNKNOWN_ERR,e,r,i)=>{const s=we(e)?e.type:Br(e)?Mt.NETWORK_FAILED_ERR:t,c=Hn(e)||we(e)?e.message:"",m=c?`${c} 2 : ${_n(e)}`:`: ${_n(e)}`,h=we(e)&&e.errorArgs!==void 0?e.errorArgs:i;return{__internal:"MediaProcessingError",type:s,message:m,errorArgs:h}},we=t=>typeof t=="object"&&t!==null&&"__internal"in t,Hn=t=>t instanceof Error,$r=t=>t instanceof DOMException,Br=t=>Hn(t)&&t.name==="TypeError"&&t.message==="Network request failed",Yr=t=>{if($r(t))return`DOMException ${t.name}(${t.code}): ${t.message}`;const e=Object.getOwnPropertyNames(t);try{return JSON.stringify(t,e)}catch(r){return`{${e.map(s=>`${s}: ${t[s]}`).join(", ")}} (stringify failed: ${r})`}},_n=t=>{switch(typeof t){case"string":return t;case"undefined":return"undefined";case"function":return`function ${t.name}`;case"number":case"bigint":case"symbol":case"boolean":return t.toString();case"object":return t!==null?Yr(t):"null"}};
2class jr extends Error{}class J extends jr{constructor(){super("Zone is an abstract class")}}function Pt(t){return typeof t>"u"}function Vr(){try{return typeof Intl<"u"&&Intl.DateTimeFormat}catch{return!1}}function Xr(){return!Pt(Intl.DateTimeFormat.prototype.formatToParts)}function Zt(t,e=2){return t.toString().length<e?("0".repeat(e)+t).slice(-e):t.toString()}function Gn(t){if(!(Pt(t)||t===null||t===""))return parseInt(t,10)}function qr(t){if(!(Pt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Kr(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Zr(t,e,r,i=null){const s=new Date(t),c={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(c.timeZone=i);const m=Object.assign({timeZoneName:e},c),h=Vr();if(h&&Xr()){const p=new Intl.DateTimeFormat(r,m).formatToParts(s).find(_=>_.type.toLowerCase()==="timezonename");return p?p.value:null}else if(h){const p=new Intl.DateTimeFormat(r,c).format(s);return new Intl.DateTimeFormat(r,m).format(s).substring(p.length).replace(/^[, \u200e]+/,"")}else return null}function Wn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const i=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-i:i;return r*60+s}function Pe(t,e){const r=Math.trunc(t/60),i=Math.abs(t%60),s=r>=0&&!Object.is(r,-0)?"+":"-",c=`${s}${Math.abs(r)}`;switch(e){case"short":return`${s}${Zt(Math.abs(r),2)}:${Zt(i,2)}`;case"narrow":return i>0?`${c}:${i}`:c;case"techie":return`${s}${Zt(Math.abs(r),2)}${Zt(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}const $n=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;class Bn{get type(){throw new J}get name(){throw new J}get universal(){throw new J}offsetName(e,r){throw new J}formatOffset(e,r){throw new J}offset(e){throw new J}equals(e){throw new J}get isValid(){throw new J}}const Jr=RegExp(`^${$n.source}$`);let ee={};function Qr(t){return ee[t]||(ee[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),ee[t]}const to={year:0,month:1,day:2,hour:3,minute:4,second:5};function eo(t,e){const r=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r),[,s,c,m,h,p,_]=i;return[m,s,c,h,p,_]}function no(t,e){const r=t.formatToParts(e),i=[];for(let s=0;s<r.length;s++){const{type:c,value:m}=r[s],h=to[c];Pt(h)||(i[h]=parseInt(m,10))}return i}let Jt={};class ie extends Bn{static create(e){return Jt[e]||(Jt[e]=new ie(e)),Jt[e]}static resetCache(){Jt={},ee={}}static isValidSpecifier(e){return!!(e&&e.match(Jr))}static isValidZone(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}static parseGMTOffset(e){if(e){const r=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(r)return-60*parseInt(r[1])}return null}constructor(e){super(),this.zoneName=e,this.valid=ie.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get universal(){return!1}offsetName(e,{format:r,locale:i}){return Zr(e,r,i,this.name)}formatOffset(e,r){return Pe(this.offset(e),r)}offset(e){const r=new Date(e),i=Qr(this.name),[s,c,m,h,p,_]=i.formatToParts?no(i,r):eo(i,r),S=Kr({year:s,month:c,day:m,hour:h===24?0:h,minute:p,second:_,millisecond:0});let T=+r;const M=T%1e3;return T-=M>=0?M:1e3+M,(S-T)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ie=null;class At extends Bn{static get utcInstance(){return Ie===null&&(Ie=new At(0)),Ie}static instance(e){return e===0?At.utcInstance:new At(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new At(Wn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Pe(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Pe(this.fixed,r)}get universal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}function yt(...t){const e=t.reduce((r,i)=>r+i.source,"");return RegExp(`^${e}$`)}function Rt(...t){return e=>t.reduce(([r,i,s],c)=>{const[m,h,p]=c(e,s);return[Object.assign(r,m),i||h,p]},[{},null,1]).slice(0,2)}function Yn(...t){return(e,r)=>{const i={};let s;for(s=0;s<t.length;s++)i[t[s]]=Gn(e[r+s]);return[i,null,r+s]}}const jn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Vn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,9}))?)?)?/,Xn=RegExp(`${Vn.source}${jn.source}?`),ze=RegExp(`(?:T${Xn.source})?`),ro=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,oo=/(\d{4})-?W(\d\d)(?:-?(\d))?/,io=/(\d{4})-?(\d{3})/,so=Yn("weekYear","weekNumber","weekDay"),ao=Yn("year","ordinal"),lo=/(\d{4})-(\d\d)-(\d\d)/,qn=RegExp(`${Vn.source} ?(?:${jn.source}|(${$n.source}))?`),co=RegExp(`(?: ${qn.source})?`);function St(t,e,r){const i=t[e];return Pt(i)?r:Gn(i)}function Kn(t,e){return[{year:St(t,e),month:St(t,e+1,1),day:St(t,e+2,1)},null,e+3]}function Ot(t,e){return[{hour:St(t,e,0),minute:St(t,e+1,0),second:St(t,e+2,0),millisecond:qr(t[e+3])},null,e+4]}function Ut(t,e){const r=!t[e]&&!t[e+1],i=Wn(t[e+1],t[e+2]),s=r?null:At.instance(i);return[{},s,e+3]}function Zn(t,e){const r=t[e]?ie.create(t[e]):null;return[{},r,e+1]}yt(ro,ze);yt(oo,ze);yt(io,ze);yt(Xn);Rt(Kn,Ot,Ut);Rt(so,Ot,Ut);Rt(ao,Ot);Rt(Ot,Ut);yt(lo,co);yt(qn);Rt(Kn,Ot,Ut,Zn);Rt(Ot,Ut,Zn);const Jn={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}};Object.assign({years:{months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3}},Jn);const W=146097/400,ht=146097/4800;Object.assign({years:{months:12,weeks:W/7,days:W,hours:W*24,minutes:W*24*60,seconds:W*24*60*60,milliseconds:W*24*60*60*1e3},quarters:{months:3,weeks:W/28,days:W/4,hours:W*24/4,minutes:W*24*60/4,seconds:W*24*60*60/4,milliseconds:W*24*60*60*1e3/4},months:{weeks:ht/7,days:ht,hours:ht*24,minutes:ht*24*60,seconds:ht*24*60*60,milliseconds:ht*24*60*60*1e3}},Jn);class F{static _zero=new F(0);_micros;constructor(e){this._micros=e}static fromUS(e){return new F(Math.round(e))}static fromMS(e){return new F(Math.round(e*1e3))}static fromSec(e){return new F(Math.round(e*1e6))}static zero(){return F._zero}static doOverlap(e,r,i,s){return e.lt(s)&&i.lt(r)}get as(){return{us:(e="raw",r)=>F._round(this._micros,e,r),ms:(e="raw",r)=>F._round(this._micros/1e3,e,r),sec:(e="raw",r)=>F._round(this._micros/1e6,e,r)}}lt(e){return this._micros<e._micros}lte(e){return this._micros<=e._micros}gt(e){return this._micros>e._micros}gte(e){return this._micros>=e._micros}eq(e,r=0){return Math.abs(this._micros-e._micros)<=r}add(e){return new F(this._micros+e._micros)}sub(e){return new F(this._micros-e._micros)}mul(e){return new F(Math.round(this._micros*e))}div(e){if(e===0)throw new Error("Division by zero at Time.div");return new F(Math.round(this._micros/e))}mod(e){if(e._micros===0)throw new Error("Division by zero at Time.mod");const r=this._micros%e._micros;return new F(r)}
2roundTo(e=0){return F.fromUS(this.as.us("round",e))}static compare(e,r){return e._micros-r._micros}static min(...e){if(e.length===0)throw new Error("Time.min requires at least one Time argument");let r=e[0];for(const i of e)i._micros<r._micros&&(r=i);return r}static max(...e){if(e.length===0)throw new Error("Time.max requires at least one Time argument");let r=e[0];for(const i of e)i._micros>r._micros&&(r=i);return r}static _round(e,r,i){if(r==="raw")return e;const s=10**(i??0);switch(r){case"round":return Math.round(e/s)*s;case"floor":return Math.floor(e/s)*s;case"ceil":return Math.ceil(e/s)*s}}}const uo=(t,e,r)=>Math.max(e,Math.min(t,r));function En(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function fo(t){if(Array.isArray(t))return t}function mo(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,s,c,m,h=[],p=!0,_=!1;try{if(c=(r=r.call(t)).next,e!==0)for(;!(p=(i=c.call(r)).done)&&(h.push(i.value),h.length!==e);p=!0);}catch(g){_=!0,s=g}finally{try{if(!p&&r.return!=null&&(m=r.return(),Object(m)!==m))return}finally{if(_)throw s}}return h}}function po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ho(t,e){return fo(t)||mo(t,e)||_o(t,e)||po()}function _o(t,e){if(t){if(typeof t=="string")return En(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?En(t,e):void 0}}const Qn=Object.entries,Tn=Object.setPrototypeOf,Eo=Object.isFrozen,To=Object.getPrototypeOf,go=Object.getOwnPropertyDescriptor;let x=Object.freeze,L=Object.seal,gt=Object.create,tr=typeof Reflect<"u"&&Reflect,Ue=tr.apply,Fe=tr.construct;x||(x=function(e){return e});L||(L=function(e){return e});Ue||(Ue=function(e,r){for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];return e.apply(r,s)});Fe||(Fe=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return new e(...i)});const _t=D(Array.prototype.forEach),Ao=D(Array.prototype.lastIndexOf),gn=D(Array.prototype.pop),Et=D(Array.prototype.push),So=D(Array.prototype.splice),tt=Array.isArray,Lt=D(String.prototype.toLowerCase),De=D(String.prototype.toString),An=D(String.prototype.match),Ct=D(String.prototype.replace),Sn=D(String.prototype.indexOf),yo=D(String.prototype.trim),Ro=D(Number.prototype.toString),Oo=D(Boolean.prototype.toString),yn=typeof BigInt>"u"?null:D(BigInt.prototype.toString),Rn=typeof Symbol>"u"?null:D(Symbol.prototype.toString),C=D(Object.prototype.hasOwnProperty),xt=D(Object.prototype.toString),N=D(RegExp.prototype.test),st=bo(TypeError);function D(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return Ue(t,e,i)}}function bo(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return Fe(t,r)}}function E(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Lt;if(Tn&&Tn(t,null),!tt(e))return t;let i=e.length;for(;i--;){let s=e[i];if(typeof s=="string"){const c=r(s);c!==s&&(Eo(e)||(e[i]=c),s=c)}t[s]=!0}return t}function wo(t){for(let e=0;e<t.length;e++)C(t,e)||(t[e]=null);return t}function k(t){const e=gt(null);for(const i of Qn(t)){var r=ho(i,2);const s=r[0],c=r[1];C(t,s)&&(tt(c)?e[s]=wo(c):c&&typeof c=="object"&&c.constructor===Object?e[s]=k(c):e[s]=c)}return e}function Io(t){switch(typeof t){case"string":return t;case"number":return Ro(t);case"boolean":return Oo(t);case"bigint":return yn?yn(t):"0";case"symbol":return Rn?Rn(t):"Symbol()";case"undefined":return xt(t);case"function":case"object":{if(t===null)return xt(t);const e=t,r=$(e,"toString");if(typeof r=="function"){const i=r(e);return typeof i=="string"?i:xt(i)}return xt(t)}default:return xt(t)}}function $(t,e){for(;t!==null;){const i=go(t,e);if(i){if(i.get)return D(i.get);if(typeof i.value=="function")return D(i.value)}t=To(t)}function r(){return null}return r}function Do(t){try{return N(t,""),!0}catch{return!1}}
3const On=x(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ne=x(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ce=x(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),No=x(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xe=x(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Co=x(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),bn=x(["#text"]),wn=x(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Le=x(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),In=x(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
3subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Qt=x(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xo=L(/{{[\w\W]*|^[\w\W]*}}/g),Lo=L(/<%[\w\W]*|^[\w\W]*%>/g),Mo=L(/\${[\w\W]*/g),ko=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),Po=L(/^aria-[\-\w]+$/),Dn=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uo=L(/^(?:\w+script|data):/i),Fo=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vo=L(/^html$/i),zo=L(/^[a-z][.\w]*(-[.\w]+)+$/i),Nn=L(/<[/\w!]/g),Cn=L(/<[/\w]/g),Ho=L(/<\/no(script|embed|frames)/i),Go=L(/\/>/i),G={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Wo=function(){return typeof window>"u"?null:window},$o=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(i=r.getAttribute(s));const c="dompurify"+(i?"#"+i:"");try{return e.createPolicy(c,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},xn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Q=function(e,r,i,s){return C(e,r)&&tt(e[r])?E(s.base?k(s.base):{},e[r],s.transform):i};function er(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wo();const e=l=>er(l);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==G.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const i=r,s=i.currentScript;t.DocumentFragment;const c=t.HTMLTemplateElement,m=t.Node,h=t.Element,p=t.NodeFilter,_=t.NamedNodeMap;_===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const g=t.DOMParser,S=t.trustedTypes,T=h.prototype,M=$(T,"cloneNode"),et=$(T,"remove"),nr=$(T,"nextSibling"),lt=$(T,"childNodes"),nt=$(T,"parentNode"),He=$(T,"shadowRoot"),se=$(T,"attributes"),P=m&&m.prototype?$(m.prototype,"nodeType"):null,B=m&&m.prototype?$(m.prototype,"nodeName"):null,Ft=m&&m.prototype?$(m.prototype,"ownerDocument"):null;if(typeof c=="function"){const l=r.createElement("template");l.content&&l.content.ownerDocument&&(r=l.content.ownerDocument)}let v,rt="",ae,Ge=!1,bt=0;const We=function(){if(bt>0)throw st('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ct=function(n){We(),bt++;try{return v.createHTML(n)}finally{bt--}},rr=function(n){We(),bt++;try{return v.createScriptURL(n)}finally{bt--}},or=function(){return Ge||(ae=$o(S,s),Ge=!0),ae},vt=r,le=vt.implementation,$e=vt.createNodeIterator,ir=vt.createDocumentFragment,sr=vt.getElementsByTagName,ar=i.importNode;let y=xn();e.isSupported=typeof Qn=="function"&&typeof nt=="function"&&le&&le.createHTMLDocument!==void 0;const lr=xo,cr=Lo,ur=Mo,fr=ko,mr=Po,dr=Uo,Be=Fo,pr=zo;let Ye=Dn,R=null;const ce=E({},[...On,...Ne,...Ce,...xe,...bn]);let O=null;const ue=E({},[...wn,...Le,...In,...Qt]);let I=Object.seal(gt(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}})),wt=null,je=null;
vendor: 1,655 bytes, line 3
3const X=Object.seal(gt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ve=!0,fe=!0,Xe=!1,qe=!0,q=!1,K=!0,ot=!1,me=!1,zt=null,Ht=null,de=!1,ut=!1,Gt=!1,Wt=!1,Ke=!0,Ze=!1;const Je="user-content-";let pe=!0,$t=!1,ft={},Y=null;const he=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qe=null;const tn=E({},["audio","video","img","source","image","track"]);let _e=null;const en=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bt="http://www.w3.org/1998/Math/MathML",Yt="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml";let mt=j,Ee=!1,Te=null;const hr=E({},[Bt,Yt,j],De),nn=x(["mi","mo","mn","ms","mtext"]);let ge=E({},nn);const rn=x(["annotation-xml"]);let Ae=E({},rn);const _r=E({},["title","style","font","a","script"]);let It=null;const Er=["application/xhtml+xml","text/html"],Tr="text/html";let b=null,dt=null;const gr=r.createElement("form"),on=function(n){return n instanceof RegExp||n instanceof Function},Se=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dt&&dt===n)return;(!n||typeof n!="object")&&(n={}),n=k(n),It=Er.indexOf(n.PARSER_MEDIA_TYPE)===-1?Tr:n.PARSER_MEDIA_TYPE,b=It==="application/xhtml+xml"?De:Lt,R=Q(n,"ALLOWED_TAGS",ce,{transform:b}),O=Q(n,"ALLOWED_ATTR",ue,{transform:b}),Te=Q(n,"ALLOWED_NAMESPACES",hr,{transform:De}
vendor: 4,109 bytes, line 3
3),_e=Q(n,"ADD_URI_SAFE_ATTR",en,{transform:b,base:en}),Qe=Q(n,"ADD_DATA_URI_TAGS",tn,{transform:b,base:tn}),Y=Q(n,"FORBID_CONTENTS",he,{transform:b}),wt=Q(n,"FORBID_TAGS",k({}),{transform:b}),je=Q(n,"FORBID_ATTR",k({}),{transform:b}),ft=C(n,"USE_PROFILES")?n.USE_PROFILES&&typeof n.USE_PROFILES=="object"?k(n.USE_PROFILES):n.USE_PROFILES:!1,Ve=n.ALLOW_ARIA_ATTR!==!1,fe=n.ALLOW_DATA_ATTR!==!1,Xe=n.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=n.ALLOW_SELF_CLOSE_IN_ATTR!==!1,q=n.SAFE_FOR_TEMPLATES||!1,K=n.SAFE_FOR_XML!==!1,ot=n.WHOLE_DOCUMENT||!1,ut=n.RETURN_DOM||!1,Gt=n.RETURN_DOM_FRAGMENT||!1,Wt=n.RETURN_TRUSTED_TYPE||!1,de=n.FORCE_BODY||!1,Ke=n.SANITIZE_DOM!==!1,Ze=n.SANITIZE_NAMED_PROPS||!1,pe=n.KEEP_CONTENT!==!1,$t=n.IN_PLACE||!1,Ye=Do(n.ALLOWED_URI_REGEXP)?n.ALLOWED_URI_REGEXP:Dn,mt=typeof n.NAMESPACE=="string"?n.NAMESPACE:j,ge=C(n,"MATHML_TEXT_INTEGRATION_POINTS")&&n.MATHML_TEXT_INTEGRATION_POINTS&&typeof n.MATHML_TEXT_INTEGRATION_POINTS=="object"?k(n.MATHML_TEXT_INTEGRATION_POINTS):E({},nn),Ae=C(n,"HTML_INTEGRATION_POINTS")&&n.HTML_INTEGRATION_POINTS&&typeof n.HTML_INTEGRATION_POINTS=="object"?k(n.HTML_INTEGRATION_POINTS):E({},rn);const o=C(n,"CUSTOM_ELEMENT_HANDLING")&&n.CUSTOM_ELEMENT_HANDLING&&typeof n.CUSTOM_ELEMENT_HANDLING=="object"?k(n.CUSTOM_ELEMENT_HANDLING):gt(null);if(I=gt(null),C(o,"tagNameCheck")&&on(o.tagNameCheck)&&(I.tagNameCheck=o.tagNameCheck),C(o,"attributeNameCheck")&&on(o.attributeNameCheck)&&(I.attributeNameCheck=o.attributeNameCheck),C(o,"allowCustomizedBuiltInElements")&&typeof o.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=o.allowCustomizedBuiltInElements),L(I),q&&(fe=!1),Gt&&(ut=!0),ft&&(R=E({},bn),O=gt(null),ft.html===!0&&(E(R,On),E(O,wn)),ft.svg===!0&&(E(R,Ne),E(O,Le),E(O,Qt)),ft.svgFilters===!0&&(E(R,Ce),E(O,Le),E(O,Qt)),ft.mathMl===!0&&(E(R,xe),E(O,In),E(O,Qt))),X.tagCheck=null,X.attributeCheck=null,C(n,"ADD_TAGS")&&(typeof n.ADD_TAGS=="function"?X.tagCheck=n.ADD_TAGS:tt(n.ADD_TAGS)&&(R===ce&&(R=k(R)),E(R,n.ADD_TAGS,b))),C(n,"ADD_ATTR")&&(typeof n.ADD_ATTR=="function"?X.attributeCheck=n.ADD_ATTR:tt(n.ADD_ATTR)&&(O===ue&&(O=k(O)),E(O,n.ADD_ATTR,b))),C(n,"ADD_URI_SAFE_ATTR")&&tt(n.ADD_URI_SAFE_ATTR)&&E(_e,n.ADD_URI_SAFE_ATTR,b),C(n,"FORBID_CONTENTS")&&tt(n.FORBID_CONTENTS)&&(Y===he&&(Y=k(Y)),E(Y,n.FORBID_CONTENTS,b)),C(n,"ADD_FORBID_CONTENTS")&&tt(n.ADD_FORBID_CONTENTS)&&(Y===he&&(Y=k(Y)),E(Y,n.ADD_FORBID_CONTENTS,b)),pe&&(R["#text"]=!0),ot&&E(R,["html","head","body"]),R.table&&(E(R,["tbody"]),delete wt.tbody),n.TRUSTED_TYPES_POLICY){if(typeof n.TRUSTED_TYPES_POLICY.createHTML!="function")throw st('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof n.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw st('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const a=v;v=n.TRUSTED_TYPES_POLICY;try{rt=ct("")}catch(u){throw v=a,u}}else n.TRUSTED_TYPES_POLICY===null?(v=void 0,rt=""):(v===void 0&&(v=or()),v&&typeof rt=="string"&&(rt=ct("")));x&&x(n),dt=n},sn=E({},[...Ne,...Ce,...No]),an=E({},[...xe,...Co]),Ar=function(n,o,a){return o.namespaceURI===j?n==="svg":o.namespaceURI===Bt?n==="svg"&&(a==="annotation-xml"||ge[a]):!!sn[n]},Sr=function(n,o,a){return o.namespaceURI===j?n==="math":o.namespaceURI===Yt?n==="math"&&Ae[a]:!!an[n]},yr=function(n,o,a){return o.namespaceURI===Yt&&!Ae[a]||o.namespaceURI===Bt&&!ge[a]?!1:!an[n]&&(_r[n]||!sn[n])},Rr=function(n){let o=nt(n);(!o||!o.tagName)&&(o={namespaceURI:mt,tagName:"template"});const a=Lt(n.tagName),u=Lt(o.tagName);return Te[n.namespaceURI]?n.namespaceURI===Yt?Ar(a,o,u):n.namespaceURI===Bt?Sr(a,o,u):n.namespaceURI===j?yr(a,o,u):!!(It==="application/xhtml+xml"&&Te[n.namespaceURI]):!1},Z=function(n){Et(e.removed,{element:n});try{nt(n).removeChild(n)}catch{if(et(n),!nt(n))throw st("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},jt=function(n){Dt(n);const o=lt(n);if(o){const u=[];_t(o,f=>{Et(u,f)}),_t(u,f=>{try{et(f)}catch{}})}const a=se(n);if(a)for(let u=a.length-1;u>=0;--u){const f=a[u],d=f&&f.name;
3if(typeof d=="string")try{n.removeAttribute(d)}catch{}}},it=function(n,o){try{Et(e.removed,{attribute:o.getAttributeNode(n),from:o})}catch{Et(e.removed,{attribute:null,from:o})}if(o.removeAttribute(n),n==="is")if(ut||Gt)try{Z(o)}catch{}else try{o.setAttribute(n,"")}catch{}},Or=function(n){const o=se(n);if(o)for(let a=o.length-1;a>=0;--a){const u=o[a],f=u&&u.name;if(!(typeof f!="string"||O[b(f)]))try{n.removeAttribute(f)}catch{}}},Dt=function(n){const o=[n];for(;o.length>0;){const a=o.pop();(P?P(a):a.nodeType)===G.element&&Or(a);const f=lt(a);if(f)for(let d=f.length-1;d>=0;--d)o.push(f[d])}},br=function(n){if(!K)return;const o=[n];for(;o.length>0;){const a=o.pop(),u=P?P(a):a.nodeType;if(u===G.processingInstruction||u===G.comment&&N(Cn,a.data)){try{et(a)}catch{}continue}if(u===G.element){const d=a,A=b(B?B(a):a.nodeName);try{d.hasAttribute&&d.hasAttribute("patchsrc")&&d.removeAttribute("patchsrc"),d.hasAttribute&&d.hasAttribute("for")&&A!=="label"&&A!=="output"&&d.removeAttribute("for")}catch{}}const f=lt(a);if(f)for(let d=f.length-1;d>=0;--d)o.push(f[d])}},ln=function(n){let o=null,a=null;if(de)n="<remove></remove>"+n;else{const d=An(n,/^[\r\n\t ]+/);a=d&&d[0]}It==="application/xhtml+xml"&&mt===j&&(n='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+n+"</body></html>");const u=v?ct(n):n;if(mt===j)try{o=new g().parseFromString(u,It)}catch{}if(!o||!o.documentElement){o=le.createDocument(mt,"template",null);try{o.documentElement.innerHTML=Ee?rt:u}catch{}}const f=o.body||o.documentElement;return n&&a&&f.insertBefore(r.createTextNode(a),f.childNodes[0]||null),mt===j?sr.call(o,ot?"html":"body")[0]:ot?o.documentElement:f},cn=function(n){const o=Ft?Ft(n):n.ownerDocument;return $e.call(o||n,n,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Vt=function(n){return n=Ct(n,lr," "),n=Ct(n,cr," "),n=Ct(n,ur," "),n},ye=function(n){var o;n.normalize();const a=Ft?Ft(n):n.ownerDocument,u=$e.call(a||n,n,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null);let f=u.nextNode();for(;f;)f.data=Vt(f.data),f=u.nextNode();const d=(o=n.querySelectorAll)===null||o===void 0?void 0:o.call(n,"template");d&&_t(d,A=>{pt(A.content)&&ye(A.content)})},Xt=function(n){const o=B?B(n):null;return typeof o!="string"||b(o)!=="form"?!1:typeof n.nodeName!="string"||typeof n.textContent!="string"||typeof n.removeChild!="function"||n.attributes!==se(n)||typeof n.removeAttribute!="function"||typeof n.setAttribute!="function"||typeof n.namespaceURI!="string"||typeof n.insertBefore!="function"||typeof n.hasChildNodes!="function"||n.nodeType!==P(n)||n.childNodes!==lt(n)},pt=function(n){if(!P||typeof n!="object"||n===null)return!1;try{return P(n)===G.documentFragment}catch{return!1}},Nt=function(n){if(!P||typeof n!="object"||n===null)return!1;try{return typeof P(n)=="number"}catch{return!1}};function V(l,n,o){l.length!==0&&_t(l,a=>{a.call(e,n,o,dt)})}const wr=function(n,o){return!!(K&&n.hasChildNodes()&&!Nt(n.firstElementChild)&&N(Nn,n.textContent)&&N(Nn,n.innerHTML)||K&&n.namespaceURI===j&&o==="style"&&Nt(n.firstElementChild)||n.nodeType===G.processingInstruction||K&&n.nodeType===G.comment&&N(Cn,n.data))},Ir=function(n,o,a){if(!wt[o]&&dn(o)&&(I.tagNameCheck instanceof RegExp&&N(I.tagNameCheck,o)||I.tagNameCheck instanceof Function&&I.tagNameCheck(o)))return!1;if(pe&&!Y[o]){const u=nt(n),f=lt(n);if(f&&u){const d=f.length;for(let A=d-1;A>=0;--A){const w=n===a?M(f[A],!0):f[A];u.insertBefore(w,nr(n))}}}return Z(n),!0},un=function(n,o,a,u){return n.length===0?o:o===a||o===u?k(o):o},fn=function(n,o){if(V(y.beforeSanitizeElements,n,null),n!==o&&nt(n)===null)return $t&&Dt(n),!0;if(Xt(n))return Z(n),!0;const a=b(B?B(n):n.nodeName);if(R=un(y.uponSanitizeElement,R,ce,zt),V(y.uponSanitizeElement,n,{tagName:a,allowedTags:R}),n!==o&&nt(n)===null)return $t&&Dt(n),!0;if(wr(n,a))return Z(n),!0;if(wt[a]||!(X.tagCheck instanceof Function&&X.tagCheck(a))&&!R[a]){const f=Ir(n,a,o);return f===!1&&V(y.afterSanitizeElements,n,null),f}if((P?P(n):n.nodeType)===G.element&&!Rr(n)||(a==="noscript"||a==="noembed"||a==="noframes")&&N(Ho,n.innerHTML))return Z(n),!0;if(q&&n.nodeType===G.text){const f=Vt(n.textContent);n.textContent!==f&&(Et(e.removed,{element:n.cloneNode()}),n.textContent=f)}return V(y.afterSanitizeElements,n,null),!1},mn=function(n,o,a){if(je[o]||K&&o==="patchsrc"||K&&o==="for"&&n!=="label"&&n!=="output"||Ke&&(o==="id"||o==="name")&&(a in r||a
3in gr))return!1;const u=O[o]||X.attributeCheck instanceof Function&&X.attributeCheck(o,n);if(!(fe&&N(fr,o))){if(!(Ve&&N(mr,o))){if(u){if(!_e[o]){if(!N(Ye,Ct(a,Be,""))){if(!((o==="src"||o==="xlink:href"||o==="href")&&n!=="script"&&Sn(a,"data:")===0&&Qe[n])){if(!(Xe&&!N(dr,Ct(a,Be,"")))){if(a)return!1}}}}}else if(!(dn(n)&&(I.tagNameCheck instanceof RegExp&&N(I.tagNameCheck,n)||I.tagNameCheck instanceof Function&&I.tagNameCheck(n))&&(I.attributeNameCheck instanceof RegExp&&N(I.attributeNameCheck,o)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(o,n))||o==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&N(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))))return!1}}return!0},Dr=E({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(n){return!Dr[Lt(n)]&&N(pr,n)},Nr=function(n,o,a,u){if(v&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!a)switch(S.getAttributeType(n,o)){case"TrustedHTML":return ct(u);case"TrustedScriptURL":return rr(u)}return u},Cr=function(n,o,a,u){try{a?n.setAttributeNS(a,o,u):n.setAttribute(o,u),Xt(n)?Z(n):gn(e.removed)}catch{it(o,n)}},pn=function(n){V(y.beforeSanitizeAttributes,n,null);const o=n.attributes;if(!o||Xt(n))return;O=un(y.uponSanitizeAttribute,O,ue,Ht);const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let u=o.length;const f=b(n.nodeName);for(;u--;){const d=o[u],A=d.name,w=d.namespaceURI,z=d.value,H=b(A),Oe=z;let U=A==="value"?Oe:yo(Oe);if(a.attrName=H,a.attrValue=U,a.keepAttr=!0,a.forceKeepAttr=void 0,V(y.uponSanitizeAttribute,n,a),U=a.attrValue,Ze&&(H==="id"||H==="name")&&Sn(U,Je)!==0&&(it(A,n),U=Je+U),K&&N(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,U)){it(A,n);continue}if(H==="attributename"&&An(U,"href")){it(A,n);continue}if(!a.forceKeepAttr){if(!a.keepAttr){it(A,n);continue}if(!qe&&N(Go,U)){it(A,n);continue}if(q&&(U=Vt(U)),!mn(f,H,U)){it(A,n);continue}U=Nr(f,H,w,U),U!==Oe&&Cr(n,A,w,U)}}V(y.afterSanitizeAttributes,n,null)},qt=function(n){let o=null;const a=cn(n);for(V(y.beforeSanitizeShadowDOM,n,null);o=a.nextNode();)if(V(y.uponSanitizeShadowNode,o,null),fn(o,n),pn(o),pt(o.content)&&qt(o.content),(P?P(o):o.nodeType)===G.element){const f=He(o);pt(f)&&(Re(f),qt(f))}V(y.afterSanitizeShadowDOM,n,null)},Re=function(n){const o=[{node:n,shadow:null}];for(;o.length>0;){const a=o.pop();if(a.shadow){qt(a.shadow);continue}const u=a.node,d=(P?P(u):u.nodeType)===G.element,A=lt(u);if(A)for(let w=A.length-1;w>=0;--w)o.push({node:A[w],shadow:null});if(d){const w=B?B(u):null;if(typeof w=="string"&&b(w)==="template"){const z=u.content;pt(z)&&o.push({node:z,shadow:null})}}if(d){const w=He(u);pt(w)&&o.push({node:null,shadow:w},{node:w,shadow:null})}}};return e.sanitize=function(l){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=null,a=null,u=null,f=null;if(Ee=!l,Ee&&(l="<!-->"),typeof l!="string"&&!Nt(l)&&(l=Io(l),typeof l!="string"))throw st("dirty is not a string, aborting");if(!e.isSupported)return l;me?(R=zt,O=Ht):Se(n),(y.uponSanitizeElement.length>0||y.uponSanitizeAttribute.length>0)&&(R=k(R)),y.uponSanitizeAttribute.length>0&&(O=k(O)),e.removed=[];const d=$t&&typeof l!="string"&&Nt(l);if(d){br(l);const z=B?B(l):l.nodeName;if(typeof z=="string"){const H=b(z);if(!R[H]||wt[H])throw jt(l),st("root node is forbidden and cannot be sanitized in-place")}if(Xt(l))throw jt(l),st("root node is clobbered and cannot be sanitized in-place");try{Re(l)}catch(H){throw jt(l),H}}else if(Nt(l))o=ln("<!---->"),a=o.ownerDocument.importNode(l,!0),a.nodeType===G.element&&a.nodeName==="BODY"||a.nodeName==="HTML"?o=a:o.appendChild(a),Re(a);else{if(!ut&&!q&&!ot&&l.indexOf("<")===-1)return v&&Wt?ct(l):l;if(o=ln(l),!o)return ut?null:Wt?rt:""}o&&de&&Z(o.firstChild);const A=d?l:o;try{const z=cn(A);for(;u=z.nextNode();)fn(u,A),pn(u),pt(u.content)&&qt(u.content)}catch(z){throw d&&(jt(l),_t(e.removed,H=>{H.element&&Dt(H.element)})),z}if(d)return _t(e.removed,z=>{z.element&&Dt(z.element)}),q&&ye(l),l;if(ut){if(q&&ye(o),Gt)for(f=ir.call(o.ownerDocument);o.firstChild;)f.appendChild(o.firstChild);else f=o;return(O.shadowroot||O.shadowrootmode)&&(f=ar.call(i,f,!0)),f}let w=ot?o.outerHTML:o.innerHTML;return ot&&R["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&N(vo,o.ownerDocument.doctype.name)&&(w="<!DOCTYPE "+o.ownerDocument.doctype.name+`> 4`+w),q&&(w=Vt(w)),v&&Wt?ct(w):w},e.setConfig=function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Se(l),me=!0,zt=R,Ht=O},e.clearConfig=function(){dt=null,me=!1,zt=null,Ht=null,v=ae,rt=""},e.isValidAttribute=function(l,n,o){dt||Se({});const a=b(l),u=b(n);return mn(a,u,o)},e.addHook=function(l,n){typeof n=="function"&&C(y,l)&&Et(y[l],n)},e.removeHook=function(l,n){if(C(y,l)){if(n!==void 0){const o=Ao(y[l],n);return o===-1?void 0:So(y[l],o,1)[0]}return gn(y[l])}},e.removeHooks=function(l){C(y,l)&&(y[l]=[])},e.removeAllHooks=function(){y=xn()},e}er();var Mt=(t=>
4(t.NOT_IMPLEMENTED="EEE",t.LOGIC_ERR="E00",t.UNKNOWN_ERR="E01",t.IMAGE_ASSET_LOST="E02",t.VIDEO_ASSET_LOST="E03",t.FFMPEG_SPAWN_FAILED="E04",t.FILE_READ_ERROR="E05",t.VIDEO_FORMAT_ERR="E06",t.VIDEO_DECODE_ERR="E07",t.VIDEO_RENDER_ERR="E08",t.CANVAS_CTX_ERR="E09",t.VIDEO_ENCODE_ERR="E10",t.NO_SUPPORTED_CONFIG="E11",t.ENCODED_VIDEO_NOT_FOUND="E12",t.CHAR_ASSET_LOST="E13",t.SIMPLE_CHARACTER_ASSET_LOST="E14",t.WATERMARK_LOST="E15",t.DISK_WRITE_ERR="E16",t.DISK_NO_SPACE="E17",t.MUXER_ERR="E18",t.CANVAS_RENDER_EMPTY_BLOB="E19",t.MUXING_AUDIO_FAILED="E20",t.AUDIO_EXPORT_ERR="E21",t.SOURCE_LOST="E22",t.ALPHA_MODE_ERR="E23",t.ASSET_CHUNK_LOST="E24",t.CTX_LOST="E25",t.ENCODER_TIMEOUT="E26",t.ENCODER_OPERATION_ERR="E27",t.NETWORK_FAILED_ERR="E28",t.BITMAP_CREATION_ERR="E29",t.AUDIO_LOGIC_ERR="E30",t.AUDIO_DECODE_ERR="E31",t.AUDIO_ENCODE_ERR="E32",t.AUDIO_DECODER_CONFIG_ERR="E33",t.DECODER_WORKER_SPAWN_ERR="E34",t.AUDIO_FORMAT_ERR="E35",t.IMAGE_EXPORT_GENERAL_ERROR="E36",t.RENDERER_INIT_HWACCEL_UNAVAILABLE="E37",t.AUDIO_ENCODER_TIMEOUT="E38",t.AUDIO_ENCODER_CONFIG_ERR="E39",t))(Mt||{});const Me=(t,e)=>Math.round(t/1e6*e),Bo=(t,e)=>vn(t,e);class Yo{process=(e,r)=>{const i=[];for(let s=0;s<r;s++){const c=Math.min(s,e.data.length-1);i.push(e.data[c])}return{timelineIndex:e.timelineIndex,sampleRate:e.sampleRate,data:i}}}let kt=null;const jo=()=>{if(!kt)throw zn(Mt.AUDIO_LOGIC_ERR,"audio mixer not initialized");return kt},Vo=async t=>{kt||(kt=new Ko(t))},Xo=async(t,e)=>{const i=jo().mix(t,e);return Bo(i,[i.buffer])},qo=async()=>{kt=null,globalThis.close()};class Ko{_channelMixer;_meta;_buffer=new Float32Array(0);_length=0;constructor(e){this._meta=e,this._channelMixer=new Yo}mix(e,r){this._throwIfInvalidPayload(e);const i=this._meta.sampleRate,s=Me(e.timelineStart,i),m=Me(e.timelineEnd,i)-s;this._buffer.length/this._meta.numberOfChannels<m?this._buffer=new Float32Array(m*this._meta.numberOfChannels):this._buffer.fill(0),this._length=m;for(const _ of r){const g=this._meta.numberOfChannels,S=this._channelMixer.process(_,g);this._schedule(e,S)}const p=this._length*this._meta.numberOfChannels;return this._buffer.slice(0,p)}_schedule(e,r){const i=e.timelineStart,s=this._meta.sampleRate,c=r.timelineIndex,m=Me(i,s),h=c-m,p=h<0?-h:0,_=h<0?0:h;for(let g=0;g<this._meta.numberOfChannels;g++){const S=r.data[g],T=this._buffer.subarray(g*this._length,(g+1)*this._length);for(let M=p;M<S.length;M++){const et=_+(M-p);et>=T.length||(T[et]=uo(T[et]+S[M],-1,1))}}}_throwIfInvalidPayload(e){if(e.timelineStart>=e.timelineEnd)throw zn(Mt.LOGIC_ERR,`invalid payload. ${e.timelineStart} - ${e.timelineEnd}`)}}var Zo=Object.freeze({__proto__:null,destroy:qo,init:Vo,render:Xo});ve(Zo); 5//# sourceMappingURL=mixer.audio-DdQ9z92e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.