@htmlbricks/hb-dialog-loader 0.60.1 → 0.60.3

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,19 +1,19 @@
1
- (function(fe){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const gr=2,$r="[",wr="]",pt={},S=Symbol(),mr="http://www.w3.org/1999/xhtml",oe=!1;var ce=Array.isArray,yr=Array.prototype.indexOf,Er=Array.from,At=Object.keys,it=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyDescriptors,Tr=Object.prototype,Sr=Array.prototype,he=Object.getPrototypeOf,de=Object.isExtensible;function ve(t){for(var e=0;e<t.length;e++)t[e]()}function Nr(){var t,e,r=new Promise((n,s)=>{t=n,e=s});return{promise:r,resolve:t,reject:e}}const O=2,Dt=4,qt=8,gt=16,U=32,G=64,_e=128,k=256,Rt=512,A=1024,j=2048,V=4096,ut=8192,z=16384,Ft=32768,Ar=65536,pe=1<<17,Rr=1<<18,at=1<<19,Or=1<<20,Yt=1<<21,Bt=1<<22,J=1<<23,Ht=Symbol("$state"),xr=Symbol("legacy props"),Cr=Symbol(""),Ut=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=3,$e=8;function kr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ir(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Lr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dr(){throw new Error("https://svelte.dev/e/hydration_failed")}function qr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Gt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let y=!1;function ft(t){y=t}let b;function Z(t){if(t===null)throw Gt(),pt;return b=t}function Vt(){return Z(ct(b))}function $t(t){if(y){if(ct(b)!==null)throw Gt(),pt;b=t}}function Br(t=1){if(y){for(var e=t,r=b;e--;)r=ct(r);b=r}}function we(t){return t===this.v}function Hr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ur(t){return!Hr(t,this.v)}let Gr=!1,I=null;function Ot(t){I=t}function me(t,e=!1,r){I={p:I,c:null,e:null,s:t,x:null,l:null}}function ye(t){var e=I,r=e.e;if(r!==null){e.e=null;for(var n of r)De(n)}return t!==void 0&&(e.x=t),I=e.p,t??{}}function Ee(){return!0}const Vr=new WeakMap;function Wr(t){var e=p;if(e===null)return g.f|=J,t;if((e.f&Ft)===0){if((e.f&_e)===0)throw!e.parent&&t instanceof Error&&be(t),t;e.b.error(t)}else Wt(t,e)}function Wt(t,e){for(;e!==null;){if((e.f&_e)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&be(t),t}function be(t){const e=Vr.get(t);e&&(it(t,"message",{value:e.message}),it(t,"stack",{value:e.stack}))}let wt=[],Xt=[];function Te(){var t=wt;wt=[],ve(t)}function Xr(){var t=Xt;Xt=[],ve(t)}function Kr(t){wt.length===0&&queueMicrotask(Te),wt.push(t)}function zr(){wt.length>0&&Te(),Xt.length>0&&Xr()}function Jr(){const t=p.b;return t===null&&kr(),t}function Se(t){var e=O|j,r=g!==null&&(g.f&O)!==0?g:null;return p===null||r!==null&&(r.f&k)!==0?e|=k:p.f|=at,{ctx:I,deps:null,effects:null,equals:we,f:e,fn:t,reactions:null,rv:0,v:S,wv:0,parent:r??p,ac:null}}function Zr(t,e){let r=p;r===null&&Pr();var n=r.b,s=void 0,i=Zt(S),l=null,a=!g;return vn(()=>{try{var u=t();l&&Promise.resolve(u).catch(()=>{})}catch(h){u=Promise.reject(h)}var f=()=>u;s=l?.then(f,f)??Promise.resolve(u),l=s;var o=N,c=n.is_pending();a&&(n.update_pending_count(1),c||o.increment());const d=(h,v=void 0)=>{l=null,c||o.activate(),v?v!==Ut&&(i.f|=J,Qt(i,v)):((i.f&J)!==0&&(i.f^=J),Qt(i,h)),a&&(n.update_pending_count(-1),c||o.decrement()),Re()};if(s.then(d,h=>d(null,h||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(u=>{function f(o){function c(){o===s?u(i):f(s)}o.then(c,c)}f(s)})}function Ne(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)X(e[r])}}function Qr(t){for(var e=t.parent;e!==null;){if((e.f&O)===0)return e;e=e.parent}return null}function Kt(t){var e,r=p;q(Qr(t));try{Ne(t),e=Ke(t)}finally{q(r)}return e}function Ae(t){var e=Kt(t);if(t.equals(e)||(t.v=e,t.wv=We()),!rt){var r=(K||(t.f&k)!==0)&&t.deps!==null?V:A;C(t,r)}}function tn(t,e,r){const n=Se;if(e.length===0){r(t.map(n));return}var s=N,i=p,l=en(),a=Jr();Promise.all(e.map(u=>Zr(u))).then(u=>{s?.activate(),l();try{r([...t.map(n),...u])}catch(f){(i.f&z)===0&&Wt(f,i)}s?.deactivate(),Re()}).catch(u=>{a.error(u)})}function en(){var t=p,e=g,r=I,n=N;return function(){q(t),P(e),Ot(r),n?.activate()}}function Re(){q(null),P(null),Ot(null)}const zt=new Set;let N=null,Oe=new Set,xt=[];function xe(){const t=xt.shift();xt.length>0&&queueMicrotask(xe),t()}let Q=[],Ct=null,Jt=!1,kt=!1;class tt{current=new Map;#e=new Map;#t=new Set;#r=0;#f=null;#o=!1;#s=[];#l=[];#i=[];#n=[];#u=[];#c=[];#h=[];skipped_effects=new Set;process(e){Q=[];for(const s of e)this.#v(s);if(this.#s.length===0&&this.#r===0){this.#d();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#u=[],N=null,ke(r),ke(n),N===null?N=this:zt.delete(this),this.#f?.resolve()}else this.#a(this.#i),this.#a(this.#n),this.#a(this.#u);for(const s of this.#s)dt(s);for(const s of this.#l)dt(s);this.#s=[],this.#l=[]}#v(e){e.f^=A;for(var r=e.first;r!==null;){var n=r.f,s=(n&(U|G))!==0,i=s&&(n&A)!==0,l=i||(n&ut)!==0||this.skipped_effects.has(r);if(!l&&r.fn!==null){if(s)r.f^=A;else if((n&Dt)!==0)this.#n.push(r);else if((n&A)===0)if((n&Bt)!==0){var a=r.b?.is_pending()?this.#l:this.#s;a.push(r)}else jt(r)&&((r.f&gt)!==0&&this.#u.push(r),dt(r));var u=r.first;if(u!==null){r=u;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#a(e){for(const r of e)((r.f&j)!==0?this.#c:this.#h).push(r),C(r,A);e.length=0}capture(e,r){this.#e.has(e)||this.#e.set(e,r),this.current.set(e,e.v)}activate(){N=this}deactivate(){N=null;for(const e of Oe)if(Oe.delete(e),e(),N!==null)break}neuter(){this.#o=!0}flush(){Q.length>0?Ce():this.#d(),N===this&&(this.#r===0&&zt.delete(this),this.deactivate())}#d(){if(!this.#o)for(const e of this.#t)e();this.#t.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#c)C(e,j),mt(e);for(const e of this.#h)C(e,V),mt(e);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#f??=Nr()).promise}static ensure(){if(N===null){const e=N=new tt;zt.add(N),kt||tt.enqueue(()=>{N===e&&e.flush()})}return N}static enqueue(e){xt.length===0&&queueMicrotask(xe),xt.unshift(e)}}function Pt(t){var e=kt;kt=!0;try{for(var r;;){if(zr(),Q.length===0&&(N?.flush(),Q.length===0))return Ct=null,r;Ce()}}finally{kt=e}}function Ce(){var t=ht;Jt=!0;try{var e=0;for(He(!0);Q.length>0;){var r=tt.ensure();if(e++>1e3){var n,s;rn()}r.process(Q),W.clear()}}finally{Jt=!1,He(t),Ct=null}}function rn(){try{Lr()}catch(t){Wt(t,Ct)}}let et=null;function ke(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(z|ut))===0&&jt(n)&&(et=[],dt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Ye(n):n.fn=null),et?.length>0)){W.clear();for(const s of et)dt(s);et=[]}}et=null}}function mt(t){for(var e=Ct=t;e.parent!==null;){e=e.parent;var r=e.f;if(Jt&&e===p&&(r&gt)!==0)return;if((r&(G|U))!==0){if((r&A)===0)return;e.f^=A}}Q.push(e)}const W=new Map;function Zt(t,e){var r={f:0,v:t,reactions:null,equals:we,rv:0,wv:0};return r}function D(t,e){const r=Zt(t);return yn(r),r}function nn(t,e=!1,r=!0){const n=Zt(t);return e||(n.equals=Ur),n}function Y(t,e,r=!1){g!==null&&(!nt||(g.f&pe)!==0)&&Ee()&&(g.f&(O|gt|Bt|pe))!==0&&!H?.includes(t)&&Yr();let n=r?ot(e):e;return Qt(t,n)}function Qt(t,e){if(!t.equals(e)){var r=t.v;rt?W.set(t,e):W.set(t,r),t.v=e;var n=tt.ensure();n.capture(t,r),(t.f&O)!==0&&((t.f&j)!==0&&Kt(t),C(t,(t.f&k)===0?A:V)),t.wv=We(),Pe(t,j),p!==null&&(p.f&A)!==0&&(p.f&(U|G))===0&&(M===null?En([t]):M.push(t))}return e}function te(t){Y(t,t.v+1)}function Pe(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],l=i.f,a=(l&j)===0;a&&C(i,e),(l&O)!==0?Pe(i,V):a&&((l&gt)!==0&&et!==null&&et.push(i),mt(i))}}function ot(t){if(typeof t!="object"||t===null||Ht in t)return t;const e=he(t);if(e!==Tr&&e!==Sr)return t;var r=new Map,n=ce(t),s=D(0),i=st,l=a=>{if(st===i)return a();var u=g,f=st;P(null),Ve(i);var o=a();return P(u),Ve(f),o};return n&&r.set("length",D(t.length)),new Proxy(t,{defineProperty(a,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&qr();var o=r.get(u);return o===void 0?o=l(()=>{var c=D(f.value);return r.set(u,c),c}):Y(o,f.value,!0),!0},deleteProperty(a,u){var f=r.get(u);if(f===void 0){if(u in a){const o=l(()=>D(S));r.set(u,o),te(s)}}else Y(f,S),te(s);return!0},get(a,u,f){if(u===Ht)return t;var o=r.get(u),c=u in a;if(o===void 0&&(!c||lt(a,u)?.writable)&&(o=l(()=>{var h=ot(c?a[u]:S),v=D(h);return v}),r.set(u,o)),o!==void 0){var d=F(o);return d===S?void 0:d}return Reflect.get(a,u,f)},getOwnPropertyDescriptor(a,u){var f=Reflect.getOwnPropertyDescriptor(a,u);if(f&&"value"in f){var o=r.get(u);o&&(f.value=F(o))}else if(f===void 0){var c=r.get(u),d=c?.v;if(c!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(a,u){if(u===Ht)return!0;var f=r.get(u),o=f!==void 0&&f.v!==S||Reflect.has(a,u);if(f!==void 0||p!==null&&(!o||lt(a,u)?.writable)){f===void 0&&(f=l(()=>{var d=o?ot(a[u]):S,h=D(d);return h}),r.set(u,f));var c=F(f);if(c===S)return!1}return o},set(a,u,f,o){var c=r.get(u),d=u in a;if(n&&u==="length")for(var h=f;h<c.v;h+=1){var v=r.get(h+"");v!==void 0?Y(v,S):h in a&&(v=l(()=>D(S)),r.set(h+"",v))}if(c===void 0)(!d||lt(a,u)?.writable)&&(c=l(()=>D(void 0)),Y(c,ot(f)),r.set(u,c));else{d=c.v!==S;var $=l(()=>ot(f));Y(c,$)}var w=Reflect.getOwnPropertyDescriptor(a,u);if(w?.set&&w.set.call(o,f),!d){if(n&&typeof u=="string"){var T=r.get("length"),E=Number(u);Number.isInteger(E)&&E>=T.v&&Y(T,E+1)}te(s)}return!0},ownKeys(a){F(s);var u=Reflect.ownKeys(a).filter(c=>{var d=r.get(c);return d===void 0||d.v!==S});for(var[f,o]of r)o.v!==S&&!(f in a)&&u.push(f);return u},setPrototypeOf(){Fr()}})}var Me,je,Ie,Le;function ee(){if(Me===void 0){Me=window,je=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Ie=lt(e,"firstChild").get,Le=lt(e,"nextSibling").get,de(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),de(r)&&(r.__t=void 0)}}function yt(t=""){return document.createTextNode(t)}function Mt(t){return Ie.call(t)}function ct(t){return Le.call(t)}function Et(t,e){if(!y)return Mt(t);var r=Mt(b);return r===null&&(r=b.appendChild(yt())),Z(r),r}function sn(t,e=1,r=!1){let n=y?b:t;for(var s;e--;)s=n,n=ct(n);if(!y)return n;if(r&&n?.nodeType!==ge){var i=yt();return n===null?s?.after(i):n.before(i),Z(i),i}return Z(n),n}function ln(t){t.textContent=""}function re(t){var e=g,r=p;P(null),q(null);try{return t()}finally{P(e),q(r)}}function un(t){p===null&&g===null&&Ir(),g!==null&&(g.f&k)!==0&&p===null&&jr(),rt&&Mr()}function an(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function B(t,e,r,n=!0){var s=p;s!==null&&(s.f&ut)!==0&&(t|=ut);var i={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:t|j,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{dt(i),i.f|=Ft}catch(u){throw X(i),u}else e!==null&&mt(i);if(n){var l=i;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&at)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&an(l,s),g!==null&&(g.f&O)!==0&&(t&G)===0)){var a=g;(a.effects??=[]).push(l)}}return i}function fn(t){const e=B(qt,null,!1);return C(e,A),e.teardown=t,e}function on(t){un();var e=p.f,r=!g&&(e&U)!==0&&(e&Ft)===0;if(r){var n=I;(n.e??=[]).push(t)}else return De(t)}function De(t){return B(Dt|Or,t,!1)}function cn(t){tt.ensure();const e=B(G|at,t,!0);return()=>{X(e)}}function hn(t){tt.ensure();const e=B(G|at,t,!0);return(r={})=>new Promise(n=>{r.outro?wn(e,()=>{X(e),n(void 0)}):(X(e),n(void 0))})}function dn(t){return B(Dt,t,!1)}function vn(t){return B(Bt|at,t,!0)}function _n(t,e=0){return B(qt|e,t,!0)}function ne(t,e=[],r=[]){tn(e,r,n=>{B(qt,()=>t(...n.map(F)),!0)})}function pn(t,e=!0){return B(U|at,t,!0,e)}function qe(t){var e=t.teardown;if(e!==null){const r=rt,n=g;Ue(!0),P(null);try{e.call(null)}finally{Ue(r),P(n)}}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const s=r.ac;s!==null&&re(()=>{s.abort(Ut)});var n=r.next;(r.f&G)!==0?r.parent=null:X(r,e),r=n}}function gn(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&U)===0&&X(e),e=r}}function X(t,e=!0){var r=!1;(e||(t.f&Rr)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&($n(t.nodes_start,t.nodes_end),r=!0),Fe(t,e&&!r),It(t,0),C(t,z);var n=t.transitions;if(n!==null)for(const i of n)i.stop();qe(t);var s=t.parent;s!==null&&s.first!==null&&Ye(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function $n(t,e){for(;t!==null;){var r=t===e?null:ct(t);t.remove(),t=r}}function Ye(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function wn(t,e){var r=[];Be(t,r,!0),mn(r,()=>{X(t),e&&e()})}function mn(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var s of t)s.out(n)}else e()}function Be(t,e,r){if((t.f&ut)===0){if(t.f^=ut,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&e.push(l);for(var n=t.first;n!==null;){var s=n.next,i=(n.f&Ar)!==0||(n.f&U)!==0;Be(n,e,i?r:!1),n=s}}}let ht=!1;function He(t){ht=t}let rt=!1;function Ue(t){rt=t}let g=null,nt=!1;function P(t){g=t}let p=null;function q(t){p=t}let H=null;function yn(t){g!==null&&(H===null?H=[t]:H.push(t))}let R=null,x=0,M=null;function En(t){M=t}let Ge=1,bt=0,st=bt;function Ve(t){st=t}let K=!1;function We(){return++Ge}function jt(t){var e=t.f;if((e&j)!==0)return!0;if((e&V)!==0){var r=t.deps,n=(e&k)!==0;if(r!==null){var s,i,l=(e&Rt)!==0,a=n&&p!==null&&!K,u=r.length;if((l||a)&&(p===null||(p.f&z)===0)){var f=t,o=f.parent;for(s=0;s<u;s++)i=r[s],(l||!i?.reactions?.includes(f))&&(i.reactions??=[]).push(f);l&&(f.f^=Rt),a&&o!==null&&(o.f&k)===0&&(f.f^=k)}for(s=0;s<u;s++)if(i=r[s],jt(i)&&Ae(i),i.wv>t.wv)return!0}(!n||p!==null&&!K)&&C(t,A)}return!1}function Xe(t,e,r=!0){var n=t.reactions;if(n!==null&&!H?.includes(t))for(var s=0;s<n.length;s++){var i=n[s];(i.f&O)!==0?Xe(i,e,!1):e===i&&(r?C(i,j):(i.f&A)!==0&&C(i,V),mt(i))}}function Ke(t){var e=R,r=x,n=M,s=g,i=K,l=H,a=I,u=nt,f=st,o=t.f;R=null,x=0,M=null,K=(o&k)!==0&&(nt||!ht||g===null),g=(o&(U|G))===0?t:null,H=null,Ot(t.ctx),nt=!1,st=++bt,t.ac!==null&&(re(()=>{t.ac.abort(Ut)}),t.ac=null);try{t.f|=Yt;var c=t.fn,d=c(),h=t.deps;if(R!==null){var v;if(It(t,x),h!==null&&x>0)for(h.length=x+R.length,v=0;v<R.length;v++)h[x+v]=R[v];else t.deps=h=R;if(!K||(o&O)!==0&&t.reactions!==null)for(v=x;v<h.length;v++)(h[v].reactions??=[]).push(t)}else h!==null&&x<h.length&&(It(t,x),h.length=x);if(Ee()&&M!==null&&!nt&&h!==null&&(t.f&(O|V|j))===0)for(v=0;v<M.length;v++)Xe(M[v],t);return s!==null&&s!==t&&(bt++,M!==null&&(n===null?n=M:n.push(...M))),(t.f&J)!==0&&(t.f^=J),d}catch($){return Wr($)}finally{t.f^=Yt,R=e,x=r,M=n,g=s,K=i,H=l,Ot(a),nt=u,st=f}}function bn(t,e){let r=e.reactions;if(r!==null){var n=yr.call(r,t);if(n!==-1){var s=r.length-1;s===0?r=e.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(e.f&O)!==0&&(R===null||!R.includes(e))&&(C(e,V),(e.f&(k|Rt))===0&&(e.f^=Rt),Ne(e),It(e,0))}function It(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)bn(t,r[n])}function dt(t){var e=t.f;if((e&z)===0){C(t,A);var r=p,n=ht;p=t,ht=!0;try{(e&gt)!==0?gn(t):Fe(t),qe(t);var s=Ke(t);t.teardown=typeof s=="function"?s:null,t.wv=Ge;var i;oe&&Gr&&(t.f&j)!==0&&t.deps}finally{ht=n,p=r}}}function F(t){var e=t.f,r=(e&O)!==0;if(g!==null&&!nt){var n=p!==null&&(p.f&z)!==0;if(!n&&!H?.includes(t)){var s=g.deps;if((g.f&Yt)!==0)t.rv<bt&&(t.rv=bt,R===null&&s!==null&&s[x]===t?x++:R===null?R=[t]:(!K||!R.includes(t))&&R.push(t));else{(g.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[g]:i.includes(g)||i.push(g)}}}else if(r&&t.deps===null&&t.effects===null){var l=t,a=l.parent;a!==null&&(a.f&k)===0&&(l.f^=k)}if(rt){if(W.has(t))return W.get(t);if(r){l=t;var u=l.v;return((l.f&A)===0&&l.reactions!==null||ze(l))&&(u=Kt(l)),W.set(l,u),u}}else r&&(l=t,jt(l)&&Ae(l));if((t.f&J)!==0)throw t.v;return t.v}function ze(t){if(t.v===S)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(W.has(e)||(e.f&O)!==0&&ze(e))return!0;return!1}const Tn=-7169;function C(t,e){t.f=t.f&Tn|e}const Sn=new Set,Je=new Set;function Nn(t,e,r,n={}){function s(i){if(n.capture||Tt.call(e,i),!i.cancelBubble)return re(()=>r?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Kr(()=>{e.addEventListener(t,s,n)}):e.addEventListener(t,s,n),s}function An(t,e,r,n,s){var i={capture:n,passive:s},l=Nn(t,e,r,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fn(()=>{e.removeEventListener(t,l,i)})}let Ze=null;function Tt(t){var e=this,r=e.ownerDocument,n=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;Ze=t;var l=0,a=Ze===t&&t.__root;if(a){var u=s.indexOf(a);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var f=s.indexOf(e);if(f===-1)return;u<=f&&(l=u)}if(i=s[l]||t.target,i!==e){it(t,"currentTarget",{configurable:!0,get(){return i||r}});var o=g,c=p;P(null),q(null);try{for(var d,h=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var $=i["__"+n];if($!=null&&(!i.disabled||t.target===i))if(ce($)){var[w,...T]=$;w.apply(i,[t,...T])}else $.call(i,t)}catch(E){d?h.push(E):d=E}if(t.cancelBubble||v===e||v===null)break;i=v}if(d){for(let E of h)queueMicrotask(()=>{throw E});throw d}}finally{t.__root=e,delete t.currentTarget,P(o),q(c)}}}function Rn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function St(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function On(t,e){var r=(e&gr)!==0,n,s=!t.startsWith("<!>");return()=>{if(y)return St(b,null),b;n===void 0&&(n=Rn(s?t:"<!>"+t),n=Mt(n));var i=r||je?document.importNode(n,!0):n.cloneNode(!0);return St(i,i),i}}function xn(t=""){if(!y){var e=yt(t+"");return St(e,e),e}var r=b;return r.nodeType!==ge&&(r.before(r=yt()),Z(r)),St(r,r),r}function se(t,e){if(y){p.nodes_end=b,Vt();return}t!==null&&t.before(e)}const Cn=["touchstart","touchmove"];function kn(t){return Cn.includes(t)}function Qe(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function tr(t,e){return er(t,e)}function Pn(t,e){ee(),e.intro=e.intro??!1;const r=e.target,n=y,s=b;try{for(var i=Mt(r);i&&(i.nodeType!==$e||i.data!==$r);)i=ct(i);if(!i)throw pt;ft(!0),Z(i),Vt();const l=er(t,{...e,anchor:i});if(b===null||b.nodeType!==$e||b.data!==wr)throw Gt(),pt;return ft(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==pt&&console.warn("Failed to hydrate: ",l),e.recover===!1&&Dr(),ee(),ln(r),ft(!1),tr(t,e)}finally{ft(n),Z(s)}}const vt=new Map;function er(t,{target:e,anchor:r,props:n={},events:s,context:i,intro:l=!0}){ee();var a=new Set,u=c=>{for(var d=0;d<c.length;d++){var h=c[d];if(!a.has(h)){a.add(h);var v=kn(h);e.addEventListener(h,Tt,{passive:v});var $=vt.get(h);$===void 0?(document.addEventListener(h,Tt,{passive:v}),vt.set(h,1)):vt.set(h,$+1)}}};u(Er(Sn)),Je.add(u);var f=void 0,o=hn(()=>{var c=r??e.appendChild(yt());return pn(()=>{if(i){me({});var d=I;d.c=i}s&&(n.$$events=s),y&&St(c,null),f=t(c,n)||{},y&&(p.nodes_end=b),i&&ye()}),()=>{for(var d of a){e.removeEventListener(d,Tt);var h=vt.get(d);--h===0?(document.removeEventListener(d,Tt),vt.delete(d)):vt.set(d,h)}Je.delete(u),c!==r&&c.parentNode?.removeChild(c)}});return ie.set(f,o),f}let ie=new WeakMap;function Mn(t,e){const r=ie.get(t);return r?(ie.delete(t),r(e)):Promise.resolve()}function jn(t,e,r,n,s){y&&Vt();var i=e.$$slots?.[r],l=!1;i===!0&&(i=e[r],l=!0),i===void 0?s!==null&&s(t):i(t,l?()=>n:n)}function In(t,e){dn(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,n.appendChild(s)}})}function Ln(t,e,r){var n=""+t;return n}function Dn(t,e){return t==null?null:String(t)}function qn(t,e,r,n,s,i){var l=t.__className;if(y||l!==r||l===void 0){var a=Ln(r);(!y||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):t.className=a),t.__className=r}return i}function rr(t,e,r,n){var s=t.__style;if(y||s!==e){var i=Dn(e);(!y||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}return n}const Fn=Symbol("is custom element"),Yn=Symbol("is html");function nr(t,e,r,n){var s=Hn(t);y&&(s[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||s[e]!==(s[e]=r)&&(e==="loading"&&(t[Cr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&sr(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Bn(t,e,r){var n=g,s=p;let i=y;y&&ft(!1),P(null),q(null);try{e!=="style"&&(le.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.tagName.toLowerCase())?sr(t).includes(e):r&&typeof r=="object")?t[e]=r:nr(t,e,r==null?r:String(r))}finally{P(n),q(s),i&&ft(!0)}}function Hn(t){return t.__attributes??={[Fn]:t.nodeName.includes("-"),[Yn]:t.namespaceURI===mr}}var le=new Map;function sr(t){var e=t.getAttribute("is")||t.nodeName,r=le.get(e);if(r)return r;le.set(e,r=[]);for(var n,s=t,i=Element.prototype;i!==s;){n=br(s);for(var l in n)n[l].set&&r.push(l);s=he(s)}return r}function ue(t,e,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),a;a=t[e],a===void 0&&n!==void 0&&(a=l());var u;u=()=>{var d=t[e];return d===void 0?l():(i=!0,d)};var f=!1,o=Se(()=>(f=!1,u())),c=p;return(function(d,h){if(arguments.length>0){const v=h?F(o):d;return Y(o,v),f=!0,s!==void 0&&(s=v),d}return rt&&f||(c.f&z)!==0?o.v:F(o)})}function Un(t){return new Gn(t)}class Gn{#e;#t;constructor(e){var r=new Map,n=(i,l)=>{var a=nn(l,!1,!1);return r.set(i,a),a};const s=new Proxy({...e.props||{},$$events:{}},{get(i,l){return F(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===xr?!0:(F(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,a){return Y(r.get(l)??n(l,a),a),Reflect.set(i,l,a)}});this.#t=(e.hydrate?Pn:tr)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Pt(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||it(this,i,{get(){return this.#t[i]},set(l){this.#t[i]=l},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Mn(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...s)=>r.call(this,...s);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(s=>s!==n)}}$destroy(){this.#t.$destroy()}}let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),se(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Vn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Lt(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=Un({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=cn(()=>{_n(()=>{this.$$r=!0;for(const n of At(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Lt(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(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Lt(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return At(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Lt(t,e,r,n){const s=r[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Vn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Wn(t,e,r,n,s,i){let l=class extends ir{constructor(){super(t,r,s),this.$$p_d=e}static get observedAttributes(){return At(e).map(a=>(e[a].attribute||a).toLowerCase())}};return At(e).forEach(a=>{it(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=Lt(a,u,e),this.$$d[a]=u;var f=this.$$c;if(f){var o=lt(f,a)?.get;o?f[a]=u:f.$set({[a]:u})}}})}),n.forEach(a=>{it(l.prototype,a,{get(){return this.$$c?.[a]}})}),t.element=l,l}const Xn={version:"0.60.1"};function Kn(t){const e=t?.repoName.split("/")?.[1]||t?.repoName;if(!e)throw new Error("wrong componentPath "+t?.repoName);if(!t?.version)throw new Error("wrong version "+t?.version);const r=t?.iifePath||"main.iife.js";if(!document.getElementById(e+"-script"))try{const n=document.createElement("script");if(n.id=e+"-script",n.src=`https://cdn.jsdelivr.net/npm/${t.repoName}@${t.version}/${r}`,t?.local)n.src=`${t.local}`;else if(location.href.includes("localhost:6006")){const s=e.split("-")[0];n.src=`http://localhost:6006/webcomponents/${e.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _t={},ae,lr;function Jn(){if(lr)return ae;lr=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
3
- `,f="/",o="*",c="",d="comment",h="declaration";ae=function($,w){if(typeof $!="string")throw new TypeError("First argument must be a string");if(!$)return[];w=w||{};var T=1,E=1;function or(m){var _=m.match(e);_&&(T+=_.length);var L=m.lastIndexOf(u);E=~L?m.length-L:E+m.length}function cr(){var m={line:T,column:E};return function(_){return _.position=new hr(m),vr(),_}}function hr(m){this.start=m,this.end={line:T,column:E},this.source=w.source}hr.prototype.content=$;function dr(m){var _=new Error(w.source+":"+T+":"+E+": "+m);if(_.reason=m,_.filename=w.source,_.line=T,_.column=E,_.source=$,!w.silent)throw _}function Nt(m){var _=m.exec($);if(_){var L=_[0];return or(L),$=$.slice(L.length),_}}function vr(){Nt(r)}function _r(m){var _;for(m=m||[];_=pr();)_!==!1&&m.push(_);return m}function pr(){var m=cr();if(!(f!=$.charAt(0)||o!=$.charAt(1))){for(var _=2;c!=$.charAt(_)&&(o!=$.charAt(_)||f!=$.charAt(_+1));)++_;if(_+=2,c===$.charAt(_-1))return dr("End of comment missing");var L=$.slice(2,_-2);return E+=2,or(L),$=$.slice(_),E+=2,m({type:d,comment:L})}}function rs(){var m=cr(),_=Nt(n);if(_){if(pr(),!Nt(s))return dr("property missing ':'");var L=Nt(i),ss=m({type:h,property:v(_[0].replace(t,c)),value:L?v(L[0].replace(t,c)):c});return Nt(l),ss}}function ns(){var m=[];_r(m);for(var _;_=rs();)_!==!1&&(m.push(_),_r(m));return m}return vr(),ns()};function v($){return $?$.replace(a,c):c}return ae}var ur;function Zn(){if(ur)return _t;ur=1;var t=_t&&_t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(_t,"__esModule",{value:!0}),_t.default=r;var e=t(Jn());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var l=(0,e.default)(n),a=typeof s=="function";return l.forEach(function(u){if(u.type==="declaration"){var f=u.property,o=u.value;a?s(f,o,u):o&&(i=i||{},i[f]=o)}}),i}return _t}var Qn=Zn();const ar=zn(Qn);ar.default;var ts=On('<hb-dialog><span slot="title" class="svelte-69qdj4"><!></span> <div slot="body-content" class="svelte-69qdj4"><div class="progress svelte-69qdj4"><div class="progress-bar svelte-69qdj4" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div></div> <span slot="modal-footer" class="svelte-69qdj4"></span></hb-dialog>',2);const es={hash:"svelte-69qdj4",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(ut){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const gr=2,wr="[",$r="]",pe={},x=Symbol(),br="http://www.w3.org/1999/xhtml",ft=!1;var ct=Array.isArray,mr=Array.prototype.indexOf,yr=Array.from,Ne=Object.keys,ie=Object.defineProperty,le=Object.getOwnPropertyDescriptor,Er=Object.getOwnPropertyDescriptors,Tr=Object.prototype,xr=Array.prototype,ht=Object.getPrototypeOf,vt=Object.isExtensible;function dt(e){for(var t=0;t<e.length;t++)e[t]()}function Sr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const k=2,De=4,qe=8,ge=16,U=32,G=64,_t=128,C=256,Ae=512,N=1024,I=2048,V=4096,ae=8192,z=16384,Fe=32768,Nr=65536,pt=1<<17,Ar=1<<18,oe=1<<19,kr=1<<20,Ye=1<<21,Be=1<<22,J=1<<23,He=Symbol("$state"),Rr=Symbol("legacy props"),Or=Symbol(""),Ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},gt=3,wt=8;function Cr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ir(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Lr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dr(){throw new Error("https://svelte.dev/e/hydration_failed")}function qr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function ue(e){m=e}let E;function Z(e){if(e===null)throw Ge(),pe;return E=e}function Ve(){return Z(ce(E))}function we(e){if(m){if(ce(E)!==null)throw Ge(),pe;E=e}}function Br(e=1){if(m){for(var t=e,r=E;t--;)r=ce(r);E=r}}function $t(e){return e===this.v}function Hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ur(e){return!Hr(e,this.v)}let Gr=!1,L=null;function ke(e){L=e}function bt(e,t=!1,r){L={p:L,c:null,e:null,s:e,x:null,l:null}}function mt(e){var t=L,r=t.e;if(r!==null){t.e=null;for(var n of r)Dt(n)}return e!==void 0&&(t.x=e),L=t.p,e??{}}function yt(){return!0}const Vr=new WeakMap;function Wr(e){var t=p;if(t===null)return g.f|=J,e;if((t.f&Fe)===0){if((t.f&_t)===0)throw!t.parent&&e instanceof Error&&Et(e),e;t.b.error(e)}else We(e,t)}function We(e,t){for(;t!==null;){if((t.f&_t)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Et(e),e}function Et(e){const t=Vr.get(e);t&&(ie(e,"message",{value:t.message}),ie(e,"stack",{value:t.stack}))}let $e=[],Xe=[];function Tt(){var e=$e;$e=[],dt(e)}function Xr(){var e=Xe;Xe=[],dt(e)}function Kr(e){$e.length===0&&queueMicrotask(Tt),$e.push(e)}function zr(){$e.length>0&&Tt(),Xe.length>0&&Xr()}function Jr(){const e=p.b;return e===null&&Cr(),e}function xt(e){var t=k|I,r=g!==null&&(g.f&k)!==0?g:null;return p===null||r!==null&&(r.f&C)!==0?t|=C:p.f|=oe,{ctx:L,deps:null,effects:null,equals:$t,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??p,ac:null}}function Zr(e,t){let r=p;r===null&&Pr();var n=r.b,s=void 0,i=Ze(x),l=null,o=!g;return dn(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(h){a=Promise.reject(h)}var u=()=>a;s=l?.then(u,u)??Promise.resolve(a),l=s;var f=S,c=n.is_pending();o&&(n.update_pending_count(1),c||f.increment());const v=(h,d=void 0)=>{l=null,c||f.activate(),d?d!==Ue&&(i.f|=J,Qe(i,d)):((i.f&J)!==0&&(i.f^=J),Qe(i,h)),o&&(n.update_pending_count(-1),c||f.decrement()),At()};if(s.then(v,h=>v(null,h||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function c(){f===s?a(i):u(s)}f.then(c,c)}u(s)})}function St(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)X(t[r])}}function Qr(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return t;t=t.parent}return null}function Ke(e){var t,r=p;q(Qr(e));try{St(e),t=Kt(e)}finally{q(r)}return t}function Nt(e){var t=Ke(e);if(e.equals(t)||(e.v=t,e.wv=Wt()),!re){var r=(K||(e.f&C)!==0)&&e.deps!==null?V:N;O(e,r)}}function en(e,t,r){const n=xt;if(t.length===0){r(e.map(n));return}var s=S,i=p,l=tn(),o=Jr();Promise.all(t.map(a=>Zr(a))).then(a=>{s?.activate(),l();try{r([...e.map(n),...a])}catch(u){(i.f&z)===0&&We(u,i)}s?.deactivate(),At()}).catch(a=>{o.error(a)})}function tn(){var e=p,t=g,r=L,n=S;return function(){q(e),P(t),ke(r),n?.activate()}}function At(){q(null),P(null),ke(null)}const ze=new Set;let S=null,kt=new Set,Re=[];function Rt(){const e=Re.shift();Re.length>0&&queueMicrotask(Rt),e()}let Q=[],Oe=null,Je=!1,Ce=!1;class ee{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#l=[];#i=[];#n=[];#a=[];#c=[];#h=[];skipped_effects=new Set;process(t){Q=[];for(const s of t)this.#d(s);if(this.#s.length===0&&this.#r===0){this.#v();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#a=[],S=null,Ct(r),Ct(n),S===null?S=this:ze.delete(this),this.#u?.resolve()}else this.#o(this.#i),this.#o(this.#n),this.#o(this.#a);for(const s of this.#s)ve(s);for(const s of this.#l)ve(s);this.#s=[],this.#l=[]}#d(t){t.f^=N;for(var r=t.first;r!==null;){var n=r.f,s=(n&(U|G))!==0,i=s&&(n&N)!==0,l=i||(n&ae)!==0||this.skipped_effects.has(r);if(!l&&r.fn!==null){if(s)r.f^=N;else if((n&De)!==0)this.#n.push(r);else if((n&N)===0)if((n&Be)!==0){var o=r.b?.is_pending()?this.#l:this.#s;o.push(r)}else Ie(r)&&((r.f&ge)!==0&&this.#a.push(r),ve(r));var a=r.first;if(a!==null){r=a;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#o(t){for(const r of t)((r.f&I)!==0?this.#c:this.#h).push(r),O(r,N);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){S=this}deactivate(){S=null;for(const t of kt)if(kt.delete(t),t(),S!==null)break}neuter(){this.#f=!0}flush(){Q.length>0?Ot():this.#v(),S===this&&(this.#r===0&&ze.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)O(t,I),be(t);for(const t of this.#h)O(t,V),be(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Sr()).promise}static ensure(){if(S===null){const t=S=new ee;ze.add(S),Ce||ee.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){Re.length===0&&queueMicrotask(Rt),Re.unshift(t)}}function Pe(e){var t=Ce;Ce=!0;try{for(var r;;){if(zr(),Q.length===0&&(S?.flush(),Q.length===0))return Oe=null,r;Ot()}}finally{Ce=t}}function Ot(){var e=he;Je=!0;try{var t=0;for(Ht(!0);Q.length>0;){var r=ee.ensure();if(t++>1e3){var n,s;rn()}r.process(Q),W.clear()}}finally{Je=!1,Ht(e),Oe=null}}function rn(){try{jr()}catch(e){We(e,Oe)}}let te=null;function Ct(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(z|ae))===0&&Ie(n)&&(te=[],ve(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Yt(n):n.fn=null),te?.length>0)){W.clear();for(const s of te)ve(s);te=[]}}te=null}}function be(e){for(var t=Oe=e;t.parent!==null;){t=t.parent;var r=t.f;if(Je&&t===p&&(r&ge)!==0)return;if((r&(G|U))!==0){if((r&N)===0)return;t.f^=N}}Q.push(t)}const W=new Map;function Ze(e,t){var r={f:0,v:e,reactions:null,equals:$t,rv:0,wv:0};return r}function D(e,t){const r=Ze(e);return mn(r),r}function nn(e,t=!1,r=!0){const n=Ze(e);return t||(n.equals=Ur),n}function Y(e,t,r=!1){g!==null&&(!ne||(g.f&pt)!==0)&&yt()&&(g.f&(k|ge|Be|pt))!==0&&!H?.includes(e)&&Yr();let n=r?fe(t):t;return Qe(e,n)}function Qe(e,t){if(!e.equals(t)){var r=e.v;re?W.set(e,t):W.set(e,r),e.v=t;var n=ee.ensure();n.capture(e,r),(e.f&k)!==0&&((e.f&I)!==0&&Ke(e),O(e,(e.f&C)===0?N:V)),e.wv=Wt(),Pt(e,I),p!==null&&(p.f&N)!==0&&(p.f&(U|G))===0&&(M===null?yn([e]):M.push(e))}return t}function et(e){Y(e,e.v+1)}function Pt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],l=i.f,o=(l&I)===0;o&&O(i,t),(l&k)!==0?Pt(i,V):o&&((l&ge)!==0&&te!==null&&te.push(i),be(i))}}function fe(e){if(typeof e!="object"||e===null||He in e)return e;const t=ht(e);if(t!==Tr&&t!==xr)return e;var r=new Map,n=ct(e),s=D(0),i=se,l=o=>{if(se===i)return o();var a=g,u=se;P(null),Vt(i);var f=o();return P(a),Vt(u),f};return n&&r.set("length",D(e.length)),new Proxy(e,{defineProperty(o,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&qr();var f=r.get(a);return f===void 0?f=l(()=>{var c=D(u.value);return r.set(a,c),c}):Y(f,u.value,!0),!0},deleteProperty(o,a){var u=r.get(a);if(u===void 0){if(a in o){const f=l(()=>D(x));r.set(a,f),et(s)}}else Y(u,x),et(s);return!0},get(o,a,u){if(a===He)return e;var f=r.get(a),c=a in o;if(f===void 0&&(!c||le(o,a)?.writable)&&(f=l(()=>{var h=fe(c?o[a]:x),d=D(h);return d}),r.set(a,f)),f!==void 0){var v=F(f);return v===x?void 0:v}return Reflect.get(o,a,u)},getOwnPropertyDescriptor(o,a){var u=Reflect.getOwnPropertyDescriptor(o,a);if(u&&"value"in u){var f=r.get(a);f&&(u.value=F(f))}else if(u===void 0){var c=r.get(a),v=c?.v;if(c!==void 0&&v!==x)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,a){if(a===He)return!0;var u=r.get(a),f=u!==void 0&&u.v!==x||Reflect.has(o,a);if(u!==void 0||p!==null&&(!f||le(o,a)?.writable)){u===void 0&&(u=l(()=>{var v=f?fe(o[a]):x,h=D(v);return h}),r.set(a,u));var c=F(u);if(c===x)return!1}return f},set(o,a,u,f){var c=r.get(a),v=a in o;if(n&&a==="length")for(var h=u;h<c.v;h+=1){var d=r.get(h+"");d!==void 0?Y(d,x):h in o&&(d=l(()=>D(x)),r.set(h+"",d))}if(c===void 0)(!v||le(o,a)?.writable)&&(c=l(()=>D(void 0)),Y(c,fe(u)),r.set(a,c));else{v=c.v!==x;var w=l(()=>fe(u));Y(c,w)}var $=Reflect.getOwnPropertyDescriptor(o,a);if($?.set&&$.set.call(f,u),!v){if(n&&typeof a=="string"){var T=r.get("length"),y=Number(a);Number.isInteger(y)&&y>=T.v&&Y(T,y+1)}et(s)}return!0},ownKeys(o){F(s);var a=Reflect.ownKeys(o).filter(c=>{var v=r.get(c);return v===void 0||v.v!==x});for(var[u,f]of r)f.v!==x&&!(u in o)&&a.push(u);return a},setPrototypeOf(){Fr()}})}var Mt,It,Lt,jt;function tt(){if(Mt===void 0){Mt=window,It=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Lt=le(t,"firstChild").get,jt=le(t,"nextSibling").get,vt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),vt(r)&&(r.__t=void 0)}}function me(e=""){return document.createTextNode(e)}function Me(e){return Lt.call(e)}function ce(e){return jt.call(e)}function ye(e,t){if(!m)return Me(e);var r=Me(E);return r===null&&(r=E.appendChild(me())),Z(r),r}function sn(e,t=1,r=!1){let n=m?E:e;for(var s;t--;)s=n,n=ce(n);if(!m)return n;if(r&&n?.nodeType!==gt){var i=me();return n===null?s?.after(i):n.before(i),Z(i),i}return Z(n),n}function ln(e){e.textContent=""}function rt(e){var t=g,r=p;P(null),q(null);try{return e()}finally{P(t),q(r)}}function an(e){p===null&&g===null&&Lr(),g!==null&&(g.f&C)!==0&&p===null&&Ir(),re&&Mr()}function on(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r,n=!0){var s=p;s!==null&&(s.f&ae)!==0&&(e|=ae);var i={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|I,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ve(i),i.f|=Fe}catch(a){throw X(i),a}else t!==null&&be(i);if(n){var l=i;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&oe)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&on(l,s),g!==null&&(g.f&k)!==0&&(e&G)===0)){var o=g;(o.effects??=[]).push(l)}}return i}function un(e){const t=B(qe,null,!1);return O(t,N),t.teardown=e,t}function fn(e){an();var t=p.f,r=!g&&(t&U)!==0&&(t&Fe)===0;if(r){var n=L;(n.e??=[]).push(e)}else return Dt(e)}function Dt(e){return B(De|kr,e,!1)}function cn(e){ee.ensure();const t=B(G|oe,e,!0);return()=>{X(t)}}function hn(e){ee.ensure();const t=B(G|oe,e,!0);return(r={})=>new Promise(n=>{r.outro?$n(t,()=>{X(t),n(void 0)}):(X(t),n(void 0))})}function vn(e){return B(De,e,!1)}function dn(e){return B(Be|oe,e,!0)}function _n(e,t=0){return B(qe|t,e,!0)}function nt(e,t=[],r=[]){en(t,r,n=>{B(qe,()=>e(...n.map(F)),!0)})}function pn(e,t=!0){return B(U|oe,e,!0,t)}function qt(e){var t=e.teardown;if(t!==null){const r=re,n=g;Ut(!0),P(null);try{t.call(null)}finally{Ut(r),P(n)}}}function Ft(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&rt(()=>{s.abort(Ue)});var n=r.next;(r.f&G)!==0?r.parent=null:X(r,t),r=n}}function gn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&U)===0&&X(t),t=r}}function X(e,t=!0){var r=!1;(t||(e.f&Ar)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(wn(e.nodes_start,e.nodes_end),r=!0),Ft(e,t&&!r),Le(e,0),O(e,z);var n=e.transitions;if(n!==null)for(const i of n)i.stop();qt(e);var s=e.parent;s!==null&&s.first!==null&&Yt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function wn(e,t){for(;e!==null;){var r=e===t?null:ce(e);e.remove(),e=r}}function Yt(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 $n(e,t){var r=[];Bt(e,r,!0),bn(r,()=>{X(e),t&&t()})}function bn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Bt(e,t,r){if((e.f&ae)===0){if(e.f^=ae,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&Nr)!==0||(n.f&U)!==0;Bt(n,t,i?r:!1),n=s}}}let he=!1;function Ht(e){he=e}let re=!1;function Ut(e){re=e}let g=null,ne=!1;function P(e){g=e}let p=null;function q(e){p=e}let H=null;function mn(e){g!==null&&(H===null?H=[e]:H.push(e))}let A=null,R=0,M=null;function yn(e){M=e}let Gt=1,Ee=0,se=Ee;function Vt(e){se=e}let K=!1;function Wt(){return++Gt}function Ie(e){var t=e.f;if((t&I)!==0)return!0;if((t&V)!==0){var r=e.deps,n=(t&C)!==0;if(r!==null){var s,i,l=(t&Ae)!==0,o=n&&p!==null&&!K,a=r.length;if((l||o)&&(p===null||(p.f&z)===0)){var u=e,f=u.parent;for(s=0;s<a;s++)i=r[s],(l||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);l&&(u.f^=Ae),o&&f!==null&&(f.f&C)===0&&(u.f^=C)}for(s=0;s<a;s++)if(i=r[s],Ie(i)&&Nt(i),i.wv>e.wv)return!0}(!n||p!==null&&!K)&&O(e,N)}return!1}function Xt(e,t,r=!0){var n=e.reactions;if(n!==null&&!H?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&k)!==0?Xt(i,t,!1):t===i&&(r?O(i,I):(i.f&N)!==0&&O(i,V),be(i))}}function Kt(e){var t=A,r=R,n=M,s=g,i=K,l=H,o=L,a=ne,u=se,f=e.f;A=null,R=0,M=null,K=(f&C)!==0&&(ne||!he||g===null),g=(f&(U|G))===0?e:null,H=null,ke(e.ctx),ne=!1,se=++Ee,e.ac!==null&&(rt(()=>{e.ac.abort(Ue)}),e.ac=null);try{e.f|=Ye;var c=e.fn,v=c(),h=e.deps;if(A!==null){var d;if(Le(e,R),h!==null&&R>0)for(h.length=R+A.length,d=0;d<A.length;d++)h[R+d]=A[d];else e.deps=h=A;if(!K||(f&k)!==0&&e.reactions!==null)for(d=R;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&R<h.length&&(Le(e,R),h.length=R);if(yt()&&M!==null&&!ne&&h!==null&&(e.f&(k|V|I))===0)for(d=0;d<M.length;d++)Xt(M[d],e);return s!==null&&s!==e&&(Ee++,M!==null&&(n===null?n=M:n.push(...M))),(e.f&J)!==0&&(e.f^=J),v}catch(w){return Wr(w)}finally{e.f^=Ye,A=t,R=r,M=n,g=s,K=i,H=l,ke(o),ne=a,se=u}}function En(e,t){let r=t.reactions;if(r!==null){var n=mr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&k)!==0&&(A===null||!A.includes(t))&&(O(t,V),(t.f&(C|Ae))===0&&(t.f^=Ae),St(t),Le(t,0))}function Le(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)En(e,r[n])}function ve(e){var t=e.f;if((t&z)===0){O(e,N);var r=p,n=he;p=e,he=!0;try{(t&ge)!==0?gn(e):Ft(e),qt(e);var s=Kt(e);e.teardown=typeof s=="function"?s:null,e.wv=Gt;var i;ft&&Gr&&(e.f&I)!==0&&e.deps}finally{he=n,p=r}}}function F(e){var t=e.f,r=(t&k)!==0;if(g!==null&&!ne){var n=p!==null&&(p.f&z)!==0;if(!n&&!H?.includes(e)){var s=g.deps;if((g.f&Ye)!==0)e.rv<Ee&&(e.rv=Ee,A===null&&s!==null&&s[R]===e?R++:A===null?A=[e]:(!K||!A.includes(e))&&A.push(e));else{(g.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[g]:i.includes(g)||i.push(g)}}}else if(r&&e.deps===null&&e.effects===null){var l=e,o=l.parent;o!==null&&(o.f&C)===0&&(l.f^=C)}if(re){if(W.has(e))return W.get(e);if(r){l=e;var a=l.v;return((l.f&N)===0&&l.reactions!==null||zt(l))&&(a=Ke(l)),W.set(l,a),a}}else r&&(l=e,Ie(l)&&Nt(l));if((e.f&J)!==0)throw e.v;return e.v}function zt(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(W.has(t)||(t.f&k)!==0&&zt(t))return!0;return!1}const Tn=-7169;function O(e,t){e.f=e.f&Tn|t}const xn=new Set,Jt=new Set;function Sn(e,t,r,n={}){function s(i){if(n.capture||Te.call(t,i),!i.cancelBubble)return rt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Kr(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Nn(e,t,r,n,s){var i={capture:n,passive:s},l=Sn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&un(()=>{t.removeEventListener(e,l,i)})}let Zt=null;function Te(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Zt=e;var l=0,o=Zt===e&&e.__root;if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(l=a)}if(i=s[l]||e.target,i!==t){ie(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=g,c=p;P(null),q(null);try{for(var v,h=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var w=i["__"+n];if(w!=null&&(!i.disabled||e.target===i))if(ct(w)){var[$,...T]=w;$.apply(i,[e,...T])}else w.call(i,e)}catch(y){v?h.push(y):v=y}if(e.cancelBubble||d===t||d===null)break;i=d}if(v){for(let y of h)queueMicrotask(()=>{throw y});throw v}}finally{e.__root=t,delete e.currentTarget,P(f),q(c)}}}function An(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function xe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function kn(e,t){var r=(t&gr)!==0,n,s=!e.startsWith("<!>");return()=>{if(m)return xe(E,null),E;n===void 0&&(n=An(s?e:"<!>"+e),n=Me(n));var i=r||It?document.importNode(n,!0):n.cloneNode(!0);return xe(i,i),i}}function Rn(e=""){if(!m){var t=me(e+"");return xe(t,t),t}var r=E;return r.nodeType!==gt&&(r.before(r=me()),Z(r)),xe(r,r),r}function st(e,t){if(m){p.nodes_end=E,Ve();return}e!==null&&e.before(t)}const On=["touchstart","touchmove"];function Cn(e){return On.includes(e)}function Qt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function er(e,t){return tr(e,t)}function Pn(e,t){tt(),t.intro=t.intro??!1;const r=t.target,n=m,s=E;try{for(var i=Me(r);i&&(i.nodeType!==wt||i.data!==wr);)i=ce(i);if(!i)throw pe;ue(!0),Z(i),Ve();const l=tr(e,{...t,anchor:i});if(E===null||E.nodeType!==wt||E.data!==$r)throw Ge(),pe;return ue(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Dr(),tt(),ln(r),ue(!1),er(e,t)}finally{ue(n),Z(s)}}const de=new Map;function tr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0}){tt();var o=new Set,a=c=>{for(var v=0;v<c.length;v++){var h=c[v];if(!o.has(h)){o.add(h);var d=Cn(h);t.addEventListener(h,Te,{passive:d});var w=de.get(h);w===void 0?(document.addEventListener(h,Te,{passive:d}),de.set(h,1)):de.set(h,w+1)}}};a(yr(xn)),Jt.add(a);var u=void 0,f=hn(()=>{var c=r??t.appendChild(me());return pn(()=>{if(i){bt({});var v=L;v.c=i}s&&(n.$$events=s),m&&xe(c,null),u=e(c,n)||{},m&&(p.nodes_end=E),i&&mt()}),()=>{for(var v of o){t.removeEventListener(v,Te);var h=de.get(v);--h===0?(document.removeEventListener(v,Te),de.delete(v)):de.set(v,h)}Jt.delete(a),c!==r&&c.parentNode?.removeChild(c)}});return it.set(u,f),u}let it=new WeakMap;function Mn(e,t){const r=it.get(e);return r?(it.delete(e),r(t)):Promise.resolve()}function In(e,t,r,n,s){m&&Ve();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 Ln(e,t){vn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function jn(e,t,r){var n=""+e;return n}function Dn(e,t){return e==null?null:String(e)}function qn(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=jn(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function rr(e,t,r,n){var s=e.__style;if(m||s!==t){var i=Dn(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Fn=Symbol("is custom element"),Yn=Symbol("is html");function nr(e,t,r,n){var s=Hn(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Or]=r),r==null?e.removeAttribute(t):typeof r!="string"&&sr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Bn(e,t,r){var n=g,s=p;let i=m;m&&ue(!1),P(null),q(null);try{t!=="style"&&(lt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?sr(e).includes(t):r&&typeof r=="object")?e[t]=r:nr(e,t,r==null?r:String(r))}finally{P(n),q(s),i&&ue(!0)}}function Hn(e){return e.__attributes??={[Fn]:e.nodeName.includes("-"),[Yn]:e.namespaceURI===br}}var lt=new Map;function sr(e){var t=e.getAttribute("is")||e.nodeName,r=lt.get(t);if(r)return r;lt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Er(s);for(var l in n)n[l].set&&r.push(l);s=ht(s)}return r}function at(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 v=e[t];return v===void 0?l():(i=!0,v)};var u=!1,f=xt(()=>(u=!1,a())),c=p;return(function(v,h){if(arguments.length>0){const d=h?F(f):v;return Y(f,d),u=!0,s!==void 0&&(s=d),v}return re&&u||(c.f&z)!==0?f.v:F(f)})}function Un(e){return new Gn(e)}class Gn{#t;#e;constructor(t){var r=new Map,n=(i,l)=>{var o=nn(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return F(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Rr?!0:(F(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return Y(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#e=(t.hydrate?Pn: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)&&Pe(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||ie(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Mn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}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=document.createElement("slot");n!=="default"&&(i.name=n),st(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Vn(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]=je(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=Un({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{_n(()=>{this.$$r=!0;for(const n of Ne(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=je(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]=je(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 Ne(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function je(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 Vn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Wn(e,t,r,n,s,i){let l=class extends ir{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ne(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ne(t).forEach(o=>{ie(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=je(o,a,t),this.$$d[o]=a;var u=this.$$c;if(u){var f=le(u,o)?.get;f?u[o]=a:u.$set({[o]:a})}}})}),n.forEach(o=>{ie(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Xn={version:"0.60.3"};function Kn(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _e={},ot,lr;function Jn(){if(lr)return ot;lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,a=`
3
+ `,u="/",f="*",c="",v="comment",h="declaration";ot=function(w,$){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];$=$||{};var T=1,y=1;function fr(b){var _=b.match(t);_&&(T+=_.length);var j=b.lastIndexOf(a);y=~j?b.length-j:y+b.length}function cr(){var b={line:T,column:y};return function(_){return _.position=new hr(b),dr(),_}}function hr(b){this.start=b,this.end={line:T,column:y},this.source=$.source}hr.prototype.content=w;function vr(b){var _=new Error($.source+":"+T+":"+y+": "+b);if(_.reason=b,_.filename=$.source,_.line=T,_.column=y,_.source=w,!$.silent)throw _}function Se(b){var _=b.exec(w);if(_){var j=_[0];return fr(j),w=w.slice(j.length),_}}function dr(){Se(r)}function _r(b){var _;for(b=b||[];_=pr();)_!==!1&&b.push(_);return b}function pr(){var b=cr();if(!(u!=w.charAt(0)||f!=w.charAt(1))){for(var _=2;c!=w.charAt(_)&&(f!=w.charAt(_)||u!=w.charAt(_+1));)++_;if(_+=2,c===w.charAt(_-1))return vr("End of comment missing");var j=w.slice(2,_-2);return y+=2,fr(j),w=w.slice(_),y+=2,b({type:v,comment:j})}}function rs(){var b=cr(),_=Se(n);if(_){if(pr(),!Se(s))return vr("property missing ':'");var j=Se(i),ss=b({type:h,property:d(_[0].replace(e,c)),value:j?d(j[0].replace(e,c)):c});return Se(l),ss}}function ns(){var b=[];_r(b);for(var _;_=rs();)_!==!1&&(b.push(_),_r(b));return b}return dr(),ns()};function d(w){return w?w.replace(o,c):c}return ot}var ar;function Zn(){if(ar)return _e;ar=1;var e=_e&&_e.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=r;var t=e(Jn());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var l=(0,t.default)(n),o=typeof s=="function";return l.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;o?s(u,f,a):f&&(i=i||{},i[u]=f)}}),i}return _e}var Qn=Zn();const or=zn(Qn);or.default;var es=kn('<hb-dialog><span slot="title" class="svelte-qxv4dk"><!></span> <div slot="body-content" class="svelte-qxv4dk"><div class="progress svelte-qxv4dk"><div class="progress-bar svelte-qxv4dk" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div></div> <span slot="modal-footer" class="svelte-qxv4dk"></span></hb-dialog>',2);const ts={hash:"svelte-qxv4dk",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");
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
6
  * Copyright 2011-2021 The Bootstrap Authors
7
7
  * Copyright 2011-2021 Twitter, Inc.
8
8
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
9
9
  */
10
- @keyframes svelte-69qdj4-progress-bar-stripes {
10
+ @keyframes svelte-qxv4dk-progress-bar-stripes {
11
11
  0% {
12
- background-position-x: 1rem;
12
+ background-position-x: var(--bs-progress-height);
13
13
  }
14
- }.progress.svelte-69qdj4 {display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem;}.progress-bar.svelte-69qdj4 {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#0d6efd;transition:width 0.6s ease;}
15
- @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-69qdj4 {transition:none;}
14
+ }.progress.svelte-qxv4dk {--bs-progress-height: 1rem;--bs-progress-font-size: 0.75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius);}.progress-bar.svelte-qxv4dk {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition);}
15
+ @media (prefers-reduced-motion: reduce) {.progress-bar.svelte-qxv4dk {transition:none;}
16
16
  }
17
17
  @media (prefers-reduced-motion: reduce) {
18
- }:host {font-family:"Roboto", sans-serif;}`};function fr(t,e){me(e,!0),In(t,es),ot({});let r=D("");function n(w,T){e.$$host.dispatchEvent(new CustomEvent(w,{detail:T}))}Kn({repoName:"@htmlbricks/hb-dialog",version:Xn.version});let s=ue(e,"id",7,""),i=ue(e,"title",7,"loading"),l=ue(e,"percentage",7,0);on(()=>{typeof l()=="string"&&l(parseInt(l()))});function a(w){n("modalShow",w)}var u={get id(){return s()},set id(w=""){s(w),Pt()},get title(){return i()},set title(w="loading"){i(w),Pt()},get percentage(){return l()},set percentage(w=0){l(w),Pt()}},f=ts();rr(f,F(r)),ne(()=>Bn(f,"show",l()?"yes":"no")),qn(f,1,"svelte-69qdj4");var o=Et(f),c=Et(o);jn(c,e,"title",{},w=>{var T=xn();ne(()=>Qe(T,i())),se(w,T)}),$t(o);var d=sn(o,2),h=Et(d),v=Et(h),$=Et(v);return $t(v),$t(h),$t(d),Br(2),$t(f),ne((w,T,E)=>{rr(v,`width:${w??""}%`),nr(v,"aria-valuenow",T),Qe($,`${E??""}%`)},[()=>Math.round(l()),()=>Math.round(l()),()=>Math.round(l())]),An("modalShow",f,w=>a(w.detail)),se(t,f),ye(u)}customElements.define("hb-dialog-loader",Wn(fr,{id:{},title:{},percentage:{}},["title"],[],!0)),fe.Component=fr,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})})(this["dialog-loader"]=this["dialog-loader"]||{});
18
+ }:host {font-family:"Roboto", sans-serif;}`};function ur(e,t){bt(t,!0),Ln(e,ts),fe({});let r=D("");function n($,T){t.$$host.dispatchEvent(new CustomEvent($,{detail:T}))}Kn({repoName:"@htmlbricks/hb-dialog",version:Xn.version});let s=at(t,"id",7,""),i=at(t,"title",7,"loading"),l=at(t,"percentage",7,0);fn(()=>{typeof l()=="string"&&l(parseInt(l()))});function o($){n("modalShow",$)}var a={get id(){return s()},set id($=""){s($),Pe()},get title(){return i()},set title($="loading"){i($),Pe()},get percentage(){return l()},set percentage($=0){l($),Pe()}},u=es();rr(u,F(r)),nt(()=>Bn(u,"show",l()?"yes":"no")),qn(u,1,"svelte-qxv4dk");var f=ye(u),c=ye(f);In(c,t,"title",{},$=>{var T=Rn();nt(()=>Qt(T,i())),st($,T)}),we(f);var v=sn(f,2),h=ye(v),d=ye(h),w=ye(d);return we(d),we(h),we(v),Br(2),we(u),nt(($,T,y)=>{rr(d,`width:${$??""}%`),nr(d,"aria-valuenow",T),Qt(w,`${y??""}%`)},[()=>Math.round(l()),()=>Math.round(l()),()=>Math.round(l())]),Nn("modalShow",u,$=>o($.detail)),st(e,u),mt(a)}customElements.define("hb-dialog-loader",Wn(ur,{id:{},title:{},percentage:{}},["title"],[],!0)),ut.Component=ur,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})})(this["dialog-loader"]=this["dialog-loader"]||{});
19
19
  //# sourceMappingURL=main.iife.js.map