@htmlbricks/hb-auth 0.61.35 → 0.61.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(Pr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Gn=1,Xn=2,Kn=16,Zn=1,Qn=2,Gt="[",Xt="[!",Kt="]",ft={},ae=Symbol(),es="http://www.w3.org/1999/xhtml",Or=!1;var Zt=Array.isArray,ts=Array.prototype.indexOf,Qt=Array.from,Ot=Object.keys,ut=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyDescriptors,ns=Object.prototype,ss=Array.prototype,Mr=Object.getPrototypeOf,Lr=Object.isExtensible;function Ir(e){for(var t=0;t<e.length;t++)e[t]()}function os(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const ye=2,er=4,tr=8,vt=16,Ue=32,Ye=64,Dr=128,$e=256,Mt=512,ue=1024,Te=2048,Je=4096,Ae=8192,tt=16384,rr=32768,nr=65536,Fr=1<<17,qr=1<<18,bt=1<<19,is=1<<20,sr=1<<21,or=1<<22,rt=1<<23,ir=Symbol("$state"),as=Symbol("legacy props"),ls=Symbol(""),ar=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},lr=3,ht=8;function cs(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function fs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function us(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ds(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function vs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function bs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function gs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _s(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function we(e){x=e}let P;function me(e){if(e===null)throw Lt(),ft;return P=e}function xt(){return me(Oe(P))}function $(e){if(x){if(Oe(P)!==null)throw Lt(),ft;P=e}}function It(e=1){if(x){for(var t=e,r=P;t--;)r=Oe(r);P=r}}function cr(){for(var e=0,t=P;;){if(t.nodeType===ht){var r=t.data;if(r===Kt){if(e===0)return t;e-=1}else(r===Gt||r===Xt)&&(e+=1)}var n=Oe(t);t.remove(),t=n}}function jr(e){if(!e||e.nodeType!==ht)throw Lt(),ft;return e.data}function Wr(e){return e===this.v}function ps(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Br(e){return!ps(e,this.v)}let ys=!1,Re=null;function Dt(e){Re=e}function zr(e,t=!1,r){Re={p:Re,c:null,e:null,s:e,x:null,l:null}}function Ur(e){var t=Re,r=t.e;if(r!==null){t.e=null;for(var n of r)bn(n)}return e!==void 0&&(t.x=e),Re=t.p,e??{}}function Vr(){return!0}const ws=new WeakMap;function xs(e){var t=k;if(t===null)return N.f|=rt,e;if((t.f&rr)===0){if((t.f&Dr)===0)throw!t.parent&&e instanceof Error&&Hr(e),e;t.b.error(e)}else fr(e,t)}function fr(e,t){for(;t!==null;){if((t.f&Dr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Hr(e),e}function Hr(e){const t=ws.get(e);t&&(ut(e,"message",{value:t.message}),ut(e,"stack",{value:t.stack}))}const ks=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let kt=[],Et=[];function Yr(){var e=kt;kt=[],Ir(e)}function Jr(){var e=Et;Et=[],Ir(e)}function Es(e){kt.length===0&&queueMicrotask(Yr),kt.push(e)}function $s(e){Et.length===0&&ks(Jr),Et.push(e)}function Ts(){kt.length>0&&Yr(),Et.length>0&&Jr()}function Cs(){const e=k.b;return e===null&&cs(),e}function ur(e){var t=ye|Te,r=N!==null&&(N.f&ye)!==0?N:null;return k===null||r!==null&&(r.f&$e)!==0?t|=$e:k.f|=bt,{ctx:Re,deps:null,effects:null,equals:Wr,f:t,fn:e,reactions:null,rv:0,v:ae,wv:0,parent:r??k,ac:null}}function Ss(e,t){let r=k;r===null&&fs();var n=r.b,s=void 0,o=$t(ae),i=null,l=!N;return Ws(()=>{try{var c=e();i&&Promise.resolve(c).catch(()=>{})}catch(h){c=Promise.reject(h)}var f=()=>c;s=i?.then(f,f)??Promise.resolve(c),i=s;var u=j,m=n.is_pending();l&&(n.update_pending_count(1),m||u.increment());const v=(h,d=void 0)=>{i=null,m||u.activate(),d?d!==ar&&(o.f|=rt,Bt(o,d)):((o.f&rt)!==0&&(o.f^=rt),Bt(o,h)),l&&(n.update_pending_count(-1),m||u.decrement()),Kr()};if(s.then(v,h=>v(null,h||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(c=>{function f(u){function m(){u===s?c(o):f(s)}u.then(m,m)}f(s)})}function Ns(e){const t=ur(e);return t.equals=Br,t}function Gr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)qe(t[r])}}function As(e){for(var t=e.parent;t!==null;){if((t.f&ye)===0)return t;t=t.parent}return null}function dr(e){var t,r=k;We(As(e));try{Gr(e),t=Tn(e)}finally{We(r)}return t}function Xr(e){var t=dr(e);if(e.equals(t)||(e.v=t,e.wv=En()),!it){var r=(Ke||(e.f&$e)!==0)&&e.deps!==null?Je:ue;_e(e,r)}}function Rs(e,t,r){const n=ur;if(t.length===0){r(e.map(n));return}var s=j,o=k,i=Ps(),l=Cs();Promise.all(t.map(c=>Ss(c))).then(c=>{s?.activate(),i();try{r([...e.map(n),...c])}catch(f){(o.f&tt)===0&&fr(f,o)}s?.deactivate(),Kr()}).catch(c=>{l.error(c)})}function Ps(){var e=k,t=N,r=Re,n=j;return function(){We(e),Ce(t),Dt(r),n?.activate()}}function Kr(){We(null),Ce(null),Dt(null)}const vr=new Set;let j=null,Ft=null,Zr=new Set,qt=[];function Qr(){const e=qt.shift();qt.length>0&&queueMicrotask(Qr),e()}let nt=[],jt=null,br=!1,Wt=!1;class st{current=new Map;#t=new Map;#e=new Set;#r=0;#c=null;#f=!1;#s=[];#i=[];#o=[];#n=[];#a=[];#u=[];#d=[];skipped_effects=new Set;process(t){nt=[],Ft=null;for(const s of t)this.#b(s);if(this.#s.length===0&&this.#r===0){this.#v();var r=this.#o,n=this.#n;this.#o=[],this.#n=[],this.#a=[],Ft=j,j=null,tn(r),tn(n),j===null?j=this:vr.delete(this),this.#c?.resolve()}else this.#l(this.#o),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)yt(s);for(const s of this.#i)yt(s);this.#s=[],this.#i=[]}#b(t){t.f^=ue;for(var r=t.first;r!==null;){var n=r.f,s=(n&(Ue|Ye))!==0,o=s&&(n&ue)!==0,i=o||(n&Ae)!==0||this.skipped_effects.has(r);if(!i&&r.fn!==null){if(s)r.f^=ue;else if((n&er)!==0)this.#n.push(r);else if((n&ue)===0)if((n&or)!==0){var l=r.b?.is_pending()?this.#i:this.#s;l.push(r)}else Ut(r)&&((r.f&vt)!==0&&this.#a.push(r),yt(r));var c=r.first;if(c!==null){r=c;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&Te)!==0?this.#u:this.#d).push(r),_e(r,ue);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){j=this}deactivate(){j=null,Ft=null;for(const t of Zr)if(Zr.delete(t),t(),j!==null)break}neuter(){this.#f=!0}flush(){nt.length>0?en():this.#v(),j===this&&(this.#r===0&&vr.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#u)_e(t,Te),mt(t);for(const t of this.#d)_e(t,Je),mt(t);this.#o=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#c??=os()).promise}static ensure(){if(j===null){const t=j=new st;vr.add(j),Wt||st.enqueue(()=>{j===t&&t.flush()})}return j}static enqueue(t){qt.length===0&&queueMicrotask(Qr),qt.unshift(t)}}function W(e){var t=Wt;Wt=!0;try{for(var r;;){if(Ts(),nt.length===0&&(j?.flush(),nt.length===0))return jt=null,r;en()}}finally{Wt=t}}function en(){var e=pt;br=!0;try{var t=0;for(yn(!0);nt.length>0;){var r=st.ensure();if(t++>1e3){var n,s;Os()}r.process(nt),Ge.clear()}}finally{br=!1,yn(e),jt=null}}function Os(){try{bs()}catch(e){fr(e,jt)}}let ot=null;function tn(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(tt|Ae))===0&&Ut(n)&&(ot=[],yt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?gn(n):n.fn=null),ot?.length>0)){Ge.clear();for(const s of ot)yt(s);ot=[]}}ot=null}}function mt(e){for(var t=jt=e;t.parent!==null;){t=t.parent;var r=t.f;if(br&&t===k&&(r&vt)!==0)return;if((r&(Ye|Ue))!==0){if((r&ue)===0)return;t.f^=ue}}nt.push(t)}const Ge=new Map;function $t(e,t){var r={f:0,v:e,reactions:null,equals:Wr,rv:0,wv:0};return r}function ge(e,t){const r=$t(e);return Us(r),r}function rn(e,t=!1,r=!0){const n=$t(e);return t||(n.equals=Br),n}function V(e,t,r=!1){N!==null&&(!je||(N.f&Fr)!==0)&&Vr()&&(N.f&(ye|vt|or|Fr))!==0&&!Ve?.includes(e)&&_s();let n=r?gt(t):t;return Bt(e,n)}function Bt(e,t){if(!e.equals(t)){var r=e.v;it?Ge.set(e,t):Ge.set(e,r),e.v=t;var n=st.ensure();n.capture(e,r),(e.f&ye)!==0&&((e.f&Te)!==0&&dr(e),_e(e,(e.f&$e)===0?ue:Je)),e.wv=En(),nn(e,Te),k!==null&&(k.f&ue)!==0&&(k.f&(Ue|Ye))===0&&(Se===null?Vs([e]):Se.push(e))}return t}function hr(e){V(e,e.v+1)}function nn(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var o=r[s],i=o.f,l=(i&Te)===0;l&&_e(o,t),(i&ye)!==0?nn(o,Je):l&&((i&vt)!==0&&ot!==null&&ot.push(o),mt(o))}}function gt(e){if(typeof e!="object"||e===null||ir in e)return e;const t=Mr(e);if(t!==ns&&t!==ss)return e;var r=new Map,n=Zt(e),s=ge(0),o=at,i=l=>{if(at===o)return l();var c=N,f=at;Ce(null),kn(o);var u=l();return Ce(c),kn(f),u};return n&&r.set("length",ge(e.length)),new Proxy(e,{defineProperty(l,c,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&ms();var u=r.get(c);return u===void 0?u=i(()=>{var m=ge(f.value);return r.set(c,m),m}):V(u,f.value,!0),!0},deleteProperty(l,c){var f=r.get(c);if(f===void 0){if(c in l){const u=i(()=>ge(ae));r.set(c,u),hr(s)}}else V(f,ae),hr(s);return!0},get(l,c,f){if(c===ir)return e;var u=r.get(c),m=c in l;if(u===void 0&&(!m||dt(l,c)?.writable)&&(u=i(()=>{var h=gt(m?l[c]:ae),d=ge(h);return d}),r.set(c,u)),u!==void 0){var v=b(u);return v===ae?void 0:v}return Reflect.get(l,c,f)},getOwnPropertyDescriptor(l,c){var f=Reflect.getOwnPropertyDescriptor(l,c);if(f&&"value"in f){var u=r.get(c);u&&(f.value=b(u))}else if(f===void 0){var m=r.get(c),v=m?.v;if(m!==void 0&&v!==ae)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return f},has(l,c){if(c===ir)return!0;var f=r.get(c),u=f!==void 0&&f.v!==ae||Reflect.has(l,c);if(f!==void 0||k!==null&&(!u||dt(l,c)?.writable)){f===void 0&&(f=i(()=>{var v=u?gt(l[c]):ae,h=ge(v);return h}),r.set(c,f));var m=b(f);if(m===ae)return!1}return u},set(l,c,f,u){var m=r.get(c),v=c in l;if(n&&c==="length")for(var h=f;h<m.v;h+=1){var d=r.get(h+"");d!==void 0?V(d,ae):h in l&&(d=i(()=>ge(ae)),r.set(h+"",d))}if(m===void 0)(!v||dt(l,c)?.writable)&&(m=i(()=>ge(void 0)),V(m,gt(f)),r.set(c,m));else{v=m.v!==ae;var g=i(()=>gt(f));V(m,g)}var p=Reflect.getOwnPropertyDescriptor(l,c);if(p?.set&&p.set.call(u,f),!v){if(n&&typeof c=="string"){var K=r.get("length"),T=Number(c);Number.isInteger(T)&&T>=K.v&&V(K,T+1)}hr(s)}return!0},ownKeys(l){b(s);var c=Reflect.ownKeys(l).filter(m=>{var v=r.get(m);return v===void 0||v.v!==ae});for(var[f,u]of r)u.v!==ae&&!(f in l)&&c.push(f);return c},setPrototypeOf(){gs()}})}var sn,on,an,ln;function mr(){if(sn===void 0){sn=window,on=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;an=dt(t,"firstChild").get,ln=dt(t,"nextSibling").get,Lr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lr(r)&&(r.__t=void 0)}}function Pe(e=""){return document.createTextNode(e)}function Xe(e){return an.call(e)}function Oe(e){return ln.call(e)}function S(e,t){if(!x)return Xe(e);var r=Xe(P);if(r===null)r=P.appendChild(Pe());else if(t&&r.nodeType!==lr){var n=Pe();return r?.before(n),me(n),n}return me(r),r}function se(e,t){if(!x){var r=Xe(e);return r instanceof Comment&&r.data===""?Oe(r):r}return P}function Y(e,t=1,r=!1){let n=x?P:e;for(var s;t--;)s=n,n=Oe(n);if(!x)return n;if(r&&n?.nodeType!==lr){var o=Pe();return n===null?s?.after(o):n.before(o),me(o),o}return me(n),n}function cn(e){e.textContent=""}function fn(){return!1}let un=!1;function dn(){un||(un=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function zt(e){var t=N,r=k;Ce(null),We(null);try{return e()}finally{Ce(t),We(r)}}function vn(e,t,r,n=r){e.addEventListener(t,()=>zt(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),dn()}function Ms(e){k===null&&N===null&&vs(),N!==null&&(N.f&$e)!==0&&k===null&&ds(),it&&us()}function Ls(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Fe(e,t,r,n=!0){var s=k;s!==null&&(s.f&Ae)!==0&&(e|=Ae);var o={ctx:Re,deps:null,nodes_start:null,nodes_end:null,f:e|Te,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{yt(o),o.f|=rr}catch(c){throw qe(o),c}else t!==null&&mt(o);if(n){var i=o;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&bt)===0&&(i=i.first),i!==null&&(i.parent=s,s!==null&&Ls(i,s),N!==null&&(N.f&ye)!==0&&(e&Ye)===0)){var l=N;(l.effects??=[]).push(i)}}return o}function Is(e){const t=Fe(tr,null,!1);return _e(t,ue),t.teardown=e,t}function Ds(e){Ms();var t=k.f,r=!N&&(t&Ue)!==0&&(t&rr)===0;if(r){var n=Re;(n.e??=[]).push(e)}else return bn(e)}function bn(e){return Fe(er|is,e,!1)}function Fs(e){st.ensure();const t=Fe(Ye|bt,e,!0);return()=>{qe(t)}}function qs(e){st.ensure();const t=Fe(Ye|bt,e,!0);return(r={})=>new Promise(n=>{r.outro?pr(t,()=>{qe(t),n(void 0)}):(qe(t),n(void 0))})}function js(e){return Fe(er,e,!1)}function Ws(e){return Fe(or|bt,e,!0)}function gr(e,t=0){return Fe(tr|t,e,!0)}function J(e,t=[],r=[]){Rs(t,r,n=>{Fe(tr,()=>e(...n.map(b)),!0)})}function _r(e,t=0){var r=Fe(vt|t,e,!0);return r}function _t(e,t=!0){return Fe(Ue|bt,e,!0,t)}function hn(e){var t=e.teardown;if(t!==null){const r=it,n=N;wn(!0),Ce(null);try{t.call(null)}finally{wn(r),Ce(n)}}}function mn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&zt(()=>{s.abort(ar)});var n=r.next;(r.f&Ye)!==0?r.parent=null:qe(r,t),r=n}}function Bs(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ue)===0&&qe(t),t=r}}function qe(e,t=!0){var r=!1;(t||(e.f&qr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(zs(e.nodes_start,e.nodes_end),r=!0),mn(e,t&&!r),Vt(e,0),_e(e,tt);var n=e.transitions;if(n!==null)for(const o of n)o.stop();hn(e);var s=e.parent;s!==null&&s.first!==null&&gn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function zs(e,t){for(;e!==null;){var r=e===t?null:Oe(e);e.remove(),e=r}}function gn(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 pr(e,t){var r=[];yr(e,r,!0),_n(r,()=>{qe(e),t&&t()})}function _n(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function yr(e,t,r){if((e.f&Ae)===0){if(e.f^=Ae,e.transitions!==null)for(const i of e.transitions)(i.is_global||r)&&t.push(i);for(var n=e.first;n!==null;){var s=n.next,o=(n.f&nr)!==0||(n.f&Ue)!==0;yr(n,t,o?r:!1),n=s}}}function wr(e){pn(e,!0)}function pn(e,t){if((e.f&Ae)!==0){e.f^=Ae,(e.f&ue)===0&&(_e(e,Te),mt(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&nr)!==0||(r.f&Ue)!==0;pn(r,s?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let pt=!1;function yn(e){pt=e}let it=!1;function wn(e){it=e}let N=null,je=!1;function Ce(e){N=e}let k=null;function We(e){k=e}let Ve=null;function Us(e){N!==null&&(Ve===null?Ve=[e]:Ve.push(e))}let ve=null,xe=0,Se=null;function Vs(e){Se=e}let xn=1,Tt=0,at=Tt;function kn(e){at=e}let Ke=!1;function En(){return++xn}function Ut(e){var t=e.f;if((t&Te)!==0)return!0;if((t&Je)!==0){var r=e.deps,n=(t&$e)!==0;if(r!==null){var s,o,i=(t&Mt)!==0,l=n&&k!==null&&!Ke,c=r.length;if((i||l)&&(k===null||(k.f&tt)===0)){var f=e,u=f.parent;for(s=0;s<c;s++)o=r[s],(i||!o?.reactions?.includes(f))&&(o.reactions??=[]).push(f);i&&(f.f^=Mt),l&&u!==null&&(u.f&$e)===0&&(f.f^=$e)}for(s=0;s<c;s++)if(o=r[s],Ut(o)&&Xr(o),o.wv>e.wv)return!0}(!n||k!==null&&!Ke)&&_e(e,ue)}return!1}function $n(e,t,r=!0){var n=e.reactions;if(n!==null&&!Ve?.includes(e))for(var s=0;s<n.length;s++){var o=n[s];(o.f&ye)!==0?$n(o,t,!1):t===o&&(r?_e(o,Te):(o.f&ue)!==0&&_e(o,Je),mt(o))}}function Tn(e){var t=ve,r=xe,n=Se,s=N,o=Ke,i=Ve,l=Re,c=je,f=at,u=e.f;ve=null,xe=0,Se=null,Ke=(u&$e)!==0&&(je||!pt||N===null),N=(u&(Ue|Ye))===0?e:null,Ve=null,Dt(e.ctx),je=!1,at=++Tt,e.ac!==null&&(zt(()=>{e.ac.abort(ar)}),e.ac=null);try{e.f|=sr;var m=e.fn,v=m(),h=e.deps;if(ve!==null){var d;if(Vt(e,xe),h!==null&&xe>0)for(h.length=xe+ve.length,d=0;d<ve.length;d++)h[xe+d]=ve[d];else e.deps=h=ve;if(!Ke||(u&ye)!==0&&e.reactions!==null)for(d=xe;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&xe<h.length&&(Vt(e,xe),h.length=xe);if(Vr()&&Se!==null&&!je&&h!==null&&(e.f&(ye|Je|Te))===0)for(d=0;d<Se.length;d++)$n(Se[d],e);return s!==null&&s!==e&&(Tt++,Se!==null&&(n===null?n=Se:n.push(...Se))),(e.f&rt)!==0&&(e.f^=rt),v}catch(g){return xs(g)}finally{e.f^=sr,ve=t,xe=r,Se=n,N=s,Ke=o,Ve=i,Dt(l),je=c,at=f}}function Hs(e,t){let r=t.reactions;if(r!==null){var n=ts.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&ye)!==0&&(ve===null||!ve.includes(t))&&(_e(t,Je),(t.f&($e|Mt))===0&&(t.f^=Mt),Gr(t),Vt(t,0))}function Vt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Hs(e,r[n])}function yt(e){var t=e.f;if((t&tt)===0){_e(e,ue);var r=k,n=pt;k=e,pt=!0;try{(t&vt)!==0?Bs(e):mn(e),hn(e);var s=Tn(e);e.teardown=typeof s=="function"?s:null,e.wv=xn;var o;Or&&ys&&(e.f&Te)!==0&&e.deps}finally{pt=n,k=r}}}async function Ys(){await Promise.resolve(),W()}function b(e){var t=e.f,r=(t&ye)!==0;if(N!==null&&!je){var n=k!==null&&(k.f&tt)!==0;if(!n&&!Ve?.includes(e)){var s=N.deps;if((N.f&sr)!==0)e.rv<Tt&&(e.rv=Tt,ve===null&&s!==null&&s[xe]===e?xe++:ve===null?ve=[e]:(!Ke||!ve.includes(e))&&ve.push(e));else{(N.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[N]:o.includes(N)||o.push(N)}}}else if(r&&e.deps===null&&e.effects===null){var i=e,l=i.parent;l!==null&&(l.f&$e)===0&&(i.f^=$e)}if(it){if(Ge.has(e))return Ge.get(e);if(r){i=e;var c=i.v;return((i.f&ue)===0&&i.reactions!==null||Cn(i))&&(c=dr(i)),Ge.set(i,c),c}}else r&&(i=e,Ut(i)&&Xr(i));if((e.f&rt)!==0)throw e.v;return e.v}function Cn(e){if(e.v===ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&ye)!==0&&Cn(t))return!0;return!1}function Sn(e){var t=je;try{return je=!0,e()}finally{je=t}}const Js=-7169;function _e(e,t){e.f=e.f&Js|t}const Nn=new Set,xr=new Set;function Gs(e,t,r,n={}){function s(o){if(n.capture||Ct.call(t,o),!o.cancelBubble)return zt(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Es(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function kr(e,t,r,n,s){var o={capture:n,passive:s},i=Gs(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Is(()=>{t.removeEventListener(e,i,o)})}function Xs(e){for(var t=0;t<e.length;t++)Nn.add(e[t]);for(var r of xr)r(e)}let An=null;function Ct(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;An=e;var i=0,l=An===e&&e.__root;if(l){var c=s.indexOf(l);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;c<=f&&(i=c)}if(o=s[i]||e.target,o!==t){ut(e,"currentTarget",{configurable:!0,get(){return o||r}});var u=N,m=k;Ce(null),We(null);try{for(var v,h=[];o!==null;){var d=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+n];if(g!=null&&(!o.disabled||e.target===o))if(Zt(g)){var[p,...K]=g;p.apply(o,[e,...K])}else g.call(o,e)}catch(T){v?h.push(T):v=T}if(e.cancelBubble||d===t||d===null)break;o=d}if(v){for(let T of h)queueMicrotask(()=>{throw T});throw v}}finally{e.__root=t,delete e.currentTarget,Ce(u),We(m)}}}let Ne;function Ks(){Ne=void 0}function Zs(e){let t=null,r=x;var n;if(x){for(t=P,Ne===void 0&&(Ne=Xe(document.head));Ne!==null&&(Ne.nodeType!==ht||Ne.data!==Gt);)Ne=Oe(Ne);Ne===null?we(!1):Ne=me(Oe(Ne))}x||(n=document.head.appendChild(Pe()));try{_r(()=>e(n),qr)}finally{r&&(we(!0),Ne=P,me(t))}}function Qs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ze(e,t){var r=k;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function D(e,t){var r=(t&Zn)!==0,n=(t&Qn)!==0,s,o=!e.startsWith("<!>");return()=>{if(x)return Ze(P,null),P;s===void 0&&(s=Qs(o?e:"<!>"+e),r||(s=Xe(s)));var i=n||on?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=Xe(i),c=i.lastChild;Ze(l,c)}else Ze(i,i);return i}}function eo(e=""){if(!x){var t=Pe(e+"");return Ze(t,t),t}var r=P;return r.nodeType!==lr&&(r.before(r=Pe()),me(r)),Ze(r,r),r}function Me(){if(x)return Ze(P,null),P;var e=document.createDocumentFragment(),t=document.createComment(""),r=Pe();return e.append(t,r),Ze(t,r),e}function _(e,t){if(x){k.nodes_end=P,xt();return}e!==null&&e.before(t)}const to=["touchstart","touchmove"];function ro(e){return to.includes(e)}function oe(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Rn(e,t){return Pn(e,t)}function no(e,t){mr(),t.intro=t.intro??!1;const r=t.target,n=x,s=P;try{for(var o=Xe(r);o&&(o.nodeType!==ht||o.data!==Gt);)o=Oe(o);if(!o)throw ft;we(!0),me(o),xt();const i=Pn(e,{...t,anchor:o});if(P===null||P.nodeType!==ht||P.data!==Kt)throw Lt(),ft;return we(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw i;return i!==ft&&console.warn("Failed to hydrate: ",i),t.recover===!1&&hs(),mr(),cn(r),we(!1),Rn(e,t)}finally{we(n),me(s),Ks()}}const wt=new Map;function Pn(e,{target:t,anchor:r,props:n={},events:s,context:o,intro:i=!0}){mr();var l=new Set,c=m=>{for(var v=0;v<m.length;v++){var h=m[v];if(!l.has(h)){l.add(h);var d=ro(h);t.addEventListener(h,Ct,{passive:d});var g=wt.get(h);g===void 0?(document.addEventListener(h,Ct,{passive:d}),wt.set(h,1)):wt.set(h,g+1)}}};c(Qt(Nn)),xr.add(c);var f=void 0,u=qs(()=>{var m=r??t.appendChild(Pe());return _t(()=>{if(o){zr({});var v=Re;v.c=o}s&&(n.$$events=s),x&&Ze(m,null),f=e(m,n)||{},x&&(k.nodes_end=P),o&&Ur()}),()=>{for(var v of l){t.removeEventListener(v,Ct);var h=wt.get(v);--h===0?(document.removeEventListener(v,Ct),wt.delete(v)):wt.set(v,h)}xr.delete(c),m!==r&&m.parentNode?.removeChild(m)}});return Er.set(f,u),f}let Er=new WeakMap;function so(e,t){const r=Er.get(e);return r?(Er.delete(e),r(t)):Promise.resolve()}function G(e,t,r=!1){x&&xt();var n=e,s=null,o=null,i=ae,l=r?nr:0,c=!1;const f=(h,d=!0)=>{c=!0,v(d,h)};var u=null;function m(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var h=i?s:o,d=i?o:s;h&&wr(h),d&&pr(d,()=>{i?o=null:s=null})}const v=(h,d)=>{if(i===(i=h))return;let g=!1;if(x){const O=jr(n)===Xt;!!i===O&&(n=cr(),me(n),we(!1),g=!0)}var p=fn(),K=n;if(p&&(u=document.createDocumentFragment(),u.append(K=Pe())),i?s??=d&&_t(()=>d(K)):o??=d&&_t(()=>d(K)),p){var T=j,A=i?s:o,B=i?o:s;A&&T.skipped_effects.delete(A),B&&T.skipped_effects.add(B),T.add_callback(m)}else m();g&&we(!0)};_r(()=>{c=!1,t(f),c||v(null,null)},l),x&&(n=P)}function oo(e,t,r){for(var n=e.items,s=[],o=t.length,i=0;i<o;i++)yr(t[i].e,s,!0);var l=o>0&&s.length===0&&r!==null;if(l){var c=r.parentNode;cn(c),c.append(r),n.clear(),Be(e,t[0].prev,t[o-1].next)}_n(s,()=>{for(var f=0;f<o;f++){var u=t[f];l||(n.delete(u.k),Be(e,u.prev,u.next)),qe(u.e,!l)}})}function io(e,t,r,n,s,o=null){var i=e,l={flags:t,items:new Map,first:null};{var c=e;i=x?me(Xe(c)):c.appendChild(Pe())}x&&xt();var f=null,u=!1,m=new Map,v=Ns(()=>{var p=r();return Zt(p)?p:p==null?[]:Qt(p)}),h,d;function g(){ao(d,h,l,m,i,s,t,n,r),o!==null&&(h.length===0?f?wr(f):f=_t(()=>o(i)):f!==null&&pr(f,()=>{f=null}))}_r(()=>{d??=k,h=b(v);var p=h.length;if(u&&p===0)return;u=p===0;let K=!1;if(x){var T=jr(i)===Xt;T!==(p===0)&&(i=cr(),me(i),we(!1),K=!0)}if(x){for(var A=null,B,O=0;O<p;O++){if(P.nodeType===ht&&P.data===Kt){i=P,K=!0,we(!1);break}var Z=h[O],H=n(Z,O);B=$r(P,l,A,null,Z,H,O,s,t,r),l.items.set(H,B),A=B}p>0&&me(cr())}if(x)p===0&&o&&(f=_t(()=>o(i)));else if(fn()){var E=new Set,z=j;for(O=0;O<p;O+=1){Z=h[O],H=n(Z,O);var pe=l.items.get(H)??m.get(H);pe?On(pe,Z,O):(B=$r(null,l,null,null,Z,H,O,s,t,r,!0),m.set(H,B)),E.add(H)}for(const[Le,L]of l.items)E.has(Le)||z.skipped_effects.add(L.e);z.add_callback(g)}else g();K&&we(!0),b(v)}),x&&(i=P)}function ao(e,t,r,n,s,o,i,l,c){var f=t.length,u=r.items,m=r.first,v=m,h,d=null,g=[],p=[],K,T,A,B;for(B=0;B<f;B+=1){if(K=t[B],T=l(K,B),A=u.get(T),A===void 0){var O=n.get(T);if(O!==void 0){n.delete(T),u.set(T,O);var Z=d?d.next:v;Be(r,d,O),Be(r,O,Z),Tr(O,Z,s),d=O}else{var H=v?v.e.nodes_start:s;d=$r(H,r,d,d===null?r.first:d.next,K,T,B,o,i,c)}u.set(T,d),g=[],p=[],v=d.next;continue}if(On(A,K,B),(A.e.f&Ae)!==0&&wr(A.e),A!==v){if(h!==void 0&&h.has(A)){if(g.length<p.length){var E=p[0],z;d=E.prev;var pe=g[0],Le=g[g.length-1];for(z=0;z<g.length;z+=1)Tr(g[z],E,s);for(z=0;z<p.length;z+=1)h.delete(p[z]);Be(r,pe.prev,Le.next),Be(r,d,pe),Be(r,Le,E),v=E,d=Le,B-=1,g=[],p=[]}else h.delete(A),Tr(A,v,s),Be(r,A.prev,A.next),Be(r,A,d===null?r.first:d.next),Be(r,d,A),d=A;continue}for(g=[],p=[];v!==null&&v.k!==T;)(v.e.f&Ae)===0&&(h??=new Set).add(v),p.push(v),v=v.next;if(v===null)continue;A=v}g.push(A),d=A,v=A.next}if(v!==null||h!==void 0){for(var L=h===void 0?[]:Qt(h);v!==null;)(v.e.f&Ae)===0&&L.push(v),v=v.next;var St=L.length;if(St>0){var U=f===0?s:null;oo(r,L,U)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var le of n.values())qe(le.e);n.clear()}function On(e,t,r,n){Bt(e.v,t),e.i=r}function $r(e,t,r,n,s,o,i,l,c,f,u){var m=(c&Gn)!==0,v=(c&Kn)===0,h=m?v?rn(s,!1,!1):$t(s):s,d=(c&Xn)===0?i:$t(i),g={i:d,v:h,k:o,a:null,e:null,prev:r,next:n};try{if(e===null){var p=document.createDocumentFragment();p.append(e=Pe())}return g.e=_t(()=>l(e,h,d,f),x),g.e.prev=r&&r.e,g.e.next=n&&n.e,r===null?u||(t.first=g):(r.next=g,r.e.next=g.e),n!==null&&(n.prev=g,n.e.prev=g.e),g}finally{}}function Tr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==null&&o!==n;){var i=Oe(o);s.before(o),o=i}}function Be(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function lo(e,t,r,n,s){x&&xt();var o=t.$$slots?.[r],i=!1;o===!0&&(o=t[r],i=!0),o===void 0?s!==null&&s(e):o(e,i?()=>n:n)}function co(e,t){js(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function fo(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function Qe(e,t,r,n,s,o){var i=e.__className;if(x||i!==r||i===void 0){var l=fo(r,n);(!x||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return o}const uo=Symbol("is custom element"),vo=Symbol("is html");function ze(e){if(x){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;lt(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;lt(e,"checked",null),e.checked=s}}};e.__on_r=r,$s(r),dn()}}function lt(e,t,r,n){var s=bo(e);x&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[ls]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Mn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ht(e,t,r){var n=N,s=k;let o=x;x&&we(!1),Ce(null),We(null);try{t!=="style"&&(Cr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Mn(e).includes(t):r&&typeof r=="object")?e[t]=r:lt(e,t,r==null?r:String(r))}finally{Ce(n),We(s),o&&we(!0)}}function bo(e){return e.__attributes??={[uo]:e.nodeName.includes("-"),[vo]:e.namespaceURI===es}}var Cr=new Map;function Mn(e){var t=e.getAttribute("is")||e.nodeName,r=Cr.get(t);if(r)return r;Cr.set(t,r=[]);for(var n,s=e,o=Element.prototype;o!==s;){n=rs(s);for(var i in n)n[i].set&&r.push(i);s=Mr(s)}return r}function He(e,t,r=t){var n=new WeakSet;vn(e,"input",async s=>{var o=s?e.defaultValue:e.value;if(o=Sr(e)?Nr(o):o,r(o),j!==null&&n.add(j),await Ys(),o!==(o=t())){var i=e.selectionStart,l=e.selectionEnd;e.value=o??"",l!==null&&(e.selectionStart=i,e.selectionEnd=Math.min(l,e.value.length))}}),(x&&e.defaultValue!==e.value||Sn(t)==null&&e.value)&&(r(Sr(e)?Nr(e.value):e.value),j!==null&&n.add(j)),gr(()=>{var s=t();if(e===document.activeElement){var o=Ft??j;if(n.has(o))return}Sr(e)&&s===Nr(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function ho(e,t,r=t){vn(e,"change",n=>{var s=n?e.defaultChecked:e.checked;r(s)}),(x&&e.defaultChecked!==e.checked||Sn(t)==null)&&r(e.checked),gr(()=>{var n=t();e.checked=!!n})}function Sr(e){var t=e.type;return t==="number"||t==="range"}function Nr(e){return e===""?null:+e}function X(e,t,r,n){var s=n,o=!0,i=()=>(o&&(o=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=i());var c;c=()=>{var v=e[t];return v===void 0?i():(o=!0,v)};var f=!1,u=ur(()=>(f=!1,c())),m=k;return(function(v,h){if(arguments.length>0){const d=h?b(u):v;return V(u,d),f=!0,s!==void 0&&(s=d),v}return it&&f||(m.f&tt)!==0?u.v:b(u)})}function mo(e){return new go(e)}class go{#t;#e;constructor(t){var r=new Map,n=(o,i)=>{var l=rn(i,!1,!1);return r.set(o,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(o,i){return b(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===as?!0:(b(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,l){return V(r.get(i)??n(i,l),l),Reflect.set(o,i,l)}});this.#e=(t.hydrate?no:Rn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&W(),this.#t=s.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return this.#e[o]},set(i){this.#e[o]=i},enumerable:!0});this.#e.$set=o=>{Object.assign(s,o)},this.#e.$destroy=()=>{so(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Ln;typeof HTMLElement=="function"&&(Ln=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 s=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),_(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=_o(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 s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Yt(s,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=mo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Fs(()=>{gr(()=>{this.$$r=!0;for(const n of Ot(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Yt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const o=this.$$c.$on(n,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yt(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 Ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function _o(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function po(e,t,r,n,s,o){let i=class extends Ln{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ot(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ot(t).forEach(l=>{ut(i.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Yt(l,c,t),this.$$d[l]=c;var f=this.$$c;if(f){var u=dt(f,l)?.get;u?f[l]=c:f.$set({[l]:c})}}})}),n.forEach(l=>{ut(i.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=i,i}function yo(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}class et{dictionary;lang="";constructor(t){if(!t?.dictionary)throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(t?.lang)}setLang(t){t||(t=et.getDefaultLang()),this.lang=t}translateWord(t,r){return et.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return et.formatDate(t,r,n||this.lang)}static getDefaultLang(){let t="en";return navigator?.languages&&navigator.languages[0]?.split("-")[0]?.toLowerCase()?.length&&(t=navigator.languages[0]?.split("-")[0]?.toLowerCase()),t}static getDictionaryWord(t,r,n){if(!t)throw new Error("no wordKey provided");if(!r)throw new Error("no dictionary provided");if(n&&r[n]?.[t])return r[n][t];let s="";const o=et.getDefaultLang();if(!n||o!==n){const i=r?.[o];i?.[t]&&(s=i[t])}return s}static formatDate(t,r,n){if(!t)throw new Error("no date provided");if(typeof t.getMonth!="function")throw new Error("wrong date format");return new Intl.DateTimeFormat(n||et.getDefaultLang(),r).format(t)}}const wo={version:"0.61.35"},In={en:{registerTitle:"Please create account",loginTitle:"Please sign in",loginSwitch:"go to login page",loginButton:"login",registerButton:"register",rememberMe:"Remember me",forgotPasswordButton:"Forget password?",recoverTitle:"Update password",ForgotTitle:"Recover password",temporaryCode:"Temporary code",recoverEmailText:"Retrieve your account by following the instructions that you will receive shortly at the indicated email",newPassword:"New password",repeatPassword:"Repeat password",recoverWord:"Recover",memo:"Save"},it:{registerTitle:"Crea un account",loginTitle:"Accedi al tuo account",loginSwitch:"vai al login",loginButton:"Accedi",registerButton:"Registrati",rememberMe:"Ricordami",forgotPasswordButton:"Password dimenticata?",recoverTitle:"Aggiorna la password",ForgotTitle:"Recupera la password",temporaryCode:"Codice temporaneo",recoverEmailText:"Recupera il tuo account seguendo le istruzioni che riceverai a breve presso l'email indicata",newPassword:"Nuova password",repeatPassword:"Ripeti la password",recoverWord:"Recupera",memo:"Memorizza"}};var xo=D('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1st3y5c"/>'),ko=(e,t)=>t(e),Eo=D('<div class="mb-4 text-center svelte-1st3y5c"><img id="logoimg" alt="" class="svelte-1st3y5c"/></div>'),$o=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),To=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),Co=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),So=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),No=D('<li class="svelte-1st3y5c"><hb-auth-social-login-button></hb-auth-social-login-button></li>',2),Ao=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c">Credenziali</h1>'),Ro=D('<div class="d-flex justify-content-center mt-1 svelte-1st3y5c"><ul class="social-icons svelte-1st3y5c"></ul></div> <!>',1),Po=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c">Password</label></div>',1),Oo=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div>'),Mo=D('<div class="form-floating svelte-1st3y5c"><div class="svelte-1st3y5c"> </div></div>'),Lo=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" required/>'),Io=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" disabled/>'),Do=D('<input type="text" placeholder="name@example.com" required/>'),Fo=D('<input type="text" placeholder="name@example.com" disabled/>'),qo=D('<div class="form-floating svelte-1st3y5c"><!> <label for="floatingCode" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><!> <label for="floatingEmail" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Ripteti Password" required/> <label for="floatingPassword2" class="svelte-1st3y5c"> </label></div>',1),jo=(e,t)=>t(),Wo=(e,t)=>t("forgotpassword"),Bo=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),zo=(e,t)=>t("register"),Uo=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),Vo=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><!> <!> <!></p>'),Ho=D('<div class="checkbox mb-3 svelte-1st3y5c"><label class="svelte-1st3y5c"><input type="checkbox" class="svelte-1st3y5c"/> </label></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <!>',1),Yo=(e,t)=>t(),Jo=(e,t)=>t("login"),Go=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>',1),Xo=(e,t)=>t("login"),Ko=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>'),Zo=(e,t)=>t(),Qo=(e,t)=>t("login"),ei=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <button class="btn btn-link svelte-1st3y5c"> </button>',1),ti=(e,t)=>t(),ri=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button>',1),ni=D('<main class="form-signin svelte-1st3y5c"><!> <!> <!> <!> <!></main>');const si={hash:"svelte-1st3y5c",code:`@charset "UTF-8";
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw i;return i!==ft&&console.warn("Failed to hydrate: ",i),t.recover===!1&&hs(),mr(),cn(r),we(!1),Rn(e,t)}finally{we(n),me(s),Ks()}}const wt=new Map;function Pn(e,{target:t,anchor:r,props:n={},events:s,context:o,intro:i=!0}){mr();var l=new Set,c=m=>{for(var v=0;v<m.length;v++){var h=m[v];if(!l.has(h)){l.add(h);var d=ro(h);t.addEventListener(h,Ct,{passive:d});var g=wt.get(h);g===void 0?(document.addEventListener(h,Ct,{passive:d}),wt.set(h,1)):wt.set(h,g+1)}}};c(Qt(Nn)),xr.add(c);var f=void 0,u=qs(()=>{var m=r??t.appendChild(Pe());return _t(()=>{if(o){zr({});var v=Re;v.c=o}s&&(n.$$events=s),x&&Ze(m,null),f=e(m,n)||{},x&&(k.nodes_end=P),o&&Ur()}),()=>{for(var v of l){t.removeEventListener(v,Ct);var h=wt.get(v);--h===0?(document.removeEventListener(v,Ct),wt.delete(v)):wt.set(v,h)}xr.delete(c),m!==r&&m.parentNode?.removeChild(m)}});return Er.set(f,u),f}let Er=new WeakMap;function so(e,t){const r=Er.get(e);return r?(Er.delete(e),r(t)):Promise.resolve()}function G(e,t,r=!1){x&&xt();var n=e,s=null,o=null,i=ae,l=r?nr:0,c=!1;const f=(h,d=!0)=>{c=!0,v(d,h)};var u=null;function m(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var h=i?s:o,d=i?o:s;h&&wr(h),d&&pr(d,()=>{i?o=null:s=null})}const v=(h,d)=>{if(i===(i=h))return;let g=!1;if(x){const O=jr(n)===Xt;!!i===O&&(n=cr(),me(n),we(!1),g=!0)}var p=fn(),K=n;if(p&&(u=document.createDocumentFragment(),u.append(K=Pe())),i?s??=d&&_t(()=>d(K)):o??=d&&_t(()=>d(K)),p){var T=j,A=i?s:o,B=i?o:s;A&&T.skipped_effects.delete(A),B&&T.skipped_effects.add(B),T.add_callback(m)}else m();g&&we(!0)};_r(()=>{c=!1,t(f),c||v(null,null)},l),x&&(n=P)}function oo(e,t,r){for(var n=e.items,s=[],o=t.length,i=0;i<o;i++)yr(t[i].e,s,!0);var l=o>0&&s.length===0&&r!==null;if(l){var c=r.parentNode;cn(c),c.append(r),n.clear(),Be(e,t[0].prev,t[o-1].next)}_n(s,()=>{for(var f=0;f<o;f++){var u=t[f];l||(n.delete(u.k),Be(e,u.prev,u.next)),qe(u.e,!l)}})}function io(e,t,r,n,s,o=null){var i=e,l={flags:t,items:new Map,first:null};{var c=e;i=x?me(Xe(c)):c.appendChild(Pe())}x&&xt();var f=null,u=!1,m=new Map,v=Ns(()=>{var p=r();return Zt(p)?p:p==null?[]:Qt(p)}),h,d;function g(){ao(d,h,l,m,i,s,t,n,r),o!==null&&(h.length===0?f?wr(f):f=_t(()=>o(i)):f!==null&&pr(f,()=>{f=null}))}_r(()=>{d??=k,h=b(v);var p=h.length;if(u&&p===0)return;u=p===0;let K=!1;if(x){var T=jr(i)===Xt;T!==(p===0)&&(i=cr(),me(i),we(!1),K=!0)}if(x){for(var A=null,B,O=0;O<p;O++){if(P.nodeType===ht&&P.data===Kt){i=P,K=!0,we(!1);break}var Z=h[O],H=n(Z,O);B=$r(P,l,A,null,Z,H,O,s,t,r),l.items.set(H,B),A=B}p>0&&me(cr())}if(x)p===0&&o&&(f=_t(()=>o(i)));else if(fn()){var E=new Set,z=j;for(O=0;O<p;O+=1){Z=h[O],H=n(Z,O);var pe=l.items.get(H)??m.get(H);pe?On(pe,Z,O):(B=$r(null,l,null,null,Z,H,O,s,t,r,!0),m.set(H,B)),E.add(H)}for(const[Le,L]of l.items)E.has(Le)||z.skipped_effects.add(L.e);z.add_callback(g)}else g();K&&we(!0),b(v)}),x&&(i=P)}function ao(e,t,r,n,s,o,i,l,c){var f=t.length,u=r.items,m=r.first,v=m,h,d=null,g=[],p=[],K,T,A,B;for(B=0;B<f;B+=1){if(K=t[B],T=l(K,B),A=u.get(T),A===void 0){var O=n.get(T);if(O!==void 0){n.delete(T),u.set(T,O);var Z=d?d.next:v;Be(r,d,O),Be(r,O,Z),Tr(O,Z,s),d=O}else{var H=v?v.e.nodes_start:s;d=$r(H,r,d,d===null?r.first:d.next,K,T,B,o,i,c)}u.set(T,d),g=[],p=[],v=d.next;continue}if(On(A,K,B),(A.e.f&Ae)!==0&&wr(A.e),A!==v){if(h!==void 0&&h.has(A)){if(g.length<p.length){var E=p[0],z;d=E.prev;var pe=g[0],Le=g[g.length-1];for(z=0;z<g.length;z+=1)Tr(g[z],E,s);for(z=0;z<p.length;z+=1)h.delete(p[z]);Be(r,pe.prev,Le.next),Be(r,d,pe),Be(r,Le,E),v=E,d=Le,B-=1,g=[],p=[]}else h.delete(A),Tr(A,v,s),Be(r,A.prev,A.next),Be(r,A,d===null?r.first:d.next),Be(r,d,A),d=A;continue}for(g=[],p=[];v!==null&&v.k!==T;)(v.e.f&Ae)===0&&(h??=new Set).add(v),p.push(v),v=v.next;if(v===null)continue;A=v}g.push(A),d=A,v=A.next}if(v!==null||h!==void 0){for(var L=h===void 0?[]:Qt(h);v!==null;)(v.e.f&Ae)===0&&L.push(v),v=v.next;var St=L.length;if(St>0){var U=f===0?s:null;oo(r,L,U)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var le of n.values())qe(le.e);n.clear()}function On(e,t,r,n){Bt(e.v,t),e.i=r}function $r(e,t,r,n,s,o,i,l,c,f,u){var m=(c&Gn)!==0,v=(c&Kn)===0,h=m?v?rn(s,!1,!1):$t(s):s,d=(c&Xn)===0?i:$t(i),g={i:d,v:h,k:o,a:null,e:null,prev:r,next:n};try{if(e===null){var p=document.createDocumentFragment();p.append(e=Pe())}return g.e=_t(()=>l(e,h,d,f),x),g.e.prev=r&&r.e,g.e.next=n&&n.e,r===null?u||(t.first=g):(r.next=g,r.e.next=g.e),n!==null&&(n.prev=g,n.e.prev=g.e),g}finally{}}function Tr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==null&&o!==n;){var i=Oe(o);s.before(o),o=i}}function Be(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function lo(e,t,r,n,s){x&&xt();var o=t.$$slots?.[r],i=!1;o===!0&&(o=t[r],i=!0),o===void 0?s!==null&&s(e):o(e,i?()=>n:n)}function co(e,t){js(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function fo(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function Qe(e,t,r,n,s,o){var i=e.__className;if(x||i!==r||i===void 0){var l=fo(r,n);(!x||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return o}const uo=Symbol("is custom element"),vo=Symbol("is html");function ze(e){if(x){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;lt(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;lt(e,"checked",null),e.checked=s}}};e.__on_r=r,$s(r),dn()}}function lt(e,t,r,n){var s=bo(e);x&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[ls]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Mn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ht(e,t,r){var n=N,s=k;let o=x;x&&we(!1),Ce(null),We(null);try{t!=="style"&&(Cr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Mn(e).includes(t):r&&typeof r=="object")?e[t]=r:lt(e,t,r==null?r:String(r))}finally{Ce(n),We(s),o&&we(!0)}}function bo(e){return e.__attributes??={[uo]:e.nodeName.includes("-"),[vo]:e.namespaceURI===es}}var Cr=new Map;function Mn(e){var t=e.getAttribute("is")||e.nodeName,r=Cr.get(t);if(r)return r;Cr.set(t,r=[]);for(var n,s=e,o=Element.prototype;o!==s;){n=rs(s);for(var i in n)n[i].set&&r.push(i);s=Mr(s)}return r}function He(e,t,r=t){var n=new WeakSet;vn(e,"input",async s=>{var o=s?e.defaultValue:e.value;if(o=Sr(e)?Nr(o):o,r(o),j!==null&&n.add(j),await Ys(),o!==(o=t())){var i=e.selectionStart,l=e.selectionEnd;e.value=o??"",l!==null&&(e.selectionStart=i,e.selectionEnd=Math.min(l,e.value.length))}}),(x&&e.defaultValue!==e.value||Sn(t)==null&&e.value)&&(r(Sr(e)?Nr(e.value):e.value),j!==null&&n.add(j)),gr(()=>{var s=t();if(e===document.activeElement){var o=Ft??j;if(n.has(o))return}Sr(e)&&s===Nr(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function ho(e,t,r=t){vn(e,"change",n=>{var s=n?e.defaultChecked:e.checked;r(s)}),(x&&e.defaultChecked!==e.checked||Sn(t)==null)&&r(e.checked),gr(()=>{var n=t();e.checked=!!n})}function Sr(e){var t=e.type;return t==="number"||t==="range"}function Nr(e){return e===""?null:+e}function X(e,t,r,n){var s=n,o=!0,i=()=>(o&&(o=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=i());var c;c=()=>{var v=e[t];return v===void 0?i():(o=!0,v)};var f=!1,u=ur(()=>(f=!1,c())),m=k;return(function(v,h){if(arguments.length>0){const d=h?b(u):v;return V(u,d),f=!0,s!==void 0&&(s=d),v}return it&&f||(m.f&tt)!==0?u.v:b(u)})}function mo(e){return new go(e)}class go{#t;#e;constructor(t){var r=new Map,n=(o,i)=>{var l=rn(i,!1,!1);return r.set(o,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(o,i){return b(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===as?!0:(b(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,l){return V(r.get(i)??n(i,l),l),Reflect.set(o,i,l)}});this.#e=(t.hydrate?no:Rn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&W(),this.#t=s.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return this.#e[o]},set(i){this.#e[o]=i},enumerable:!0});this.#e.$set=o=>{Object.assign(s,o)},this.#e.$destroy=()=>{so(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Ln;typeof HTMLElement=="function"&&(Ln=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 s=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),_(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=_o(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 s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Yt(s,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=mo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Fs(()=>{gr(()=>{this.$$r=!0;for(const n of Ot(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Yt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const o=this.$$c.$on(n,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yt(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 Ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Yt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function _o(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function po(e,t,r,n,s,o){let i=class extends Ln{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ot(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ot(t).forEach(l=>{ut(i.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Yt(l,c,t),this.$$d[l]=c;var f=this.$$c;if(f){var u=dt(f,l)?.get;u?f[l]=c:f.$set({[l]:c})}}})}),n.forEach(l=>{ut(i.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=i,i}function yo(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}class et{dictionary;lang="";constructor(t){if(!t?.dictionary)throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(t?.lang)}setLang(t){t||(t=et.getDefaultLang()),this.lang=t}translateWord(t,r){return et.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return et.formatDate(t,r,n||this.lang)}static getDefaultLang(){let t="en";return navigator?.languages&&navigator.languages[0]?.split("-")[0]?.toLowerCase()?.length&&(t=navigator.languages[0]?.split("-")[0]?.toLowerCase()),t}static getDictionaryWord(t,r,n){if(!t)throw new Error("no wordKey provided");if(!r)throw new Error("no dictionary provided");if(n&&r[n]?.[t])return r[n][t];let s="";const o=et.getDefaultLang();if(!n||o!==n){const i=r?.[o];i?.[t]&&(s=i[t])}return s}static formatDate(t,r,n){if(!t)throw new Error("no date provided");if(typeof t.getMonth!="function")throw new Error("wrong date format");return new Intl.DateTimeFormat(n||et.getDefaultLang(),r).format(t)}}const wo={version:"0.61.37"},In={en:{registerTitle:"Please create account",loginTitle:"Please sign in",loginSwitch:"go to login page",loginButton:"login",registerButton:"register",rememberMe:"Remember me",forgotPasswordButton:"Forget password?",recoverTitle:"Update password",ForgotTitle:"Recover password",temporaryCode:"Temporary code",recoverEmailText:"Retrieve your account by following the instructions that you will receive shortly at the indicated email",newPassword:"New password",repeatPassword:"Repeat password",recoverWord:"Recover",memo:"Save"},it:{registerTitle:"Crea un account",loginTitle:"Accedi al tuo account",loginSwitch:"vai al login",loginButton:"Accedi",registerButton:"Registrati",rememberMe:"Ricordami",forgotPasswordButton:"Password dimenticata?",recoverTitle:"Aggiorna la password",ForgotTitle:"Recupera la password",temporaryCode:"Codice temporaneo",recoverEmailText:"Recupera il tuo account seguendo le istruzioni che riceverai a breve presso l'email indicata",newPassword:"Nuova password",repeatPassword:"Ripeti la password",recoverWord:"Recupera",memo:"Memorizza"}};var xo=D('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1st3y5c"/>'),ko=(e,t)=>t(e),Eo=D('<div class="mb-4 text-center svelte-1st3y5c"><img id="logoimg" alt="" class="svelte-1st3y5c"/></div>'),$o=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),To=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),Co=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),So=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c"> </h1>'),No=D('<li class="svelte-1st3y5c"><hb-auth-social-login-button></hb-auth-social-login-button></li>',2),Ao=D('<h1 class="h3 mb-3 fw-normal svelte-1st3y5c">Credenziali</h1>'),Ro=D('<div class="d-flex justify-content-center mt-1 svelte-1st3y5c"><ul class="social-icons svelte-1st3y5c"></ul></div> <!>',1),Po=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c">Password</label></div>',1),Oo=D('<div class="form-floating svelte-1st3y5c"><input type="text" placeholder="name@example.com" required/> <label for="floatingInput" class="svelte-1st3y5c">Email</label></div>'),Mo=D('<div class="form-floating svelte-1st3y5c"><div class="svelte-1st3y5c"> </div></div>'),Lo=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" required/>'),Io=D('<input type="text" class="form-control svelte-1st3y5c" placeholder="Codice temporaneo" disabled/>'),Do=D('<input type="text" placeholder="name@example.com" required/>'),Fo=D('<input type="text" placeholder="name@example.com" disabled/>'),qo=D('<div class="form-floating svelte-1st3y5c"><!> <label for="floatingCode" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><!> <label for="floatingEmail" class="svelte-1st3y5c">Email</label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Password" required/> <label for="floatingPassword" class="svelte-1st3y5c"> </label></div> <div class="form-floating svelte-1st3y5c"><input type="password" placeholder="Ripteti Password" required/> <label for="floatingPassword2" class="svelte-1st3y5c"> </label></div>',1),jo=(e,t)=>t(),Wo=(e,t)=>t("forgotpassword"),Bo=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),zo=(e,t)=>t("register"),Uo=D('<button class="btn btn-link svelte-1st3y5c"> </button>'),Vo=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><!> <!> <!></p>'),Ho=D('<div class="checkbox mb-3 svelte-1st3y5c"><label class="svelte-1st3y5c"><input type="checkbox" class="svelte-1st3y5c"/> </label></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <!>',1),Yo=(e,t)=>t(),Jo=(e,t)=>t("login"),Go=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>',1),Xo=(e,t)=>t("login"),Ko=D('<p style="margin-bottom:0px" class="svelte-1st3y5c"><button class="btn btn-link svelte-1st3y5c"> </button></p>'),Zo=(e,t)=>t(),Qo=(e,t)=>t("login"),ei=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button> <button class="btn btn-link svelte-1st3y5c"> </button>',1),ti=(e,t)=>t(),ri=D('<div class="checkbox mb-3 svelte-1st3y5c"></div> <button class="w-100 btn btn-lg btn-primary svelte-1st3y5c"> </button>',1),ni=D('<main class="form-signin svelte-1st3y5c"><!> <!> <!> <!> <!></main>');const si={hash:"svelte-1st3y5c",code:`@charset "UTF-8";
3
3
  @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");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
package/manifest.json CHANGED
@@ -641,5 +641,5 @@
641
641
  },
642
642
  "iifePath": "main.iife.js",
643
643
  "repoName": "@htmlbricks/hb-auth",
644
- "version": "0.61.35"
644
+ "version": "0.61.37"
645
645
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-auth",
3
- "version": "0.61.35",
3
+ "version": "0.61.37",
4
4
  "contributors": [],
5
5
  "description": "Authentication component",
6
6
  "licenses": [