zeed 0.8.45 → 0.8.48

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,8 @@
1
+ var Ut=Object.defineProperty;var r=(e,t)=>Ut(e,"name",{value:t,configurable:!0});function Ft(){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(Ft,"_global");function Y(){let e=Ft();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}r(Y,"getGlobalContext");function U(e){return e!=null&&typeof e=="object"}r(U,"isObject");function ge(e){return Object(e)!==e}r(ge,"isPrimitive");function $(e){return Array.isArray(e)}r($,"isArray");function je(e){return U(e)&&!$(e)}r(je,"isRecord");function Xn(e){return typeof e=="string"}r(Xn,"isString");function er(e){return typeof e=="number"}r(er,"isNumber");function tr(e){return typeof e=="number"&&Number.isInteger(e)}r(tr,"isInteger");function nr(e){return typeof e=="number"&&Number.isSafeInteger(e)}r(nr,"isSafeInteger");function rr(e){return typeof e=="boolean"}r(rr,"isBoolean");function or(e){return e==null}r(or,"isNullOrUndefined");function ir(e){return U(e)&&e.constructor.name==="Uint8Array"}r(ir,"isUint8Array");function ne(e,t,n=new WeakSet){if(e===t)return!0;if(n.has(t)||(ge(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(!ne(i,s,n))return!1}for(let o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}r(ne,"deepEqual");function kt(e,t=new WeakSet){if(t.has(e))return"[Circular ~]";if(ge(e)||t.add(e),je(e)){for(let n in e)if(!!e.hasOwnProperty(n)){if(e[n]===void 0){delete e[n];continue}kt(e[n],t)}}else if($(e))for(let n=e.length-1;n>=0;n--)e[n]===void 0&&e.splice(n,1);return e}r(kt,"deepStripUndefinedInPlace");function re(e,...t){for(let n of t)U(e)||(e={}),!(n==null||!U(n))&&Object.keys(n).forEach(o=>{let i=e[o],s=n[o];Array.isArray(i)&&Array.isArray(s)?e[o]=i.concat(s):U(i)&&U(s)?e[o]=re(Object.assign({},i),s):e[o]=s});return e}r(re,"deepMerge");function ie(e={}){let{level:t=void 0,filter:n=void 0}=e,o=G(n),i=oe(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(ie,"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||{}),_e={"*":-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=[ie()],n=2,o=r(c=>!0,"logCheckNamespace"),i=!1,s=a,u=!1;function a(c="",p){let g=me(p??-1);function h(f,d){return console.log(c,f,g),g<=f?d:()=>{}}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 d of t)d&&d(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,...d)=>{f||(typeof console!==void 0&&(console.assert?console.assert(f,...d):console.error(`Assert did fail with: ${f}`,...d)),x({name:c,messages:d||[`Assert did fail with: ${f}`],level:n}))}),y.assertEqual=h(4,(f,d,...m)=>{let T=ne(f,d);T||y.assert(T,`Assert did fail. Expected ${d} got ${f}`,d,f,...m)}),y.assertNotEqual=h(4,(f,d,...m)=>{let T=ne(f,d);T&&y.assert(T,`Assert did fail. Expected ${d} not to be equal with ${f}`,d,f,...m)}),y}r(a,"LoggerBaseFactory");function l(c="",p){let g=s(c,p);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=G(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(p=>typeof p=="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 It(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(It,"getNamespaceFilterString");var Ct=It(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*");function G(e=Ct){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(G,"useNamespaceFilter");var Ot=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 me(e){if(e===!1)return 1/0;if(typeof e=="number")return e;if(typeof e=="string"){let t=_e[e.toLocaleLowerCase().trim()];if(t!=null)return t}return-1}r(me,"parseLogLevel");function oe(e=Ot){let t=me(e);return n=>n>=t}r(oe,"useLevelFilter");var B;function ye(){let e=Ne();return e.setHandlers([ie()]),e}r(ye,"getLoggerContext");function $t(){if(B==null)try{let e=Y();e!=null?e?.logger==null?(B=ye(),e.logger=B):B=e.logger:B=ye()}catch{B=ye()}return B}r($t,"getGlobalLogger");var A=$t();var ze=r((e,t)=>t instanceof Object&&!Array.isArray(t)?Object.keys(t).sort().reduce((n,o)=>(n[o]=t[o],n),{}):t,"_sortedReplacer");function Mr(e,t=void 0){return JSON.stringify(e,ze,t)}r(Mr,"jsonStringifySorted");function Bt(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=ze(i,s);try{return e==null?s:e.call(this,i,s)}catch{}return String(s)}}r(Bt,"serializer");function F(e,t,n,o){return JSON.stringify(e,Bt(t,o),n)}r(F,"jsonStringifySafe");var Rr=F;var qe=A("zeed:bin","error");function Ht(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(Ht,"_encodeUtf8Polyfill");function jt(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(jt,"_decodeUtf8Polyfill");var se;function Ge(e){if(se==null&&(se=Ht,typeof TextEncoder<"u")){let t=new TextEncoder;se=r(n=>t.encode(n),"_textEncoder")}return se(e.normalize("NFC"))}r(Ge,"stringToUInt8Array");var ae;function _t(e){if(ae==null&&(ae=jt,typeof TextDecoder<"u")){let t=new TextDecoder("utf-8",{ignoreBOM:!0});ae=r(n=>t.decode(n),"_textDecoder")}return ae(e).normalize("NFC")}r(_t,"Uint8ArrayToString");function P(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?Ge(e):e.length?new Uint8Array(e):e}r(P,"toUint8Array");function Ir(...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(Ir,"joinToUint8Array");function Ve(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(Ve,"toHex");function Je(e){return Uint8Array.from(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}r(Je,"fromHex");function Ze(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(Ze,"toBase64");function Cr(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).replace(/\+/g,"-").replace(/\//g,"_")}r(Cr,"toBase64Url");function Or(e){if(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(Or,"fromBase64");function We(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(We,"equalBinary");function he(e){try{return Ge(F(e))}catch(t){throw qe.warn("jsonToUint8Array",e),t}}r(he,"jsonToUint8Array");function xe(e){try{return JSON.parse(_t(e))}catch(t){throw qe.warn("Uint8ArrayToJson",e),t}}r(xe,"Uint8ArrayToJson");function Ke(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 p=c.charCodeAt(0);return` ${o[(240&p)>>4]}${o[15&p]}`}).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(Ke,"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 Qe="SHA-256",be="AES-GCM",Ye="PBKDF2",Nt=1e5;async function jr(e,t=Qe){return P(await crypto.subtle.digest(t,P(e)))}r(jr,"digest");async function _r(e,t={}){let n=P(e),o=await crypto.subtle.importKey("raw",n,Ye,!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:Ye,salt:t.salt?P(t.salt):new Uint8Array(0),iterations:t.iterations??Nt,hash:Qe},o,{name:be,length:256},!0,["encrypt","decrypt"])}r(_r,"deriveKeyPbkdf2");var ue=new Uint8Array([1,1]);async function Xe(e,t){let n=V(12),o=await crypto.subtle.encrypt({name:be,iv:n},t,e),i=new Uint8Array(o),s=ue.length+n.length+i.length,u=new Uint8Array(s),a=0;return u.set(ue,a),a+=ue.length,u.set(n,a),a+=n.length,u.set(i,a),u}r(Xe,"encrypt");async function et(e,t){let n=e.subarray(0,2);if(!We(n,ue))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:be,iv:o},t,i);return new Uint8Array(s)}r(et,"decrypt");var tt=",";function zt(e){return/^([-+])?([0-9]+(\.[0-9]+)?|Infinity)$/.test(e)?Number(e):NaN}r(zt,"filterFloat");function qt(e){return e==null?"":!isNaN(zt(e))&&isFinite(e)?parseFloat(e):`"${String(e).replace(/"/g,'""')}"`}r(qt,"escape");function qr(e,t){let n="";t&&(n=`${t.join(tt)}\r
3
+ `);for(let o=0;o<e.length;o++)n+=`${e[o].map(qt).join(tt)}\r
4
+ `;return n}r(qr,"csv");function Gt(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967295}r(Gt,"getSecureRandom");function D(){return typeof crypto<"u"?Gt():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 Vt(e){return e.reduce((t,n)=>t+n,0)}r(Vt,"sum");function Yr(e){return Vt(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 Te=6;function eo(e=0,t=1,n){Te=((n??Te)*9301+49297)%233280;let o=Te/233280;return t+o*(e-t)}r(eo,"seededRandom");function Jt(e=""){let[t="",n="asc"]=e.split(" ");return n=n.toLowerCase(),{field:t,orderby:n,asc:n!=="desc",desc:n==="desc"}}r(Jt,"parseOrderby");function ro(e,t=!0){return`${e} ${t?"asc":"desc"}`}r(ro,"composeOrderby");function we(e,t,n=!0){let o=e||0,i=t||0;return o>i?n?1:-1:o<i?n?-1:1:0}r(we,"cmp");function oo(e,...t){if(t.length>0){let n=t.map(Jt),o=Array.from(e);return o.sort((i,s)=>{for(let{field:u,asc:a}of n){let l=we(i[u],s[u],a);if(l!==0)return l}return 0}),o}return e}r(oo,"sortedOrderby");function Le(e){return e.filter((t,n)=>e.indexOf(t)===n)}r(Le,"arrayUnique");function Zt(e,t){return Le(e.filter(n=>!t.includes(n)))}r(Zt,"arrayMinus");function Wt(...e){return Le(e.reduce((t=[],n)=>t.concat(n),[]))}r(Wt,"arrayUnion");function J(...e){return e.flat(1/0)}r(J,"arrayFlatten");function Kt(e,t){return Le(e).filter(n=>t.includes(n))}r(Kt,"arrayIntersection");function co(e,t){return Zt(Wt(e,t),Kt(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 Ae(e,t){return e.splice(0,e.length,...e.filter(t)),e}r(Ae,"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 Yt(e,t=we){return Array.from(e).sort(t)}r(Yt,"arraySorted");function mo(e){return Yt(e,(t,n)=>t-n)}r(mo,"arraySortedNumbers");function Qt(e,t){return e.length===t.length&&e.every((n,o)=>n===t[o])}r(Qt,"arrayIsEqual");function nt(e){return e.sort(()=>D()>.5?1:-1),e}r(nt,"arrayShuffleInPlace");function yo(e){return nt(Array.from(e))}r(yo,"arrayShuffle");function ho(e){for(;e.length>1;){let t=Array.from(e);if(nt(t),!Qt(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 Xt=A("zeed:basex","error"),en={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=en[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 p=t.charAt(c),g=p.charCodeAt(0);if(n[g]!==255)throw new TypeError(`${p} 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,p=-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,d=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*d[v]>>>0,d[v]=b%o>>>0,b=b/o>>>0;if(b!==0)throw Xt.warn("Non-zero carry",g,p,w,f),new Error("Non-zero carry");h=w,y++}let m=f-h;for(;m!==f&&d[m]===0;)m++;let T="";for(;m<f;++m)T+=t.charAt(d[m]);return p>0?T.padStart(p,i):T}r(a,"encode");function l(c,p=-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 d=n[c.charCodeAt(g)];if(d===255)throw new Error(`Unsupported character "${c[g]}"`);let m=0;for(let T=y-1;(d!==0||m<h)&&T!==-1;T--,m++)d+=o*x[T]>>>0,x[T]=d%256>>>0,d=d/256>>>0;if(d!==0)throw new Error("Non-zero carry");h=m,g++}let f=y-h;for(;f!==y&&x[f]===0;)f++;return p>0?new Uint8Array([...new Uint8Array(p-x.length+f),...x.slice(f)]):x.slice(f)}return r(l,"decode"),{encode:a,decode:l}}r(H,"useBase");var{encode:Ro,decode:tn}=H(32);function So(e){return tn(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 nn(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)}r(nn,"toCapitalize");function _o(e){return e.replace(/\w\S*/g,nn)}r(_o,"toCapitalizeWords");function No(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(No,"fromCamelCase");var rt=["1","true","yes","y","on"];function Vo(e,t=!1){return e==null||typeof e!="string"?t:rt.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 rn(e,t=!1){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:rt.includes(String(e).trim().toLowerCase())}r(rn,"valueToBoolean");function on(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(on,"valueToInteger");function sn(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(sn,"valueToFloat");function ve(e,t=""){return e==null?t:String(e)??t}r(ve,"valueToString");var Wo=sn,Ko=on,Yo=ve,Qo=rn;function an(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`
5
+ ${Ke(i)}
6
+ `;if(i instanceof Error)return n?`${i.name||"Error"}: ${i.message}
7
+ ${i.stack}`:`${i.name||"Error"}: ${i.message}`;try{return o?JSON.stringify(i,null,2):JSON.stringify(i)}catch{}}return String(i)})}r(an,"formatMessages");function Xo(e,t={}){return an(e,t).join(" ")}r(Xo,"renderMessages");function ei(e){try{return decodeURIComponent(escape(e))}catch{}return e}r(ei,"fixBrokenUth8String");var Pe=864e5;function Ee(e){return Math.floor(e/1e4)}r(Ee,"dayYear");function ot(e){return Math.floor(e/100%100)}r(ot,"dayMonth");function un(e){return Math.floor(e%100)}r(un,"dayDay");function ri(e){return[Ee(e),ot(e),un(e)]}r(ri,"dayToParts");function it(e,t=!1){return t?new Date(`${ln(e)}T00:00:00.000Z`):new Date(e/1e4,e/100%100-1,e%100)}r(it,"dayToDate");function oi(){return ce(new Date)}r(oi,"dayFromToday");function ii(e,t=!1){if(typeof e=="number")return e<100?void 0:e;if(typeof e=="string")return st(e);if(Array.isArray(e)&&e.length===3){let[n,o,i]=e;return Me(n,o,i)}else if(e instanceof Date)return ce(e,t)}r(ii,"dayFromAny");function si(e){return it(e,!0)}r(si,"dayToDateGMT");function ce(e,t=!1){return t?st(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}r(ce,"dayFromDate");function ai(e){return ce(e,!0)}r(ai,"dayFromDateGMT");function De(e,t=!0){return it(e,t).getTime()}r(De,"dayToTimestamp");function cn(e,t=!0){return ce(new Date(e),t)}r(cn,"dayFromTimestamp");function ln(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}r(ln,"dayToString");function Me(e,t=1,n=1){if(!(t<1||t>12||n<1||n>31))return e*1e4+t*100+n}r(Me,"dayFromParts");function st(e){let t=String(e).replace(/[^0-9]/g,"").slice(0,8);if(t.length===8)return+t}r(st,"dayFromString");function ui(e,t=0){let n=Ee(e),o=ot(e);return t!==0&&(o+=t,n+=Math.floor((o-1)/12),o=Math.floor((o-1)%12)+1,o===0&&(o=12)),Me(n,o,1)}r(ui,"dayMonthStart");function ci(e,t=0){let n=Ee(e);return Me(n+t,1,1)}r(ci,"dayYearStart");function li(e,t){return cn(De(e)+t*864e5)}r(li,"dayOffset");function fi(e,t){return Math.round((De(t)-De(e))/864e5)}r(fi,"dayDiff");var{warn:at}=A("zeed:promise","error");function ut(){let e,t;return[new Promise((o,i)=>{e=o,t=i}),e,t]}r(ut,"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 ct=Symbol("timeout");async function hi(e,t,n=ct){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 lt=new Error("Timeout reached");function xi(e){return e===ct||e===lt}r(xi,"isTimeout");async function ft(e,t){return t<=0?await e:new Promise(async(n,o)=>{let i=!1,s=setTimeout(()=>{i=!0,o(lt)},t);try{let u=await e;clearTimeout(s),i||n(u)}catch(u){clearTimeout(s),i||o(u)}})}r(ft,"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):at("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):at("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 k(e){return Promise.resolve(e)}r(k,"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 fn(e,t=2){return+(+e).toFixed(t)}r(fn,"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*(fn(e,t)%1)}r(Fi,"decimalCentsPart");var dt=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 Hi(e,t){return U(e)?Object.fromEntries(Object.entries(e).map(([n,o])=>{let i=t(n,o);return $(i)&&i.length===2?i:[n,i]}).filter(n=>n!=null)):{}}r(Hi,"objectMap");function ji(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}r(ji,"objectMergeDisposable");function _i(e){return Object.keys(e).length<=0}r(_i,"objectIsEmpty");var pt=/[\u0000-\u001F\u0080-\u009F]/g,dn=/^\.+/,pn=/\.+$/;function gt(){return/[<>:"/\\|?*\u0000-\u001F]/g}r(gt,"filenameReservedRegex");function gn(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}r(gn,"windowsReservedNameRegex");function qi(e,t="_"){if(typeof e!="string")throw new TypeError("Expected a string");if(gt().test(t)&&pt.test(t))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(gt(),t).replace(pt,t).replace(dn,t).replace(pn,""),e=gn().test(e)?e+t:e,e.slice(0,100)}r(qi,"toValidFilename");var mn=/[\\\-\[\]\/{}()*+?.^$|]/g;function Ji(e){return e?e instanceof RegExp?e.source:e.replace(mn,"\\$&"):""}r(Ji,"escapeRegExp");var X=r(e=>Math.abs(e)%1===.5,"isHalf"),mt=r(e=>e%2===0,"isEven"),Ki=r(e=>Math.ceil(e),"roundUp"),Yi=r(e=>Math.floor(e),"roundDown"),Qi=r(e=>Math.round(e),"roundHalfUp"),Xi=r(e=>{let t=Math.round(e);return X(e)&&mt(t)?t-1:t},"roundHalfOdd"),es=r(e=>X(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),"roundHalfAwayFromZero"),ts=r(e=>X(e)?Math.floor(e):Math.round(e),"roundHalfDown"),ns=r(e=>{let t=Math.round(e);return X(e)?mt(t)?t:t-1:t},"roundHalfEven"),rs=r(e=>X(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e),"roundHalfTowardsZero");function yt(e){return e.reduce((t,n)=>Math.min(t,n.sort_weight||0),0)-1-D()}r(yt,"startSortWeight");function ht(e){return e.reduce((t,n)=>Math.max(t,n.sort_weight||0),0)+1+D()}r(ht,"endSortWeight");function as(e,t,n){let o=n.length,i=e<t;if(o<=0||e>=o-1)return ht(n);if(e<=0)return yt(n);n=yn([...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?yt(n):ht(n);let c=u+l/2,p=l*.01*(D()-.5);return c+p}r(as,"moveSortWeight");function yn(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}r(yn,"sortedItems");function fs(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,p=a+c/2,g=c*.01*(D()-.5);return p+g}r(s,"between");function u(a,l,c){let p=c.length,g=a<l;if(p<=0||a>=p-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 d=y+f/2,m=f*.01*(D()-.5);return d+m}return r(u,"move"),{start:o,end:i,between:s,move:u,items:n}}r(fs,"useSorted");var hn=/((?:(?:(?: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 ms(e){return e.split(hn).map((t,n)=>{let o=dt(t);return n%2?`<a target="_blank" href="${o}">${xn(o)}</a>`:o}).join("")}r(ms,"linkifyPlainText");function xn(e){return e.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")}r(xn,"toHumanReadableUrl");function xt(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(xt,"encodeQuery");function ys(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(ys,"parseQuery");function Ts(e,t,n){let o=e[t];return o===void 0&&(o=n(t,e),e[t]=o),o}r(Ts,"ensureKey");async function ws(e,t,n){let o=e[t];return o===void 0&&(o=await n(t,e),e[t]=o),o}r(ws,"ensureKeyAsync");function Ls(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}r(Ls,"size");function As(e){return e!=null&&e.length>0?e[e.length-1]:void 0}r(As,"last");function vs(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(vs,"empty");function Re(e){return Object(e)!==e?e:JSON.parse(F(e))}r(Re,"cloneObject");function Ds(e){return Object(e)!==e?e:JSON.parse(F(e))}r(Ds,"cloneJsonObject");function Ps(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(Ps,"memoize");function Es(e){let t=new Map;return async(...n)=>{let o=F(n);if(t.has(o))return t.get(o);let i=await e(...n);return t.set(o,i),i}}r(Es,"memoizeAsync");function Ms(e,t){let n=[];for(let o=0;o<e;o++)n.push(t(o,e));return n}r(Ms,"forTimes");var bn=/\\\s|\s+|#[^\n]*\n?/gm,Tn=/\(\?P?<(\w[\w\d_]+)>|\((?!\?(:|\!|=|<=|<\!))/gm,bt=/^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*?)\)/gm,wn=A("zeed:xrx","error");function Ln(e){return typeof e=="string"?e:e.source||""}r(Ln,"regExpString");function Fs(e){return e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}r(Fs,"regExpEscape");var Se=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(bn,a=>a[0]==="\\"?a:"")),!(t instanceof RegExp)){let a=0;i=i.replace(Tn,(l,c)=>(a+=1,c?(c!=="index"&&c!=="length"&&!this.namedGroups[c]?this.namedGroups[c]=a:wn.error(`Unallowed or duplicate group name: ${c}`),"("):l)),this.names=Object.keys(this.namedGroups)}i=Ln(i),bt.lastIndex=0;let u=bt.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(Se,"XRX");var An=A("zeed:dispose","error");async function vn(e){typeof e=="function"?await k(e()):E(e)?await e:typeof e.dispose=="function"?await k(e.dispose()):E(e.dispose)?await e.dispose:typeof e.cleanup=="function"?await k(e.cleanup()):E(e.cleanup)&&await e.cleanup}r(vn,"callDisposer");function Ue(e){let{name:t}=typeof e=="string"?{name:e}:e??{},n=[],o=r(async u=>{u!=null&&n.includes(u)&&(Ae(n,a=>a!==u),await vn(u))},"untrack"),i=r(async()=>{for(t&&An.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(Ue,"useDispose");var Bs=Ue;function Hs(e={}){let{mode:t="fifo"}=e,n=[],o=r(async(s=!1)=>{for(;n.length>0;){let u=n[0];if(Ae(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(Hs,"useDefer");function js(e,t=0){let n=setTimeout(e,t);return()=>{n&&(clearTimeout(n),n=void 0)}}r(js,"useTimeout");function _s(e,t){let n=setInterval(e,t);return()=>{n&&(clearInterval(n),n=void 0)}}r(_s,"useInterval");function Ns(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(Ns,"useEventListener");function Vs(){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(Vs,"useMutex");function Js(){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(Js,"useAsyncMutex");var Z=A("zeed:emitter","error"),M=class{constructor(){this.subscribers={};this.subscribersOnAny=[];this.dispose=Ue();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 k(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 k(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 ta(){let e=Y().emitter;return e||(e=new M,Y().emitter=e),e}r(ta,"getGlobalEmitter");var na=new M;function ra(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,p)=>{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}p(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(ra,"lazyListener");var Tt=r(()=>Date.now(),"getTimestamp");function sa(e){return e>999?`${(e/1e3).toFixed(1)}s`:`${e.toFixed(2)}ms`}r(sa,"formatMilliseconds");function aa(...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(aa,"parseDate");var{encode:wt,decode:Dn}=H(62),{encode:Lt,decode:Pn}=H(32),le=16;function ke(){return V(le)}r(ke,"uuidBytes");function En(e=ke()){return wt(e,22)}r(En,"uuidB62");function Mn(e){return wt(e,22)}r(Mn,"uuidEncodeB62");function Rn(e){return Dn(e,le)}r(Rn,"uuidDecodeB62");function Sn(e=ke()){return Lt(e,26)}r(Sn,"uuidB32");function Un(e){return Lt(e,26)}r(Un,"uuidEncodeB32");function Fn(e){return Pn(e,le)}r(Fn,"uuidDecodeB32");var kn="10000000-1000-4000-8000-100000000000",In=typeof crypto<"u"&&crypto.randomUUID!=null?crypto.randomUUID.bind(crypto):()=>kn.replace(/[018]/g,e=>(e^V(1)[0]&15>>e/4).toString(16));function Cn(e){let t=Ve(e);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}r(Cn,"uuidEncodeV4");function On(e){return Je(e.replaceAll("-",""))}r(On,"uuidDecodeV4");var At=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 vt(){let e=Tt()-At;return new Uint8Array([...$n(e),...V(10)])}r(vt,"suidBytes");function Ba(){return Hn(vt())}r(Ba,"suid");function Ha(e){return Bn(Pt(e))}r(Ha,"suidDate");function Bn(e){return new Date(At+e.slice(0,6).reduce((t,n)=>t*256+n,0))}r(Bn,"suidBytesDate");var ja=r(()=>new Uint32Array(V(4))[0],"uuid32bit"),Ie={base62:{uuid:En,uuidDecode:Rn,uuidEncode:Mn},base32:{uuid:Sn,uuidDecode:Fn,uuidEncode:Un},uuidv4:{uuid:In,uuidDecode:On,uuidEncode:Cn}},fe="base62",Dt=!1;function _a(e,t=!1){fe=e,Dt=t}r(_a,"setUuidDefaultEncoding");function j(){return Ie[fe].uuid(Dt?vt():ke())}r(j,"uuid");function Pt(e){return Ie[fe].uuidDecode(e)}r(Pt,"uuidDecode");function Hn(e){return Ie[fe].uuidEncode(e)}r(Hn,"uuidEncode");function Na(e){try{return Pt(e).length===le}catch{}return!1}r(Na,"uuidIsValid");var Fe={};function _(e="id"){return Fe[e]==null&&(Fe[e]=0),`${e}-${Fe[e]++}`}r(_,"uname");var jn=0;function za(){return`id-${jn++}`}r(za,"qid");var _n=(o=>(o[o.waiting=0]="waiting",o[o.running=1]="running",o[o.finished=2]="finished",o))(_n||{}),Nn=(o=>(o[o.replace=0]="replace",o[o.memoize=1]="memoize",o[o.error=2]="error",o))(Nn||{});function Wa(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,d]=ut();return n.once("didFinish",d),f}}r(l,"waitFinishAll");function c(){n.emit("didFinish"),o=0,i=0}r(c,"didFinish");function p(){let f=0,d=0;for(let{max:m,resolved:T,state:b}of Object.values(a))f+=m,d+=b===2?m:Math.min(m,T);n.emit("didUpdate",o,i,f,d)}r(p,"didUpdate");function g(){if(p(),o>0&&o===i&&c(),s>=t)return;let f=Object.values(a).filter(d=>d.state===0);if(f.length>0){let d;for(let m of f)m.group!=null&&Object.values(a).some(T=>T.state===1&&T.id!==m.id&&T.group===m.group)||(d==null||m.priority<d.priority)&&(d=m);if(d!=null){let m=d.id,T=d.done;d.state=1,++s,n.emit("didStart",m);let b=r(w=>{d&&(d.result=w,d.state=2,d.resolved=d.max),--s,++i,g()},"taskFinished");d.task(d).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 d=a[f];d&&d.state===0&&(a[f].state=2,++i,n.emit("didCancel",f),p())}r(h,"cancel");function y(){Object.keys(a).forEach(h)}r(y,"cancelAll");function x(f,d={}){let m,T=new Promise(w=>m=w),b=d.id??j();if(a[b]!=null){let w=d.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:d.group,state:0,max:d.max??1,resolved:d.resolved??0,done:m,payload:d.payload,setMax(w){a[b].max=w,p()},setResolved(w){a[b].resolved=w,p()},incResolved(w=1){a[b].resolved+=w,p()}},++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(Wa,"usePool");var Ce=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(Ce,"SerialQueue");var W=!1,S=W?A("zeed:throttle","error"):()=>{};function su(e,t={}){let{delay:n=100,trailing:o=!0,leading:i=!0}=t,s=0,u=0,a=0,l,c=Date.now();function p(){return s?(clearTimeout(s),s=void 0,!0):!1}r(p,"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 d=r(()=>{a=0,u=Date.now(),e.apply(this,h)},"exec");if(l=d,x>n||!s){W&&S("elapsed",f()),i&&(x>n?(W&&S("\u{1F680} leading",f()),d()):++a);let m=x>n?n:n-x;S(`\u23F1 start timeout with ${m.toFixed(1)}ms`,f()),p(),u=y,s=setTimeout(()=>{W&&S("\u23F1 reached timeout",f()),s=0,o&&(!i||a>0)&&(W&&S("\u{1F680} trailing",f()),l?.())},m)}else++a,W&&S("visited",f())}return r(g,"wrapper"),g.cancel=p,g.stop=()=>{p()&&l&&l()},g.immediate=r(async function(...y){p(),u=Date.now(),e.apply(this,y)},"immediate"),g.dispose=()=>g.stop(),g}r(su,"throttle");function au(e,t={}){let{delay:n=100}=t,o=0,i=!1,s;function u(){o&&(S("clear"),clearTimeout(o),o=0)}r(u,"clearExistingTimeout");async function a(){try{if(u(),s!=null){S("exec");let p=[...s];s=void 0,i=!0,await k(e(...p)),i=!1,S("exec done"),s!=null&&(u(),S("exec trigger next"),o=setTimeout(a,n))}}catch{}}r(a,"exec");function l(...p){s=[...p],u(),S("trigger"),i===!1&&(o=setTimeout(a,n))}r(l,"wrapper");async function c(...p){u(),s=[...p],await a()}return r(c,"immediate"),l.cancel=u,l.dispose=u,l.immediate=c,l}r(au,"debounce");function lu(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(lu,"isLocalHost");function gu(e){let{level:t=void 0,filter:n=void 0,messages:o=[]}=e,i=G(n),s=oe(t);return u=>{!s(u.level)||!i(u.name)||o.push(u)}}r(gu,"LoggerMemoryHandler");var de=class extends M{constructor(){super(...arguments);this.id=j()}close(){this.dispose()}};r(de,"Channel");var ee=class extends de{constructor(){super(...arguments);this.isConnected=!0}postMessage(n){this.other?.emit("message",{data:n,origin:"local",lastEventId:j()})}};r(ee,"LocalChannel");function bu(){let e=new ee,t=new ee;return e.other=t,t.other=e,[e,t]}r(bu,"createLocalChannelPair");var Oe=class{async encode(t){return t}async decode(t){return t}};r(Oe,"NoopEncoder");var N=class{async encode(t){return he(t)}async decode(t){return xe(t)}};r(N,"JsonEncoder");var $e=class{constructor(t){this.key=t}async encode(t){let n=he(t);return await Xe(n,this.key)}async decode(t){let n=await et(t,this.key);return xe(n)}};r($e,"CryptoEncoder");var Et=r((e,t,n={})=>new Proxy(n,{get:(o,i)=>i in o?o[i]:(...s)=>e(i,s,t)}),"createPromiseProxy");function Uu(e={}){let{name:t=_("hub"),encoder:n=new N,retryAfter:o=1e3,ignoreUnhandled:i=!0,logLevel:s=!1}=e,u=A(t,s),a={},l,c=[],p,g={},h=r(()=>{clearTimeout(p)},"dispose"),y=r(async()=>{if(clearTimeout(p),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&&(p=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:q,error:C}=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 O=R instanceof Error?R:new Error(ve(R));u.warn("execution error",O.name),x({id:v,error:{message:O.message,stack:O.stack,name:O.name}})}}else if(v)if(u(`response for id=${v}: result=${q}, error=${C}`),g[v]==null)q===void 0?u(`skip response for ${v}`):u.warn(`no response hook for ${v}`);else{let[R,O]=g[v];if(R&&O)if(delete g[v],C){let te=new Error(C.message);te.stack=C.stack,te.name=C.name,u.warn("reject",te.name),O(te)}else u("resolve",q),R(q)}else i||u.warn("Unhandled message",T)}),y()},"connect"),d=r(async(m,T,b={})=>{let{timeout:w=5e3}=b,v=j();return x({name:m,args:T,id:v}),ft(new Promise((q,C)=>g[v]=[q,C]),w)},"fetchMessage");return e.channel&&f(e.channel),{dispose:h,connect:f,listen(m){Object.assign(a,m)},send(){return Et(d,{},{options(m){return Et(d,{...m})}})}}}r(Uu,"useMessageHub");var pe=class extends M{constructor(n){super();this.publish=this.emit;this.subscribe=this.on;let{name:o,encoder:i=new N,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:p}=l;await this.emitSuper(c,...p)}})}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(pe,"PubSub");function Bu(e){return new pe(e)}r(Bu,"usePubSub");var zn=1;var Mt=r(e=>e,"defaultSerialize"),qn=Mt;function _u(e,t){let{post:n,on:o,eventNames:i=[],serialize:s=Mt,deserialize:u=qn}=t,a=new Map;return o(async l=>{let c=u(l),[p,g,h,y]=c;if(p===1||p===2){let x,f;if(y!=null)try{x=await e[y](...g)}catch(d){f=String(d)}else f="Method implementation missing";p===1&&h&&n(s(f?[4,f,h]:[3,x,h]))}else if(h){let x=a.get(h);x!=null&&(p===4?x.reject(g):x.resolve(g)),a.delete(h)}}),new Proxy({},{get(l,c){let p=r((...h)=>{n(s([2,h,null,c]))},"sendEvent");if(t.onlyEvents||i.includes(c))return p.asEvent=p,p;let g=r((...h)=>new Promise((y,x)=>{let f=zn++;a.set(f,{resolve:y,reject:x}),n(s([1,h,f,c]))}),"sendCall");return g.asEvent=p,g}})}r(_u,"useRPC");var K=A("zeed:network","error"),Be={cache:"no-cache",redirect:"follow",headers:{}};function Gn(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(Gn,"parseBasicAuth");async function Rt(e,t={},n=fetch){try{$(t)&&(t=re({},...J(t)));let o=Gn(String(e));o&&(e=o.url,t=re({},t,Vn(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(Rt,"fetchBasic");async function Ju(e,t={},n=fetch){try{let o=await Rt(e,[{method:"GET",headers:{Accept:"application/json"}},t],n);if(o)return await o.json()}catch(o){K.error("fetchJSON error:",o)}}r(Ju,"fetchJson");async function Zu(e,t={},n=fetch){try{let o=await Rt(e,[Be,{method:"GET"},t],n);if(o)return await o.text()}catch(o){K.error("fetchHTML error:",o)}}r(Zu,"fetchText");function Wu(e,t="POST"){return{method:t,...Be,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:xt(e)}}r(Wu,"fetchOptionsFormURLEncoded");function Ku(e,t="POST"){return{method:t,...Be,headers:{"Content-Type":"application/json; charset=utf-8"},body:F(e)}}r(Ku,"fetchOptionsJson");function Vn(e,t){return{headers:{Authorization:`Basic ${Ze(`${e}:${t}`)}`}}}r(Vn,"fetchOptionsBasicAuth");function St(){if(typeof window<"u")return window}r(St,"getWindow");function Jn(){if(typeof navigator<"u")return navigator}r(Jn,"getNavigator");function Xu(){return St()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}r(Xu,"getGlobal");var I=Jn(),z=St();function Zn(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=I?.platform?.match(/(iPhone|iPod|iPad)/i)!=null,e.macos=!!I?.platform?.startsWith("Mac"),e.windows=!!I?.platform?.startsWith("Win"),e.beaker=z?.beaker!=null,e.electron=(I?.userAgent?.toLowerCase()?.indexOf(" electron/")||-1)>-1&&!e.beaker,e.wkwebview=z?.webkit?.messageHandlers!=null,e.pwa=I?.serviceWorker!=null,e.pwaInstalled=I?.standalone||z?.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=z&&"ontouchstart"in z||(I?.maxTouchPoints||0)>1||I?.msPointerEnabled&&z?.MSGesture||z?.DocumentTouch&&document instanceof DocumentTouch,e}r(Zn,"detect");var Wn=r(()=>typeof window<"u"&&globalThis===window,"isBrowser"),ec=Zn();function tc(e){Wn()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e)}r(tc,"useExitHandler");var He=class{constructor(t={}){this.store={}}setItem(t,n){this.store[t]=Re(n)}getItem(t){return Re(this.store[t])}removeItem(t){delete this.store[t]}clear(){this.store={}}allKeys(){return Object.keys(this.store)}};r(He,"MemStorage");export{r as a,Y as b,U as c,ge as d,$ as e,je as f,Xn as g,er as h,tr as i,nr as j,rr as k,or as l,ir as m,ne as n,kt as o,re as p,It as q,G as r,me as s,oe as t,ie as u,Q as v,_e as w,Ne as x,$t as y,A as z,Mr as A,F as B,Rr as C,Ht as D,jt as E,Ge as F,_t as G,P as H,Ir as I,Ve as J,Je as K,Ze as L,Cr as M,Or as N,We as O,he as P,xe as Q,Ke as R,V as S,Qe as T,be as U,Ye as V,Nt as W,jr as X,_r as Y,Xe as Z,et as _,qr as $,Gt as aa,D as ba,Jr as ca,Zr as da,Wr as ea,Kr as fa,Vt as ga,Yr as ha,Qr as ia,Xr as ja,eo as ka,Jt as la,ro as ma,we as na,oo as oa,Le as pa,Zt as qa,Wt as ra,J as sa,Kt as ta,co as ua,lo as va,fo as wa,Ae as xa,po as ya,go as za,Yt as Aa,mo as Ba,Qt as Ca,nt 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,nn as Ya,_o as Za,No as _a,Vo as $a,Jo as ab,Zo as bb,rn as cb,on as db,sn as eb,ve as fb,Wo as gb,Ko as hb,Yo as ib,Qo as jb,an as kb,Xo as lb,ei as mb,Pe as nb,Ee as ob,ot as pb,un as qb,ri as rb,it as sb,oi as tb,ii as ub,si as vb,ce as wb,ai as xb,De as yb,cn as zb,ln as Ab,Me as Bb,st as Cb,ui as Db,ci as Eb,li as Fb,fi as Gb,ut as Hb,mi as Ib,yi as Jb,ct as Kb,hi as Lb,lt as Mb,xi as Nb,ft as Ob,bi as Pb,E as Qb,k as Rb,L as Sb,vi as Tb,Di as Ub,Pi as Vb,Ei as Wb,fn as Xb,Si as Yb,Ui as Zb,Fi as _b,dt as $b,Ci as ac,Hi as bc,ji as cc,_i as dc,qi as ec,Ji as fc,X as gc,mt as hc,Ki as ic,Yi as jc,Qi as kc,Xi as lc,es as mc,ts as nc,ns as oc,rs as pc,yt as qc,ht as rc,as as sc,yn as tc,fs as uc,ms as vc,xn as wc,xt as xc,ys as yc,Ts as zc,ws as Ac,Ls as Bc,As as Cc,vs as Dc,Re as Ec,Ds as Fc,Ps as Gc,Es as Hc,Ms as Ic,Ln as Jc,Fs as Kc,Se as Lc,Ue as Mc,Bs as Nc,Hs as Oc,js as Pc,_s as Qc,Ns as Rc,Vs as Sc,Js as Tc,M as Uc,ta as Vc,na as Wc,ra as Xc,Tt as Yc,sa as Zc,aa as _c,ke as $c,En as ad,Mn as bd,Rn as cd,Sn as dd,Un as ed,Fn as fd,In as gd,Cn as hd,On as id,vt as jd,Ba as kd,Ha as ld,Bn as md,ja as nd,_a as od,j as pd,Pt as qd,Hn as rd,Na as sd,_ as td,za as ud,_n as vd,Nn as wd,Wa as xd,Ce as yd,su as zd,au as Ad,lu as Bd,gu as Cd,de as Dd,ee as Ed,bu as Fd,Oe as Gd,N as Hd,$e as Id,Et as Jd,Uu as Kd,pe as Ld,Bu as Md,_u as Nd,Gn as Od,Rt as Pd,Ju as Qd,Zu as Rd,Wu as Sd,Ku as Td,Vn as Ud,St as Vd,Jn as Wd,Xu as Xd,Zn as Yd,Wn as Zd,ec as _d,tc as $d,He as ae};
8
+ //# sourceMappingURL=chunk-Q56D2RTP.js.map