@htmlbricks/hb-auth-social-login-button 0.65.23 → 0.66.1
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -39
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(wt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const kr=2,yt="[",ot="[!",$t="]",de={},k=Symbol(),at=!1;var Er=Array.isArray,Cr=Array.prototype.indexOf,Sr=Array.from,Be=Object.keys,Ue=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,xr=Object.prototype,Tr=Array.prototype,Or=Object.getPrototypeOf,bt=Object.isExtensible;function Lr(e){for(var t=0;t<e.length;t++)e[t]()}function Ar(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const $=2,lt=4,Nr=8,q=16,z=32,Q=64,qe=128,D=512,E=1024,x=2048,Y=4096,j=8192,ee=16384,ze=32768,ve=65536,kt=1<<17,Et=1<<18,pe=1<<19,Rr=1<<20,oe=32768,ft=1<<21,Ct=1<<22,Ce=1<<23,ut=Symbol("$state"),Fr=Symbol("legacy props"),St=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=3,Se=8;function Ir(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Mr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Pr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Br(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ur(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ye(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ge(e){w=e}let p;function V(e){if(e===null)throw Ye(),de;return p=e}function Ve(){return V(ne(p))}function Tt(e){if(w){if(ne(p)!==null)throw Ye(),de;p=e}}function Hr(e=1){if(w){for(var t=e,r=p;t--;)r=ne(r);p=r}}function Ot(e=!0){for(var t=0,r=p;;){if(r.nodeType===Se){var n=r.data;if(n===$t){if(t===0)return r;t-=1}else(n===yt||n===ot)&&(t+=1)}var s=ne(r);e&&r.remove(),r=s}}function Zr(e){if(!e||e.nodeType!==Se)throw Ye(),de;return e.data}function Lt(e){return e===this.v}function Gr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Jr(e){return!Gr(e,this.v)}let Kr=!1,A=null;function He(e){A=e}function At(e,t=!1,r){A={p:A,i:!1,c:null,e:null,s:e,x:null,l:null}}function Nt(e){var t=A,r=t.e;if(r!==null){t.e=null;for(var n of r)Xt(n)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function Rt(){return!0}let ae=[];function Ft(){var e=ae;ae=[],Lr(e)}function ct(e){if(ae.length===0&&!xe){var t=ae;queueMicrotask(()=>{t===ae&&Ft()})}ae.push(e)}function Wr(){for(;ae.length>0;)Ft()}function It(e){var t=g;if(t===null)return v.f|=Ce,e;if((t.f&ze)===0){if((t.f&qe)===0)throw e;t.b.error(e)}else Ze(e,t)}function Ze(e,t){for(;t!==null;){if((t.f&qe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ge=new Set;let b=null,N=null,R=[],Je=null,ht=!1,xe=!1;class P{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){R=[],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)):(b=null,Dt(r.render_effects),Dt(r.effects),this.#l?.resolve()),N=null}#o(t,r){t.f^=E;for(var n=t.first;n!==null;){var s=n.f,i=(s&(z|Q))!==0,o=i&&(s&E)!==0,a=o||(s&j)!==0||this.skipped_effects.has(n);if((n.f&qe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=E:(s<)!==0?r.effects.push(n):Re(n)&&((n.f&q)!==0&&r.block_effects.push(n),Fe(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&x)!==0?this.#s:this.#i).push(r),this.#f(r.deps),S(r,E)}#f(t){if(t!==null)for(const r of t)(r.f&$)===0||(r.f&oe)===0||(r.f^=oe,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ce)===0&&(this.current.set(t,t.v),N?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,N=null)}flush(){if(this.activate(),R.length>0){if(Mt(),b!==null&&b!==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(Ge.size>1){this.previous.clear();var t=N,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ge){if(i===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(i.current.has(l))if(r&&f!==i.current.get(l))i.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var s=R;R=[];const l=new Set,f=new Map;for(const d of o)Pt(d,a,l,f);if(R.length>0){b=i,i.apply();for(const d of R)i.#o(d,n);i.deactivate()}R=s}}b=null,N=t}this.committed=!0,Ge.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)S(t,x),le(t);for(const t of this.#i)S(t,Y),le(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ar()).promise}static ensure(){if(b===null){const t=b=new P;Ge.add(b),xe||P.enqueue(()=>{b===t&&t.flush()})}return b}static enqueue(t){ct(t)}apply(){}}function me(e){var t=xe;xe=!0;try{for(var r;;){if(Wr(),R.length===0&&(b?.flush(),R.length===0))return Je=null,r;Mt()}}finally{xe=t}}function Mt(){var e=ie;ht=!0;var t=null;try{var r=0;for(Xe(!0);R.length>0;){var n=P.ensure();if(r++>1e3){var s,i;Xr()}n.process(R),te.clear()}}finally{ht=!1,Xe(e),Je=null}}function Xr(){try{jr()}catch(e){Ze(e,Je)}}let H=null;function Dt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ee|j))===0&&Re(n)&&(H=new Set,Fe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?nr(n):n.fn=null),H?.size>0)){te.clear();for(const s of H){if((s.f&(ee|j))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)H.has(o)&&(H.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(ee|j))===0&&Fe(l)}}H.clear()}}H=null}}function Pt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&$)!==0?Pt(s,t,r,n):(i&(Ct|q))!==0&&(i&x)===0&&jt(s,t,n)&&(S(s,x),le(s))}}function jt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&$)!==0&&jt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function le(e){for(var t=Je=e;t.parent!==null;){t=t.parent;var r=t.f;if(ht&&t===g&&(r&q)!==0&&(r&Et)===0)return;if((r&(Q|z))!==0){if((r&E)===0)return;t.f^=E}}R.push(t)}function Qr(e){let t=0,r=Ke(0),n;return()=>{We()&&(U(r),Qt(()=>(t===0&&(n=vr(()=>e(()=>Te(r)))),t+=1,()=>{ct(()=>{t-=1,t===0&&(n?.(),n=void 0,Te(r))})})))}}var en=ve|pe|qe;function tn(e,t,r){new rn(e,t,r)}class rn{parent;#t=!1;#e;#r=w?p:null;#n;#l;#s;#i=null;#o=null;#a=null;#f=null;#u=null;#c=0;#h=0;#_=!1;#d=null;#w=Qr(()=>(this.#d=Ke(this.#c),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=g.b,this.#t=!!this.#n.pending,this.#s=er(()=>{if(g.b=this,w){const i=this.#r;Ve(),i.nodeType===Se&&i.data===ot?this.#$():this.#y()}else{var s=this.#g();try{this.#i=J(()=>n(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},en),w&&(this.#e=p)}#y(){try{this.#i=J(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#n.pending;t&&(this.#o=J(()=>t(this.#e)),P.enqueue(()=>{var r=this.#g();this.#i=this.#v(()=>(P.ensure(),J(()=>this.#l(r)))),this.#h>0?this.#p():(Ae(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=G(),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}#v(t){var r=g,n=v,s=A;se(this.#s),F(this.#s),He(this.#s.ctx);try{return t()}catch(i){return It(i),null}finally{se(r),F(n),He(s)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),or(this.#i,this.#f)),this.#o===null&&(this.#o=J(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#o&&Ae(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&zt(this.#d,this.#c)}get_effect_pending(){return this.#w(),U(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#_||!r&&!n)throw t;this.#i&&(T(this.#i),this.#i=null),this.#o&&(T(this.#o),this.#o=null),this.#a&&(T(this.#a),this.#a=null),w&&(V(this.#r),Hr(),V(Ot()));var s=!1,i=!1;const o=()=>{if(s){Vr();return}s=!0,i&&Yr(),P.ensure(),this.#c=0,this.#a!==null&&Ae(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#v(()=>(this.#_=!1,J(()=>this.#l(this.#e)))),this.#h>0?this.#p():this.#t=!1};var a=v;try{F(null),i=!0,r?.(t,o),i=!1}catch(l){Ze(l,this.#s&&this.#s.parent)}finally{F(a)}n&&ct(()=>{this.#a=this.#v(()=>{P.ensure(),this.#_=!0;try{return J(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return Ze(l,this.#s.parent),null}finally{this.#_=!1}})})}}function nn(e){var t=$|x,r=v!==null&&(v.f&$)!==0?v:null;return g!==null&&(g.f|=pe),{ctx:A,deps:null,effects:null,equals:Lt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??g,ac:null}}function Bt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)T(t[r])}}function sn(e){for(var t=e.parent;t!==null;){if((t.f&$)===0)return(t.f&ee)===0?t:null;t=t.parent}return null}function dt(e){var t,r=g;se(sn(e));try{e.f&=~oe,Bt(e),t=hr(e)}finally{se(r)}return t}function Ut(e){var t=dt(e);if(e.equals(t)||(b?.is_fork||(e.v=t),e.wv=ur()),!ce)if(N!==null)We()&&N.set(e,t);else{var r=(e.f&D)===0?Y:E;S(e,r)}}let _t=new Set;const te=new Map;let qt=!1;function Ke(e,t){var r={f:0,v:e,reactions:null,equals:Lt,rv:0,wv:0};return r}function re(e,t){const r=Ke(e);return wn(r),r}function on(e,t=!1,r=!0){const n=Ke(e);return t||(n.equals=Jr),n}function Z(e,t,r=!1){v!==null&&(!B||(v.f&kt)!==0)&&Rt()&&(v.f&($|q|Ct|kt))!==0&&!K?.includes(e)&&zr();let n=r?Oe(t):t;return zt(e,n)}function zt(e,t){if(!e.equals(t)){var r=e.v;ce?te.set(e,t):te.set(e,r),e.v=t;var n=P.ensure();n.capture(e,r),(e.f&$)!==0&&((e.f&x)!==0&&dt(e),S(e,(e.f&D)!==0?E:Y)),e.wv=ur(),Yt(e,x),g!==null&&(g.f&E)!==0&&(g.f&(z|Q))===0&&(I===null?yn([e]):I.push(e)),!n.is_fork&&_t.size>0&&!qt&&an()}return t}function an(){qt=!1;var e=ie;Xe(!0);const t=Array.from(_t);try{for(const r of t)(r.f&E)!==0&&S(r,Y),Re(r)&&Fe(r)}finally{Xe(e)}_t.clear()}function Te(e){Z(e,e.v+1)}function Yt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&x)===0;if(a&&S(i,t),(o&$)!==0){var l=i;N?.delete(l),(o&oe)===0&&(o&D&&(i.f|=oe),Yt(l,Y))}else a&&((o&q)!==0&&H!==null&&H.add(i),le(i))}}function Oe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=Or(e);if(t!==xr&&t!==Tr)return e;var r=new Map,n=Er(e),s=re(0),i=he,o=a=>{if(he===i)return a();var l=v,f=he;F(null),fr(i);var d=a();return F(l),fr(f),d};return n&&r.set("length",re(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ur();var d=r.get(l);return d===void 0?d=o(()=>{var _=re(f.value);return r.set(l,_),_}):Z(d,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const d=o(()=>re(k));r.set(l,d),Te(s)}}else Z(f,k),Te(s);return!0},get(a,l,f){if(l===ut)return e;var d=r.get(l),_=l in a;if(d===void 0&&(!_||_e(a,l)?.writable)&&(d=o(()=>{var h=Oe(_?a[l]:k),y=re(h);return y}),r.set(l,d)),d!==void 0){var c=U(d);return c===k?void 0:c}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var d=r.get(l);d&&(f.value=U(d))}else if(f===void 0){var _=r.get(l),c=_?.v;if(_!==void 0&&c!==k)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,l){if(l===ut)return!0;var f=r.get(l),d=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||g!==null&&(!d||_e(a,l)?.writable)){f===void 0&&(f=o(()=>{var c=d?Oe(a[l]):k,h=re(c);return h}),r.set(l,f));var _=U(f);if(_===k)return!1}return d},set(a,l,f,d){var _=r.get(l),c=l in a;if(n&&l==="length")for(var h=f;h<_.v;h+=1){var y=r.get(h+"");y!==void 0?Z(y,k):h in a&&(y=o(()=>re(k)),r.set(h+"",y))}if(_===void 0)(!c||_e(a,l)?.writable)&&(_=o(()=>re(void 0)),Z(_,Oe(f)),r.set(l,_));else{c=_.v!==k;var u=o(()=>Oe(f));Z(_,u)}var m=Reflect.getOwnPropertyDescriptor(a,l);if(m?.set&&m.set.call(d,f),!c){if(n&&typeof l=="string"){var M=r.get("length"),je=Number(l);Number.isInteger(je)&&je>=M.v&&Z(M,je+1)}Te(s)}return!0},ownKeys(a){U(s);var l=Reflect.ownKeys(a).filter(_=>{var c=r.get(_);return c===void 0||c.v!==k});for(var[f,d]of r)d.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){qr()}})}var Vt,Ht,Zt,Gt;function vt(){if(Vt===void 0){Vt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Zt=_e(t,"firstChild").get,Gt=_e(t,"nextSibling").get,bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),bt(r)&&(r.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function fe(e){return Zt.call(e)}function ne(e){return Gt.call(e)}function Jt(e,t){if(!w)return fe(e);var r=fe(p);return r===null&&(r=p.appendChild(G())),V(r),r}function Le(e,t=!1){if(!w){var r=fe(e);return r instanceof Comment&&r.data===""?ne(r):r}if(t&&p?.nodeType!==xt){var n=G();return p?.before(n),V(n),n}return p}function ln(e){e.textContent=""}function fn(){return!1}function Kt(e){var t=v,r=g;F(null),se(null);try{return e()}finally{F(t),se(r)}}function un(e){g===null&&(v===null&&Pr(),Dr()),ce&&Mr()}function cn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ue(e,t,r){var n=g;n!==null&&(n.f&j)!==0&&(e|=j);var s={ctx:A,deps:null,nodes_start:null,nodes_end:null,f:e|x|D,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{Fe(s),s.f|=ze}catch(a){throw T(s),a}else t!==null&&le(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&pe)===0&&(i=i.first,(e&q)!==0&&(e&ve)!==0&&i!==null&&(i.f|=ve)),i!==null&&(i.parent=n,n!==null&&cn(i,n),v!==null&&(v.f&$)!==0&&(e&Q)===0)){var o=v;(o.effects??=[]).push(i)}return s}function We(){return v!==null&&!B}function Wt(e){un();var t=g.f,r=!v&&(t&z)!==0&&(t&ze)===0;if(r){var n=A;(n.e??=[]).push(e)}else return Xt(e)}function Xt(e){return ue(lt|Rr,e,!1)}function hn(e){P.ensure();const t=ue(Q|pe,e,!0);return()=>{T(t)}}function dn(e){P.ensure();const t=ue(Q|pe,e,!0);return(r={})=>new Promise(n=>{r.outro?Ae(t,()=>{T(t),n(void 0)}):(T(t),n(void 0))})}function _n(e){return ue(lt,e,!1)}function Qt(e,t=0){return ue(Nr|t,e,!0)}function er(e,t=0){var r=ue(q|t,e,!0);return r}function J(e){return ue(z|pe,e,!0)}function tr(e){var t=e.teardown;if(t!==null){const r=ce,n=v;ar(!0),F(null);try{t.call(null)}finally{ar(r),F(n)}}}function rr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Kt(()=>{s.abort(St)});var n=r.next;(r.f&Q)!==0?r.parent=null:T(r,t),r=n}}function vn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&T(t),t=r}}function T(e,t=!0){var r=!1;(t||(e.f&Et)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(pn(e.nodes_start,e.nodes_end),r=!0),rr(e,t&&!r),Qe(e,0),S(e,ee);var n=e.transitions;if(n!==null)for(const i of n)i.stop();tr(e);var s=e.parent;s!==null&&s.first!==null&&nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function pn(e,t){for(;e!==null;){var r=e===t?null:ne(e);e.remove(),e=r}}function nr(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 Ae(e,t,r=!0){var n=[];ir(e,n,!0),gn(n,()=>{r&&T(e),t&&t()})}function gn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ir(e,t,r){if((e.f&j)===0){if(e.f^=j,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&ve)!==0||(n.f&z)!==0&&(e.f&q)!==0;ir(n,t,i?r:!1),n=s}}}function mn(e){sr(e,!0)}function sr(e,t){if((e.f&j)!==0){e.f^=j,(e.f&E)===0&&(S(e,x),le(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ve)!==0||(r.f&z)!==0;sr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function or(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:ne(r);t.append(r),r=s}}let ie=!1;function Xe(e){ie=e}let ce=!1;function ar(e){ce=e}let v=null,B=!1;function F(e){v=e}let g=null;function se(e){g=e}let K=null;function wn(e){v!==null&&(K===null?K=[e]:K.push(e))}let C=null,O=0,I=null;function yn(e){I=e}let lr=1,Ne=0,he=Ne;function fr(e){he=e}function ur(){return++lr}function Re(e){var t=e.f;if((t&x)!==0)return!0;if(t&$&&(e.f&=~oe),(t&Y)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Re(i)&&Ut(i),i.wv>e.wv)return!0}(t&D)!==0&&N===null&&S(e,E)}return!1}function cr(e,t,r=!0){var n=e.reactions;if(n!==null&&!K?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&$)!==0?cr(i,t,!1):t===i&&(r?S(i,x):(i.f&E)!==0&&S(i,Y),le(i))}}function hr(e){var t=C,r=O,n=I,s=v,i=K,o=A,a=B,l=he,f=e.f;C=null,O=0,I=null,v=(f&(z|Q))===0?e:null,K=null,He(e.ctx),B=!1,he=++Ne,e.ac!==null&&(Kt(()=>{e.ac.abort(St)}),e.ac=null);try{e.f|=ft;var d=e.fn,_=d(),c=e.deps;if(C!==null){var h;if(Qe(e,O),c!==null&&O>0)for(c.length=O+C.length,h=0;h<C.length;h++)c[O+h]=C[h];else e.deps=c=C;if(ie&&We()&&(e.f&D)!==0)for(h=O;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&O<c.length&&(Qe(e,O),c.length=O);if(Rt()&&I!==null&&!B&&c!==null&&(e.f&($|Y|x))===0)for(h=0;h<I.length;h++)cr(I[h],e);return s!==null&&s!==e&&(Ne++,I!==null&&(n===null?n=I:n.push(...I))),(e.f&Ce)!==0&&(e.f^=Ce),_}catch(y){return It(y)}finally{e.f^=ft,C=t,O=r,I=n,v=s,K=i,He(o),B=a,he=l}}function $n(e,t){let r=t.reactions;if(r!==null){var n=Cr.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&$)!==0&&(C===null||!C.includes(t))&&(S(t,Y),(t.f&D)!==0&&(t.f^=D,t.f&=~oe),Bt(t),Qe(t,0))}function Qe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)$n(e,r[n])}function Fe(e){var t=e.f;if((t&ee)===0){S(e,E);var r=g,n=ie;g=e,ie=!0;try{(t&q)!==0?vn(e):rr(e),tr(e);var s=hr(e);e.teardown=typeof s=="function"?s:null,e.wv=lr;var i;at&&Kr&&(e.f&x)!==0&&e.deps}finally{ie=n,g=r}}}function U(e){var t=e.f,r=(t&$)!==0;if(v!==null&&!B){var n=g!==null&&(g.f&ee)!==0;if(!n&&!K?.includes(e)){var s=v.deps;if((v.f&ft)!==0)e.rv<Ne&&(e.rv=Ne,C===null&&s!==null&&s[O]===e?O++:C===null?C=[e]:C.includes(e)||C.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:i.includes(v)||i.push(v)}}}if(ce){if(te.has(e))return te.get(e);if(r){var o=e,a=o.v;return((o.f&E)===0&&o.reactions!==null||_r(o))&&(a=dt(o)),te.set(o,a),a}}else r&&!N?.has(e)&&(o=e,Re(o)&&Ut(o),ie&&We()&&(o.f&D)===0&&dr(o));if(N?.has(e))return N.get(e);if((e.f&Ce)!==0)throw e.v;return e.v}function dr(e){if(e.deps!==null){e.f^=D;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&$)!==0&&(t.f&D)===0&&dr(t)}}function _r(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(te.has(t)||(t.f&$)!==0&&_r(t))return!0;return!1}function vr(e){var t=B;try{return B=!0,e()}finally{B=t}}const bn=-7169;function S(e,t){e.f=e.f&bn|t}const pr=new Set,pt=new Set;function kn(e){for(var t=0;t<e.length;t++)pr.add(e[t]);for(var r of pt)r(e)}let gr=null;function et(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;gr=e;var o=0,a=gr===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Ue(e,"currentTarget",{configurable:!0,get(){return i||r}});var d=v,_=g;F(null),se(null);try{for(var c,h=[];i!==null;){var y=i.assignedSlot||i.parentNode||i.host||null;try{var u=i["__"+n];u!=null&&(!i.disabled||e.target===i)&&u.call(i,e)}catch(m){c?h.push(m):c=m}if(e.cancelBubble||y===t||y===null)break;i=y}if(c){for(let m of h)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,F(d),se(_)}}}function mr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function W(e,t){var r=g;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function En(e,t){var r=(t&kr)!==0,n,s=!e.startsWith("<!>");return()=>{if(w)return W(p,null),p;n===void 0&&(n=mr(s?e:"<!>"+e),n=fe(n));var i=r||Ht?document.importNode(n,!0):n.cloneNode(!0);return W(i,i),i}}function Cn(e,t,r="svg"){var n=!e.startsWith("<!>"),s=`<${r}>${n?e:"<!>"+e}</${r}>`,i;return()=>{if(w)return W(p,null),p;if(!i){var o=mr(s),a=fe(o);i=fe(a)}var l=i.cloneNode(!0);return W(l,l),l}}function Ie(e,t){return Cn(e,t,"svg")}function Sn(e=""){if(!w){var t=G(e+"");return W(t,t),t}var r=p;return r.nodeType!==xt&&(r.before(r=G()),V(r)),W(r,r),r}function Me(){if(w)return W(p,null),p;var e=document.createDocumentFragment(),t=document.createComment(""),r=G();return e.append(t,r),W(t,r),e}function L(e,t){if(w){var r=g;((r.f&ze)===0||r.nodes_end===null)&&(r.nodes_end=p),Ve();return}e!==null&&e.before(t)}const xn=["touchstart","touchmove"];function Tn(e){return xn.includes(e)}function wr(e,t){return yr(e,t)}function On(e,t){vt(),t.intro=t.intro??!1;const r=t.target,n=w,s=p;try{for(var i=fe(r);i&&(i.nodeType!==Se||i.data!==yt);)i=ne(i);if(!i)throw de;ge(!0),V(i);const o=yr(e,{...t,anchor:i});return ge(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==de&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Br(),vt(),ln(r),ge(!1),wr(e,t)}finally{ge(n),V(s)}}const we=new Map;function yr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){vt();var a=new Set,l=_=>{for(var c=0;c<_.length;c++){var h=_[c];if(!a.has(h)){a.add(h);var y=Tn(h);t.addEventListener(h,et,{passive:y});var u=we.get(h);u===void 0?(document.addEventListener(h,et,{passive:y}),we.set(h,1)):we.set(h,u+1)}}};l(Sr(pr)),pt.add(l);var f=void 0,d=dn(()=>{var _=r??t.appendChild(G());return tn(_,{pending:()=>{}},c=>{if(i){At({});var h=A;h.c=i}if(s&&(n.$$events=s),w&&W(c,null),f=e(c,n)||{},w&&(g.nodes_end=p,p===null||p.nodeType!==Se||p.data!==$t))throw Ye(),de;i&&Nt()}),()=>{for(var c of a){t.removeEventListener(c,et);var h=we.get(c);--h===0?(document.removeEventListener(c,et),we.delete(c)):we.set(c,h)}pt.delete(l),_!==r&&_.parentNode?.removeChild(_)}});return gt.set(f,d),f}let gt=new WeakMap;function Ln(e,t){const r=gt.get(e);return r?(gt.delete(e),r(t)):Promise.resolve()}class An{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=b;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)mn(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(T(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r||this.#n.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();or(o,f),f.append(G()),this.#r.set(i,{effect:o,fragment:f})}else T(o);this.#n.delete(i),this.#e.delete(i)};this.#l||!n?(this.#n.add(i),Ae(o,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(T(s.effect),this.#r.delete(n))};ensure(t,r){var n=b,s=fn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=G();i.append(o),this.#r.set(t,{effect:J(()=>r(o)),fragment:i})}else this.#e.set(t,J(()=>r(this.anchor)));if(this.#t.set(n,t),s){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 w&&(this.anchor=p),this.#s()}}function Nn(e){A===null&&Ir(),Wt(()=>{const t=vr(e);if(typeof t=="function")return t})}function De(e,t,r=!1){w&&Ve();var n=new An(e),s=r?ve:0;function i(o,a){if(w){const f=Zr(e)===ot;if(o===f){var l=Ot();V(l),n.anchor=l,ge(!1),n.ensure(o,a),ge(!0);return}}n.ensure(o,a)}er(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function Rn(e,t,r,n,s){w&&Ve();var i=t.$$slots?.[r],o=!1;i===!0&&(i=t.children,o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>n:n)}function Fn(e,t){_n(()=>{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 Pe(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(i=!0,c)};var f=!1,d=nn(()=>(f=!1,l())),_=g;return(function(c,h){if(arguments.length>0){const y=h?U(d):c;return Z(d,y),f=!0,s!==void 0&&(s=y),c}return ce&&f||(_.f&ee)!==0?d.v:U(d)})}function In(e){return new Mn(e)}class Mn{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=on(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return U(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Fr?!0:(U(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return Z(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?On:wr)(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)&&me(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ue(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Ln(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 $r;typeof HTMLElement=="function"&&($r=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 i=document.createElement("slot");n!=="default"&&(i.name=n),L(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Dn(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]=tt(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=In({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hn(()=>{Qt(()=>{this.$$r=!0;for(const n of Be(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=tt(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 i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=tt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function tt(e,t,r,n){const 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 Dn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Pn(e,t,r,n,s,i){let o=class extends $r{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Be(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Be(t).forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=tt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var d=_e(f,a)?.get;d?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}class X{constructor(t){this.authUrl=t.authUrl,this.authCookieName=t.authCookieName||"authToken"}async authorizeByToken(t){return X.authByToken(this.authUrl+"/token",t)}async checkLogin(t){return X.checkLogin(this.authUrl+"/token",this.authCookieName,t)}async authorizeSocialLogin(t){return X.authorizeSocialLogin(t,{authUrl:this.authUrl,authCookieName:this.authCookieName})}async socialLoginOauthAnswer(t){return X.socialLoginOauthAnswer(t,{authUrl:this.authUrl,authCookieName:this.authCookieName})}static async authByToken(t,r){const n=await fetch(t,{headers:{Authorization:r,"Content-Type":"application/json"},method:"POST",body:JSON.stringify({token:r})});if(n.ok){const s=await n.json();if(s.error)throw new Error("unauthorized");if(s.token)return s.token;throw console.error("no token on answer"),new Error("no token on answer")}else throw new Error("unauthorized")}static async checkLogin(t,r,n){if(!r)throw new Error("authCookieName is not defined");if(!t)throw new Error("tokenUri is not defined");let s="localStorage",i;if(i=localStorage.getItem(r),i||(i=sessionStorage.getItem(r),s="sessionStorage"),n){console.info("checking auth by token");try{const o=await X.authByToken(t,n);switch(console.info("new token token",o),s){case"localStorage":localStorage.setItem(r,o);break;case"sessionStorage":sessionStorage.setItem(r,o);break}return o}catch{throw new Error("token is not valid")}}if(i){console.info("checking local token",i);try{const o=await X.authByToken(t,i);switch(console.info("new token token",o),s){case"localStorage":localStorage.setItem(r,o);break;case"sessionStorage":sessionStorage.setItem(r,o);break}return o}catch(o){switch(console.error("error on authByToken",o),console.error("not logged"),s){case"localStorage":localStorage.removeItem(r);break;case"sessionStorage":sessionStorage.removeItem(r);break}throw new Error("not logged")}}else throw new Error("not authorized")}static async authorizeSocialLogin(t,r){const n=r.authUrl+"/social/login",s=await fetch(n,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(Object.assign({redirect_uri:t.redirect_uri},t))});if(console.log("server answer with",s),s.ok){const i=await s.json();return r.authCookieName&&localStorage.setItem(r.authCookieName,i.token),console.info("now is logged, token is: "+i.token),i.token}else try{const i=await s.json();throw new Error(JSON.stringify(i))}catch(i){throw i}}static async socialLoginOauthAnswer(t,r){if(console.log("auth socialLoginOauthAnswer",t),!t?.provider)return console.error("auth socialLoginOauthAnswer: no provider");const n={provider:t.provider,token:t.token||t.tmpCode,redirect_uri:t.redirect_uri};return n.token?await X.authorizeSocialLogin(n,r):console.error("auth socialLoginOauthAnswer: no token")}}var jn=Ie('<svg viewBox="-.1 .5 960.2 923.9" width="100%" xmlns="http://www.w3.org/2000/svg"><path d="m958.9 442.4c1.1 26.1-2 52.1-9.2 77.2-7.1 25.1-18.3 48.8-33.1 70.3a240.43 240.43 0 0 1 -53.6 56.2l-.5.4-199.9 149.8-98.3 74.5-59.9 45.2c-3.5 2.7-7.4 4.7-11.5 6.1s-8.5 2.1-12.9 2.1c-4.3 0-8.7-.7-12.8-2.1s-8-3.4-11.5-6.1l-59.9-45.2-98.3-74.5-198.7-148.9-1.2-.8-.4-.4c-20.9-15.7-39-34.7-53.8-56.2s-26-45.3-33.2-70.4c-7.2-25.1-10.3-51.2-9.2-77.3 1.2-26.1 6.5-51.8 15.8-76.2l1.3-3.5 130.7-340.5q1-2.5 2.4-4.8 1.3-2.3 3.1-4.3 1.7-2.1 3.7-3.9 2-1.7 4.2-3.2c3.1-1.9 6.3-3.3 9.8-4.1 3.4-.9 7-1.3 10.5-1.1 3.6.2 7.1.9 10.4 2.2 3.3 1.2 6.5 3 9.3 5.2q2 1.7 3.9 3.6 1.8 2 3.2 4.3 1.5 2.2 2.6 4.7 1.1 2.4 1.8 5l88.1 269.7h356.6l88.1-269.7q.7-2.6 1.9-5 1.1-2.4 2.6-4.7 1.4-2.2 3.2-4.2 1.8-2 3.9-3.7c2.8-2.2 5.9-3.9 9.2-5.2 3.4-1.2 6.9-1.9 10.4-2.1 3.6-.2 7.1.1 10.6 1 3.4.9 6.7 2.3 9.7 4.2q2.3 1.4 4.3 3.2 2 1.7 3.7 3.8 1.7 2.1 3.1 4.4 1.3 2.3 2.3 4.8l130.5 340.6 1.3 3.5c9.3 24.3 14.6 50 15.7 76.1z" fill="#e24329"></path><path d="m959 442.5c1.1 26-2 52.1-9.2 77.2s-18.4 48.9-33.2 70.4-32.9 40.5-53.7 56.2l-.5.4-199.9 149.8s-84.9-64.1-182.5-138l286.5-216.8c12.9-9.7 26.4-18.6 40.3-26.8 13.9-8.3 28.3-15.7 43-22.3 14.8-6.6 29.9-12.5 45.2-17.4 15.4-5 31-9.1 46.9-12.4l1.3 3.5c9.3 24.4 14.6 50.1 15.8 76.2z" fill="#fc6d26"></path><path d="m480 658.5c97.6 73.7 182.6 138 182.6 138l-98.3 74.5-59.9 45.2c-3.5 2.7-7.4 4.7-11.5 6.1s-8.5 2.1-12.9 2.1c-4.3 0-8.7-.7-12.8-2.1s-8-3.4-11.5-6.1l-59.9-45.2-98.3-74.5s84.9-64.3 182.5-138z" fill="#fca326"></path><path d="m480 658.3c-97.7 73.9-182.5 138-182.5 138l-198.7-148.9-1.2-.8-.4-.4c-20.9-15.7-39-34.7-53.8-56.2s-26-45.3-33.2-70.4c-7.2-25.1-10.3-51.2-9.2-77.3 1.2-26.1 6.5-51.8 15.8-76.2l1.3-3.5c15.9 3.3 31.5 7.4 46.9 12.4 15.3 5 30.4 10.8 45.2 17.5 14.7 6.6 29.1 14.1 43 22.3s27.3 17.2 40.3 26.9z" fill="#fc6d26"></path></svg>'),Bn=Ie('<svg width="100%" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#1B1F23"></path></svg>'),Un=Ie(`<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 287.56 191"><defs><style>.cls-1 {
|
|
1
|
+
(function(dt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Cr=2,_t="[",vt="[!",pt="[?",gt="]",pe={},x=Symbol(),Sr="http://www.w3.org/1999/xhtml",xr=!1;var Tr=Array.isArray,Or=Array.prototype.indexOf,ge=Array.prototype.includes,Ar=Array.from,je=Object.keys,Be=Object.defineProperty,me=Object.getOwnPropertyDescriptor,Nr=Object.prototype,Lr=Array.prototype,Rr=Object.getPrototypeOf,mt=Object.isExtensible;const Mr=()=>{};function Fr(e){for(var t=0;t<e.length;t++)e[t]()}function Ir(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const E=2,we=4,wt=8,yt=1<<24,Q=16,j=32,ee=64,We=128,L=512,C=1024,T=2048,B=4096,z=8192,te=16384,fe=32768,$t=1<<25,ye=65536,bt=1<<17,Dr=1<<18,$e=1<<19,Pr=1<<20,ue=65536,Ke=1<<21,kt=1<<22,Te=1<<23,Xe=Symbol("$state"),jr=Symbol("legacy props"),Qe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},et=3,ze=8;function Br(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ur(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Hr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ue(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Wr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function be(e){y=e}let m;function V(e){if(e===null)throw Ue(),pe;return m=e}function qe(){return V(se(m))}function Et(e){if(y){if(se(m)!==null)throw Ue(),pe;m=e}}function Kr(e=1){if(y){for(var t=e,r=m;t--;)r=se(r);m=r}}function Ct(e=!0){for(var t=0,r=m;;){if(r.nodeType===ze){var n=r.data;if(n===gt){if(t===0)return r;t-=1}else(n===_t||n===vt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=se(r);e&&r.remove(),r=i}}function Xr(e){if(!e||e.nodeType!==ze)throw Ue(),pe;return e.data}function St(e){return e===this.v}function Qr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function en(e){return!Qr(e,this.v)}let tn=!1,R=null;function Ve(e){R=e}function xt(e,t=!1,r){R={p:R,i:!1,c:null,e:null,s:e,x:null,r:w,l:null}}function Tt(e){var t=R,r=t.e;if(r!==null){t.e=null;for(var n of r)Qt(n)}return e!==void 0&&(t.x=e),t.i=!0,R=t.p,e??{}}function Ot(){return!0}let ce=[];function At(){var e=ce;ce=[],Fr(e)}function ke(e){if(ce.length===0&&!Oe){var t=ce;queueMicrotask(()=>{t===ce&&At()})}ce.push(e)}function rn(){for(;ce.length>0;)At()}function Nt(e){var t=w;if(t===null)return v.f|=Te,e;if((t.f&fe)===0&&(t.f&we)===0)throw e;Ee(e,t)}function Ee(e,t){for(;t!==null;){if((t.f&We)!==0){if((t.f&fe)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const nn=-7169;function b(e,t){e.f=e.f&nn|t}function tt(e){(e.f&L)!==0||e.deps===null?b(e,C):b(e,B)}function Lt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ue)===0||(t.f^=ue,Lt(t.deps))}function Rt(e,t,r){(e.f&T)!==0?t.add(e):(e.f&B)!==0&&r.add(e),Lt(e.deps),b(e,C)}const re=new Set;let $=null,I=null,rt=null,Oe=!1,nt=!1,Ce=null,Ye=null;var Mt=0;let sn=1;class Y{id=sn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#s=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#i.size>0}#_(){for(const n of this.#f)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)b(n,T),this.schedule(n);for(n of r.m)b(n,B),this.schedule(n)}}#d(){if(Mt++>1e3&&(re.delete(this),on()),!this.#h()){for(const l of this.#o)this.#l.delete(l),b(l,T),this.schedule(l);for(const l of this.#l)b(l,B),this.schedule(l)}const t=this.#n;this.#n=[],this.apply();var r=Ce=[],n=[],i=Ye=[];for(const l of t)try{this.#u(l,r,n)}catch(a){throw jt(l),a}if($=null,i.length>0){var s=Y.ensure();for(const l of i)s.schedule(l)}if(Ce=null,Ye=null,this.#h()||this.#_()){this.#v(n),this.#v(r);for(const[l,a]of this.#a)Pt(l,a)}else{this.#t.size===0&&re.delete(this),this.#o.clear(),this.#l.clear();for(const l of this.#e)l(this);this.#e.clear(),Ft(n),Ft(r),this.#s?.resolve()}var o=$;if(this.#n.length>0){const l=o??=this;l.#n.push(...this.#n.filter(a=>!l.#n.includes(a)))}o!==null&&(re.add(o),o.#d()),re.has(this)||this.#p()}#u(t,r,n){t.f^=C;for(var i=t.first;i!==null;){var s=i.f,o=(s&(j|ee))!==0,l=o&&(s&C)!==0,a=l||(s&z)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=C:(s&we)!==0?r.push(i):Re(i)&&((s&Q)!==0&&this.#l.add(i),xe(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#v(t){for(var r=0;r<t.length;r+=1)Rt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==x&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Te)===0&&(this.current.set(t,[t.v,n]),I?.set(t,t.v))}activate(){$=this}deactivate(){$=null,I=null}flush(){try{nt=!0,$=this,this.#d()}finally{Mt=0,rt=null,Ce=null,Ye=null,nt=!1,$=null,I=null,ne.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),re.delete(this)}#p(){for(const f of re){var t=f.id<this.id,r=[];for(const[c,[_,h]]of this.current){if(f.current.has(c)){var n=f.current.get(c)[0];if(t&&_!==n)f.current.set(c,[_,h]);else continue}r.push(c)}var i=[...f.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&f.discard();else if(r.length>0){f.activate();var s=new Set,o=new Map;for(var l of r)It(l,i,s,o);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of re)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let s=this.#i.get(r)??0;s===1?this.#i.delete(r):this.#i.set(r,s-1)}this.#c||n||(this.#c=!0,ke(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#s??=Ir()).promise}static ensure(){if($===null){const t=$=new Y;nt||(re.add($),Oe||ke(()=>{$===t&&t.flush()}))}return $}apply(){{I=null;return}}schedule(t){if(rt=t,t.b?.is_pending&&(t.f&(we|wt|yt))!==0&&(t.f&fe)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Ce!==null&&r===w&&(v===null||(v.f&E)===0))return;if((n&(ee|j))!==0){if((n&C)===0)return;r.f^=C}}this.#n.push(r)}}function Se(e){var t=Oe;Oe=!0;try{for(var r;;){if(rn(),$===null)return r;$.flush()}}finally{Oe=t}}function on(){try{Vr()}catch(e){Ee(e,rt)}}let H=null;function Ft(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(te|z))===0&&Re(n)&&(H=new Set,xe(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&nr(n),H?.size>0)){ne.clear();for(const i of H){if((i.f&(te|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)H.has(o)&&(H.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(te|z))===0&&xe(a)}}H.clear()}}H=null}}function It(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?It(i,t,r,n):(s&(kt|Q))!==0&&(s&T)===0&&Dt(i,t,n)&&(b(i,T),it(i))}}function Dt(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(ge.call(t,i))return!0;if((i.f&E)!==0&&Dt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function it(e){$.schedule(e)}function Pt(e,t){if(!((e.f&j)!==0&&(e.f&C)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&B)!==0&&t.m.push(e),b(e,C);for(var r=e.first;r!==null;)Pt(r,t),r=r.next}}function jt(e){b(e,C);for(var t=e.first;t!==null;)jt(t),t=t.next}function ln(e){let t=0,r=He(0),n;return()=>{ft()&&(q(r),er(()=>(t===0&&(n=vr(()=>e(()=>Ae(r)))),t+=1,()=>{ke(()=>{t-=1,t===0&&(n?.(),n=void 0,Ae(r))})})))}}var an=ye|$e;function fn(e,t,r,n){new un(e,t,r,n)}class un{parent;is_pending=!1;transform_error;#e;#r=y?m:null;#t;#i;#s;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#h=!1;#_=new Set;#d=new Set;#u=null;#v=ln(()=>(this.#u=He(this.#c),()=>{this.#u=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=s=>{var o=w;o.b=this,o.f|=We,n(s)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=tr(()=>{if(y){const s=this.#r;qe();const o=s.data===vt;if(s.data.startsWith(pt)){const a=JSON.parse(s.data.slice(pt.length));this.#$(a)}else o?this.#b():this.#p()}else this.#w()},an),y&&(this.#e=m)}#p(){try{this.#n=J(()=>this.#i(this.#e))}catch(t){this.error(t)}}#$(t){const r=this.#t.failed;r&&(this.#l=J(()=>{r(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=J(()=>t(this.#e)),ke(()=>{var r=this.#a=document.createDocumentFragment(),n=G();r.append(n),this.#n=this.#m(()=>J(()=>this.#i(n))),this.#f===0&&(this.#e.before(r),this.#a=null,Le(this.#o,()=>{this.#o=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=J(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();or(this.#n,t);const r=this.#t.pending;this.#o=J(()=>r(this.#e))}else this.#g($)}catch(r){this.error(r)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#_,this.#d)}defer_effect(t){Rt(t,this.#_,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=w,n=v,i=R;le(this.#s),U(this.#s),Ve(this.#s.ctx);try{return Y.ensure(),t()}catch(s){return Nt(s),null}finally{le(r),U(n),Ve(i)}}#y(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,r);return}this.#f+=t,this.#f===0&&(this.#g(r),this.#o&&Le(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#y(t,r),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,ke(()=>{this.#h=!1,this.#u&&qt(this.#u,this.#c)}))}get_effect_pending(){return this.#v(),q(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(O(this.#n),this.#n=null),this.#o&&(O(this.#o),this.#o=null),this.#l&&(O(this.#l),this.#l=null),y&&(V(this.#r),Kr(),V(Ct()));var i=!1,s=!1;const o=()=>{if(i){Wr();return}i=!0,s&&Jr(),this.#l!==null&&Le(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#w()})},l=a=>{try{s=!0,r?.(a,o),s=!1}catch(f){Ee(f,this.#s&&this.#s.parent)}n&&(this.#l=this.#m(()=>{try{return J(()=>{var f=w;f.b=this,f.f|=We,n(this.#e,()=>a,()=>o)})}catch(f){return Ee(f,this.#s.parent),null}}))};ke(()=>{var a;try{a=this.transform_error(t)}catch(f){Ee(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>Ee(f,this.#s&&this.#s.parent)):l(a)})}}function cn(e){var t=E|T,r=v!==null&&(v.f&E)!==0?v:null;return w!==null&&(w.f|=$e),{ctx:R,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:r??w,ac:null}}function hn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function dn(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&te)===0?t:null;t=t.parent}return null}function st(e){var t,r=w;le(dn(e));try{e.f&=~ue,hn(e),t=hr(e)}finally{le(r)}return t}function Bt(e){var t=e.v,r=st(e);if(!e.equals(r)&&(e.wv=ur(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){b(e,C);return}oe||(I!==null?(ft()||$?.is_fork)&&I.set(e,r):tt(e))}function _n(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Qe),t.teardown=Mr,t.ac=null,Me(t,0),ut(t))}function zt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&xe(t)}let ot=new Set;const ne=new Map;let Ut=!1;function He(e,t){var r={f:0,v:e,reactions:null,equals:St,rv:0,wv:0};return r}function ie(e,t){const r=He(e);return Tn(r),r}function vn(e,t=!1,r=!0){const n=He(e);return t||(n.equals=en),n}function Z(e,t,r=!1){v!==null&&(!D||(v.f&bt)!==0)&&Ot()&&(v.f&(E|Q|kt|bt))!==0&&(M===null||!ge.call(M,e))&&Gr();let n=r?Ne(t):t;return qt(e,n,Ye)}function qt(e,t,r=null){if(!e.equals(t)){var n=e.v;oe?ne.set(e,t):ne.set(e,n),e.v=t;var i=Y.ensure();if(i.capture(e,n),(e.f&E)!==0){const s=e;(e.f&T)!==0&&st(s),I===null&&tt(s)}e.wv=ur(),Vt(e,T,r),w!==null&&(w.f&C)!==0&&(w.f&(j|ee))===0&&(F===null?On([e]):F.push(e)),!i.is_fork&&ot.size>0&&!Ut&&pn()}return t}function pn(){Ut=!1;for(const e of ot)(e.f&C)!==0&&b(e,B),Re(e)&&xe(e);ot.clear()}function Ae(e){Z(e,e.v+1)}function Vt(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var o=n[s],l=o.f,a=(l&T)===0;if(a&&b(o,t),(l&E)!==0){var f=o;I?.delete(f),(l&ue)===0&&(l&L&&(o.f|=ue),Vt(f,B,r))}else if(a){var c=o;(l&Q)!==0&&H!==null&&H.add(c),r!==null?r.push(c):it(c)}}}function Ne(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=Rr(e);if(t!==Nr&&t!==Lr)return e;var r=new Map,n=Tr(e),i=ie(0),s=ve,o=l=>{if(ve===s)return l();var a=v,f=ve;U(null),fr(s);var c=l();return U(a),fr(f),c};return n&&r.set("length",ie(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Hr();var c=r.get(a);return c===void 0?o(()=>{var _=ie(f.value);return r.set(a,_),_}):Z(c,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const c=o(()=>ie(x));r.set(a,c),Ae(i)}}else Z(f,x),Ae(i);return!0},get(l,a,f){if(a===Xe)return e;var c=r.get(a),_=a in l;if(c===void 0&&(!_||me(l,a)?.writable)&&(c=o(()=>{var p=Ne(_?l[a]:x),d=ie(p);return d}),r.set(a,c)),c!==void 0){var h=q(c);return h===x?void 0:h}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=r.get(a);c&&(f.value=q(c))}else if(f===void 0){var _=r.get(a),h=_?.v;if(_!==void 0&&h!==x)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(l,a){if(a===Xe)return!0;var f=r.get(a),c=f!==void 0&&f.v!==x||Reflect.has(l,a);if(f!==void 0||w!==null&&(!c||me(l,a)?.writable)){f===void 0&&(f=o(()=>{var h=c?Ne(l[a]):x,p=ie(h);return p}),r.set(a,f));var _=q(f);if(_===x)return!1}return c},set(l,a,f,c){var _=r.get(a),h=a in l;if(n&&a==="length")for(var p=f;p<_.v;p+=1){var d=r.get(p+"");d!==void 0?Z(d,x):p in l&&(d=o(()=>ie(x)),r.set(p+"",d))}if(_===void 0)(!h||me(l,a)?.writable)&&(_=o(()=>ie(void 0)),Z(_,Ne(f)),r.set(a,_));else{h=_.v!==x;var u=o(()=>Ne(f));Z(_,u)}var g=Reflect.getOwnPropertyDescriptor(l,a);if(g?.set&&g.set.call(c,f),!h){if(n&&typeof a=="string"){var k=r.get("length"),ae=Number(a);Number.isInteger(ae)&&ae>=k.v&&Z(k,ae+1)}Ae(i)}return!0},ownKeys(l){q(i);var a=Reflect.ownKeys(l).filter(_=>{var h=r.get(_);return h===void 0||h.v!==x});for(var[f,c]of r)c.v!==x&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Zr()}})}var Yt,Ht,Zt,Gt;function lt(){if(Yt===void 0){Yt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Zt=me(t,"firstChild").get,Gt=me(t,"nextSibling").get,mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mt(r)&&(r.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function he(e){return Zt.call(e)}function se(e){return Gt.call(e)}function Jt(e,t){if(!y)return he(e);var r=he(m);return r===null&&(r=m.appendChild(G())),V(r),r}function gn(e,t=!1){if(!y){var r=he(e);return r instanceof Comment&&r.data===""?se(r):r}if(t){if(m?.nodeType!==et){var n=G();return m?.before(n),V(n),n}Wt(m)}return m}function mn(e){e.textContent=""}function wn(){return!1}function at(e,t,r){return document.createElementNS(Sr,e,void 0)}function Wt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===et;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Kt(e){var t=v,r=w;U(null),le(null);try{return e()}finally{U(t),le(r)}}function yn(e){w===null&&(v===null&&qr(),Ur()),oe&&zr()}function $n(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function de(e,t){var r=w;r!==null&&(r.f&z)!==0&&(e|=z);var n={ctx:R,deps:null,nodes:null,f:e|T|L,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&we)!==0)Ce!==null?Ce.push(n):Y.ensure().schedule(n);else if(t!==null){try{xe(n)}catch(o){throw O(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&$e)===0&&(i=i.first,(e&Q)!==0&&(e&ye)!==0&&i!==null&&(i.f|=ye))}if(i!==null&&(i.parent=r,r!==null&&$n(i,r),v!==null&&(v.f&E)!==0&&(e&ee)===0)){var s=v;(s.effects??=[]).push(i)}return n}function ft(){return v!==null&&!D}function Xt(e){yn();var t=w.f,r=!v&&(t&j)!==0&&(t&fe)===0;if(r){var n=R;(n.e??=[]).push(e)}else return Qt(e)}function Qt(e){return de(we|Pr,e)}function bn(e){Y.ensure();const t=de(ee|$e,e);return()=>{O(t)}}function kn(e){Y.ensure();const t=de(ee|$e,e);return(r={})=>new Promise(n=>{r.outro?Le(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function En(e){return de(we,e)}function er(e,t=0){return de(wt|t,e)}function tr(e,t=0){var r=de(Q|t,e);return r}function J(e){return de(j|$e,e)}function rr(e){var t=e.teardown;if(t!==null){const r=oe,n=v;lr(!0),U(null);try{t.call(null)}finally{lr(r),U(n)}}}function ut(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Kt(()=>{i.abort(Qe)});var n=r.next;(r.f&ee)!==0?r.parent=null:O(r,t),r=n}}function Cn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&j)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&Dr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Sn(e.nodes.start,e.nodes.end),r=!0),b(e,$t),ut(e,t&&!r),Me(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();rr(e),e.f^=$t,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Sn(e,t){for(;e!==null;){var r=e===t?null:se(e);e.remove(),e=r}}function nr(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 Le(e,t,r=!0){var n=[];ir(e,n,!0);var i=()=>{r&&O(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var l of n)l.out(o)}else i()}function ir(e,t,r){if((e.f&z)===0){e.f^=z;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&ye)!==0||(i.f&j)!==0&&(e.f&Q)!==0;ir(i,t,o?r:!1),i=s}}}function xn(e){sr(e,!0)}function sr(e,t){if((e.f&z)!==0){e.f^=z,(e.f&C)===0&&(b(e,T),Y.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ye)!==0||(r.f&j)!==0;sr(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function or(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:se(r);t.append(r),r=i}}let Ze=!1,oe=!1;function lr(e){oe=e}let v=null,D=!1;function U(e){v=e}let w=null;function le(e){w=e}let M=null;function Tn(e){v!==null&&(M===null?M=[e]:M.push(e))}let A=null,N=0,F=null;function On(e){F=e}let ar=1,_e=0,ve=_e;function fr(e){ve=e}function ur(){return++ar}function Re(e){var t=e.f;if((t&T)!==0)return!0;if(t&E&&(e.f&=~ue),(t&B)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Re(s)&&Bt(s),s.wv>e.wv)return!0}(t&L)!==0&&I===null&&b(e,C)}return!1}function cr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(M!==null&&ge.call(M,e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&E)!==0?cr(s,t,!1):t===s&&(r?b(s,T):(s.f&C)!==0&&b(s,B),it(s))}}function hr(e){var t=A,r=N,n=F,i=v,s=M,o=R,l=D,a=ve,f=e.f;A=null,N=0,F=null,v=(f&(j|ee))===0?e:null,M=null,Ve(e.ctx),D=!1,ve=++_e,e.ac!==null&&(Kt(()=>{e.ac.abort(Qe)}),e.ac=null);try{e.f|=Ke;var c=e.fn,_=c();e.f|=fe;var h=e.deps,p=$?.is_fork;if(A!==null){var d;if(p||Me(e,N),h!==null&&N>0)for(h.length=N+A.length,d=0;d<A.length;d++)h[N+d]=A[d];else e.deps=h=A;if(ft()&&(e.f&L)!==0)for(d=N;d<h.length;d++)(h[d].reactions??=[]).push(e)}else!p&&h!==null&&N<h.length&&(Me(e,N),h.length=N);if(Ot()&&F!==null&&!D&&h!==null&&(e.f&(E|B|T))===0)for(d=0;d<F.length;d++)cr(F[d],e);if(i!==null&&i!==e){if(_e++,i.deps!==null)for(let u=0;u<r;u+=1)i.deps[u].rv=_e;if(t!==null)for(const u of t)u.rv=_e;F!==null&&(n===null?n=F:n.push(...F))}return(e.f&Te)!==0&&(e.f^=Te),_}catch(u){return Nt(u)}finally{e.f^=Ke,A=t,N=r,F=n,v=i,M=s,Ve(o),D=l,ve=a}}function An(e,t){let r=t.reactions;if(r!==null){var n=Or.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&E)!==0&&(A===null||!ge.call(A,t))){var s=t;(s.f&L)!==0&&(s.f^=L,s.f&=~ue),tt(s),_n(s),Me(s,0)}}function Me(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)An(e,r[n])}function xe(e){var t=e.f;if((t&te)===0){b(e,C);var r=w,n=Ze;w=e,Ze=!0;try{(t&(Q|yt))!==0?Cn(e):ut(e),rr(e);var i=hr(e);e.teardown=typeof i=="function"?i:null,e.wv=ar;var s;xr&&tn&&(e.f&T)!==0&&e.deps}finally{Ze=n,w=r}}}function q(e){var t=e.f,r=(t&E)!==0;if(v!==null&&!D){var n=w!==null&&(w.f&te)!==0;if(!n&&(M===null||!ge.call(M,e))){var i=v.deps;if((v.f&Ke)!==0)e.rv<_e&&(e.rv=_e,A===null&&i!==null&&i[N]===e?N++:A===null?A=[e]:A.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:ge.call(s,v)||s.push(v)}}}if(oe&&ne.has(e))return ne.get(e);if(r){var o=e;if(oe){var l=o.v;return((o.f&C)===0&&o.reactions!==null||_r(o))&&(l=st(o)),ne.set(o,l),l}var a=(o.f&L)===0&&!D&&v!==null&&(Ze||(v.f&L)!==0),f=(o.f&fe)===0;Re(o)&&(a&&(o.f|=L),Bt(o)),a&&!f&&(zt(o),dr(o))}if(I?.has(e))return I.get(e);if((e.f&Te)!==0)throw e.v;return e.v}function dr(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&L)===0&&(zt(t),dr(t))}function _r(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&E)!==0&&_r(t))return!0;return!1}function vr(e){var t=D;try{return D=!0,e()}finally{D=t}}const Fe=Symbol("events"),pr=new Set,ct=new Set;function gr(e,t,r){(t[Fe]??={})[e]=r}function Nn(e){for(var t=0;t<e.length;t++)pr.add(e[t]);for(var r of ct)r(e)}let mr=null;function wr(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;mr=e;var o=0,l=mr===e&&e[Fe];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Fe]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Be(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=v,_=w;U(null),le(null);try{for(var h,p=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var u=s[Fe]?.[n];u!=null&&(!s.disabled||e.target===s)&&u.call(s,e)}catch(g){h?p.push(g):h=g}if(e.cancelBubble||d===t||d===null)break;s=d}if(h){for(let g of p)queueMicrotask(()=>{throw g});throw h}}finally{e[Fe]=t,delete e.currentTarget,U(c),le(_)}}}const Ln=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Rn(e){return Ln?.createHTML(e)??e}function yr(e){var t=at("template");return t.innerHTML=Rn(e.replaceAll("<!>","<!---->")),t.content}function W(e,t){var r=w;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Mn(e,t){var r=(t&Cr)!==0,n,i=!e.startsWith("<!>");return()=>{if(y)return W(m,null),m;n===void 0&&(n=yr(i?e:"<!>"+e),n=he(n));var s=r||Ht?document.importNode(n,!0):n.cloneNode(!0);return W(s,s),s}}function Fn(e,t,r="svg"){var n=!e.startsWith("<!>"),i=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(y)return W(m,null),m;if(!s){var o=yr(i),l=he(o);s=he(l)}var a=s.cloneNode(!0);return W(a,a),a}}function Ie(e,t){return Fn(e,t,"svg")}function In(e=""){if(!y){var t=G(e+"");return W(t,t),t}var r=m;return r.nodeType!==et?(r.before(r=G()),V(r)):Wt(r),W(r,r),r}function Dn(){if(y)return W(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=G();return e.append(t,r),W(t,r),e}function K(e,t){if(y){var r=w;((r.f&fe)===0||r.nodes.end===null)&&(r.nodes.end=m),qe();return}e!==null&&e.before(t)}const Pn=["touchstart","touchmove"];function jn(e){return Pn.includes(e)}function $r(e,t){return br(e,t)}function Bn(e,t){lt(),t.intro=t.intro??!1;const r=t.target,n=y,i=m;try{for(var s=he(r);s&&(s.nodeType!==ze||s.data!==_t);)s=se(s);if(!s)throw pe;be(!0),V(s);const o=br(e,{...t,anchor:s});return be(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Yr(),lt(),mn(r),be(!1),$r(e,t)}finally{be(n),V(i)}}const Ge=new Map;function br(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:l}){lt();var a=void 0,f=kn(()=>{var c=r??t.appendChild(G());fn(c,{pending:()=>{}},p=>{xt({});var d=R;if(s&&(d.c=s),i&&(n.$$events=i),y&&W(p,null),a=e(p,n)||{},y&&(w.nodes.end=m,m===null||m.nodeType!==ze||m.data!==gt))throw Ue(),pe;Tt()},l);var _=new Set,h=p=>{for(var d=0;d<p.length;d++){var u=p[d];if(!_.has(u)){_.add(u);var g=jn(u);for(const Pe of[t,document]){var k=Ge.get(Pe);k===void 0&&(k=new Map,Ge.set(Pe,k));var ae=k.get(u);ae===void 0?(Pe.addEventListener(u,wr,{passive:g}),k.set(u,1)):k.set(u,ae+1)}}}};return h(Ar(pr)),ct.add(h),()=>{for(var p of _)for(const g of[t,document]){var d=Ge.get(g),u=d.get(p);--u==0?(g.removeEventListener(p,wr),d.delete(p),d.size===0&&Ge.delete(g)):d.set(p,u)}ct.delete(h),c!==r&&c.parentNode?.removeChild(c)}});return ht.set(a,f),a}let ht=new WeakMap;function zn(e,t){const r=ht.get(e);return r?(ht.delete(e),r(t)):Promise.resolve()}class Un{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)xn(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(O(l.effect),this.#t.delete(o))}for(const[s,o]of this.#r){if(s===r||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();or(o,f),f.append(G()),this.#t.set(s,{effect:o,fragment:f})}else O(o);this.#i.delete(s),this.#r.delete(s)};this.#s||!n?(this.#i.add(s),Le(o,l,!1)):l()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(O(i.effect),this.#t.delete(n))};ensure(t,r){var n=$,i=wn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=G();s.append(o),this.#t.set(t,{effect:J(()=>r(o)),fragment:s})}else this.#r.set(t,J(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[l,a]of this.#r)l===t?n.unskip_effect(a):n.skip_effect(a);for(const[l,a]of this.#t)l===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else y&&(this.anchor=m),this.#n(n)}}function qn(e){R===null&&Br(),Xt(()=>{const t=vr(e);if(typeof t=="function")return t})}function Vn(e,t,r=!1){var n;y&&(n=m,qe());var i=new Un(e),s=r?ye:0;function o(l,a){if(y){var f=Xr(n);if(l!==parseInt(f.substring(1))){var c=Ct();V(c),i.anchor=c,be(!1),i.ensure(l,a),be(!0);return}}i.ensure(l,a)}tr(()=>{var l=!1;t((a,f=0)=>{l=!0,o(f,a)}),l||o(-1,null)},s)}function Yn(e,t,r,n,i){y&&qe();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t.children,o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function Hn(e,t){En(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=at("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function De(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var h=e[t];return h===void 0?o():(s=!0,h)};var f=!1,c=cn(()=>(f=!1,a())),_=w;return(function(h,p){if(arguments.length>0){const d=p?q(c):h;return Z(c,d),f=!0,i!==void 0&&(i=d),h}return oe&&f||(_.f&te)!==0?c.v:q(c)})}function Zn(e){return new Gn(e)}class Gn{#e;#r;constructor(t){var r=new Map,n=(s,o)=>{var l=vn(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return q(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===jr?!0:(q(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return Z(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});this.#r=(t.hydrate?Bn:$r)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Se(),this.#e=i.$$events;for(const s of Object.keys(this.#r))s==="$set"||s==="$destroy"||s==="$on"||Be(this,s,{get(){return this.#r[s]},set(o){this.#r[s]=o},enumerable:!0});this.#r.$set=s=>{Object.assign(i,s)},this.#r.$destroy=()=>{zn(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let kr;typeof HTMLElement=="function"&&(kr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}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=at("slot");n!=="default"&&(s.name=n),K(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Jn(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]=Je(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=Zn({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=bn(()=>{er(()=>{this.$$r=!0;for(const n of je(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Je(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]=Je(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 je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Je(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 Jn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Wn(e,t,r,n,i,s){let o=class extends kr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return je(t).map(l=>(t[l].attribute||l).toLowerCase())}};return je(t).forEach(l=>{Be(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Je(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var c=me(f,l)?.get;c?f[l]=a:f.$set({[l]:a})}}})}),n.forEach(l=>{Be(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}class X{constructor(t){this.authUrl=t.authUrl,this.authCookieName=t.authCookieName||"authToken"}async authorizeByToken(t){return X.authByToken(this.authUrl+"/token",t)}async checkLogin(t){return X.checkLogin(this.authUrl+"/token",this.authCookieName,t)}async authorizeSocialLogin(t){return X.authorizeSocialLogin(t,{authUrl:this.authUrl,authCookieName:this.authCookieName})}async socialLoginOauthAnswer(t){return X.socialLoginOauthAnswer(t,{authUrl:this.authUrl,authCookieName:this.authCookieName})}static async authByToken(t,r){const n=await fetch(t,{headers:{Authorization:r,"Content-Type":"application/json"},method:"POST",body:JSON.stringify({token:r})});if(n.ok){const i=await n.json();if(i.error)throw new Error("unauthorized");if(i.token)return i.token;throw console.error("no token on answer"),new Error("no token on answer")}else throw new Error("unauthorized")}static async checkLogin(t,r,n){if(!r)throw new Error("authCookieName is not defined");if(!t)throw new Error("tokenUri is not defined");let i="localStorage",s;if(s=localStorage.getItem(r),s||(s=sessionStorage.getItem(r),i="sessionStorage"),n){console.info("checking auth by token");try{const o=await X.authByToken(t,n);switch(console.info("new token token",o),i){case"localStorage":localStorage.setItem(r,o);break;case"sessionStorage":sessionStorage.setItem(r,o);break}return o}catch{throw new Error("token is not valid")}}if(s){console.info("checking local token",s);try{const o=await X.authByToken(t,s);switch(console.info("new token token",o),i){case"localStorage":localStorage.setItem(r,o);break;case"sessionStorage":sessionStorage.setItem(r,o);break}return o}catch(o){switch(console.error("error on authByToken",o),console.error("not logged"),i){case"localStorage":localStorage.removeItem(r);break;case"sessionStorage":sessionStorage.removeItem(r);break}throw new Error("not logged")}}else throw new Error("not authorized")}static async authorizeSocialLogin(t,r){const n=r.authUrl+"/social/login",i=await fetch(n,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(Object.assign({redirect_uri:t.redirect_uri},t))});if(console.log("server answer with",i),i.ok){const s=await i.json();return r.authCookieName&&localStorage.setItem(r.authCookieName,s.token),console.info("now is logged, token is: "+s.token),s.token}else try{const s=await i.json();throw new Error(JSON.stringify(s))}catch(s){throw s}}static async socialLoginOauthAnswer(t,r){if(console.log("auth socialLoginOauthAnswer",t),!t?.provider)return console.error("auth socialLoginOauthAnswer: no provider");const n={provider:t.provider,token:t.token||t.tmpCode,redirect_uri:t.redirect_uri};return n.token?await X.authorizeSocialLogin(n,r):console.error("auth socialLoginOauthAnswer: no token")}}var Kn=Ie('<svg viewBox="-.1 .5 960.2 923.9" width="100%" xmlns="http://www.w3.org/2000/svg"><path d="m958.9 442.4c1.1 26.1-2 52.1-9.2 77.2-7.1 25.1-18.3 48.8-33.1 70.3a240.43 240.43 0 0 1 -53.6 56.2l-.5.4-199.9 149.8-98.3 74.5-59.9 45.2c-3.5 2.7-7.4 4.7-11.5 6.1s-8.5 2.1-12.9 2.1c-4.3 0-8.7-.7-12.8-2.1s-8-3.4-11.5-6.1l-59.9-45.2-98.3-74.5-198.7-148.9-1.2-.8-.4-.4c-20.9-15.7-39-34.7-53.8-56.2s-26-45.3-33.2-70.4c-7.2-25.1-10.3-51.2-9.2-77.3 1.2-26.1 6.5-51.8 15.8-76.2l1.3-3.5 130.7-340.5q1-2.5 2.4-4.8 1.3-2.3 3.1-4.3 1.7-2.1 3.7-3.9 2-1.7 4.2-3.2c3.1-1.9 6.3-3.3 9.8-4.1 3.4-.9 7-1.3 10.5-1.1 3.6.2 7.1.9 10.4 2.2 3.3 1.2 6.5 3 9.3 5.2q2 1.7 3.9 3.6 1.8 2 3.2 4.3 1.5 2.2 2.6 4.7 1.1 2.4 1.8 5l88.1 269.7h356.6l88.1-269.7q.7-2.6 1.9-5 1.1-2.4 2.6-4.7 1.4-2.2 3.2-4.2 1.8-2 3.9-3.7c2.8-2.2 5.9-3.9 9.2-5.2 3.4-1.2 6.9-1.9 10.4-2.1 3.6-.2 7.1.1 10.6 1 3.4.9 6.7 2.3 9.7 4.2q2.3 1.4 4.3 3.2 2 1.7 3.7 3.8 1.7 2.1 3.1 4.4 1.3 2.3 2.3 4.8l130.5 340.6 1.3 3.5c9.3 24.3 14.6 50 15.7 76.1z" fill="#e24329"></path><path d="m959 442.5c1.1 26-2 52.1-9.2 77.2s-18.4 48.9-33.2 70.4-32.9 40.5-53.7 56.2l-.5.4-199.9 149.8s-84.9-64.1-182.5-138l286.5-216.8c12.9-9.7 26.4-18.6 40.3-26.8 13.9-8.3 28.3-15.7 43-22.3 14.8-6.6 29.9-12.5 45.2-17.4 15.4-5 31-9.1 46.9-12.4l1.3 3.5c9.3 24.4 14.6 50.1 15.8 76.2z" fill="#fc6d26"></path><path d="m480 658.5c97.6 73.7 182.6 138 182.6 138l-98.3 74.5-59.9 45.2c-3.5 2.7-7.4 4.7-11.5 6.1s-8.5 2.1-12.9 2.1c-4.3 0-8.7-.7-12.8-2.1s-8-3.4-11.5-6.1l-59.9-45.2-98.3-74.5s84.9-64.3 182.5-138z" fill="#fca326"></path><path d="m480 658.3c-97.7 73.9-182.5 138-182.5 138l-198.7-148.9-1.2-.8-.4-.4c-20.9-15.7-39-34.7-53.8-56.2s-26-45.3-33.2-70.4c-7.2-25.1-10.3-51.2-9.2-77.3 1.2-26.1 6.5-51.8 15.8-76.2l1.3-3.5c15.9 3.3 31.5 7.4 46.9 12.4 15.3 5 30.4 10.8 45.2 17.5 14.7 6.6 29.1 14.1 43 22.3s27.3 17.2 40.3 26.9z" fill="#fc6d26"></path></svg>'),Xn=Ie('<svg width="100%" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#1B1F23"></path></svg>'),Qn=Ie(`<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 287.56 191"><defs><style>.cls-1 {
|
|
3
3
|
fill: #0081fb;
|
|
4
4
|
}
|
|
5
5
|
.cls-2 {
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
}
|
|
8
8
|
.cls-3 {
|
|
9
9
|
fill: url(#linear-gradient-2);
|
|
10
|
-
}</style><linearGradient id="linear-gradient" x1="62.34" y1="101.45" x2="260.34" y2="91.45" gradientTransform="matrix(1, 0, 0, -1, 0, 192)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0064e1"></stop><stop offset="0.4" stop-color="#0064e1"></stop><stop offset="0.83" stop-color="#0073ee"></stop><stop offset="1" stop-color="#0082fb"></stop></linearGradient><linearGradient id="linear-gradient-2" x1="41.42" y1="53" x2="41.42" y2="126" gradientTransform="matrix(1, 0, 0, -1, 0, 192)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0082fb"></stop><stop offset="1" stop-color="#0064e0"></stop></linearGradient></defs><title>facebook-meta</title><path class="cls-1" d="M31.06,126c0,11,2.41,19.41,5.56,24.51A19,19,0,0,0,53.19,160c8.1,0,15.51-2,29.79-21.76,11.44-15.83,24.92-38,34-52l15.36-23.6c10.67-16.39,23-34.61,37.18-47C181.07,5.6,193.54,0,206.09,0c21.07,0,41.14,12.21,56.5,35.11,16.81,25.08,25,56.67,25,89.27,0,19.38-3.82,33.62-10.32,44.87C271,180.13,258.72,191,238.13,191V160c17.63,0,22-16.2,22-34.74,0-26.42-6.16-55.74-19.73-76.69-9.63-14.86-22.11-23.94-35.84-23.94-14.85,0-26.8,11.2-40.23,31.17-7.14,10.61-14.47,23.54-22.7,38.13l-9.06,16c-18.2,32.27-22.81,39.62-31.91,51.75C84.74,183,71.12,191,53.19,191c-21.27,0-34.72-9.21-43-23.09C3.34,156.6,0,141.76,0,124.85Z"></path><path class="cls-2" d="M24.49,37.3C38.73,15.35,59.28,0,82.85,0c13.65,0,27.22,4,41.39,15.61,15.5,12.65,32,33.48,52.63,67.81l7.39,12.32c17.84,29.72,28,45,33.93,52.22,7.64,9.26,13,12,19.94,12,17.63,0,22-16.2,22-34.74l27.4-.86c0,19.38-3.82,33.62-10.32,44.87C271,180.13,258.72,191,238.13,191c-12.8,0-24.14-2.78-36.68-14.61-9.64-9.08-20.91-25.21-29.58-39.71L146.08,93.6c-12.94-21.62-24.81-37.74-31.68-45C107,40.71,97.51,31.23,82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78Z"></path><path class="cls-3" d="M82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78C38.61,71.62,31.06,99.34,31.06,126c0,11,2.41,19.41,5.56,24.51L10.14,167.91C3.34,156.6,0,141.76,0,124.85,0,94.1,8.44,62.05,24.49,37.3,38.73,15.35,59.28,0,82.85,0Z"></path></svg>`),qn=Ie('<svg viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1, 0, 0, 1, 27.009001, -39.238998)"><path fill="#4285F4" d="M -3.264 51.509 C -3.264 50.719 -3.334 49.969 -3.454 49.239 L -14.754 49.239 L -14.754 53.749 L -8.284 53.749 C -8.574 55.229 -9.424 56.479 -10.684 57.329 L -10.684 60.329 L -6.824 60.329 C -4.564 58.239 -3.264 55.159 -3.264 51.509 Z"></path><path fill="#34A853" d="M -14.754 63.239 C -11.514 63.239 -8.804 62.159 -6.824 60.329 L -10.684 57.329 C -11.764 58.049 -13.134 58.489 -14.754 58.489 C -17.884 58.489 -20.534 56.379 -21.484 53.529 L -25.464 53.529 L -25.464 56.619 C -23.494 60.539 -19.444 63.239 -14.754 63.239 Z"></path><path fill="#FBBC05" d="M -21.484 53.529 C -21.734 52.809 -21.864 52.039 -21.864 51.239 C -21.864 50.439 -21.724 49.669 -21.484 48.949 L -21.484 45.859 L -25.464 45.859 C -26.284 47.479 -26.754 49.299 -26.754 51.239 C -26.754 53.179 -26.284 54.999 -25.464 56.619 L -21.484 53.529 Z"></path><path fill="#EA4335" d="M -14.754 43.989 C -12.984 43.989 -11.404 44.599 -10.154 45.789 L -6.734 42.369 C -8.804 40.429 -11.514 39.239 -14.754 39.239 C -19.444 39.239 -23.494 41.939 -25.464 45.859 L -21.484 48.949 C -20.534 46.099 -17.884 43.989 -14.754 43.989 Z"></path></g></svg>'),zn=Ie('<svg viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><desc>Authentik Streamline Icon: https://streamlinehq.com</desc><title>Authentik</title><path d="M13.96 9.01h-0.84V7.492h-1.234v3.663H5.722c0.34 0.517 0.538 0.982 0.538 1.152 0 0.46 -1.445 3.059 -3.197 3.059C0.8 15.427 -0.745 12.8 0.372 10.855a3.062 3.062 0 0 1 2.691 -1.606c1.04 0 1.971 0.915 2.557 1.755V6.577a3.773 3.773 0 0 1 3.77 -3.769h10.84C22.31 2.808 24 4.5 24 6.577v10.845a3.773 3.773 0 0 1 -3.77 3.769h-1.6V17.5h-7.64v3.692h-1.6a3.773 3.773 0 0 1 -3.77 -3.769v-3.41h12.114v-6.52h-1.59v0.893h-0.84v-0.893H13.96v1.516Zm-9.956 1.845c-0.662 -0.703 -1.578 -0.544 -2.209 0 -2.105 2.054 1.338 5.553 3.302 1.447a5.395 5.395 0 0 0 -1.093 -1.447Z" fill="#000000" stroke-width="1"></path></svg>'),Yn=En('<div id="icon" class="svelte-4zfj79"><div id="icon-content" role="button" tabindex="0" class="svelte-4zfj79"><!></div></div>');const Vn={hash:"svelte-4zfj79",code:"#icon.svelte-4zfj79 {width:100%;height:100%;position:relative;}#icon-content.svelte-4zfj79 {margin:0;position:absolute;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);}:host {width:40px;height:40px;display:block;padding:10px;}"};function br(e,t){At(t,!0),Fn(e,Vn);function r(u,m){t.$$host.dispatchEvent(new CustomEvent(u,{detail:m}))}let n=Pe(t,"provider",7,void 0),s=Pe(t,"auth_cookie_name",7,"hb_session"),i=Pe(t,"social_auth_server_url",7,void 0),o=Pe(t,"redirectonlogin",7,void 0),a=Pe(t,"id",7,"");Wt(()=>{if(typeof n()=="string")try{n(JSON.parse(n()))}catch(u){console.error(u)}});async function l(){if(!n()?.name||!n().url&&!n().params)return console.error("Provider not defined");if(n().url)location.href=n().url;else if(n().params?.client_id&&n().params.redirect_url){if(!n().params.client_id||!n().params.redirect_url)return console.error("Missing client_id or redirect_url in oauth2ProvidersObj");let u;switch(n().name){case"google":u=`https://accounts.google.com/o/oauth2/v2/auth?scope=${n().params.scope}&include_granted_scopes=true&response_type=token&state=state_parameter_passthrough_value&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"github":u=`https://github.com/login/oauth/authorize?scope=${n().params.scope}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"gitlab":u=`https://gitlab.com/oauth/authorize?scope=${n().params.scope}&response_type=code&state=${new Date().valueOf()}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"facebook":u=`https://gitlab.com/oauth/authorize?scope=${n().params.scope}&response_type=code&state=${new Date().valueOf()}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"authentik":u=`${n().params.auth_server_url}/application/o/authorize/?scope=${n().params.scope}&response_type=code&state=${new Date().valueOf()}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;default:return console.error("no provider uri composed for "+n().name)}if(u)location.href=u;else return console.error("no provider url obtained!?",n())}else console.warn("no provider uri or params defined for "+n().name),r("oauthFlowCustom",{provider:n().name})}function f(u){s()&&i()&&X.socialLoginOauthAnswer(u,{authUrl:i(),authCookieName:s()}).then(m=>{console.log("auth from client",m),o()?location.href=o():(console.log("oauthFlowSuccess now",{token:m}),r("oauthFlowSuccess",{token:m}))}).catch(m=>{console.error("flowerr",m)})}function d(){if(console.info("detecting by uri",location.href),n()?.name){if(n().name==="google"&&location?.href&&location.href.split("access_token=").length>1&&location.href.includes("google")){console.info("google auth login detected");const u=location.href.split("access_token=")[1].split("&")[0];f({provider:n().name,token:u}),r("oauthFlowInit",{provider:n().name,token:u})}if(n().name==="github"&&location?.href&&location.href.includes("code=")&&location.href.includes("provider=")&&location.href.split("provider=")[1].split("&")[0]==="github"){console.info("github auth login detected");const u=location.href.split("code=")[1].split("&")[0];f({provider:n().name,token:u,tmpCode:u}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u})}if(n().name==="facebook"&&location?.href&&location.href.includes("code=")&&location.href.includes("provider=")&&location.href.split("provider=")[1].split("&")[0]==="facebook"){console.info("facebook auth login detected");const u=location.href.split("code=")[1].split("&")[0],m=location.href.split("state=")[1].split("&")[0],M=location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(m,"");f({provider:n().name,token:u,tmpCode:u,redirect_uri:M}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u,redirect_uri:M})}if(n().name==="gitlab"&&location?.href&&location.href.includes("provider=")&&location.href.includes("code=")&&location.href.split("provider=")[1].split("&")[0]==="gitlab"){const u=location.href.split("code=")[1].split("&")[0],m=location.href.split("state=")[1].split("&")[0],M=location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(m,"");f({provider:n().name,token:u,tmpCode:u,redirect_uri:M}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u,redirect_uri:location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(m,"")})}if(n().name==="authentik"&&location?.href&&location.href.includes("provider=")&&location.href.includes("code=")&&location.href.split("provider=")[1].split("&")[0]==="authentik"){console.info("authentik auth login detected");const u=location.href.split("code=")[1].split("&")[0],m=location.href.split("state=")[1].split("&")[0],M=location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(m,"");f({provider:n().name,token:u,tmpCode:u,redirect_uri:M}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u,redirect_uri:M})}}}Nn(()=>{d()});var _={get provider(){return n()},set provider(u=void 0){n(u),me()},get auth_cookie_name(){return s()},set auth_cookie_name(u="hb_session"){s(u),me()},get social_auth_server_url(){return i()},set social_auth_server_url(u=void 0){i(u),me()},get redirectonlogin(){return o()},set redirectonlogin(u=void 0){o(u),me()},get id(){return a()},set id(u=""){a(u),me()}},c=Yn(),h=Jt(c);h.__click=()=>{l()},h.__keydown=u=>{(u.key==="Enter"||u.key===" ")&&l()};var y=Jt(h);return Rn(y,t,"default",{},u=>{var m=Me(),M=Le(m);{var je=ye=>{var rt=jn();L(ye,rt)},Hn=ye=>{var rt=Me(),Zn=Le(rt);{var Gn=$e=>{var nt=Bn();L($e,nt)},Jn=$e=>{var nt=Me(),Kn=Le(nt);{var Wn=be=>{var it=Un();L(be,it)},Xn=be=>{var it=Me(),Qn=Le(it);{var ei=ke=>{var st=qn();L(ke,st)},ti=ke=>{var st=Me(),ri=Le(st);{var ni=Ee=>{var mt=zn();L(Ee,mt)},ii=Ee=>{var mt=Sn("btn");L(Ee,mt)};De(ri,Ee=>{n()?.name==="authentik"?Ee(ni):Ee(ii,!1)},!0)}L(ke,st)};De(Qn,ke=>{n()?.name==="google"?ke(ei):ke(ti,!1)},!0)}L(be,it)};De(Kn,be=>{n()?.name==="facebook"?be(Wn):be(Xn,!1)},!0)}L($e,nt)};De(Zn,$e=>{n()?.name==="github"?$e(Gn):$e(Jn,!1)},!0)}L(ye,rt)};De(M,ye=>{n()?.name==="gitlab"?ye(je):ye(Hn,!1)})}L(u,m)}),Tt(h),Tt(c),L(e,c),Nt(_)}kn(["click","keydown"]),customElements.define("hb-auth-social-login-button",Pn(br,{provider:{},auth_cookie_name:{},social_auth_server_url:{},redirectonlogin:{},id:{}},["default"],[],!0)),wt.Component=br,Object.defineProperty(wt,Symbol.toStringTag,{value:"Module"})})(this["auth-social-login-button"]=this["auth-social-login-button"]||{});
|
|
10
|
+
}</style><linearGradient id="linear-gradient" x1="62.34" y1="101.45" x2="260.34" y2="91.45" gradientTransform="matrix(1, 0, 0, -1, 0, 192)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0064e1"></stop><stop offset="0.4" stop-color="#0064e1"></stop><stop offset="0.83" stop-color="#0073ee"></stop><stop offset="1" stop-color="#0082fb"></stop></linearGradient><linearGradient id="linear-gradient-2" x1="41.42" y1="53" x2="41.42" y2="126" gradientTransform="matrix(1, 0, 0, -1, 0, 192)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0082fb"></stop><stop offset="1" stop-color="#0064e0"></stop></linearGradient></defs><title>facebook-meta</title><path class="cls-1" d="M31.06,126c0,11,2.41,19.41,5.56,24.51A19,19,0,0,0,53.19,160c8.1,0,15.51-2,29.79-21.76,11.44-15.83,24.92-38,34-52l15.36-23.6c10.67-16.39,23-34.61,37.18-47C181.07,5.6,193.54,0,206.09,0c21.07,0,41.14,12.21,56.5,35.11,16.81,25.08,25,56.67,25,89.27,0,19.38-3.82,33.62-10.32,44.87C271,180.13,258.72,191,238.13,191V160c17.63,0,22-16.2,22-34.74,0-26.42-6.16-55.74-19.73-76.69-9.63-14.86-22.11-23.94-35.84-23.94-14.85,0-26.8,11.2-40.23,31.17-7.14,10.61-14.47,23.54-22.7,38.13l-9.06,16c-18.2,32.27-22.81,39.62-31.91,51.75C84.74,183,71.12,191,53.19,191c-21.27,0-34.72-9.21-43-23.09C3.34,156.6,0,141.76,0,124.85Z"></path><path class="cls-2" d="M24.49,37.3C38.73,15.35,59.28,0,82.85,0c13.65,0,27.22,4,41.39,15.61,15.5,12.65,32,33.48,52.63,67.81l7.39,12.32c17.84,29.72,28,45,33.93,52.22,7.64,9.26,13,12,19.94,12,17.63,0,22-16.2,22-34.74l27.4-.86c0,19.38-3.82,33.62-10.32,44.87C271,180.13,258.72,191,238.13,191c-12.8,0-24.14-2.78-36.68-14.61-9.64-9.08-20.91-25.21-29.58-39.71L146.08,93.6c-12.94-21.62-24.81-37.74-31.68-45C107,40.71,97.51,31.23,82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78Z"></path><path class="cls-3" d="M82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78C38.61,71.62,31.06,99.34,31.06,126c0,11,2.41,19.41,5.56,24.51L10.14,167.91C3.34,156.6,0,141.76,0,124.85,0,94.1,8.44,62.05,24.49,37.3,38.73,15.35,59.28,0,82.85,0Z"></path></svg>`),ei=Ie('<svg viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1, 0, 0, 1, 27.009001, -39.238998)"><path fill="#4285F4" d="M -3.264 51.509 C -3.264 50.719 -3.334 49.969 -3.454 49.239 L -14.754 49.239 L -14.754 53.749 L -8.284 53.749 C -8.574 55.229 -9.424 56.479 -10.684 57.329 L -10.684 60.329 L -6.824 60.329 C -4.564 58.239 -3.264 55.159 -3.264 51.509 Z"></path><path fill="#34A853" d="M -14.754 63.239 C -11.514 63.239 -8.804 62.159 -6.824 60.329 L -10.684 57.329 C -11.764 58.049 -13.134 58.489 -14.754 58.489 C -17.884 58.489 -20.534 56.379 -21.484 53.529 L -25.464 53.529 L -25.464 56.619 C -23.494 60.539 -19.444 63.239 -14.754 63.239 Z"></path><path fill="#FBBC05" d="M -21.484 53.529 C -21.734 52.809 -21.864 52.039 -21.864 51.239 C -21.864 50.439 -21.724 49.669 -21.484 48.949 L -21.484 45.859 L -25.464 45.859 C -26.284 47.479 -26.754 49.299 -26.754 51.239 C -26.754 53.179 -26.284 54.999 -25.464 56.619 L -21.484 53.529 Z"></path><path fill="#EA4335" d="M -14.754 43.989 C -12.984 43.989 -11.404 44.599 -10.154 45.789 L -6.734 42.369 C -8.804 40.429 -11.514 39.239 -14.754 39.239 C -19.444 39.239 -23.494 41.939 -25.464 45.859 L -21.484 48.949 C -20.534 46.099 -17.884 43.989 -14.754 43.989 Z"></path></g></svg>'),ti=Ie('<svg viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><desc>Authentik Streamline Icon: https://streamlinehq.com</desc><title>Authentik</title><path d="M13.96 9.01h-0.84V7.492h-1.234v3.663H5.722c0.34 0.517 0.538 0.982 0.538 1.152 0 0.46 -1.445 3.059 -3.197 3.059C0.8 15.427 -0.745 12.8 0.372 10.855a3.062 3.062 0 0 1 2.691 -1.606c1.04 0 1.971 0.915 2.557 1.755V6.577a3.773 3.773 0 0 1 3.77 -3.769h10.84C22.31 2.808 24 4.5 24 6.577v10.845a3.773 3.773 0 0 1 -3.77 3.769h-1.6V17.5h-7.64v3.692h-1.6a3.773 3.773 0 0 1 -3.77 -3.769v-3.41h12.114v-6.52h-1.59v0.893h-0.84v-0.893H13.96v1.516Zm-9.956 1.845c-0.662 -0.703 -1.578 -0.544 -2.209 0 -2.105 2.054 1.338 5.553 3.302 1.447a5.395 5.395 0 0 0 -1.093 -1.447Z" fill="#000000" stroke-width="1"></path></svg>'),ri=Mn('<div id="icon" class="svelte-4zfj79"><div id="icon-content" role="button" tabindex="0" class="svelte-4zfj79"><!></div></div>');const ni={hash:"svelte-4zfj79",code:"#icon.svelte-4zfj79 {width:100%;height:100%;position:relative;}#icon-content.svelte-4zfj79 {margin:0;position:absolute;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);}:host {width:40px;height:40px;display:block;padding:10px;}"};function Er(e,t){xt(t,!0),Hn(e,ni);function r(u,g){t.$$host.dispatchEvent(new CustomEvent(u,{detail:g}))}let n=De(t,"provider",7,void 0),i=De(t,"auth_cookie_name",7,"hb_session"),s=De(t,"social_auth_server_url",7,void 0),o=De(t,"redirectonlogin",7,void 0),l=De(t,"id",7,"");Xt(()=>{if(typeof n()=="string")try{n(JSON.parse(n()))}catch(u){console.error(u)}});async function a(){if(!n()?.name||!n().url&&!n().params)return console.error("Provider not defined");if(n().url)location.href=n().url;else if(n().params?.client_id&&n().params.redirect_url){if(!n().params.client_id||!n().params.redirect_url)return console.error("Missing client_id or redirect_url in oauth2ProvidersObj");let u;switch(n().name){case"google":u=`https://accounts.google.com/o/oauth2/v2/auth?scope=${n().params.scope}&include_granted_scopes=true&response_type=token&state=state_parameter_passthrough_value&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"github":u=`https://github.com/login/oauth/authorize?scope=${n().params.scope}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"gitlab":u=`https://gitlab.com/oauth/authorize?scope=${n().params.scope}&response_type=code&state=${new Date().valueOf()}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"facebook":u=`https://gitlab.com/oauth/authorize?scope=${n().params.scope}&response_type=code&state=${new Date().valueOf()}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;case"authentik":u=`${n().params.auth_server_url}/application/o/authorize/?scope=${n().params.scope}&response_type=code&state=${new Date().valueOf()}&client_id=${n().params.client_id}&redirect_uri=${n().params.redirect_url}`;break;default:return console.error("no provider uri composed for "+n().name)}if(u)location.href=u;else return console.error("no provider url obtained!?",n())}else console.warn("no provider uri or params defined for "+n().name),r("oauthFlowCustom",{provider:n().name})}function f(u){i()&&s()&&X.socialLoginOauthAnswer(u,{authUrl:s(),authCookieName:i()}).then(g=>{console.log("auth from client",g),o()?location.href=o():(console.log("oauthFlowSuccess now",{token:g}),r("oauthFlowSuccess",{token:g}))}).catch(g=>{console.error("flowerr",g)})}function c(){if(console.info("detecting by uri",location.href),n()?.name){if(n().name==="google"&&location?.href&&location.href.split("access_token=").length>1&&location.href.includes("google")){console.info("google auth login detected");const u=location.href.split("access_token=")[1].split("&")[0];f({provider:n().name,token:u}),r("oauthFlowInit",{provider:n().name,token:u})}if(n().name==="github"&&location?.href&&location.href.includes("code=")&&location.href.includes("provider=")&&location.href.split("provider=")[1].split("&")[0]==="github"){console.info("github auth login detected");const u=location.href.split("code=")[1].split("&")[0];f({provider:n().name,token:u,tmpCode:u}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u})}if(n().name==="facebook"&&location?.href&&location.href.includes("code=")&&location.href.includes("provider=")&&location.href.split("provider=")[1].split("&")[0]==="facebook"){console.info("facebook auth login detected");const u=location.href.split("code=")[1].split("&")[0],g=location.href.split("state=")[1].split("&")[0],k=location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(g,"");f({provider:n().name,token:u,tmpCode:u,redirect_uri:k}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u,redirect_uri:k})}if(n().name==="gitlab"&&location?.href&&location.href.includes("provider=")&&location.href.includes("code=")&&location.href.split("provider=")[1].split("&")[0]==="gitlab"){const u=location.href.split("code=")[1].split("&")[0],g=location.href.split("state=")[1].split("&")[0],k=location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(g,"");f({provider:n().name,token:u,tmpCode:u,redirect_uri:k}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u,redirect_uri:location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(g,"")})}if(n().name==="authentik"&&location?.href&&location.href.includes("provider=")&&location.href.includes("code=")&&location.href.split("provider=")[1].split("&")[0]==="authentik"){console.info("authentik auth login detected");const u=location.href.split("code=")[1].split("&")[0],g=location.href.split("state=")[1].split("&")[0],k=location.href.replace("&state=","").replace("?state=","").replace("&code=","").replace("?code=","").replace(u,"").replace(g,"");f({provider:n().name,token:u,tmpCode:u,redirect_uri:k}),r("oauthFlowInit",{provider:n().name,token:u,tmpCode:u,redirect_uri:k})}}}qn(()=>{c()});var _={get provider(){return n()},set provider(u=void 0){n(u),Se()},get auth_cookie_name(){return i()},set auth_cookie_name(u="hb_session"){i(u),Se()},get social_auth_server_url(){return s()},set social_auth_server_url(u=void 0){s(u),Se()},get redirectonlogin(){return o()},set redirectonlogin(u=void 0){o(u),Se()},get id(){return l()},set id(u=""){l(u),Se()}},h=ri(),p=Jt(h),d=Jt(p);return Yn(d,t,"default",{},u=>{var g=Dn(),k=gn(g);{var ae=S=>{var P=Kn();K(S,P)},Pe=S=>{var P=Xn();K(S,P)},ii=S=>{var P=Qn();K(S,P)},si=S=>{var P=ei();K(S,P)},oi=S=>{var P=ti();K(S,P)},li=S=>{var P=In("btn");K(S,P)};Vn(k,S=>{n()?.name==="gitlab"?S(ae):n()?.name==="github"?S(Pe,1):n()?.name==="facebook"?S(ii,2):n()?.name==="google"?S(si,3):n()?.name==="authentik"?S(oi,4):S(li,-1)})}K(u,g)}),Et(p),Et(h),gr("click",p,()=>{a()}),gr("keydown",p,u=>{(u.key==="Enter"||u.key===" ")&&a()}),K(e,h),Tt(_)}Nn(["click","keydown"]),customElements.define("hb-auth-social-login-button",Wn(Er,{provider:{},auth_cookie_name:{},social_auth_server_url:{},redirectonlogin:{},id:{}},["default"],[],{mode:"open"})),dt.Component=Er,Object.defineProperty(dt,Symbol.toStringTag,{value:"Module"})})(this["auth-social-login-button"]=this["auth-social-login-button"]||{});
|
|
11
11
|
//# sourceMappingURL=main.iife.js.map
|