UNPKG

@beyonk/gdpr-cookie-consent-banner

Version:

GDPR Cookie Consent Banner for Svelte/Kit

13 lines (12 loc) 43.1 kB
(function(T,m){typeof exports=="object"&&typeof module<"u"?module.exports=m():typeof define=="function"&&define.amd?define(m):(T=typeof globalThis<"u"?globalThis:T||self,T.lib=m())})(this,function(){"use strict";var Es=Object.defineProperty;var Ar=T=>{throw TypeError(T)};var Cs=(T,m,x)=>m in T?Es(T,m,{enumerable:!0,configurable:!0,writable:!0,value:x}):T[m]=x;var ie=(T,m,x)=>Cs(T,typeof m!="symbol"?m+"":m,x),Tr=(T,m,x)=>m.has(T)||Ar("Cannot "+x);var G=(T,m,x)=>(Tr(T,m,"read from private field"),x?x.call(T):m.get(T)),pn=(T,m,x)=>m.has(T)?Ar("Cannot add the same private member more than once"):m instanceof WeakSet?m.add(T):m.set(T,x),gn=(T,m,x,ft)=>(Tr(T,m,"write to private field"),ft?ft.call(T,x):m.set(T,x),x);var $r,be,Q;const T="5";typeof window<"u"&&(($r=window.__svelte??(window.__svelte={})).v??($r.v=new Set)).add(T);let m=!1,x=!1;function ft(){m=!0}ft();const Or=1,Lr=2,Sr=16,Ir=1,Nr=2,Rr=4,xr=8,Dr=16,Pr=4,jr=1,Mr=2,qt="[",Ht="[!",Yt="]",Be={},H=Symbol(),Br="http://www.w3.org/1999/xhtml",bn=!1,se=2,wn=4,ct=8,vt=16,ce=32,Oe=64,dt=128,J=256,_t=512,Y=1024,ve=2048,Le=4096,de=8192,ht=16384,yn=32768,pt=65536,Fr=1<<17,Ur=1<<19,mn=1<<20,Vt=1<<21,Fe=Symbol("$state"),$n=Symbol("legacy props"),qr=Symbol("");var gt=Array.isArray,Hr=Array.prototype.indexOf,zt=Array.from,bt=Object.keys,wt=Object.defineProperty,we=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyDescriptors,Yr=Object.prototype,Vr=Array.prototype,Gt=Object.getPrototypeOf,En=Object.isExtensible;function zr(e){return typeof e=="function"}const ze=()=>{};function Gr(e){return e()}function yt(e){for(var t=0;t<e.length;t++)e[t]()}const Wr=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let Ge=[],We=[];function Cn(){var e=Ge;Ge=[],yt(e)}function An(){var e=We;We=[],yt(e)}function Tn(e){Ge.length===0&&queueMicrotask(Cn),Ge.push(e)}function Kr(e){We.length===0&&Wr(An),We.push(e)}function On(){Ge.length>0&&Cn(),We.length>0&&An()}function Ln(e){return e===this.v}function Jr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Wt(e){return!Jr(e,this.v)}function Xr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ei(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ti(){throw new Error("https://svelte.dev/e/hydration_failed")}function ni(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ri(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ii(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function si(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Se(e,t){if(typeof e!="object"||e===null||Fe in e)return e;const n=Gt(e);if(n!==Yr&&n!==Vr)return e;var r=new Map,i=gt(e),s=ye(0),o=$,a=l=>{var u=$;X(o);var f;return f=l(),X(u),f};return i&&r.set("length",ye(e.length)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&ri();var v=r.get(u);return v===void 0?(v=a(()=>ye(f.value)),r.set(u,v)):R(v,a(()=>Se(f.value))),!0},deleteProperty(l,u){var f=r.get(u);if(f===void 0)u in l&&r.set(u,a(()=>ye(H)));else{if(i&&typeof u=="string"){var v=r.get("length"),c=Number(u);Number.isInteger(c)&&c<v.v&&R(v,c)}R(f,H),Sn(s)}return!0},get(l,u,f){var h;if(u===Fe)return e;var v=r.get(u),c=u in l;if(v===void 0&&(!c||(h=we(l,u))!=null&&h.writable)&&(v=a(()=>ye(Se(c?l[u]:H))),r.set(u,v)),v!==void 0){var d=p(v);return d===H?void 0:d}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){var f=Reflect.getOwnPropertyDescriptor(l,u);if(f&&"value"in f){var v=r.get(u);v&&(f.value=p(v))}else if(f===void 0){var c=r.get(u),d=c==null?void 0:c.v;if(c!==void 0&&d!==H)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,u){var d;if(u===Fe)return!0;var f=r.get(u),v=f!==void 0&&f.v!==H||Reflect.has(l,u);if(f!==void 0||k!==null&&(!v||(d=we(l,u))!=null&&d.writable)){f===void 0&&(f=a(()=>ye(v?Se(l[u]):H)),r.set(u,f));var c=p(f);if(c===H)return!1}return v},set(l,u,f,v){var I;var c=r.get(u),d=u in l;if(i&&u==="length")for(var h=f;h<c.v;h+=1){var g=r.get(h+"");g!==void 0?R(g,H):h in l&&(g=a(()=>ye(H)),r.set(h+"",g))}c===void 0?(!d||(I=we(l,u))!=null&&I.writable)&&(c=a(()=>ye(void 0)),R(c,a(()=>Se(f))),r.set(u,c)):(d=c.v!==H,R(c,a(()=>Se(f))));var b=Reflect.getOwnPropertyDescriptor(l,u);if(b!=null&&b.set&&b.set.call(v,f),!d){if(i&&typeof u=="string"){var w=r.get("length"),E=Number(u);Number.isInteger(E)&&E>=w.v&&R(w,E+1)}Sn(s)}return!0},ownKeys(l){p(s);var u=Reflect.ownKeys(l).filter(c=>{var d=r.get(c);return d===void 0||d.v!==H});for(var[f,v]of r)v.v!==H&&!(f in l)&&u.push(f);return u},setPrototypeOf(){ii()}})}function Sn(e,t=1){R(e,e.v+t)}const Ke=new Map;function Je(e,t){var n={f:0,v:e,reactions:null,equals:Ln,rv:0,wv:0};return n}function ye(e,t){const n=Je(e);return ui(n),n}function oe(e,t=!1){var r;const n=Je(e);return t||(n.equals=Wt),m&&L!==null&&L.l!==null&&((r=L.l).s??(r.s=[])).push(n),n}function In(e,t){return R(e,$e(()=>p(e))),t}function R(e,t,n=!1){$!==null&&!ae&&xt()&&($.f&(se|vt))!==0&&!(M!=null&&M.includes(e))&&si();let r=n?Se(t):t;return Nn(e,r)}function Nn(e,t){if(!e.equals(t)){var n=e.v;Qe?Ke.set(e,t):Ke.set(e,n),e.v=t,e.wv=Yn(),Rn(e,ve),xt()&&k!==null&&(k.f&Y)!==0&&(k.f&(ce|Oe))===0&&(Z===null?fi([e]):Z.push(e))}return t}function Rn(e,t){var n=e.reactions;if(n!==null)for(var r=xt(),i=n.length,s=0;s<i;s++){var o=n[s],a=o.f;(a&ve)===0&&(!r&&o===k||(te(o,t),(a&(Y|J))!==0&&((a&se)!==0?Rn(o,Le):Lt(o))))}}function Xe(e){var t=se|ve,n=$!==null&&($.f&se)!==0?$:null;return k===null||n!==null&&(n.f&J)!==0?t|=J:k.f|=mn,{ctx:L,deps:null,effects:null,equals:Ln,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??k}}function Kt(e){const t=Xe(e);return t.equals=Wt,t}function xn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ue(t[n])}}function oi(e){for(var t=e.parent;t!==null;){if((t.f&se)===0)return t;t=t.parent}return null}function ai(e){var t,n=k;le(oi(e));try{xn(e),t=zn(e)}finally{le(n)}return t}function Dn(e){var t=ai(e),n=(me||(e.f&J)!==0)&&e.deps!==null?Le:Y;te(e,n),e.equals(t)||(e.v=t,e.wv=Yn())}function mt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let A=!1;function _e(e){A=e}let O;function ee(e){if(e===null)throw mt(),Be;return O=e}function Ue(){return ee(he(O))}function D(e){if(A){if(he(O)!==null)throw mt(),Be;O=e}}function Jt(){for(var e=0,t=O;;){if(t.nodeType===8){var n=t.data;if(n===Yt){if(e===0)return t;e-=1}else(n===qt||n===Ht)&&(e+=1)}var r=he(t);t.remove(),t=r}}var Pn,jn,Mn,Bn;function Xt(){if(Pn===void 0){Pn=window,jn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Mn=we(t,"firstChild").get,Bn=we(t,"nextSibling").get,En(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),En(n)&&(n.__t=void 0)}}function Ze(e=""){return document.createTextNode(e)}function Ie(e){return Mn.call(e)}function he(e){return Bn.call(e)}function P(e,t){if(!A)return Ie(e);var n=Ie(O);if(n===null)n=O.appendChild(Ze());else if(t&&n.nodeType!==3){var r=Ze();return n==null||n.before(r),ee(r),r}return ee(n),n}function Fn(e,t){if(!A){var n=Ie(e);return n instanceof Comment&&n.data===""?he(n):n}return O}function pe(e,t=1,n=!1){let r=A?O:e;for(var i;t--;)i=r,r=he(r);if(!A)return r;var s=r==null?void 0:r.nodeType;if(n&&s!==3){var o=Ze();return r===null?i==null||i.after(o):r.before(o),ee(o),o}return ee(r),r}function Un(e){e.textContent=""}let $t=!1,kt=!1,Et=null,Ne=!1,Qe=!1;function qn(e){Qe=e}let et=[],As=[],$=null,ae=!1;function X(e){$=e}let k=null;function le(e){k=e}let M=null;function li(e){M=e}function ui(e){$!==null&&$.f&Vt&&(M===null?li([e]):M.push(e))}let B=null,W=0,Z=null;function fi(e){Z=e}let Hn=1,Ct=0,me=!1;function Yn(){return++Hn}function qe(e){var v;var t=e.f;if((t&ve)!==0)return!0;if((t&Le)!==0){var n=e.deps,r=(t&J)!==0;if(n!==null){var i,s,o=(t&_t)!==0,a=r&&k!==null&&!me,l=n.length;if(o||a){var u=e,f=u.parent;for(i=0;i<l;i++)s=n[i],(o||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&(s.reactions??(s.reactions=[])).push(u);o&&(u.f^=_t),a&&f!==null&&(f.f&J)===0&&(u.f^=J)}for(i=0;i<l;i++)if(s=n[i],qe(s)&&Dn(s),s.wv>e.wv)return!0}(!r||k!==null&&!me)&&te(e,Y)}return!1}function ci(e,t){for(var n=t;n!==null;){if((n.f&dt)!==0)try{n.fn(e);return}catch{n.f^=dt}n=n.parent}throw $t=!1,e}function vi(e){return(e.f&ht)===0&&(e.parent===null||(e.parent.f&dt)===0)}function At(e,t,n,r){if($t){if(n===null&&($t=!1),vi(t))throw e;return}n!==null&&($t=!0);{ci(e,t);return}}function Vn(e,t,n=!0){var r=e.reactions;if(r!==null)for(var i=0;i<r.length;i++){var s=r[i];M!=null&&M.includes(e)||((s.f&se)!==0?Vn(s,t,!1):t===s&&(n?te(s,ve):(s.f&Y)!==0&&te(s,Le),Lt(s)))}}function zn(e){var d;var t=B,n=W,r=Z,i=$,s=me,o=M,a=L,l=ae,u=e.f;B=null,W=0,Z=null,me=(u&J)!==0&&(ae||!Ne||$===null),$=(u&(ce|Oe))===0?e:null,M=null,tr(e.ctx),ae=!1,Ct++,e.f|=Vt;try{var f=(0,e.fn)(),v=e.deps;if(B!==null){var c;if(Tt(e,W),v!==null&&W>0)for(v.length=W+B.length,c=0;c<B.length;c++)v[W+c]=B[c];else e.deps=v=B;if(!me)for(c=W;c<v.length;c++)((d=v[c]).reactions??(d.reactions=[])).push(e)}else v!==null&&W<v.length&&(Tt(e,W),v.length=W);if(xt()&&Z!==null&&!ae&&v!==null&&(e.f&(se|Le|ve))===0)for(c=0;c<Z.length;c++)Vn(Z[c],e);return i!==null&&(Ct++,Z!==null&&(r===null?r=Z:r.push(...Z))),f}finally{B=t,W=n,Z=r,$=i,me=s,M=o,tr(a),ae=l,e.f^=Vt}}function di(e,t){let n=t.reactions;if(n!==null){var r=Hr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&se)!==0&&(B===null||!B.includes(t))&&(te(t,Le),(t.f&(J|_t))===0&&(t.f^=_t),xn(t),Tt(t,0))}function Tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)di(e,n[r])}function Ot(e){var t=e.f;if((t&ht)===0){te(e,Y);var n=k,r=L,i=Ne;k=e,Ne=!0;try{(t&vt)!==0?Ei(e):Jn(e),Kn(e);var s=zn(e);e.teardown=typeof s=="function"?s:null,e.wv=Hn;var o=e.deps,a;bn&&x&&e.f&ve}catch(l){At(l,e,n,r||e.ctx)}finally{Ne=i,k=n}}}function _i(){try{ei()}catch(e){if(Et!==null)At(e,Et,null);else throw e}}function Gn(){var e=Ne;try{var t=0;for(Ne=!0;et.length>0;){t++>1e3&&_i();var n=et,r=n.length;et=[];for(var i=0;i<r;i++){var s=pi(n[i]);hi(s)}}}finally{kt=!1,Ne=e,Et=null,Ke.clear()}}function hi(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var r=e[n];if((r.f&(ht|de))===0)try{qe(r)&&(Ot(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?Xn(r):r.fn=null))}catch(i){At(i,r,null,r.ctx)}}}function Lt(e){kt||(kt=!0,queueMicrotask(Gn));for(var t=Et=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(Oe|ce))!==0){if((n&Y)===0)return;t.f^=Y}}et.push(t)}function pi(e){for(var t=[],n=e;n!==null;){var r=n.f,i=(r&(ce|Oe))!==0,s=i&&(r&Y)!==0;if(!s&&(r&de)===0){if((r&wn)!==0)t.push(n);else if(i)n.f^=Y;else{var o=$;try{$=n,qe(n)&&Ot(n)}catch(u){At(u,n,null,n.ctx)}finally{$=o}}var a=n.first;if(a!==null){n=a;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}return t}function F(e){var t;for(On();et.length>0;)kt=!0,Gn(),On();return t}function p(e){var t=e.f,n=(t&se)!==0;if($!==null&&!ae){if(!(M!=null&&M.includes(e))){var r=$.deps;e.rv<Ct&&(e.rv=Ct,B===null&&r!==null&&r[W]===e?W++:B===null?B=[e]:(!me||!B.includes(e))&&B.push(e))}}else if(n&&e.deps===null&&e.effects===null){var i=e,s=i.parent;s!==null&&(s.f&J)===0&&(i.f^=J)}return n&&(i=e,qe(i)&&Dn(i)),Qe&&Ke.has(e)?Ke.get(e):e.v}function $e(e){var t=ae;try{return ae=!0,e()}finally{ae=t}}const gi=-7169;function te(e,t){e.f=e.f&gi|t}function bi(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fe in e)Zt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Fe in n&&Zt(n)}}}function Zt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Zt(e[r],t)}catch{}const n=Gt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=kn(n);for(let i in r){const s=r[i].get;if(s)try{s.call(e)}catch{}}}}}function Wn(e){k===null&&$===null&&Qr(),$!==null&&($.f&J)!==0&&k===null&&Zr(),Qe&&Xr()}function wi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Re(e,t,n,r=!0){var i=k,s={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|ve,first:null,fn:t,last:null,next:null,parent:i,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Ot(s),s.f|=yn}catch(l){throw ue(s),l}else t!==null&&Lt(s);var o=n&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(mn|dt))===0;if(!o&&r&&(i!==null&&wi(s,i),$!==null&&($.f&se)!==0)){var a=$;(a.effects??(a.effects=[])).push(s)}return s}function Qt(e){const t=Re(ct,null,!1);return te(t,Y),t.teardown=e,t}function en(e){Wn();var t=k!==null&&(k.f&ce)!==0&&L!==null&&!L.m;if(t){var n=L;(n.e??(n.e=[])).push({fn:e,effect:k,reaction:$})}else{var r=tn(e);return r}}function yi(e){return Wn(),tt(e)}function mi(e){const t=Re(Oe,e,!0);return()=>{ue(t)}}function $i(e){const t=Re(Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?Nt(t,()=>{ue(t),r(void 0)}):(ue(t),r(void 0))})}function tn(e){return Re(wn,e,!1)}function St(e,t){var n=L,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=tt(()=>{e(),!r.ran&&(r.ran=!0,R(n.l.r2,!0),$e(t))})}function ki(){var e=L;tt(()=>{if(p(e.l.r2)){for(var t of e.l.r1){var n=t.effect;(n.f&Y)!==0&&te(n,Le),qe(n)&&Ot(n),t.ran=!1}e.l.r2.v=!1}})}function tt(e){return Re(ct,e,!0)}function nt(e,t=[],n=Xe){const r=t.map(n);return It(()=>e(...r.map(p)))}function It(e,t=0){return Re(ct|vt|t,e,!0)}function He(e,t=!0){return Re(ct|ce,e,!0,t)}function Kn(e){var t=e.teardown;if(t!==null){const n=Qe,r=$;qn(!0),X(null);try{t.call(null)}finally{qn(n),X(r)}}}function Jn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var r=n.next;(n.f&Oe)!==0?n.parent=null:ue(n,t),n=r}}function Ei(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ce)===0&&ue(t),t=n}}function ue(e,t=!0){var n=!1;if((t||(e.f&Ur)!==0)&&e.nodes_start!==null){for(var r=e.nodes_start,i=e.nodes_end;r!==null;){var s=r===i?null:he(r);r.remove(),r=s}n=!0}Jn(e,t&&!n),Tt(e,0),te(e,ht);var o=e.transitions;if(o!==null)for(const l of o)l.stop();Kn(e);var a=e.parent;a!==null&&a.first!==null&&Xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Xn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Nt(e,t){var n=[];nn(e,n,!0),Zn(n,()=>{ue(e),t&&t()})}function Zn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function nn(e,t,n){if((e.f&de)===0){if(e.f^=de,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&pt)!==0||(r.f&ce)!==0;nn(r,t,s?n:!1),r=i}}}function Rt(e){Qn(e,!0)}function Qn(e,t){if((e.f&de)!==0){e.f^=de,(e.f&Y)===0&&(e.f^=Y),qe(e)&&(te(e,ve),Lt(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&pt)!==0||(n.f&ce)!==0;Qn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function er(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let L=null;function tr(e){L=e}function nr(e,t=!1,n){var r=L={p:L,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};m&&!t&&(L.l={s:null,u:null,r1:[],r2:Je(!1)}),Qt(()=>{r.d=!0})}function rr(e){const t=L;if(t!==null){e!==void 0&&(t.x=e);const o=t.e;if(o!==null){var n=k,r=$;t.e=null;try{for(var i=0;i<o.length;i++){var s=o[i];le(s.effect),X(s.reaction),tn(s.fn)}}finally{le(n),X(r)}}L=t.p,t.m=!0}return e||{}}function xt(){return!m||L!==null&&L.l===null}const Ci=["touchstart","touchmove"];function Ai(e){return Ci.includes(e)}let ir=!1;function sr(){ir||(ir=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function rn(e){var t=$,n=k;X(null),le(null);try{return e()}finally{X(t),le(n)}}function Ti(e,t,n,r=n){e.addEventListener(t,()=>rn(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),sr()}const Oi=new Set,or=new Set;function Li(e,t,n,r={}){function i(s){if(r.capture||it.call(t,s),!s.cancelBubble)return rn(()=>n==null?void 0:n.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Tn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function rt(e,t,n,r,i){var s={capture:r,passive:i},o=Li(e,t,n,s);(t===document.body||t===window||t===document)&&Qt(()=>{t.removeEventListener(e,o,s)})}function it(e){var E;var t=this,n=t.ownerDocument,r=e.type,i=((E=e.composedPath)==null?void 0:E.call(e))||[],s=i[0]||e.target,o=0,a=e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(s=i[o]||e.target,s!==t){wt(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=$,v=k;X(null),le(null);try{for(var c,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+r];if(g!=null&&(!s.disabled||e.target===s))if(gt(g)){var[b,...w]=g;b.apply(s,[e,...w])}else g.call(s,e)}catch(I){c?d.push(I):c=I}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let I of d)queueMicrotask(()=>{throw I});throw c}}finally{e.__root=t,delete e.currentTarget,X(f),le(v)}}}function ar(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function ke(e,t){var n=k;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ye(e,t){var n=(t&jr)!==0,r=(t&Mr)!==0,i,s=!e.startsWith("<!>");return()=>{if(A)return ke(O,null),O;i===void 0&&(i=ar(s?e:"<!>"+e),n||(i=Ie(i)));var o=r||jn?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Ie(o),l=o.lastChild;ke(a,l)}else ke(o,o);return o}}function Si(){if(A)return ke(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(""),n=Ze();return e.append(t,n),ke(t,n),e}function Ee(e,t){if(A){k.nodes_end=O,Ue();return}e!==null&&e.before(t)}let sn=!0;function xe(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function lr(e,t){return ur(e,t)}function Ii(e,t){Xt(),t.intro=t.intro??!1;const n=t.target,r=A,i=O;try{for(var s=Ie(n);s&&(s.nodeType!==8||s.data!==qt);)s=he(s);if(!s)throw Be;_e(!0),ee(s),Ue();const o=ur(e,{...t,anchor:s});if(O===null||O.nodeType!==8||O.data!==Yt)throw mt(),Be;return _e(!1),o}catch(o){if(o===Be)return t.recover===!1&&ti(),Xt(),Un(n),_e(!1),lr(e,t);throw o}finally{_e(r),ee(i)}}const Ve=new Map;function ur(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){Xt();var a=new Set,l=v=>{for(var c=0;c<v.length;c++){var d=v[c];if(!a.has(d)){a.add(d);var h=Ai(d);t.addEventListener(d,it,{passive:h});var g=Ve.get(d);g===void 0?(document.addEventListener(d,it,{passive:h}),Ve.set(d,1)):Ve.set(d,g+1)}}};l(zt(Oi)),or.add(l);var u=void 0,f=$i(()=>{var v=n??t.appendChild(Ze());return He(()=>{if(s){nr({});var c=L;c.c=s}i&&(r.$$events=i),A&&ke(v,null),sn=o,u=e(v,r)||{},sn=!0,A&&(k.nodes_end=O),s&&rr()}),()=>{var h;for(var c of a){t.removeEventListener(c,it);var d=Ve.get(c);--d===0?(document.removeEventListener(c,it),Ve.delete(c)):Ve.set(c,d)}or.delete(l),v!==n&&((h=v.parentNode)==null||h.removeChild(v))}});return on.set(u,f),u}let on=new WeakMap;function Ni(e,t){const n=on.get(e);return n?(on.delete(e),n(t)):Promise.resolve()}function st(e,t,[n,r]=[0,0]){A&&n===0&&Ue();var i=e,s=null,o=null,a=H,l=n>0?pt:0,u=!1;const f=(c,d=!0)=>{u=!0,v(d,c)},v=(c,d)=>{if(a===(a=c))return;let h=!1;if(A&&r!==-1){if(n===0){const b=i.data;b===qt?r=0:b===Ht?r=1/0:(r=parseInt(b.substring(1)),r!==r&&(r=a?1/0:-1))}const g=r>n;!!a===g&&(i=Jt(),ee(i),_e(!1),h=!0,r=-1)}a?(s?Rt(s):d&&(s=He(()=>d(i))),o&&Nt(o,()=>{o=null})):(o?Rt(o):d&&(o=He(()=>d(i,[n+1,r]))),s&&Nt(s,()=>{s=null})),h&&_e(!0)};It(()=>{u=!1,t(f),u||v(null,null)},l),A&&(i=O)}function Ri(e,t,n,r){for(var i=[],s=t.length,o=0;o<s;o++)nn(t[o].e,i,!0);var a=s>0&&i.length===0&&n!==null;if(a){var l=n.parentNode;Un(l),l.append(n),r.clear(),Ce(e,t[0].prev,t[s-1].next)}Zn(i,()=>{for(var u=0;u<s;u++){var f=t[u];a||(r.delete(f.k),Ce(e,f.prev,f.next)),ue(f.e,!a)}})}function xi(e,t,n,r,i,s=null){var o=e,a={flags:t,items:new Map,first:null};A&&Ue();var l=null,u=!1,f=Kt(()=>{var v=n();return gt(v)?v:v==null?[]:zt(v)});It(()=>{var v=p(f),c=v.length;if(u&&c===0)return;u=c===0;let d=!1;if(A){var h=o.data===Ht;h!==(c===0)&&(o=Jt(),ee(o),_e(!1),d=!0)}if(A){for(var g=null,b,w=0;w<c;w++){if(O.nodeType===8&&O.data===Yt){o=O,d=!0,_e(!1);break}var E=v[w],I=r(E,w);b=fr(O,a,g,null,E,I,w,i,t,n),a.items.set(I,b),g=b}c>0&&ee(Jt())}A||Di(v,a,o,i,t,r,n),s!==null&&(c===0?l?Rt(l):l=He(()=>s(o)):l!==null&&Nt(l,()=>{l=null})),d&&_e(!0),p(f)}),A&&(o=O)}function Di(e,t,n,r,i,s,o){var a=e.length,l=t.items,u=t.first,f=u,v,c=null,d=[],h=[],g,b,w,E;for(E=0;E<a;E+=1){if(g=e[E],b=s(g,E),w=l.get(b),w===void 0){var I=f?f.e.nodes_start:n;c=fr(I,t,c,c===null?t.first:c.next,g,b,E,r,i,o),l.set(b,c),d=[],h=[],f=c.next;continue}if(Pi(w,g,E),(w.e.f&de)!==0&&Rt(w.e),w!==f){if(v!==void 0&&v.has(w)){if(d.length<h.length){var U=h[0],S;c=U.prev;var re=d[0],C=d[d.length-1];for(S=0;S<d.length;S+=1)cr(d[S],U,n);for(S=0;S<h.length;S+=1)v.delete(h[S]);Ce(t,re.prev,C.next),Ce(t,c,re),Ce(t,C,U),f=U,c=C,E-=1,d=[],h=[]}else v.delete(w),cr(w,f,n),Ce(t,w.prev,w.next),Ce(t,w,c===null?t.first:c.next),Ce(t,c,w),c=w;continue}for(d=[],h=[];f!==null&&f.k!==b;)(f.e.f&de)===0&&(v??(v=new Set)).add(f),h.push(f),f=f.next;if(f===null)continue;w=f}d.push(w),c=w,f=w.next}if(f!==null||v!==void 0){for(var z=v===void 0?[]:zt(v);f!==null;)(f.e.f&de)===0&&z.push(f),f=f.next;var N=z.length;if(N>0){var De=null;Ri(t,z,De,l)}}k.first=t.first&&t.first.e,k.last=c&&c.e}function Pi(e,t,n,r){Nn(e.v,t),e.i=n}function fr(e,t,n,r,i,s,o,a,l,u){var f=(l&Or)!==0,v=(l&Sr)===0,c=f?v?oe(i):Je(i):i,d=(l&Lr)===0?o:Je(o),h={i:d,v:c,k:s,a:null,e:null,prev:n,next:r};try{return h.e=He(()=>a(e,c,d,u),A),h.e.prev=n&&n.e,h.e.next=r&&r.e,n===null?t.first=h:(n.next=h,n.e.next=h.e),r!==null&&(r.prev=h,r.e.prev=h.e),h}finally{}}function cr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==r;){var o=he(s);i.before(s),s=o}}function Ce(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function ji(e,t,n,r,i){var s=e,o="",a;It(()=>{if(o===(o=t()??"")){A&&Ue();return}a!==void 0&&(ue(a),a=void 0),o!==""&&(a=He(()=>{if(A){O.data;for(var l=Ue(),u=l;l!==null&&(l.nodeType!==8||l.data!=="");)u=l,l=he(l);if(l===null)throw mt(),Be;ke(O,u),s=ee(l);return}var f=o+"",v=ar(f);ke(Ie(v),v.lastChild),s.before(v)}))})}const vr=[...` \r\f \v\uFEFF`];function Mi(e,t,n){var r=""+e;if(n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;(o===0||vr.includes(r[o-1]))&&(a===r.length||vr.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Bi(e,t,n,r,i,s){var o=e.__className;if(A||o!==n){var a=Mi(n,r,s);(!A||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}else if(s&&i!==s)for(var l in s){var u=!!s[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return s}const Fi=Symbol("is custom element"),Ui=Symbol("is html");function qi(e){if(A){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;ne(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;ne(e,"checked",null),e.checked=i}}};e.__on_r=n,Kr(n),sr()}}function ne(e,t,n,r){var i=Hi(e);A&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[qr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Yi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Hi(e){return e.__attributes??(e.__attributes={[Fi]:e.nodeName.includes("-"),[Ui]:e.namespaceURI===Br})}var dr=new Map;function Yi(e){var t=dr.get(e.nodeName);if(t)return t;dr.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=kn(r);for(var s in n)n[s].set&&t.push(s);r=Gt(r)}return t}const Vi=()=>performance.now(),ge={tick:e=>requestAnimationFrame(e),now:()=>Vi(),tasks:new Set};function _r(){const e=ge.now();ge.tasks.forEach(t=>{t.c(e)||(ge.tasks.delete(t),t.f())}),ge.tasks.size!==0&&ge.tick(_r)}function zi(e){let t;return ge.tasks.size===0&&ge.tick(_r),{promise:new Promise(n=>{ge.tasks.add(t={c:e,f:n})}),abort(){ge.tasks.delete(t)}}}function Dt(e,t){rn(()=>{e.dispatchEvent(new CustomEvent(t))})}function Gi(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function hr(e){const t={},n=e.split(";");for(const r of n){const[i,s]=r.split(":");if(!i||s===void 0)break;const o=Gi(i.trim());t[o]=s.trim()}return t}const Wi=e=>e;function an(e,t,n,r){var i=(e&Pr)!==0,s="both",o,a=t.inert,l=t.style.overflow,u,f;function v(){var b=$,w=k;X(null),le(null);try{return o??(o=n()(t,(r==null?void 0:r())??{},{direction:s}))}finally{X(b),le(w)}}var c={is_global:i,in(){t.inert=a,Dt(t,"introstart"),u=ln(t,v(),f,1,()=>{Dt(t,"introend"),u==null||u.abort(),u=o=void 0,t.style.overflow=l})},out(b){t.inert=!0,Dt(t,"outrostart"),f=ln(t,v(),u,0,()=>{Dt(t,"outroend"),b==null||b()})},stop:()=>{u==null||u.abort(),f==null||f.abort()}},d=k;if((d.transitions??(d.transitions=[])).push(c),sn){var h=i;if(!h){for(var g=d.parent;g&&(g.f&pt)!==0;)for(;(g=g.parent)&&(g.f&vt)===0;);h=!g||(g.f&yn)!==0}h&&tn(()=>{$e(()=>c.in())})}}function ln(e,t,n,r,i){var s=r===1;if(zr(t)){var o,a=!1;return Tn(()=>{if(!a){var b=t({direction:s?"in":"out"});o=ln(e,b,n,r,i)}}),{abort:()=>{a=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return i(),{abort:ze,deactivate:ze,reset:ze,t:()=>r};const{delay:l=0,css:u,tick:f,easing:v=Wi}=t;var c=[];if(s&&n===void 0&&(f&&f(0,1),u)){var d=hr(u(0,1));c.push(d,d)}var h=()=>1-r,g=e.animate(c,{duration:l});return g.onfinish=()=>{var b=(n==null?void 0:n.t())??1-r;n==null||n.abort();var w=r-b,E=t.duration*Math.abs(w),I=[];if(E>0){var U=!1;if(u)for(var S=Math.ceil(E/16.666666666666668),re=0;re<=S;re+=1){var C=b+w*v(re/S),z=hr(u(C,1-C));I.push(z),U||(U=z.overflow==="hidden")}U&&(e.style.overflow="hidden"),h=()=>{var N=g.currentTime;return b+w*v(N/E)},f&&zi(()=>{if(g.playState!=="running")return!1;var N=h();return f(N,1-N),!0})}g=e.animate(I,{duration:E,fill:"forwards"}),g.onfinish=()=>{h=()=>r,f==null||f(r,1-r),i()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=ze)},deactivate:()=>{i=ze},reset:()=>{r===0&&(f==null||f(1,0))},t:()=>h()}}function Ki(e,t,n=t){Ti(e,"change",r=>{var i=r?e.defaultChecked:e.checked;n(i)}),(A&&e.defaultChecked!==e.checked||$e(t)==null)&&n(e.checked),tt(()=>{var r=t();e.checked=!!r})}function Ji(e,t,n){var r=we(e,t);r&&r.set&&(e[t]=n,Qt(()=>{e[t]=null}))}function Xi(e=!1){const t=L,n=t.l.u;if(!n)return;let r=()=>bi(t.s);if(e){let i=0,s={};const o=Xe(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==s[u]&&(s[u]=l[u],a=!0);return a&&i++,i});r=()=>p(o)}n.b.length&&yi(()=>{pr(t,r),yt(n.b)}),en(()=>{const i=$e(()=>n.m.map(Gr));return()=>{for(const s of i)typeof s=="function"&&s()}}),n.a.length&&en(()=>{pr(t,r),yt(n.a)})}function pr(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function Zi(e){L===null&&er(),m&&L.l!==null?ts(L).m.push(e):en(()=>{const t=$e(e);if(typeof t=="function")return t})}function Qi(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function es(){const e=L;return e===null&&er(),(t,n,r)=>{var s;const i=(s=e.s.$$events)==null?void 0:s[t];if(i){const o=gt(i)?i.slice():[i],a=Qi(t,n,r);for(const l of o)l.call(e.x,a);return!a.defaultPrevented}return!0}}function ts(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}let Pt=!1;function ns(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}function gr(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function V(e,t,n,r){var re;var i=(n&Ir)!==0,s=!m||(n&Nr)!==0,o=(n&xr)!==0,a=(n&Dr)!==0,l=!1,u;o?[u,l]=ns(()=>e[t]):u=e[t];var f=Fe in e||$n in e,v=o&&(((re=we(e,t))==null?void 0:re.set)??(f&&t in e&&(C=>e[t]=C)))||void 0,c=r,d=!0,h=!1,g=()=>(h=!0,d&&(d=!1,a?c=$e(r):c=r),c);u===void 0&&r!==void 0&&(v&&s&&ni(),u=g(),v&&v(u));var b;if(s)b=()=>{var C=e[t];return C===void 0?g():(d=!0,h=!1,C)};else{var w=(i?Xe:Kt)(()=>e[t]);w.f|=Fr,b=()=>{var C=p(w);return C!==void 0&&(c=void 0),C===void 0?c:C}}if((n&Rr)===0)return b;if(v){var E=e.$$legacy;return function(C,z){return arguments.length>0?((!s||!z||E||l)&&v(z?b():C),C):b()}}var I=!1,U=oe(u),S=Xe(()=>{var C=b(),z=p(U);return I?(I=!1,z):U.v=C});return o&&p(S),i||(S.equals=Wt),function(C,z){if(arguments.length>0){const N=z?p(S):s&&o?Se(C):C;if(!S.equals(N)){if(I=!0,R(U,N),h&&c!==void 0&&(c=N),gr(S))return C;$e(()=>p(S))}return C}return gr(S)?S.v:p(S)}}function rs(e){return new is(e)}class is{constructor(t){pn(this,be);pn(this,Q);var s;var n=new Map,r=(o,a)=>{var l=oe(a);return n.set(o,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(o,a){return p(n.get(a)??r(a,Reflect.get(o,a)))},has(o,a){return a===$n?!0:(p(n.get(a)??r(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,l){return R(n.get(a)??r(a,l),l),Reflect.set(o,a,l)}});gn(this,Q,(t.hydrate?Ii:lr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&F(),gn(this,be,i.$$events);for(const o of Object.keys(G(this,Q)))o==="$set"||o==="$destroy"||o==="$on"||wt(this,o,{get(){return G(this,Q)[o]},set(a){G(this,Q)[o]=a},enumerable:!0});G(this,Q).$set=o=>{Object.assign(i,o)},G(this,Q).$destroy=()=>{Ni(G(this,Q))}}$set(t){G(this,Q).$set(t)}$on(t,n){G(this,be)[t]=G(this,be)[t]||[];const r=(...i)=>n.call(this,...i);return G(this,be)[t].push(r),()=>{G(this,be)[t]=G(this,be)[t].filter(i=>i!==r)}}$destroy(){G(this,Q).$destroy()}}be=new WeakMap,Q=new WeakMap;let br;typeof HTMLElement=="function"&&(br=class extends HTMLElement{constructor(t,n,r){super();ie(this,"$$ctor");ie(this,"$$s");ie(this,"$$c");ie(this,"$$cn",!1);ie(this,"$$d",{});ie(this,"$$r",!1);ie(this,"$$p_d",{});ie(this,"$$l",{});ie(this,"$$l_u",new Map);ie(this,"$$me");this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const o=document.createElement("slot");i!=="default"&&(o.name=i),Ee(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=ss(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),n.default=!0):n[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=jt(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=rs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=mi(()=>{tt(()=>{var i;this.$$r=!0;for(const s of bt(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const o=jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const o=this.$$c.$on(i,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=jt(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return bt(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function jt(e,t,n,r){var s;const i=(s=n[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ss(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function os(e,t,n,r,i,s){let o=class extends br{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return bt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return bt(t).forEach(a=>{wt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var v;l=jt(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=(v=we(u,a))==null?void 0:v.get;f?u[a]=l:u.$set({[a]:l})}}})}),r.forEach(a=>{wt(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}/*! js-cookie v3.0.5 | MIT */function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var as={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function un(e,t){function n(i,s,o){if(!(typeof document>"u")){o=Mt({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var l=s[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(o[f]=e.read(u,f),i===f)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Mt({},s,{expires:-1}))},withAttributes:function(i){return un(this.converter,Mt({},this.attributes,i))},withConverter:function(i){return un(Mt({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}for(var fn=un(as,{path:"/"}),wr=36,yr="";wr--;)yr+=wr.toString(36);function ls(e){for(var t="",n=e;n--;)t+=yr[Math.random()*36|0];return t}function us(e,t){const n=Object.keys(e),r=Object.keys(t);return r.length!==n.length?!1:r.every(i=>n.includes(i))}const fs=e=>e;function cn(e,{delay:t=0,duration:n=400,easing:r=fs}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:s=>`opacity: ${s*i}`}}var cs=Ye(`<button class="cookieConsentToggle" part="toggle"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"></path></svg></button>`),vs=Ye('<button type="submit" class="cookieConsent__Button" part="button button--reject"> </button>'),ds=Ye('<div class="cookieConsentWrapper" part="wrapper"><div class="cookieConsent" part="consent"><div class="cookieConsent__Left" part="consent--left"><div class="cookieConsent__Content" part="consent--content"><p class="cookieConsent__Title" part="consent--title"> </p> <p class="cookieConsent__Description" part="consent--description"><!></p></div></div> <div class="cookieConsent__Right" part="consent--right"><button type="button" class="cookieConsent__Button" part="button button--settings"> </button> <!> <button type="submit" class="cookieConsent__Button cookieConsent__Button--Accept" part="button button--accept"> </button></div></div></div>'),_s=Ye('<div><input type="checkbox" part="operations--list-item-input"> <label> </label> <span class="cookieConsentOperations__ItemLabel" part="operations--list-item-description"> </span></div>'),hs=Ye('<div class="cookieConsentOperations" part="operations"><div class="cookieConsentOperations__List" part="operations--list"><!> <button type="submit" class="cookieConsent__Button cookieConsent__Button--Close" part="button button--close"> </button></div></div>'),ps=Ye("<!> <!> <!>",1);function mr(e,t){nr(t,!1);const n=oe(),r=oe(),i=oe(),s=oe(),o=es();let a=V(t,"cookieName",12,null),l=V(t,"canRejectCookies",12,!1),u=V(t,"showEditIcon",12,!0),f=V(t,"acceptAllLabel",12,"Accept all"),v=V(t,"acceptSelectedLabel",12,"Accept selected"),c=V(t,"rejectLabel",12,"Reject all"),d=V(t,"settingsLabel",12,"Cookie settings"),h=V(t,"closeLabel",12,"Close settings"),g=V(t,"editLabel",12,"Edit cookie settings"),b=V(t,"visible",12,!0),w=oe(!1),E=oe(!1),I=V(t,"heading",12,"GDPR Notice"),U=V(t,"description",12,"We use cookies to offer a better browsing experience, analyze site traffic, personalize content, and serve targeted advertisements. Please review our privacy policy & cookies information page. By clicking accept, you consent to our privacy policy & use of cookies."),S=V(t,"cookieConfig",28,()=>({}));const re={sameSite:"strict"};let C=V(t,"choices",28,()=>({}));const N=oe(Object.assign({},{necessary:{label:"Necessary cookies",description:"Used for cookie control. Can't be turned off.",value:!0},tracking:{label:"Tracking cookies",description:"Used for advertising purposes.",value:!0},analytics:{label:"Analytics cookies",description:"Used to control Google Analytics, a 3rd party tool offered by Google to track user behavior.",value:!0},marketing:{label:"Marketing cookies",description:"Used for marketing data.",value:!0}},C()));function De(){R(w,b())}Zi(async()=>{if(!a())throw new Error("You must set gdpr cookie name");const _=fn.get(a());if(!_){De();return}try{const{choices:y,fp:j}=JSON.parse(atob(_));if(!us(p(r),y))throw new Error("cookie consent has changed");!j&&(y.analytics||y.tracking)&&vn(y),dn(y)}catch{gs(),De()}});function vn(_){const y=new Date;y.setDate(y.getDate()+400);const j={choices:_},K=Object.assign({},re,S(),{expires:y});(_.analytics||_.tracking)&&(j.fp=ls(32)),fn.set(a(),btoa(JSON.stringify(j)),K)}function gs(){const{path:_}=S();fn.remove(a(),Object.assign({},_?{path:_}:{}))}function dn(_){const y=Object.keys(p(r));for(const j of y){const K=_[j];p(N)[j]&&In(N,p(N)[j].value=K),o(j,{agreed:K}),window.dispatchEvent(new CustomEvent(`consent:${j}`,{detail:{agreed:K}}))}R(w,!1)}function bs(){vn(p(i)),dn(p(i))}function ws(){vn(p(r)),dn(p(r))}St(()=>p(N),()=>{R(n,Object.values(p(N)).map((_,y)=>Object.assign({},_,{id:Object.keys(p(N))[y]})))}),St(()=>p(n),()=>{R(r,p(n).reduce((_,y)=>(_[y.id]=y.value?y.value:!1,_),{}))}),St(()=>p(n),()=>{R(i,p(n).reduce((_,y)=>(_[y.id]=y.id==="necessary",_),{}))}),St(()=>p(r),()=>{R(s,Object.values(p(r)).every(_=>_===!0))}),ki(),Xi();var kr=ps(),Er=Fn(kr);{var ys=_=>{var y=cs();nt(()=>ne(y,"aria-label",g())),rt("click",y,De),an(3,y,()=>cn),Ee(_,y)};st(Er,_=>{u()&&_(ys)})}var Cr=pe(Er,2);{var ms=_=>{var y=ds(),j=P(y),K=P(j),Pe=P(K),ot=P(Pe),at=P(ot,!0);D(ot);var q=pe(ot,2),Bt=P(q);ji(Bt,U),D(q),D(Pe),D(K);var Ft=pe(K,2),je=P(Ft),lt=P(je,!0);D(je);var Ae=pe(je,2);{var Ut=ut=>{var Te=vs(),_n=P(Te,!0);D(Te),nt(()=>{ne(Te,"aria-label",c()),xe(_n,c())}),rt("click",Te,bs),Ee(ut,Te)};st(Ae,ut=>{l()&&ut(Ut)})}var fe=pe(Ae,2),Me=P(fe,!0);D(fe),D(Ft),D(j),D(y),nt(()=>{xe(at,I()),ne(je,"aria-label",d()),xe(lt,d()),ne(fe,"aria-label",p(s)?f():v()),xe(Me,p(s)?f():v())}),rt("click",je,()=>{R(E,!0)}),rt("click",fe,ws),an(3,y,()=>cn),Ee(_,y)};st(Cr,_=>{p(w)&&_(ms)})}var $s=pe(Cr,2);{var ks=_=>{var y=hs(),j=P(y),K=P(j);xi(K,1,()=>p(n),at=>at.id,(at,q)=>{var Bt=Si(),Ft=Fn(Bt);{var je=lt=>{var Ae=_s();let Ut;var fe=P(Ae);qi(fe);var Me=pe(fe,2),ut=P(Me,!0);D(Me);var Te=pe(Me,2),_n=P(Te,!0);D(Te),D(Ae),nt(hn=>{Ut=Bi(Ae,1,"cookieConsentOperations__Item",null,Ut,hn),ne(Ae,"part",`operations--list-item ${p(q).id==="necessary"?"operations--list-item--disabled":""}`),ne(fe,"id",`gdpr-check-${p(q).id}`),fe.disabled=p(q).id==="necessary",ne(Me,"for",`gdpr-check-${p(q).id}`),ne(Me,"part",`operations--list-item-label ${p(N)[p(q).id].value?"operations--list-item-label--checked":""}`),xe(ut,p(q).label),xe(_n,p(q).description)},[()=>({disabled:p(q).id==="necessary"})],Kt),Ki(fe,()=>p(N)[p(q).id].value,hn=>In(N,p(N)[p(q).id].value=hn)),Ee(lt,Ae)};st(Ft,lt=>{Object.hasOwnProperty.call(p(N),p(q).id)&&p(N)[p(q).id]&&lt(je)})}Ee(at,Bt)});var Pe=pe(K,2),ot=P(Pe,!0);D(Pe),D(j),D(y),nt(()=>{ne(Pe,"aria-label",h()),xe(ot,h())}),rt("click",Pe,()=>{R(E,!1)}),an(3,y,()=>cn),Ee(_,y)};st($s,_=>{p(E)&&_(ks)})}return Ee(e,kr),Ji(t,"show",De),rr({show:De,get cookieName(){return a()},set cookieName(_){a(_),F()},get canRejectCookies(){return l()},set canRejectCookies(_){l(_),F()},get showEditIcon(){return u()},set showEditIcon(_){u(_),F()},get acceptAllLabel(){return f()},set acceptAllLabel(_){f(_),F()},get acceptSelectedLabel(){return v()},set acceptSelectedLabel(_){v(_),F()},get rejectLabel(){return c()},set rejectLabel(_){c(_),F()},get settingsLabel(){return d()},set settingsLabel(_){d(_),F()},get closeLabel(){return h()},set closeLabel(_){h(_),F()},get editLabel(){return g()},set editLabel(_){g(_),F()},get visible(){return b()},set visible(_){b(_),F()},get heading(){return I()},set heading(_){I(_),F()},get description(){return U()},set description(_){U(_),F()},get cookieConfig(){return S()},set cookieConfig(_){S(_),F()},get choices(){return C()},set choices(_){C(_),F()}})}return customElements.define("cookie-consent-banner",os(mr,{cookieName:{attribute:"cookie-name"},canRejectCookies:{attribute:"can-reject-cookies",type:"Boolean"},showEditIcon:{attribute:"show-edit-icon",type:"Boolean"},acceptAllLabel:{attribute:"accept-all-label"},acceptSelectedLabel:{attribute:"accept-selected-label"},rejectLabel:{attribute:"reject-label"},settingsLabel:{attribute:"settings-label"},closeLabel:{attribute:"close-label"},editLabel:{attribute:"edit-label"},visible:{attribute:"visible",type:"Boolean"},settingsShown:{attribute:"settings-shown",type:"Boolean"},cookieConfig:{attribute:"cookie-config",type:"Object"},shown:{attribute:"shown",type:"Boolean"},choices:{attribute:"choices",type:"Object"},heading:{},description:{}},[],["show"],!0)),{Banner:mr}});