@htmlbricks/hb-uploader 0.66.0 → 0.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,10 +1,5 @@
1
- (function(Sn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const bs=1,ys=2,Rn="[",Jt="[!",Tn="]",qe={},P=Symbol(),ws="http://www.w3.org/1999/xhtml",Wt=!1;var Es=Array.isArray,Ss=Array.prototype.indexOf,Rs=Array.from,mt=Object.keys,gt=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,Ts=Object.getOwnPropertyDescriptors,$s=Object.prototype,Os=Array.prototype,$n=Object.getPrototypeOf,On=Object.isExtensible;function As(e){for(var t=0;t<e.length;t++)e[t]()}function An(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const N=2,Kt=4,Yt=8,ce=16,de=32,we=64,bt=128,Q=512,k=1024,B=2048,he=4096,ie=8192,pe=16384,yt=32768,He=65536,xn=1<<17,Cn=1<<18,Ne=1<<19,xs=1<<20,Pe=32768,Xt=1<<21,Gt=1<<22,Ee=1<<23,Zt=Symbol("$state"),Cs=Symbol("legacy props"),Ns=Symbol(""),ze=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Qt=3,Qe=8;function Ps(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ks(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ls(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ds(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Us(){throw new Error("https://svelte.dev/e/hydration_failed")}function js(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Bs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ms(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Is(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let E=!1;function Se(e){E=e}let T;function ee(e){if(e===null)throw wt(),qe;return T=e}function Et(){return ee(ve(T))}function et(e){if(E){if(ve(T)!==null)throw wt(),qe;T=e}}function Nn(e=1){if(E){for(var t=e,n=T;t--;)n=ve(n);T=n}}function Pn(e=!0){for(var t=0,n=T;;){if(n.nodeType===Qe){var r=n.data;if(r===Tn){if(t===0)return n;t-=1}else(r===Rn||r===Jt)&&(t+=1)}var s=ve(n);e&&n.remove(),n=s}}function Hs(e){if(!e||e.nodeType!==Qe)throw wt(),qe;return e.data}function kn(e){return e===this.v}function zs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vs(e){return!zs(e,this.v)}let Js=!1,V=null;function Ve(e){V=e}function Ln(e,t=!1,n){V={p:V,i:!1,c:null,e:null,s:e,x:null,l:null}}function Fn(e){var t=V,n=t.e;if(n!==null){t.e=null;for(var r of n)er(r)}return e!==void 0&&(t.x=e),t.i=!0,V=t.p,e??{}}function Dn(){return!0}let ke=[];function Un(){var e=ke;ke=[],As(e)}function St(e){if(ke.length===0&&!tt){var t=ke;queueMicrotask(()=>{t===ke&&Un()})}ke.push(e)}function Ws(){for(;ke.length>0;)Un()}function jn(e){var t=w;if(t===null)return y.f|=Ee,e;if((t.f&yt)===0){if((t.f&bt)===0)throw e;t.b.error(e)}else Je(e,t)}function Je(e,t){for(;t!==null;){if((t.f&bt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Rt=new Set;let O=null,J=null,W=[],Tt=null,en=!1,tt=!1;class te{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#l=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){W=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#f(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects)):(O=null,Mn(n.render_effects),Mn(n.effects),this.#l?.resolve()),J=null}#o(t,n){t.f^=k;for(var r=t.first;r!==null;){var s=r.f,i=(s&(de|we))!==0,o=i&&(s&k)!==0,a=o||(s&ie)!==0||this.skipped_effects.has(r);if((r.f&bt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!a&&r.fn!==null){i?r.f^=k:(s&Kt)!==0?n.effects.push(r):lt(r)&&((r.f&ce)!==0&&n.block_effects.push(r),ut(r));var u=r.first;if(u!==null){r=u;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)l===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects),n=n.parent),r=l.next,l=l.parent}}#a(t){for(const n of t)((n.f&B)!==0?this.#i:this.#s).push(n),this.#u(n.deps),D(n,k)}#u(t){if(t!==null)for(const n of t)(n.f&N)===0||(n.f&Pe)===0||(n.f^=Pe,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Ee)===0&&(this.current.set(t,t.v),J?.set(t,t.v))}activate(){O=this,this.apply()}deactivate(){O===this&&(O=null,J=null)}flush(){if(this.activate(),W.length>0){if(Bn(),O!==null&&O!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Rt.size>1){this.previous.clear();var t=J,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Rt){if(i===this){n=!1;continue}const o=[];for(const[u,l]of this.current){if(i.current.has(u))if(n&&l!==i.current.get(u))i.current.set(u,l);else continue;o.push(u)}if(o.length===0)continue;const a=[...i.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){var s=W;W=[];const u=new Set,l=new Map;for(const f of o)qn(f,a,u,l);if(W.length>0){O=i,i.apply();for(const f of W)i.#o(f,r);i.deactivate()}W=s}}O=null,J=t}this.committed=!0,Rt.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)D(t,B),Le(t);for(const t of this.#s)D(t,he),Le(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=An()).promise}static ensure(){if(O===null){const t=O=new te;Rt.add(O),tt||te.enqueue(()=>{O===t&&t.flush()})}return O}static enqueue(t){St(t)}apply(){}}function $t(e){var t=tt;tt=!0;try{for(var n;;){if(Ws(),W.length===0&&(O?.flush(),W.length===0))return Tt=null,n;Bn()}}finally{tt=t}}function Bn(){var e=Te;en=!0;var t=null;try{var n=0;for(Nt(!0);W.length>0;){var r=te.ensure();if(n++>1e3){var s,i;Ks()}r.process(W),Re.clear()}}finally{en=!1,Nt(e),Tt=null}}function Ks(){try{Ds()}catch(e){Je(e,Tt)}}let _e=null;function Mn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(pe|ie))===0&&lt(r)&&(_e=new Set,ut(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ir(r):r.fn=null),_e?.size>0)){Re.clear();for(const s of _e){if((s.f&(pe|ie))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)_e.has(o)&&(_e.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const u=i[a];(u.f&(pe|ie))===0&&ut(u)}}_e.clear()}}_e=null}}function qn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?qn(s,t,n,r):(i&(Gt|ce))!==0&&(i&B)===0&&In(s,t,r)&&(D(s,B),Le(s))}}function In(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&N)!==0&&In(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Le(e){for(var t=Tt=e;t.parent!==null;){t=t.parent;var n=t.f;if(en&&t===w&&(n&ce)!==0&&(n&Cn)===0)return;if((n&(we|de))!==0){if((n&k)===0)return;t.f^=k}}W.push(t)}function Ys(e){let t=0,n=nt(0),r;return()=>{xt()&&(R(n),tr(()=>(t===0&&(r=Ei(()=>e(()=>rt(n)))),t+=1,()=>{St(()=>{t-=1,t===0&&(r?.(),r=void 0,rt(n))})})))}}var Xs=He|Ne|bt;function Gs(e,t,n){new Zs(e,t,n)}class Zs{parent;#t=!1;#e;#n=E?T:null;#r;#l;#i;#s=null;#o=null;#a=null;#u=null;#f=null;#c=0;#d=0;#p=!1;#h=null;#b=Ys(()=>(this.#h=nt(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#l=r,this.parent=w.b,this.#t=!!this.#r.pending,this.#i=nr(()=>{if(w.b=this,E){const i=this.#n;Et(),i.nodeType===Qe&&i.data===Jt?this.#w():this.#y()}else{var s=this.#m();try{this.#s=me(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#v():this.#t=!1}return()=>{this.#f?.remove()}},Xs),E&&(this.#e=T)}#y(){try{this.#s=me(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#r.pending;t&&(this.#o=me(()=>t(this.#e)),te.enqueue(()=>{var n=this.#m();this.#s=this.#_(()=>(te.ensure(),me(()=>this.#l(n)))),this.#d>0?this.#v():(ot(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#f=oe(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=w,r=y,s=V;Y(this.#i),F(this.#i),Ve(this.#i.ctx);try{return t()}catch(i){return jn(i),null}finally{Y(n),F(r),Ve(s)}}#v(){const t=this.#r.pending;this.#s!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),lr(this.#s,this.#u)),this.#o===null&&(this.#o=me(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&ot(this.#o,()=>{this.#o=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&At(this.#h,this.#c)}get_effect_pending(){return this.#b(),R(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#p||!n&&!r)throw t;this.#s&&(M(this.#s),this.#s=null),this.#o&&(M(this.#o),this.#o=null),this.#a&&(M(this.#a),this.#a=null),E&&(ee(this.#n),Nn(),ee(Pn()));var s=!1,i=!1;const o=()=>{if(s){Is();return}s=!0,i&&qs(),te.ensure(),this.#c=0,this.#a!==null&&ot(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#p=!1,me(()=>this.#l(this.#e)))),this.#d>0?this.#v():this.#t=!1};var a=y;try{F(null),i=!0,n?.(t,o),i=!1}catch(u){Je(u,this.#i&&this.#i.parent)}finally{F(a)}r&&St(()=>{this.#a=this.#_(()=>{te.ensure(),this.#p=!0;try{return me(()=>{r(this.#e,()=>t,()=>o)})}catch(u){return Je(u,this.#i.parent),null}finally{this.#p=!1}})})}}function Qs(e,t,n,r){const s=Hn;if(n.length===0&&e.length===0){r(t.map(s));return}var i=O,o=w,a=ei();function u(){Promise.all(n.map(l=>ti(l))).then(l=>{a();try{r([...t.map(s),...l])}catch(f){(o.f&pe)===0&&Je(f,o)}i?.deactivate(),Ot()}).catch(l=>{Je(l,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return u()}finally{i?.deactivate(),Ot()}}):u()}function ei(){var e=w,t=y,n=V,r=O;return function(i=!0){Y(e),F(t),Ve(n),i&&r?.activate()}}function Ot(){Y(null),F(null),Ve(null)}function Hn(e){var t=N|B,n=y!==null&&(y.f&N)!==0?y:null;return w!==null&&(w.f|=Ne),{ctx:V,deps:null,effects:null,equals:kn,f:t,fn:e,reactions:null,rv:0,v:P,wv:0,parent:n??w,ac:null}}function ti(e,t){let n=w;n===null&&Ps();var r=n.b,s=void 0,i=nt(P),o=!y,a=new Map;return pi(()=>{var u=An();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{l===O&&l.committed&&l.deactivate(),Ot()})}catch(p){u.reject(p),Ot()}var l=O;if(o){var f=!r.is_pending();r.update_pending_count(1),l.increment(f),a.get(l)?.reject(ze),a.delete(l),a.set(l,u)}const h=(p,_=void 0)=>{if(l.activate(),_)_!==ze&&(i.f|=Ee,At(i,_));else{(i.f&Ee)!==0&&(i.f^=Ee),At(i,p);for(const[d,m]of a){if(a.delete(d),d===l)break;m.reject(ze)}}o&&(r.update_pending_count(-1),l.decrement(f))};u.promise.then(h,p=>h(null,p||"unknown"))}),Qn(()=>{for(const u of a.values())u.reject(ze)}),new Promise(u=>{function l(f){function h(){f===s?u(i):l(s)}f.then(h,h)}l(s)})}function zn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)M(t[n])}}function ni(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return(t.f&pe)===0?t:null;t=t.parent}return null}function tn(e){var t,n=w;Y(ni(e));try{e.f&=~Pe,zn(e),t=pr(e)}finally{Y(n)}return t}function Vn(e){var t=tn(e);if(e.equals(t)||(O?.is_fork||(e.v=t),e.wv=dr()),!Fe)if(J!==null)xt()&&J.set(e,t);else{var n=(e.f&Q)===0?he:k;D(e,n)}}let nn=new Set;const Re=new Map;let Jn=!1;function nt(e,t){var n={f:0,v:e,reactions:null,equals:kn,rv:0,wv:0};return n}function K(e,t){const n=nt(e);return bi(n),n}function ri(e,t=!1,n=!0){const r=nt(e);return t||(r.equals=Vs),r}function L(e,t,n=!1){y!==null&&(!le||(y.f&xn)!==0)&&Dn()&&(y.f&(N|ce|Gt|xn))!==0&&!ge?.includes(e)&&Ms();let r=n?st(t):t;return At(e,r)}function At(e,t){if(!e.equals(t)){var n=e.v;Fe?Re.set(e,t):Re.set(e,n),e.v=t;var r=te.ensure();r.capture(e,n),(e.f&N)!==0&&((e.f&B)!==0&&tn(e),D(e,(e.f&Q)!==0?k:he)),e.wv=dr(),Wn(e,B),w!==null&&(w.f&k)!==0&&(w.f&(de|we))===0&&(X===null?yi([e]):X.push(e)),!r.is_fork&&nn.size>0&&!Jn&&si()}return t}function si(){Jn=!1;var e=Te;Nt(!0);const t=Array.from(nn);try{for(const n of t)(n.f&k)!==0&&D(n,he),lt(n)&&ut(n)}finally{Nt(e)}nn.clear()}function rt(e){L(e,e.v+1)}function Wn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],o=i.f,a=(o&B)===0;if(a&&D(i,t),(o&N)!==0){var u=i;J?.delete(u),(o&Pe)===0&&(o&Q&&(i.f|=Pe),Wn(u,he))}else a&&((o&ce)!==0&&_e!==null&&_e.add(i),Le(i))}}function st(e){if(typeof e!="object"||e===null||Zt in e)return e;const t=$n(e);if(t!==$s&&t!==Os)return e;var n=new Map,r=Es(e),s=K(0),i=De,o=a=>{if(De===i)return a();var u=y,l=De;F(null),cr(i);var f=a();return F(u),cr(l),f};return r&&n.set("length",K(e.length)),new Proxy(e,{defineProperty(a,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&js();var f=n.get(u);return f===void 0?f=o(()=>{var h=K(l.value);return n.set(u,h),h}):L(f,l.value,!0),!0},deleteProperty(a,u){var l=n.get(u);if(l===void 0){if(u in a){const f=o(()=>K(P));n.set(u,f),rt(s)}}else L(l,P),rt(s);return!0},get(a,u,l){if(u===Zt)return e;var f=n.get(u),h=u in a;if(f===void 0&&(!h||Ie(a,u)?.writable)&&(f=o(()=>{var _=st(h?a[u]:P),d=K(_);return d}),n.set(u,f)),f!==void 0){var p=R(f);return p===P?void 0:p}return Reflect.get(a,u,l)},getOwnPropertyDescriptor(a,u){var l=Reflect.getOwnPropertyDescriptor(a,u);if(l&&"value"in l){var f=n.get(u);f&&(l.value=R(f))}else if(l===void 0){var h=n.get(u),p=h?.v;if(h!==void 0&&p!==P)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return l},has(a,u){if(u===Zt)return!0;var l=n.get(u),f=l!==void 0&&l.v!==P||Reflect.has(a,u);if(l!==void 0||w!==null&&(!f||Ie(a,u)?.writable)){l===void 0&&(l=o(()=>{var p=f?st(a[u]):P,_=K(p);return _}),n.set(u,l));var h=R(l);if(h===P)return!1}return f},set(a,u,l,f){var h=n.get(u),p=u in a;if(r&&u==="length")for(var _=l;_<h.v;_+=1){var d=n.get(_+"");d!==void 0?L(d,P):_ in a&&(d=o(()=>K(P)),n.set(_+"",d))}if(h===void 0)(!p||Ie(a,u)?.writable)&&(h=o(()=>K(void 0)),L(h,st(l)),n.set(u,h));else{p=h.v!==P;var m=o(()=>st(l));L(h,m)}var v=Reflect.getOwnPropertyDescriptor(a,u);if(v?.set&&v.set.call(f,l),!p){if(r&&typeof u=="string"){var $=n.get("length"),C=Number(u);Number.isInteger(C)&&C>=$.v&&L($,C+1)}rt(s)}return!0},ownKeys(a){R(s);var u=Reflect.ownKeys(a).filter(h=>{var p=n.get(h);return p===void 0||p.v!==P});for(var[l,f]of n)f.v!==P&&!(l in a)&&u.push(l);return u},setPrototypeOf(){Bs()}})}var Kn,Yn,Xn,Gn;function rn(){if(Kn===void 0){Kn=window,Yn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Xn=Ie(t,"firstChild").get,Gn=Ie(t,"nextSibling").get,On(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),On(n)&&(n.__t=void 0)}}function oe(e=""){return document.createTextNode(e)}function We(e){return Xn.call(e)}function ve(e){return Gn.call(e)}function it(e,t){if(!E)return We(e);var n=We(T);return n===null&&(n=T.appendChild(oe())),ee(n),n}function Zn(e,t=!1){if(!E){var n=We(e);return n instanceof Comment&&n.data===""?ve(n):n}if(t&&T?.nodeType!==Qt){var r=oe();return T?.before(r),ee(r),r}return T}function ii(e,t=1,n=!1){let r=E?T:e;for(var s;t--;)s=r,r=ve(r);if(!E)return r;if(n&&r?.nodeType!==Qt){var i=oe();return r===null?s?.after(i):r.before(i),ee(i),i}return ee(r),r}function oi(e){e.textContent=""}function ai(){return!1}function sn(e){var t=y,n=w;F(null),Y(null);try{return e()}finally{F(t),Y(n)}}function li(e){w===null&&(y===null&&Fs(),Ls()),Fe&&ks()}function ui(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ae(e,t,n){var r=w;r!==null&&(r.f&ie)!==0&&(e|=ie);var s={ctx:V,deps:null,nodes_start:null,nodes_end:null,f:e|B|Q,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ut(s),s.f|=yt}catch(a){throw M(s),a}else t!==null&&Le(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Ne)===0&&(i=i.first,(e&ce)!==0&&(e&He)!==0&&i!==null&&(i.f|=He)),i!==null&&(i.parent=r,r!==null&&ui(i,r),y!==null&&(y.f&N)!==0&&(e&we)===0)){var o=y;(o.effects??=[]).push(i)}return s}function xt(){return y!==null&&!le}function Qn(e){const t=ae(Yt,null,!1);return D(t,k),t.teardown=e,t}function fi(e){li();var t=w.f,n=!y&&(t&de)!==0&&(t&yt)===0;if(n){var r=V;(r.e??=[]).push(e)}else return er(e)}function er(e){return ae(Kt|xs,e,!1)}function ci(e){te.ensure();const t=ae(we|Ne,e,!0);return()=>{M(t)}}function di(e){te.ensure();const t=ae(we|Ne,e,!0);return(n={})=>new Promise(r=>{n.outro?ot(t,()=>{M(t),r(void 0)}):(M(t),r(void 0))})}function hi(e){return ae(Kt,e,!1)}function pi(e){return ae(Gt|Ne,e,!0)}function tr(e,t=0){return ae(Yt|t,e,!0)}function Ct(e,t=[],n=[],r=[]){Qs(r,t,n,s=>{ae(Yt,()=>e(...s.map(R)),!0)})}function nr(e,t=0){var n=ae(ce|t,e,!0);return n}function me(e){return ae(de|Ne,e,!0)}function rr(e){var t=e.teardown;if(t!==null){const n=Fe,r=y;ur(!0),F(null);try{t.call(null)}finally{ur(n),F(r)}}}function sr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&sn(()=>{s.abort(ze)});var r=n.next;(n.f&we)!==0?n.parent=null:M(n,t),n=r}}function _i(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&de)===0&&M(t),t=n}}function M(e,t=!0){var n=!1;(t||(e.f&Cn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(vi(e.nodes_start,e.nodes_end),n=!0),sr(e,t&&!n),Pt(e,0),D(e,pe);var r=e.transitions;if(r!==null)for(const i of r)i.stop();rr(e);var s=e.parent;s!==null&&s.first!==null&&ir(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function vi(e,t){for(;e!==null;){var n=e===t?null:ve(e);e.remove(),e=n}}function ir(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ot(e,t,n=!0){var r=[];or(e,r,!0),mi(r,()=>{n&&M(e),t&&t()})}function mi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function or(e,t,n){if((e.f&ie)===0){if(e.f^=ie,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&He)!==0||(r.f&de)!==0&&(e.f&ce)!==0;or(r,t,i?n:!1),r=s}}}function gi(e){ar(e,!0)}function ar(e,t){if((e.f&ie)!==0){e.f^=ie,(e.f&k)===0&&(D(e,B),Le(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&He)!==0||(n.f&de)!==0;ar(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function lr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:ve(n);t.append(n),n=s}}let Te=!1;function Nt(e){Te=e}let Fe=!1;function ur(e){Fe=e}let y=null,le=!1;function F(e){y=e}let w=null;function Y(e){w=e}let ge=null;function bi(e){y!==null&&(ge===null?ge=[e]:ge.push(e))}let j=null,z=0,X=null;function yi(e){X=e}let fr=1,at=0,De=at;function cr(e){De=e}function dr(){return++fr}function lt(e){var t=e.f;if((t&B)!==0)return!0;if(t&N&&(e.f&=~Pe),(t&he)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(lt(i)&&Vn(i),i.wv>e.wv)return!0}(t&Q)!==0&&J===null&&D(e,k)}return!1}function hr(e,t,n=!0){var r=e.reactions;if(r!==null&&!ge?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&N)!==0?hr(i,t,!1):t===i&&(n?D(i,B):(i.f&k)!==0&&D(i,he),Le(i))}}function pr(e){var t=j,n=z,r=X,s=y,i=ge,o=V,a=le,u=De,l=e.f;j=null,z=0,X=null,y=(l&(de|we))===0?e:null,ge=null,Ve(e.ctx),le=!1,De=++at,e.ac!==null&&(sn(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=Xt;var f=e.fn,h=f(),p=e.deps;if(j!==null){var _;if(Pt(e,z),p!==null&&z>0)for(p.length=z+j.length,_=0;_<j.length;_++)p[z+_]=j[_];else e.deps=p=j;if(Te&&xt()&&(e.f&Q)!==0)for(_=z;_<p.length;_++)(p[_].reactions??=[]).push(e)}else p!==null&&z<p.length&&(Pt(e,z),p.length=z);if(Dn()&&X!==null&&!le&&p!==null&&(e.f&(N|he|B))===0)for(_=0;_<X.length;_++)hr(X[_],e);return s!==null&&s!==e&&(at++,X!==null&&(r===null?r=X:r.push(...X))),(e.f&Ee)!==0&&(e.f^=Ee),h}catch(d){return jn(d)}finally{e.f^=Xt,j=t,z=n,X=r,y=s,ge=i,Ve(o),le=a,De=u}}function wi(e,t){let n=t.reactions;if(n!==null){var r=Ss.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&N)!==0&&(j===null||!j.includes(t))&&(D(t,he),(t.f&Q)!==0&&(t.f^=Q,t.f&=~Pe),zn(t),Pt(t,0))}function Pt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)wi(e,n[r])}function ut(e){var t=e.f;if((t&pe)===0){D(e,k);var n=w,r=Te;w=e,Te=!0;try{(t&ce)!==0?_i(e):sr(e),rr(e);var s=pr(e);e.teardown=typeof s=="function"?s:null,e.wv=fr;var i;Wt&&Js&&(e.f&B)!==0&&e.deps}finally{Te=r,w=n}}}function R(e){var t=e.f,n=(t&N)!==0;if(y!==null&&!le){var r=w!==null&&(w.f&pe)!==0;if(!r&&!ge?.includes(e)){var s=y.deps;if((y.f&Xt)!==0)e.rv<at&&(e.rv=at,j===null&&s!==null&&s[z]===e?z++:j===null?j=[e]:j.includes(e)||j.push(e));else{(y.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[y]:i.includes(y)||i.push(y)}}}if(Fe){if(Re.has(e))return Re.get(e);if(n){var o=e,a=o.v;return((o.f&k)===0&&o.reactions!==null||vr(o))&&(a=tn(o)),Re.set(o,a),a}}else n&&!J?.has(e)&&(o=e,lt(o)&&Vn(o),Te&&xt()&&(o.f&Q)===0&&_r(o));if(J?.has(e))return J.get(e);if((e.f&Ee)!==0)throw e.v;return e.v}function _r(e){if(e.deps!==null){e.f^=Q;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&Q)===0&&_r(t)}}function vr(e){if(e.v===P)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||(t.f&N)!==0&&vr(t))return!0;return!1}function Ei(e){var t=le;try{return le=!0,e()}finally{le=t}}const Si=-7169;function D(e,t){e.f=e.f&Si|t}const Ri=new Set,mr=new Set;function Ti(e,t,n,r={}){function s(i){if(r.capture||ft.call(t,i),!i.cancelBubble)return sn(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?St(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function $i(e,t,n,r,s){var i={capture:r,passive:s},o=Ti(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qn(()=>{t.removeEventListener(e,o,i)})}let gr=null;function ft(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;gr=e;var o=0,a=gr===e&&e.__root;if(a){var u=s.indexOf(a);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=s.indexOf(t);if(l===-1)return;u<=l&&(o=u)}if(i=s[o]||e.target,i!==t){gt(e,"currentTarget",{configurable:!0,get(){return i||n}});var f=y,h=w;F(null),Y(null);try{for(var p,_=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var m=i["__"+r];m!=null&&(!i.disabled||e.target===i)&&m.call(i,e)}catch(v){p?_.push(v):p=v}if(e.cancelBubble||d===t||d===null)break;i=d}if(p){for(let v of _)queueMicrotask(()=>{throw v});throw p}}finally{e.__root=t,delete e.currentTarget,F(f),Y(h)}}}function Oi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function $e(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function on(e,t){var n=(t&bs)!==0,r=(t&ys)!==0,s,i=!e.startsWith("<!>");return()=>{if(E)return $e(T,null),T;s===void 0&&(s=Oi(i?e:"<!>"+e),n||(s=We(s)));var o=r||Yn?document.importNode(s,!0):s.cloneNode(!0);if(n){var a=We(o),u=o.lastChild;$e(a,u)}else $e(o,o);return o}}function br(e=""){if(!E){var t=oe(e+"");return $e(t,t),t}var n=T;return n.nodeType!==Qt&&(n.before(n=oe()),ee(n)),$e(n,n),n}function yr(){if(E)return $e(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(""),n=oe();return e.append(t,n),$e(t,n),e}function Oe(e,t){if(E){var n=w;((n.f&yt)===0||n.nodes_end===null)&&(n.nodes_end=T),Et();return}e!==null&&e.before(t)}const Ai=["touchstart","touchmove"];function xi(e){return Ai.includes(e)}function wr(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Er(e,t){return Sr(e,t)}function Ci(e,t){rn(),t.intro=t.intro??!1;const n=t.target,r=E,s=T;try{for(var i=We(n);i&&(i.nodeType!==Qe||i.data!==Rn);)i=ve(i);if(!i)throw qe;Se(!0),ee(i);const o=Sr(e,{...t,anchor:i});return Se(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==qe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Us(),rn(),oi(n),Se(!1),Er(e,t)}finally{Se(r),ee(s)}}const Ke=new Map;function Sr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0}){rn();var a=new Set,u=h=>{for(var p=0;p<h.length;p++){var _=h[p];if(!a.has(_)){a.add(_);var d=xi(_);t.addEventListener(_,ft,{passive:d});var m=Ke.get(_);m===void 0?(document.addEventListener(_,ft,{passive:d}),Ke.set(_,1)):Ke.set(_,m+1)}}};u(Rs(Ri)),mr.add(u);var l=void 0,f=di(()=>{var h=n??t.appendChild(oe());return Gs(h,{pending:()=>{}},p=>{if(i){Ln({});var _=V;_.c=i}if(s&&(r.$$events=s),E&&$e(p,null),l=e(p,r)||{},E&&(w.nodes_end=T,T===null||T.nodeType!==Qe||T.data!==Tn))throw wt(),qe;i&&Fn()}),()=>{for(var p of a){t.removeEventListener(p,ft);var _=Ke.get(p);--_===0?(document.removeEventListener(p,ft),Ke.delete(p)):Ke.set(p,_)}mr.delete(u),h!==n&&h.parentNode?.removeChild(h)}});return an.set(l,f),l}let an=new WeakMap;function Ni(e,t){const n=an.get(e);return n?(an.delete(e),n(t)):Promise.resolve()}class Pi{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#i=()=>{var t=O;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)gi(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#n.get(o);a&&(M(a.effect),this.#n.delete(o))}for(const[i,o]of this.#e){if(i===n||this.#r.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var l=document.createDocumentFragment();lr(o,l),l.append(oe()),this.#n.set(i,{effect:o,fragment:l})}else M(o);this.#r.delete(i),this.#e.delete(i)};this.#l||!r?(this.#r.add(i),ot(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(M(s.effect),this.#n.delete(r))};ensure(t,n){var r=O,s=ai();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),o=oe();i.append(o),this.#n.set(t,{effect:me(()=>n(o)),fragment:i})}else this.#e.set(t,me(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[a,u]of this.#e)a===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[a,u]of this.#n)a===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#i),r.ondiscard(this.#s)}else E&&(this.anchor=T),this.#i()}}function ln(e,t,n=!1){E&&Et();var r=new Pi(e),s=n?He:0;function i(o,a){if(E){const l=Hs(e)===Jt;if(o===l){var u=Pn();ee(u),r.anchor=u,Se(!1),r.ensure(o,a),Se(!0);return}}r.ensure(o,a)}nr(()=>{var o=!1;t((a,u=!0)=>{o=!0,i(u,a)}),o||i(!1,null)},s)}function ki(e,t,n,r,s){E&&Et();var i=t.$$slots?.[n],o=!1;i===!0&&(i=t[n],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>r:r)}function Li(e,t){hi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Fi(e,t,n){var r=""+e;return r}function Di(e,t){return e==null?null:String(e)}function Ui(e,t,n,r,s,i){var o=e.__className;if(E||o!==n||o===void 0){var a=Fi(n);(!E||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return i}function ji(e,t,n,r){var s=e.__style;if(E||s!==t){var i=Di(t);(!E||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Bi=Symbol("is custom element"),Mi=Symbol("is html");function Rr(e,t,n,r){var s=qi(e);E&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Ns]=n),n==null?e.removeAttribute(t):typeof n!="string"&&$r(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Tr(e,t,n){var r=y,s=w;let i=E;E&&Se(!1),F(null),Y(null);try{t!=="style"&&(un.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?$r(e).includes(t):n&&typeof n=="object")?e[t]=n:Rr(e,t,n==null?n:String(n))}finally{F(r),Y(s),i&&Se(!0)}}function qi(e){return e.__attributes??={[Bi]:e.nodeName.includes("-"),[Mi]:e.namespaceURI===ws}}var un=new Map;function $r(e){var t=e.getAttribute("is")||e.nodeName,n=un.get(t);if(n)return n;un.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Ts(s);for(var o in r)r[o].set&&n.push(o);s=$n(s)}return n}function fn(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var u;u=()=>{var p=e[t];return p===void 0?o():(i=!0,p)};var l=!1,f=Hn(()=>(l=!1,u())),h=w;return(function(p,_){if(arguments.length>0){const d=_?R(f):p;return L(f,d),l=!0,s!==void 0&&(s=d),p}return Fe&&l||(h.f&pe)!==0?f.v:R(f)})}function Ii(e){return new Hi(e)}class Hi{#t;#e;constructor(t){var n=new Map,r=(i,o)=>{var a=ri(o,!1,!1);return n.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return R(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===Cs?!0:(R(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return L(n.get(o)??r(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Ci:Er)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&$t(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||gt(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Ni(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Or;typeof HTMLElement=="function"&&(Or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Oe(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=zi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=kt(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ci(()=>{tr(()=>{this.$$r=!0;for(const r of mt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=kt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=kt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return mt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function kt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function zi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Vi(e,t,n,r,s,i){let o=class extends Or{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return mt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return mt(t).forEach(a=>{gt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=kt(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var f=Ie(l,a)?.get;f?l[a]=u:l.$set({[a]:u})}}})}),r.forEach(a=>{gt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const Ji={version:"0.66.0"};function Ar(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wi}=Object.prototype,{getPrototypeOf:cn}=Object,{iterator:Lt,toStringTag:xr}=Symbol,Ft=(e=>t=>{const n=Wi.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ne=e=>(e=e.toLowerCase(),t=>Ft(t)===e),Dt=e=>t=>typeof t===e,{isArray:Ye}=Array,Xe=Dt("undefined");function ct(e){return e!==null&&!Xe(e)&&e.constructor!==null&&!Xe(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cr=ne("ArrayBuffer");function Ki(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cr(e.buffer),t}const Yi=Dt("string"),q=Dt("function"),Nr=Dt("number"),dt=e=>e!==null&&typeof e=="object",Xi=e=>e===!0||e===!1,Ut=e=>{if(Ft(e)!=="object")return!1;const t=cn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(xr in e)&&!(Lt in e)},Gi=e=>{if(!dt(e)||ct(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zi=ne("Date"),Qi=ne("File"),eo=ne("Blob"),to=ne("FileList"),no=e=>dt(e)&&q(e.pipe),ro=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=Ft(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},so=ne("URLSearchParams"),[io,oo,ao,lo]=["ReadableStream","Request","Response","Headers"].map(ne),uo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ht(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ye(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ct(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Pr(e,t){if(ct(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kr=e=>!Xe(e)&&e!==Ue;function dn(){const{caseless:e,skipUndefined:t}=kr(this)&&this||{},n={},r=(s,i)=>{const o=e&&Pr(n,i)||i;Ut(n[o])&&Ut(s)?n[o]=dn(n[o],s):Ut(s)?n[o]=dn({},s):Ye(s)?n[o]=s.slice():(!t||!Xe(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&ht(arguments[s],r);return n}const fo=(e,t,n,{allOwnKeys:r}={})=>(ht(t,(s,i)=>{n&&q(s)?e[i]=Ar(s,n):e[i]=s},{allOwnKeys:r}),e),co=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ho=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},po=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&cn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_o=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vo=e=>{if(!e)return null;if(Ye(e))return e;let t=e.length;if(!Nr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cn(Uint8Array)),go=(e,t)=>{const r=(e&&e[Lt]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},bo=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yo=ne("HTMLFormElement"),wo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Lr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eo=ne("RegExp"),Fr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ht(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},So=e=>{Fr(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ro=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Ye(e)?r(e):r(String(e).split(t)),n},To=()=>{},$o=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Oo(e){return!!(e&&q(e.append)&&e[xr]==="FormData"&&e[Lt])}const Ao=e=>{const t=new Array(10),n=(r,s)=>{if(dt(r)){if(t.indexOf(r)>=0)return;if(ct(r))return r;if(!("toJSON"in r)){t[s]=r;const i=Ye(r)?[]:{};return ht(r,(o,a)=>{const u=n(o,s+1);!Xe(u)&&(i[a]=u)}),t[s]=void 0,i}}return r};return n(e,0)},xo=ne("AsyncFunction"),Co=e=>e&&(dt(e)||q(e))&&q(e.then)&&q(e.catch),Dr=((e,t)=>e?setImmediate:t?((n,r)=>(Ue.addEventListener("message",({source:s,data:i})=>{s===Ue&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Ue.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(Ue.postMessage)),No=typeof queueMicrotask<"u"?queueMicrotask.bind(Ue):typeof process<"u"&&process.nextTick||Dr,c={isArray:Ye,isArrayBuffer:Cr,isBuffer:ct,isFormData:ro,isArrayBufferView:Ki,isString:Yi,isNumber:Nr,isBoolean:Xi,isObject:dt,isPlainObject:Ut,isEmptyObject:Gi,isReadableStream:io,isRequest:oo,isResponse:ao,isHeaders:lo,isUndefined:Xe,isDate:Zi,isFile:Qi,isBlob:eo,isRegExp:Eo,isFunction:q,isStream:no,isURLSearchParams:so,isTypedArray:mo,isFileList:to,forEach:ht,merge:dn,extend:fo,trim:uo,stripBOM:co,inherits:ho,toFlatObject:po,kindOf:Ft,kindOfTest:ne,endsWith:_o,toArray:vo,forEachEntry:go,matchAll:bo,isHTMLForm:yo,hasOwnProperty:Lr,hasOwnProp:Lr,reduceDescriptors:Fr,freezeMethods:So,toObjectSet:Ro,toCamelCase:wo,noop:To,toFiniteNumber:$o,findKey:Pr,global:Ue,isContextDefined:kr,isSpecCompliantForm:Oo,toJSONObject:Ao,isAsyncFn:xo,isThenable:Co,setImmediate:Dr,asap:No,isIterable:e=>e!=null&&q(e[Lt])};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}});const Ur=g.prototype,jr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jr[e]={value:e}}),Object.defineProperties(g,jr),Object.defineProperty(Ur,"isAxiosError",{value:!0}),g.from=(e,t,n,r,s,i)=>{const o=Object.create(Ur);c.toFlatObject(e,o,function(f){return f!==Error.prototype},l=>l!=="isAxiosError");const a=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return g.call(o,a,u,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Po=null;function hn(e){return c.isPlainObject(e)||c.isArray(e)}function Br(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Mr(e,t,n){return e?e.concat(t).map(function(s,i){return s=Br(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function ko(e){return c.isArray(e)&&!e.some(hn)}const Lo=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function jt(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!c.isUndefined(v[m])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(c.isDate(d))return d.toISOString();if(c.isBoolean(d))return d.toString();if(!u&&c.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(d)||c.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,v){let $=d;if(d&&!v&&typeof d=="object"){if(c.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(c.isArray(d)&&ko(d)||(c.isFileList(d)||c.endsWith(m,"[]"))&&($=c.toArray(d)))return m=Br(m),$.forEach(function(x,b){!(c.isUndefined(x)||x===null)&&t.append(o===!0?Mr([m],b,i):o===null?m:m+"[]",l(x))}),!1}return hn(d)?!0:(t.append(Mr(v,m,i),l(d)),!1)}const h=[],p=Object.assign(Lo,{defaultVisitor:f,convertValue:l,isVisitable:hn});function _(d,m){if(!c.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(d),c.forEach(d,function($,C){(!(c.isUndefined($)||$===null)&&s.call(t,$,c.isString(C)?C.trim():C,m,p))===!0&&_($,m?m.concat(C):[C])}),h.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return _(e),t}function qr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pn(e,t){this._pairs=[],e&&jt(e,this,t)}const Ir=pn.prototype;Ir.append=function(t,n){this._pairs.push([t,n])},Ir.toString=function(t){const n=t?function(r){return t.call(this,r,qr)}:qr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hr(e,t,n){if(!t)return e;const r=n&&n.encode||Fo;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=c.isURLSearchParams(t)?t.toString():new pn(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class zr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Vr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Do={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_n=typeof window<"u"&&typeof document<"u",vn=typeof navigator=="object"&&navigator||void 0,Uo=_n&&(!vn||["ReactNative","NativeScript","NS"].indexOf(vn.product)<0),jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bo=_n&&window.location.href||"http://localhost",U={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_n,hasStandardBrowserEnv:Uo,hasStandardBrowserWebWorkerEnv:jo,navigator:vn,origin:Bo},Symbol.toStringTag,{value:"Module"})),...Do};function Mo(e,t){return jt(e,new U.classes.URLSearchParams,{visitor:function(n,r,s,i){return U.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function qo(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Io(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Jr(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=i>=n.length;return o=!o&&c.isArray(s)?s.length:o,u?(c.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&c.isArray(s[o])&&(s[o]=Io(s[o])),!a)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(qo(r),s,n,0)}),n}return null}function Ho(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pt={transitional:Vr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=c.isObject(t);if(i&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Jr(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mo(t,this.formSerializer).toString();if((a=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return jt(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ho(t)):t}],transformResponse:[function(t){const n=this.transitional||pt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{pt.headers[e]={}});const zo=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vo=e=>{const t={};let n,r,s;return e&&e.split(`
3
- `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&zo[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wr=Symbol("internals");function _t(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return e===!1||e==null?e:c.isArray(e)?e.map(Bt):String(e)}function Jo(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wo=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mn(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Ko(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Yo(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let I=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,u,l){const f=_t(u);if(!f)throw new Error("header name must be a non-empty string");const h=c.findKey(s,f);(!h||s[h]===void 0||l===!0||l===void 0&&s[h]!==!1)&&(s[h||u]=Bt(a))}const o=(a,u)=>c.forEach(a,(l,f)=>i(l,f,u));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!Wo(t))o(Vo(t),n);else if(c.isObject(t)&&c.isIterable(t)){let a={},u,l;for(const f of t){if(!c.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[l=f[0]]=(u=a[l])?c.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=_t(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Jo(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_t(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||mn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=_t(o),o){const a=c.findKey(r,o);a&&(!n||mn(r,r[a],a,n))&&(delete r[a],s=!0)}}return c.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||mn(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,i)=>{const o=c.findKey(r,i);if(o){n[o]=Bt(s),delete n[i];return}const a=t?Ko(i):String(i).trim();a!==i&&delete n[i],n[a]=Bt(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
4
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Wr]=this[Wr]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=_t(o);r[a]||(Yo(s,o),r[a]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(I.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),c.freezeMethods(I);function gn(e,t){const n=this||pt,r=t||n,s=I.from(r.headers);let i=r.data;return c.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Kr(e){return!!(e&&e.__CANCEL__)}function Ge(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(Ge,g,{__CANCEL__:!0});function Yr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Xo(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Go(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),f=r[i];o||(o=l),n[s]=u,r[s]=l;let h=i,p=0;for(;h!==s;)p+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const _=f&&l-f;return _?Math.round(p*1e3/_):void 0}}function Zo(e,t){let n=0,r=1e3/t,s,i;const o=(l,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const f=Date.now(),h=f-n;h>=r?o(l,f):(s=l,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const Mt=(e,t,n=3)=>{let r=0;const s=Go(50,250);return Zo(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,u=o-r,l=s(u),f=o<=a;r=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a&&f?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Xr=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Gr=e=>(...t)=>c.asap(()=>e(...t)),Qo=U.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,U.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,ea=U.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];c.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),c.isString(r)&&a.push(`path=${r}`),c.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),c.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ta(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function na(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zr(e,t,n){let r=!ta(t);return e&&(r||n==!1)?na(e,t):t}const Qr=e=>e instanceof I?{...e}:e;function je(e,t){t=t||{};const n={};function r(l,f,h,p){return c.isPlainObject(l)&&c.isPlainObject(f)?c.merge.call({caseless:p},l,f):c.isPlainObject(f)?c.merge({},f):c.isArray(f)?f.slice():f}function s(l,f,h,p){if(c.isUndefined(f)){if(!c.isUndefined(l))return r(void 0,l,h,p)}else return r(l,f,h,p)}function i(l,f){if(!c.isUndefined(f))return r(void 0,f)}function o(l,f){if(c.isUndefined(f)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,h){if(h in t)return r(l,f);if(h in e)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,f,h)=>s(Qr(l),Qr(f),h,!0)};return c.forEach(Object.keys({...e,...t}),function(f){const h=u[f]||s,p=h(e[f],t[f],f);c.isUndefined(p)&&h!==a||(n[f]=p)}),n}const es=e=>{const t=je({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=I.from(o),t.url=Hr(Zr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(n)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(c.isFunction(n.getHeaders)){const u=n.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([f,h])=>{l.includes(f.toLowerCase())&&o.set(f,h)})}}if(U.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&Qo(t.url))){const u=s&&i&&ea.read(i);u&&o.set(s,u)}return t},ra=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=es(e);let i=s.data;const o=I.from(s.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:l}=s,f,h,p,_,d;function m(){_&&_(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function $(){if(!v)return;const x=I.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};Yr(function(H){n(H),m()},function(H){r(H),m()},S),v=null}"onloadend"in v?v.onloadend=$:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout($)},v.onabort=function(){v&&(r(new g("Request aborted",g.ECONNABORTED,e,v)),v=null)},v.onerror=function(b){const S=b&&b.message?b.message:"Network Error",G=new g(S,g.ERR_NETWORK,e,v);G.event=b||null,r(G),v=null},v.ontimeout=function(){let b=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||Vr;s.timeoutErrorMessage&&(b=s.timeoutErrorMessage),r(new g(b,S.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&c.forEach(o.toJSON(),function(b,S){v.setRequestHeader(S,b)}),c.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),a&&a!=="json"&&(v.responseType=s.responseType),l&&([p,d]=Mt(l,!0),v.addEventListener("progress",p)),u&&v.upload&&([h,_]=Mt(u),v.upload.addEventListener("progress",h),v.upload.addEventListener("loadend",_)),(s.cancelToken||s.signal)&&(f=x=>{v&&(r(!x||x.type?new Ge(null,e,v):x),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const C=Xo(s.url);if(C&&U.protocols.indexOf(C)===-1){r(new g("Unsupported protocol "+C+":",g.ERR_BAD_REQUEST,e));return}v.send(i||null)})},sa=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(l){if(!s){s=!0,a();const f=l instanceof Error?l:this.reason;r.abort(f instanceof g?f:new Ge(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,i(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>c.asap(a),u}},ia=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},oa=async function*(e,t){for await(const n of aa(e))yield*ia(n,t)},aa=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ts=(e,t,n,r)=>{const s=oa(e,t);let i=0,o,a=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:f}=await s.next();if(l){a(),u.close();return}let h=f.byteLength;if(n){let p=i+=h;n(p)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}},cancel(u){return a(u),s.return()}},{highWaterMark:2})},ns=64*1024,{isFunction:qt}=c,la=(({Request:e,Response:t})=>({Request:e,Response:t}))(c.global),{ReadableStream:rs,TextEncoder:ss}=c.global,is=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ua=e=>{e=c.merge.call({skipUndefined:!0},la,e);const{fetch:t,Request:n,Response:r}=e,s=t?qt(t):typeof fetch=="function",i=qt(n),o=qt(r);if(!s)return!1;const a=s&&qt(rs),u=s&&(typeof ss=="function"?(d=>m=>d.encode(m))(new ss):async d=>new Uint8Array(await new n(d).arrayBuffer())),l=i&&a&&is(()=>{let d=!1;const m=new n(U.origin,{body:new rs,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),f=o&&a&&is(()=>c.isReadableStream(new r("").body)),h={stream:f&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!h[d]&&(h[d]=(m,v)=>{let $=m&&m[d];if($)return $.call(m);throw new g(`Response type '${d}' is not supported`,g.ERR_NOT_SUPPORT,v)})});const p=async d=>{if(d==null)return 0;if(c.isBlob(d))return d.size;if(c.isSpecCompliantForm(d))return(await new n(U.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(c.isArrayBufferView(d)||c.isArrayBuffer(d))return d.byteLength;if(c.isURLSearchParams(d)&&(d=d+""),c.isString(d))return(await u(d)).byteLength},_=async(d,m)=>{const v=c.toFiniteNumber(d.getContentLength());return v??p(m)};return async d=>{let{url:m,method:v,data:$,signal:C,cancelToken:x,timeout:b,onDownloadProgress:S,onUploadProgress:G,responseType:H,headers:vt,withCredentials:re="same-origin",fetchOptions:be}=es(d),ye=t||fetch;H=H?(H+"").toLowerCase():"text";let Ae=sa([C,x&&x.toAbortSignal()],b),se=null;const Z=Ae&&Ae.unsubscribe&&(()=>{Ae.unsubscribe()});let zt;try{if(G&&l&&v!=="get"&&v!=="head"&&(zt=await _(vt,$))!==0){let Ce=new n(m,{method:"POST",body:$,duplex:"half"}),Ze;if(c.isFormData($)&&(Ze=Ce.headers.get("content-type"))&&vt.setContentType(Ze),Ce.body){const[En,Vt]=Xr(zt,Mt(Gr(G)));$=ts(Ce.body,ns,En,Vt)}}c.isString(re)||(re=re?"include":"omit");const fe=i&&"credentials"in n.prototype,_s={...be,signal:Ae,method:v.toUpperCase(),headers:vt.normalize().toJSON(),body:$,duplex:"half",credentials:fe?re:void 0};se=i&&new n(m,_s);let xe=await(i?ye(se,be):ye(m,_s));const vs=f&&(H==="stream"||H==="response");if(f&&(S||vs&&Z)){const Ce={};["status","statusText","headers"].forEach(ms=>{Ce[ms]=xe[ms]});const Ze=c.toFiniteNumber(xe.headers.get("content-length")),[En,Vt]=S&&Xr(Ze,Mt(Gr(S),!0))||[];xe=new r(ts(xe.body,ns,En,()=>{Vt&&Vt(),Z&&Z()}),Ce)}H=H||"text";let Sa=await h[c.findKey(h,H)||"text"](xe,d);return!vs&&Z&&Z(),await new Promise((Ce,Ze)=>{Yr(Ce,Ze,{data:Sa,headers:I.from(xe.headers),status:xe.status,statusText:xe.statusText,config:d,request:se})})}catch(fe){throw Z&&Z(),fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,d,se),{cause:fe.cause||fe}):g.from(fe,fe&&fe.code,d,se)}}},fa=new Map,os=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,a=o,u,l,f=fa;for(;a--;)u=i[a],l=f.get(u),l===void 0&&f.set(u,l=a?new Map:ua(t)),f=l;return l};os();const bn={http:Po,xhr:ra,fetch:{get:os}};c.forEach(bn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const as=e=>`- ${e}`,ca=e=>c.isFunction(e)||e===null||e===!1;function da(e,t){e=c.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let a;if(s=r,!ca(r)&&(s=bn[(a=String(r)).toLowerCase()],s===void 0))throw new g(`Unknown adapter '${a}'`);if(s&&(c.isFunction(s)||(s=s.get(t))))break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
5
- `+o.map(as).join(`
6
- `):" "+as(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const ls={getAdapter:da,adapters:bn};function yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function us(e){return yn(e),e.headers=I.from(e.headers),e.data=gn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ls.getAdapter(e.adapter||pt.adapter,e)(e).then(function(r){return yn(e),r.data=gn.call(e,e.transformResponse,r),r.headers=I.from(r.headers),r},function(r){return Kr(r)||(yn(e),r&&r.response&&(r.response.data=gn.call(e,e.transformResponse,r.response),r.response.headers=I.from(r.response.headers))),Promise.reject(r)})}const fs="1.13.2",It={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{It[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const cs={};It.transitional=function(t,n,r){function s(i,o){return"[Axios v"+fs+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new g(s(o," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!cs[o]&&(cs[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}},It.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ha(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],u=a===void 0||o(a,i,e);if(u!==!0)throw new g("option "+i+" must be "+u,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+i,g.ERR_BAD_OPTION)}}const Ht={assertOptions:ha,validators:It},ue=Ht.validators;let Be=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zr,response:new zr}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
7
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=je(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ht.assertOptions(r,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:Ht.assertOptions(s,{encode:ue.function,serialize:ue.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ht.assertOptions(n,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&c.merge(i.common,i[n.method]);i&&c.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=I.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let f,h=0,p;if(!u){const d=[us.bind(this),void 0];for(d.unshift(...a),d.push(...l),p=d.length,f=Promise.resolve(n);h<p;)f=f.then(d[h++],d[h++]);return f}p=a.length;let _=n;for(;h<p;){const d=a[h++],m=a[h++];try{_=d(_)}catch(v){m.call(this,v);break}}try{f=us.call(this,_)}catch(d){return Promise.reject(d)}for(h=0,p=l.length;h<p;)f=f.then(l[h++],l[h++]);return f}getUri(t){t=je(this.defaults,t);const n=Zr(t.baseURL,t.url,t.allowAbsoluteUrls);return Hr(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){Be.prototype[t]=function(n,r){return this.request(je(r||{},{method:t,url:n,data:(r||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,a){return this.request(je(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Be.prototype[t]=n(),Be.prototype[t+"Form"]=n(!0)});let pa=class gs{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new Ge(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gs(function(s){t=s}),cancel:t}}};function _a(e){return function(n){return e.apply(null,n)}}function va(e){return c.isObject(e)&&e.isAxiosError===!0}const wn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wn).forEach(([e,t])=>{wn[t]=e});function ds(e){const t=new Be(e),n=Ar(Be.prototype.request,t);return c.extend(n,Be.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ds(je(e,s))},n}const A=ds(pt);A.Axios=Be,A.CanceledError=Ge,A.CancelToken=pa,A.isCancel=Kr,A.VERSION=fs,A.toFormData=jt,A.AxiosError=g,A.Cancel=A.CanceledError,A.all=function(t){return Promise.all(t)},A.spread=_a,A.isAxiosError=va,A.mergeConfig=je,A.AxiosHeaders=I,A.formToJSON=e=>Jr(c.isHTMLForm(e)?new FormData(e):e),A.getAdapter=ls.getAdapter,A.HttpStatusCode=wn,A.default=A;const{Axios:Pa,AxiosError:ka,CanceledError:La,isCancel:Fa,CancelToken:Da,VERSION:Ua,all:ja,Cancel:Ba,isAxiosError:Ma,spread:qa,toFormData:Ia,AxiosHeaders:Ha,HttpStatusCode:za,formToJSON:Va,getAdapter:Ja,mergeConfig:Wa}=A;var Me={},hs;function ma(){if(hs)return Me;hs=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.LanguageTranslator=void 0,Me.getChildStyleToPass=e,Me.addComponent=t;function e(r,s){var i,o,a="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(p){return Object.keys(r).includes(p.name)}))===null||o===void 0)&&o.length))for(var u=function(p){var _=s?.filter(function(d){return d.name===p&&d.defaultValue!==r[p]});_&&(a+="".concat(p,":").concat(r[p],";"))},l=0,f=Object.keys(r);l<f.length;l++){var h=f[l];u(h)}}catch(p){console.error("error getting child style to pass",p)}finally{return a}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)a.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var u=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(u+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(l){console.warn(l)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,o){return r.formatDate(s,i,o||this.lang)},r.getDefaultLang=function(){var s,i,o,a="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},r.getDictionaryWord=function(s,i,o){var a;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[s]))return i[o][s];var u="",l=r.getDefaultLang();if(!o||l!==o){var f=i?.[l];f?.[s]&&(u=f[s])}return u},r.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||r.getDefaultLang(),i);return a.format(s)},r})();return Me.LanguageTranslator=n,Me}var ga=ma(),ba=on('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),ya=on('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),wa=on('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const Ea={hash:"svelte-cq5tos",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(At){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hr=1,zr=2,Nt="[",Rt="[!",Ct="[?",Ot="]",Te={},N=Symbol(),Mt="http://www.w3.org/1999/xhtml",Ur=!1;var Vr=Array.isArray,Yr=Array.prototype.indexOf,xe=Array.prototype.includes,Wr=Array.from,Ye=Object.keys,We=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Gr=Object.getOwnPropertyDescriptors,Jr=Object.prototype,Kr=Array.prototype,Lt=Object.getPrototypeOf,Pt=Object.isExtensible;const Xr=()=>{};function Zr(e){for(var t=0;t<e.length;t++)e[t]()}function Dt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const A=2,Se=4,Ge=8,It=1<<24,ne=16,W=32,se=64,lt=128,F=512,S=1024,C=2048,G=4096,J=8192,U=16384,ie=32768,Ft=1<<25,Ae=65536,jt=1<<17,Qr=1<<18,ge=1<<19,en=1<<20,be=65536,at=1<<21,ft=1<<22,oe=1<<23,ut=Symbol("$state"),tn=Symbol("legacy props"),rn=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},nn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ct=3,Je=8;function sn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ln(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function an(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function un(){throw new Error("https://svelte.dev/e/hydration_failed")}function cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function dn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function _n(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function le(e){m=e}let T;function K(e){if(e===null)throw Ke(),Te;return T=e}function Xe(){return K(he(T))}function De(e){if(m){if(he(T)!==null)throw Ke(),Te;T=e}}function qt(e=1){if(m){for(var t=e,r=T;t--;)r=he(r);T=r}}function Bt(e=!0){for(var t=0,r=T;;){if(r.nodeType===Je){var n=r.data;if(n===Ot){if(t===0)return r;t-=1}else(n===Nt||n===Rt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var s=he(r);e&&r.remove(),r=s}}function pn(e){if(!e||e.nodeType!==Je)throw Ke(),Te;return e.data}function Ht(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bn(e){return!gn(e,this.v)}let wn=!1,j=null;function Ne(e){j=e}function zt(e,t=!1,r){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function Ut(e){var t=j,r=t.e;if(r!==null){t.e=null;for(var n of r)vr(n)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Vt(){return!0}let we=[];function Yt(){var e=we;we=[],Zr(e)}function me(e){if(we.length===0&&!Ie){var t=we;queueMicrotask(()=>{t===we&&Yt()})}we.push(e)}function mn(){for(;we.length>0;)Yt()}function Wt(e){var t=g;if(t===null)return p.f|=oe,e;if((t.f&ie)===0&&(t.f&Se)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&lt)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const yn=-7169;function x(e,t){e.f=e.f&yn|t}function ht(e){(e.f&F)!==0||e.deps===null?x(e,S):x(e,G)}function Gt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&be)===0||(t.f^=be,Gt(t.deps))}function Jt(e,t,r){(e.f&C)!==0?t.add(e):(e.f&G)!==0&&r.add(e),Gt(e.deps),x(e,S)}const fe=new Set;let $=null,V=null,dt=null,Ie=!1,vt=!1,Re=null,Ze=null;var Kt=0;let $n=1;class Q{id=$n++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#s.size>0}#v(){for(const n of this.#f)for(const s of n.#s.keys()){for(var t=!1,r=s;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)x(n,C),this.schedule(n);for(n of r.m)x(n,G),this.schedule(n)}}#d(){if(Kt++>1e3&&(fe.delete(this),En()),!this.#h()){for(const o of this.#o)this.#l.delete(o),x(o,C),this.schedule(o);for(const o of this.#l)x(o,G),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=Re=[],n=[],s=Ze=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw tr(o),a}if($=null,s.length>0){var i=Q.ensure();for(const o of s)i.schedule(o)}if(Re=null,Ze=null,this.#h()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)er(o,a)}else{this.#t.size===0&&fe.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),Xt(n),Xt(r),this.#i?.resolve()}var l=$;if(this.#n.length>0){const o=l??=this;o.#n.push(...this.#n.filter(a=>!o.#n.includes(a)))}l!==null&&(fe.add(l),l.#d()),fe.has(this)||this.#p()}#u(t,r,n){t.f^=S;for(var s=t.first;s!==null;){var i=s.f,l=(i&(W|se))!==0,o=l&&(i&S)!==0,a=o||(i&J)!==0||this.#a.has(s);if(!a&&s.fn!==null){l?s.f^=S:(i&Se)!==0?r.push(s):Ue(s)&&((i&ne)!==0&&this.#l.add(s),Ce(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Jt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==N&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,[t.v,n]),V?.set(t,t.v))}activate(){$=this}deactivate(){$=null,V=null}flush(){try{vt=!0,$=this,this.#d()}finally{Kt=0,dt=null,Re=null,Ze=null,vt=!1,$=null,V=null,ue.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),fe.delete(this)}#p(){for(const f of fe){var t=f.id<this.id,r=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&h!==n)f.current.set(u,[h,c]);else continue}r.push(u)}var s=[...f.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&f.discard();else if(r.length>0){f.activate();var i=new Set,l=new Map;for(var o of r)Zt(o,s,i,l);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of fe)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let s=this.#s.get(r)??0;this.#s.set(r,s+1)}}decrement(t,r,n){let s=this.#t.get(r)??0;if(s===1?this.#t.delete(r):this.#t.set(r,s-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||n||(this.#c=!0,me(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Dt()).promise}static ensure(){if($===null){const t=$=new Q;vt||(fe.add($),Ie||me(()=>{$===t&&t.flush()}))}return $}apply(){{V=null;return}}schedule(t){if(dt=t,t.b?.is_pending&&(t.f&(Se|Ge|It))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Re!==null&&r===g&&(p===null||(p.f&A)===0))return;if((n&(se|W))!==0){if((n&S)===0)return;r.f^=S}}this.#n.push(r)}}function Qe(e){var t=Ie;Ie=!0;try{for(var r;;){if(mn(),$===null)return r;$.flush()}}finally{Ie=t}}function En(){try{fn()}catch(e){ae(e,dt)}}let ee=null;function Xt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(U|J))===0&&Ue(n)&&(ee=new Set,Ce(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&br(n),ee?.size>0)){ue.clear();for(const s of ee){if((s.f&(U|J))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(U|J))===0&&Ce(a)}}ee.clear()}}ee=null}}function Zt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Zt(s,t,r,n):(i&(ft|ne))!==0&&(i&C)===0&&Qt(s,t,n)&&(x(s,C),_t(s))}}function Qt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(xe.call(t,s))return!0;if((s.f&A)!==0&&Qt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function _t(e){$.schedule(e)}function er(e,t){if(!((e.f&W)!==0&&(e.f&S)!==0)){(e.f&C)!==0?t.d.push(e):(e.f&G)!==0&&t.m.push(e),x(e,S);for(var r=e.first;r!==null;)er(r,t),r=r.next}}function tr(e){x(e,S);for(var t=e.first;t!==null;)tr(t),t=t.next}function Tn(e){let t=0,r=Fe(0),n;return()=>{yt()&&(w(r),_r(()=>(t===0&&(n=Zn(()=>e(()=>je(r)))),t+=1,()=>{me(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var xn=Ae|ge;function kn(e,t,r,n){new Sn(e,t,r,n)}class Sn{parent;is_pending=!1;transform_error;#e;#r=m?T:null;#t;#s;#i;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=Tn(()=>(this.#u=Fe(this.#c),()=>{this.#u=null}));constructor(t,r,n,s){this.#e=t,this.#t=r,this.#s=i=>{var l=g;l.b=this,l.f|=lt,n(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#i=pr(()=>{if(m){const i=this.#r;Xe();const l=i.data===Rt;if(i.data.startsWith(Ct)){const a=JSON.parse(i.data.slice(Ct.length));this.#y(a)}else l?this.#$():this.#p()}else this.#w()},xn),m&&(this.#e=T)}#p(){try{this.#n=te(()=>this.#s(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#l=te(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=te(()=>t(this.#e)),me(()=>{var r=this.#a=document.createDocumentFragment(),n=ce();r.append(n),this.#n=this.#b(()=>te(()=>this.#s(n))),this.#f===0&&(this.#e.before(r),this.#a=null,ze(this.#o,()=>{this.#o=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=te(()=>{this.#s(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();yr(this.#n,t);const r=this.#t.pending;this.#o=te(()=>r(this.#e))}else this.#g($)}catch(r){this.error(r)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Jt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var r=g,n=p,s=j;B(this.#i),P(this.#i),Ne(this.#i.ctx);try{return Q.ensure(),t()}catch(i){return Wt(i),null}finally{B(r),P(n),Ne(s)}}#m(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t,r);return}this.#f+=t,this.#f===0&&(this.#g(r),this.#o&&ze(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#m(t,r),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,me(()=>{this.#h=!1,this.#u&&tt(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(L(this.#n),this.#n=null),this.#o&&(L(this.#o),this.#o=null),this.#l&&(L(this.#l),this.#l=null),m&&(K(this.#r),qt(),K(Bt()));var s=!1,i=!1;const l=()=>{if(s){_n();return}s=!0,i&&vn(),this.#l!==null&&ze(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},o=a=>{try{i=!0,r?.(a,l),i=!1}catch(f){ae(f,this.#i&&this.#i.parent)}n&&(this.#l=this.#b(()=>{try{return te(()=>{var f=g;f.b=this,f.f|=lt,n(this.#e,()=>a,()=>l)})}catch(f){return ae(f,this.#i.parent),null}}))};me(()=>{var a;try{a=this.transform_error(t)}catch(f){ae(f,this.#i&&this.#i.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ae(f,this.#i&&this.#i.parent)):o(a)})}}function An(e,t,r,n){const s=nr;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){n(t.map(s));return}var l=g,o=Nn(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function f(c){o();try{n(c)}catch(_){(l.f&U)===0&&ae(_,l)}et()}if(r.length===0){a.then(()=>f(t.map(s)));return}var u=rr();function h(){Promise.all(r.map(c=>Rn(c))).then(c=>f([...t.map(s),...c])).catch(c=>ae(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),et()}):h()}function Nn(){var e=g,t=p,r=j,n=$;return function(i=!0){B(e),P(t),Ne(r),i&&(e.f&U)===0&&(n?.activate(),n?.apply())}}function et(e=!0){B(null),P(null),Ne(null),e&&$?.deactivate()}function rr(){var e=g,t=e.b,r=$,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(s=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,s)}}function nr(e){var t=A|C,r=p!==null&&(p.f&A)!==0?p:null;return g!==null&&(g.f|=ge),{ctx:j,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function Rn(e,t,r){let n=g;n===null&&sn();var s=void 0,i=Fe(N),l=!p,o=new Map;return Vn(()=>{var a=g,f=Dt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(et)}catch(_){f.reject(_),et()}var u=$;if(l){if((a.f&ie)!==0)var h=rr();if(n.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const _ of o.values())_.reject(Z);o.clear()}o.set(u,f)}const c=(_,d=void 0)=>{if(h){var y=d===Z;h(y)}if(!(d===Z||(a.f&U)!==0)){if(u.activate(),d)i.f|=oe,tt(i,d);else{(i.f&oe)!==0&&(i.f^=oe),tt(i,_);for(const[E,M]of o){if(o.delete(E),E===u)break;M.reject(Z)}}u.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),dr(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function h(){u===s?a(i):f(s)}u.then(h,h)}f(s)})}function Cn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)L(t[r])}}function On(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function pt(e){var t,r=g;B(On(e));try{e.f&=~be,Cn(e),t=Sr(e)}finally{B(r)}return t}function sr(e){var t=e.v,r=pt(e);if(!e.equals(r)&&(e.wv=xr(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){x(e,S);return}de||(V!==null?(yt()||$?.is_fork)&&V.set(e,r):ht(e))}function Mn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=Xr,t.ac=null,Ve(t,0),$t(t))}function ir(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ce(t)}let gt=new Set;const ue=new Map;let or=!1;function Fe(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function q(e,t){const r=Fe(e);return Jn(r),r}function Ln(e,t=!1,r=!0){const n=Fe(e);return t||(n.equals=bn),n}function k(e,t,r=!1){p!==null&&(!Y||(p.f&jt)!==0)&&Vt()&&(p.f&(A|ne|ft|jt))!==0&&(H===null||!xe.call(H,e))&&dn();let n=r?qe(t):t;return tt(e,n,Ze)}function tt(e,t,r=null){if(!e.equals(t)){var n=e.v;de?ue.set(e,t):ue.set(e,n),e.v=t;var s=Q.ensure();if(s.capture(e,n),(e.f&A)!==0){const i=e;(e.f&C)!==0&&pt(i),V===null&&ht(i)}e.wv=xr(),lr(e,C,r),g!==null&&(g.f&S)!==0&&(g.f&(W|se))===0&&(z===null?Kn([e]):z.push(e)),!s.is_fork&&gt.size>0&&!or&&Pn()}return t}function Pn(){or=!1;for(const e of gt)(e.f&S)!==0&&x(e,G),Ue(e)&&Ce(e);gt.clear()}function je(e){k(e,e.v+1)}function lr(e,t,r){var n=e.reactions;if(n!==null)for(var s=n.length,i=0;i<s;i++){var l=n[i],o=l.f,a=(o&C)===0;if(a&&x(l,t),(o&A)!==0){var f=l;V?.delete(f),(o&be)===0&&(o&F&&(l.f|=be),lr(f,G,r))}else if(a){var u=l;(o&ne)!==0&&ee!==null&&ee.add(u),r!==null?r.push(u):_t(u)}}}function qe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=Lt(e);if(t!==Jr&&t!==Kr)return e;var r=new Map,n=Vr(e),s=q(0),i=$e,l=o=>{if($e===i)return o();var a=p,f=$e;P(null),Tr(i);var u=o();return P(a),Tr(f),u};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&cn();var u=r.get(a);return u===void 0?l(()=>{var h=q(f.value);return r.set(a,h),h}):k(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>q(N));r.set(a,u),je(s)}}else k(f,N),je(s);return!0},get(o,a,f){if(a===ut)return e;var u=r.get(a),h=a in o;if(u===void 0&&(!h||ke(o,a)?.writable)&&(u=l(()=>{var _=qe(h?o[a]:N),d=q(_);return d}),r.set(a,u)),u!==void 0){var c=w(u);return c===N?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=w(u))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ut)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||ke(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?qe(o[a]):N,_=q(c);return _}),r.set(a,f));var h=w(f);if(h===N)return!1}return u},set(o,a,f,u){var h=r.get(a),c=a in o;if(n&&a==="length")for(var _=f;_<h.v;_+=1){var d=r.get(_+"");d!==void 0?k(d,N):_ in o&&(d=l(()=>q(N)),r.set(_+"",d))}if(h===void 0)(!c||ke(o,a)?.writable)&&(h=l(()=>q(void 0)),k(h,qe(f)),r.set(a,h));else{c=h.v!==N;var y=l(()=>qe(f));k(h,y)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!c){if(n&&typeof a=="string"){var M=r.get("length"),ve=Number(a);Number.isInteger(ve)&&ve>=M.v&&k(M,ve+1)}je(s)}return!0},ownKeys(o){w(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){hn()}})}var ar,fr,ur,cr;function bt(){if(ar===void 0){ar=window,fr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ur=ke(t,"firstChild").get,cr=ke(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(r)&&(r.__t=void 0)}}function ce(e=""){return document.createTextNode(e)}function Be(e){return ur.call(e)}function he(e){return cr.call(e)}function He(e,t){if(!m)return Be(e);var r=Be(T);return r===null&&(r=T.appendChild(ce())),K(r),r}function Dn(e,t=1,r=!1){let n=m?T:e;for(var s;t--;)s=n,n=he(n);if(!m)return n;if(r){if(n?.nodeType!==ct){var i=ce();return n===null?s?.after(i):n.before(i),K(i),i}hr(n)}return K(n),n}function In(e){e.textContent=""}function Fn(){return!1}function wt(e,t,r){return document.createElementNS(Mt,e,void 0)}function hr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ct;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function mt(e){var t=p,r=g;P(null),B(null);try{return e()}finally{P(t),B(r)}}function jn(e){g===null&&(p===null&&an(),ln()),de&&on()}function qn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function X(e,t){var r=g;r!==null&&(r.f&J)!==0&&(e|=J);var n={ctx:j,deps:null,nodes:null,f:e|C|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=n;if((e&Se)!==0)Re!==null?Re.push(n):Q.ensure().schedule(n);else if(t!==null){try{Ce(n)}catch(l){throw L(n),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ge)===0&&(s=s.first,(e&ne)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=r,r!==null&&qn(s,r),p!==null&&(p.f&A)!==0&&(e&se)===0)){var i=p;(i.effects??=[]).push(s)}return n}function yt(){return p!==null&&!Y}function dr(e){const t=X(Ge,null);return x(t,S),t.teardown=e,t}function Bn(e){jn();var t=g.f,r=!p&&(t&W)!==0&&(t&ie)===0;if(r){var n=j;(n.e??=[]).push(e)}else return vr(e)}function vr(e){return X(Se|en,e)}function Hn(e){Q.ensure();const t=X(se|ge,e);return()=>{L(t)}}function zn(e){Q.ensure();const t=X(se|ge,e);return(r={})=>new Promise(n=>{r.outro?ze(t,()=>{L(t),n(void 0)}):(L(t),n(void 0))})}function Un(e){return X(Se,e)}function Vn(e){return X(ft|ge,e)}function _r(e,t=0){return X(Ge|t,e)}function rt(e,t=[],r=[],n=[]){An(n,t,r,s=>{X(Ge,()=>e(...s.map(w)))})}function pr(e,t=0){var r=X(ne|t,e);return r}function te(e){return X(W|ge,e)}function gr(e){var t=e.teardown;if(t!==null){const r=de,n=p;$r(!0),P(null);try{t.call(null)}finally{$r(r),P(n)}}}function $t(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&mt(()=>{s.abort(Z)});var n=r.next;(r.f&se)!==0?r.parent=null:L(r,t),r=n}}function Yn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&W)===0&&L(t),t=r}}function L(e,t=!0){var r=!1;(t||(e.f&Qr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wn(e.nodes.start,e.nodes.end),r=!0),x(e,Ft),$t(e,t&&!r),Ve(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const i of n)i.stop();gr(e),e.f^=Ft,e.f|=U;var s=e.parent;s!==null&&s.first!==null&&br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function br(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ze(e,t,r=!0){var n=[];wr(e,n,!0);var s=()=>{r&&L(e),t&&t()},i=n.length;if(i>0){var l=()=>--i||s();for(var o of n)o.out(l)}else s()}function wr(e,t,r){if((e.f&J)===0){e.f^=J;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var s=e.first;s!==null;){var i=s.next,l=(s.f&Ae)!==0||(s.f&W)!==0&&(e.f&ne)!==0;wr(s,t,l?r:!1),s=i}}}function Gn(e){mr(e,!0)}function mr(e,t){if((e.f&J)!==0){e.f^=J,(e.f&S)===0&&(x(e,C),Q.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Ae)!==0||(r.f&W)!==0;mr(r,s?t:!1),r=n}var i=e.nodes&&e.nodes.t;if(i!==null)for(const l of i)(l.is_global||t)&&l.in()}}function yr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var s=r===n?null:he(r);t.append(r),r=s}}let nt=!1,de=!1;function $r(e){de=e}let p=null,Y=!1;function P(e){p=e}let g=null;function B(e){g=e}let H=null;function Jn(e){p!==null&&(H===null?H=[e]:H.push(e))}let D=null,I=0,z=null;function Kn(e){z=e}let Er=1,ye=0,$e=ye;function Tr(e){$e=e}function xr(){return++Er}function Ue(e){var t=e.f;if((t&C)!==0)return!0;if(t&A&&(e.f&=~be),(t&G)!==0){for(var r=e.deps,n=r.length,s=0;s<n;s++){var i=r[s];if(Ue(i)&&sr(i),i.wv>e.wv)return!0}(t&F)!==0&&V===null&&x(e,S)}return!1}function kr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(H!==null&&xe.call(H,e)))for(var s=0;s<n.length;s++){var i=n[s];(i.f&A)!==0?kr(i,t,!1):t===i&&(r?x(i,C):(i.f&S)!==0&&x(i,G),_t(i))}}function Sr(e){var t=D,r=I,n=z,s=p,i=H,l=j,o=Y,a=$e,f=e.f;D=null,I=0,z=null,p=(f&(W|se))===0?e:null,H=null,Ne(e.ctx),Y=!1,$e=++ye,e.ac!==null&&(mt(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=at;var u=e.fn,h=u();e.f|=ie;var c=e.deps,_=$?.is_fork;if(D!==null){var d;if(_||Ve(e,I),c!==null&&I>0)for(c.length=I+D.length,d=0;d<D.length;d++)c[I+d]=D[d];else e.deps=c=D;if(yt()&&(e.f&F)!==0)for(d=I;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!_&&c!==null&&I<c.length&&(Ve(e,I),c.length=I);if(Vt()&&z!==null&&!Y&&c!==null&&(e.f&(A|G|C))===0)for(d=0;d<z.length;d++)kr(z[d],e);if(s!==null&&s!==e){if(ye++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=ye;if(t!==null)for(const y of t)y.rv=ye;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&oe)!==0&&(e.f^=oe),h}catch(y){return Wt(y)}finally{e.f^=at,D=t,I=r,z=n,p=s,H=i,Ne(l),Y=o,$e=a}}function Xn(e,t){let r=t.reactions;if(r!==null){var n=Yr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}if(r===null&&(t.f&A)!==0&&(D===null||!xe.call(D,t))){var i=t;(i.f&F)!==0&&(i.f^=F,i.f&=~be),ht(i),Mn(i),Ve(i,0)}}function Ve(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xn(e,r[n])}function Ce(e){var t=e.f;if((t&U)===0){x(e,S);var r=g,n=nt;g=e,nt=!0;try{(t&(ne|It))!==0?Yn(e):$t(e),gr(e);var s=Sr(e);e.teardown=typeof s=="function"?s:null,e.wv=Er;var i;Ur&&wn&&(e.f&C)!==0&&e.deps}finally{nt=n,g=r}}}function w(e){var t=e.f,r=(t&A)!==0;if(p!==null&&!Y){var n=g!==null&&(g.f&U)!==0;if(!n&&(H===null||!xe.call(H,e))){var s=p.deps;if((p.f&at)!==0)e.rv<ye&&(e.rv=ye,D===null&&s!==null&&s[I]===e?I++:D===null?D=[e]:D.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:xe.call(i,p)||i.push(p)}}}if(de&&ue.has(e))return ue.get(e);if(r){var l=e;if(de){var o=l.v;return((l.f&S)===0&&l.reactions!==null||Nr(l))&&(o=pt(l)),ue.set(l,o),o}var a=(l.f&F)===0&&!Y&&p!==null&&(nt||(p.f&F)!==0),f=(l.f&ie)===0;Ue(l)&&(a&&(l.f|=F),sr(l)),a&&!f&&(ir(l),Ar(l))}if(V?.has(e))return V.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function Ar(e){if(e.f|=F,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&F)===0&&(ir(t),Ar(t))}function Nr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ue.has(t)||(t.f&A)!==0&&Nr(t))return!0;return!1}function Zn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const st=Symbol("events"),Qn=new Set,Rr=new Set;function es(e,t,r,n={}){function s(i){if(n.capture||Et.call(t,i),!i.cancelBubble)return mt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?me(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function ts(e,t,r,n,s){var i={capture:n,passive:s},l=es(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dr(()=>{t.removeEventListener(e,l,i)})}let Cr=null;function Et(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Cr=e;var l=0,o=Cr===e&&e[st];if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e[st]=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){We(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=p,h=g;P(null),B(null);try{for(var c,_=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[st]?.[n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||d===t||d===null)break;i=d}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[st]=t,delete e.currentTarget,P(u),B(h)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ns(e){return rs?.createHTML(e)??e}function ss(e){var t=wt("template");return t.innerHTML=ns(e.replaceAll("<!>","<!---->")),t.content}function Oe(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Tt(e,t){var r=(t&Hr)!==0,n=(t&zr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Oe(T,null),T;s===void 0&&(s=ss(i?e:"<!>"+e),r||(s=Be(s)));var l=n||fr?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=Be(l),a=l.lastChild;Oe(o,a)}else Oe(l,l);return l}}function Or(e=""){if(!m){var t=ce(e+"");return Oe(t,t),t}var r=T;return r.nodeType!==ct?(r.before(r=ce()),K(r)):hr(r),Oe(r,r),r}function Me(e,t){if(m){var r=g;((r.f&ie)===0||r.nodes.end===null)&&(r.nodes.end=T),Xe();return}e!==null&&e.before(t)}const is=["touchstart","touchmove"];function os(e){return is.includes(e)}function Mr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Lr(e,t){return Pr(e,t)}function ls(e,t){bt(),t.intro=t.intro??!1;const r=t.target,n=m,s=T;try{for(var i=Be(r);i&&(i.nodeType!==Je||i.data!==Nt);)i=he(i);if(!i)throw Te;le(!0),K(i);const l=Pr(e,{...t,anchor:i});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&un(),bt(),In(r),le(!1),Lr(e,t)}finally{le(n),K(s)}}const it=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){bt();var a=void 0,f=zn(()=>{var u=r??t.appendChild(ce());kn(u,{pending:()=>{}},_=>{zt({});var d=j;if(i&&(d.c=i),s&&(n.$$events=s),m&&Oe(_,null),a=e(_,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==Je||T.data!==Ot))throw Ke(),Te;Ut()},o);var h=new Set,c=_=>{for(var d=0;d<_.length;d++){var y=_[d];if(!h.has(y)){h.add(y);var E=os(y);for(const Le of[t,document]){var M=it.get(Le);M===void 0&&(M=new Map,it.set(Le,M));var ve=M.get(y);ve===void 0?(Le.addEventListener(y,Et,{passive:E}),M.set(y,1)):M.set(y,ve+1)}}}};return c(Wr(Qn)),Rr.add(c),()=>{for(var _ of h)for(const E of[t,document]){var d=it.get(E),y=d.get(_);--y==0?(E.removeEventListener(_,Et),d.delete(_),d.size===0&&it.delete(E)):d.set(_,y)}Rr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return xt.set(a,f),a}let xt=new WeakMap;function as(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class fs{anchor;#e=new Map;#r=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Gn(n),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#r.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(l);o&&(L(o.effect),this.#t.delete(l))}for(const[i,l]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();yr(l,f),f.append(ce()),this.#t.set(i,{effect:l,fragment:f})}else L(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),ze(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(L(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Fn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ce();i.append(l),this.#t.set(t,{effect:te(()=>r(l)),fragment:i})}else this.#r.set(t,te(()=>r(this.anchor)));if(this.#e.set(n,t),s){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else m&&(this.anchor=T),this.#n(n)}}function us(e,t,r=!1){var n;m&&(n=T,Xe());var s=new fs(e),i=r?Ae:0;function l(o,a){if(m){var f=pn(n);if(o!==parseInt(f.substring(1))){var u=Bt();K(u),s.anchor=u,le(!1),s.ensure(o,a),le(!0);return}}s.ensure(o,a)}pr(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function cs(e,t,r,n,s){m&&Xe();var i=t.$$slots?.[r],l=!1;i===!0&&(i=t[r],l=!0),i===void 0?s!==null&&s(e):i(e,l?()=>n:n)}function hs(e,t){Un(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=wt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ds(e,t,r){var n=""+e;return n}function vs(e,t){return e==null?null:String(e)}function _s(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=ds(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function ps(e,t,r,n){var s=e.__style;if(m||s!==t){var i=vs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const gs=Symbol("is custom element"),bs=Symbol("is html"),ws=nn?"link":"LINK";function Dr(e,t,r,n){var s=ms(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ws)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[rn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var n=p,s=g;let i=m;m&&le(!1),P(null),B(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Fr(e).includes(t):r&&typeof r=="object")?e[t]=r:Dr(e,t,r==null?r:String(r))}finally{P(n),B(s),i&&le(!0)}}function ms(e){return e.__attributes??={[gs]:e.nodeName.includes("-"),[bs]:e.namespaceURI===Mt}}var kt=new Map;function Fr(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Gr(s);for(var l in n)n[l].set&&r.push(l);s=Lt(s)}return r}function St(e,t,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(i=!0,c)};var f=!1,u=nr(()=>(f=!1,a())),h=g;return(function(c,_){if(arguments.length>0){const d=_?w(u):c;return k(u,d),f=!0,s!==void 0&&(s=d),c}return de&&f||(h.f&U)!==0?u.v:w(u)})}function ys(e){return new $s(e)}class $s{#e;#r;constructor(t){var r=new Map,n=(i,l)=>{var o=Ln(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return w(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===tn?!0:(w(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return k(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#r=(t.hydrate?ls:Lr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Qe(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#r[i]},set(l){this.#r[i]=l},enumerable:!0});this.#r.$set=i=>{Object.assign(s,i)},this.#r.$destroy=()=>{as(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...s)=>r.call(this,...s);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(s=>s!==n)}}$destroy(){this.#r.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=wt("slot");n!=="default"&&(i.name=n),Me(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Es(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ot(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ys({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hn(()=>{_r(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ot(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Es(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ts(e,t,r,n,s,i){let l=class extends jr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ye(t).forEach(o=>{We(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ot(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=ke(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{We(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const xs={version:"0.66.2"};var Ee={},qr;function ks(){if(qr)return Ee;qr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(n,s){var i,l,o="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var _=s?.filter(function(d){return d.name===c&&d.defaultValue!==n[c]});_&&(o+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var h=u[f];a(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var l=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var a=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,l){return n.formatDate(s,i,l||this.lang)},n.getDefaultLang=function(){var s,i,l,o="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(s,i,l){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((o=i[l])===null||o===void 0)&&o[s]))return i[l][s];var a="",f=n.getDefaultLang();if(!l||f!==l){var u=i?.[f];u?.[s]&&(a=u[s])}return a},n.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||n.getDefaultLang(),i);return o.format(s)},n})();return Ee.LanguageTranslator=r,Ee}var Ss=ks(),As=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),Ns=Tt('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),Rs=Tt('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const Cs={hash:"svelte-cq5tos",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
8
3
  /*!
9
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
10
5
  * Copyright 2011-2021 The Bootstrap Authors
@@ -21,5 +16,5 @@
21
16
  animation: 1s linear infinite svelte-cq5tos-progress-bar-stripes;}
22
17
  @media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-cq5tos {
23
18
  animation: none;}
24
- }:host {font-family:"Roboto", sans-serif;}`};function ps(e,t){Ln(t,!0),Li(e,Ea);function n(b,S){t.$$host.dispatchEvent(new CustomEvent(b,{detail:S}))}ga.addComponent({repoName:"@htmlbricks/hb-dialog",version:Ji.version});let r=fn(t,"id",7,""),s=fn(t,"upload_id",7,void 0),i=fn(t,"fetch_data",7,void 0),o=K(0),a=K(0),u=K(!1),l=K(null);fi(()=>{s()||s(r()+"_dialog"),R(u)||L(u,!1);try{i()&&typeof i()=="string"&&i(JSON.parse(i()))}catch(b){console.error(b)}});async function f(){function b(S){console.error(S),L(l,S?.message||"upload error",!0),n("uploadError",{completed:R(u),id:s(),error:S})}L(a,0);try{if(i()){const S={url:i().url,data:i().data,method:i().method||"POST",headers:i().headers||{},onUploadProgress:G=>{L(o,G?.total||0,!0),L(a,G?.loaded||0,!0)}};return await A.request(S),n("uploadComplete",{completed:R(u),id:s()})}else return L(l,"No fetch data provided"),b(new Error(R(l)))}catch(S){return console.error("upload error ",S),b(S)}}function h(b){L(l,null),b.show&&i()?.url&&f().catch(console.error),n("modalShow",b)}var p={get id(){return r()},set id(b=""){r(b),$t()},get upload_id(){return s()},set upload_id(b=void 0){s(b),$t()},get fetch_data(){return i()},set fetch_data(b=void 0){i(b),$t()}},_=wa();Ct(()=>Tr(_,"id",s())),Ct(()=>Tr(_,"show",i()?.url||R(a)&&R(o)?"yes":"no")),Ui(_,1,"svelte-cq5tos");var d=it(_),m=it(d);ki(m,t,"title",{},b=>{var S=br("Uploading");Oe(b,S)}),et(d);var v=ii(d,2),$=it(v);{var C=b=>{var S=ba();Oe(b,S)},x=b=>{var S=yr(),G=Zn(S);{var H=re=>{var be=ya(),ye=it(be),Ae=it(ye);et(ye),et(be),Ct((se,Z,zt)=>{ji(ye,`width:${se??""}%`),Rr(ye,"aria-valuenow",Z),wr(Ae,`${zt??""}%`)},[()=>Math.round(R(a)/R(o)*100),()=>Math.round(R(a)/R(o)*100),()=>Math.round(R(a)/R(o)*100)]),Oe(re,be)},vt=re=>{var be=yr(),ye=Zn(be);{var Ae=se=>{var Z=br();Ct(()=>wr(Z,R(l))),Oe(se,Z)};ln(ye,se=>{R(l)&&se(Ae)},!0)}Oe(re,be)};ln(G,re=>{R(l)?re(vt,!1):re(H)},!0)}Oe(b,S)};ln($,b=>{!R(o)&&!R(l)?b(C):b(x,!1)})}return et(v),Nn(2),et(_),$i("modalShow",_,b=>h(b.detail)),Oe(e,_),Fn(p)}customElements.define("hb-uploader",Vi(ps,{id:{},upload_id:{},fetch_data:{}},["title"],[],!0)),Sn.Component=ps,Object.defineProperty(Sn,Symbol.toStringTag,{value:"Module"})})(this.uploader=this.uploader||{});
19
+ }:host {font-family:"Roboto", sans-serif;}`};function Br(e,t){zt(t,!0),hs(e,Cs);function r(v){const b=new Headers;if(!v)return b;for(const[O,R]of Object.entries(v))R!=null&&R!==""&&b.set(O,R);return b}function n(v,b){if(v instanceof FormData)return{blob:new Blob,trackProgress:!1};if(typeof v=="string")return{blob:new Blob([v]),trackProgress:!0};if(v instanceof Blob)return{blob:v,trackProgress:!0};if(v instanceof ArrayBuffer)return{blob:new Blob([v]),trackProgress:!0};if(ArrayBuffer.isView(v)){const O=v,R=new Uint8Array(O.byteLength);return R.set(new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),{blob:new Blob([R]),trackProgress:!0}}return b.has("Content-Type")||b.set("Content-Type","application/json"),{blob:new Blob([JSON.stringify(v)]),trackProgress:!0}}function s(v,b){const O=v.size,R=v.stream().getReader();let _e=0;return new ReadableStream({async pull(re){const{done:pe,value:Pe}=await R.read();if(pe){re.close();return}_e+=Pe.byteLength,b(_e,O),re.enqueue(Pe)},cancel(){R.cancel()}})}function i(v,b){t.$$host.dispatchEvent(new CustomEvent(v,{detail:b}))}Ss.addComponent({repoName:"@htmlbricks/hb-dialog",version:xs.version});let l=St(t,"id",7,""),o=St(t,"upload_id",7,void 0),a=St(t,"fetch_data",7,void 0),f=q(0),u=q(0),h=q(!1),c=q(null);Bn(()=>{o()||o(l()+"_dialog"),w(h)||k(h,!1);try{a()&&typeof a()=="string"&&a(JSON.parse(a()))}catch(v){console.error(v)}});async function _(){function v(b){console.error(b),k(c,b?.message||"upload error",!0),i("uploadError",{completed:w(h),id:o(),error:b})}k(u,0);try{if(a()){const b=(a().method||"POST").toUpperCase(),O=r(a().headers),{blob:R,trackProgress:_e}=n(a().data,O);let re;a().data instanceof FormData?re=a().data:_e&&R.size>0?re=s(R,(Pe,Ds)=>{k(f,Ds,!0),k(u,Pe,!0)}):(re=R,_e&&R.size===0&&(k(f,0),k(u,0)));const pe=await fetch(a().url,{method:b,headers:O,body:re});if(!pe.ok){const Pe=await pe.text().catch(()=>"");throw new Error(Pe||pe.statusText||`Request failed (${pe.status})`)}return(a().data instanceof FormData||_e&&R.size===0)&&(k(f,Math.max(w(f),1),!0),k(u,w(f),!0)),i("uploadComplete",{completed:w(h),id:o()})}else return k(c,"No fetch data provided"),v(new Error(w(c)))}catch(b){return console.error("upload error ",b),v(b instanceof Error?b:new Error(String(b)))}}function d(v){k(c,null),v.show&&a()?.url&&_().catch(console.error),i("modalShow",v)}var y={get id(){return l()},set id(v=""){l(v),Qe()},get upload_id(){return o()},set upload_id(v=void 0){o(v),Qe()},get fetch_data(){return a()},set fetch_data(v=void 0){a(v),Qe()}},E=Rs();rt(()=>Ir(E,"id",o())),rt(()=>Ir(E,"show",a()?.url||w(u)&&w(f)?"yes":"no")),_s(E,1,"svelte-cq5tos");var M=He(E),ve=He(M);cs(ve,t,"title",{},v=>{var b=Or("Uploading");Me(v,b)}),De(M);var Le=Dn(M,2),Os=He(Le);{var Ms=v=>{var b=As();Me(v,b)},Ls=v=>{var b=Ns(),O=He(b),R=He(O);De(O),De(b),rt((_e,re,pe)=>{ps(O,`width:${_e??""}%`),Dr(O,"aria-valuenow",re),Mr(R,`${pe??""}%`)},[()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100)]),Me(v,b)},Ps=v=>{var b=Or();rt(()=>Mr(b,w(c))),Me(v,b)};us(Os,v=>{!w(f)&&!w(c)?v(Ms):w(c)?w(c)&&v(Ps,2):v(Ls,1)})}return De(Le),qt(2),De(E),ts("modalShow",E,v=>d(v.detail)),Me(e,E),Ut(y)}customElements.define("hb-uploader",Ts(Br,{id:{},upload_id:{},fetch_data:{}},["title"],[],{mode:"open"})),At.Component=Br,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})})(this.uploader=this.uploader||{});
25
20
  //# sourceMappingURL=main.iife.js.map