zeed 0.8.58 → 0.8.60

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 e?.constructor===Object}r(rr,"isRecordPlain");function or(e){return typeof e=="string"}r(or,"isString");function ir(e){return typeof e=="number"}r(ir,"isNumber");function sr(e){return typeof e=="number"&&Number.isInteger(e)}r(sr,"isInteger");function ar(e){return typeof e=="number"&&Number.isSafeInteger(e)}r(ar,"isSafeInteger");function ze(e){return typeof e=="boolean"}r(ze,"isBoolean");function ur(e){return e==null}r(ur,"isNullOrUndefined");function cr(e){return e==null}r(cr,"isNull");function lr(e){return F(e)&&e.constructor.name==="Uint8Array"}r(lr,"isUint8Array");function fr(e){return e!=null}r(fr,"isNotNull");function dr(e){return e!=null&&e!==!1&&e!==!0}r(dr,"isValue");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||{}),Ne={"*":-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 Ge(e=""){let t=[se()],n=2,o=r(c=>!0,"logCheckNamespace"),i=!1,s=a,u=!1;function a(c="",p){let g=he(p??-1);function h(f,d){return 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=re(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=re(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=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(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(Ge,"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 jt=Bt(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*");function q(e=jt){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 Ht=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=Ne[e.toLocaleLowerCase().trim()];if(t!=null)return t}return-1}r(he,"parseLogLevel");function ie(e=Ht){let t=he(e);return n=>n>=t}r(ie,"useLevelFilter");var B;function xe(){let e=Ge();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 Cr(e,t=void 0){return JSON.stringify(e,qe,t)}r(Cr,"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 Or=S;var Ve=A("zeed:bin","error");function Nt(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(Nt,"_encodeUtf8Polyfill");function Gt(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(Gt,"_decodeUtf8Polyfill");var ae;function Je(e){if(ae==null&&(ae=Nt,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=Gt,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 zr(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(zr,"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 Nr(e){return Ze(qt(e))}r(Nr,"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 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(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 Jr(e,t=tt){return P(await crypto.subtle.digest(t,P(e)))}r(Jr,"digest");async function Zr(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(Zr,"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 Yr(e=.25){return D()<e}r(Yr,"randomBoolean");function Qr(e=100,t=0){return t+Math.floor(D()*(e-t))}r(Qr,"randomInt");function Xr(e=100,t=0){return t+D()*(e-t)}r(Xr,"randomFloat");function eo(e,t,n){return Math.max(e,Math.min(n,t))}r(eo,"between");function Zt(e){return e.reduce((t,n)=>t+n,0)}r(Zt,"sum");function to(e){return Zt(e)/e.length}r(to,"avg");function no(e){return!/^1?$|^(11+?)\1+$/.test("1".repeat(e))}r(no,"isPrimeRX");function ro(e){for(let t=2;t<e;t++)if(e%t===0)return!1;return e>1}r(ro,"isPrime");var Le=6;function oo(e=0,t=1,n){Le=((n??Le)*9301+49297)%233280;let o=Le/233280;return t+o*(e-t)}r(oo,"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 ao(e,t=!0){return`${e} ${t?"asc":"desc"}`}r(ao,"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 uo(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(uo,"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 go(e,t){return Kt(Yt(e,t),Qt(e,t))}r(go,"arraySymmetricDifference");function mo(e,t){if(e&&Array.isArray(e)){let n;for(;(n=e.indexOf(t))!==-1;)e.splice(n,1);return e}return[]}r(mo,"arrayRemoveElement");function yo(e,t){return e.includes(t)||e.push(t),e}r(yo,"arraySetElement");function De(e,t){return e.splice(0,e.length,...e.filter(t)),e}r(De,"arrayFilterInPlace");function ho(e,t){let n=e.findIndex(o=>o===t);return n>=0?e.splice(n,1):e.push(t),e}r(ho,"arrayToggleInPlace");function xo(e){return e.splice(0,e.length),e}r(xo,"arrayEmptyInPlace");function Xt(e,t=Ae){return Array.from(e).sort(t)}r(Xt,"arraySorted");function bo(e){return Xt(e,(t,n)=>t-n)}r(bo,"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 To(e){return ot(Array.from(e))}r(To,"arrayShuffle");function wo(e){for(;e.length>1;){let t=Array.from(e);if(ot(t),!en(e,t))return t}return e}r(wo,"arrayShuffleForce");function Lo(e){return e[Math.floor(D()*e.length)]}r(Lo,"arrayRandomElement");function Ao(...e){return J(e).reduce((t,n)=>t!=null?n>t?n:t:n,void 0)}r(Ao,"arrayMax");function vo(...e){return J(e).reduce((t,n)=>t!=null?n<t?n:t:n,void 0)}r(vo,"arrayMin");function Do(...e){return J(e).reduce((t,n)=>t+n,0)}r(Do,"arraySum");function Po(...e){let t=J(e);return t.reduce((n,o)=>n+o,0)/t.length}r(Po,"arrayAvg");function Eo(e,t){let n=[],o=0,i=e.length;for(;o<i;)n.push(e.slice(o,o+=t));return n}r(Eo,"arrayBatches");function Mo(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(Mo,"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 j(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 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 tn.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(j,"useBase");var{encode:ko,decode:rn}=j(32);function Io(e){return rn(e.toLocaleLowerCase().replaceAll("l","1").replaceAll("s","5").replaceAll("o","0").replaceAll("i","1"))}r(Io,"decodeBase32");var{encode:Co,decode:Oo}=j(16),{encode:$o,decode:Bo}=j(58),{encode:jo,decode:Ho}=j(62);function _o(e,t){return Math.ceil(e*(Math.log(256)/Math.log(t)))}r(_o,"estimateSizeForBase");var Go=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 qo(e){return e.replace(/\w\S*/g,on)}r(qo,"toCapitalizeWords");function Vo(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(Vo,"fromCamelCase");var it=["1","true","yes","y","on"];function Ko(e,t=!1){return e==null||typeof e!="string"?t:it.includes(String(e).trim().toLowerCase())}r(Ko,"stringToBoolean");function Yo(e,t=0){return e==null||typeof e!="string"?t:parseInt(e.trim(),10)??t}r(Yo,"stringToInteger");function Qo(e,t=0){return e==null||typeof e!="string"?t:parseFloat(e.trim())??t}r(Qo,"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 Xo=un,ei=an,ti=Pe,ni=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 ri(e,t={}){return cn(e,t).join(" ")}r(ri,"renderMessages");function oi(e){try{return decodeURIComponent(escape(e))}catch{}return e}r(oi,"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 ai(e){return[Re(e),st(e),ln(e)]}r(ai,"dayToParts");function at(e,t=!1){return t?new Date(`${dn(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 ui(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(ui,"dayFromAny");function ci(e){return at(e,!0)}r(ci,"dayToDateGMT");function fe(e,t=!1){return t?ct(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}r(fe,"dayFromDate");function li(e){return fe(e,!0)}r(li,"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 dn(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}r(dn,"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 fi(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(fi,"dayMonthStart");function di(e,t=0){let n=Re(e);return Se(n+t,1,1)}r(di,"dayYearStart");function le(e,t){return fn(Ee(e)+t*864e5)}r(le,"dayOffset");function pi(e,t){return Math.round((Ee(t)-Ee(e))/864e5)}r(pi,"dayDiff");function gi(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(gi,"dayRange");function*mi(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(mi,"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 bi(e){return new Promise(t=>setTimeout(t,e))}r(bi,"sleep");async function Ti(){return new Promise(e=>setTimeout(e,0))}r(Ti,"immediate");var dt=Symbol("timeout");async function wi(e,t,n=dt){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(wi,"timeout");var pt=new Error("Timeout reached");function Li(e){return e===dt||e===pt}r(Li,"isTimeout");async function gt(e,t){return t<=0?await e:new Promise(async(n,o)=>{let i=!1,s=setTimeout(()=>{i=!0,o(pt)},t);try{let u=await e;clearTimeout(s),i||n(u)}catch(u){clearTimeout(s),i||o(u)}})}r(gt,"tryTimeout");function Ai(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(Ai,"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 Mi(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(Mi,"forEachDay");function Ri(){return new L}r(Ri,"today");function Si(e){return new L(e)}r(Si,"day");function Ui(e){return L.fromDate(new Date(e)).days}r(Ui,"dateStringToDays");function pn(e,t=2){return+(+e).toFixed(t)}r(pn,"decimal");function Ii(e,t=2){return+(+e/10**t).toFixed(t)}r(Ii,"decimalFromCents");function Ci(e,t=2){return Math.round(+e*10**t)}r(Ci,"decimalToCents");function Oi(e,t=2){return t*(pn(e,t)%1)}r(Oi,"decimalCentsPart");var mt=r(e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;"),"escapeHTML"),ji=r(e=>e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&amp;/gi,"&"),"unescapeHTML");function zi(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(zi,"listQuery");function Ni(e,t){return e.reduce((n,o)=>{let i=String(o[t]);return(n[i]=n[i]||[]).push(o),n},{})}r(Ni,"listGroupBy");function Gi(e,t){return Array.from(e.reduce((n,o)=>n.add(o[t]),new Set))}r(Gi,"listDistinctUnion");function qi(e,t){return e.map(n=>n[t])}r(qi,"listOfKey");function Wi(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(Wi,"objectMap");function Ki(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}r(Ki,"objectMergeDisposable");function Yi(e){return Object.keys(e).length<=0}r(Yi,"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 es(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(es,"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"),is=r(e=>Math.ceil(e),"roundUp"),ss=r(e=>Math.floor(e),"roundDown"),as=r(e=>Math.round(e),"roundHalfUp"),us=r(e=>{let t=Math.round(e);return X(e)&&bt(t)?t-1:t},"roundHalfOdd"),cs=r(e=>X(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),"roundHalfAwayFromZero"),ls=r(e=>X(e)?Math.floor(e):Math.round(e),"roundHalfDown"),fs=r(e=>{let t=Math.round(e);return X(e)?bt(t)?t:t-1:t},"roundHalfEven"),ds=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 ys(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,p=l*.01*(D()-.5);return c+p}r(ys,"moveSortWeight");function xn(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}r(xn,"sortedItems");function Ts(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(Ts,"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 vs(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(vs,"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 Ds(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(Ds,"parseQuery");function Rs(e,t,n){let o=e[t];return o===void 0&&(o=n(t,e),e[t]=o),o}r(Rs,"ensureKey");async function Ss(e,t,n){let o=e[t];return o===void 0&&(o=await n(t,e),e[t]=o),o}r(Ss,"ensureKeyAsync");function Us(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}r(Us,"size");function Fs(e){return e!=null&&e.length>0?e[e.length-1]:void 0}r(Fs,"last");function ks(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(ks,"empty");function Ue(e){return Object(e)!==e?e:JSON.parse(S(e))}r(Ue,"cloneObject");function Is(e){return Object(e)!==e?e:JSON.parse(S(e))}r(Is,"cloneJsonObject");function Cs(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(Cs,"memoize");function Os(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(Os,"memoizeAsync");function $s(e,t){let n=[];for(let o=0;o<e;o++)n.push(t(o,e));return n}r($s,"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 ya(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(ya,"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 ha(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(ha,"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 Aa=ke;function va(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(va,"useDefer");function Da(e,t=0){let n=setTimeout(e,t);return()=>{n&&(clearTimeout(n),n=void 0)}}r(Da,"useTimeout");function Pa(e,t){let n=setInterval(e,t);return()=>{n&&(clearInterval(n),n=void 0)}}r(Pa,"useInterval");function Ea(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(Ea,"useEventListener");function Ua(){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(Ua,"useMutex");function Fa(){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(Fa,"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 Ha(){let e=Y().emitter;return e||(e=new M,Y().emitter=e),e}r(Ha,"getGlobalEmitter");var _a=new M;function za(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(za,"lazyListener");var vt=r(()=>Date.now(),"getTimestamp");function qa(e){return e>999?`${(e/1e3).toFixed(1)}s`:`${e.toFixed(2)}ms`}r(qa,"formatMilliseconds");function Va(...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(Va,"parseDate");var{encode:Dt,decode:Rn}=j(62),{encode:Pt,decode:Sn}=j(32),de=16;function Ce(){return V(de)}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,de)}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,de)}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 jn(e){let t=We(e);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}r(jn,"uuidEncodeV4");function Hn(e){return Ke(e.replaceAll("-",""))}r(Hn,"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 Xa(){return Nn(Mt())}r(Xa,"suid");function eu(e){return zn(St(e))}r(eu,"suidDate");function zn(e){return new Date(Et+e.slice(0,6).reduce((t,n)=>t*256+n,0))}r(zn,"suidBytesDate");var tu=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:Hn,uuidEncode:jn}},pe="base62",Rt=!1;function nu(e,t=!1){pe=e,Rt=t}r(nu,"setUuidDefaultEncoding");function H(){return Oe[pe].uuid(Rt?Mt():Ce())}r(H,"uuid");function St(e){return Oe[pe].uuidDecode(e)}r(St,"uuidDecode");function Nn(e){return Oe[pe].uuidEncode(e)}r(Nn,"uuidEncode");function ru(e){try{return St(e).length===de}catch{}return!1}r(ru,"uuidIsValid");var Ie={};function _(e="id"){return Ie[e]==null&&(Ie[e]=0),`${e}-${Ie[e]++}`}r(_,"uname");var Gn=0;function ou(){return`id-${Gn++}`}r(ou,"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 lu(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]=ft();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??H();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(lu,"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 wu(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&&U("elapsed",f()),i&&(x>n?(W&&U("\u{1F680} leading",f()),d()):++a);let m=x>n?n:n-x;U(`\u23F1 start timeout with ${m.toFixed(1)}ms`,f()),p(),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=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(wu,"throttle");function Lu(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 p=[...s];s=void 0,i=!0,await I(e(...p)),i=!1,U("exec done"),s!=null&&(u(),U("exec trigger next"),o=setTimeout(a,n))}}catch{}}r(a,"exec");function l(...p){s=[...p],u(),U("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(Lu,"debounce");function Du(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(Du,"isLocalHost");function Ru(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(Ru,"LoggerMemoryHandler");var ge=class extends M{constructor(){super(...arguments);this.id=H()}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:H()})}};r(ee,"LocalChannel");function Iu(){let e=new ee,t=new ee;return e.other=t,t.other=e,[e,t]}r(Iu,"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 je=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(je,"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 Vu(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=[],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:G,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=${G}, error=${O}`),g[v]==null)G===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",G),R(G)}else i||u.warn("Unhandled message",T)}),y()},"connect"),d=r(async(m,T,b={})=>{let{timeout:w=5e3}=b,v=H();return x({name:m,args:T,id:v}),gt(new Promise((G,O)=>g[v]=[G,O]),w)},"fetchMessage");return e.channel&&f(e.channel),{dispose:h,connect:f,listen(m){Object.assign(a,m)},send(){return Ut(d,{},{options(m){return Ut(d,{...m})}})}}}r(Vu,"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: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(me,"PubSub");function Xu(e){return new me(e)}r(Xu,"usePubSub");var Jn=1;var Ft=r(e=>e,"defaultSerialize"),Zn=Ft;function nc(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),[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=Jn++;a.set(f,{resolve:y,reject:x}),n(s([1,h,f,c]))}),"sendCall");return g.asEvent=p,g}})}r(nc,"useRPC");var K=A("zeed:network","error"),He={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 uc(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(uc,"fetchJson");async function cc(e,t={},n=fetch){try{let o=await kt(e,[He,{method:"GET"},t],n);if(o)return await o.text()}catch(o){K.error("fetchHTML error:",o)}}r(cc,"fetchText");function lc(e,t="POST"){return{method:t,...He,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:Lt(e)}}r(lc,"fetchOptionsFormURLEncoded");function fc(e,t="POST"){return{method:t,...He,headers:{"Content-Type":"application/json; charset=utf-8"},body:S(e)}}r(fc,"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 gc(){return It()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}r(gc,"getGlobal");var C=Yn(),N=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=N?.beaker!=null,e.electron=(C?.userAgent?.toLowerCase()?.indexOf(" electron/")||-1)>-1&&!e.beaker,e.wkwebview=N?.webkit?.messageHandlers!=null,e.pwa=C?.serviceWorker!=null,e.pwaInstalled=C?.standalone||N?.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=N&&"ontouchstart"in N||(C?.maxTouchPoints||0)>1||C?.msPointerEnabled&&N?.MSGesture||N?.DocumentTouch&&document instanceof DocumentTouch,e}r(Qn,"detect");var Xn=r(()=>typeof window<"u"&&globalThis===window,"isBrowser"),mc=Qn();function yc(e){Xn()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e)}r(yc,"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,ar as k,ze as l,ur as m,cr as n,lr as o,fr as p,dr as q,re as r,$t as s,oe as t,Bt as u,q as v,he as w,ie as x,se as y,Q as z,Ne as A,Ge as B,_t as C,A as D,Cr as E,S as F,Or as G,Nt as H,Gt as I,Je as J,Ze as K,P as L,_r as M,We as N,Ke as O,Ye as P,zr as Q,qt as R,Nr as S,Qe as T,be as U,Te as V,Xe as W,V as X,tt as Y,we as Z,et as _,Vt as $,Jr as aa,Zr as ba,nt as ca,rt as da,Jt as ea,D as fa,Yr as ga,Qr as ha,Xr as ia,eo as ja,Zt as ka,to as la,no as ma,ro as na,oo as oa,Wt as pa,ao as qa,Ae as ra,uo as sa,ve as ta,Kt as ua,Yt as va,J as wa,Qt as xa,go as ya,mo as za,yo as Aa,De as Ba,ho as Ca,xo as Da,Xt as Ea,bo as Fa,en as Ga,ot as Ha,To as Ia,wo as Ja,Lo as Ka,Ao as La,vo as Ma,Do as Na,Po as Oa,Eo as Pa,Mo as Qa,j as Ra,ko as Sa,Io as Ta,Co as Ua,Oo as Va,$o as Wa,Bo as Xa,jo as Ya,Ho as Za,_o as _a,Go as $a,on as ab,qo as bb,Vo as cb,Ko as db,Yo as eb,Qo as fb,sn as gb,an as hb,un as ib,Pe as jb,Xo as kb,ei as lb,ti as mb,ni as nb,cn as ob,ri as pb,oi as qb,Me as rb,Re as sb,st as tb,ln as ub,ai as vb,at as wb,ut as xb,ui as yb,ci as zb,fe as Ab,li as Bb,Ee as Cb,fn as Db,dn as Eb,Se as Fb,ct as Gb,fi as Hb,di as Ib,le as Jb,pi as Kb,gi as Lb,mi as Mb,ft as Nb,bi as Ob,Ti as Pb,dt as Qb,wi as Rb,pt as Sb,Li as Tb,gt as Ub,Ai as Vb,E as Wb,I as Xb,L as Yb,Mi as Zb,Ri as _b,Si as $b,Ui as ac,pn as bc,Ii as cc,Ci as dc,Oi as ec,mt as fc,ji as gc,zi as hc,Ni as ic,Gi as jc,qi as kc,Wi as lc,Ki as mc,Yi as nc,es as oc,xt as pc,X as qc,bt as rc,is as sc,ss as tc,as as uc,us as vc,cs as wc,ls as xc,fs as yc,ds as zc,Tt as Ac,wt as Bc,ys as Cc,xn as Dc,Ts as Ec,vs as Fc,Tn as Gc,Lt as Hc,Ds as Ic,Rs as Jc,Ss as Kc,Us as Lc,Fs as Mc,ks as Nc,Ue as Oc,Is as Pc,Cs as Qc,Os as Rc,$s as Sc,vn as Tc,_s as Uc,Fe as Vc,ya as Wc,Pn as Xc,ha as Yc,ke as Zc,Aa as _c,va as $c,Da as ad,Pa as bd,Ea as cd,Ua as dd,Fa as ed,M as fd,Ha as gd,_a as hd,za as id,vt as jd,qa as kd,Va as ld,Ce as md,Un as nd,Fn as od,kn as pd,In as qd,Cn as rd,On as sd,Bn as td,jn as ud,Hn as vd,Mt as wd,Xa as xd,eu as yd,zn as zd,tu as Ad,nu as Bd,H as Cd,St as Dd,Nn as Ed,ru as Fd,_ as Gd,ou as Hd,qn as Id,Vn as Jd,lu as Kd,$e as Ld,wu as Md,Lu as Nd,Du as Od,Ru as Pd,ge as Qd,ee as Rd,Iu as Sd,Be as Td,z as Ud,je as Vd,Ut as Wd,Vu as Xd,me as Yd,Xu as Zd,nc as _d,Wn as $d,kt as ae,uc as be,cc as ce,lc as de,fc as ee,Kn as fe,It as ge,Yn as he,gc as ie,Qn as je,Xn as ke,mc as le,yc as me,_e as ne};
12
+ //# sourceMappingURL=chunk-N5CWR6YO.js.map