zeed 0.13.21 → 0.13.22

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.
@@ -15,19 +15,19 @@ var Rt__default = /*#__PURE__*/_interopDefault(Rt);
15
15
  var cr__default = /*#__PURE__*/_interopDefault(cr);
16
16
  var as__default = /*#__PURE__*/_interopDefault(as);
17
17
 
18
- function Sr(){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")}function J(){let e=Sr();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}var ae=-1,xe=0,ue=1,Z=2,K=3,Ye=4,Qe=9007199254740991,zt={"*":-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:9007199254740991,"-":9007199254740991};function Pr(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967295}function F(){return typeof crypto<"u"?Pr():Math.random()}function ms(e=.25){return F()<e}function ys(e=100,t=0){return t+Math.floor(F()*(e-t))}function hs(e=100,t=0){return t+F()*(e-t)}function bs(e,t,n){return Math.max(e,Math.min(n,t))}function kr(e){return e.reduce((t,n)=>t+n,0)}function xs(e){return kr(e)/e.length}function ws(e){return !/^1?$|^(11+?)\1+$/.test("1".repeat(e))}function Ts(e){for(let t=2;t<e;t++)if(e%t===0)return !1;return e>1}var Xe=6;function Ls(e=0,t=1,n){Xe=((n??Xe)*9301+49297)%233280;let r=Xe/233280;return t+r*(e-t)}function Rr(e=""){let[t="",n="asc"]=e.split(" ");return n=n.toLowerCase(),{field:t,orderby:n,asc:n!=="desc",desc:n==="desc"}}function As(e,t=!0){return `${e} ${t?"asc":"desc"}`}function et(e,t,n=!0){let r=e||0,o=t||0;return r>o?n?1:-1:r<o?n?-1:1:0}function Cs(e,...t){if(t.length>0){let n=t.map(Rr),r=Array.from(e);return r.sort((o,i)=>{for(let{field:s,asc:a}of n){let u=et(o[s],i[s],a);if(u!==0)return u}return 0}),r}return e}function tt(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Ir(e,t){return tt(e.filter(n=>!t.includes(n)))}function Mr(...e){return tt(e.reduce((t=[],n)=>t.concat(n),[]))}function Y(...e){return e.flat(Number.POSITIVE_INFINITY)}function Br(e,t){return tt(e).filter(n=>t.includes(n))}function Fs(e,t){return Ir(Mr(e,t),Br(e,t))}function Gt(e,t){if(e&&Array.isArray(e)){let n;for(;(n=e.indexOf(t))!==-1;)e.splice(n,1);return e}return []}function Ss(e,t){return e.includes(t)||e.push(t),e}function nt(e,t){return e.splice(0,e.length,...e.filter(t)),e}function Ps(e,t){let n=e.findIndex(r=>r===t);return n>=0?e.splice(n,1):e.push(t),e}function ks(e){return e.splice(0,e.length),e}function Or(e,t=et){return Array.from(e).sort(t)}function Rs(e){return Or(e,(t,n)=>t-n)}function $r(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function Wt(e){return e.sort(()=>F()>.5?1:-1),e}function Is(e){return Wt(Array.from(e))}function Ms(e){for(;e.length>1;){let t=Array.from(e);if(Wt(t),!$r(e,t))return t}return e}function Bs(e){return e[Math.floor(F()*e.length)]}function Os(...e){return Y(e).reduce((t,n)=>t!=null?n>t?n:t:n,void 0)}function $s(...e){return Y(e).reduce((t,n)=>t!=null?n<t?n:t:n,void 0)}function _s(...e){return Y(e).reduce((t,n)=>t+n,0)}function Ns(...e){let t=Y(e);return t.reduce((n,r)=>n+r,0)/t.length}function js(e,t){let n=[],r=0,o=e.length;for(;r<o;)n.push(e.slice(r,r+=t));return n}function Hs(e=0,t){if(e<=0)return [];let n=Array.from({length:e});for(let r=0;r<e;r++)n[r]=t instanceof Function?t(r):t;return n}var _r=(e,t)=>t instanceof Object&&!Array.isArray(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):t;function zs(e,t=void 0){return JSON.stringify(e,_r,t)}function Nr(e,t){let n=[],r=[];return t==null&&(t=function(o,i){return n[0]===i?"[Circular ~]":`[Circular ~.${r.slice(0,n.indexOf(i)).join(".")}]`}),function(o,i){if(n.length>0){let s=n.indexOf(this);~s?n.splice(s+1):n.push(this),~s?r.splice(s,Number.POSITIVE_INFINITY,o):r.push(o),~n.indexOf(i)&&(i=t?.call(this,o,i));}else n.push(i);try{return e==null?i:e.call(this,o,i)}catch{}return String(i)}}function R(e,t,n,r){return JSON.stringify(e,Nr(t??void 0,r),n??void 0)}var Gs=R;function jr(e){let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.codePointAt(o)||0;return r}function Hr(e){let t=e.length,n="",r=0;for(;t>0;){let o=t<1e4?t:1e4,i=e.subarray(r,r+o);r+=o,n+=String.fromCodePoint.apply(null,i),t-=o;}return decodeURIComponent(escape(n))}var we;function qt(e){if(we==null&&(we=jr,typeof TextEncoder<"u")){let t=new TextEncoder;we=n=>t.encode(n);}return we(e.normalize("NFC"))}var Te;function Jt(e){if(Te==null&&(Te=Hr,typeof TextDecoder<"u")){let t=new TextDecoder("utf-8",{ignoreBOM:!0});Te=n=>t.decode(n);}return Te(e).normalize("NFC")}function v(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?qt(e):e.length?new Uint8Array(e):e}function Js(...e){let t=0,n=e.flat(1).map(i=>{let s=v(i);return t+=s.length,s}),r=new Uint8Array(t),o=0;for(let i of n)r.set(i,o),o+=i.length;return r}function Zt(e){if(typeof Buffer<"u")return Buffer.from(v(e)).toString("hex");let t="0123456789abcdef",n="";for(let r of [...v(e)])n+=t[r>>4]+t[r&15];return n}function Kt(e){return Uint8Array.from(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function ce(e,t=!1){let n=v(e),r="";if(typeof Buffer<"u")r=Buffer.from(n).toString("base64");else {let o="";for(let i=0;i<n.byteLength;i++)o+=String.fromCharCode(n[i]);r=btoa(o);}return t?r.replaceAll("=",""):r}function Zs(e){let t=v(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64url").replaceAll("=","");let n="";for(let r=0;r<t.byteLength;r++)n+=String.fromCharCode(t[r]);return btoa(n).replaceAll("+","-").replaceAll("/","_").replaceAll("=","")}function Le(e){if(e=e.replaceAll("-","+").replaceAll("_","/"),typeof Buffer<"u"){let r=Buffer.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function Ks(e){return Jt(Le(e))}function Yt(e,t){if(e.byteLength!==t.byteLength)return !1;let n=v(e),r=v(t);for(let o=0;o<n.length;o++)if(n[o]!==r[o])return !1;return !0}function rt(e){return qt(R(e))}function ot(e){return JSON.parse(Jt(e))}function Qt(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=[],r="0123456789ABCDEF";for(let o=0;o<e.length;o+=t){let i=e.slice(o,Math.min(o+t,e.length)),s=`0000${o.toString(16)}`.slice(-4),a=i.split("").map(c=>{let p=c.charCodeAt(0);return ` ${r[(240&p)>>4]}${r[15&p]}`}).join("");a+=" ".repeat(t-i.length);let u=i.replace(/[\x00-\x1F\x20\x7F-\xA0\xAD]/g,".");u+=" ".repeat(t-i.length),n.push(`${s} ${a} ${u}`);}return n.join(`
19
- `)}var Vr={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 zr(e){let t=Vr[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),l=p.charCodeAt(0);if(n[l]!==255)throw new TypeError(`${p} is ambiguous`);n[l]=c;}let r=t.length,o=t.charAt(0),i=Math.log(r)/Math.log(256),s=Math.log(256)/Math.log(r);function a(c,p=-1){let l=v(c);if(l.byteLength===0)return "";let f=0,d=0,g=l.byteLength;for(;d!==g&&l[d]===0;)d++;let y=(g-d)*s+1>>>0,x=new Uint8Array(y);for(;d!==g;){let A=l[d],E=0;for(let h=y-1;(A!==0||E<f)&&h!==-1;h--,E++)A+=256*x[h]>>>0,x[h]=A%r>>>0,A=A/r>>>0;if(A!==0)throw new Error("Non-zero carry");f=E,d++;}let m=y-f;for(;m!==y&&x[m]===0;)m++;let w="";for(;m<y;++m)w+=t.charAt(x[m]);return p>0?w.padStart(p,o):w}function u(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 l=0,f=0;for(;c[l]===o;)l++;let d=(c.length-l)*i+1>>>0,g=new Uint8Array(d);for(;c[l];){let x=n[c.charCodeAt(l)];if(x===255)throw new Error(`Unsupported character "${c[l]}"`);let m=0;for(let w=d-1;(x!==0||m<f)&&w!==-1;w--,m++)x+=r*g[w]>>>0,g[w]=x%256>>>0,x=x/256>>>0;if(x!==0)throw new Error("Non-zero carry");f=m,l++;}let y=d-f;for(;y!==d&&g[y]===0;)y++;return p>0?new Uint8Array([...new Uint8Array(p-g.length+y),...g.slice(y)]):g.slice(y)}return {encode:a,decode:u}}var ve;function N(e){ve==null&&(ve=new Map);function t(){let o=ve.get(e);return o==null&&(o=zr(e),ve.set(e,o)),o}function n(o,i=-1){return t().encode(o,i)}function r(o,i=-1){return t().decode(o,i)}return {encode:n,decode:r}}function it(e,t=-1){return N(32).encode(e,t)}function Xt(e,t=-1){return N(32).decode(e.toLocaleLowerCase().replaceAll("l","1").replaceAll("s","5").replaceAll("o","0").replaceAll("i","1"),t)}function Xs(e,t=-1){return N(16).encode(e,t)}function ea(e,t=-1){return N(16).decode(e,t)}function ta(e,t=-1){return N(58).encode(e,t)}function na(e,t=-1){return N(58).decode(e,t)}function st(e,t=-1){return N(62).encode(e,t)}function en(e,t=-1){return N(62).decode(e,t)}function ra(e,t){return Math.ceil(e*(Math.log(256)/Math.log(t)))}function tn(e){return 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}function Gr(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)}function ia(e){return e.replace(/\w\S*/g,Gr)}function sa(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()}var nn=["1","true","yes","y","on"];function ca(e,t=!1){return e==null||typeof e!="string"?t:nn.includes(String(e).trim().toLowerCase())}function la(e,t=0){return e==null||typeof e!="string"?t:Number.parseInt(e.trim(),10)??t}function fa(e,t=0){return e==null||typeof e!="string"?t:Number.parseFloat(e.trim())??t}function H(e,t=!1){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:nn.includes(String(e).trim().toLowerCase())}function Wr(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):Number.parseInt(String(e).trim(),10)??t}function qr(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):Number.parseFloat(String(e).trim())??t}function at(e,t=""){return e==null?t:String(e)??t}var pa=qr,da=Wr,ga=at,ma=H;function Jr(e,t={}){let{trace:n=!0,pretty:r=!0}=t;return e.map(o=>{if(o&&typeof o=="object"){if(r&&(o instanceof Uint8Array||o instanceof ArrayBuffer))return `
18
+ function Sr(){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")}function J(){let e=Sr();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}var ae=-1,xe=0,ue=1,Z=2,K=3,Ye=4,Qe=9007199254740991,zt={"*":-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:9007199254740991,"-":9007199254740991};function Pr(){return crypto.getRandomValues(new Uint32Array(1))[0]/4294967295}function F(){return typeof crypto<"u"?Pr():Math.random()}function ms(e=.25){return F()<e}function ys(e=100,t=0){return t+Math.floor(F()*(e-t))}function hs(e=100,t=0){return t+F()*(e-t)}function bs(e,t,n){return Math.max(e,Math.min(n,t))}function kr(e){return e.reduce((t,n)=>t+n,0)}function xs(e){return kr(e)/e.length}function ws(e){return !/^1?$|^(11+?)\1+$/.test("1".repeat(e))}function Ts(e){for(let t=2;t<e;t++)if(e%t===0)return !1;return e>1}var Xe=6;function Ls(e=0,t=1,n){Xe=((n??Xe)*9301+49297)%233280;let r=Xe/233280;return t+r*(e-t)}function Rr(e=""){let[t="",n="asc"]=e.split(" ");return n=n.toLowerCase(),{field:t,orderby:n,asc:n!=="desc",desc:n==="desc"}}function As(e,t=!0){return `${e} ${t?"asc":"desc"}`}function et(e,t,n=!0){let r=e||0,o=t||0;return r>o?n?1:-1:r<o?n?-1:1:0}function Cs(e,...t){if(t.length>0){let n=t.map(Rr),r=Array.from(e);return r.sort((o,i)=>{for(let{field:s,asc:a}of n){let u=et(o[s],i[s],a);if(u!==0)return u}return 0}),r}return e}function tt(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Ir(e,t){return tt(e.filter(n=>!t.includes(n)))}function Mr(...e){return tt(e.reduce((t=[],n)=>t.concat(n),[]))}function Y(...e){return e.flat(Number.POSITIVE_INFINITY)}function Br(e,t){return tt(e).filter(n=>t.includes(n))}function Fs(e,t){return Ir(Mr(e,t),Br(e,t))}function Gt(e,t){if(e&&Array.isArray(e)){let n;for(;(n=e.indexOf(t))!==-1;)e.splice(n,1);return e}return []}function Ss(e,t){return e.includes(t)||e.push(t),e}function nt(e,t){return e.splice(0,e.length,...e.filter(t)),e}function Ps(e,t){let n=e.findIndex(r=>r===t);return n>=0?e.splice(n,1):e.push(t),e}function ks(e){return e.splice(0,e.length),e}function Rs(e,t){return e.splice(0,e.length,...t),e}function Or(e,t=et){return Array.from(e).sort(t)}function Is(e){return Or(e,(t,n)=>t-n)}function $r(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function Wt(e){return e.sort(()=>F()>.5?1:-1),e}function Ms(e){return Wt(Array.from(e))}function Bs(e){for(;e.length>1;){let t=Array.from(e);if(Wt(t),!$r(e,t))return t}return e}function Os(e){return e[Math.floor(F()*e.length)]}function $s(...e){return Y(e).reduce((t,n)=>t!=null?n>t?n:t:n,void 0)}function _s(...e){return Y(e).reduce((t,n)=>t!=null?n<t?n:t:n,void 0)}function Ns(...e){return Y(e).reduce((t,n)=>t+n,0)}function js(...e){let t=Y(e);return t.reduce((n,r)=>n+r,0)/t.length}function Hs(e,t){let n=[],r=0,o=e.length;for(;r<o;)n.push(e.slice(r,r+=t));return n}function Vs(e=0,t){if(e<=0)return [];let n=Array.from({length:e});for(let r=0;r<e;r++)n[r]=t instanceof Function?t(r):t;return n}var _r=(e,t)=>t instanceof Object&&!Array.isArray(t)?Object.keys(t).sort().reduce((n,r)=>(n[r]=t[r],n),{}):t;function Gs(e,t=void 0){return JSON.stringify(e,_r,t)}function Nr(e,t){let n=[],r=[];return t==null&&(t=function(o,i){return n[0]===i?"[Circular ~]":`[Circular ~.${r.slice(0,n.indexOf(i)).join(".")}]`}),function(o,i){if(n.length>0){let s=n.indexOf(this);~s?n.splice(s+1):n.push(this),~s?r.splice(s,Number.POSITIVE_INFINITY,o):r.push(o),~n.indexOf(i)&&(i=t?.call(this,o,i));}else n.push(i);try{return e==null?i:e.call(this,o,i)}catch{}return String(i)}}function R(e,t,n,r){return JSON.stringify(e,Nr(t??void 0,r),n??void 0)}var Ws=R;function jr(e){let t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.codePointAt(o)||0;return r}function Hr(e){let t=e.length,n="",r=0;for(;t>0;){let o=t<1e4?t:1e4,i=e.subarray(r,r+o);r+=o,n+=String.fromCodePoint.apply(null,i),t-=o;}return decodeURIComponent(escape(n))}var we;function qt(e){if(we==null&&(we=jr,typeof TextEncoder<"u")){let t=new TextEncoder;we=n=>t.encode(n);}return we(e.normalize("NFC"))}var Te;function Jt(e){if(Te==null&&(Te=Hr,typeof TextDecoder<"u")){let t=new TextDecoder("utf-8",{ignoreBOM:!0});Te=n=>t.decode(n);}return Te(e).normalize("NFC")}function v(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?qt(e):e.length?new Uint8Array(e):e}function Zs(...e){let t=0,n=e.flat(1).map(i=>{let s=v(i);return t+=s.length,s}),r=new Uint8Array(t),o=0;for(let i of n)r.set(i,o),o+=i.length;return r}function Zt(e){if(typeof Buffer<"u")return Buffer.from(v(e)).toString("hex");let t="0123456789abcdef",n="";for(let r of [...v(e)])n+=t[r>>4]+t[r&15];return n}function Kt(e){return Uint8Array.from(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function ce(e,t=!1){let n=v(e),r="";if(typeof Buffer<"u")r=Buffer.from(n).toString("base64");else {let o="";for(let i=0;i<n.byteLength;i++)o+=String.fromCharCode(n[i]);r=btoa(o);}return t?r.replaceAll("=",""):r}function Ks(e){let t=v(e);if(typeof Buffer<"u")return Buffer.from(t).toString("base64url").replaceAll("=","");let n="";for(let r=0;r<t.byteLength;r++)n+=String.fromCharCode(t[r]);return btoa(n).replaceAll("+","-").replaceAll("/","_").replaceAll("=","")}function Le(e){if(e=e.replaceAll("-","+").replaceAll("_","/"),typeof Buffer<"u"){let r=Buffer.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function Ys(e){return Jt(Le(e))}function Yt(e,t){if(e.byteLength!==t.byteLength)return !1;let n=v(e),r=v(t);for(let o=0;o<n.length;o++)if(n[o]!==r[o])return !1;return !0}function rt(e){return qt(R(e))}function ot(e){return JSON.parse(Jt(e))}function Qt(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=[],r="0123456789ABCDEF";for(let o=0;o<e.length;o+=t){let i=e.slice(o,Math.min(o+t,e.length)),s=`0000${o.toString(16)}`.slice(-4),a=i.split("").map(c=>{let p=c.charCodeAt(0);return ` ${r[(240&p)>>4]}${r[15&p]}`}).join("");a+=" ".repeat(t-i.length);let u=i.replace(/[\x00-\x1F\x20\x7F-\xA0\xAD]/g,".");u+=" ".repeat(t-i.length),n.push(`${s} ${a} ${u}`);}return n.join(`
19
+ `)}var Vr={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 zr(e){let t=Vr[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),l=p.charCodeAt(0);if(n[l]!==255)throw new TypeError(`${p} is ambiguous`);n[l]=c;}let r=t.length,o=t.charAt(0),i=Math.log(r)/Math.log(256),s=Math.log(256)/Math.log(r);function a(c,p=-1){let l=v(c);if(l.byteLength===0)return "";let f=0,d=0,g=l.byteLength;for(;d!==g&&l[d]===0;)d++;let y=(g-d)*s+1>>>0,x=new Uint8Array(y);for(;d!==g;){let A=l[d],E=0;for(let h=y-1;(A!==0||E<f)&&h!==-1;h--,E++)A+=256*x[h]>>>0,x[h]=A%r>>>0,A=A/r>>>0;if(A!==0)throw new Error("Non-zero carry");f=E,d++;}let m=y-f;for(;m!==y&&x[m]===0;)m++;let w="";for(;m<y;++m)w+=t.charAt(x[m]);return p>0?w.padStart(p,o):w}function u(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 l=0,f=0;for(;c[l]===o;)l++;let d=(c.length-l)*i+1>>>0,g=new Uint8Array(d);for(;c[l];){let x=n[c.charCodeAt(l)];if(x===255)throw new Error(`Unsupported character "${c[l]}"`);let m=0;for(let w=d-1;(x!==0||m<f)&&w!==-1;w--,m++)x+=r*g[w]>>>0,g[w]=x%256>>>0,x=x/256>>>0;if(x!==0)throw new Error("Non-zero carry");f=m,l++;}let y=d-f;for(;y!==d&&g[y]===0;)y++;return p>0?new Uint8Array([...new Uint8Array(p-g.length+y),...g.slice(y)]):g.slice(y)}return {encode:a,decode:u}}var ve;function N(e){ve==null&&(ve=new Map);function t(){let o=ve.get(e);return o==null&&(o=zr(e),ve.set(e,o)),o}function n(o,i=-1){return t().encode(o,i)}function r(o,i=-1){return t().decode(o,i)}return {encode:n,decode:r}}function it(e,t=-1){return N(32).encode(e,t)}function Xt(e,t=-1){return N(32).decode(e.toLocaleLowerCase().replaceAll("l","1").replaceAll("s","5").replaceAll("o","0").replaceAll("i","1"),t)}function ea(e,t=-1){return N(16).encode(e,t)}function ta(e,t=-1){return N(16).decode(e,t)}function na(e,t=-1){return N(58).encode(e,t)}function ra(e,t=-1){return N(58).decode(e,t)}function st(e,t=-1){return N(62).encode(e,t)}function en(e,t=-1){return N(62).decode(e,t)}function oa(e,t){return Math.ceil(e*(Math.log(256)/Math.log(t)))}function tn(e){return 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}function Gr(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)}function sa(e){return e.replace(/\w\S*/g,Gr)}function aa(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()}var nn=["1","true","yes","y","on"];function la(e,t=!1){return e==null||typeof e!="string"?t:nn.includes(String(e).trim().toLowerCase())}function fa(e,t=0){return e==null||typeof e!="string"?t:Number.parseInt(e.trim(),10)??t}function pa(e,t=0){return e==null||typeof e!="string"?t:Number.parseFloat(e.trim())??t}function H(e,t=!1){return e==null?t:typeof e=="boolean"?e:typeof e=="number"?e!==0:nn.includes(String(e).trim().toLowerCase())}function Wr(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):Number.parseInt(String(e).trim(),10)??t}function qr(e,t=0){return e==null?t:typeof e=="boolean"?e?1:0:typeof e=="number"?Math.floor(e):Number.parseFloat(String(e).trim())??t}function at(e,t=""){return e==null?t:String(e)??t}var da=qr,ga=Wr,ma=at,ya=H;function Jr(e,t={}){let{trace:n=!0,pretty:r=!0}=t;return e.map(o=>{if(o&&typeof o=="object"){if(r&&(o instanceof Uint8Array||o instanceof ArrayBuffer))return `
20
20
  ${Qt(o)}
21
21
  `;if(o instanceof Error)return n?`${o.name||"Error"}: ${o.message}
22
- ${o.stack}`:`${o.name||"Error"}: ${o.message}`;try{return r?JSON.stringify(o,null,2):JSON.stringify(o)}catch{}}return String(o)})}function Ae(e,t={}){return Jr(e,t).join(" ")}function ya(e){try{return decodeURIComponent(escape(e))}catch{}return e}function xa(e){if(e.startsWith("data:"))return Le(e.split(",",2)[1])}function wa(e){if(e.startsWith("data:"))return e.slice(5).split(",",2)[0]}function Ta(e){if(e.startsWith("data:")){let[t,n]=e.slice(5).split(",",2);return new Blob([Le(n)],{type:t})}}async function La(e){let t=await e.arrayBuffer();if(t)return `data:${e.type},${ce(t)}`}function va(e,t="application/octet-stream"){return `data:${t},${ce(e)}`}function rn(){let e,t;return [new Promise((r,o)=>{e=r,t=o;}),e,t]}async function Ca(e){return new Promise(t=>setTimeout(t,e))}async function Ea(){return new Promise(e=>setTimeout(e,0))}async function Ua(e,t,n="timeoutReached"){return new Promise(async(r,o)=>{let i=!1,s=setTimeout(()=>{i=!0,r(n);},t);try{let a=await e;clearTimeout(s),i||r(a);}catch(a){clearTimeout(s),i||o(a);}})}function Da(e){return e==="timeoutReached"||e?.name==="Timeout reached"}async function on(e,t){return t<=0?await e:new Promise(async(n,r)=>{let o=!1,i=setTimeout(()=>{o=!0,r(new Error("Timeout reached"));},t);try{let s=await e;clearTimeout(i),o||n(s);}catch(s){clearTimeout(i),o||r(s);}})}function Fa(e,t,n=1e3){return new Promise((r,o)=>{let i=u=>{a&&(clearTimeout(a),s(),r(u));},s=()=>{a=null,e.off?e.off(t,i):e.removeEventListener&&e.removeEventListener(t,i);},a=setTimeout(()=>{s(),o(new Error("Did not response in time"));},n);e.on?e.on(t,i):e.addEventListener&&e.addEventListener(t,i);})}function P(e){return !!(e&&(e instanceof Promise||typeof e.then=="function"))}function V(e){return Promise.resolve(e)}var sn=864e5;function ct(e){return Math.floor(e/1e4)}function an(e){return Math.floor(e/100%100)}function Zr(e){return Math.floor(e%100)}function Pa(e){return [ct(e),an(e),Zr(e)]}function un(e,t=!1){return t?new Date(`${Yr(e)}T00:00:00.000Z`):new Date(e/1e4,e/100%100-1,e%100)}function cn(){return Ee(new Date)}function ka(e,t=!1){if(typeof e=="number")return e<100?void 0:e;if(typeof e=="string")return ln(e);if(Array.isArray(e)&&e.length===3){let[n,r,o]=e;return lt(n,r,o)}else if(e instanceof Date)return Ee(e,t)}function Ra(e){return un(e,!0)}function Ee(e,t=!1){return t?ln(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}function Ia(e){return Ee(e,!0)}function ut(e,t=!0){return un(e,t).getTime()}function Kr(e,t=!0){return Ee(new Date(e),t)}function Yr(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}function lt(e,t=1,n=1){if(!(t<1||t>12||n<1||n>31))return e*1e4+t*100+n}function ln(e){let t=String(e).replace(/[^0-9]/g,"").slice(0,8);if(t.length===8)return +t}function Ma(e,t=0){let n=ct(e),r=an(e);return t!==0&&(r+=t,n+=Math.floor((r-1)/12),r=Math.floor((r-1)%12)+1,r===0&&(r=12)),lt(n,r,1)}function Ba(e,t=0){let n=ct(e);return lt(n+t,1,1)}function Ce(e,t){return Kr(ut(e)+t*864e5)}function Oa(e,t){return Math.round((ut(t)-ut(e))/864e5)}function $a(e,t){let n=[];for(t==null&&(t=cn()),e<0&&(e=Ce(t,e+1));e<=t;)n.push(e),e=Ce(e,1);return n}function*_a(e,t){let n=[];for(t==null&&(t=cn()),e<0&&(e=Ce(t,e+1));e<=t;)yield e,e=Ce(e,1);return n}var z=class e{get value(){return this.days}constructor(t){if(typeof t=="number"){this.days=t;return}if(t!=null&&(t=e.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 e(t)}static fromString(t){return e.from(+t.replace(/[^0-9]/g,"").slice(0,8))}static fromDate(t,n=!1){return n?e.fromString(t.toISOString().substr(0,10)):e.from(t.getFullYear()*1e4+(t.getMonth()+1)*100+t.getDate())}static fromDateGMT(t){return e.fromDate(t,!0)}static from(t,n=!1){if(typeof t=="number")return t<100?void 0:new e(t);if(typeof t=="string")return e.fromString(t);if(Array.isArray(t)&&t.length===3){let[r,o=1,i=1]=t;return o<1||o>12||i<1||i>31?void 0:new e(r*1e4+o*100+i)}else {if(t instanceof Date)return e.fromDate(t,n);if(t instanceof e)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 e.fromDateGMT(new Date(this.toDateGMT().getTime()+t*864e5))}monthStart(){return e.from([this.year,this.month,1])}yearStart(){return e.from([this.year,1,1])}monthOffset(t){let n=this.month+t,r=Math.floor((n-1)%12)+1;r===0&&(r=12);let o=Math.floor((n-1)/12);return e.from([this.year+o,r,this.day])}daysUntil(t){return Math.round((new e(t)?.toDateGMT().getTime()-this.toDateGMT().getTime())/864e5)}yesterday(){return this.dayOffset(-1)}tomorrow(){return this.dayOffset(1)}};async function Ha(e,t,n){let r=z.from(e),o=z.from(t);for(;r&&o&&r?.days<=o?.days;){let i=n(r);P(i)&&await i,r=r.dayOffset(1);}}function Va(){return new z}function za(e){return new z(e)}function Ga(e){return z.fromDate(new Date(e)).days}function Qr(e,t=2){return +(+e).toFixed(t)}function qa(e,t=2){return +(+e/10**t).toFixed(t)}function Ja(e,t=2){return Math.round(+e*10**t)}function Za(e,t=2){return t*(Qr(e,t)%1)}function Qa(e,t,n){let r=e[t];return r===void 0&&(r=n(t,e),e[t]=r),r}async function Xa(e,t,n){let r=e[t];return r===void 0&&(r=await n(t,e),e[t]=r),r}function fn(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}function eu(e){return e!=null&&e.length>0?e[0]:void 0}function tu(e){return e!=null&&e.length>0?e[e.length-1]:void 0}function nu(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}function Q(e){return Object(e)!==e?e:JSON.parse(R(e))}function ru(e){return Object(e)!==e?e:JSON.parse(R(e))}function ou(e){let t=new Map;return n=>{if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}function iu(e){let t=new Map;return async(...n)=>{let r=R(n);if(t.has(r))return t.get(r);let o=await e(...n);return t.set(r,o),o}}function su(e,t){let n=[];for(let r=0;r<e;r++)n.push(t(r,e));return n}function B(e){return e!=null&&typeof e=="object"}function ft(e){return Object(e)!==e}function $(e){return Array.isArray(e)}function Ue(e){return B(e)&&!$(e)}function cu(e){return e?.constructor===Object}function De(e){return typeof e=="string"}function pn(e){return typeof e=="number"&&!Number.isNaN(e)}function lu(e){return pn(e)&&Number.isInteger(e)}function fu(e){return pn(e)&&Number.isSafeInteger(e)}function dn(e){return typeof e=="boolean"}function pu(e){return e==null}function du(e){return e==null}function gu(e){return B(e)&&e.constructor.name==="Uint8Array"}function gn(e){return e!=null}function Xr(e){return e==null||e===""||B(e)&&fn(e)<=0}function mu(e){return !Xr(e)}function yu(e){return e!=null&&e!==!1&&e!==!0}function hu(e){return e!=null&&e!==!1&&e!==0&&e!==""}function eo(e,t,n=new WeakSet){if(e===t)return !0;if(n.has(t)||(ft(t)||n.add(t),!(e instanceof Object)||!(t instanceof Object))||e.constructor!==t.constructor||e.length!==t.length)return !1;for(let r in e){if(!e.hasOwnProperty(r))continue;if(!t.hasOwnProperty(r))return !1;let o=e[r],i=t[r];if(!eo(o,i,n))return !1}for(let r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return !1;return !0}function to(e,t=new WeakSet){if(t.has(e))return "[Circular ~]";if(ft(e)||t.add(e),Ue(e)){for(let n in e)if(e.hasOwnProperty(n)){if(e[n]===void 0){delete e[n];continue}to(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}function Fe(e,...t){for(let n of t)B(e)||(e={}),!(n==null||!B(n))&&Object.keys(n).forEach(r=>{let o=e[r],i=n[r];Array.isArray(o)&&Array.isArray(i)?e[r]=o.concat(i):B(o)&&B(i)?e[r]=Fe(Object.assign({},o),i):e[r]=i;});return e}function no(e,t,n={cyclesFix:!0},r=[]){let o=[],i=Array.isArray(e);for(let a in e){let u=e[a],c=i?+a:a;if(!(a in t)){o.push({type:"del",path:[c]});continue}let p=t[a],l=typeof u=="object"&&typeof p=="object";if(u&&p&&l&&!["Date","RegExp","String","Number"].includes(Object.getPrototypeOf(u).constructor.name)&&(!n.cyclesFix||!r.includes(u))){let f=no(u,p,n,n.cyclesFix?r.concat([u]):[]);o=[...o,...f.map(d=>(d.path.unshift(c),d))];}else u!==p&&!(l&&(Number.isNaN(u)?`${u}`==`${p}`:+u==+p))&&o.push({path:[c],type:"upd",value:p});}let s=Array.isArray(t);for(let a in t)a in e||o.push({type:"new",path:[s?+a:a],value:t[a]});return o}function mn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")}function Lu(e){return e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&amp;/gi,"&")}function Au(e,t,n=[]){return e.filter(r=>!t.some(o=>!o(r))).map(r=>{for(let o of n)r=o(r);return r}).filter(r=>r!=null)}function Cu(e,t){return e.reduce((n,r)=>{let o=String(r[t]);return (n[o]=n[o]||[]).push(r),n},{})}function Eu(e,t){return Array.from(e.reduce((n,r)=>n.add(r[t]),new Set))}function Uu(e,t){return e.map(n=>n[t])}function Su(e,t){return B(e)?Object.fromEntries(Object.entries(e).map(([n,r])=>{let o=t(n,r);return $(o)&&o.length===2?o:[n,o]}).filter(n=>n!=null)):{}}function Pu(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}function ku(e){return Object.keys(e).length<=0}var ro=/[\\\-\[\]\/{}()*+?.^$|]/g;function Se(e){return e?e instanceof RegExp?e.source:e.replace(ro,"\\$&"):""}var oo=100,io=/^\.+/,so=/\.+$/,ao=/[<>:\"/\\|?*\u0000-\u001F\u0080-\u009F]+/gm;function yn(){return ao}function uo(){return /^(con|prn|aux|nul|com\d|lpt\d)$/i}function hn(e,t="_"){if(typeof e!="string")throw new TypeError("Expected a string");if(yn().test(t))throw new Error("Replacement string cannot contain reserved filename characters");let n=`(${Se(t)})+`;return e=e.replace(yn(),t).replace(io,t).replace(so,"").replace(new RegExp(n,"gm"),t).trim(),e=uo().test(e)?e+t:e,e.slice(0,oo)}function le(e){return Math.abs(e)%1===.5}function bn(e){return e%2===0}var Ou=e=>Math.ceil(e),$u=e=>Math.floor(e),_u=e=>Math.round(e),Nu=e=>{let t=Math.round(e);return le(e)&&bn(t)?t-1:t},ju=e=>le(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),Hu=e=>le(e)?Math.floor(e):Math.round(e),Vu=e=>{let t=Math.round(e);return le(e)?bn(t)?t:t-1:t},zu=e=>le(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e);function xn(e){return e.reduce((t,n)=>Math.min(t,n.sort_weight||0),0)-1-F()}function wn(e){return e.reduce((t,n)=>Math.max(t,n.sort_weight||0),0)+1+F()}function qu(e,t,n){let r=n.length,o=e<t;if(r<=0||e>=r-1)return wn(n);if(e<=0)return xn(n);n=co([...n]);let i=o?-1:0,s=n[e+i].sort_weight||0,u=(n[e+i+1].sort_weight||0)-s;if(u===0)return o?xn(n):wn(n);let c=s+u/2,p=u*.01*(F()-.5);return c+p}function co(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}function Ku(e={}){let{getter:t=a=>a.sort}=e;function n(a){return a.sort((u,c)=>(t(u)||0)-(t(c)||0)),a}function r(a){return a.reduce((u,c)=>Math.min(u,t(c)||0),0)-1-F()}function o(a){return a.reduce((u,c)=>Math.max(u,t(c)||0),0)+1+F()}function i(a,u){a==null&&(a=(u??0)-1),u==null&&(u=(a??0)+1);let c=u-a,p=a+c/2,l=c*.01*(F()-.5);return p+l}function s(a,u,c){let p=c.length,l=a<u;if(p<=0||a>=p-1)return o(c);if(a<=0)return r(c);c=n([...c]);let f=l?-1:0,d=t(c[a+f])||0,y=(t(c[a+f+1])||0)-d;if(y===0)return l?r(c):o(c);let x=d+y/2,m=y*.01*(F()-.5);return x+m}return {start:r,end:o,between:i,move:s,items:n}}function lo(e){return t=>e?.[t]}var fo={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},po=lo(fo),go=/[\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0100-\u017F]/g,mo="\\u0300-\\u036f",yo="\\ufe20-\\ufe2f",ho="\\u20d0-\\u20ff",bo="\\u1ab0-\\u1aff",xo="\\u1dc0-\\u1dff",wo=mo+yo+ho+bo+xo,To=`[${wo}]`,Lo=RegExp(To,"g");function Tn(e){return e&&e.replace(go,po).replace(Lo,"")}var vo=/((?:(?:(?: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 ec(e){return e.split(vo).map((t,n)=>{let r=mn(t);return n%2?`<a target="_blank" href="${r}">${Ao(r)}</a>`:r}).join("")}function Ao(e){return e.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")}function Ln(e,t){let n=[];for(let[r,o]of Object.entries(e))if(o!=null){Array.isArray(o)||(o=[o]);for(let i of o)t&&!t(i)||i!=null&&n.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`);}return n.join("&")}function tc(e){let t={},n=(e[0]==="?"?e.substr(1):e).split("&");for(let r=0;r<n.length;r++){let o=n[r].split("="),i=decodeURIComponent(o[0]),s=decodeURIComponent(o[1]||"");t[i]!=null?(Array.isArray(t[i])||(t[i]=[t[i]]),t[i].push(s)):t[i]=s;}return t}var vn=["aardvark","absurd","accrue","acme","adrift","adult","afflict","ahead","aimless","Algol","allow","alone","ammo","ancient","apple","artist","assume","Athens","atlas","Aztec","baboon","backfield","backward","basalt","beaming","bedlamp","beehive","beeswax","befriend","Belfast","berserk","billiard","bison","blackjack","blockade","blowtorch","bluebird","bombast","bookshelf","brackish","breadline","breakup","brickyard","briefcase","Burbank","button","buzzard","cement","chairlift","chatter","checkup","chisel","choking","chopper","Christmas","clamshell","classic","classroom","cleanup","clockwork","cobra","commence","concert","cowbell","crackdown","cranky","crowfoot","crucial","crumpled","crusade","cubic","deadbolt","deckhand","dogsled","dosage","dragnet","drainage","dreadful","drifter","dropper","drumbeat","drunken","Dupont","dwelling","eating","edict","egghead","eightball","endorse","endow","enlist","erase","escape","exceed","eyeglass","eyetooth","facial","fallout","flagpole","flatfoot","flytrap","fracture","fragile","framework","freedom","frighten","gazelle","Geiger","Glasgow","glitter","glucose","goggles","goldfish","gremlin","guidance","hamlet","highchair","hockey","hotdog","indoors","indulge","inverse","involve","island","Janus","jawbone","keyboard","kickoff","kiwi","klaxon","lockup","merit","minnow","miser","Mohawk","mural","music","Neptune","newborn","nightbird","obtuse","offload","oilfield","optic","orca","payday","peachy","pheasant","physique","playhouse","Pluto","preclude","prefer","preshrunk","printer","profile","prowler","pupil","puppy","python","quadrant","quiver","quota","ragtime","ratchet","rebirth","reform","regain","reindeer","rematch","repay","retouch","revenge","reward","rhythm","ringbolt","robust","rocker","ruffled","sawdust","scallion","scenic","scorecard","Scotland","seabird","select","sentence","shadow","showgirl","skullcap","skydive","slingshot","slothful","slowdown","snapline","snapshot","snowcap","snowslide","solo","spaniel","spearhead","spellbind","spheroid","spigot","spindle","spoilage","spyglass","stagehand","stagnate","stairway","standard","stapler","steamship","stepchild","sterling","stockman","stopwatch","stormy","sugar","surmount","suspense","swelter","tactics","talon","tapeworm","tempest","tiger","tissue","tonic","tracker","transit","trauma","treadmill","Trojan","trouble","tumor","tunnel","tycoon","umpire","uncut","unearth","unwind","uproot","upset","upshot","vapor","village","virus","Vulcan","waffle","wallet","watchword","wayside","willow","woodlark","Zulu"],An=["adroitness","adviser","aggregate","alkali","almighty","amulet","amusement","antenna","applicant","Apollo","armistice","article","asteroid","Atlantic","atmosphere","autopsy","Babylon","backwater","barbecue","belowground","bifocals","bodyguard","borderline","bottomless","Bradbury","Brazilian","breakaway","Burlington","businessman","butterfat","Camelot","candidate","cannonball","Capricorn","caravan","caretaker","celebrate","cellulose","certify","chambermaid","Cherokee","Chicago","clergyman","coherence","combustion","commando","company","component","concurrent","confidence","conformist","congregate","consensus","consulting","corporate","corrosion","councilman","crossover","cumbersome","customer","Dakota","decadence","December","decimal","designing","detector","detergent","determine","dictator","dinosaur","direction","disable","disbelief","disruptive","distortion","divisive","document","embezzle","enchanting","enrollment","enterprise","equation","equipment","escapade","Eskimo","everyday","examine","existence","exodus","fascinate","filament","finicky","forever","fortitude","frequency","gadgetry","Galveston","getaway","glossary","gossamer","graduate","gravity","guitarist","hamburger","Hamilton","handiwork","hazardous","headwaters","hemisphere","hesitate","hideaway","holiness","hurricane","hydraulic","impartial","impetus","inception","indigo","inertia","infancy","inferno","informant","insincere","insurgent","integrate","intention","inventive","Istanbul","Jamaica","Jupiter","leprosy","letterhead","liberty","maritime","matchmaker","maverick","Medusa","megaton","microscope","microwave","midsummer","millionaire","miracle","misnomer","molasses","molecule","Montana","monument","mosquito","narrative","nebula","newsletter","Norwegian","October","Ohio","onlooker","opulent","Orlando","outfielder","Pacific","pandemic","pandora","paperweight","paragon","paragraph","paramount","passenger","pedigree","Pegasus","penetrate","perceptive","performance","pharmacy","phonetic","photograph","pioneer","pocketful","politeness","positive","potato","processor","prophecy","provincial","proximate","puberty","publisher","pyramid","quantity","racketeer","rebellion","recipe","recover","repellent","replica","reproduce","resistor","responsive","retraction","retrieval","retrospect","revenue","revival","revolver","Sahara","sandalwood","sardonic","Saturday","savagery","scavenger","sensation","sociable","souvenir","specialist","speculate","stethoscope","stupendous","supportive","surrender","suspicious","sympathy","tambourine","telephone","therapist","tobacco","tolerance","tomorrow","torpedo","tradition","travesty","trombonist","truncated","typewriter","ultimate","undaunted","underfoot","unicorn","unify","universe","unravel","upcoming","vacancy","vagabond","versatile","vertigo","Virginia","visitor","vocalist","voyager","warranty","Waterloo","whimsical","Wichita","Wilmington","Wyoming","yesteryear","Yucatan"];function ic(e,t=" ",n=" "){return Array.from(e).map((r,o)=>o%2?An[r]+n:vn[r]+t).join("").slice(0,-(e.length%2?t:n).length)}function sc(e){return v(e.map((t,n)=>(n%2?An:vn).findIndex(r=>r.toLocaleLowerCase()===Tn(t).toLocaleLowerCase().trim())))}var Co=/\\\s|\s+|#[^\n]*\n?/gm,Eo=/\(\?P?<(\w[\w\d_]+)>|\((?!\?(:|\!|=|<=|<\!))/gm,Cn=/^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*?)\)/gm;function Uo(e){return typeof e=="string"?e:e.source||""}function uc(e){return e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var En=class{constructor(t,n){this.namedGroups={};this.names=[];let r=n??"",o;if(t instanceof RegExp?(n==null&&(r=t.flags),o=t.source):o=t,r&&r.includes("x")&&(r=r.replace("x",""),o=o.replace(Co,a=>a[0]==="\\"?a:"")),!(t instanceof RegExp)){let a=0;o=o.replace(Eo,(u,c)=>(a+=1,c?(c!=="index"&&c!=="length"&&!this.namedGroups[c]&&(this.namedGroups[c]=a),"("):u)),this.names=Object.keys(this.namedGroups);}o=Uo(o),Cn.lastIndex=0;let s=Cn.exec(o);s&&(this.lookBehind={rx:new RegExp(`${s[3]}$(?!\\s)`),expect:s?s[2]==="=":!s},o=o.substr(s[0].length)),this.rx=new RegExp(o,r);}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=[],r;for(this.rx.lastIndex=0;r=this.exec(t);)n.push(r);return this.rx.lastIndex=0,n}replace(t,n){let r=typeof n=="function"?n:()=>n;return t.replace(this.rx,o=>r(o))}};function Do(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}function Fo(){return Do(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*")}function O(e=Fo()){let t,n=[],r=[];if(!e)t=function(o){return !1};else if(e==="*")t=function(o){return !0};else {let o,i=e.split(/[\s,]+/),s=i.length;for(o=0;o<s;o++){if(!i[o])continue;let a=i[o].replace(/\*/g,".*?");a[0]==="-"?n.push(new RegExp(`^${a.substr(1)}`)):r.push(new RegExp(`^${a}`));}t=function(a){if(n.length===0&&r.length===0)return !0;let u,c;for(u=0,c=n.length;u<c;u++)if(n[u].test(a))return !1;for(u=0,c=r.length;u<c;u++)if(r[u].test(a))return !0;return !1};}return t.accept=r,t.reject=n,t.filter=e,t}function So(){return 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 pt(e){if(e===!1)return 9007199254740991;if(typeof e=="number")return e;if(typeof e=="string"){let t=zt[e.toLocaleLowerCase().trim()];if(t!=null)return t}return -1}function j(e=So()){let t=pt(e);return n=>n>=t}function fe(...e){return De(e[1])?[`${String(e[0])} ${String(e[1])}`,...e.slice(2)]:e}function Pe(e={}){let{level:t=void 0,filter:n=void 0}=e,r=O(n),o=j(t);return i=>{if(!o(i.level)||!r(i.name))return;let s=i.name?`[${i.name}]`:"";switch(i.level){case 1:console.info(...fe(`I|* ${s}`,...i.messages));break;case 2:console.warn(...fe(`W|** ${s}`,...i.messages));break;case 3:console.error(...fe(`E|*** ${s}`,...i.messages));break;default:console.debug(...fe(`D| ${s}`,...i.messages));break}}}function Un(e=""){let t=[Pe()],n=u=>!0,r=!1,o=s,i=!1;function s(u="",c){let p=pt(c??-1);function l(g,y){return p<=g?y:()=>{}}let f=l(0,(...g)=>{d({name:u,messages:g,level:0});});f.label=u,f.extend=function(g){return o(u?`${u}:${g}`:g)};let d=g=>{if(n(u))for(let y of t)y&&y(g);};return f.debug=l(0,(...g)=>{d({name:u,messages:g,level:0});}),f.info=l(1,(...g)=>{d({name:u,messages:g,level:1});}),f.warn=l(2,(...g)=>{d({name:u,messages:g,level:2});}),f.error=l(3,(...g)=>{d({name:u,messages:g,level:3});}),f.fatal=l(4,(...g)=>{throw d({name:u,messages:g,level:4}),new Error(`${g.map(String).join(" ")}`)}),f.assert=l(4,(g,...y)=>{(g==null||typeof g=="number"&&Number.isNaN(g)||!g)&&f.fatal(...y);}),f}function a(u="",c){let p=o(u,c);return i&&p.debug(`+++ init of logger "${u}" on level "${p.level}".`),p}return a.registerHandler=function(u){t.push(u);},a.setFilter=function(u){n=O(u);},a.setLock=(u=!0)=>r=u,a.setDebug=(u=!0)=>i=u,a.setHandlers=function(u=[]){o!==s&&(o=s),!r&&(t=[...u].filter(c=>typeof c=="function"));},a.level=-1,a.setLogLevel=function(u=-1){r||(a.level=u);},a.setFactory=function(u){r||(o=u);},a}var _;function dt(e){let t=Un();return e?e(t):t.setHandlers([Pe()]),t}function gt(e){if(_==null)try{let t=J();t!=null?t?.logger==null?(_=dt(e),t.logger=_):_=t.logger:_=dt(e);}catch{_=dt(e);}return _}function Dn(){if(_!=null)return _;try{let e=J();if(e?.logger!=null)return e.logger}catch{}}function k(e,t){return gt()(e,t)}var Fn=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Lc(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Fn[Math.abs(t)%Fn.length]}function G(){return Date.now()}function mt(e){return e>999?`${(e/1e3).toFixed(1)} s`:`${e.toFixed(2)} ms`}function Ac(...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 r=/(\d\d\d\d)-(\d\d)-(\d\d)/.exec(t);r&&(n=new Date(+r[1],+r[2]-1,+r[3],12,0));}if(n instanceof Date)return n}}}function Sn(){return typeof performance<"u"?performance.now():Date.now()}function Cc(){let e=Sn();return function(){let t=Sn()-e;return mt(t)}}function Fc(e){let{level:t=void 0,filter:n=void 0,messages:r=[]}=e,o=O(n),i=j(t);return s=>{i(s.level)&&o(s.name)&&(s.timestamp=G(),r.push(s));}}function Po(...e){throw Dn()?.("assert")?.fatal(...e),new Error(`${e.map(String).join(" ")}`)}function ko(e,...t){(e==null||typeof e=="number"&&Number.isNaN(e)||!e)&&Po(...t);}function Pn(e,...t){ko(e,...t);}function pe(e,t,n){return new Uint8Array(e,t,n)}var X;function Rn(){return X===void 0&&(X=(typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}))??null,X&&X.decode(new Uint8Array).length===1&&(X=null)),X}var yt=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[];}};function Be(){return new yt}function ht(e){let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t}function Oe(e){let t=new Uint8Array(ht(e)),n=0;for(let r=0;r<e.bufs.length;r++){let o=e.bufs[r];t.set(o,n),n+=o.length;}return t.set(pe(e.cbuf.buffer,0,e.cpos),n),t}function Mo(e,t){let n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(pe(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(Math.max(n,t)*2),e.cpos=0);}function U(e,t){let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t;}var On=U;function $n(e,t){U(e,t&255),U(e,t>>>8&255);}function _n(e,t){for(let n=0;n<4;n++)U(e,t&255),t>>>=8;}function W(e,t){for(;t>127;)U(e,128|127&t),t=Math.floor(t/128);U(e,127&t);}function Bo(e){return e!==0?e<0:1/e<0}function bt(e,t){let n=Bo(t);for(n&&(t=-t),U(e,(t>63?128:0)|(n?64:0)|63&t),t=Math.floor(t/64);t>0;)U(e,(t>127?128:0)|127&t),t=Math.floor(t/128);}function $e(e,t){let n=e.cbuf.length,r=e.cpos,o=Math.min(n-r,t.length),i=t.length-o;e.cbuf.set(t.subarray(0,o),r),e.cpos+=o,i>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Math.max(n*2,i)),e.cbuf.set(t.subarray(o)),e.cpos=i);}function _e(e,t){W(e,t.byteLength),$e(e,t);}function $o(e,t){let n=unescape(encodeURIComponent(t)),r=n.length;W(e,r);for(let o=0;o<r;o++)U(e,n.codePointAt(o));}function Me(e,t){return $o(e,t)}function xt(e,t){Mo(e,t);let n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n}function wt(e,t){return xt(e,4).setFloat32(0,t,!1)}function _o(e,t){return xt(e,8).setFloat64(0,t,!1)}function No(e,t){return xt(e,8).setBigInt64(0,t,!1)}var Ie;function jo(e){return Ie==null&&(Ie=new DataView(new ArrayBuffer(4))),Ie.setFloat32(0,e),Ie.getFloat32(0)===e}function te(e,t){switch(typeof t){case"string":U(e,119),Me(e,t);break;case"number":Number.isInteger(t)&&Math.abs(t)<=2147483647?(U(e,125),bt(e,t)):jo(t)?(U(e,124),wt(e,t)):(U(e,123),_o(e,t));break;case"bigint":U(e,122),No(e,t);break;case"object":if(t===null)U(e,126);else if(Array.isArray(t)){U(e,117),W(e,t.length);for(let n=0;n<t.length;n++)te(e,t[n]);}else if(t instanceof Uint8Array)U(e,116),_e(e,t);else {U(e,118);let n=Object.keys(t);W(e,n.length);for(let r=0;r<n.length;r++){let o=n[r];Me(e,o),te(e,t[o]);}}break;case"boolean":U(e,t?120:121);break;default:U(e,127);}}var Nn="Unexpected end of array",jn="Integer out of Range",Tt=class{constructor(t){this.arr=t,this.pos=0;}};function je(e){return new Tt(e)}function Lt(e,t){let n=pe(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n}function ne(e){let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let o=e.arr[e.pos++];if(t=t+(o&127)*n,n*=128,o<128)return t;if(t>Number.MAX_SAFE_INTEGER)throw new Error(jn)}throw new Error(Nn)}function He(e){return Lt(e,ne(e))}function me(e){return e.arr[e.pos++]}function Hn(e){let t=e.arr[e.pos]+(e.arr[e.pos+1]<<8);return e.pos+=2,t}function Vn(e){let t=e.arr[e.pos]+(e.arr[e.pos+1]<<8)+(e.arr[e.pos+2]<<16)+(e.arr[e.pos+3]<<24)>>>0;return e.pos+=4,t}function vt(e){let t=e.arr[e.pos++],n=t&63,r=64,o=(t&64)>0?-1:1;if(!(t&128))return o*n;let i=e.arr.length;for(;e.pos<i;){if(t=e.arr[e.pos++],n=n+(t&127)*r,r*=128,t<128)return o*n;if(n>Number.MAX_SAFE_INTEGER)throw new Error(jn)}throw new Error(Nn)}function Ho(e){let t=ne(e);if(t===0)return "";{let n=String.fromCodePoint(me(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(me(e));else for(;t>0;){let r=t<1e4?t:1e4,o=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,o),t-=r;}return decodeURIComponent(escape(n))}}function Ne(e){let t=Rn();return t?t.decode(He(e)):Ho(e)}function At(e,t){let n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n}function Ct(e){return At(e,4).getFloat32(0,!1)}function Vo(e){return At(e,8).getFloat64(0,!1)}function zo(e){return At(e,8).getBigInt64(0,!1)}var Go=[e=>{},e=>null,vt,Ct,Vo,zo,e=>!1,e=>!0,Ne,e=>{let t=ne(e),n={};for(let r=0;r<t;r++){let o=Ne(e);n[o]=re(e);}return n},e=>{let t=ne(e),n=[];for(let r=0;r<t;r++)n.push(re(e));return n},He];function re(e){return Go[127-me(e)](e)}var zn=class{async encode(t){let n=Be();return te(n,t),Oe(n)}async decode(t){return re(je(v(t)))}};function Jc(e){let t=Be();return te(t,e),Oe(t)}function Zc(e){return re(je(v(e)))}function Kc(e){let t=Be();return e!=null&&$e(t,v(e)),{writeBytes:(n,r)=>{let o=v(n);Pn(!(r!=null&&o.length!==r),`Expected ${r} bytes, got ${o.length}`),$e(t,o);},writeBytesVar:n=>_e(t,v(n)),writeUintVar:n=>W(t,n),writeUint8:n=>On(t,n),writeUint16:n=>$n(t,n),writeUint32:n=>_n(t,n),writeIntVar:n=>bt(t,n),writeFloat:n=>wt(t,n),writeStringVar:n=>Me(t,n),write:n=>te(t,n),getUint8Array:()=>Oe(t),getLength:()=>ht(t)}}function Yc(e){let t=je(v(e));return {readBytes:n=>Lt(t,n),readBytesVar:()=>He(t),readUintVar:()=>ne(t),readUint8:()=>me(t),readUint16:()=>Hn(t),readUint32:()=>Vn(t),readIntVar:()=>vt(t),readFloat:()=>Ct(t),readStringVar:()=>Ne(t),read:()=>re(t),getOffset:()=>t.pos||0}}function Qc(e=0){return {setBit:(t,n=!0)=>n?e|=1<<t:e&=~(1<<t),unsetBit:t=>e&=1<<t,toggleBit:t=>e^=1<<t,getBit:t=>(e&1<<t)!==0,getValue:()=>e}}async function Wo(e){return await e.arrayBuffer()}async function Xc(e){let t=await Wo(e);if(t!=null)return v(t)}function oe(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}var Wn="SHA-256",Et="AES-GCM",Gn="PBKDF2",qo=1e5;async function nl(e,t=Wn){return v(await crypto.subtle.digest(t,v(e)))}async function rl(e,t={}){let n=v(e),r=await crypto.subtle.importKey("raw",n,Gn,!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:Gn,salt:t.salt?v(t.salt):new Uint8Array(0),iterations:t.iterations??qo,hash:Wn},r,{name:Et,length:256},!0,["encrypt","decrypt"])}function qn(){return new Uint8Array([1,1])}async function Jn(e,t){let n=qn(),r=oe(12),o=await crypto.subtle.encrypt({name:Et,iv:r},t,e),i=new Uint8Array(o),s=n.length+r.length+i.length,a=new Uint8Array(s),u=0;return a.set(n,u),u+=n.length,a.set(r,u),u+=r.length,a.set(i,u),a}async function Zn(e,t){let n=e.subarray(0,2);if(!Yt(n,qn()))return Promise.reject(new Error(`Unknown magic ${n}`));let r=e.subarray(2,2+12),o=e.subarray(2+12,e.length),i=await crypto.subtle.decrypt({name:Et,iv:r},t,o);return new Uint8Array(i)}var Jo=",";function sl(e,t={}){let{separator:n=Jo}=t,r="";for(let o=0;o<e.length;o++)r+=`${e[o].map(i=>{if(i==null||i==="")return "";if(dn(i))return i?1:0;let s=String(i);return (Ue(i)||$(i))&&(s=R(i)),s.includes('"')||s.includes(`
22
+ ${o.stack}`:`${o.name||"Error"}: ${o.message}`;try{return r?JSON.stringify(o,null,2):JSON.stringify(o)}catch{}}return String(o)})}function Ae(e,t={}){return Jr(e,t).join(" ")}function ha(e){try{return decodeURIComponent(escape(e))}catch{}return e}function wa(e){if(e.startsWith("data:"))return Le(e.split(",",2)[1])}function Ta(e){if(e.startsWith("data:"))return e.slice(5).split(",",2)[0]}function La(e){if(e.startsWith("data:")){let[t,n]=e.slice(5).split(",",2);return new Blob([Le(n)],{type:t})}}async function va(e){let t=await e.arrayBuffer();if(t)return `data:${e.type},${ce(t)}`}function Aa(e,t="application/octet-stream"){return `data:${t},${ce(e)}`}function rn(){let e,t;return [new Promise((r,o)=>{e=r,t=o;}),e,t]}async function Ea(e){return new Promise(t=>setTimeout(t,e))}async function Ua(){return new Promise(e=>setTimeout(e,0))}async function Da(e,t,n="timeoutReached"){return new Promise(async(r,o)=>{let i=!1,s=setTimeout(()=>{i=!0,r(n);},t);try{let a=await e;clearTimeout(s),i||r(a);}catch(a){clearTimeout(s),i||o(a);}})}function Fa(e){return e==="timeoutReached"||e?.name==="Timeout reached"}async function on(e,t){return t<=0?await e:new Promise(async(n,r)=>{let o=!1,i=setTimeout(()=>{o=!0,r(new Error("Timeout reached"));},t);try{let s=await e;clearTimeout(i),o||n(s);}catch(s){clearTimeout(i),o||r(s);}})}function Sa(e,t,n=1e3){return new Promise((r,o)=>{let i=u=>{a&&(clearTimeout(a),s(),r(u));},s=()=>{a=null,e.off?e.off(t,i):e.removeEventListener&&e.removeEventListener(t,i);},a=setTimeout(()=>{s(),o(new Error("Did not response in time"));},n);e.on?e.on(t,i):e.addEventListener&&e.addEventListener(t,i);})}function P(e){return !!(e&&(e instanceof Promise||typeof e.then=="function"))}function V(e){return Promise.resolve(e)}var sn=864e5;function ct(e){return Math.floor(e/1e4)}function an(e){return Math.floor(e/100%100)}function Zr(e){return Math.floor(e%100)}function ka(e){return [ct(e),an(e),Zr(e)]}function un(e,t=!1){return t?new Date(`${Yr(e)}T00:00:00.000Z`):new Date(e/1e4,e/100%100-1,e%100)}function cn(){return Ee(new Date)}function Ra(e,t=!1){if(typeof e=="number")return e<100?void 0:e;if(typeof e=="string")return ln(e);if(Array.isArray(e)&&e.length===3){let[n,r,o]=e;return lt(n,r,o)}else if(e instanceof Date)return Ee(e,t)}function Ia(e){return un(e,!0)}function Ee(e,t=!1){return t?ln(e.toISOString()):e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate()}function Ma(e){return Ee(e,!0)}function ut(e,t=!0){return un(e,t).getTime()}function Kr(e,t=!0){return Ee(new Date(e),t)}function Yr(e,t="-"){let n=String(e);return n.slice(0,4)+t+n.slice(4,6)+t+n.slice(6,8)}function lt(e,t=1,n=1){if(!(t<1||t>12||n<1||n>31))return e*1e4+t*100+n}function ln(e){let t=String(e).replace(/[^0-9]/g,"").slice(0,8);if(t.length===8)return +t}function Ba(e,t=0){let n=ct(e),r=an(e);return t!==0&&(r+=t,n+=Math.floor((r-1)/12),r=Math.floor((r-1)%12)+1,r===0&&(r=12)),lt(n,r,1)}function Oa(e,t=0){let n=ct(e);return lt(n+t,1,1)}function Ce(e,t){return Kr(ut(e)+t*864e5)}function $a(e,t){return Math.round((ut(t)-ut(e))/864e5)}function _a(e,t){let n=[];for(t==null&&(t=cn()),e<0&&(e=Ce(t,e+1));e<=t;)n.push(e),e=Ce(e,1);return n}function*Na(e,t){let n=[];for(t==null&&(t=cn()),e<0&&(e=Ce(t,e+1));e<=t;)yield e,e=Ce(e,1);return n}var z=class e{get value(){return this.days}constructor(t){if(typeof t=="number"){this.days=t;return}if(t!=null&&(t=e.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 e(t)}static fromString(t){return e.from(+t.replace(/[^0-9]/g,"").slice(0,8))}static fromDate(t,n=!1){return n?e.fromString(t.toISOString().substr(0,10)):e.from(t.getFullYear()*1e4+(t.getMonth()+1)*100+t.getDate())}static fromDateGMT(t){return e.fromDate(t,!0)}static from(t,n=!1){if(typeof t=="number")return t<100?void 0:new e(t);if(typeof t=="string")return e.fromString(t);if(Array.isArray(t)&&t.length===3){let[r,o=1,i=1]=t;return o<1||o>12||i<1||i>31?void 0:new e(r*1e4+o*100+i)}else {if(t instanceof Date)return e.fromDate(t,n);if(t instanceof e)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 e.fromDateGMT(new Date(this.toDateGMT().getTime()+t*864e5))}monthStart(){return e.from([this.year,this.month,1])}yearStart(){return e.from([this.year,1,1])}monthOffset(t){let n=this.month+t,r=Math.floor((n-1)%12)+1;r===0&&(r=12);let o=Math.floor((n-1)/12);return e.from([this.year+o,r,this.day])}daysUntil(t){return Math.round((new e(t)?.toDateGMT().getTime()-this.toDateGMT().getTime())/864e5)}yesterday(){return this.dayOffset(-1)}tomorrow(){return this.dayOffset(1)}};async function Va(e,t,n){let r=z.from(e),o=z.from(t);for(;r&&o&&r?.days<=o?.days;){let i=n(r);P(i)&&await i,r=r.dayOffset(1);}}function za(){return new z}function Ga(e){return new z(e)}function Wa(e){return z.fromDate(new Date(e)).days}function Qr(e,t=2){return +(+e).toFixed(t)}function Ja(e,t=2){return +(+e/10**t).toFixed(t)}function Za(e,t=2){return Math.round(+e*10**t)}function Ka(e,t=2){return t*(Qr(e,t)%1)}function Xa(e,t,n){let r=e[t];return r===void 0&&(r=n(t,e),e[t]=r),r}async function eu(e,t,n){let r=e[t];return r===void 0&&(r=await n(t,e),e[t]=r),r}function fn(e){return e!=null?e.size!=null?e.size:e.length!=null?e.length:Object.keys(e).length:0}function tu(e){return e!=null&&e.length>0?e[0]:void 0}function nu(e){return e!=null&&e.length>0?e[e.length-1]:void 0}function ru(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}function Q(e){return Object(e)!==e?e:JSON.parse(R(e))}function ou(e){return Object(e)!==e?e:JSON.parse(R(e))}function iu(e){let t=new Map;return n=>{if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}function su(e){let t=new Map;return async(...n)=>{let r=R(n);if(t.has(r))return t.get(r);let o=await e(...n);return t.set(r,o),o}}function au(e,t){let n=[];for(let r=0;r<e;r++)n.push(t(r,e));return n}function B(e){return e!=null&&typeof e=="object"}function ft(e){return Object(e)!==e}function $(e){return Array.isArray(e)}function Ue(e){return B(e)&&!$(e)}function lu(e){return e?.constructor===Object}function De(e){return typeof e=="string"}function pn(e){return typeof e=="number"&&!Number.isNaN(e)}function fu(e){return pn(e)&&Number.isInteger(e)}function pu(e){return pn(e)&&Number.isSafeInteger(e)}function dn(e){return typeof e=="boolean"}function du(e){return e==null}function gu(e){return e==null}function mu(e){return B(e)&&e.constructor.name==="Uint8Array"}function gn(e){return e!=null}function Xr(e){return e==null||e===""||B(e)&&fn(e)<=0}function yu(e){return !Xr(e)}function hu(e){return e!=null&&e!==!1&&e!==!0}function bu(e){return e!=null&&e!==!1&&e!==0&&e!==""}function eo(e,t,n=new WeakSet){if(e===t)return !0;if(n.has(t)||(ft(t)||n.add(t),!(e instanceof Object)||!(t instanceof Object))||e.constructor!==t.constructor||e.length!==t.length)return !1;for(let r in e){if(!e.hasOwnProperty(r))continue;if(!t.hasOwnProperty(r))return !1;let o=e[r],i=t[r];if(!eo(o,i,n))return !1}for(let r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return !1;return !0}function to(e,t=new WeakSet){if(t.has(e))return "[Circular ~]";if(ft(e)||t.add(e),Ue(e)){for(let n in e)if(e.hasOwnProperty(n)){if(e[n]===void 0){delete e[n];continue}to(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}function Fe(e,...t){for(let n of t)B(e)||(e={}),!(n==null||!B(n))&&Object.keys(n).forEach(r=>{let o=e[r],i=n[r];Array.isArray(o)&&Array.isArray(i)?e[r]=o.concat(i):B(o)&&B(i)?e[r]=Fe(Object.assign({},o),i):e[r]=i;});return e}function no(e,t,n={cyclesFix:!0},r=[]){let o=[],i=Array.isArray(e);for(let a in e){let u=e[a],c=i?+a:a;if(!(a in t)){o.push({type:"del",path:[c]});continue}let p=t[a],l=typeof u=="object"&&typeof p=="object";if(u&&p&&l&&!["Date","RegExp","String","Number"].includes(Object.getPrototypeOf(u).constructor.name)&&(!n.cyclesFix||!r.includes(u))){let f=no(u,p,n,n.cyclesFix?r.concat([u]):[]);o=[...o,...f.map(d=>(d.path.unshift(c),d))];}else u!==p&&!(l&&(Number.isNaN(u)?`${u}`==`${p}`:+u==+p))&&o.push({path:[c],type:"upd",value:p});}let s=Array.isArray(t);for(let a in t)a in e||o.push({type:"new",path:[s?+a:a],value:t[a]});return o}function mn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")}function vu(e){return e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&amp;/gi,"&")}function Cu(e,t,n=[]){return e.filter(r=>!t.some(o=>!o(r))).map(r=>{for(let o of n)r=o(r);return r}).filter(r=>r!=null)}function Eu(e,t){return e.reduce((n,r)=>{let o=String(r[t]);return (n[o]=n[o]||[]).push(r),n},{})}function Uu(e,t){return Array.from(e.reduce((n,r)=>n.add(r[t]),new Set))}function Du(e,t){return e.map(n=>n[t])}function Pu(e,t){return B(e)?Object.fromEntries(Object.entries(e).map(([n,r])=>{let o=t(n,r);return $(o)&&o.length===2?o:[n,o]}).filter(n=>n!=null)):{}}function ku(e,t){return t.dispose&&e.dispose&&t.dispose.add(e.dispose),Object.assign(e,t)}function Ru(e){return Object.keys(e).length<=0}var ro=/[\\\-\[\]\/{}()*+?.^$|]/g;function Se(e){return e?e instanceof RegExp?e.source:e.replace(ro,"\\$&"):""}var oo=100,io=/^\.+/,so=/\.+$/,ao=/[<>:\"/\\|?*\u0000-\u001F\u0080-\u009F]+/gm;function yn(){return ao}function uo(){return /^(con|prn|aux|nul|com\d|lpt\d)$/i}function hn(e,t="_"){if(typeof e!="string")throw new TypeError("Expected a string");if(yn().test(t))throw new Error("Replacement string cannot contain reserved filename characters");let n=`(${Se(t)})+`;return e=e.replace(yn(),t).replace(io,t).replace(so,"").replace(new RegExp(n,"gm"),t).trim(),e=uo().test(e)?e+t:e,e.slice(0,oo)}function le(e){return Math.abs(e)%1===.5}function bn(e){return e%2===0}var $u=e=>Math.ceil(e),_u=e=>Math.floor(e),Nu=e=>Math.round(e),ju=e=>{let t=Math.round(e);return le(e)&&bn(t)?t-1:t},Hu=e=>le(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e),Vu=e=>le(e)?Math.floor(e):Math.round(e),zu=e=>{let t=Math.round(e);return le(e)?bn(t)?t:t-1:t},Gu=e=>le(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e);function xn(e){return e.reduce((t,n)=>Math.min(t,n.sort_weight||0),0)-1-F()}function wn(e){return e.reduce((t,n)=>Math.max(t,n.sort_weight||0),0)+1+F()}function Ju(e,t,n){let r=n.length,o=e<t;if(r<=0||e>=r-1)return wn(n);if(e<=0)return xn(n);n=co([...n]);let i=o?-1:0,s=n[e+i].sort_weight||0,u=(n[e+i+1].sort_weight||0)-s;if(u===0)return o?xn(n):wn(n);let c=s+u/2,p=u*.01*(F()-.5);return c+p}function co(e){return e.sort((t,n)=>(t.sort_weight||0)-(n.sort_weight||0)),e}function Yu(e={}){let{getter:t=a=>a.sort}=e;function n(a){return a.sort((u,c)=>(t(u)||0)-(t(c)||0)),a}function r(a){return a.reduce((u,c)=>Math.min(u,t(c)||0),0)-1-F()}function o(a){return a.reduce((u,c)=>Math.max(u,t(c)||0),0)+1+F()}function i(a,u){a==null&&(a=(u??0)-1),u==null&&(u=(a??0)+1);let c=u-a,p=a+c/2,l=c*.01*(F()-.5);return p+l}function s(a,u,c){let p=c.length,l=a<u;if(p<=0||a>=p-1)return o(c);if(a<=0)return r(c);c=n([...c]);let f=l?-1:0,d=t(c[a+f])||0,y=(t(c[a+f+1])||0)-d;if(y===0)return l?r(c):o(c);let x=d+y/2,m=y*.01*(F()-.5);return x+m}return {start:r,end:o,between:i,move:s,items:n}}function lo(e){return t=>e?.[t]}var fo={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},po=lo(fo),go=/[\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0100-\u017F]/g,mo="\\u0300-\\u036f",yo="\\ufe20-\\ufe2f",ho="\\u20d0-\\u20ff",bo="\\u1ab0-\\u1aff",xo="\\u1dc0-\\u1dff",wo=mo+yo+ho+bo+xo,To=`[${wo}]`,Lo=RegExp(To,"g");function Tn(e){return e&&e.replace(go,po).replace(Lo,"")}var vo=/((?:(?:(?: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 tc(e){return e.split(vo).map((t,n)=>{let r=mn(t);return n%2?`<a target="_blank" href="${r}">${Ao(r)}</a>`:r}).join("")}function Ao(e){return e.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")}function Ln(e,t){let n=[];for(let[r,o]of Object.entries(e))if(o!=null){Array.isArray(o)||(o=[o]);for(let i of o)t&&!t(i)||i!=null&&n.push(`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`);}return n.join("&")}function nc(e){let t={},n=(e[0]==="?"?e.substr(1):e).split("&");for(let r=0;r<n.length;r++){let o=n[r].split("="),i=decodeURIComponent(o[0]),s=decodeURIComponent(o[1]||"");t[i]!=null?(Array.isArray(t[i])||(t[i]=[t[i]]),t[i].push(s)):t[i]=s;}return t}var vn=["aardvark","absurd","accrue","acme","adrift","adult","afflict","ahead","aimless","Algol","allow","alone","ammo","ancient","apple","artist","assume","Athens","atlas","Aztec","baboon","backfield","backward","basalt","beaming","bedlamp","beehive","beeswax","befriend","Belfast","berserk","billiard","bison","blackjack","blockade","blowtorch","bluebird","bombast","bookshelf","brackish","breadline","breakup","brickyard","briefcase","Burbank","button","buzzard","cement","chairlift","chatter","checkup","chisel","choking","chopper","Christmas","clamshell","classic","classroom","cleanup","clockwork","cobra","commence","concert","cowbell","crackdown","cranky","crowfoot","crucial","crumpled","crusade","cubic","deadbolt","deckhand","dogsled","dosage","dragnet","drainage","dreadful","drifter","dropper","drumbeat","drunken","Dupont","dwelling","eating","edict","egghead","eightball","endorse","endow","enlist","erase","escape","exceed","eyeglass","eyetooth","facial","fallout","flagpole","flatfoot","flytrap","fracture","fragile","framework","freedom","frighten","gazelle","Geiger","Glasgow","glitter","glucose","goggles","goldfish","gremlin","guidance","hamlet","highchair","hockey","hotdog","indoors","indulge","inverse","involve","island","Janus","jawbone","keyboard","kickoff","kiwi","klaxon","lockup","merit","minnow","miser","Mohawk","mural","music","Neptune","newborn","nightbird","obtuse","offload","oilfield","optic","orca","payday","peachy","pheasant","physique","playhouse","Pluto","preclude","prefer","preshrunk","printer","profile","prowler","pupil","puppy","python","quadrant","quiver","quota","ragtime","ratchet","rebirth","reform","regain","reindeer","rematch","repay","retouch","revenge","reward","rhythm","ringbolt","robust","rocker","ruffled","sawdust","scallion","scenic","scorecard","Scotland","seabird","select","sentence","shadow","showgirl","skullcap","skydive","slingshot","slothful","slowdown","snapline","snapshot","snowcap","snowslide","solo","spaniel","spearhead","spellbind","spheroid","spigot","spindle","spoilage","spyglass","stagehand","stagnate","stairway","standard","stapler","steamship","stepchild","sterling","stockman","stopwatch","stormy","sugar","surmount","suspense","swelter","tactics","talon","tapeworm","tempest","tiger","tissue","tonic","tracker","transit","trauma","treadmill","Trojan","trouble","tumor","tunnel","tycoon","umpire","uncut","unearth","unwind","uproot","upset","upshot","vapor","village","virus","Vulcan","waffle","wallet","watchword","wayside","willow","woodlark","Zulu"],An=["adroitness","adviser","aggregate","alkali","almighty","amulet","amusement","antenna","applicant","Apollo","armistice","article","asteroid","Atlantic","atmosphere","autopsy","Babylon","backwater","barbecue","belowground","bifocals","bodyguard","borderline","bottomless","Bradbury","Brazilian","breakaway","Burlington","businessman","butterfat","Camelot","candidate","cannonball","Capricorn","caravan","caretaker","celebrate","cellulose","certify","chambermaid","Cherokee","Chicago","clergyman","coherence","combustion","commando","company","component","concurrent","confidence","conformist","congregate","consensus","consulting","corporate","corrosion","councilman","crossover","cumbersome","customer","Dakota","decadence","December","decimal","designing","detector","detergent","determine","dictator","dinosaur","direction","disable","disbelief","disruptive","distortion","divisive","document","embezzle","enchanting","enrollment","enterprise","equation","equipment","escapade","Eskimo","everyday","examine","existence","exodus","fascinate","filament","finicky","forever","fortitude","frequency","gadgetry","Galveston","getaway","glossary","gossamer","graduate","gravity","guitarist","hamburger","Hamilton","handiwork","hazardous","headwaters","hemisphere","hesitate","hideaway","holiness","hurricane","hydraulic","impartial","impetus","inception","indigo","inertia","infancy","inferno","informant","insincere","insurgent","integrate","intention","inventive","Istanbul","Jamaica","Jupiter","leprosy","letterhead","liberty","maritime","matchmaker","maverick","Medusa","megaton","microscope","microwave","midsummer","millionaire","miracle","misnomer","molasses","molecule","Montana","monument","mosquito","narrative","nebula","newsletter","Norwegian","October","Ohio","onlooker","opulent","Orlando","outfielder","Pacific","pandemic","pandora","paperweight","paragon","paragraph","paramount","passenger","pedigree","Pegasus","penetrate","perceptive","performance","pharmacy","phonetic","photograph","pioneer","pocketful","politeness","positive","potato","processor","prophecy","provincial","proximate","puberty","publisher","pyramid","quantity","racketeer","rebellion","recipe","recover","repellent","replica","reproduce","resistor","responsive","retraction","retrieval","retrospect","revenue","revival","revolver","Sahara","sandalwood","sardonic","Saturday","savagery","scavenger","sensation","sociable","souvenir","specialist","speculate","stethoscope","stupendous","supportive","surrender","suspicious","sympathy","tambourine","telephone","therapist","tobacco","tolerance","tomorrow","torpedo","tradition","travesty","trombonist","truncated","typewriter","ultimate","undaunted","underfoot","unicorn","unify","universe","unravel","upcoming","vacancy","vagabond","versatile","vertigo","Virginia","visitor","vocalist","voyager","warranty","Waterloo","whimsical","Wichita","Wilmington","Wyoming","yesteryear","Yucatan"];function sc(e,t=" ",n=" "){return Array.from(e).map((r,o)=>o%2?An[r]+n:vn[r]+t).join("").slice(0,-(e.length%2?t:n).length)}function ac(e){return v(e.map((t,n)=>(n%2?An:vn).findIndex(r=>r.toLocaleLowerCase()===Tn(t).toLocaleLowerCase().trim())))}var Co=/\\\s|\s+|#[^\n]*\n?/gm,Eo=/\(\?P?<(\w[\w\d_]+)>|\((?!\?(:|\!|=|<=|<\!))/gm,Cn=/^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*?)\)/gm;function Uo(e){return typeof e=="string"?e:e.source||""}function cc(e){return e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var En=class{constructor(t,n){this.namedGroups={};this.names=[];let r=n??"",o;if(t instanceof RegExp?(n==null&&(r=t.flags),o=t.source):o=t,r&&r.includes("x")&&(r=r.replace("x",""),o=o.replace(Co,a=>a[0]==="\\"?a:"")),!(t instanceof RegExp)){let a=0;o=o.replace(Eo,(u,c)=>(a+=1,c?(c!=="index"&&c!=="length"&&!this.namedGroups[c]&&(this.namedGroups[c]=a),"("):u)),this.names=Object.keys(this.namedGroups);}o=Uo(o),Cn.lastIndex=0;let s=Cn.exec(o);s&&(this.lookBehind={rx:new RegExp(`${s[3]}$(?!\\s)`),expect:s?s[2]==="=":!s},o=o.substr(s[0].length)),this.rx=new RegExp(o,r);}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=[],r;for(this.rx.lastIndex=0;r=this.exec(t);)n.push(r);return this.rx.lastIndex=0,n}replace(t,n){let r=typeof n=="function"?n:()=>n;return t.replace(this.rx,o=>r(o))}};function Do(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}function Fo(){return Do(typeof process<"u"?process.env.ZEED??process.env.DEBUG:typeof localStorage<"u"?localStorage.zeed??localStorage.debug:"*")}function O(e=Fo()){let t,n=[],r=[];if(!e)t=function(o){return !1};else if(e==="*")t=function(o){return !0};else {let o,i=e.split(/[\s,]+/),s=i.length;for(o=0;o<s;o++){if(!i[o])continue;let a=i[o].replace(/\*/g,".*?");a[0]==="-"?n.push(new RegExp(`^${a.substr(1)}`)):r.push(new RegExp(`^${a}`));}t=function(a){if(n.length===0&&r.length===0)return !0;let u,c;for(u=0,c=n.length;u<c;u++)if(n[u].test(a))return !1;for(u=0,c=r.length;u<c;u++)if(r[u].test(a))return !0;return !1};}return t.accept=r,t.reject=n,t.filter=e,t}function So(){return 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 pt(e){if(e===!1)return 9007199254740991;if(typeof e=="number")return e;if(typeof e=="string"){let t=zt[e.toLocaleLowerCase().trim()];if(t!=null)return t}return -1}function j(e=So()){let t=pt(e);return n=>n>=t}function fe(...e){return De(e[1])?[`${String(e[0])} ${String(e[1])}`,...e.slice(2)]:e}function Pe(e={}){let{level:t=void 0,filter:n=void 0}=e,r=O(n),o=j(t);return i=>{if(!o(i.level)||!r(i.name))return;let s=i.name?`[${i.name}]`:"";switch(i.level){case 1:console.info(...fe(`I|* ${s}`,...i.messages));break;case 2:console.warn(...fe(`W|** ${s}`,...i.messages));break;case 3:console.error(...fe(`E|*** ${s}`,...i.messages));break;default:console.debug(...fe(`D| ${s}`,...i.messages));break}}}function Un(e=""){let t=[Pe()],n=u=>!0,r=!1,o=s,i=!1;function s(u="",c){let p=pt(c??-1);function l(g,y){return p<=g?y:()=>{}}let f=l(0,(...g)=>{d({name:u,messages:g,level:0});});f.label=u,f.extend=function(g){return o(u?`${u}:${g}`:g)};let d=g=>{if(n(u))for(let y of t)y&&y(g);};return f.debug=l(0,(...g)=>{d({name:u,messages:g,level:0});}),f.info=l(1,(...g)=>{d({name:u,messages:g,level:1});}),f.warn=l(2,(...g)=>{d({name:u,messages:g,level:2});}),f.error=l(3,(...g)=>{d({name:u,messages:g,level:3});}),f.fatal=l(4,(...g)=>{throw d({name:u,messages:g,level:4}),new Error(`${g.map(String).join(" ")}`)}),f.assert=l(4,(g,...y)=>{(g==null||typeof g=="number"&&Number.isNaN(g)||!g)&&f.fatal(...y);}),f}function a(u="",c){let p=o(u,c);return i&&p.debug(`+++ init of logger "${u}" on level "${p.level}".`),p}return a.registerHandler=function(u){t.push(u);},a.setFilter=function(u){n=O(u);},a.setLock=(u=!0)=>r=u,a.setDebug=(u=!0)=>i=u,a.setHandlers=function(u=[]){o!==s&&(o=s),!r&&(t=[...u].filter(c=>typeof c=="function"));},a.level=-1,a.setLogLevel=function(u=-1){r||(a.level=u);},a.setFactory=function(u){r||(o=u);},a}var _;function dt(e){let t=Un();return e?e(t):t.setHandlers([Pe()]),t}function gt(e){if(_==null)try{let t=J();t!=null?t?.logger==null?(_=dt(e),t.logger=_):_=t.logger:_=dt(e);}catch{_=dt(e);}return _}function Dn(){if(_!=null)return _;try{let e=J();if(e?.logger!=null)return e.logger}catch{}}function k(e,t){return gt()(e,t)}var Fn=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function vc(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Fn[Math.abs(t)%Fn.length]}function G(){return Date.now()}function mt(e){return e>999?`${(e/1e3).toFixed(1)} s`:`${e.toFixed(2)} ms`}function Cc(...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 r=/(\d\d\d\d)-(\d\d)-(\d\d)/.exec(t);r&&(n=new Date(+r[1],+r[2]-1,+r[3],12,0));}if(n instanceof Date)return n}}}function Sn(){return typeof performance<"u"?performance.now():Date.now()}function Ec(){let e=Sn();return function(){let t=Sn()-e;return mt(t)}}function Sc(e){let{level:t=void 0,filter:n=void 0,messages:r=[]}=e,o=O(n),i=j(t);return s=>{i(s.level)&&o(s.name)&&(s.timestamp=G(),r.push(s));}}function Po(...e){throw Dn()?.("assert")?.fatal(...e),new Error(`${e.map(String).join(" ")}`)}function ko(e,...t){(e==null||typeof e=="number"&&Number.isNaN(e)||!e)&&Po(...t);}function Pn(e,...t){ko(e,...t);}function pe(e,t,n){return new Uint8Array(e,t,n)}var X;function Rn(){return X===void 0&&(X=(typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}))??null,X&&X.decode(new Uint8Array).length===1&&(X=null)),X}var yt=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[];}};function Be(){return new yt}function ht(e){let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t}function Oe(e){let t=new Uint8Array(ht(e)),n=0;for(let r=0;r<e.bufs.length;r++){let o=e.bufs[r];t.set(o,n),n+=o.length;}return t.set(pe(e.cbuf.buffer,0,e.cpos),n),t}function Mo(e,t){let n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(pe(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(Math.max(n,t)*2),e.cpos=0);}function U(e,t){let n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t;}var On=U;function $n(e,t){U(e,t&255),U(e,t>>>8&255);}function _n(e,t){for(let n=0;n<4;n++)U(e,t&255),t>>>=8;}function W(e,t){for(;t>127;)U(e,128|127&t),t=Math.floor(t/128);U(e,127&t);}function Bo(e){return e!==0?e<0:1/e<0}function bt(e,t){let n=Bo(t);for(n&&(t=-t),U(e,(t>63?128:0)|(n?64:0)|63&t),t=Math.floor(t/64);t>0;)U(e,(t>127?128:0)|127&t),t=Math.floor(t/128);}function $e(e,t){let n=e.cbuf.length,r=e.cpos,o=Math.min(n-r,t.length),i=t.length-o;e.cbuf.set(t.subarray(0,o),r),e.cpos+=o,i>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Math.max(n*2,i)),e.cbuf.set(t.subarray(o)),e.cpos=i);}function _e(e,t){W(e,t.byteLength),$e(e,t);}function $o(e,t){let n=unescape(encodeURIComponent(t)),r=n.length;W(e,r);for(let o=0;o<r;o++)U(e,n.codePointAt(o));}function Me(e,t){return $o(e,t)}function xt(e,t){Mo(e,t);let n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n}function wt(e,t){return xt(e,4).setFloat32(0,t,!1)}function _o(e,t){return xt(e,8).setFloat64(0,t,!1)}function No(e,t){return xt(e,8).setBigInt64(0,t,!1)}var Ie;function jo(e){return Ie==null&&(Ie=new DataView(new ArrayBuffer(4))),Ie.setFloat32(0,e),Ie.getFloat32(0)===e}function te(e,t){switch(typeof t){case"string":U(e,119),Me(e,t);break;case"number":Number.isInteger(t)&&Math.abs(t)<=2147483647?(U(e,125),bt(e,t)):jo(t)?(U(e,124),wt(e,t)):(U(e,123),_o(e,t));break;case"bigint":U(e,122),No(e,t);break;case"object":if(t===null)U(e,126);else if(Array.isArray(t)){U(e,117),W(e,t.length);for(let n=0;n<t.length;n++)te(e,t[n]);}else if(t instanceof Uint8Array)U(e,116),_e(e,t);else {U(e,118);let n=Object.keys(t);W(e,n.length);for(let r=0;r<n.length;r++){let o=n[r];Me(e,o),te(e,t[o]);}}break;case"boolean":U(e,t?120:121);break;default:U(e,127);}}var Nn="Unexpected end of array",jn="Integer out of Range",Tt=class{constructor(t){this.arr=t,this.pos=0;}};function je(e){return new Tt(e)}function Lt(e,t){let n=pe(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n}function ne(e){let t=0,n=1,r=e.arr.length;for(;e.pos<r;){let o=e.arr[e.pos++];if(t=t+(o&127)*n,n*=128,o<128)return t;if(t>Number.MAX_SAFE_INTEGER)throw new Error(jn)}throw new Error(Nn)}function He(e){return Lt(e,ne(e))}function me(e){return e.arr[e.pos++]}function Hn(e){let t=e.arr[e.pos]+(e.arr[e.pos+1]<<8);return e.pos+=2,t}function Vn(e){let t=e.arr[e.pos]+(e.arr[e.pos+1]<<8)+(e.arr[e.pos+2]<<16)+(e.arr[e.pos+3]<<24)>>>0;return e.pos+=4,t}function vt(e){let t=e.arr[e.pos++],n=t&63,r=64,o=(t&64)>0?-1:1;if(!(t&128))return o*n;let i=e.arr.length;for(;e.pos<i;){if(t=e.arr[e.pos++],n=n+(t&127)*r,r*=128,t<128)return o*n;if(n>Number.MAX_SAFE_INTEGER)throw new Error(jn)}throw new Error(Nn)}function Ho(e){let t=ne(e);if(t===0)return "";{let n=String.fromCodePoint(me(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(me(e));else for(;t>0;){let r=t<1e4?t:1e4,o=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,o),t-=r;}return decodeURIComponent(escape(n))}}function Ne(e){let t=Rn();return t?t.decode(He(e)):Ho(e)}function At(e,t){let n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n}function Ct(e){return At(e,4).getFloat32(0,!1)}function Vo(e){return At(e,8).getFloat64(0,!1)}function zo(e){return At(e,8).getBigInt64(0,!1)}var Go=[e=>{},e=>null,vt,Ct,Vo,zo,e=>!1,e=>!0,Ne,e=>{let t=ne(e),n={};for(let r=0;r<t;r++){let o=Ne(e);n[o]=re(e);}return n},e=>{let t=ne(e),n=[];for(let r=0;r<t;r++)n.push(re(e));return n},He];function re(e){return Go[127-me(e)](e)}var zn=class{async encode(t){let n=Be();return te(n,t),Oe(n)}async decode(t){return re(je(v(t)))}};function Zc(e){let t=Be();return te(t,e),Oe(t)}function Kc(e){return re(je(v(e)))}function Yc(e){let t=Be();return e!=null&&$e(t,v(e)),{writeBytes:(n,r)=>{let o=v(n);Pn(!(r!=null&&o.length!==r),`Expected ${r} bytes, got ${o.length}`),$e(t,o);},writeBytesVar:n=>_e(t,v(n)),writeUintVar:n=>W(t,n),writeUint8:n=>On(t,n),writeUint16:n=>$n(t,n),writeUint32:n=>_n(t,n),writeIntVar:n=>bt(t,n),writeFloat:n=>wt(t,n),writeStringVar:n=>Me(t,n),write:n=>te(t,n),getUint8Array:()=>Oe(t),getLength:()=>ht(t)}}function Qc(e){let t=je(v(e));return {readBytes:n=>Lt(t,n),readBytesVar:()=>He(t),readUintVar:()=>ne(t),readUint8:()=>me(t),readUint16:()=>Hn(t),readUint32:()=>Vn(t),readIntVar:()=>vt(t),readFloat:()=>Ct(t),readStringVar:()=>Ne(t),read:()=>re(t),getOffset:()=>t.pos||0}}function Xc(e=0){return {setBit:(t,n=!0)=>n?e|=1<<t:e&=~(1<<t),unsetBit:t=>e&=1<<t,toggleBit:t=>e^=1<<t,getBit:t=>(e&1<<t)!==0,getValue:()=>e}}async function Wo(e){return await e.arrayBuffer()}async function el(e){let t=await Wo(e);if(t!=null)return v(t)}function oe(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}var Wn="SHA-256",Et="AES-GCM",Gn="PBKDF2",qo=1e5;async function rl(e,t=Wn){return v(await crypto.subtle.digest(t,v(e)))}async function ol(e,t={}){let n=v(e),r=await crypto.subtle.importKey("raw",n,Gn,!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:Gn,salt:t.salt?v(t.salt):new Uint8Array(0),iterations:t.iterations??qo,hash:Wn},r,{name:Et,length:256},!0,["encrypt","decrypt"])}function qn(){return new Uint8Array([1,1])}async function Jn(e,t){let n=qn(),r=oe(12),o=await crypto.subtle.encrypt({name:Et,iv:r},t,e),i=new Uint8Array(o),s=n.length+r.length+i.length,a=new Uint8Array(s),u=0;return a.set(n,u),u+=n.length,a.set(r,u),u+=r.length,a.set(i,u),a}async function Zn(e,t){let n=e.subarray(0,2);if(!Yt(n,qn()))return Promise.reject(new Error(`Unknown magic ${n}`));let r=e.subarray(2,2+12),o=e.subarray(2+12,e.length),i=await crypto.subtle.decrypt({name:Et,iv:r},t,o);return new Uint8Array(i)}var Jo=",";function al(e,t={}){let{separator:n=Jo}=t,r="";for(let o=0;o<e.length;o++)r+=`${e[o].map(i=>{if(i==null||i==="")return "";if(dn(i))return i?1:0;let s=String(i);return (Ue(i)||$(i))&&(s=R(i)),s.includes('"')||s.includes(`
23
23
  `)||s.includes(n)?`"${s.replace(/"/g,'""')}"`:s}).join(n)}
24
24
  `;return r}function Zo(e,t={}){let n=/("((?:(?:[^"]*?)(?:"")?)*)"|([^,;\t\n]*))([,;\t]|\n|\r\n)/g;t.separator&&(n=new RegExp(n.source.replaceAll(",;\\t",Se(t.separator)),n.flags));let r=[],o=[],i,s=`${e.replaceAll(`\r
25
25
  `,`
26
26
  `).trim()}
27
27
  `;for(;i=n.exec(s);){let a=i[2]??i[3]??"";a=a.replaceAll('""','"'),o.push(a),i[4]===`
28
- `&&(r.push(o),o=[]);}return r}function al(e,t={}){let n=Zo(e,t),r=n[0];return n.slice(1).map(o=>Object.fromEntries(o.map((i,s)=>[r[s],i])))}function Ko(e){let t;if(typeof e=="function"?t=e():P(e)?t=e:typeof e.dispose=="function"?t=e.dispose():P(e.dispose)&&(t=e.dispose),P(t))return t}function ie(e){let t=e;t!=null&&(De(t)?t={name:t}:"debug"in t&&"label"in t&&(t={name:t.label,log:t}));let n=t?.name,r=t?.log??k("zeed:dispose"),o=[];function i(c){if(c!=null&&o.includes(c)){nt(o,l=>l!==c);let p=Ko(c);if(P(p))return p}}function s(c){if(c!=null)return o.unshift(c),()=>i(c)}function a(c=!1){n&&r.debug(`dispose "${n}": ${o.length} entries`);let p=[];for(;o.length>0;){let l=o[0],f=i(l);if(P(f)){if(c)throw new Error(`Async disposable found: ${l} -> ${f}`);p.push(f);}}if(p.length>0)return Promise.all(p)}function u(){a(!0);}return Object.assign(a,{add:s,remove:i,track:s,untrack:i,dispose:a,disposeSync:u,sync:u,exec:a,getSize(){return o.length},isDisposed(){return o.length<=0}})}function dl(e={}){let{mode:t="fifo"}=e,n=[],r=async(i=!1)=>{for(;n.length>0;){let s=n[0];if(nt(n,a=>a!==s),typeof s=="function"){let a=s();if(P(a)){if(i)throw new Error(`Expected sync only function, but found async: ${s}`);await a;}}else if(P(s)){if(i)throw new Error(`Expected sync only function, but found async: ${s}`);await s;}else throw new Error(`Unhandled disposable: ${s}`)}};return Object.assign(r,{add:i=>{t==="lifo"?n.unshift(i):n.push(i);},exec:r,getSize(){return n.length}})}function yl(){let e=!0;return (t,n)=>{let r=!1;if(e){e=!1;try{t(),r=!0;}finally{e=!0;}}else n!==void 0&&n();return r}}function hl(){let e=!0;return async(t,n)=>{let r=!1;if(e){e=!1;try{let o=t();P(o)&&await o,r=!0;}finally{e=!0;}}else if(n!==void 0){let o=n();P(o)&&await o;}return r}}var I=class{constructor(){this.subscribers={};this.subscribersOnAny=[];this._logEmitter=k("zeed:emitter","warn");this.dispose=ie();this.call=new Proxy({},{get:(t,n)=>async(...r)=>await this.emit(n,...r)});}async emit(t,...n){let r=!1;try{let o=this.subscribers[t]||[];if(this._logEmitter.debug("emit",this?.constructor?.name,t,...n,o),this.subscribersOnAny.forEach(i=>i(t,...n)),o.length>0){let i=o.map(({fn:s})=>{try{return V(s(...n))}catch(a){this._logEmitter.warn("emit warning:",a);}return null}).filter(s=>s!=null);r=!0,await Promise.all(i);}}catch(o){this._logEmitter.error("emit exception",o);}return r}onAny(t){this.subscribersOnAny.push(t);}on(t,n,r={}){let{priority:o=0}=r,i=this.subscribers[t]||[],s=i.length,a={fn:n,priority:o};if(s<=0)this.subscribers[t]=[a];else {let u=s;for(let c=i.length-1;c>=0;c--){let p=i[c];if(o<=p.priority)break;u-=1;}i.splice(u,0,a);}return ()=>{this.off(t,n);}}onCall(t){for(let[n,r]of Object.entries(t))this.on(n,r);}once(t,n){let r=async(...o)=>(this.off(t,r),await V(n(...o)));return this.on(t,r),()=>{this.off(t,n);}}off(t,n){return this.subscribers[t]=(this.subscribers[t]||[]).filter(r=>n&&r.fn!==n),this}removeAllListeners(){return this.subscribers={},this}};function Al(){let e=J().emitter;return e||(e=new I,J().emitter=e),e}function Cl(e,t){let n=Math.round(F()*100),r=[],o,i=(a,u)=>{let c={key:a,obj:u};r.push(c),o&&o();};return t?e.on?e.on(t,a=>{i(t,a);}):e.addEventListener?e.addEventListener(t,a=>{i(t,a);}):e.log.error(n,"Cannot listen to key"):e.onAny?e.onAny((a,u)=>{i(a,u);}):e.log.error(n,"cannot listen to all for",e),(a,u=!0)=>new Promise((c,p)=>{a||(a=t,a||r.length&&(a=r[0].key)),o=()=>{for(;r.length>0;){let l=r.shift();if(l.key===a)o=void 0,c(l.obj);else {if(u)continue;p(new Error(`Expected ${a}, but found ${l.key} with value=${l.obj}`));}break}},o();})}var Ve=16;function Dt(){return oe(Ve)}function Yo(e=Dt()){return st(e,22)}function Qo(e){return st(e,22)}function Xo(e){return en(e,Ve)}function ei(e=Dt()){return it(e,26)}function ti(e){return it(e,26)}function ni(e){return Xt(e,Ve)}var ri="10000000-1000-4000-8000-100000000000",oi=function(){return typeof crypto<"u"&&crypto.randomUUID!=null?crypto.randomUUID():ri.replace(/[018]/g,e=>(e^oe(1)[0]&15>>e/4).toString(16))};function ii(e){let t=Zt(e);return `${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}function si(e){return Kt(e.replaceAll("-",""))}var Kn=16e11;function ai(e){let t=new Uint8Array([0,0,0,0,0,0]),n=t.length-1;for(let r=0;r<t.length;r++){let o=e&255;t[n-r]=o,e=(e-o)/256;}return t}function Yn(){let e=G()-Kn;return new Uint8Array([...ai(e),...oe(10)])}function Pl(){return ci(Yn())}function kl(e){return ui(Xn(e))}function ui(e){return new Date(Kn+e.slice(0,6).reduce((t,n)=>t*256+n,0))}function Rl(){return new Uint32Array(oe(4))[0]}var Ft={base62:{uuid:Yo,uuidDecode:Xo,uuidEncode:Qo},base32:{uuid:ei,uuidDecode:ni,uuidEncode:ti},uuidv4:{uuid:oi,uuidDecode:si,uuidEncode:ii}},ze="base62",Qn=!1;function Il(e,t=!1){ze=e,Qn=t;}function q(){return Ft[ze].uuid(Qn?Yn():Dt())}function Xn(e){return Ft[ze].uuidDecode(e)}function ci(e){return Ft[ze].uuidEncode(e)}function Ml(e){try{return Xn(e).length===Ve}catch{}return !1}var Ut={};function M(e="id"){return Ut[e]==null&&(Ut[e]=0),`${e}-${Ut[e]++}`}var li=0;function Bl(){return `id-${li++}`}var St=class extends I{constructor(){super(...arguments);this.id=q();}close(){this.dispose();}},Ge=class extends St{constructor(){super(...arguments);this.isConnected=!0;}postMessage(n){this.other?.emit("message",{data:n,origin:"local",lastEventId:q()});}};function Nl(){let e=new Ge,t=new Ge;return e.other=t,t.other=e,[e,t]}var er=class{async encode(t){return t}async decode(t){return t}},se=class{async encode(t){return rt(t)}async decode(t){return ot(t)}},tr=class{constructor(t){this.key=t;}async encode(t){let n=rt(t);return await Jn(n,this.key)}async decode(t){let n=await Zn(t,this.key);return ot(n)}};function nr(e,t,n={}){return new Proxy(n,{get:(r,o)=>o in r?r[o]:(...i)=>e(o,i,t)})}function Kl(e={}){let{name:t=M("hub"),encoder:n=new se,retryAfter:r=1e3,ignoreUnhandled:o=!0,logLevel:i=!1}=e,s=k(t,i),a={},u,c=[],p,l={},f=()=>{clearTimeout(p);},d=async()=>{if(clearTimeout(p),u){if(u.isConnected)for(;c.length;){let m=c[0];try{u.postMessage(await n.encode(m)),c.shift();}catch(w){s.warn("postMessage",w);break}}c.length>0&&r>0&&(p=setTimeout(d,r));}},g=async m=>{s("enqueue postMessage",m),c.push(m),await d();},y=async m=>{u=m,u.on("connect",d),u.on("message",async w=>{s("onmessage",typeof w);let{name:A,args:E,id:h,result:b,error:L}=await n.decode(w.data);if(A){s(`name ${A} id ${h}`);try{if(a[A]==null)throw new Error(`handler for ${A} was not found`);let C=a[A](...E);P(C)&&(C=await C),s(`result ${C}`),h&&await g({id:h,result:C});}catch(C){let T=C instanceof Error?C:new Error(at(C));s.warn("execution error",T.name),await g({id:h,error:{message:T.message,stack:T.stack,name:T.name}});}}else if(h)if(s(`response for id=${h}: result=${b}, error=${L}`),l[h]==null)b===void 0?s(`skip response for ${h}`):s.warn(`no response hook for ${h}`);else {let[C,T]=l[h];if(C&&T)if(delete l[h],L){let D=new Error(L.message);D.stack=L.stack,D.name=L.name,s.warn("reject",D.name),T(D);}else s("resolve",b),C(b);}else o||s.warn("Unhandled message",w);}),await d();},x=async(m,w,A={})=>{let{timeout:E=5e3}=A,h=q();return await g({name:m,args:w,id:h}),on(new Promise((b,L)=>l[h]=[b,L]),E)};return e.channel&&y(e.channel),{dispose:f,connect:y,listen(m){Object.assign(a,m);},send(){return nr(x,{},{options(m){return nr(x,{...m})}})}}}var Pt=class extends I{constructor(n){super();this.publish=this.emit.bind(this);this.subscribe=this.on.bind(this);let{name:r,encoder:o=new se,channel:i,debug:s=!1}=n;this.channel=i,this.encoder=o,this.debug=s,this.name=r??this.channel.id??M("pubsub"),this.log=k(`${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 u=await this.encoder.decode(a);if(this.debug?this.log(`channel message, event=${u?.event}, info=`,u):this.log(`channel message, event=${u?.event}`),u){let{event:c,args:p}=u;await this.emitSuper(c,...p);}});}get shortId(){return this.name.substr(0,6)}async emitSuper(n,...r){return await super.emit(n,...r)}async emit(n,...r){try{if(this.debug?this.log(`emit(${String(n)})`,n):this.log(`emit(${String(n)})`,r.length),!this.channel.isConnected)return this.log.warn("channel not connected"),!1;let o=await this.encoder.encode({event:n,args:r});return this.channel.postMessage(o),!0}catch(o){this.log.warn(`emit(${String(n)})`,o);}return !1}};function nf(e){return new Pt(e)}var fi=1;var rr=e=>e,pi=rr;function or(e,t,n=[]){let{post:r,on:o,serialize:i=rr,deserialize:s=pi,log:a}=e,u=new Map;return o(async p=>{try{let l=s(p),[f,d,g,y]=l;if(f===1||f===2){let x,m;if(y!=null)try{let w=t[y];x=await w(...d);}catch(w){m=String(w);}else m="Method implementation missing";m&&a?.warn("error",l,m),f===1&&g&&r(i(m?[4,m,g]:[3,x,g]));}else if(g){let x=u.get(g);x!=null&&(f===4?x.reject(d):x.resolve(d)),u.delete(g);}}catch(l){a?.warn("Error on handling RPC data. Invalid?",l,p);}}),{post:r,serialize:i,rpcPromiseMap:u,proxyHandler:{get(p,l){let f=(...g)=>{r(i([2,g,null,l]));};if(e.onlyEvents||n.includes(l))return f.asEvent=f,f;let d=(...g)=>new Promise((y,x)=>{let m=fi++;u.set(m,{resolve:y,reject:x}),r(i([1,g,m,l]));});return d.asEvent=f,d}}}}function of(e,t){let{eventNames:n=[]}=t,{proxyHandler:r}=or(t,e,n);return new Proxy({},r)}function sf(e){let t=[],n={},{proxyHandler:r}=or(e,n);function o(){return new Proxy({},r)}return function(i,s=[]){return Object.assign(n,i??{}),t.push(...s),o()}}var ye=class e extends I{constructor(n={}){super();this._isCancelled=!1;this._resetWhenFinished=!0;this._children=[];this._totalUnits=n.totalUnits??0,this._completedUnits=n.completeUnits??0,this._resetWhenFinished=n.resetWhenFinished??!0,this.name=n.name??M("progress"),this.dispose.add(async()=>{for(let r of this._children)await r.dispose();await this.emit("progressDispose",this);});}update(){this.emit("progressChanged",this),this._isCancelled&&this._resetWhenFinished&&this.getTotalUnits()<=this.getCompletedUnits()&&this.reset();}reset(){if(this._isCancelled){this._isCancelled=!1;for(let n of this._children)n.reset();this.update();}}async cancel(){if(!this._isCancelled){this._isCancelled=!0,await this.emit("progressCancelled",this);for(let n of this._children)await n.cancel();this.update();}}addChild(n){n.on("progressDispose",()=>this.removeChild(n)),n.on("progressChanged",()=>this.update()),this._children.includes(n)||this._children.push(n),this.update();}createChildProgress(n){let r=new e(n);return this.addChild(r),r}removeChild(n){Gt(this._children,n),this.update();}getTotalUnits(){if(this.isIndeterminate())return 0;let n=this._totalUnits;for(let r of this._children)n+=r.getTotalUnits();return n}getCompletedUnits(){if(this.isIndeterminate())return 0;let n=this._completedUnits;for(let r of this._children)n+=r.getCompletedUnits();return n}isIndeterminate(){return this._totalUnits<=0&&this._children.length<=0}isCancelled(){return this._isCancelled}isFinished(){return this.dispose.isDisposed()||!this.isIndeterminate()&&this.getTotalUnits()<=this.getCompletedUnits()}getFraction(){if(this.isIndeterminate())return 0;let n=this.getCompletedUnits()/this.getTotalUnits();return Number.isNaN(n)&&(n=0),Math.min(1,Math.max(0,n))}getChildrenCount(){return this._children.length}setTotalUnits(n,r){this._totalUnits=n,r!=null&&(this._completedUnits=r),this.update();}incTotalUnits(n=1){this._totalUnits+=n,this.update();}setCompletetedUnits(n){this._completedUnits=n,this.update();}setCompleted(){this._completedUnits=this._totalUnits,this.update();}incCompletedUnits(n=1){this._completedUnits+=n,this.update();}toString(n=0){let r=`${" ".repeat(n)}${this.name}: ${this._completedUnits} of ${this._totalUnits} units, ${Math.floor(this.getFraction()*100)} %, cancel=${this._isCancelled}
29
- `;for(let o of this._children)r+=o.toString(n+1);return n===0?r.trim():r}};function hf(e={}){let{maxParallel:t=3,name:n=M("pool"),idConflictResolution:r="memoize"}=e,o=new I,i=ie();i.add(w);let s=new ye({name:n});s.on("progressCancelled",w);let a=0,u=0,c=0,p=0,l={};async function f(){if(a>0){let[h,b]=rn();return o.once("didFinish",b),h}}async function d(){for(let h of Object.keys(l))l[h].state==="finished"&&(await l[h].progress.dispose(),delete l[h]);}function g(){o.emit("didFinish"),a=0,u=0,d(),s.reset();}function y(){let h=0,b=0;for(let{max:L,resolved:C,state:T}of Object.values(l))h+=L,b+=T==="finished"?L:Math.min(L,C);o.emit("didUpdate",a,u,h,b);}function x(){if(y(),a>0&&a===u&&g(),c>=t)return;let h=Object.values(l).filter(b=>b.state==="waiting");if(h.length>0){let b;for(let L of h)L.group!=null&&Object.values(l).some(C=>C.state==="running"&&C.id!==L.id&&C.group===L.group)||(b==null||L.priority<b.priority)&&(b=L);if(b!=null){let L=b.id,C=b.done;b.state="running",++c,o.emit("didStart",L);let T=D=>{b&&(b.result=D,b.state="finished",b.resolved=b.max,b.progress?.setCompleted()),--c,++u,x();};b.task(b).then(D=>{C(D),o.emit("didResolve",L,D),T(D);}).catch(D=>{C(),o.emit("didReject",L,D),T();});}}}function m(h){let b=l[h];b&&b.state==="waiting"&&(l[h].state="finished",++u,o.emit("didCancel",h),l[h].progress.dispose(),y());}function w(){Object.keys(l).forEach(m);}function A(h){return l[h]!=null}function E(h,b={}){let L,C=new Promise(S=>L=S),T=b.id??q();if(l[T]!=null){let S=b.idConflictResolution??r;if(S==="replace")m(T);else if(S==="memoize"||S==="prioritize"){let Vt=l[T];return S==="prioritize"&&(Vt.priority=++p),{id:T,promise:(async()=>{if(Vt.state==="finished")return l[T].result})(),dispose:()=>m(T),cancel:()=>m(T)}}else throw new Error(`Pool task with id=${T} already exists!`)}let D=new ye({name:T,totalUnits:b.max??1,completeUnits:b.resolved??0});return s.addChild(D),l[T]={id:T,task:h,priority:++p,group:b.group,state:"waiting",max:b.max??1,resolved:b.resolved??0,done:L,payload:b.payload,progress:D,setMax(S){D.setTotalUnits(S),l[T].max=S,y();},setResolved(S){D.setCompletetedUnits(S),l[T].resolved=S,y();},incResolved(S=1){D.incCompletedUnits(S),l[T].resolved+=S,y();}},++a,x(),{id:T,promise:C,dispose:()=>m(T),cancel:()=>m(T)}}return {events:o,cancel:m,cancelAll:w,hasById:A,progress:s,enqueue:E,dispose:i,waitFinishAll:f}}var ir=class extends I{constructor(n={}){super();this.queue=[];this.waitToFinish=[];this.countMax=0;this.countResolved=0;this.paused=!1;let{name:r=M("queue"),logLevel:o}=n;this.name=r,this.log=k(`zeed:queue:${r}`,o??9007199254740991);}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:r,task:o,resolve:i}=n;this.currentTask=o();let s;try{this.log.info(`start task ${r}`),s=await this.currentTask,this.log(`finished task ${r} with result =`,s);}catch(a){this.log.warn("Error performing task",a);}i(s),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,r={}){let{immediate:o=!1,name:i=M(this.name)}=r;return o?(this.log.info(`immediate execution ${i}`),await n()):(this.log(`enqueue ${i}`),new Promise(s=>{this.queue.push({name:i,task:n,resolve:s}),this.countMax+=1,this.emit("didUpdate",this.countMax,this.countResolved),this.performNext();}))}async enqueueReentrant(n,r={}){return this.enqueue(n,{immediate:this.currentTask!=null,name:r.name})}async cancelAll(n=!0){this.log("cancelAll"),this.emit("didCancel");let r=this.queue.map(o=>o.resolve);this.queue=[],r.forEach(o=>o(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}};function Af(e,t={}){let{delay:n=100,trailing:r=!0,leading:o=!0}=t,i=0,s=0,a=0,u;function c(){return i?(clearTimeout(i),i=void 0,!0):!1}function p(...l){let f=Date.now(),d=f-s,g=()=>{a=0,s=Date.now(),e.apply(this,l);};if(u=g,d>n||!i){o&&(d>n?g():++a);let y=d>n?n:n-d;c(),s=f,i=setTimeout(()=>{i=0,r&&(!o||a>0)&&u?.();},y);}else ++a;}return p.cancel=c,p.stop=()=>{c()&&u&&u();},p.immediate=async function(...f){c(),s=Date.now(),e.apply(this,f);},p.dispose=()=>p.stop(),p}function Cf(e,t={}){let{delay:n=100}=t,r=0,o=!1,i;function s(){r&&(clearTimeout(r),r=0);}async function a(){try{if(s(),i!=null){let p=[...i];i=void 0,o=!0,await V(e(...p)),o=!1,i!=null&&(s(),r=setTimeout(a,n));}}catch{}}function u(...p){i=[...p],s(),o===!1&&(r=setTimeout(a,n));}async function c(...p){s(),i=[...p],await a();}return u.cancel=s,u.dispose=s,u.immediate=c,u}function di(e,t=0){let n=setTimeout(e,t);return ()=>{n&&(clearTimeout(n),n=void 0);}}function gi(e,t){let n=setInterval(e,t);return ()=>{n&&(clearInterval(n),n=void 0);}}function mi(e,t,n=!1){let r,o=!1;async function i(s=!1){s&&await V(e()),o||(r=setTimeout(()=>i(!0),t));}return i(n),()=>{r&&(o=!0,clearInterval(r),r=void 0);}}function yi(e,t,n,...r){return e==null?()=>{}:(e.on?e.on(t,n,...r):e.addEventListener&&e.addEventListener(t,n,...r),()=>{e.off?e.off(t,n,...r):e.removeEventListener&&e.removeEventListener(t,n,...r);})}function hi(e,t,n,...r){return e==null?()=>{}:(e.on?e.once(t,n,...r):e.addEventListener&&e.addEventListener(t,n,...r),()=>{e.off?e.off(t,n,...r):e.removeEventListener&&e.removeEventListener(t,n,...r);})}function Ff(e){let t=ie(e);return Object.assign(t,{timeout:(n,r=0)=>t.add(di(n,r)),interval:(n,r=0)=>t.add(gi(n,r)),intervalPause:(n,r=0)=>t.add(mi(n,r)),on:(n,r,o,...i)=>t.add(yi(n,r,o,...i)),once:(n,r,o,...i)=>t.add(hi(n,r,o,...i))})}function Pf(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")}var kt={cache:"no-cache",redirect:"follow",headers:{}};function bi(e){let t=/:\/\/([^@]*)@/gi.exec(e);if(t&&t[1]){let[n,r]=t[1].split(":",2);return {url:e.replace(`${t[1]}@`,""),username:n,password:r}}}async function sr(e,t={},n=fetch){try{$(t)&&(t=Fe({},...Y(t)));let r=bi(String(e));r&&(e=r.url,t=Fe({},t,xi(r.username,r.password))),t.headers!=null&&!(t.headers instanceof Headers)&&(t.headers=new Headers(t.headers));let o=await n(String(e),t);if(o.status<400)return o;let i=k("zeed:network");try{i.warn(`Fetch of ${String(e)} returned status=${o.status}. Options:`,t),i.warn(`Response: ${await o.text()}`);}catch(s){i.error("Exception:",s);}}catch(r){k("zeed:network").error("fetchBasic",r);}}async function Bf(e,t={},n=fetch){try{let r=await sr(e,[{method:"GET",headers:{Accept:"application/json"}},t],n);if(r)return await r.json()}catch(r){k("zeed:network").error("fetchJSON error:",r);}}async function Of(e,t={},n=fetch){try{let r=await sr(e,[kt,{method:"GET"},t],n);if(r)return await r.text()}catch(r){k("zeed:network").error("fetchHTML error:",r);}}function $f(e,t="POST"){return {method:t,...kt,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:Ln(e)}}function _f(e,t="POST"){return {method:t,...kt,headers:{"Content-Type":"application/json; charset=utf-8"},body:R(e)}}function xi(e,t){return {headers:{Authorization:`Basic ${ce(`${e}:${t}`)}`}}}function ar(){if(typeof window<"u")return window}function wi(){if(typeof navigator<"u")return navigator}function jf(){return ar()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}function Hf(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}){let t=wi(),n=ar();return e.ios=t?.platform?.match(/(iPhone|iPod|iPad)/i)!=null,e.macos=!!t?.platform?.startsWith("Mac"),e.windows=!!t?.platform?.startsWith("Win"),e.beaker=n?.beaker!=null,e.electron=(t?.userAgent?.toLowerCase()?.indexOf(" electron/")||-1)>-1&&!e.beaker,e.wkwebview=n?.webkit?.messageHandlers!=null,e.pwa=t?.serviceWorker!=null,e.pwaInstalled=t?.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||(t?.maxTouchPoints||0)>1||t?.msPointerEnabled&&n?.MSGesture||n?.DocumentTouch&&document instanceof DocumentTouch,e}function Ti(){return typeof window<"u"&&globalThis===window}function Vf(e){Ti()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e);}var ur=class{constructor(t={}){this.store={};}setItem(t,n){this.store[t]=Q(n);}getItem(t){return Q(this.store[t])}removeItem(t){delete this.store[t];}clear(){this.store={};}allKeys(){return Object.keys(this.store)}};function qf(){}function Yf(e={}){let{args:t=Ze__default.default.argv.slice(1),alias:n={},normalize:r=tn,booleanArgs:o=[],listArgs:i=[],numberArgs:s=[]}=e,a=Object.entries(n).reduce((f,d)=>{let[g,y]=d;typeof y=="string"&&(y=[y]);for(let x of y)f[r(x)]=r(g);return f},{}),u={_:[]};function c(f,d){u[f]==null||typeof u[f]=="boolean"?u[f]=d:Array.isArray(u[f])?u[f].push(d):u[f]=[u[f],d];}let p=[...t],l;for(;l=p.shift();){let f;if(/^--?/.test(l)){let d=l.replace(/^--?/,"");if(l.includes("=")){let[g,y]=d.split("=",2);d=g.trim(),f=y.trim();}d=r(d),d=a[d]??d,o.includes(d)?c(d,!0):(f=f??p.shift()??"",s.includes(d)&&(f=Number(f??0)),i.includes(d)?Array.isArray(u[d])?u[d].push(f):u[d]=[f]:c(d,f));}else u._.push(l);}return u}function Xf(e){return new Promise((t,n)=>{import('child_process').then(({spawn:r})=>{let o=r("pbcopy");o.on("error",i=>n(i)),o.on("close",()=>t(e)),o.stdin.write(e),o.stdin.end();}).catch(()=>{});})}function np(){try{typeof globalThis<"u"&&typeof globalThis.crypto>"u"&&Rt__default.default&&Rt__default.default.webcrypto&&(globalThis.crypto=Rt__default.default.webcrypto);}catch(e){console.warn("Failed to polyfill webcrypto",e);}}async function rp(){if(globalThis.crypto==null)try{if(typeof globalThis<"u"&&typeof globalThis.crypto>"u"){let e=await import('crypto');globalThis.crypto=e.webcrypto;}}catch(e){console.warn("Failed to polyfill webcrypto",e);}return globalThis.crypto}var Ai=`
30
- `,Ci=/^\s*([\w_.-]+)\s*=\s*(.*)?\s*$/,Ei=/\\n/g,Ui=/\n|\r|\r\n/;function Di(e,t={}){let n={};return String(e).split(Ui).forEach((r,o)=>{let i=r.match(Ci);if(i!=null){let s=i[1],a=i[2]||"",u=a.length-1,c=a[0]==='"'&&a[u]==='"';a[0]==="'"&&a[u]==="'"||c?(a=a.substring(1,u),c&&(a=a.replace(Ei,Ai))):a=a.trim(),n[s]=a;}}),n}function Fi(e,t="."){return path.resolve(Ze__default.default.cwd(),e??t)}function Si(e,t=""){return e==null&&(e=t),Fi(String(e).trim(),t)}var Mt=Si;function up(e,t=Ze__default.default.env){if(t[e]!=null)return t[e];e=e.toLowerCase();for(let[n,r]of Object.entries(t))if(n.toLowerCase()===e)return r}function cp(e={}){let t=e?.path??Mt(e?.filename??".env"),n=e?.encoding??"utf8",r=e?.debug||!1;try{let s=function(u){return cr__default.default.existsSync(u)?Di(cr__default.default.readFileSync(u,{encoding:n}),{debug:r}):{}};var o=s;let i={};Object.assign(i,s(t),s(`${t}.local`)),e.mode&&Object.assign(i,s(`${t}.${e.mode}`),s(`${t}.${e.mode}.local`));let a=e?.env??Ze__default.default.env;return Object.entries(i).forEach(([u,c])=>{typeof e?.prefix=="string"&&(u=e?.prefix+u),Object.prototype.hasOwnProperty.call(a,u)||c!=null&&(a[u]=c);}),{parsed:i}}catch(i){return {error:i}}}function gp(e){let t=path.normalize(e),n=Ze__default.default.env.HOME;return n&&t.startsWith(n)?`~${t.slice(n.length)}`:t}async function Ot(e){try{await promises.stat(e);}catch{return !1}return !0}function We(e){return e.startsWith(".")||e.includes("/.")}async function mp(...e){let t=path.join(...e);return await Ot(t)||await promises.mkdir(t,{recursive:!0}),t}async function yp(...e){let t=path.join(...e);return await Ot(t)&&await promises.rm(t,{recursive:!0}),t}async function hp(...e){let t=path.join(...e);if(await Ot(t))return await promises.readFile(t,"utf-8")}async function bp(e,t){await promises.writeFile(e,t,"utf-8");}function qe(e,t){if(typeof e!="string")throw new TypeError("Expected a string");let n=String(e),r="",o=t?!!t.extended:!1,i=t?!!t.globstar:!1,s=!1,a=t&&typeof t.flags=="string"?t.flags:"",u;for(let c=0,p=n.length;c<p;c++)switch(u=n[c],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+=`\\${u}`;break;case"?":o&&(r+=".");break;case"[":case"]":o&&(r+=u);break;case"{":o&&(s=!0,r+="(");break;case"}":o&&(s=!1,r+=")");break;case",":s?r+="|":r+=`\\${u}`;break;case"*":{let l=n[c-1],f=1;for(;n[c+1]==="*";)f++,c++;let d=n[c+1];i?f>1&&(l==="/"||l===void 0)&&(d==="/"||d===void 0)?(r+="((?:[^/]*(?:/|$))*)",c++):r+="([^/]*)":r+=".*";}break;default:r+=u;}return (!a||!~a.indexOf("g"))&&(r=`^${r}$`),new RegExp(r,a)}function fr(e){try{return cr.statSync(e)}catch{}}function Ep(e){let{mtimeMs:t,size:n}=fr(e)??{};return `${e}|${t}|${n}`}function pr(e,t="",n=!0){let r=[],o=cr.readdirSync(path.resolve(e,t));if(o!=null&&o.length>0)for(let i of o){if(i=path.join(t,i),n&&We(i))continue;let s=path.join(e,i),a=fr(s);a&&a.isDirectory()?r=r.concat(pr(e,i)||[]):r.push(i);}return r}function Up(e={}){let{pattern:t,filter:n,basePath:r=Ze__default.default.cwd(),ignoreHidden:o=!1}=e,i=pr(r,"",o);if(i=i.filter(s=>!(o&&(s.startsWith(".")||s.includes("/.")))),t&&(typeof t=="string"&&(t=qe(t)),t instanceof RegExp)){let s=t;s.lastIndex=0,i=i.filter(a=>s.test(a));}return n&&(i=i.filter(n)),i}async function gr(e){try{return await promises.stat(e)}catch{}}async function Ip(e){let{mtimeMs:t,size:n}=await gr(e)??{};return `${e}|${t}|${n}`}async function mr(e,t="",n=!0){let r=[],o=await promises.readdir(path.resolve(e,t));if(o!=null&&o.length>0)for(let i of o){if(i=path.join(t,i),n&&We(i))continue;let s=path.join(e,i),a=await gr(s);a&&a.isDirectory()?r=r.concat(await mr(e,i)||[]):r.push(i);}return r}async function Mp(e={}){let{pattern:t,filter:n,basePath:r=Ze__default.default.cwd(),ignoreHidden:o=!1}=e,i=await mr(r,"",o);if(i=i.filter(s=>!(o&&(s.startsWith(".")||s.includes("/.")))),t&&(typeof t=="string"&&(t=qe(t)),t instanceof RegExp)){let s=t;s.lastIndex=0,i=i.filter(a=>s.test(a));}return n&&(i=i.filter(n)),i}var br=class{constructor(t={}){this.store={};this.fileKeys=void 0;this.pretty=!1;this.dirname=path.resolve(Ze__default.default.cwd(),t.path??".fileStorage"),this.pretty=!!t.pretty,this.extension=t.extension??".json",t.extension&&!this.extension.startsWith(".")&&(this.extension=`.${this.extension}`),this.extensionLength=this.extension.length,this.objectToString=t.objectToString??(n=>this.pretty?R(n,null,2):R(n)),this.objectFromString=t.objectFromString??(n=>{try{return JSON.parse(n)}catch{}}),this.keyToFilename=t.keyToFilename??hn;}setItem(t,n){this.store[t]=Q(n);try{let r=this.objectToString(n),o=this.getPath(t);cr.mkdirSync(path.dirname(o),{recursive:!0}),cr.writeFileSync(o,r,"utf8");}catch{}}getPath(t){return path.resolve(this.dirname,this.keyToFilename(t)+this.extension)}getBuffer(t){let n=this.getPath(t);return buffer.Buffer.from(cr.readFileSync(n))}getItem(t){let n=this.store[t];if(n!==null){if(n!=null)return Q(n);try{let r=this.getPath(t),o=cr.readFileSync(r,"utf8");if(o!=null){let i=this.objectFromString(o);return this.store[t]=i,i}}catch{this.store[t]=null;}}}removeItem(t){if(delete this.store[t],this.fileKeys!=null){let n=this.fileKeys.indexOf(t);n!==-1&&this.fileKeys.splice(n,1);}try{let n=this.getPath(t);cr.unlinkSync(n);}catch{}}clear(){this.fileKeys=[],this.store={},cr.rmSync(this.dirname,{recursive:!0,force:!0});}allKeys(){if(this.fileKeys==null)try{this.fileKeys=cr.readdirSync(this.dirname,{withFileTypes:!0}).filter(n=>!n.isDirectory()&&n.name.endsWith(this.extension)).map(n=>n.name.slice(0,-this.extensionLength))||[];}catch{}let t=[...this.fileKeys||[]];for(let n of Object.keys(this.store))t.includes(n)||t.push(n);return t.sort(),t}};var xr={};function wr(e,t={}){let{level:n=void 0,filter:r=void 0,time:o=!0,pretty:i=!1}=t;e=path.resolve(Ze__default.default.cwd(),e),cr.mkdirSync(path.dirname(e),{recursive:!0});let s=cr.createWriteStream(e,{flags:"a"}),a=O(r),u=j(n);return c=>{if(!u(c.level)||!a(c.name))return;let p=o?`${new Date().toISOString()} `:"",l=c.name||"",f=xr[l||""];f==null&&(xr[l]=f);let d=[`[${l||"*"}]`,Ae(c.messages,{pretty:i})];function g(...y){s.write(`${y.join(" ")}
28
+ `&&(r.push(o),o=[]);}return r}function ul(e,t={}){let n=Zo(e,t),r=n[0];return n.slice(1).map(o=>Object.fromEntries(o.map((i,s)=>[r[s],i])))}function Ko(e){let t;if(typeof e=="function"?t=e():P(e)?t=e:typeof e.dispose=="function"?t=e.dispose():P(e.dispose)&&(t=e.dispose),P(t))return t}function ie(e){let t=e;t!=null&&(De(t)?t={name:t}:"debug"in t&&"label"in t&&(t={name:t.label,log:t}));let n=t?.name,r=t?.log??k("zeed:dispose"),o=[];function i(c){if(c!=null&&o.includes(c)){nt(o,l=>l!==c);let p=Ko(c);if(P(p))return p}}function s(c){if(c!=null)return o.unshift(c),()=>i(c)}function a(c=!1){n&&r.debug(`dispose "${n}": ${o.length} entries`);let p=[];for(;o.length>0;){let l=o[0],f=i(l);if(P(f)){if(c)throw new Error(`Async disposable found: ${l} -> ${f}`);p.push(f);}}if(p.length>0)return Promise.all(p)}function u(){a(!0);}return Object.assign(a,{add:s,remove:i,track:s,untrack:i,dispose:a,disposeSync:u,sync:u,exec:a,getSize(){return o.length},isDisposed(){return o.length<=0}})}function gl(e={}){let{mode:t="fifo"}=e,n=[],r=async(i=!1)=>{for(;n.length>0;){let s=n[0];if(nt(n,a=>a!==s),typeof s=="function"){let a=s();if(P(a)){if(i)throw new Error(`Expected sync only function, but found async: ${s}`);await a;}}else if(P(s)){if(i)throw new Error(`Expected sync only function, but found async: ${s}`);await s;}else throw new Error(`Unhandled disposable: ${s}`)}};return Object.assign(r,{add:i=>{t==="lifo"?n.unshift(i):n.push(i);},exec:r,getSize(){return n.length}})}function hl(){let e=!0;return (t,n)=>{let r=!1;if(e){e=!1;try{t(),r=!0;}finally{e=!0;}}else n!==void 0&&n();return r}}function bl(){let e=!0;return async(t,n)=>{let r=!1;if(e){e=!1;try{let o=t();P(o)&&await o,r=!0;}finally{e=!0;}}else if(n!==void 0){let o=n();P(o)&&await o;}return r}}var I=class{constructor(){this.subscribers={};this.subscribersOnAny=[];this._logEmitter=k("zeed:emitter","warn");this.dispose=ie();this.call=new Proxy({},{get:(t,n)=>async(...r)=>await this.emit(n,...r)});}async emit(t,...n){let r=!1;try{let o=this.subscribers[t]||[];if(this._logEmitter.debug("emit",this?.constructor?.name,t,...n,o),this.subscribersOnAny.forEach(i=>i(t,...n)),o.length>0){let i=o.map(({fn:s})=>{try{return V(s(...n))}catch(a){this._logEmitter.warn("emit warning:",a);}return null}).filter(s=>s!=null);r=!0,await Promise.all(i);}}catch(o){this._logEmitter.error("emit exception",o);}return r}onAny(t){this.subscribersOnAny.push(t);}on(t,n,r={}){let{priority:o=0}=r,i=this.subscribers[t]||[],s=i.length,a={fn:n,priority:o};if(s<=0)this.subscribers[t]=[a];else {let u=s;for(let c=i.length-1;c>=0;c--){let p=i[c];if(o<=p.priority)break;u-=1;}i.splice(u,0,a);}return ()=>{this.off(t,n);}}onCall(t){for(let[n,r]of Object.entries(t))this.on(n,r);}once(t,n){let r=async(...o)=>(this.off(t,r),await V(n(...o)));return this.on(t,r),()=>{this.off(t,n);}}off(t,n){return this.subscribers[t]=(this.subscribers[t]||[]).filter(r=>n&&r.fn!==n),this}removeAllListeners(){return this.subscribers={},this}};function Cl(){let e=J().emitter;return e||(e=new I,J().emitter=e),e}function El(e,t){let n=Math.round(F()*100),r=[],o,i=(a,u)=>{let c={key:a,obj:u};r.push(c),o&&o();};return t?e.on?e.on(t,a=>{i(t,a);}):e.addEventListener?e.addEventListener(t,a=>{i(t,a);}):e.log.error(n,"Cannot listen to key"):e.onAny?e.onAny((a,u)=>{i(a,u);}):e.log.error(n,"cannot listen to all for",e),(a,u=!0)=>new Promise((c,p)=>{a||(a=t,a||r.length&&(a=r[0].key)),o=()=>{for(;r.length>0;){let l=r.shift();if(l.key===a)o=void 0,c(l.obj);else {if(u)continue;p(new Error(`Expected ${a}, but found ${l.key} with value=${l.obj}`));}break}},o();})}var Ve=16;function Dt(){return oe(Ve)}function Yo(e=Dt()){return st(e,22)}function Qo(e){return st(e,22)}function Xo(e){return en(e,Ve)}function ei(e=Dt()){return it(e,26)}function ti(e){return it(e,26)}function ni(e){return Xt(e,Ve)}var ri="10000000-1000-4000-8000-100000000000",oi=function(){return typeof crypto<"u"&&crypto.randomUUID!=null?crypto.randomUUID():ri.replace(/[018]/g,e=>(e^oe(1)[0]&15>>e/4).toString(16))};function ii(e){let t=Zt(e);return `${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16)}`}function si(e){return Kt(e.replaceAll("-",""))}var Kn=16e11;function ai(e){let t=new Uint8Array([0,0,0,0,0,0]),n=t.length-1;for(let r=0;r<t.length;r++){let o=e&255;t[n-r]=o,e=(e-o)/256;}return t}function Yn(){let e=G()-Kn;return new Uint8Array([...ai(e),...oe(10)])}function kl(){return ci(Yn())}function Rl(e){return ui(Xn(e))}function ui(e){return new Date(Kn+e.slice(0,6).reduce((t,n)=>t*256+n,0))}function Il(){return new Uint32Array(oe(4))[0]}var Ft={base62:{uuid:Yo,uuidDecode:Xo,uuidEncode:Qo},base32:{uuid:ei,uuidDecode:ni,uuidEncode:ti},uuidv4:{uuid:oi,uuidDecode:si,uuidEncode:ii}},ze="base62",Qn=!1;function Ml(e,t=!1){ze=e,Qn=t;}function q(){return Ft[ze].uuid(Qn?Yn():Dt())}function Xn(e){return Ft[ze].uuidDecode(e)}function ci(e){return Ft[ze].uuidEncode(e)}function Bl(e){try{return Xn(e).length===Ve}catch{}return !1}var Ut={};function M(e="id"){return Ut[e]==null&&(Ut[e]=0),`${e}-${Ut[e]++}`}var li=0;function Ol(){return `id-${li++}`}var St=class extends I{constructor(){super(...arguments);this.id=q();}close(){this.dispose();}},Ge=class extends St{constructor(){super(...arguments);this.isConnected=!0;}postMessage(n){this.other?.emit("message",{data:n,origin:"local",lastEventId:q()});}};function jl(){let e=new Ge,t=new Ge;return e.other=t,t.other=e,[e,t]}var er=class{async encode(t){return t}async decode(t){return t}},se=class{async encode(t){return rt(t)}async decode(t){return ot(t)}},tr=class{constructor(t){this.key=t;}async encode(t){let n=rt(t);return await Jn(n,this.key)}async decode(t){let n=await Zn(t,this.key);return ot(n)}};function nr(e,t,n={}){return new Proxy(n,{get:(r,o)=>o in r?r[o]:(...i)=>e(o,i,t)})}function Yl(e={}){let{name:t=M("hub"),encoder:n=new se,retryAfter:r=1e3,ignoreUnhandled:o=!0,logLevel:i=!1}=e,s=k(t,i),a={},u,c=[],p,l={},f=()=>{clearTimeout(p);},d=async()=>{if(clearTimeout(p),u){if(u.isConnected)for(;c.length;){let m=c[0];try{u.postMessage(await n.encode(m)),c.shift();}catch(w){s.warn("postMessage",w);break}}c.length>0&&r>0&&(p=setTimeout(d,r));}},g=async m=>{s("enqueue postMessage",m),c.push(m),await d();},y=async m=>{u=m,u.on("connect",d),u.on("message",async w=>{s("onmessage",typeof w);let{name:A,args:E,id:h,result:b,error:L}=await n.decode(w.data);if(A){s(`name ${A} id ${h}`);try{if(a[A]==null)throw new Error(`handler for ${A} was not found`);let C=a[A](...E);P(C)&&(C=await C),s(`result ${C}`),h&&await g({id:h,result:C});}catch(C){let T=C instanceof Error?C:new Error(at(C));s.warn("execution error",T.name),await g({id:h,error:{message:T.message,stack:T.stack,name:T.name}});}}else if(h)if(s(`response for id=${h}: result=${b}, error=${L}`),l[h]==null)b===void 0?s(`skip response for ${h}`):s.warn(`no response hook for ${h}`);else {let[C,T]=l[h];if(C&&T)if(delete l[h],L){let D=new Error(L.message);D.stack=L.stack,D.name=L.name,s.warn("reject",D.name),T(D);}else s("resolve",b),C(b);}else o||s.warn("Unhandled message",w);}),await d();},x=async(m,w,A={})=>{let{timeout:E=5e3}=A,h=q();return await g({name:m,args:w,id:h}),on(new Promise((b,L)=>l[h]=[b,L]),E)};return e.channel&&y(e.channel),{dispose:f,connect:y,listen(m){Object.assign(a,m);},send(){return nr(x,{},{options(m){return nr(x,{...m})}})}}}var Pt=class extends I{constructor(n){super();this.publish=this.emit.bind(this);this.subscribe=this.on.bind(this);let{name:r,encoder:o=new se,channel:i,debug:s=!1}=n;this.channel=i,this.encoder=o,this.debug=s,this.name=r??this.channel.id??M("pubsub"),this.log=k(`${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 u=await this.encoder.decode(a);if(this.debug?this.log(`channel message, event=${u?.event}, info=`,u):this.log(`channel message, event=${u?.event}`),u){let{event:c,args:p}=u;await this.emitSuper(c,...p);}});}get shortId(){return this.name.substr(0,6)}async emitSuper(n,...r){return await super.emit(n,...r)}async emit(n,...r){try{if(this.debug?this.log(`emit(${String(n)})`,n):this.log(`emit(${String(n)})`,r.length),!this.channel.isConnected)return this.log.warn("channel not connected"),!1;let o=await this.encoder.encode({event:n,args:r});return this.channel.postMessage(o),!0}catch(o){this.log.warn(`emit(${String(n)})`,o);}return !1}};function rf(e){return new Pt(e)}var fi=1;var rr=e=>e,pi=rr;function or(e,t,n=[]){let{post:r,on:o,serialize:i=rr,deserialize:s=pi,log:a}=e,u=new Map;return o(async p=>{try{let l=s(p),[f,d,g,y]=l;if(f===1||f===2){let x,m;if(y!=null)try{let w=t[y];x=await w(...d);}catch(w){m=String(w);}else m="Method implementation missing";m&&a?.warn("error",l,m),f===1&&g&&r(i(m?[4,m,g]:[3,x,g]));}else if(g){let x=u.get(g);x!=null&&(f===4?x.reject(d):x.resolve(d)),u.delete(g);}}catch(l){a?.warn("Error on handling RPC data. Invalid?",l,p);}}),{post:r,serialize:i,rpcPromiseMap:u,proxyHandler:{get(p,l){let f=(...g)=>{r(i([2,g,null,l]));};if(e.onlyEvents||n.includes(l))return f.asEvent=f,f;let d=(...g)=>new Promise((y,x)=>{let m=fi++;u.set(m,{resolve:y,reject:x}),r(i([1,g,m,l]));});return d.asEvent=f,d}}}}function sf(e,t){let{eventNames:n=[]}=t,{proxyHandler:r}=or(t,e,n);return new Proxy({},r)}function af(e){let t=[],n={},{proxyHandler:r}=or(e,n);function o(){return new Proxy({},r)}return function(i,s=[]){return Object.assign(n,i??{}),t.push(...s),o()}}var ye=class e extends I{constructor(n={}){super();this._isCancelled=!1;this._resetWhenFinished=!0;this._children=[];this._totalUnits=n.totalUnits??0,this._completedUnits=n.completeUnits??0,this._resetWhenFinished=n.resetWhenFinished??!0,this.name=n.name??M("progress"),this.dispose.add(async()=>{for(let r of this._children)await r.dispose();await this.emit("progressDispose",this);});}update(){this.emit("progressChanged",this),this._isCancelled&&this._resetWhenFinished&&this.getTotalUnits()<=this.getCompletedUnits()&&this.reset();}reset(){if(this._isCancelled){this._isCancelled=!1;for(let n of this._children)n.reset();this.update();}}async cancel(){if(!this._isCancelled){this._isCancelled=!0,await this.emit("progressCancelled",this);for(let n of this._children)await n.cancel();this.update();}}addChild(n){n.on("progressDispose",()=>this.removeChild(n)),n.on("progressChanged",()=>this.update()),this._children.includes(n)||this._children.push(n),this.update();}createChildProgress(n){let r=new e(n);return this.addChild(r),r}removeChild(n){Gt(this._children,n),this.update();}getTotalUnits(){if(this.isIndeterminate())return 0;let n=this._totalUnits;for(let r of this._children)n+=r.getTotalUnits();return n}getCompletedUnits(){if(this.isIndeterminate())return 0;let n=this._completedUnits;for(let r of this._children)n+=r.getCompletedUnits();return n}isIndeterminate(){return this._totalUnits<=0&&this._children.length<=0}isCancelled(){return this._isCancelled}isFinished(){return this.dispose.isDisposed()||!this.isIndeterminate()&&this.getTotalUnits()<=this.getCompletedUnits()}getFraction(){if(this.isIndeterminate())return 0;let n=this.getCompletedUnits()/this.getTotalUnits();return Number.isNaN(n)&&(n=0),Math.min(1,Math.max(0,n))}getChildrenCount(){return this._children.length}setTotalUnits(n,r){this._totalUnits=n,r!=null&&(this._completedUnits=r),this.update();}incTotalUnits(n=1){this._totalUnits+=n,this.update();}setCompletetedUnits(n){this._completedUnits=n,this.update();}setCompleted(){this._completedUnits=this._totalUnits,this.update();}incCompletedUnits(n=1){this._completedUnits+=n,this.update();}toString(n=0){let r=`${" ".repeat(n)}${this.name}: ${this._completedUnits} of ${this._totalUnits} units, ${Math.floor(this.getFraction()*100)} %, cancel=${this._isCancelled}
29
+ `;for(let o of this._children)r+=o.toString(n+1);return n===0?r.trim():r}};function bf(e={}){let{maxParallel:t=3,name:n=M("pool"),idConflictResolution:r="memoize"}=e,o=new I,i=ie();i.add(w);let s=new ye({name:n});s.on("progressCancelled",w);let a=0,u=0,c=0,p=0,l={};async function f(){if(a>0){let[h,b]=rn();return o.once("didFinish",b),h}}async function d(){for(let h of Object.keys(l))l[h].state==="finished"&&(await l[h].progress.dispose(),delete l[h]);}function g(){o.emit("didFinish"),a=0,u=0,d(),s.reset();}function y(){let h=0,b=0;for(let{max:L,resolved:C,state:T}of Object.values(l))h+=L,b+=T==="finished"?L:Math.min(L,C);o.emit("didUpdate",a,u,h,b);}function x(){if(y(),a>0&&a===u&&g(),c>=t)return;let h=Object.values(l).filter(b=>b.state==="waiting");if(h.length>0){let b;for(let L of h)L.group!=null&&Object.values(l).some(C=>C.state==="running"&&C.id!==L.id&&C.group===L.group)||(b==null||L.priority<b.priority)&&(b=L);if(b!=null){let L=b.id,C=b.done;b.state="running",++c,o.emit("didStart",L);let T=D=>{b&&(b.result=D,b.state="finished",b.resolved=b.max,b.progress?.setCompleted()),--c,++u,x();};b.task(b).then(D=>{C(D),o.emit("didResolve",L,D),T(D);}).catch(D=>{C(),o.emit("didReject",L,D),T();});}}}function m(h){let b=l[h];b&&b.state==="waiting"&&(l[h].state="finished",++u,o.emit("didCancel",h),l[h].progress.dispose(),y());}function w(){Object.keys(l).forEach(m);}function A(h){return l[h]!=null}function E(h,b={}){let L,C=new Promise(S=>L=S),T=b.id??q();if(l[T]!=null){let S=b.idConflictResolution??r;if(S==="replace")m(T);else if(S==="memoize"||S==="prioritize"){let Vt=l[T];return S==="prioritize"&&(Vt.priority=++p),{id:T,promise:(async()=>{if(Vt.state==="finished")return l[T].result})(),dispose:()=>m(T),cancel:()=>m(T)}}else throw new Error(`Pool task with id=${T} already exists!`)}let D=new ye({name:T,totalUnits:b.max??1,completeUnits:b.resolved??0});return s.addChild(D),l[T]={id:T,task:h,priority:++p,group:b.group,state:"waiting",max:b.max??1,resolved:b.resolved??0,done:L,payload:b.payload,progress:D,setMax(S){D.setTotalUnits(S),l[T].max=S,y();},setResolved(S){D.setCompletetedUnits(S),l[T].resolved=S,y();},incResolved(S=1){D.incCompletedUnits(S),l[T].resolved+=S,y();}},++a,x(),{id:T,promise:C,dispose:()=>m(T),cancel:()=>m(T)}}return {events:o,cancel:m,cancelAll:w,hasById:A,progress:s,enqueue:E,dispose:i,waitFinishAll:f}}var ir=class extends I{constructor(n={}){super();this.queue=[];this.waitToFinish=[];this.countMax=0;this.countResolved=0;this.paused=!1;let{name:r=M("queue"),logLevel:o}=n;this.name=r,this.log=k(`zeed:queue:${r}`,o??9007199254740991);}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:r,task:o,resolve:i}=n;this.currentTask=o();let s;try{this.log.info(`start task ${r}`),s=await this.currentTask,this.log(`finished task ${r} with result =`,s);}catch(a){this.log.warn("Error performing task",a);}i(s),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,r={}){let{immediate:o=!1,name:i=M(this.name)}=r;return o?(this.log.info(`immediate execution ${i}`),await n()):(this.log(`enqueue ${i}`),new Promise(s=>{this.queue.push({name:i,task:n,resolve:s}),this.countMax+=1,this.emit("didUpdate",this.countMax,this.countResolved),this.performNext();}))}async enqueueReentrant(n,r={}){return this.enqueue(n,{immediate:this.currentTask!=null,name:r.name})}async cancelAll(n=!0){this.log("cancelAll"),this.emit("didCancel");let r=this.queue.map(o=>o.resolve);this.queue=[],r.forEach(o=>o(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}};function Cf(e,t={}){let{delay:n=100,trailing:r=!0,leading:o=!0}=t,i=0,s=0,a=0,u;function c(){return i?(clearTimeout(i),i=void 0,!0):!1}function p(...l){let f=Date.now(),d=f-s,g=()=>{a=0,s=Date.now(),e.apply(this,l);};if(u=g,d>n||!i){o&&(d>n?g():++a);let y=d>n?n:n-d;c(),s=f,i=setTimeout(()=>{i=0,r&&(!o||a>0)&&u?.();},y);}else ++a;}return p.cancel=c,p.stop=()=>{c()&&u&&u();},p.immediate=async function(...f){c(),s=Date.now(),e.apply(this,f);},p.dispose=()=>p.stop(),p}function Ef(e,t={}){let{delay:n=100}=t,r=0,o=!1,i;function s(){r&&(clearTimeout(r),r=0);}async function a(){try{if(s(),i!=null){let p=[...i];i=void 0,o=!0,await V(e(...p)),o=!1,i!=null&&(s(),r=setTimeout(a,n));}}catch{}}function u(...p){i=[...p],s(),o===!1&&(r=setTimeout(a,n));}async function c(...p){s(),i=[...p],await a();}return u.cancel=s,u.dispose=s,u.immediate=c,u}function di(e,t=0){let n=setTimeout(e,t);return ()=>{n&&(clearTimeout(n),n=void 0);}}function gi(e,t){let n=setInterval(e,t);return ()=>{n&&(clearInterval(n),n=void 0);}}function mi(e,t,n=!1){let r,o=!1;async function i(s=!1){s&&await V(e()),o||(r=setTimeout(()=>i(!0),t));}return i(n),()=>{r&&(o=!0,clearInterval(r),r=void 0);}}function yi(e,t,n,...r){return e==null?()=>{}:(e.on?e.on(t,n,...r):e.addEventListener&&e.addEventListener(t,n,...r),()=>{e.off?e.off(t,n,...r):e.removeEventListener&&e.removeEventListener(t,n,...r);})}function hi(e,t,n,...r){return e==null?()=>{}:(e.on?e.once(t,n,...r):e.addEventListener&&e.addEventListener(t,n,...r),()=>{e.off?e.off(t,n,...r):e.removeEventListener&&e.removeEventListener(t,n,...r);})}function Sf(e){let t=ie(e);return Object.assign(t,{timeout:(n,r=0)=>t.add(di(n,r)),interval:(n,r=0)=>t.add(gi(n,r)),intervalPause:(n,r=0)=>t.add(mi(n,r)),on:(n,r,o,...i)=>t.add(yi(n,r,o,...i)),once:(n,r,o,...i)=>t.add(hi(n,r,o,...i))})}function kf(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")}var kt={cache:"no-cache",redirect:"follow",headers:{}};function bi(e){let t=/:\/\/([^@]*)@/gi.exec(e);if(t&&t[1]){let[n,r]=t[1].split(":",2);return {url:e.replace(`${t[1]}@`,""),username:n,password:r}}}async function sr(e,t={},n=fetch){try{$(t)&&(t=Fe({},...Y(t)));let r=bi(String(e));r&&(e=r.url,t=Fe({},t,xi(r.username,r.password))),t.headers!=null&&!(t.headers instanceof Headers)&&(t.headers=new Headers(t.headers));let o=await n(String(e),t);if(o.status<400)return o;let i=k("zeed:network");try{i.warn(`Fetch of ${String(e)} returned status=${o.status}. Options:`,t),i.warn(`Response: ${await o.text()}`);}catch(s){i.error("Exception:",s);}}catch(r){k("zeed:network").error("fetchBasic",r);}}async function Of(e,t={},n=fetch){try{let r=await sr(e,[{method:"GET",headers:{Accept:"application/json"}},t],n);if(r)return await r.json()}catch(r){k("zeed:network").error("fetchJSON error:",r);}}async function $f(e,t={},n=fetch){try{let r=await sr(e,[kt,{method:"GET"},t],n);if(r)return await r.text()}catch(r){k("zeed:network").error("fetchHTML error:",r);}}function _f(e,t="POST"){return {method:t,...kt,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:Ln(e)}}function Nf(e,t="POST"){return {method:t,...kt,headers:{"Content-Type":"application/json; charset=utf-8"},body:R(e)}}function xi(e,t){return {headers:{Authorization:`Basic ${ce(`${e}:${t}`)}`}}}function ar(){if(typeof window<"u")return window}function wi(){if(typeof navigator<"u")return navigator}function Hf(){return ar()??typeof WorkerGlobalScope<"u"?self:typeof global<"u"?global:Function("return this;")()}function Vf(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}){let t=wi(),n=ar();return e.ios=t?.platform?.match(/(iPhone|iPod|iPad)/i)!=null,e.macos=!!t?.platform?.startsWith("Mac"),e.windows=!!t?.platform?.startsWith("Win"),e.beaker=n?.beaker!=null,e.electron=(t?.userAgent?.toLowerCase()?.indexOf(" electron/")||-1)>-1&&!e.beaker,e.wkwebview=n?.webkit?.messageHandlers!=null,e.pwa=t?.serviceWorker!=null,e.pwaInstalled=t?.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||(t?.maxTouchPoints||0)>1||t?.msPointerEnabled&&n?.MSGesture||n?.DocumentTouch&&document instanceof DocumentTouch,e}function Ti(){return typeof window<"u"&&globalThis===window}function zf(e){Ti()?window.addEventListener("beforeunload",e):typeof process<"u"&&process.on("exit",()=>e);}var ur=class{constructor(t={}){this.store={};}setItem(t,n){this.store[t]=Q(n);}getItem(t){return Q(this.store[t])}removeItem(t){delete this.store[t];}clear(){this.store={};}allKeys(){return Object.keys(this.store)}};function Jf(){}function Qf(e={}){let{args:t=Ze__default.default.argv.slice(1),alias:n={},normalize:r=tn,booleanArgs:o=[],listArgs:i=[],numberArgs:s=[]}=e,a=Object.entries(n).reduce((f,d)=>{let[g,y]=d;typeof y=="string"&&(y=[y]);for(let x of y)f[r(x)]=r(g);return f},{}),u={_:[]};function c(f,d){u[f]==null||typeof u[f]=="boolean"?u[f]=d:Array.isArray(u[f])?u[f].push(d):u[f]=[u[f],d];}let p=[...t],l;for(;l=p.shift();){let f;if(/^--?/.test(l)){let d=l.replace(/^--?/,"");if(l.includes("=")){let[g,y]=d.split("=",2);d=g.trim(),f=y.trim();}d=r(d),d=a[d]??d,o.includes(d)?c(d,!0):(f=f??p.shift()??"",s.includes(d)&&(f=Number(f??0)),i.includes(d)?Array.isArray(u[d])?u[d].push(f):u[d]=[f]:c(d,f));}else u._.push(l);}return u}function ep(e){return new Promise((t,n)=>{import('child_process').then(({spawn:r})=>{let o=r("pbcopy");o.on("error",i=>n(i)),o.on("close",()=>t(e)),o.stdin.write(e),o.stdin.end();}).catch(()=>{});})}function rp(){try{typeof globalThis<"u"&&typeof globalThis.crypto>"u"&&Rt__default.default&&Rt__default.default.webcrypto&&(globalThis.crypto=Rt__default.default.webcrypto);}catch(e){console.warn("Failed to polyfill webcrypto",e);}}async function op(){if(globalThis.crypto==null)try{if(typeof globalThis<"u"&&typeof globalThis.crypto>"u"){let e=await import('crypto');globalThis.crypto=e.webcrypto;}}catch(e){console.warn("Failed to polyfill webcrypto",e);}return globalThis.crypto}var Ai=`
30
+ `,Ci=/^\s*([\w_.-]+)\s*=\s*(.*)?\s*$/,Ei=/\\n/g,Ui=/\n|\r|\r\n/;function Di(e,t={}){let n={};return String(e).split(Ui).forEach((r,o)=>{let i=r.match(Ci);if(i!=null){let s=i[1],a=i[2]||"",u=a.length-1,c=a[0]==='"'&&a[u]==='"';a[0]==="'"&&a[u]==="'"||c?(a=a.substring(1,u),c&&(a=a.replace(Ei,Ai))):a=a.trim(),n[s]=a;}}),n}function Fi(e,t="."){return path.resolve(Ze__default.default.cwd(),e??t)}function Si(e,t=""){return e==null&&(e=t),Fi(String(e).trim(),t)}var Mt=Si;function cp(e,t=Ze__default.default.env){if(t[e]!=null)return t[e];e=e.toLowerCase();for(let[n,r]of Object.entries(t))if(n.toLowerCase()===e)return r}function lp(e={}){let t=e?.path??Mt(e?.filename??".env"),n=e?.encoding??"utf8",r=e?.debug||!1;try{let s=function(u){return cr__default.default.existsSync(u)?Di(cr__default.default.readFileSync(u,{encoding:n}),{debug:r}):{}};var o=s;let i={};Object.assign(i,s(t),s(`${t}.local`)),e.mode&&Object.assign(i,s(`${t}.${e.mode}`),s(`${t}.${e.mode}.local`));let a=e?.env??Ze__default.default.env;return Object.entries(i).forEach(([u,c])=>{typeof e?.prefix=="string"&&(u=e?.prefix+u),Object.prototype.hasOwnProperty.call(a,u)||c!=null&&(a[u]=c);}),{parsed:i}}catch(i){return {error:i}}}function mp(e){let t=path.normalize(e),n=Ze__default.default.env.HOME;return n&&t.startsWith(n)?`~${t.slice(n.length)}`:t}async function Ot(e){try{await promises.stat(e);}catch{return !1}return !0}function We(e){return e.startsWith(".")||e.includes("/.")}async function yp(...e){let t=path.join(...e);return await Ot(t)||await promises.mkdir(t,{recursive:!0}),t}async function hp(...e){let t=path.join(...e);return await Ot(t)&&await promises.rm(t,{recursive:!0}),t}async function bp(...e){let t=path.join(...e);if(await Ot(t))return await promises.readFile(t,"utf-8")}async function xp(e,t){await promises.writeFile(e,t,"utf-8");}function qe(e,t){if(typeof e!="string")throw new TypeError("Expected a string");let n=String(e),r="",o=t?!!t.extended:!1,i=t?!!t.globstar:!1,s=!1,a=t&&typeof t.flags=="string"?t.flags:"",u;for(let c=0,p=n.length;c<p;c++)switch(u=n[c],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+=`\\${u}`;break;case"?":o&&(r+=".");break;case"[":case"]":o&&(r+=u);break;case"{":o&&(s=!0,r+="(");break;case"}":o&&(s=!1,r+=")");break;case",":s?r+="|":r+=`\\${u}`;break;case"*":{let l=n[c-1],f=1;for(;n[c+1]==="*";)f++,c++;let d=n[c+1];i?f>1&&(l==="/"||l===void 0)&&(d==="/"||d===void 0)?(r+="((?:[^/]*(?:/|$))*)",c++):r+="([^/]*)":r+=".*";}break;default:r+=u;}return (!a||!~a.indexOf("g"))&&(r=`^${r}$`),new RegExp(r,a)}function fr(e){try{return cr.statSync(e)}catch{}}function Up(e){let{mtimeMs:t,size:n}=fr(e)??{};return `${e}|${t}|${n}`}function pr(e,t="",n=!0){let r=[],o=cr.readdirSync(path.resolve(e,t));if(o!=null&&o.length>0)for(let i of o){if(i=path.join(t,i),n&&We(i))continue;let s=path.join(e,i),a=fr(s);a&&a.isDirectory()?r=r.concat(pr(e,i)||[]):r.push(i);}return r}function Dp(e={}){let{pattern:t,filter:n,basePath:r=Ze__default.default.cwd(),ignoreHidden:o=!1}=e,i=pr(r,"",o);if(i=i.filter(s=>!(o&&(s.startsWith(".")||s.includes("/.")))),t&&(typeof t=="string"&&(t=qe(t)),t instanceof RegExp)){let s=t;s.lastIndex=0,i=i.filter(a=>s.test(a));}return n&&(i=i.filter(n)),i}async function gr(e){try{return await promises.stat(e)}catch{}}async function Mp(e){let{mtimeMs:t,size:n}=await gr(e)??{};return `${e}|${t}|${n}`}async function mr(e,t="",n=!0){let r=[],o=await promises.readdir(path.resolve(e,t));if(o!=null&&o.length>0)for(let i of o){if(i=path.join(t,i),n&&We(i))continue;let s=path.join(e,i),a=await gr(s);a&&a.isDirectory()?r=r.concat(await mr(e,i)||[]):r.push(i);}return r}async function Bp(e={}){let{pattern:t,filter:n,basePath:r=Ze__default.default.cwd(),ignoreHidden:o=!1}=e,i=await mr(r,"",o);if(i=i.filter(s=>!(o&&(s.startsWith(".")||s.includes("/.")))),t&&(typeof t=="string"&&(t=qe(t)),t instanceof RegExp)){let s=t;s.lastIndex=0,i=i.filter(a=>s.test(a));}return n&&(i=i.filter(n)),i}var br=class{constructor(t={}){this.store={};this.fileKeys=void 0;this.pretty=!1;this.dirname=path.resolve(Ze__default.default.cwd(),t.path??".fileStorage"),this.pretty=!!t.pretty,this.extension=t.extension??".json",t.extension&&!this.extension.startsWith(".")&&(this.extension=`.${this.extension}`),this.extensionLength=this.extension.length,this.objectToString=t.objectToString??(n=>this.pretty?R(n,null,2):R(n)),this.objectFromString=t.objectFromString??(n=>{try{return JSON.parse(n)}catch{}}),this.keyToFilename=t.keyToFilename??hn;}setItem(t,n){this.store[t]=Q(n);try{let r=this.objectToString(n),o=this.getPath(t);cr.mkdirSync(path.dirname(o),{recursive:!0}),cr.writeFileSync(o,r,"utf8");}catch{}}getPath(t){return path.resolve(this.dirname,this.keyToFilename(t)+this.extension)}getBuffer(t){let n=this.getPath(t);return buffer.Buffer.from(cr.readFileSync(n))}getItem(t){let n=this.store[t];if(n!==null){if(n!=null)return Q(n);try{let r=this.getPath(t),o=cr.readFileSync(r,"utf8");if(o!=null){let i=this.objectFromString(o);return this.store[t]=i,i}}catch{this.store[t]=null;}}}removeItem(t){if(delete this.store[t],this.fileKeys!=null){let n=this.fileKeys.indexOf(t);n!==-1&&this.fileKeys.splice(n,1);}try{let n=this.getPath(t);cr.unlinkSync(n);}catch{}}clear(){this.fileKeys=[],this.store={},cr.rmSync(this.dirname,{recursive:!0,force:!0});}allKeys(){if(this.fileKeys==null)try{this.fileKeys=cr.readdirSync(this.dirname,{withFileTypes:!0}).filter(n=>!n.isDirectory()&&n.name.endsWith(this.extension)).map(n=>n.name.slice(0,-this.extensionLength))||[];}catch{}let t=[...this.fileKeys||[]];for(let n of Object.keys(this.store))t.includes(n)||t.push(n);return t.sort(),t}};var xr={};function wr(e,t={}){let{level:n=void 0,filter:r=void 0,time:o=!0,pretty:i=!1}=t;e=path.resolve(Ze__default.default.cwd(),e),cr.mkdirSync(path.dirname(e),{recursive:!0});let s=cr.createWriteStream(e,{flags:"a"}),a=O(r),u=j(n);return c=>{if(!u(c.level)||!a(c.name))return;let p=o?`${new Date().toISOString()} `:"",l=c.name||"",f=xr[l||""];f==null&&(xr[l]=f);let d=[`[${l||"*"}]`,Ae(c.messages,{pretty:i})];function g(...y){s.write(`${y.join(" ")}
31
31
  `);}switch(c.level){case 1:g(`${p}I|* `,...d);break;case 2:g(`${p}W|** `,...d);break;case 3:g(`${p}E|***`,...d);break;default:g(`${p}D| `,...d);break}}}function is(e){return typeof e!="string"?[]:e?.split(`
32
32
  `).map(t=>{let n=t.match(/^\s+at.*(\((.*)\)|file:\/\/(.*)$)|\s*at\s(\/.*)$/);if(n){let r=n[3]||n[2]||n[4];return r.endsWith(")")&&(r=r.slice(0,-1)),r}})?.filter(gn)??[]}function Lr(e){if(e.includes("/node_modules/"))return "";let t="file://";if(e.startsWith(t))return e.substr(t.length);let n=path.resolve(Ze__default.default.cwd());if(n&&e.startsWith(n))return e.substr(n.length+1);let r=Ze__default.default.env?.HOME?path.resolve(Ze__default.default.env?.HOME):"";return r&&e.startsWith(r)&&(e=`~/${e.substr(r.length+1)}`),e}function ss(e){let t=e.match(/^\s*at.*(\((.*)\)|file:\/\/(.*)$)|\s*at\s(\/.*)$/);if(t){let n=t[3]||t[2]||t[4];return n.endsWith(")")&&(n=n.slice(0,-1)),n}return ""}function _t(e=2,t=!0){let n=new Error("stack").stack||"",r=is(n)?.[e];return r&&t&&(r=Lr(r)),r||""}function vr(){return new Error("stack").stack||""}function Ar(e,t=!0){let n="",r=new Error("stack").stack||"";if(typeof r=="string"){let o=r.split(`
33
33
  `).map(s=>s.trim()),i=o.findIndex(s=>e.some(a=>s.startsWith(a)));n=o[i+1],n&&(n=ss(n)),n&&t&&(n=Lr(n));}return n}function us(){try{return H(Ze__default.default.env.ZEED_COLOR,as__default.default.isatty(Ze__default.default.stdout.fd))}catch{}return !1}var Nt,Cr=[6,2,3,4,5,1];function cs(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Cr[Math.abs(t)%Cr.length]}var Er={},jt;function Je(...e){Ze__default.default.stdout.write(`${Ae(e)}
@@ -59,41 +59,42 @@ exports.Logger = ps;
59
59
  exports.LoggerConsoleHandler = Pe;
60
60
  exports.LoggerContext = Un;
61
61
  exports.LoggerFileHandler = wr;
62
- exports.LoggerMemoryHandler = Fc;
62
+ exports.LoggerMemoryHandler = Sc;
63
63
  exports.LoggerNodeHandler = Fr;
64
64
  exports.MemStorage = ur;
65
65
  exports.NoopEncoder = er;
66
66
  exports.Progress = ye;
67
67
  exports.PubSub = Pt;
68
68
  exports.SerialQueue = ir;
69
- exports.Uint8ArrayToDataUri = va;
69
+ exports.Uint8ArrayToDataUri = Aa;
70
70
  exports.Uint8ArrayToHexDump = Qt;
71
71
  exports.Uint8ArrayToJson = ot;
72
72
  exports.Uint8ArrayToString = Jt;
73
- exports.Uint8ArrayToWords = ic;
73
+ exports.Uint8ArrayToWords = sc;
74
74
  exports.XRX = En;
75
75
  exports._decodeUtf8Polyfill = Hr;
76
76
  exports._encodeUtf8Polyfill = jr;
77
77
  exports._useBase = zr;
78
- exports.arrayAvg = Ns;
79
- exports.arrayBatches = js;
78
+ exports.arrayAvg = js;
79
+ exports.arrayBatches = Hs;
80
80
  exports.arrayEmptyInPlace = ks;
81
81
  exports.arrayFilterInPlace = nt;
82
82
  exports.arrayFlatten = Y;
83
83
  exports.arrayIntersection = Br;
84
84
  exports.arrayIsEqual = $r;
85
- exports.arrayMax = Os;
86
- exports.arrayMin = $s;
85
+ exports.arrayMax = $s;
86
+ exports.arrayMin = _s;
87
87
  exports.arrayMinus = Ir;
88
- exports.arrayRandomElement = Bs;
88
+ exports.arrayRandomElement = Os;
89
89
  exports.arrayRemoveElement = Gt;
90
+ exports.arraySetArrayInPlace = Rs;
90
91
  exports.arraySetElement = Ss;
91
- exports.arrayShuffle = Is;
92
- exports.arrayShuffleForce = Ms;
92
+ exports.arrayShuffle = Ms;
93
+ exports.arrayShuffleForce = Bs;
93
94
  exports.arrayShuffleInPlace = Wt;
94
95
  exports.arraySorted = Or;
95
- exports.arraySortedNumbers = Rs;
96
- exports.arraySum = _s;
96
+ exports.arraySortedNumbers = Is;
97
+ exports.arraySum = Ns;
97
98
  exports.arraySymmetricDifference = Fs;
98
99
  exports.arrayToggleInPlace = Ps;
99
100
  exports.arrayUnion = Mr;
@@ -102,114 +103,114 @@ exports.assert = ko;
102
103
  exports.assertCondition = Pn;
103
104
  exports.avg = xs;
104
105
  exports.between = bs;
105
- exports.bitfield = Qc;
106
+ exports.bitfield = Xc;
106
107
  exports.blobToArrayBuffer = Wo;
107
- exports.blobToDataUri = La;
108
- exports.blobToUint8Array = Xc;
109
- exports.browserSelectColorByName = Lc;
110
- exports.cloneJsonObject = ru;
108
+ exports.blobToDataUri = va;
109
+ exports.blobToUint8Array = el;
110
+ exports.browserSelectColorByName = vc;
111
+ exports.cloneJsonObject = ou;
111
112
  exports.cloneObject = Q;
112
113
  exports.cmp = et;
113
114
  exports.colorString = he;
114
115
  exports.colorStringList = Ur;
115
116
  exports.composeOrderby = As;
116
- exports.createArray = Hs;
117
- exports.createBinaryStreamDecoder = Yc;
118
- exports.createBinaryStreamEncoder = Kc;
119
- exports.createLocalChannelPair = Nl;
117
+ exports.createArray = Vs;
118
+ exports.createBinaryStreamDecoder = Qc;
119
+ exports.createBinaryStreamEncoder = Yc;
120
+ exports.createLocalChannelPair = jl;
120
121
  exports.createPromise = rn;
121
122
  exports.createPromiseProxy = nr;
122
123
  exports.csvParse = Zo;
123
- exports.csvParseToObjects = al;
124
- exports.csvStringify = sl;
125
- exports.dataUriToBlob = Ta;
126
- exports.dataUriToMimeType = wa;
127
- exports.dataUriToUint8Array = xa;
128
- exports.dateStringToDays = Ga;
129
- exports.day = za;
124
+ exports.csvParseToObjects = ul;
125
+ exports.csvStringify = al;
126
+ exports.dataUriToBlob = La;
127
+ exports.dataUriToMimeType = Ta;
128
+ exports.dataUriToUint8Array = wa;
129
+ exports.dateStringToDays = Wa;
130
+ exports.day = Ga;
130
131
  exports.dayDay = Zr;
131
- exports.dayDiff = Oa;
132
- exports.dayFromAny = ka;
132
+ exports.dayDiff = $a;
133
+ exports.dayFromAny = Ra;
133
134
  exports.dayFromDate = Ee;
134
- exports.dayFromDateGMT = Ia;
135
+ exports.dayFromDateGMT = Ma;
135
136
  exports.dayFromParts = lt;
136
137
  exports.dayFromString = ln;
137
138
  exports.dayFromTimestamp = Kr;
138
139
  exports.dayFromToday = cn;
139
- exports.dayIterator = _a;
140
+ exports.dayIterator = Na;
140
141
  exports.dayMonth = an;
141
- exports.dayMonthStart = Ma;
142
+ exports.dayMonthStart = Ba;
142
143
  exports.dayOffset = Ce;
143
- exports.dayRange = $a;
144
+ exports.dayRange = _a;
144
145
  exports.dayToDate = un;
145
- exports.dayToDateGMT = Ra;
146
- exports.dayToParts = Pa;
146
+ exports.dayToDateGMT = Ia;
147
+ exports.dayToParts = ka;
147
148
  exports.dayToString = Yr;
148
149
  exports.dayToTimestamp = ut;
149
150
  exports.dayYear = ct;
150
- exports.dayYearStart = Ba;
151
- exports.debounce = Cf;
151
+ exports.dayYearStart = Oa;
152
+ exports.debounce = Ef;
152
153
  exports.deburr = Tn;
153
154
  exports.decimal = Qr;
154
- exports.decimalCentsPart = Za;
155
- exports.decimalFromCents = qa;
156
- exports.decimalToCents = Ja;
157
- exports.decodeBase16 = ea;
155
+ exports.decimalCentsPart = Ka;
156
+ exports.decimalFromCents = Ja;
157
+ exports.decimalToCents = Za;
158
+ exports.decodeBase16 = ta;
158
159
  exports.decodeBase32 = Xt;
159
- exports.decodeBase58 = na;
160
+ exports.decodeBase58 = ra;
160
161
  exports.decodeBase62 = en;
161
- exports.decodeJson = Zc;
162
+ exports.decodeJson = Kc;
162
163
  exports.decrypt = Zn;
163
164
  exports.deepEqual = eo;
164
165
  exports.deepMerge = Fe;
165
166
  exports.deepStripUndefinedInPlace = to;
166
- exports.deriveKeyPbkdf2 = rl;
167
- exports.detect = Hf;
167
+ exports.deriveKeyPbkdf2 = ol;
168
+ exports.detect = Vf;
168
169
  exports.diffObjects = no;
169
- exports.digest = nl;
170
- exports.duration = Cc;
171
- exports.empty = nu;
172
- exports.encodeBase16 = Xs;
170
+ exports.digest = rl;
171
+ exports.duration = Ec;
172
+ exports.empty = ru;
173
+ exports.encodeBase16 = ea;
173
174
  exports.encodeBase32 = it;
174
- exports.encodeBase58 = ta;
175
+ exports.encodeBase58 = na;
175
176
  exports.encodeBase62 = st;
176
- exports.encodeJson = Jc;
177
+ exports.encodeJson = Zc;
177
178
  exports.encodeQuery = Ln;
178
179
  exports.encrypt = Jn;
179
180
  exports.endSortWeight = wn;
180
- exports.ensureFolder = mp;
181
- exports.ensureKey = Qa;
182
- exports.ensureKeyAsync = Xa;
181
+ exports.ensureFolder = yp;
182
+ exports.ensureKey = Xa;
183
+ exports.ensureKeyAsync = eu;
183
184
  exports.equalBinary = Yt;
184
185
  exports.escapeHTML = mn;
185
186
  exports.escapeRegExp = Se;
186
- exports.estimateSizeForBase = ra;
187
+ exports.estimateSizeForBase = oa;
187
188
  exports.exists = Ot;
188
189
  exports.fatal = Po;
189
190
  exports.fetchBasic = sr;
190
- exports.fetchJson = Bf;
191
+ exports.fetchJson = Of;
191
192
  exports.fetchOptionsBasicAuth = xi;
192
- exports.fetchOptionsFormURLEncoded = $f;
193
- exports.fetchOptionsJson = _f;
194
- exports.fetchText = Of;
195
- exports.files = Up;
196
- exports.filesAsync = Mp;
197
- exports.first = eu;
198
- exports.fixBrokenUth8String = ya;
199
- exports.forEachDay = Ha;
200
- exports.forTimes = su;
193
+ exports.fetchOptionsFormURLEncoded = _f;
194
+ exports.fetchOptionsJson = Nf;
195
+ exports.fetchText = $f;
196
+ exports.files = Dp;
197
+ exports.filesAsync = Bp;
198
+ exports.first = tu;
199
+ exports.fixBrokenUth8String = ha;
200
+ exports.forEachDay = Va;
201
+ exports.forTimes = au;
201
202
  exports.formatMessages = Jr;
202
203
  exports.formatMilliseconds = mt;
203
204
  exports.fromBase64 = Le;
204
- exports.fromBase64String = Ks;
205
- exports.fromCamelCase = sa;
205
+ exports.fromBase64String = Ys;
206
+ exports.fromCamelCase = aa;
206
207
  exports.fromHex = Kt;
207
- exports.getEnvVariableRelaxed = up;
208
- exports.getFingerprint = Ep;
209
- exports.getFingerprintAsync = Ip;
210
- exports.getGlobal = jf;
208
+ exports.getEnvVariableRelaxed = cp;
209
+ exports.getFingerprint = Up;
210
+ exports.getFingerprintAsync = Mp;
211
+ exports.getGlobal = Hf;
211
212
  exports.getGlobalContext = J;
212
- exports.getGlobalEmitter = Al;
213
+ exports.getGlobalEmitter = Cl;
213
214
  exports.getGlobalLogger = gt;
214
215
  exports.getGlobalLoggerIfExists = Dn;
215
216
  exports.getNamespaceFilterString = Do;
@@ -224,10 +225,10 @@ exports.getStackLlocationList = is;
224
225
  exports.getStat = fr;
225
226
  exports.getStatAsync = gr;
226
227
  exports.getTimestamp = G;
227
- exports.getWebCrypto = rp;
228
+ exports.getWebCrypto = op;
228
229
  exports.getWindow = ar;
229
230
  exports.globToRegExp = qe;
230
- exports.immediate = Ea;
231
+ exports.immediate = Ua;
231
232
  exports.isArray = $;
232
233
  exports.isBoolean = dn;
233
234
  exports.isBrowser = Ti;
@@ -235,12 +236,12 @@ exports.isEmpty = Xr;
235
236
  exports.isEven = bn;
236
237
  exports.isHalf = le;
237
238
  exports.isHiddenPath = We;
238
- exports.isInteger = lu;
239
- exports.isLocalHost = Pf;
240
- exports.isNotEmpty = mu;
239
+ exports.isInteger = fu;
240
+ exports.isLocalHost = kf;
241
+ exports.isNotEmpty = yu;
241
242
  exports.isNotNull = gn;
242
- exports.isNull = du;
243
- exports.isNullOrUndefined = pu;
243
+ exports.isNull = gu;
244
+ exports.isNullOrUndefined = du;
244
245
  exports.isNumber = pn;
245
246
  exports.isObject = B;
246
247
  exports.isPrime = Ts;
@@ -248,122 +249,122 @@ exports.isPrimeRX = ws;
248
249
  exports.isPrimitive = ft;
249
250
  exports.isPromise = P;
250
251
  exports.isRecord = Ue;
251
- exports.isRecordPlain = cu;
252
- exports.isSafeInteger = fu;
252
+ exports.isRecordPlain = lu;
253
+ exports.isSafeInteger = pu;
253
254
  exports.isString = De;
254
- exports.isTimeout = Da;
255
- exports.isTruthy = hu;
256
- exports.isUint8Array = gu;
257
- exports.isValue = yu;
255
+ exports.isTimeout = Fa;
256
+ exports.isTruthy = bu;
257
+ exports.isUint8Array = mu;
258
+ exports.isValue = hu;
258
259
  exports.joinLogStrings = fe;
259
- exports.joinToUint8Array = Js;
260
- exports.jsonStringify = Gs;
260
+ exports.joinToUint8Array = Zs;
261
+ exports.jsonStringify = Ws;
261
262
  exports.jsonStringifySafe = R;
262
- exports.jsonStringifySorted = zs;
263
+ exports.jsonStringifySorted = Gs;
263
264
  exports.jsonToUint8Array = rt;
264
- exports.last = tu;
265
- exports.lazyListener = Cl;
266
- exports.linkifyPlainText = ec;
267
- exports.listDistinctUnion = Eu;
268
- exports.listGroupBy = Cu;
269
- exports.listOfKey = Uu;
270
- exports.listQuery = Au;
265
+ exports.last = nu;
266
+ exports.lazyListener = El;
267
+ exports.linkifyPlainText = tc;
268
+ exports.listDistinctUnion = Uu;
269
+ exports.listGroupBy = Eu;
270
+ exports.listOfKey = Du;
271
+ exports.listQuery = Cu;
271
272
  exports.loggerStackTraceDebug = fs;
272
- exports.memoize = ou;
273
- exports.memoizeAsync = iu;
274
- exports.moveSortWeight = qu;
275
- exports.noop = qf;
276
- exports.objectIsEmpty = ku;
277
- exports.objectMap = Su;
278
- exports.objectMergeDisposable = Pu;
279
- exports.parseArgs = Yf;
273
+ exports.memoize = iu;
274
+ exports.memoizeAsync = su;
275
+ exports.moveSortWeight = Ju;
276
+ exports.noop = Jf;
277
+ exports.objectIsEmpty = Ru;
278
+ exports.objectMap = Pu;
279
+ exports.objectMergeDisposable = ku;
280
+ exports.parseArgs = Qf;
280
281
  exports.parseBasicAuth = bi;
281
- exports.parseDate = Ac;
282
+ exports.parseDate = Cc;
282
283
  exports.parseLogLevel = pt;
283
284
  exports.parseOrderby = Rr;
284
- exports.parseQuery = tc;
285
- exports.pbcopy = Xf;
285
+ exports.parseQuery = nc;
286
+ exports.pbcopy = ep;
286
287
  exports.promisify = V;
287
- exports.qid = Bl;
288
+ exports.qid = Ol;
288
289
  exports.randomBoolean = ms;
289
290
  exports.randomFloat = hs;
290
291
  exports.randomInt = ys;
291
292
  exports.randomUint8Array = oe;
292
- exports.readText = hp;
293
- exports.regExpEscape = uc;
293
+ exports.readText = bp;
294
+ exports.regExpEscape = cc;
294
295
  exports.regExpString = Uo;
295
- exports.removeFolder = yp;
296
+ exports.removeFolder = hp;
296
297
  exports.renderMessages = Ae;
297
- exports.roundDown = $u;
298
- exports.roundHalfAwayFromZero = ju;
299
- exports.roundHalfDown = Hu;
300
- exports.roundHalfEven = Vu;
301
- exports.roundHalfOdd = Nu;
302
- exports.roundHalfTowardsZero = zu;
303
- exports.roundHalfUp = _u;
304
- exports.roundUp = Ou;
298
+ exports.roundDown = _u;
299
+ exports.roundHalfAwayFromZero = Hu;
300
+ exports.roundHalfDown = Vu;
301
+ exports.roundHalfEven = zu;
302
+ exports.roundHalfOdd = ju;
303
+ exports.roundHalfTowardsZero = Gu;
304
+ exports.roundHalfUp = Nu;
305
+ exports.roundUp = $u;
305
306
  exports.seededRandom = Ls;
306
- exports.setUuidDefaultEncoding = Il;
307
- exports.setupEnv = cp;
308
- exports.setupWebCrypto = np;
307
+ exports.setUuidDefaultEncoding = Ml;
308
+ exports.setupEnv = lp;
309
+ exports.setupWebCrypto = rp;
309
310
  exports.size = fn;
310
- exports.sleep = Ca;
311
+ exports.sleep = Ea;
311
312
  exports.sortedItems = co;
312
313
  exports.sortedOrderby = Cs;
313
314
  exports.startSortWeight = xn;
314
- exports.stringToBoolean = ca;
315
- exports.stringToFloat = fa;
316
- exports.stringToInteger = la;
315
+ exports.stringToBoolean = la;
316
+ exports.stringToFloat = pa;
317
+ exports.stringToInteger = fa;
317
318
  exports.stringToPath = Fi;
318
319
  exports.stringToUInt8Array = qt;
319
- exports.suid = Pl;
320
+ exports.suid = kl;
320
321
  exports.suidBytes = Yn;
321
322
  exports.suidBytesDate = ui;
322
- exports.suidDate = kl;
323
+ exports.suidDate = Rl;
323
324
  exports.sum = kr;
324
- exports.throttle = Af;
325
- exports.timeout = Ua;
325
+ exports.throttle = Cf;
326
+ exports.timeout = Da;
326
327
  exports.toBase64 = ce;
327
- exports.toBase64Url = Zs;
328
- exports.toBool = ma;
328
+ exports.toBase64Url = Ks;
329
+ exports.toBool = ya;
329
330
  exports.toCamelCase = tn;
330
331
  exports.toCapitalize = Gr;
331
- exports.toCapitalizeWords = ia;
332
- exports.toFloat = pa;
332
+ exports.toCapitalizeWords = sa;
333
+ exports.toFloat = da;
333
334
  exports.toHex = Zt;
334
- exports.toHumanReadableFilePath = gp;
335
+ exports.toHumanReadableFilePath = mp;
335
336
  exports.toHumanReadableUrl = Ao;
336
- exports.toInt = da;
337
+ exports.toInt = ga;
337
338
  exports.toPath = Mt;
338
- exports.toString = ga;
339
+ exports.toString = ma;
339
340
  exports.toUint8Array = v;
340
341
  exports.toValidFilename = hn;
341
- exports.today = Va;
342
+ exports.today = za;
342
343
  exports.tryTimeout = on;
343
344
  exports.uname = M;
344
- exports.unescapeHTML = Lu;
345
- exports.useAsyncMutex = hl;
345
+ exports.unescapeHTML = vu;
346
+ exports.useAsyncMutex = bl;
346
347
  exports.useBase = N;
347
- exports.useDefer = dl;
348
+ exports.useDefer = gl;
348
349
  exports.useDispose = ie;
349
- exports.useDisposeWithUtils = Ff;
350
+ exports.useDisposeWithUtils = Sf;
350
351
  exports.useEventListener = yi;
351
352
  exports.useEventListenerOnce = hi;
352
- exports.useExitHandler = Vf;
353
+ exports.useExitHandler = zf;
353
354
  exports.useInterval = gi;
354
355
  exports.useIntervalPause = mi;
355
356
  exports.useLevelFilter = j;
356
- exports.useMessageHub = Kl;
357
- exports.useMutex = yl;
357
+ exports.useMessageHub = Yl;
358
+ exports.useMutex = hl;
358
359
  exports.useNamespaceFilter = O;
359
- exports.usePool = hf;
360
- exports.usePubSub = nf;
361
- exports.useRPC = of;
362
- exports.useRPCHub = sf;
363
- exports.useSorted = Ku;
360
+ exports.usePool = bf;
361
+ exports.usePubSub = rf;
362
+ exports.useRPC = sf;
363
+ exports.useRPCHub = af;
364
+ exports.useSorted = Yu;
364
365
  exports.useTimeout = di;
365
366
  exports.uuid = q;
366
- exports.uuid32bit = Rl;
367
+ exports.uuid32bit = Il;
367
368
  exports.uuidB32 = ei;
368
369
  exports.uuidB62 = Yo;
369
370
  exports.uuidBytes = Dt;
@@ -375,17 +376,17 @@ exports.uuidEncode = ci;
375
376
  exports.uuidEncodeB32 = ti;
376
377
  exports.uuidEncodeB62 = Qo;
377
378
  exports.uuidEncodeV4 = ii;
378
- exports.uuidIsValid = Ml;
379
+ exports.uuidIsValid = Bl;
379
380
  exports.uuidv4 = oi;
380
381
  exports.valueToBoolean = H;
381
382
  exports.valueToFloat = qr;
382
383
  exports.valueToInteger = Wr;
383
384
  exports.valueToPath = Si;
384
385
  exports.valueToString = at;
385
- exports.waitOn = Fa;
386
+ exports.waitOn = Sa;
386
387
  exports.walkSync = pr;
387
388
  exports.walkSyncAsync = mr;
388
- exports.wordsToUint8Array = sc;
389
- exports.writeText = bp;
389
+ exports.wordsToUint8Array = ac;
390
+ exports.writeText = xp;
390
391
  //# sourceMappingURL=out.js.map
391
392
  //# sourceMappingURL=index.node.cjs.map