From f6c1cef27392d00941df98fb2422a322f4f3b792 Mon Sep 17 00:00:00 2001 From: beeequeue Date: Thu, 31 Oct 2024 22:05:47 +0000 Subject: [PATCH] deploy: 54653f6cf2fef44521f7580d8c275be067d28ab9 --- assets/{index-CfTK7HIp.js => index-Bz9w6lxo.js} | 8 ++++---- index.html | 2 +- sw.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename assets/{index-CfTK7HIp.js => index-Bz9w6lxo.js} (58%) diff --git a/assets/index-CfTK7HIp.js b/assets/index-Bz9w6lxo.js similarity index 58% rename from assets/index-CfTK7HIp.js rename to assets/index-Bz9w6lxo.js index 4a4c892..2b48d63 100644 --- a/assets/index-CfTK7HIp.js +++ b/assets/index-Bz9w6lxo.js @@ -1,8 +1,8 @@ -import{p as y,t as Z,s as J,a as he,b as T,c as ot,d as xe,e as hr,f as dr,l as zt,g as tr,i as er,h as Bt,j as Be,k as et,m as lt,n as gr,o as Le,q as ke,r as Me,u as pr,v as F,$ as He,w as we,x as be,y as ft,z as Ot,A as ht,B as m,C as it,D as mr,E as rr,F as ee,G as Se,H as Je,I as yr,J as Ye,K as rt,L as Mt,M as wr,N as ut,O as br,P as Xt,Q as Dt,R as qt,S as Lt,T as xr,U as De,V as Br,W as At,X as Ne,Y as Er,Z as _r,_ as Ce,a0 as Xe,a1 as Ze,a2 as Ir}from"./svelte-BQhP905-.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))h(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const g of p.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&h(g)}).observe(document,{childList:!0,subtree:!0});function f(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function h(d){if(d.ep)return;d.ep=!0;const p=f(d);fetch(d.href,p)}})();var wt={},Ee={};Ee.byteLength=Fr;Ee.toByteArray=Or;Ee.fromByteArray=Tr;var kt=[],_t=[],vr=typeof Uint8Array<"u"?Uint8Array:Array,Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var re=0,Ur=Te.length;re0)throw new Error("Invalid string. Length must be a multiple of 4");var f=l.indexOf("=");f===-1&&(f=r);var h=f===r?0:4-f%4;return[f,h]}function Fr(l){var r=nr(l),f=r[0],h=r[1];return(f+h)*3/4-h}function Ar(l,r,f){return(r+f)*3/4-f}function Or(l){var r,f=nr(l),h=f[0],d=f[1],p=new vr(Ar(l,h,d)),g=0,o=d>0?h-4:h,b;for(b=0;b>16&255,p[g++]=r>>8&255,p[g++]=r&255;return d===2&&(r=_t[l.charCodeAt(b)]<<2|_t[l.charCodeAt(b+1)]>>4,p[g++]=r&255),d===1&&(r=_t[l.charCodeAt(b)]<<10|_t[l.charCodeAt(b+1)]<<4|_t[l.charCodeAt(b+2)]>>2,p[g++]=r>>8&255,p[g++]=r&255),p}function Sr(l){return kt[l>>18&63]+kt[l>>12&63]+kt[l>>6&63]+kt[l&63]}function Cr(l,r,f){for(var h,d=[],p=r;po?o:g+p));return h===1?(r=l[f-1],d.push(kt[r>>2]+kt[r<<4&63]+"==")):h===2&&(r=(l[f-2]<<8)+l[f-1],d.push(kt[r>>10]+kt[r>>4&63]+kt[r<<2&63]+"=")),d.join("")}var Re={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Re.read=function(l,r,f,h,d){var p,g,o=d*8-h-1,b=(1<>1,w=-7,E=f?d-1:0,S=f?-1:1,k=l[r+E];for(E+=S,p=k&(1<<-w)-1,k>>=-w,w+=o;w>0;p=p*256+l[r+E],E+=S,w-=8);for(g=p&(1<<-w)-1,p>>=-w,w+=h;w>0;g=g*256+l[r+E],E+=S,w-=8);if(p===0)p=1-x;else{if(p===b)return g?NaN:(k?-1:1)*(1/0);g=g+Math.pow(2,h),p=p-x}return(k?-1:1)*g*Math.pow(2,p-h)};Re.write=function(l,r,f,h,d,p){var g,o,b,x=p*8-d-1,w=(1<>1,S=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=h?0:p-1,K=h?1:-1,Q=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(o=isNaN(r)?1:0,g=w):(g=Math.floor(Math.log(r)/Math.LN2),r*(b=Math.pow(2,-g))<1&&(g--,b*=2),g+E>=1?r+=S/b:r+=S*Math.pow(2,1-E),r*b>=2&&(g++,b/=2),g+E>=w?(o=0,g=w):g+E>=1?(o=(r*b-1)*Math.pow(2,d),g=g+E):(o=r*Math.pow(2,E-1)*Math.pow(2,d),g=0));d>=8;l[f+k]=o&255,k+=K,o/=256,d-=8);for(g=g<0;l[f+k]=g&255,k+=K,g/=256,x-=8);l[f+k-K]|=Q*128};/*! +import{p as y,t as Z,s as J,a as he,b as T,c as ot,d as xe,e as hr,f as dr,l as zt,g as tr,i as er,h as Bt,j as Be,k as et,m as lt,n as gr,o as ke,q as Le,r as Me,u as pr,v as F,$ as He,w as we,x as be,y as ft,z as Ot,A as ht,B as m,C as it,D as mr,E as rr,F as ee,G as Se,H as Je,I as yr,J as Ye,K as rt,L as Mt,M as wr,N as ut,O as br,P as Xt,Q as Dt,R as qt,S as kt,T as xr,U as De,V as Br,W as At,X as Ne,Y as Er,Z as Ir,_ as Ce,a0 as Xe,a1 as Ze,a2 as _r}from"./svelte-BQhP905-.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))h(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const g of p.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&h(g)}).observe(document,{childList:!0,subtree:!0});function c(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function h(d){if(d.ep)return;d.ep=!0;const p=c(d);fetch(d.href,p)}})();var wt={},Ee={};Ee.byteLength=Fr;Ee.toByteArray=Or;Ee.fromByteArray=Tr;var Lt=[],It=[],vr=typeof Uint8Array<"u"?Uint8Array:Array,Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var re=0,Ur=Te.length;re0)throw new Error("Invalid string. Length must be a multiple of 4");var c=l.indexOf("=");c===-1&&(c=r);var h=c===r?0:4-c%4;return[c,h]}function Fr(l){var r=nr(l),c=r[0],h=r[1];return(c+h)*3/4-h}function Ar(l,r,c){return(r+c)*3/4-c}function Or(l){var r,c=nr(l),h=c[0],d=c[1],p=new vr(Ar(l,h,d)),g=0,o=d>0?h-4:h,b;for(b=0;b>16&255,p[g++]=r>>8&255,p[g++]=r&255;return d===2&&(r=It[l.charCodeAt(b)]<<2|It[l.charCodeAt(b+1)]>>4,p[g++]=r&255),d===1&&(r=It[l.charCodeAt(b)]<<10|It[l.charCodeAt(b+1)]<<4|It[l.charCodeAt(b+2)]>>2,p[g++]=r>>8&255,p[g++]=r&255),p}function Sr(l){return Lt[l>>18&63]+Lt[l>>12&63]+Lt[l>>6&63]+Lt[l&63]}function Cr(l,r,c){for(var h,d=[],p=r;po?o:g+p));return h===1?(r=l[c-1],d.push(Lt[r>>2]+Lt[r<<4&63]+"==")):h===2&&(r=(l[c-2]<<8)+l[c-1],d.push(Lt[r>>10]+Lt[r>>4&63]+Lt[r<<2&63]+"=")),d.join("")}var Re={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Re.read=function(l,r,c,h,d){var p,g,o=d*8-h-1,b=(1<>1,w=-7,E=c?d-1:0,S=c?-1:1,L=l[r+E];for(E+=S,p=L&(1<<-w)-1,L>>=-w,w+=o;w>0;p=p*256+l[r+E],E+=S,w-=8);for(g=p&(1<<-w)-1,p>>=-w,w+=h;w>0;g=g*256+l[r+E],E+=S,w-=8);if(p===0)p=1-x;else{if(p===b)return g?NaN:(L?-1:1)*(1/0);g=g+Math.pow(2,h),p=p-x}return(L?-1:1)*g*Math.pow(2,p-h)};Re.write=function(l,r,c,h,d,p){var g,o,b,x=p*8-d-1,w=(1<>1,S=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=h?0:p-1,K=h?1:-1,Q=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(o=isNaN(r)?1:0,g=w):(g=Math.floor(Math.log(r)/Math.LN2),r*(b=Math.pow(2,-g))<1&&(g--,b*=2),g+E>=1?r+=S/b:r+=S*Math.pow(2,1-E),r*b>=2&&(g++,b/=2),g+E>=w?(o=0,g=w):g+E>=1?(o=(r*b-1)*Math.pow(2,d),g=g+E):(o=r*Math.pow(2,E-1)*Math.pow(2,d),g=0));d>=8;l[c+L]=o&255,L+=K,o/=256,d-=8);for(g=g<0;l[c+L]=g&255,L+=K,g/=256,x-=8);l[c+L-K]|=Q*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(l){const r=Ee,f=Re,h=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=o,l.SlowBuffer=O,l.INSPECT_MAX_BYTES=50;const d=2147483647;l.kMaxLength=d,o.TYPED_ARRAY_SUPPORT=p(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const n=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(n,t),n.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function g(n){if(n>d)throw new RangeError('The value "'+n+'" is invalid for option "size"');const t=new Uint8Array(n);return Object.setPrototypeOf(t,o.prototype),t}function o(n,t,e){if(typeof n=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(n)}return b(n,t,e)}o.poolSize=8192;function b(n,t,e){if(typeof n=="string")return S(n,t);if(ArrayBuffer.isView(n))return K(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(bt(n,ArrayBuffer)||n&&bt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(bt(n,SharedArrayBuffer)||n&&bt(n.buffer,SharedArrayBuffer)))return Q(n,t,e);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const i=n.valueOf&&n.valueOf();if(i!=null&&i!==n)return o.from(i,t,e);const s=st(n);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return o.from(n[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}o.from=function(n,t,e){return b(n,t,e)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function x(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function w(n,t,e){return x(n),n<=0?g(n):t!==void 0?typeof e=="string"?g(n).fill(t,e):g(n).fill(t):g(n)}o.alloc=function(n,t,e){return w(n,t,e)};function E(n){return x(n),g(n<0?0:U(n)|0)}o.allocUnsafe=function(n){return E(n)},o.allocUnsafeSlow=function(n){return E(n)};function S(n,t){if((typeof t!="string"||t==="")&&(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=_(n,t)|0;let i=g(e);const s=i.write(n,t);return s!==e&&(i=i.slice(0,s)),i}function k(n){const t=n.length<0?0:U(n.length)|0,e=g(t);for(let i=0;i=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return n|0}function O(n){return+n!=n&&(n=0),o.alloc(+n)}o.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==o.prototype},o.compare=function(t,e){if(bt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),bt(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,s=e.length;for(let a=0,c=Math.min(i,s);as.length?(o.isBuffer(c)||(c=o.from(c)),c.copy(s,a)):Uint8Array.prototype.set.call(s,c,a);else if(o.isBuffer(c))c.copy(s,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=c.length}return s};function _(n,t){if(o.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||bt(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const e=n.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;let s=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return ue(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Vt(n).length;default:if(s)return i?-1:ue(n).length;t=(""+t).toLowerCase(),s=!0}}o.byteLength=_;function V(n,t,e){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(n||(n="utf8");;)switch(n){case"hex":return dt(this,t,e);case"utf8":case"utf-8":return Qt(this,t,e);case"ascii":return _e(this,t,e);case"latin1":case"binary":return de(this,t,e);case"base64":return le(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pt(this,t,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}o.prototype._isBuffer=!0;function W(n,t,e){const i=n[t];n[t]=n[e],n[e]=i}o.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""},h&&(o.prototype[h]=o.prototype.inspect),o.prototype.compare=function(t,e,i,s,a){if(bt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),i===void 0&&(i=t?t.length:0),s===void 0&&(s=0),a===void 0&&(a=this.length),e<0||i>t.length||s<0||a>this.length)throw new RangeError("out of range index");if(s>=a&&e>=i)return 0;if(s>=a)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,s>>>=0,a>>>=0,this===t)return 0;let c=a-s,A=i-e;const q=Math.min(c,A),R=this.slice(s,a),z=t.slice(e,i);for(let P=0;P2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,ce(e)&&(e=s?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(s)return-1;e=n.length-1}else if(e<0)if(s)e=0;else return-1;if(typeof t=="string"&&(t=o.from(t,i)),o.isBuffer(t))return t.length===0?-1:nt(n,t,e,i,s);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):nt(n,[t],e,i,s);throw new TypeError("val must be string, number or Buffer")}function nt(n,t,e,i,s){let a=1,c=n.length,A=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(n.length<2||t.length<2)return-1;a=2,c/=2,A/=2,e/=2}function q(z,P){return a===1?z[P]:z.readUInt16BE(P*a)}let R;if(s){let z=-1;for(R=e;Rc&&(e=c-A),R=e;R>=0;R--){let z=!0;for(let P=0;Ps&&(i=s)):i=s;const a=t.length;i>a/2&&(i=a/2);let c;for(c=0;c>>0,isFinite(i)?(i=i>>>0,s===void 0&&(s="utf8")):(s=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const a=this.length-e;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let c=!1;for(;;)switch(s){case"hex":return ne(this,t,e,i);case"utf8":case"utf-8":return Zt(this,t,e,i);case"ascii":case"latin1":case"binary":return St(this,t,e,i);case"base64":return ie(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,t,e,i);default:if(c)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),c=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(n,t,e){return t===0&&e===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(t,e))}function Qt(n,t,e){e=Math.min(n.length,e);const i=[];let s=t;for(;s239?4:a>223?3:a>191?2:1;if(s+A<=e){let q,R,z,P;switch(A){case 1:a<128&&(c=a);break;case 2:q=n[s+1],(q&192)===128&&(P=(a&31)<<6|q&63,P>127&&(c=P));break;case 3:q=n[s+1],R=n[s+2],(q&192)===128&&(R&192)===128&&(P=(a&15)<<12|(q&63)<<6|R&63,P>2047&&(P<55296||P>57343)&&(c=P));break;case 4:q=n[s+1],R=n[s+2],z=n[s+3],(q&192)===128&&(R&192)===128&&(z&192)===128&&(P=(a&15)<<18|(q&63)<<12|(R&63)<<6|z&63,P>65535&&P<1114112&&(c=P))}}c===null?(c=65533,A=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|c&1023),i.push(c),s+=A}return se(i)}const Rt=4096;function se(n){const t=n.length;if(t<=Rt)return String.fromCharCode.apply(String,n);let e="",i=0;for(;ii)&&(e=i);let s="";for(let a=t;ai&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),ee)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(t,e,i){t=t>>>0,e=e>>>0,i||v(t,e,this.length);let s=this[t],a=1,c=0;for(;++c>>0,e=e>>>0,i||v(t,e,this.length);let s=this[t+--e],a=1;for(;e>0&&(a*=256);)s+=this[t+--e]*a;return s},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t=t>>>0,e||v(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||v(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||v(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||v(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=Tt(function(t){t=t>>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(s)+(BigInt(a)<>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(s)<>>0,e=e>>>0,i||v(t,e,this.length);let s=this[t],a=1,c=0;for(;++c=a&&(s-=Math.pow(2,8*e)),s},o.prototype.readIntBE=function(t,e,i){t=t>>>0,e=e>>>0,i||v(t,e,this.length);let s=e,a=1,c=this[t+--s];for(;s>0&&(a*=256);)c+=this[t+--s]*a;return a*=128,c>=a&&(c-=Math.pow(2,8*e)),c},o.prototype.readInt8=function(t,e){return t=t>>>0,e||v(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,e){t=t>>>0,e||v(t,2,this.length);const i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i},o.prototype.readInt16BE=function(t,e){t=t>>>0,e||v(t,2,this.length);const i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i},o.prototype.readInt32LE=function(t,e){return t=t>>>0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t=t>>>0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=Tt(function(t){t=t>>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(s)<>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(s)<>>0,e||v(t,4,this.length),f.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t=t>>>0,e||v(t,4,this.length),f.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||v(t,8,this.length),f.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||v(t,8,this.length),f.read(this,t,!1,52,8)};function at(n,t,e,i,s,a){if(!o.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||tn.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,i,s){if(t=+t,e=e>>>0,i=i>>>0,!s){const A=Math.pow(2,8*i)-1;at(this,t,e,i,A,0)}let a=1,c=0;for(this[e]=t&255;++c>>0,i=i>>>0,!s){const A=Math.pow(2,8*i)-1;at(this,t,e,i,A,0)}let a=i-1,c=1;for(this[e+a]=t&255;--a>=0&&(c*=256);)this[e+a]=t/c&255;return e+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,1,255,0),this[e]=t&255,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function ge(n,t,e,i,s){ae(t,i,s,n,e,7);let a=Number(t&BigInt(4294967295));n[e++]=a,a=a>>8,n[e++]=a,a=a>>8,n[e++]=a,a=a>>8,n[e++]=a;let c=Number(t>>BigInt(32)&BigInt(4294967295));return n[e++]=c,c=c>>8,n[e++]=c,c=c>>8,n[e++]=c,c=c>>8,n[e++]=c,e}function pe(n,t,e,i,s){ae(t,i,s,n,e,7);let a=Number(t&BigInt(4294967295));n[e+7]=a,a=a>>8,n[e+6]=a,a=a>>8,n[e+5]=a,a=a>>8,n[e+4]=a;let c=Number(t>>BigInt(32)&BigInt(4294967295));return n[e+3]=c,c=c>>8,n[e+2]=c,c=c>>8,n[e+1]=c,c=c>>8,n[e]=c,e+8}o.prototype.writeBigUInt64LE=Tt(function(t,e=0){return ge(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Tt(function(t,e=0){return pe(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(t,e,i,s){if(t=+t,e=e>>>0,!s){const q=Math.pow(2,8*i-1);at(this,t,e,i,q-1,-q)}let a=0,c=1,A=0;for(this[e]=t&255;++a>0)-A&255;return e+i},o.prototype.writeIntBE=function(t,e,i,s){if(t=+t,e=e>>>0,!s){const q=Math.pow(2,8*i-1);at(this,t,e,i,q-1,-q)}let a=i-1,c=1,A=0;for(this[e+a]=t&255;--a>=0&&(c*=256);)t<0&&A===0&&this[e+a+1]!==0&&(A=1),this[e+a]=(t/c>>0)-A&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},o.prototype.writeBigInt64LE=Tt(function(t,e=0){return ge(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Tt(function(t,e=0){return pe(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Gt(n,t,e,i,s,a){if(e+i>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ct(n,t,e,i,s){return t=+t,e=e>>>0,s||Gt(n,t,e,4),f.write(n,t,e,i,23,4),e+4}o.prototype.writeFloatLE=function(t,e,i){return Ct(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return Ct(this,t,e,!1,i)};function ct(n,t,e,i,s){return t=+t,e=e>>>0,s||Gt(n,t,e,8),f.write(n,t,e,i,52,8),e+8}o.prototype.writeDoubleLE=function(t,e,i){return ct(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return ct(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,s){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!s&&s!==0&&(s=this.length),e>=t.length&&(e=t.length),e||(e=0),s>0&&s=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-e>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=e;a2**32?s=$t(String(e)):typeof e=="bigint"&&(s=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(s=$t(s)),s+="n"),i+=` It must be ${t}. Received ${s}`,i},RangeError);function $t(n){let t="",e=n.length;const i=n[0]==="-"?1:0;for(;e>=i+4;e-=3)t=`_${n.slice(e-3,e)}${t}`;return`${n.slice(0,e)}${t}`}function Ie(n,t,e){jt(t,"offset"),(n[t]===void 0||n[t+e]===void 0)&&Wt(t,n.length-(e+1))}function ae(n,t,e,i,s,a){if(n>e||n= 0${c} and < 2${c} ** ${(a+1)*8}${c}`:A=`>= -(2${c} ** ${(a+1)*8-1}${c}) and < 2 ** ${(a+1)*8-1}${c}`,new It.ERR_OUT_OF_RANGE("value",A,n)}Ie(i,s,a)}function jt(n,t){if(typeof n!="number")throw new It.ERR_INVALID_ARG_TYPE(t,"number",n)}function Wt(n,t,e){throw Math.floor(n)!==n?(jt(n,e),new It.ERR_OUT_OF_RANGE("offset","an integer",n)):t<0?new It.ERR_BUFFER_OUT_OF_BOUNDS:new It.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,n)}const me=/[^+/0-9A-Za-z-_]/g;function gt(n){if(n=n.split("=")[0],n=n.trim().replace(me,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ue(n,t){t=t||1/0;let e;const i=n.length;let s=null;const a=[];for(let c=0;c55295&&e<57344){if(!s){if(e>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(c+1===i){(t-=3)>-1&&a.push(239,191,189);continue}s=e;continue}if(e<56320){(t-=3)>-1&&a.push(239,191,189),s=e;continue}e=(s-55296<<10|e-56320)+65536}else s&&(t-=3)>-1&&a.push(239,191,189);if(s=null,e<128){if((t-=1)<0)break;a.push(e)}else if(e<2048){if((t-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function Y(n){const t=[];for(let e=0;e>8,s=e%256,a.push(s),a.push(i);return a}function Vt(n){return r.toByteArray(gt(n))}function Ht(n,t,e,i){let s;for(s=0;s=t.length||s>=n.length);++s)t[s+e]=n[s];return s}function bt(n,t){return n instanceof t||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===t.name}function ce(n){return n!==n}const ve=function(){const n="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const i=e*16;for(let s=0;s<16;++s)t[i+s]=n[e]+n[s]}return t}();function Tt(n){return typeof BigInt>"u"?Ue:n}function Ue(){throw new Error("BigInt not supported")}})(wt);var Nr=class{#e;#t=0;#r=!0;constructor(l=0){this.#e=wt.Buffer.alloc(l)}get currentOffset(){return this.#t}get currentSize(){return this.#e.length}get buffer(){let l=wt.Buffer.alloc(this.#e.length);return this.#e.copy(l),l}endianness(l){this.#r=l==="little"}grow(l){this.#e=wt.Buffer.concat([this.#e,wt.Buffer.alloc(l)])}growIfNeeded(l){this.#t+l>this.#e.length&&this.grow(this.#t+l-this.#e.length)}seek(l){let r=this.#t;return this.growIfNeeded(l),this.#t+=l,r}goto(l){let r=this.#t;return this.growIfNeeded(this.currentOffset-l),this.#t=l,r}alignTo(l){let r=this.#t%l;r!==0&&(this.growIfNeeded(l-r),this.#t+=l-r)}#n=(l,r,f)=>(h,d)=>{(d?.into==null||d.into+l>this.#e.length)&&this.growIfNeeded(l),this.#e[!this.#r&&f!=null?f:r](h,d?.into??this.#t,l),d?.into==null&&(this.#t+=l)};setInt8=this.#n(1,"writeInt8");setUint8=this.#n(1,"writeUInt8");setInt16=this.#n(2,"writeInt16LE","writeInt16BE");setUint16=this.#n(2,"writeUInt16LE","writeUInt16BE");setInt32=this.#n(4,"writeInt32LE","writeInt32BE");setUint32=this.#n(4,"writeUInt32LE","writeUInt32BE");setInt64=this.#n(8,"writeBigInt64LE","writeBigInt64BE");setUint64=this.#n(8,"writeBigUInt64LE","writeBigUInt64BE");setFloat=this.#n(4,"writeFloatLE","writeFloatBE");setDouble=this.#n(8,"writeDoubleLE","writeDoubleBE");setString(l,r){this.growIfNeeded(l.length),this.#e.write(l,r?.into??this.#t,"utf8"),r?.into==null&&(this.#t+=l.length)}setBuffer(l,r){this.growIfNeeded(l.length),l.copy(this.#e,r?.into??this.#t),r?.into==null&&(this.#t+=l.length)}},Lr=class{#e;#t=0;#r=!0;constructor(l){this.#e=l}get currentOffset(){return this.#t}endianness(l){this.#r=l==="little"}seek(l){let r=this.#t;return this.#t+=l,r}goto(l){let r=this.#t;return this.#t=l,r}alignTo(l){this.#t+=this.#t%l}readInt8(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,1);return l?.pointer==null&&(this.#t+=1),r.getInt8(0)}readUint8(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,1);return l?.pointer==null&&(this.#t+=1),r.getUint8(0)}readInt16(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,2);return l?.pointer==null&&(this.#t+=2),r.getInt16(0,this.#r)}readUint16(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,2);return l?.pointer==null&&(this.#t+=2),r.getUint16(0,this.#r)}readInt32(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,4);return l?.pointer==null&&(this.#t+=4),r.getInt32(0,this.#r)}readUint32(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,4);return l?.pointer==null&&(this.#t+=4),r.getUint32(0,this.#r)}readInt64(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,8);return l?.pointer==null&&(this.#t+=8),r.getBigInt64(0,this.#r)}readUint64(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,8);return l?.pointer==null&&(this.#t+=8),r.getBigUint64(0,this.#r)}readFloat(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,4);return l?.pointer==null&&(this.#t+=4),r.getFloat32(0,this.#r)}readDouble(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,8);return l?.pointer==null&&(this.#t+=8),r.getFloat64(0,this.#r)}readBuffer(l){let r=this.#e.subarray(this.#t,this.#t+l.length);return l.pointer==null&&(this.#t+=l.length),r}readString(l){let r;if("length"in l&&(r=this.readBuffer(l)),"zeroed"in l){let f=new DataView(this.#e.buffer,this.#t),h=0;for(;f.getUint8(this.#t+h)!==0;)h++;r=this.#e.subarray(0,h),this.#t+=h}return new TextDecoder().decode(r)}},kr=l=>{let r=l.toString("hex");return[r.slice(6,8)+r.slice(4,6)+r.slice(2,4)+r.slice(0,2),r.slice(10,12)+r.slice(8,10),r.slice(14,16)+r.slice(12,14),r.slice(16,18)+r.slice(18,20),r.slice(20,32)].join("-")},Mr=l=>{let r=l.replaceAll("-","");return wt.Buffer.from([r.slice(6,8)+r.slice(4,6)+r.slice(2,4)+r.slice(0,2),r.slice(10,12)+r.slice(8,10),r.slice(14,16)+r.slice(12,14),r.slice(16,18)+r.slice(18,20),r.slice(20,32)].join(""),"hex")},Dr=(l,r)=>{if(l.length===0)return new Map;let f=l.toString("utf16le");if(f.at(-1)!=="\0")throw new Error("String is not null-terminated");let h=new Map,d=0;for(let p=0;p{let f=0,h=new Map,d=b=>{if(h.has(b))return h.get("str");let x=r+f;return h.set(b,x),f+=b.length*2+2,x},p=[],g=[];for(let b=0;b{let r=wt.Buffer.from(l),f=0;for(let h=0;h{let r=wt.Buffer.from(l),f=0;for(let h=0;h{if(l.meta.version!==539100710)throw new Error(`Unsupported version ${l.meta.version}`);let r=new Nr;r.setUint32(l.meta.version),r.setString("GMSG"),r.setUint64(16n),r.setUint32(l.entries.length),r.setUint32(l.meta.attributes.length);let f=l.entries[0]!=null?Object.keys(l.entries[0].strings).length:0;r.setUint32(f),r.alignTo(8);let h=r.currentOffset;r.setInt64(-1n);let d=r.currentOffset;r.setInt64(-1n);let p=r.currentOffset;r.setInt64(-1n);let g=r.currentOffset;r.setInt64(-1n);let o=r.currentOffset;r.setInt64(-1n);let b=[];for(let U=0;U({version:l.readUint32(),magic:l.readString({length:4}),headerOffset:l.readUint64(),entryCount:l.readUint32(),attributeCount:l.readUint32(),langCount:l.readUint32(),_:l.alignTo(8),dataOffset:l.readUint64(),_2:l.seek(8),langOffset:l.readUint64(),attributesOffset:l.readUint64(),attributeNamesOffset:l.readUint64()}),Ke=l=>{let r=new Lr(l),f=zr(r),h=[];if(f.magic!=="GMSG")throw new Error(`Invalid magic: ${f.magic}`);if(f.version!==539100710)throw new Error(`Uknkown version: ${f.version}`);let d=[];for(let o=0;o({type:o.type,name:o.name}))},entries:h.map(o=>({meta:{id:o.header.id,crc:o.header.crc,hash:o.header.hash},name:o.name,attributes:o.attributes,strings:o.strings}))}},Gr=ot('
');function Wr(l,r){let f=y(r,"color",24,()=>"cornflowerblue"),h=y(r,"duration",24,()=>"1.5s"),d=y(r,"size",24,()=>"1em");var p=Gr();Z(()=>{J(p,"style",`--duration: ${h()??""}`),he(p,"border-color",`${f()??""} transparent ${f()??""} - ${f()??""}`),he(p,"width",d()),he(p,"height",d())}),T(l,p)}var Hr=ot("");function Jr(l,r){xe(r,!1);const f=hr(),h=()=>gr(k,"$store",f);let d=y(r,"wiggle",12,!1),p=y(r,"angle",8,0),g=y(r,"scale",8,1),o=y(r,"dx",8,0),b=y(r,"dy",8,0),x=y(r,"duration",8,200),w=y(r,"stiffness",8,.05),E=y(r,"damping",8,.1),S={angle:0,scale:1,dx:0,dy:0},k=dr(S,{stiffness:w(),damping:E()});zt(()=>(et(d()),et(x())),()=>{d()&&setTimeout(()=>d(!1),x())}),zt(()=>(et(d()),et(g()),et(p()),et(o()),et(b())),()=>{k.set(d()?{scale:g(),angle:p(),dx:o(),dy:b()}:S)}),tr(),er();var K=Hr(),Q=lt(K);Bt(Q,r,"default",{},null),Z(()=>he(K,"transform",`rotate(${h().angle??""}deg) scale(${h().scale??""}) translate(${h().dx??""}px, - ${h().dy??""}px)`)),T(l,K),Be()}var Yr=ke('');function Xr(l,r){const f=Le(r,["children","$$slots","$$events","$$legacy"]);var h=Yr();let d;Z(()=>d=Me(h,d,{...f,fill:"currentColor",viewBox:"0 0 16 16"},void 0,!0)),T(l,h)}var Zr=ke('');function Qe(l,r){const f=Le(r,["children","$$slots","$$events","$$legacy"]);var h=Zr();let d;Z(()=>d=Me(h,d,{...f,viewBox:"0 0 24 24",fill:"currentColor"},void 0,!0)),T(l,h)}var Kr=ke('');function Qr(l,r){const f=Le(r,["children","$$slots","$$events","$$legacy"]);var h=Kr();let d;Z(()=>d=Me(h,d,{...f,viewBox:"0 0 24 24",fill:"currentColor"},void 0,!0)),T(l,h)}const yt=l=>l instanceof Object?(l.label===void 0&&console.error(`MultiSelect option ${JSON.stringify(l)} is an object but has no label key`),l.label):`${l}`;function $e(l,r=null){let f="";if(["selected","option",null].includes(r)||console.error(`MultiSelect: Invalid key=${r} for get_style`),typeof l=="object"&&l.style&&(typeof l.style=="string"&&(f=l.style),typeof l.style=="object")){if(r&&r in l.style)return l.style[r]??"";console.error(`Invalid style object for option=${JSON.stringify(l)}`)}return f.trim()&&!f.trim().endsWith(";")&&(f+=";"),f}var $r=ot(''),tn=ot('
  • '),en=ot(" "),rn=ot(''),nn=ot(" ",1),ln=ot('
  • '),sn=ot('
  • '),on=ot('
    '),an=ot('
    ');function un(l,r){xe(r,!1);const f=ee();let h=y(r,"activeIndex",12,null),d=y(r,"activeOption",12,null),p=y(r,"createOptionMsg",24,()=>"Create this option..."),g=y(r,"allowUserOptions",8,!1),o=y(r,"allowEmpty",8,!1),b=y(r,"autocomplete",24,()=>"off"),x=y(r,"autoScroll",8,!0),w=y(r,"breakpoint",8,800),E=y(r,"defaultDisabledTitle",24,()=>"This option is disabled"),S=y(r,"disabled",8,!1),k=y(r,"disabledInputTitle",24,()=>"This input is disabled"),K=y(r,"duplicateOptionMsg",24,()=>"This option is already selected"),Q=y(r,"duplicates",8,!1),st=y(r,"key",8,u=>`${yt(u)}`.toLowerCase()),U=y(r,"filterFunc",8,(u,B)=>B?`${yt(u)}`.toLowerCase().includes(B.toLowerCase()):!0),O=y(r,"closeDropdownOnSelect",24,()=>"desktop"),_=y(r,"form_input",12,null),V=y(r,"highlightMatches",8,!0),W=y(r,"id",8,null),D=y(r,"input",12,null),nt=y(r,"inputClass",24,()=>""),ne=y(r,"inputStyle",8,null),Zt=y(r,"inputmode",8,null),St=y(r,"invalid",12,!1),ie=y(r,"liActiveOptionClass",24,()=>""),Kt=y(r,"liActiveUserMsgClass",24,()=>""),le=y(r,"liOptionClass",24,()=>""),Qt=y(r,"liOptionStyle",8,null),Rt=y(r,"liSelectedClass",24,()=>""),se=y(r,"liSelectedStyle",8,null),_e=y(r,"liUserMsgClass",24,()=>""),de=y(r,"loading",8,!1),dt=y(r,"matchingOptions",28,()=>[]),Pt=y(r,"maxOptions",8,void 0),v=y(r,"maxSelect",8,null),at=y(r,"maxSelectMsg",8,(u,B)=>B>1?`${u}/${B}`:""),ge=y(r,"maxSelectMsgClass",24,()=>""),pe=y(r,"name",8,null),Gt=y(r,"noMatchingOptionsMsg",24,()=>"No matching options"),Ct=y(r,"open",12,!1),ct=y(r,"options",12),It=y(r,"outerDiv",12,null),oe=y(r,"outerDivClass",24,()=>""),$t=y(r,"parseLabelsAsHtml",8,!1),Ie=y(r,"pattern",8,null),ae=y(r,"placeholder",8,null),jt=y(r,"removeAllTitle",24,()=>"Remove all"),Wt=y(r,"removeBtnTitle",24,()=>"Remove"),me=y(r,"minSelect",8,null),gt=y(r,"required",8,!1),ue=y(r,"resetFilterOnAdd",8,!0),Y=y(r,"searchText",28,()=>""),I=y(r,"selected",28,()=>ct()?.filter(u=>u instanceof Object&&u?.preselected).slice(0,v()??void 0)??[]),Vt=y(r,"sortSelected",8,!1),Ht=y(r,"selectedOptionsDraggable",24,()=>!Vt()),bt=y(r,"style",8,null),ce=y(r,"ulOptionsClass",24,()=>""),ve=y(r,"ulSelectedClass",24,()=>""),Tt=y(r,"ulSelectedStyle",8,null),Ue=y(r,"ulOptionsStyle",8,null),n=y(r,"value",12,null);const t=u=>{n(v()===1?u[0]??null:u)},e=u=>{v()===1?I(u?[u]:[]):I(u??[])};let i=ee(!1);ct()?.length>0||(g()||de()||S()||o()?ct([]):console.error("MultiSelect received no options")),v()!==null&&v()<1&&console.error(`MultiSelect's maxSelect must be null or positive integer, got ${v()}`),Array.isArray(I())||console.error(`MultiSelect's selected prop should always be an array, got ${I()}`),v()&&typeof gt()=="number"&>()>v()&&console.error(`MultiSelect maxSelect=${v()} < required=${gt()}, makes it impossible for users to submit a valid form`),$t()&&g()&&console.warn("Don't combine parseLabelsAsHtml and allowUserOptions. It's susceptible to XSS attacks!"),Vt()&&Ht()&&console.warn("MultiSelect's sortSelected and selectedOptionsDraggable should not be combined as any user re-orderings of selected options will be undone by sortSelected on component re-renders."),g()&&!p()&&p()!==null&&console.error(`MultiSelect has allowUserOptions=${g()} but createOptionMsg=${p()} is falsy. This prevents the "Add option" from showing up, resulting in a confusing user experience.`),Pt()&&(typeof Pt()!="number"||Pt()<0||Pt()%1!=0)&&console.error(`MultiSelect's maxOptions must be undefined or a positive integer, got ${Pt()}`);const s=pr();let a=ee(!1),c=ee();if(h()!==null&&!dt()[h()])throw`Run time error, activeIndex=${h()} is out of bounds, matchingOptions.length=${dt().length}`;function A(u,B){v()&&v()>1&&I().length>=v()&&it(i,!0),!isNaN(Number(u))&&typeof I().map(yt)[0]=="number"&&(u=Number(u));const C=I().map(st()).includes(st()(u));if((v()===null||v()===1||I().length0&&(typeof ct()[0]=="object"?u={label:Y()}:(["number","undefined"].includes(typeof ct()[0])&&!isNaN(Number(Y()))?u=Number(Y()):u=Y(),s("create",{option:u})),g()==="append"&&ct([...ct(),u])),ue()&&Y(""),["",void 0,null].includes(u)){console.error(`MultiSelect: encountered falsy option ${u}`);return}v()===1?I([u]):(I([...I(),u]),Vt()===!0?I(I().sort((pt,H)=>{const[$,L]=[yt(pt),yt(H)];return`${$}`.localeCompare(`${L}`)})):typeof Vt()=="function"&&I(I().sort(Vt())));const N=I().length===v(),mt=O()===!0||O()==="desktop"&&m(c)st()(N)===st()(u));let[C]=I().splice(B,1);if(C===void 0&&g()&&(C=typeof ct()[0]?{label:u}:u),C===void 0)return console.error(`Multiselect can't remove selected option ${JSON.stringify(u)}, not found in selected list`);I([...I()]),St(!1),_()?.setCustomValidity(""),s("remove",{option:C}),s("change",{option:C,type:"remove"})}function R(u){S()||(Ct(!0),u instanceof FocusEvent||D()?.focus(),s("open",{event:u}))}function z(u){Ct(!1),D()?.blur(),h(null),s("close",{event:u})}async function P(u){if(u.key==="Escape"||u.key==="Tab")z(u),Y("");else if(u.key==="Enter")u.preventDefault(),d()?(I().includes(d())?q(d()):A(d(),u),Y("")):g()&&Y().length>0?A(Y(),u):R(u);else if(["ArrowDown","ArrowUp"].includes(u.key)){if(h()===null&&dt().length>0){h(0);return}else if(g()&&!dt().length&&Y().length>0){it(a,!m(a));return}else if(h()===null)return;u.preventDefault();const B=u.key==="ArrowUp"?-1:1;if(h((h()+B)%dt().length),h()<0&&h(dt().length-1),x()){await Br();const C=document.querySelector("ul.options > li.active");C&&C.scrollIntoViewIfNeeded?.()}}else u.key==="Backspace"&&I().length>0&&!Y()?q(I().at(-1)):dt().length>0&&h(0)}function Pe(){s("removeAll",{options:I()}),s("change",{options:I(),type:"removeAll"}),I([]),Y("")}const je=u=>B=>{["Enter","Space"].includes(B.code)&&(B.preventDefault(),u())};function Ve(u){It()&&!It().contains(u.target)&&z(u)}let Fe=ee(null);const lr=u=>B=>{if(!B.dataTransfer)return;B.dataTransfer.dropEffect="move";const C=parseInt(B.dataTransfer.getData("text/plain")),N=[...I()];CB=>{B.dataTransfer&&(B.dataTransfer.effectAllowed="move",B.dataTransfer.dropEffect="move",B.dataTransfer.setData("text/plain",`${u}`))};let Ae=ee();function or(u){if(!V()||typeof CSS>"u"||!CSS.highlights)return;CSS.highlights.clear();const B=u?.target?.value.trim().toLowerCase();if(!B)return;const C=document.createTreeWalker(m(Ae),NodeFilter.SHOW_TEXT,{acceptNode:H=>H?.textContent===Gt()?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),N=[];let mt=C.nextNode();for(;mt;)N.push(mt),mt=C.nextNode();const pt=N.map(H=>{const $=H.textContent?.toLowerCase(),L=[];let j=0;for(;$&&j<$.length;){const G=$.indexOf(B,j);if(G===-1)break;L.push(G),j=G+B.length}return L.map(G=>{const tt=new Range;return tt.setStart(H,G),tt.setEnd(H,G+B.length),tt})});CSS.highlights.set("sms-search-matches",new Highlight(...pt.flat()))}zt(()=>et(I()),()=>{t(I())}),zt(()=>et(n()),()=>{e(n())}),zt(()=>(et(ct()),et(U()),et(Y()),et(I()),et(st()),et(Q())),()=>{dt(ct().filter(u=>U()(u,Y())&&(!I().map(st()).includes(st()(u))||Q())))}),zt(()=>(et(dt()),et(h())),()=>{d(dt()[h()??-1]??null)}),zt(()=>(et(I()),yt),()=>{it(f,u=>I().map(yt).includes(u))}),zt(()=>(et(gt()),et(_())),()=>{gt(),_()?.setCustomValidity("")}),tr(),er();var xt=an();F("click",He,Ve),F("touchstart",He,Ve);var te=lt(xt);Z(()=>br(te,I().length>=Number(gt())?JSON.stringify(I()):null)),we(te,u=>_(u),()=>_());var qe=rt(te,2);Bt(qe,r,"expand-icon",{get open(){return Ct()}},u=>{Xr(u,{width:"15px",style:"min-width: 1em; padding: 0 1pt; cursor: pointer;"})});var ye=rt(qe,2),ze=lt(ye);be(ze,11,I,(u,B)=>Q()?[st()(u),B]:st()(u),(u,B,C)=>{var N=tn(),mt=Xt(()=>sr(m(C))),pt=Xt(()=>lr(m(C)));const H=At(()=>`${$e(m(B),"selected")??""} ${se()??""}`);var $=lt(N);Bt($,r,"selected",{get option(){return m(B)},get idx(){return m(C)}},j=>{var G=Ot(),tt=ht(G);Bt(tt,r,"default",{get option(){return m(B)},get idx(){return m(C)}},Jt=>{var Nt=Ot(),X=ht(Nt);ft(X,$t,vt=>{var Ut=Ot(),Ft=ht(Ut);Je(Ft,()=>yt(m(B))),T(vt,Ut)},vt=>{var Ut=Se();Z(()=>Dt(Ut,yt(m(B)))),T(vt,Ut)}),T(Jt,Nt)}),T(j,G)});var L=rt($,2);ft(L,()=>!S()&&(me()===null||I().length>me()),j=>{var G=$r(),tt=Xt(()=>je(()=>q(m(B))));Z(()=>J(G,"title",`${Wt()??""} ${yt(m(B))??""}`));var Jt=lt(G);Bt(Jt,r,"remove-icon",{},Nt=>{Qe(Nt,{width:"15px"})}),F("mouseup",G,Mt(()=>q(m(B)))),F("keydown",G,function(...Nt){m(tt)?.apply(this,Nt)}),T(j,G)}),Z(()=>{qt(N,`${Rt()??""} svelte-1r2hsto`),J(N,"draggable",Ht()&&!S()&&I().length>1),J(N,"style",m(H)),Lt(N,"active",m(Fe)===m(C))}),yr(N,()=>xr,()=>({duration:100})),F("dragstart",N,function(...j){m(mt)?.apply(this,j)}),F("drop",N,Ye(function(...j){m(pt)?.apply(this,j)})),F("dragenter",N,()=>it(Fe,m(C))),F("dragover",N,Ye(function(j){ut.call(this,r,j)})),T(u,N)});var M=rt(ze,2);we(M,u=>D(u),()=>D());var ar=rt(M,2);Bt(ar,r,"after-input",{get selected(){return I()},get disabled(){return S()},get invalid(){return St()},get id(){return W()},get placeholder(){return ae()},get open(){return Ct()},get required(){return gt()}},null);var Ge=rt(ye,2);ft(Ge,de,u=>{var B=Ot(),C=ht(B);Bt(C,r,"spinner",{},N=>{Wr(N,{})}),T(u,B)});var We=rt(Ge,2);ft(We,S,u=>{var B=Ot(),C=ht(B);Bt(C,r,"disabled-icon",{},N=>{Qr(N,{width:"14pt",style:"margin: 0 2pt;","data-name":"disabled-icon"})}),T(u,B)},u=>{var B=Ot(),C=ht(B);ft(C,()=>I().length>0,N=>{var mt=nn(),pt=ht(mt);ft(pt,()=>v()&&(v()>1||at()),$=>{Jr($,{get wiggle(){return m(i)},set wiggle(L){it(i,L)},angle:20,children:(L,j)=>{var G=en(),tt=lt(G);Z(()=>Dt(tt,at()?.(I().length,v()))),Z(()=>qt(G,`max-select-msg ${ge()??""} svelte-1r2hsto`)),T(L,G)},$$slots:{default:!0},$$legacy:!0})});var H=rt(pt,2);ft(H,()=>v()!==1&&I().length>1,$=>{var L=rn(),j=Xt(()=>je(Pe)),G=lt(L);Bt(G,r,"remove-icon",{},tt=>{Qe(tt,{width:"15px"})}),Z(()=>J(L,"title",jt())),F("mouseup",L,Mt(Pe)),F("keydown",L,function(...tt){m(j)?.apply(this,tt)}),T($,L)}),T(N,mt)},null,!0),T(u,B)});var ur=rt(We,2);ft(ur,()=>Y()&&Gt()||ct()?.length>0,u=>{var B=on(),C=lt(B);be(C,1,()=>dt().slice(0,Math.max(0,Pt()??0)||1/0),De,(pt,H,$)=>{var L=ln();const j=At(()=>{const{label:X,disabled:vt=null,title:Ut=null,selectedTitle:Ft=null,disabledTitle:Yt=E()}=m(H)instanceof Object?m(H):{label:m(H)};return{label:X,disabled:vt,title:Ut,selectedTitle:Ft,disabledTitle:Yt}}),G=At(()=>h()===$);Z(()=>J(L,"title",m(j).disabled?m(j).disabledTitle:m(f)(m(j).label)&&m(j).selectedTitle||m(j).title));const tt=At(()=>`${$e(m(H),"option")??""} ${Qt()??""}`),Jt=At(()=>m(f)(m(j).label));var Nt=lt(L);Bt(Nt,r,"option",{get option(){return m(H)},idx:$},X=>{var vt=Ot(),Ut=ht(vt);Bt(Ut,r,"default",{get option(){return m(H)},idx:$},Ft=>{var Yt=Ot(),cr=ht(Yt);ft(cr,$t,Oe=>{var fe=Ot(),fr=ht(fe);Je(fr,()=>yt(m(H))),T(Oe,fe)},Oe=>{var fe=Se();Z(()=>Dt(fe,yt(m(H)))),T(Oe,fe)}),T(Ft,Yt)}),T(X,vt)}),Z(()=>{qt(L,`${le()??""} ${(m(G)?ie():"")??""} svelte-1r2hsto`),J(L,"style",m(tt)),Lt(L,"selected",m(Jt)),Lt(L,"active",m(G)),Lt(L,"disabled",m(j).disabled)}),F("mousedown",L,Mt(function(X){ut.call(this,r,X)})),F("mouseup",L,Mt(X=>{m(j).disabled||A(m(H),X)})),F("mouseover",L,()=>{m(j).disabled||h($)}),F("focus",L,()=>{m(j).disabled||h($)}),F("mouseout",L,()=>h(null)),F("blur",L,()=>h(null)),T(pt,L)});var mt=rt(C,2);ft(mt,Y,pt=>{var H=Ot();const $=At(()=>I().map(yt).includes(Y())),L=At(()=>!Q()&&m($)&&"dupe"),j=At(()=>!!(g()&&p())&&"create"),G=At(()=>!!(dt()?.length==0&&Gt())&&"no-match"),tt=At(()=>m(L)||m(j)||m(G));var Jt=ht(H);ft(Jt,()=>m(tt),Nt=>{var X=sn();const vt=At(()=>({dupe:K(),create:p(),"no-match":Gt()})[m(tt)]);var Ut=lt(X);Bt(Ut,r,"user-msg",{get searchText(){return Y()},get msgType(){return m(tt)},get msg(){return m(vt)}},Ft=>{var Yt=Se();Z(()=>Dt(Yt,m(vt))),T(Ft,Yt)}),Z(()=>{J(X,"title",p()),qt(X,`user-msg ${_e()??""} ${(m(a)?Kt():"")??""} svelte-1r2hsto`),Lt(X,"active",m(a)),he(X,"cursor",{dupe:"not-allowed",create:"pointer","no-match":"default"}[m(tt)])}),F("mousedown",X,Mt(function(Ft){ut.call(this,r,Ft)})),F("mouseup",X,Mt(Ft=>{g()&&A(Y(),Ft)})),F("mouseover",X,()=>it(a,!0)),F("focus",X,()=>it(a,!0)),F("mouseout",X,()=>it(a,!1)),F("blur",X,()=>it(a,!1)),T(Nt,X)}),T(pt,H)}),we(B,pt=>it(Ae,pt),()=>m(Ae)),Z(()=>{qt(B,`options ${ce()??""} svelte-1r2hsto`),J(B,"aria-multiselectable",v()===null||v()>1),J(B,"aria-expanded",Ct()),J(B,"aria-disabled",S()?"true":null),J(B,"style",Ue()),Lt(B,"hidden",!Ct())}),T(u,B)}),we(xt,u=>It(u),()=>It()),Z(()=>{qt(xt,`multiselect ${oe()??""} svelte-1r2hsto`),J(xt,"title",S()?k():null),J(xt,"data-id",W()),J(xt,"style",bt()),Lt(xt,"disabled",S()),Lt(xt,"single",v()===1),Lt(xt,"open",Ct()),Lt(xt,"invalid",St()),J(te,"name",pe()),te.required=gt(),qt(ye,`selected ${ve()??""} svelte-1r2hsto`),J(ye,"style",Tt()),qt(M,`${nt()??""} svelte-1r2hsto`),J(M,"style",ne()),J(M,"id",W()),M.disabled=S(),J(M,"autocomplete",b()),J(M,"inputmode",Zt()),J(M,"pattern",Ie()),J(M,"placeholder",I().length==0?ae():null),J(M,"aria-invalid",St()?"true":null)}),mr("innerWidth",u=>it(c,u)),F("invalid",te,()=>{St(!0);let u;v()&&v()>1&&Number(gt())>1?u=`Please select between ${gt()} and ${v()} options`:Number(gt())>1?u=`Please select at least ${gt()} options`:u="Please select an option",_()?.setCustomValidity(u)}),rr(M,Y),F("mouseup",M,wr(Mt(R))),F("keydown",M,Mt(P)),F("focus",M,function(u){ut.call(this,r,u)}),F("focus",M,R),F("input",M,or),F("drop",M,()=>!1),F("blur",M,function(u){ut.call(this,r,u)}),F("change",M,function(u){ut.call(this,r,u)}),F("click",M,function(u){ut.call(this,r,u)}),F("keydown",M,function(u){ut.call(this,r,u)}),F("keyup",M,function(u){ut.call(this,r,u)}),F("mousedown",M,function(u){ut.call(this,r,u)}),F("mouseenter",M,function(u){ut.call(this,r,u)}),F("mouseleave",M,function(u){ut.call(this,r,u)}),F("touchcancel",M,function(u){ut.call(this,r,u)}),F("touchend",M,function(u){ut.call(this,r,u)}),F("touchmove",M,function(u){ut.call(this,r,u)}),F("touchstart",M,function(u){ut.call(this,r,u)}),F("mouseup",xt,Mt(R)),T(l,xt),Be()}function cn(l=!0){const r=this,f=new IntersectionObserver(function([h]){const d=h.intersectionRatio;if(d<1){const p=d<=0&&l?"center":"nearest";r.scrollIntoView({block:p,inline:p})}this.disconnect()});return f.observe(r),f}typeof Element<"u"&&!Element.prototype?.scrollIntoViewIfNeeded&&typeof IntersectionObserver<"u"&&(Element.prototype.scrollIntoViewIfNeeded=cn);const Et=Ne({file:null});var fn=ot('
    ',1),hn=ot('

    ');function dn(l,r){xe(r,!0);const f=Xt(()=>Et.file?.entries[r.entryName]);var h=Ot(),d=ht(h);ft(d,()=>m(f)!=null,p=>{var g=hn(),o=lt(g),b=lt(o),x=rt(o,2);be(x,21,()=>r.languages,De,(w,E)=>{var S=fn(),k=ht(S),K=lt(k),Q=rt(k,2);Z(()=>Dt(K,m(E))),rr(Q,()=>m(f).strings[m(E)],st=>m(f).strings[m(E)]=st),T(w,S)}),Z(()=>Dt(b,m(f).name)),T(p,g)}),T(l,h),Be()}var gn=ot('
    Drop file
    '),pn=ot('
    Invalid file
    '),mn=ot(''),yn=ot('

    ',1),wn=ot(' ',1);function bn(l,r){xe(r,!0);const f=Xt(()=>Object.values(Et.file?.entries??{}));let h=Ce(!1);_r(()=>{m(h)&&setTimeout(()=>{it(h,!1)},7500)});const d=Xt(()=>{const O=Object.keys(m(f)[0].strings),_=Object.fromEntries(O.map(V=>[V,!1]));for(const V of O)for(const W of m(f))W.strings[V]==null||W.strings[V].length===0||(_[V]=!0);return Object.entries(_).filter(([,V])=>V).map(([V])=>V)});let p=Ce(Ne(["en"]));const g=async O=>{const _=O.target.files;if(_==null||_.length===0)return;const V=_.item(0),W=Ke(wt.Buffer.from(await V.arrayBuffer())),D=Object.fromEntries(W.entries.map(nt=>[nt.name,nt]));Et.file={name:V.name,meta:W.meta,entries:D}};let o=Ce(!1);const b=O=>{it(o,!0),O.preventDefault()},x=()=>{it(o,!1)},w=async O=>{O.preventDefault(),it(h,!1);try{const _=O.dataTransfer.items[0].getAsFile(),V=Ke(wt.Buffer.from(await _.arrayBuffer())),W=Object.fromEntries(V.entries.map(D=>[D.name,D]));Et.file={name:_.name,meta:V.meta,entries:W}}catch{it(h,!0)}it(o,!1)},E=()=>{if(Et.file==null)return;const O=Object.values(Et.file.entries),_={meta:Et.file.meta,entries:O},V=Vr(_),W=new Blob([V],{type:"application/octet-stream"}),D=URL.createObjectURL(W),nt=document.createElement("a");nt.href=D,nt.download=Et.file.name,nt.click(),URL.revokeObjectURL(D),nt.remove()};var S=wn(),k=ht(S);k.__change=g;var K=rt(k,2),Q=lt(K);ft(Q,()=>m(o),O=>{var _=gn();Xe(3,_,()=>Ze,()=>({duration:100})),T(O,_)});var st=rt(Q,2);ft(st,()=>m(h),O=>{var _=pn();Xe(3,_,()=>Ze,()=>({duration:250})),T(O,_)});var U=rt(st,2);ft(U,()=>Et?.file==null,O=>{var _=mn();T(O,_)},O=>{var _=yn(),V=ht(_),W=lt(V),D=rt(V,2),nt=lt(D),ne=lt(nt),Zt=rt(nt,2),St=lt(Zt),ie=rt(Zt,2);ie.__click=E;var Kt=rt(D,2),le=lt(Kt);un(le,{placeholder:"Languages",get options(){return m(d)},get selected(){return m(p)},set selected(Rt){it(p,Ne(Rt))},outerDivClass:"w-300px min-h-32px b-color-amber",liOptionClass:"color-#eee bg-#333"});var Qt=rt(Kt,2);be(Qt,21,()=>m(f),De,(Rt,se)=>{dn(Rt,{get entryName(){return m(se).name},get languages(){return m(p)}})}),Z(()=>{Dt(W,Et.file.name),Dt(ne,`Version ${Et.file.meta.version??""}`),Dt(St,`${Et.file.meta.attributes.length??""} attributes`)}),T(O,_)}),F("drop",K,w),F("dragover",K,b),F("dragleave",K,x),T(l,S),Be()}Er(["change","click"]);Ir(bn,{target:document.getElementById("root")}); + */(function(l){const r=Ee,c=Re,h=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=o,l.SlowBuffer=O,l.INSPECT_MAX_BYTES=50;const d=2147483647;l.kMaxLength=d,o.TYPED_ARRAY_SUPPORT=p(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const n=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(n,t),n.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function g(n){if(n>d)throw new RangeError('The value "'+n+'" is invalid for option "size"');const t=new Uint8Array(n);return Object.setPrototypeOf(t,o.prototype),t}function o(n,t,e){if(typeof n=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(n)}return b(n,t,e)}o.poolSize=8192;function b(n,t,e){if(typeof n=="string")return S(n,t);if(ArrayBuffer.isView(n))return K(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(bt(n,ArrayBuffer)||n&&bt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(bt(n,SharedArrayBuffer)||n&&bt(n.buffer,SharedArrayBuffer)))return Q(n,t,e);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const i=n.valueOf&&n.valueOf();if(i!=null&&i!==n)return o.from(i,t,e);const s=st(n);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return o.from(n[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}o.from=function(n,t,e){return b(n,t,e)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function x(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function w(n,t,e){return x(n),n<=0?g(n):t!==void 0?typeof e=="string"?g(n).fill(t,e):g(n).fill(t):g(n)}o.alloc=function(n,t,e){return w(n,t,e)};function E(n){return x(n),g(n<0?0:U(n)|0)}o.allocUnsafe=function(n){return E(n)},o.allocUnsafeSlow=function(n){return E(n)};function S(n,t){if((typeof t!="string"||t==="")&&(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=I(n,t)|0;let i=g(e);const s=i.write(n,t);return s!==e&&(i=i.slice(0,s)),i}function L(n){const t=n.length<0?0:U(n.length)|0,e=g(t);for(let i=0;i=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return n|0}function O(n){return+n!=n&&(n=0),o.alloc(+n)}o.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==o.prototype},o.compare=function(t,e){if(bt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),bt(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,s=e.length;for(let a=0,f=Math.min(i,s);as.length?(o.isBuffer(f)||(f=o.from(f)),f.copy(s,a)):Uint8Array.prototype.set.call(s,f,a);else if(o.isBuffer(f))f.copy(s,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=f.length}return s};function I(n,t){if(o.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||bt(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const e=n.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&e===0)return 0;let s=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return ue(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Vt(n).length;default:if(s)return i?-1:ue(n).length;t=(""+t).toLowerCase(),s=!0}}o.byteLength=I;function V(n,t,e){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(n||(n="utf8");;)switch(n){case"hex":return dt(this,t,e);case"utf8":case"utf-8":return Qt(this,t,e);case"ascii":return Ie(this,t,e);case"latin1":case"binary":return de(this,t,e);case"base64":return le(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pt(this,t,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}o.prototype._isBuffer=!0;function W(n,t,e){const i=n[t];n[t]=n[e],n[e]=i}o.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""},h&&(o.prototype[h]=o.prototype.inspect),o.prototype.compare=function(t,e,i,s,a){if(bt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),i===void 0&&(i=t?t.length:0),s===void 0&&(s=0),a===void 0&&(a=this.length),e<0||i>t.length||s<0||a>this.length)throw new RangeError("out of range index");if(s>=a&&e>=i)return 0;if(s>=a)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,s>>>=0,a>>>=0,this===t)return 0;let f=a-s,A=i-e;const q=Math.min(f,A),R=this.slice(s,a),z=t.slice(e,i);for(let P=0;P2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,ce(e)&&(e=s?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(s)return-1;e=n.length-1}else if(e<0)if(s)e=0;else return-1;if(typeof t=="string"&&(t=o.from(t,i)),o.isBuffer(t))return t.length===0?-1:nt(n,t,e,i,s);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):nt(n,[t],e,i,s);throw new TypeError("val must be string, number or Buffer")}function nt(n,t,e,i,s){let a=1,f=n.length,A=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(n.length<2||t.length<2)return-1;a=2,f/=2,A/=2,e/=2}function q(z,P){return a===1?z[P]:z.readUInt16BE(P*a)}let R;if(s){let z=-1;for(R=e;Rf&&(e=f-A),R=e;R>=0;R--){let z=!0;for(let P=0;Ps&&(i=s)):i=s;const a=t.length;i>a/2&&(i=a/2);let f;for(f=0;f>>0,isFinite(i)?(i=i>>>0,s===void 0&&(s="utf8")):(s=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const a=this.length-e;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let f=!1;for(;;)switch(s){case"hex":return ne(this,t,e,i);case"utf8":case"utf-8":return Zt(this,t,e,i);case"ascii":case"latin1":case"binary":return St(this,t,e,i);case"base64":return ie(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,t,e,i);default:if(f)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(n,t,e){return t===0&&e===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(t,e))}function Qt(n,t,e){e=Math.min(n.length,e);const i=[];let s=t;for(;s239?4:a>223?3:a>191?2:1;if(s+A<=e){let q,R,z,P;switch(A){case 1:a<128&&(f=a);break;case 2:q=n[s+1],(q&192)===128&&(P=(a&31)<<6|q&63,P>127&&(f=P));break;case 3:q=n[s+1],R=n[s+2],(q&192)===128&&(R&192)===128&&(P=(a&15)<<12|(q&63)<<6|R&63,P>2047&&(P<55296||P>57343)&&(f=P));break;case 4:q=n[s+1],R=n[s+2],z=n[s+3],(q&192)===128&&(R&192)===128&&(z&192)===128&&(P=(a&15)<<18|(q&63)<<12|(R&63)<<6|z&63,P>65535&&P<1114112&&(f=P))}}f===null?(f=65533,A=1):f>65535&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|f&1023),i.push(f),s+=A}return se(i)}const Rt=4096;function se(n){const t=n.length;if(t<=Rt)return String.fromCharCode.apply(String,n);let e="",i=0;for(;ii)&&(e=i);let s="";for(let a=t;ai&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),ee)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(t,e,i){t=t>>>0,e=e>>>0,i||v(t,e,this.length);let s=this[t],a=1,f=0;for(;++f>>0,e=e>>>0,i||v(t,e,this.length);let s=this[t+--e],a=1;for(;e>0&&(a*=256);)s+=this[t+--e]*a;return s},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t=t>>>0,e||v(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||v(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||v(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||v(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=Tt(function(t){t=t>>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(s)+(BigInt(a)<>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(s)<>>0,e=e>>>0,i||v(t,e,this.length);let s=this[t],a=1,f=0;for(;++f=a&&(s-=Math.pow(2,8*e)),s},o.prototype.readIntBE=function(t,e,i){t=t>>>0,e=e>>>0,i||v(t,e,this.length);let s=e,a=1,f=this[t+--s];for(;s>0&&(a*=256);)f+=this[t+--s]*a;return a*=128,f>=a&&(f-=Math.pow(2,8*e)),f},o.prototype.readInt8=function(t,e){return t=t>>>0,e||v(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,e){t=t>>>0,e||v(t,2,this.length);const i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i},o.prototype.readInt16BE=function(t,e){t=t>>>0,e||v(t,2,this.length);const i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i},o.prototype.readInt32LE=function(t,e){return t=t>>>0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t=t>>>0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=Tt(function(t){t=t>>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(s)<>>0,jt(t,"offset");const e=this[t],i=this[t+7];(e===void 0||i===void 0)&&Wt(t,this.length-8);const s=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(s)<>>0,e||v(t,4,this.length),c.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t=t>>>0,e||v(t,4,this.length),c.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||v(t,8,this.length),c.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||v(t,8,this.length),c.read(this,t,!1,52,8)};function at(n,t,e,i,s,a){if(!o.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||tn.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,i,s){if(t=+t,e=e>>>0,i=i>>>0,!s){const A=Math.pow(2,8*i)-1;at(this,t,e,i,A,0)}let a=1,f=0;for(this[e]=t&255;++f>>0,i=i>>>0,!s){const A=Math.pow(2,8*i)-1;at(this,t,e,i,A,0)}let a=i-1,f=1;for(this[e+a]=t&255;--a>=0&&(f*=256);)this[e+a]=t/f&255;return e+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,1,255,0),this[e]=t&255,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function ge(n,t,e,i,s){ae(t,i,s,n,e,7);let a=Number(t&BigInt(4294967295));n[e++]=a,a=a>>8,n[e++]=a,a=a>>8,n[e++]=a,a=a>>8,n[e++]=a;let f=Number(t>>BigInt(32)&BigInt(4294967295));return n[e++]=f,f=f>>8,n[e++]=f,f=f>>8,n[e++]=f,f=f>>8,n[e++]=f,e}function pe(n,t,e,i,s){ae(t,i,s,n,e,7);let a=Number(t&BigInt(4294967295));n[e+7]=a,a=a>>8,n[e+6]=a,a=a>>8,n[e+5]=a,a=a>>8,n[e+4]=a;let f=Number(t>>BigInt(32)&BigInt(4294967295));return n[e+3]=f,f=f>>8,n[e+2]=f,f=f>>8,n[e+1]=f,f=f>>8,n[e]=f,e+8}o.prototype.writeBigUInt64LE=Tt(function(t,e=0){return ge(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Tt(function(t,e=0){return pe(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(t,e,i,s){if(t=+t,e=e>>>0,!s){const q=Math.pow(2,8*i-1);at(this,t,e,i,q-1,-q)}let a=0,f=1,A=0;for(this[e]=t&255;++a>0)-A&255;return e+i},o.prototype.writeIntBE=function(t,e,i,s){if(t=+t,e=e>>>0,!s){const q=Math.pow(2,8*i-1);at(this,t,e,i,q-1,-q)}let a=i-1,f=1,A=0;for(this[e+a]=t&255;--a>=0&&(f*=256);)t<0&&A===0&&this[e+a+1]!==0&&(A=1),this[e+a]=(t/f>>0)-A&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e=e>>>0,i||at(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},o.prototype.writeBigInt64LE=Tt(function(t,e=0){return ge(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Tt(function(t,e=0){return pe(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Gt(n,t,e,i,s,a){if(e+i>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ct(n,t,e,i,s){return t=+t,e=e>>>0,s||Gt(n,t,e,4),c.write(n,t,e,i,23,4),e+4}o.prototype.writeFloatLE=function(t,e,i){return Ct(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return Ct(this,t,e,!1,i)};function ct(n,t,e,i,s){return t=+t,e=e>>>0,s||Gt(n,t,e,8),c.write(n,t,e,i,52,8),e+8}o.prototype.writeDoubleLE=function(t,e,i){return ct(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return ct(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,s){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!s&&s!==0&&(s=this.length),e>=t.length&&(e=t.length),e||(e=0),s>0&&s=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-e>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=e;a2**32?s=$t(String(e)):typeof e=="bigint"&&(s=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(s=$t(s)),s+="n"),i+=` It must be ${t}. Received ${s}`,i},RangeError);function $t(n){let t="",e=n.length;const i=n[0]==="-"?1:0;for(;e>=i+4;e-=3)t=`_${n.slice(e-3,e)}${t}`;return`${n.slice(0,e)}${t}`}function _e(n,t,e){jt(t,"offset"),(n[t]===void 0||n[t+e]===void 0)&&Wt(t,n.length-(e+1))}function ae(n,t,e,i,s,a){if(n>e||n= 0${f} and < 2${f} ** ${(a+1)*8}${f}`:A=`>= -(2${f} ** ${(a+1)*8-1}${f}) and < 2 ** ${(a+1)*8-1}${f}`,new _t.ERR_OUT_OF_RANGE("value",A,n)}_e(i,s,a)}function jt(n,t){if(typeof n!="number")throw new _t.ERR_INVALID_ARG_TYPE(t,"number",n)}function Wt(n,t,e){throw Math.floor(n)!==n?(jt(n,e),new _t.ERR_OUT_OF_RANGE("offset","an integer",n)):t<0?new _t.ERR_BUFFER_OUT_OF_BOUNDS:new _t.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,n)}const me=/[^+/0-9A-Za-z-_]/g;function gt(n){if(n=n.split("=")[0],n=n.trim().replace(me,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ue(n,t){t=t||1/0;let e;const i=n.length;let s=null;const a=[];for(let f=0;f55295&&e<57344){if(!s){if(e>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(f+1===i){(t-=3)>-1&&a.push(239,191,189);continue}s=e;continue}if(e<56320){(t-=3)>-1&&a.push(239,191,189),s=e;continue}e=(s-55296<<10|e-56320)+65536}else s&&(t-=3)>-1&&a.push(239,191,189);if(s=null,e<128){if((t-=1)<0)break;a.push(e)}else if(e<2048){if((t-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function Y(n){const t=[];for(let e=0;e>8,s=e%256,a.push(s),a.push(i);return a}function Vt(n){return r.toByteArray(gt(n))}function Ht(n,t,e,i){let s;for(s=0;s=t.length||s>=n.length);++s)t[s+e]=n[s];return s}function bt(n,t){return n instanceof t||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===t.name}function ce(n){return n!==n}const ve=function(){const n="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const i=e*16;for(let s=0;s<16;++s)t[i+s]=n[e]+n[s]}return t}();function Tt(n){return typeof BigInt>"u"?Ue:n}function Ue(){throw new Error("BigInt not supported")}})(wt);var Nr=["ja","en","fr","it","de","es","ru","pl","nl","pt","pt-br","ko","zh-tw","zh-cn","fi","sv","da","no","cs","hu","sk","ar","tr","bg","el","ro","th","uk","vi","id","fiction","hi","es-mx","max"],kr=class{#e;#t=0;#r=!0;constructor(l=0){this.#e=wt.Buffer.alloc(l)}get currentOffset(){return this.#t}get currentSize(){return this.#e.length}get buffer(){let l=wt.Buffer.alloc(this.#e.length);return this.#e.copy(l),l}endianness(l){this.#r=l==="little"}grow(l){this.#e=wt.Buffer.concat([this.#e,wt.Buffer.alloc(l)])}growIfNeeded(l){this.#t+l>this.#e.length&&this.grow(this.#t+l-this.#e.length)}seek(l){let r=this.#t;return this.growIfNeeded(l),this.#t+=l,r}goto(l){let r=this.#t;return this.growIfNeeded(this.currentOffset-l),this.#t=l,r}alignTo(l){let r=this.#t%l;r!==0&&(this.growIfNeeded(l-r),this.#t+=l-r)}#n=(l,r,c)=>(h,d)=>{(d?.into==null||d.into+l>this.#e.length)&&this.growIfNeeded(l),this.#e[!this.#r&&c!=null?c:r](h,d?.into??this.#t,l),d?.into==null&&(this.#t+=l)};setInt8=this.#n(1,"writeInt8");setUint8=this.#n(1,"writeUInt8");setInt16=this.#n(2,"writeInt16LE","writeInt16BE");setUint16=this.#n(2,"writeUInt16LE","writeUInt16BE");setInt32=this.#n(4,"writeInt32LE","writeInt32BE");setUint32=this.#n(4,"writeUInt32LE","writeUInt32BE");setInt64=this.#n(8,"writeBigInt64LE","writeBigInt64BE");setUint64=this.#n(8,"writeBigUInt64LE","writeBigUInt64BE");setFloat=this.#n(4,"writeFloatLE","writeFloatBE");setDouble=this.#n(8,"writeDoubleLE","writeDoubleBE");setString(l,r){this.growIfNeeded(l.length),this.#e.write(l,r?.into??this.#t,"utf8"),r?.into==null&&(this.#t+=l.length)}setBuffer(l,r){this.growIfNeeded(l.length),l.copy(this.#e,r?.into??this.#t),r?.into==null&&(this.#t+=l.length)}},Lr=class{#e;#t=0;#r=!0;constructor(l){this.#e=l}get currentOffset(){return this.#t}endianness(l){this.#r=l==="little"}seek(l){let r=this.#t;return this.#t+=l,r}goto(l){let r=this.#t;return this.#t=l,r}alignTo(l){this.#t+=this.#t%l}readInt8(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,1);return l?.pointer==null&&(this.#t+=1),r.getInt8(0)}readUint8(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,1);return l?.pointer==null&&(this.#t+=1),r.getUint8(0)}readInt16(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,2);return l?.pointer==null&&(this.#t+=2),r.getInt16(0,this.#r)}readUint16(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,2);return l?.pointer==null&&(this.#t+=2),r.getUint16(0,this.#r)}readInt32(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,4);return l?.pointer==null&&(this.#t+=4),r.getInt32(0,this.#r)}readUint32(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,4);return l?.pointer==null&&(this.#t+=4),r.getUint32(0,this.#r)}readInt64(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,8);return l?.pointer==null&&(this.#t+=8),r.getBigInt64(0,this.#r)}readUint64(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,8);return l?.pointer==null&&(this.#t+=8),r.getBigUint64(0,this.#r)}readFloat(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,4);return l?.pointer==null&&(this.#t+=4),r.getFloat32(0,this.#r)}readDouble(l){let r=new DataView(this.#e.buffer,l?.pointer??this.#t,8);return l?.pointer==null&&(this.#t+=8),r.getFloat64(0,this.#r)}readBuffer(l){let r=this.#e.subarray(this.#t,this.#t+l.length);return l.pointer==null&&(this.#t+=l.length),r}readString(l){let r;if("length"in l&&(r=this.readBuffer(l)),"zeroed"in l){let c=new DataView(this.#e.buffer,this.#t),h=0;for(;c.getUint8(this.#t+h)!==0;)h++;r=this.#e.subarray(0,h),this.#t+=h}return new TextDecoder().decode(r)}},ir=[207,206,251,248,236,10,51,102,147,169,29,147,80,57,95,9],Mr=l=>{let r=wt.Buffer.from(l),c=0;for(let h=0;h{let r=wt.Buffer.from(l),c=0;for(let h=0;h{let r=l.toString("hex");return[r.slice(6,8)+r.slice(4,6)+r.slice(2,4)+r.slice(0,2),r.slice(10,12)+r.slice(8,10),r.slice(14,16)+r.slice(12,14),r.slice(16,18)+r.slice(18,20),r.slice(20,32)].join("-")},Pr=l=>{let r=l.replaceAll("-","");return wt.Buffer.from([r.slice(6,8)+r.slice(4,6)+r.slice(2,4)+r.slice(0,2),r.slice(10,12)+r.slice(8,10),r.slice(14,16)+r.slice(12,14),r.slice(16,18)+r.slice(18,20),r.slice(20,32)].join(""),"hex")},jr=(l,r)=>{if(l.length===0)return new Map;let c=l.toString("utf16le");if(c.at(-1)!=="\0")throw new Error("String is not null-terminated");let h=new Map,d=0;for(let p=0;p{let c=0,h=new Map,d=b=>{if(h.has(b))return h.get("str");let x=r+c;return h.set(b,x),c+=b.length*2+2,x},p=[],g=[];for(let b=0;b({version:l.readUint32(),magic:l.readString({length:4}),headerOffset:l.readUint64(),entryCount:l.readUint32(),attributeCount:l.readUint32(),langCount:l.readUint32(),_:l.alignTo(8),dataOffset:l.readUint64(),_2:l.seek(8),langOffset:l.readUint64(),attributesOffset:l.readUint64(),attributeNamesOffset:l.readUint64()}),Ke=l=>{let r=new Lr(l),c=qr(r),h=[];if(c.magic!=="GMSG")throw new Error(`Invalid magic: ${c.magic}`);if(c.version!==539100710&&c.version!==23)throw new Error(`Uknkown version: ${c.version}`);let d=[];for(let o=0;o({type:o.type,name:o.name}))},entries:h.map(o=>({meta:{id:o.header.id,crc:o.header.crc,hash:o.header.hash},name:o.name,attributes:o.attributes,strings:o.strings}))}},zr=l=>{if(l.meta.version!==539100710&&l.meta.version!==23)throw new Error(`Unsupported version ${l.meta.version}`);let r=new kr;r.setUint32(l.meta.version),r.setString("GMSG"),r.setUint64(16n),r.setUint32(l.entries.length),r.setUint32(l.meta.attributes.length);let c=l.entries[0]!=null?Object.keys(l.entries[0].strings).length:0;r.setUint32(c),r.alignTo(8);let h=r.currentOffset;r.setInt64(-1n);let d=r.currentOffset;r.setInt64(-1n);let p=r.currentOffset;r.setInt64(-1n);let g=r.currentOffset;r.setInt64(-1n);let o=r.currentOffset;r.setInt64(-1n);let b=[];for(let U=0;U');function Wr(l,r){let c=y(r,"color",24,()=>"cornflowerblue"),h=y(r,"duration",24,()=>"1.5s"),d=y(r,"size",24,()=>"1em");var p=Gr();Z(()=>{J(p,"style",`--duration: ${h()??""}`),he(p,"border-color",`${c()??""} transparent ${c()??""} + ${c()??""}`),he(p,"width",d()),he(p,"height",d())}),T(l,p)}var Hr=ot("");function Jr(l,r){xe(r,!1);const c=hr(),h=()=>gr(L,"$store",c);let d=y(r,"wiggle",12,!1),p=y(r,"angle",8,0),g=y(r,"scale",8,1),o=y(r,"dx",8,0),b=y(r,"dy",8,0),x=y(r,"duration",8,200),w=y(r,"stiffness",8,.05),E=y(r,"damping",8,.1),S={angle:0,scale:1,dx:0,dy:0},L=dr(S,{stiffness:w(),damping:E()});zt(()=>(et(d()),et(x())),()=>{d()&&setTimeout(()=>d(!1),x())}),zt(()=>(et(d()),et(g()),et(p()),et(o()),et(b())),()=>{L.set(d()?{scale:g(),angle:p(),dx:o(),dy:b()}:S)}),tr(),er();var K=Hr(),Q=lt(K);Bt(Q,r,"default",{},null),Z(()=>he(K,"transform",`rotate(${h().angle??""}deg) scale(${h().scale??""}) translate(${h().dx??""}px, + ${h().dy??""}px)`)),T(l,K),Be()}var Yr=Le('');function Xr(l,r){const c=ke(r,["children","$$slots","$$events","$$legacy"]);var h=Yr();let d;Z(()=>d=Me(h,d,{...c,fill:"currentColor",viewBox:"0 0 16 16"},void 0,!0)),T(l,h)}var Zr=Le('');function Qe(l,r){const c=ke(r,["children","$$slots","$$events","$$legacy"]);var h=Zr();let d;Z(()=>d=Me(h,d,{...c,viewBox:"0 0 24 24",fill:"currentColor"},void 0,!0)),T(l,h)}var Kr=Le('');function Qr(l,r){const c=ke(r,["children","$$slots","$$events","$$legacy"]);var h=Kr();let d;Z(()=>d=Me(h,d,{...c,viewBox:"0 0 24 24",fill:"currentColor"},void 0,!0)),T(l,h)}const yt=l=>l instanceof Object?(l.label===void 0&&console.error(`MultiSelect option ${JSON.stringify(l)} is an object but has no label key`),l.label):`${l}`;function $e(l,r=null){let c="";if(["selected","option",null].includes(r)||console.error(`MultiSelect: Invalid key=${r} for get_style`),typeof l=="object"&&l.style&&(typeof l.style=="string"&&(c=l.style),typeof l.style=="object")){if(r&&r in l.style)return l.style[r]??"";console.error(`Invalid style object for option=${JSON.stringify(l)}`)}return c.trim()&&!c.trim().endsWith(";")&&(c+=";"),c}var $r=ot(''),tn=ot('
  • '),en=ot(" "),rn=ot(''),nn=ot(" ",1),ln=ot('
  • '),sn=ot('
  • '),on=ot('
    '),an=ot('
    ');function un(l,r){xe(r,!1);const c=ee();let h=y(r,"activeIndex",12,null),d=y(r,"activeOption",12,null),p=y(r,"createOptionMsg",24,()=>"Create this option..."),g=y(r,"allowUserOptions",8,!1),o=y(r,"allowEmpty",8,!1),b=y(r,"autocomplete",24,()=>"off"),x=y(r,"autoScroll",8,!0),w=y(r,"breakpoint",8,800),E=y(r,"defaultDisabledTitle",24,()=>"This option is disabled"),S=y(r,"disabled",8,!1),L=y(r,"disabledInputTitle",24,()=>"This input is disabled"),K=y(r,"duplicateOptionMsg",24,()=>"This option is already selected"),Q=y(r,"duplicates",8,!1),st=y(r,"key",8,u=>`${yt(u)}`.toLowerCase()),U=y(r,"filterFunc",8,(u,B)=>B?`${yt(u)}`.toLowerCase().includes(B.toLowerCase()):!0),O=y(r,"closeDropdownOnSelect",24,()=>"desktop"),I=y(r,"form_input",12,null),V=y(r,"highlightMatches",8,!0),W=y(r,"id",8,null),D=y(r,"input",12,null),nt=y(r,"inputClass",24,()=>""),ne=y(r,"inputStyle",8,null),Zt=y(r,"inputmode",8,null),St=y(r,"invalid",12,!1),ie=y(r,"liActiveOptionClass",24,()=>""),Kt=y(r,"liActiveUserMsgClass",24,()=>""),le=y(r,"liOptionClass",24,()=>""),Qt=y(r,"liOptionStyle",8,null),Rt=y(r,"liSelectedClass",24,()=>""),se=y(r,"liSelectedStyle",8,null),Ie=y(r,"liUserMsgClass",24,()=>""),de=y(r,"loading",8,!1),dt=y(r,"matchingOptions",28,()=>[]),Pt=y(r,"maxOptions",8,void 0),v=y(r,"maxSelect",8,null),at=y(r,"maxSelectMsg",8,(u,B)=>B>1?`${u}/${B}`:""),ge=y(r,"maxSelectMsgClass",24,()=>""),pe=y(r,"name",8,null),Gt=y(r,"noMatchingOptionsMsg",24,()=>"No matching options"),Ct=y(r,"open",12,!1),ct=y(r,"options",12),_t=y(r,"outerDiv",12,null),oe=y(r,"outerDivClass",24,()=>""),$t=y(r,"parseLabelsAsHtml",8,!1),_e=y(r,"pattern",8,null),ae=y(r,"placeholder",8,null),jt=y(r,"removeAllTitle",24,()=>"Remove all"),Wt=y(r,"removeBtnTitle",24,()=>"Remove"),me=y(r,"minSelect",8,null),gt=y(r,"required",8,!1),ue=y(r,"resetFilterOnAdd",8,!0),Y=y(r,"searchText",28,()=>""),_=y(r,"selected",28,()=>ct()?.filter(u=>u instanceof Object&&u?.preselected).slice(0,v()??void 0)??[]),Vt=y(r,"sortSelected",8,!1),Ht=y(r,"selectedOptionsDraggable",24,()=>!Vt()),bt=y(r,"style",8,null),ce=y(r,"ulOptionsClass",24,()=>""),ve=y(r,"ulSelectedClass",24,()=>""),Tt=y(r,"ulSelectedStyle",8,null),Ue=y(r,"ulOptionsStyle",8,null),n=y(r,"value",12,null);const t=u=>{n(v()===1?u[0]??null:u)},e=u=>{v()===1?_(u?[u]:[]):_(u??[])};let i=ee(!1);ct()?.length>0||(g()||de()||S()||o()?ct([]):console.error("MultiSelect received no options")),v()!==null&&v()<1&&console.error(`MultiSelect's maxSelect must be null or positive integer, got ${v()}`),Array.isArray(_())||console.error(`MultiSelect's selected prop should always be an array, got ${_()}`),v()&&typeof gt()=="number"&>()>v()&&console.error(`MultiSelect maxSelect=${v()} < required=${gt()}, makes it impossible for users to submit a valid form`),$t()&&g()&&console.warn("Don't combine parseLabelsAsHtml and allowUserOptions. It's susceptible to XSS attacks!"),Vt()&&Ht()&&console.warn("MultiSelect's sortSelected and selectedOptionsDraggable should not be combined as any user re-orderings of selected options will be undone by sortSelected on component re-renders."),g()&&!p()&&p()!==null&&console.error(`MultiSelect has allowUserOptions=${g()} but createOptionMsg=${p()} is falsy. This prevents the "Add option" from showing up, resulting in a confusing user experience.`),Pt()&&(typeof Pt()!="number"||Pt()<0||Pt()%1!=0)&&console.error(`MultiSelect's maxOptions must be undefined or a positive integer, got ${Pt()}`);const s=pr();let a=ee(!1),f=ee();if(h()!==null&&!dt()[h()])throw`Run time error, activeIndex=${h()} is out of bounds, matchingOptions.length=${dt().length}`;function A(u,B){v()&&v()>1&&_().length>=v()&&it(i,!0),!isNaN(Number(u))&&typeof _().map(yt)[0]=="number"&&(u=Number(u));const C=_().map(st()).includes(st()(u));if((v()===null||v()===1||_().length0&&(typeof ct()[0]=="object"?u={label:Y()}:(["number","undefined"].includes(typeof ct()[0])&&!isNaN(Number(Y()))?u=Number(Y()):u=Y(),s("create",{option:u})),g()==="append"&&ct([...ct(),u])),ue()&&Y(""),["",void 0,null].includes(u)){console.error(`MultiSelect: encountered falsy option ${u}`);return}v()===1?_([u]):(_([..._(),u]),Vt()===!0?_(_().sort((pt,H)=>{const[$,k]=[yt(pt),yt(H)];return`${$}`.localeCompare(`${k}`)})):typeof Vt()=="function"&&_(_().sort(Vt())));const N=_().length===v(),mt=O()===!0||O()==="desktop"&&m(f)st()(N)===st()(u));let[C]=_().splice(B,1);if(C===void 0&&g()&&(C=typeof ct()[0]?{label:u}:u),C===void 0)return console.error(`Multiselect can't remove selected option ${JSON.stringify(u)}, not found in selected list`);_([..._()]),St(!1),I()?.setCustomValidity(""),s("remove",{option:C}),s("change",{option:C,type:"remove"})}function R(u){S()||(Ct(!0),u instanceof FocusEvent||D()?.focus(),s("open",{event:u}))}function z(u){Ct(!1),D()?.blur(),h(null),s("close",{event:u})}async function P(u){if(u.key==="Escape"||u.key==="Tab")z(u),Y("");else if(u.key==="Enter")u.preventDefault(),d()?(_().includes(d())?q(d()):A(d(),u),Y("")):g()&&Y().length>0?A(Y(),u):R(u);else if(["ArrowDown","ArrowUp"].includes(u.key)){if(h()===null&&dt().length>0){h(0);return}else if(g()&&!dt().length&&Y().length>0){it(a,!m(a));return}else if(h()===null)return;u.preventDefault();const B=u.key==="ArrowUp"?-1:1;if(h((h()+B)%dt().length),h()<0&&h(dt().length-1),x()){await Br();const C=document.querySelector("ul.options > li.active");C&&C.scrollIntoViewIfNeeded?.()}}else u.key==="Backspace"&&_().length>0&&!Y()?q(_().at(-1)):dt().length>0&&h(0)}function Pe(){s("removeAll",{options:_()}),s("change",{options:_(),type:"removeAll"}),_([]),Y("")}const je=u=>B=>{["Enter","Space"].includes(B.code)&&(B.preventDefault(),u())};function Ve(u){_t()&&!_t().contains(u.target)&&z(u)}let Fe=ee(null);const lr=u=>B=>{if(!B.dataTransfer)return;B.dataTransfer.dropEffect="move";const C=parseInt(B.dataTransfer.getData("text/plain")),N=[..._()];CB=>{B.dataTransfer&&(B.dataTransfer.effectAllowed="move",B.dataTransfer.dropEffect="move",B.dataTransfer.setData("text/plain",`${u}`))};let Ae=ee();function or(u){if(!V()||typeof CSS>"u"||!CSS.highlights)return;CSS.highlights.clear();const B=u?.target?.value.trim().toLowerCase();if(!B)return;const C=document.createTreeWalker(m(Ae),NodeFilter.SHOW_TEXT,{acceptNode:H=>H?.textContent===Gt()?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),N=[];let mt=C.nextNode();for(;mt;)N.push(mt),mt=C.nextNode();const pt=N.map(H=>{const $=H.textContent?.toLowerCase(),k=[];let j=0;for(;$&&j<$.length;){const G=$.indexOf(B,j);if(G===-1)break;k.push(G),j=G+B.length}return k.map(G=>{const tt=new Range;return tt.setStart(H,G),tt.setEnd(H,G+B.length),tt})});CSS.highlights.set("sms-search-matches",new Highlight(...pt.flat()))}zt(()=>et(_()),()=>{t(_())}),zt(()=>et(n()),()=>{e(n())}),zt(()=>(et(ct()),et(U()),et(Y()),et(_()),et(st()),et(Q())),()=>{dt(ct().filter(u=>U()(u,Y())&&(!_().map(st()).includes(st()(u))||Q())))}),zt(()=>(et(dt()),et(h())),()=>{d(dt()[h()??-1]??null)}),zt(()=>(et(_()),yt),()=>{it(c,u=>_().map(yt).includes(u))}),zt(()=>(et(gt()),et(I())),()=>{gt(),I()?.setCustomValidity("")}),tr(),er();var xt=an();F("click",He,Ve),F("touchstart",He,Ve);var te=lt(xt);Z(()=>br(te,_().length>=Number(gt())?JSON.stringify(_()):null)),we(te,u=>I(u),()=>I());var qe=rt(te,2);Bt(qe,r,"expand-icon",{get open(){return Ct()}},u=>{Xr(u,{width:"15px",style:"min-width: 1em; padding: 0 1pt; cursor: pointer;"})});var ye=rt(qe,2),ze=lt(ye);be(ze,11,_,(u,B)=>Q()?[st()(u),B]:st()(u),(u,B,C)=>{var N=tn(),mt=Xt(()=>sr(m(C))),pt=Xt(()=>lr(m(C)));const H=At(()=>`${$e(m(B),"selected")??""} ${se()??""}`);var $=lt(N);Bt($,r,"selected",{get option(){return m(B)},get idx(){return m(C)}},j=>{var G=Ot(),tt=ht(G);Bt(tt,r,"default",{get option(){return m(B)},get idx(){return m(C)}},Jt=>{var Nt=Ot(),X=ht(Nt);ft(X,$t,vt=>{var Ut=Ot(),Ft=ht(Ut);Je(Ft,()=>yt(m(B))),T(vt,Ut)},vt=>{var Ut=Se();Z(()=>Dt(Ut,yt(m(B)))),T(vt,Ut)}),T(Jt,Nt)}),T(j,G)});var k=rt($,2);ft(k,()=>!S()&&(me()===null||_().length>me()),j=>{var G=$r(),tt=Xt(()=>je(()=>q(m(B))));Z(()=>J(G,"title",`${Wt()??""} ${yt(m(B))??""}`));var Jt=lt(G);Bt(Jt,r,"remove-icon",{},Nt=>{Qe(Nt,{width:"15px"})}),F("mouseup",G,Mt(()=>q(m(B)))),F("keydown",G,function(...Nt){m(tt)?.apply(this,Nt)}),T(j,G)}),Z(()=>{qt(N,`${Rt()??""} svelte-1r2hsto`),J(N,"draggable",Ht()&&!S()&&_().length>1),J(N,"style",m(H)),kt(N,"active",m(Fe)===m(C))}),yr(N,()=>xr,()=>({duration:100})),F("dragstart",N,function(...j){m(mt)?.apply(this,j)}),F("drop",N,Ye(function(...j){m(pt)?.apply(this,j)})),F("dragenter",N,()=>it(Fe,m(C))),F("dragover",N,Ye(function(j){ut.call(this,r,j)})),T(u,N)});var M=rt(ze,2);we(M,u=>D(u),()=>D());var ar=rt(M,2);Bt(ar,r,"after-input",{get selected(){return _()},get disabled(){return S()},get invalid(){return St()},get id(){return W()},get placeholder(){return ae()},get open(){return Ct()},get required(){return gt()}},null);var Ge=rt(ye,2);ft(Ge,de,u=>{var B=Ot(),C=ht(B);Bt(C,r,"spinner",{},N=>{Wr(N,{})}),T(u,B)});var We=rt(Ge,2);ft(We,S,u=>{var B=Ot(),C=ht(B);Bt(C,r,"disabled-icon",{},N=>{Qr(N,{width:"14pt",style:"margin: 0 2pt;","data-name":"disabled-icon"})}),T(u,B)},u=>{var B=Ot(),C=ht(B);ft(C,()=>_().length>0,N=>{var mt=nn(),pt=ht(mt);ft(pt,()=>v()&&(v()>1||at()),$=>{Jr($,{get wiggle(){return m(i)},set wiggle(k){it(i,k)},angle:20,children:(k,j)=>{var G=en(),tt=lt(G);Z(()=>Dt(tt,at()?.(_().length,v()))),Z(()=>qt(G,`max-select-msg ${ge()??""} svelte-1r2hsto`)),T(k,G)},$$slots:{default:!0},$$legacy:!0})});var H=rt(pt,2);ft(H,()=>v()!==1&&_().length>1,$=>{var k=rn(),j=Xt(()=>je(Pe)),G=lt(k);Bt(G,r,"remove-icon",{},tt=>{Qe(tt,{width:"15px"})}),Z(()=>J(k,"title",jt())),F("mouseup",k,Mt(Pe)),F("keydown",k,function(...tt){m(j)?.apply(this,tt)}),T($,k)}),T(N,mt)},null,!0),T(u,B)});var ur=rt(We,2);ft(ur,()=>Y()&&Gt()||ct()?.length>0,u=>{var B=on(),C=lt(B);be(C,1,()=>dt().slice(0,Math.max(0,Pt()??0)||1/0),De,(pt,H,$)=>{var k=ln();const j=At(()=>{const{label:X,disabled:vt=null,title:Ut=null,selectedTitle:Ft=null,disabledTitle:Yt=E()}=m(H)instanceof Object?m(H):{label:m(H)};return{label:X,disabled:vt,title:Ut,selectedTitle:Ft,disabledTitle:Yt}}),G=At(()=>h()===$);Z(()=>J(k,"title",m(j).disabled?m(j).disabledTitle:m(c)(m(j).label)&&m(j).selectedTitle||m(j).title));const tt=At(()=>`${$e(m(H),"option")??""} ${Qt()??""}`),Jt=At(()=>m(c)(m(j).label));var Nt=lt(k);Bt(Nt,r,"option",{get option(){return m(H)},idx:$},X=>{var vt=Ot(),Ut=ht(vt);Bt(Ut,r,"default",{get option(){return m(H)},idx:$},Ft=>{var Yt=Ot(),cr=ht(Yt);ft(cr,$t,Oe=>{var fe=Ot(),fr=ht(fe);Je(fr,()=>yt(m(H))),T(Oe,fe)},Oe=>{var fe=Se();Z(()=>Dt(fe,yt(m(H)))),T(Oe,fe)}),T(Ft,Yt)}),T(X,vt)}),Z(()=>{qt(k,`${le()??""} ${(m(G)?ie():"")??""} svelte-1r2hsto`),J(k,"style",m(tt)),kt(k,"selected",m(Jt)),kt(k,"active",m(G)),kt(k,"disabled",m(j).disabled)}),F("mousedown",k,Mt(function(X){ut.call(this,r,X)})),F("mouseup",k,Mt(X=>{m(j).disabled||A(m(H),X)})),F("mouseover",k,()=>{m(j).disabled||h($)}),F("focus",k,()=>{m(j).disabled||h($)}),F("mouseout",k,()=>h(null)),F("blur",k,()=>h(null)),T(pt,k)});var mt=rt(C,2);ft(mt,Y,pt=>{var H=Ot();const $=At(()=>_().map(yt).includes(Y())),k=At(()=>!Q()&&m($)&&"dupe"),j=At(()=>!!(g()&&p())&&"create"),G=At(()=>!!(dt()?.length==0&&Gt())&&"no-match"),tt=At(()=>m(k)||m(j)||m(G));var Jt=ht(H);ft(Jt,()=>m(tt),Nt=>{var X=sn();const vt=At(()=>({dupe:K(),create:p(),"no-match":Gt()})[m(tt)]);var Ut=lt(X);Bt(Ut,r,"user-msg",{get searchText(){return Y()},get msgType(){return m(tt)},get msg(){return m(vt)}},Ft=>{var Yt=Se();Z(()=>Dt(Yt,m(vt))),T(Ft,Yt)}),Z(()=>{J(X,"title",p()),qt(X,`user-msg ${Ie()??""} ${(m(a)?Kt():"")??""} svelte-1r2hsto`),kt(X,"active",m(a)),he(X,"cursor",{dupe:"not-allowed",create:"pointer","no-match":"default"}[m(tt)])}),F("mousedown",X,Mt(function(Ft){ut.call(this,r,Ft)})),F("mouseup",X,Mt(Ft=>{g()&&A(Y(),Ft)})),F("mouseover",X,()=>it(a,!0)),F("focus",X,()=>it(a,!0)),F("mouseout",X,()=>it(a,!1)),F("blur",X,()=>it(a,!1)),T(Nt,X)}),T(pt,H)}),we(B,pt=>it(Ae,pt),()=>m(Ae)),Z(()=>{qt(B,`options ${ce()??""} svelte-1r2hsto`),J(B,"aria-multiselectable",v()===null||v()>1),J(B,"aria-expanded",Ct()),J(B,"aria-disabled",S()?"true":null),J(B,"style",Ue()),kt(B,"hidden",!Ct())}),T(u,B)}),we(xt,u=>_t(u),()=>_t()),Z(()=>{qt(xt,`multiselect ${oe()??""} svelte-1r2hsto`),J(xt,"title",S()?L():null),J(xt,"data-id",W()),J(xt,"style",bt()),kt(xt,"disabled",S()),kt(xt,"single",v()===1),kt(xt,"open",Ct()),kt(xt,"invalid",St()),J(te,"name",pe()),te.required=gt(),qt(ye,`selected ${ve()??""} svelte-1r2hsto`),J(ye,"style",Tt()),qt(M,`${nt()??""} svelte-1r2hsto`),J(M,"style",ne()),J(M,"id",W()),M.disabled=S(),J(M,"autocomplete",b()),J(M,"inputmode",Zt()),J(M,"pattern",_e()),J(M,"placeholder",_().length==0?ae():null),J(M,"aria-invalid",St()?"true":null)}),mr("innerWidth",u=>it(f,u)),F("invalid",te,()=>{St(!0);let u;v()&&v()>1&&Number(gt())>1?u=`Please select between ${gt()} and ${v()} options`:Number(gt())>1?u=`Please select at least ${gt()} options`:u="Please select an option",I()?.setCustomValidity(u)}),rr(M,Y),F("mouseup",M,wr(Mt(R))),F("keydown",M,Mt(P)),F("focus",M,function(u){ut.call(this,r,u)}),F("focus",M,R),F("input",M,or),F("drop",M,()=>!1),F("blur",M,function(u){ut.call(this,r,u)}),F("change",M,function(u){ut.call(this,r,u)}),F("click",M,function(u){ut.call(this,r,u)}),F("keydown",M,function(u){ut.call(this,r,u)}),F("keyup",M,function(u){ut.call(this,r,u)}),F("mousedown",M,function(u){ut.call(this,r,u)}),F("mouseenter",M,function(u){ut.call(this,r,u)}),F("mouseleave",M,function(u){ut.call(this,r,u)}),F("touchcancel",M,function(u){ut.call(this,r,u)}),F("touchend",M,function(u){ut.call(this,r,u)}),F("touchmove",M,function(u){ut.call(this,r,u)}),F("touchstart",M,function(u){ut.call(this,r,u)}),F("mouseup",xt,Mt(R)),T(l,xt),Be()}function cn(l=!0){const r=this,c=new IntersectionObserver(function([h]){const d=h.intersectionRatio;if(d<1){const p=d<=0&&l?"center":"nearest";r.scrollIntoView({block:p,inline:p})}this.disconnect()});return c.observe(r),c}typeof Element<"u"&&!Element.prototype?.scrollIntoViewIfNeeded&&typeof IntersectionObserver<"u"&&(Element.prototype.scrollIntoViewIfNeeded=cn);const Et=Ne({file:null});var fn=ot('
    ',1),hn=ot('

    ');function dn(l,r){xe(r,!0);const c=Xt(()=>Et.file?.entries[r.entryName]);var h=Ot(),d=ht(h);ft(d,()=>m(c)!=null,p=>{var g=hn(),o=lt(g),b=lt(o),x=rt(o,2);be(x,21,()=>r.languages,De,(w,E)=>{var S=fn(),L=ht(S),K=lt(L),Q=rt(L,2);Z(()=>Dt(K,m(E))),rr(Q,()=>m(c).strings[m(E)],st=>m(c).strings[m(E)]=st),T(w,S)}),Z(()=>Dt(b,m(c).name)),T(p,g)}),T(l,h),Be()}var gn=ot('
    Drop file
    '),pn=ot('
    Invalid file
    '),mn=ot(''),yn=ot('

    ',1),wn=ot(' ',1);function bn(l,r){xe(r,!0);const c=Xt(()=>Object.values(Et.file?.entries??{}));let h=Ce(!1);Ir(()=>{m(h)&&setTimeout(()=>{it(h,!1)},7500)});const d=Xt(()=>{const O=Object.keys(m(c)[0].strings),I=Object.fromEntries(O.map(V=>[V,!1]));for(const V of O)for(const W of m(c))W.strings[V]==null||W.strings[V].length===0||(I[V]=!0);return Object.entries(I).filter(([,V])=>V).map(([V])=>V)});let p=Ce(Ne(["en"]));const g=async O=>{const I=O.target.files;if(I==null||I.length===0)return;const V=I.item(0),W=Ke(wt.Buffer.from(await V.arrayBuffer())),D=Object.fromEntries(W.entries.map(nt=>[nt.name,nt]));Et.file={name:V.name,meta:W.meta,entries:D}};let o=Ce(!1);const b=O=>{it(o,!0),O.preventDefault()},x=()=>{it(o,!1)},w=async O=>{O.preventDefault(),it(h,!1);try{const I=O.dataTransfer.items[0].getAsFile(),V=Ke(wt.Buffer.from(await I.arrayBuffer())),W=Object.fromEntries(V.entries.map(D=>[D.name,D]));Et.file={name:I.name,meta:V.meta,entries:W}}catch{it(h,!0)}it(o,!1)},E=()=>{if(Et.file==null)return;const O=Object.values(Et.file.entries),I={meta:Et.file.meta,entries:O},V=zr(I),W=new Blob([V],{type:"application/octet-stream"}),D=URL.createObjectURL(W),nt=document.createElement("a");nt.href=D,nt.download=Et.file.name,nt.click(),URL.revokeObjectURL(D),nt.remove()};var S=wn(),L=ht(S);L.__change=g;var K=rt(L,2),Q=lt(K);ft(Q,()=>m(o),O=>{var I=gn();Xe(3,I,()=>Ze,()=>({duration:100})),T(O,I)});var st=rt(Q,2);ft(st,()=>m(h),O=>{var I=pn();Xe(3,I,()=>Ze,()=>({duration:250})),T(O,I)});var U=rt(st,2);ft(U,()=>Et?.file==null,O=>{var I=mn();T(O,I)},O=>{var I=yn(),V=ht(I),W=lt(V),D=rt(V,2),nt=lt(D),ne=lt(nt),Zt=rt(nt,2),St=lt(Zt),ie=rt(Zt,2);ie.__click=E;var Kt=rt(D,2),le=lt(Kt);un(le,{placeholder:"Languages",get options(){return m(d)},get selected(){return m(p)},set selected(Rt){it(p,Ne(Rt))},outerDivClass:"w-300px min-h-32px b-color-amber",liOptionClass:"color-#eee bg-#333"});var Qt=rt(Kt,2);be(Qt,21,()=>m(c),De,(Rt,se)=>{dn(Rt,{get entryName(){return m(se).name},get languages(){return m(p)}})}),Z(()=>{Dt(W,Et.file.name),Dt(ne,`Version ${Et.file.meta.version??""}`),Dt(St,`${Et.file.meta.attributes.length??""} attributes`)}),T(O,I)}),F("drop",K,w),F("dragover",K,b),F("dragleave",K,x),T(l,S),Be()}Er(["change","click"]);_r(bn,{target:document.getElementById("root")}); diff --git a/index.html b/index.html index 9618015..493066c 100644 --- a/index.html +++ b/index.html @@ -52,7 +52,7 @@ -moz-osx-font-smoothing: grayscale; } - + diff --git a/sw.js b/sw.js index 4923243..39e2631 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let l={};const o=e=>i(e,t),u={module:{uri:t},exports:l,require:o};s[t]=Promise.all(n.map((e=>u[e]||o(e)))).then((e=>(r(...e),l)))}}define(["./workbox-4723e66c"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-CfTK7HIp.js",revision:null},{url:"assets/index-E1W45I6l.css",revision:null},{url:"assets/svelte-BQhP905-.js",revision:null},{url:"index.html",revision:"edbc5e465ce76dcd063b74f4a681906f"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"icon.png",revision:"47d624585b4d34eb61236b0ae7296742"},{url:"manifest.webmanifest",revision:"a6b31821e63956bb211731319596c98f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let l={};const o=e=>i(e,t),d={module:{uri:t},exports:l,require:o};s[t]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(r(...e),l)))}}define(["./workbox-4723e66c"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/index-Bz9w6lxo.js",revision:null},{url:"assets/index-E1W45I6l.css",revision:null},{url:"assets/svelte-BQhP905-.js",revision:null},{url:"index.html",revision:"2d4a8453fdf969d6957dac0fe462f87e"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"icon.png",revision:"47d624585b4d34eb61236b0ae7296742"},{url:"manifest.webmanifest",revision:"a6b31821e63956bb211731319596c98f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));