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