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