zeed 0.8.56 → 0.8.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ var Ct=Object.defineProperty;var r=(e,t)=>Ct(e,"name",{value:t,configurable:!0});function Ot(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}r(Ot,"_global");function Y(){let e=Ot();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}r(Y,"getGlobalContext");function F(e){return e!=null&&typeof e=="object"}r(F,"isObject");function ye(e){return Object(e)!==e}r(ye,"isPrimitive");function k(e){return Array.isArray(e)}r(k,"isArray");function ne(e){return F(e)&&!k(e)}r(ne,"isRecord");function rr(e){return typeof e=="string"}r(rr,"isString");function or(e){return typeof e=="number"}r(or,"isNumber");function ir(e){return typeof e=="number"&&Number.isInteger(e)}r(ir,"isInteger");function sr(e){return typeof e=="number"&&Number.isSafeInteger(e)}r(sr,"isSafeInteger");function ze(e){return typeof e=="boolean"}r(ze,"isBoolean");function ar(e){return e==null}r(ar,"isNullOrUndefined");function ur(e){return F(e)&&e.constructor.name==="Uint8Array"}r(ur,"isUint8Array");function re(e,t,n=new WeakSet){if(e===t)return!0;if(n.has(t)||(ye(t)||n.add(t),!(e instanceof Object)||!(t instanceof Object))||e.constructor!==t.constructor||e.length!==t.length)return!1;for(let o in e){if(!e.hasOwnProperty(o))continue;if(!t.hasOwnProperty(o))return!1;let i=e[o],s=t[o];if(!re(i,s,n))return!1}for(let o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}r(re,"deepEqual");function $t(e,t=new WeakSet){if(t.has(e))return"[Circular ~]";if(ye(e)||t.add(e),ne(e)){for(let n in e)if(!!e.hasOwnProperty(n)){if(e[n]===void 0){delete e[n];continue}$t(e[n],t)}}else if(k(e))for(let n=e.length-1;n>=0;n--)e[n]===void 0&&e.splice(n,1);return e}r($t,"deepStripUndefinedInPlace");function oe(e,...t){for(let n of t)F(e)||(e={}),!(n==null||!F(n))&&Object.keys(n).forEach(o=>{let i=e[o],s=n[o];Array.isArray(i)&&Array.isArray(s)?e[o]=i.concat(s):F(i)&&F(s)?e[o]=oe(Object.assign({},i),s):e[o]=s});return e}r(oe,"deepMerge");function se(e={}){let{level:t=void 0,filter:n=void 0}=e,o=q(n),i=ie(t);return s=>{if(!i(s.level)||!o(s.name))return;let u=s.name?`[${s.name}]`:"";switch(s.level){case 1:console.info(`I|* ${u}`,...s.messages);break;case 2:console.warn(`W|** ${u}`,...s.messages);break;case 3:console.error(`E|*** ${u}`,...s.messages);break;default:console.debug(`D| ${u}`,...s.messages);break}}}r(se,"LoggerConsoleHandler");var Q=(a=>(a[a.all=-1]="all",a[a.debug=0]="debug",a[a.info=1]="info",a[a.warn=2]="warn",a[a.error=3]="error",a[a.fatal=4]="fatal",a[a.off=1/0]="off",a))(Q||{}),Ge={"*":-1,a:-1,all:-1,d:0,dbg:0,debug:0,i:1,inf:1,info:1,w:2,warn:2,warning:2,e:3,err:3,error:3,fatal:4,off:1/0,"-":1/0};function Ne(e=""){let t=[se()],n=2,o=r(c=>!0,"logCheckNamespace"),i=!1,s=a,u=!1;function a(c="",d){let g=he(d??-1);function h(f,p){return g<=f?p:()=>{}}r(h,"defineForLogLevel");let y=h(0,(...f)=>{x({name:c,messages:f,level:0})});y.label=c,y.extend=function(f){return s(c?`${c}:${f}`:f)};let x=r(f=>{if(o(c))for(let p of t)p&&p(f)},"emit");return y.debug=h(0,(...f)=>{x({name:c,messages:f,level:0})}),y.info=h(1,(...f)=>{x({name:c,messages:f,level:1})}),y.warn=h(2,(...f)=>{x({name:c,messages:f,level:2})}),y.error=h(3,(...f)=>{x({name:c,messages:f,level:3})}),y.assert=h(4,(f,...p)=>{f||(typeof console!==void 0&&(console.assert?console.assert(f,...p):console.error(`Assert did fail with: ${f}`,...p)),x({name:c,messages:p||[`Assert did fail with: ${f}`],level:n}))}),y.assertEqual=h(4,(f,p,...m)=>{let T=re(f,p);T||y.assert(T,`Assert did fail. Expected ${p} got ${f}`,p,f,...m)}),y.assertNotEqual=h(4,(f,p,...m)=>{let T=re(f,p);T&&y.assert(T,`Assert did fail. Expected ${p} not to be equal with ${f}`,p,f,...m)}),y}r(a,"LoggerBaseFactory");function l(c="",d){let g=s(c,d);return u&&g.debug(`+++ init of logger "${c}" on level "${Q[g.level]}".`),g}return r(l,"Logger"),l.registerHandler=function(c){t.push(c)},l.setFilter=function(c){o=q(c)},l.setLock=(c=!0)=>i=c,l.setDebug=(c=!0)=>u=c,l.setHandlers=function(c=[]){s!==a&&(s=a),!i&&(t=[...c].filter(d=>typeof d=="function"))},l.level=-1,l.setLogLevel=function(c=-1){i||(l.level=c)},l.setFactory=function(c){i||(s=c)},l}r(Ne,"LoggerContext");function Bt(e){return e===!0||e==="true"||e==="1"||typeof e=="number"&&e!==0?e="*":e===!1||e==="false"||e===0||e==="0"||e==null||e==="null"||e==="undefined"?e="":e=String(e),e}r(Bt,"getNamespaceFilterString");var Ht=Bt(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*");function q(e=Ht){let t,n=[],o=[];if(!e)t=r(function(i){return!1},"fn");else if(e==="*")t=r(function(i){return!0},"fn");else{let i,s=e.split(/[\s,]+/),u=s.length;for(i=0;i<u;i++){if(!s[i])continue;let a=s[i].replace(/\*/g,".*?");a[0]==="-"?n.push(new RegExp(`^${a.substr(1)}$`)):o.push(new RegExp(`^${a}$`))}t=r(function(a){if(n.length===0&&o.length===0)return!0;let l,c;for(l=0,c=n.length;l<c;l++)if(n[l].test(a))return!1;for(l=0,c=o.length;l<c;l++)if(o[l].test(a))return!0;return!1},"fn")}return t.accept=o,t.reject=n,t.filter=e,t}r(q,"useNamespaceFilter");var jt=typeof process<"u"?process.env.ZEED_LEVEL??process.env.LEVEL??process.env.DEBUG_LEVEL:typeof localStorage<"u"?localStorage.zeed_level??localStorage.level??localStorage.debug_level:void 0;function he(e){if(e===!1)return 1/0;if(typeof e=="number")return e;if(typeof e=="string"){let t=Ge[e.toLocaleLowerCase().trim()];if(t!=null)return t}return-1}r(he,"parseLogLevel");function ie(e=jt){let t=he(e);return n=>n>=t}r(ie,"useLevelFilter");var B;function xe(){let e=Ne();return e.setHandlers([se()]),e}r(xe,"getLoggerContext");function _t(){if(B==null)try{let e=Y();e!=null?e?.logger==null?(B=xe(),e.logger=B):B=e.logger:B=xe()}catch{B=xe()}return B}r(_t,"getGlobalLogger");var A=_t();var qe=r((e,t)=>t instanceof Object&&!Array.isArray(t)?Object.keys(t).sort().reduce((n,o)=>(n[o]=t[o],n),{}):t,"_sortedReplacer");function Ur(e,t=void 0){return JSON.stringify(e,qe,t)}r(Ur,"jsonStringifySorted");function zt(e,t){let n=[],o=[];return t==null&&(t=r(function(i,s){return n[0]===s?"[Circular ~]":`[Circular ~.${o.slice(0,n.indexOf(s)).join(".")}]`},"cycleReplacer")),function(i,s){if(n.length>0){let u=n.indexOf(this);~u?n.splice(u+1):n.push(this),~u?o.splice(u,1/0,i):o.push(i),~n.indexOf(s)&&(s=t?.call(this,i,s))}else n.push(s);s=qe(i,s);try{return e==null?s:e.call(this,i,s)}catch{}return String(s)}}r(zt,"serializer");function S(e,t,n,o){return JSON.stringify(e,zt(t,o),n)}r(S,"jsonStringifySafe");var Fr=S;var Ve=A("zeed:bin","error");function Gt(e){let t=unescape(encodeURIComponent(e)),n=t.length,o=new Uint8Array(n);for(let i=0;i<n;i++)o[i]=t.codePointAt(i)||0;return o}r(Gt,"_encodeUtf8Polyfill");function Nt(e){let t=e.length,n="",o=0;for(;t>0;){let i=t<1e4?t:1e4,s=e.subarray(o,o+i);o+=i,n+=String.fromCodePoint.apply(null,s),t-=i}return decodeURIComponent(escape(n))}r(Nt,"_decodeUtf8Polyfill");var ae;function Je(e){if(ae==null&&(ae=Gt,typeof TextEncoder<"u")){let t=new TextEncoder;ae=r(n=>t.encode(n),"_textEncoder")}return ae(e.normalize("NFC"))}r(Je,"stringToUInt8Array");var ue;function Ze(e){if(ue==null&&(ue=Nt,typeof TextDecoder<"u")){let t=new TextDecoder("utf-8",{ignoreBOM:!0});ue=r(n=>t.decode(n),"_textDecoder")}return ue(e).normalize("NFC")}r(Ze,"Uint8ArrayToString");function P(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?Je(e):e.length?new Uint8Array(e):e}r(P,"toUint8Array");function $r(...e){let t=0,n=e.flat(1).map(s=>{let u=P(s);return t+=u.length,u}),o=new Uint8Array(t),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}r($r,"joinToUint8Array");function We(e){if(typeof Buffer<"u")return Buffer.from(P(e)).toString("hex");let t="0123456789abcdef",n="";for(let o of[...P(e)])n+=t[o>>4]+t[o&15];return n}r(We,"toHex");function Ke(e){return Uint8Array.from(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}r(Ke,"fromHex");function Ye(e){let t=P(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64");let n="";for(let o=0;o<t.byteLength;o++)n+=String.fromCharCode(t[o]);return btoa(n)}r(Ye,"toBase64");function Br(e){let t=P(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64url");let n="";for(let o=0;o<t.byteLength;o++)n+=String.fromCharCode(t[o]);return btoa(n).replaceAll("+","-").replaceAll("/","_")}r(Br,"toBase64Url");function qt(e){if(e=e.replaceAll("-","+").replaceAll("_","/"),typeof Buffer<"u"){let o=Buffer.from(e,"base64");return new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}r(qt,"fromBase64");function Hr(e){return Ze(qt(e))}r(Hr,"fromBase64String");function Qe(e,t){if(e.byteLength!==t.byteLength)return!1;let n=P(e),o=P(t);for(let i=0;i<n.length;i++)if(n[i]!==o[i])return!1;return!0}r(Qe,"equalBinary");function be(e){try{return Je(S(e))}catch(t){throw Ve.warn("jsonToUint8Array",e),t}}r(be,"jsonToUint8Array");function Te(e){try{return JSON.parse(Ze(e))}catch(t){throw Ve.warn("Uint8ArrayToJson",e),t}}r(Te,"Uint8ArrayToJson");function Xe(e,t){if(typeof e!="string")if(e instanceof ArrayBuffer&&e.byteLength!==void 0)e=String.fromCharCode.apply(String,[].slice.call(new Uint8Array(e)));else if(Array.isArray(e))e=String.fromCharCode.apply(String,e);else if(e.constructor===Uint8Array)e=String.fromCharCode.apply(String,[].slice.call(e));else return!1;t=t||16;let n=[],o="0123456789ABCDEF";for(let i=0;i<e.length;i+=t){let s=e.slice(i,Math.min(i+t,e.length)),u=`0000${i.toString(16)}`.slice(-4),a=s.split("").map(c=>{let d=c.charCodeAt(0);return` ${o[(240&d)>>4]}${o[15&d]}`}).join("");a+=" ".repeat(t-s.length);let l=s.replace(/[\x00-\x1F\x20]/g,".");l+=" ".repeat(t-s.length),n.push(`${u} ${a} ${l}`)}return n.join(`
2
+ `)}r(Xe,"Uint8ArrayToHexDump");function V(e=16){let t=new Uint8Array(e);if(typeof crypto<"u"&&crypto.getRandomValues)crypto.getRandomValues(t);else for(let n=0;n<e;n++)t[n]=Math.floor(Math.random()*256);return t}r(V,"randomUint8Array");var tt="SHA-256",we="AES-GCM",et="PBKDF2",Vt=1e5;async function Gr(e,t=tt){return P(await crypto.subtle.digest(t,P(e)))}r(Gr,"digest");async function Nr(e,t={}){let n=P(e),o=await crypto.subtle.importKey("raw",n,et,!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:et,salt:t.salt?P(t.salt):new Uint8Array(0),iterations:t.iterations??Vt,hash:tt},o,{name:we,length:256},!0,["encrypt","decrypt"])}r(Nr,"deriveKeyPbkdf2");var ce=new Uint8Array([1,1]);async function nt(e,t){let n=V(12),o=await crypto.subtle.encrypt({name:we,iv:n},t,e),i=new Uint8Array(o),s=ce.length+n.length+i.length,u=new Uint8Array(s),a=0;return u.set(ce,a),a+=ce.length,u.set(n,a),a+=n.length,u.set(i,a),u}r(nt,"encrypt");async function rt(e,t){let n=e.subarray(0,2);if(!Qe(n,ce))return Promise.reject(new Error(`Unknown magic ${n}`));let o=e.subarray(2,2+12),i=e.subarray(2+12,e.length),s=await crypto.subtle.decrypt({name:we,iv:o},t,i);return new Uint8Array(s)}r(rt,"decrypt");function Jt(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967295}r(Jt,"getSecureRandom");function D(){return typeof crypto<"u"?Jt():Math.random()}r(D,"getSecureRandomIfPossible");function Jr(e=.25){return D()<e}r(Jr,"randomBoolean");function Zr(e=100,t=0){return t+Math.floor(D()*(e-t))}r(Zr,"randomInt");function Wr(e=100,t=0){return t+D()*(e-t)}r(Wr,"randomFloat");function Kr(e,t,n){return Math.max(e,Math.min(n,t))}r(Kr,"between");function Zt(e){return e.reduce((t,n)=>t+n,0)}r(Zt,"sum");function Yr(e){return Zt(e)/e.length}r(Yr,"avg");function Qr(e){return!/^1?$|^(11+?)\1+$/.test("1".repeat(e))}r(Qr,"isPrimeRX");function Xr(e){for(let t=2;t<e;t++)if(e%t===0)return!1;return e>1}r(Xr,"isPrime");var Le=6;function eo(e=0,t=1,n){Le=((n??Le)*9301+49297)%233280;let o=Le/233280;return t+o*(e-t)}r(eo,"seededRandom");function Wt(e=""){let[t="",n="asc"]=e.split(" ");return n=n.toLowerCase(),{field:t,orderby:n,asc:n!=="desc",desc:n==="desc"}}r(Wt,"parseOrderby");function ro(e,t=!0){return`${e} ${t?"asc":"desc"}`}r(ro,"composeOrderby");function Ae(e,t,n=!0){let o=e||0,i=t||0;return o>i?n?1:-1:o<i?n?-1:1:0}r(Ae,"cmp");function oo(e,...t){if(t.length>0){let n=t.map(Wt),o=Array.from(e);return o.sort((i,s)=>{for(let{field:u,asc:a}of n){let l=Ae(i[u],s[u],a);if(l!==0)return l}return 0}),o}return e}r(oo,"sortedOrderby");function ve(e){return e.filter((t,n)=>e.indexOf(t)===n)}r(ve,"arrayUnique");function Kt(e,t){return ve(e.filter(n=>!t.includes(n)))}r(Kt,"arrayMinus");function Yt(...e){return ve(e.reduce((t=[],n)=>t.concat(n),[]))}r(Yt,"arrayUnion");function J(...e){return e.flat(1/0)}r(J,"arrayFlatten");function Qt(e,t){return ve(e).filter(n=>t.includes(n))}r(Qt,"arrayIntersection");function co(e,t){return Kt(Yt(e,t),Qt(e,t))}r(co,"arraySymmetricDifference");function lo(e,t){if(e&&Array.isArray(e)){let n;for(;(n=e.indexOf(t))!==-1;)e.splice(n,1);return e}return[]}r(lo,"arrayRemoveElement");function fo(e,t){return e.includes(t)||e.push(t),e}r(fo,"arraySetElement");function De(e,t){return e.splice(0,e.length,...e.filter(t)),e}r(De,"arrayFilterInPlace");function po(e,t){let n=e.findIndex(o=>o===t);return n>=0?e.splice(n,1):e.push(t),e}r(po,"arrayToggleInPlace");function go(e){return e.splice(0,e.length),e}r(go,"arrayEmptyInPlace");function Xt(e,t=Ae){return Array.from(e).sort(t)}r(Xt,"arraySorted");function mo(e){return Xt(e,(t,n)=>t-n)}r(mo,"arraySortedNumbers");function en(e,t){return e.length===t.length&&e.every((n,o)=>n===t[o])}r(en,"arrayIsEqual");function ot(e){return e.sort(()=>D()>.5?1:-1),e}r(ot,"arrayShuffleInPlace");function yo(e){return ot(Array.from(e))}r(yo,"arrayShuffle");function ho(e){for(;e.length>1;){let t=Array.from(e);if(ot(t),!en(e,t))return t}return e}r(ho,"arrayShuffleForce");function xo(e){return e[Math.floor(D()*e.length)]}r(xo,"arrayRandomElement");function bo(...e){return J(e).reduce((t,n)=>t!=null?n>t?n:t:n,void 0)}r(bo,"arrayMax");function To(...e){return J(e).reduce((t,n)=>t!=null?n<t?n:t:n,void 0)}r(To,"arrayMin");function wo(...e){return J(e).reduce((t,n)=>t+n,0)}r(wo,"arraySum");function Lo(...e){let t=J(e);return t.reduce((n,o)=>n+o,0)/t.length}r(Lo,"arrayAvg");function Ao(e,t){let n=[],o=0,i=e.length;for(;o<i;)n.push(e.slice(o,o+=t));return n}r(Ao,"arrayBatches");function vo(e=0,t){if(e<=0)return[];let n=new Array(e);for(let o=0;o<e;o++)n[o]=t instanceof Function?t(o):t;return n}r(vo,"createArray");var tn=A("zeed:basex","error"),nn={2:"01",8:"01234567",11:"0123456789a",16:"0123456789abcdef",32:"0123456789abcdefghjkmnpqrtuvwxyz","32-crockford":"0123456789ABCDEFGHJKMNPQRSTVWXYZ","32-geohash":"0123456789bcdefghjkmnpqrstuvwxyz","32-agnoster":"0123456789abcdefghjkmnpqrtuvwxyz","32-rfc":"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567","32-hex":"0123456789ABCDEFGHIJKLMNOPQRSTUV","32-zbase":"ybndrfg8ejkmcpqxot1uwisza345h769",36:"0123456789abcdefghijklmnopqrstuvwxyz",58:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",62:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",64:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","64-url":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",66:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.!~",85:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"};function H(e){let t=nn[String(e)];if(!t)if(typeof e=="string")t=e;else throw new Error(`Unknown base ${e}`);if(t.length>=255)throw new TypeError("Alphabet too long");let n=new Uint8Array(256);for(let c=0;c<n.length;c++)n[c]=255;for(let c=0;c<t.length;c++){let d=t.charAt(c),g=d.charCodeAt(0);if(n[g]!==255)throw new TypeError(`${d} is ambiguous`);n[g]=c}let o=t.length,i=t.charAt(0),s=Math.log(o)/Math.log(256),u=Math.log(256)/Math.log(o);function a(c,d=-1){let g=P(c);if(g.byteLength===0)return"";let h=0,y=0,x=g.byteLength;for(;y!==x&&g[y]===0;)y++;let f=(x-y)*u+1>>>0,p=new Uint8Array(f);for(;y!==x;){let b=g[y],w=0;for(let v=f-1;(b!==0||w<h)&&v!==-1;v--,w++)b+=256*p[v]>>>0,p[v]=b%o>>>0,b=b/o>>>0;if(b!==0)throw tn.warn("Non-zero carry",g,d,w,f),new Error("Non-zero carry");h=w,y++}let m=f-h;for(;m!==f&&p[m]===0;)m++;let T="";for(;m<f;++m)T+=t.charAt(p[m]);return d>0?T.padStart(d,i):T}r(a,"encode");function l(c,d=-1){if(typeof c!="string")throw new TypeError("Expected String");if(c.length===0)return new Uint8Array;c=c.replace(/\s+/gi,"");let g=0,h=0;for(;c[g]===i;)g++;let y=(c.length-g)*s+1>>>0,x=new Uint8Array(y);for(;c[g];){let p=n[c.charCodeAt(g)];if(p===255)throw new Error(`Unsupported character "${c[g]}"`);let m=0;for(let T=y-1;(p!==0||m<h)&&T!==-1;T--,m++)p+=o*x[T]>>>0,x[T]=p%256>>>0,p=p/256>>>0;if(p!==0)throw new Error("Non-zero carry");h=m,g++}let f=y-h;for(;f!==y&&x[f]===0;)f++;return d>0?new Uint8Array([...new Uint8Array(d-x.length+f),...x.slice(f)]):x.slice(f)}return r(l,"decode"),{encode:a,decode:l}}r(H,"useBase");var{encode:Ro,decode:rn}=H(32);function So(e){return rn(e.toLocaleLowerCase().replaceAll("l","1").replaceAll("s","5").replaceAll("o","0").replaceAll("i","1"))}r(So,"decodeBase32");var{encode:Uo,decode:Fo}=H(16),{encode:ko,decode:Io}=H(58),{encode:Co,decode:Oo}=H(62);function $o(e,t){return Math.ceil(e*(Math.log(256)/Math.log(t)))}r($o,"estimateSizeForBase");var jo=r(e=>(e.length>0&&(/^[A-Z0-9_\-\ ]*$/g.test(e)&&(e=e.toLowerCase()),e=e.replace(/^[-_\ ]+/gi,"").replace(/[-_\ ]+$/gi,"").replace(/[-_\ ]+([a-z0-9])/gi,(t,n)=>n.toUpperCase()),e=e[0].toLowerCase()+e.substring(1)),e),"toCamelCase");function on(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)}r(on,"toCapitalize");function _o(e){return e.replace(/\w\S*/g,on)}r(_o,"toCapitalizeWords");function zo(e,t="-"){return t=typeof t>"u"?"_":t,e.replace(/([a-z\d])([A-Z])/g,`$1${t}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${t}$2`).toLowerCase()}r(zo,"fromCamelCase");var it=["1","true","yes","y","on"];function Vo(e,t=!1){return e==null||typeof e!="string"?t:it.includes(String(e).trim().toLowerCase())}r(Vo,"stringToBoolean");function Jo(e,t=0){return e==null||typeof e!="string"?t:parseInt(e.trim(),10)??t}r(Jo,"stringToInteger");function Zo(e,t=0){return e==null||typeof e!="string"?t:parseFloat(e.trim())??t}r(Zo,"stringToFloat");function sn(e,t=!1){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:it.includes(String(e).trim().toLowerCase())}r(sn,"valueToBoolean");function an(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):parseInt(String(e).trim(),10)??t}r(an,"valueToInteger");function un(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):parseFloat(String(e).trim())??t}r(un,"valueToFloat");function Pe(e,t=""){return e==null?t:String(e)??t}r(Pe,"valueToString");var Wo=un,Ko=an,Yo=Pe,Qo=sn;function cn(e,t={}){let{trace:n=!0,pretty:o=!0}=t;return e.map(i=>{if(i&&typeof i=="object"){if(o&&(i instanceof Uint8Array||i instanceof ArrayBuffer))return`
3
+ ${Xe(i)}
4
+ `;if(i instanceof Error)return n?`${i.name||"Error"}: ${i.message}
5
+ ${i.stack}`:`${i.name||"Error"}: ${i.message}`;try{return o?JSON.stringify(i,null,2):JSON.stringify(i)}catch{}}return String(i)})}r(cn,"formatMessages");function Xo(e,t={}){return cn(e,t).join(" ")}r(Xo,"renderMessages");function ei(e){try{return decodeURIComponent(escape(e))}catch{}return e}r(ei,"fixBrokenUth8String");var Me=864e5;function Re(e){return Math.floor(e/1e4)}r(Re,"dayYear");function st(e){return Math.floor(e/100%100)}r(st,"dayMonth");function ln(e){return Math.floor(e%100)}r(ln,"dayDay");function ri(e){return[Re(e),st(e),ln(e)]}r(ri,"dayToParts");function at(e,t=!1){return t?new Date(`${pn(e)}T00:00:00.000Z`):new Date(e/1e4,e/100%100-1,e%100)}r(at,"dayToDate");function ut(){return fe(new Date)}r(ut,"dayFromToday");function oi(e,t=!1){if(typeof e=="number")return e<100?void 0:e;if(typeof e=="string")return ct(e);if(Array.isArray(e)&&e.length===3){let[n,o,i]=e;return Se(n,o,i)}else if(e instanceof Date)return fe(e,t)}r(oi,"dayFromAny");function ii(e){return at(e,!0)}r(ii,"dayToDateGMT");function fe(e,t=!1){return t?ct(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}r(fe,"dayFromDate");function si(e){return fe(e,!0)}r(si,"dayFromDateGMT");function Ee(e,t=!0){return at(e,t).getTime()}r(Ee,"dayToTimestamp");function fn(e,t=!0){return fe(new Date(e),t)}r(fn,"dayFromTimestamp");function pn(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}r(pn,"dayToString");function Se(e,t=1,n=1){if(!(t<1||t>12||n<1||n>31))return e*1e4+t*100+n}r(Se,"dayFromParts");function ct(e){let t=String(e).replace(/[^0-9]/g,"").slice(0,8);if(t.length===8)return+t}r(ct,"dayFromString");function ai(e,t=0){let n=Re(e),o=st(e);return t!==0&&(o+=t,n+=Math.floor((o-1)/12),o=Math.floor((o-1)%12)+1,o===0&&(o=12)),Se(n,o,1)}r(ai,"dayMonthStart");function ui(e,t=0){let n=Re(e);return Se(n+t,1,1)}r(ui,"dayYearStart");function le(e,t){return fn(Ee(e)+t*864e5)}r(le,"dayOffset");function ci(e,t){return Math.round((Ee(t)-Ee(e))/864e5)}r(ci,"dayDiff");function li(e,t){let n=[];for(t==null&&(t=ut()),e<0&&(e=le(t,e+1));e<=t;)n.push(e),e=le(e,1);return n}r(li,"dayRange");function*fi(e,t){let n=[];for(t==null&&(t=ut()),e<0&&(e=le(t,e+1));e<=t;)yield e,e=le(e,1);return n}r(fi,"dayIterator");var{warn:lt}=A("zeed:promise","error");function ft(){let e,t;return[new Promise((o,i)=>{e=o,t=i}),e,t]}r(ft,"createPromise");async function mi(e){return new Promise(t=>setTimeout(t,e))}r(mi,"sleep");async function yi(){return new Promise(e=>setTimeout(e,0))}r(yi,"immediate");var pt=Symbol("timeout");async function hi(e,t,n=pt){return new Promise(async(o,i)=>{let s=!1,u=setTimeout(()=>{s=!0,o(n)},t);try{let a=await e;clearTimeout(u),s||o(a)}catch(a){clearTimeout(u),s||i(a)}})}r(hi,"timeout");var dt=new Error("Timeout reached");function xi(e){return e===pt||e===dt}r(xi,"isTimeout");async function gt(e,t){return t<=0?await e:new Promise(async(n,o)=>{let i=!1,s=setTimeout(()=>{i=!0,o(dt)},t);try{let u=await e;clearTimeout(s),i||n(u)}catch(u){clearTimeout(s),i||o(u)}})}r(gt,"tryTimeout");function bi(e,t,n=1e3){return new Promise((o,i)=>{let s=r(l=>{a&&(clearTimeout(a),u(),o(l))},"fn"),u=r(()=>{a=null,e.off?e.off(t,s):e.removeEventListener?e.removeEventListener(t,s):lt("No remove listener method found for",e,t)},"done"),a=setTimeout(()=>{u(),i(new Error("Did not response in time"))},n);e.on?e.on(t,s):e.addEventListener?e.addEventListener(t,s):lt("No listener method found for",e)})}r(bi,"waitOn");function E(e){return Boolean(e&&(e instanceof Promise||typeof e.then=="function"))}r(E,"isPromise");function I(e){return Promise.resolve(e)}r(I,"promisify");var L=class{get value(){return this.days}constructor(t){if(typeof t=="number"){this.days=t;return}if(t!=null&&(t=L.from(t)?.days),t==null){let n=new Date;this.days=n.getFullYear()*1e4+(n.getMonth()+1)*100+n.getDate()}else this.days=t}static fromNumber(t){return new L(t)}static fromString(t){return L.from(+t.replace(/[^0-9]/g,"").slice(0,8))}static fromDate(t,n=!1){return n?L.fromString(t.toISOString().substr(0,10)):L.from(t.getFullYear()*1e4+(t.getMonth()+1)*100+t.getDate())}static fromDateGMT(t){return L.fromDate(t,!0)}static from(t,n=!1){if(typeof t=="number")return t<100?void 0:new L(t);if(typeof t=="string")return L.fromString(t);if(Array.isArray(t)&&t.length===3){let[o,i=1,s=1]=t;return i<1||i>12||s<1||s>31?void 0:new L(o*1e4+i*100+s)}else{if(t instanceof Date)return L.fromDate(t,n);if(t instanceof L)return t}}toNumber(){return this.days}toJson(){return this.days}toString(t="-"){let n=String(this.days);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}toDate(t=!1){return t?new Date(`${this.toString()}T00:00:00.000Z`):new Date(this.days/1e4,this.days/100%100-1,this.days%100)}toDateGMT(){return this.toDate(!0)}get year(){return Math.floor(this.days/1e4)}get month(){return Math.floor(this.days/100%100)}get day(){return Math.floor(this.days%100)}dayOffset(t){return L.fromDateGMT(new Date(this.toDateGMT().getTime()+t*864e5))}monthStart(){return L.from([this.year,this.month,1])}yearStart(){return L.from([this.year,1,1])}monthOffset(t){let n=this.month+t,o=Math.floor((n-1)%12)+1;o===0&&(o=12);let i=Math.floor((n-1)/12);return L.from([this.year+i,o,this.day])}daysUntil(t){return Math.round((new L(t)?.toDateGMT().getTime()-this.toDateGMT().getTime())/864e5)}yesterday(){return this.dayOffset(-1)}tomorrow(){return this.dayOffset(1)}};r(L,"Day");async function vi(e,t,n){let o=L.from(e),i=L.from(t);for(;o&&i&&o?.days<=i?.days;){let s=n(o);E(s)&&await s,o=o.dayOffset(1)}}r(vi,"forEachDay");function Di(){return new L}r(Di,"today");function Pi(e){return new L(e)}r(Pi,"day");function Ei(e){return L.fromDate(new Date(e)).days}r(Ei,"dateStringToDays");function dn(e,t=2){return+(+e).toFixed(t)}r(dn,"decimal");function Si(e,t=2){return+(+e/10**t).toFixed(t)}r(Si,"decimalFromCents");function Ui(e,t=2){return Math.round(+e*10**t)}r(Ui,"decimalToCents");function Fi(e,t=2){return t*(dn(e,t)%1)}r(Fi,"decimalCentsPart");var mt=r(e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;"),"escapeHTML"),Ci=r(e=>e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&amp;/gi,"&"),"unescapeHTML");function Bi(e,t,n=[]){return e.filter(o=>!t.some(i=>!i(o))).map(o=>{for(let i of n)o=i(o);return o}).filter(o=>o!=null)}r(Bi,"listQuery");function Hi(e,t){return e.reduce((n,o)=>{let i=String(o[t]);return(n[i]=n[i]||[]).push(o),n},{})}r(Hi,"listGroupBy");function ji(e,t){return Array.from(e.reduce((n,o)=>n.add(o[t]),new Set))}r(ji,"listDistinctUnion");function _i(e,t){return e.map(n=>n[t])}r(_i,"listOfKey");function qi(e,t){return F(e)?Object.fromEntries(Object.entries(e).map(([n,o])=>{let i=t(n,o);return k(i)&&i.length===2?i:[n,i]}).filter(n=>n!=null)):{}}r(qi,"objectMap");function Vi(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}r(Vi,"objectMergeDisposable");function Ji(e){return Object.keys(e).length<=0}r(Ji,"objectIsEmpty");var yt=/[\u0000-\u001F\u0080-\u009F]/g,gn=/^\.+/,mn=/\.+$/;function ht(){return/[<>:"/\\|?*\u0000-\u001F]/g}r(ht,"filenameReservedRegex");function yn(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}r(yn,"windowsReservedNameRegex");function Ki(e,t="_"){if(typeof e!="string")throw new TypeError("Expected a string");if(ht().test(t)&&yt.test(t))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(ht(),t).replace(yt,t).replace(gn,t).replace(mn,""),e=yn().test(e)?e+t:e,e.slice(0,100)}r(Ki,"toValidFilename");var hn=/[\\\-\[\]\/{}()*+?.^$|]/g;function xt(e){return e?e instanceof RegExp?e.source:e.replace(hn,"\\$&"):""}r(xt,"escapeRegExp");var X=r(e=>Math.abs(e)%1===.5,"isHalf"),bt=r(e=>e%2===0,"isEven"),ts=r(e=>Math.ceil(e),"roundUp"),ns=r(e=>Math.floor(e),"roundDown"),rs=r(e=>Math.round(e),"roundHalfUp"),os=r(e=>{let t=Math.round(e);return X(e)&&bt(t)?t-1:t},"roundHalfOdd"),is=r(e=>X(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),"roundHalfAwayFromZero"),ss=r(e=>X(e)?Math.floor(e):Math.round(e),"roundHalfDown"),as=r(e=>{let t=Math.round(e);return X(e)?bt(t)?t:t-1:t},"roundHalfEven"),us=r(e=>X(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e),"roundHalfTowardsZero");function Tt(e){return e.reduce((t,n)=>Math.min(t,n.sort_weight||0),0)-1-D()}r(Tt,"startSortWeight");function wt(e){return e.reduce((t,n)=>Math.max(t,n.sort_weight||0),0)+1+D()}r(wt,"endSortWeight");function ps(e,t,n){let o=n.length,i=e<t;if(o<=0||e>=o-1)return wt(n);if(e<=0)return Tt(n);n=xn([...n]);let s=i?-1:0,u=n[e+s].sort_weight||0,l=(n[e+s+1].sort_weight||0)-u;if(l===0)return i?Tt(n):wt(n);let c=u+l/2,d=l*.01*(D()-.5);return c+d}r(ps,"moveSortWeight");function xn(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}r(xn,"sortedItems");function ys(e={}){let{getter:t=r(a=>a.sort,"getter")}=e;function n(a){return a.sort((l,c)=>(t(l)||0)-(t(c)||0)),a}r(n,"items");function o(a){return a.reduce((l,c)=>Math.min(l,t(c)||0),0)-1-D()}r(o,"start");function i(a){return a.reduce((l,c)=>Math.max(l,t(c)||0),0)+1+D()}r(i,"end");function s(a,l){a==null&&(a=(l??0)-1),l==null&&(l=(a??0)+1);let c=l-a,d=a+c/2,g=c*.01*(D()-.5);return d+g}r(s,"between");function u(a,l,c){let d=c.length,g=a<l;if(d<=0||a>=d-1)return i(c);if(a<=0)return o(c);c=n([...c]);let h=g?-1:0,y=t(c[a+h])||0,f=(t(c[a+h+1])||0)-y;if(f===0)return g?o(c):i(c);let p=y+f/2,m=f*.01*(D()-.5);return p+m}return r(u,"move"),{start:o,end:i,between:s,move:u,items:n}}r(ys,"useSorted");var bn=/((?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00A1-\uFFFF][a-z0-9\u00A1-\uFFFF_-]{0,62})?[a-z0-9\u00A1-\uFFFF]\.)+(?:[a-z\u00A1-\uFFFF]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?)/gim;function Ts(e){return e.split(bn).map((t,n)=>{let o=mt(t);return n%2?`<a target="_blank" href="${o}">${Tn(o)}</a>`:o}).join("")}r(Ts,"linkifyPlainText");function Tn(e){return e.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")}r(Tn,"toHumanReadableUrl");function Lt(e){let t=[];for(let[n,o]of Object.entries(e))if(o!=null){Array.isArray(o)||(o=[o]);for(let i of o)i!=null&&t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`)}return t.join("&")}r(Lt,"encodeQuery");function ws(e){let t={},n=(e[0]==="?"?e.substr(1):e).split("&");for(let o=0;o<n.length;o++){let i=n[o].split("="),s=decodeURIComponent(i[0]),u=decodeURIComponent(i[1]||"");t[s]!=null?(Array.isArray(t[s])||(t[s]=[t[s]]),t[s].push(u)):t[s]=u}return t}r(ws,"parseQuery");function Ds(e,t,n){let o=e[t];return o===void 0&&(o=n(t,e),e[t]=o),o}r(Ds,"ensureKey");async function Ps(e,t,n){let o=e[t];return o===void 0&&(o=await n(t,e),e[t]=o),o}r(Ps,"ensureKeyAsync");function Es(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}r(Es,"size");function Ms(e){return e!=null&&e.length>0?e[e.length-1]:void 0}r(Ms,"last");function Rs(e){try{if(e!=null)return Array.isArray(e)||typeof e=="string"?e.length<=0:e?.size!=null?e.size<=0:Object.keys(e).length<=0}catch(t){console.warn("Failed to check if empty for",e,t)}return!0}r(Rs,"empty");function Ue(e){return Object(e)!==e?e:JSON.parse(S(e))}r(Ue,"cloneObject");function Ss(e){return Object(e)!==e?e:JSON.parse(S(e))}r(Ss,"cloneJsonObject");function Us(e){let t=new Map;return n=>{if(t.has(n))return t.get(n);let o=e(n);return t.set(n,o),o}}r(Us,"memoize");function Fs(e){let t=new Map;return async(...n)=>{let o=S(n);if(t.has(o))return t.get(o);let i=await e(...n);return t.set(o,i),i}}r(Fs,"memoizeAsync");function ks(e,t){let n=[];for(let o=0;o<e;o++)n.push(t(o,e));return n}r(ks,"forTimes");var wn=/\\\s|\s+|#[^\n]*\n?/gm,Ln=/\(\?P?<(\w[\w\d_]+)>|\((?!\?(:|\!|=|<=|<\!))/gm,At=/^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*?)\)/gm,An=A("zeed:xrx","error");function vn(e){return typeof e=="string"?e:e.source||""}r(vn,"regExpString");function $s(e){return e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}r($s,"regExpEscape");var Fe=class{constructor(t,n){this.namedGroups={};this.names=[];let o=n??"",i;if(t instanceof RegExp?(n==null&&(o=t.flags),i=t.source):i=t,o&&o.includes("x")&&(o=o.replace("x",""),i=i.replace(wn,a=>a[0]==="\\"?a:"")),!(t instanceof RegExp)){let a=0;i=i.replace(Ln,(l,c)=>(a+=1,c?(c!=="index"&&c!=="length"&&!this.namedGroups[c]?this.namedGroups[c]=a:An.error(`Unallowed or duplicate group name: ${c}`),"("):l)),this.names=Object.keys(this.namedGroups)}i=vn(i),At.lastIndex=0;let u=At.exec(i);u&&(this.lookBehind={rx:new RegExp(`${u[3]}$(?!\\s)`),expect:u?u[2]==="=":!u},i=i.substr(u[0].length)),this.rx=new RegExp(i,o)}get lastIndex(){return this.rx.lastIndex}set lastIndex(t){this.rx.lastIndex=t}_handleMatch(t){if(this.lookBehind){let n=t.input.slice(0,t.index);if(this.lookBehind.expect!==this.lookBehind.rx.test(n))return null}for(let n of this.names)t[n]=t[this.namedGroups[n]];return t}exec(t){let n;for(;n=this.rx.exec(t);)if(this.rx.lastIndex===n.index&&this.rx.lastIndex++,n=this._handleMatch(n),n!=null)return n}execAll(t){let n=[],o;for(this.rx.lastIndex=0;o=this.exec(t);)n.push(o);return this.rx.lastIndex=0,n}replace(t,n){let o=typeof n=="function"?n:()=>n;return t.replace(this.rx,i=>o(i))}};r(Fe,"XRX");var Dn=",";function pa(e,t={}){let{separator:n=Dn}=t,o="";for(let i=0;i<e.length;i++)o+=`${e[i].map(s=>{if(s==null||s==="")return"";if(ze(s))return s?1:0;let u=String(s);return(ne(s)||k(s))&&(u=S(s)),u.includes('"')||u.includes(`
6
+ `)||u.includes(n)?`"${u.replace(/"/g,'""')}"`:u}).join(n)}
7
+ `;return o}r(pa,"csvStringify");function Pn(e,t={}){let n=/("((?:(?:[^"]*?)(?:"")?)*)"|([^,;\t\n]*))([,;\t]|\n|\r\n)/g;t.separator&&(n=new RegExp(n.source.replaceAll(",;\\t",xt(t.separator)),n.flags));let o=[],i=[],s,u=`${e.replaceAll(`\r
8
+ `,`
9
+ `).trim()}
10
+ `;for(;s=n.exec(u);){let a=s[2]??s[3]??"";a=a.replaceAll('""','"'),i.push(a),s[4]===`
11
+ `&&(o.push(i),i=[])}return o}r(Pn,"csvParse");function da(e,t={}){let n=Pn(e,t),o=n[0];return n.slice(1).map(i=>Object.fromEntries(i.map((s,u)=>[o[u],s])))}r(da,"csvParseToObjects");var En=A("zeed:dispose","error");async function Mn(e){typeof e=="function"?await I(e()):E(e)?await e:typeof e.dispose=="function"?await I(e.dispose()):E(e.dispose)?await e.dispose:typeof e.cleanup=="function"?await I(e.cleanup()):E(e.cleanup)&&await e.cleanup}r(Mn,"callDisposer");function ke(e){let{name:t}=typeof e=="string"?{name:e}:e??{},n=[],o=r(async u=>{u!=null&&n.includes(u)&&(De(n,a=>a!==u),await Mn(u))},"untrack"),i=r(async()=>{for(t&&En.debug(`dispose ${t}: ${n.length} entries`);n.length>0;)await o(n[0])},"dispose"),s=r(u=>{if(u!=null)return n.unshift(u),()=>o(u)},"track");return Object.assign(i,{track:s,add:s,untrack:o,dispose:i,exec:i,getSize(){return n.length}})}r(ke,"useDispose");var ba=ke;function Ta(e={}){let{mode:t="fifo"}=e,n=[],o=r(async(s=!1)=>{for(;n.length>0;){let u=n[0];if(De(n,a=>a!==u),typeof u=="function"){let a=u();if(E(a)){if(s)throw new Error(`Expected sync only function, but found async: ${u}`);await a}}else if(E(u)){if(s)throw new Error(`Expected sync only function, but found async: ${u}`);await u}else throw new Error(`Unhandled disposable: ${u}`)}},"exec");return Object.assign(o,{add:r(s=>{t==="lifo"?n.unshift(s):n.push(s)},"add"),exec:o,getSize(){return n.length}})}r(Ta,"useDefer");function wa(e,t=0){let n=setTimeout(e,t);return()=>{n&&(clearTimeout(n),n=void 0)}}r(wa,"useTimeout");function La(e,t){let n=setInterval(e,t);return()=>{n&&(clearInterval(n),n=void 0)}}r(La,"useInterval");function Aa(e,t,n,...o){return e==null?()=>{}:(e.on?e.on(t,n,...o):e.addEventListener&&e.addEventListener(t,n,...o),()=>{e.off?e.off(t,n,...o):e.removeEventListener&&e.removeEventListener(t,n,...o)})}r(Aa,"useEventListener");function Ea(){let e=!0;return(t,n)=>{let o=!1;if(e){e=!1;try{t(),o=!0}finally{e=!0}}else n!==void 0&&n();return o}}r(Ea,"useMutex");function Ma(){let e=!0;return async(t,n)=>{let o=!1;if(e){e=!1;try{let i=t();E(i)&&await i,o=!0}finally{e=!0}}else if(n!==void 0){let i=n();E(i)&&await i}return o}}r(Ma,"useAsyncMutex");var Z=A("zeed:emitter","error"),M=class{constructor(){this.subscribers={};this.subscribersOnAny=[];this.dispose=ke();this.call=new Proxy({},{get:(t,n)=>async(...o)=>await this.emit(n,...o)})}async emit(t,...n){let o=!1;this.dispose.add(()=>{this.subscribers={},this.subscribersOnAny=[]});try{let i=this.subscribers[t]||[];if(this.subscribersOnAny.forEach(s=>s(t,...n)),i.length>0){let s=i.map(u=>{try{return I(u(...n))}catch(a){Z.warn("emit warning:",a)}return null}).filter(u=>u!=null);o=!0,await Promise.all(s)}}catch(i){Z.error("emit exception",i)}return o}onAny(t){this.subscribersOnAny.push(t)}on(t,n){let o=this.subscribers[t]||[];return o.push(n),this.subscribers[t]=o,()=>{this.off(t,n)}}onCall(t){for(let[n,o]of Object.entries(t))this.on(n,o)}once(t,n){let o=r(async(...i)=>(this.off(t,o),await I(n(...i))),"onceListener");return this.on(t,o),()=>{this.off(t,n)}}off(t,n){return this.subscribers[t]=(this.subscribers[t]||[]).filter(o=>n&&o!==n),this}removeAllListeners(){return this.subscribers={},this}};r(M,"Emitter");function Oa(){let e=Y().emitter;return e||(e=new M,Y().emitter=e),e}r(Oa,"getGlobalEmitter");var $a=new M;function Ba(e,t){let n=Math.round(D()*100),o=[],i,s=r((a,l)=>{let c={key:a,obj:l};o.push(c),i&&i()},"incoming");return t?e.on?e.on(t,a=>{s(t,a)}):e.addEventListener?e.addEventListener(t,a=>{s(t,a)}):Z.error(n,"Cannot listen to key"):e.onAny?e.onAny((a,l)=>{s(a,l)}):Z.error(n,"cannot listen to all for",e),r((a,l=!0)=>new Promise((c,d)=>{a||(a=t,a||o.length&&(a=o[0].key)),i=r(()=>{for(;o.length>0;){let g=o.shift();if(g.key===a)i=void 0,c(g.obj);else{if(l){Z.warn(n,`Unhandled event ${a} with value: ${g.obj}`);continue}d(new Error(`Expected ${a}, but found ${g.key} with value=${g.obj}`)),Z.error(n,`Unhandled event ${a} with value: ${g.obj}`)}break}},"lazyResolve"),i()}),"on")}r(Ba,"lazyListener");var vt=r(()=>Date.now(),"getTimestamp");function _a(e){return e>999?`${(e/1e3).toFixed(1)}s`:`${e.toFixed(2)}ms`}r(_a,"formatMilliseconds");function za(...e){for(let t of e){if(t instanceof Date)return t;if(typeof t=="string"){let n=null;if(t.includes(":"))try{n=new Date(t)}catch{}if(!(n instanceof Date)){let o=/(\d\d\d\d)-(\d\d)-(\d\d)/.exec(t);o&&(n=new Date(+o[1],+o[2]-1,+o[3],12,0))}if(n instanceof Date)return n}}}r(za,"parseDate");var{encode:Dt,decode:Rn}=H(62),{encode:Pt,decode:Sn}=H(32),pe=16;function Ce(){return V(pe)}r(Ce,"uuidBytes");function Un(e=Ce()){return Dt(e,22)}r(Un,"uuidB62");function Fn(e){return Dt(e,22)}r(Fn,"uuidEncodeB62");function kn(e){return Rn(e,pe)}r(kn,"uuidDecodeB62");function In(e=Ce()){return Pt(e,26)}r(In,"uuidB32");function Cn(e){return Pt(e,26)}r(Cn,"uuidEncodeB32");function On(e){return Sn(e,pe)}r(On,"uuidDecodeB32");var $n="10000000-1000-4000-8000-100000000000",Bn=typeof crypto<"u"&&crypto.randomUUID!=null?crypto.randomUUID.bind(crypto):()=>$n.replace(/[018]/g,e=>(e^V(1)[0]&15>>e/4).toString(16));function Hn(e){let t=We(e);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}r(Hn,"uuidEncodeV4");function jn(e){return Ke(e.replaceAll("-",""))}r(jn,"uuidDecodeV4");var Et=16e11;function _n(e){let t=new Uint8Array([0,0,0,0,0,0]),n=t.length-1;for(let o=0;o<t.length;o++){let i=e&255;t[n-o]=i,e=(e-i)/256}return t}r(_n,"longToByteArray");function Mt(){let e=vt()-Et;return new Uint8Array([..._n(e),...V(10)])}r(Mt,"suidBytes");function Wa(){return Gn(Mt())}r(Wa,"suid");function Ka(e){return zn(St(e))}r(Ka,"suidDate");function zn(e){return new Date(Et+e.slice(0,6).reduce((t,n)=>t*256+n,0))}r(zn,"suidBytesDate");var Ya=r(()=>new Uint32Array(V(4))[0],"uuid32bit"),Oe={base62:{uuid:Un,uuidDecode:kn,uuidEncode:Fn},base32:{uuid:In,uuidDecode:On,uuidEncode:Cn},uuidv4:{uuid:Bn,uuidDecode:jn,uuidEncode:Hn}},de="base62",Rt=!1;function Qa(e,t=!1){de=e,Rt=t}r(Qa,"setUuidDefaultEncoding");function j(){return Oe[de].uuid(Rt?Mt():Ce())}r(j,"uuid");function St(e){return Oe[de].uuidDecode(e)}r(St,"uuidDecode");function Gn(e){return Oe[de].uuidEncode(e)}r(Gn,"uuidEncode");function Xa(e){try{return St(e).length===pe}catch{}return!1}r(Xa,"uuidIsValid");var Ie={};function _(e="id"){return Ie[e]==null&&(Ie[e]=0),`${e}-${Ie[e]++}`}r(_,"uname");var Nn=0;function eu(){return`id-${Nn++}`}r(eu,"qid");var qn=(o=>(o[o.waiting=0]="waiting",o[o.running=1]="running",o[o.finished=2]="finished",o))(qn||{}),Vn=(o=>(o[o.replace=0]="replace",o[o.memoize=1]="memoize",o[o.error=2]="error",o))(Vn||{});function su(e={}){let{maxParallel:t=3}=e,n=new M,o=0,i=0,s=0,u=0,a={};async function l(){if(o>0){let[f,p]=ft();return n.once("didFinish",p),f}}r(l,"waitFinishAll");function c(){n.emit("didFinish"),o=0,i=0}r(c,"didFinish");function d(){let f=0,p=0;for(let{max:m,resolved:T,state:b}of Object.values(a))f+=m,p+=b===2?m:Math.min(m,T);n.emit("didUpdate",o,i,f,p)}r(d,"didUpdate");function g(){if(d(),o>0&&o===i&&c(),s>=t)return;let f=Object.values(a).filter(p=>p.state===0);if(f.length>0){let p;for(let m of f)m.group!=null&&Object.values(a).some(T=>T.state===1&&T.id!==m.id&&T.group===m.group)||(p==null||m.priority<p.priority)&&(p=m);if(p!=null){let m=p.id,T=p.done;p.state=1,++s,n.emit("didStart",m);let b=r(w=>{p&&(p.result=w,p.state=2,p.resolved=p.max),--s,++i,g()},"taskFinished");p.task(p).then(w=>{T(w),n.emit("didResolve",m,w),b(w)}).catch(w=>{T(),n.emit("didReject",m,w),b()})}}}r(g,"performNext");function h(f){let p=a[f];p&&p.state===0&&(a[f].state=2,++i,n.emit("didCancel",f),d())}r(h,"cancel");function y(){Object.keys(a).forEach(h)}r(y,"cancelAll");function x(f,p={}){let m,T=new Promise(w=>m=w),b=p.id??j();if(a[b]!=null){let w=p.idConflictResolution??1;if(w===0)h(b);else if(w===1){let v=a[b];return{id:b,promise:(async()=>{if(v.state===2)return a[b].result})(),dispose:()=>h(b),cancel:()=>h(b)}}else throw new Error(`Pool task with id=${b} already exists!`)}return a[b]={id:b,task:f,priority:++u,group:p.group,state:0,max:p.max??1,resolved:p.resolved??0,done:m,payload:p.payload,setMax(w){a[b].max=w,d()},setResolved(w){a[b].resolved=w,d()},incResolved(w=1){a[b].resolved+=w,d()}},++o,g(),{id:b,promise:T,dispose:()=>h(b),cancel:()=>h(b)}}return r(x,"enqueue"),{events:n,cancel:h,cancelAll:y,enqueue:x,dispose:y,waitFinishAll:l}}r(su,"usePool");var $e=class extends M{constructor(n={}){super();this.queue=[];this.waitToFinish=[];this.countMax=0;this.countResolved=0;this.paused=!1;let{name:o=_("queue"),logLevel:i}=n;this.name=o,this.log=A(`zeed:queue:${o}`,i??1/0)}async performNext(){if(this.log("performNext, queue.length =",this.queue.length),this.currentTask!=null){this.log("performNext => skip while another task is running");return}if(this.paused){this.log("performNext => skip while is paused");return}for(;this.currentTask==null&&!this.paused;){let n=this.queue.shift();if(this.log(`performNext => ${n?.name}`),n==null)break;this.countResolved===0&&this.emit("didStart",this.countMax);let{name:o,task:i,resolve:s}=n;this.currentTask=i();let u;try{this.log.info(`start task ${o}`),u=await this.currentTask,this.log(`finished task ${o} with result =`,u)}catch(a){this.log.warn("Error performing task",a)}s(u),this.currentTask=void 0,this.countResolved+=1,this.emit("didUpdate",this.countMax,this.countResolved)}for(this.queue.length===0&&(this.emit("didFinish"),this.countMax=0,this.countResolved=0);this.waitToFinish.length>0;)this.waitToFinish.shift()()}async enqueue(n,o={}){let{immediate:i=!1,name:s=_(this.name)}=o;return i?(this.log.info(`immediate execution ${s}`),await n()):(this.log(`enqueue ${s}`),new Promise(u=>{this.queue.push({name:s,task:n,resolve:u}),this.countMax+=1,this.emit("didUpdate",this.countMax,this.countResolved),this.performNext()}))}async enqueueReentrant(n,o={}){return this.enqueue(n,{immediate:this.currentTask!=null,name:o.name})}async cancelAll(n=!0){this.log("cancelAll"),this.emit("didCancel");let o=this.queue.map(i=>i.resolve);this.queue=[],o.forEach(i=>i(void 0)),await this.wait()}async pause(){this.log("pause"),this.paused=!0,await this.wait()}resume(){this.log("resume"),this.paused=!1,this.performNext()}async wait(){if(this.log("wait"),!(this.currentTask==null&&(this.queue.length===0||this.paused)))return new Promise(n=>{this.waitToFinish.push(n)})}get isPaused(){return this.paused}get hasTasks(){return this.queue.length!==0}};r($e,"SerialQueue");var W=!1,U=W?A("zeed:throttle","error"):()=>{};function hu(e,t={}){let{delay:n=100,trailing:o=!0,leading:i=!0}=t,s=0,u=0,a=0,l,c=Date.now();function d(){return s?(clearTimeout(s),s=void 0,!0):!1}r(d,"clearExistingTimeout");function g(...h){let y=Date.now(),x=y-u;function f(){let m=Date.now();return`total ${(m-c).toFixed(1)}ms - elapsed ${(m-u).toFixed(1)}ms - visited ${a}x`}r(f,"debugElapsed");let p=r(()=>{a=0,u=Date.now(),e.apply(this,h)},"exec");if(l=p,x>n||!s){W&&U("elapsed",f()),i&&(x>n?(W&&U("\u{1F680} leading",f()),p()):++a);let m=x>n?n:n-x;U(`\u23F1 start timeout with ${m.toFixed(1)}ms`,f()),d(),u=y,s=setTimeout(()=>{W&&U("\u23F1 reached timeout",f()),s=0,o&&(!i||a>0)&&(W&&U("\u{1F680} trailing",f()),l?.())},m)}else++a,W&&U("visited",f())}return r(g,"wrapper"),g.cancel=d,g.stop=()=>{d()&&l&&l()},g.immediate=r(async function(...y){d(),u=Date.now(),e.apply(this,y)},"immediate"),g.dispose=()=>g.stop(),g}r(hu,"throttle");function xu(e,t={}){let{delay:n=100}=t,o=0,i=!1,s;function u(){o&&(U("clear"),clearTimeout(o),o=0)}r(u,"clearExistingTimeout");async function a(){try{if(u(),s!=null){U("exec");let d=[...s];s=void 0,i=!0,await I(e(...d)),i=!1,U("exec done"),s!=null&&(u(),U("exec trigger next"),o=setTimeout(a,n))}}catch{}}r(a,"exec");function l(...d){s=[...d],u(),U("trigger"),i===!1&&(o=setTimeout(a,n))}r(l,"wrapper");async function c(...d){u(),s=[...d],await a()}return r(c,"immediate"),l.cancel=u,l.dispose=u,l.immediate=c,l}r(xu,"debounce");function wu(e=globalThis?.location?.hostname??""){return["::ffff:127.0.0.1","localhost","127.0.0.1","","::1","::"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")}r(wu,"isLocalHost");function Du(e){let{level:t=void 0,filter:n=void 0,messages:o=[]}=e,i=q(n),s=ie(t);return u=>{!s(u.level)||!i(u.name)||o.push(u)}}r(Du,"LoggerMemoryHandler");var ge=class extends M{constructor(){super(...arguments);this.id=j()}close(){this.dispose()}};r(ge,"Channel");var ee=class extends ge{constructor(){super(...arguments);this.isConnected=!0}postMessage(n){this.other?.emit("message",{data:n,origin:"local",lastEventId:j()})}};r(ee,"LocalChannel");function Su(){let e=new ee,t=new ee;return e.other=t,t.other=e,[e,t]}r(Su,"createLocalChannelPair");var Be=class{async encode(t){return t}async decode(t){return t}};r(Be,"NoopEncoder");var z=class{async encode(t){return be(t)}async decode(t){return Te(t)}};r(z,"JsonEncoder");var He=class{constructor(t){this.key=t}async encode(t){let n=be(t);return await nt(n,this.key)}async decode(t){let n=await rt(t,this.key);return Te(n)}};r(He,"CryptoEncoder");var Ut=r((e,t,n={})=>new Proxy(n,{get:(o,i)=>i in o?o[i]:(...s)=>e(i,s,t)}),"createPromiseProxy");function zu(e={}){let{name:t=_("hub"),encoder:n=new z,retryAfter:o=1e3,ignoreUnhandled:i=!0,logLevel:s=!1}=e,u=A(t,s),a={},l,c=[],d,g={},h=r(()=>{clearTimeout(d)},"dispose"),y=r(async()=>{if(clearTimeout(d),l){if(l.isConnected)for(;c.length;){let m=c[0];try{l.postMessage(await n.encode(m)),c.shift()}catch(T){u.warn("postMessage",T);break}}c.length>0&&o>0&&(d=setTimeout(y,o))}},"postNext"),x=r(async m=>{u("enqueue postMessage",m),c.push(m),await y()},"postMessage"),f=r(async m=>{l=m,l.on("connect",y),l.on("message",async T=>{u("onmessage",typeof T);let{name:b,args:w,id:v,result:N,error:O}=await n.decode(T.data);if(b){u(`name ${b} id ${v}`);try{if(a[b]==null)throw new Error(`handler for ${b} was not found`);let R=a[b](...w);E(R)&&(R=await R),u(`result ${R}`),v&&x({id:v,result:R})}catch(R){let $=R instanceof Error?R:new Error(Pe(R));u.warn("execution error",$.name),x({id:v,error:{message:$.message,stack:$.stack,name:$.name}})}}else if(v)if(u(`response for id=${v}: result=${N}, error=${O}`),g[v]==null)N===void 0?u(`skip response for ${v}`):u.warn(`no response hook for ${v}`);else{let[R,$]=g[v];if(R&&$)if(delete g[v],O){let te=new Error(O.message);te.stack=O.stack,te.name=O.name,u.warn("reject",te.name),$(te)}else u("resolve",N),R(N)}else i||u.warn("Unhandled message",T)}),y()},"connect"),p=r(async(m,T,b={})=>{let{timeout:w=5e3}=b,v=j();return x({name:m,args:T,id:v}),gt(new Promise((N,O)=>g[v]=[N,O]),w)},"fetchMessage");return e.channel&&f(e.channel),{dispose:h,connect:f,listen(m){Object.assign(a,m)},send(){return Ut(p,{},{options(m){return Ut(p,{...m})}})}}}r(zu,"useMessageHub");var me=class extends M{constructor(n){super();this.publish=this.emit;this.subscribe=this.on;let{name:o,encoder:i=new z,channel:s,debug:u=!1}=n;this.channel=s,this.encoder=i,this.debug=u,this.name=o??this.channel.id??_("pubsub"),this.log=A(`${this.shortId}`),this.debug&&(this.channel.on("connect",()=>{this.log("channel connected")}),this.channel.on("disconnect",()=>{this.log("channel disconnected")})),this.channel.on("message",async({data:a})=>{let l=await this.encoder.decode(a);if(this.debug?this.log(`channel message, event=${l?.event}, info=`,l):this.log(`channel message, event=${l?.event}`),l){let{event:c,args:d}=l;await this.emitSuper(c,...d)}})}get shortId(){return this.name.substr(0,6)}async emitSuper(n,...o){return await super.emit(n,...o)}async emit(n,...o){try{if(this.debug?this.log(`emit(${String(n)})`,n):this.log(`emit(${String(n)})`,o.length),!this.channel.isConnected)return this.log.warn("channel not connected"),!1;let i=await this.encoder.encode({event:n,args:o});return this.channel.postMessage(i),!0}catch(i){this.log.warn(`emit(${String(n)})`,i)}return!1}};r(me,"PubSub");function Wu(e){return new me(e)}r(Wu,"usePubSub");var Jn=1;var Ft=r(e=>e,"defaultSerialize"),Zn=Ft;function Qu(e,t){let{post:n,on:o,eventNames:i=[],serialize:s=Ft,deserialize:u=Zn}=t,a=new Map;return o(async l=>{let c=u(l),[d,g,h,y]=c;if(d===1||d===2){let x,f;if(y!=null)try{x=await e[y](...g)}catch(p){f=String(p)}else f="Method implementation missing";d===1&&h&&n(s(f?[4,f,h]:[3,x,h]))}else if(h){let x=a.get(h);x!=null&&(d===4?x.reject(g):x.resolve(g)),a.delete(h)}}),new Proxy({},{get(l,c){let d=r((...h)=>{n(s([2,h,null,c]))},"sendEvent");if(t.onlyEvents||i.includes(c))return d.asEvent=d,d;let g=r((...h)=>new Promise((y,x)=>{let f=Jn++;a.set(f,{resolve:y,reject:x}),n(s([1,h,f,c]))}),"sendCall");return g.asEvent=d,g}})}r(Qu,"useRPC");var K=A("zeed:network","error"),je={cache:"no-cache",redirect:"follow",headers:{}};function Wn(e){let t=/:\/\/([^@]*)@/gi.exec(e);if(t&&t[1]){let[n,o]=t[1].split(":",2);return{url:e.replace(`${t[1]}@`,""),username:n,password:o}}}r(Wn,"parseBasicAuth");async function kt(e,t={},n=fetch){try{k(t)&&(t=oe({},...J(t)));let o=Wn(String(e));o&&(e=o.url,t=oe({},t,Kn(o.username,o.password))),t.headers!=null&&!(t.headers instanceof Headers)&&(t.headers=new Headers(t.headers));let i=await n(String(e),t);if(i.status<400)return i;try{K.warn(`Fetch of ${e} with ${t} returned status=${i.status}`),K.warn(`Response: ${await i.text()}`)}catch(s){K.error("Exception:",s)}}catch(o){K.error("fetchBasic",o)}}r(kt,"fetchBasic");async function oc(e,t={},n=fetch){try{let o=await kt(e,[{method:"GET",headers:{Accept:"application/json"}},t],n);if(o)return await o.json()}catch(o){K.error("fetchJSON error:",o)}}r(oc,"fetchJson");async function ic(e,t={},n=fetch){try{let o=await kt(e,[je,{method:"GET"},t],n);if(o)return await o.text()}catch(o){K.error("fetchHTML error:",o)}}r(ic,"fetchText");function sc(e,t="POST"){return{method:t,...je,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:Lt(e)}}r(sc,"fetchOptionsFormURLEncoded");function ac(e,t="POST"){return{method:t,...je,headers:{"Content-Type":"application/json; charset=utf-8"},body:S(e)}}r(ac,"fetchOptionsJson");function Kn(e,t){return{headers:{Authorization:`Basic ${Ye(`${e}:${t}`)}`}}}r(Kn,"fetchOptionsBasicAuth");function It(){if(typeof window<"u")return window}r(It,"getWindow");function Yn(){if(typeof navigator<"u")return navigator}r(Yn,"getNavigator");function lc(){return It()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}r(lc,"getGlobal");var C=Yn(),G=It();function Qn(e={ios:!1,macos:!1,windows:!1,beaker:!1,electron:!1,wkwebview:!1,pwa:!1,pwaInstalled:!1,browser:!1,node:!1,worker:!1,test:!1,jest:!1,macosNative:!1,iosNative:!1,appleNative:!1,touch:!1}){return e.ios=C?.platform?.match(/(iPhone|iPod|iPad)/i)!=null,e.macos=!!C?.platform?.startsWith("Mac"),e.windows=!!C?.platform?.startsWith("Win"),e.beaker=G?.beaker!=null,e.electron=(C?.userAgent?.toLowerCase()?.indexOf(" electron/")||-1)>-1&&!e.beaker,e.wkwebview=G?.webkit?.messageHandlers!=null,e.pwa=C?.serviceWorker!=null,e.pwaInstalled=C?.standalone||G?.matchMedia?.("(display-mode: standalone)")?.matches,e.node=typeof process<"u"&&process?.release?.name==="node",e.browser=!e.electron&&!e.wkwebview&&!e.node,e.worker=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,e.jest=typeof jest<"u"||typeof vitest<"u",e.test=e.jest,e.macosNative=e.wkwebview&&e.macos,e.iosNative=e.wkwebview&&e.ios,e.appleNative=e.wkwebview,e.touch=G&&"ontouchstart"in G||(C?.maxTouchPoints||0)>1||C?.msPointerEnabled&&G?.MSGesture||G?.DocumentTouch&&document instanceof DocumentTouch,e}r(Qn,"detect");var Xn=r(()=>typeof window<"u"&&globalThis===window,"isBrowser"),fc=Qn();function pc(e){Xn()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e)}r(pc,"useExitHandler");var _e=class{constructor(t={}){this.store={}}setItem(t,n){this.store[t]=Ue(n)}getItem(t){return Ue(this.store[t])}removeItem(t){delete this.store[t]}clear(){this.store={}}allKeys(){return Object.keys(this.store)}};r(_e,"MemStorage");export{r as a,Y as b,F as c,ye as d,k as e,ne as f,rr as g,or as h,ir as i,sr as j,ze as k,ar as l,ur as m,re as n,$t as o,oe as p,Bt as q,q as r,he as s,ie as t,se as u,Q as v,Ge as w,Ne as x,_t as y,A as z,Ur as A,S as B,Fr as C,Gt as D,Nt as E,Je as F,Ze as G,P as H,$r as I,We as J,Ke as K,Ye as L,Br as M,qt as N,Hr as O,Qe as P,be as Q,Te as R,Xe as S,V as T,tt as U,we as V,et as W,Vt as X,Gr as Y,Nr as Z,nt as _,rt as $,Jt as aa,D as ba,Jr as ca,Zr as da,Wr as ea,Kr as fa,Zt as ga,Yr as ha,Qr as ia,Xr as ja,eo as ka,Wt as la,ro as ma,Ae as na,oo as oa,ve as pa,Kt as qa,Yt as ra,J as sa,Qt as ta,co as ua,lo as va,fo as wa,De as xa,po as ya,go as za,Xt as Aa,mo as Ba,en as Ca,ot as Da,yo as Ea,ho as Fa,xo as Ga,bo as Ha,To as Ia,wo as Ja,Lo as Ka,Ao as La,vo as Ma,H as Na,Ro as Oa,So as Pa,Uo as Qa,Fo as Ra,ko as Sa,Io as Ta,Co as Ua,Oo as Va,$o as Wa,jo as Xa,on as Ya,_o as Za,zo as _a,Vo as $a,Jo as ab,Zo as bb,sn as cb,an as db,un as eb,Pe as fb,Wo as gb,Ko as hb,Yo as ib,Qo as jb,cn as kb,Xo as lb,ei as mb,Me as nb,Re as ob,st as pb,ln as qb,ri as rb,at as sb,ut as tb,oi as ub,ii as vb,fe as wb,si as xb,Ee as yb,fn as zb,pn as Ab,Se as Bb,ct as Cb,ai as Db,ui as Eb,le as Fb,ci as Gb,li as Hb,fi as Ib,ft as Jb,mi as Kb,yi as Lb,pt as Mb,hi as Nb,dt as Ob,xi as Pb,gt as Qb,bi as Rb,E as Sb,I as Tb,L as Ub,vi as Vb,Di as Wb,Pi as Xb,Ei as Yb,dn as Zb,Si as _b,Ui as $b,Fi as ac,mt as bc,Ci as cc,Bi as dc,Hi as ec,ji as fc,_i as gc,qi as hc,Vi as ic,Ji as jc,Ki as kc,xt as lc,X as mc,bt as nc,ts as oc,ns as pc,rs as qc,os as rc,is as sc,ss as tc,as as uc,us as vc,Tt as wc,wt as xc,ps as yc,xn as zc,ys as Ac,Ts as Bc,Tn as Cc,Lt as Dc,ws as Ec,Ds as Fc,Ps as Gc,Es as Hc,Ms as Ic,Rs as Jc,Ue as Kc,Ss as Lc,Us as Mc,Fs as Nc,ks as Oc,vn as Pc,$s as Qc,Fe as Rc,pa as Sc,Pn as Tc,da as Uc,ke as Vc,ba as Wc,Ta as Xc,wa as Yc,La as Zc,Aa as _c,Ea as $c,Ma as ad,M as bd,Oa as cd,$a as dd,Ba as ed,vt as fd,_a as gd,za as hd,Ce as id,Un as jd,Fn as kd,kn as ld,In as md,Cn as nd,On as od,Bn as pd,Hn as qd,jn as rd,Mt as sd,Wa as td,Ka as ud,zn as vd,Ya as wd,Qa as xd,j as yd,St as zd,Gn as Ad,Xa as Bd,_ as Cd,eu as Dd,qn as Ed,Vn as Fd,su as Gd,$e as Hd,hu as Id,xu as Jd,wu as Kd,Du as Ld,ge as Md,ee as Nd,Su as Od,Be as Pd,z as Qd,He as Rd,Ut as Sd,zu as Td,me as Ud,Wu as Vd,Qu as Wd,Wn as Xd,kt as Yd,oc as Zd,ic as _d,sc as $d,ac as ae,Kn as be,It as ce,Yn as de,lc as ee,Qn as fe,Xn as ge,fc as he,pc as ie,_e as je};
12
+ //# sourceMappingURL=chunk-ZZZ5AMMR.js.map