@htmlbricks/hb-skeleton-component 0.65.23 → 0.66.0

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,11 +1,11 @@
1
- (function(vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const dr=2,bt="[",pt="[!",gt="]",pe={},w=Symbol(),hr="http://www.w3.org/1999/xhtml",Ge=!1;var _r=Array.isArray,vr=Array.prototype.indexOf,br=Array.from,Ne=Object.keys,Re=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,pr=Object.getOwnPropertyDescriptors,gr=Object.prototype,mr=Array.prototype,mt=Object.getPrototypeOf,yt=Object.isExtensible;function yr(e){for(var t=0;t<e.length;t++)e[t]()}function wt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const y=2,Xe=4,Ze=8,B=16,re=32,W=64,Oe=128,O=512,$=1024,T=2048,H=4096,G=8192,Y=16384,Qe=32768,Pe=65536,$t=1<<17,Et=1<<18,ne=1<<19,wr=1<<20,se=32768,et=1<<21,tt=1<<22,X=1<<23,rt=Symbol("$state"),$r=Symbol("legacy props"),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=3,je=8;function Er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Tr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Nr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function Me(e){m=e}let p;function V(e){if(e===null)throw nt(),pe;return p=e}function st(){return V(ee(p))}function ge(e){if(m){if(ee(p)!==null)throw nt(),pe;p=e}}function Rr(e=1){if(m){for(var t=e,r=p;t--;)r=ee(r);p=r}}function Or(e=!0){for(var t=0,r=p;;){if(r.nodeType===je){var n=r.data;if(n===gt){if(t===0)return r;t-=1}else(n===bt||n===pt)&&(t+=1)}var i=ee(r);e&&r.remove(),r=i}}function kt(e){return e===this.v}function Pr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jr(e){return!Pr(e,this.v)}let Mr=!1,P=null;function ce(e){P=e}function St(e,t=!1,r){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Tt(e){var t=P,r=t.e;if(r!==null){t.e=null;for(var n of r)Xr(n)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function At(){return!0}let ie=[];function Ct(){var e=ie;ie=[],yr(e)}function it(e){if(ie.length===0&&!me){var t=ie;queueMicrotask(()=>{t===ie&&Ct()})}ie.push(e)}function Dr(){for(;ie.length>0;)Ct()}function Nt(e){var t=v;if(t===null)return _.f|=X,e;if((t.f&Qe)===0){if((t.f&Oe)===0)throw e;t.b.error(e)}else de(e,t)}function de(e,t){for(;t!==null;){if((t.f&Oe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const De=new Set;let g=null,C=null,N=[],Ie=null,ot=!1,me=!1;class j{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#f=0;#i=0;#a=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){N=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(g=null,Ot(r.render_effects),Ot(r.effects),this.#a?.resolve()),C=null}#r(t,r){t.f^=$;for(var n=t.first;n!==null;){var i=n.f,s=(i&(re|W))!==0,o=s&&(i&$)!==0,f=o||(i&G)!==0||this.skipped_effects.has(n);if((n.f&Oe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!f&&n.fn!==null){s?n.f^=$:(i&Xe)!==0?r.effects.push(n):Te(n)&&((n.f&B)!==0&&r.block_effects.push(n),Ae(n));var l=n.first;if(l!==null){n=l;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)a===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=a.next,a=a.parent}}#n(t){for(const r of t)((r.f&T)!==0?this.#o:this.#s).push(r),this.#l(r.deps),x(r,$)}#l(t){if(t!==null)for(const r of t)(r.f&y)===0||(r.f&se)===0||(r.f^=se,this.#l(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&X)===0&&(this.current.set(t,t.v),C?.set(t,t.v))}activate(){g=this,this.apply()}deactivate(){g===this&&(g=null,C=null)}flush(){if(this.activate(),N.length>0){if(Rt(),g!==null&&g!==this)return}else this.#f===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#f===0&&this.#c()}#c(){if(De.size>1){this.previous.clear();var t=C,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of De){if(s===this){r=!1;continue}const o=[];for(const[l,a]of this.current){if(s.current.has(l))if(r&&a!==s.current.get(l))s.current.set(l,a);else continue;o.push(l)}if(o.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){var i=N;N=[];const l=new Set,a=new Map;for(const c of o)Pt(c,f,l,a);if(N.length>0){g=s,s.apply();for(const c of N)s.#r(c,n);s.deactivate()}N=i}}g=null,C=t}this.committed=!0,De.delete(this)}increment(t){this.#f+=1,t&&(this.#i+=1)}decrement(t){this.#f-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)x(t,T),he(t);for(const t of this.#s)x(t,H),he(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=wt()).promise}static ensure(){if(g===null){const t=g=new j;De.add(g),me||j.enqueue(()=>{g===t&&t.flush()})}return g}static enqueue(t){it(t)}apply(){}}function ye(e){var t=me;me=!0;try{for(var r;;){if(Dr(),N.length===0&&(g?.flush(),N.length===0))return Ie=null,r;Rt()}}finally{me=t}}function Rt(){var e=te;ot=!0;var t=null;try{var r=0;for(He(!0);N.length>0;){var n=j.ensure();if(r++>1e3){var i,s;Ir()}n.process(N),Z.clear()}}finally{ot=!1,He(e),Ie=null}}function Ir(){try{xr()}catch(e){de(e,Ie)}}let z=null;function Ot(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Y|G))===0&&Te(n)&&(z=new Set,Ae(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Jt(n):n.fn=null),z?.size>0)){Z.clear();for(const i of z){if((i.f&(Y|G))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)z.has(o)&&(z.delete(o),s.push(o)),o=o.parent;for(let f=s.length-1;f>=0;f--){const l=s[f];(l.f&(Y|G))===0&&Ae(l)}}z.clear()}}z=null}}function Pt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&y)!==0?Pt(i,t,r,n):(s&(tt|B))!==0&&(s&T)===0&&jt(i,t,n)&&(x(i,T),he(i))}}function jt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&y)!==0&&jt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function he(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var r=t.f;if(ot&&t===v&&(r&B)!==0&&(r&Et)===0)return;if((r&(W|re))!==0){if((r&$)===0)return;t.f^=$}}N.push(t)}function Lr(e){let t=0,r=we(0),n;return()=>{qe()&&(S(r),Yt(()=>(t===0&&(n=cn(()=>e(()=>$e(r)))),t+=1,()=>{it(()=>{t-=1,t===0&&(n?.(),n=void 0,$e(r))})})))}}var Fr=Pe|ne|Oe;function Ur(e,t,r){new qr(e,t,r)}class qr{parent;#t=!1;#e;#f=m?p:null;#i;#a;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#c=0;#d=0;#_=!1;#h=null;#m=Lr(()=>(this.#h=we(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#a=n,this.parent=v.b,this.#t=!!this.#i.pending,this.#o=nn(()=>{if(v.b=this,m){const s=this.#f;st(),s.nodeType===je&&s.data===pt?this.#w():this.#y()}else{var i=this.#p();try{this.#s=oe(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},Fr),m&&(this.#e=p)}#y(){try{this.#s=oe(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=oe(()=>t(this.#e)),j.enqueue(()=>{var r=this.#p();this.#s=this.#v(()=>(j.ensure(),oe(()=>this.#a(r)))),this.#d>0?this.#b():(Be(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=_e(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#v(t){var r=v,n=_,i=P;q(this.#o),k(this.#o),ce(this.#o.ctx);try{return t()}catch(s){return Nt(s),null}finally{q(r),k(n),ce(i)}}#b(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),fn(this.#s,this.#l)),this.#r===null&&(this.#r=oe(()=>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.#r&&Be(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&Fe(this.#h,this.#c)}get_effect_pending(){return this.#m(),S(this.#h)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#_||!r&&!n)throw t;this.#s&&(M(this.#s),this.#s=null),this.#r&&(M(this.#r),this.#r=null),this.#n&&(M(this.#n),this.#n=null),m&&(V(this.#f),Rr(),V(Or()));var i=!1,s=!1;const o=()=>{if(i){Nr();return}i=!0,s&&Cr(),j.ensure(),this.#c=0,this.#n!==null&&Be(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#v(()=>(this.#_=!1,oe(()=>this.#a(this.#e)))),this.#d>0?this.#b():this.#t=!1};var f=_;try{k(null),s=!0,r?.(t,o),s=!1}catch(l){de(l,this.#o&&this.#o.parent)}finally{k(f)}n&&it(()=>{this.#n=this.#v(()=>{j.ensure(),this.#_=!0;try{return oe(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return de(l,this.#o.parent),null}finally{this.#_=!1}})})}}function Br(e,t,r,n){const i=lt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=g,o=v,f=Hr();function l(){Promise.all(r.map(a=>Yr(a))).then(a=>{f();try{n([...t.map(i),...a])}catch(c){(o.f&Y)===0&&de(c,o)}s?.deactivate(),Le()}).catch(a=>{de(a,o)})}e.length>0?Promise.all(e).then(()=>{f();try{return l()}finally{s?.deactivate(),Le()}}):l()}function Hr(){var e=v,t=_,r=P,n=g;return function(s=!0){q(e),k(t),ce(r),s&&n?.activate()}}function Le(){q(null),k(null),ce(null)}function lt(e){var t=y|T,r=_!==null&&(_.f&y)!==0?_:null;return v!==null&&(v.f|=ne),{ctx:P,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:r??v,ac:null}}function Yr(e,t){let r=v;r===null&&Er();var n=r.b,i=void 0,s=we(w),o=!_,f=new Map;return tn(()=>{var l=wt();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===g&&a.committed&&a.deactivate(),Le()})}catch(u){l.reject(u),Le()}var a=g;if(o){var c=!n.is_pending();n.update_pending_count(1),a.increment(c),f.get(a)?.reject(ue),f.delete(a),f.set(a,l)}const h=(u,d=void 0)=>{if(a.activate(),d)d!==ue&&(s.f|=X,Fe(s,d));else{(s.f&X)!==0&&(s.f^=X),Fe(s,u);for(const[b,D]of f){if(f.delete(b),b===a)break;D.reject(ue)}}o&&(n.update_pending_count(-1),a.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),Gr(()=>{for(const l of f.values())l.reject(ue)}),new Promise(l=>{function a(c){function h(){c===i?l(s):a(i)}c.then(h,h)}a(i)})}function ft(e){const t=lt(e);return Gt(t),t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)M(t[r])}}function Vr(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function at(e){var t,r=v;q(Vr(e));try{e.f&=~se,Mt(e),t=tr(e)}finally{q(r)}return t}function Dt(e){var t=at(e);if(e.equals(t)||(g?.is_fork||(e.v=t),e.wv=Qt()),!ve)if(C!==null)qe()&&C.set(e,t);else{var r=(e.f&O)===0?H:$;x(e,r)}}let ut=new Set;const Z=new Map;let It=!1;function we(e,t){var r={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return r}function Q(e,t){const r=we(e);return Gt(r),r}function zr(e,t=!1,r=!0){const n=we(e);return t||(n.equals=jr),n}function J(e,t,r=!1){_!==null&&(!U||(_.f&$t)!==0)&&At()&&(_.f&(y|B|tt|$t))!==0&&!K?.includes(e)&&Ar();let n=r?Ee(t):t;return Fe(e,n)}function Fe(e,t){if(!e.equals(t)){var r=e.v;ve?Z.set(e,t):Z.set(e,r),e.v=t;var n=j.ensure();n.capture(e,r),(e.f&y)!==0&&((e.f&T)!==0&&at(e),x(e,(e.f&O)!==0?$:H)),e.wv=Qt(),Lt(e,T),v!==null&&(v.f&$)!==0&&(v.f&(re|W))===0&&(R===null?an([e]):R.push(e)),!n.is_fork&&ut.size>0&&!It&&Jr()}return t}function Jr(){It=!1;var e=te;He(!0);const t=Array.from(ut);try{for(const r of t)(r.f&$)!==0&&x(r,H),Te(r)&&Ae(r)}finally{He(e)}ut.clear()}function $e(e){J(e,e.v+1)}function Lt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,f=(o&T)===0;if(f&&x(s,t),(o&y)!==0){var l=s;C?.delete(l),(o&se)===0&&(o&O&&(s.f|=se),Lt(l,H))}else f&&((o&B)!==0&&z!==null&&z.add(s),he(s))}}function Ee(e){if(typeof e!="object"||e===null||rt in e)return e;const t=mt(e);if(t!==gr&&t!==mr)return e;var r=new Map,n=_r(e),i=Q(0),s=le,o=f=>{if(le===s)return f();var l=_,a=le;k(null),Zt(s);var c=f();return k(l),Zt(a),c};return n&&r.set("length",Q(e.length)),new Proxy(e,{defineProperty(f,l,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Sr();var c=r.get(l);return c===void 0?c=o(()=>{var h=Q(a.value);return r.set(l,h),h}):J(c,a.value,!0),!0},deleteProperty(f,l){var a=r.get(l);if(a===void 0){if(l in f){const c=o(()=>Q(w));r.set(l,c),$e(i)}}else J(a,w),$e(i);return!0},get(f,l,a){if(l===rt)return e;var c=r.get(l),h=l in f;if(c===void 0&&(!h||ae(f,l)?.writable)&&(c=o(()=>{var d=Ee(h?f[l]:w),b=Q(d);return b}),r.set(l,c)),c!==void 0){var u=S(c);return u===w?void 0:u}return Reflect.get(f,l,a)},getOwnPropertyDescriptor(f,l){var a=Reflect.getOwnPropertyDescriptor(f,l);if(a&&"value"in a){var c=r.get(l);c&&(a.value=S(c))}else if(a===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==w)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(f,l){if(l===rt)return!0;var a=r.get(l),c=a!==void 0&&a.v!==w||Reflect.has(f,l);if(a!==void 0||v!==null&&(!c||ae(f,l)?.writable)){a===void 0&&(a=o(()=>{var u=c?Ee(f[l]):w,d=Q(u);return d}),r.set(l,a));var h=S(a);if(h===w)return!1}return c},set(f,l,a,c){var h=r.get(l),u=l in f;if(n&&l==="length")for(var d=a;d<h.v;d+=1){var b=r.get(d+"");b!==void 0?J(b,w):d in f&&(b=o(()=>Q(w)),r.set(d+"",b))}if(h===void 0)(!u||ae(f,l)?.writable)&&(h=o(()=>Q(void 0)),J(h,Ee(a)),r.set(l,h));else{u=h.v!==w;var D=o(()=>Ee(a));J(h,D)}var I=Reflect.getOwnPropertyDescriptor(f,l);if(I?.set&&I.set.call(c,a),!u){if(n&&typeof l=="string"){var We=r.get("length"),fe=Number(l);Number.isInteger(fe)&&fe>=We.v&&J(We,fe+1)}$e(i)}return!0},ownKeys(f){S(i);var l=Reflect.ownKeys(f).filter(h=>{var u=r.get(h);return u===void 0||u.v!==w});for(var[a,c]of r)c.v!==w&&!(a in f)&&l.push(a);return l},setPrototypeOf(){Tr()}})}var Ft,Ut,qt,Bt;function ct(){if(Ft===void 0){Ft=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qt=ae(t,"firstChild").get,Bt=ae(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(r)&&(r.__t=void 0)}}function _e(e=""){return document.createTextNode(e)}function Ue(e){return qt.call(e)}function ee(e){return Bt.call(e)}function xe(e,t){if(!m)return Ue(e);var r=Ue(p);return r===null&&(r=p.appendChild(_e())),V(r),r}function ke(e,t=1,r=!1){let n=m?p:e;for(var i;t--;)i=n,n=ee(n);if(!m)return n;if(r&&n?.nodeType!==xt){var s=_e();return n===null?i?.after(s):n.before(s),V(s),s}return V(n),n}function Kr(e){e.textContent=""}function Ht(e){var t=_,r=v;k(null),q(null);try{return e()}finally{k(t),q(r)}}function Wr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function F(e,t,r){var n=v;n!==null&&(n.f&G)!==0&&(e|=G);var i={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|T|O,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ae(i),i.f|=Qe}catch(f){throw M(i),f}else t!==null&&he(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ne)===0&&(s=s.first,(e&B)!==0&&(e&Pe)!==0&&s!==null&&(s.f|=Pe)),s!==null&&(s.parent=n,n!==null&&Wr(s,n),_!==null&&(_.f&y)!==0&&(e&W)===0)){var o=_;(o.effects??=[]).push(s)}return i}function qe(){return _!==null&&!U}function Gr(e){const t=F(Ze,null,!1);return x(t,$),t.teardown=e,t}function Xr(e){return F(Xe|wr,e,!1)}function Zr(e){j.ensure();const t=F(W|ne,e,!0);return()=>{M(t)}}function Qr(e){j.ensure();const t=F(W|ne,e,!0);return(r={})=>new Promise(n=>{r.outro?Be(t,()=>{M(t),n(void 0)}):(M(t),n(void 0))})}function en(e){return F(Xe,e,!1)}function tn(e){return F(tt|ne,e,!0)}function Yt(e,t=0){return F(Ze|t,e,!0)}function rn(e,t=[],r=[],n=[]){Br(n,t,r,i=>{F(Ze,()=>e(...i.map(S)),!0)})}function nn(e,t=0){var r=F(B|t,e,!0);return r}function oe(e){return F(re|ne,e,!0)}function Vt(e){var t=e.teardown;if(t!==null){const r=ve,n=_;Wt(!0),k(null);try{t.call(null)}finally{Wt(r),k(n)}}}function zt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ht(()=>{i.abort(ue)});var n=r.next;(r.f&W)!==0?r.parent=null:M(r,t),r=n}}function sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&re)===0&&M(t),t=r}}function M(e,t=!0){var r=!1;(t||(e.f&Et)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(on(e.nodes_start,e.nodes_end),r=!0),zt(e,t&&!r),Ye(e,0),x(e,Y);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Vt(e);var i=e.parent;i!==null&&i.first!==null&&Jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function on(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function Jt(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 Be(e,t,r=!0){var n=[];Kt(e,n,!0),ln(n,()=>{r&&M(e),t&&t()})}function ln(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Kt(e,t,r){if((e.f&G)===0){if(e.f^=G,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Pe)!==0||(n.f&re)!==0&&(e.f&B)!==0;Kt(n,t,s?r:!1),n=i}}}function fn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:ee(r);t.append(r),r=i}}let te=!1;function He(e){te=e}let ve=!1;function Wt(e){ve=e}let _=null,U=!1;function k(e){_=e}let v=null;function q(e){v=e}let K=null;function Gt(e){_!==null&&(K===null?K=[e]:K.push(e))}let E=null,A=0,R=null;function an(e){R=e}let Xt=1,Se=0,le=Se;function Zt(e){le=e}function Qt(){return++Xt}function Te(e){var t=e.f;if((t&T)!==0)return!0;if(t&y&&(e.f&=~se),(t&H)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Te(s)&&Dt(s),s.wv>e.wv)return!0}(t&O)!==0&&C===null&&x(e,$)}return!1}function er(e,t,r=!0){var n=e.reactions;if(n!==null&&!K?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&y)!==0?er(s,t,!1):t===s&&(r?x(s,T):(s.f&$)!==0&&x(s,H),he(s))}}function tr(e){var t=E,r=A,n=R,i=_,s=K,o=P,f=U,l=le,a=e.f;E=null,A=0,R=null,_=(a&(re|W))===0?e:null,K=null,ce(e.ctx),U=!1,le=++Se,e.ac!==null&&(Ht(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=et;var c=e.fn,h=c(),u=e.deps;if(E!==null){var d;if(Ye(e,A),u!==null&&A>0)for(u.length=A+E.length,d=0;d<E.length;d++)u[A+d]=E[d];else e.deps=u=E;if(te&&qe()&&(e.f&O)!==0)for(d=A;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&A<u.length&&(Ye(e,A),u.length=A);if(At()&&R!==null&&!U&&u!==null&&(e.f&(y|H|T))===0)for(d=0;d<R.length;d++)er(R[d],e);return i!==null&&i!==e&&(Se++,R!==null&&(n===null?n=R:n.push(...R))),(e.f&X)!==0&&(e.f^=X),h}catch(b){return Nt(b)}finally{e.f^=et,E=t,A=r,R=n,_=i,K=s,ce(o),U=f,le=l}}function un(e,t){let r=t.reactions;if(r!==null){var n=vr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&y)!==0&&(E===null||!E.includes(t))&&(x(t,H),(t.f&O)!==0&&(t.f^=O,t.f&=~se),Mt(t),Ye(t,0))}function Ye(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)un(e,r[n])}function Ae(e){var t=e.f;if((t&Y)===0){x(e,$);var r=v,n=te;v=e,te=!0;try{(t&B)!==0?sn(e):zt(e),Vt(e);var i=tr(e);e.teardown=typeof i=="function"?i:null,e.wv=Xt;var s;Ge&&Mr&&(e.f&T)!==0&&e.deps}finally{te=n,v=r}}}function S(e){var t=e.f,r=(t&y)!==0;if(_!==null&&!U){var n=v!==null&&(v.f&Y)!==0;if(!n&&!K?.includes(e)){var i=_.deps;if((_.f&et)!==0)e.rv<Se&&(e.rv=Se,E===null&&i!==null&&i[A]===e?A++:E===null?E=[e]:E.includes(e)||E.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(ve){if(Z.has(e))return Z.get(e);if(r){var o=e,f=o.v;return((o.f&$)===0&&o.reactions!==null||nr(o))&&(f=at(o)),Z.set(o,f),f}}else r&&!C?.has(e)&&(o=e,Te(o)&&Dt(o),te&&qe()&&(o.f&O)===0&&rr(o));if(C?.has(e))return C.get(e);if((e.f&X)!==0)throw e.v;return e.v}function rr(e){if(e.deps!==null){e.f^=O;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&O)===0&&rr(t)}}function nr(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&y)!==0&&nr(t))return!0;return!1}function cn(e){var t=U;try{return U=!0,e()}finally{U=t}}const dn=-7169;function x(e,t){e.f=e.f&dn|t}const sr=new Set,dt=new Set;function hn(e){for(var t=0;t<e.length;t++)sr.add(e[t]);for(var r of dt)r(e)}let ir=null;function Ve(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ir=e;var o=0,f=ir===e&&e.__root;if(f){var l=i.indexOf(f);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;l<=a&&(o=l)}if(s=i[o]||e.target,s!==t){Re(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=_,h=v;k(null),q(null);try{for(var u,d=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var D=s["__"+n];D!=null&&(!s.disabled||e.target===s)&&D.call(s,e)}catch(I){u?d.push(I):u=I}if(e.cancelBubble||b===t||b===null)break;s=b}if(u){for(let I of d)queueMicrotask(()=>{throw I});throw u}}finally{e.__root=t,delete e.currentTarget,k(c),q(h)}}}function _n(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ce(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function vn(e,t){var r=(t&dr)!==0,n,i=!e.startsWith("<!>");return()=>{if(m)return Ce(p,null),p;n===void 0&&(n=_n(i?e:"<!>"+e),n=Ue(n));var s=r||Ut?document.importNode(n,!0):n.cloneNode(!0);return Ce(s,s),s}}function bn(e=""){if(!m){var t=_e(e+"");return Ce(t,t),t}var r=p;return r.nodeType!==xt&&(r.before(r=_e()),V(r)),Ce(r,r),r}function ht(e,t){if(m){var r=v;((r.f&Qe)===0||r.nodes_end===null)&&(r.nodes_end=p),st();return}e!==null&&e.before(t)}const pn=["touchstart","touchmove"];function gn(e){return pn.includes(e)}function ze(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function or(e,t){return lr(e,t)}function mn(e,t){ct(),t.intro=t.intro??!1;const r=t.target,n=m,i=p;try{for(var s=Ue(r);s&&(s.nodeType!==je||s.data!==bt);)s=ee(s);if(!s)throw pe;Me(!0),V(s);const o=lr(e,{...t,anchor:s});return Me(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&kr(),ct(),Kr(r),Me(!1),or(e,t)}finally{Me(n),V(i)}}const be=new Map;function lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){ct();var f=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!f.has(d)){f.add(d);var b=gn(d);t.addEventListener(d,Ve,{passive:b});var D=be.get(d);D===void 0?(document.addEventListener(d,Ve,{passive:b}),be.set(d,1)):be.set(d,D+1)}}};l(br(sr)),dt.add(l);var a=void 0,c=Qr(()=>{var h=r??t.appendChild(_e());return Ur(h,{pending:()=>{}},u=>{if(s){St({});var d=P;d.c=s}if(i&&(n.$$events=i),m&&Ce(u,null),a=e(u,n)||{},m&&(v.nodes_end=p,p===null||p.nodeType!==je||p.data!==gt))throw nt(),pe;s&&Tt()}),()=>{for(var u of f){t.removeEventListener(u,Ve);var d=be.get(u);--d===0?(document.removeEventListener(u,Ve),be.delete(u)):be.set(u,d)}dt.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return _t.set(a,c),a}let _t=new WeakMap;function yn(e,t){const r=_t.get(e);return r?(_t.delete(e),r(t)):Promise.resolve()}function wn(e,t,r,n,i){m&&st();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function $n(e,t){en(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const En=Symbol("is custom element"),xn=Symbol("is html");function kn(e,t,r,n){var i=Sn(e);m&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Tn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Sn(e){return e.__attributes??={[En]:e.nodeName.includes("-"),[xn]:e.namespaceURI===hr}}var fr=new Map;function Tn(e){var t=e.getAttribute("is")||e.nodeName,r=fr.get(t);if(r)return r;fr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=pr(i);for(var o in n)n[o].set&&r.push(o);i=mt(i)}return r}function Je(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),f;f=e[t],f===void 0&&n!==void 0&&(f=o());var l;l=()=>{var u=e[t];return u===void 0?o():(s=!0,u)};var a=!1,c=lt(()=>(a=!1,l())),h=v;return(function(u,d){if(arguments.length>0){const b=d?S(c):u;return J(c,b),a=!0,i!==void 0&&(i=b),u}return ve&&a||(h.f&Y)!==0?c.v:S(c)})}function An(e){return new Cn(e)}class Cn{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var f=zr(o,!1,!1);return r.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return S(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===$r?!0:(S(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,f){return J(r.get(o)??n(o,f),f),Reflect.set(s,o,f)}});this.#e=(t.hydrate?mn:or)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ye(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Re(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{yn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let ar;typeof HTMLElement=="function"&&(ar=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 i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),ht(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Nn(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 i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ke(i,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=An({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Yt(()=>{this.$$r=!0;for(const n of Ne(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ke(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ke(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 Ke(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Nn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Rn(e,t,r,n,i,s){let o=class extends ar{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ne(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Ne(t).forEach(f=>{Re(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(l){l=Ke(f,l,t),this.$$d[f]=l;var a=this.$$c;if(a){var c=ae(a,f)?.get;c?a[f]=l:a.$set({[f]:l})}}})}),n.forEach(f=>{Re(o.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=o,o}var On=vn('<div class="skeleton-root svelte-10p6erh"><p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <button class="btn btn-primary svelte-10p6erh">Dispatch Event</button> <!></div>');const Pn={hash:"svelte-10p6erh",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");:host {font-family:"Roboto", sans-serif;}
1
+ (function(vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const dn=2,pt="[",gt="[!",mt="]",ge={},b=Symbol(),_n="http://www.w3.org/1999/xhtml",Ge=!1;var vn=Array.isArray,pn=Array.prototype.indexOf,gn=Array.from,Oe=Object.keys,Ce=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,wn=Object.prototype,$n=Array.prototype,wt=Object.getPrototypeOf,$t=Object.isExtensible;function bn(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const $=2,Xe=4,Ze=8,U=16,ne=32,W=64,Ne=128,N=512,y=1024,S=2048,Y=4096,G=8192,H=16384,Qe=32768,Pe=65536,yt=1<<17,Et=1<<18,re=1<<19,yn=1<<20,ie=32768,et=1<<21,tt=1<<22,X=1<<23,nt=Symbol("$state"),En=Symbol("legacy props"),ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=3,De=8;function xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Tn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function On(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Cn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function je(e){w=e}let g;function V(e){if(e===null)throw rt(),ge;return g=e}function it(){return V(ee(g))}function me(e){if(w){if(ee(g)!==null)throw rt(),ge;g=e}}function Nn(e=1){if(w){for(var t=e,n=g;t--;)n=ee(n);g=n}}function Pn(e=!0){for(var t=0,n=g;;){if(n.nodeType===De){var r=n.data;if(r===mt){if(t===0)return n;t-=1}else(r===pt||r===gt)&&(t+=1)}var s=ee(n);e&&n.remove(),n=s}}function kt(e){return e===this.v}function Dn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jn(e){return!Dn(e,this.v)}let Mn=!1,P=null;function ce(e){P=e}function Tt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function St(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)Zn(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function At(){return!0}let se=[];function Rt(){var e=se;se=[],bn(e)}function st(e){if(se.length===0&&!we){var t=se;queueMicrotask(()=>{t===se&&Rt()})}se.push(e)}function In(){for(;se.length>0;)Rt()}function Ot(e){var t=v;if(t===null)return _.f|=X,e;if((t.f&Qe)===0){if((t.f&Ne)===0)throw e;t.b.error(e)}else he(e,t)}function he(e,t){for(;t!==null;){if((t.f&Ne)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Me=new Set;let m=null,R=null,O=[],Ie=null,lt=!1,we=!1;class D{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#o=0;#s=0;#u=null;#l=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){O=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#a(),this.is_deferred()?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(m=null,Nt(n.render_effects),Nt(n.effects),this.#u?.resolve()),R=null}#n(t,n){t.f^=y;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ne|W))!==0,l=i&&(s&y)!==0,o=l||(s&G)!==0||this.skipped_effects.has(r);if((r.f&Ne)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){i?r.f^=y:(s&Xe)!==0?n.effects.push(r):Se(r)&&((r.f&U)!==0&&n.block_effects.push(r),Ae(r));var f=r.first;if(f!==null){r=f;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=u.next,u=u.parent}}#r(t){for(const n of t)((n.f&S)!==0?this.#l:this.#i).push(n),this.#f(n.deps),x(n,y)}#f(t){if(t!==null)for(const n of t)(n.f&$)===0||(n.f&ie)===0||(n.f^=ie,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&X)===0&&(this.current.set(t,t.v),R?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,R=null)}flush(){if(this.activate(),O.length>0){if(Ct(),m!==null&&m!==this)return}else this.#o===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#a(){if(this.#s===0){for(const t of this.#t)t();this.#t.clear()}this.#o===0&&this.#c()}#c(){if(Me.size>1){this.previous.clear();var t=R,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Me){if(i===this){n=!1;continue}const l=[];for(const[f,u]of this.current){if(i.current.has(f))if(n&&u!==i.current.get(f))i.current.set(f,u);else continue;l.push(f)}if(l.length===0)continue;const o=[...i.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=O;O=[];const f=new Set,u=new Map;for(const c of l)Pt(c,o,f,u);if(O.length>0){m=i,i.apply();for(const c of O)i.#n(c,r);i.deactivate()}O=s}}m=null,R=t}this.committed=!0,Me.delete(this)}increment(t){this.#o+=1,t&&(this.#s+=1)}decrement(t){this.#o-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#l)x(t,S),de(t);for(const t of this.#i)x(t,Y),de(t);this.#l=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#u??=bt()).promise}static ensure(){if(m===null){const t=m=new D;Me.add(m),we||D.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){st(t)}apply(){}}function $e(e){var t=we;we=!0;try{for(var n;;){if(In(),O.length===0&&(m?.flush(),O.length===0))return Ie=null,n;Ct()}}finally{we=t}}function Ct(){var e=te;lt=!0;var t=null;try{var n=0;for(Ye(!0);O.length>0;){var r=D.ensure();if(n++>1e3){var s,i;Ln()}r.process(O),Z.clear()}}finally{lt=!1,Ye(e),Ie=null}}function Ln(){try{kn()}catch(e){he(e,Ie)}}let z=null;function Nt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|G))===0&&Se(r)&&(z=new Set,Ae(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Jt(r):r.fn=null),z?.size>0)){Z.clear();for(const s of z){if((s.f&(H|G))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)z.has(l)&&(z.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const f=i[o];(f.f&(H|G))===0&&Ae(f)}}z.clear()}}z=null}}function Pt(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&$)!==0?Pt(s,t,n,r):(i&(tt|U))!==0&&(i&S)===0&&Dt(s,t,r)&&(x(s,S),de(s))}}function Dt(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&$)!==0&&Dt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function de(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var n=t.f;if(lt&&t===v&&(n&U)!==0&&(n&Et)===0)return;if((n&(W|ne))!==0){if((n&y)===0)return;t.f^=y}}O.push(t)}function Fn(e){let t=0,n=be(0),r;return()=>{Be()&&(T(n),Ht(()=>(t===0&&(r=cr(()=>e(()=>ye(n)))),t+=1,()=>{st(()=>{t-=1,t===0&&(r?.(),r=void 0,ye(n))})})))}}var qn=Pe|re|Ne;function Bn(e,t,n){new Un(e,t,n)}class Un{parent;#t=!1;#e;#o=w?g:null;#s;#u;#l;#i=null;#n=null;#r=null;#f=null;#a=null;#c=0;#h=0;#_=!1;#d=null;#w=Fn(()=>(this.#d=be(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#u=r,this.parent=v.b,this.#t=!!this.#s.pending,this.#l=ir(()=>{if(v.b=this,w){const i=this.#o;it(),i.nodeType===De&&i.data===gt?this.#b():this.#$()}else{var s=this.#g();try{this.#i=le(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#a?.remove()}},qn),w&&(this.#e=g)}#$(){try{this.#i=le(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#s.pending;t&&(this.#n=le(()=>t(this.#e)),D.enqueue(()=>{var n=this.#g();this.#i=this.#v(()=>(D.ensure(),le(()=>this.#u(n)))),this.#h>0?this.#p():(Ue(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#a=_e(),this.#e.before(this.#a),t=this.#a),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#v(t){var n=v,r=_,s=P;B(this.#l),k(this.#l),ce(this.#l.ctx);try{return t()}catch(i){return Ot(i),null}finally{B(n),k(r),ce(s)}}#p(){const t=this.#s.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#a),or(this.#i,this.#f)),this.#n===null&&(this.#n=le(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#n&&Ue(this.#n,()=>{this.#n=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&Fe(this.#d,this.#c)}get_effect_pending(){return this.#w(),T(this.#d)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#_||!n&&!r)throw t;this.#i&&(j(this.#i),this.#i=null),this.#n&&(j(this.#n),this.#n=null),this.#r&&(j(this.#r),this.#r=null),w&&(V(this.#o),Nn(),V(Pn()));var s=!1,i=!1;const l=()=>{if(s){Cn();return}s=!0,i&&On(),D.ensure(),this.#c=0,this.#r!==null&&Ue(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#i=this.#v(()=>(this.#_=!1,le(()=>this.#u(this.#e)))),this.#h>0?this.#p():this.#t=!1};var o=_;try{k(null),i=!0,n?.(t,l),i=!1}catch(f){he(f,this.#l&&this.#l.parent)}finally{k(o)}r&&st(()=>{this.#r=this.#v(()=>{D.ensure(),this.#_=!0;try{return le(()=>{r(this.#e,()=>t,()=>l)})}catch(f){return he(f,this.#l.parent),null}finally{this.#_=!1}})})}}function Yn(e,t,n,r){const s=ft;if(n.length===0&&e.length===0){r(t.map(s));return}var i=m,l=v,o=Hn();function f(){Promise.all(n.map(u=>Vn(u))).then(u=>{o();try{r([...t.map(s),...u])}catch(c){(l.f&H)===0&&he(c,l)}i?.deactivate(),Le()}).catch(u=>{he(u,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{i?.deactivate(),Le()}}):f()}function Hn(){var e=v,t=_,n=P,r=m;return function(i=!0){B(e),k(t),ce(n),i&&r?.activate()}}function Le(){B(null),k(null),ce(null)}function ft(e){var t=$|S,n=_!==null&&(_.f&$)!==0?_:null;return v!==null&&(v.f|=re),{ctx:P,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??v,ac:null}}function Vn(e,t){let n=v;n===null&&xn();var r=n.b,s=void 0,i=be(b),l=!_,o=new Map;return nr(()=>{var f=bt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{u===m&&u.committed&&u.deactivate(),Le()})}catch(a){f.reject(a),Le()}var u=m;if(l){var c=!r.is_pending();r.update_pending_count(1),u.increment(c),o.get(u)?.reject(ae),o.delete(u),o.set(u,f)}const d=(a,h=void 0)=>{if(u.activate(),h)h!==ae&&(i.f|=X,Fe(i,h));else{(i.f&X)!==0&&(i.f^=X),Fe(i,a);for(const[p,M]of o){if(o.delete(p),p===u)break;M.reject(ae)}}l&&(r.update_pending_count(-1),u.decrement(c))};f.promise.then(d,a=>d(null,a||"unknown"))}),Xn(()=>{for(const f of o.values())f.reject(ae)}),new Promise(f=>{function u(c){function d(){c===s?f(i):u(s)}c.then(d,d)}u(s)})}function ot(e){const t=ft(e);return Gt(t),t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function zn(e){for(var t=e.parent;t!==null;){if((t.f&$)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function ut(e){var t,n=v;B(zn(e));try{e.f&=~ie,jt(e),t=tn(e)}finally{B(n)}return t}function Mt(e){var t=ut(e);if(e.equals(t)||(m?.is_fork||(e.v=t),e.wv=Qt()),!ve)if(R!==null)Be()&&R.set(e,t);else{var n=(e.f&N)===0?Y:y;x(e,n)}}let at=new Set;const Z=new Map;let It=!1;function be(e,t){var n={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return n}function Q(e,t){const n=be(e);return Gt(n),n}function Jn(e,t=!1,n=!0){const r=be(e);return t||(r.equals=jn),r}function J(e,t,n=!1){_!==null&&(!q||(_.f&yt)!==0)&&At()&&(_.f&($|U|tt|yt))!==0&&!K?.includes(e)&&Rn();let r=n?Ee(t):t;return Fe(e,r)}function Fe(e,t){if(!e.equals(t)){var n=e.v;ve?Z.set(e,t):Z.set(e,n),e.v=t;var r=D.ensure();r.capture(e,n),(e.f&$)!==0&&((e.f&S)!==0&&ut(e),x(e,(e.f&N)!==0?y:Y)),e.wv=Qt(),Lt(e,S),v!==null&&(v.f&y)!==0&&(v.f&(ne|W))===0&&(C===null?ur([e]):C.push(e)),!r.is_fork&&at.size>0&&!It&&Kn()}return t}function Kn(){It=!1;var e=te;Ye(!0);const t=Array.from(at);try{for(const n of t)(n.f&y)!==0&&x(n,Y),Se(n)&&Ae(n)}finally{Ye(e)}at.clear()}function ye(e){J(e,e.v+1)}function Lt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,o=(l&S)===0;if(o&&x(i,t),(l&$)!==0){var f=i;R?.delete(f),(l&ie)===0&&(l&N&&(i.f|=ie),Lt(f,Y))}else o&&((l&U)!==0&&z!==null&&z.add(i),de(i))}}function Ee(e){if(typeof e!="object"||e===null||nt in e)return e;const t=wt(e);if(t!==wn&&t!==$n)return e;var n=new Map,r=vn(e),s=Q(0),i=fe,l=o=>{if(fe===i)return o();var f=_,u=fe;k(null),Zt(i);var c=o();return k(f),Zt(u),c};return r&&n.set("length",Q(e.length)),new Proxy(e,{defineProperty(o,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Sn();var c=n.get(f);return c===void 0?c=l(()=>{var d=Q(u.value);return n.set(f,d),d}):J(c,u.value,!0),!0},deleteProperty(o,f){var u=n.get(f);if(u===void 0){if(f in o){const c=l(()=>Q(b));n.set(f,c),ye(s)}}else J(u,b),ye(s);return!0},get(o,f,u){if(f===nt)return e;var c=n.get(f),d=f in o;if(c===void 0&&(!d||ue(o,f)?.writable)&&(c=l(()=>{var h=Ee(d?o[f]:b),p=Q(h);return p}),n.set(f,c)),c!==void 0){var a=T(c);return a===b?void 0:a}return Reflect.get(o,f,u)},getOwnPropertyDescriptor(o,f){var u=Reflect.getOwnPropertyDescriptor(o,f);if(u&&"value"in u){var c=n.get(f);c&&(u.value=T(c))}else if(u===void 0){var d=n.get(f),a=d?.v;if(d!==void 0&&a!==b)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return u},has(o,f){if(f===nt)return!0;var u=n.get(f),c=u!==void 0&&u.v!==b||Reflect.has(o,f);if(u!==void 0||v!==null&&(!c||ue(o,f)?.writable)){u===void 0&&(u=l(()=>{var a=c?Ee(o[f]):b,h=Q(a);return h}),n.set(f,u));var d=T(u);if(d===b)return!1}return c},set(o,f,u,c){var d=n.get(f),a=f in o;if(r&&f==="length")for(var h=u;h<d.v;h+=1){var p=n.get(h+"");p!==void 0?J(p,b):h in o&&(p=l(()=>Q(b)),n.set(h+"",p))}if(d===void 0)(!a||ue(o,f)?.writable)&&(d=l(()=>Q(void 0)),J(d,Ee(u)),n.set(f,d));else{a=d.v!==b;var M=l(()=>Ee(u));J(d,M)}var I=Reflect.getOwnPropertyDescriptor(o,f);if(I?.set&&I.set.call(c,u),!a){if(r&&typeof f=="string"){var We=n.get("length"),oe=Number(f);Number.isInteger(oe)&&oe>=We.v&&J(We,oe+1)}ye(s)}return!0},ownKeys(o){T(s);var f=Reflect.ownKeys(o).filter(d=>{var a=n.get(d);return a===void 0||a.v!==b});for(var[u,c]of n)c.v!==b&&!(u in o)&&f.push(u);return f},setPrototypeOf(){An()}})}var Ft,qt,Bt,Ut;function ct(){if(Ft===void 0){Ft=window,qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bt=ue(t,"firstChild").get,Ut=ue(t,"nextSibling").get,$t(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),$t(n)&&(n.__t=void 0)}}function _e(e=""){return document.createTextNode(e)}function qe(e){return Bt.call(e)}function ee(e){return Ut.call(e)}function xe(e,t){if(!w)return qe(e);var n=qe(g);return n===null&&(n=g.appendChild(_e())),V(n),n}function ke(e,t=1,n=!1){let r=w?g:e;for(var s;t--;)s=r,r=ee(r);if(!w)return r;if(n&&r?.nodeType!==xt){var i=_e();return r===null?s?.after(i):r.before(i),V(i),i}return V(r),r}function Wn(e){e.textContent=""}function Yt(e){var t=_,n=v;k(null),B(null);try{return e()}finally{k(t),B(n)}}function Gn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function F(e,t,n){var r=v;r!==null&&(r.f&G)!==0&&(e|=G);var s={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|S|N,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{Ae(s),s.f|=Qe}catch(o){throw j(s),o}else t!==null&&de(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&re)===0&&(i=i.first,(e&U)!==0&&(e&Pe)!==0&&i!==null&&(i.f|=Pe)),i!==null&&(i.parent=r,r!==null&&Gn(i,r),_!==null&&(_.f&$)!==0&&(e&W)===0)){var l=_;(l.effects??=[]).push(i)}return s}function Be(){return _!==null&&!q}function Xn(e){const t=F(Ze,null,!1);return x(t,y),t.teardown=e,t}function Zn(e){return F(Xe|yn,e,!1)}function Qn(e){D.ensure();const t=F(W|re,e,!0);return()=>{j(t)}}function er(e){D.ensure();const t=F(W|re,e,!0);return(n={})=>new Promise(r=>{n.outro?Ue(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function tr(e){return F(Xe,e,!1)}function nr(e){return F(tt|re,e,!0)}function Ht(e,t=0){return F(Ze|t,e,!0)}function rr(e,t=[],n=[],r=[]){Yn(r,t,n,s=>{F(Ze,()=>e(...s.map(T)),!0)})}function ir(e,t=0){var n=F(U|t,e,!0);return n}function le(e){return F(ne|re,e,!0)}function Vt(e){var t=e.teardown;if(t!==null){const n=ve,r=_;Wt(!0),k(null);try{t.call(null)}finally{Wt(n),k(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Yt(()=>{s.abort(ae)});var r=n.next;(n.f&W)!==0?n.parent=null:j(n,t),n=r}}function sr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ne)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&Et)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(lr(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),He(e,0),x(e,H);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Vt(e);var s=e.parent;s!==null&&s.first!==null&&Jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function lr(e,t){for(;e!==null;){var n=e===t?null:ee(e);e.remove(),e=n}}function Jt(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 Ue(e,t,n=!0){var r=[];Kt(e,r,!0),fr(r,()=>{n&&j(e),t&&t()})}function fr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Kt(e,t,n){if((e.f&G)===0){if(e.f^=G,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Pe)!==0||(r.f&ne)!==0&&(e.f&U)!==0;Kt(r,t,i?n:!1),r=s}}}function or(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:ee(n);t.append(n),n=s}}let te=!1;function Ye(e){te=e}let ve=!1;function Wt(e){ve=e}let _=null,q=!1;function k(e){_=e}let v=null;function B(e){v=e}let K=null;function Gt(e){_!==null&&(K===null?K=[e]:K.push(e))}let E=null,A=0,C=null;function ur(e){C=e}let Xt=1,Te=0,fe=Te;function Zt(e){fe=e}function Qt(){return++Xt}function Se(e){var t=e.f;if((t&S)!==0)return!0;if(t&$&&(e.f&=~ie),(t&Y)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(Se(i)&&Mt(i),i.wv>e.wv)return!0}(t&N)!==0&&R===null&&x(e,y)}return!1}function en(e,t,n=!0){var r=e.reactions;if(r!==null&&!K?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&$)!==0?en(i,t,!1):t===i&&(n?x(i,S):(i.f&y)!==0&&x(i,Y),de(i))}}function tn(e){var t=E,n=A,r=C,s=_,i=K,l=P,o=q,f=fe,u=e.f;E=null,A=0,C=null,_=(u&(ne|W))===0?e:null,K=null,ce(e.ctx),q=!1,fe=++Te,e.ac!==null&&(Yt(()=>{e.ac.abort(ae)}),e.ac=null);try{e.f|=et;var c=e.fn,d=c(),a=e.deps;if(E!==null){var h;if(He(e,A),a!==null&&A>0)for(a.length=A+E.length,h=0;h<E.length;h++)a[A+h]=E[h];else e.deps=a=E;if(te&&Be()&&(e.f&N)!==0)for(h=A;h<a.length;h++)(a[h].reactions??=[]).push(e)}else a!==null&&A<a.length&&(He(e,A),a.length=A);if(At()&&C!==null&&!q&&a!==null&&(e.f&($|Y|S))===0)for(h=0;h<C.length;h++)en(C[h],e);return s!==null&&s!==e&&(Te++,C!==null&&(r===null?r=C:r.push(...C))),(e.f&X)!==0&&(e.f^=X),d}catch(p){return Ot(p)}finally{e.f^=et,E=t,A=n,C=r,_=s,K=i,ce(l),q=o,fe=f}}function ar(e,t){let n=t.reactions;if(n!==null){var r=pn.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&$)!==0&&(E===null||!E.includes(t))&&(x(t,Y),(t.f&N)!==0&&(t.f^=N,t.f&=~ie),jt(t),He(t,0))}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ar(e,n[r])}function Ae(e){var t=e.f;if((t&H)===0){x(e,y);var n=v,r=te;v=e,te=!0;try{(t&U)!==0?sr(e):zt(e),Vt(e);var s=tn(e);e.teardown=typeof s=="function"?s:null,e.wv=Xt;var i;Ge&&Mn&&(e.f&S)!==0&&e.deps}finally{te=r,v=n}}}function T(e){var t=e.f,n=(t&$)!==0;if(_!==null&&!q){var r=v!==null&&(v.f&H)!==0;if(!r&&!K?.includes(e)){var s=_.deps;if((_.f&et)!==0)e.rv<Te&&(e.rv=Te,E===null&&s!==null&&s[A]===e?A++:E===null?E=[e]:E.includes(e)||E.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(ve){if(Z.has(e))return Z.get(e);if(n){var l=e,o=l.v;return((l.f&y)===0&&l.reactions!==null||rn(l))&&(o=ut(l)),Z.set(l,o),o}}else n&&!R?.has(e)&&(l=e,Se(l)&&Mt(l),te&&Be()&&(l.f&N)===0&&nn(l));if(R?.has(e))return R.get(e);if((e.f&X)!==0)throw e.v;return e.v}function nn(e){if(e.deps!==null){e.f^=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&$)!==0&&(t.f&N)===0&&nn(t)}}function rn(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&$)!==0&&rn(t))return!0;return!1}function cr(e){var t=q;try{return q=!0,e()}finally{q=t}}const hr=-7169;function x(e,t){e.f=e.f&hr|t}const sn=new Set,ht=new Set;function dr(e){for(var t=0;t<e.length;t++)sn.add(e[t]);for(var n of ht)n(e)}let ln=null;function Ve(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;ln=e;var l=0,o=ln===e&&e.__root;if(o){var f=s.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;f<=u&&(l=f)}if(i=s[l]||e.target,i!==t){Ce(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=_,d=v;k(null),B(null);try{for(var a,h=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var M=i["__"+r];M!=null&&(!i.disabled||e.target===i)&&M.call(i,e)}catch(I){a?h.push(I):a=I}if(e.cancelBubble||p===t||p===null)break;i=p}if(a){for(let I of h)queueMicrotask(()=>{throw I});throw a}}finally{e.__root=t,delete e.currentTarget,k(c),B(d)}}}function _r(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Re(e,t){var n=v;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function vr(e,t){var n=(t&dn)!==0,r,s=!e.startsWith("<!>");return()=>{if(w)return Re(g,null),g;r===void 0&&(r=_r(s?e:"<!>"+e),r=qe(r));var i=n||qt?document.importNode(r,!0):r.cloneNode(!0);return Re(i,i),i}}function pr(e=""){if(!w){var t=_e(e+"");return Re(t,t),t}var n=g;return n.nodeType!==xt&&(n.before(n=_e()),V(n)),Re(n,n),n}function dt(e,t){if(w){var n=v;((n.f&Qe)===0||n.nodes_end===null)&&(n.nodes_end=g),it();return}e!==null&&e.before(t)}const gr=["touchstart","touchmove"];function mr(e){return gr.includes(e)}function ze(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function fn(e,t){return on(e,t)}function wr(e,t){ct(),t.intro=t.intro??!1;const n=t.target,r=w,s=g;try{for(var i=qe(n);i&&(i.nodeType!==De||i.data!==pt);)i=ee(i);if(!i)throw ge;je(!0),V(i);const l=on(e,{...t,anchor:i});return je(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==ge&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Tn(),ct(),Wn(n),je(!1),fn(e,t)}finally{je(r),V(s)}}const pe=new Map;function on(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){ct();var o=new Set,f=d=>{for(var a=0;a<d.length;a++){var h=d[a];if(!o.has(h)){o.add(h);var p=mr(h);t.addEventListener(h,Ve,{passive:p});var M=pe.get(h);M===void 0?(document.addEventListener(h,Ve,{passive:p}),pe.set(h,1)):pe.set(h,M+1)}}};f(gn(sn)),ht.add(f);var u=void 0,c=er(()=>{var d=n??t.appendChild(_e());return Bn(d,{pending:()=>{}},a=>{if(i){Tt({});var h=P;h.c=i}if(s&&(r.$$events=s),w&&Re(a,null),u=e(a,r)||{},w&&(v.nodes_end=g,g===null||g.nodeType!==De||g.data!==mt))throw rt(),ge;i&&St()}),()=>{for(var a of o){t.removeEventListener(a,Ve);var h=pe.get(a);--h===0?(document.removeEventListener(a,Ve),pe.delete(a)):pe.set(a,h)}ht.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return _t.set(u,c),u}let _t=new WeakMap;function $r(e,t){const n=_t.get(e);return n?(_t.delete(e),n(t)):Promise.resolve()}function br(e,t,n,r,s){w&&it();var i=t.$$slots?.[n],l=!1;i===!0&&(i=t[n],l=!0),i===void 0?s!==null&&s(e):i(e,l?()=>r:r)}function yr(e,t){tr(()=>{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)}})}const Er=Symbol("is custom element"),xr=Symbol("is html");function kr(e,t,n,r){var s=Tr(e);w&&(s[t]=e.getAttribute(t)),s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Sr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Tr(e){return e.__attributes??={[Er]:e.nodeName.includes("-"),[xr]:e.namespaceURI===_n}}var un=new Map;function Sr(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=mn(s);for(var l in r)r[l].set&&n.push(l);s=wt(s)}return n}function Je(e,t,n,r){var s=r,i=!0,l=()=>(i&&(i=!1,s=r),s),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var f;f=()=>{var a=e[t];return a===void 0?l():(i=!0,a)};var u=!1,c=ft(()=>(u=!1,f())),d=v;return(function(a,h){if(arguments.length>0){const p=h?T(c):a;return J(c,p),u=!0,s!==void 0&&(s=p),a}return ve&&u||(d.f&H)!==0?c.v:T(c)})}function Ar(e){return new Rr(e)}class Rr{#t;#e;constructor(t){var n=new Map,r=(i,l)=>{var o=Jn(l,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return T(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===En?!0:(T(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return J(n.get(l)??r(l,o),o),Reflect.set(i,l,o)}});this.#e=(t.hydrate?wr:fn)(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)&&$e(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ce(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=()=>{$r(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 an;typeof HTMLElement=="function"&&(an=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),dt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Or(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]=Ke(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=Ar({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qn(()=>{Ht(()=>{this.$$r=!0;for(const r of Oe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ke(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]=Ke(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 Oe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ke(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 Or(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Cr(e,t,n,r,s,i){let l=class extends an{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Oe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Oe(t).forEach(o=>{Ce(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=Ke(o,f,t),this.$$d[o]=f;var u=this.$$c;if(u){var c=ue(u,o)?.get;c?u[o]=f:u.$set({[o]:f})}}})}),r.forEach(o=>{Ce(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}var Nr=vr('<div class="skeleton-root svelte-10p6erh"><p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <button class="btn btn-primary svelte-10p6erh">Dispatch Event</button> <!></div>');const Pr={hash:"svelte-10p6erh",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");:host {font-family:"Roboto", sans-serif;}
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
6
6
  * Copyright 2011-2021 Twitter, Inc.
7
7
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
8
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-10p6erh,
8
+ */.svelte-10p6erh,
9
9
  .svelte-10p6erh::before,
10
10
  .svelte-10p6erh::after {box-sizing:border-box;}
11
11
  @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
@@ -56,5 +56,5 @@ button.svelte-10p6erh {margin:0;font-family:inherit;font-size:inherit;line-heigh
56
56
  @media (min-width: 1200px) {
57
57
  }
58
58
  @media (min-width: 1400px) {
59
- }`};function ur(e,t){St(t,!0),$n(e,Pn);let r=Je(t,"id",7,""),n=Je(t,"string",7,""),i=Je(t,"json",7,"{}"),s=Je(t,"boolean",7,!1),o=ft(()=>n()?n().toUpperCase():""),f=ft(()=>{if(typeof i()=="object")return i();try{return JSON.parse(i()||"{}")}catch{return{}}}),l=ft(()=>s()===!0||s()==="true"||s()==="");function a(){t.$$host.dispatchEvent(new CustomEvent("event",{detail:{test:!0}}))}var c={get id(){return r()},set id(L=""){r(L),ye()},get string(){return n()},set string(L=""){n(L),ye()},get json(){return i()},set json(L="{}"){i(L),ye()},get boolean(){return s()},set boolean(L=!1){s(L),ye()}},h=On(),u=xe(h),d=xe(u);ge(u);var b=ke(u,2),D=xe(b);ge(b);var I=ke(b,2),We=xe(I);ge(I);var fe=ke(I,2),jn=xe(fe);ge(fe);var cr=ke(fe,2);cr.__click=a;var Mn=ke(cr,2);return wn(Mn,t,"content",{},L=>{var Dn=bn("Default slot content");ht(L,Dn)}),ge(h),rn(L=>{kn(h,"id",r()),ze(d,`String: ${n()??""}`),ze(D,`Upper: ${S(o)??""}`),ze(We,`Boolean: ${S(l)??""}`),ze(jn,`JSON keys: ${L??""}`)},[()=>Object.keys(S(f)).join(", ")]),ht(e,h),Tt(c)}hn(["click"]),customElements.define("hb-skeleton-component",Rn(ur,{id:{},string:{},json:{},boolean:{}},["content"],[],!0)),vt.Component=ur,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})})(this["skeleton-component"]=this["skeleton-component"]||{});
59
+ }`};function cn(e,t){Tt(t,!0),yr(e,Pr);let n=Je(t,"id",7,""),r=Je(t,"string",7,""),s=Je(t,"json",7,"{}"),i=Je(t,"boolean",7,!1),l=ot(()=>r()?r().toUpperCase():""),o=ot(()=>{if(typeof s()=="object")return s();try{return JSON.parse(s()||"{}")}catch{return{}}}),f=ot(()=>i()===!0||i()==="true"||i()==="");function u(){t.$$host.dispatchEvent(new CustomEvent("event",{detail:{test:!0}}))}var c={get id(){return n()},set id(L=""){n(L),$e()},get string(){return r()},set string(L=""){r(L),$e()},get json(){return s()},set json(L="{}"){s(L),$e()},get boolean(){return i()},set boolean(L=!1){i(L),$e()}},d=Nr(),a=xe(d),h=xe(a);me(a);var p=ke(a,2),M=xe(p);me(p);var I=ke(p,2),We=xe(I);me(I);var oe=ke(I,2),Dr=xe(oe);me(oe);var hn=ke(oe,2);hn.__click=u;var jr=ke(hn,2);return br(jr,t,"content",{},L=>{var Mr=pr("Default slot content");dt(L,Mr)}),me(d),rr(L=>{kr(d,"id",n()),ze(h,`String: ${r()??""}`),ze(M,`Upper: ${T(l)??""}`),ze(We,`Boolean: ${T(f)??""}`),ze(Dr,`JSON keys: ${L??""}`)},[()=>Object.keys(T(o)).join(", ")]),dt(e,d),St(c)}dr(["click"]),customElements.define("hb-skeleton-component",Cr(cn,{id:{},string:{},json:{},boolean:{}},["content"],[],!0)),vt.Component=cn,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})})(this["skeleton-component"]=this["skeleton-component"]||{});
60
60
  //# sourceMappingURL=main.iife.js.map