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