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