@htmlbricks/hb-vertical-img-txt-archive 0.62.0 → 0.62.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +2 -2
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(Rt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hn=1,Vn=2,Yn=16,Un=2,kt="[",We="[!",ot="]",be={},C=Symbol(),Wn="http://www.w3.org/1999/xhtml",Ot=!1;var Dt=Array.isArray,zn=Array.prototype.indexOf,at=Array.from,ze=Object.keys,Ge=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Gn=Object.getOwnPropertyDescriptors,Jn=Object.prototype,Kn=Array.prototype,Mt=Object.getPrototypeOf,Lt=Object.isExtensible;function Xn(e){for(var t=0;t<e.length;t++)e[t]()}function Pt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const N=2,Je=4,ut=8,ne=16,re=32,ae=64,Ke=128,Y=512,S=1024,D=2048,ie=4096,I=8192,ue=16384,ct=32768,Te=65536,It=1<<17,Ft=1<<18,de=1<<19,Zn=1<<20,Me=32768,ht=1<<21,dt=1<<22,ce=1<<23,vt=Symbol("$state"),Qn=Symbol("legacy props"),er=Symbol(""),xe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Ae=8;function tr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function rr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ir(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lr(){throw new Error("https://svelte.dev/e/hydration_failed")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function or(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ur(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Xe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function cr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function se(e){$=e}let w;function M(e){if(e===null)throw Xe(),be;return w=e}function Ze(){return M(K(w))}function Ce(e){if($){if(K(w)!==null)throw Xe(),be;w=e}}function hr(e=1){if($){for(var t=e,n=w;t--;)n=K(n);w=n}}function Qe(e=!0){for(var t=0,n=w;;){if(n.nodeType===Ae){var r=n.data;if(r===ot){if(t===0)return n;t-=1}else(r===kt||r===We)&&(t+=1)}var i=K(n);e&&n.remove(),n=i}}function jt(e){if(!e||e.nodeType!==Ae)throw Xe(),be;return e.data}function qt(e){return e===this.v}function dr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bt(e){return!dr(e,this.v)}let vr=!1,q=null;function Ne(e){q=e}function Ht(e,t=!1,n){q={p:q,i:!1,c:null,e:null,s:e,x:null,l:null}}function Vt(e){var t=q,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return e!==void 0&&(t.x=e),t.i=!0,q=t.p,e??{}}function Yt(){return!0}let ve=[];function Ut(){var e=ve;ve=[],Xn(e)}function pt(e){if(ve.length===0&&!Le){var t=ve;queueMicrotask(()=>{t===ve&&Ut()})}ve.push(e)}function _r(){for(;ve.length>0;)Ut()}function Wt(e){var t=m;if(t===null)return g.f|=ce,e;if((t.f&ct)===0){if((t.f&Ke)===0)throw e;t.b.error(e)}else Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Ke)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const et=new Set;let E=null,F=null,J=[],tt=null,gt=!1,Le=!1;class U{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#l=[];#f=[];skipped_effects=new Set;is_fork=!1;process(t){J=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#a(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(E=null,Gt(n.render_effects),Gt(n.effects),this.#o?.resolve()),F=null}#i(t,n){t.f^=S;for(var r=t.first;r!==null;){var i=r.f,s=(i&(re|ae))!==0,l=s&&(i&S)!==0,f=l||(i&I)!==0||this.skipped_effects.has(r);if((r.f&Ke)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!f&&r.fn!==null){s?r.f^=S:(i&Je)!==0?n.effects.push(r):qe(r)&&((r.f&ne)!==0&&n.block_effects.push(r),Be(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#s(t){for(const n of t)((n.f&D)!==0?this.#l:this.#f).push(n),k(n,S)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&ce)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){E=this,this.apply()}deactivate(){E=null,F=null}flush(){if(this.activate(),J.length>0){if(zt(),E!==null&&E!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#a(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(et.size>1){this.previous.clear();var t=F,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of et){if(i===this){n=!1;continue}const s=[];for(const[f,o]of this.current){if(i.current.has(f))if(n&&o!==i.current.get(f))i.current.set(f,o);else continue;s.push(f)}if(s.length===0)continue;const l=[...i.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){const f=new Set,o=new Map;for(const a of s)Jt(a,l,f,o);if(J.length>0){E=i,i.apply();for(const a of J)i.#i(a,r);J=[],i.deactivate()}}}E=null,F=t}this.committed=!0,et.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#l)k(t,D),_e(t);for(const t of this.#f)k(t,ie),_e(t);this.#l=[],this.#f=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=Pt()).promise}static ensure(){if(E===null){const t=E=new U;et.add(E),Le||U.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){pt(t)}apply(){}}function mt(e){var t=Le;Le=!0;try{for(var n;;){if(_r(),J.length===0&&(E?.flush(),J.length===0))return tt=null,n;zt()}}finally{Le=t}}function zt(){var e=ge;gt=!0;try{var t=0;for($n(!0);J.length>0;){var n=U.ensure();if(t++>1e3){var r,i;pr()}n.process(J),he.clear()}}finally{gt=!1,$n(e),tt=null}}function pr(){try{sr()}catch(e){Se(e,tt)}}let le=null;function Gt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ue|I))===0&&qe(r)&&(le=new Set,Be(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?pn(r):r.fn=null),le?.size>0)){he.clear();for(const i of le){if((i.f&(ue|I))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)le.has(l)&&(le.delete(l),s.push(l)),l=l.parent;for(let f=s.length-1;f>=0;f--){const o=s[f];(o.f&(ue|I))===0&&Be(o)}}le.clear()}}le=null}}function Jt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&N)!==0?Jt(i,t,n,r):(s&(dt|ne))!==0&&(s&D)===0&&Kt(i,t,r)&&(k(i,D),_e(i))}}function Kt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&N)!==0&&Kt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function _e(e){for(var t=tt=e;t.parent!==null;){t=t.parent;var n=t.f;if(gt&&t===m&&(n&ne)!==0&&(n&Ft)===0)return;if((n&(ae|re))!==0){if((n&S)===0)return;t.f^=S}}J.push(t)}function gr(e){let t=0,n=pe(0),r;return()=>{rt()&&(T(n),hn(()=>(t===0&&(r=Br(()=>e(()=>Ie(n)))),t+=1,()=>{pt(()=>{t-=1,t===0&&(r?.(),r=void 0,Ie(n))})})))}}var mr=Te|de|Ke;function wr(e,t,n){new $r(e,t,n)}class $r{parent;#t=!1;#e;#n=$?w:null;#r;#o;#l;#f=null;#i=null;#s=null;#a=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#w=gr(()=>(this.#h=pe(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=m.b,this.#t=!!this.#r.pending,this.#l=Tt(()=>{if(m.b=this,$){const s=this.#n;Ze(),s.nodeType===Ae&&s.data===We?this.#y():this.#$()}else{var i=this.#g();try{this.#f=H(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},mr),$&&(this.#e=w)}#$(){try{this.#f=H(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#i=H(()=>t(this.#e)),U.enqueue(()=>{var n=this.#g();this.#f=this.#_(()=>(U.ensure(),H(()=>this.#o(n)))),this.#c>0?this.#p():(Oe(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=z(),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.#r.pending}#_(t){var n=m,r=g,i=q;Q(this.#l),L(this.#l),Ne(this.#l.ctx);try{return t()}catch(s){return Wt(s),null}finally{Q(n),L(r),Ne(i)}}#p(){const t=this.#r.pending;this.#f!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),wn(this.#f,this.#a)),this.#i===null&&(this.#i=H(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Oe(this.#i,()=>{this.#i=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&Pe(this.#h,this.#d)}get_effect_pending(){return this.#w(),T(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#f&&(R(this.#f),this.#f=null),this.#i&&(R(this.#i),this.#i=null),this.#s&&(R(this.#s),this.#s=null),$&&(M(this.#n),hr(),M(Qe()));var i=!1,s=!1;const l=()=>{if(i){cr();return}i=!0,s&&ur(),U.ensure(),this.#d=0,this.#s!==null&&Oe(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#f=this.#_(()=>(this.#v=!1,H(()=>this.#o(this.#e)))),this.#c>0?this.#p():this.#t=!1};var f=g;try{L(null),s=!0,n?.(t,l),s=!1}catch(o){Se(o,this.#l&&this.#l.parent)}finally{L(f)}r&&pt(()=>{this.#s=this.#_(()=>{U.ensure(),this.#v=!0;try{return H(()=>{r(this.#e,()=>t,()=>l)})}catch(o){return Se(o,this.#l.parent),null}finally{this.#v=!1}})})}}function yr(e,t,n,r){const i=wt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=E,l=m,f=br();function o(){Promise.all(n.map(a=>Er(a))).then(a=>{f();try{r([...t.map(i),...a])}catch(c){(l.f&ue)===0&&Se(c,l)}s?.deactivate(),nt()}).catch(a=>{Se(a,l)})}e.length>0?Promise.all(e).then(()=>{f();try{return o()}finally{s?.deactivate(),nt()}}):o()}function br(){var e=m,t=g,n=q,r=E;return function(s=!0){Q(e),L(t),Ne(n),s&&r?.activate()}}function nt(){Q(null),L(null),Ne(null)}function wt(e){var t=N|D,n=g!==null&&(g.f&N)!==0?g:null;return m!==null&&(m.f|=de),{ctx:q,deps:null,effects:null,equals:qt,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:n??m,ac:null}}function Er(e,t){let n=m;n===null&&tr();var r=n.b,i=void 0,s=pe(C),l=!g,f=new Map;return Lr(()=>{var o=Pt();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===E&&a.committed&&a.deactivate(),nt()})}catch(u){o.reject(u),nt()}var a=E;if(l){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),f.get(a)?.reject(xe),f.delete(a),f.set(a,o)}const d=(u,h=void 0)=>{if(a.activate(),h)h!==xe&&(s.f|=ce,Pe(s,h));else{(s.f&ce)!==0&&(s.f^=ce),Pe(s,u);for(const[v,_]of f){if(f.delete(v),v===a)break;_.reject(xe)}}l&&(r.update_pending_count(-1),a.decrement(c))};o.promise.then(d,u=>d(null,u||"unknown"))}),un(()=>{for(const o of f.values())o.reject(xe)}),new Promise(o=>{function a(c){function d(){c===i?o(s):a(i)}c.then(d,d)}a(i)})}function Tr(e){const t=wt(e);return t.equals=Bt,t}function Xt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function xr(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return t;t=t.parent}return null}function $t(e){var t,n=m;Q(xr(e));try{e.f&=~Me,Xt(e),t=An(e)}finally{Q(n)}return t}function Zt(e){var t=$t(e);if(e.equals(t)||(e.v=t,e.wv=Tn()),!me)if(F!==null)rt()&&F.set(e,e.v);else{var n=(e.f&Y)===0?ie:S;k(e,n)}}let yt=new Set;const he=new Map;let Qt=!1;function pe(e,t){var n={f:0,v:e,reactions:null,equals:qt,rv:0,wv:0};return n}function W(e,t){const n=pe(e);return Fr(n),n}function en(e,t=!1,n=!0){const r=pe(e);return t||(r.equals=Bt),r}function B(e,t,n=!1){g!==null&&(!Z||(g.f&It)!==0)&&Yt()&&(g.f&(N|ne|dt|It))!==0&&!fe?.includes(e)&&ar();let r=n?Re(t):t;return Pe(e,r)}function Pe(e,t){if(!e.equals(t)){var n=e.v;me?he.set(e,t):he.set(e,n),e.v=t;var r=U.ensure();r.capture(e,n),(e.f&N)!==0&&((e.f&D)!==0&&$t(e),k(e,(e.f&Y)!==0?S:ie)),e.wv=Tn(),tn(e,D),m!==null&&(m.f&S)!==0&&(m.f&(re|ae))===0&&(V===null?jr([e]):V.push(e)),!r.is_fork&&yt.size>0&&!Qt&&Ar()}return t}function Ar(){Qt=!1;const e=Array.from(yt);for(const t of e)(t.f&S)!==0&&k(t,ie),qe(t)&&Be(t);yt.clear()}function Ie(e){B(e,e.v+1)}function tn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,f=(l&D)===0;if(f&&k(s,t),(l&N)!==0){var o=s;F?.delete(o),(l&Me)===0&&(l&Y&&(s.f|=Me),tn(o,ie))}else f&&((l&ne)!==0&&le!==null&&le.add(s),_e(s))}}function Re(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Mt(e);if(t!==Jn&&t!==Kn)return e;var n=new Map,r=Dt(e),i=W(0),s=we,l=f=>{if(we===s)return f();var o=g,a=we;L(null),En(s);var c=f();return L(o),En(a),c};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(f,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&fr();var c=n.get(o);return c===void 0?c=l(()=>{var d=W(a.value);return n.set(o,d),d}):B(c,a.value,!0),!0},deleteProperty(f,o){var a=n.get(o);if(a===void 0){if(o in f){const c=l(()=>W(C));n.set(o,c),Ie(i)}}else B(a,C),Ie(i);return!0},get(f,o,a){if(o===vt)return e;var c=n.get(o),d=o in f;if(c===void 0&&(!d||Ee(f,o)?.writable)&&(c=l(()=>{var h=Re(d?f[o]:C),v=W(h);return v}),n.set(o,c)),c!==void 0){var u=T(c);return u===C?void 0:u}return Reflect.get(f,o,a)},getOwnPropertyDescriptor(f,o){var a=Reflect.getOwnPropertyDescriptor(f,o);if(a&&"value"in a){var c=n.get(o);c&&(a.value=T(c))}else if(a===void 0){var d=n.get(o),u=d?.v;if(d!==void 0&&u!==C)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(f,o){if(o===vt)return!0;var a=n.get(o),c=a!==void 0&&a.v!==C||Reflect.has(f,o);if(a!==void 0||m!==null&&(!c||Ee(f,o)?.writable)){a===void 0&&(a=l(()=>{var u=c?Re(f[o]):C,h=W(u);return h}),n.set(o,a));var d=T(a);if(d===C)return!1}return c},set(f,o,a,c){var d=n.get(o),u=o in f;if(r&&o==="length")for(var h=a;h<d.v;h+=1){var v=n.get(h+"");v!==void 0?B(v,C):h in f&&(v=l(()=>W(C)),n.set(h+"",v))}if(d===void 0)(!u||Ee(f,o)?.writable)&&(d=l(()=>W(void 0)),B(d,Re(a)),n.set(o,d));else{u=d.v!==C;var _=l(()=>Re(a));B(d,_)}var p=Reflect.getOwnPropertyDescriptor(f,o);if(p?.set&&p.set.call(c,a),!u){if(r&&typeof o=="string"){var P=n.get("length"),x=Number(o);Number.isInteger(x)&&x>=P.v&&B(P,x+1)}Ie(i)}return!0},ownKeys(f){T(i);var o=Reflect.ownKeys(f).filter(d=>{var u=n.get(d);return u===void 0||u.v!==C});for(var[a,c]of n)c.v!==C&&!(a in f)&&o.push(a);return o},setPrototypeOf(){or()}})}var nn,rn,sn,ln;function bt(){if(nn===void 0){nn=window,rn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;sn=Ee(t,"firstChild").get,ln=Ee(t,"nextSibling").get,Lt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lt(n)&&(n.__t=void 0)}}function z(e=""){return document.createTextNode(e)}function ke(e){return sn.call(e)}function K(e){return ln.call(e)}function Fe(e,t){if(!$)return ke(e);var n=ke(w);if(n===null)n=w.appendChild(z());else if(t&&n.nodeType!==_t){var r=z();return n?.before(r),M(r),r}return M(n),n}function Cr(e,t=!1){if(!$){var n=ke(e);return n instanceof Comment&&n.data===""?K(n):n}if(t&&w?.nodeType!==_t){var r=z();return w?.before(r),M(r),r}return w}function fn(e,t=1,n=!1){let r=$?w:e;for(var i;t--;)i=r,r=K(r);if(!$)return r;if(n&&r?.nodeType!==_t){var s=z();return r===null?i?.after(s):r.before(s),M(s),s}return M(r),r}function on(e){e.textContent=""}function an(){return!1}function Nr(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);un(()=>{for(var s of t)e.removeEventListener(s,n)})}function Et(e){var t=g,n=m;L(null),Q(null);try{return e()}finally{L(t),Q(n)}}function Sr(e){m===null&&(g===null&&ir(),rr()),me&&nr()}function Rr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function X(e,t,n,r=!0){var i=m;i!==null&&(i.f&I)!==0&&(e|=I);var s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:e|D|Y,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Be(s),s.f|=ct}catch(o){throw R(s),o}else t!==null&&_e(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&de)===0&&(l=l.first,(e&ne)!==0&&(e&Te)!==0&&l!==null&&(l.f|=Te)),l!==null&&(l.parent=i,i!==null&&Rr(l,i),g!==null&&(g.f&N)!==0&&(e&ae)===0)){var f=g;(f.effects??=[]).push(l)}}return s}function rt(){return g!==null&&!Z}function un(e){const t=X(ut,null,!1);return k(t,S),t.teardown=e,t}function kr(e){Sr();var t=m.f,n=!g&&(t&re)!==0&&(t&ct)===0;if(n){var r=q;(r.e??=[]).push(e)}else return cn(e)}function cn(e){return X(Je|Zn,e,!1)}function Or(e){U.ensure();const t=X(ae|de,e,!0);return()=>{R(t)}}function Dr(e){U.ensure();const t=X(ae|de,e,!0);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{R(t),r(void 0)}):(R(t),r(void 0))})}function Mr(e){return X(Je,e,!1)}function Lr(e){return X(dt|de,e,!0)}function hn(e,t=0){return X(ut|t,e,!0)}function dn(e,t=[],n=[],r=[],i=!1){yr(r,t,n,s=>{X(i?Je:ut,()=>e(...s.map(T)),!0)})}function Tt(e,t=0){var n=X(ne|t,e,!0);return n}function H(e,t=!0){return X(re|de,e,!0,t)}function vn(e){var t=e.teardown;if(t!==null){const n=me,r=g;yn(!0),L(null);try{t.call(null)}finally{yn(n),L(r)}}}function _n(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(xe)});var r=n.next;(n.f&ae)!==0?n.parent=null:R(n,t),n=r}}function Pr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&re)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ir(e.nodes_start,e.nodes_end),n=!0),_n(e,t&&!n),it(e,0),k(e,ue);var r=e.transitions;if(r!==null)for(const s of r)s.stop();vn(e);var i=e.parent;i!==null&&i.first!==null&&pn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ir(e,t){for(;e!==null;){var n=e===t?null:K(e);e.remove(),e=n}}function pn(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 Oe(e,t,n=!0){var r=[];xt(e,r,!0),gn(r,()=>{n&&R(e),t&&t()})}function gn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function xt(e,t,n){if((e.f&I)===0){if(e.f^=I,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Te)!==0||(r.f&re)!==0&&(e.f&ne)!==0;xt(r,t,s?n:!1),r=i}}}function At(e){mn(e,!0)}function mn(e,t){if((e.f&I)!==0){e.f^=I,(e.f&S)===0&&(k(e,D),_e(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Te)!==0||(n.f&re)!==0;mn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function wn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:K(n);t.append(n),n=i}}let ge=!1;function $n(e){ge=e}let me=!1;function yn(e){me=e}let g=null,Z=!1;function L(e){g=e}let m=null;function Q(e){m=e}let fe=null;function Fr(e){g!==null&&(fe===null?fe=[e]:fe.push(e))}let O=null,j=0,V=null;function jr(e){V=e}let bn=1,je=0,we=je;function En(e){we=e}function Tn(){return++bn}function qe(e){var t=e.f;if((t&D)!==0)return!0;if(t&N&&(e.f&=~Me),(t&ie)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(qe(s)&&Zt(s),s.wv>e.wv)return!0}(t&Y)!==0&&F===null&&k(e,S)}return!1}function xn(e,t,n=!0){var r=e.reactions;if(r!==null&&!fe?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&N)!==0?xn(s,t,!1):t===s&&(n?k(s,D):(s.f&S)!==0&&k(s,ie),_e(s))}}function An(e){var t=O,n=j,r=V,i=g,s=fe,l=q,f=Z,o=we,a=e.f;O=null,j=0,V=null,g=(a&(re|ae))===0?e:null,fe=null,Ne(e.ctx),Z=!1,we=++je,e.ac!==null&&(Et(()=>{e.ac.abort(xe)}),e.ac=null);try{e.f|=ht;var c=e.fn,d=c(),u=e.deps;if(O!==null){var h;if(it(e,j),u!==null&&j>0)for(u.length=j+O.length,h=0;h<O.length;h++)u[j+h]=O[h];else e.deps=u=O;if(ge&&rt()&&(e.f&Y)!==0)for(h=j;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&j<u.length&&(it(e,j),u.length=j);if(Yt()&&V!==null&&!Z&&u!==null&&(e.f&(N|ie|D))===0)for(h=0;h<V.length;h++)xn(V[h],e);return i!==null&&i!==e&&(je++,V!==null&&(r===null?r=V:r.push(...V))),(e.f&ce)!==0&&(e.f^=ce),d}catch(v){return Wt(v)}finally{e.f^=ht,O=t,j=n,V=r,g=i,fe=s,Ne(l),Z=f,we=o}}function qr(e,t){let n=t.reactions;if(n!==null){var r=zn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&N)!==0&&(O===null||!O.includes(t))&&(k(t,ie),(t.f&Y)!==0&&(t.f^=Y,t.f&=~Me),Xt(t),it(t,0))}function it(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)qr(e,n[r])}function Be(e){var t=e.f;if((t&ue)===0){k(e,S);var n=m,r=ge;m=e,ge=!0;try{(t&ne)!==0?Pr(e):_n(e),vn(e);var i=An(e);e.teardown=typeof i=="function"?i:null,e.wv=bn;var s;Ot&&vr&&(e.f&D)!==0&&e.deps}finally{ge=r,m=n}}}function T(e){var t=e.f,n=(t&N)!==0;if(g!==null&&!Z){var r=m!==null&&(m.f&ue)!==0;if(!r&&!fe?.includes(e)){var i=g.deps;if((g.f&ht)!==0)e.rv<je&&(e.rv=je,O===null&&i!==null&&i[j]===e?j++:O===null?O=[e]:O.includes(e)||O.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}if(me){if(he.has(e))return he.get(e);if(n){var l=e,f=l.v;return((l.f&S)===0&&l.reactions!==null||Nn(l))&&(f=$t(l)),he.set(l,f),f}}else if(n){if(l=e,F?.has(l))return F.get(l);qe(l)&&Zt(l),ge&&rt()&&(l.f&Y)===0&&Cn(l)}else if(F?.has(e))return F.get(e);if((e.f&ce)!==0)throw e.v;return e.v}function Cn(e){if(e.deps!==null){e.f^=Y;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&Y)===0&&Cn(t)}}function Nn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(he.has(t)||(t.f&N)!==0&&Nn(t))return!0;return!1}function Br(e){var t=Z;try{return Z=!0,e()}finally{Z=t}}const Hr=-7169;function k(e,t){e.f=e.f&Hr|t}const Vr=new Set,Sn=new Set;let Rn=null;function st(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Rn=e;var l=0,f=Rn===e&&e.__root;if(f){var o=i.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(s=i[l]||e.target,s!==t){Ge(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=g,d=m;L(null),Q(null);try{for(var u,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+r];_!=null&&(!s.disabled||e.target===s)&&_.call(s,e)}catch(p){u?h.push(p):u=p}if(e.cancelBubble||v===t||v===null)break;s=v}if(u){for(let p of h)queueMicrotask(()=>{throw p});throw u}}finally{e.__root=t,delete e.currentTarget,L(c),Q(d)}}}function Yr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function He(e,t){var n=m;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function kn(e,t){var n=(t&Un)!==0,r,i=!e.startsWith("<!>");return()=>{if($)return He(w,null),w;r===void 0&&(r=Yr(i?e:"<!>"+e),r=ke(r));var s=n||rn?document.importNode(r,!0):r.cloneNode(!0);return He(s,s),s}}function Ur(){if($)return He(w,null),w;var e=document.createDocumentFragment(),t=document.createComment(""),n=z();return e.append(t,n),He(t,n),e}function lt(e,t){if($){m.nodes_end=w,Ze();return}e!==null&&e.before(t)}const Wr=["touchstart","touchmove"];function zr(e){return Wr.includes(e)}function On(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Dn(e,t){return Mn(e,t)}function Gr(e,t){bt(),t.intro=t.intro??!1;const n=t.target,r=$,i=w;try{for(var s=ke(n);s&&(s.nodeType!==Ae||s.data!==kt);)s=K(s);if(!s)throw be;se(!0),M(s);const l=Mn(e,{...t,anchor:s});return se(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==be&&console.warn("Failed to hydrate: ",l),t.recover===!1&&lr(),bt(),on(n),se(!1),Dn(e,t)}finally{se(r),M(i)}}const De=new Map;function Mn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){bt();var f=new Set,o=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!f.has(h)){f.add(h);var v=zr(h);t.addEventListener(h,st,{passive:v});var _=De.get(h);_===void 0?(document.addEventListener(h,st,{passive:v}),De.set(h,1)):De.set(h,_+1)}}};o(at(Vr)),Sn.add(o);var a=void 0,c=Dr(()=>{var d=n??t.appendChild(z());return wr(d,{pending:()=>{}},u=>{if(s){Ht({});var h=q;h.c=s}if(i&&(r.$$events=i),$&&He(u,null),a=e(u,r)||{},$&&(m.nodes_end=w,w===null||w.nodeType!==Ae||w.data!==ot))throw Xe(),be;s&&Vt()}),()=>{for(var u of f){t.removeEventListener(u,st);var h=De.get(u);--h===0?(document.removeEventListener(u,st),De.delete(u)):De.set(u,h)}Sn.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return Ct.set(a,c),a}let Ct=new WeakMap;function Jr(e,t){const n=Ct.get(e);return n?(Ct.delete(e),n(t)):Promise.resolve()}class Kr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#o=()=>{var t=E;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)At(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#t){if(this.#t.delete(s),s===t)break;const f=this.#n.get(l);f&&(R(f.effect),this.#n.delete(l))}for(const[s,l]of this.#e){if(s===n)continue;const f=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();wn(l,a),a.append(z()),this.#n.set(s,{effect:l,fragment:a})}else R(l);this.#e.delete(s)};this.#r||!r?Oe(l,f,!1):f()}}};#l=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(R(i.effect),this.#n.delete(r))};ensure(t,n){var r=E,i=an();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),l=z();s.append(l),this.#n.set(t,{effect:H(()=>n(l)),fragment:s})}else this.#e.set(t,H(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[f,o]of this.#e)f===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[f,o]of this.#n)f===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#o),r.ondiscard(this.#l)}else $&&(this.anchor=w),this.#o()}}function Xr(e,t,n=!1){$&&Ze();var r=new Kr(e),i=n?Te:0;function s(l,f){if($){const a=jt(e)===We;if(l===a){var o=Qe();M(o),r.anchor=o,se(!1),r.ensure(l,f),se(!0);return}}r.ensure(l,f)}Tt(()=>{var l=!1;t((f,o=!0)=>{l=!0,s(o,f)}),l||s(!1,null)},i)}function Zr(e,t,n){for(var r=e.items,i=[],s=t.length,l=0;l<s;l++)xt(t[l].e,i,!0);var f=s>0&&i.length===0&&n!==null;if(f){var o=n.parentNode;on(o),o.append(n),r.clear(),ee(e,t[0].prev,t[s-1].next)}gn(i,()=>{for(var a=0;a<s;a++){var c=t[a];f||(r.delete(c.k),ee(e,c.prev,c.next)),R(c.e,!f)}})}function Qr(e,t,n,r,i,s=null){var l=e,f={flags:t,items:new Map,first:null};{var o=e;l=$?M(ke(o)):o.appendChild(z())}$&&Ze();var a=null,c=!1,d=new Map,u=Tr(()=>{var p=n();return Dt(p)?p:p==null?[]:at(p)}),h,v;function _(){ei(v,h,f,d,l,i,t,r,n),s!==null&&(h.length===0?a?At(a):a=H(()=>s(l)):a!==null&&Oe(a,()=>{a=null}))}Tt(()=>{v??=m,h=T(u);var p=h.length;if(c&&p===0)return;c=p===0;let P=!1;if($){var x=jt(l)===We;x!==(p===0)&&(l=Qe(),M(l),se(!1),P=!0)}if($){for(var y=null,A,b=0;b<p;b++){if(w.nodeType===Ae&&w.data===ot){l=w,P=!0,se(!1);break}var oe=h[b],te=r(oe,b);A=Nt(w,f,y,null,oe,te,b,i,t,n),f.items.set(te,A),y=A}p>0&&M(Qe())}if($)p===0&&s&&(a=H(()=>s(l)));else if(an()){var ye=new Set,G=E;for(b=0;b<p;b+=1){oe=h[b],te=r(oe,b);var Ve=f.items.get(te)??d.get(te);Ve?Ln(Ve,oe,b):(A=Nt(null,f,null,null,oe,te,b,i,t,n,!0),d.set(te,A)),ye.add(te)}for(const[Ye,Ue]of f.items)ye.has(Ye)||G.skipped_effects.add(Ue.e);G.oncommit(_)}else _();P&&se(!0),T(u)}),$&&(l=w)}function ei(e,t,n,r,i,s,l,f,o){var a=t.length,c=n.items,d=n.first,u=d,h,v=null,_=[],p=[],P,x,y,A;for(A=0;A<a;A+=1){if(P=t[A],x=f(P,A),y=c.get(x),y===void 0){var b=r.get(x);if(b!==void 0){r.delete(x),c.set(x,b);var oe=v?v.next:u;ee(n,v,b),ee(n,b,oe),St(b,oe,i),v=b}else{var te=u?u.e.nodes_start:i;v=Nt(te,n,v,v===null?n.first:v.next,P,x,A,s,l,o)}c.set(x,v),_=[],p=[],u=v.next;continue}if(Ln(y,P,A),(y.e.f&I)!==0&&At(y.e),y!==u){if(h!==void 0&&h.has(y)){if(_.length<p.length){var ye=p[0],G;v=ye.prev;var Ve=_[0],Ye=_[_.length-1];for(G=0;G<_.length;G+=1)St(_[G],ye,i);for(G=0;G<p.length;G+=1)h.delete(p[G]);ee(n,Ve.prev,Ye.next),ee(n,v,Ve),ee(n,Ye,ye),u=ye,v=Ye,A-=1,_=[],p=[]}else h.delete(y),St(y,u,i),ee(n,y.prev,y.next),ee(n,y,v===null?n.first:v.next),ee(n,v,y),v=y;continue}for(_=[],p=[];u!==null&&u.k!==x;)(u.e.f&I)===0&&(h??=new Set).add(u),p.push(u),u=u.next;if(u===null)continue;y=u}_.push(y),v=y,u=y.next}if(u!==null||h!==void 0){for(var Ue=h===void 0?[]:at(h);u!==null;)(u.e.f&I)===0&&Ue.push(u),u=u.next;var gi=Ue.length;if(gi>0){var mi=a===0?i:null;Zr(n,Ue,mi)}}e.first=n.first&&n.first.e,e.last=v&&v.e;for(var wi of r.values())R(wi.e);r.clear()}function Ln(e,t,n,r){Pe(e.v,t),e.i=n}function Nt(e,t,n,r,i,s,l,f,o,a,c){var d=(o&Hn)!==0,u=(o&Yn)===0,h=d?u?en(i,!1,!1):pe(i):i,v=(o&Vn)===0?l:pe(l),_={i:v,v:h,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var p=document.createDocumentFragment();p.append(e=z())}return _.e=H(()=>f(e,h,v,a),$),_.e.prev=n&&n.e,_.e.next=r&&r.e,n===null?c||(t.first=_):(n.next=_,n.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function St(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==null&&s!==r;){var l=K(s);i.before(s),s=l}}function ee(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function ti(e,t){Mr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ni(e,t){return e==null?null:String(e)}function ri(e,t,n,r){var i=e.__style;if($||i!==t){var s=ni(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ii=Symbol("is custom element"),si=Symbol("is html");function Pn(e,t,n,r){var i=li(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[er]=n),n==null?e.removeAttribute(t):typeof n!="string"&&fi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function li(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Wn}}var In=new Map;function fi(e){var t=e.getAttribute("is")||e.nodeName,n=In.get(t);if(n)return n;In.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Gn(i);for(var l in r)r[l].set&&n.push(l);i=Mt(i)}return n}function oi(e,t){Nr(window,["resize"],()=>Et(()=>t(window[e])))}function Fn(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),f;f=e[t],f===void 0&&r!==void 0&&(f=l());var o;o=()=>{var u=e[t];return u===void 0?l():(s=!0,u)};var a=!1,c=wt(()=>(a=!1,o())),d=m;return(function(u,h){if(arguments.length>0){const v=h?T(c):u;return B(c,v),a=!0,i!==void 0&&(i=v),u}return me&&a||(d.f&ue)!==0?c.v:T(c)})}function ai(e){return new ui(e)}class ui{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var f=en(l,!1,!1);return n.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return T(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Qn?!0:(T(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,f){return B(n.get(l)??r(l,f),f),Reflect.set(s,l,f)}});this.#e=(t.hydrate?Gr:Dn)(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)&&mt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ge(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Jr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let jn;typeof HTMLElement=="function"&&(jn=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 i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),lt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ci(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 i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=ft(i,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=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Or(()=>{hn(()=>{this.$$r=!0;for(const r of ze(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=ft(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ft(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 ze(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ft(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="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 ci(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function hi(e,t,n,r,i,s){let l=class extends jn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ze(t).map(f=>(t[f].attribute||f).toLowerCase())}};return ze(t).forEach(f=>{Ge(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(o){o=ft(f,o,t),this.$$d[f]=o;var a=this.$$c;if(a){var c=Ee(a,f)?.get;c?a[f]=o:a.$set({[f]:o})}}})}),r.forEach(f=>{Ge(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}var $e={},qn;function di(){if(qn)return $e;qn=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.LanguageTranslator=void 0,$e.getChildStyleToPass=e,$e.addComponent=t;function e(r,i){var s,l,f="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var o=function(u){var h=i?.filter(function(v){return v.name===u&&v.defaultValue!==r[u]});h&&(f+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var d=c[a];o(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return f}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var f=document.createElement("script");if(f.id=s+"-script",f.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)f.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];f.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}document.head.appendChild(f)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,f="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(f=navigator.languages[0].split("-")[0].toLowerCase()),f},r.getDictionaryWord=function(i,s,l){var f;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((f=s[l])===null||f===void 0)&&f[i]))return s[l][i];var o="",a=r.getDefaultLang();if(!l||a!==l){var c=s?.[a];c?.[i]&&(o=c[i])}return o},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var f=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return f.format(i)},r})();return $e.LanguageTranslator=n,$e}di();var vi=kn('<div class="collection_item svelte-16chsc" part="item"><div class="collection_item_image"><img part="image" class="svelte-16chsc"/></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),_i=kn('<div id="collection_container" part="container" class="svelte-16chsc"></div>');const pi={hash:"svelte-16chsc",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;}#collection_container.svelte-16chsc {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-16chsc {max-width:100%;}img.svelte-16chsc {width:100%;height:100%;object-fit:cover;}'};function Bn(e,t){Ht(t,!0),ti(e,pi);let n=Fn(t,"id",7,""),r=Fn(t,"collection"),i=W(0),s=W(5);Re({}),kr(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(d){console.error("error parsing collection",d)}let c=0;if(r()?.length&&r().forEach(d=>{d.index=c++}),r()){const d=Math.round(T(i)/250);B(s,d<r().length?d:r().length,!0)}else B(s,5)});var l={get id(){return n()},set id(c=""){n(c),mt()},get collection(){return r()},set collection(c){r(c),mt()}},f=Ur(),o=Cr(f);{var a=c=>{var d=_i();Qr(d,21,r,u=>u.index,(u,h)=>{var v=vi(),_=Fe(v),p=Fe(_);Ce(_);var P=fn(_,2),x=Fe(P),y=Fe(x,!0);Ce(x);var A=fn(x,2),b=Fe(A,!0);Ce(A),Ce(P),Ce(v),dn(()=>{Pn(p,"src",T(h).image),Pn(p,"alt",T(h).title),On(y,T(h).title),On(b,T(h).text)}),lt(u,v)}),Ce(d),dn(()=>ri(d,`grid-template-columns: repeat(${T(s)||5}, auto)`)),lt(c,d)};Xr(o,c=>{r()?.length&&c(a)})}return oi("innerWidth",c=>B(i,c,!0)),lt(e,f),Vt(l)}customElements.define("hb-vertical-img-txt-archive",hi(Bn,{id:{},collection:{}},[],[],!0)),Rt.Component=Bn,Object.defineProperty(Rt,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
|
|
1
|
+
(function(St){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Bn=1,Hn=2,Vn=16,Yn=2,Rt="[",He="[!",lt="]",we={},x=Symbol(),Un="http://www.w3.org/1999/xhtml",ot=!1;var Ot=Array.isArray,Wn=Array.prototype.indexOf,at=Array.from,Ve=Object.keys,Ye=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,zn=Object.getOwnPropertyDescriptors,Gn=Object.prototype,Jn=Array.prototype,Dt=Object.getPrototypeOf,Mt=Object.isExtensible;function Kn(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const T=2,ut=4,ct=8,Q=16,ee=32,le=64,Ue=128,V=512,k=1024,R=2048,te=4096,M=8192,ne=16384,We=32768,ye=65536,Pt=1<<17,Ft=1<<18,ce=1<<19,Xn=1<<20,he=32768,ht=1<<21,dt=1<<22,oe=1<<23,vt=Symbol("$state"),Zn=Symbol("legacy props"),Qn=Symbol(""),be=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Ee=8;function er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ar(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ur(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function re(e){m=e}let g;function O(e){if(e===null)throw ze(),we;return g=e}function Ge(){return O(z(g))}function Te(e){if(m){if(z(g)!==null)throw ze(),we;g=e}}function cr(e=1){if(m){for(var t=e,n=g;t--;)n=z(n);g=n}}function Je(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ee){var r=n.data;if(r===lt){if(t===0)return n;t-=1}else(r===Rt||r===He)&&(t+=1)}var s=z(n);e&&n.remove(),n=s}}function It(e){if(!e||e.nodeType!==Ee)throw ze(),we;return e.data}function jt(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 qt(e){return!hr(e,this.v)}let dr=!1,P=null;function xe(e){P=e}function Bt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ht(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function Vt(){return!0}let de=[];function Yt(){var e=de;de=[],Kn(e)}function pt(e){if(de.length===0&&!Me){var t=de;queueMicrotask(()=>{t===de&&Yt()})}de.push(e)}function vr(){for(;de.length>0;)Yt()}function Ut(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&We)===0){if((t.f&Ue)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Ue)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ke=new Set;let $=null,F=null,I=[],Xe=null,gt=!1,Me=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){I=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#f(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):($=null,zt(n.render_effects),zt(n.effects),this.#o?.resolve()),F=null}#f(t,n){t.f^=k;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ee|le))!==0,f=i&&(s&k)!==0,l=f||(s&M)!==0||this.skipped_effects.has(r);if((r.f&Ue)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=k:(s&ut)!==0?n.effects.push(r):je(r)&&((r.f&Q)!==0&&n.block_effects.push(r),qe(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(t){for(const n of t)((n.f&R)!==0?this.#s:this.#i).push(n),this.#a(n.deps),A(n,k)}#a(t){if(t!==null)for(const n of t)(n.f&T)===0||(n.f&he)===0||(n.f^=he,this.#a(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,F=null)}flush(){if(this.activate(),I.length>0){if(Wt(),$!==null&&$!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Ke.size>1){this.previous.clear();var t=F,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ke){if(i===this){n=!1;continue}const f=[];for(const[o,a]of this.current){if(i.current.has(o))if(n&&a!==i.current.get(o))i.current.set(o,a);else continue;f.push(o)}if(f.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var s=I;I=[];const o=new Set,a=new Map;for(const u of f)Gt(u,l,o,a);if(I.length>0){$=i,i.apply();for(const u of I)i.#f(u,r);i.deactivate()}I=s}}$=null,F=t}this.committed=!0,Ke.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)A(t,R),ve(t);for(const t of this.#i)A(t,te),ve(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=Lt()).promise}static ensure(){if($===null){const t=$=new Y;Ke.add($),Me||Y.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){pt(t)}apply(){}}function mt(e){var t=Me;Me=!0;try{for(var n;;){if(vr(),I.length===0&&($?.flush(),I.length===0))return Xe=null,n;Wt()}}finally{Me=t}}function Wt(){var e=ue;gt=!0;var t=null;try{var n=0;for(et(!0);I.length>0;){var r=Y.ensure();if(n++>1e3){var s,i;_r()}r.process(I),ae.clear()}}finally{gt=!1,et(e),Xe=null}}function _r(){try{ir()}catch(e){ke(e,Xe)}}let ie=null;function zt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ne|M))===0&&je(r)&&(ie=new Set,qe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?_n(r):r.fn=null),ie?.size>0)){ae.clear();for(const s of ie){if((s.f&(ne|M))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)ie.has(f)&&(ie.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(ne|M))===0&&qe(o)}}ie.clear()}}ie=null}}function Gt(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&T)!==0?Gt(s,t,n,r):(i&(dt|Q))!==0&&(i&R)===0&&Jt(s,t,r)&&(A(s,R),ve(s))}}function Jt(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&T)!==0&&Jt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ve(e){for(var t=Xe=e;t.parent!==null;){t=t.parent;var n=t.f;if(gt&&t===p&&(n&Q)!==0&&(n&Ft)===0)return;if((n&(le|ee))!==0){if((n&k)===0)return;t.f^=k}}I.push(t)}function pr(e){let t=0,n=_e(0),r;return()=>{Qe()&&(E(n),cn(()=>(t===0&&(r=Yr(()=>e(()=>Pe(n)))),t+=1,()=>{pt(()=>{t-=1,t===0&&(r?.(),r=void 0,Pe(n))})})))}}var gr=ye|ce|Ue;function mr(e,t,n){new wr(e,t,n)}class wr{parent;#t=!1;#e;#n=m?g:null;#r;#o;#s;#i=null;#f=null;#l=null;#a=null;#u=null;#c=0;#h=0;#v=!1;#d=null;#w=pr(()=>(this.#d=_e(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=p.b,this.#t=!!this.#r.pending,this.#s=xt(()=>{if(p.b=this,m){const i=this.#n;Ge(),i.nodeType===Ee&&i.data===He?this.#y():this.#$()}else{var s=this.#g();try{this.#i=B(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},gr),m&&(this.#e=g)}#$(){try{this.#i=B(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#f=B(()=>t(this.#e)),Y.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(Y.ensure(),B(()=>this.#o(n)))),this.#h>0?this.#p():(Ne(this.#f,()=>{this.#f=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=q(),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.#r.pending}#_(t){var n=p,r=_,s=P;K(this.#s),D(this.#s),xe(this.#s.ctx);try{return t()}catch(i){return Ut(i),null}finally{K(n),D(r),xe(s)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),mn(this.#i,this.#a)),this.#f===null&&(this.#f=B(()=>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.#f&&Ne(this.#f,()=>{this.#f=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&Le(this.#d,this.#c)}get_effect_pending(){return this.#w(),E(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(C(this.#i),this.#i=null),this.#f&&(C(this.#f),this.#f=null),this.#l&&(C(this.#l),this.#l=null),m&&(O(this.#n),cr(),O(Je()));var s=!1,i=!1;const f=()=>{if(s){ur();return}s=!0,i&&ar(),Y.ensure(),this.#c=0,this.#l!==null&&Ne(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,B(()=>this.#o(this.#e)))),this.#h>0?this.#p():this.#t=!1};var l=_;try{D(null),i=!0,n?.(t,f),i=!1}catch(o){ke(o,this.#s&&this.#s.parent)}finally{D(l)}r&&pt(()=>{this.#l=this.#_(()=>{Y.ensure(),this.#v=!0;try{return B(()=>{r(this.#e,()=>t,()=>f)})}catch(o){return ke(o,this.#s.parent),null}finally{this.#v=!1}})})}}function $r(e,t,n){for(var r=[],s=t.length,i=0;i<s;i++)kt(t[i].e,r,!0);pn(r,()=>{var f=r.length===0&&n!==null;if(f){var l=n,o=l.parentNode;ln(o),o.append(l),e.items.clear(),W(e,t[0].prev,t[s-1].next)}for(var a=0;a<s;a++){var u=t[a];f||(e.items.delete(u.k),W(e,u.prev,u.next)),C(u.e,!f)}e.first===t[0]&&(e.first=t[0].prev)})}function yr(e,t,n,r,s,i=null){var f=e,l=new Map,o=null;{var a=e;f=m?O(Ce(a)):a.appendChild(q())}m&&Ge();var u=null,h=Ar(()=>{var y=n();return Ot(y)?y:y==null?[]:at(y)}),c,d=!0;function v(){br(S,c,f,t,r),u!==null&&(c.length===0?(u.fragment?(f.before(u.fragment),u.fragment=null):At(u.effect),w.first=u.effect):Ne(u.effect,()=>{u=null}))}var w=xt(()=>{c=E(h);var y=c.length;let b=!1;if(m){var Re=It(f)===He;Re!==(y===0)&&(f=Je(),O(f),re(!1),b=!0)}for(var fe=new Set,X=$,Oe=null,st=on(),De=0;De<y;De+=1){m&&g.nodeType===Ee&&g.data===lt&&(f=g,b=!0,re(!1));var Nt=c[De],ft=r(Nt,De),Z=d?null:l.get(ft);Z?(Le(Z.v,Nt),Z.i=De,st&&X.skipped_effects.delete(Z.e)):(Z=Er(d?f:null,Oe,Nt,ft,De,s,t,n),d&&(Z.o=!0,Oe===null?o=Z:Oe.next=Z,Oe=Z),l.set(ft,Z)),fe.add(ft)}if(y===0&&i&&!u)if(d)u={fragment:null,effect:B(()=>i(f))};else{var jn=document.createDocumentFragment(),qn=q();jn.append(qn),u={fragment:jn,effect:B(()=>i(qn))}}if(m&&y>0&&O(Je()),!d)if(st){for(const[gi,mi]of l)fe.has(gi)||X.skipped_effects.add(mi.e);X.oncommit(v),X.ondiscard(()=>{})}else v();b&&re(!0),E(h)}),S={effect:w,items:l,first:o};d=!1,m&&(f=g)}function br(e,t,n,r,s){var i=t.length,f=e.items,l=e.first,o,a=null,u=[],h=[],c,d,v,w;for(w=0;w<i;w+=1){if(c=t[w],d=s(c,w),v=f.get(d),e.first??=v,!v.o){v.o=!0;var S=a?a.next:l;W(e,a,v),W(e,v,S),wt(v,S,n),a=v,u=[],h=[],l=a.next;continue}if((v.e.f&M)!==0&&At(v.e),v!==l){if(o!==void 0&&o.has(v)){if(u.length<h.length){var y=h[0],b;a=y.prev;var Re=u[0],fe=u[u.length-1];for(b=0;b<u.length;b+=1)wt(u[b],y,n);for(b=0;b<h.length;b+=1)o.delete(h[b]);W(e,Re.prev,fe.next),W(e,a,Re),W(e,fe,y),l=y,a=fe,w-=1,u=[],h=[]}else o.delete(v),wt(v,l,n),W(e,v.prev,v.next),W(e,v,a===null?e.first:a.next),W(e,a,v),a=v;continue}for(u=[],h=[];l!==null&&l.k!==d;)(l.e.f&M)===0&&(o??=new Set).add(l),h.push(l),l=l.next;if(l===null)continue;v=l}u.push(v),a=v,l=v.next}if(l!==null||o!==void 0){for(var X=o===void 0?[]:at(o);l!==null;)(l.e.f&M)===0&&X.push(l),l=l.next;var Oe=X.length;if(Oe>0){var st=i===0?n:null;$r(e,X,st)}}}function Er(e,t,n,r,s,i,f,l){var o=(f&Bn)!==0,a=(f&Vn)===0,u=o?a?Qt(n,!1,!1):_e(n):n,h=(f&Hn)===0?s:_e(s),c={i:h,v:u,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=q())}return c.e=B(()=>i(e,u,h,l)),t!==null&&(t.next=c),c}finally{}}function wt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var f=z(i);s.before(i),i=f}}function W(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Tr(e,t,n,r){const s=$t;if(n.length===0&&e.length===0){r(t.map(s));return}var i=$,f=p,l=xr();function o(){Promise.all(n.map(a=>kr(a))).then(a=>{l();try{r([...t.map(s),...a])}catch(u){(f.f&ne)===0&&ke(u,f)}i?.deactivate(),Ze()}).catch(a=>{ke(a,f)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{i?.deactivate(),Ze()}}):o()}function xr(){var e=p,t=_,n=P,r=$;return function(i=!0){K(e),D(t),xe(n),i&&r?.activate()}}function Ze(){K(null),D(null),xe(null)}function $t(e){var t=T|R,n=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=ce),{ctx:P,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??p,ac:null}}function kr(e,t){let n=p;n===null&&er();var r=n.b,s=void 0,i=_e(x),f=!_,l=new Map;return Ir(()=>{var o=Lt();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===$&&a.committed&&a.deactivate(),Ze()})}catch(c){o.reject(c),Ze()}var a=$;if(f){var u=!r.is_pending();r.update_pending_count(1),a.increment(u),l.get(a)?.reject(be),l.delete(a),l.set(a,o)}const h=(c,d=void 0)=>{if(a.activate(),d)d!==be&&(i.f|=oe,Le(i,d));else{(i.f&oe)!==0&&(i.f^=oe),Le(i,c);for(const[v,w]of l){if(l.delete(v),v===a)break;w.reject(be)}}f&&(r.update_pending_count(-1),a.decrement(u))};o.promise.then(h,c=>h(null,c||"unknown"))}),an(()=>{for(const o of l.values())o.reject(be)}),new Promise(o=>{function a(u){function h(){u===s?o(i):a(s)}u.then(h,h)}a(s)})}function Ar(e){const t=$t(e);return t.equals=qt,t}function Kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function Cr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&ne)===0?t:null;t=t.parent}return null}function yt(e){var t,n=p;K(Cr(e));try{e.f&=~he,Kt(e),t=Tn(e)}finally{K(n)}return t}function Xt(e){var t=yt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=bn()),!pe)if(F!==null)Qe()&&F.set(e,t);else{var n=(e.f&V)===0?te:k;A(e,n)}}let bt=new Set;const ae=new Map;let Zt=!1;function _e(e,t){var n={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return n}function U(e,t){const n=_e(e);return Br(n),n}function Qt(e,t=!1,n=!0){const r=_e(e);return t||(r.equals=qt),r}function j(e,t,n=!1){_!==null&&(!J||(_.f&Pt)!==0)&&Vt()&&(_.f&(T|Q|dt|Pt))!==0&&!se?.includes(e)&&or();let r=n?Ae(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;pe?ae.set(e,t):ae.set(e,n),e.v=t;var r=Y.ensure();r.capture(e,n),(e.f&T)!==0&&((e.f&R)!==0&&yt(e),A(e,(e.f&V)!==0?k:te)),e.wv=bn(),en(e,R),p!==null&&(p.f&k)!==0&&(p.f&(ee|le))===0&&(H===null?Hr([e]):H.push(e)),!r.is_fork&&bt.size>0&&!Zt&&Nr()}return t}function Nr(){Zt=!1;var e=ue;et(!0);const t=Array.from(bt);try{for(const n of t)(n.f&k)!==0&&A(n,te),je(n)&&qe(n)}finally{et(e)}bt.clear()}function Pe(e){j(e,e.v+1)}function en(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&R)===0;if(l&&A(i,t),(f&T)!==0){var o=i;F?.delete(o),(f&he)===0&&(f&V&&(i.f|=he),en(o,te))}else l&&((f&Q)!==0&&ie!==null&&ie.add(i),ve(i))}}function Ae(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Dt(e);if(t!==Gn&&t!==Jn)return e;var n=new Map,r=Ot(e),s=U(0),i=ge,f=l=>{if(ge===i)return l();var o=_,a=ge;D(null),yn(i);var u=l();return D(o),yn(a),u};return r&&n.set("length",U(e.length)),new Proxy(e,{defineProperty(l,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&fr();var u=n.get(o);return u===void 0?u=f(()=>{var h=U(a.value);return n.set(o,h),h}):j(u,a.value,!0),!0},deleteProperty(l,o){var a=n.get(o);if(a===void 0){if(o in l){const u=f(()=>U(x));n.set(o,u),Pe(s)}}else j(a,x),Pe(s);return!0},get(l,o,a){if(o===vt)return e;var u=n.get(o),h=o in l;if(u===void 0&&(!h||$e(l,o)?.writable)&&(u=f(()=>{var d=Ae(h?l[o]:x),v=U(d);return v}),n.set(o,u)),u!==void 0){var c=E(u);return c===x?void 0:c}return Reflect.get(l,o,a)},getOwnPropertyDescriptor(l,o){var a=Reflect.getOwnPropertyDescriptor(l,o);if(a&&"value"in a){var u=n.get(o);u&&(a.value=E(u))}else if(a===void 0){var h=n.get(o),c=h?.v;if(h!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,o){if(o===vt)return!0;var a=n.get(o),u=a!==void 0&&a.v!==x||Reflect.has(l,o);if(a!==void 0||p!==null&&(!u||$e(l,o)?.writable)){a===void 0&&(a=f(()=>{var c=u?Ae(l[o]):x,d=U(c);return d}),n.set(o,a));var h=E(a);if(h===x)return!1}return u},set(l,o,a,u){var h=n.get(o),c=o in l;if(r&&o==="length")for(var d=a;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?j(v,x):d in l&&(v=f(()=>U(x)),n.set(d+"",v))}if(h===void 0)(!c||$e(l,o)?.writable)&&(h=f(()=>U(void 0)),j(h,Ae(a)),n.set(o,h));else{c=h.v!==x;var w=f(()=>Ae(a));j(h,w)}var S=Reflect.getOwnPropertyDescriptor(l,o);if(S?.set&&S.set.call(u,a),!c){if(r&&typeof o=="string"){var y=n.get("length"),b=Number(o);Number.isInteger(b)&&b>=y.v&&j(y,b+1)}Pe(s)}return!0},ownKeys(l){E(s);var o=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==x});for(var[a,u]of n)u.v!==x&&!(a in l)&&o.push(a);return o},setPrototypeOf(){lr()}})}var tn,nn,rn,sn;function Et(){if(tn===void 0){tn=window,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=$e(t,"firstChild").get,sn=$e(t,"nextSibling").get,Mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Mt(n)&&(n.__t=void 0)}}function q(e=""){return document.createTextNode(e)}function Ce(e){return rn.call(e)}function z(e){return sn.call(e)}function Fe(e,t){if(!m)return Ce(e);var n=Ce(g);if(n===null)n=g.appendChild(q());else if(t&&n.nodeType!==_t){var r=q();return n?.before(r),O(r),r}return O(n),n}function Sr(e,t=!1){if(!m){var n=Ce(e);return n instanceof Comment&&n.data===""?z(n):n}if(t&&g?.nodeType!==_t){var r=q();return g?.before(r),O(r),r}return g}function fn(e,t=1,n=!1){let r=m?g:e;for(var s;t--;)s=r,r=z(r);if(!m)return r;if(n&&r?.nodeType!==_t){var i=q();return r===null?s?.after(i):r.before(i),O(i),i}return O(r),r}function ln(e){e.textContent=""}function on(){return!1}function Rr(e,t,n,r=!0){r&&n();for(var s of t)e.addEventListener(s,n);an(()=>{for(var i of t)e.removeEventListener(i,n)})}function Tt(e){var t=_,n=p;D(null),K(null);try{return e()}finally{D(t),K(n)}}function Or(e){p===null&&(_===null&&rr(),nr()),pe&&tr()}function Dr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function G(e,t,n){var r=p;r!==null&&(r.f&M)!==0&&(e|=M);var s={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|R|V,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{qe(s),s.f|=We}catch(l){throw C(s),l}else t!==null&&ve(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ce)===0&&(i=i.first,(e&Q)!==0&&(e&ye)!==0&&i!==null&&(i.f|=ye)),i!==null&&(i.parent=r,r!==null&&Dr(i,r),_!==null&&(_.f&T)!==0&&(e&le)===0)){var f=_;(f.effects??=[]).push(i)}return s}function Qe(){return _!==null&&!J}function an(e){const t=G(ct,null,!1);return A(t,k),t.teardown=e,t}function Mr(e){Or();var t=p.f,n=!_&&(t&ee)!==0&&(t&We)===0;if(n){var r=P;(r.e??=[]).push(e)}else return un(e)}function un(e){return G(ut|Xn,e,!1)}function Lr(e){Y.ensure();const t=G(le|ce,e,!0);return()=>{C(t)}}function Pr(e){Y.ensure();const t=G(le|ce,e,!0);return(n={})=>new Promise(r=>{n.outro?Ne(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function Fr(e){return G(ut,e,!1)}function Ir(e){return G(dt|ce,e,!0)}function cn(e,t=0){return G(ct|t,e,!0)}function hn(e,t=[],n=[],r=[]){Tr(r,t,n,s=>{G(ct,()=>e(...s.map(E)),!0)})}function xt(e,t=0){var n=G(Q|t,e,!0);return n}function B(e){return G(ee|ce,e,!0)}function dn(e){var t=e.teardown;if(t!==null){const n=pe,r=_;wn(!0),D(null);try{t.call(null)}finally{wn(n),D(r)}}}function vn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Tt(()=>{s.abort(be)});var r=n.next;(n.f&le)!==0?n.parent=null:C(n,t),n=r}}function jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&C(t),t=n}}function C(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qr(e.nodes_start,e.nodes_end),n=!0),vn(e,t&&!n),tt(e,0),A(e,ne);var r=e.transitions;if(r!==null)for(const i of r)i.stop();dn(e);var s=e.parent;s!==null&&s.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qr(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function _n(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 Ne(e,t,n=!0){var r=[];kt(e,r,!0),pn(r,()=>{n&&C(e),t&&t()})}function pn(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&M)===0){if(e.f^=M,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&ye)!==0||(r.f&ee)!==0&&(e.f&Q)!==0;kt(r,t,i?n:!1),r=s}}}function At(e){gn(e,!0)}function gn(e,t){if((e.f&M)!==0){e.f^=M,(e.f&k)===0&&(A(e,R),ve(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ye)!==0||(n.f&ee)!==0;gn(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function mn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:z(n);t.append(n),n=s}}let ue=!1;function et(e){ue=e}let pe=!1;function wn(e){pe=e}let _=null,J=!1;function D(e){_=e}let p=null;function K(e){p=e}let se=null;function Br(e){_!==null&&(se===null?se=[e]:se.push(e))}let N=null,L=0,H=null;function Hr(e){H=e}let $n=1,Ie=0,ge=Ie;function yn(e){ge=e}function bn(){return++$n}function je(e){var t=e.f;if((t&R)!==0)return!0;if(t&T&&(e.f&=~he),(t&te)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(je(i)&&Xt(i),i.wv>e.wv)return!0}(t&V)!==0&&F===null&&A(e,k)}return!1}function En(e,t,n=!0){var r=e.reactions;if(r!==null&&!se?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&T)!==0?En(i,t,!1):t===i&&(n?A(i,R):(i.f&k)!==0&&A(i,te),ve(i))}}function Tn(e){var t=N,n=L,r=H,s=_,i=se,f=P,l=J,o=ge,a=e.f;N=null,L=0,H=null,_=(a&(ee|le))===0?e:null,se=null,xe(e.ctx),J=!1,ge=++Ie,e.ac!==null&&(Tt(()=>{e.ac.abort(be)}),e.ac=null);try{e.f|=ht;var u=e.fn,h=u(),c=e.deps;if(N!==null){var d;if(tt(e,L),c!==null&&L>0)for(c.length=L+N.length,d=0;d<N.length;d++)c[L+d]=N[d];else e.deps=c=N;if(ue&&Qe()&&(e.f&V)!==0)for(d=L;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&L<c.length&&(tt(e,L),c.length=L);if(Vt()&&H!==null&&!J&&c!==null&&(e.f&(T|te|R))===0)for(d=0;d<H.length;d++)En(H[d],e);return s!==null&&s!==e&&(Ie++,H!==null&&(r===null?r=H:r.push(...H))),(e.f&oe)!==0&&(e.f^=oe),h}catch(v){return Ut(v)}finally{e.f^=ht,N=t,L=n,H=r,_=s,se=i,xe(f),J=l,ge=o}}function Vr(e,t){let n=t.reactions;if(n!==null){var r=Wn.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&T)!==0&&(N===null||!N.includes(t))&&(A(t,te),(t.f&V)!==0&&(t.f^=V,t.f&=~he),Kt(t),tt(t,0))}function tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vr(e,n[r])}function qe(e){var t=e.f;if((t&ne)===0){A(e,k);var n=p,r=ue;p=e,ue=!0;try{(t&Q)!==0?jr(e):vn(e),dn(e);var s=Tn(e);e.teardown=typeof s=="function"?s:null,e.wv=$n;var i;ot&&dr&&(e.f&R)!==0&&e.deps}finally{ue=r,p=n}}}function E(e){var t=e.f,n=(t&T)!==0;if(_!==null&&!J){var r=p!==null&&(p.f&ne)!==0;if(!r&&!se?.includes(e)){var s=_.deps;if((_.f&ht)!==0)e.rv<Ie&&(e.rv=Ie,N===null&&s!==null&&s[L]===e?L++:N===null?N=[e]:N.includes(e)||N.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(pe){if(ae.has(e))return ae.get(e);if(n){var f=e,l=f.v;return((f.f&k)===0&&f.reactions!==null||kn(f))&&(l=yt(f)),ae.set(f,l),l}}else n&&!F?.has(e)&&(f=e,je(f)&&Xt(f),ue&&Qe()&&(f.f&V)===0&&xn(f));if(F?.has(e))return F.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function xn(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&V)===0&&xn(t)}}function kn(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&T)!==0&&kn(t))return!0;return!1}function Yr(e){var t=J;try{return J=!0,e()}finally{J=t}}const Ur=-7169;function A(e,t){e.f=e.f&Ur|t}const Wr=new Set,An=new Set;let Cn=null;function nt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Cn=e;var f=0,l=Cn===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;o<=a&&(f=o)}if(i=s[f]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=_,h=p;D(null),K(null);try{for(var c,d=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var w=i["__"+r];w!=null&&(!i.disabled||e.target===i)&&w.call(i,e)}catch(S){c?d.push(S):c=S}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let S of d)queueMicrotask(()=>{throw S});throw c}}finally{e.__root=t,delete e.currentTarget,D(u),K(h)}}}function zr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Be(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Nn(e,t){var n=(t&Yn)!==0,r,s=!e.startsWith("<!>");return()=>{if(m)return Be(g,null),g;r===void 0&&(r=zr(s?e:"<!>"+e),r=Ce(r));var i=n||nn?document.importNode(r,!0):r.cloneNode(!0);return Be(i,i),i}}function Gr(){if(m)return Be(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=q();return e.append(t,n),Be(t,n),e}function rt(e,t){if(m){var n=p;((n.f&We)===0||n.nodes_end===null)&&(n.nodes_end=g),Ge();return}e!==null&&e.before(t)}const Jr=["touchstart","touchmove"];function Kr(e){return Jr.includes(e)}function Sn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Rn(e,t){return On(e,t)}function Xr(e,t){Et(),t.intro=t.intro??!1;const n=t.target,r=m,s=g;try{for(var i=Ce(n);i&&(i.nodeType!==Ee||i.data!==Rt);)i=z(i);if(!i)throw we;re(!0),O(i);const f=On(e,{...t,anchor:i});return re(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==we&&console.warn("Failed to hydrate: ",f),t.recover===!1&&sr(),Et(),ln(n),re(!1),Rn(e,t)}finally{re(r),O(s)}}const Se=new Map;function On(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){Et();var l=new Set,o=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!l.has(d)){l.add(d);var v=Kr(d);t.addEventListener(d,nt,{passive:v});var w=Se.get(d);w===void 0?(document.addEventListener(d,nt,{passive:v}),Se.set(d,1)):Se.set(d,w+1)}}};o(at(Wr)),An.add(o);var a=void 0,u=Pr(()=>{var h=n??t.appendChild(q());return mr(h,{pending:()=>{}},c=>{if(i){Bt({});var d=P;d.c=i}if(s&&(r.$$events=s),m&&Be(c,null),a=e(c,r)||{},m&&(p.nodes_end=g,g===null||g.nodeType!==Ee||g.data!==lt))throw ze(),we;i&&Ht()}),()=>{for(var c of l){t.removeEventListener(c,nt);var d=Se.get(c);--d===0?(document.removeEventListener(c,nt),Se.delete(c)):Se.set(c,d)}An.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return Ct.set(a,u),a}let Ct=new WeakMap;function Zr(e,t){const n=Ct.get(e);return n?(Ct.delete(e),n(t)):Promise.resolve()}class Qr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=$;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)At(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#n.get(f);l&&(C(l.effect),this.#n.delete(f))}for(const[i,f]of this.#e){if(i===n||this.#r.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var a=document.createDocumentFragment();mn(f,a),a.append(q()),this.#n.set(i,{effect:f,fragment:a})}else C(f);this.#r.delete(i),this.#e.delete(i)};this.#o||!r?(this.#r.add(i),Ne(f,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(C(s.effect),this.#n.delete(r))};ensure(t,n){var r=$,s=on();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),f=q();i.append(f),this.#n.set(t,{effect:B(()=>n(f)),fragment:i})}else this.#e.set(t,B(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else m&&(this.anchor=g),this.#s()}}function ei(e,t,n=!1){m&&Ge();var r=new Qr(e),s=n?ye:0;function i(f,l){if(m){const a=It(e)===He;if(f===a){var o=Je();O(o),r.anchor=o,re(!1),r.ensure(f,l),re(!0);return}}r.ensure(f,l)}xt(()=>{var f=!1;t((l,o=!0)=>{f=!0,i(o,l)}),f||i(!1,null)},s)}function ti(e,t){Fr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function ni(e,t){return e==null?null:String(e)}function ri(e,t,n,r){var s=e.__style;if(m||s!==t){var i=ni(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const ii=Symbol("is custom element"),si=Symbol("is html");function Dn(e,t,n,r){var s=fi(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Qn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function fi(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Un}}var Mn=new Map;function li(e){var t=e.getAttribute("is")||e.nodeName,n=Mn.get(t);if(n)return n;Mn.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=zn(s);for(var f in r)r[f].set&&n.push(f);s=Dt(s)}return n}function oi(e,t){Rr(window,["resize"],()=>Tt(()=>t(window[e])))}function Ln(e,t,n,r){var s=r,i=!0,f=()=>(i&&(i=!1,s=r),s),l;l=e[t],l===void 0&&r!==void 0&&(l=f());var o;o=()=>{var c=e[t];return c===void 0?f():(i=!0,c)};var a=!1,u=$t(()=>(a=!1,o())),h=p;return(function(c,d){if(arguments.length>0){const v=d?E(u):c;return j(u,v),a=!0,s!==void 0&&(s=v),c}return pe&&a||(h.f&ne)!==0?u.v:E(u)})}function ai(e){return new ui(e)}class ui{#t;#e;constructor(t){var n=new Map,r=(i,f)=>{var l=Qt(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return E(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Zn?!0:(E(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return j(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#e=(t.hydrate?Xr:Rn)(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)&&mt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#e[i]},set(f){this.#e[i]=f},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Zr(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 Pn;typeof HTMLElement=="function"&&(Pn=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),rt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ci(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]=it(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=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Lr(()=>{cn(()=>{this.$$r=!0;for(const r of Ve(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=it(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]=it(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 Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(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 ci(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function hi(e,t,n,r,s,i){let f=class extends Pn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ve(t).forEach(l=>{Ye(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=it(l,o,t),this.$$d[l]=o;var a=this.$$c;if(a){var u=$e(a,l)?.get;u?a[l]=o:a.$set({[l]:o})}}})}),r.forEach(l=>{Ye(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}var me={},Fn;function di(){if(Fn)return me;Fn=1,Object.defineProperty(me,"__esModule",{value:!0}),me.LanguageTranslator=void 0,me.getChildStyleToPass=e,me.addComponent=t;function e(r,s){var i,f,l="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((f=s?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||f===void 0)&&f.length))for(var o=function(c){var d=s?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});d&&(l+="".concat(c,":").concat(r[c],";"))},a=0,u=Object.keys(r);a<u.length;a++){var h=u[a];o(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var f=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var l=document.createElement("script");if(l.id=i+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(f),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=i.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(i.replace(o+"-",""),"/").concat(f)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,f){return r.formatDate(s,i,f||this.lang)},r.getDefaultLang=function(){var s,i,f,l="en";return navigator?.languages&&(!((f=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||f===void 0)&&f.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(s,i,f){var l;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(f&&(!((l=i[f])===null||l===void 0)&&l[s]))return i[f][s];var o="",a=r.getDefaultLang();if(!f||a!==f){var u=i?.[a];u?.[s]&&(o=u[s])}return o},r.formatDate=function(s,i,f){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(f||r.getDefaultLang(),i);return l.format(s)},r})();return me.LanguageTranslator=n,me}di();var vi=Nn('<div class="collection_item svelte-16chsc" part="item"><div class="collection_item_image"><img part="image" class="svelte-16chsc"/></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),_i=Nn('<div id="collection_container" part="container" class="svelte-16chsc"></div>');const pi={hash:"svelte-16chsc",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;}#collection_container.svelte-16chsc {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-16chsc {max-width:100%;}img.svelte-16chsc {width:100%;height:100%;object-fit:cover;}'};function In(e,t){Bt(t,!0),ti(e,pi);let n=Ln(t,"id",7,""),r=Ln(t,"collection"),s=U(0),i=U(5);Ae({}),Mr(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(h){console.error("error parsing collection",h)}let u=0;if(r()?.length&&r().forEach(h=>{h.index=u++}),r()){const h=Math.round(E(s)/250);j(i,h<r().length?h:r().length,!0)}else j(i,5)});var f={get id(){return n()},set id(u=""){n(u),mt()},get collection(){return r()},set collection(u){r(u),mt()}},l=Gr(),o=Sr(l);{var a=u=>{var h=_i();yr(h,21,r,c=>c.index,(c,d)=>{var v=vi(),w=Fe(v),S=Fe(w);Te(w);var y=fn(w,2),b=Fe(y),Re=Fe(b,!0);Te(b);var fe=fn(b,2),X=Fe(fe,!0);Te(fe),Te(y),Te(v),hn(()=>{Dn(S,"src",E(d).image),Dn(S,"alt",E(d).title),Sn(Re,E(d).title),Sn(X,E(d).text)}),rt(c,v)}),Te(h),hn(()=>ri(h,`grid-template-columns: repeat(${E(i)||5}, auto)`)),rt(u,h)};ei(o,u=>{r()?.length&&u(a)})}return oi("innerWidth",u=>j(s,u,!0)),rt(e,l),Ht(f)}customElements.define("hb-vertical-img-txt-archive",hi(In,{id:{},collection:{}},[],[],!0)),St.Component=In,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
|
|
3
3
|
//# sourceMappingURL=main.iife.js.map
|