const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BgRxN7_C.js","./B0wi7Dtu.js","./PBvC5dlp.js","./9JYwXx8U.js","./g.CetD1WXK.css","./jIaoGLoQ.js","./DHDJld_j.js","./Dqg0KtYK.js","./-vc32hf9.js","./BfbT64bd.js","./BLH_OBOE.js","./CwhY1JiW.js","./DsOc5s2d.js","./CxAWQHDx.js","./CA2V1eYl.js","./B0sXuWcB.js","./XTaM1-EU.js","./CyJyf6U0.js","./BtMTkg6y.js","./Carousel.tAEy4inf.css","./DeFfsyru.js","./x_rD_Ya3.js","./Bn3Q6jhL.js","./CIgF6tsS.js","./Cgz2IbYb.js","./DpGO95xh.js","./uTLb3gXa.js","./kZokfpnf.js","./BUaIsiHV.js","./BOSmohao.js","./o04_e9EH.js","./Dus30xmx.js","./CZ5j6Ozl.js","./D_efPxjD.js","./Cse7sEtg.js","./Searchbox.7Ue5gL_5.css","./DbpFHKMr.js","./z7MQPcM9.js","./bOohFX-a.js","./DwNVC_1w.js","./Footer.oLHHz4Eu.css","./DqVond5f.js","./D0PuGx5X.js","./Button.BVzTBofY.css","./CTASection.DHDfQRBd.css","./index.HzTonhft.css","./HTiGecFA.js","./CyAfuxVf.js","./DWUQ5Lm4.js","./C2sqlAr2.js","./index.C7_FIYXD.css","./NMaa899u.js","./mKog8HXi.js","./DmAlAL79.js","./index.ClrJKV1S.css","./CMa1yQ-k.js","./BRLALhx8.js","./IconCSS.CeFK9RwE.css","./BHav-i15.js","./custom.C44L-8sj.css","./CZOmIXIK.js"])))=>i.map(i=>d[i]); var NA=Object.defineProperty;var e_=e=>{throw TypeError(e)};var MA=(e,t,n)=>t in e?NA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ln=(e,t,n)=>MA(e,typeof t!="symbol"?t+"":t,n),DA=(e,t,n)=>t.has(e)||e_("Cannot "+n);var Ca=(e,t,n)=>(DA(e,t,"read from private field"),n?n.call(e):t.get(e)),t_=(e,t,n)=>t.has(e)?e_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Qg(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ge={},Ri=[],ar=()=>{},$A=()=>!1,hc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),em=e=>e.startsWith("onUpdate:"),jt=Object.assign,tm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},FA=Object.prototype.hasOwnProperty,Ze=(e,t)=>FA.call(e,t),he=Array.isArray,Li=e=>gc(e)==="[object Map]",Cw=e=>gc(e)==="[object Set]",UA=e=>gc(e)==="[object RegExp]",ye=e=>typeof e=="function",ft=e=>typeof e=="string",mo=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",nm=e=>(at(e)||ye(e))&&ye(e.then)&&ye(e.catch),Tw=Object.prototype.toString,gc=e=>Tw.call(e),jA=e=>gc(e).slice(8,-1),Aw=e=>gc(e)==="[object Object]",rm=e=>ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pi=Qg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Kf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},BA=/-(\w)/g,Dn=Kf(e=>e.replace(BA,(t,n)=>n?n.toUpperCase():"")),HA=/\B([A-Z])/g,yo=Kf(e=>e.replace(HA,"-$1").toLowerCase()),Yf=Kf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kd=Kf(e=>e?`on${Yf(e)}`:""),An=(e,t)=>!Object.is(e,t),Ni=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ph=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ow=e=>{const t=ft(e)?Number(e):NaN;return isNaN(t)?e:t};let n_;const Zf=()=>n_||(n_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ns(e){if(he(e)){const t={};for(let n=0;n{if(n){const r=n.split(WA);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qe(e){let t="";if(ft(e))t=e;else if(he(e))for(let n=0;n!!(e&&e.__v_isRef===!0),jo=e=>ft(e)?e:e==null?"":he(e)||at(e)&&(e.toString===Tw||!ye(e.toString))?Lw(e)?jo(e.value):JSON.stringify(e,Pw,2):String(e),Pw=(e,t)=>Lw(t)?Pw(e,t.value):Li(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Yd(r,s)+" =>"]=o,n),{})}:Cw(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Yd(n))}:mo(t)?Yd(t):at(t)&&!he(t)&&!Aw(t)?String(t):t,Yd=(e,t="")=>{var n;return mo(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let yn;class Nw{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(il){let t=il;for(il=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sl;){let t=sl;for(sl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Fw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Uw(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),im(r),YA(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function hh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(jw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Cl))return;e.globalVersion=Cl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!hh(e)){e.flags&=-3;return}const n=ot,r=lr;ot=e,lr=!0;try{Fw(e);const o=e.fn(e._value);(t.version===0||An(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=n,lr=r,Uw(e),e.flags&=-3}}function im(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)im(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function YA(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let lr=!0;const Bw=[];function Qo(){Bw.push(lr),lr=!1}function es(){const e=Bw.pop();lr=e===void 0?!0:e}function o_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ot;ot=void 0;try{t()}finally{ot=n}}}let Cl=0;class ZA{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xf{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ot||!lr||ot===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ot)n=this.activeLink=new ZA(ot,this),ot.deps?(n.prevDep=ot.depsTail,ot.depsTail.nextDep=n,ot.depsTail=n):ot.deps=ot.depsTail=n,Hw(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ot.depsTail,n.nextDep=void 0,ot.depsTail.nextDep=n,ot.depsTail=n,ot.deps===n&&(ot.deps=r)}return n}trigger(t){this.version++,Cl++,this.notify(t)}notify(t){om();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{sm()}}}function Hw(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Hw(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ju=new WeakMap,Ts=Symbol(""),gh=Symbol(""),Tl=Symbol("");function on(e,t,n){if(lr&&ot){let r=ju.get(e);r||ju.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Xf),o.map=r,o.key=n),o.track()}}function eo(e,t,n,r,o,s){const i=ju.get(e);if(!i){Cl++;return}const a=l=>{l&&l.trigger()};if(om(),t==="clear")i.forEach(a);else{const l=he(e),c=l&&rm(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===Tl||!mo(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Tl)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Ts)),Li(e)&&a(i.get(gh)));break;case"delete":l||(a(i.get(Ts)),Li(e)&&a(i.get(gh)));break;case"set":Li(e)&&a(i.get(Ts));break}}sm()}function XA(e,t){const n=ju.get(e);return n&&n.get(t)}function li(e){const t=Me(e);return t===e?t:(on(t,"iterate",Tl),Gn(e)?t:t.map(sn))}function Jf(e){return on(e=Me(e),"iterate",Tl),e}const JA={__proto__:null,[Symbol.iterator](){return Xd(this,Symbol.iterator,sn)},concat(...e){return li(this).concat(...e.map(t=>he(t)?li(t):t))},entries(){return Xd(this,"entries",e=>(e[1]=sn(e[1]),e))},every(e,t){return Vr(this,"every",e,t,void 0,arguments)},filter(e,t){return Vr(this,"filter",e,t,n=>n.map(sn),arguments)},find(e,t){return Vr(this,"find",e,t,sn,arguments)},findIndex(e,t){return Vr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vr(this,"findLast",e,t,sn,arguments)},findLastIndex(e,t){return Vr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Jd(this,"includes",e)},indexOf(...e){return Jd(this,"indexOf",e)},join(e){return li(this).join(e)},lastIndexOf(...e){return Jd(this,"lastIndexOf",e)},map(e,t){return Vr(this,"map",e,t,void 0,arguments)},pop(){return Ta(this,"pop")},push(...e){return Ta(this,"push",e)},reduce(e,...t){return s_(this,"reduce",e,t)},reduceRight(e,...t){return s_(this,"reduceRight",e,t)},shift(){return Ta(this,"shift")},some(e,t){return Vr(this,"some",e,t,void 0,arguments)},splice(...e){return Ta(this,"splice",e)},toReversed(){return li(this).toReversed()},toSorted(e){return li(this).toSorted(e)},toSpliced(...e){return li(this).toSpliced(...e)},unshift(...e){return Ta(this,"unshift",e)},values(){return Xd(this,"values",sn)}};function Xd(e,t,n){const r=Jf(e),o=r[t]();return r!==e&&!Gn(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const QA=Array.prototype;function Vr(e,t,n,r,o,s){const i=Jf(e),a=i!==e&&!Gn(e),l=i[t];if(l!==QA[t]){const f=l.apply(e,s);return a?sn(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,sn(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,r);return a&&o?o(u):u}function s_(e,t,n,r){const o=Jf(e);let s=n;return o!==e&&(Gn(e)?n.length>3&&(s=function(i,a,l){return n.call(this,i,a,l,e)}):s=function(i,a,l){return n.call(this,i,sn(a),l,e)}),o[t](s,...r)}function Jd(e,t,n){const r=Me(e);on(r,"iterate",Tl);const o=r[t](...n);return(o===-1||o===!1)&&cm(n[0])?(n[0]=Me(n[0]),r[t](...n)):o}function Ta(e,t,n=[]){Qo(),om();const r=Me(e)[t].apply(e,n);return sm(),es(),r}const eI=Qg("__proto__,__v_isRef,__isVue"),Vw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mo));function tI(e){mo(e)||(e=String(e));const t=Me(this);return on(t,"has",e),t.hasOwnProperty(e)}class Ww{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?fI:Kw:s?qw:Gw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=he(t);if(!o){let l;if(i&&(l=JA[n]))return l;if(n==="hasOwnProperty")return tI}const a=Reflect.get(t,n,qe(t)?t:r);return(mo(n)?Vw.has(n):eI(n))||(o||on(t,"get",n),s)?a:qe(a)?i&&rm(n)?a:a.value:at(a)?o?Qf(a):Jt(a):a}}class zw extends Ww{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=Wo(s);if(!Gn(r)&&!Wo(r)&&(s=Me(s),r=Me(r)),!he(t)&&qe(s)&&!qe(r))return l?!1:(s.value=r,!0)}const i=he(t)&&rm(n)?Number(n)e,$c=e=>Reflect.getPrototypeOf(e);function iI(e,t,n){return function(...r){const o=this.__v_raw,s=Me(o),i=Li(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?mh:t?yh:sn;return!t&&on(s,"iterate",l?gh:Ts),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Fc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aI(e,t){const n={get(o){const s=this.__v_raw,i=Me(s),a=Me(o);e||(An(o,a)&&on(i,"get",o),on(i,"get",a));const{has:l}=$c(i),c=t?mh:e?yh:sn;if(l.call(i,o))return c(s.get(o));if(l.call(i,a))return c(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&on(Me(o),"iterate",Ts),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Me(s),a=Me(o);return e||(An(o,a)&&on(i,"has",o),on(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=Me(a),c=t?mh:e?yh:sn;return!e&&on(l,"iterate",Ts),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return jt(n,e?{add:Fc("add"),set:Fc("set"),delete:Fc("delete"),clear:Fc("clear")}:{add(o){!t&&!Gn(o)&&!Wo(o)&&(o=Me(o));const s=Me(this);return $c(s).has.call(s,o)||(s.add(o),eo(s,"add",o,o)),this},set(o,s){!t&&!Gn(s)&&!Wo(s)&&(s=Me(s));const i=Me(this),{has:a,get:l}=$c(i);let c=a.call(i,o);c||(o=Me(o),c=a.call(i,o));const u=l.call(i,o);return i.set(o,s),c?An(s,u)&&eo(i,"set",o,s):eo(i,"add",o,s),this},delete(o){const s=Me(this),{has:i,get:a}=$c(s);let l=i.call(s,o);l||(o=Me(o),l=i.call(s,o)),a&&a.call(s,o);const c=s.delete(o);return l&&eo(s,"delete",o,void 0),c},clear(){const o=Me(this),s=o.size!==0,i=o.clear();return s&&eo(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=iI(o,e,t)}),n}function am(e,t){const n=aI(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ze(n,o)&&o in r?n:r,o,s)}const lI={get:am(!1,!1)},cI={get:am(!1,!0)},uI={get:am(!0,!1)};const Gw=new WeakMap,qw=new WeakMap,Kw=new WeakMap,fI=new WeakMap;function dI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pI(e){return e.__v_skip||!Object.isExtensible(e)?0:dI(jA(e))}function Jt(e){return Wo(e)?e:lm(e,!1,rI,lI,Gw)}function ro(e){return lm(e,!1,sI,cI,qw)}function Qf(e){return lm(e,!0,oI,uI,Kw)}function lm(e,t,n,r,o){if(!at(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=pI(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Lr(e){return Wo(e)?Lr(e.__v_raw):!!(e&&e.__v_isReactive)}function Wo(e){return!!(e&&e.__v_isReadonly)}function Gn(e){return!!(e&&e.__v_isShallow)}function cm(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function um(e){return!Ze(e,"__v_skip")&&Object.isExtensible(e)&&Iw(e,"__v_skip",!0),e}const sn=e=>at(e)?Jt(e):e,yh=e=>at(e)?Qf(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function ue(e){return Yw(e,!1)}function fr(e){return Yw(e,!0)}function Yw(e,t){return qe(e)?e:new hI(e,t)}class hI{constructor(t,n){this.dep=new Xf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Me(t),this._value=n?t:sn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Gn(t)||Wo(t);t=r?t:Me(t),An(t,n)&&(this._rawValue=t,this._value=r?t:sn(t),this.dep.trigger())}}function s9(e){e.dep&&e.dep.trigger()}function He(e){return qe(e)?e.value:e}function bu(e){return ye(e)?e():He(e)}const gI={get:(e,t,n)=>t==="__v_raw"?e:He(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qe(o)&&!qe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Zw(e){return Lr(e)?e:new Proxy(e,gI)}class mI{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Xf,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Xw(e){return new mI(e)}function yI(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=Jw(e,n);return t}class _I{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return XA(Me(this._object),this._key)}}class vI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Js(e,t,n){return qe(e)?e:ye(e)?new vI(e):at(e)&&arguments.length>1?Jw(e,t,n):ue(e)}function Jw(e,t,n){const r=e[t];return qe(r)?r:new _I(e,t,n)}class bI{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Cl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return $w(this,!0),!0}get value(){const t=this.dep.track();return jw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function wI(e,t,n=!1){let r,o;return ye(e)?r=e:(r=e.get,o=e.set),new bI(r,o,n)}const Uc={},Bu=new WeakMap;let hs;function SI(e,t=!1,n=hs){if(n){let r=Bu.get(n);r||Bu.set(n,r=[]),r.push(e)}}function EI(e,t,n=Ge){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,c=v=>o?v:Gn(v)||o===!1||o===0?to(v,1):to(v);let u,f,d,p,g=!1,h=!1;if(qe(e)?(f=()=>e.value,g=Gn(e)):Lr(e)?(f=()=>c(e),g=!0):he(e)?(h=!0,g=e.some(v=>Lr(v)||Gn(v)),f=()=>e.map(v=>{if(qe(v))return v.value;if(Lr(v))return c(v);if(ye(v))return l?l(v,2):v()})):ye(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Qo();try{d()}finally{es()}}const v=hs;hs=u;try{return l?l(e,3,[p]):e(p)}finally{hs=v}}:f=ar,t&&o){const v=f,S=o===!0?1/0:o;f=()=>to(v(),S)}const y=pa(),m=()=>{u.stop(),y&&y.active&&tm(y.effects,u)};if(s&&t){const v=t;t=(...S)=>{v(...S),m()}}let b=h?new Array(e.length).fill(Uc):Uc;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const S=u.run();if(o||g||(h?S.some((E,x)=>An(E,b[x])):An(S,b))){d&&d();const E=hs;hs=u;try{const x=[S,b===Uc?void 0:h&&b[0]===Uc?[]:b,p];l?l(t,3,x):t(...x),b=S}finally{hs=E}}}else u.run()};return a&&a(_),u=new Mw(f),u.scheduler=i?()=>i(_,!1):_,p=v=>SI(v,!1,u),d=u.onStop=()=>{const v=Bu.get(u);if(v){if(l)l(v,4);else for(const S of v)S();Bu.delete(u)}},t?r?_(!0):b=u.run():i?i(_.bind(null,!0),!0):u.run(),m.pause=u.pause.bind(u),m.resume=u.resume.bind(u),m.stop=m,m}function to(e,t=1/0,n){if(t<=0||!at(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))to(e.value,t,n);else if(he(e))for(let r=0;r{to(r,t,n)});else if(Aw(e)){for(const r in e)to(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&to(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function mc(e,t,n,r){try{return r?e(...r):e()}catch(o){ha(o,t,n)}}function dr(e,t,n,r){if(ye(e)){const o=mc(e,t,n,r);return o&&nm(o)&&o.catch(s=>{ha(s,t,n)}),o}if(he(e)){const o=[];for(let s=0;s>>1,o=_n[r],s=Al(o);s=Al(n)?_n.push(e):_n.splice(kI(t),0,e),e.flags|=1,eS()}}function eS(){Hu||(Hu=Qw.then(tS))}function Vu(e){he(e)?Mi.push(...e):To&&e.id===-1?To.splice(gi+1,0,e):e.flags&1||(Mi.push(e),e.flags|=1),eS()}function i_(e,t,n=Ar+1){for(;n<_n.length;n++){const r=_n[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_n.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Wu(e){if(Mi.length){const t=[...new Set(Mi)].sort((n,r)=>Al(n)-Al(r));if(Mi.length=0,To){To.push(...t);return}for(To=t,gi=0;gie.id==null?e.flags&2?-1:1/0:e.id;function tS(e){try{for(Ar=0;Ar<_n.length;Ar++){const t=_n[Ar];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),mc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ar<_n.length;Ar++){const t=_n[Ar];t&&(t.flags&=-2)}Ar=-1,_n.length=0,Wu(),Hu=null,(_n.length||Mi.length)&&tS()}}let Ft=null,nS=null;function zu(e){const t=Ft;return Ft=e,nS=e&&e.type.__scopeId||null,t}function Ms(e,t=Ft,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&w_(-1);const s=zu(t);let i;try{i=e(...o)}finally{zu(s),r._d&&w_(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function i9(e,t){if(Ft===null)return e;const n=ad(Ft),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,al=e=>e&&(e.disabled||e.disabled===""),a_=e=>e&&(e.defer||e.defer===""),l_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,c_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,_h=(e,t)=>{const n=e&&e.to;return ft(n)?t?t(n):null:n},sS={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:h,createComment:y}}=c,m=al(t.props);let{shapeFlag:b,children:_,dynamicChildren:v}=t;if(e==null){const S=t.el=h(""),E=t.anchor=h("");p(S,n,r),p(E,n,r);const x=(I,O)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=I),u(_,I,O,o,s,i,a,l))},N=()=>{const I=t.target=_h(t.props,g),O=iS(I,t,h,p);I&&(i!=="svg"&&l_(I)?i="svg":i!=="mathml"&&c_(I)&&(i="mathml"),m||(x(I,O),wu(t,!1)))};m&&(x(n,E),wu(t,!0)),a_(t.props)?Mt(()=>{N(),t.el.__isMounted=!0},s):N()}else{if(a_(t.props)&&!e.el.__isMounted){Mt(()=>{sS.process(e,t,n,r,o,s,i,a,l,c),delete e.el.__isMounted},s);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,E=t.target=e.target,x=t.targetAnchor=e.targetAnchor,N=al(e.props),I=N?n:E,O=N?S:x;if(i==="svg"||l_(E)?i="svg":(i==="mathml"||c_(E))&&(i="mathml"),v?(d(e.dynamicChildren,v,I,o,s,i,a),ym(e,t,!0)):l||f(e,t,I,O,o,s,i,a,!1),m)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):jc(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=_h(t.props,g);U&&jc(t,U,null,c,0)}else N&&jc(t,E,x,c,1);wu(t,m)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(o(c),o(u)),s&&o(l),i&16){const p=s||!al(d);for(let g=0;g{e.isMounted=!0}),ga(()=>{e.isUnmounting=!0}),e}const jn=[Function,Array],aS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jn,onEnter:jn,onAfterEnter:jn,onEnterCancelled:jn,onBeforeLeave:jn,onLeave:jn,onAfterLeave:jn,onLeaveCancelled:jn,onBeforeAppear:jn,onAppear:jn,onAfterAppear:jn,onAppearCancelled:jn},lS=e=>{const t=e.subTree;return t.component?lS(t.component):t},II={name:"BaseTransition",props:aS,setup(e,{slots:t}){const n=en(),r=AI();return()=>{const o=t.default&&fS(t.default(),!0);if(!o||!o.length)return;const s=cS(o),i=Me(e),{mode:a}=i;if(r.isLeaving)return Qd(s);const l=u_(s);if(!l)return Qd(s);let c=vh(l,i,r,n,f=>c=f);l.type!==Dt&&Hi(l,c);let u=n.subTree&&u_(n.subTree);if(u&&u.type!==Dt&&!rr(l,u)&&lS(n).type!==Dt){let f=vh(u,i,r,n);if(Hi(u,f),a==="out-in"&&l.type!==Dt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Qd(s);a==="in-out"&&l.type!==Dt?f.delayLeave=(d,p,g)=>{const h=uS(r,u);h[String(u.key)]=u,d[Ao]=()=>{p(),d[Ao]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function cS(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Dt){t=n;break}}return t}const OI=II;function uS(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function vh(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:h,onBeforeAppear:y,onAppear:m,onAfterAppear:b,onAppearCancelled:_}=t,v=String(e.key),S=uS(n,e),E=(I,O)=>{I&&dr(I,r,9,O)},x=(I,O)=>{const U=O[1];E(I,O),he(I)?I.every(L=>L.length<=1)&&U():I.length<=1&&U()},N={mode:i,persisted:a,beforeEnter(I){let O=l;if(!n.isMounted)if(s)O=y||l;else return;I[Ao]&&I[Ao](!0);const U=S[v];U&&rr(e,U)&&U.el[Ao]&&U.el[Ao](),E(O,[I])},enter(I){let O=c,U=u,L=f;if(!n.isMounted)if(s)O=m||c,U=b||u,L=_||f;else return;let G=!1;const oe=I[Bc]=ce=>{G||(G=!0,ce?E(L,[I]):E(U,[I]),N.delayedLeave&&N.delayedLeave(),I[Bc]=void 0)};O?x(O,[I,oe]):oe()},leave(I,O){const U=String(e.key);if(I[Bc]&&I[Bc](!0),n.isUnmounting)return O();E(d,[I]);let L=!1;const G=I[Ao]=oe=>{L||(L=!0,O(),oe?E(h,[I]):E(g,[I]),I[Ao]=void 0,S[U]===e&&delete S[U])};S[U]=e,p?x(p,[I,G]):G()},clone(I){const O=vh(I,t,n,r,o);return o&&o(O),O}};return N}function Qd(e){if(yc(e))return e=fo(e),e.children=null,e}function u_(e){if(!yc(e))return oS(e.type)&&e.children?cS(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ye(n.default))return n.default()}}function Hi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Hi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fS(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;sn.value,set:s=>n.value=s})}return n}function Il(e,t,n,r,o=!1){if(he(e)){e.forEach((g,h)=>Il(g,t&&(he(t)?t[h]:t),n,r,o));return}if(Bo(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Il(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ad(r.component):r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ge?a.refs={}:a.refs,f=a.setupState,d=Me(f),p=f===Ge?()=>!1:g=>Ze(d,g);if(c!=null&&c!==l&&(ft(c)?(u[c]=null,p(c)&&(f[c]=null)):qe(c)&&(c.value=null)),ye(l))mc(l,a,12,[i,u]);else{const g=ft(l),h=qe(l);if(g||h){const y=()=>{if(e.f){const m=g?p(l)?f[l]:u[l]:l.value;o?he(m)&&tm(m,s):he(m)?m.includes(s)||m.push(s):g?(u[l]=[s],p(l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else g?(u[l]=i,p(l)&&(f[l]=i)):h&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,Mt(y,n)):y()}}}let f_=!1;const ci=()=>{f_||(console.error("Hydration completed but contains mismatches."),f_=!0)},LI=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",PI=e=>e.namespaceURI.includes("MathML"),Hc=e=>{if(e.nodeType===1){if(LI(e))return"svg";if(PI(e))return"mathml"}},Ei=e=>e.nodeType===8;function NI(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(_,v)=>{if(!v.hasChildNodes()){n(null,_,v),Wu(),v._vnode=_;return}f(v.firstChild,_,null,null,null),Wu(),v._vnode=_},f=(_,v,S,E,x,N=!1)=>{N=N||!!v.dynamicChildren;const I=Ei(_)&&_.data==="[",O=()=>h(_,v,S,E,x,I),{type:U,ref:L,shapeFlag:G,patchFlag:oe}=v;let ce=_.nodeType;v.el=_,oe===-2&&(N=!1,v.dynamicChildren=null);let q=null;switch(U){case Ho:ce!==3?v.children===""?(l(v.el=o(""),i(_),_),q=_):q=O():(_.data!==v.children&&(ci(),_.data=v.children),q=s(_));break;case Dt:b(_)?(q=s(_),m(v.el=_.content.firstChild,_,S)):ce!==8||I?q=O():q=s(_);break;case $i:if(I&&(_=s(_),ce=_.nodeType),ce===1||ce===3){q=_;const ne=!v.children.length;for(let re=0;re{N=N||!!v.dynamicChildren;const{type:I,props:O,patchFlag:U,shapeFlag:L,dirs:G,transition:oe}=v,ce=I==="input"||I==="option";if(ce||U!==-1){G&&Ir(v,null,S,"created");let q=!1;if(b(_)){q=NS(null,oe)&&S&&S.vnode.props&&S.vnode.props.appear;const re=_.content.firstChild;q&&oe.beforeEnter(re),m(re,_,S),v.el=_=re}if(L&16&&!(O&&(O.innerHTML||O.textContent))){let re=p(_.firstChild,v,_,S,E,x,N);for(;re;){Vc(_,1)||ci();const Se=re;re=re.nextSibling,a(Se)}}else if(L&8){let re=v.children;re[0]===` `&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(re=re.slice(1)),_.textContent!==re&&(Vc(_,0)||ci(),_.textContent=v.children)}if(O){if(ce||!N||U&48){const re=_.tagName.includes("-");for(const Se in O)(ce&&(Se.endsWith("value")||Se==="indeterminate")||hc(Se)&&!Pi(Se)||Se[0]==="."||re)&&r(_,Se,null,O[Se],void 0,S)}else if(O.onClick)r(_,"onClick",null,O.onClick,void 0,S);else if(U&4&&Lr(O.style))for(const re in O.style)O.style[re]}let ne;(ne=O&&O.onVnodeBeforeMount)&&Tn(ne,S,v),G&&Ir(v,null,S,"beforeMount"),((ne=O&&O.onVnodeMounted)||G||q)&&BS(()=>{ne&&Tn(ne,S,v),q&&oe.enter(_),G&&Ir(v,null,S,"mounted")},E)}return _.nextSibling},p=(_,v,S,E,x,N,I)=>{I=I||!!v.dynamicChildren;const O=v.children,U=O.length;for(let L=0;L{const{slotScopeIds:I}=v;I&&(x=x?x.concat(I):I);const O=i(_),U=p(s(_),v,O,S,E,x,N);return U&&Ei(U)&&U.data==="]"?s(v.anchor=U):(ci(),l(v.anchor=c("]"),O,U),U)},h=(_,v,S,E,x,N)=>{if(Vc(_.parentElement,1)||ci(),v.el=null,N){const U=y(_);for(;;){const L=s(_);if(L&&L!==U)a(L);else break}}const I=s(_),O=i(_);return a(_),n(null,v,O,I,S,E,Hc(O),x),S&&(S.vnode.el=v.el,id(S,v.el)),I},y=(_,v="[",S="]")=>{let E=0;for(;_;)if(_=s(_),_&&Ei(_)&&(_.data===v&&E++,_.data===S)){if(E===0)return s(_);E--}return _},m=(_,v,S)=>{const E=v.parentNode;E&&E.replaceChild(_,v);let x=S;for(;x;)x.vnode.el===v&&(x.vnode.el=x.subTree.el=_),x=x.parent},b=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[u,f]}const d_="data-allow-mismatch",MI={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Vc(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(d_);)e=e.parentElement;const n=e&&e.getAttribute(d_);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(MI[t])}}Zf().requestIdleCallback;Zf().cancelIdleCallback;function DI(e,t){if(Ei(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ei(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Bo=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ed(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:s,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const d=()=>(f++,c=null,p()),p=()=>{let g;return c||(g=c=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),l)return new Promise((y,m)=>{l(h,()=>y(d()),()=>m(h),f+1)});throw h}).then(h=>g!==c&&c?c:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return At({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,h,y){const m=s?()=>{const b=s(y,_=>DI(g,_));b&&(h.bum||(h.bum=[])).push(b)}:y;u?m():p().then(()=>!h.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const g=$t;if(dm(g),u)return()=>ep(u,g);const h=_=>{c=null,ha(_,g,13,!r)};if(a&&g.suspense||Wi)return p().then(_=>()=>ep(_,g)).catch(_=>(h(_),()=>r?st(r,{error:_}):null));const y=ue(!1),m=ue(),b=ue(!!o);return o&&setTimeout(()=>{b.value=!1},o),i!=null&&setTimeout(()=>{if(!y.value&&!m.value){const _=new Error(`Async component timed out after ${i}ms.`);h(_),m.value=_}},i),p().then(()=>{y.value=!0,g.parent&&yc(g.parent.vnode)&&g.parent.update()}).catch(_=>{h(_),m.value=_}),()=>{if(y.value&&u)return ep(u,g);if(m.value&&r)return st(r,{error:m.value});if(n&&!b.value)return st(n)}}})}function ep(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=st(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const yc=e=>e.type.__isKeepAlive,$I={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=en(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const o=new Map,s=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(b,_,v,S,E)=>{const x=b.component;c(b,_,v,0,a),l(x.vnode,b,_,v,x,a,S,b.slotScopeIds,E),Mt(()=>{x.isDeactivated=!1,x.a&&Ni(x.a);const N=b.props&&b.props.onVnodeMounted;N&&Tn(N,x.parent,b)},a)},r.deactivate=b=>{const _=b.component;Yu(_.m),Yu(_.a),c(b,d,null,1,a),Mt(()=>{_.da&&Ni(_.da);const v=b.props&&b.props.onVnodeUnmounted;v&&Tn(v,_.parent,b),_.isDeactivated=!0},a)};function p(b){tp(b),u(b,n,a,!0)}function g(b){o.forEach((_,v)=>{const S=Ih(_.type);S&&!b(S)&&h(v)})}function h(b){const _=o.get(b);_&&(!i||!rr(_,i))?p(_):i&&tp(i),o.delete(b),s.delete(b)}Oe(()=>[e.include,e.exclude],([b,_])=>{b&&g(v=>Ja(b,v)),_&&g(v=>!Ja(_,v))},{flush:"post",deep:!0});let y=null;const m=()=>{y!=null&&(Zu(n.subTree.type)?Mt(()=>{o.set(y,Wc(n.subTree))},n.subTree.suspense):o.set(y,Wc(n.subTree)))};return Rn(m),mS(m),ga(()=>{o.forEach(b=>{const{subTree:_,suspense:v}=n,S=Wc(_);if(b.type===S.type&&b.key===S.key){tp(S);const E=S.component.da;E&&Mt(E,v);return}p(b)})}),()=>{if(y=null,!t.default)return i=null;const b=t.default(),_=b[0];if(b.length>1)return i=null,b;if(!Ds(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return i=null,_;let v=Wc(_);if(v.type===Dt)return i=null,v;const S=v.type,E=Ih(Bo(v)?v.type.__asyncResolved||{}:S),{include:x,exclude:N,max:I}=e;if(x&&(!E||!Ja(x,E))||N&&E&&Ja(N,E))return v.shapeFlag&=-257,i=v,_;const O=v.key==null?S:v.key,U=o.get(O);return v.el&&(v=fo(v),_.shapeFlag&128&&(_.ssContent=v)),y=O,U?(v.el=U.el,v.component=U.component,v.transition&&Hi(v,v.transition),v.shapeFlag|=512,s.delete(O),s.add(O)):(s.add(O),I&&s.size>parseInt(I,10)&&h(s.values().next().value)),v.shapeFlag|=256,i=v,Zu(_.type)?_:v}}},FI=$I;function Ja(e,t){return he(e)?e.some(n=>Ja(n,t)):ft(e)?e.split(",").includes(t):UA(e)?(e.lastIndex=0,e.test(t)):!1}function dS(e,t){hS(e,"a",t)}function pS(e,t){hS(e,"da",t)}function hS(e,t,n=$t){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(td(t,r,n),n){let o=n.parent;for(;o&&o.parent;)yc(o.parent.vnode)&&UI(r,t,n,o),o=o.parent}}function UI(e,t,n,r){const o=td(t,e,r,!0);Qs(()=>{tm(r[t],o)},n)}function tp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Wc(e){return e.shapeFlag&128?e.ssContent:e}function td(e,t,n=$t,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Qo();const a=$s(n),l=dr(t,n,e,i);return a(),es(),l});return r?o.unshift(s):o.push(s),s}}const _o=e=>(t,n=$t)=>{(!Wi||e==="sp")&&td(e,(...r)=>t(...r),n)},pm=_o("bm"),Rn=_o("m"),gS=_o("bu"),mS=_o("u"),ga=_o("bum"),Qs=_o("um"),jI=_o("sp"),BI=_o("rtg"),HI=_o("rtc");function yS(e,t=$t){td("ec",e,t)}const hm="components",VI="directives";function p_(e,t){return gm(hm,e,!0,t)||e}const _S=Symbol.for("v-ndc");function nd(e){return ft(e)?gm(hm,e,!1)||e:e||_S}function l9(e){return gm(VI,e)}function gm(e,t,n=!0,r=!1){const o=Ft||$t;if(o){const s=o.type;if(e===hm){const a=Ih(s,!1);if(a&&(a===t||a===Dn(t)||a===Yf(Dn(t))))return s}const i=h_(o[e]||s[e],t)||h_(o.appContext[e],t);return!i&&r?s:i}}function h_(e,t){return e&&(e[t]||e[Dn(t)]||e[Yf(Dn(t))])}function Gu(e,t,n,r){let o;const s=n,i=he(e);if(i||ft(e)){const a=i&&Lr(e);let l=!1;a&&(l=!Gn(e),e=Jf(e)),o=new Array(e.length);for(let c=0,u=e.length;ct(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function Pr(e,t,n={},r,o){if(Ft.ce||Ft.parent&&Bo(Ft.parent)&&Ft.parent.ce)return t!=="default"&&(n.name=t),me(),ut(bt,null,[st("slot",n,r&&r())],64);let s=e[t];s&&s._c&&(s._d=!1),me();const i=s&&vS(s(n)),a=n.key||i&&i.key,l=ut(bt,{key:(a&&!mo(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function vS(e){return e.some(t=>Ds(t)?!(t.type===Dt||t.type===bt&&!vS(t.children)):!0)?e:null}const bh=e=>e?zS(e)?ad(e):bh(e.parent):null,ll=jt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bh(e.parent),$root:e=>bh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>SS(e),$forceUpdate:e=>e.f||(e.f=()=>{fm(e.update)}),$nextTick:e=>e.n||(e.n=qn.bind(e.proxy)),$watch:e=>pO.bind(e)}),np=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Ze(e,t),zI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(np(r,t))return i[t]=1,r[t];if(o!==Ge&&Ze(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&Ze(c,t))return i[t]=3,s[t];if(n!==Ge&&Ze(n,t))return i[t]=4,n[t];wh&&(i[t]=0)}}const u=ll[t];let f,d;if(u)return t==="$attrs"&&on(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ge&&Ze(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Ze(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return np(o,t)?(o[t]=n,!0):r!==Ge&&Ze(r,t)?(r[t]=n,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Ge&&Ze(e,i)||np(t,i)||(a=s[0])&&Ze(a,i)||Ze(r,i)||Ze(ll,i)||Ze(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function GI(){return qI().attrs}function qI(){const e=en();return e.setupContext||(e.setupContext=qS(e))}function qu(e){return he(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function c9(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):jt({},qu(e),qu(t))}function bS(e){const t=en();let n=e();return Th(),nm(n)&&(n=n.catch(r=>{throw $s(t),r})),[n,()=>$s(t)]}let wh=!0;function KI(e){const t=SS(e),n=e.proxy,r=e.ctx;wh=!1,t.beforeCreate&&g_(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:h,deactivated:y,beforeDestroy:m,beforeUnmount:b,destroyed:_,unmounted:v,render:S,renderTracked:E,renderTriggered:x,errorCaptured:N,serverPrefetch:I,expose:O,inheritAttrs:U,components:L,directives:G,filters:oe}=t;if(c&&YI(c,r,null),i)for(const ne in i){const re=i[ne];ye(re)&&(r[ne]=re.bind(n))}if(o){const ne=o.call(n,n);at(ne)&&(e.data=Jt(ne))}if(wh=!0,s)for(const ne in s){const re=s[ne],Se=ye(re)?re.bind(n,n):ye(re.get)?re.get.bind(n,n):ar,lt=!ye(re)&&ye(re.set)?re.set.bind(n):ar,be=J({get:Se,set:lt});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>be.value,set:We=>be.value=We})}if(a)for(const ne in a)wS(a[ne],r,n,ne);if(l){const ne=ye(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(re=>{Is(re,ne[re])})}u&&g_(u,e,"c");function q(ne,re){he(re)?re.forEach(Se=>ne(Se.bind(n))):re&&ne(re.bind(n))}if(q(pm,f),q(Rn,d),q(gS,p),q(mS,g),q(dS,h),q(pS,y),q(yS,N),q(HI,E),q(BI,x),q(ga,b),q(Qs,v),q(jI,I),he(O))if(O.length){const ne=e.exposed||(e.exposed={});O.forEach(re=>{Object.defineProperty(ne,re,{get:()=>n[re],set:Se=>n[re]=Se})})}else e.exposed||(e.exposed={});S&&e.render===ar&&(e.render=S),U!=null&&(e.inheritAttrs=U),L&&(e.components=L),G&&(e.directives=G),I&&dm(e)}function YI(e,t,n=ar){he(e)&&(e=Sh(e));for(const r in e){const o=e[r];let s;at(o)?"default"in o?s=Ut(o.from||r,o.default,!0):s=Ut(o.from||r):s=Ut(o),qe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function g_(e,t,n){dr(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function wS(e,t,n,r){let o=r.includes(".")?DS(n,r):()=>n[r];if(ft(e)){const s=t[e];ye(s)&&Oe(o,s)}else if(ye(e))Oe(o,e.bind(n));else if(at(e))if(he(e))e.forEach(s=>wS(s,t,n,r));else{const s=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(s)&&Oe(o,s,e)}}function SS(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Ku(l,c,i,!0)),Ku(l,t,i)),at(t)&&s.set(t,l),l}function Ku(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Ku(e,s,n,!0),o&&o.forEach(i=>Ku(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=ZI[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const ZI={data:m_,props:y_,emits:y_,methods:Qa,computed:Qa,beforeCreate:gn,created:gn,beforeMount:gn,mounted:gn,beforeUpdate:gn,updated:gn,beforeDestroy:gn,beforeUnmount:gn,destroyed:gn,unmounted:gn,activated:gn,deactivated:gn,errorCaptured:gn,serverPrefetch:gn,components:Qa,directives:Qa,watch:JI,provide:m_,inject:XI};function m_(e,t){return t?e?function(){return jt(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function XI(e,t){return Qa(Sh(e),Sh(t))}function Sh(e){if(he(e)){const t={};for(let n=0;n1)return n&&ye(t)?t.call(r&&r.proxy):t}}function ma(){return!!($t||Ft||As)}const xS={},kS=()=>Object.create(xS),CS=e=>Object.getPrototypeOf(e)===xS;function tO(e,t,n,r=!1){const o={},s=kS();e.propsDefaults=Object.create(null),TS(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:ro(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function nO(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Me(o),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=AS(f,t,!0);jt(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return at(e)&&r.set(e,Ri),Ri;if(he(s))for(let u=0;ue[0]==="_"||e==="$stable",mm=e=>he(e)?e.map(Nn):[Nn(e)],oO=(e,t,n)=>{if(t._n)return t;const r=Ms((...o)=>mm(t(...o)),n);return r._c=!1,r},OS=(e,t,n)=>{const r=e._ctx;for(const o in e){if(IS(o))continue;const s=e[o];if(ye(s))t[o]=oO(o,s,r);else if(s!=null){const i=mm(s);t[o]=()=>i}}},RS=(e,t)=>{const n=mm(t);e.slots.default=()=>n},LS=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},sO=(e,t,n)=>{const r=e.slots=kS();if(e.vnode.shapeFlag&32){const o=t._;o?(LS(r,t,n),n&&Iw(r,"_",o,!0)):OS(t,r)}else t&&RS(e,t)},iO=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Ge;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:LS(o,t,n):(s=!t.$stable,OS(t,o)),i=t}else t&&(RS(e,t),i={default:1});if(s)for(const a in o)!IS(a)&&i[a]==null&&delete o[a]},Mt=BS;function aO(e){return PS(e)}function lO(e){return PS(e,NI)}function PS(e,t){const n=Zf();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=ar,insertStaticContent:g}=e,h=(C,A,$,B=null,H=null,k=null,T=void 0,D=null,j=!!A.dynamicChildren)=>{if(C===A)return;C&&!rr(C,A)&&(B=W(C),We(C,H,k,!0),C=null),A.patchFlag===-2&&(j=!1,A.dynamicChildren=null);const{type:z,ref:K,shapeFlag:P}=A;switch(z){case Ho:y(C,A,$,B);break;case Dt:m(C,A,$,B);break;case $i:C==null&&b(A,$,B,T);break;case bt:L(C,A,$,B,H,k,T,D,j);break;default:P&1?S(C,A,$,B,H,k,T,D,j):P&6?G(C,A,$,B,H,k,T,D,j):(P&64||P&128)&&z.process(C,A,$,B,H,k,T,D,j,ie)}K!=null&&H&&Il(K,C&&C.ref,k,A||C,!A)},y=(C,A,$,B)=>{if(C==null)r(A.el=a(A.children),$,B);else{const H=A.el=C.el;A.children!==C.children&&c(H,A.children)}},m=(C,A,$,B)=>{C==null?r(A.el=l(A.children||""),$,B):A.el=C.el},b=(C,A,$,B)=>{[C.el,C.anchor]=g(C.children,A,$,B,C.el,C.anchor)},_=({el:C,anchor:A},$,B)=>{let H;for(;C&&C!==A;)H=d(C),r(C,$,B),C=H;r(A,$,B)},v=({el:C,anchor:A})=>{let $;for(;C&&C!==A;)$=d(C),o(C),C=$;o(A)},S=(C,A,$,B,H,k,T,D,j)=>{A.type==="svg"?T="svg":A.type==="math"&&(T="mathml"),C==null?E(A,$,B,H,k,T,D,j):I(C,A,H,k,T,D,j)},E=(C,A,$,B,H,k,T,D)=>{let j,z;const{props:K,shapeFlag:P,transition:F,dirs:ee}=C;if(j=C.el=i(C.type,k,K&&K.is,K),P&8?u(j,C.children):P&16&&N(C.children,j,null,B,H,rp(C,k),T,D),ee&&Ir(C,null,B,"created"),x(j,C,C.scopeId,T,B),K){for(const Le in K)Le!=="value"&&!Pi(Le)&&s(j,Le,null,K[Le],k,B);"value"in K&&s(j,"value",null,K.value,k),(z=K.onVnodeBeforeMount)&&Tn(z,B,C)}ee&&Ir(C,null,B,"beforeMount");const de=NS(H,F);de&&F.beforeEnter(j),r(j,A,$),((z=K&&K.onVnodeMounted)||de||ee)&&Mt(()=>{z&&Tn(z,B,C),de&&F.enter(j),ee&&Ir(C,null,B,"mounted")},H)},x=(C,A,$,B,H)=>{if($&&p(C,$),B)for(let k=0;k{for(let z=j;z{const D=A.el=C.el;let{patchFlag:j,dynamicChildren:z,dirs:K}=A;j|=C.patchFlag&16;const P=C.props||Ge,F=A.props||Ge;let ee;if($&&cs($,!1),(ee=F.onVnodeBeforeUpdate)&&Tn(ee,$,A,C),K&&Ir(A,C,$,"beforeUpdate"),$&&cs($,!0),(P.innerHTML&&F.innerHTML==null||P.textContent&&F.textContent==null)&&u(D,""),z?O(C.dynamicChildren,z,D,$,B,rp(A,H),k):T||re(C,A,D,null,$,B,rp(A,H),k,!1),j>0){if(j&16)U(D,P,F,$,H);else if(j&2&&P.class!==F.class&&s(D,"class",null,F.class,H),j&4&&s(D,"style",P.style,F.style,H),j&8){const de=A.dynamicProps;for(let Le=0;Le{ee&&Tn(ee,$,A,C),K&&Ir(A,C,$,"updated")},B)},O=(C,A,$,B,H,k,T)=>{for(let D=0;D{if(A!==$){if(A!==Ge)for(const k in A)!Pi(k)&&!(k in $)&&s(C,k,A[k],null,H,B);for(const k in $){if(Pi(k))continue;const T=$[k],D=A[k];T!==D&&k!=="value"&&s(C,k,D,T,H,B)}"value"in $&&s(C,"value",A.value,$.value,H)}},L=(C,A,$,B,H,k,T,D,j)=>{const z=A.el=C?C.el:a(""),K=A.anchor=C?C.anchor:a("");let{patchFlag:P,dynamicChildren:F,slotScopeIds:ee}=A;ee&&(D=D?D.concat(ee):ee),C==null?(r(z,$,B),r(K,$,B),N(A.children||[],$,K,H,k,T,D,j)):P>0&&P&64&&F&&C.dynamicChildren?(O(C.dynamicChildren,F,$,H,k,T,D),(A.key!=null||H&&A===H.subTree)&&ym(C,A,!0)):re(C,A,$,K,H,k,T,D,j)},G=(C,A,$,B,H,k,T,D,j)=>{A.slotScopeIds=D,C==null?A.shapeFlag&512?H.ctx.activate(A,$,B,T,j):oe(A,$,B,H,k,T,j):ce(C,A,j)},oe=(C,A,$,B,H,k,T)=>{const D=C.component=AO(C,B,H);if(yc(C)&&(D.ctx.renderer=ie),IO(D,!1,T),D.asyncDep){if(H&&H.registerDep(D,q,T),!C.el){const j=D.subTree=st(Dt);m(null,j,A,$)}}else q(D,C,A,$,H,k,T)},ce=(C,A,$)=>{const B=A.component=C.component;if(_O(C,A,$))if(B.asyncDep&&!B.asyncResolved){ne(B,A,$);return}else B.next=A,B.update();else A.el=C.el,B.vnode=A},q=(C,A,$,B,H,k,T)=>{const D=()=>{if(C.isMounted){let{next:P,bu:F,u:ee,parent:de,vnode:Le}=C;{const Ht=MS(C);if(Ht){P&&(P.el=Le.el,ne(C,P,T)),Ht.asyncDep.then(()=>{C.isUnmounted||D()});return}}let Pe=P,gt;cs(C,!1),P?(P.el=Le.el,ne(C,P,T)):P=Le,F&&Ni(F),(gt=P.props&&P.props.onVnodeBeforeUpdate)&&Tn(gt,de,P,Le),cs(C,!0);const Ct=op(C),Gt=C.subTree;C.subTree=Ct,h(Gt,Ct,f(Gt.el),W(Gt),C,H,k),P.el=Ct.el,Pe===null&&id(C,Ct.el),ee&&Mt(ee,H),(gt=P.props&&P.props.onVnodeUpdated)&&Mt(()=>Tn(gt,de,P,Le),H)}else{let P;const{el:F,props:ee}=A,{bm:de,m:Le,parent:Pe,root:gt,type:Ct}=C,Gt=Bo(A);if(cs(C,!1),de&&Ni(de),!Gt&&(P=ee&&ee.onVnodeBeforeMount)&&Tn(P,Pe,A),cs(C,!0),F&&we){const Ht=()=>{C.subTree=op(C),we(F,C.subTree,C,H,null)};Gt&&Ct.__asyncHydrate?Ct.__asyncHydrate(F,C,Ht):Ht()}else{gt.ce&>.ce._injectChildStyle(Ct);const Ht=C.subTree=op(C);h(null,Ht,$,B,C,H,k),A.el=Ht.el}if(Le&&Mt(Le,H),!Gt&&(P=ee&&ee.onVnodeMounted)){const Ht=A;Mt(()=>Tn(P,Pe,Ht),H)}(A.shapeFlag&256||Pe&&Bo(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&C.a&&Mt(C.a,H),C.isMounted=!0,A=$=B=null}};C.scope.on();const j=C.effect=new Mw(D);C.scope.off();const z=C.update=j.run.bind(j),K=C.job=j.runIfDirty.bind(j);K.i=C,K.id=C.uid,j.scheduler=()=>fm(K),cs(C,!0),z()},ne=(C,A,$)=>{A.component=C;const B=C.vnode.props;C.vnode=A,C.next=null,nO(C,A.props,B,$),iO(C,A.children,$),Qo(),i_(C),es()},re=(C,A,$,B,H,k,T,D,j=!1)=>{const z=C&&C.children,K=C?C.shapeFlag:0,P=A.children,{patchFlag:F,shapeFlag:ee}=A;if(F>0){if(F&128){lt(z,P,$,B,H,k,T,D,j);return}else if(F&256){Se(z,P,$,B,H,k,T,D,j);return}}ee&8?(K&16&&ht(z,H,k),P!==z&&u($,P)):K&16?ee&16?lt(z,P,$,B,H,k,T,D,j):ht(z,H,k,!0):(K&8&&u($,""),ee&16&&N(P,$,B,H,k,T,D,j))},Se=(C,A,$,B,H,k,T,D,j)=>{C=C||Ri,A=A||Ri;const z=C.length,K=A.length,P=Math.min(z,K);let F;for(F=0;FK?ht(C,H,k,!0,!1,P):N(A,$,B,H,k,T,D,j,P)},lt=(C,A,$,B,H,k,T,D,j)=>{let z=0;const K=A.length;let P=C.length-1,F=K-1;for(;z<=P&&z<=F;){const ee=C[z],de=A[z]=j?Io(A[z]):Nn(A[z]);if(rr(ee,de))h(ee,de,$,null,H,k,T,D,j);else break;z++}for(;z<=P&&z<=F;){const ee=C[P],de=A[F]=j?Io(A[F]):Nn(A[F]);if(rr(ee,de))h(ee,de,$,null,H,k,T,D,j);else break;P--,F--}if(z>P){if(z<=F){const ee=F+1,de=eeF)for(;z<=P;)We(C[z],H,k,!0),z++;else{const ee=z,de=z,Le=new Map;for(z=de;z<=F;z++){const qt=A[z]=j?Io(A[z]):Nn(A[z]);qt.key!=null&&Le.set(qt.key,z)}let Pe,gt=0;const Ct=F-de+1;let Gt=!1,Ht=0;const un=new Array(Ct);for(z=0;z=Ct){We(qt,H,k,!0);continue}let En;if(qt.key!=null)En=Le.get(qt.key);else for(Pe=de;Pe<=F;Pe++)if(un[Pe-de]===0&&rr(qt,A[Pe])){En=Pe;break}En===void 0?We(qt,H,k,!0):(un[En-de]=z+1,En>=Ht?Ht=En:Gt=!0,h(qt,A[En],$,null,H,k,T,D,j),gt++)}const Br=Gt?cO(un):Ri;for(Pe=Br.length-1,z=Ct-1;z>=0;z--){const qt=de+z,En=A[qt],Pc=qt+1{const{el:k,type:T,transition:D,children:j,shapeFlag:z}=C;if(z&6){be(C.component.subTree,A,$,B);return}if(z&128){C.suspense.move(A,$,B);return}if(z&64){T.move(C,A,$,ie);return}if(T===bt){r(k,A,$);for(let P=0;PD.enter(k),H);else{const{leave:P,delayLeave:F,afterLeave:ee}=D,de=()=>r(k,A,$),Le=()=>{P(k,()=>{de(),ee&&ee()})};F?F(k,de,Le):Le()}else r(k,A,$)},We=(C,A,$,B=!1,H=!1)=>{const{type:k,props:T,ref:D,children:j,dynamicChildren:z,shapeFlag:K,patchFlag:P,dirs:F,cacheIndex:ee}=C;if(P===-2&&(H=!1),D!=null&&Il(D,null,$,C,!0),ee!=null&&(A.renderCache[ee]=void 0),K&256){A.ctx.deactivate(C);return}const de=K&1&&F,Le=!Bo(C);let Pe;if(Le&&(Pe=T&&T.onVnodeBeforeUnmount)&&Tn(Pe,A,C),K&6)ze(C.component,$,B);else{if(K&128){C.suspense.unmount($,B);return}de&&Ir(C,null,A,"beforeUnmount"),K&64?C.type.remove(C,A,$,ie,B):z&&!z.hasOnce&&(k!==bt||P>0&&P&64)?ht(z,A,$,!1,!0):(k===bt&&P&384||!H&&K&16)&&ht(j,A,$),B&&je(C)}(Le&&(Pe=T&&T.onVnodeUnmounted)||de)&&Mt(()=>{Pe&&Tn(Pe,A,C),de&&Ir(C,null,A,"unmounted")},$)},je=C=>{const{type:A,el:$,anchor:B,transition:H}=C;if(A===bt){tn($,B);return}if(A===$i){v(C);return}const k=()=>{o($),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(C.shapeFlag&1&&H&&!H.persisted){const{leave:T,delayLeave:D}=H,j=()=>T($,k);D?D(C.el,k,j):j()}else k()},tn=(C,A)=>{let $;for(;C!==A;)$=d(C),o(C),C=$;o(A)},ze=(C,A,$)=>{const{bum:B,scope:H,job:k,subTree:T,um:D,m:j,a:z}=C;Yu(j),Yu(z),B&&Ni(B),H.stop(),k&&(k.flags|=8,We(T,C,A,$)),D&&Mt(D,A),Mt(()=>{C.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ht=(C,A,$,B=!1,H=!1,k=0)=>{for(let T=k;T{if(C.shapeFlag&6)return W(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const A=d(C.anchor||C.el),$=A&&A[rS];return $?d($):A};let Q=!1;const X=(C,A,$)=>{C==null?A._vnode&&We(A._vnode,null,null,!0):h(A._vnode||null,C,A,null,null,null,$),A._vnode=C,Q||(Q=!0,i_(),Wu(),Q=!1)},ie={p:h,um:We,m:be,r:je,mt:oe,mc:N,pc:re,pbc:O,n:W,o:e};let te,we;return t&&([te,we]=t(ie)),{render:X,hydrate:te,createApp:eO(X,te)}}function rp({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function cs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function NS(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ym(e,t,n=!1){const r=e.children,o=t.children;if(he(r)&&he(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function MS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:MS(t)}function Yu(e){if(e)for(let t=0;tUt(uO);function rd(e,t){return od(e,null,t)}function dO(e,t){return od(e,null,{flush:"sync"})}function Oe(e,t,n){return od(e,t,n)}function od(e,t,n=Ge){const{immediate:r,deep:o,flush:s,once:i}=n,a=jt({},n),l=t&&r||!t&&s!=="post";let c;if(Wi){if(s==="sync"){const p=fO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=ar,p.resume=ar,p.pause=ar,p}}const u=$t;a.call=(p,g,h)=>dr(p,u,g,h);let f=!1;s==="post"?a.scheduler=p=>{Mt(p,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():fm(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=EI(e,t,a);return Wi&&(c?c.push(d):l&&d()),d}function pO(e,t,n){const r=this.proxy,o=ft(e)?e.includes(".")?DS(r,e):()=>r[e]:e.bind(r,r);let s;ye(t)?s=t:(s=t.handler,n=t);const i=$s(this),a=od(o,s.bind(r),n);return i(),a}function DS(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let u,f=Ge,d;return dO(()=>{const p=e[o];An(u,p)&&(u=p,c())}),{get(){return l(),n.get?n.get(u):u},set(p){const g=n.set?n.set(p):p;if(!An(g,u)&&!(f!==Ge&&An(p,f)))return;const h=r.vnode.props;h&&(t in h||o in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${o}`in h||`onUpdate:${s}`in h)||(u=p,c()),r.emit(`update:${t}`,g),An(p,g)&&An(p,f)&&!An(g,d)&&c(),f=p,d=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Ge:a,done:!1}:{done:!0}}}},a}const $S=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Dn(t)}Modifiers`]||e[`${yo(t)}Modifiers`];function hO(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ge;let o=n;const s=t.startsWith("update:"),i=s&&$S(r,t.slice(7));i&&(i.trim&&(o=n.map(u=>ft(u)?u.trim():u)),i.number&&(o=n.map(ph)));let a,l=r[a=Kd(t)]||r[a=Kd(Dn(t))];!l&&s&&(l=r[a=Kd(yo(t))]),l&&dr(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,dr(c,e,6,o)}}function FS(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ye(e)){const l=c=>{const u=FS(c,t,!0);u&&(a=!0,jt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(at(e)&&r.set(e,null),null):(he(s)?s.forEach(l=>i[l]=null):jt(i,s),at(e)&&r.set(e,i),i)}function sd(e,t){return!e||!hc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,yo(t))||Ze(e,t))}function op(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:g,inheritAttrs:h}=e,y=zu(e);let m,b;try{if(n.shapeFlag&4){const v=o||r,S=v;m=Nn(c.call(S,v,u,f,p,d,g)),b=a}else{const v=t;m=Nn(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),b=t.props?a:mO(a)}}catch(v){cl.length=0,ha(v,e,1),m=st(Dt)}let _=m;if(b&&h!==!1){const v=Object.keys(b),{shapeFlag:S}=_;v.length&&S&7&&(s&&v.some(em)&&(b=yO(b,s)),_=fo(_,b,!1,!0))}return n.dirs&&(_=fo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Hi(_,n.transition),m=_,zu(y),m}function gO(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||hc(n))&&((t||(t={}))[n]=e[n]);return t},yO=(e,t)=>{const n={};for(const r in e)(!em(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _O(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?v_(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let xh=0;const vO={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,c){if(e==null)bO(t,n,r,o,s,i,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}wO(e,t,n,r,o,i,a,l,c)}},hydrate:SO,normalize:EO},US=vO;function Ol(e,t){const n=e.props&&e.props[t];ye(n)&&n()}function bO(e,t,n,r,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=jS(e,o,r,t,f,n,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(Ol(e,"onPending"),Ol(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,s,i),Di(d,e.ssFallback)):d.resolve(!1,!0)}function wO(e,t,n,r,o,s,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:h,isInFallback:y,isHydrating:m}=f;if(h)f.pendingBranch=d,rr(d,h)?(l(h,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(m||(l(g,p,n,r,o,null,s,i,a),Di(f,p)))):(f.pendingId=xh++,m?(f.isHydrating=!1,f.activeBranch=h):c(h,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(g,p,n,r,o,null,s,i,a),Di(f,p))):g&&rr(d,g)?(l(g,d,n,r,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(g&&rr(d,g))l(g,d,n,r,o,f,s,i,a),Di(f,d);else if(Ol(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=xh++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:_}=f;b>0?setTimeout(()=>{f.pendingId===_&&f.fallback(p)},b):b===0&&f.fallback(p)}}function jS(e,t,n,r,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:g,o:{parentNode:h,remove:y}}=c;let m;const b=xO(e);b&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?Ow(e.props.timeout):void 0,v=s,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:o,deps:0,pendingId:xh++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,x=!1){const{vnode:N,activeBranch:I,pendingBranch:O,pendingId:U,effects:L,parentComponent:G,container:oe}=S;let ce=!1;S.isHydrating?S.isHydrating=!1:E||(ce=I&&O.transition&&O.transition.mode==="out-in",ce&&(I.transition.afterLeave=()=>{U===S.pendingId&&(d(O,oe,s===v?g(I):s,0),Vu(L))}),I&&(h(I.el)===oe&&(s=g(I)),p(I,G,S,!0)),ce||d(O,oe,s,0)),Di(S,O),S.pendingBranch=null,S.isInFallback=!1;let q=S.parent,ne=!1;for(;q;){if(q.pendingBranch){q.effects.push(...L),ne=!0;break}q=q.parent}!ne&&!ce&&Vu(L),S.effects=[],b&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Ol(N,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:x,activeBranch:N,parentComponent:I,container:O,namespace:U}=S;Ol(x,"onFallback");const L=g(N),G=()=>{S.isInFallback&&(f(null,E,O,L,I,null,U,a,l),Di(S,E))},oe=E.transition&&E.transition.mode==="out-in";oe&&(N.transition.afterLeave=G),S.isInFallback=!0,p(N,I,null,!0),oe||G()},move(E,x,N){S.activeBranch&&d(S.activeBranch,E,x,N),S.container=E},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(E,x,N){const I=!!S.pendingBranch;I&&S.deps++;const O=E.vnode.el;E.asyncDep.catch(U=>{ha(U,E,0)}).then(U=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:L}=E;Ah(E,U),O&&(L.el=O);const G=!O&&E.subTree.el;x(E,L,h(O||E.subTree.el),O?null:g(E.subTree),S,i,N),G&&y(G),id(E,L.el),I&&--S.deps===0&&S.resolve()})},unmount(E,x){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,E,x),S.pendingBranch&&p(S.pendingBranch,n,E,x)}};return S}function SO(e,t,n,r,o,s,i,a,l){const c=t.suspense=jS(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function EO(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=b_(r?n.default:n),e.ssFallback=r?b_(n.fallback):st(Dt)}function b_(e){let t;if(ye(e)){const n=Vi&&e._c;n&&(e._d=!1,me()),e=e(),n&&(e._d=!0,t=In,HS())}return he(e)&&(e=gO(e)),e=Nn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function BS(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):Vu(e)}function Di(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,id(r,o))}function xO(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const bt=Symbol.for("v-fgt"),Ho=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),cl=[];let In=null;function me(e=!1){cl.push(In=e?null:[])}function HS(){cl.pop(),In=cl[cl.length-1]||null}let Vi=1;function w_(e,t=!1){Vi+=e,e<0&&In&&t&&(In.hasOnce=!0)}function VS(e){return e.dynamicChildren=Vi>0?In||Ri:null,HS(),Vi>0&&In&&In.push(e),e}function _t(e,t,n,r,o,s){return VS(Do(e,t,n,r,o,s,!0))}function ut(e,t,n,r,o){return VS(st(e,t,n,r,o,!0))}function Ds(e){return e?e.__v_isVNode===!0:!1}function rr(e,t){return e.type===t.type&&e.key===t.key}const WS=({key:e})=>e??null,Su=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ft(e)||qe(e)||ye(e)?{i:Ft,r:e,k:t,f:!!n}:e:null);function Do(e,t=null,n=null,r=0,o=null,s=e===bt?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&WS(t),ref:t&&Su(t),scopeId:nS,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ft};return a?(_m(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ft(n)?8:16),Vi>0&&!i&&In&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&In.push(l),l}const st=kO;function kO(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===_S)&&(e=Dt),Ds(e)){const a=fo(e,t,!0);return n&&_m(a,n),Vi>0&&!s&&In&&(a.shapeFlag&6?In[In.indexOf(e)]=a:In.push(a)),a.patchFlag=-2,a}if(LO(e)&&(e=e.__vccOpts),t){t=kh(t);let{class:a,style:l}=t;a&&!ft(a)&&(t.class=Qe(a)),at(l)&&(cm(l)&&!he(l)&&(l=jt({},l)),t.style=Ns(l))}const i=ft(e)?1:Zu(e)?128:oS(e)?64:at(e)?4:ye(e)?2:0;return Do(e,t,n,r,o,i,s,!0)}function kh(e){return e?cm(e)||CS(e)?jt({},e):e:null}function fo(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?an(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&WS(c),ref:t&&t.ref?n&&s?he(s)?s.concat(Su(t)):[s,Su(t)]:Su(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Hi(u,l.clone(u)),u}function Rl(e=" ",t=0){return st(Ho,null,e,t)}function f9(e,t){const n=st($i,null,e);return n.staticCount=t,n}function Zt(e="",t=!1){return t?(me(),ut(Dt,null,e)):st(Dt,null,e)}function Nn(e){return e==null||typeof e=="boolean"?st(Dt):he(e)?st(bt,null,e.slice()):Ds(e)?Io(e):st(Ho,null,String(e))}function Io(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function _m(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(he(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),_m(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!CS(t)?t._ctx=Ft:o===3&&Ft&&(Ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:Ft},n=32):(t=String(t),r&64?(n=16,t=[Rl(t)]):n=8);e.children=t,e.shapeFlag|=n}function an(...e){const t={};for(let n=0;n$t||Ft;let Xu,Ch;{const e=Zf(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Xu=t("__VUE_INSTANCE_SETTERS__",n=>$t=n),Ch=t("__VUE_SSR_SETTERS__",n=>Wi=n)}const $s=e=>{const t=$t;return Xu(e),e.scope.on(),()=>{e.scope.off(),Xu(t)}},Th=()=>{$t&&$t.scope.off(),Xu(null)};function zS(e){return e.vnode.shapeFlag&4}let Wi=!1;function IO(e,t=!1,n=!1){t&&Ch(t);const{props:r,children:o}=e.vnode,s=zS(e);tO(e,r,s,t),sO(e,o,n);const i=s?OO(e,t):void 0;return t&&Ch(!1),i}function OO(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zI);const{setup:r}=n;if(r){Qo();const o=e.setupContext=r.length>1?qS(e):null,s=$s(e),i=mc(r,e,0,[e.props,o]),a=nm(i);if(es(),s(),(a||e.sp)&&!Bo(e)&&dm(e),a){if(i.then(Th,Th),t)return i.then(l=>{Ah(e,l)}).catch(l=>{ha(l,e,0)});e.asyncDep=i}else Ah(e,i)}else GS(e)}function Ah(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:at(t)&&(e.setupState=Zw(t)),GS(e)}function GS(e,t,n){const r=e.type;e.render||(e.render=r.render||ar);{const o=$s(e);Qo();try{KI(e)}finally{es(),o()}}}const RO={get(e,t){return on(e,"get",""),e[t]}};function qS(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,RO),slots:e.slots,emit:e.emit,expose:t}}function ad(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zw(um(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ll)return ll[n](e)},has(t,n){return n in t||n in ll}})):e.proxy}function Ih(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function LO(e){return ye(e)&&"__vccOpts"in e}const J=(e,t)=>wI(e,t,Wi);function Tt(e,t,n){const r=arguments.length;return r===2?at(t)&&!he(t)?Ds(t)?st(e,null,[t]):st(e,t):st(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ds(n)&&(n=[n]),st(e,t,n))}const PO="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Oh;const S_=typeof window<"u"&&window.trustedTypes;if(S_)try{Oh=S_.createPolicy("vue",{createHTML:e=>e})}catch{}const KS=Oh?e=>Oh.createHTML(e):e=>e,NO="http://www.w3.org/2000/svg",MO="http://www.w3.org/1998/Math/MathML",Jr=typeof document<"u"?document:null,E_=Jr&&Jr.createElement("template"),DO={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Jr.createElementNS(NO,e):t==="mathml"?Jr.createElementNS(MO,e):n?Jr.createElement(e,{is:n}):Jr.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Jr.createTextNode(e),createComment:e=>Jr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{E_.innerHTML=KS(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=E_.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},So="transition",Aa="animation",Ll=Symbol("_vtc"),YS={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$O=jt({},aS,YS),FO=e=>(e.displayName="Transition",e.props=$O,e),ZS=FO((e,{slots:t})=>Tt(OI,UO(e),t)),us=(e,t=[])=>{he(e)?e.forEach(n=>n(...t)):e&&e(...t)},x_=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function UO(e){const t={};for(const L in e)L in YS||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=jO(o),h=g&&g[0],y=g&&g[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:_,onLeave:v,onLeaveCancelled:S,onBeforeAppear:E=m,onAppear:x=b,onAppearCancelled:N=_}=t,I=(L,G,oe,ce)=>{L._enterCancelled=ce,fs(L,G?u:a),fs(L,G?c:i),oe&&oe()},O=(L,G)=>{L._isLeaving=!1,fs(L,f),fs(L,p),fs(L,d),G&&G()},U=L=>(G,oe)=>{const ce=L?x:b,q=()=>I(G,L,oe);us(ce,[G,q]),k_(()=>{fs(G,L?l:s),Wr(G,L?u:a),x_(ce)||C_(G,r,h,q)})};return jt(t,{onBeforeEnter(L){us(m,[L]),Wr(L,s),Wr(L,i)},onBeforeAppear(L){us(E,[L]),Wr(L,l),Wr(L,c)},onEnter:U(!1),onAppear:U(!0),onLeave(L,G){L._isLeaving=!0;const oe=()=>O(L,G);Wr(L,f),L._enterCancelled?(Wr(L,d),I_()):(I_(),Wr(L,d)),k_(()=>{L._isLeaving&&(fs(L,f),Wr(L,p),x_(v)||C_(L,r,y,oe))}),us(v,[L,oe])},onEnterCancelled(L){I(L,!1,void 0,!0),us(_,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),us(N,[L])},onLeaveCancelled(L){O(L),us(S,[L])}})}function jO(e){if(e==null)return null;if(at(e))return[sp(e.enter),sp(e.leave)];{const t=sp(e);return[t,t]}}function sp(e){return Ow(e)}function Wr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ll]||(e[Ll]=new Set)).add(t)}function fs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ll];n&&(n.delete(t),n.size||(e[Ll]=void 0))}function k_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let BO=0;function C_(e,t,n,r){const o=e._endId=++BO,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=HO(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[g]||"").split(", "),o=r(`${So}Delay`),s=r(`${So}Duration`),i=T_(o,s),a=r(`${Aa}Delay`),l=r(`${Aa}Duration`),c=T_(a,l);let u=null,f=0,d=0;t===So?i>0&&(u=So,f=i,d=s.length):t===Aa?c>0&&(u=Aa,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?So:Aa:null,d=u?u===So?s.length:l.length:0);const p=u===So&&/\b(transform|all)(,|$)/.test(r(`${So}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function T_(e,t){for(;e.lengthA_(n)+A_(e[r])))}function A_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function I_(){return document.body.offsetHeight}function VO(e,t,n){const r=e[Ll];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ju=Symbol("_vod"),XS=Symbol("_vsh"),d9={beforeMount(e,{value:t},{transition:n}){e[Ju]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ia(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ia(e,!0),r.enter(e)):r.leave(e,()=>{Ia(e,!1)}):Ia(e,t))},beforeUnmount(e,{value:t}){Ia(e,t)}};function Ia(e,t){e.style.display=t?e[Ju]:"none",e[XS]=!t}const JS=Symbol("");function p9(e){const t=en();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Qu(s,o))},r=()=>{const o=e(t.proxy);t.ce?Qu(t.ce,o):Rh(t.subTree,o),n(o)};gS(()=>{Vu(r)}),Rn(()=>{Oe(r,ar,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Qs(()=>o.disconnect())})}function Rh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Rh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Qu(e.el,t);else if(e.type===bt)e.children.forEach(n=>Rh(n,t));else if(e.type===$i){let{el:n,anchor:r}=e;for(;n&&(Qu(n,t),n!==r);)n=n.nextSibling}}function Qu(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[JS]=r}}const WO=/(^|;)\s*display\s*:/;function zO(e,t,n){const r=e.style,o=ft(n);let s=!1;if(n&&!o){if(t)if(ft(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Eu(r,a,"")}else for(const i in t)n[i]==null&&Eu(r,i,"");for(const i in n)i==="display"&&(s=!0),Eu(r,i,n[i])}else if(o){if(t!==n){const i=r[JS];i&&(n+=";"+i),r.cssText=n,s=WO.test(n)}}else t&&e.removeAttribute("style");Ju in e&&(e[Ju]=s?r.display:"",e[XS]&&(r.display="none"))}const O_=/\s*!important$/;function Eu(e,t,n){if(he(n))n.forEach(r=>Eu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=GO(e,t);O_.test(n)?e.setProperty(yo(r),n.replace(O_,""),"important"):e[r]=n}}const R_=["Webkit","Moz","ms"],ip={};function GO(e,t){const n=ip[t];if(n)return n;let r=Dn(t);if(r!=="filter"&&r in e)return ip[t]=r;r=Yf(r);for(let o=0;oap||(ZO.then(()=>ap=0),ap=Date.now());function JO(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;dr(QO(r,n.value),t,5,[r])};return n.value=e,n.attached=XO(),n}function QO(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const $_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,eR=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?VO(e,r,i):t==="style"?zO(e,n,r):hc(t)?em(t)||KO(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tR(e,t,r,i))?(N_(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&P_(e,t,r,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ft(r))?N_(e,Dn(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),P_(e,t,r,i))};function tR(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&$_(t)&&ye(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return $_(t)&&ft(n)?!1:t in e}const F_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?n=>Ni(t,n):t};function nR(e){e.target.composing=!0}function U_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lp=Symbol("_assign"),h9={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[lp]=F_(o);const s=r||o.props&&o.props.type==="number";mi(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ph(a)),e[lp](a)}),n&&mi(e,"change",()=>{e.value=e.value.trim()}),t||(mi(e,"compositionstart",nR),mi(e,"compositionend",U_),mi(e,"change",U_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[lp]=F_(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?ph(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},rR=["ctrl","shift","alt","meta"],oR={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>rR.some(n=>e[`${n}Key`]&&!t.includes(n))},cp=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=yo(o.key);if(t.some(i=>i===s||sR[i]===s))return e(o)})},QS=jt({patchProp:eR},DO);let ul,j_=!1;function eE(){return ul||(ul=aO(QS))}function iR(){return ul=j_?ul:lO(QS),j_=!0,ul}const aR=(...e)=>{eE().render(...e)},lR=(...e)=>{const t=eE().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=nE(r);if(!o)return;const s=t._component;!ye(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,tE(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},cR=(...e)=>{const t=iR().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=nE(r);if(o)return n(o,!0,tE(o))},t};function tE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nE(e){return ft(e)?document.querySelector(e):e}const uR=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,fR=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,dR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function pR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){hR(e);return}return t}function hR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Pl(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!dR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(uR.test(e)||fR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,pR)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const rE=/#/g,oE=/&/g,sE=/\//g,gR=/=/g,mR=/\?/g,ld=/\+/g,yR=/%5e/gi,_R=/%60/gi,vR=/%7c/gi,bR=/%20/gi,wR=/%252f/gi;function iE(e){return encodeURI(""+e).replace(vR,"|")}function Lh(e){return iE(typeof e=="string"?e:JSON.stringify(e)).replace(ld,"%2B").replace(bR,"+").replace(rE,"%23").replace(oE,"%26").replace(_R,"`").replace(yR,"^").replace(sE,"%2F")}function up(e){return Lh(e).replace(gR,"%3D")}function SR(e){return iE(e).replace(rE,"%23").replace(mR,"%3F").replace(wR,"%2F").replace(oE,"%26").replace(ld,"%2B")}function m9(e){return SR(e).replace(sE,"%2F")}function ef(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function ER(e){return ef(e.replace(ld," "))}function xR(e){return ef(e.replace(ld," "))}function cd(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=ER(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=xR(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function kR(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${up(e)}=${Lh(n)}`).join("&"):`${up(e)}=${Lh(t)}`:up(e)}function CR(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>kR(t,e[t])).filter(Boolean).join("&")}const TR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,aE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,AR=/^([/\\]\s*){2,}[^/\\]/,IR=/^[\s\0]*(blob|data|javascript|vbscript):$/i,OR=/\/$|\/\?|\/#/,RR=/^\.?\//;function yr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?TR.test(e):aE.test(e)||(t.acceptRelative?AR.test(e):!1)}function LR(e){return!!e&&IR.test(e)}function Ph(e="",t){return t?OR.test(e):e.endsWith("/")}function ud(e="",t){if(!t)return(Ph(e)?e.slice(0,-1):e)||"/";if(!Ph(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Nl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ph(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function PR(e=""){return e.startsWith("/")}function B_(e=""){return PR(e)?e:"/"+e}function NR(e,t){if(lE(t)||yr(e))return e;const n=ud(t);return e.startsWith(n)?e:ei(n,e)}function H_(e,t){if(lE(t))return e;const n=ud(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Ml(e,t){const n=fE(e),r={...cd(n.search),...t};return n.search=CR(r),$R(n)}function lE(e){return!e||e==="/"}function MR(e){return e&&e!=="/"}function ei(e,...t){let n=e||"";for(const r of t.filter(o=>MR(o)))if(n){const o=r.replace(RR,"");n=Nl(n)+o}else n=r;return n}function cE(...e){var i,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&yr(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(c=n[n.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function y9(e){return DR(e,"https://")}function DR(e,t){let n=e.match(aE);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function Nh(e,t,n={}){return n.trailingSlash||(e=Nl(e),t=Nl(t)),n.leadingSlash||(e=B_(e),t=B_(t)),n.encoding||(e=ef(e),t=ef(t)),e===t}const uE=Symbol.for("ufo:protocolRelative");function fE(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!yr(e,{acceptRelative:!0}))return Mh(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Mh(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u,[uE]:!r}}function Mh(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function $R(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[uE]?(e.protocol||"")+"//":"")+o+s+t+n+r}class FR extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function UR(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new FR(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[g]}});return a}const jR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function V_(e="GET"){return jR.has(e.toUpperCase())}function BR(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const HR=new Set(["image/svg","application/xml","application/xhtml","application/html"]),VR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function WR(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return VR.test(t)?"json":HR.has(t)||t.startsWith("text/")?"text":"blob"}function zR(e,t,n,r){const o=GR((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let s;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(s={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:s,params:s,headers:o}}function GR(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(o,s);return r}async function zc(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const qR=new Set([408,409,425,429,500,502,503,504]),KR=new Set([101,204,205,304]);function dE(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=V_(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):qR.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(a.request,{...a.options,retry:u-1})}}const c=UR(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:zR(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await zc(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=NR(u.request,u.options.baseURL)),u.options.query&&(u.request=Ml(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&V_(u.options.method)&&(BR(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const p=new r;f=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,p.abort(g)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await zc(u,u.options.onRequestError),await o(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!KR.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||WR(u.response.headers.get("content-type")||"");switch(p){case"json":{const g=await u.response.text(),h=u.options.parseResponse||Pl;u.response._data=h(g);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await zc(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await zc(u,u.options.onResponseError),await o(u)):u.response},i=async function(l,c){return(await s(l,c))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},l={})=>dE({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const tf=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),YR=tf.fetch?(...e)=>tf.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),ZR=tf.Headers,XR=tf.AbortController,JR=dE({fetch:YR,Headers:ZR,AbortController:XR}),QR=JR,e1=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},nf=e1().app,t1=()=>nf.baseURL,n1=()=>nf.buildAssetsDir,r1=(...e)=>cE(pE(),n1(),...e),pE=(...e)=>{const t=nf.cdnURL||nf.baseURL;return e.length?cE(t,...e):t};globalThis.__buildAssetsURL=r1,globalThis.__publicAssetsURL=pE;globalThis.$fetch||(globalThis.$fetch=QR.create({baseURL:t1()}));function Dh(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Dh(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const o1={run:e=>e()},s1=()=>o1,hE=typeof console.createTask<"u"?console.createTask:s1;function i1(e,t){const n=t.shift(),r=hE(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function a1(e,t){const n=t.shift(),r=hE(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function fp(e,t){for(const n of[...e])n(t)}class l1{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Dh(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Dh(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(i1,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(a1,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&fp(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&fp(this._after,o)}):(this._after&&o&&fp(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function gE(){return new l1}function c1(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;$h.add(c);try{const u=o?o.run(i,a):a();return n||(t=void 0),await u}finally{$h.delete(c)}}}}function u1(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=c1({...e,...r})),t[n]}}}const rf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},W_="__unctx__",f1=rf[W_]||(rf[W_]=u1()),mE=(e,t={})=>f1.get(e,t),z_="__unctx_async_handlers__",$h=rf[z_]||(rf[z_]=new Set);function Xt(e){const t=[];for(const o of $h){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const _9=!1,Fh=!1,d1=!0,p1=!1,h1={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},v9={value:null,errorValue:null,deep:!0},g1=null,b9={},m1="#__nuxt",vm="nuxt-app",y1="vite:preloadError";function yE(e=vm){return mE(e,{asyncContext:!1})}const _1="__nuxt_plugin";function v1(e){var o;let t=0;const n={_id:e.id||vm||"nuxt-app",_scope:da(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return n.vueApp.version}},payload:ro({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:ro({}),state:Jt({}),once:new Set,_errors:ro({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!pa()?n._scope.run(()=>G_(n,s)):G_(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:ro({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=gE(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const a="$"+s;Gc(n,a,i),Gc(n.vueApp.config.globalProperties,a,i)},Gc(n.vueApp,"$nuxt",n),Gc(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(y1,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ae);const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function b1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function w1(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function S1(e,t){const n=[],r=[],o=[],s=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=w1(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,p])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(p)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)b1(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[_1]:!0,_name:t})}function G_(e,t,n){const r=()=>t();return yE(e._id).set(e),e.vueApp.runWithContext(r)}function _E(e){var n;let t;return ma()&&(t=(n=en())==null?void 0:n.appContext.app.$nuxt),t||(t=yE(e).tryUse()),t||null}function Ae(e){const t=_E(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function it(e){return Ae().$config}function Gc(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function dp(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Uh(e,t,n=".",r){if(!dp(t))return Uh(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:dp(i)&&dp(o[s])?o[s]=Uh(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function bm(e){return(...t)=>t.reduce((n,r)=>Uh(n,r,"",e),{})}const vE=bm(),E1=bm((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function x1(e,t){try{return t in e}catch{return!1}}class jh extends Error{constructor(n,r={}){super(n,r);Ln(this,"statusCode",500);Ln(this,"fatal",!1);Ln(this,"unhandled",!1);Ln(this,"statusMessage");Ln(this,"data");Ln(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:Bh(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=bE(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}Ln(jh,"__h3_error__",!0);function xu(e){if(typeof e=="string")return new jh(e);if(k1(e))return e;const t=new jh(e.message??e.statusMessage??"",{cause:e.cause||e});if(x1(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Bh(e.statusCode,t.statusCode):e.status&&(t.statusCode=Bh(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;bE(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function k1(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const C1=/[^\u0009\u0020-\u007E]/g;function bE(e=""){return e.replace(C1,"")}function Bh(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const T1=Symbol("layout-meta"),_c=Symbol("route"),Bt=()=>{var e;return(e=Ae())==null?void 0:e.$router},ti=()=>ma()?Ut(_c,Ae()._route):Ae()._route;const A1=(e,t,n={})=>{const r=Ae(),o=n.global||!1,s=t;if(!s){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}o?r._middleware.global.push(s):r._middleware.named[e]=s},I1=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!1}return!1},Oo=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Hh(e):Bt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,u),Promise.resolve()}const r=yr(n,{acceptRelative:!0}),o=(t==null?void 0:t.external)||r;if(o){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&LR(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=I1();if(!o&&s){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=fE(e);return{path:l,...c&&{query:cd(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Bt(),a=Ae();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Hh(e){return Ml(e.path||"",e.query||{})+(e.hash||"")}const wE="__nuxt_error",fd=()=>Js(Ae().payload,"error"),Ro=e=>{const t=dd(e);try{const n=Ae(),r=fd();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},O1=async(e={})=>{const t=Ae(),n=fd();t.callHook("app:error:cleared",e),e.redirect&&await Bt().replace(e.redirect),n.value=g1},SE=e=>!!e&&typeof e=="object"&&wE in e,dd=e=>{const t=xu(e);return Object.defineProperty(t,wE,{value:!0,configurable:!1,writable:!1}),t};function q_(e){const t=L1(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let o=0;o>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const P1=-1,N1=-2,M1=-3,D1=-4,$1=-5,F1=-6;function U1(e,t){return j1(JSON.parse(e),t)}function j1(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===P1)return;if(s===M1)return NaN;if(s===D1)return 1/0;if(s===$1)return-1/0;if(s===F1)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[s]=c(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const u=new Set;r[s]=u;for(let p=1;p`${oo(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?oo(e):`${oo(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${oo(e)} ${t}`}},charset:{}};function oo(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:Dl.META.has(t.slice(0,n))||Dl.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function xE(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function Vh(e){return Array.isArray(e)?e.map(Vh):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[oo(t),Vh(n)]))}function kE(e,t={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:o,resolve:s}=t;return Object.entries(e).map(([i,a])=>{if(s){const c=s({key:i,value:a});if(c!==void 0)return c}const l=typeof a=="object"?kE(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${r}${l}`}).join(n)}function Y_(e,t){const n=xE(t),r=oo(e),o=CE(r);if(!wm.has(r))return[{[o]:r,...n}];const s=Object.fromEntries(Object.entries(n).map(([i,a])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,a]));return of(s||{}).sort((i,a)=>{var l,c;return(((l=i[o])==null?void 0:l.length)||0)-(((c=a[o])==null?void 0:c.length)||0)})}function CE(e){var r;if(((r=EE[e])==null?void 0:r.metaKey)==="http-equiv"||Dl.HTTP_EQUIV.has(e))return"http-equiv";const t=oo(e),n=t.indexOf(":");return n===-1?"name":Dl.OG.has(t.slice(0,n))?"property":"name"}function K1(e){return q1[e]||oo(e)}function Y1(e,t){var n;return t==="refresh"?`${e.seconds};url=${e.url}`:kE(Vh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:r,key:o})=>r===null?"":typeof r=="boolean"?o:void 0,...(n=EE[t])==null?void 0:n.unpack})}function of(e){const t=[],n={};for(const[o,s]of Object.entries(e)){if(Array.isArray(s)){if(o==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const a=[],l=[];for(const[c,u]of Object.entries(i)){const f=`${o}${c==="url"?"":`:${c}`}`,d=of({[f]:u});(c==="url"?a:l).push(...d)}t.push(...a,...l)}else t.push(...typeof i=="string"?of({[o]:i}):Y_(o,i));continue}if(typeof s=="object"&&s)if(Dl.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),l=i==="twitter"?"name":"property";s.url&&t.push({[l]:`${i}:${a}`,content:s.url}),s.secureUrl&&t.push({[l]:`${i}:${a}:secure_url`,content:s.secureUrl});for(const[c,u]of Object.entries(s))c!=="url"&&c!=="secureUrl"&&t.push({[l]:`${i}:${a}:${c}`,content:u})}else wm.has(oo(o))?t.push(...Y_(o,s)):n[o]=xE(s);else n[o]=s}const r=Object.entries(n).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=CE(o),a=K1(o),l=s===null?"_null":typeof s=="object"?Y1(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:l}:{[i]:a,content:l}});return[...t,...r].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Z1={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(of(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...t)}}},X1=["name","property","http-equiv"];function TE(e){const t=e.split(":")[1];return wm.has(t)}function Wh(e){const{props:t,tag:n}=e;if(W1.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of X1)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(H1.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function Z_(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,o])=>`${r}:${String(o)}`).join(",")}`}function sf(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let o;if(t&&(o=t(n,e)),Array.isArray(o))return o.map(s=>sf(s,t));if((o==null?void 0:o.constructor)===Object){const s={};for(const i of Object.keys(o))s[i]=sf(o[i],t,i);return s}return o}function J1(e,t){const n=e==="style"?new Map:new Set;function r(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(o=>r(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?n.set(o.trim(),s):r(o))}),n}function AE(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=J1(n,r);return}if(z1.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const o=String(r),s=n.startsWith("data-");o==="true"||o===""?e.props[n]=s?o:!0:!r&&s&&o==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function Q1(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=AE({tag:e,props:{}},n);return r.key&&B1.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function eL(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,s)=>{for(let i=0;i{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])r.push(Q1(o,i))}),r.flat()}const zh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,X_={base:-10,title:10},tL={critical:-8,high:-1,low:2},J_={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},nL=/@import/,Oa=e=>e===""||e===!0;function rL(e,t){var s;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=tL[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:J_;if(t.tag in X_)n=X_[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=J_.meta[i])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?Oa(t.props.async)?n=o.script.async:t.props.src&&!Oa(t.props.defer)&&!Oa(t.props.async)&&t.props.type!=="module"&&!((s=t.props.type)!=null&&s.endsWith("json"))?n=o.script.sync:Oa(t.props.defer)&&t.props.src&&!Oa(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&nL.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+r}function Q_(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function oL(e={}){var a;const t=gE();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,o=new Map,s=[],i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>Q_(i,l),push(l,c){const u={...c||{}};delete u.head;const f=u._index??i._entryCount++,d={_i:f,input:l,options:u},p={_poll(g=!1){i.dirty=!0,!g&&s.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&p._poll(!0)},patch(g){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=g,r.set(f,d),p._poll())}};return p.patch(l),p},async resolveTags(){var p;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);s.length;){const g=s.shift(),h=r.get(g);if(h){const y={tags:eL(h.input,e.propResolvers||[]).map(m=>Object.assign(m,h.options)),entry:h};await t.callHook("entries:normalize",y),h._tags=y.tags.map((m,b)=>(m._w=rL(i,m),m._p=(h._i<<10)+b,m._d=Wh(m),m))}}let c=!1;l.entries.flatMap(g=>(g._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(zh).reduce((g,h)=>{const y=String(h._d||h._p);if(!g.has(y))return g.set(y,h);const m=g.get(y);if(((h==null?void 0:h.tagDuplicateStrategy)||(G1.has(h.tag)?"merge":null)||(h.key&&h.key===m.key?"merge":null))==="merge"){const _={...m.props};Object.entries(h.props).forEach(([v,S])=>_[v]=v==="style"?new Map([...m.props.style||new Map,...S]):v==="class"?new Set([...m.props.class||new Set,...S]):S),g.set(y,{...h,props:_})}else h._p>>10===m._p>>10&&TE(h._d)?(g.set(y,Object.assign([...Array.isArray(m)?m:[m],h],h)),c=!0):(h._w===m._w?h._p>m._p:(h==null?void 0:h._w)<(m==null?void 0:m._w))&&g.set(y,h);return g},l.tagMap);const u=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,f){const g=f==null?void 0:f.textContent;if(i._titleTemplate=g,g){let h=typeof g=="function"?g(u==null?void 0:u.textContent):g;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",(u==null?void 0:u.textContent)||"")),u?h===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:h}):(f.tag="title",f.textContent=h)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(zh)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const g of l.tags){const{innerHTML:h,tag:y,props:m}=g;if(V1.has(y)&&!(Object.keys(m).length===0&&!g.innerHTML&&!g.textContent)&&!(y==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(y==="script"&&h){if((p=m.type)!=null&&p.endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);g.innerHTML=b.replace(/Q_(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const Lo="%separator",sL=new RegExp(`${Lo}(?:\\s*${Lo})*`,"g");function iL(e,t,n=!1){var o;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");r=(o=e[t.substring(0,s)])==null?void 0:o[t.substring(s+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/{if(a===Lo||!s.includes(a))return a;const l=iL(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(Lo)&&(e=e.slice(0,-Lo.length)),e.startsWith(Lo)&&(e=e.slice(Lo.length)),e=e.replace(sL,n||"").trim()),e}const ev=e=>e.includes(":key")?e:e.split(":").join(":key:"),aL={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const o=String(r);if(o.startsWith("before:")){const s=ev(o.slice(7)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(o.startsWith("after:")){const s=ev(o.slice(6)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(zh))}}},lL={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function Gh(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>Gh(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await Gh(e[r]);return n}return e}const cL={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(Gh(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},uL={meta:"content",link:"href",htmlAttrs:"lang"},fL=["innerHTML","textContent"],dL=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,o,s;const n=((o=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:o.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((s=e._ssrPayload)==null?void 0:s.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var s;const r=((s=t.get("templateParams"))==null?void 0:s.props)||{},o=r.separator||"|";delete r.separator,r.pageTitle=qc(r.pageTitle||e._title||"",r,o);for(const i of n){if(i.processTemplateParams===!1)continue;const a=uL[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=qc(i.props[a],r,o);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of fL)typeof i[l]=="string"&&(i[l]=qc(i[l],r,o,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=qc(n.textContent,e._templateParams,e._separator))}}}),pL=(e,t)=>qe(t)?bu(t):t,Sm="usehead";function hL(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Sm,e)}}.install}function IE(){if(ma()){const e=Ut(Sm);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function OE(e,t={}){const n=t.head||IE();return n.ssr?n.push(e||{},t):gL(n,e,t)}function gL(e,t,n={}){const r=ue(!1);let o;return rd(()=>{const i=r.value?{}:sf(t,pL);o?o.patch(i):o=e.push(i,n)}),en()&&(ga(()=>{o.dispose()}),pS(()=>{r.value=!0}),dS(()=>{r.value=!1})),o}function mL(e={},t={}){(t.head||IE()).use(Z1);const{title:r,titleTemplate:o,...s}=e;return OE({title:r,titleTemplate:o,_flatMeta:s},t)}function RE(e){var n;const t=e||_E();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(ma())return Ut(Sm)}))}function Fs(e,t={}){const n=RE(t.nuxt);if(n)return OE(e,{head:n,...t})}function w9(e,t={}){const n=RE(t.nuxt);if(n)return mL(e,{head:n,...t})}const yL="modulepreload",_L=function(e,t){return new URL(e,t).href},tv={},Yt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=_L(c,r),c in tv)return;tv[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let g=i.length-1;g>=0;g--){const h=i[g];if(h.href===c&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":yL,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((g,h)=>{p.addEventListener("load",g),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};async function nv(e,t={}){if(!await PE(e))return null;const r=await bL(e,t);return await LE(r)||null}const vL="_payload.json";async function bL(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||yr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=it(),o=t.hash||(t.fresh?Date.now():r.app.buildId),s=r.app.cdnURL,i=s&&await PE(e)?s:r.app.baseURL;return ei(i,n.pathname,vL+(o?`?${o}`:""))}async function LE(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(NE));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function PE(e=ti().path){return!!Ae().payload.prerenderedAt}let ds=null;async function wL(){var r;if(ds)return ds;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await NE(e.textContent||""),n=e.dataset.src?await LE(e.dataset.src):void 0;return ds={...t,...n,...window.__NUXT__},(r=ds.config)!=null&&r.public&&(ds.config.public=Jt(ds.config.public)),ds}async function NE(e){return await U1(e,Ae()._payloadRevivers)}function SL(e,t){Ae()._payloadRevivers[e]=t}const EL=[["NuxtError",e=>dd(e)],["EmptyShallowRef",e=>fr(e==="_"?void 0:e==="0n"?BigInt(0):Pl(e))],["EmptyRef",e=>ue(e==="_"?void 0:e==="0n"?BigInt(0):Pl(e))],["ShallowRef",e=>fr(e)],["ShallowReactive",e=>ro(e)],["Ref",e=>ue(e)],["Reactive",e=>Jt(e)]],xL=Je({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,o]of EL)SL(r,o);Object.assign(e.payload,([t,n]=Xt(()=>e.runWithContext(wL)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Em(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var p;const s=new Map,i=new Promise(g=>{e.resolveTags().then(h=>{g(h.map(y=>{const m=s.get(y._d)||0,b={tag:y,id:(m?`${y._d}:${m}`:y._d)||Z_(y),shouldRender:!0};return y._d&&TE(y._d)&&s.set(y._d,m+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const g of["body","head"]){const h=(p=n[g])==null?void 0:p.children;for(const y of h){const m=y.tagName.toLowerCase();if(!K_.has(m))continue;const b=AE({tag:m,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((_,v)=>(_[v]=y.getAttribute(v),_),{})||{}});if(b.key=y.getAttribute("data-hid")||void 0,b._d=Wh(b)||Z_(b),a.elMap.has(b._d)){let _=1,v=b._d;for(;a.elMap.has(v);)v=`${b._d}:${_++}`;a.elMap.set(v,y)}else a.elMap.set(b._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(g,h,y){const m=`${g}:${h}`;a.sideEffects[m]=y,delete a.pendingSideEffects[m]}function c({id:g,$el:h,tag:y}){const m=y.tag.endsWith("Attrs");a.elMap.set(g,h),m||(y.textContent&&y.textContent!==h.textContent&&(h.textContent=y.textContent),y.innerHTML&&y.innerHTML!==h.innerHTML&&(h.innerHTML=y.innerHTML),l(g,"el",()=>{h==null||h.remove(),a.elMap.delete(g)}));for(const b in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,b))continue;const _=y.props[b];if(b.startsWith("on")&&typeof _=="function"){const S=h==null?void 0:h.dataset;if(S&&S[`${b}fired`]){const E=b.slice(0,-5);_.call(h,new Event(E.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),_.bind(h)),h.setAttribute(`data-${b}`,""));continue}const v=`attr:${b}`;if(b==="class"){if(!_)continue;for(const S of _)m&&l(g,`${v}:${S}`,()=>h.classList.remove(S)),!h.classList.contains(S)&&h.classList.add(S)}else if(b==="style"){if(!_)continue;for(const[S,E]of _)l(g,`${v}:${S}`,()=>{h.style.removeProperty(S)}),h.style.setProperty(S,E)}else _!==!1&&_!==null&&(h.getAttribute(b)!==_&&h.setAttribute(b,_===!0?"":String(_)),m&&l(g,v,()=>h.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const g of d){const{tag:h,shouldRender:y,id:m}=g;if(y){if(h.tag==="title"){n.title=h.textContent,l("title","",()=>n.title=a.title);continue}g.$el=g.$el||a.elMap.get(m),g.$el?c(g):K_.has(h.tag)&&u.push(g)}}for(const g of u){const h=g.tag.tagPosition||"head";g.$el=n.createElement(g.tag.tag),c(g),f[h]=f[h]||n.createDocumentFragment(),f[h].appendChild(g.$el)}for(const g of d)await e.hooks.callHook("dom:renderTag",g,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const g in a.pendingSideEffects)a.pendingSideEffects[g]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function kL(e={}){var r,o,s;const t=((r=e.domOptions)==null?void 0:r.render)||Em;e.document=e.document||(typeof window<"u"?document:void 0);const n=((s=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return oL({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function CL(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function TL(e={}){const t=kL({domOptions:{render:CL(()=>Em(t),n=>setTimeout(n,0))},...e});return t.install=hL(t),t}const AL={disableDefaults:!0,disableCapoSorting:!1,plugins:[lL,cL,dL,aL]},IL=Je({name:"nuxt:head",enforce:"pre",setup(e){const t=TL(AL);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Em(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const yi=typeof document<"u";function ME(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function OL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ME(e.default)}const Ye=Object.assign;function pp(e,t){const n={};for(const r in t){const o=t[r];n[r]=pr(o)?o.map(e):e(o)}return n}const fl=()=>{},pr=Array.isArray,DE=/#/g,RL=/&/g,LL=/\//g,PL=/=/g,NL=/\?/g,$E=/\+/g,ML=/%5B/g,DL=/%5D/g,FE=/%5E/g,$L=/%60/g,UE=/%7B/g,FL=/%7C/g,jE=/%7D/g,UL=/%20/g;function xm(e){return encodeURI(""+e).replace(FL,"|").replace(ML,"[").replace(DL,"]")}function jL(e){return xm(e).replace(UE,"{").replace(jE,"}").replace(FE,"^")}function qh(e){return xm(e).replace($E,"%2B").replace(UL,"+").replace(DE,"%23").replace(RL,"%26").replace($L,"`").replace(UE,"{").replace(jE,"}").replace(FE,"^")}function BL(e){return qh(e).replace(PL,"%3D")}function HL(e){return xm(e).replace(DE,"%23").replace(NL,"%3F")}function VL(e){return e==null?"":HL(e).replace(LL,"%2F")}function $l(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const WL=/\/$/,zL=e=>e.replace(WL,"");function hp(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=YL(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:$l(i)}}function GL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function rv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qL(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&zi(t.matched[r],n.matched[o])&&BE(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function BE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!KL(e[n],t[n]))return!1;return!0}function KL(e,t){return pr(e)?ov(e,t):pr(t)?ov(t,e):e===t}function ov(e,t){return pr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function YL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const er={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Fl;(function(e){e.pop="pop",e.push="push"})(Fl||(Fl={}));var dl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(dl||(dl={}));function ZL(e){if(!e)if(yi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zL(e)}const XL=/^[^#]+#/;function JL(e,t){return e.replace(XL,"#")+t}function QL(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const pd=()=>({left:window.scrollX,top:window.scrollY});function eP(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=QL(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sv(e,t){return(history.state?history.state.position-t:-1)+e}const Kh=new Map;function tP(e,t){Kh.set(e,t)}function nP(e){const t=Kh.get(e);return Kh.delete(e),t}let rP=()=>location.protocol+"//"+location.host;function HE(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),rv(l,"")}return rv(n,e)+r+o}function oP(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const p=HE(e,location),g=n.value,h=t.value;let y=0;if(d){if(n.value=p,t.value=d,i&&i===g){i=null;return}y=h?d.position-h.position:0}else r(p);o.forEach(m=>{m(n.value,g,{delta:y,type:Fl.pop,direction:y?y>0?dl.forward:dl.back:dl.unknown})})};function l(){i=n.value}function c(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ye({},d.state,{scroll:pd()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function iv(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?pd():null}}function sP(e){const{history:t,location:n}=window,r={value:HE(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:rP()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){const u=Ye({},t.state,iv(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ye({},o.value,t.state,{forward:l,scroll:pd()});s(u.current,u,!0);const f=Ye({},iv(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function iP(e){e=ZL(e);const t=sP(e),n=oP(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ye({location:"",base:e,go:r,createHref:JL.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function aP(e){return typeof e=="string"||e&&typeof e=="object"}function VE(e){return typeof e=="string"||typeof e=="symbol"}const WE=Symbol("");var av;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(av||(av={}));function Gi(e,t){return Ye(new Error,{type:e,[WE]:!0},t)}function Cr(e,t){return e instanceof Error&&WE in e&&(t==null||!!(e.type&t))}const lv="[^/]+?",lP={sensitive:!1,strict:!1,start:!0,end:!0},cP=/[.+*?^${}()[\]/\\]/g;function uP(e,t){const n=Ye({},lP,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function zE(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const dP={type:0,value:""},pP=/[a-zA-Z0-9_]/;function hP(e){if(!e)return[[]];if(e==="/")return[[dP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(_)}:fl}function i(f){if(VE(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=vP(f,n);n.splice(d,0,f),f.record.name&&!dv(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},h,y;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Gi(1,{location:f});y=p.record.name,g=Ye(uv(d.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&uv(f.params,p.keys.map(_=>_.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=n.find(_=>_.re.test(h)),p&&(g=p.parse(h),y=p.record.name);else{if(p=d.name?r.get(d.name):n.find(_=>_.re.test(d.path)),!p)throw Gi(1,{location:f,currentLocation:d});y=p.record.name,g=Ye({},d.params,f.params),h=p.stringify(g)}const m=[];let b=p;for(;b;)m.unshift(b.record),b=b.parent;return{name:y,path:h,params:g,matched:m,meta:_P(m)}}e.forEach(f=>s(f));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function uv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function fv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yP(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function dv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function _P(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function pv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function vP(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;zE(e,t[s])<0?r=s:n=s+1}const o=bP(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function bP(e){let t=e;for(;t=t.parent;)if(GE(t)&&zE(e,t)===0)return t}function GE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wP(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&qh(s)):[r&&qh(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function SP(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=pr(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const EP=Symbol(""),gv=Symbol(""),km=Symbol(""),Cm=Symbol(""),Yh=Symbol("");function Ra(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Po(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Gi(4,{from:n,to:t})):d instanceof Error?l(d):aP(d)?l(Gi(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(r&&r.instances[o],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function gp(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(ME(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Po(u,n,r,i,a,o))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=OL(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Po(p,n,r,i,a,o)()}))}}return s}function mv(e){const t=Ut(km),n=Ut(Cm),r=J(()=>{const l=He(e.to);return t.resolve(l)}),o=J(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(zi.bind(null,u));if(d>-1)return d;const p=yv(l[c-2]);return c>1&&yv(u)===p&&f[f.length-1].path!==p?f.findIndex(zi.bind(null,l[c-2])):d}),s=J(()=>o.value>-1&&AP(n.params,r.value.params)),i=J(()=>o.value>-1&&o.value===n.matched.length-1&&BE(n.params,r.value.params));function a(l={}){if(TP(l)){const c=t[He(e.replace)?"replace":"push"](He(e.to)).catch(fl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}function xP(e){return e.length===1?e[0]:e}const kP=At({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:mv,setup(e,{slots:t}){const n=Jt(mv(e)),{options:r}=Ut(km),o=J(()=>({[_v(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[_v(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&xP(t.default(n));return e.custom?s:Tt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),CP=kP;function TP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function AP(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!pr(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function yv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const _v=(e,t,n)=>e??t??n,IP=At({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ut(Yh),o=J(()=>e.route||r.value),s=Ut(gv,0),i=J(()=>{let c=He(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=J(()=>o.value.matched[i.value]);Is(gv,J(()=>i.value+1)),Is(EP,a),Is(Yh,o);const l=ue();return Oe(()=>[l.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!zi(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return vv(n.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Tt(d,Ye({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return vv(n.default,{Component:y,route:c})||y}}});function vv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qE=IP;function OP(e){const t=mP(e.routes,e),n=e.parseQuery||wP,r=e.stringifyQuery||hv,o=e.history,s=Ra(),i=Ra(),a=Ra(),l=fr(er);let c=er;yi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=pp.bind(null,W=>""+W),f=pp.bind(null,VL),d=pp.bind(null,$l);function p(W,Q){let X,ie;return VE(W)?(X=t.getRecordMatcher(W),ie=Q):ie=W,t.addRoute(ie,X)}function g(W){const Q=t.getRecordMatcher(W);Q&&t.removeRoute(Q)}function h(){return t.getRoutes().map(W=>W.record)}function y(W){return!!t.getRecordMatcher(W)}function m(W,Q){if(Q=Ye({},Q||l.value),typeof W=="string"){const A=hp(n,W,Q.path),$=t.resolve({path:A.path},Q),B=o.createHref(A.fullPath);return Ye(A,$,{params:d($.params),hash:$l(A.hash),redirectedFrom:void 0,href:B})}let X;if(W.path!=null)X=Ye({},W,{path:hp(n,W.path,Q.path).path});else{const A=Ye({},W.params);for(const $ in A)A[$]==null&&delete A[$];X=Ye({},W,{params:f(A)}),Q.params=f(Q.params)}const ie=t.resolve(X,Q),te=W.hash||"";ie.params=u(d(ie.params));const we=GL(r,Ye({},W,{hash:jL(te),path:ie.path})),C=o.createHref(we);return Ye({fullPath:we,hash:te,query:r===hv?SP(W.query):W.query||{}},ie,{redirectedFrom:void 0,href:C})}function b(W){return typeof W=="string"?hp(n,W,l.value.path):Ye({},W)}function _(W,Q){if(c!==W)return Gi(8,{from:Q,to:W})}function v(W){return x(W)}function S(W){return v(Ye(b(W),{replace:!0}))}function E(W){const Q=W.matched[W.matched.length-1];if(Q&&Q.redirect){const{redirect:X}=Q;let ie=typeof X=="function"?X(W):X;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=b(ie):{path:ie},ie.params={}),Ye({query:W.query,hash:W.hash,params:ie.path!=null?{}:W.params},ie)}}function x(W,Q){const X=c=m(W),ie=l.value,te=W.state,we=W.force,C=W.replace===!0,A=E(X);if(A)return x(Ye(b(A),{state:typeof A=="object"?Ye({},te,A.state):te,force:we,replace:C}),Q||X);const $=X;$.redirectedFrom=Q;let B;return!we&&qL(r,ie,X)&&(B=Gi(16,{to:$,from:ie}),be(ie,ie,!0,!1)),(B?Promise.resolve(B):O($,ie)).catch(H=>Cr(H)?Cr(H,2)?H:lt(H):re(H,$,ie)).then(H=>{if(H){if(Cr(H,2))return x(Ye({replace:C},b(H.to),{state:typeof H.to=="object"?Ye({},te,H.to.state):te,force:we}),Q||$)}else H=L($,ie,!0,C,te);return U($,ie,H),H})}function N(W,Q){const X=_(W,Q);return X?Promise.reject(X):Promise.resolve()}function I(W){const Q=tn.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function O(W,Q){let X;const[ie,te,we]=RP(W,Q);X=gp(ie.reverse(),"beforeRouteLeave",W,Q);for(const A of ie)A.leaveGuards.forEach($=>{X.push(Po($,W,Q))});const C=N.bind(null,W,Q);return X.push(C),ht(X).then(()=>{X=[];for(const A of s.list())X.push(Po(A,W,Q));return X.push(C),ht(X)}).then(()=>{X=gp(te,"beforeRouteUpdate",W,Q);for(const A of te)A.updateGuards.forEach($=>{X.push(Po($,W,Q))});return X.push(C),ht(X)}).then(()=>{X=[];for(const A of we)if(A.beforeEnter)if(pr(A.beforeEnter))for(const $ of A.beforeEnter)X.push(Po($,W,Q));else X.push(Po(A.beforeEnter,W,Q));return X.push(C),ht(X)}).then(()=>(W.matched.forEach(A=>A.enterCallbacks={}),X=gp(we,"beforeRouteEnter",W,Q,I),X.push(C),ht(X))).then(()=>{X=[];for(const A of i.list())X.push(Po(A,W,Q));return X.push(C),ht(X)}).catch(A=>Cr(A,8)?A:Promise.reject(A))}function U(W,Q,X){a.list().forEach(ie=>I(()=>ie(W,Q,X)))}function L(W,Q,X,ie,te){const we=_(W,Q);if(we)return we;const C=Q===er,A=yi?history.state:{};X&&(ie||C?o.replace(W.fullPath,Ye({scroll:C&&A&&A.scroll},te)):o.push(W.fullPath,te)),l.value=W,be(W,Q,X,C),lt()}let G;function oe(){G||(G=o.listen((W,Q,X)=>{if(!ze.listening)return;const ie=m(W),te=E(ie);if(te){x(Ye(te,{replace:!0,force:!0}),ie).catch(fl);return}c=ie;const we=l.value;yi&&tP(sv(we.fullPath,X.delta),pd()),O(ie,we).catch(C=>Cr(C,12)?C:Cr(C,2)?(x(Ye(b(C.to),{force:!0}),ie).then(A=>{Cr(A,20)&&!X.delta&&X.type===Fl.pop&&o.go(-1,!1)}).catch(fl),Promise.reject()):(X.delta&&o.go(-X.delta,!1),re(C,ie,we))).then(C=>{C=C||L(ie,we,!1),C&&(X.delta&&!Cr(C,8)?o.go(-X.delta,!1):X.type===Fl.pop&&Cr(C,20)&&o.go(-1,!1)),U(ie,we,C)}).catch(fl)}))}let ce=Ra(),q=Ra(),ne;function re(W,Q,X){lt(W);const ie=q.list();return ie.length?ie.forEach(te=>te(W,Q,X)):console.error(W),Promise.reject(W)}function Se(){return ne&&l.value!==er?Promise.resolve():new Promise((W,Q)=>{ce.add([W,Q])})}function lt(W){return ne||(ne=!W,oe(),ce.list().forEach(([Q,X])=>W?X(W):Q()),ce.reset()),W}function be(W,Q,X,ie){const{scrollBehavior:te}=e;if(!yi||!te)return Promise.resolve();const we=!X&&nP(sv(W.fullPath,0))||(ie||!X)&&history.state&&history.state.scroll||null;return qn().then(()=>te(W,Q,we)).then(C=>C&&eP(C)).catch(C=>re(C,W,Q))}const We=W=>o.go(W);let je;const tn=new Set,ze={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:h,resolve:m,options:e,push:v,replace:S,go:We,back:()=>We(-1),forward:()=>We(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:q.add,isReady:Se,install(W){const Q=this;W.component("RouterLink",CP),W.component("RouterView",qE),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>He(l)}),yi&&!je&&l.value===er&&(je=!0,v(o.location).catch(te=>{}));const X={};for(const te in er)Object.defineProperty(X,te,{get:()=>l.value[te],enumerable:!0});W.provide(km,Q),W.provide(Cm,ro(X)),W.provide(Yh,l);const ie=W.unmount;tn.add(W),W.unmount=function(){tn.delete(W),tn.size<1&&(c=er,G&&G(),G=null,l.value=er,je=!1,ne=!1),ie()}}};function ht(W){return W.reduce((Q,X)=>Q.then(()=>I(X)),Promise.resolve())}return ze}function RP(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;izi(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>zi(c,l))||o.push(l))}return[n,r,o]}function S9(e){return Ut(Cm)}const LP=/(:\w+)\([^)]+\)/g,PP=/(:\w+)[?+*]/g,NP=/:\w+/g,MP=(e,t)=>t.path.replace(LP,"$1").replace(PP,"$1").replace(NP,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Zh=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&MP(e.route,n));return typeof r=="function"?r(e.route):r},DP=(e,t)=>({default:()=>e?Tt(FI,e===!0?{}:e,t):t});function Tm(e){return Array.isArray(e)?e:[e]}const $P={layout:!1,pageTransition:!1},FP={layout:!1,pageTransition:!1},UP={layout:!1,pageTransition:!1},jP={layout:!1,pageTransition:!1};const mp=[{name:"g",path:"/g",component:()=>Yt(()=>import("./BgRxN7_C.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"index",path:"/",component:()=>Yt(()=>import("./jIaoGLoQ.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,3]),import.meta.url)},{name:"search",path:"/search",component:()=>Yt(()=>import("./CIgF6tsS.js"),__vite__mapDeps([23,24,25,11,8,9,10,12,26,27,28,22]),import.meta.url)},{name:"v8",path:"/v8",component:()=>Yt(()=>import("./BOSmohao.js"),__vite__mapDeps([29,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,3]),import.meta.url)},{name:"video-id",path:"/video/:id()",component:()=>Yt(()=>import("./o04_e9EH.js"),__vite__mapDeps([30,31,11,16,32,7,8,9,10,12,13,14,15,17,18,19,24,25,33,34,35,36,28,37,26]),import.meta.url)},{name:"terms",path:"/terms",meta:$P||{},component:()=>Yt(()=>import("./bOohFX-a.js"),__vite__mapDeps([38,39,40,11,41,42,43,44,3,45]),import.meta.url)},{name:"article-id",path:"/article/:id()",component:()=>Yt(()=>import("./HTiGecFA.js"),__vite__mapDeps([46,47,31,11,16,32,7,8,9,10,12,13,14,15,17,18,19,24,25,33,34,35,36,28,37]),import.meta.url)},{name:"contact",path:"/contact",meta:FP||{},component:()=>Yt(()=>import("./DWUQ5Lm4.js"),__vite__mapDeps([48,39,40,3,49,50]),import.meta.url)},{name:"v8-article-id",path:"/v8/article/:id()",component:()=>Yt(()=>import("./NMaa899u.js"),__vite__mapDeps([51,47,31,11,16,32,7,8,9,10,12,13,14,15,17,18,19,24,25,33,34,35,36,28,37]),import.meta.url)},{name:"privacy-policy",path:"/privacy-policy",meta:UP||{},component:()=>Yt(()=>import("./mKog8HXi.js"),__vite__mapDeps([52,39,40,53,11,41,42,43,44,3,54]),import.meta.url)},{name:"privacy-policy-relationships",path:"/privacy-policy/relationships",meta:jP||{},component:()=>Yt(()=>import("./CMa1yQ-k.js"),__vite__mapDeps([55,39,40,53,11,41,42,43,44,3,54]),import.meta.url)}],BP=(e,t)=>({default:()=>{var n;return e?Tt(ZS,e===!0?{}:e,t):(n=t.default)==null?void 0:n.call(t)}}),HP=/(:\w+)\([^)]+\)/g,VP=/(:\w+)[?+*]/g,WP=/:\w+/g;function bv(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(HP,"$1").replace(VP,"$1").replace(WP,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function KE(e,t){return e===t||t===er?!1:bv(e)!==bv(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const zP={scrollBehavior(e,t,n){var c;const r=Ae(),o=((c=Bt().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&KE(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:YE(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??Fh),l=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{r.hooks.hookOnce(l,()=>{requestAnimationFrame(()=>u(GP(e,"instant",s)))})})}};function YE(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function GP(e,t,n){return n||(e.hash?{el:e.hash,top:YE(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const qP={hashMode:!1,scrollBehaviorType:"auto"},Bn={...qP,...zP},KP=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Ae(),o=Bt(),s=([t,n]=Xt(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(s===!0)return;const i=dd({statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>Ro(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},YP=[KP],pl={};function ZP(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),H_(u,"")}const a=H_(r,e),l=!n||Nh(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const XP=Je({name:"nuxt:router",enforce:"pre",async setup(e){var y;let t,n,r=it().app.baseURL;const o=((y=Bn.history)==null?void 0:y.call(Bn,r))??iP(r),s=Bn.routes?([t,n]=Xt(()=>Bn.routes(mp)),t=await t,n(),t??mp):mp;let i;const a=OP({...Bn,scrollBehavior:(m,b,_)=>{if(b===er){i=_;return}if(Bn.scrollBehavior){if(a.options.scrollBehavior=Bn.scrollBehavior,"scrollRestoration"in window.history){const v=a.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return Bn.scrollBehavior(m,er,i||_)}},history:o,routes:s});Bn.routes&&Bn.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=fr(a.currentRoute.value);a.afterEach((m,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=ZP(r,window.location,e.payload.path),u=fr(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((m,b)=>{var _,v,S,E;((v=(_=m.matched[0])==null?void 0:_.components)==null?void 0:v.default)===((E=(S=b.matched[0])==null?void 0:S.components)==null?void 0:E.default)&&f()});const d={};for(const m in u.value)Object.defineProperty(d,m,{get:()=>u.value[m],enumerable:!0});e._route=ro(d),e._middleware||(e._middleware={global:[],named:{}});const p=fd();a.afterEach(async(m,b,_)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(O1),_&&await e.callHook("page:loading:end")});try{[t,n]=Xt(()=>a.isReady()),await t,n()}catch(m){[t,n]=Xt(()=>e.runWithContext(()=>Ro(m))),await t,n()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const h=e.payload.state._layout;return a.beforeEach(async(m,b)=>{var _;await e.callHook("page:loading:start"),m.meta=Jt(m.meta),e.isHydrating&&h&&!Wo(m.meta.layout)&&(m.meta.layout=h),e._processingMiddleware=!0;{const v=new Set([...YP,...e._middleware.global]);for(const S of m.matched){const E=S.meta.middleware;if(E)for(const x of Tm(E))v.add(x)}for(const S of v){const E=typeof S=="string"?e._middleware.named[S]||await((_=pl[S])==null?void 0:_.call(pl).then(x=>x.default||x)):S;if(!E)throw new Error(`Unknown route middleware: '${S}'.`);try{const x=await e.runWithContext(()=>E(m,b));if(!e.payload.serverRendered&&e.isHydrating&&(x===!1||x instanceof Error)){const N=x||xu({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Ro(N)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return SE(x)&&x.fatal&&await e.runWithContext(()=>Ro(x)),x}catch(x){const N=xu(x);return N.fatal&&await e.runWithContext(()=>Ro(N)),N}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(m,b)=>{m.matched.length===0&&await e.runWithContext(()=>Ro(xu({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=Bn.scrollBehavior}catch(m){await e.runWithContext(()=>Ro(m))}}),{provide:{router:a}}}}),Xh=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),JP=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Am=e=>{const t=Ae();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Xh(()=>e())}):Xh(()=>e())},QP=Je({name:"nuxt:payload",setup(e){const t=new Set;Bt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const o=await nv(n.path);if(o){for(const s of t)delete e.static.data[s];for(const s in o.data)s in e.static.data||t.add(s),e.static.data[s]=o.data[s]}}),Am(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await nv(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})})})}}),eN=Je(()=>{const e=Bt();Am(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),tN=Je(e=>{if(!document.startViewTransition)return;let t,n;Bt().beforeResolve(async(o,s)=>{const i=o.meta.viewTransition??d1,l=window.matchMedia("(prefers-reduced-motion: reduce)").matches&&i!=="always";if(i===!1||l||!KE(o,s))return;const c=new Promise((p,g)=>{t=p,n=g});let u;const f=new Promise(p=>u=p),d=document.startViewTransition(()=>(u(),c));return d.finished.then(()=>{n=void 0,t=void 0}),await e.callHook("page:view-transition:start",d),f}),e.hook("vue:error",()=>{n==null||n(),n=void 0}),e.hook("page:finish",()=>{t==null||t(),t=void 0})});function nN(e={}){const t=e.path||window.location.pathname;let n={};try{n=Pl(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:ei(n.app.baseURL,s.fullPath);nN({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}});/*! * pinia v2.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */let ZE;const vc=e=>ZE=e,XE=Symbol();function Jh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var hl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(hl||(hl={}));function oN(){const e=da(!0),t=e.run(()=>ue({}));let n=[],r=[];const o=um({install(s){vc(o),o._a=s,s.provide(XE,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const JE=()=>{};function wv(e,t,n,r=JE){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&pa()&&kl(o),o}function ui(e,...t){e.slice().forEach(n=>{n(...t)})}const sN=e=>e(),Sv=Symbol(),yp=Symbol();function Qh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Jh(o)&&Jh(r)&&e.hasOwnProperty(n)&&!qe(r)&&!Lr(r)?e[n]=Qh(o,r):e[n]=r}return e}const iN=Symbol();function aN(e){return!Jh(e)||!e.hasOwnProperty(iN)}const{assign:Co}=Object;function lN(e){return!!(qe(e)&&e.effect)}function cN(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const u=yI(n.state.value[e]);return Co(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=um(J(()=>{vc(n);const p=n._s.get(e);return i[d].call(p,p)})),f),{}))}return l=QE(e,c,t,n,r,!0),l}function QE(e,t,n={},r,o,s){let i;const a=Co({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],p;const g=r.state.value[e];!s&&!g&&(r.state.value[e]={}),ue({});let h;function y(N){let I;c=u=!1,typeof N=="function"?(N(r.state.value[e]),I={type:hl.patchFunction,storeId:e,events:p}):(Qh(r.state.value[e],N),I={type:hl.patchObject,payload:N,storeId:e,events:p});const O=h=Symbol();qn().then(()=>{h===O&&(c=!0)}),u=!0,ui(f,I,r.state.value[e])}const m=s?function(){const{state:I}=n,O=I?I():{};this.$patch(U=>{Co(U,O)})}:JE;function b(){i.stop(),f=[],d=[],r._s.delete(e)}const _=(N,I="")=>{if(Sv in N)return N[yp]=I,N;const O=function(){vc(r);const U=Array.from(arguments),L=[],G=[];function oe(ne){L.push(ne)}function ce(ne){G.push(ne)}ui(d,{args:U,name:O[yp],store:S,after:oe,onError:ce});let q;try{q=N.apply(this&&this.$id===e?this:S,U)}catch(ne){throw ui(G,ne),ne}return q instanceof Promise?q.then(ne=>(ui(L,ne),ne)).catch(ne=>(ui(G,ne),Promise.reject(ne))):(ui(L,q),q)};return O[Sv]=!0,O[yp]=I,O},v={_p:r,$id:e,$onAction:wv.bind(null,d),$patch:y,$reset:m,$subscribe(N,I={}){const O=wv(f,N,I.detached,()=>U()),U=i.run(()=>Oe(()=>r.state.value[e],L=>{(I.flush==="sync"?u:c)&&N({storeId:e,type:hl.direct,events:p},L)},Co({},l,I)));return O},$dispose:b},S=Jt(v);r._s.set(e,S);const x=(r._a&&r._a.runWithContext||sN)(()=>r._e.run(()=>(i=da()).run(()=>t({action:_}))));for(const N in x){const I=x[N];if(qe(I)&&!lN(I)||Lr(I))s||(g&&aN(I)&&(qe(I)?I.value=g[N]:Qh(I,g[N])),r.state.value[e][N]=I);else if(typeof I=="function"){const O=_(I,N);x[N]=O,a.actions[N]=I}}return Co(S,x),Co(Me(S),x),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:N=>{y(I=>{Co(I,N)})}}),r._p.forEach(N=>{Co(S,i.run(()=>N({store:S,app:r._a,pinia:r,options:a})))}),g&&s&&n.hydrate&&n.hydrate(S.$state,g),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function bc(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const c=ma();return a=a||(c?Ut(XE,null):null),a&&vc(a),a=ZE,a._s.has(r)||(s?QE(r,t,o,a):cN(r,o,a)),a._s.get(r)}return i.$id=r,i}function wc(e){{const t=Me(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=J({get:()=>e[r],set(s){e[r]=s}}):(qe(o)||Lr(o))&&(n[r]=Js(e,r))}return n}}function Ev(e){return typeof e=="string"?`'${e}'`:new uN().serialize(e)}const uN=function(){var t;class e{constructor(){t_(this,t,new Map)}compare(r,o){const s=typeof r,i=typeof o;return s==="string"&&i==="string"?r.localeCompare(o):s==="number"&&i==="number"?r-o:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(o,!0))}serialize(r,o){if(r===null)return"null";switch(typeof r){case"string":return o?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const o=Object.prototype.toString.call(r);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),r);const s=r.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,r);if(typeof r.toJSON=="function"){const a=r.toJSON();return i+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(i,Object.entries(r))}serializeBuiltInType(r,o){const s=this["$"+r];if(s)return s.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(r,o.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,o){const s=Array.from(o).sort((a,l)=>this.compare(a[0],l[0]));let i=`${r}{`;for(let a=0;athis.compare(o,s)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(r){return`${n}(${r})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join("n,")}${r.length>0?"n":""}]`};return e}();function fN(e,t){return e===t||Ev(e)===Ev(t)}const dN="$s";function ni(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=dN+n,s=Ae(),i=Js(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(qe(a))return s.payload.state[o]=a,a;i.value=a}return i}function pN(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},o=r.decode||hN;let s=0;for(;sPl(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Yc=window.cookieStore;function ku(e,t){var c;const n={...yN,...t};n.filter??(n.filter=u=>u===e);const r=kv(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s||r[e]===void 0||r[e]===null,a=tr(s?void 0:r[e]??((c=n.default)==null?void 0:c.call(n))),l=o&&!s?bN(a,o,n.watch&&n.watch!=="shallow"):ue(a);{let u=null;try{!Yc&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{!h&&(n.readonly||fN(l.value,r[e]))||(vN(e,l.value,n),r[e]=tr(l.value),u==null||u.postMessage({value:n.encode(l.value)}))},d=h=>{var m;const y=h.refresh?(m=kv(n))==null?void 0:m[e]:n.decode(h.value);p=!0,l.value=y,r[e]=tr(y),qn(()=>{p=!1})};let p=!1;const g=!!pa();if(g&&kl(()=>{p=!0,f(),u==null||u.close()}),Yc){const h=y=>{const m=y.changed.find(_=>_.name===e),b=y.deleted.find(_=>_.name===e);m&&d({value:m.value}),b&&d({value:null})};Yc.addEventListener("change",h),g&&kl(()=>Yc.removeEventListener("change",h))}else u&&(u.onmessage=({data:h})=>d(h));n.watch&&Oe(l,()=>{p||f()},{deep:n.watch!=="shallow"}),i&&f(i)}return l}function kv(e={}){return pN(document.cookie,e)}function _N(e,t,n={}){return t==null?xv(e,t,{...n,maxAge:-1}):xv(e,t,n)}function vN(e,t,n={}){document.cookie=_N(e,t,n)}const Cv=2147483647;function bN(e,t,n){let r,o,s=0;const i=n?ue(e):{value:e};return pa()&&kl(()=>{o==null||o(),clearTimeout(r)}),Xw((a,l)=>{n&&(o=Oe(i,l));function c(){s=0,clearTimeout(r);const u=t-s,f=u{if(s+=f,s4)return Promise.all(o).then(()=>ex(e,t));t._routePreloaded.add(n);const s=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of s){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const wN=(...e)=>e.find(t=>t!==void 0);function SN(e){const t=e.componentName||"NuxtLink";function n(s){return typeof s=="string"&&s.startsWith("#")}function r(s,i){if(!s||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return s;if(typeof s=="string")return Tv(s,e.trailingSlash);const a="path"in s&&s.path!==void 0?s.path:i(s).path;return{...s,name:void 0,path:Tv(a,e.trailingSlash)}}function o(s){const i=Bt(),a=it(),l=J(()=>!!s.target&&s.target!=="_self"),c=J(()=>{const y=s.to||s.href||"";return typeof y=="string"&&yr(y,{acceptRelative:!0})}),u=p_("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=J(()=>{if(s.external)return!0;const y=s.to||s.href||"";return typeof y=="object"?!1:y===""||c.value}),p=J(()=>{const y=s.to||s.href||"";return d.value?y:r(y,i.resolve)}),g=d.value||f==null?void 0:f({...s,to:p}),h=J(()=>{var y;if(!p.value||c.value||n(p.value))return p.value;if(d.value){const m=typeof p.value=="object"&&"path"in p.value?Hh(p.value):p.value,b=typeof m=="object"?i.resolve(m).href:m;return r(b,i.resolve)}return typeof p.value=="object"?((y=i.resolve(p.value))==null?void 0:y.href)??null:r(ei(a.app.baseURL,p.value),i.resolve)});return{to:p,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:h,isActive:(g==null?void 0:g.isActive)??J(()=>p.value===i.currentRoute.value.path),isExactActive:(g==null?void 0:g.isExactActive)??J(()=>p.value===i.currentRoute.value.path),route:(g==null?void 0:g.route)??J(()=>i.resolve(p.value)),async navigate(y){await Oo(h.value,{replace:s.replace,external:d.value||l.value})}}}return At({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:o,setup(s,{slots:i}){const a=Bt(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=o(s),g=ue(!1),h=ue(null),y=_=>{var v;h.value=s.custom?(v=_==null?void 0:_.$el)==null?void 0:v.nextElementSibling:_==null?void 0:_.$el};function m(_){var v,S;return!g.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===_:((v=s.prefetchOn)==null?void 0:v[_])??((S=e.prefetchOn)==null?void 0:S[_]))&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!CN()}async function b(_=Ae()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:f.value?Hh(l.value):a.resolve(l.value).fullPath,S=f.value?new URL(v,window.location.href).href:v;await Promise.all([_.hooks.callHook("link:prefetch",S).catch(()=>{}),!f.value&&!d.value&&ex(l.value,a).catch(()=>{})])}if(m("visibility")){const _=Ae();let v,S=null;Rn(()=>{const E=xN();Am(()=>{v=Xh(()=>{var x;(x=h==null?void 0:h.value)!=null&&x.tagName&&(S=E.observe(h.value,async()=>{S==null||S(),S=null,await b(_)}))})})}),ga(()=>{v&&JP(v),S==null||S(),S=null})}return()=>{var S;if(!f.value&&!d.value&&!n(l.value)){const E={ref:y,to:l.value,activeClass:s.activeClass||e.activeClass,exactActiveClass:s.exactActiveClass||e.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};return s.custom||(m("interaction")&&(E.onPointerenter=b.bind(null,void 0),E.onFocus=b.bind(null,void 0)),g.value&&(E.class=s.prefetchedClass||e.prefetchedClass),E.rel=s.rel||void 0),Tt(p_("RouterLink"),E,i.default)}const _=s.target||null,v=wN(s.noRel?"":s.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return s.custom?i.default?i.default({href:c.value,navigate:u,prefetch:b,get route(){if(!c.value)return;const E=new URL(c.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return cd(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:v,target:_,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Tt("a",{ref:h,href:c.value||null,rel:v,target:_},(S=i.default)==null?void 0:S.call(i))}}})}const EN=SN(h1);function Tv(e,t){const n=t==="append"?Nl:ud;return yr(e)&&!e.startsWith("http")?e:n(e,!0)}function xN(){const e=Ae();if(e._observer)return e._observer;let t=null;const n=new Map,r=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(s,i),t.observe(s),()=>{n.delete(s),t==null||t.unobserve(s),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const kN=/2g/;function CN(){const e=navigator.connection;return!!(e&&(e.saveData||kN.test(e.effectiveType)))}const kn={AR_35:{widgetId:"AR_35"},AR_36:{widgetId:"AR_36"},AR_37:{widgetId:"AR_37"},AR_45:{widgetId:"AR_45"},AR_38:{widgetId:"AR_38"},AR_27:{widgetId:"AR_27"},AR_31:{widgetId:"AR_31"}},xt={304300:{adHeight:"304px",adWidth:"300px"},304612:{adHeight:"304px",adWidth:"612px"},auto:{adHeight:"auto",adWidth:"auto"},"400_FULL":{adHeight:"400px",adWidth:"auto"},"310_FULL":{adHeight:"310px",adWidth:"100%"},100300:{adHeight:"100px",adWidth:"300px"},290340:{adHeight:"290px",adWidth:"340px"}};function Er(e){return{containerName:`taboola-homepage-${e}`,mode:"thumbnails-r-267x178-v2"}}const TN={article_content_below_button:{mode:"alternating-thumbnails-a",containerName:"taboola-below-article-feed"}},AN={sectiontab_300x250:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("sectiontab-300x250"),assertive:{},props:{}},sectiontab_slider:{outbrain:{...kn.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_r1_c2:{outbrain:{...kn.AR_35},style:{...xt[304300]},taboola:Er("r1-c2"),assertive:{},props:{lazyRender:!0}},newtab_r1_topright:{outbrain:{...kn.AR_36},style:{...xt[304300]},taboola:Er("r1-topright"),assertive:{},props:{lazyRender:!0}},newtab_r2_c1:{outbrain:{...kn.AR_37},style:{...xt[304300]},taboola:Er("r2-c1"),assertive:{},props:{lazyRender:!0}},newtab_r3_right:{outbrain:{...kn.AR_45},style:{...xt[304300]},taboola:Er("r3-right"),assertive:{},props:{lazyRender:!0}},newtab_r4_c1:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r4-c1"),assertive:{},props:{lazyRender:!0}},newtab_r4_right:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r4-right"),assertive:{},props:{lazyRender:!0}},newtab_r3_c1:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r3-c1"),assertive:{},props:{lazyRender:!0}},newtab_r2_c4:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r2-c4"),assertive:{},props:{lazyRender:!0}},newtab_endless_right:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("endless"),assertive:{},props:{lazyRender:!0}},newtab_slider_1:{outbrain:{...kn.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_slider_2:{outbrain:{...kn.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_leaderboard:{outbrain:{},taboola:{},assertive:{},style:{...xt["400_FULL"]},props:{lazyRender:!0}},newtab_leaderboard_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt[100300]},props:{lazyRender:!0}},article_hero:{outbrain:{},taboola:{},assertive:{},style:{...xt["310_FULL"]},props:{sticky:!0}},article_hero_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt[100300]},props:{sticky:!0}},article_content_below_button:{outbrain:{...kn.AR_31},taboola:{...TN.article_content_below_button},assertive:{},style:{...xt.auto},props:{}},article_content_middle:{outbrain:{},taboola:{},assertive:{},style:{...xt["400_FULL"]},props:{}},article_content_middle_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt["310_FULL"]},props:{lazyRender:!0}},article_siderail_top:{outbrain:{},taboola:{},assertive:{},style:{...xt[290340]},props:{}},article_siderail_middle:{outbrain:{},taboola:{},assertive:{},style:{...xt[290340]},props:{}},article_siderail_bottom:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_top:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_below_image:{outbrain:{},taboola:{},assertive:{},style:{},props:{}},article_content_above_button:{outbrain:{},taboola:{},assertive:{},style:{},props:{}}},IN={nuxtIcon:{},siteName:"OneNews",defaultCpm:2,urls:{home:"/",article:"/article",video:"/video"},directAdsHostedConfigUrl:"http://localhost:2772/applications/WebTier/environments/OneNews/configurations/OneNews-DirectAds",redesignedNtpPaths:["/v8","/v8/article","/","/article"],googleTagManagerId:"GTM-WNFNMPW",outbrain:{installationKey:"ONELA2JBJF199O5BKEIEEDG98"},adops:{placements:AN},taboola:{publisherName:"rebasetechinc-network"}},ON={},RN={nuxtIcon:{},openfeature:{multiProvider:!0,localProvider:!1,queryProvider:!0},directAdsHostedConfigUrl:"",redesignedNtpPaths:[""],googleTagManagerId:"",urls:{home:"/",article:"/article",video:"/video"},outbrain:{installationKey:""},adops:{placements:ON},taboola:{publisherName:""}},LN={nuxt:{},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/icons",fallbackToApi:!1,cssSelectorPrefix:"i-",cssWherePseudo:!0,mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:500},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},$n=E1(IN,RN,LN);function jr(){const e=Ae();return e._appConfig||(e._appConfig=Jt($n)),e._appConfig}const PN=Je({name:"pinia",setup(e){const t=oN();return e.vueApp.use(t),vc(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),NN=ed(()=>Yt(()=>Promise.resolve().then(()=>J2),void 0,import.meta.url).then(e=>e.default||e.default||e)),MN=ed(()=>Yt(()=>import("./BRLALhx8.js"),__vite__mapDeps([56,57]),import.meta.url).then(e=>e.default||e.default||e)),DN=ed(()=>Yt(()=>import("./kyRh9ss4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),$N=[["Icon",NN],["IconCSS",MN],["NuxtIcon",DN]],FN=Je({name:"nuxt:global-components",setup(e){for(const[t,n]of $N)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Zc={custom:ed(()=>Yt(()=>import("./BHav-i15.js"),__vite__mapDeps([58,49,59]),import.meta.url).then(e=>e.default||e))},UN=Je({name:"nuxt:prefetch",setup(e){const t=Bt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Zc[r]=="function"&&await Zc[r]()})}),e.hooks.hook("link:prefetch",n=>{if(yr(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Tm(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof pl[i]=="function"&&pl[i]();o&&typeof Zc[o]=="function"&&Zc[o]()})}});function Cu(...e){var t;(t=window.dataLayer)==null||t.push(arguments)}function tx({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const n of t.initCommands??[])Cu(...n);Cu("js",new Date);for(const t of e)Cu("config",t.id,t.config??{})}function nx(e){const t=Me(e),n=t.tags.filter(Boolean).map(r=>typeof r=="string"?{id:r}:r);if(t.id){const{id:r,config:o,initCommands:s}=t;n.unshift({id:r,config:o,initCommands:s})}return n}const jN=Je({parallel:!0,setup(){const e=it().public.gtag,t=nx(e);if(!t.length||(tx({tags:t}),e.initMode==="manual"))return;const n=e.loadingStrategy==="async"?"async":"defer";Fs({link:[{rel:"preload",as:"script",href:Ml(e.url,{id:t[0].id})}],script:[{src:Ml(e.url,{id:t[0].id}),[n]:!0,"data-gtag":""}]})}}),gl=/^[a-z0-9]+(-[a-z0-9]+)*$/,hd=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Tu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Tu(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Tu(a,n)?null:a}return null},Tu=(e,t)=>e?!!((e.provider===""||e.provider.match(gl))&&(t&&e.prefix===""||e.prefix.match(gl))&&e.name.match(gl)):!1,rx=Object.freeze({left:0,top:0,width:16,height:16}),af=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Sc=Object.freeze({...rx,...af}),eg=Object.freeze({...Sc,body:"",hidden:!1});function BN(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Av(e,t){const n=BN(e,t);for(const r in eg)r in af?r in e&&!(r in n)&&(n[r]=af[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function HN(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function VN(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Av(r[a]||o[a],s)}return i(t),n.forEach(i),Av(e,s)}function ox(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=HN(e);for(const o in r){const s=r[o];s&&(t(o,VN(e,o,s)),n.push(o))}return n}const WN={provider:"",aliases:{},not_found:{},...rx};function _p(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sx(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!_p(e,WN))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(gl)||typeof s.body!="string"||!_p(s,eg))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(gl)||typeof i!="string"||!n[i]&&!r[i]||!_p(s,eg))return null}return t}const Iv=Object.create(null);function zN(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Us(e,t){const n=Iv[e]||(Iv[e]=Object.create(null));return n[t]||(n[t]=zN(e,t))}function Im(e,t){return sx(t)?ox(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function GN(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ul=!1;function ix(e){return typeof e=="boolean"&&(Ul=e),Ul}function ax(e){const t=typeof e=="string"?hd(e,!0,Ul):e;if(t){const n=Us(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function qN(e,t){const n=hd(e,!0,Ul);if(!n)return!1;const r=Us(n.provider,n.prefix);return GN(r,n.name,t)}function KN(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ul&&!t&&!e.prefix){let o=!1;return sx(e)&&(e.prefix="",ox(e,(s,i)=>{i&&qN(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Tu({provider:t,prefix:n,name:"a"}))return!1;const r=Us(t,n);return!!Im(r,e)}function E9(e){const t=ax(e);return t?{...Sc,...t}:null}const lx=Object.freeze({width:null,height:null}),cx=Object.freeze({...lx,...af}),YN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ZN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ov(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(YN);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=ZN.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function XN(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function JN(e,t){return e?""+e+""+t:t}function QN(e,t,n){const r=XN(e);return JN(r.defs,t+r.content+n)}const eM=e=>e==="unset"||e==="undefined"||e==="none";function tM(e,t){const n={...Sc,...e},r={...cx,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(h=>{const y=[],m=h.hFlip,b=h.vFlip;let _=h.rotate;m?b?_+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):b&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let v;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:v=o.height/2+o.top,y.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,y.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}_%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),y.length&&(s=QN(s,'',""))});const i=r.width,a=r.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=Ov(f,l/c)):(u=i==="auto"?l:i,f=a===null?Ov(u,c/l):a==="auto"?c:a);const d={},p=(h,y)=>{eM(y)||(d[h]=y.toString())};p("width",u),p("height",f);const g=[o.left,o.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const nM=/\sid="(\S+)"/g,rM="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let oM=0;function sM(e,t=rM){const n=[];let r;for(;r=nM.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(oM++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const tg=Object.create(null);function ux(e,t){tg[e]=t}function ng(e){return tg[e]||tg[""]}function Om(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const gd=Object.create(null),La=["https://api.simplesvg.com","https://api.unisvg.com"],Au=[];for(;La.length>0;)La.length===1||Math.random()>.5?Au.push(La.shift()):Au.push(La.pop());gd[""]=Om({resources:["https://api.iconify.design"].concat(Au)});function fx(e,t){const n=Om(t);return n===null?!1:(gd[e]=n,!0)}function md(e){return gd[e]}function iM(){return Object.keys(gd)}const aM=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let lf=aM();function lM(e){lf=e}function cM(){return lf}function uM(e,t){const n=md(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function fM(e){return e===404}const dM=(e,t,n)=>{const r=[],o=uM(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function pM(e){if(typeof e=="string"){const t=md(e);if(t)return t.path}return"/"}const hM=(e,t,n)=>{if(!lf){n("abort",424);return}let r=pM(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;lf(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(fM(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},gM={prepare:dM,send:hM};function mM(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,l=n[s]||(n[s]=Object.create(null)),c=l[i]||(l[i]=Us(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function dx(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function yM(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:r,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||dx([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let _M=0;function vM(e,t,n){const r=_M++,o=dx.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function bM(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?hd(o,t,n):o;s&&r.push(s)}),r}var wM={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function SM(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const x=Math.floor(Math.random()*E.length);i.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}i=i.concat(E)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function y(E,x){x&&(p=[]),typeof E=="function"&&p.push(E)}function m(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:h}}function b(){l="failed",p.forEach(E=>{E(void 0,u)})}function _(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function v(E,x,N){const I=x!=="success";switch(d=d.filter(O=>O!==E),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=N,b();return}if(I){u=N,d.length||(i.length?S():b());return}if(g(),_(),!e.random){const O=e.resources.indexOf(E.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",p.forEach(O=>{O(N)})}function S(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:E,callback:(N,I)=>{v(x,N,I)}};d.push(x),c++,f=setTimeout(S,e.rotate),n(E,t,x.callback)}return setTimeout(S),m}function px(e){const t={...wM,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const u=SM(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function s(a){return n.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Rv(){}const vp=Object.create(null);function EM(e){if(!vp[e]){const t=md(e);if(!t)return;const n=px(t),r={config:t,redundancy:n};vp[e]=r}return vp[e]}function hx(e,t,n){let r,o;if(typeof e=="string"){const s=ng(e);if(!s)return n(void 0,424),Rv;o=s.send;const i=EM(e);i&&(r=i.redundancy)}else{const s=Om(e);if(s){r=px(s);const i=e.resources?e.resources[0]:"",a=ng(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Rv):r.query(t,o,n)().abort}const Lv="iconify2",jl="iconify",gx=jl+"-count",Pv=jl+"-version",mx=36e5,xM=168,kM=50;function rg(e,t){try{return e.getItem(t)}catch{}}function Rm(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Nv(e,t){try{e.removeItem(t)}catch{}}function og(e,t){return Rm(e,gx,t.toString())}function sg(e){return parseInt(rg(e,gx))||0}const Os={local:!0,session:!0},yx={local:new Set,session:new Set};let Lm=!1;function CM(e){Lm=e}let Xc=typeof window>"u"?{}:window;function _x(e){const t=e+"Storage";try{if(Xc&&Xc[t]&&typeof Xc[t].length=="number")return Xc[t]}catch{}Os[e]=!1}function vx(e,t){const n=_x(e);if(!n)return;const r=rg(n,Pv);if(r!==Lv){if(r){const a=sg(n);for(let l=0;l{const l=jl+a.toString(),c=rg(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Nv(n,l)}};let i=sg(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,og(n,i)):yx[e].add(a))}function bx(){if(!Lm){CM(!0);for(const e in Os)vx(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=Us(r,o);if(!Im(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function TM(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Os)vx(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function AM(e,t){Lm||bx();function n(r){let o;if(!Os[r]||!(o=_x(r)))return;const s=yx[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=sg(o),i>=kM||!og(o,i+1))return;const a={cached:Math.floor(Date.now()/mx),provider:e.provider,data:t};return Rm(o,jl+i.toString(),JSON.stringify(a))}t.lastModified&&!TM(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Mv(){}function IM(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,yM(e)}))}function OM(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ng(n)))return;s.prepare(n,r,o).forEach(a=>{hx(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=Im(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),AM(e,l)}catch(c){console.error(c)}IM(e)})})}))}const RM=(e,t)=>{const n=bM(e,!0,ix()),r=mM(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Mv)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(Us(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=Us(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&OM(l,o[c][u])}),t?vM(t,r,s):Mv};function LM(e,t){switch(e){case"local":case"session":Os[e]=t;break;case"all":for(const n in Os)Os[n]=t;break}}function PM(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in lx?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const NM=/[\s,]+/;function MM(e,t){t.split(NM).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function DM(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}function $M(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function FM(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function UM(e){return"data:image/svg+xml,"+FM(e)}function jM(e){return'url("'+UM(e)+'")'}const Dv={...cx,inline:!1},BM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},HM={display:"inline-block"},ig={backgroundColor:"currentColor"},wx={backgroundColor:"transparent"},$v={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Fv={webkitMask:ig,mask:ig,background:wx};for(const e in Fv){const t=Fv[e];for(const n in $v)t[e+n]=$v[n]}const Iu={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Iu[e+"-flip"]=t,Iu[e.slice(0,1)+"-flip"]=t,Iu[e+"Flip"]=t});function Uv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const jv=(e,t)=>{const n=PM(Dv,t),r={...BM},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const y=t[h];if(y!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&MM(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[h]=DM(y):typeof y=="number"&&(n[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const m=Iu[h];m?(y===!0||y==="true"||y===1)&&(n[m]=!0):Dv[h]===void 0&&(r[h]=y)}}}const l=tM(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...a},Object.assign(r,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=sM(l.body,y?()=>y+"ID"+h++:"iconifyVue"),Tt("svg",r)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=$M(u,{...c,width:f+"",height:d+""});return r.style={...s,"--svg":jM(g),width:Uv(c.width),height:Uv(c.height),...HM,...p?ig:wx,...a},Tt("span",r)};function VM(e){LM(e,!1)}ix(!0);ux("",gM);if(typeof document<"u"&&typeof window<"u"){bx();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!KN(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;fx(n,o)||console.error(r)}catch{console.error(r)}}}}const WM={...Sc,body:""},x9=At({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=hd(e,!1,!0))===null)return this.abortLoading(),null;let o=ax(r);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:RM([r],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){o=Object.assign({},o);const i=n(o.body,r.name,r.prefix,r.provider);typeof i=="string"&&(o.body=i)}const s=["iconify"];return r.prefix!==""&&s.push("iconify--"+r.prefix),r.provider!==""&&s.push("iconify--"+r.provider),{data:o,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return jv(WM,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),jv({...Sc,...t.data},n)}}),zM={getAPIConfig:md,setAPIModule:ux,sendAPIQuery:hx,setFetch:lM,getFetch:cM,listAPIProviders:iM},GM=Je({name:"@nuxt/icon",setup(){var r,o;const e=it(),t=jr().icon;zM.setFetch($fetch.native),VM("all");const n=[];if(t.provider==="server"){const s=((o=(r=e.app)==null?void 0:r.baseURL)==null?void 0:o.replace(/\/$/,""))??"";n.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),t.fallbackToApi&&n.push(t.iconifyApiEndpoint)}else n.push(t.iconifyApiEndpoint);fx("",{resources:n})}});function zo(e){return pa()?(kl(e),!0):!1}function yd(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,n||(r=da(!0),n=r.run(()=>e(...s))),zo(o),n)}function ln(e){return typeof e=="function"?e():He(e)}const cf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qM=e=>e!=null,KM=Object.prototype.toString,YM=e=>KM.call(e)==="[object Object]",uf=()=>+Date.now(),cr=()=>{};function _d(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const Sx=e=>e();function Ex(e,t={}){let n,r,o=cr;const s=a=>{clearTimeout(a),o(),o=cr};return a=>{const l=ln(e),c=ln(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(a())},l)})}}function xx(...e){let t=0,n,r=!0,o=cr,s,i,a,l,c;!qe(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[i,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,o(),o=cr)};return d=>{const p=ln(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!r)?(t=Date.now(),h()):a&&(s=new Promise((y,m)=>{o=c?m:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(h()),u()},Math.max(0,p-g))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,s)}}function ZM(e=Sx){const t=ue(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Qf(t),pause:n,resume:r,eventFilter:o}}function XM(e){return en()}function JM(e,t=200,n={}){return _d(Ex(t,n),e)}function QM(e,t=200,n=!1,r=!0,o=!1){return _d(xx(t,n,r,o),e)}function kx(e,t,n={}){const{eventFilter:r=Sx,...o}=n;return Oe(e,_d(r,t),o)}function Cx(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:s,pause:i,resume:a,isActive:l}=ZM(r);return{stop:kx(e,t,{...o,eventFilter:s}),pause:i,resume:a,isActive:l}}function vd(e,t=!0,n){XM()?Rn(e,n):t?e():qn(e)}function eD(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const i=ue(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=ln(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(r&&cf&&c(),qe(t)||typeof t=="function"){const u=Oe(t,()=>{i.value&&cf&&c()});zo(u)}return zo(l),{isActive:i,pause:l,resume:c}}function k9(e,t,n={}){const{debounce:r=0,maxWait:o=void 0,...s}=n;return kx(e,t,{...s,eventFilter:Ex(r,{maxWait:o})})}function tD(e,t,n){const r=Oe(e,(...o)=>(qn(()=>r()),t(...o)),n);return r}function C9(e,t,n){let r;qe(n)?r={evaluating:n}:r=n||{};const{lazy:o=!1,evaluating:s=void 0,shallow:i=!0,onError:a=cr}=r,l=ue(!o),c=i?fr(t):ue(t);let u=0;return rd(async f=>{if(!l.value)return;u++;const d=u;let p=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await e(h=>{f(()=>{s&&(s.value=!1),p||h()})});d===u&&(c.value=g)}catch(g){a(g)}finally{s&&d===u&&(s.value=!1),p=!0}}),o?J(()=>(l.value=!0,c.value)):c}function or(e){var t;const n=ln(e);return(t=n==null?void 0:n.$el)!=null?t:n}const On=cf?window:void 0,nD=cf?window.document:void 0;function Dr(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=On):[t,n,r,o]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),l=Oe(()=>[or(t),ln(o)],([u,f])=>{if(i(),!u)return;const d=YM(f)?{...f}:f;s.push(...n.flatMap(p=>r.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return zo(c),c}function rD(){const e=ue(!1),t=en();return t&&Rn(()=>{e.value=!0},t),e}function Pm(e){const t=rD();return J(()=>(t.value,!!e()))}function oD(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:o=On}=t,s=ue(!1),i=r?1e3/r:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pn&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=ue(!1),i=c=>{s.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},l=rd(()=>{r.value&&(a(),o=n.matchMedia(ln(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return zo(()=>{l(),a(),o=void 0}),s}const Jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qc="__vueuse_ssr_handlers__",sD=iD();function iD(){return Qc in Jc||(Jc[Qc]=Jc[Qc]||{}),Jc[Qc]}function aD(e,t){return sD[e]||t}function lD(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const cD={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Bv="vueuse-storage";function uD(e,t,n,r={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=On,eventFilter:d,onError:p=O=>{console.error(O)},initOnMounted:g}=r,h=(u?fr:ue)(typeof t=="function"?t():t);if(!n)try{n=aD("getDefaultStorage",()=>{var O;return(O=On)==null?void 0:O.localStorage})()}catch(O){p(O)}if(!n)return h;const y=ln(t),m=lD(y),b=(o=r.serializer)!=null?o:cD[m],{pause:_,resume:v}=Cx(h,()=>E(h.value),{flush:s,deep:i,eventFilter:d});f&&a&&vd(()=>{Dr(f,"storage",N),Dr(f,Bv,I),g&&N()}),g||N();function S(O,U){f&&f.dispatchEvent(new CustomEvent(Bv,{detail:{key:e,oldValue:O,newValue:U,storageArea:n}}))}function E(O){try{const U=n.getItem(e);if(O==null)S(U,null),n.removeItem(e);else{const L=b.write(O);U!==L&&(n.setItem(e,L),S(U,L))}}catch(U){p(U)}}function x(O){const U=O?O.newValue:n.getItem(e);if(U==null)return l&&y!=null&&n.setItem(e,b.write(y)),y;if(!O&&c){const L=b.read(U);return typeof c=="function"?c(L,y):m==="object"&&!Array.isArray(L)?{...y,...L}:L}else return typeof U!="string"?U:b.read(U)}function N(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){h.value=y;return}if(!(O&&O.key!==e)){_();try{(O==null?void 0:O.newValue)!==b.write(h.value)&&(h.value=x(O))}catch(U){p(U)}finally{O?qn(v):v()}}}}function I(O){N(O.detail)}return h}function Ax(e){return Tx("(prefers-color-scheme: dark)",e)}function fD(e={}){const{document:t=nD}=e;if(!t)return ue("visible");const n=ue(t.visibilityState);return Dr(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function dD(e,t,n={}){const{window:r=On,...o}=n;let s;const i=Pm(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=J(()=>Array.isArray(e)?e.map(f=>or(f)):[or(e)]),c=Oe(l,f=>{if(a(),i.value&&r){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return zo(u),{isSupported:i,stop:u}}function T9(e,t={width:0,height:0},n={}){const{window:r=On,box:o="content-box"}=n,s=J(()=>{var f,d;return(d=(f=or(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=ue(t.width),a=ue(t.height),{stop:l}=dD(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&s.value){const p=or(e);if(p){const g=p.getBoundingClientRect();i.value=g.width,a.value=g.height}}else if(d){const p=Array.isArray(d)?d:[d];i.value=p.reduce((g,{inlineSize:h})=>g+h,0),a.value=p.reduce((g,{blockSize:h})=>g+h,0)}else i.value=f.contentRect.width,a.value=f.contentRect.height},n);vd(()=>{const f=or(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=Oe(()=>or(e),f=>{i.value=f?t.width:0,a.value=f?t.height:0});function u(){l(),c()}return{width:i,height:a,stop:u}}function pD(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=.1,window:i=On,immediate:a=!0}=n,l=Pm(()=>i&&"IntersectionObserver"in i),c=J(()=>{const g=ln(e);return(Array.isArray(g)?g:[g]).map(or).filter(qM)});let u=cr;const f=ue(a),d=l.value?Oe(()=>[c.value,or(r),f.value],([g,h])=>{if(u(),!f.value||!g.length)return;const y=new IntersectionObserver(t,{root:or(h),rootMargin:o,threshold:s});g.forEach(m=>m&&y.observe(m)),u=()=>{y.disconnect(),u=cr}},{immediate:a,flush:"post"}):cr,p=()=>{u(),d(),f.value=!1};return zo(p),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}function Ix(e,t={}){const{window:n=On,scrollTarget:r,threshold:o=0}=t,s=ue(!1);return pD(e,i=>{let a=s.value,l=0;for(const c of i)c.time>=l&&(l=c.time,a=c.isIntersecting);s.value=a},{root:r,window:n,threshold:o}),s}const hD=["mousemove","mousedown","resize","keydown","touchstart","wheel"],gD=6e4;function mD(e=gD,t={}){const{initialState:n=!1,listenForVisibilityChange:r=!0,events:o=hD,window:s=On,eventFilter:i=xx(50)}=t,a=ue(n),l=ue(uf());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},f=_d(i,()=>{l.value=uf(),u()});if(s){const d=s.document;for(const p of o)Dr(s,p,f,{passive:!0});r&&Dr(d,"visibilitychange",()=>{d.hidden||f()}),u()}return{idle:a,lastActive:l,reset:u}}const Hv=1;function yD(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=cr,onScroll:s=cr,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=On,onError:u=x=>{console.error(x)}}=t,f=ue(0),d=ue(0),p=J({get(){return f.value},set(x){h(x,void 0)}}),g=J({get(){return d.value},set(x){h(void 0,x)}});function h(x,N){var I,O,U,L;if(!c)return;const G=ln(e);if(!G)return;(U=G instanceof Document?c.document.body:G)==null||U.scrollTo({top:(I=ln(N))!=null?I:g.value,left:(O=ln(x))!=null?O:p.value,behavior:ln(l)});const oe=((L=G==null?void 0:G.document)==null?void 0:L.documentElement)||(G==null?void 0:G.documentElement)||G;p!=null&&(f.value=oe.scrollLeft),g!=null&&(d.value=oe.scrollTop)}const y=ue(!1),m=Jt({left:!0,right:!1,top:!0,bottom:!1}),b=Jt({left:!1,right:!1,top:!1,bottom:!1}),_=x=>{y.value&&(y.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,o(x))},v=JM(_,n+r),S=x=>{var N;if(!c)return;const I=((N=x==null?void 0:x.document)==null?void 0:N.documentElement)||(x==null?void 0:x.documentElement)||or(x),{display:O,flexDirection:U}=getComputedStyle(I),L=I.scrollLeft;b.left=Lf.value;const G=Math.abs(L)<=(i.left||0),oe=Math.abs(L)+I.clientWidth>=I.scrollWidth-(i.right||0)-Hv;O==="flex"&&U==="row-reverse"?(m.left=oe,m.right=G):(m.left=G,m.right=oe),f.value=L;let ce=I.scrollTop;x===c.document&&!ce&&(ce=c.document.body.scrollTop),b.top=ced.value;const q=Math.abs(ce)<=(i.top||0),ne=Math.abs(ce)+I.clientHeight>=I.scrollHeight-(i.bottom||0)-Hv;O==="flex"&&U==="column-reverse"?(m.top=ne,m.bottom=q):(m.top=q,m.bottom=ne),d.value=ce},E=x=>{var N;if(!c)return;const I=(N=x.target.documentElement)!=null?N:x.target;S(I),y.value=!0,v(x),s(x)};return Dr(e,"scroll",n?QM(E,n,!0,!1):E,a),vd(()=>{try{const x=ln(e);if(!x)return;S(x)}catch(x){u(x)}}),Dr(e,"scrollend",_,a),{x:p,y:g,isScrolling:y,arrivedState:m,directions:b,measure(){const x=ln(e);c&&x&&S(x)}}}function _D(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function A9(e,t,n={}){var r;const{direction:o="bottom",interval:s=100,canLoadMore:i=()=>!0}=n,a=Jt(yD(e,{...n,offset:{[o]:(r=n.distance)!=null?r:0,...n.offset}})),l=ue(),c=J(()=>!!l.value),u=J(()=>_D(ln(e))),f=Ix(u);function d(){if(a.measure(),!u.value||!f.value||!i(u.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:h,clientWidth:y}=u.value,m=o==="bottom"||o==="top"?p<=g:h<=y;(a.arrivedState[o]||m)&&(l.value||(l.value=Promise.all([t(a),new Promise(b=>setTimeout(b,s))]).finally(()=>{l.value=null,qn(()=>d())})))}return Oe(()=>[a.arrivedState[o],f.value],d,{immediate:!0}),{isLoading:c}}function Ox(e,t,n={}){const{window:r=On}=n;return uD(e,t,r==null?void 0:r.localStorage,n)}function vD(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:s}=e,i=ue(uf()+n),a=()=>i.value=uf()+n,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?oD(l,{immediate:r}):eD(l,o,{immediate:r});return t?{timestamp:i,...c}:i}function bD(e="history",t={}){const{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:o=!1,write:s=!0,window:i=On}=t;if(!i)return Jt(n);const a=Jt({});function l(){if(e==="history")return i.location.search||"";if(e==="hash"){const m=i.location.hash||"",b=m.indexOf("?");return b>0?m.slice(b):""}else return(i.location.hash||"").replace(/^#/,"")}function c(m){const b=m.toString();if(e==="history")return`${b?`?${b}`:""}${i.location.hash||""}`;if(e==="hash-params")return`${i.location.search||""}${b?`#${b}`:""}`;const _=i.location.hash||"#",v=_.indexOf("?");return v>0?`${_.slice(0,v)}${b?`?${b}`:""}`:`${_}${b?`?${b}`:""}`}function u(){return new URLSearchParams(l())}function f(m){const b=new Set(Object.keys(a));for(const _ of m.keys()){const v=m.getAll(_);a[_]=v.length>1?v:m.get(_)||"",b.delete(_)}Array.from(b).forEach(_=>delete a[_])}const{pause:d,resume:p}=Cx(a,()=>{const m=new URLSearchParams("");Object.keys(a).forEach(b=>{const _=a[b];Array.isArray(_)?_.forEach(v=>m.append(b,v)):r&&_==null||o&&!_?m.delete(b):m.set(b,_)}),g(m)},{deep:!0});function g(m,b){d(),b&&f(m),i.history.replaceState(i.history.state,i.document.title,i.location.pathname+c(m)),p()}function h(){s&&g(u(),!0)}Dr(i,"popstate",h,!1),e!=="history"&&Dr(i,"hashchange",h,!1);const y=u();return y.keys().next().value?f(y):Object.assign(a,n),a}function Rx(e={}){const{window:t=On,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=ue(n),a=ue(r),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};if(l(),vd(l),Dr("resize",l,{passive:!0}),o){const c=Tx("(orientation: portrait)");Oe(c,()=>l())}return{width:i,height:a}}const wD=Symbol("nuxt-ui.slideover"),SD=Je(e=>{const t=fr({component:"div",props:{}});e.vueApp.provide(wD,t)}),ED=Symbol("nuxt-ui.modal"),xD=Je(e=>{const t=fr({component:"div",props:{}});e.vueApp.provide(ED,t)}),Nm="-";function kD(e){const t=TD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(Nm);return a[0]===""&&a.length!==1&&a.shift(),Lx(a,t)||CD(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Lx(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Lx(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Nm);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Vv=/^\[(.+)\]$/;function CD(e){if(Vv.test(e)){const t=Vv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function TD(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ID(Object.entries(e.classGroups),n).forEach(([s,i])=>{ag(i,r,s,t)}),r}function ag(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Wv(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(AD(o)){ag(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ag(i,Wv(t,s),n,r)})})}function Wv(e,t){let n=e;return t.split(Nm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function AD(e){return e.isThemeGetter}function ID(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function OD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const Px="!";function RD(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length;function i(a){const l=[];let c=0,u=0,f;for(let y=0;yu?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}}return n?function(l){return n({className:l,parseClassName:i})}:i}function LD(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function PD(e){return{cache:OD(e.cacheSize),parseClassName:RD(e),...kD(e)}}const ND=/\s+/;function MD(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(ND).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(i);let f=!!u,d=r(f?c.substring(0,u):c);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=LD(a).join(":");return{isTailwindClass:!0,modifierId:l?p+Px:p,classGroupId:d,originalClassName:i,hasPostfixModifier:f}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=i,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function zn(){let e=0,t,n,r="";for(;ef(u),e());return n=PD(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=MD(l,n);return o(l,u),u}return function(){return s(zn.apply(null,arguments))}}function ct(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Mx=/^\[(?:([a-z-]+):)?(.+)\]$/i,DD=/^\d+\/\d+$/,$D=new Set(["px","full","screen"]),FD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,BD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zr(e){return Es(e)||$D.has(e)||DD.test(e)}function Eo(e){return ya(e,"length",ZD)}function Es(e){return!!e&&!Number.isNaN(Number(e))}function eu(e){return ya(e,"number",Es)}function Pa(e){return!!e&&Number.isInteger(Number(e))}function VD(e){return e.endsWith("%")&&Es(e.slice(0,-1))}function Te(e){return Mx.test(e)}function xo(e){return FD.test(e)}const WD=new Set(["length","size","percentage"]);function zD(e){return ya(e,WD,Dx)}function GD(e){return ya(e,"position",Dx)}const qD=new Set(["image","url"]);function KD(e){return ya(e,qD,JD)}function YD(e){return ya(e,"",XD)}function Na(){return!0}function ya(e,t,n){const r=Mx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function ZD(e){return UD.test(e)&&!jD.test(e)}function Dx(){return!1}function XD(e){return BD.test(e)}function JD(e){return HD.test(e)}function cg(){const e=ct("colors"),t=ct("spacing"),n=ct("blur"),r=ct("brightness"),o=ct("borderColor"),s=ct("borderRadius"),i=ct("borderSpacing"),a=ct("borderWidth"),l=ct("contrast"),c=ct("grayscale"),u=ct("hueRotate"),f=ct("invert"),d=ct("gap"),p=ct("gradientColorStops"),g=ct("gradientColorStopPositions"),h=ct("inset"),y=ct("margin"),m=ct("opacity"),b=ct("padding"),_=ct("saturate"),v=ct("scale"),S=ct("sepia"),E=ct("skew"),x=ct("space"),N=ct("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",Te,t],L=()=>[Te,t],G=()=>["",zr,Eo],oe=()=>["auto",Es,Te],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],Se=()=>["","0",Te],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Es,eu],We=()=>[Es,Te];return{cacheSize:500,separator:":",theme:{colors:[Na],spacing:[zr,Eo],blur:["none","",xo,Te],brightness:be(),borderColor:[e],borderRadius:["none","","full",xo,Te],borderSpacing:L(),borderWidth:G(),contrast:be(),grayscale:Se(),hueRotate:We(),invert:Se(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[VD,Eo],inset:U(),margin:U(),opacity:be(),padding:L(),saturate:be(),scale:be(),sepia:Se(),skew:We(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[xo]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),Te]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pa,Te]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:Se()}],shrink:[{shrink:Se()}],order:[{order:["first","last","none",Pa,Te]}],"grid-cols":[{"grid-cols":[Na]}],"col-start-end":[{col:["auto",{span:["full",Pa,Te]},Te]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[Na]}],"row-start-end":[{row:["auto",{span:[Pa,Te]},Te]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[xo]},xo]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xo,Eo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",eu]}],"font-family":[{font:[Na]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Es,eu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zr,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zr,Eo]}],"underline-offset":[{"underline-offset":["auto",zr,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),GD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:q()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[zr,Te]}],"outline-w":[{outline:[zr,Eo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[zr,Eo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xo,YD]}],"shadow-color":[{shadow:[Na]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xo,Te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:We()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:We()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Pa,Te]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zr,Eo,eu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function QD(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:o,extend:s={},override:i={}}){el(e,"cacheSize",t),el(e,"prefix",n),el(e,"separator",r),el(e,"experimentalParseClassName",o);for(const a in i)e$(e[a],i[a]);for(const a in s)t$(e[a],s[a]);return e}function el(e,t,n){n!==void 0&&(e[t]=n)}function e$(e,t){if(t)for(const n in t)el(e,n,t[n])}function t$(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function n$(e,...t){return typeof e=="function"?lg(cg,e,...t):lg(()=>QD(cg(),e),...t)}const qi=lg(cg);function r$(e,t){const n={...e};for(const r of t)delete n[r];return n}function o$(e,t,n){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const Mm={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},s$=e=>Object.keys(Mm).reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),i$=n$({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),a$=bm((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=i$(e[t],n),!0});function Ec(e,...t){return e==="override"?vE({},...t):a$({},...t)}function zv(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}const l$="inherit",c$="currentColor",u$="transparent",f$="#000",d$="#fff",p$={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},h$={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},g$={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},m$={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},y$={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},_$={50:"color-mix(in srgb, var(--colors-red-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-red-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-red-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-red-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-red-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-red-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-red-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-red-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-red-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-red-900) calc(100% * ), transparent)",950:"#450a0a"},v$={50:"color-mix(in srgb, var(--colors-orange-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-orange-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-orange-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-orange-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-orange-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-orange-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-orange-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-orange-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-orange-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-orange-900) calc(100% * ), transparent)",950:"#431407"},b$={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},w$={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},S$={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},E$={50:"color-mix(in srgb, var(--colors-green-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-green-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-green-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-green-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-green-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-green-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-green-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-green-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-green-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-green-900) calc(100% * ), transparent)",950:"#052e16"},x$={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},k$={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},C$={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},T$={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},A$={50:"color-mix(in srgb, var(--colors-blue-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-blue-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-blue-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-blue-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-blue-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-blue-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-blue-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-blue-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-blue-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-blue-900) calc(100% * ), transparent)",950:"#172554"},I$={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},O$={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},R$={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},L$={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},P$={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},N$={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},M$={white:"color-mix(in srgb, var(--colors-basic-white) calc(100% * ), transparent)",black:"color-mix(in srgb, var(--colors-basic-black) calc(100% * ), transparent)"},D$={50:"color-mix(in srgb, var(--colors-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-grey-900) calc(100% * ), transparent)"},$$={50:"color-mix(in srgb, var(--colors-true-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-true-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-true-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-true-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-true-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-true-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-true-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-true-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-true-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-true-grey-900) calc(100% * ), transparent)"},F$={50:"color-mix(in srgb, var(--colors-light-blue-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-light-blue-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-light-blue-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-light-blue-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-light-blue-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-light-blue-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-light-blue-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-light-blue-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-light-blue-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-light-blue-900) calc(100% * ), transparent)"},U$={50:"color-mix(in srgb, var(--colors-warm-grey-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-warm-grey-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-warm-grey-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-warm-grey-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-warm-grey-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-warm-grey-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-warm-grey-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-warm-grey-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-warm-grey-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-warm-grey-900) calc(100% * ), transparent)"},j$={50:"color-mix(in srgb, var(--colors-light-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-light-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-light-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-light-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-light-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-light-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-light-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-light-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-light-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-light-900) calc(100% * ), transparent)"},B$={50:"color-mix(in srgb, var(--colors-dark-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-dark-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-dark-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-dark-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-dark-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-dark-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-dark-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-dark-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-dark-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-dark-900) calc(100% * ), transparent)"},H$={50:"color-mix(in srgb, var(--colors-informative-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-informative-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-informative-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-informative-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-informative-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-informative-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-informative-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-informative-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-informative-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-informative-900) calc(100% * ), transparent)"},V$={50:"color-mix(in srgb, var(--colors-positive-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-positive-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-positive-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-positive-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-positive-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-positive-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-positive-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-positive-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-positive-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-positive-900) calc(100% * ), transparent)"},W$={50:"color-mix(in srgb, var(--colors-warning-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-warning-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-warning-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-warning-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-warning-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-warning-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-warning-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-warning-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-warning-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-warning-900) calc(100% * ), transparent)"},z$={50:"color-mix(in srgb, var(--colors-negative-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-negative-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-negative-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-negative-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-negative-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-negative-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-negative-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-negative-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-negative-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-negative-900) calc(100% * ), transparent)"},G$={50:"color-mix(in srgb, var(--colors-brand-light-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-brand-light-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-brand-light-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-brand-light-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-brand-light-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-brand-light-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-brand-light-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-brand-light-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-brand-light-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-brand-light-900) calc(100% * ), transparent)"},q$={50:"color-mix(in srgb, var(--colors-brand-dark-50) calc(100% * ), transparent)",100:"color-mix(in srgb, var(--colors-brand-dark-100) calc(100% * ), transparent)",200:"color-mix(in srgb, var(--colors-brand-dark-200) calc(100% * ), transparent)",300:"color-mix(in srgb, var(--colors-brand-dark-300) calc(100% * ), transparent)",400:"color-mix(in srgb, var(--colors-brand-dark-400) calc(100% * ), transparent)",500:"color-mix(in srgb, var(--colors-brand-dark-500) calc(100% * ), transparent)",600:"color-mix(in srgb, var(--colors-brand-dark-600) calc(100% * ), transparent)",700:"color-mix(in srgb, var(--colors-brand-dark-700) calc(100% * ), transparent)",800:"color-mix(in srgb, var(--colors-brand-dark-800) calc(100% * ), transparent)",900:"color-mix(in srgb, var(--colors-brand-dark-900) calc(100% * ), transparent)"},K$={default:"color-mix(in srgb, var(--colors-background) calc(100% * ), transparent)","default-strong":"color-mix(in srgb, var(--colors-background-default-strong) calc(100% * ), transparent)",neutral:{strong:"color-mix(in srgb, var(--colors-background-neutral-strong) calc(100% * ), transparent)",muted:"color-mix(in srgb, var(--colors-background-neutral-muted) calc(100% * ), transparent)",onSubtle:"color-mix(in srgb, var(--colors-background-neutral-on-subtle) calc(100% * ), transparent)",subtle:"color-mix(in srgb, var(--colors-background-neutral-subtle) calc(100% * ), transparent)",surface:"color-mix(in srgb, var(--colors-background-neutral-surface) calc(100% * ), transparent)"}},Y$={primary:"color-mix(in srgb, var(--colors-content-primary) calc(100% * ), transparent)",secondary:"color-mix(in srgb, var(--colors-content-secondary) calc(100% * ), transparent)",tertiary:"color-mix(in srgb, var(--colors-content-tertiary) calc(100% * ), transparent)","inverted-primary":"color-mix(in srgb, var(--colors-content-inverted-primary) calc(100% * ), transparent)","inverted-secondary":"color-mix(in srgb, var(--colors-content-inverted-secondary) calc(100% * ), transparent)",dark:"color-mix(in srgb, var(--colors-content-dark) calc(100% * ), transparent)",positive:"color-mix(in srgb, var(--colors-content-positive) calc(100% * ), transparent)",warning:"color-mix(in srgb, var(--colors-content-warning) calc(100% * ), transparent)",negative:"color-mix(in srgb, var(--colors-content-negative) calc(100% * ), transparent)"},Z$={interaction:{normal:"color-mix(in srgb, var(--colors-border-interaction-normal) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-border-interaction-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-border-interaction-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-border-interaction-selected) calc(100% * ), transparent)",neutral:{normal:"color-mix(in srgb, var(--colors-border-interaction-neutral-normal) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-border-interaction-neutral-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-border-interaction-neutral-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-border-interaction-neutral-selected) calc(100% * ), transparent)"},alert:"color-mix(in srgb, var(--colors-border-interaction-alert) calc(100% * ), transparent)"},neutral:{subtle:"color-mix(in srgb, var(--colors-border-neutral-subtle) calc(100% * ), transparent)",strong:"color-mix(in srgb, var(--colors-border-neutral-strong) calc(100% * ), transparent)",onSubtle:{subtle:"color-mix(in srgb, var(--colors-border-neutral-on-subtle-subtle) calc(100% * ), transparent)",strong:"color-mix(in srgb, var(--colors-border-neutral-on-subtle-strong) calc(100% * ), transparent)"}}},X$={primary:{default:"color-mix(in srgb, var(--colors-action-primary) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-primary-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-primary-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-primary-selected) calc(100% * ), transparent)",subtle:{default:"color-mix(in srgb, var(--colors-action-primary-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-primary-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-primary-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-primary-subtle-selected) calc(100% * ), transparent)"}},neutral:{default:"color-mix(in srgb, var(--colors-action-neutral) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-selected) calc(100% * ), transparent)",subtle:{default:"color-mix(in srgb, var(--colors-action-neutral-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-subtle-selected) calc(100% * ), transparent)"},onSubtle:{default:"color-mix(in srgb, var(--colors-action-neutral-on-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-selected) calc(100% * ), transparent)"},onSubtleSecondary:{default:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-subtle-secondary-selected) calc(100% * ), transparent)"},onDefault:{default:"color-mix(in srgb, var(--colors-action-neutral-on-default) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-default-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-default-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-default-selected) calc(100% * ), transparent)",inverted:{default:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-neutral-on-default-inverted-selected) calc(100% * ), transparent)"}}},onBlack:{default:"color-mix(in srgb, var(--colors-action-on-black) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-on-black-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-on-black-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-on-black-selected) calc(100% * ), transparent)"},"white-transparent":{subtle:{default:"color-mix(in srgb, var(--colors-action-white-transparent-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-white-transparent-subtle-selected) calc(100% * ), transparent)"},default:"color-mix(in srgb, var(--colors-action-white-transparent) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-white-transparent-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-white-transparent-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-white-transparent-selected) calc(100% * ), transparent)"},"black-transparent":{subtle:{default:"color-mix(in srgb, var(--colors-action-black-transparent-subtle) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-black-transparent-subtle-selected) calc(100% * ), transparent)"},default:"color-mix(in srgb, var(--colors-action-black-transparent) calc(100% * ), transparent)",hover:"color-mix(in srgb, var(--colors-action-black-transparent-hover) calc(100% * ), transparent)",active:"color-mix(in srgb, var(--colors-action-black-transparent-active) calc(100% * ), transparent)",selected:"color-mix(in srgb, var(--colors-action-black-transparent-selected) calc(100% * ), transparent)"}},J$={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},Q$={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},tu={inherit:l$,current:c$,transparent:u$,black:f$,white:d$,slate:p$,gray:h$,zinc:g$,neutral:m$,stone:y$,red:_$,orange:v$,amber:b$,yellow:w$,lime:S$,green:E$,emerald:x$,teal:k$,cyan:C$,sky:T$,blue:A$,indigo:I$,violet:O$,purple:R$,fuchsia:L$,pink:P$,rose:N$,basic:M$,grey:D$,trueGrey:$$,lightBlue:F$,warmGrey:U$,light:j$,dark:B$,informative:H$,positive:V$,warning:W$,negative:z$,brandLight:G$,brandDark:q$,background:K$,content:Y$,border:Z$,action:X$,primary:J$,cool:Q$,dark_mode_grey:"#9d9ea1",footer_color:"#666666",settings_box_border:"#75797d40",radio_group_bg_color:"#0d0e10",radio_group_text_color:"#2f3438",radio_group_text_color_dark:"#9d9ea1",radio_group_text_hover_dark:"#f0f0f1",radio_group_text_selected_dark:"#26272e",accuweather_orange:"#FF8700",settings_title_dark:"#F5F5F6",border_header_summary:"#9D9EA11A",news_tile_color:"#212121",weather_label:"#616161",weather_label_dark:"#727377",yahoo_logo:"#6101D1",magnifying_glass:"#5F6368",radio_group_text_selected_hover_dark:"#F0F0F1",three_dots_menu:"#333333",vertical_tab_shadow:"#dddddd",searchbox_results_bg:"#f0f0f0",searchbox_results_bg_dark:"#ffffff33",video_row_background:"#E6E9EF",onelaunch_green:"#13B115",onelaunch_grey:"#F7F8FB",onelaunch_dark:"#2B2B2B",onelaunch_border_grey:"#E2E5EB",onelaunch_grey_text:"#4B4E5C",onelaunch_grey_highlight:"#404040",onelaunch_color_red:"#FFC8C4",onelaunch_color_red_dark:"#911D14",onelaunch_color_green:"#C5EDD0",onelaunch_color_green_dark:"#8CC29A",onelaunch_color_text:"#191919",onelaunch_color_header:"#171717",onelaunch_white_text:"#FFFFFF",onelaunch_background_dark:"#191919",onelaunch_header_background_dark:"#171717",onelaunch_background_grey:"#2F2F2F",onelaunch_button_blue:"#096bfb",onelaunch_button_red:"#FF3C3C",onelaunch_ui_shades_50_blur:"#FFFFFFE6",onelaunch_ui_shades_50:"#FFFFFF",onelaunch_ui_shades_100:"#F8FAFC",onelaunch_ui_shades_200:"#f2f4f6",onelaunch_ui_shades_300:"#EAECEE",onelaunch_ui_shades_400:"#e3e6e9",onelaunch_ui_shades_500:"#dcdfe2",onelaunch_ui_shades_600:"#d2d6da",onelaunch_ui_shades_700:"#c7cbd0",onelaunch_ui_shades_800:"#a1a5a9",onelaunch_ui_shades_900:"#75797d",onelaunch_dark_shades_100:"#2F3438",onelaunch_dark_shades_200:"#222629",onelaunch_dark_shades_300:"#0F1213",onelaunch_dark_shades_300_08:"#0F121314",onelaunch_dark_shades_400:"#000000",onelaunch_primary_default:"#005EB7",onelaunch_primary_active:"#337FC6",onelaunch_primary_hover:"#1A6FC0",onelaunch_primary_shades_100:"#98ecfe",onelaunch_primary_shades_200:"#60ccfe",onelaunch_primary_shades_400:"#0078D4",onelaunch_primary_shades_600:"#003D92",onelaunch_secondary_default:"#03d4bf",onelaunch_secondary_hover:"#08e0cb",onelaunch_secondary_active:"#1bead5",onelaunch_green_active:"#0aa477",onelaunch_validation_default:"#de3905"},eF=Je(()=>{const e=jr(),t=Ae(),n=J(()=>{const o=tu[e.ui.primary],s=tu[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||tu.green).map(([i,a])=>`--color-primary-${i}: ${zv(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); ${Object.entries(s||tu.cool).map(([i,a])=>`--color-gray-${i}: ${zv(a)};`).join(` `)} } .dark { --color-primary-DEFAULT: var(--color-primary-400); } `}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}Fs(r)}),tF="__NUXT_COLOR_MODE__",nF="nuxt-color-mode",Gr=window[tF]||{},rF=Je(e=>{const t=ni("color-mode",()=>Jt({preference:Gr.preference,value:Gr.value,unknown:!1,forced:!1})).value;Bt().afterEach(o=>{const s=o.meta.colorMode;s&&s!=="system"?(t.value=s,t.forced=!0):(s==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?Gr.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Gr.getColorScheme())}))}Oe(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=Gr.getColorScheme(),r()):t.value=o,(s=window.localStorage)==null||s.setItem(nF,o))},{immediate:!0}),Oe(()=>t.value,(o,s)=>{Gr.removeColorScheme(s),Gr.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Gr.preference,t.value=Gr.value,t.unknown=!1)}),e.provide("colorMode",t)});/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const ff=typeof window<"u",ts=(e,t=!1)=>t?Symbol.for(e):Symbol(e),oF=(e,t,n)=>sF({l:e,k:t,s:n}),sF=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pt=e=>typeof e=="number"&&isFinite(e),iF=e=>$m(e)==="[object Date]",df=e=>$m(e)==="[object RegExp]",bd=e=>Fe(e)&&Object.keys(e).length===0,zt=Object.assign,aF=Object.create,tt=(e=null)=>aF(e);let Gv;const Dm=()=>Gv||(Gv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:tt());function qv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const lF=Object.prototype.hasOwnProperty;function sr(e,t){return lF.call(e,t)}const Nt=Array.isArray,et=e=>typeof e=="function",le=e=>typeof e=="string",vt=e=>typeof e=="boolean",Ve=e=>e!==null&&typeof e=="object",cF=e=>Ve(e)&&et(e.then)&&et(e.catch),$x=Object.prototype.toString,$m=e=>$x.call(e),Fe=e=>$m(e)==="[object Object]",uF=e=>e==null?"":Nt(e)||Fe(e)&&e.toString===$x?JSON.stringify(e,null,2):String(e);function Fm(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}function fF(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const nu=e=>!Ve(e)||Nt(e);function Fi(e,t){if(nu(e)||nu(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(Ve(r[s])&&!Ve(o[s])&&(o[s]=Array.isArray(r[s])?[]:tt()),nu(o[s])||nu(r[s])?o[s]=r[s]:n.push({src:r[s],des:o[s]}))})}}const lo=[],ug={},dF=[()=>Yt(()=>import("./DB7imAev.js"),[],import.meta.url)],wd=[],Fx="@nuxtjs/i18n",pF=!1,hF="i18n_redirected",gF="nuxtI18nInternal",Kv="nuxt-i18n-slp";function mF(e){return e.map(t=>typeof t=="string"?{code:t}:t)}function Sd(e){return typeof e=="string"?e:e!=null?e.toString():"(null)"}function Yv(e,t,{defaultLocale:n,strategy:r,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s,differentDomains:i}){const a=r!=="no_prefix"||i;let l=Sd(e)+(a?o+t:"");return t===n&&r==="prefix_and_default"&&(l+=o+s),l}function yF(e,t){return et(e)?e(t):e}function _F(e,t){const n=[];for(const[r,o]of t.entries()){const s=e.find(i=>i.language.toLowerCase()===o.toLowerCase());if(s){n.push({code:s.code,score:1-r/t.length});break}}for(const[r,o]of t.entries()){const s=o.split("-")[0].toLowerCase(),i=e.find(a=>a.language.split("-")[0].toLowerCase()===s);if(i){n.push({code:i.code,score:.999-r/t.length});break}}return n}function vF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function bF(e,t,{matcher:n=_F,comparer:r=vF}={}){const o=[];for(const i of e){const{code:a}=i,l=i.language||a;o.push({code:a,language:l})}const s=n(o,t);return s.length===0?"":(s.length>1&&s.sort(r),s[0].code)}function Um(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const wF=`(${lo.join("|")})`,Zv=Um(lo);function jm(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=it().public.i18n,n=`(?:${e}${t})?`,r=new RegExp(`${e}${wF}${n}$`,"i");return s=>{let i=null;return typeof s=="string"?(i=s.match(Zv),(i==null?void 0:i[1])??""):(s.name?i=Sd(s.name).match(r):s.path&&(i=s.path.match(Zv)),(i==null?void 0:i[1])??"")}}const ml=new Map;async function SF(e,t){const n={messages:{}};for(const r of e){const{default:o}=await r(),s=et(o)?await t.runWithContext(()=>o()):o;Fi(s,n)}return n}function Ux(e,t){if(e===!1)return[];if(Array.isArray(e))return e;let n=[];if(typeof e=="string")return t.every(o=>o!==e)&&n.push(e),n;const r=[...t,"default"];for(const o of r)o in e&&(n=[...n,...e[o].filter(Boolean)]);return n}async function EF(e,{key:t,load:n},r){let o=null;try{const s=await n().then(i=>"default"in i?i.default:i);et(s)?o=await r.runWithContext(()=>s(e)):(o=s,o!=null&&ml&&ml.set(t,o))}catch(s){console.error("Failed locale loading: "+s.message)}return o}async function fg(e,t,n,r){const o=t[e];if(o==null)return;const s={};for(const i of o){let a=null;ml&&ml.has(i.key)&&i.cache?a=ml.get(i.key):a=await r.runWithContext(()=>EF(e,i,r)),a!=null&&Fi(a,s)}n(e,s)}function xF(e){return e!=null&&"global"in e&&"mode"in e}function kF(e){return e!=null&&!("__composer"in e)&&"locale"in e&&qe(e.locale)}function jx(e){return e!=null&&"__composer"in e}function pf(e){return xF(e)?e.global:e}function tl(e){const t=pf(e);return kF(t)?t:jx(t)?t.__composer:t}function Ki(e,t){const n=He(t);return n==null||!n.name?void 0:Sd(n.name).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function Bm(e,t,n){var o;if(typeof t=="string"&&yr(t,{acceptRelative:!0}))return t;const r=Hm(e,t,n);return r==null?"":((o=r.redirectedFrom)==null?void 0:o.fullPath)||r.fullPath}function Ed(e,t,n){return Hm(e,t,n)??void 0}function CF(e){if(typeof e!="string")return Object.assign({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=Mh(e);return{path:t,query:cd(n),hash:r}}return{name:e}}const TF=e=>!!e.path&&!e.name;function AF(e,t,n){const r=e.runtimeConfig.public.i18n;if(TF(t)){const s=OF(e,t,n),i=Ki(e,s);return i?(s.name=Yv(i,n,r),s):(NF(e.runtimeConfig)({...r,currentLocale:n})&&(t.path="/"+n+t.path),t.path=(r.trailingSlash?Nl:ud)(t.path,!0),t)}t.name||(t.name=Ki(e,e.router.currentRoute.value));const o=Yv(t.name,n,r);return e.router.hasRoute(o)&&(t.name=o),t}function Hm(e,t,n){try{const r=n||He(pf(e.i18n).locale),o=CF(t),s=e.router.resolve(AF(e,o,r));return s.name?s:e.router.resolve(t)}catch(r){if(Cr(r,1))return null}}function IF(e,t){var r;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return He(e.metaState.value);const n=t.meta||{};return((r=He(n))==null?void 0:r[gF])||{}}function hf(e,t,n){const r=n??e.router.currentRoute.value,o=Ki(e,r);if(!o)return"";const s=IF(e,r)[t],i={name:o,params:Object.assign({},r.params,s),fullPath:r.fullPath,query:r.query,hash:r.hash,path:r.path,meta:r.meta},a=Bm(e,i,t);return MF(e.runtimeConfig)(a,t)}function OF(e,t,n){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const r=t.path.slice(1),o=t.path[0]+n+(r&&"/"+r),s=e.router.options.routes.find(i=>i.path===o);return s==null?t:e.router.resolve(Object.assign({},t,s,{path:o}))}function Bx(e){return{i18n:e??Ae().$i18n,router:Bt(),runtimeConfig:it(),metaState:ni("nuxt-i18n-meta",()=>({}))}}async function Hx(e,t=!1){const n=Ae(),{differentDomains:r,skipSettingLocaleOnNavigate:o}=n.$config.public.i18n,s=xc(),i=He(n.$i18n.locale),a=He(n.$i18n.localeCodes);function l(d=i){s===!1||!s.useCookie||o||n.$i18n.setLocaleCookie(d)}const c=await n.$i18n.onBeforeLanguageSwitch(i,e,t,n);if(c&&a.includes(c)){if(i===c)return l(),!1;e=c}if(!e||!t&&r||i===e)return l(),!1;const u=He(n.$i18n.fallbackLocale),f=n.$i18n.mergeLocaleMessage.bind(n.$i18n);if(u){const d=Ux(u,[e]);await Promise.all(d.map(p=>fg(p,ug,f,n)))}return await fg(e,ug,f,n),o?!1:(l(e),n._vueI18n.__setLocale(e),await n.$i18n.onLanguageSwitched(i,e),!0)}function RF(e,t,n,r){const o=Ae(),{strategy:s,defaultLocale:i,differentDomains:a,multiDomainLocales:l}=o.$config.public.i18n,c=xc(),u=VF(e,r,n);if(u.locale&&u.from!=null&&lo.includes(u.locale))return u.locale;let f="";a||l?f||(f=WF(wd,s,e)):s!=="no_prefix"&&(f||(f=t));const d=(lo.includes(u.locale)||r&&lo.includes(r))&&c&&c.useCookie&&r;return f||(f=d||n||i||""),f}function Vx({to:e,from:t,locale:n,routeLocale:r},o=!1){if(r===n||Ae().$i18n.strategy==="no_prefix")return"";const s=Bx();let i=hf(s,n,e);return o&&!i&&(i=Bm(s,e.fullPath,n)),Nh(i,e.fullPath)||t&&Nh(i,t.fullPath)?"":i}const LF=()=>ni(Fx+":redirect",()=>"");async function Wx({nuxtApp:e,locale:t,route:n,redirectPath:r},o=!1){const{rootRedirect:s,differentDomains:i,multiDomainLocales:a,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(n.path==="/"&&s)return typeof s=="string"?r="/"+s:(r="/"+s.path,s.statusCode),r=e.$localePath(r,t),Oo(r,{});if(!(l&&(e._vueI18n.__pendingLocale=t,e._vueI18n.__pendingLocalePromise=new Promise(f=>{e._vueI18n.__resolvePendingLocalePromise=()=>f()}),!o))){if(a&&u==="prefix_except_default"){const f=xd(),d=c.find(g=>{var h;if(typeof g!="string")return(h=g.defaultForDomains)==null?void 0:h.find(y=>y===f)}),p=typeof d!="string"?d==null?void 0:d.code:void 0;if(n.path.startsWith(`/${p}`))return Oo(n.path.replace(`/${p}`,""));if(!n.path.startsWith(`/${t}`)&&t!==p){const h=jm()(n.path);return Oo(h!==""?`/${t+n.path.replace(`/${h}`,"")}`:`/${t+(n.path==="/"?"":n.path)}`)}return r&&n.path!==r?Oo(r):void 0}if(i){const f=LF();f.value&&f.value!==r&&(f.value="",window.location.assign(r))}else if(r)return Oo(r)}}function PF({currentLocale:e,defaultLocale:t,strategy:n}){return n!=="no_prefix"&&!(e===t&&(n==="prefix_and_default"||n==="prefix_except_default"))}function NF(e=it()){return t=>PF(t)&&!e.public.i18n.differentDomains}function MF(e=it()){return(t,n)=>{if(!e.public.i18n.differentDomains)return t;const r=Gx(n);return r&&ei(r,t)||t}}function DF(){return()=>{const e=Ae(),{baseUrl:t,defaultLocale:n,differentDomains:r}=e.$config.public.i18n;if(et(t))return t(e);const o=et(n)?n():n;if(r&&o){const s=Gx(o);if(s)return s}return t}}function zx(e){return Fx+" "+e}function $F(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function js(e,t=Bx()){return(...n)=>e(t,...n)}function FF(){let e;return navigator.languages&&(e=bF(wd,navigator.languages)),e}function UF(){const e=xc(),t=e&&e.cookieKey||hF,n=new Date,r={expires:new Date(n.setDate(n.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(r.domain=e.cookieDomain),ku(t,r)}function jF(e,t,n){if(t===!1||!t.useCookie)return;const r=e.value??void 0;if(r!=null){if(lo.includes(r))return r;if(n)return e.value=n,n;e.value=void 0}}function BF(e,t,n){n===!1||!n.useCookie||(e.value=t)}const HF={locale:"",reason:"disabled"};function VF(e,t,n=""){const r=xc();if(!r)return HF;const o=Ae(),s=o.$i18n.strategy;if(!o._vueI18n.__firstAccess)return{locale:s==="no_prefix"?n:"",reason:"first_access_only"};const{redirectOn:a,alwaysRedirect:l,useCookie:c,fallbackLocale:u}=r,f=le(e)?e:e.path;if(s!=="no_prefix"){if(a==="root"&&f!=="/")return{locale:"",reason:"not_redirect_on_root"};if(a==="no prefix"&&!l&&f.match(Um(lo)))return{locale:"",reason:"not_redirect_on_no_prefix"}}let d;const p=c&&t||void 0;c&&(d="cookie");const g=o.$i18n.getBrowserLocale();p||(d="navigator_or_header");const h=p||g,y=h||u||"";return!h&&u&&(d="fallback"),{locale:y,from:d}}function xd(){let e;return e=window.location.host,e}function WF(e,t,n){let r=xd()||"";const o=Ve(n)?n.path:le(n)?n:"";if(r){let s;const i=e.filter(a=>{if(a&&a.domain){let l=a.domain;return yr(a.domain)&&(l=a.domain.replace(/(http|https):\/\//,"")),l===r}else if(Array.isArray(a==null?void 0:a.domains))return a.domains.includes(r);return!1});if(i.length===1)s=i[0];else if(i.length>1)if(t==="no_prefix")console.warn(zx("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s=i[0];else{if(n&&o&&o!==""){const a=o.match(Um(i.map(l=>l.code)));a&&a.length>1&&(s=i.find(l=>l.code===a[1]))}s||(s=i.find(a=>Array.isArray(a.defaultForDomains)?a.defaultForDomains.includes(r):a.domainDefault))}if(s)return s.code;r=""}return r}function Gx(e){var i,a,l;const t=it();Ae();const n=xd(),r=t.public.i18n,o=wd.find(c=>c.code===e),s=((a=(i=r==null?void 0:r.domainLocales)==null?void 0:i[e])==null?void 0:a.domain)||(o==null?void 0:o.domain)||((l=o==null?void 0:o.domains)==null?void 0:l.find(c=>c===n));if(s){if(yr(s,{strict:!0}))return s;let c;return c=new URL(window.location.origin).protocol,c+"//"+s}console.warn(zx("Could not find domain name for locale "+e))}const xc=(e=it().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;function zF(e,t){const{multiDomainLocales:n,strategy:r,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s}=e.$config.public.i18n;if(!n||!(r==="prefix_except_default"||r==="prefix_and_default"))return;const i=Bt(),a=[o,s].join("");for(const l of i.getRoutes()){const c=Sd(l.name);if(c.endsWith(a)){i.removeRoute(c);continue}const u=c.split(o)[1];u===t&&i.addRoute({...l,path:l.path===`/${u}`?"/":l.path.replace(`/${u}`,"")})}}function GF(e){const{locales:t,defaultLocale:n,multiDomainLocales:r}=e.$config.public.i18n;let o=n||"";if(!r)return o;const s=xd();if(t.some(a=>typeof a!="string"&&Array.isArray(a.defaultForDomains))){const a=t.find(l=>typeof l=="string"||!Array.isArray(l.defaultForDomains)?!1:l.defaultForDomains.includes(s??""));o=(a==null?void 0:a.code)??""}return o}function qF({key:e,seo:t}){const n=Ae(),{defaultDirection:r}=it().public.i18n,o=He(n.$i18n.locale),s=mF(He(n.$i18n.locales)),i=s.find(a=>a.code===o)||{code:o};return{key:e,seo:t,locale:o,locales:s,currentDir:i.dir||r,currentLocale:i,currentLanguage:i.language,baseUrl:YF()}}function KF(e,{dir:t=!0,lang:n=!0,seo:r=!0,key:o="hid"}){const s={htmlAttrs:{},link:[],meta:[]},i=qF({seo:r,key:o});return i.baseUrl||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),i.locales==null||i.baseUrl==null||(t&&(s.htmlAttrs.dir=i.currentDir),n&&i.currentLanguage&&(s.htmlAttrs.lang=i.currentLanguage),r&&i.locale&&i.locales&&(s.link.push(...ZF(e,i),...XF(e,i)),s.meta.push(...JF(e,i),...QF(i),...eU(i)))),s}function YF(){const e=Ae(),t=tl(e.$i18n);return ei(He(t.baseUrl),e.$config.app.baseURL)}function ZF(e,t){const{defaultLocale:n,strategy:r}=it().public.i18n,o=[];if(r==="no_prefix")return o;const s=new Map;for(const l of t.locales){if(!l.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[c,u]=l.language.split("-");c&&u&&(l.isCatchallLocale||!s.has(c))&&s.set(c,l),s.set(l.language,l)}const i=e.runtimeConfig.public.i18n.experimental.alternateLinkCanonicalQueries===!0,a=i?e.router.resolve({query:{}}):void 0;!e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR&&i&&(a.meta=e.router.currentRoute.value.meta);for(const[l,c]of s.entries()){const u=hf(e,c.code,a),f=dg(e,t);let d=pg(u,t.baseUrl);f&&i&&(d=`${d}?${f}`),u&&o.push({[t.key]:`i18n-alt-${l}`,rel:"alternate",href:d,hreflang:l})}if(n){const l=hf(e,n,a),c=dg(e,t);let u=pg(l,t.baseUrl);c&&i&&(u=`${u}?${c}`),l&&o.push({[t.key]:"i18n-xd",rel:"alternate",href:u,hreflang:"x-default"})}return o}function qx(e,t){const n=e.router.currentRoute.value,r=Ed(e,{...n,path:void 0,name:Ki(e,n)});if(!r)return"";let o=pg(r.path,t.baseUrl);const s=dg(e,t);return s&&(o=`${o}?${s}`),o}function XF(e,t){const n=qx(e,t);return n?[{[t.key]:"i18n-can",rel:"canonical",href:n}]:[]}function dg(e,t){const n=e.router.currentRoute.value,r=Ed(e,{...n,path:void 0,name:Ki(e,n)}),o=Ve(t.seo)&&t.seo.canonicalQueries||[],s=(r==null?void 0:r.query)||{},i=new URLSearchParams;for(const a of o)if(a in s){const l=s[a];Nt(l)?l.forEach(c=>i.append(a,c||"")):i.append(a,l||"")}return i.toString()||void 0}function JF(e,t){const n=qx(e,t);return n?[{[t.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function QF(e){return!e.currentLocale||!e.currentLanguage?[]:[{[e.key]:"i18n-og",property:"og:locale",content:Kx(e.currentLanguage)}]}function eU(e){return e.locales.filter(n=>n.language&&n.language!==e.currentLanguage).map(n=>({[e.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:Kx(n.language)}))}function Kx(e){return(e||"").replace(/-/g,"_")}function pg(e,t){return e.match(/^https?:\/\//)?e:ei(t,e)}/*! * message-compiler v11.1.2 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function tU(e,t,n){return{line:e,column:t,offset:n}}function hg(e,t,n){return{start:e,end:t}}const Xe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},nU=17;function kd(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function rU(e){throw e}const qr=" ",oU="\r",mn=` `,sU="\u2028",iU="\u2029";function aU(e){const t=e;let n=0,r=1,o=1,s=0;const i=x=>t[x]===oU&&t[x+1]===mn,a=x=>t[x]===mn,l=x=>t[x]===iU,c=x=>t[x]===sU,u=x=>i(x)||a(x)||l(x)||c(x),f=()=>n,d=()=>r,p=()=>o,g=()=>s,h=x=>i(x)||l(x)||c(x)?mn:t[x],y=()=>h(n),m=()=>h(n+s);function b(){return s=0,u(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function _(){return i(n+s)&&s++,s++,t[n+s]}function v(){n=0,r=1,o=1,s=0}function S(x=0){s=x}function E(){const x=n+s;for(;x!==n;)b();s=0}return{index:f,line:d,column:p,peekOffset:g,charAt:h,currentChar:y,currentPeek:m,next:b,peek:_,reset:v,resetPeek:S,skipToPeek:E}}const ko=void 0,lU=".",Xv="'",cU="tokenizer";function uU(e,t={}){const n=t.location!==!1,r=aU(e),o=()=>r.index(),s=()=>tU(r.line(),r.column(),r.index()),i=s(),a=o(),l={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(k,T,D,...j){const z=c();if(T.column+=D,T.offset+=D,u){const K=n?hg(z.startLoc,T):null,P=kd(k,K,{domain:cU,args:j});u(P)}}function d(k,T,D){k.endLoc=s(),k.currentType=T;const j={type:T};return n&&(j.loc=hg(k.startLoc,k.endLoc)),D!=null&&(j.value=D),j}const p=k=>d(k,13);function g(k,T){return k.currentChar()===T?(k.next(),T):(f(Xe.EXPECTED_TOKEN,s(),0,T),"")}function h(k){let T="";for(;k.currentPeek()===qr||k.currentPeek()===mn;)T+=k.currentPeek(),k.peek();return T}function y(k){const T=h(k);return k.skipToPeek(),T}function m(k){if(k===ko)return!1;const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function b(k){if(k===ko)return!1;const T=k.charCodeAt(0);return T>=48&&T<=57}function _(k,T){const{currentType:D}=T;if(D!==2)return!1;h(k);const j=m(k.currentPeek());return k.resetPeek(),j}function v(k,T){const{currentType:D}=T;if(D!==2)return!1;h(k);const j=k.currentPeek()==="-"?k.peek():k.currentPeek(),z=b(j);return k.resetPeek(),z}function S(k,T){const{currentType:D}=T;if(D!==2)return!1;h(k);const j=k.currentPeek()===Xv;return k.resetPeek(),j}function E(k,T){const{currentType:D}=T;if(D!==7)return!1;h(k);const j=k.currentPeek()===".";return k.resetPeek(),j}function x(k,T){const{currentType:D}=T;if(D!==8)return!1;h(k);const j=m(k.currentPeek());return k.resetPeek(),j}function N(k,T){const{currentType:D}=T;if(!(D===7||D===11))return!1;h(k);const j=k.currentPeek()===":";return k.resetPeek(),j}function I(k,T){const{currentType:D}=T;if(D!==9)return!1;const j=()=>{const K=k.currentPeek();return K==="{"?m(k.peek()):K==="@"||K==="|"||K===":"||K==="."||K===qr||!K?!1:K===mn?(k.peek(),j()):U(k,!1)},z=j();return k.resetPeek(),z}function O(k){h(k);const T=k.currentPeek()==="|";return k.resetPeek(),T}function U(k,T=!0){const D=(z=!1,K="")=>{const P=k.currentPeek();return P==="{"||P==="@"||!P?z:P==="|"?!(K===qr||K===mn):P===qr?(k.peek(),D(!0,qr)):P===mn?(k.peek(),D(!0,mn)):!0},j=D();return T&&k.resetPeek(),j}function L(k,T){const D=k.currentChar();return D===ko?ko:T(D)?(k.next(),D):null}function G(k){const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function oe(k){return L(k,G)}function ce(k){const T=k.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function q(k){return L(k,ce)}function ne(k){const T=k.charCodeAt(0);return T>=48&&T<=57}function re(k){return L(k,ne)}function Se(k){const T=k.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function lt(k){return L(k,Se)}function be(k){let T="",D="";for(;T=re(k);)D+=T;return D}function We(k){let T="";for(;;){const D=k.currentChar();if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D===qr||D===mn)if(U(k))T+=D,k.next();else{if(O(k))break;T+=D,k.next()}else T+=D,k.next()}return T}function je(k){y(k);let T="",D="";for(;T=q(k);)D+=T;return k.currentChar()===ko&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D}function tn(k){y(k);let T="";return k.currentChar()==="-"?(k.next(),T+=`-${be(k)}`):T+=be(k),k.currentChar()===ko&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),T}function ze(k){return k!==Xv&&k!==mn}function ht(k){y(k),g(k,"'");let T="",D="";for(;T=L(k,ze);)T==="\\"?D+=W(k):D+=T;const j=k.currentChar();return j===mn||j===ko?(f(Xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),j===mn&&(k.next(),g(k,"'")),D):(g(k,"'"),D)}function W(k){const T=k.currentChar();switch(T){case"\\":case"'":return k.next(),`\\${T}`;case"u":return Q(k,T,4);case"U":return Q(k,T,6);default:return f(Xe.UNKNOWN_ESCAPE_SEQUENCE,s(),0,T),""}}function Q(k,T,D){g(k,T);let j="";for(let z=0;z{const j=k.currentChar();return j==="{"||j==="@"||j==="|"||j==="("||j===")"||!j||j===qr?D:(D+=j,k.next(),T(D))};return T("")}function C(k){y(k);const T=g(k,"|");return y(k),T}function A(k,T){let D=null;switch(k.currentChar()){case"{":return T.braceNest>=1&&f(Xe.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),D=d(T,2,"{"),y(k),T.braceNest++,D;case"}":return T.braceNest>0&&T.currentType===2&&f(Xe.EMPTY_PLACEHOLDER,s(),0),k.next(),D=d(T,3,"}"),T.braceNest--,T.braceNest>0&&y(k),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),D;case"@":return T.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=$(k,T)||p(T),T.braceNest=0,D;default:{let z=!0,K=!0,P=!0;if(O(k))return T.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,D;if(T.braceNest>0&&(T.currentType===4||T.currentType===5||T.currentType===6))return f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),T.braceNest=0,B(k,T);if(z=_(k,T))return D=d(T,4,je(k)),y(k),D;if(K=v(k,T))return D=d(T,5,tn(k)),y(k),D;if(P=S(k,T))return D=d(T,6,ht(k)),y(k),D;if(!z&&!K&&!P)return D=d(T,12,ie(k)),f(Xe.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,D.value),y(k),D;break}}return D}function $(k,T){const{currentType:D}=T;let j=null;const z=k.currentChar();switch((D===7||D===8||D===11||D===9)&&(z===mn||z===qr)&&f(Xe.INVALID_LINKED_FORMAT,s(),0),z){case"@":return k.next(),j=d(T,7,"@"),T.inLinked=!0,j;case".":return y(k),k.next(),d(T,8,".");case":":return y(k),k.next(),d(T,9,":");default:return O(k)?(j=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,j):E(k,T)||N(k,T)?(y(k),$(k,T)):x(k,T)?(y(k),d(T,11,te(k))):I(k,T)?(y(k),z==="{"?A(k,T)||j:d(T,10,we(k))):(D===7&&f(Xe.INVALID_LINKED_FORMAT,s(),0),T.braceNest=0,T.inLinked=!1,B(k,T))}}function B(k,T){let D={type:13};if(T.braceNest>0)return A(k,T)||p(T);if(T.inLinked)return $(k,T)||p(T);switch(k.currentChar()){case"{":return A(k,T)||p(T);case"}":return f(Xe.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),d(T,3,"}");case"@":return $(k,T)||p(T);default:{if(O(k))return D=d(T,1,C(k)),T.braceNest=0,T.inLinked=!1,D;if(U(k))return d(T,0,We(k));break}}return D}function H(){const{currentType:k,offset:T,startLoc:D,endLoc:j}=l;return l.lastType=k,l.lastOffset=T,l.lastStartLoc=D,l.lastEndLoc=j,l.offset=o(),l.startLoc=s(),r.currentChar()===ko?d(l,13):B(r,l)}return{nextToken:H,currentOffset:o,currentPosition:s,context:c}}const fU="parser",dU=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pU(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function hU(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,_,v,...S){const E=m.currentPosition();if(E.offset+=v,E.column+=v,n){const x=t?hg(_,E):null,N=kd(b,x,{domain:fU,args:S});n(N)}}function o(m,b,_){const v={type:m};return t&&(v.start=b,v.end=b,v.loc={start:_,end:_}),v}function s(m,b,_,v){t&&(m.end=b,m.loc&&(m.loc.end=_))}function i(m,b){const _=m.context(),v=o(3,_.offset,_.startLoc);return v.value=b,s(v,m.currentOffset(),m.currentPosition()),v}function a(m,b){const _=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(5,v,S);return E.index=parseInt(b,10),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function l(m,b){const _=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(4,v,S);return E.key=b,m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function c(m,b){const _=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(9,v,S);return E.value=b.replace(dU,pU),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function u(m){const b=m.nextToken(),_=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(8,v,S);return b.type!==11?(r(m,Xe.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),E.value="",s(E,v,S),{nextConsumeToken:b,node:E}):(b.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,xr(b)),E.value=b.value||"",s(E,m.currentOffset(),m.currentPosition()),{node:E})}function f(m,b){const _=m.context(),v=o(7,_.offset,_.startLoc);return v.value=b,s(v,m.currentOffset(),m.currentPosition()),v}function d(m){const b=m.context(),_=o(6,b.offset,b.startLoc);let v=m.nextToken();if(v.type===8){const S=u(m);_.modifier=S.node,v=S.nextConsumeToken||m.nextToken()}switch(v.type!==9&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),v=m.nextToken(),v.type===2&&(v=m.nextToken()),v.type){case 10:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=f(m,v.value||"");break;case 4:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=l(m,v.value||"");break;case 5:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=a(m,v.value||"");break;case 6:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=c(m,v.value||"");break;default:{r(m,Xe.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const S=m.context(),E=o(7,S.offset,S.startLoc);return E.value="",s(E,S.offset,S.startLoc),_.key=E,s(_,S.offset,S.startLoc),{nextConsumeToken:v,node:_}}}return s(_,m.currentOffset(),m.currentPosition()),{node:_}}function p(m){const b=m.context(),_=b.currentType===1?m.currentOffset():b.offset,v=b.currentType===1?b.endLoc:b.startLoc,S=o(2,_,v);S.items=[];let E=null;do{const I=E||m.nextToken();switch(E=null,I.type){case 0:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(i(m,I.value||""));break;case 5:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(a(m,I.value||""));break;case 4:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(l(m,I.value||""));break;case 6:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(c(m,I.value||""));break;case 7:{const O=d(m);S.items.push(O.node),E=O.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const x=b.currentType===1?b.lastOffset:m.currentOffset(),N=b.currentType===1?b.lastEndLoc:m.currentPosition();return s(S,x,N),S}function g(m,b,_,v){const S=m.context();let E=v.items.length===0;const x=o(1,b,_);x.cases=[],x.cases.push(v);do{const N=p(m);E||(E=N.items.length===0),x.cases.push(N)}while(S.currentType!==13);return E&&r(m,Xe.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),s(x,m.currentOffset(),m.currentPosition()),x}function h(m){const b=m.context(),{offset:_,startLoc:v}=b,S=p(m);return b.currentType===13?S:g(m,_,v,S)}function y(m){const b=uU(m,zt({},e)),_=b.context(),v=o(0,_.offset,_.startLoc);return t&&v.loc&&(v.loc.source=m),v.body=h(b),e.onCacheKey&&(v.cacheKey=e.onCacheKey(m)),_.currentType!==13&&r(b,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,m[_.offset]||""),s(v,b.currentOffset(),b.currentPosition()),v}return{parse:y}}function xr(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function gU(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Jv(e,t){for(let n=0;nQv(n)),e}function Qv(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function l(h,y){i.code+=h}function c(h,y=!0){const m=y?r:"";l(o?m+" ".repeat(h):m)}function u(h=!0){const y=++i.indentLevel;h&&c(y)}function f(h=!0){const y=--i.indentLevel;h&&c(y)}function d(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:d,helper:h=>`_${h}`,needIndent:()=>i.needIndent}}function vU(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Yi(e,t.key),t.modifier?(e.push(", "),Yi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function bU(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let s=0;s{const n=le(t.mode)?t.mode:"normal",r=le(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,s=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=_U(e,{filename:r,breakLineCode:o,needIndent:s});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),i.length>0&&(a.push(`const { ${Fm(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Yi(a,e),a.deindent(s),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function xU(e,t={}){const n=zt({},t),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,a=hU(n).parse(e);return r?(s&&yU(a),o&&_i(a),{ast:a,code:""}):(mU(a,n),EU(a,n))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function kU(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dm().__INTLIFY_PROD_DEVTOOLS__=!1)}function bp(e){return n=>CU(n,e)}function CU(e,t){const n=AU(t);if(n==null)throw Bl(0);if(Wm(n)===1){const s=OU(n);return e.plural(s.reduce((i,a)=>[...i,eb(e,a)],[]))}else return eb(e,n)}const TU=["b","body"];function AU(e){return ns(e,TU)}const IU=["c","cases"];function OU(e){return ns(e,IU,[])}function eb(e,t){const n=LU(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=NU(t).reduce((o,s)=>[...o,gg(e,s)],[]);return e.normalize(r)}}const RU=["s","static"];function LU(e){return ns(e,RU)}const PU=["i","items"];function NU(e){return ns(e,PU,[])}function gg(e,t){const n=Wm(t);switch(n){case 3:return ru(t,n);case 9:return ru(t,n);case 4:{const r=t;if(sr(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(sr(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Bl(n)}case 5:{const r=t;if(sr(r,"i")&&Pt(r.i))return e.interpolate(e.list(r.i));if(sr(r,"index")&&Pt(r.index))return e.interpolate(e.list(r.index));throw Bl(n)}case 6:{const r=t,o=FU(r),s=jU(r);return e.linked(gg(e,s),o?gg(e,o):void 0,e.type)}case 7:return ru(t,n);case 8:return ru(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const MU=["t","type"];function Wm(e){return ns(e,MU)}const DU=["v","value"];function ru(e,t){const n=ns(e,DU);if(n)return n;throw Bl(t)}const $U=["m","modifier"];function FU(e){return ns(e,$U)}const UU=["k","key"];function jU(e){const t=ns(e,UU);if(t)return t;throw Bl(6)}function ns(e,t,n){for(let r=0;re;let ou=tt();function Zi(e){return Ve(e)&&Wm(e)===0&&(sr(e,"b")||sr(e,"body"))}function HU(e,t={}){let n=!1;const r=t.onError||rU;return t.onError=o=>{n=!0,r(o)},{...xU(e,t),detectError:n}}function VU(e,t){if(le(e)){vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||BU)(e),o=ou[r];if(o)return o;const{ast:s,detectError:i}=HU(e,{...t,location:!1,jit:!0}),a=bp(s);return i?a:ou[r]=a}else{const n=e.cacheKey;if(n){const r=ou[n];return r||(ou[n]=bp(e))}else return bp(e)}}let Hl=null;function WU(e){Hl=e}function zU(e,t,n){Hl&&Hl.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const GU=qU("function:translate");function qU(e){return t=>Hl&&Hl.emit(e,t)}const so={INVALID_ARGUMENT:nU,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},KU=24;function io(e){return kd(e,null,void 0)}function zm(e,t){return t.locale!=null?tb(t.locale):tb(e.locale)}let wp;function tb(e){if(le(e))return e;if(et(e)){if(e.resolvedOnce&&wp!=null)return wp;if(e.constructor.name==="Function"){const t=e();if(cF(t))throw io(so.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return wp=t}else throw io(so.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw io(so.NOT_SUPPORT_LOCALE_TYPE)}function YU(e,t,n){return[...new Set([n,...Nt(t)?t:Ve(t)?Object.keys(t):le(t)?[t]:[n]])]}function Yx(e,t,n){const r=le(n)?n:gf,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;Nt(i);)i=nb(s,i,t);const a=Nt(t)||!Fe(t)?t:t.default?t.default:null;i=le(a)?[a]:a,Nt(i)&&nb(s,i,!1),o.__localeChainCache.set(r,s)}return s}function nb(e,t,n){let r=!0;for(let o=0;o{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,r=4,d[0]();else{if(o=0,i===void 0||(i=nj(i),i===!1))return!1;d[1]()}};function p(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,a="\\"+g,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&p())){if(l=tj(s),f=rs[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=s,u()===!1))))return;if(r===7)return t}}const rb=new Map;function oj(e,t){return Ve(e)?e[t]:null}function sj(e,t){if(!Ve(e))return null;let n=rb.get(t);if(n||(n=rj(t),n&&rb.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function aj(){return{upper:(e,t)=>t==="text"&&le(e)?e.toUpperCase():t==="vnode"&&Ve(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&le(e)?e.toLowerCase():t==="vnode"&&Ve(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&le(e)?sb(e):t==="vnode"&&Ve(e)&&"__v_isVNode"in e?sb(e.children):e}}let Zx;function lj(e){Zx=e}let Xx;function cj(e){Xx=e}let Jx;function uj(e){Jx=e}let Qx=null;const fj=e=>{Qx=e},dj=()=>Qx;let ek=null;const ib=e=>{ek=e},pj=()=>ek;let ab=0;function hj(e={}){const t=et(e.onWarn)?e.onWarn:fF,n=le(e.version)?e.version:ij,r=le(e.locale)||et(e.locale)?e.locale:gf,o=et(r)?gf:r,s=Nt(e.fallbackLocale)||Fe(e.fallbackLocale)||le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Fe(e.messages)?e.messages:Sp(o),a=Fe(e.datetimeFormats)?e.datetimeFormats:Sp(o),l=Fe(e.numberFormats)?e.numberFormats:Sp(o),c=zt(tt(),e.modifiers,aj()),u=e.pluralRules||tt(),f=et(e.missing)?e.missing:null,d=vt(e.missingWarn)||df(e.missingWarn)?e.missingWarn:!0,p=vt(e.fallbackWarn)||df(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,h=!!e.unresolving,y=et(e.postTranslation)?e.postTranslation:null,m=Fe(e.processor)?e.processor:null,b=vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,v=et(e.messageCompiler)?e.messageCompiler:Zx,S=et(e.messageResolver)?e.messageResolver:Xx||oj,E=et(e.localeFallbacker)?e.localeFallbacker:Jx||YU,x=Ve(e.fallbackContext)?e.fallbackContext:void 0,N=e,I=Ve(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,O=Ve(N.__numberFormatters)?N.__numberFormatters:new Map,U=Ve(N.__meta)?N.__meta:{};ab++;const L={version:n,cid:ab,locale:r,fallbackLocale:s,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:h,postTranslation:y,processor:m,warnHtmlMessage:b,escapeParameter:_,messageCompiler:v,messageResolver:S,localeFallbacker:E,fallbackContext:x,onWarn:t,__meta:U};return L.datetimeFormats=a,L.numberFormats=l,L.__datetimeFormatters=I,L.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&zU(L,n,U),L}const Sp=e=>({[e]:tt()});function Gm(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,n,t,o);return le(a)?a:t}else return t}function Ma(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function gj(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function mj(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{tk.includes(l)?i[l]=n[l]:s[l]=n[l]}),le(r)?s.locale=r:Fe(r)&&(i=r),Fe(o)&&(i=o),[s.key||"",a,s,i]}function cb(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function ub(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=yg(...t),d=vt(u.missingWarn)?u.missingWarn:e.missingWarn;vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=zm(e,u),h=i(e,o,g);if(!le(l)||l==="")return new Intl.NumberFormat(g,f).format(c);let y={},m,b=null;const _="number format";for(let E=0;E{nk.includes(l)?i[l]=n[l]:s[l]=n[l]}),le(r)?s.locale=r:Fe(r)&&(i=r),Fe(o)&&(i=o),[s.key||"",a,s,i]}function fb(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const yj=e=>e,_j=e=>"",vj="text",bj=e=>e.length===0?"":Fm(e),wj=uF;function db(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Sj(e){const t=Pt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Pt(e.named.count)||Pt(e.named.n))?Pt(e.named.count)?e.named.count:Pt(e.named.n)?e.named.n:t:t}function Ej(e,t){t.count||(t.count=e),t.n||(t.n=e)}function xj(e={}){const t=e.locale,n=Sj(e),r=Ve(e.pluralRules)&&le(t)&&et(e.pluralRules[t])?e.pluralRules[t]:db,o=Ve(e.pluralRules)&&le(t)&&et(e.pluralRules[t])?db:void 0,s=m=>m[r(n,m.length,o)],i=e.list||[],a=m=>i[m],l=e.named||tt();Pt(e.pluralIndex)&&Ej(n,l);const c=m=>l[m];function u(m,b){const _=et(e.messages)?e.messages(m,!!b):Ve(e.messages)?e.messages[m]:!1;return _||(e.parent?e.parent.message(m):_j)}const f=m=>e.modifiers?e.modifiers[m]:yj,d=Fe(e.processor)&&et(e.processor.normalize)?e.processor.normalize:bj,p=Fe(e.processor)&&et(e.processor.interpolate)?e.processor.interpolate:wj,g=Fe(e.processor)&&le(e.processor.type)?e.processor.type:vj,y={list:a,named:c,plural:s,linked:(m,...b)=>{const[_,v]=b;let S="text",E="";b.length===1?Ve(_)?(E=_.modifier||E,S=_.type||S):le(_)&&(E=_||E):b.length===2&&(le(_)&&(E=_||E),le(v)&&(S=v||S));const x=u(m,!0)(y),N=S==="vnode"&&Nt(x)&&E?x[0]:x;return E?f(E)(N,S):N},message:u,type:g,interpolate:p,normalize:d,values:zt(tt(),i,l)};return y}const pb=()=>"",Vn=e=>et(e);function hb(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=_g(...t),u=vt(c.missingWarn)?c.missingWarn:e.missingWarn,f=vt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=vt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=le(c.default)||vt(c.default)?vt(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:null,h=n||g!=null&&(le(g)||et(g)),y=zm(e,c);d&&kj(c);let[m,b,_]=p?[l,y,a[y]||tt()]:rk(e,l,y,i,f,u),v=m,S=l;if(!p&&!(le(v)||Zi(v)||Vn(v))&&h&&(v=g,S=v),!p&&(!(le(v)||Zi(v)||Vn(v))||!le(b)))return o?Cd:l;let E=!1;const x=()=>{E=!0},N=Vn(v)?v:ok(e,l,b,v,S,x);if(E)return v;const I=Aj(e,b,_,c),O=xj(I),U=Cj(e,N,O),L=r?r(U,l):U;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:le(l)?l:Vn(v)?v.key:"",locale:b||(Vn(v)?v.locale:""),format:le(v)?v:Vn(v)?v.source:"",message:L};G.meta=zt({},e.__meta,dj()||{}),GU(G)}return L}function kj(e){Nt(e.list)?e.list=e.list.map(t=>le(t)?qv(t):t):Ve(e.named)&&Object.keys(e.named).forEach(t=>{le(e.named[t])&&(e.named[t]=qv(e.named[t]))})}function rk(e,t,n,r,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f=tt(),d,p=null;const g="translate";for(let h=0;hr;return c.locale=n,c.key=t,c}const l=i(r,Tj(e,n,o,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function Cj(e,t,n){return t(n)}function _g(...e){const[t,n,r]=e,o=tt();if(!le(t)&&!Pt(t)&&!Vn(t)&&!Zi(t))throw io(so.INVALID_ARGUMENT);const s=Pt(t)?String(t):(Vn(t),t);return Pt(n)?o.plural=n:le(n)?o.default=n:Fe(n)&&!bd(n)?o.named=n:Nt(n)&&(o.list=n),Pt(r)?o.plural=r:le(r)?o.default=r:Fe(r)&&zt(o,r),[s,o]}function Tj(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>oF(t,n,i)}}function Aj(e,t,n,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:o,pluralRules:s,messages:(p,g)=>{let h=i(n,p);if(h==null&&(u||g)){const[,,y]=rk(u||e,p,t,a,l,c);h=i(y,p)}if(le(h)||Zi(h)){let y=!1;const b=ok(e,p,t,h,p,()=>{y=!0});return y?pb:b}else return Vn(h)?h:pb}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Pt(r.plural)&&(d.pluralIndex=r.plural),d}kU();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const Ij="10.0.5";function Oj(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dm().__INTLIFY_PROD_DEVTOOLS__=!1)}const Kn={UNEXPECTED_RETURN_TYPE:KU,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function hr(e,...t){return kd(e,null,void 0)}const vg=ts("__translateVNode"),bg=ts("__datetimeParts"),wg=ts("__numberParts"),Rj=ts("__setPluralRules"),Lj=ts("__injectWithOption"),Sg=ts("__dispose");function Vl(e){if(!Ve(e))return e;for(const t in e)if(sr(e,t))if(!t.includes("."))Ve(e[t])&&Vl(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||tt(),Fi(c,i[l])):Fi(c,i)}else le(a)&&Fi(JSON.parse(a),i)}),o==null&&s)for(const a in i)sr(i,a)&&Vl(i[a]);return i}function ik(e){return e.type}function Pj(e,t,n){let r=Ve(t.messages)?t.messages:tt();"__i18nGlobal"in n&&(r=sk(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(Ve(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Ve(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function gb(e){return st(Ho,null,e,0)}const mb="__INTLIFY_META__",yb=()=>[],Nj=()=>!1;let _b=0;function vb(e){return(t,n,r,o)=>e(n,r,en()||void 0,o)}const Mj=()=>{const e=en();let t=null;return e&&(t=ik(e)[mb])?{[mb]:t}:null};function ak(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,s=ff?ue:fr;let i=vt(e.inheritLocale)?e.inheritLocale:!0;const a=s(t&&i?t.locale.value:le(e.locale)?e.locale:gf),l=s(t&&i?t.fallbackLocale.value:le(e.fallbackLocale)||Nt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=s(sk(a.value,e)),u=s(Fe(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=s(Fe(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:vt(e.missingWarn)||df(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:vt(e.fallbackWarn)||df(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:vt(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,y=et(e.missing)?e.missing:null,m=et(e.missing)?vb(e.missing):null,b=et(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const S=t?t.modifiers:Fe(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,x;x=(()=>{r&&ib(null);const P={version:Ij,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:S,pluralRules:E,missing:m===null?void 0:m,missingWarn:d,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};P.datetimeFormats=u.value,P.numberFormats=f.value,P.__datetimeFormatters=Fe(x)?x.__datetimeFormatters:void 0,P.__numberFormatters=Fe(x)?x.__numberFormatters:void 0;const F=hj(P);return r&&ib(F),F})(),Ma(x,a.value,l.value);function I(){return[a.value,l.value,c.value,u.value,f.value]}const O=J({get:()=>a.value,set:P=>{a.value=P,x.locale=a.value}}),U=J({get:()=>l.value,set:P=>{l.value=P,x.fallbackLocale=l.value,Ma(x,a.value,P)}}),L=J(()=>c.value),G=J(()=>u.value),oe=J(()=>f.value);function ce(){return et(b)?b:null}function q(P){b=P,x.postTranslation=P}function ne(){return y}function re(P){P!==null&&(m=vb(P)),y=P,x.missing=m}const Se=(P,F,ee,de,Le,Pe)=>{I();let gt;try{__INTLIFY_PROD_DEVTOOLS__,r||(x.fallbackContext=t?pj():void 0),gt=P(x)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(x.fallbackContext=void 0)}if(ee!=="translate exists"&&Pt(gt)&>===Cd||ee==="translate exists"&&!gt){const[Ct,Gt]=F();return t&&g?de(t):Le(Ct)}else{if(Pe(gt))return gt;throw hr(Kn.UNEXPECTED_RETURN_TYPE)}};function lt(...P){return Se(F=>Reflect.apply(hb,null,[F,...P]),()=>_g(...P),"translate",F=>Reflect.apply(F.t,F,[...P]),F=>F,F=>le(F))}function be(...P){const[F,ee,de]=P;if(de&&!Ve(de))throw hr(Kn.INVALID_ARGUMENT);return lt(F,ee,zt({resolvedMessage:!0},de||{}))}function We(...P){return Se(F=>Reflect.apply(lb,null,[F,...P]),()=>mg(...P),"datetime format",F=>Reflect.apply(F.d,F,[...P]),()=>ob,F=>le(F))}function je(...P){return Se(F=>Reflect.apply(ub,null,[F,...P]),()=>yg(...P),"number format",F=>Reflect.apply(F.n,F,[...P]),()=>ob,F=>le(F))}function tn(P){return P.map(F=>le(F)||Pt(F)||vt(F)?gb(String(F)):F)}const ht={normalize:tn,interpolate:P=>P,type:"vnode"};function W(...P){return Se(F=>{let ee;const de=F;try{de.processor=ht,ee=Reflect.apply(hb,null,[de,...P])}finally{de.processor=null}return ee},()=>_g(...P),"translate",F=>F[vg](...P),F=>[gb(F)],F=>Nt(F))}function Q(...P){return Se(F=>Reflect.apply(ub,null,[F,...P]),()=>yg(...P),"number format",F=>F[wg](...P),yb,F=>le(F)||Nt(F))}function X(...P){return Se(F=>Reflect.apply(lb,null,[F,...P]),()=>mg(...P),"datetime format",F=>F[bg](...P),yb,F=>le(F)||Nt(F))}function ie(P){E=P,x.pluralRules=E}function te(P,F){return Se(()=>{if(!P)return!1;const ee=le(F)?F:a.value,de=A(ee),Le=x.messageResolver(de,P);return Zi(Le)||Vn(Le)||le(Le)},()=>[P],"translate exists",ee=>Reflect.apply(ee.te,ee,[P,F]),Nj,ee=>vt(ee))}function we(P){let F=null;const ee=Yx(x,l.value,a.value);for(let de=0;de{i&&(a.value=P,x.locale=P,Ma(x,a.value,l.value))}),Oe(t.fallbackLocale,P=>{i&&(l.value=P,x.fallbackLocale=P,Ma(x,a.value,l.value))}));const K={id:_b,locale:O,fallbackLocale:U,get inheritLocale(){return i},set inheritLocale(P){i=P,P&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Ma(x,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return S},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(P){d=P,x.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(P){p=P,x.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(P){g=P},get fallbackFormat(){return h},set fallbackFormat(P){h=P,x.fallbackFormat=h},get warnHtmlMessage(){return _},set warnHtmlMessage(P){_=P,x.warnHtmlMessage=P},get escapeParameter(){return v},set escapeParameter(P){v=P,x.escapeParameter=P},t:lt,getLocaleMessage:A,setLocaleMessage:$,mergeLocaleMessage:B,getPostTranslationHandler:ce,setPostTranslationHandler:q,getMissingHandler:ne,setMissingHandler:re,[Rj]:ie};return K.datetimeFormats=G,K.numberFormats=oe,K.rt=be,K.te=te,K.tm=C,K.d=We,K.n=je,K.getDateTimeFormat=H,K.setDateTimeFormat=k,K.mergeDateTimeFormat=T,K.getNumberFormat=D,K.setNumberFormat=j,K.mergeNumberFormat=z,K[Lj]=n,K[vg]=W,K[bg]=X,K[wg]=Q,K}const qm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Dj({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===bt?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},tt())}function lk(){return bt}const $j=At({name:"i18n-t",props:zt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pt(e)||!isNaN(e)}},qm),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Td({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),i=tt();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=le(e.plural)?+e.plural:e.plural);const a=Dj(t,s),l=o[vg](e.keypath,a,i),c=zt(tt(),r),u=le(e.tag)||Ve(e.tag)?e.tag:lk();return Tt(u,c,l)}}}),bb=$j;function Fj(e){return Nt(e)&&!le(e[0])}function ck(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a=tt();e.locale&&(i.locale=e.locale),le(e.format)?i.key=e.format:Ve(e.format)&&(le(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>n.includes(p)?zt(tt(),d,{[p]:e.format[p]}):d,tt()));const l=r(e.value,i,a);let c=[i.key];Nt(l)?c=l.map((d,p)=>{const g=o[d.type],h=g?g({[d.type]:d.value,index:p,parts:l}):[d.value];return Fj(h)&&(h[0].key=`${d.type}-${p}`),h}):le(l)&&(c=[l]);const u=zt(tt(),s),f=le(e.tag)||Ve(e.tag)?e.tag:lk();return Tt(f,u,c)}}const Uj=At({name:"i18n-n",props:zt({value:{type:Number,required:!0},format:{type:[String,Object]}},qm),setup(e,t){const n=e.i18n||Td({useScope:e.scope,__useComponent:!0});return ck(e,t,nk,(...r)=>n[wg](...r))}}),wb=Uj,jj=At({name:"i18n-d",props:zt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qm),setup(e,t){const n=e.i18n||Td({useScope:e.scope,__useComponent:!0});return ck(e,t,tk,(...r)=>n[bg](...r))}}),Sb=jj;function Bj(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Hj(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw hr(Kn.UNEXPECTED_ERROR);const c=Bj(e,a.$),u=Eb(l);return[Reflect.apply(c.t,c,[...xb(u)]),c]};return{created:(i,a)=>{const[l,c]=t(a);ff&&e.global===c&&(i.__i18nWatcher=Oe(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{ff&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=Eb(a);i.textContent=Reflect.apply(l.t,l,[...xb(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Eb(e){if(le(e))return{path:e};if(Fe(e)){if(!("path"in e))throw hr(Kn.REQUIRED_VALUE,"path");return e}else throw hr(Kn.INVALID_VALUE)}function xb(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,i={},a=r||{};return le(n)&&(i.locale=n),Pt(o)&&(i.plural=o),Pt(s)&&(i.plural=s),[t,a,i]}function Vj(e,t,...n){const r=Fe(n[0])?n[0]:{};(vt(r.globalInstall)?r.globalInstall:!0)&&([bb.name,"I18nT"].forEach(s=>e.component(s,bb)),[wb.name,"I18nN"].forEach(s=>e.component(s,wb)),[Sb.name,"I18nD"].forEach(s=>e.component(s,Sb))),e.directive("t",Hj(t))}const Wj=ts("global-vue-i18n");function zj(e={},t){const n=vt(e.globalInjection)?e.globalInjection:!0,r=new Map,[o,s]=Gj(e),i=ts("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function c(f){r.delete(f)}const u={get mode(){return"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,u),Fe(d[0])){const h=d[0];u.__composerExtend=h.__composerExtend,u.__vueI18nExtend=h.__vueI18nExtend}let p=null;n&&(p=eB(f,u.global)),Vj(f,u,...d);const g=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),g()}},get global(){return s},dispose(){o.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function Td(e={}){const t=en();if(t==null)throw hr(Kn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hr(Kn.NOT_INSTALLED);const n=qj(t),r=Yj(n),o=ik(t),s=Kj(e,o);if(s==="global")return Pj(r,e,o),r;if(s==="parent"){let l=Zj(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=zt({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),a=ak(l),i.__composerExtend&&(a[Sg]=i.__composerExtend(a)),Jj(i,t,a),i.__setInstance(t,a)}return a}function Gj(e,t,n){const r=da(),o=r.run(()=>ak(e));if(o==null)throw hr(Kn.UNEXPECTED_ERROR);return[r,o]}function qj(e){const t=Ut(e.isCE?Wj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hr(e.isCE?Kn.NOT_INSTALLED_WITH_PROVIDE:Kn.UNEXPECTED_ERROR);return t}function Kj(e,t){return bd(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Yj(e){return e.mode==="composition"?e.global:e.global.__composer}function Zj(e,t,n=!1){let r=null;const o=t.root;let s=Xj(t,n);for(;s!=null;){const i=e;if(e.mode==="composition"&&(r=i.__getInstance(s)),r!=null||o===s)break;s=s.parent}return r}function Xj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Jj(e,t,n){Rn(()=>{},t),Qs(()=>{const r=n;e.__deleteInstance(t);const o=r[Sg];o&&(o(),delete r[Sg])},t)}const Qj=["locale","fallbackLocale","availableLocales"],kb=["t","rt","d","n","tm","te"];function eB(e,t){const n=Object.create(null);return Qj.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw hr(Kn.UNEXPECTED_ERROR);const i=qe(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,kb.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw hr(Kn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,kb.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Oj();lj(VU);cj(sj);uj(Yx);if(__INTLIFY_PROD_DEVTOOLS__){const e=Dm();e.__INTLIFY__=!0,WU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function tB(){return js(Ki)}function nB(){return js(Bm)}function rB(){return js(Ed)}function oB(){return js(Ed)}function uk(){return js(hf)}const sB=Je({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=uk(),n=new RegExp([``,".+?",``].join(""),"g");e.hook("app:rendered",r=>{var o;((o=r.renderResult)==null?void 0:o.html)!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(n,(s,i)=>s.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}}),iB=Je({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=e,o=r.$router.currentRoute,s=jm();async function i(l){let c=RF(l,s(l),He(r.$i18n.locale),r.$i18n.getLocaleCookie());if(r._vueI18n.__firstAccess){r._vueI18n.__setLocale(c);const f=Ux(He(r._vueI18n.global.fallbackLocale),[c]);await Promise.all(f.map(d=>r.$i18n.loadLocaleMessages(d))),await r.$i18n.loadLocaleMessages(c)}return await r.runWithContext(()=>Hx(c,r._vueI18n.__firstAccess))&&(c=He(r.$i18n.locale)),c}[t,n]=Xt(()=>i(o.value)),await t,n(),A1("locale-changing",async(l,c)=>{let u,f;const d=([u,f]=Xt(()=>r.runWithContext(()=>i(l))),u=await u,f(),u),p=([u,f]=Xt(()=>r.runWithContext(()=>Vx({to:l,from:c,locale:d,routeLocale:s(l)},!0))),u=await u,f(),u);return r._vueI18n.__firstAccess=!1,[u,f]=Xt(()=>r.runWithContext(()=>Wx({nuxtApp:r,redirectPath:p,locale:d,route:l}))),u=await u,f(),u},{global:!0})}});function aB(e,{extendComposer:t,extendComposerInstance:n}){const r=da(),o=e.install.bind(e);return e.install=(s,...i)=>{const a=Object.assign({},i[0]);a.__composerExtend=c=>(n(c,tl(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(n(c,tl(c)),()=>{})),Reflect.apply(o,e,[s,a]);const l=tl(e);if(r.run(()=>{t(l),e.mode==="legacy"&&jx(e.global)&&n(e.global,tl(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&n(s.config.globalProperties.$i18n,l),s.unmount){const c=s.unmount.bind(s);s.unmount=()=>{r.stop(),c()}}},r}const lB=Je({name:"i18n:plugin",parallel:pF,async setup(e){var d;let t,n;const r=e,o=r.$router.currentRoute,s=GF(r);zF(r,s);const i={...r.$config.public.i18n,defaultLocale:s};r.$config.public.i18n.defaultLocale=s,i.baseUrl=DF();const a=xc(),l=([t,n]=Xt(()=>SF(dF,Ae())),t=await t,n(),t);l.messages=l.messages||{};for(const p of lo)(d=l.messages)[p]??(d[p]={});l.fallbackLocale=l.fallbackLocale??!1,s&&(l.locale=s);const c=jm(),u=UF(),f=zj(l);return f.__firstAccess=!0,f.__setLocale=p=>{const g=pf(f);qe(g.locale)?g.locale.value=p:g.locale=p},r._vueI18n=f,aB(f,{extendComposer(p){const g=ue(i.locales),h=ue(lo),y=ue("");p.locales=J(()=>g.value),p.localeCodes=J(()=>h.value),p.baseUrl=J(()=>y.value),Oe(p.locale,()=>{y.value=yF(i.baseUrl,r)},{immediate:!0}),p.strategy=i.strategy,p.localeProperties=J(()=>wd.find(m=>m.code===p.locale.value)||{code:p.locale.value}),p.setLocale=async m=>{if(await Hx(m,f.__firstAccess),p.strategy==="no_prefix"){await p.loadLocaleMessages(m),f.__setLocale(m);return}const b=o.value,_=await r.runWithContext(()=>Vx({to:b,locale:m,routeLocale:c(b)}));await r.runWithContext(()=>Wx({nuxtApp:r,redirectPath:_,locale:m,route:b},!0))},p.loadLocaleMessages=async m=>await fg(m,ug,p.mergeLocaleMessage.bind(p),r),p.differentDomains=i.differentDomains,p.defaultLocale=i.defaultLocale,p.getBrowserLocale=()=>FF(),p.getLocaleCookie=()=>jF(u,a,p.defaultLocale),p.setLocaleCookie=m=>BF(u,m,a),p.onBeforeLanguageSwitch=(m,b,_,v)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:m,newLocale:b,initialSetup:_,context:v}),p.onLanguageSwitched=(m,b)=>e.callHook("i18n:localeSwitched",{oldLocale:m,newLocale:b}),p.finalizePendingLocaleChange=async()=>{var m;f.__pendingLocale&&(f.__setLocale(f.__pendingLocale),(m=f.__resolvePendingLocalePromise)==null||m.call(f),f.__pendingLocale=void 0)},p.waitForPendingLocaleChange=async()=>{f.__pendingLocale&&f.__pendingLocalePromise&&await f.__pendingLocalePromise}},extendComposerInstance(p,g){const h=[["locales",()=>g.locales],["localeCodes",()=>g.localeCodes],["baseUrl",()=>g.baseUrl],["strategy",()=>g.strategy],["localeProperties",()=>g.localeProperties],["setLocale",()=>async y=>Reflect.apply(g.setLocale,g,[y])],["loadLocaleMessages",()=>async y=>Reflect.apply(g.loadLocaleMessages,g,[y])],["differentDomains",()=>g.differentDomains],["defaultLocale",()=>g.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(g.getBrowserLocale,g,[])],["getLocaleCookie",()=>()=>Reflect.apply(g.getLocaleCookie,g,[])],["setLocaleCookie",()=>y=>Reflect.apply(g.setLocaleCookie,g,[y])],["onBeforeLanguageSwitch",()=>(y,m,b,_)=>Reflect.apply(g.onBeforeLanguageSwitch,g,[y,m,b,_])],["onLanguageSwitched",()=>(y,m)=>Reflect.apply(g.onLanguageSwitched,g,[y,m])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(g.finalizePendingLocaleChange,g,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(g.waitForPendingLocaleChange,g,[])]];for(const[y,m]of h)Object.defineProperty(p,y,{get:m})}}),e.vueApp.use(f),$F(r,"$i18n",pf(f)),{provide:{localeHead:js(KF),localePath:nB(),localeRoute:rB(),getRouteBaseName:tB(),switchLocalePath:uk(),resolveRoute:js(Hm),localeLocation:oB()}}}});function cB(e){return typeof e.setItem=="function"&&typeof e.getItem=="function"&&typeof e.removeItem=="function"&&typeof e.clear=="function"&&typeof e.key=="function"&&typeof e.length=="number"}function Ad(e){try{const t="__test__";return e.setItem(t,"test"),e.removeItem(t),!0}catch{return!1}}function uB(e){var t;return import.meta&&((t=document.cookie.split("; ").find(n=>n.startsWith(`${e}=`)))==null?void 0:t.split("=")[1])||null}const Pn={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Cb={silent:{level:-1},fatal:{level:Pn.fatal},error:{level:Pn.error},warn:{level:Pn.warn},log:{level:Pn.log},info:{level:Pn.info},success:{level:Pn.success},fail:{level:Pn.fail},ready:{level:Pn.info},start:{level:Pn.info},box:{level:Pn.info},debug:{level:Pn.debug},trace:{level:Pn.trace},verbose:{level:Pn.verbose}};function Ep(e){return e!==null&&typeof e=="object"}function Eg(e,t,n=".",r){if(!Ep(t))return Eg(e,{},n);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Ep(i)&&Ep(o[s])?o[s]=Eg(i,o[s],(n?`${n}.`:"")+s.toString()):o[s]=i)}return o}function fB(e){return(...t)=>t.reduce((n,r)=>Eg(n,r,""),{})}const dB=fB();function pB(e){return Object.prototype.toString.call(e)==="[object Object]"}function hB(e){return!(!pB(e)||!e.message&&!e.args||e.stack)}let xp=!1;const Tb=[];class Qt{constructor(t={}){const n=t.types||Cb;this.options=dB({...t,defaults:{...t.defaults},level:kp(t.level,n),reporters:[...t.reporters||[]]},{types:Cb,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const o={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(o),this[r].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=kp(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new Qt({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n>=0)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){xp=!0}resumeLogs(){xp=!1;const t=Tb.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(xp){Tb.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:kp(t.level,this.options.types)};!r&&n.length===1&&hB(n[0])?Object.assign(o,n[0]):o.args=[...n],o.message&&(o.args.unshift(o.message),delete o.message),o.additional&&(Array.isArray(o.additional)||(o.additional=o.additional.split(` `)),o.args.push(` `+o.additional.join(` `)),delete o.additional),o.type=typeof o.type=="string"?o.type.toLowerCase():"log",o.tag=typeof o.tag=="string"?o.tag:"";const s=(a=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const c=[...this._lastLog.object.args];l>1&&c.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}a&&(this._lastLog.object=o,this._log(o))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&o.date?o.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=o.date,ithis.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(t){for(const n of this.options.reporters)n.log(t,{options:this.options})}}function kp(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}Qt.prototype.add=Qt.prototype.addReporter;Qt.prototype.remove=Qt.prototype.removeReporter;Qt.prototype.clear=Qt.prototype.removeReporter;Qt.prototype.withScope=Qt.prototype.withTag;Qt.prototype.mock=Qt.prototype.mockTypes;Qt.prototype.pause=Qt.prototype.pauseLogs;Qt.prototype.resume=Qt.prototype.resumeLogs;function gB(e={}){return new Qt(e)}class mB{constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const n=this._getLogFn(t.level),r=t.type==="log"?"":t.type,o=t.tag||"",i=` background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor}; border-radius: 0.5em; color: white; font-weight: bold; padding: 2px 0.5em; `,a=`%c${[o,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${a}%c ${t.args[0]}`,i,"",...t.args.slice(1)):n(a,i,...t.args)}}function yB(e={}){return gB({reporters:e.reporters||[new mB({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const _B=yB(),pt=_B.withTag("app"),Ab=["getItem","setItem","removeItem","clear","length"],Cp=pt.withTag("StorageEmulator");class vB{constructor(t){Ln(this,"storage",{});this.customStorage=t,t&&cB(t)&&Ad(t)?this.storage=t:this.storage={}}setItem(t,n){if(Ab.includes(t)){Cp.warn(`Key "${t}" is not allowed in storage.`);return}this.storage[t]=n}getItem(t){return this.storage[t]||null}removeItem(t){if(Ab.includes(t)){Cp.warn(`Key "${t}" is not allowed in storage.`);return}if(!this.storage[t]){Cp.warn(`Key "${t}" not found in storage.`);return}delete this.storage[t]}clear(){this.storage={}}get length(){return Object.keys(this.storage).length}key(t){return Object.keys(this.storage)[t]||null}}class fk{constructor(t){Ln(this,"storage");this.storage=new vB(t)}setItem(t,n){this.storage.setItem(t,n)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}get length(){return this.storage.length}key(t){return this.storage.key(t)}}class bB{constructor(t,n,r){Ln(this,"prefix");Ln(this,"expirationMs");Ln(this,"storage");this.prefix=n,this.expirationMs=r,this.storage=t}storageKey(t){return`${this.prefix}:${t}`}load(t,n){const r=n??this.expirationMs,o=this.storage.getItem(this.storageKey(t))??"";try{const{value:s,timestamp:i}=JSON.parse(o);return Date.now()-i>r?(this.storage.removeItem(this.storageKey(t)),null):s}catch{return this.storage.removeItem(this.storageKey(t)),null}}save(t,n){const r={value:n,timestamp:Date.now()};this.storage.setItem(this.storageKey(t),JSON.stringify(r))}remove(t){this.storage.removeItem(this.storageKey(t))}clear(){const t=Object.keys(this.storage).filter(n=>n.startsWith(this.prefix));for(const n of t)this.storage.removeItem(n)}get length(){return Object.keys(this.storage).filter(t=>t.startsWith(this.prefix)).length}key(t){return Object.keys(this.storage).filter(r=>r.startsWith(this.prefix))[t]||null}getItem(t){return this.load(t)}setItem(t,n){this.save(t,n)}removeItem(t){this.remove(t)}clearAll(){this.clear()}}const _s=new fk(typeof window<"u"?window.localStorage:void 0),wB=new fk(typeof window<"u"?window.sessionStorage:void 0),mf=_s;Ad(_s);Ad(wB);Ad(mf);const Xn=()=>{var e,t;return{chrome:window==null?void 0:window.chrome,shift:(e=window==null?void 0:window.chrome)==null?void 0:e.shift,onelaunch:(t=window==null?void 0:window.chrome)==null?void 0:t.onelaunch}};function Ib(e,t){const n=encodeURIComponent(e);return{url:`https://lusearch.com/?br=Chrome&searchEngine=Yahoo&pid=${t}&bitmask=9998&q=${n}`,isMonetized:!0}}const SB="wc.onenews",EB="3007";function xB(){const e=window==null?void 0:window.location.hostname,t=window==null?void 0:window.location.port;return e==="wc.onenews.com"||e==="wc-staging.onenews.com"||(e==null?void 0:e.includes(SB))||e==="localhost"&&t===EB}const kB=pt.withTag("utils:getSearchUrl");async function CB(e,t){var o;const{fallbackUrl:n="",queryPlaceholder:r="{searchTerms}"}={...t};try{if(typeof window<"u"&&xB()){const d=new URLSearchParams(window.location.search).get("variant");if(d==="branded")return Ib(e,"NT260101");if(d==="unbranded")return Ib(e,"NT260102")}const s=f=>f.replace(r,encodeURIComponent(e)),{shift:i,onelaunch:a}=Xn(),l=(o=i==null?void 0:i.search)==null?void 0:o.getDefault;if(l){const f=await l(),d=f.monetized;return{url:s(f.url),isMonetized:d}}const c=i==null?void 0:i.getServerConfig;if(c){const f=await c();return{url:s(f.search_url)}}const u=a==null?void 0:a.getMergedData;if(u){const f=await u();return{url:s(f.search_url)}}return{url:s(n)}}catch(s){return kB.error(s),{url:n}}}function TB(){const{shift:e,onelaunch:t}=Xn(),n=e==null?void 0:e.getServerConfig;if(n)return n();const r=t==null?void 0:t.getMergedData;return r?r():new Promise(o=>o(void 0))}const AB=pt.withTag("utils:host-browser-apis:openInDefaultBrowser");async function IB(e){var r;const{shift:t,onelaunch:n}=Xn();try{const o=(r=t==null?void 0:t.ntp)==null?void 0:r.openInDefaultBrowser;if(o){await o(e);return}const s=n==null?void 0:n.openInDefaultBrowser;if(s){await s(e);return}}catch(o){AB.error("Failed to open in default browser",o)}window.open(e,"_blank")}const OB=pt.withTag("utils:isCurrentlyAtHomeTab");function dk(){try{const e=window.location.href,t=new URL(e),n=new URLSearchParams(t.search);return n.has("pinned")&&n.get("pinned")==="true"}catch(e){return OB.error(e),!1}}function pk(){var t;const{onelaunch:e}=Xn();return(t=e==null?void 0:e.getInstallInfo)==null?void 0:t.call(e)}function RB(){var t,n;const{shift:e}=Xn();return(n=(t=e==null?void 0:e.search)==null?void 0:t.getDefault)==null?void 0:n.call(t)}async function hk(){const e=await pk();return(e==null?void 0:e.version)||"unknown"}var LB=typeof global=="object"&&global&&global.Object===Object&&global,PB=typeof self=="object"&&self&&self.Object===Object&&self,NB=LB||PB||Function("return this")(),yf=NB.Symbol,gk=Object.prototype,MB=gk.hasOwnProperty,DB=gk.toString,Da=yf?yf.toStringTag:void 0;function $B(e){var t=MB.call(e,Da),n=e[Da];try{e[Da]=void 0;var r=!0}catch{}var o=DB.call(e);return r&&(t?e[Da]=n:delete e[Da]),o}var FB=Object.prototype,UB=FB.toString;function jB(e){return UB.call(e)}var BB="[object Null]",HB="[object Undefined]",Ob=yf?yf.toStringTag:void 0;function VB(e){return e==null?e===void 0?HB:BB:Ob&&Ob in Object(e)?$B(e):jB(e)}function WB(e){return e!=null&&typeof e=="object"}var zB="[object Symbol]";function GB(e){return typeof e=="symbol"||WB(e)&&VB(e)==zB}var qB=/\s/;function KB(e){for(var t=e.length;t--&&qB.test(e.charAt(t)););return t}var YB=/^\s+/;function ZB(e){return e&&e.slice(0,KB(e)+1).replace(YB,"")}function Rb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lb=NaN,XB=/^[-+]0x[0-9a-f]+$/i,JB=/^0b[01]+$/i,QB=/^0o[0-7]+$/i,eH=parseInt;function tH(e){if(typeof e=="number")return e;if(GB(e))return Lb;if(Rb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Rb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ZB(e);var n=JB.test(e);return n||QB.test(e)?eH(e.slice(2),n?2:8):XB.test(e)?Lb:+e}var nH=1/0,rH=17976931348623157e292;function oH(e){if(!e)return e===0?e:0;if(e=tH(e),e===nH||e===-1/0){var t=e<0?-1:1;return t*rH}return e===e?e:0}function sH(e){var t=oH(e),n=t%1;return t===t?n?t-n:t:0}var iH="Expected a function";function aH(e,t){var n;if(typeof t!="function")throw new TypeError(iH);return e=sH(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function mk(e){return aH(2,e)}var lH=Object.defineProperty,cH=Object.defineProperties,uH=Object.getOwnPropertyDescriptors,Pb=Object.getOwnPropertySymbols,fH=Object.prototype.hasOwnProperty,dH=Object.prototype.propertyIsEnumerable,Nb=(e,t,n)=>t in e?lH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tp=(e,t)=>{for(var n in t||(t={}))fH.call(t,n)&&Nb(e,n,t[n]);if(Pb)for(var n of Pb(t))dH.call(t,n)&&Nb(e,n,t[n]);return e},Ap=(e,t)=>cH(e,uH(t)),vi=(e,t,n)=>new Promise((r,o)=>{var s=l=>{try{a(n.next(l))}catch(c){o(c)}},i=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,i);a((n=n.apply(e,t)).next())}),pH={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",ERROR:"ERROR"},yk=(e=>(e.PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e))(yk||{}),os=class _k extends Error{constructor(t,n){super(t),Object.setPrototypeOf(this,_k.prototype),this.name="OpenFeatureError",this.cause=n==null?void 0:n.cause}},hH=class vk extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,vk.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},bk=class wk extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,wk.prototype),this.name="GeneralError",this.code="GENERAL"}},gH=class Sk extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Sk.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},mH=class Ek extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Ek.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},xk=class kk extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,kk.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},Ck=class Tk extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Tk.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},yH=class Ak extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Ak.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},_H=class Ik extends os{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Ik.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},vH=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new hH(t);case"PARSE_ERROR":return new mH(t);case"TYPE_MISMATCH":return new _H(t);case"TARGETING_KEY_MISSING":return new yH(t);case"INVALID_CONTEXT":return new gH(t);case"PROVIDER_NOT_READY":return new Ck(t);case"PROVIDER_FATAL":return new xk(t);default:return new bk(t)}},Wl=(e=>(e.NOT_READY="NOT_READY",e.READY="READY",e.ERROR="ERROR",e.STALE="STALE",e.FATAL="FATAL",e.RECONCILING="RECONCILING",e))(Wl||{}),Qr=(e=>(e.Ready="PROVIDER_READY",e.Error="PROVIDER_ERROR",e.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",e.ContextChanged="PROVIDER_CONTEXT_CHANGED",e.Reconciling="PROVIDER_RECONCILING",e.Stale="PROVIDER_STALE",e))(Qr||{}),bH={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},Ok=(e,t)=>!t&&e==="PROVIDER_READY"||bH[t]===e,Rk=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},wH=["error","warn","info","debug"],Km=class{constructor(e){this.fallbackLogger=new Rk;try{for(const t of wH)if(!e[t]||typeof e[t]!="function")throw new Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(t){console.error(t),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch{this.fallbackLogger[e](...t)}}},SH=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){const n=o=>vi(this,null,function*(){var s;try{yield t(o)}catch(i){(s=this._logger)==null||s.error("Error running event handler:",i)}}),r=this._handlers[e].get(t);this._handlers[e].set(t,[...r||[],n]),this.eventEmitter.on(e,n)}removeHandler(e,t){const n=this._handlers[e].get(t);if(n){const r=n.pop();r&&this.eventEmitter.removeListener(e,r)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new Km(e),this}get _logger(){var e,t;return(t=this._eventLogger)!=null?t:(e=this.globalLogger)==null?void 0:e.call(this)}};function EH(e){return typeof e=="string"}function bi(e){return EH(e)?e:void 0}function xH(e){return typeof e=="object"}function Hn(e){return xH(e)?e:void 0}function Mb(e){return typeof e<"u"&&e!==null}var xg=class{constructor(e,t,n){this._provider=e,this._status=t,this._pendingContextChanges=0;var r,o,s;(r=e.events)==null||r.addHandler("PROVIDER_READY",()=>{this._status=n.READY}),(o=e.events)==null||o.addHandler("PROVIDER_STALE",()=>{this._status=n.STALE}),(s=e.events)==null||s.addHandler("PROVIDER_ERROR",i=>{(i==null?void 0:i.errorCode)==="PROVIDER_FATAL"?this._status=n.FATAL:this._status=n.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return this._pendingContextChanges===0}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},kH=class{constructor(e){this._hooks=[],this._context={},this._logger=new Rk,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new Km(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,n){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var o;const s=r[0],i=r[1].provider,a=r[1].status;if(Ok(e,a))try{t({domain:s,providerName:i.metadata.name})}catch(c){(o=this._logger)==null||o.error("Error running event handler:",c)}}),this._apiEmitter.addHandler(e,t),n!=null&&n.signal&&typeof n.signal.addEventListener=="function"&&n.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var n,r,o,s,i,a,l,c;const u=bi(e),f=(n=Hn(e))!=null?n:Hn(t);if(!f){this._logger.debug("No provider defined, ignoring setProvider call");return}const d=this.getProviderForClient(u),p=f.metadata.name;if(d===f){this._logger.debug("Provider is already set, ignoring setProvider call");return}if(!f.runsOn)this._logger.debug(`Provider '${f.metadata.name}' has not defined its intended use.`);else if(f.runsOn!==this._runsOn)throw new bk(`Provider '${f.metadata.name}' is intended for use on the ${f.runsOn}.`);const g=this.getAssociatedEventEmitters(u);let h;const y=new xg(f,this._statusEnumType.NOT_READY,this._statusEnumType);return typeof f.initialize=="function"&&!this.allProviders.includes(f)?h=(i=(s=(o=f.initialize)==null?void 0:o.call(f,u?(r=this._domainScopedContext.get(u))!=null?r:this._context:this._context))==null?void 0:s.then(()=>{var m;y.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(u).forEach(b=>{b==null||b.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(m=this._apiEmitter)==null||m.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}))==null?void 0:i.catch(m=>{var b;throw(m==null?void 0:m.code)==="PROVIDER_FATAL"?y.status=this._statusEnumType.FATAL:y.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(u).forEach(_=>{_==null||_.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:m==null?void 0:m.message})}),(b=this._apiEmitter)==null||b.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:m==null?void 0:m.message}),m}):(y.status=this._statusEnumType.READY,g.forEach(m=>{m==null||m.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(a=this._apiEmitter)==null||a.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})),u?this._domainScopedProviders.set(u,y):this._defaultProvider=y,this.transferListeners(d,f,u,g),this.allProviders.includes(d)||(c=(l=d==null?void 0:d.onClose)==null?void 0:l.call(d))==null||c.catch(m=>{this._logger.error(`error closing provider: ${m==null?void 0:m.message}, ${m==null?void 0:m.stack}`)}),h}getProviderForClient(e){var t,n;return e?(n=(t=this._domainScopedProviders.get(e))==null?void 0:t.provider)!=null?n:this._defaultProvider.provider:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){const t=this._clientEvents.get(e);if(t)return t;const n=this._createEventEmitter();this._clientEvents.set(e,n);const r=this.getProviderForClient(e);return Object.values(Qr).forEach(o=>{var s;return(s=r.events)==null?void 0:s.addHandler(o,i=>vi(this,null,function*(){n.emit(o,Ap(Tp({},i),{clientName:e,domain:e,providerName:r.metadata.name}))}))}),n}getUnboundEmitters(){const e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(Mb).filter(r=>!e.includes(r)).map(r=>this._clientEvents.get(r)),this._clientEvents.get(void 0)].filter(Mb)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,n,r){var o;(o=this._clientEventHandlers.get(n))==null||o.forEach(i=>{var a;return(a=e.events)==null?void 0:a.removeHandler(...i)});const s=Object.values(Qr).map(i=>[i,l=>vi(this,null,function*(){r.forEach(c=>{c==null||c.emit(i,Ap(Tp({},l),{clientName:n,domain:n,providerName:t.metadata.name}))}),this._apiEmitter.emit(i,Ap(Tp({},l),{clientName:n,domain:n,providerName:t.metadata.name}))})]);this._clientEventHandlers.set(n,s),s.forEach(i=>{var a;return(a=t.events)==null?void 0:a.addHandler(...i)})}close(){return vi(this,null,function*(){var e,t;try{yield(t=(e=this==null?void 0:this._defaultProvider.provider)==null?void 0:e.onClose)==null?void 0:t.call(e)}catch(r){this.handleShutdownError(this._defaultProvider.provider,r)}const n=Array.from(this._domainScopedProviders);yield Promise.all(n.map(r=>vi(this,[r],function*([,o]){var s,i;try{yield(i=o==null?void 0:(s=o.provider).onClose)==null?void 0:i.call(s)}catch(a){this.handleShutdownError(o==null?void 0:o.provider,a)}})))})}clearProvidersAndSetDefault(e){return vi(this,null,function*(){try{yield this.close()}catch{this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new xg(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(t==null?void 0:t.stack)}},CH=Object.create,Ym=Object.defineProperty,TH=Object.defineProperties,AH=Object.getOwnPropertyDescriptor,IH=Object.getOwnPropertyDescriptors,Lk=Object.getOwnPropertyNames,Db=Object.getOwnPropertySymbols,Pk=Object.getPrototypeOf,Nk=Object.prototype.hasOwnProperty,OH=Object.prototype.propertyIsEnumerable,RH=Reflect.get,$b=(e,t,n)=>t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ip=(e,t)=>{for(var n in t||(t={}))Nk.call(t,n)&&$b(e,n,t[n]);if(Db)for(var n of Db(t))OH.call(t,n)&&$b(e,n,t[n]);return e},LH=(e,t)=>TH(e,IH(t)),PH=(e,t)=>function(){return t||(0,e[Lk(e)[0]])((t={exports:{}}).exports,t),t.exports},NH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lk(t))!Nk.call(e,o)&&o!==n&&Ym(e,o,{get:()=>t[o],enumerable:!(r=AH(t,o))||r.enumerable});return e},MH=(e,t,n)=>(n=e!=null?CH(Pk(e)):{},NH(Ym(n,"default",{value:e,enumerable:!0}),e)),DH=(e,t,n)=>RH(Pk(e),n,t),fi=(e,t,n)=>new Promise((r,o)=>{var s=l=>{try{a(n.next(l))}catch(c){o(c)}},i=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,i);a((n=n.apply(e,t)).next())}),$H=PH({"../../node_modules/eventemitter3/index.js"(e,t){var n=Object.prototype.hasOwnProperty,r="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(r=!1));function s(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new s(f,d||c,p),h=r?r+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],g]:c._events[h].push(g):(c._events[h]=g,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new o:delete c._events[u]}function l(){this._events=new o,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)n.call(f,d)&&u.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=r?r+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,h=new Array(g);pnew Ub}static getInstance(){const t=Bb[jb];if(t)return t;const n=new kg;return Bb[jb]=n,n}getProviderStatus(t){var n,r;return t?(r=(n=this._domainScopedProviders.get(t))==null?void 0:n.status)!=null?r:this._defaultProvider.status:this._defaultProvider.status}setProviderAndWait(t,n,r){return fi(this,null,function*(){const o=bi(t),s=Hn(o?n:t),i=Hn(o?r:n);i&&(o?this._domainScopedContext.set(o,i):this._context=i),yield this.setAwaitableProvider(o,s)})}setProvider(t,n,r){const o=bi(t),s=Hn(o?n:t),i=Hn(o?r:n);i&&(o?this._domainScopedContext.set(o,i):this._context=i);const a=this.setAwaitableProvider(o,s);return Promise.resolve(a).catch(l=>{this._logger.error("Error during provider initialization:",l)}),this}setContext(t,n){return fi(this,null,function*(){var r,o;const s=bi(t),i=(o=(r=Hn(t))!=null?r:Hn(n))!=null?o:{};if(s){const a=this._domainScopedProviders.get(s);if(a){const l=this.getContext(s);this._domainScopedContext.set(s,i),yield this.runProviderContextChangeHandler(s,a,l,i)}else this._domainScopedContext.set(s,i)}else{const a=this._context;this._context=i;const l=Array.from(this._domainScopedProviders.entries()).filter(([u])=>!this._domainScopedContext.has(u)).reduce((u,[f,d])=>(u.push({domain:f,wrapper:d}),u),[]),c=[{domain:void 0,wrapper:this._defaultProvider},...l];yield Promise.all(c.map(u=>this.runProviderContextChangeHandler(u.domain,u.wrapper,a,i)))}})}getContext(t){const n=bi(t);if(n){const r=this._domainScopedContext.get(n);if(r)return r;this._logger.debug(`Unable to find context for '${n}'.`)}return this._context}clearContext(t){return fi(this,null,function*(){const n=bi(t);if(n){const r=this._domainScopedProviders.get(n);if(r){const o=this.getContext(n);this._domainScopedContext.delete(n);const s=this.getContext();yield this.runProviderContextChangeHandler(n,r,o,s)}else this._domainScopedContext.delete(n)}else return this.setContext({})})}clearContexts(){return fi(this,null,function*(){yield this.clearContext(),yield Promise.allSettled(Array.from(this._domainScopedProviders.keys()).map(t=>this.clearContext(t)))})}getClient(t,n){return new BH(()=>this.getProviderForClient(t),()=>this.getProviderStatus(t),()=>this.buildAndCacheEventEmitterForClient(t),r=>this.getContext(r),()=>this.getHooks(),()=>this._logger,{domain:t,version:n})}clearProviders(){return fi(this,null,function*(){yield DH(kg.prototype,this,"clearProvidersAndSetDefault").call(this,Fb),this._domainScopedContext.clear()})}runProviderContextChangeHandler(t,n,r,o){return fi(this,null,function*(){var s,i,a,l,c,u;const f=((i=(s=n.provider)==null?void 0:s.metadata)==null?void 0:i.name)||"unnamed-provider";try{if(typeof n.provider.onContextChange=="function"){const d=n.provider.onContextChange(r,o);typeof(d==null?void 0:d.then)=="function"&&(n.incrementPendingContextChanges(),n.status=this._statusEnumType.RECONCILING,this.getAssociatedEventEmitters(t).forEach(p=>{p==null||p.emit(Qr.Reconciling,{domain:t,providerName:f})}),(a=this._apiEmitter)==null||a.emit(Qr.Reconciling,{domain:t,providerName:f}),yield d,n.decrementPendingContextChanges())}n.status=this._statusEnumType.READY,n.allContextChangesSettled&&(this.getAssociatedEventEmitters(t).forEach(d=>{d==null||d.emit(Qr.ContextChanged,{clientName:t,domain:t,providerName:f})}),(l=this._apiEmitter)==null||l.emit(Qr.ContextChanged,{clientName:t,domain:t,providerName:f}))}catch(d){if(n.decrementPendingContextChanges(),n.status=this._statusEnumType.ERROR,n.allContextChangesSettled){const p=d,g=`Error running ${f}'s context change handler: ${p==null?void 0:p.message}`;(c=this._logger)==null||c.error(`${g}`,d),this.getAssociatedEventEmitters(t).forEach(h=>{h==null||h.emit(Qr.Error,{clientName:t,domain:t,providerName:f,message:g})}),(u=this._apiEmitter)==null||u.emit(Qr.Error,{clientName:t,domain:t,providerName:f,message:g})}}})}},no=HH.getInstance();const VH="_targetingKey",WH="_splittestname",Mk="_cohort";function I9(){const e=Xn();return["shift","onelaunch"].some(n=>e[n]!==void 0)}function zH(){return Xn().shift!==void 0}var Ue;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(Ue||(Ue={}));var Cg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Cg||(Cg={}));const ae=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mo=e=>{switch(typeof e){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(e)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(e)?ae.array:e===null?ae.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ae.promise:typeof Map<"u"&&e instanceof Map?ae.map:typeof Set<"u"&&e instanceof Set?ae.set:typeof Date<"u"&&e instanceof Date?ae.date:ae.object;default:return ae.unknown}},Y=Ue.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),GH=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Mn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Mn.create=e=>new Mn(e);const Xi=(e,t)=>{let n;switch(e.code){case Y.invalid_type:e.received===ae.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ue.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ue.joinValues(e.keys,", ")}`;break;case Y.invalid_union:n="Invalid input";break;case Y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ue.joinValues(e.options)}`;break;case Y.invalid_enum_value:n=`Invalid enum value. Expected ${Ue.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:n="Invalid function arguments";break;case Y.invalid_return_type:n="Invalid function return type";break;case Y.invalid_date:n="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ue.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Y.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Y.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Y.custom:n="Invalid input";break;case Y.invalid_intersection_types:n="Intersection results could not be merged";break;case Y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ue.assertNever(e)}return{message:n}};let Dk=Xi;function qH(e){Dk=e}function _f(){return Dk}const vf=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},KH=[];function se(e,t){const n=_f(),r=vf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Xi?void 0:Xi].filter(o=>!!o)});e.common.issues.push(r)}class cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ve;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return cn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ve;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ve=Object.freeze({status:"aborted"}),xi=e=>({status:"dirty",value:e}),wn=e=>({status:"valid",value:e}),Tg=e=>e.status==="aborted",Ag=e=>e.status==="dirty",zl=e=>e.status==="valid",Gl=e=>typeof Promise<"u"&&e instanceof Promise;function bf(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function $k(e,t,n,r,o){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(pe||(pe={}));var nl,rl;class $r{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Hb=(e,t)=>{if(zl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Mn(e.common.issues);return this._error=n,this._error}}};function Ce(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,c;const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class Ie{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Mo(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new cn,ctx:{common:t.parent.common,data:t.data,parsedType:Mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Gl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mo(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Hb(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mo(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Gl(o)?o:Promise.resolve(o));return Hb(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:Y.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new gr({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Nr.create(this,this._def)}nullable(){return Yo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ur.create(this,this._def)}promise(){return Qi.create(this,this._def)}or(t){return Zl.create([this,t],this._def)}and(t){return Xl.create(this,t,this._def)}transform(t){return new gr({...Ce(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new nc({...Ce(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Zm({typeName:_e.ZodBranded,type:this,...Ce(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new rc({...Ce(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return kc.create(this,t)}readonly(){return oc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const YH=/^c[^\s-]{8,}$/i,ZH=/^[0-9a-z]+$/,XH=/^[0-9A-HJKMNP-TV-Z]{26}$/,JH=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,QH=/^[a-z0-9_-]{21}$/i,e3=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,n3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Op;const r3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,o3=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,s3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fk="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",i3=new RegExp(`^${Fk}$`);function Uk(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function a3(e){return new RegExp(`^${Uk(e)}$`)}function jk(e){let t=`${Fk}T${Uk(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function l3(e,t){return!!((t==="v4"||!t)&&r3.test(e)||(t==="v6"||!t)&&o3.test(e))}class ir extends Ie{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ae.string){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.string,received:s.parsedType}),ve}const r=new cn;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(o=this._getOrReturnCtx(t,o),se(o,{code:Y.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:n,code:Y.invalid_string,...pe.errToObj(r)})}_addCheck(t){return new ir({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...pe.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...pe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...pe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...pe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...pe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...pe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...pe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...pe.errToObj(n)})}nonempty(t){return this.min(1,pe.errToObj(t))}trim(){return new ir({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new ir({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ce(e)})};function c3(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Go extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ae.number){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.number,received:s.parsedType}),ve}let r;const o=new cn;for(const s of this._def.checks)s.kind==="int"?Ue.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),se(r,{code:Y.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{code:Y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?c3(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),se(r,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),se(r,{code:Y.not_finite,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,pe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,pe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,pe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,pe.toString(n))}setLimit(t,n,r,o){return new Go({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:pe.toString(o)}]})}_addCheck(t){return new Go({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ue.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Go({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ce(e)});class qo extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ae.bigint){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.bigint,received:s.parsedType}),ve}let r;const o=new cn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{code:Y.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),se(r,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,pe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,pe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,pe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,pe.toString(n))}setLimit(t,n,r,o){return new qo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:pe.toString(o)}]})}_addCheck(t){return new qo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new qo({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ce(e)})};class ql extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.boolean,received:r.parsedType}),ve}return wn(t.data)}}ql.create=e=>new ql({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ce(e)});class Bs extends Ie{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ae.date){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_type,expected:ae.date,received:s.parsedType}),ve}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return se(s,{code:Y.invalid_date}),ve}const r=new cn;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(o=this._getOrReturnCtx(t,o),se(o,{code:Y.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Ue.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Bs({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:pe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:pe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Bs({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ce(e)});class wf extends Ie{_parse(t){if(this._getType(t)!==ae.symbol){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.symbol,received:r.parsedType}),ve}return wn(t.data)}}wf.create=e=>new wf({typeName:_e.ZodSymbol,...Ce(e)});class Kl extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.undefined,received:r.parsedType}),ve}return wn(t.data)}}Kl.create=e=>new Kl({typeName:_e.ZodUndefined,...Ce(e)});class Yl extends Ie{_parse(t){if(this._getType(t)!==ae.null){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.null,received:r.parsedType}),ve}return wn(t.data)}}Yl.create=e=>new Yl({typeName:_e.ZodNull,...Ce(e)});class Ji extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return wn(t.data)}}Ji.create=e=>new Ji({typeName:_e.ZodAny,...Ce(e)});class Rs extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wn(t.data)}}Rs.create=e=>new Rs({typeName:_e.ZodUnknown,...Ce(e)});class po extends Ie{_parse(t){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.never,received:n.parsedType}),ve}}po.create=e=>new po({typeName:_e.ZodNever,...Ce(e)});class Sf extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.void,received:r.parsedType}),ve}return wn(t.data)}}Sf.create=e=>new Sf({typeName:_e.ZodVoid,...Ce(e)});class ur extends Ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==ae.array)return se(n,{code:Y.invalid_type,expected:ae.array,received:n.parsedType}),ve;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.lengtho.maxLength.value&&(se(n,{code:Y.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new $r(n,i,n.path,a)))).then(i=>cn.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new $r(n,i,n.path,a)));return cn.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new ur({...this._def,minLength:{value:t,message:pe.toString(n)}})}max(t,n){return new ur({...this._def,maxLength:{value:t,message:pe.toString(n)}})}length(t,n){return new ur({...this._def,exactLength:{value:t,message:pe.toString(n)}})}nonempty(t){return this.min(1,t)}}ur.create=(e,t)=>new ur({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ce(t)});function wi(e){if(e instanceof yt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Nr.create(wi(r))}return new yt({...e._def,shape:()=>t})}else return e instanceof ur?new ur({...e._def,type:wi(e.element)}):e instanceof Nr?Nr.create(wi(e.unwrap())):e instanceof Yo?Yo.create(wi(e.unwrap())):e instanceof Fr?Fr.create(e.items.map(t=>wi(t))):e}class yt extends Ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ue.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ae.object){const c=this._getOrReturnCtx(t);return se(c,{code:Y.invalid_type,expected:ae.object,received:c.parsedType}),ve}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof po&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new $r(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof po){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(se(o,{code:Y.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new $r(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,d=await u.value;c.push({key:f,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>cn.mergeObjectSync(r,c)):cn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return pe.errToObj,new yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=pe.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new yt({...this._def,unknownKeys:"strip"})}passthrough(){return new yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new yt({...this._def,catchall:t})}pick(t){const n={};return Ue.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}omit(t){const n={};return Ue.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}deepPartial(){return wi(this)}partial(t){const n={};return Ue.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new yt({...this._def,shape:()=>n})}required(t){const n={};return Ue.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Nr;)s=s._def.innerType;n[r]=s}}),new yt({...this._def,shape:()=>n})}keyof(){return Bk(Ue.objectKeys(this.shape))}}yt.create=(e,t)=>new yt({shape:()=>e,unknownKeys:"strip",catchall:po.create(),typeName:_e.ZodObject,...Ce(t)});yt.strictCreate=(e,t)=>new yt({shape:()=>e,unknownKeys:"strict",catchall:po.create(),typeName:_e.ZodObject,...Ce(t)});yt.lazycreate=(e,t)=>new yt({shape:e,unknownKeys:"strip",catchall:po.create(),typeName:_e.ZodObject,...Ce(t)});class Zl extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Mn(a.ctx.common.issues));return se(n,{code:Y.invalid_union,unionErrors:i}),ve}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Mn(l));return se(n,{code:Y.invalid_union,unionErrors:a}),ve}}get options(){return this._def.options}}Zl.create=(e,t)=>new Zl({options:e,typeName:_e.ZodUnion,...Ce(t)});const Yr=e=>e instanceof Ql?Yr(e.schema):e instanceof gr?Yr(e.innerType()):e instanceof ec?[e.value]:e instanceof Ko?e.options:e instanceof tc?Ue.objectValues(e.enum):e instanceof nc?Yr(e._def.innerType):e instanceof Kl?[void 0]:e instanceof Yl?[null]:e instanceof Nr?[void 0,...Yr(e.unwrap())]:e instanceof Yo?[null,...Yr(e.unwrap())]:e instanceof Zm||e instanceof oc?Yr(e.unwrap()):e instanceof rc?Yr(e._def.innerType):[];class Id extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.object)return se(n,{code:Y.invalid_type,expected:ae.object,received:n.parsedType}),ve;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(se(n,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=Yr(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new Id({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ce(r)})}}function Ig(e,t){const n=Mo(e),r=Mo(t);if(e===t)return{valid:!0,data:e};if(n===ae.object&&r===ae.object){const o=Ue.objectKeys(t),s=Ue.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Ig(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===ae.array&&r===ae.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(Tg(s)||Tg(i))return ve;const a=Ig(s.value,i.value);return a.valid?((Ag(s)||Ag(i))&&n.dirty(),{status:n.value,value:a.data}):(se(r,{code:Y.invalid_intersection_types}),ve)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Xl.create=(e,t,n)=>new Xl({left:e,right:t,typeName:_e.ZodIntersection,...Ce(n)});class Fr extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.array)return se(r,{code:Y.invalid_type,expected:ae.array,received:r.parsedType}),ve;if(r.data.lengththis._def.items.length&&(se(r,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new $r(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>cn.mergeArray(n,i)):cn.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Fr({...this._def,rest:t})}}Fr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Fr({items:e,typeName:_e.ZodTuple,rest:null,...Ce(t)})};class Jl extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.object)return se(r,{code:Y.invalid_type,expected:ae.object,received:r.parsedType}),ve;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new $r(r,a,r.path,a)),value:i._parse(new $r(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?cn.mergeObjectAsync(n,o):cn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ie?new Jl({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ce(r)}):new Jl({keyType:ir.create(),valueType:t,typeName:_e.ZodRecord,...Ce(n)})}}class Ef extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.map)return se(r,{code:Y.invalid_type,expected:ae.map,received:r.parsedType}),ve;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new $r(r,a,r.path,[c,"key"])),value:s._parse(new $r(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return ve;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return ve;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Ef.create=(e,t,n)=>new Ef({valueType:t,keyType:e,typeName:_e.ZodMap,...Ce(n)});class Hs extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.set)return se(r,{code:Y.invalid_type,expected:ae.set,received:r.parsedType}),ve;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(se(r,{code:Y.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return ve;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>s._parse(new $r(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Hs({...this._def,minSize:{value:t,message:pe.toString(n)}})}max(t,n){return new Hs({...this._def,maxSize:{value:t,message:pe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Hs.create=(e,t)=>new Hs({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ce(t)});class Ui extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.function)return se(n,{code:Y.invalid_type,expected:ae.function,received:n.parsedType}),ve;function r(a,l){return vf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,_f(),Xi].filter(c=>!!c),issueData:{code:Y.invalid_arguments,argumentsError:l}})}function o(a,l){return vf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,_f(),Xi].filter(c=>!!c),issueData:{code:Y.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Qi){const a=this;return wn(async function(...l){const c=new Mn([]),u=await a._def.args.parseAsync(l,s).catch(p=>{throw c.addIssue(r(l,p)),c}),f=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(f,s).catch(p=>{throw c.addIssue(o(f,p)),c})})}else{const a=this;return wn(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Mn([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new Mn([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ui({...this._def,args:Fr.create(t).rest(Rs.create())})}returns(t){return new Ui({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ui({args:t||Fr.create([]).rest(Rs.create()),returns:n||Rs.create(),typeName:_e.ZodFunction,...Ce(r)})}}class Ql extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ql.create=(e,t)=>new Ql({getter:e,typeName:_e.ZodLazy,...Ce(t)});class ec extends Ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return se(n,{received:n.data,code:Y.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}ec.create=(e,t)=>new ec({value:e,typeName:_e.ZodLiteral,...Ce(t)});function Bk(e,t){return new Ko({values:e,typeName:_e.ZodEnum,...Ce(t)})}class Ko extends Ie{constructor(){super(...arguments),nl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return se(n,{expected:Ue.joinValues(r),received:n.parsedType,code:Y.invalid_type}),ve}if(bf(this,nl)||$k(this,nl,new Set(this._def.values)),!bf(this,nl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return se(n,{received:n.data,code:Y.invalid_enum_value,options:r}),ve}return wn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ko.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ko.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}nl=new WeakMap;Ko.create=Bk;class tc extends Ie{constructor(){super(...arguments),rl.set(this,void 0)}_parse(t){const n=Ue.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ae.string&&r.parsedType!==ae.number){const o=Ue.objectValues(n);return se(r,{expected:Ue.joinValues(o),received:r.parsedType,code:Y.invalid_type}),ve}if(bf(this,rl)||$k(this,rl,new Set(Ue.getValidEnumValues(this._def.values))),!bf(this,rl).has(t.data)){const o=Ue.objectValues(n);return se(r,{received:r.data,code:Y.invalid_enum_value,options:o}),ve}return wn(t.data)}get enum(){return this._def.values}}rl=new WeakMap;tc.create=(e,t)=>new tc({values:e,typeName:_e.ZodNativeEnum,...Ce(t)});class Qi extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.promise&&n.common.async===!1)return se(n,{code:Y.invalid_type,expected:ae.promise,received:n.parsedType}),ve;const r=n.parsedType===ae.promise?n.data:Promise.resolve(n.data);return wn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Qi.create=(e,t)=>new Qi({type:e,typeName:_e.ZodPromise,...Ce(t)});class gr extends Ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{se(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ve;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ve:l.status==="dirty"||n.value==="dirty"?xi(l.value):l});{if(n.value==="aborted")return ve;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ve:a.status==="dirty"||n.value==="dirty"?xi(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ve:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ve:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!zl(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>zl(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);Ue.assertNever(o)}}gr.create=(e,t,n)=>new gr({schema:e,typeName:_e.ZodEffects,effect:t,...Ce(n)});gr.createWithPreprocess=(e,t,n)=>new gr({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ce(n)});class Nr extends Ie{_parse(t){return this._getType(t)===ae.undefined?wn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:_e.ZodOptional,...Ce(t)});class Yo extends Ie{_parse(t){return this._getType(t)===ae.null?wn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Yo.create=(e,t)=>new Yo({innerType:e,typeName:_e.ZodNullable,...Ce(t)});class nc extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ae.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}nc.create=(e,t)=>new nc({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ce(t)});class rc extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Gl(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Mn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}rc.create=(e,t)=>new rc({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ce(t)});class xf extends Ie{_parse(t){if(this._getType(t)!==ae.nan){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.nan,received:r.parsedType}),ve}return{status:"valid",value:t.data}}}xf.create=e=>new xf({typeName:_e.ZodNaN,...Ce(e)});const u3=Symbol("zod_brand");class Zm extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class kc extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ve:s.status==="dirty"?(n.dirty(),xi(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ve:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new kc({in:t,out:n,typeName:_e.ZodPipeline})}}class oc extends Ie{_parse(t){const n=this._def.innerType._parse(t),r=o=>(zl(o)&&(o.value=Object.freeze(o.value)),o);return Gl(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}oc.create=(e,t)=>new oc({innerType:e,typeName:_e.ZodReadonly,...Ce(t)});function Hk(e,t={},n){return e?Ji.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Ji.create()}const f3={object:yt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const d3=(e,t={message:`Input not instance of ${e.name}`})=>Hk(n=>n instanceof e,t),Vk=ir.create,Wk=Go.create,p3=xf.create,h3=qo.create,zk=ql.create,g3=Bs.create,m3=wf.create,y3=Kl.create,_3=Yl.create,v3=Ji.create,b3=Rs.create,w3=po.create,S3=Sf.create,E3=ur.create,x3=yt.create,k3=yt.strictCreate,C3=Zl.create,T3=Id.create,A3=Xl.create,I3=Fr.create,O3=Jl.create,R3=Ef.create,L3=Hs.create,P3=Ui.create,N3=Ql.create,M3=ec.create,D3=Ko.create,$3=tc.create,F3=Qi.create,Vb=gr.create,U3=Nr.create,j3=Yo.create,B3=gr.createWithPreprocess,H3=kc.create,V3=()=>Vk().optional(),W3=()=>Wk().optional(),z3=()=>zk().optional(),G3={string:e=>ir.create({...e,coerce:!0}),number:e=>Go.create({...e,coerce:!0}),boolean:e=>ql.create({...e,coerce:!0}),bigint:e=>qo.create({...e,coerce:!0}),date:e=>Bs.create({...e,coerce:!0})},q3=ve;var R=Object.freeze({__proto__:null,defaultErrorMap:Xi,setErrorMap:qH,getErrorMap:_f,makeIssue:vf,EMPTY_PATH:KH,addIssueToContext:se,ParseStatus:cn,INVALID:ve,DIRTY:xi,OK:wn,isAborted:Tg,isDirty:Ag,isValid:zl,isAsync:Gl,get util(){return Ue},get objectUtil(){return Cg},ZodParsedType:ae,getParsedType:Mo,ZodType:Ie,datetimeRegex:jk,ZodString:ir,ZodNumber:Go,ZodBigInt:qo,ZodBoolean:ql,ZodDate:Bs,ZodSymbol:wf,ZodUndefined:Kl,ZodNull:Yl,ZodAny:Ji,ZodUnknown:Rs,ZodNever:po,ZodVoid:Sf,ZodArray:ur,ZodObject:yt,ZodUnion:Zl,ZodDiscriminatedUnion:Id,ZodIntersection:Xl,ZodTuple:Fr,ZodRecord:Jl,ZodMap:Ef,ZodSet:Hs,ZodFunction:Ui,ZodLazy:Ql,ZodLiteral:ec,ZodEnum:Ko,ZodNativeEnum:tc,ZodPromise:Qi,ZodEffects:gr,ZodTransformer:gr,ZodOptional:Nr,ZodNullable:Yo,ZodDefault:nc,ZodCatch:rc,ZodNaN:xf,BRAND:u3,ZodBranded:Zm,ZodPipeline:kc,ZodReadonly:oc,custom:Hk,Schema:Ie,ZodSchema:Ie,late:f3,get ZodFirstPartyTypeKind(){return _e},coerce:G3,any:v3,array:E3,bigint:h3,boolean:zk,date:g3,discriminatedUnion:T3,effect:Vb,enum:D3,function:P3,instanceof:d3,intersection:A3,lazy:N3,literal:M3,map:R3,nan:p3,nativeEnum:$3,never:w3,null:_3,nullable:j3,number:Wk,object:x3,oboolean:z3,onumber:W3,optional:U3,ostring:V3,pipeline:H3,preprocess:B3,promise:F3,record:O3,set:L3,strictObject:k3,string:Vk,symbol:m3,transformer:Vb,tuple:I3,undefined:y3,union:C3,unknown:b3,void:S3,NEVER:q3,ZodIssueCode:Y,quotelessJson:GH,ZodError:Mn});const K3=pt.withTag("updateUserEngagementState"),Y3=e=>{const t=e.isEngaged?"isEngaged":"notEngaged",n=no.getContext();K3.info(`User engagement state updated: ${t}`),no.setContext({...n,...e}),window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var r,o;(o=(r=window.assertive)==null?void 0:r.analytics)!=null&&o.custom&&(window.assertive.analytics.custom.userState=t)}),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push(()=>{window.googletag.setConfig({targeting:{user_engagement:t}})})},Wb=pt.withTag("store:UserEngagementStore"),Og=R.object({isEngaged:R.boolean(),lastEngagementDate:R.date().nullable()}),Rp="app:userEngagement",su=Og.parse({isEngaged:!1,lastEngagementDate:null}),Z3=bc(Rp,{state:()=>({...su}),getters:{isEnabled(){return!!it().public.enableUserTracking},localStorageEngagement(){const e=mf.getItem(Rp);if(!e)return su;const t=JSON.parse(e),n=Og.safeParse({...t,lastEngagementDate:new Date(t.lastEngagementDate)});return n.success?n.data:(Wb.error("Invalid user engagement data:",n.error.errors),su)}},actions:{loadUserEngagement(){if(!this.isEnabled)return;this.setupLocalStorageSync();const e=this.localStorageEngagement;this.$patch({...e}),this.shouldResetEngagement()&&this.resetUserEngagement()},setupLocalStorageSync(){this.isEnabled&&this.$subscribe((e,t)=>{mf.setItem(Rp,JSON.stringify(t)),Y3(t)},{flush:"sync"})},setUserEngagement(e,t){if(!this.isEnabled)return;const n={...this.$state,[e]:t,lastEngagementDate:new Date},r=Og.safeParse(n);if(!r.success){Wb.error("Invalid user engagement entry",r.error.errors);return}this.$patch(r.data)},resetUserEngagement(){this.isEnabled&&this.$patch({...su})},shouldResetEngagement(){return!this.$state.isEngaged||this.$state.isEngaged&&!this.isEngagementRecent()},isEngagementRecent(){const e=this.$state.lastEngagementDate?new Date(this.$state.lastEngagementDate):null;if(!e)return!1;const t=1e3*60*60*24*7;return new Date().getTime()-e.getTime()<=t},getUserEngagementProperty(e){return this.$state[e]}}});function kf(e,t){var c,u;const{shift:n,chrome:r,onelaunch:o}=Xn(),s=(c=n==null?void 0:n.analytics)==null?void 0:c.setProfileProperties;if(s)return s({[e]:t});const i=typeof t=="string"?t:JSON.stringify(t),a=o==null?void 0:o.setProfileProperty;if(a){a(e,i);return}const l=(u=r==null?void 0:r.runtime)==null?void 0:u.setProfileProperty;l&&l(e,i)}const Gk=()=>{if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=()=>Math.floor(Math.random()*16).toString(16);return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=e();return(t==="x"?n:parseInt(n,16)&3|8).toString(16)}).toUpperCase()},O9=()=>`${Date.now()}-${Gk().slice(0,8)}`,Lp=["alfa","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliett"],$a=pt.withTag("openfeature"),Pp=new Map;let di=null;async function X3(){if(di&&await di,Pp.has("client")&&Pp.get("client")!==void 0){const S=Pp.get("client");if(S)return{client:S,loaded:Promise.resolve(S)}}const e=1e3*60*60*24*365*10,t=ku(VH,{maxAge:e});t.value=t.value||Gk();const n=ku(Mk,{maxAge:e});if(!n.value||!Lp.includes(n.value)){const S=String(t.value),E=Array.from(S).reduce((x,N)=>x+N.charCodeAt(0),0)%Lp.length;n.value=Lp[E]}const r=Ae().$filters||{userAgent:null,isMobile:null},o=zH(),s=ti().query,i=ku(WH,{maxAge:e}),a=Z3();a.loadUserEngagement(),no.setContext({...r,...s,targetingKey:t.value,...i.value?{splittestname:i.value}:{},...a.$state,cohort:n.value,isShiftBrowser:o}),$a.log({filters:r});const{registerMultipleFeatureFlagProviders:l,registerFeatureFlagProvider:c,teardown:u}=await Yt(async()=>{const{registerMultipleFeatureFlagProviders:S,registerFeatureFlagProvider:E,teardown:x}=await import("./CZOmIXIK.js").then(N=>N.f);return{registerMultipleFeatureFlagProviders:S,registerFeatureFlagProvider:E,teardown:x}},__vite__mapDeps([60,18,9]),import.meta.url);di&&await di;const{configCatSdkKey:f}=it().public,{openfeature:d={multiProvider:!1,localProvider:!1,queryProvider:!1}}=jr(),{multiProvider:p=!1,localProvider:g=!1,queryProvider:h=!1}=d,y={configCatKey:f??void 0,localProvider:g,queryProvider:h},m=p?l(y):c(y);di=m;const b=await m;$a.log({client:b,OpenFeature:no,context:no.getContext()});let _=!1;const v=b.getStringValue("splittestname","");if(v&&(i.value=v),no.setContext({...no.getContext(),splittestname:i.value??"",cohort:n.value??"",isShiftBrowser:o}),typeof window<"u"){_||(window.addEventListener("beforeunload",()=>{$a.log("Teardown OpenFeature client on beforeunload"),u().catch(S=>$a.error("Teardown failed:",S))}),_=!0);try{kf("ntp_cohort",String(n.value||""))}catch(S){$a.warn("Failed to set NTP cohort property for analytics",S)}}return{client:b,loaded:di}}const ri=mk(X3);async function J3(e){const{client:t}=await ri(),n=t.getStringValue(e,"control"),r=`/api/v2/configs/${e}`;return[`${r}/${n}.json`,`${r}/control.json`]}const Fa=pt.withTag("store:ConfigStore");function Od(e){const t=n=>{if(!e.transform)return n;try{return e.transform(n)}catch(r){return Fa.error(`[${e.configStoreKey}] Failed to apply transform function:`,r),n}};return bc(e.configStoreKey,()=>{const n=new bB(mf,"app:config",6e4),r=ue(e.defaults),o=ue(!1),s=async()=>{const u=[],f=await J3(e.configStoreKey);for(const d of Array.isArray(f)?f:[f])try{const p=await fetch(d);if(!p.ok)throw new Error(`Failed to fetch ${d}: ${p.statusText}`);const g=await p.json();return e.schema(g)}catch(p){u.push(`Failed to fetch ${d}: ${p}`)}throw new Error(`Failed to fetch config: ${u.join(", ")}`)};let i=null;const a=async()=>{var f,d;if(i)return i;o.value=!0;const u=n.load(e.configStoreKey);if(u)try{const p=JSON.parse(u),g=e.schema(p),h=t(g);r.value=h,(f=e.onLoad)==null||f.call(e,h)}catch(p){Fa.warn(`[${e.configStoreKey}] Failed to parse or validate stored data:`,p)}else{try{const p=await s(),g=t(p);r.value=g,n.save(e.configStoreKey,JSON.stringify(g)),(d=e.onLoad)==null||d.call(e,g)}catch(p){Fa.error(`[${e.configStoreKey}] Failed to fetch or validate config:`,p)}r.value||Fa.warn(`[${e.configStoreKey}] No valid data found in local storage or API`)}return o.value=!1,await Promise.resolve(r.value)};return i=a(),{data:r,isLoading:o,load:a,update:u=>{var d;Fa.log("updating config store",u);const f={...r.value,...u};r.value=t(f),n.save(e.configStoreKey,JSON.stringify(r.value)),(d=e.onUpdate)==null||d.call(e,r.value)},reset:()=>{var f;const u=structuredClone(e.defaults);r.value=t(u),n.save(e.configStoreKey,JSON.stringify(r.value)),(f=e.onReset)==null||f.call(e),i=null},storage:n,initialized:i}})}const Q3=R.object({position:R.union([R.literal("off"),R.literal("footer"),R.literal("navbar")]).default("off").transform(e=>e==="navbar"?"footer":e),defaultSettings:R.object({theme:R.union([R.literal("light"),R.literal("dark"),R.literal("auto")]),articleSummary:R.boolean().default(!0)}),enabledSettings:R.object({articleSummary:R.boolean().default(!1)}).default({articleSummary:!1})}),zb=R.object({userSettings:R.optional(Q3),enableLocalNewsSearch:R.boolean().default(!0),sortNewsBy:R.union([R.literal("publishedDate"),R.literal("clusterSize")]).default("publishedDate"),enableArticleReordering:R.boolean().default(!1),derankItemsByStatus:R.union([R.literal("none"),R.literal("viewed"),R.literal("read"),R.literal("both")]).default("viewed"),videoEnabled:R.optional(R.boolean()),gamesEnabled:R.optional(R.boolean())}),Rd=Od({defaults:zb.parse({userSettings:{position:"off",defaultSettings:{theme:"light",articleSummary:!0},enabledSettings:{articleSummary:!1}},enableLocalNewsSearch:!0,sortNewsBy:"clusterSize",enableArticleReordering:!1,derankItemsByStatus:"viewed",videoEnabled:!1,gamesEnabled:!1}),configStoreKey:"siteSettings",schema:e=>zb.parse(e)}),Gb=[];function e4(e,t){if(((r,o)=>!!(r==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(Gb.includes(t.ntp_placement_name))return!1;Gb.push(t.ntp_placement_name)}return!0}function t4(e,t){const n=Rd(),{data:r}=wc(n);e4(e,t)&&n4(e,t,r?Me(r):void 0)}async function n4(e,t,n){var f,d;const o={...await HC(n,e),...t||{}};window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:o});const{shift:s,chrome:i,onelaunch:a}=Xn(),l=(f=s==null?void 0:s.analytics)==null?void 0:f.track;if(l)return l(e,o);const c=a==null?void 0:a.sendEvent;if(c){c(e,o);return}const u=(d=i==null?void 0:i.runtime)==null?void 0:d.sendEvent;u&&u(e,o)}function r4(e,t){var l,c;const{shift:n,chrome:r,onelaunch:o}=Xn(),s=(l=n==null?void 0:n.analytics)==null?void 0:l.updateNumericProfileProperties;if(s)return s({[e]:t});const i=o==null?void 0:o.addProfileProperty;if(i){i(e,t.toString());return}const a=(c=r==null?void 0:r.runtime)==null?void 0:c.addProfileProperty;a&&a(e,t.toString())}const qk={getSearchUrl:CB,getConfig:TB,getHostApis:Xn,openInDefaultBrowser:IB,getHostBrowserAppVersion:hk,setProfileProperty:kf,isCurrentlyAtHomeTab:dk,getInstallInfo:pk,getSearchEngineConfig:RB,analytics:{incrementProfileProperty:r4,sendMixpanelEvent:t4,setProfileProperty:kf}},o4="2.219.0",Np={version:o4},s4=300,i4=12,a4=24,Ua=e=>e*s4+(e-1)*i4,ja={1:Ua(1),2:Ua(2),3:Ua(3),4:Ua(4),5:Ua(5)};function l4(e){const t=e-a4*2;return t>=ja[5]?5:t>=ja[4]?4:t>=ja[3]?3:t>=ja[2]?2:t>=ja[1]?1:0}const c4=()=>{const{width:e,height:t}=Rx(),n=`${e.value}x${t.value}`,r=e.value,o=t.value,s=l4(e.value);return{browser_window_size:n,browser_window_width:r,browser_window_height:o,column_count:s}},Xm=R.object({design:R.enum(["google","msn"]).default("google").optional(),pages:R.number().min(2).default(6).optional()}).passthrough(),Kk=R.object({type:R.optional(R.union([R.literal("slider"),R.literal("carousel"),R.literal("title"),R.literal("title-l"),R.literal("video"),R.literal("video-s"),R.literal("video-l"),R.literal("title-msn"),R.literal("article-group"),R.literal("yolo-xxl"),R.literal("yolo-xl"),R.literal("yolo-l"),R.literal("yolo-full")])),y:R.number(),x:R.optional(R.number()),repeat:R.optional(R.boolean()),size:R.optional(R.number()),classes:R.optional(R.string()),props:R.optional(Xm),onlyWhenGridIsGreaterThan:R.optional(R.number())}),Yk=R.object({y:R.number(),x:R.optional(R.number()),classes:R.optional(R.string()),props:R.optional(Xm),onlyWhenGridIsGreaterThan:R.optional(R.number())}),u4=Kk.extend({type:R.literal("slider"),props:R.optional(Xm.extend({autoplayInterval:R.optional(R.number()),ads:R.optional(R.array(Yk.pick({classes:!0,props:!0}).extend({position:R.number()}))),contentType:R.enum(["video","title"]).optional()}))}),qb=R.union([Kk,u4,Yk]),f4=R.object({name:R.string(),title:R.optional(R.string()),titleIcon:R.optional(R.string()),background:R.optional(R.string()),padded:R.optional(R.literal(!1)),classes:R.optional(R.string()),repeat:R.optional(R.literal(!0)),titles:R.optional(R.array(qb)),ads:R.optional(R.array(qb))}),d4=R.object({name:R.string(),section:R.array(f4)}),p4=Od({configStoreKey:"layoutSkeleton",defaults:void 0,schema:e=>d4.parse(e)});function Zk(e){const t=new Date(e);if(isNaN(t.getTime()))return 0;const r=new Date().getTime()-t.getTime(),o=Math.max(0,r);return Math.round(o/(1e3*60*60))}const ea=pt.withTag("fetchedContent");let $o=null,ao=null,ji=0;const Rg=new Map;function h4(e,t,n=0,r){return{id:e.id,sortOrder:n+t,headline:e.title,publisher:e.nameSource,url:e.link||void 0,summary_url:r?r(e):void 0,category:e.category,type:"article",story_age:e.publishedDate?Zk(e.publishedDate):void 0}}function g4(e,t,n=0,r){return{id:e.id,sortOrder:n+t,headline:e.title,publisher:void 0,url:e.link||void 0,summary_url:r?r(e):void 0,category:e.category,type:"video",story_age:e.publishedDate?Zk(e.publishedDate):void 0}}function Xk(e,t){for(const n of e)Rg.has(n.id)||Rg.set(n.id,n.sortOrder);t?($o||($o={items:[],timestamp:Date.now()}),$o.items.push(...e),$o.timestamp=Date.now()):(ao||(ao={items:[],timestamp:Date.now()}),ao.items.push(...e),ao.timestamp=Date.now())}function R9(e,t,n){if(!e||e.length===0){ea.warn("registerArticleBatch called with empty articles array");return}const r=ji,o=e.map((s,i)=>h4(s,i,r,n));Xk(o,t),ji+=e.length,ea.info(`Registered ${t?"initial":"more-news"} batch with ${e.length} articles for analytics (total: ${ji})`)}function L9(e,t,n){if(!e||e.length===0){ea.warn("registerVideoBatch called with empty videos array");return}const r=ji,o=e.map((s,i)=>g4(s,i,r,n));Xk(o,t),ji+=e.length,ea.info(`Registered ${t?"initial":"more-news"} batch with ${e.length} videos for analytics (total: ${ji})`)}function m4(){return $o?$o.items:(ea.warn("getInitialBatchContent called but no initial batch registered"),[])}function y4(){return ao?ao.items:(ea.warn("getLatestMoreNewsBatchContent called but no more-news batch registered"),[])}function _4(){return $o!==null&&$o.items.length>0}function v4(){return ao!==null&&ao.items.length>0}function b4(){ao=null}function P9(e){if(e)return Rg.get(e)}const w4=pt.withTag("testSectionContent");let Cf=null;function N9(e,t){const n={};for(const[o,s]of e.entries())s&&(n[o]={...s});const r={};for(const[o,s]of Object.entries(n))(s.publisherName==="Quartz"||s.publisherName==="The Inventory")&&(r[o]=s);Cf=r,w4.log(`[testSectionContent] Registered ${Object.keys(n).length} slots${t?` from ${t}`:""}`)}function S4(){return Cf}function E4(){return Cf!==null&&Object.keys(Cf).length>0}const x4=bc("newsToggle",{state:()=>({newsToggle:!0}),actions:{updateNewsToggle(){this.newsToggle=!this.newsToggle}}}),Jk=()=>ni("color-mode").value;var Lt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Lt||(Lt={}));function k4(e){return e.nodeType===e.ELEMENT_NODE}function yl(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function _l(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function C4(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function T4(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Tf(e){try{const t=e.rules||e.cssRules;return t?C4(Array.from(t,Qk).join("")):null}catch{return null}}function Qk(e){let t;if(I4(e))try{t=Tf(e.styleSheet)||T4(e)}catch{}else if(O4(e)&&e.selectorText.includes(":"))return A4(e.cssText);return t||e.cssText}function A4(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function I4(e){return"styleSheet"in e}function O4(e){return"selectorText"in e}class eC{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var n;if(!t)return-1;const r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function R4(){return new eC}function Jm({element:e,maskInputOptions:t,tagName:n,type:r,value:o,maskInputFn:s}){let i=o||"";const a=r&&Vs(r);return(t[n.toLowerCase()]||a&&t[a])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function Vs(e){return e.toLowerCase()}const Kb="__rrweb_original__";function L4(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rl!==0))return!1}return!0}function Qm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Vs(t):null}function tC(e,t){var n;let r;try{r=new URL(e,t??window.location.href)}catch{return null}const o=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(o);return(n=s==null?void 0:s[1])!==null&&n!==void 0?n:null}let P4=1;const N4=new RegExp("[^a-z0-9-_:]"),sc=-2;function nC(){return P4++}function M4(e){if(e instanceof HTMLFormElement)return"form";const t=Vs(e.tagName);return N4.test(t)?"div":t}function D4(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let pi,Yb;const $4=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,F4=/^(?:[a-z+]+:)?\/\//i,U4=/^www\..*/i,j4=/^(data:)([^,]*),(.*)/i;function Af(e,t){return(e||"").replace($4,(n,r,o,s,i,a)=>{const l=o||i||a,c=r||s||"";if(!l)return n;if(F4.test(l)||U4.test(l))return`url(${c}${l}${c})`;if(j4.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${D4(t)+l}${c})`;const u=t.split("/"),f=l.split("/");u.pop();for(const d of f)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${c}${u.join("/")}${c})`})}const B4=/^[^ \t\n\r\u000c]+/,H4=/^[, \t\n\r\u000c]+/;function V4(e,t){if(t.trim()==="")return t;let n=0;function r(s){let i;const a=s.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const o=[];for(;r(H4),!(n>=t.length);){let s=r(B4);if(s.slice(-1)===",")s=ki(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=ki(e,s);let a=!1;for(;;){const l=t.charAt(n);if(l===""){o.push((s+i).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,o.push((s+i).trim());break}else l==="("&&(a=!0);i+=l,n+=1}}}return o.join(", ")}function ki(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function W4(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ey(){const e=document.createElement("a");return e.href="",e.href}function rC(e,t,n,r){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ki(e,r):n==="srcset"?V4(e,r):n==="style"?Af(r,ey()):t==="object"&&n==="data"?ki(e,r):r)}function oC(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function z4(e,t,n){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const o=e.classList[r];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function If(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?If(e.parentNode,t,n):!1;for(let r=e.classList.length;r--;){const o=e.classList[r];if(t.test(o))return!0}return n?If(e.parentNode,t,n):!1}function sC(e,t,n,r){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(typeof t=="string"){if(r){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(If(o,t,r))return!0;if(n){if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}}catch{}return!1}function G4(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const a=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function q4(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),r=!0,t()})}function K4(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:f={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h=!1}=t,y=Y4(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Lt.Document,childNodes:[],compatMode:e.compatMode}:{type:Lt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Lt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return X4(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:f,inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h,rootId:y});case e.TEXT_NODE:return Z4(e,{needsMask:i,maskTextFn:c,rootId:y});case e.CDATA_SECTION_NODE:return{type:Lt.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Lt.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function Y4(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Z4(e,t){var n;const{needsMask:r,maskTextFn:o,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const l=i==="STYLE"?!0:void 0,c=i==="SCRIPT"?!0:void 0;if(l&&a){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(a=Tf(e.parentNode.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}a=Af(a,ey())}return c&&(a="SCRIPT_PLACEHOLDER"),!l&&!c&&a&&r&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:Lt.Text,textContent:a||"",isStyle:l,rootId:s}}function X4(e,t){const{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=t,g=z4(e,r,o),h=M4(e);let y={};const m=e.attributes.length;for(let _=0;_S.href===e.href);let v=null;_&&(v=Tf(_)),v&&(delete y.rel,delete y.href,y._cssText=Af(v,_.href))}if(h==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const _=Tf(e.sheet);_&&(y._cssText=Af(_,ey()))}if(h==="input"||h==="textarea"||h==="select"){const _=e.value,v=e.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&_?y.value=Jm({element:e,type:Qm(e),tagName:h,value:_,maskInputOptions:i,maskInputFn:a}):v&&(y.checked=v)}if(h==="option"&&(e.selected&&!i.select?y.selected=!0:delete y.selected),h==="canvas"&&u){if(e.__context==="2d")L4(e)||(y.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const _=e.toDataURL(l.type,l.quality),v=document.createElement("canvas");v.width=e.width,v.height=e.height;const S=v.toDataURL(l.type,l.quality);_!==S&&(y.rr_dataURL=_)}}if(h==="img"&&c){pi||(pi=n.createElement("canvas"),Yb=pi.getContext("2d"));const _=e,v=_.crossOrigin;_.crossOrigin="anonymous";const S=()=>{_.removeEventListener("load",S);try{pi.width=_.naturalWidth,pi.height=_.naturalHeight,Yb.drawImage(_,0,0),y.rr_dataURL=pi.toDataURL(l.type,l.quality)}catch(E){console.warn(`Cannot inline img src=${_.currentSrc}! Error: ${E}`)}v?y.crossOrigin=v:_.removeAttribute("crossorigin")};_.complete&&_.naturalWidth!==0?S():_.addEventListener("load",S)}if(h==="audio"||h==="video"){const _=y;_.rr_mediaState=e.paused?"paused":"played",_.rr_mediaCurrentTime=e.currentTime,_.rr_mediaPlaybackRate=e.playbackRate,_.rr_mediaMuted=e.muted,_.rr_mediaLoop=e.loop,_.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),g){const{width:_,height:v}=e.getBoundingClientRect();y={class:y.class,rr_width:`${_}px`,rr_height:`${v}px`}}h==="iframe"&&!f(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:Lt.Element,tagName:h,attributes:y,childNodes:[],isSVG:W4(e)||void 0,needBlock:g,rootId:p,isCustom:b}}function rt(e){return e==null?"":e.toLowerCase()}function J4(e,t){if(t.comment&&e.type===Lt.Comment)return!0;if(e.type===Lt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&tC(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(rt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||rt(e.attributes.name)==="application-name"||rt(e.attributes.rel)==="icon"||rt(e.attributes.rel)==="apple-touch-icon"||rt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&rt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(rt(e.attributes.property).match(/^(og|twitter|fb):/)||rt(e.attributes.name).match(/^(og|twitter):/)||rt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(rt(e.attributes.name)==="robots"||rt(e.attributes.name)==="googlebot"||rt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(rt(e.attributes.name)==="author"||rt(e.attributes.name)==="generator"||rt(e.attributes.name)==="framework"||rt(e.attributes.name)==="publisher"||rt(e.attributes.name)==="progid"||rt(e.attributes.property).match(/^article:/)||rt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(rt(e.attributes.name)==="google-site-verification"||rt(e.attributes.name)==="yandex-verification"||rt(e.attributes.name)==="csrf-token"||rt(e.attributes.name)==="p:domain_verify"||rt(e.attributes.name)==="verify-v1"||rt(e.attributes.name)==="verification"||rt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ci(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g={},inlineImages:h=!1,recordCanvas:y=!1,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:x=!1}=t;let{needsMask:N}=t,{preserveWhiteSpace:I=!0}=t;!N&&e.childNodes&&(N=sC(e,i,a,N===void 0));const O=K4(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,dataURLOptions:g,inlineImages:h,recordCanvas:y,keepIframeSrcFn:E,newlyAddedElement:x});if(!O)return console.warn(e,"not serialized"),null;let U;r.hasNode(e)?U=r.getId(e):J4(O,p)||!I&&O.type===Lt.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?U=sc:U=nC();const L=Object.assign(O,{id:U});if(r.add(e,L),U===sc)return null;m&&m(e);let G=!l;if(L.type===Lt.Element){G=G&&!L.needBlock,delete L.needBlock;const oe=e.shadowRoot;oe&&_l(oe)&&(L.isShadowHost=!0)}if((L.type===Lt.Document||L.type===Lt.Element)&&G){p.headWhitespace&&L.type===Lt.Element&&L.tagName==="head"&&(I=!1);const oe={doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:y,preserveWhiteSpace:I,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E};if(!(L.type===Lt.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0))for(const ce of Array.from(e.childNodes)){const q=Ci(ce,oe);q&&L.childNodes.push(q)}if(k4(e)&&e.shadowRoot)for(const ce of Array.from(e.shadowRoot.childNodes)){const q=Ci(ce,oe);q&&(_l(e.shadowRoot)&&(q.isShadow=!0),L.childNodes.push(q))}}return e.parentNode&&yl(e.parentNode)&&_l(e.parentNode)&&(L.isShadow=!0),L.type===Lt.Element&&L.tagName==="iframe"&&G4(e,()=>{const oe=e.contentDocument;if(oe&&b){const ce=Ci(oe,{doc:oe,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:y,preserveWhiteSpace:I,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E});ce&&b(e,ce)}},_),L.type===Lt.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&tC(L.attributes.href)==="css")&&q4(e,()=>{if(v){const oe=Ci(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:y,preserveWhiteSpace:I,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E});oe&&v(e,oe)}},S),L}function Q4(e,t){const{mirror:n=new eC,blockClass:r="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:f,maskInputFn:d,slimDOM:p=!1,dataURLOptions:g,preserveWhiteSpace:h,onSerialize:y,onIframeLoad:m,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:S=()=>!1}=t||{};return Ci(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:l,recordCanvas:c,preserveWhiteSpace:h,onSerialize:y,onIframeLoad:m,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:S,newlyAddedElement:!1})}function vn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Si=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let Zb={map:{},getId(){return console.error(Si),-1},getNode(){return console.error(Si),null},removeNodeFromMap(){console.error(Si)},has(){return console.error(Si),!1},reset(){console.error(Si)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Zb=new Proxy(Zb,{get(e,t,n){return t==="map"&&console.error(Si),Reflect.get(e,t,n)}}));function ic(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&n.leading===!1&&(o=i);const a=t-(i-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(l,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(l,s)},a))}}function Ld(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Ld(e,t,s||{},!0)}function _a(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let Of=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Of=()=>new Date().getTime());function iC(e){var t,n,r,o,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(a==null?void 0:a.documentElement.scrollLeft)||((n=(t=a==null?void 0:a.body)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=a==null?void 0:a.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||((s=(o=a==null?void 0:a.body)===null||o===void 0?void 0:o.parentElement)===null||s===void 0?void 0:s.scrollTop)||((i=a==null?void 0:a.body)===null||i===void 0?void 0:i.scrollTop)||0}}function aC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lC(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function cC(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function bn(e,t,n,r){if(!e)return!1;const o=cC(e);if(!o)return!1;try{if(typeof t=="string"){if(o.classList.contains(t)||r&&o.closest("."+t)!==null)return!0}else if(If(o,t,r))return!0}catch{}return!!(n&&(o.matches(n)||r&&o.closest(n)!==null))}function eV(e,t){return t.getId(e)!==-1}function Mp(e,t){return t.getId(e)===sc}function uC(e,t){if(yl(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?uC(e.parentNode,t):!0:!0}function Lg(e){return!!e.changedTouches}function tV(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function fC(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function dC(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Pg(e){return!!(e!=null&&e.shadowRoot)}class nV{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&&n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function pC(e){var t,n;let r=null;return((n=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function rV(e){let t=e,n;for(;n=pC(t);)t=n;return t}function oV(e){const t=e.ownerDocument;if(!t)return!1;const n=rV(e);return t.contains(n)}function hC(e){const t=e.ownerDocument;return t?t.contains(e)||oV(e):!1}var Be=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Be||{}),De=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(De||{}),Cn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Cn||{}),Zr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zr||{}),ta=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ta||{});function Xb(e){return"__ln"in e}class sV{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r`${e}@${t}`;class iV{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new sV,o=l=>{let c=l,u=sc;for(;u===sc;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=l=>{if(!l.parentNode||!hC(l)||l.parentNode.tagName==="TEXTAREA")return;const c=yl(l.parentNode)?this.mirror.getId(pC(l)):this.mirror.getId(l.parentNode),u=o(l);if(c===-1||u===-1)return r.addNode(l);const f=Ci(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{fC(d,this.mirror)&&this.iframeManager.addIframe(d),dC(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Pg(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(d,p)=>{this.iframeManager.attachIframe(d,p),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,p)=>{this.stylesheetManager.attachLinkElement(d,p)}});f&&(t.push({parentId:c,nextId:u,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)Qb(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(const l of this.addedSet)!e0(this.droppedSet,l)&&!Qb(this.removes,l,this.mirror)||e0(this.movedSet,l)?s(l):this.droppedSet.add(l);let i=null;for(;r.length;){let l=null;if(i){const c=this.mirror.getId(i.value.parentNode),u=o(i.value);c!==-1&&u!==-1&&(l=i)}if(!l){let c=r.tail;for(;c;){const u=c;if(c=c.previous,u){const f=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(f!==-1){l=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=p.parentNode.host;if(this.mirror.getId(g)!==-1){l=u;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}i=l.previous,r.removeNode(l.value),s(l.value)}const a={texts:this.texts.map(l=>{const c=l.node;return c.parentNode&&c.parentNode.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c.parentNode),{id:this.mirror.getId(c),value:l.value}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:c}=l;if(typeof c.style=="string"){const u=JSON.stringify(l.styleDiff),f=JSON.stringify(l._unchangedStyles);u.length!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=t=>{let n=this.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(t,n)),n.attributes.value=Array.from(t.childNodes,r=>r.textContent||"").join("")},this.processMutation=t=>{if(!Mp(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!bn(t.target,this.blockClass,this.blockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:sC(t.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,cC(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=Qm(n);o=Jm({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:o,maskInputFn:this.maskInputFn})}if(bn(t.target,this.blockClass,this.blockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!oC(n.tagName,r)&&(s.attributes[r]=rC(this.doc,Vs(n.tagName),Vs(r),o),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const l=n.style.getPropertyValue(a),c=n.style.getPropertyPriority(a);l!==i.style.getPropertyValue(a)||c!==i.style.getPropertyPriority(a)?c===""?s.styleDiff[a]=l:s.styleDiff[a]=[l,c]:s._unchangedStyles[a]=[l,c]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(bn(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=yl(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);bn(t.target,this.blockClass,this.blockSelector,!1)||Mp(n,this.mirror)||!eV(n,this.mirror)||(this.addedSet.has(n)?(Ng(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||uC(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Jb(r,o)]?Ng(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:yl(t.target)&&_l(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Mp(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Jb(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);bn(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Pg(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ng(e,t){e.delete(t),t.childNodes.forEach(n=>Ng(e,n))}function Qb(e,t,n){return e.length===0?!1:gC(e,t,n)}function gC(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(s=>s.id===o)?!0:gC(e,r,n)}function e0(e,t){return e.size===0?!1:mC(e,t)}function mC(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:mC(e,n):!1}let vl;function aV(e){vl=e}function lV(){vl=void 0}const $e=e=>vl?(...n)=>{try{return e(...n)}catch(r){if(vl&&vl(r)===!0)return;throw r}}:e,xs=[];function Cc(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function yC(e,t){var n,r;const o=new iV;xs.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s($e(o.processMutations.bind(o)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function cV({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const l=ic($e(f=>{const d=Date.now()-a;e(i.map(p=>(p.timeOffset-=d,p)),f),i=[],a=null}),s),c=$e(ic($e(f=>{const d=Cc(f),{clientX:p,clientY:g}=Lg(f)?f.changedTouches[0]:f;a||(a=Of()),i.push({x:p,y:g,id:r.getId(d),timeOffset:Of()-a}),l(typeof DragEvent<"u"&&f instanceof DragEvent?De.Drag:f instanceof MouseEvent?De.MouseMove:De.TouchMove)}),o,{trailing:!1})),u=[vn("mousemove",c,n),vn("touchmove",c,n),vn("drag",c,n)];return $e(()=>{u.forEach(f=>f())})}function uV({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,a=[];let l=null;const c=u=>f=>{const d=Cc(f);if(bn(d,r,o,!0))return;let p=null,g=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Zr.Mouse;break;case"touch":p=Zr.Touch;break;case"pen":p=Zr.Pen;break}p===Zr.Touch?Cn[u]===Cn.MouseDown?g="TouchStart":Cn[u]===Cn.MouseUp&&(g="TouchEnd"):Zr.Pen}else Lg(f)&&(p=Zr.Touch);p!==null?(l=p,(g.startsWith("Touch")&&p===Zr.Touch||g.startsWith("Mouse")&&p===Zr.Mouse)&&(p=null)):Cn[u]===Cn.Click&&(p=l,l=null);const h=Lg(f)?f.changedTouches[0]:f;if(!h)return;const y=n.getId(d),{clientX:m,clientY:b}=h;$e(e)(Object.assign({type:Cn[g],id:y,x:m,y:b},p!==null&&{pointerType:p}))};return Object.keys(Cn).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Vs(u);const d=c(u);if(window.PointerEvent)switch(Cn[u]){case Cn.MouseDown:case Cn.MouseUp:f=f.replace("mouse","pointer");break;case Cn.TouchStart:case Cn.TouchEnd:return}a.push(vn(f,d,t))}),$e(()=>{a.forEach(u=>u())})}function _C({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){const i=$e(ic($e(a=>{const l=Cc(a);if(!l||bn(l,r,o,!0))return;const c=n.getId(l);if(l===t&&t.defaultView){const u=iC(t.defaultView);e({id:c,x:u.left,y:u.top})}else e({id:c,x:l.scrollLeft,y:l.scrollTop})}),s.scroll||100));return vn("scroll",i,t)}function fV({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=$e(ic($e(()=>{const s=aC(),i=lC();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return vn("resize",o,t)}const dV=["INPUT","TEXTAREA","SELECT"],t0=new WeakMap;function pV({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function f(b){let _=Cc(b);const v=b.isTrusted,S=_&&_.tagName;if(_&&S==="OPTION"&&(_=_.parentElement),!_||!S||dV.indexOf(S)<0||bn(_,r,o,!0)||_.classList.contains(s)||i&&_.matches(i))return;let E=_.value,x=!1;const N=Qm(_)||"";N==="radio"||N==="checkbox"?x=_.checked:(a[S.toLowerCase()]||a[N])&&(E=Jm({element:_,maskInputOptions:a,tagName:S,type:N,value:E,maskInputFn:l})),d(_,u?{text:E,isChecked:x,userTriggered:v}:{text:E,isChecked:x});const I=_.name;N==="radio"&&I&&x&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(O=>{if(O!==_){const U=O.value;d(O,u?{text:U,isChecked:!x,userTriggered:!1}:{text:U,isChecked:!x})}})}function d(b,_){const v=t0.get(b);if(!v||v.text!==_.text||v.isChecked!==_.isChecked){t0.set(b,_);const S=n.getId(b);$e(e)(Object.assign(Object.assign({},_),{id:S}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>vn(b,$e(f),t)),h=t.defaultView;if(!h)return()=>{g.forEach(b=>b())};const y=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),m=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&g.push(...m.map(b=>Ld(b[0],b[1],{set(){$e(f)({target:this,isTrusted:!1})}},!1,h))),$e(()=>{g.forEach(b=>b())})}function Rf(e){const t=[];function n(r,o){if(iu("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||iu("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||iu("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||iu("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function No(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function hV({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:$e((u,f,d)=>{const[p,g]=d,{id:h,styleId:y}=No(f,t,n.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:p,index:g}]}),u.apply(f,d)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,removes:[{index:p}]}),u.apply(f,d)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replace:p}),u.apply(f,d)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=No(f,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replaceSync:p}),u.apply(f,d)})}));const l={};au("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(au("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),au("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),au("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach(([u,f])=>{c[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(c[u].insertRule,{apply:$e((d,p,g)=>{const[h,y]=g,{id:m,styleId:b}=No(p.parentStyleSheet,t,n.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:h,index:[...Rf(p),y||0]}]}),d.apply(p,g)})}),f.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:$e((d,p,g)=>{const[h]=g,{id:y,styleId:m}=No(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||m&&m!==-1)&&e({id:y,styleId:m,removes:[{index:[...Rf(p),h]}]}),d.apply(p,g)})})}),$e(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=c[u].insertRule,f.prototype.deleteRule=c[u].deleteRule})})}function vC({mirror:e,stylesheetManager:t},n){var r,o,s;let i=null;n.nodeName==="#document"?i=e.getId(n):i=e.getId(n.host);const a=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(s=(o=n.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||s===void 0?void 0:s.ShadowRoot,l=a!=null&&a.prototype?Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!a||!l?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var c;return(c=l.get)===null||c===void 0?void 0:c.call(this)},set(c){var u;const f=(u=l.set)===null||u===void 0?void 0:u.call(this,c);if(i!==null&&i!==-1)try{t.adoptStyleSheets(c,i)}catch{}return f}}),$e(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function gV({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:$e((a,l,c)=>{var u;const[f,d,p]=c;if(n.has(f))return s.apply(l,[f,d,p]);const{id:g,styleId:h}=No((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,set:{property:f,value:d,priority:p},index:Rf(l.parentRule)}),a.apply(l,c)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:$e((a,l,c)=>{var u;const[f]=c;if(n.has(f))return i.apply(l,[f]);const{id:d,styleId:p}=No((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:f},index:Rf(l.parentRule)}),a.apply(l,c)})}),$e(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function mV({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:o,doc:s}){const i=$e(l=>ic($e(c=>{const u=Cc(c);if(!u||bn(u,t,n,!0))return;const{currentTime:f,volume:d,muted:p,playbackRate:g,loop:h}=u;e({type:l,id:r.getId(u),currentTime:f,volume:d,muted:p,playbackRate:g,loop:h})}),o.media||500)),a=[vn("play",i(0),s),vn("pause",i(1),s),vn("seeked",i(2),s),vn("volumechange",i(3),s),vn("ratechange",i(4),s)];return $e(()=>{a.forEach(l=>l())})}function yV({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(l,c,u){const f=new s(l,c,u);return o.set(f,{family:l,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),f};const i=_a(t.fonts,"add",function(a){return function(l){return setTimeout($e(()=>{const c=o.get(l);c&&(e(c),o.delete(l))}),0),a.apply(this,[l])}});return r.push(()=>{n.FontFace=s}),r.push(i),$e(()=>{r.forEach(a=>a())})}function _V(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,selectionCb:s}=e;let i=!0;const a=$e(()=>{const l=t.getSelection();if(!l||i&&(l!=null&&l.isCollapsed))return;i=l.isCollapsed||!1;const c=[],u=l.rangeCount||0;for(let f=0;f{}:_a(n.customElements,"define",function(o){return function(s,i,a){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return o.apply(this,[s,i,a])}})}function bV(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:f,fontCb:d,selectionCb:p,customElementCb:g}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),n(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),r(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),o(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),s(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),i(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),a(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),c(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),u(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),f(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),d(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),p(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),g(...h)}}function wV(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};bV(e,t);let r;e.recordDOM&&(r=yC(e,e.doc));const o=cV(e),s=uV(e),i=_C(e),a=fV(e,{win:n}),l=pV(e),c=mV(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=hV(e,{win:n}),f=vC(e,e.doc),d=gV(e,{win:n}),e.collectFonts&&(p=yV(e)));const g=_V(e),h=vV(e),y=[];for(const m of e.plugins)y.push(m.observer(m.callback,n,m.options));return $e(()=>{xs.forEach(m=>m.reset()),r==null||r.disconnect(),o(),s(),i(),a(),l(),c(),u(),f(),d(),p(),g(),h(),y.forEach(m=>m())})}function iu(e){return typeof window[e]<"u"}function au(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class n0{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const s=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=o.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class SV{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new n0(nC),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new n0(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case Be.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:Be.IncrementalSnapshot,data:{source:De.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Be.Meta:case Be.Load:case Be.DomContentLoaded:return!1;case Be.Plugin:return n;case Be.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Be.IncrementalSnapshot:switch(n.data.source){case De.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(o.node,s)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case De.Drag:case De.TouchMove:case De.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case De.ViewportResize:return!1;case De.MediaInteraction:case De.MouseInteraction:case De.Scroll:case De.CanvasMutation:case De.Input:return this.replaceIds(n.data,t,["id"]),n;case De.StyleSheetRule:case De.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case De.Font:return n;case De.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case De.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const s of o)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Lt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class EV{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!_l(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=yC(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(_C(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(vC({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(_a(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&hC(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function xV(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o"u"?[]:new Uint8Array(256);for(var lu=0;lu>2],o+=Ti[(t[n]&3)<<4|t[n+1]>>4],o+=Ti[(t[n+1]&15)<<2|t[n+2]>>6],o+=Ti[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const r0=new Map;function AV(e,t){let n=r0.get(e);return n||(n=new Map,r0.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const bC=(e,t,n)=>{if(!e||!(SC(e,t)||typeof e=="object"))return;const r=e.constructor.name,o=AV(n,r);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Ou(e,t,n){if(e instanceof Array)return e.map(r=>Ou(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,o=TV(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ou(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ou(e.data,t,n),e.width,e.height]};if(SC(e,t)||typeof e=="object"){const r=e.constructor.name,o=bC(e,t,n);return{rr_type:r,index:o}}}}return e}const wC=(e,t,n)=>e.map(r=>Ou(r,t,n)),SC=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function IV(e,t,n,r){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const a=_a(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...c){return bn(this.canvas,n,r,!0)||setTimeout(()=>{const u=wC(c,t,this);e(this.canvas,{type:ta["2D"],property:i,args:u})},0),l.apply(this,c)}});o.push(a)}catch{const l=Ld(t.CanvasRenderingContext2D.prototype,i,{set(c){e(this.canvas,{type:ta["2D"],property:i,args:[c],setter:!0})}});o.push(l)}return()=>{o.forEach(i=>i())}}function OV(e){return e==="experimental-webgl"?"webgl":e}function o0(e,t,n,r){const o=[];try{const s=_a(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(a,...l){if(!bn(this,t,n,!0)){const c=OV(a);if("__context"in this||(this.__context=c),r&&["webgl","webgl2"].includes(c))if(l[0]&&typeof l[0]=="object"){const u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[a,...l])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function s0(e,t,n,r,o,s,i){const a=[],l=Object.getOwnPropertyNames(e);for(const c of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;const u=_a(e,c,function(f){return function(...d){const p=f.apply(this,d);if(bC(p,i,this),"tagName"in this.canvas&&!bn(this.canvas,r,o,!0)){const g=wC(d,i,this),h={type:t,property:c,args:g};n(this.canvas,h)}return p}});a.push(u)}catch{const f=Ld(e,c,{set(d){n(this.canvas,{type:t,property:c,args:[d],setter:!0})}});a.push(f)}return a}function RV(e,t,n,r,o){const s=[];return s.push(...s0(t.WebGLRenderingContext.prototype,ta.WebGL,e,n,r,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...s0(t.WebGL2RenderingContext.prototype,ta.WebGL2,e,n,r,o,t)),()=>{s.forEach(i=>i())}}function LV(e,t){var n=e.toString(),r=n.split(` `);r.pop(),r.shift();for(var o=r[0].search(/\S/),s=/(['"])__worker_loader_strict__(['"])/g,i=0,a=r.length;i"u"?[]:new Uint8Array(256),r=0;r>2],p+=t[(u[f]&3)<<4|u[f+1]>>4],p+=t[(u[f+1]&15)<<2|u[f+2]>>6],p+=t[u[f+2]&63];return d%3===2?p=p.substring(0,p.length-1)+"=":d%3===1&&(p=p.substring(0,p.length-2)+"=="),p};const s=new Map,i=new Map;function a(c,u,f){return e(this,void 0,void 0,function*(){const d=`${c}-${u}`;if("OffscreenCanvas"in globalThis){if(i.has(d))return i.get(d);const p=new OffscreenCanvas(c,u);p.getContext("2d");const h=yield(yield p.convertToBlob(f)).arrayBuffer(),y=o(h);return i.set(d,y),y}else return""})}const l=self;l.onmessage=function(c){return e(this,void 0,void 0,function*(){if("OffscreenCanvas"in globalThis){const{id:u,bitmap:f,width:d,height:p,dataURLOptions:g}=c.data,h=a(d,p,g),y=new OffscreenCanvas(d,p);y.getContext("2d").drawImage(f,0,0),f.close();const b=yield y.convertToBlob(g),_=b.type,v=yield b.arrayBuffer(),S=o(v);if(!s.has(u)&&(yield h)===S)return s.set(u,S),l.postMessage({id:u});if(s.get(u)===S)return l.postMessage({id:u});l.postMessage({id:u,type:_,base64:S,width:d,height:p}),s.set(u,S)}else return l.postMessage({id:c.data.id})})}})()});class DV{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(l,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:n="all",win:r,blockClass:o,blockSelector:s,recordCanvas:i,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,o,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,o,s,{dataURLOptions:a})}initCanvasFPSObserver(t,n,r,o,s){const i=o0(n,r,o,!0),a=new Map,l=new MV;l.onmessage=g=>{const{id:h}=g.data;if(a.set(h,!1),!("base64"in g.data))return;const{base64:y,type:m,width:b,height:_}=g.data;this.mutationCb({id:h,type:ta["2D"],commands:[{property:"clearRect",args:[0,0,b,_]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:m}]},0,0]}]})};const c=1e3/t;let u=0,f;const d=()=>{const g=[];return n.document.querySelectorAll("canvas").forEach(h=>{bn(h,r,o,!0)||g.push(h)}),g},p=g=>{if(u&&g-ukV(this,void 0,void 0,function*(){var y;const m=this.mirror.getId(h);if(a.get(m)||h.width===0||h.height===0)return;if(a.set(m,!0),["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);((y=_==null?void 0:_.getContextAttributes())===null||y===void 0?void 0:y.preserveDrawingBuffer)===!1&&_.clear(_.COLOR_BUFFER_BIT)}const b=yield createImageBitmap(h);l.postMessage({id:m,bitmap:b,width:h.width,height:h.height,dataURLOptions:s.dataURLOptions},[b])})),f=requestAnimationFrame(p)};f=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=o0(t,n,r,!1),s=IV(this.processMutation.bind(this),t,n,r),i=RV(this.processMutation.bind(this),t,n,r,this.mirror);this.resetObservers=()=>{o(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const o=r.map(i=>xV(i,["type"])),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}class $V{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new nV,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),o.push({styleId:i,rules:Array.from(s.rules||CSSRule,(a,l)=>({rule:Qk(a),index:l}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class FV{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Ot(e){return Object.assign(Object.assign({},e),{timestamp:Of()})}let kt,Ru,Dp,Lf=!1;const Jn=R4();function Tc(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:f,maskInputOptions:d,slimDOMOptions:p,maskInputFn:g,maskTextFn:h,hooks:y,packFn:m,sampling:b={},dataURLOptions:_={},mousemoveWait:v,recordDOM:S=!0,recordCanvas:E=!1,recordCrossOriginIframes:x=!1,recordAfter:N=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:O=!1,inlineImages:U=!1,plugins:L,keepIframeSrcFn:G=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:ce}=e;aV(ce);const q=x?window.parent===window:!0;let ne=!1;if(!q)try{window.parent.document&&(ne=!1)}catch{ne=!0}if(q&&!t)throw new Error("emit function is required");v!==void 0&&b.mousemove===void 0&&(b.mousemove=v),Jn.reset();const re=f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Se=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all"}:p||{};tV();let lt,be=0;const We=te=>{for(const we of L||[])we.eventProcessor&&(te=we.eventProcessor(te));return m&&!ne&&(te=m(te)),te};kt=(te,we)=>{var C;if(!((C=xs[0])===null||C===void 0)&&C.isFrozen()&&te.type!==Be.FullSnapshot&&!(te.type===Be.IncrementalSnapshot&&te.data.source===De.Mutation)&&xs.forEach(A=>A.unfreeze()),q)t==null||t(We(te),we);else if(ne){const A={type:"rrweb",event:We(te),origin:window.location.origin,isCheckout:we};window.parent.postMessage(A,"*")}if(te.type===Be.FullSnapshot)lt=te,be=0;else if(te.type===Be.IncrementalSnapshot){if(te.data.source===De.Mutation&&te.data.isAttachIframe)return;be++;const A=r&&be>=r,$=n&&te.timestamp-lt.timestamp>n;(A||$)&&Ru(!0)}};const je=te=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Mutation},te)}))},tn=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Scroll},te)})),ze=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.CanvasMutation},te)})),ht=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.AdoptedStyleSheet},te)})),W=new $V({mutationCb:je,adoptedStyleSheetCb:ht}),Q=new SV({mirror:Jn,mutationCb:je,stylesheetManager:W,recordCrossOriginIframes:x,wrappedEmit:kt});for(const te of L||[])te.getMirror&&te.getMirror({nodeMirror:Jn,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new FV;Dp=new DV({recordCanvas:E,mutationCb:ze,win:window,blockClass:o,blockSelector:s,mirror:Jn,sampling:b.canvas,dataURLOptions:_});const ie=new EV({mutationCb:je,scrollCb:tn,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:re,dataURLOptions:_,maskTextFn:h,maskInputFn:g,recordCanvas:E,inlineImages:U,sampling:b,slimDOMOptions:Se,iframeManager:Q,stylesheetManager:W,canvasManager:Dp,keepIframeSrcFn:G,processedNodeManager:X},mirror:Jn});Ru=(te=!1)=>{if(!S)return;kt(Ot({type:Be.Meta,data:{href:window.location.href,width:lC(),height:aC()}}),te),W.reset(),ie.init(),xs.forEach(C=>C.lock());const we=Q4(document,{mirror:Jn,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:re,maskTextFn:h,slimDOM:Se,dataURLOptions:_,recordCanvas:E,inlineImages:U,onSerialize:C=>{fC(C,Jn)&&Q.addIframe(C),dC(C,Jn)&&W.trackLinkElement(C),Pg(C)&&ie.addShadowRoot(C.shadowRoot,document)},onIframeLoad:(C,A)=>{Q.attachIframe(C,A),ie.observeAttachShadow(C)},onStylesheetLoad:(C,A)=>{W.attachLinkElement(C,A)},keepIframeSrcFn:G});if(!we)return console.warn("Failed to snapshot the document");kt(Ot({type:Be.FullSnapshot,data:{node:we,initialOffset:iC(window)}}),te),xs.forEach(C=>C.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Jn.getId(document))};try{const te=[],we=A=>{var $;return $e(wV)({mutationCb:je,mousemoveCb:(B,H)=>kt(Ot({type:Be.IncrementalSnapshot,data:{source:H,positions:B}})),mouseInteractionCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.MouseInteraction},B)})),scrollCb:tn,viewportResizeCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.ViewportResize},B)})),inputCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Input},B)})),mediaInteractionCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.MediaInteraction},B)})),styleSheetRuleCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.StyleSheetRule},B)})),styleDeclarationCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.StyleDeclaration},B)})),canvasMutationCb:ze,fontCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Font},B)})),selectionCb:B=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Selection},B)}))},customElementCb:B=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.CustomElement},B)}))},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:re,inlineStylesheet:u,sampling:b,recordDOM:S,recordCanvas:E,inlineImages:U,userTriggeredOnInput:I,collectFonts:O,doc:A,maskInputFn:g,maskTextFn:h,keepIframeSrcFn:G,blockSelector:s,slimDOMOptions:Se,dataURLOptions:_,mirror:Jn,iframeManager:Q,stylesheetManager:W,shadowDomManager:ie,processedNodeManager:X,canvasManager:Dp,ignoreCSSAttributes:oe,plugins:(($=L==null?void 0:L.filter(B=>B.observer))===null||$===void 0?void 0:$.map(B=>({observer:B.observer,options:B.options,callback:H=>kt(Ot({type:Be.Plugin,data:{plugin:B.name,payload:H}}))})))||[]},y)};Q.addLoadListener(A=>{try{te.push(we(A.contentDocument))}catch($){console.warn($)}});const C=()=>{Ru(),te.push(we(document)),Lf=!0};return document.readyState==="interactive"||document.readyState==="complete"?C():(te.push(vn("DOMContentLoaded",()=>{kt(Ot({type:Be.DomContentLoaded,data:{}})),N==="DOMContentLoaded"&&C()})),te.push(vn("load",()=>{kt(Ot({type:Be.Load,data:{}})),N==="load"&&C()},window))),()=>{te.forEach(A=>A()),X.destroy(),Lf=!1,lV()}}catch(te){console.warn(te)}}Tc.addCustomEvent=(e,t)=>{if(!Lf)throw new Error("please add custom event after start recording");kt(Ot({type:Be.Custom,data:{tag:e,payload:t}}))};Tc.freezePage=()=>{xs.forEach(e=>e.freeze())};Tc.takeFullSnapshot=e=>{if(!Lf)throw new Error("please take full snapshot after start recording");Ru(e)};Tc.mirror=Jn;var EC=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EC||{}),Tr=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Tr||{}),co={DEBUG:!1,LIB_VERSION:"2.55.1"},Ee;if(typeof window>"u"){var i0={hostname:""};Ee={navigator:{userAgent:"",onLine:!0},document:{location:i0,referrer:""},screen:{width:0,height:0},location:i0}}else Ee=window;var bl=24*60*60*1e3,$p=8*1e3,Pd=Array.prototype,UV=Function.prototype,xC=Object.prototype,Fo=Pd.slice,Ac=xC.toString,Nd=xC.hasOwnProperty,It=Ee.console,Uo=Ee.navigator,nt=Ee.document,cu=Ee.opera,Pf=Ee.screen,Or=Uo.userAgent,Fp=UV.bind,a0=Pd.forEach,l0=Pd.indexOf,c0=Pd.map,jV=Array.isArray,Mg={},w={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ke={log:function(){if(co.DEBUG&&!w.isUndefined(It)&&It)try{It.log.apply(It,arguments)}catch{w.each(arguments,function(t){It.log(t)})}},warn:function(){if(co.DEBUG&&!w.isUndefined(It)&&It){var e=["Mixpanel warning:"].concat(w.toArray(arguments));try{It.warn.apply(It,e)}catch{w.each(e,function(n){It.warn(n)})}}},error:function(){if(co.DEBUG&&!w.isUndefined(It)&&It){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{It.error.apply(It,e)}catch{w.each(e,function(n){It.error(n)})}}},critical:function(){if(!w.isUndefined(It)&&It){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{It.error.apply(It,e)}catch{w.each(e,function(n){It.error(n)})}}}},Up=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ke,arguments)}},Md=function(e){return{log:Up(Ke.log,e),error:Up(Ke.error,e),critical:Up(Ke.critical,e)}};w.bind=function(e,t){var n,r;if(Fp&&e.bind===Fp)return Fp.apply(e,Fo.call(arguments,1));if(!w.isFunction(e))throw new TypeError;return n=Fo.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(Fo.call(arguments)));var o={};o.prototype=e.prototype;var s=new o;o.prototype=null;var i=e.apply(s,n.concat(Fo.call(arguments)));return Object(i)===i?i:s},r};w.each=function(e,t,n){if(e!=null){if(a0&&e.forEach===a0)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,o=e.length;r0&&(t[r]=n)}),t};w.truncate=function(e,t){var n;return typeof e=="string"?n=e.slice(0,t):w.isArray(e)?(n=[],w.each(e,function(r){n.push(w.truncate(r,t))})):w.isObject(e)?(n={},w.each(e,function(r,o){n[o]=w.truncate(r,t)})):n=e,n};w.JSONEncode=function(){return function(e){var t=e,n=function(o){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(o)?'"'+o.replace(s,function(a){var l=i[a];return typeof l=="string"?l:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+o+'"'},r=function(o,s){var i="",a=" ",l=0,c="",u="",f=0,d=i,p=[],g=s[o];switch(g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(o)),typeof g){case"string":return n(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":return String(g);case"object":if(!g)return"null";if(i+=a,p=[],Ac.apply(g)==="[object Array]"){for(f=g.length,l=0;l="0"&&t<="9";)g+=t,s();if(t===".")for(g+=".";s()&&t>="0"&&t<="9";)g+=t;if(t==="e"||t==="E")for(g+=t,s(),(t==="-"||t==="+")&&(g+=t,s());t>="0"&&t<="9";)g+=t,s();if(p=+g,!isFinite(p))o("Bad number");else return p},a=function(){var p,g,h="",y;if(t==='"')for(;s();){if(t==='"')return s(),h;if(t==="\\")if(s(),t==="u"){for(y=0,g=0;g<4&&(p=parseInt(s(),16),!!isFinite(p));g+=1)y=y*16+p;h+=String.fromCharCode(y)}else if(typeof n[t]=="string")h+=n[t];else break;else h+=t}o("Bad string")},l=function(){for(;t&&t<=" ";)s()},c=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},u,f=function(){var p=[];if(t==="["){if(s("["),l(),t==="]")return s("]"),p;for(;t;){if(p.push(u()),l(),t==="]")return s("]"),p;s(","),l()}}o("Bad array")},d=function(){var p,g={};if(t==="{"){if(s("{"),l(),t==="}")return s("}"),g;for(;t;){if(p=a(),l(),s(":"),Object.hasOwnProperty.call(g,p)&&o('Duplicate key "'+p+'"'),g[p]=u(),l(),t==="}")return s("}"),g;s(","),l()}}o("Bad object")};return u=function(){switch(l(),t){case"{":return d();case"[":return f();case'"':return a();case"-":return i();default:return t>="0"&&t<="9"?i():c()}},function(p){var g;return r=p,e=0,t=" ",g=u(),l(),t&&o("Syntax error"),g}}();w.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,o,s,i,a,l,c,u=0,f=0,d="",p=[];if(!e)return e;e=w.utf8Encode(e);do n=e.charCodeAt(u++),r=e.charCodeAt(u++),o=e.charCodeAt(u++),c=n<<16|r<<8|o,s=c>>18&63,i=c>>12&63,a=c>>6&63,l=c&63,p[f++]=t.charAt(s)+t.charAt(i)+t.charAt(a)+t.charAt(l);while(u127&&i<2048?a=String.fromCharCode(i>>6|192,i&63|128):a=String.fromCharCode(i>>12|224,i>>6&63|128,i&63|128),a!==null&&(r>n&&(t+=e.substring(n,r)),t+=a,n=r=s+1)}return r>n&&(t+=e.substring(n,e.length)),t};w.UUID=function(){var e=function(){var r=1*new Date,o;if(Ee.performance&&Ee.performance.now)o=Ee.performance.now();else for(o=0;r==1*new Date;)o++;return r.toString(16)+Math.floor(o).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},n=function(){var r=Or,o,s,i=[],a=0;function l(c,u){var f,d=0;for(f=0;f=4&&(a=l(a,i),i=[]);return i.length>0&&(a=l(a,i)),a.toString(16)};return function(){var r=(Pf.height*Pf.width).toString(16);return e()+"-"+t()+"-"+n()+"-"+r+"-"+e()}}();var u0=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];w.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function r(o){if(!nt.getElementsByTagName)return[];var s=o.split(" "),i,a,l,c,u,f,d,p,g,h,y=[nt];for(f=0;f-1){a=i.split("#"),l=a[0];var m=a[1],b=nt.getElementById(m);if(!b||l&&b.nodeName.toLowerCase()!=l)return[];y=[b];continue}if(i.indexOf(".")>-1){a=i.split("."),l=a[0];var _=a[1];for(l||(l="*"),c=[],u=0,d=0;d-1};break;default:N=function(I){return I.getAttribute(S)}}for(y=[],h=0,d=0;d=3?t[2]:""},currentUrl:function(){return Ee.location.href},properties:function(e){return typeof e!="object"&&(e={}),w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(Or,Uo.vendor,cu),$referrer:nt.referrer,$referring_domain:w.info.referringDomain(nt.referrer),$device:w.info.device(Or)}),{$current_url:w.info.currentUrl(),$browser_version:w.info.browserVersion(Or,Uo.vendor,cu),$screen_height:Pf.height,$screen_width:Pf.width,mp_lib:"web",$lib_version:co.LIB_VERSION,$insert_id:ty(),time:w.timestamp()/1e3},w.strip_empty_properties(e))},people_properties:function(){return w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(Or,Uo.vendor,cu)}),{$browser_version:w.info.browserVersion(Or,Uo.vendor,cu)})},mpPageViewProperties:function(){return w.strip_empty_properties({current_page_title:nt.title,current_domain:Ee.location.hostname,current_url_path:Ee.location.pathname,current_url_protocol:Ee.location.protocol,current_url_search:Ee.location.search})}};var ty=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},WV=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,zV=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,f0=function(e){var t=zV,n=e.split("."),r=n[n.length-1];(r.length>4||r==="com"||r==="org")&&(t=WV);var o=e.match(t);return o?o[0]:""},GV=function(){var e=Ee.navigator.onLine;return w.isUndefined(e)||e},Mf=null,Df=null;typeof JSON<"u"&&(Mf=JSON.stringify,Df=JSON.parse);Mf=Mf||w.JSONEncode;Df=Df||w.JSONDecode;w.toArray=w.toArray;w.isObject=w.isObject;w.JSONEncode=w.JSONEncode;w.JSONDecode=w.JSONDecode;w.isBlockedUA=w.isBlockedUA;w.isEmptyObject=w.isEmptyObject;w.info=w.info;w.info.device=w.info.device;w.info.browser=w.info.browser;w.info.browserVersion=w.info.browserVersion;w.info.properties=w.info.properties;var qV="__mp_opt_in_out_";function KV(e,t){TC(!0,e,t)}function YV(e,t){TC(!1,e,t)}function ZV(e,t){return CC(e,t)==="1"}function kC(e,t){if(JV(t))return Ke.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n=CC(e,t)==="0";return n&&Ke.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function ss(e){return oy(e,function(t){return this.get_config(t)})}function is(e){return oy(e,function(t){return this._get_config(t)})}function va(e){return oy(e,function(t){return this._get_config(t)})}function XV(e,t){t=t||{},ny(t).remove(ry(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ny(e){return e=e||{},e.persistenceType==="localStorage"?w.localStorage:w.cookie}function ry(e,t){return t=t||{},(t.persistencePrefix||qV)+e}function CC(e,t){return ny(t).get(ry(e,t))}function JV(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ee,n=t.navigator||{},r=!1;return w.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(o){w.includes([!0,1,"1","yes"],o)&&(r=!0)}),r}function TC(e,t,n){if(!w.isString(t)||!t.length){Ke.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}n=n||{},ny(n).set(ry(t,n),e?1:0,w.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function oy(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),o=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),i=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");r&&(n=kC(r,{ignoreDnt:o,persistenceType:s,persistencePrefix:i,window:a}))}catch(c){Ke.error("Unexpected error when checking tracking opt-out status: "+c)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var QV=Md("lock"),AC=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};AC.prototype.withLock=function(e,t,n){!n&&typeof t!="function"&&(n=t,t=null);var r=n||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,i=this.pollIntervalMS,a=this.timeoutMS,l=this.storage,c=s+":X",u=s+":Y",f=s+":Z",d=function(b){t&&t(b)},p=function(b){if(new Date().getTime()-o>a){QV.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+r+"]"),l.removeItem(f),l.removeItem(u),y();return}setTimeout(function(){try{b()}catch(_){d(_)}},i*(Math.random()+.1))},g=function(b,_){b()?_():p(function(){g(b,_)})},h=function(){var b=l.getItem(u);if(b&&b!==r)return!1;if(l.setItem(u,r),l.getItem(u)===r)return!0;if(!Nf(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},y=function(){l.setItem(c,r),g(h,function(){if(l.getItem(c)===r){m();return}p(function(){if(l.getItem(u)!==r){y();return}g(function(){return!l.getItem(f)},m)})})},m=function(){l.setItem(f,"1");try{e()}finally{l.removeItem(f),l.getItem(u)===r&&l.removeItem(u),l.getItem(c)===r&&l.removeItem(c)}};try{if(Nf(l,!0))y();else throw new Error("localStorage support check failed")}catch(b){d(b)}};var d0=Md("batch"),as=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||w.bind(d0.error,d0),this.lock=new AC(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};as.prototype.enqueue=function(e,t,n){var r={id:ty(),flushAfter:new Date().getTime()+t*2,payload:e};this.usePersistence?this.lock.withLock(w.bind(function(){var s;try{var i=this.readFromStorage();i.push(r),s=this.saveToStorage(i),s&&this.memQueue.push(r)}catch{this.reportError("Error enqueueing item",e),s=!1}n&&n(s)},this),w.bind(function(s){this.reportError("Error acquiring storage lock",s),n&&n(!1)},this),this.pid):(this.memQueue.push(r),n&&n(!0))};as.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.lengths.flushAfter&&!r[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}}return t};var p0=function(e,t){var n=[];return w.each(e,function(r){r.id&&!t[r.id]&&n.push(r)}),n};as.prototype.removeItemsByID=function(e,t){var n={};if(w.each(e,function(o){n[o]=!0}),this.memQueue=p0(this.memQueue,n),!this.usePersistence)t&&t(!0);else{var r=w.bind(function(){var o;try{var s=this.readFromStorage();if(s=p0(s,n),o=this.saveToStorage(s),o){s=this.readFromStorage();for(var i=0;i5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[p]}),d=!1):this.reportError("[dupe] found item with no ID",{item:u}),d&&i.push(f)}a[u.id]=f},this),i.length<1){this.resetFlush();return}this.requestInProgress=!0;var l=w.bind(function(u){this.requestInProgress=!1;try{var f=!1;if(e.unloading)this.queue.updatePayloads(a);else if(w.isObject(u)&&u.error==="timeout"&&new Date().getTime()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(w.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&!GV()||u.error==="timeout")){var d=this.flushInterval*2;u.retryAfter&&(d=parseInt(u.retryAfter,10)*1e3||d),d=Math.min(e5,d),this.reportError("Error; retry in "+d+" ms"),this.scheduleFlush(d)}else if(w.isObject(u)&&u.httpStatusCode===413)if(o.length>1){var p=Math.max(1,Math.floor(r/2));this.batchSize=Math.min(this.batchSize,p,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),f=!0;else f=!0;f&&(this.queue.removeItemsByID(w.map(o,function(g){return g.id}),w.bind(function(g){g?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),w.each(o,w.bind(function(g){var h=g.id;h?(this.itemIdsSentSuccessfully[h]=this.itemIdsSentSuccessfully[h]||0,this.itemIdsSentSuccessfully[h]++,this.itemIdsSentSuccessfully[h]>5&&this.reportError("[dupe] item ID sent too many times",{item:g,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[h]})):this.reportError("[dupe] found item with no ID while removing",{item:g})},this)))}catch(g){this.reportError("Error handling API response",g),this.resetFlush()}},this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),wl.log("MIXPANEL REQUEST:",i),this.sendRequest(i,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};_r.prototype.reportError=function(e,t){if(wl.error.apply(wl.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(n){wl.error(n)}};var ks=Md("recorder"),g0=Ee.CompressionStream,t5={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},n5=new Set([Tr.MouseMove,Tr.MouseInteraction,Tr.Scroll,Tr.ViewportResize,Tr.Input,Tr.TouchMove,Tr.MediaInteraction,Tr.Drag,Tr.Selection]);function r5(e){return e.type===EC.IncrementalSnapshot&&n5.has(e.data.source)}var vr=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=bl,this.recordMinMs=0,this._initBatcher()};vr.prototype._initBatcher=function(){this.batcher=new _r("__mprec",{libConfig:t5,sendRequestFunc:w.bind(this.flushEventsWithOptOut,this),errorReporter:w.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})};vr.prototype.get_config=function(e){return this._mixpanel.get_config(e)};vr.prototype.startRecording=function(e){if(this._stopRecording!==null){ks.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>bl&&(this.recordMaxMs=bl,ks.critical("record_max_ms cannot be greater than "+bl+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>$p&&(this.recordMinMs=$p,ks.critical("record_min_ms cannot be greater than "+$p+"ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=new Date().getTime(),this.replayId=w.UUID(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=w.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(w.bind(function(){ks.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),n=this.get_config("record_block_selector");(n===""||n===null)&&(n=void 0),this._stopRecording=Tc({emit:w.bind(function(r){this.batcher.enqueue(r),r5(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:n,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(w.bind(this.resetRecording,this),this.recordMaxMs)};vr.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};vr.prototype.stopRecording=function(){this._stopRecording!==null&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)};vr.prototype.flushEventsWithOptOut=function(e,t,n){this._flushEvents(e,t,n,w.bind(this._onOptOut,this))};vr.prototype._onOptOut=function(e){e===0&&(this.recEvents=[],this.stopRecording())};vr.prototype._sendRequest=function(e,t,n,r){var o=w.bind(function(s,i){s.status===200&&this.replayId===e&&this.seqNo++,r({status:0,httpStatusCode:s.status,responseBody:i,retryAfter:s.headers.get("Retry-After")})},this);Ee.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then(function(s){s.json().then(function(i){o(s,i)}).catch(function(i){r({error:i})})}).catch(function(s){r({error:s,httpStatusCode:0})})};vr.prototype._flushEvents=ss(function(e,t,n){const r=e.length;if(r>0){var o=this.replayId,s=e[0].timestamp;(this.seqNo===0||!this.replayStartTime)&&(this.seqNo!==0&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var i=e[r-1].timestamp-this.replayStartTime,a={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:s/1e3,replay_id:o,replay_length_ms:i,replay_start_time:this.replayStartTime/1e3},l=w.JSONEncode(e),c=this._mixpanel.get_property("$device_id");c&&(a.$device_id=c);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),g0){var f=new Blob([l],{type:"application/json"}).stream(),d=f.pipeThrough(new g0("gzip"));new Response(d).blob().then(w.bind(function(p){a.format="gzip",this._sendRequest(o,a,p,n)},this))}else a.format="body",this._sendRequest(o,a,l,n)}});vr.prototype.reportError=function(e,t){ks.error.apply(ks.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){ks.error(n)}};Ee.__mp_recorder=vr;var vo=function(){};vo.prototype.create_properties=function(){};vo.prototype.event_handler=function(){};vo.prototype.after_track_handler=function(){};vo.prototype.init=function(e){return this.mp=e,this};vo.prototype.track=function(e,t,n,r){var o=this,s=w.dom_query(e);if(s.length===0){Ke.error("The DOM query ("+e+") returned 0 elements");return}return w.each(s,function(i){w.register_event(i,this.override_event,function(a){var l={},c=o.create_properties(n,this),u=o.mp.get_config("track_links_timeout");o.event_handler(a,this,l),window.setTimeout(o.track_callback(r,c,l,!0),u),o.mp.track(t,c,o.track_callback(r,c,l))})},this),!0};vo.prototype.track_callback=function(e,t,n,r){r=r||!1;var o=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&&e(r,t)===!1)&&o.after_track_handler(t,n,r))}};vo.prototype.create_properties=function(e,t){var n;return typeof e=="function"?n=e(t):n=w.extend({},e),n};var na=function(){this.override_event="click"};w.inherit(na,vo);na.prototype.create_properties=function(e,t){var n=na.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n};na.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",n.href=t.href,n.new_tab||e.preventDefault()};na.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Dd=function(){this.override_event="submit"};w.inherit(Dd,vo);Dd.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()};Dd.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Zo="$set",ra="$set_once",nr="$unset",Ws="$add",Mr="$append",zs="$union",uo="$remove",o5="$delete",IC={set_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[Zo]=r,n},unset_action:function(e){var t={},n=[];return w.isArray(e)||(e=[e]),w.each(e,function(r){this._is_reserved_property(r)||n.push(r)},this),t[nr]=n,t},set_once_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[ra]=r,n},union_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=w.isArray(o)?o:[o])},this):r[e]=w.isArray(t)?t:[t],n[zs]=r,n},append_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[Mr]=r,n},remove_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[uo]=r,n},delete_action:function(){var e={};return e[o5]="",e}},dt=function(){};w.extend(dt.prototype,IC);dt.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n};dt.prototype.set=va(function(e,t,n){var r=this.set_action(e,t);return w.isObject(e)&&(n=t),this._send_request(r,n)});dt.prototype.set_once=va(function(e,t,n){var r=this.set_once_action(e,t);return w.isObject(e)&&(n=t),this._send_request(r,n)});dt.prototype.unset=va(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});dt.prototype.union=va(function(e,t,n){w.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});dt.prototype.delete=va(function(e){var t=this.delete_action();return this._send_request(t,e)});dt.prototype.remove=va(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)});dt.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=w.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};dt.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};dt.prototype._get_config=function(e){return this._mixpanel.get_config(e)};dt.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};dt.prototype.remove=dt.prototype.remove;dt.prototype.set=dt.prototype.set;dt.prototype.set_once=dt.prototype.set_once;dt.prototype.union=dt.prototype.union;dt.prototype.unset=dt.prototype.unset;dt.prototype.toString=dt.prototype.toString;var xe=function(){};w.extend(xe.prototype,IC);xe.prototype._init=function(e){this._mixpanel=e};xe.prototype.set=is(function(e,t,n){var r=this.set_action(e,t);return w.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Zo]=w.extend({},w.info.people_properties(),r[Zo]),this._send_request(r,n)});xe.prototype.set_once=is(function(e,t,n){var r=this.set_once_action(e,t);return w.isObject(e)&&(n=t),this._send_request(r,n)});xe.prototype.unset=is(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});xe.prototype.increment=is(function(e,t,n){var r={},o={};return w.isObject(e)?(w.each(e,function(s,i){if(!this._is_reserved_property(i))if(isNaN(parseFloat(s))){Ke.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else o[i]=s},this),n=t):(w.isUndefined(t)&&(t=1),o[e]=t),r[Ws]=o,this._send_request(r,n)});xe.prototype.append=is(function(e,t,n){w.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)});xe.prototype.remove=is(function(e,t,n){w.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)});xe.prototype.union=is(function(e,t,n){w.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});xe.prototype.track_charge=is(function(e,t,n){if(!w.isNumber(e)&&(e=parseFloat(e),isNaN(e))){Ke.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",w.extend({$amount:e},t),n)});xe.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};xe.prototype.delete_user=function(){if(!this._identify_called()){Ke.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};xe.prototype.toString=function(){return this._mixpanel.toString()+".people"};xe.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),o&&(e.$had_persisted_distinct_id=o);var s=w.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),w.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),w.truncate(s,255))};xe.prototype._get_config=function(e){return this._mixpanel.get_config(e)};xe.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};xe.prototype._enqueue=function(e){Zo in e?this._mixpanel.persistence._add_to_people_queue(Zo,e):ra in e?this._mixpanel.persistence._add_to_people_queue(ra,e):nr in e?this._mixpanel.persistence._add_to_people_queue(nr,e):Ws in e?this._mixpanel.persistence._add_to_people_queue(Ws,e):Mr in e?this._mixpanel.persistence._add_to_people_queue(Mr,e):uo in e?this._mixpanel.persistence._add_to_people_queue(uo,e):zs in e?this._mixpanel.persistence._add_to_people_queue(zs,e):Ke.error("Invalid call to _enqueue():",e)};xe.prototype._flush_one_queue=function(e,t,n,r){var o=this,s=w.extend({},this._mixpanel.persistence.load_queue(e)),i=s;!w.isUndefined(s)&&w.isObject(s)&&!w.isEmptyObject(s)&&(o._mixpanel.persistence._pop_from_people_queue(e,s),o._mixpanel.persistence.save(),r&&(i=r(s)),t.call(o,i,function(a,l){a===0&&o._mixpanel.persistence._add_to_people_queue(e,s),w.isUndefined(n)||n(a,l)}))};xe.prototype._flush=function(e,t,n,r,o,s,i){var a=this;this._flush_one_queue(Zo,this.set,e),this._flush_one_queue(ra,this.set_once,r),this._flush_one_queue(nr,this.unset,s,function(y){return w.keys(y)}),this._flush_one_queue(Ws,this.increment,t),this._flush_one_queue(zs,this.union,o);var l=this._mixpanel.persistence.load_queue(Mr);if(!w.isUndefined(l)&&w.isArray(l)&&l.length)for(var c,u=function(y,m){y===0&&a._mixpanel.persistence._add_to_people_queue(Mr,c),w.isUndefined(n)||n(y,m)},f=l.length-1;f>=0;f--)l=this._mixpanel.persistence.load_queue(Mr),c=l.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(c)||a.append(c,u);var d=this._mixpanel.persistence.load_queue(uo);if(!w.isUndefined(d)&&w.isArray(d)&&d.length)for(var p,g=function(y,m){y===0&&a._mixpanel.persistence._add_to_people_queue(uo,p),w.isUndefined(i)||i(y,m)},h=d.length-1;h>=0;h--)d=this._mixpanel.persistence.load_queue(uo),p=d.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(p)||a.remove(p,g)};xe.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};xe.prototype.set=xe.prototype.set;xe.prototype.set_once=xe.prototype.set_once;xe.prototype.unset=xe.prototype.unset;xe.prototype.increment=xe.prototype.increment;xe.prototype.append=xe.prototype.append;xe.prototype.remove=xe.prototype.remove;xe.prototype.union=xe.prototype.union;xe.prototype.track_charge=xe.prototype.track_charge;xe.prototype.clear_charges=xe.prototype.clear_charges;xe.prototype.delete_user=xe.prototype.delete_user;xe.prototype.toString=xe.prototype.toString;var sy="__mps",iy="__mpso",ay="__mpus",ly="__mpa",cy="__mpap",uy="__mpr",fy="__mpu",OC="$people_distinct_id",$f="__alias",ac="__timers",s5=[sy,iy,ay,ly,cy,uy,fy,OC,$f,ac],Re=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(Ke.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&w.localStorage.is_supported()?this.storage=w.localStorage:this.storage=w.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Re.prototype.properties=function(){var e={};return this.load(),w.each(this.props,function(t,n){w.include(s5,n)||(e[n]=t)}),e};Re.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=w.extend({},e))}};Re.prototype.upgrade=function(){var e,t;this.storage===w.localStorage?(e=w.cookie.parse(this.name),w.cookie.remove(this.name),w.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===w.cookie&&(t=w.localStorage.parse(this.name),w.localStorage.remove(this.name),t&&this.register_once(t))};Re.prototype.save=function(){this.disabled||this.storage.set(this.name,w.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Re.prototype.load_prop=function(e){return this.load(),this.props[e]};Re.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Re.prototype.clear=function(){this.remove(),this.props={}};Re.prototype.register_once=function(e,t,n){return w.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof n>"u"?this.default_expiry:n,this.load(),w.each(e,function(r,o){(!this.props.hasOwnProperty(o)||this.props[o]===t)&&(this.props[o]=r)},this),this.save(),!0):!1};Re.prototype.register=function(e,t){return w.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),w.extend(this.props,e),this.save(),!0):!1};Re.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};Re.prototype.update_search_keyword=function(e){this.register(w.info.searchInfo(e))};Re.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:w.info.referringDomain(e)||"$direct"},"")};Re.prototype.get_referrer_info=function(){return w.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Re.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};Re.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};Re.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};Re.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};Re.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};Re.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Re.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};Re.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],o=this._get_or_create_queue(Zo),s=this._get_or_create_queue(ra),i=this._get_or_create_queue(nr),a=this._get_or_create_queue(Ws),l=this._get_or_create_queue(zs),c=this._get_or_create_queue(uo,[]),u=this._get_or_create_queue(Mr,[]);n===sy?(w.extend(o,r),this._pop_from_people_queue(Ws,r),this._pop_from_people_queue(zs,r),this._pop_from_people_queue(nr,r)):n===iy?(w.each(r,function(f,d){d in s||(s[d]=f)}),this._pop_from_people_queue(nr,r)):n===ay?w.each(r,function(f){w.each([o,s,a,l],function(d){f in d&&delete d[f]}),w.each(u,function(d){f in d&&delete d[f]}),i[f]=!0}):n===ly?(w.each(r,function(f,d){d in o?o[d]+=f:(d in a||(a[d]=0),a[d]+=f)},this),this._pop_from_people_queue(nr,r)):n===fy?(w.each(r,function(f,d){w.isArray(f)&&(d in l||(l[d]=[]),l[d]=l[d].concat(f))}),this._pop_from_people_queue(nr,r)):n===uy?(c.push(r),this._pop_from_people_queue(Mr,r)):n===cy&&(u.push(r),this._pop_from_people_queue(nr,r)),Ke.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ke.log(t),this.save()};Re.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];w.isUndefined(n)||w.each(t,function(r,o){e===Mr||e===uo?w.each(n,function(s){s[o]===r&&delete s[o]}):delete n[o]},this)};Re.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};Re.prototype._get_queue_key=function(e){if(e===Zo)return sy;if(e===ra)return iy;if(e===nr)return ay;if(e===Ws)return ly;if(e===Mr)return cy;if(e===uo)return uy;if(e===zs)return fy;Ke.error("Invalid queue:",e)};Re.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=w.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)};Re.prototype.set_event_timer=function(e,t){var n=this.load_prop(ac)||{};n[e]=t,this.props[ac]=n,this.save()};Re.prototype.remove_event_timer=function(e){var t=this.load_prop(ac)||{},n=t[e];return w.isUndefined(n)||(delete this.props[ac][e],this.save()),n};var dy,RC=function(e,t){throw new Error(e+" not available in this build.")},rn,LC=0,i5=1,a5=function(e){return e},lc=function(){},Wn="mixpanel",PC="base64",l5="json",py="$device:",Bi=Ee.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,NC=!Bi&&Or.indexOf("MSIE")===-1&&Or.indexOf("Mozilla")===-1,Ff=null;Uo.sendBeacon&&(Ff=function(){return Uo.sendBeacon.apply(Uo,arguments)});var MC={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},m0={api_host:"https://api-js.mixpanel.com",api_routes:MC,api_method:"POST",api_transport:"XHR",api_payload_format:PC,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:lc,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:lc,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:30*60*1e3,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:bl,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},DC=!1,V=function(){},Dg=function(e,t,n){var r,o=n===Wn?rn:rn[n];if(o&&dy===LC)r=o;else{if(o&&!w.isArray(o)){Ke.error("You have already initialized "+n);return}r=new V}if(r._cached_groups={},r._init(e,t,n),r.people=new xe,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var s=w.info.campaignParams(null),i={},a=!1;w.each(s,function(l,c){i["initial_"+c]=l,l&&(a=!0)}),a&&r.people.set_once(i)}return co.DEBUG=co.DEBUG||r.get_config("debug"),!w.isUndefined(o)&&w.isArray(o)&&(r._execute_array.call(r.people,o.people),r._execute_array(o)),r};V.prototype.init=function(e,t,n){if(w.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===Wn){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=Dg(e,t,n);return rn[n]=r,r._loaded(),r};V.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var o=t.api_host||m0.api_host;o.match(/\.mixpanel\.com/)&&(r.api_payload_format=l5)}if(this.set_config(w.extend({},m0,r,t,{name:n,token:e,callback_fn:(n===Wn?n:Wn+"."+n)+"._jsc"})),this._jsc=lc,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!w.localStorage.is_supported(!0)||!Bi)this._batch_requests=!1,Ke.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),w.each(this.get_batcher_configs(),function(l){Ke.log("Clearing batch queue "+l.queue_key),w.localStorage.remove(l.queue_key)});else if(this.init_batchers(),Ff&&Ee.addEventListener){var s=w.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Ee.addEventListener("pagehide",function(l){l.persisted&&s()}),Ee.addEventListener("visibilitychange",function(){nt.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new Re(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=w.UUID();this.get_distinct_id()||this.register_once({distinct_id:py+i,$device_id:i},"");var a=this.get_config("track_pageview");a&&this._init_url_change_tracking(a),this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent")&&this.start_session_recording()};V.prototype.start_session_recording=ss(function(){if(!Ee.MutationObserver){Ke.critical("Browser does not support MutationObserver; skipping session recording");return}var e=w.bind(function(){this._recorder=this._recorder||new Ee.__mp_recorder(this),this._recorder.startRecording()},this);w.isUndefined(Ee.__mp_recorder)?RC(this.get_config("recorder_src"),e):e()});V.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():Ke.critical("Session recorder module not loaded")};V.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e};V.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=w.info.campaignParams(null);w.each(e,(function(t,n){this.unregister(n)}).bind(this))}};V.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(nt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(w.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(nt.referrer)};V.prototype._dom_loaded=function(){w.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||w.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};V.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!DC)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)};V.prototype._init_url_change_tracking=function(e){var t="",n=this.track_pageview();if(n&&(t=w.info.currentUrl()),w.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){Ee.addEventListener("popstate",function(){Ee.dispatchEvent(new Event("mp_locationchange"))}),Ee.addEventListener("hashchange",function(){Ee.dispatchEvent(new Event("mp_locationchange"))});var r=Ee.history.pushState;typeof r=="function"&&(Ee.history.pushState=function(s,i,a){r.call(Ee.history,s,i,a),Ee.dispatchEvent(new Event("mp_locationchange"))});var o=Ee.history.replaceState;typeof o=="function"&&(Ee.history.replaceState=function(s,i,a){o.call(Ee.history,s,i,a),Ee.dispatchEvent(new Event("mp_locationchange"))}),Ee.addEventListener("mp_locationchange",(function(){var s=w.info.currentUrl(),i=!1;if(e==="full-url"?i=s!==t:e==="url-with-path-and-query-string"?i=s.split("#")[0]!==t.split("#")[0]:e==="url-with-path"&&(i=s.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),i){var a=this.track_pageview();a&&(t=s)}}).bind(this))}};V.prototype._prepare_callback=function(e,t){if(w.isUndefined(e))return null;if(Bi){var n=function(i){e(i,t)};return n}else{var r=this._jsc,o=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+o+"]";return r[o]=function(i){delete r[o],e(i,t)},s}};V.prototype._send_request=function(e,t,n,r){var o=!0;if(NC)return this.__request_queue.push(arguments),o;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},i=null;!r&&(w.isFunction(n)||typeof n=="string")&&(r=n,n=null),n=w.extend(s,n||{}),Bi||(n.method="GET");var a=n.method==="POST",l=Ff&&a&&n.transport.toLowerCase()==="sendbeacon",c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Bi||(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(i="data="+encodeURIComponent(t.data),delete t.data),e+="?"+w.HTTPBuildQuery(t);var u=this;if("img"in t){var f=nt.createElement("img");f.src=e,nt.body.appendChild(f)}else if(l){try{o=Ff(e,i)}catch(m){u.report_error(m),o=!1}try{r&&r(o?1:0)}catch(m){u.report_error(m)}}else if(Bi)try{var d=new XMLHttpRequest;d.open(n.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),w.each(p,function(m,b){d.setRequestHeader(b,m)}),n.timeout_ms&&typeof d.timeout<"u"){d.timeout=n.timeout_ms;var g=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200){if(r)if(c){var m;try{m=w.JSONDecode(d.responseText)}catch(v){if(u.report_error(v),n.ignore_json_errors)m=d.responseText;else return}r(m)}else r(Number(d.responseText))}else{var b;if(d.timeout&&!d.status&&new Date().getTime()-g>=d.timeout?b="timeout":b="Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(b),r)if(c){var _=d.responseHeaders||{};r({status:0,httpStatusCode:d.status,error:b,retryAfter:_["Retry-After"]})}else r(0)}},d.send(i)}catch(m){u.report_error(m),o=!1}else{var h=nt.createElement("script");h.type="text/javascript",h.async=!0,h.defer=!0,h.src=e;var y=nt.getElementsByTagName("script")[0];y.parentNode.insertBefore(h,y)}return o};V.prototype._execute_array=function(e){var t,n=[],r=[],o=[];w.each(e,function(i){i&&(t=i[0],w.isArray(t)?o.push(i):typeof i=="function"?i.call(this):w.isArray(i)&&t==="alias"?n.push(i):w.isArray(i)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?o.push(i):r.push(i))},this);var s=function(i,a){w.each(i,function(l){if(w.isArray(l[0])){var c=a;w.each(l,function(u){c=c[u[0]].apply(c,u.slice(1))})}else this[l[0]].apply(this,l.slice(1))},a)};s(n,this),s(r,this),s(o,this)};V.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};V.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs};V.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=w.bind(function(n){return new _r(n.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:w.bind(function(r,o,s){this._send_request(this.get_config("api_host")+n.endpoint,this._encode_data_for_request(r),o,this._prepare_callback(s,r))},this),beforeSendHook:w.bind(function(r){return this._run_hook("before_send_"+n.type,r)},this),stopAllBatchingFunc:w.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};V.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,w.each(this.request_batchers,function(e){e.start()}))};V.prototype.stop_batch_senders=function(){this._batch_requests=!1,w.each(this.request_batchers,function(e){e.stop(),e.clear()})};V.prototype.push=function(e){this._execute_array([e])};V.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};V.prototype._encode_data_for_request=function(e){var t=w.JSONEncode(e);return this.get_config("api_payload_format")===PC&&(t=w.base64Encode(t)),{data:t}};V.prototype._track_or_batch=function(e,t){var n=w.truncate(e.data,255),r=e.endpoint,o=e.batcher,s=e.should_send_immediately,i=e.send_request_options||{};t=t||lc;var a=!0,l=w.bind(function(){return i.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(Ke.log("MIXPANEL REQUEST:"),Ke.log(n),this._send_request(r,this._encode_data_for_request(n),i,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!s?o.enqueue(n,function(c){c?t(1,n):l()}):a=l(),a&&n};V.prototype.track=ss(function(e,t,n,r){!r&&typeof n=="function"&&(r=n,n=null),n=n||{};var o=n.transport;o&&(n.transport=o);var s=n.send_immediately;if(typeof r!="function"&&(r=lc),w.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}t=w.extend({},t),t.token=this.get_config("token");var i=this.persistence.remove_event_timer(e);if(!w.isUndefined(i)){var a=new Date().getTime()-i;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?w.info.marketingParams():{};t=w.extend({},w.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");w.isArray(c)?w.each(c,function(d){delete t[d]}):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t},f=this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:n},r);return f});V.prototype.set_group=ss(function(e,t,n){w.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)});V.prototype.add_group=ss(function(e,t,n){var r=this.get_property(e),o={};return r===void 0?(o[e]=[t],this.register(o)):r.indexOf(t)===-1&&(r.push(t),o[e]=r,this.register(o)),this.people.union(e,t,n)});V.prototype.remove_group=ss(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var o=r.indexOf(t);o>-1&&(r.splice(o,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,n)});V.prototype.track_with_groups=ss(function(e,t,n,r){var o=w.extend({},t||{});return w.each(n,function(s,i){s!=null&&(o[i]=s)}),this.track(e,o,r)});V.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};V.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};V.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new dt,r._init(this,e,t),this._cached_groups[n]=r),r};V.prototype.track_pageview=ss(function(e,t){typeof e!="object"&&(e={}),t=t||{};var n=t.event_name||"$mp_web_page_view",r=w.extend(w.info.mpPageViewProperties(),w.info.campaignParams(),w.info.clickParams()),o=w.extend({},r,e);return this.track(n,o)});V.prototype.track_links=function(){return this._track_dom.call(this,na,arguments)};V.prototype.track_forms=function(){return this._track_dom.call(this,Dd,arguments)};V.prototype.time_event=function(e){if(w.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var c5={persistent:!0},hy=function(e){var t;return w.isObject(e)?t=e:w.isUndefined(e)?t={}:t={days:e},w.extend({},c5,t)};V.prototype.register=function(e,t){var n=hy(t);n.persistent?this.persistence.register(e,n.days):w.extend(this.unpersisted_superprops,e)};V.prototype.register_once=function(e,t,n){var r=hy(n);r.persistent?this.persistence.register_once(e,t,r.days):(typeof t>"u"&&(t="None"),w.each(e,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===t)&&(this.unpersisted_superprops[s]=o)},this))};V.prototype.unregister=function(e,t){t=hy(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};V.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)};V.prototype.identify=function(e,t,n,r,o,s,i,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(py)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property($f)&&(this.unregister($f),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,o,s,i,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})};V.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=w.UUID();this.register_once({distinct_id:py+e,$device_id:e},"")};V.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};V.prototype.alias=function(e,t){if(e===this.get_property(OC))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return w.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single($f,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};V.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};V.prototype.set_config=function(e){if(w.isObject(e)){w.extend(this.config,e);var t=e.batch_size;t&&w.each(this.request_batchers,function(n){n.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),co.DEBUG=co.DEBUG||this.get_config("debug")}};V.prototype.get_config=function(e){return this.config[e]};V.prototype._run_hook=function(e){var t=(this.config.hooks[e]||a5).apply(this,Fo.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};V.prototype.get_property=function(e){return this.persistence.load_prop([e])};V.prototype.toString=function(){var e=this.get_config("name");return e!==Wn&&(e=Wn+"."+e),e};V.prototype._event_is_disabled=function(e){return w.isBlockedUA(Or)||this._flags.disable_all_events||w.include(this.__disabled_events,e)};V.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&w.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||w.cookie.get("mp_optout"))&&(w.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};V.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()};V.prototype._gdpr_call_func=function(e,t){return t=w.extend({track:w.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),w.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};V.prototype.opt_in_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(KV,e),this._gdpr_update_persistence(e)};V.prototype.opt_out_tracking=function(e){e=w.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(YV,e),this._gdpr_update_persistence(e)};V.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ZV,e)};V.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(kC,e)};V.prototype.clear_opt_in_out_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(XV,e),this._gdpr_update_persistence(e)};V.prototype.report_error=function(e,t){Ke.error.apply(Ke.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){Ke.error(n)}};V.prototype.init=V.prototype.init;V.prototype.reset=V.prototype.reset;V.prototype.disable=V.prototype.disable;V.prototype.time_event=V.prototype.time_event;V.prototype.track=V.prototype.track;V.prototype.track_links=V.prototype.track_links;V.prototype.track_forms=V.prototype.track_forms;V.prototype.track_pageview=V.prototype.track_pageview;V.prototype.register=V.prototype.register;V.prototype.register_once=V.prototype.register_once;V.prototype.unregister=V.prototype.unregister;V.prototype.identify=V.prototype.identify;V.prototype.alias=V.prototype.alias;V.prototype.name_tag=V.prototype.name_tag;V.prototype.set_config=V.prototype.set_config;V.prototype.get_config=V.prototype.get_config;V.prototype.get_property=V.prototype.get_property;V.prototype.get_distinct_id=V.prototype.get_distinct_id;V.prototype.toString=V.prototype.toString;V.prototype.opt_out_tracking=V.prototype.opt_out_tracking;V.prototype.opt_in_tracking=V.prototype.opt_in_tracking;V.prototype.has_opted_out_tracking=V.prototype.has_opted_out_tracking;V.prototype.has_opted_in_tracking=V.prototype.has_opted_in_tracking;V.prototype.clear_opt_in_out_tracking=V.prototype.clear_opt_in_out_tracking;V.prototype.get_group=V.prototype.get_group;V.prototype.set_group=V.prototype.set_group;V.prototype.add_group=V.prototype.add_group;V.prototype.remove_group=V.prototype.remove_group;V.prototype.track_with_groups=V.prototype.track_with_groups;V.prototype.start_batch_senders=V.prototype.start_batch_senders;V.prototype.stop_batch_senders=V.prototype.stop_batch_senders;V.prototype.start_session_recording=V.prototype.start_session_recording;V.prototype.stop_session_recording=V.prototype.stop_session_recording;V.prototype.get_session_recording_properties=V.prototype.get_session_recording_properties;V.prototype.DEFAULT_API_ROUTES=MC;Re.prototype.properties=Re.prototype.properties;Re.prototype.update_search_keyword=Re.prototype.update_search_keyword;Re.prototype.update_referrer_info=Re.prototype.update_referrer_info;Re.prototype.get_cross_subdomain=Re.prototype.get_cross_subdomain;Re.prototype.clear=Re.prototype.clear;var Ai={},u5=function(){w.each(Ai,function(e,t){t!==Wn&&(rn[t]=e)}),rn._=w},f5=function(){rn.init=function(e,t,n){if(n)return rn[n]||(rn[n]=Ai[n]=Dg(e,t,n),rn[n]._loaded()),rn[n];var r=rn;Ai[Wn]?r=Ai[Wn]:e&&(r=Dg(e,t,Wn),r._loaded(),Ai[Wn]=r),rn=r,dy===i5&&(Ee[Wn]=rn),u5()}},d5=function(){function e(){e.done||(e.done=!0,DC=!0,NC=!1,w.each(Ai,function(r){r._dom_loaded()}))}function t(){try{nt.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(nt.addEventListener)nt.readyState==="complete"?e():nt.addEventListener("DOMContentLoaded",e,!1);else if(nt.attachEvent){nt.attachEvent("onreadystatechange",e);var n=!1;try{n=Ee.frameElement===null}catch{}nt.documentElement.doScroll&&n&&t()}w.register_event(Ee,"load",e,!0)};function p5(e){return RC=e,dy=LC,rn=new V,f5(),rn.init(),d5(),rn}function h5(e,t){t()}var Xr=p5(h5);const $C={layoutSkeleton:{type:"string",defaultValue:"control",description:"The layout skeleton to use",weightedSplit:!0,values:[{value:"control",weight:80},{value:"test",weight:20}]},siteSettings:{type:"string",defaultValue:"control",description:"Which version of site settings to use",values:["control","test"]},layoutSettings:{type:"string",defaultValue:"control",description:"Which version of layout settings to use",values:["control","test"]},adSettings:{type:"string",defaultValue:"control",description:"Which version of layout settings to use",values:["control","test"]},summaryPageSettings:{type:"string",defaultValue:"control",description:"Which version of summary page settings to use",values:["control","test"]},contentSource:{type:"string",defaultValue:"dynamodb",description:"Which content source to use",values:["content-api","dynamodb","discover-feed"]},showArticleImage:{type:"boolean",defaultValue:!1,description:"Whether to show the article image",values:[!0,!1]},enableSearchboxUrlNavigation:{type:"boolean",defaultValue:!1,description:"Enable omnibox-style URL navigation in searchbox (A/B test for DXT-1619)",values:[!0,!1]},tabBadges:{type:"string",defaultValue:"",description:'JSON configuration for tab badges. Format: [{"tab":"TabName","variant":"pill|count","label":"Text","tone":"blue|red"}]',values:[""]}};let y0=!1;const g5=Object.keys($C);function m5(e,t={}){window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:t})}const cc=pt.withTag("mixpanel"),_0=[];let v0=!1;function y5(e,t){if(((r,o)=>!!(r==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(_0.includes(t.ntp_placement_name))return!1;_0.push(t.ntp_placement_name)}if(e==="NtpPage_Viewed"){if(v0)return!1;v0=!0}return!0}const Bp=new Map;async function FC(){var s;if(Bp.has("metadata"))return Bp.get("metadata");const{client:e}=await ri(),t=(i,a)=>{if(typeof a=="string")return e.getStringValue(i,a);if(typeof a=="boolean")return e.getBooleanValue(i,a);if(typeof a=="number")return e.getNumberValue(i,a);throw new Error(`Unsupported default value type for key: ${i}`)},o={...(await Promise.all(g5.map(async i=>{try{const a=$C[i];return{[i]:await t(i,a.defaultValue)}}catch(a){return cc.warn(`Failed retrieving feature flag '${i}':`,a),{}}}))).reduce((i,a)=>Object.assign(i,a),{}),...no.getContext(),...((s=e.apiContextAccessor)==null?void 0:s.call(e))??{},splittestname:e.getStringValue("splittestname","control")};return Bp.set("metadata",o),o}async function _5(){var o;if(y0)return Xr;const e=it();if(!e.public.mixpanelToken)throw new Error("Mixpanel token is not defined in the runtime config.");Xr.init(e.public.mixpanelToken,{api_host:e.public.mixpanelApiHost}),cc.info("Mixpanel SDK initialized");const t=await FC();cc.info("Mixpanel metadata:",t),Xr.register(t);const n=t!=null&&t.cohort?String(t.cohort):"",r=t!=null&&t.targetingKey?String(t.targetingKey):"";return n&&r&&(Xr.identify(t.targetingKey),Xr.people.set_once?Xr.people.set_once({cohort:n}):(o=Xr.people)==null||o.set({cohort:n})),y0=!0,Xr}function v5(e,t){return _5().then(()=>{Xr.track(e,t)}).catch(()=>{cc.error("Failed to send event to Mixpanel. The Mixpanel SDK is not initialized.")})}async function UC(e,t){var u,f;if(cc.info(`Sending Mixpanel event: ${e}`,t),!y5(e,t))return;const n=await FC(),r={...t,split_test_data:n};m5(e,r);const{shift:o,chrome:s,onelaunch:i}=qk.getHostApis(),a=(u=o==null?void 0:o.analytics)==null?void 0:u.track;if(a){a(e,r);return}const l=i==null?void 0:i.sendEvent;if(l){l(e,r);return}const c=(f=s==null?void 0:s.runtime)==null?void 0:f.sendEvent;if(c){c(e,r);return}try{await v5(e,t)}catch{}}async function jC(e,t={}){const n=Rd(),{data:r}=wc(n);return{...await HC(r,e),...t}}function b5(e=300){const t=ue({article:0,video:0});let n=null;function r(o){n&&clearTimeout(n),t.value[o]+=1,n=setTimeout(async()=>{const s=await jC("NtpNewsTile_Rendered",{article_tiles_rendered_count:t.value.article,video_tiles_rendered_count:t.value.video});UC("NtpNewsTile_Rendered",s),t.value={article:0,video:0},n=null},e)}return r}const w5=b5(),Gs=()=>{async function e(t,n){if(!M5(t,n))return;const{client:r}=await ri();if(r.track(t,n),t==="NtpNewsTile_Rendered"&&n&&D5(n))w5(n.ntp_content_type);else{const o=await jC(t,n);try{await UC(t,o)}catch{}}}return{track:e,sendMixpanelEvent:e}},S5=yd(()=>{var i,a;const e=Rd(),{data:t}=wc(e),n=Jk(),r=Ox("app:userSelectedTheme",!1);r.value||(n.preference=((i=t.value.userSettings)==null?void 0:i.defaultSettings.theme)??"system");const o=J(()=>n.preference==="system"&&n.value==="light"?"auto-light":n.preference==="system"&&n.value==="dark"?"auto-dark":n.preference),s=l=>{const{track:c}=Gs();r.value=!0,n.preference=l,document.documentElement.className=`${n.value} bg-background-default dark:bg-background-neutral-subtle`,c("NtpSetting_Changed",{setting_name:"ntp_theme",setting_value:o.value}),kf("ntp_theme",o.value)};return n.preference=(r?n.preference:(a=t.value.userSettings)==null?void 0:a.defaultSettings.theme)??"system",{theme:n,updateTheme:s,mixpanelPropertyName:o}}),E5=yd(e=>{const t=Ox("app:userSettings",{articleSummary:{isEnabled:!0,showSettingsToggle:!1,isUserSelected:!1}}),n=J(()=>e==null?void 0:e.value.userSettings);Oe(()=>n.value,o=>{o&&(t.value.articleSummary.isUserSelected||(t.value.articleSummary.isEnabled=o.defaultSettings.articleSummary),t.value.articleSummary.showSettingsToggle=o.enabledSettings.articleSummary)},{immediate:!0});const r=o=>{const{track:s}=Gs();t.value.articleSummary.isUserSelected=!0,t.value.articleSummary.isEnabled=o,s("NtpSetting_Changed",{setting_name:"ntp_article_summary",setting_value:o?"on":"off"})};return{articleSummary:t.value.articleSummary,updateArticleSummary:r}}),x5=pt.withTag("composables:useAssertiveYield");function k5(e){var s,i,a,l,c,u;const{$ayLoaded:t}=Ae();if(!t)return{assertive:null,ayManagerEnv:null,ayData:null,initAY:()=>Promise.resolve(),unMountSlotTargeting:()=>Promise.resolve()};const n=ue(null);window.addEventListener("assertive_logImpression",async f=>{var d;try{const p=(d=f==null?void 0:f.data)==null?void 0:d.payload,{unfilled:g,auctionId:h}=p,y=n.value!==h;e!=null&&e.onAdFulfilled}catch(p){x5.error(p)}});const r=fD();Oe(r,f=>{const d=f==="visible";window.isPageVisible=d,d&&window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()})});const o={version:(i=(s=window.ayManagerEnv)==null?void 0:s.versionInfo)==null?void 0:i.versionId,deployment:(l=(a=window.ayManagerEnv)==null?void 0:a.versionInfo)==null?void 0:l.deployId,deploymentPercentage:((u=(c=window.ayManagerEnv)==null?void 0:c.versionInfo)==null?void 0:u.percentage)||0};return{assertive:window.assertive,ayManagerEnv:window.ayManagerEnv,ayData:o}}const C5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomImpression=="function"&&window.assertive.logCustomImpression(e)}))},T5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomClick=="function"&&window.assertive.logCustomClick(e)}))},gs=pt.withTag("analytics:helper");function A5(e){if(e==null)return null;const n=e.match("([0-9]{1}_[0-9]{4}_[0-9]{3}_[0-9]{4}_[0-9]{3}(_[0-9]{3})?_[0-9]{6})");return n!=null?n[0]:null}async function BC(){const e="0_1000_100_1000_100_691231";try{const t=await qk.getConfig();if(t!=null&&t.type_tag)return t.type_tag;const n=(t==null?void 0:t.search_url)||null,r=A5(n);if(r)return r;const s=new URL(location.href).searchParams.get("type")||"0_1000_100_1000_100_691231";return s||e}catch(t){return gs.error(`Error getting type tag: ${t}`),e}}function I5(){const e=ti();return e.path.includes("/v8/article/")?"/v8/article":e.path.includes("/article/")?"/article":e.path.includes("/video/")?"/video":e.path}function O5({fullUrl:e=!1}={}){return e?window.location.href:"https://"+window.location.hostname+window.location.pathname}function R5(){const e=x4(),{newsToggle:t}=wc(e);return t.value?"on":"off"}function L5(){return S5().mixpanelPropertyName.value}function $d(){return Np==null?void 0:Np.version}function P5(){const t=$d().split(".").map(s=>parseInt(s,10));if(t.length!==3||t.some(isNaN))return;const[n,r,o]=t;return n*1e6+r*1e3+o}function gy(){const e=window.location.pathname;return e.includes("article")?"article":e.includes("summary")?"summary":e.includes("video")?"video":"homepage"}const N5=async e=>{e.value&&await new Promise(t=>{const n=Oe(e,r=>{r||(n(),t(!0))})})},HC=async(e,t)=>{const{articleSummary:n}=E5(e),r=ti(),o=p4(),{data:s,isLoading:i}=wc(o),{ayData:a}=await k5();await N5(i);const l={ntp_type_tag:await BC(),ntp_window_active:window.isPageVisible||document.visibilityState==="visible",ntp_url:O5(),ntp_app_version:$d(),ntp_app_version_number:P5(),ntp_layout:I5(),ntp_page_type:gy(),ntp_assertive_data:a??void 0,ntp_news_content_toggle:R5(),ntp_is_user_idle:window.isUserIdle??!1,ntp_user_settings:{theme:L5(),ai_news_summary:{...n}}};if(t==="NtpPage_Viewed"||t==="NtpAd_Rendered"||t==="NtpMoreNews_Loaded"){const{browser_window_size:u,browser_window_height:f,browser_window_width:d,column_count:p}=c4();l.browser_window_size=u,l.browser_window_height=f,l.browser_window_width=d,["/","/v8","/v8/"].includes(r.path)&&(l.column_count=p)}if(["/","/v8","/v8/"].includes(r.path)&&(l.ntp_layout_skeleton=Me(s.value)),["/","/v8","/v8/"].includes(r.path)&&(t==="NtpPage_Viewed"||t==="NtpMoreNews_Loaded"))try{const{client:u}=await ri();if(!u)throw new Error("OpenFeature client is not available");if(!u.getBooleanValue("ntp_visible_content_enabled",!1))return l;let d;if(t==="NtpPage_Viewed"){if(!_4())return gs.warn(`[visibleContent] No initial batch found for ${t}; sending event without visibleContent`),l;d=m4()}else{if(!v4())return gs.warn(`[visibleContent] No more-news batch found for ${t}; sending event without visibleContent`),l;d=y4()}if(d.length===0)return gs.warn(`[visibleContent] No content found in batch for ${t}; sending event without visibleContent`),l;const p=l.column_count;if(!p||p<=0)return gs.warn(`[visibleContent] column_count missing/invalid (${p}) for ${t}; sending event without visibleContent`),l;l.visibleContent=d,t==="NtpMoreNews_Loaded"&&b4(),t==="NtpPage_Viewed"&&E4()&&(l.testSectionContent=S4()??void 0,gs.log(`[testSectionContent] Added test section content to ${t}`))}catch(u){gs.warn("Failed to check visible content feature flag",u)}return l},b0=[];function M5(e,t){if(((r,o)=>!!(r==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(b0.includes(t.ntp_placement_name))return!1;b0.push(t.ntp_placement_name)}return!0}function D5(e){return e.ntp_content_type==="article"||e.ntp_content_type==="video"}const $5=Je(e=>{const t=it(),n=$d(),r=t.public.buildVersion||n;try{"nocache"in e._route.query&&(pt.log("Clearing all storage due to no-cache query param"),_s.clear());const o=_s.getItem("app:buildVersion");r!==o&&(["app:config:adSettings","app:config:layoutSettings","app:config:layoutSkeleton","app:config:siteSettings","app:buildVersion"].forEach(i=>{_s.removeItem(i)}),_s.setItem("app:buildVersion",`${r}`))}catch{}e.provide("buildVersion",r),e.provide("storage",_s)}),w0=pt.withTag("plugins:filters"),VC=R.object({userAgent:R.string().nullable(),country:R.string(),isMobile:R.boolean().default(!1)}),S0=VC.parse({country:"US",userAgent:null,isMobile:!1}),F5=Je(async e=>{var r;let t,n;try{const o="/api/v2/filters",s=([t,n]=Xt(()=>$fetch(o)),t=await t,n(),t),i={...s,isMobile:((r=s.userAgent)==null?void 0:r.includes("Mobile"))||!1},a=VC.safeParse(i);if(!a.success){w0.warn("Invalid user filtering data:",a.error),e.provide("filters",S0);return}e.provide("filters",a.data)}catch(o){w0.warn("Error fetching user filtering data:",o),e.provide("filters",S0)}}),U5=Je({name:"openfeature",setup:async e=>{let t,n;const{loaded:r,client:o}=([t,n]=Xt(()=>ri()),t=await t,n(),t);e.provide("openfeatureLoaded",r),e.provide("openfeature",o)}});function WC(){return window.location.pathname.includes("/v8/article/")?`https://${window.location.hostname}/v8/article/`:window.location.pathname.includes("/article/")?`https://${window.location.hostname}/article/`:window.location.pathname.includes("/video/")?`https://${window.location.hostname}/video/`:`https://${window.location.hostname}${window.location.pathname}`}const E0=pt.withTag("utils:loadScriptAsync"),uu=new Map;function Sl(e,t,n={}){const r=t.src||t.key;if(!r)throw new Error("Script key or src is required");const o=t.src,s=t.textContent;return uu.has(r)||uu.set(r,new Promise((i,a)=>{if(typeof document>"u")return typeof Fs=="function"&&e==="head"?Fs({script:[{...o?{src:o}:{},...s?{textContent:s}:{},type:"text/javascript",async:!0,onload:()=>{i()},onerror:()=>{a(new Error(`Failed to load script: ${r}`))},...n,...t.key?{key:t.key}:{}}]}):(E0.warn("loadScriptAsync is called outside of the browser environment"),a(new Error("Document is not defined")));if(o){const c=document.querySelector(`script[src="${o}"]`);if(c)if(c.hasAttribute("data-loaded")){i();return}else{E0.warn(`loadScriptAsync: Script with src "${o}" is already present but not loaded yet. Attaching listeners.`);const u=()=>{c.setAttribute("data-loaded","true"),i(),c.removeEventListener("load",u),c.removeEventListener("error",f)},f=()=>{c.removeAttribute("data-loaded"),a(new Error(`Failed to load script: ${r}`)),c.removeEventListener("load",u),c.removeEventListener("error",f)};c.addEventListener("load",u),c.addEventListener("error",f),c.hasAttribute("data-loaded")&&u();return}}const l=document.createElement("script");l.type="text/javascript",l.async=!0,o?(l.src=o,l.referrerPolicy="no-referrer-when-downgrade"):s&&(l.textContent=s,i()),l.onload=()=>{l.setAttribute("data-loaded","true"),i()},l.onerror=()=>{l.removeAttribute("data-loaded"),a(new Error(`Failed to load script: ${r}`))},e==="head"?document.head.appendChild(l):document.body.appendChild(l)})),uu.get(r)}const x0=pt.withTag("utils:scriptLoadAY");async function j5(e,t,n,r,o){const{isDevMode:s,devDisableAds:i,devAYTestEntityId:a}=it().public;if(s&&i)return x0.info("Ads are disabled in development mode"),{ayManagerEnv:null,assertive:null,loading:!1};if(window.assertive&&window.ayManagerEnv)return{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0};const l=s&&a?a:e,c={integrations:{webAnalytics:!0},logUnfilled:!0,custom:{layout:n,userState:null,custom_1:t.type_tag,custom_2:t.ntp_app_version,custom_3:t.host_browser_app_version,custom_4:WC(),custom_5:r,custom_6:o},useHistoryChangeTrigger:!0},u={ayEntityId:l,debug:!0,analytics:c};window.assertiveYieldAnalytics??(window.assertiveYieldAnalytics={...c}),window.assertive??(window.assertive={...u}),window.ayManagerEnv??(window.ayManagerEnv={cmd:[]});try{l&&await Sl("head",{src:`https://${l}.ay.delivery/manager/${l}`})}catch(f){return x0.error("Failed to load Assertive Yield SDK:",f),{ayManagerEnv:null,assertive:null,loading:!1}}return window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var f,d;(d=(f=window.assertive)==null?void 0:f.analytics)!=null&&d.custom&&(window.assertive.analytics.custom.custom_5=r,window.assertive.analytics.custom.custom_6=o)}),{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0}}function B5(e=vm){return mE(e,{asyncContext:!1})}function H5(e){var n;let t;return ma()&&(t=(n=en())==null?void 0:n.appContext.app.$nuxt),t||(t=B5(e).tryUse()),t||null}function V5(e){const t=H5(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function W5(){const e=V5();return e._appConfig||(e._appConfig=Jt($n)),e._appConfig}const Ba={SM:480,MD:600,LG:767,XL:1024},hi=pt.withTag("useTaboolaAds"),z5=yd(()=>{var l,c;const e=jr().taboola.publisherName,{$assertive:t}=Ae(),n=((c=(l=t==null?void 0:t.analytics)==null?void 0:l.custom)==null?void 0:c.custom_1)||"",r=gy()==="homepage"?Sl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ homepage:'auto', custom_tracking:'sub_id=${n}' }); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } } (document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/${e}/loader.js', 'tb_loader_script'); if(window.performance && typeof(window.performance.mark) == 'function') {window.performance.mark('tbl_ic');}`,key:"taboola-homepage-header-script"},{id:"taboola-homepage-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,onload:()=>hi.debug("Taboola script loaded."),onerror:()=>hi.error("Taboola script failed to load.")}):Sl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ article:'auto', custom_tracking:'sub_id=${n}' }); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } } (document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/${e}/loader.js', 'tb_loader_script'); if(window.performance && typeof(window.performance.mark) == 'function') {window.performance.mark('tbl_ic');}`,key:"taboola-article-header-script"},{id:"taboola-article-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,onload:()=>hi.debug("Taboola script loaded."),onerror:()=>hi.error("Taboola script failed to load.")}),o=Sl("body",{textContent:`window._taboola = window._taboola || []; _taboola.push({flush: true});`,key:"taboola-homepage-body-script"},{id:"taboola-homepage-body-script",type:"text/javascript",async:!0,onload:()=>hi.debug("Taboola body script loaded."),onerror:()=>hi.error("Taboola body script failed to load.")});return{triggerTaboolaRenderedEvent:async(u,f,d,p)=>{await r,await o,p(),window._taboola=window._taboola||[],window._taboola.push({mode:u,container:f,placement:d,target_type:"mix"})},fireRenderCallback:(u,f,d)=>new Promise(p=>{window._taboola.push({listenTo:"render",handler:function(g){f.value=!0,g.detail.placement===u&&(d(),p())}})}),callRenderTaboolaWidgets:async()=>{await r,await o,window._taboola=window._taboola||[],window._taboola.push({notify:"newPageLoad"}),window._taboola.push({flush:!0})}}}),fu=pt.withTag("useAdFunctions"),G5=()=>{const{track:e}=Gs(),{callRenderResearchWidgets:t}=my(),{callRenderTaboolaWidgets:n}=z5(),r=(f,d)=>{T5(d),e("NtpAd_Clicked",f)},o=(f,d)=>{C5(d),e("NtpAd_Rendered",f)},s=(f,d,p,g)=>{let h=0;try{if(!f)throw new Error("No element to render when visible");if(!d){p&&k0(f);const m=g();m instanceof Promise&&m.catch(b=>{fu.error("Error in async callback for non-lazy render",b)});return}const y=Ix(f,{threshold:1/100});tD(y,()=>{h&&clearTimeout(h),y.value&&(h=setTimeout(()=>{p&&k0(f);const m=g();m instanceof Promise&&m.catch(b=>{fu.error("Error in async callback for element visibility",b)})},1))})}catch(y){h&&clearTimeout(h),fu.error("Unable to render element when visible",y)}},i=()=>{window.ayManagerEnv.cmd=window.ayManagerEnv.cmd||[];try{window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()}),t(),n()}catch(f){fu.error("Error triggering ad renders on breakpoint change",f)}},{width:a}=Rx(),l=ue("MD"),c=J(()=>a.value<=Ba.LG),u=J(()=>a.value>=Ba.XL);return Oe(a,f=>{let d=l.value;f>=Ba.LG?d="LG":f>=Ba.MD?d="MD":f>=Ba.SM?d="SM":d="XS",d!==l.value&&(l.value=d,i())}),{adClicked:r,adRendered:o,renderWhenCurrentElementIsVisible:s,triggerAdRenders:i,isMobile:c,isXLDesktop:u}},q5=At({__name:"Outbrain",props:{placement:{},widgetId:{},tilePosition:{default:-1},lazyRender:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1},adHeight:{default:"auto"},adWidth:{default:"auto"},adInstanceId:{default:""}},setup(e,{expose:t}){const n=pt.withTag("Outbrain:DXT-1780"),r=e;if(!r.placement||!r.widgetId)throw new Error(`Outbrain component requires placement and widgetId props- ${r.placement}`);const{outbrain:o}=W5(),{adClicked:s,renderWhenCurrentElementIsVisible:i}=G5(),{track:a}=Gs(),{callRenderResearchWidgets:l,triggerOutbrainRenderedEvent:c,generateExternalSecondaryId:u}=my(),f=ue(r.placement),d=RI("widgetWrapperEl"),p=ue(""),g=ue(!1),h=ue({"data-ob-portalUrl":"","data-ob-language":"en","data-widget-id":r.widgetId,"data-ob-installation-key":(o==null?void 0:o.installationKey)||"","data-external-id":"","data-external-secondary-id":"","data-render-registered":!1});h.value["data-ob-portalUrl"]=WC(),h.value["data-external-id"]=window.location.host,h.value["data-external-secondary-id"]=u();function y(N){var O;if(!N)return"";const I=[".ob-rec-source",".ob-source",".ob-author-name"];for(const U of I){const L=N.querySelector(U),G=(O=L==null?void 0:L.textContent)==null?void 0:O.trim();if(G)return G}return""}function m(){return{ntp_tile_position:r.tilePosition,ntp_ad_provider:"outbrain",ntp_creative_id:r.widgetId,ntp_placement_name:r.placement,ntp_ad_brand:p.value}}function b(){s(m(),r.widgetId)}function _(N){const I=N.querySelector("a");I&&!I.getAttribute("data-click-registered")&&(I.setAttribute("data-click-registered","true"),I.addEventListener("click",b))}function v(N){if(!N)return;N.querySelectorAll('a[data-click-registered="true"]').forEach(O=>{O.removeEventListener("click",b),O.removeAttribute("data-click-registered")})}async function S(N){var G,oe;await qn();const I=N.element,O=((oe=(G=I==null?void 0:I.parentElement)==null?void 0:G.parentElement)==null?void 0:oe.parentElement)||null;if(g.value){n.debug("[handleOutbrainRenderedEvent] Already tracked render - skipping",{placement:r.placement,widgetId:r.widgetId});return}const U=O==null?void 0:O.classList.contains(r.placement),L={placement:r.placement,placementClassName:f.value,widgetId:r.widgetId,hasElement:!!I,hasParentElement:!!O,parentElementTag:O==null?void 0:O.tagName,parentElementClasses:O?Array.from(O.classList):[],expectedClass:r.placement,hasExpectedClass:U,hasTrackedRender:g.value,widgetWrapperRefExists:!!d.value,widgetWrapperRefClasses:d.value?Array.from(d.value.classList):[],timestamp:Date.now()};if(n.debug("[handleOutbrainRenderedEvent] Render event fired",L),!O){let ce=0;if(I){let q=I;for(;q.parentElement&&ce<3;)q=q.parentElement,ce++}n.warn("[handleOutbrainRenderedEvent] No parent element - DOM not ready?",{placement:r.placement,hasElement:!!I,elementParentCount:ce});return}if(!U){n.warn("[handleOutbrainRenderedEvent] Class mismatch - event may be lost",{placement:r.placement,expectedClass:r.placement,placementClassName:f.value,parentElementClasses:Array.from(O.classList),widgetWrapperClasses:d.value?Array.from(d.value.classList):[]});return}if(O&&!g.value&&U){g.value=!0,n.debug("[handleOutbrainRenderedEvent] Processing render - tracking event",{placement:r.placement,widgetId:r.widgetId}),_(N.element);const ce=await new Promise(ne=>{const re=y(I);if(re)return ne(re);let Se=null;const lt=new MutationObserver(()=>{const We=y(I);We&&(be(),ne(We))}),be=()=>{lt.disconnect(),Se!==null&&clearTimeout(Se)};lt.observe(I,{childList:!0,subtree:!0}),Se=setTimeout(()=>{be(),ne(y(I))},1e3)});p.value=ce;const q=m();q.ntp_ad_brand||n.error("[handleOutbrainRenderedEvent] adBrand is still empty after MutationObserver timeout",{placement:r.placement,widgetId:r.widgetId,innerHTML:I==null?void 0:I.innerHTML.substring(0,500)}),a("NtpAd_Rendered",q),n.debug("[handleOutbrainRenderedEvent] Tracking NtpAd_Rendered",q)}}const E=ue(!1);async function x(){var I,O;if(E.value=!0,await qn(),!d.value||(I=d.value)!=null&&I.getAttribute("data-render-registered")){n.debug("[renderOutbrainAd] Early return",{placement:r.placement,hasWrapper:!!d.value,isAlreadyRegistered:(O=d.value)==null?void 0:O.getAttribute("data-render-registered")});return}const N=X5(r.placement,d.value);f.value=N>0?`${r.placement} ${r.placement}-${N}`:r.placement,d.value.setAttribute("data-render-registered","true");try{await l(),await c(r.widgetId,S),n.debug("[renderOutbrainAd] Triggering Outbrain rendered event",{widgetId:r.widgetId,placement:r.placement})}catch(U){const L=U instanceof Error?U.message:"Unknown error",G={...m(),ntp_error_message:L};a("NtpAd_Render_Failed",G),n.error("[renderOutbrainAd] Error rendering Outbrain ad",{placement:r.placement,widgetId:r.widgetId,error:U})}}return Rn(()=>{n.debug("[onMounted] Outbrain component mounted",{placement:r.placement,widgetId:r.widgetId,lazyRender:r.lazyRender,sticky:r.sticky,tilePosition:r.tilePosition,adInstanceId:r.adInstanceId}),i(d.value,r.lazyRender,r.sticky,x)}),Qs(()=>{d.value&&v(d.value)}),t({renderOutbrainAd:x,handleOutbrainRenderedEvent:S}),(N,I)=>(me(),_t("div",{ref_key:"widgetWrapperEl",ref:d,class:Qe(f.value)},[E.value?(me(),_t("div",an({key:0,class:["OUTBRAIN",f.value]},h.value),null,16)):Zt("",!0)],2))}}),Ha=pt.withTag("useOutbrainAds"),my=yd(()=>{const e=()=>Sl("head",{src:"https://widgets.outbrain.com/outbrain.js",key:"outbrain-homepage-header-script"},{id:"outbrain-homepage-header-script",type:"text/javascript",referrerpolicy:"no-referrer-when-downgrade",async:!0,"data-disableLocalStorageGdpr":"true",onload:()=>Ha.debug("Outbrain script loaded."),onerror:()=>Ha.error("Outbrain script failed to load.")}),t=async()=>{if(await e(),!window.OBR||!window.OBR.extern||typeof window.OBR.extern.researchWidget!="function"){Ha.warn("Outbrain research widget function not available after script load");return}window.OBR.extern.researchWidget()},n=async(s,i)=>{const a=Z5(s);if(!a.widgetId||!i)return;const l=`${a.placement}-fallback`;i.classList.remove(s),i.classList.add(l),i.innerHTML="";try{const{vueApp:c}=Ae(),u=Tt(q5,{...a,placement:l});u.appContext=c._context,aR(u,i),await t()}catch(c){Ha.error(`[Native-Fallback]: Error rendering fallback Outbrain ad component ${s}`,c)}},r=async(s,i)=>{await e(),window.OBREvents||(window.OBREvents=[],Ha.warn("Initialized empty OBREvents array after script load")),window.OBREvents.push({name:"rendered",widgetId:s,feedCards:1,callback:i})};function o(){var s;return typeof window>"u"||!((s=window.performance)!=null&&s.timing)?Math.floor(Math.random()*1e9).toFixed():((window.performance.timing.navigationStart+window.performance.now())*Math.random()*1e6).toFixed()}return{callRenderResearchWidgets:t,triggerOutbrainRenderedEvent:r,renderFallbackOutbrainAd:n,generateExternalSecondaryId:o}}),uc=pt.withTag("adFunctions");function zC(e){return e.replace(/__ayManagerEnv__.+$/,"")}function K5(e,t){const{track:n}=Gs();n("NtpAd_Rendered",{ntp_ad_brand:"programmatic",ntp_ad_provider:"programmatic",ntp_creative_id:t,ntp_placement_name:e,ntp_ad_refresh:!1})}function Y5(e){var o;const t=e.slot.getSlotElementId(),n=(o=document.getElementById(t))==null?void 0:o.parentElement,r=zC(t);if(!n){uc.error("Element not found for native ad fallback",r);return}if(e.isEmpty)try{const{renderFallbackOutbrainAd:s}=my();window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.destroy([t],{useInstanceCodes:!0})}),s(r,n);return}catch(s){uc.error("[Native-Fallback]: Error on Gtag slotRenderEnded listener for native ad fallback",s)}K5(r,e.slot.getAdUnitPath())}function Z5(e){var n,r;const t=(n=jr().adops)==null?void 0:n.placements;if(!t){uc.error("No outbrain widgets found");return}if(!t||!((r=t[e])!=null&&r.outbrain)){pt.error("No outbrain widget found for: ",e);return}return{...t[e].outbrain,fallback:!0,placement:e}}function X5(e,t){if(!t||!e)return uc.error("Element is null for placement:",e),0;const n=Array.from(document.querySelectorAll(`.${e}`)).filter(r=>r.hasAttribute("ad"));if(n.length>1&&t){const r=Array.from(n).findIndex(o=>o===t);if(r!==-1)return r}return 0}function k0(e,t=3e3){if(!e){uc.error("No element to handle sticky ad");return}e.classList.add("sticky"),e.classList.add("top-0"),e.classList.add("z-[1000]");let n;window.addEventListener("scroll",()=>{e.classList.contains("sticky")||clearTimeout(n),n=setTimeout(()=>{e.classList.remove("sticky"),e.classList.remove("top-0"),e.classList.remove("z-[1000]")},t)})}const C0=pt.withTag("plugins/assertive.client"),J5=Je({name:"assertive",dependsOn:["openfeature"],setup:async e=>{let t,n;const{client:r}=([t,n]=Xt(()=>ri()),t=await t,n(),t),{track:o}=Gs(),{ayEntityId:s}=it().public,i=r.getStringValue("splittestname","control"),a=r.getStringValue("layoutSkeleton","default"),l={ntp_app_version:$d(),host_browser_app_version:([t,n]=Xt(()=>hk()),t=await t,n(),t),type_tag:([t,n]=Xt(()=>BC()),t=await t,n(),t)},c=no.getContext(),u=([t,n]=Xt(()=>j5(s,l,i,a,typeof c.cohort=="string"?c.cohort:null)),t=await t,n(),t);if(!u.loading){C0.error("Assertive Yield SDK failed to load");return}C0.info("Assertive Yield loaded"),window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.onEvent("afterRefresh",f=>{f.forEach(d=>{const p={ntp_tile_position:-1,ntp_ad_provider:"programmatic",ntp_creative_id:"",ntp_placement_name:zC(d),ntp_ad_brand:"",ntp_ad_clickurl:"",ntp_ad_refresh:!0};o("NtpAd_Rendered",p)})})}),window.analytics||(window.analytics=Gs()),e.provide("ayLoaded",u),e.provide("assertive",window.assertive)}}),Q5=Je(e=>{e.vueApp.directive("click-outside",{beforeMount:(t,{value:n})=>{t.clickOutsideEvent=r=>{t===r.target||t.contains(r.target)||n()},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted:t=>{document.body.removeEventListener("click",t.clickOutsideEvent)}})});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:GC,setPrototypeOf:T0,isFrozen:eW,getPrototypeOf:tW,getOwnPropertyDescriptor:nW}=Object;let{freeze:Sn,seal:Yn,create:qC}=Object,{apply:$g,construct:Fg}=typeof Reflect<"u"&&Reflect;Sn||(Sn=function(t){return t});Yn||(Yn=function(t){return t});$g||($g=function(t,n,r){return t.apply(n,r)});Fg||(Fg=function(t,n){return new t(...n)});const du=Fn(Array.prototype.forEach),A0=Fn(Array.prototype.pop),Va=Fn(Array.prototype.push),Lu=Fn(String.prototype.toLowerCase),Hp=Fn(String.prototype.toString),I0=Fn(String.prototype.match),Wa=Fn(String.prototype.replace),rW=Fn(String.prototype.indexOf),oW=Fn(String.prototype.trim),Qn=Fn(Object.prototype.hasOwnProperty),dn=Fn(RegExp.prototype.test),za=sW(TypeError);function Fn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Lu;T0&&T0(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(eW(t)||(t[r]=s),o=s)}e[o]=!0}return e}function iW(e){for(let t=0;t/gm),fW=Yn(/\${[\w\W]*}/gm),dW=Yn(/^data-[\-\w.\u00B7-\uFFFF]/),pW=Yn(/^aria-[\-\w]+$/),KC=Yn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hW=Yn(/^(?:\w+script|data):/i),gW=Yn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YC=Yn(/^html$/i),mW=Yn(/^[a-z][.\w]*(-[.\w]+)+$/i);var N0=Object.freeze({__proto__:null,ARIA_ATTR:pW,ATTR_WHITESPACE:gW,CUSTOM_ELEMENT:mW,DATA_ATTR:dW,DOCTYPE_NAME:YC,ERB_EXPR:uW,IS_ALLOWED_URI:KC,IS_SCRIPT_OR_DATA:hW,MUSTACHE_EXPR:cW,TMPLIT_EXPR:fW});const qa={element:1,text:3,progressingInstruction:7,comment:8,document:9},yW=function(){return typeof window>"u"?null:window},_W=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},M0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ZC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yW();const t=ge=>ZC(ge);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==qa.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=e,g=l.prototype,h=Ga(g,"cloneNode"),y=Ga(g,"remove"),m=Ga(g,"nextSibling"),b=Ga(g,"childNodes"),_=Ga(g,"parentNode");if(typeof i=="function"){const ge=n.createElement("template");ge.content&&ge.content.ownerDocument&&(n=ge.content.ownerDocument)}let v,S="";const{implementation:E,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:I}=n,{importNode:O}=r;let U=M0();t.isSupported=typeof GC=="function"&&typeof _=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:G,TMPLIT_EXPR:oe,DATA_ATTR:ce,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Se}=N0;let{IS_ALLOWED_URI:lt}=N0,be=null;const We=Ne({},[...O0,...Vp,...Wp,...zp,...R0]);let je=null;const tn=Ne({},[...L0,...Gp,...P0,...pu]);let ze=Object.seal(qC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ht=null,W=null,Q=!0,X=!0,ie=!1,te=!0,we=!1,C=!0,A=!1,$=!1,B=!1,H=!1,k=!1,T=!1,D=!0,j=!1;const z="user-content-";let K=!0,P=!1,F={},ee=null;const de=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Le=null;const Pe=Ne({},["audio","video","img","source","image","track"]);let gt=null;const Ct=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",un="http://www.w3.org/1999/xhtml";let Br=un,qt=!1,En=null;const Pc=Ne({},[Gt,Ht,un],Hp);let Nc=Ne({},["mi","mo","mn","ms","mtext"]),Mc=Ne({},["annotation-xml"]);const AA=Ne({},["title","style","font","a","script"]);let xa=null;const IA=["application/xhtml+xml","text/html"],OA="text/html";let Vt=null,ai=null;const RA=n.createElement("form"),By=function(M){return M instanceof RegExp||M instanceof Function},qd=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ai&&ai===M)){if((!M||typeof M!="object")&&(M={}),M=ms(M),xa=IA.indexOf(M.PARSER_MEDIA_TYPE)===-1?OA:M.PARSER_MEDIA_TYPE,Vt=xa==="application/xhtml+xml"?Hp:Lu,be=Qn(M,"ALLOWED_TAGS")?Ne({},M.ALLOWED_TAGS,Vt):We,je=Qn(M,"ALLOWED_ATTR")?Ne({},M.ALLOWED_ATTR,Vt):tn,En=Qn(M,"ALLOWED_NAMESPACES")?Ne({},M.ALLOWED_NAMESPACES,Hp):Pc,gt=Qn(M,"ADD_URI_SAFE_ATTR")?Ne(ms(Ct),M.ADD_URI_SAFE_ATTR,Vt):Ct,Le=Qn(M,"ADD_DATA_URI_TAGS")?Ne(ms(Pe),M.ADD_DATA_URI_TAGS,Vt):Pe,ee=Qn(M,"FORBID_CONTENTS")?Ne({},M.FORBID_CONTENTS,Vt):de,ht=Qn(M,"FORBID_TAGS")?Ne({},M.FORBID_TAGS,Vt):{},W=Qn(M,"FORBID_ATTR")?Ne({},M.FORBID_ATTR,Vt):{},F=Qn(M,"USE_PROFILES")?M.USE_PROFILES:!1,Q=M.ALLOW_ARIA_ATTR!==!1,X=M.ALLOW_DATA_ATTR!==!1,ie=M.ALLOW_UNKNOWN_PROTOCOLS||!1,te=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=M.SAFE_FOR_TEMPLATES||!1,C=M.SAFE_FOR_XML!==!1,A=M.WHOLE_DOCUMENT||!1,H=M.RETURN_DOM||!1,k=M.RETURN_DOM_FRAGMENT||!1,T=M.RETURN_TRUSTED_TYPE||!1,B=M.FORCE_BODY||!1,D=M.SANITIZE_DOM!==!1,j=M.SANITIZE_NAMED_PROPS||!1,K=M.KEEP_CONTENT!==!1,P=M.IN_PLACE||!1,lt=M.ALLOWED_URI_REGEXP||KC,Br=M.NAMESPACE||un,Nc=M.MATHML_TEXT_INTEGRATION_POINTS||Nc,Mc=M.HTML_INTEGRATION_POINTS||Mc,ze=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&By(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&By(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(X=!1),k&&(H=!0),F&&(be=Ne({},R0),je=[],F.html===!0&&(Ne(be,O0),Ne(je,L0)),F.svg===!0&&(Ne(be,Vp),Ne(je,Gp),Ne(je,pu)),F.svgFilters===!0&&(Ne(be,Wp),Ne(je,Gp),Ne(je,pu)),F.mathMl===!0&&(Ne(be,zp),Ne(je,P0),Ne(je,pu))),M.ADD_TAGS&&(be===We&&(be=ms(be)),Ne(be,M.ADD_TAGS,Vt)),M.ADD_ATTR&&(je===tn&&(je=ms(je)),Ne(je,M.ADD_ATTR,Vt)),M.ADD_URI_SAFE_ATTR&&Ne(gt,M.ADD_URI_SAFE_ATTR,Vt),M.FORBID_CONTENTS&&(ee===de&&(ee=ms(ee)),Ne(ee,M.FORBID_CONTENTS,Vt)),K&&(be["#text"]=!0),A&&Ne(be,["html","head","body"]),be.table&&(Ne(be,["tbody"]),delete ht.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=_W(p,o)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Sn&&Sn(M),ai=M}},Hy=Ne({},[...Vp,...Wp,...aW]),Vy=Ne({},[...zp,...lW]),LA=function(M){let Z=_(M);(!Z||!Z.tagName)&&(Z={namespaceURI:Br,tagName:"template"});const fe=Lu(M.tagName),mt=Lu(Z.tagName);return En[M.namespaceURI]?M.namespaceURI===Ht?Z.namespaceURI===un?fe==="svg":Z.namespaceURI===Gt?fe==="svg"&&(mt==="annotation-xml"||Nc[mt]):!!Hy[fe]:M.namespaceURI===Gt?Z.namespaceURI===un?fe==="math":Z.namespaceURI===Ht?fe==="math"&&Mc[mt]:!!Vy[fe]:M.namespaceURI===un?Z.namespaceURI===Ht&&!Mc[mt]||Z.namespaceURI===Gt&&!Nc[mt]?!1:!Vy[fe]&&(AA[fe]||!Hy[fe]):!!(xa==="application/xhtml+xml"&&En[M.namespaceURI]):!1},wr=function(M){Va(t.removed,{element:M});try{_(M).removeChild(M)}catch{y(M)}},Dc=function(M,Z){try{Va(t.removed,{attribute:Z.getAttributeNode(M),from:Z})}catch{Va(t.removed,{attribute:null,from:Z})}if(Z.removeAttribute(M),M==="is")if(H||k)try{wr(Z)}catch{}else try{Z.setAttribute(M,"")}catch{}},Wy=function(M){let Z=null,fe=null;if(B)M=""+M;else{const Kt=I0(M,/^[\r\n\t ]+/);fe=Kt&&Kt[0]}xa==="application/xhtml+xml"&&Br===un&&(M=''+M+"");const mt=v?v.createHTML(M):M;if(Br===un)try{Z=new d().parseFromString(mt,xa)}catch{}if(!Z||!Z.documentElement){Z=E.createDocument(Br,"template",null);try{Z.documentElement.innerHTML=qt?S:mt}catch{}}const nn=Z.body||Z.documentElement;return M&&fe&&nn.insertBefore(n.createTextNode(fe),nn.childNodes[0]||null),Br===un?I.call(Z,A?"html":"body")[0]:A?Z.documentElement:nn},zy=function(M){return x.call(M.ownerDocument||M,M,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Gy=function(M){return M instanceof f&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof u)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},qy=function(M){return typeof a=="function"&&M instanceof a};function Hr(ge,M,Z){du(ge,fe=>{fe.call(t,M,Z,ai)})}const Ky=function(M){let Z=null;if(Hr(U.beforeSanitizeElements,M,null),Gy(M))return wr(M),!0;const fe=Vt(M.nodeName);if(Hr(U.uponSanitizeElement,M,{tagName:fe,allowedTags:be}),M.hasChildNodes()&&!qy(M.firstElementChild)&&dn(/<[/\w]/g,M.innerHTML)&&dn(/<[/\w]/g,M.textContent)||M.nodeType===qa.progressingInstruction||C&&M.nodeType===qa.comment&&dn(/<[/\w]/g,M.data))return wr(M),!0;if(!be[fe]||ht[fe]){if(!ht[fe]&&Zy(fe)&&(ze.tagNameCheck instanceof RegExp&&dn(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe)))return!1;if(K&&!ee[fe]){const mt=_(M)||M.parentNode,nn=b(M)||M.childNodes;if(nn&&mt){const Kt=nn.length;for(let xn=Kt-1;xn>=0;--xn){const Sr=h(nn[xn],!0);Sr.__removalCount=(M.__removalCount||0)+1,mt.insertBefore(Sr,m(M))}}}return wr(M),!0}return M instanceof l&&!LA(M)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&dn(/<\/no(script|embed|frames)/i,M.innerHTML)?(wr(M),!0):(we&&M.nodeType===qa.text&&(Z=M.textContent,du([L,G,oe],mt=>{Z=Wa(Z,mt," ")}),M.textContent!==Z&&(Va(t.removed,{element:M.cloneNode()}),M.textContent=Z)),Hr(U.afterSanitizeElements,M,null),!1)},Yy=function(M,Z,fe){if(D&&(Z==="id"||Z==="name")&&(fe in n||fe in RA))return!1;if(!(X&&!W[Z]&&dn(ce,Z))){if(!(Q&&dn(q,Z))){if(!je[Z]||W[Z]){if(!(Zy(M)&&(ze.tagNameCheck instanceof RegExp&&dn(ze.tagNameCheck,M)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(M))&&(ze.attributeNameCheck instanceof RegExp&&dn(ze.attributeNameCheck,Z)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(Z))||Z==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&dn(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe))))return!1}else if(!gt[Z]){if(!dn(lt,Wa(fe,re,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&M!=="script"&&rW(fe,"data:")===0&&Le[M])){if(!(ie&&!dn(ne,Wa(fe,re,"")))){if(fe)return!1}}}}}}return!0},Zy=function(M){return M!=="annotation-xml"&&I0(M,Se)},Xy=function(M){Hr(U.beforeSanitizeAttributes,M,null);const{attributes:Z}=M;if(!Z)return;const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let mt=Z.length;for(;mt--;){const nn=Z[mt],{name:Kt,namespaceURI:xn,value:Sr}=nn,ka=Vt(Kt);let fn=Kt==="value"?Sr:oW(Sr);if(fe.attrName=ka,fe.attrValue=fn,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Hr(U.uponSanitizeAttribute,M,fe),fn=fe.attrValue,j&&(ka==="id"||ka==="name")&&(Dc(Kt,M),fn=z+fn),C&&dn(/((--!?|])>)|<\/(style|title)/i,fn)){Dc(Kt,M);continue}if(fe.forceKeepAttr||(Dc(Kt,M),!fe.keepAttr))continue;if(!te&&dn(/\/>/i,fn)){Dc(Kt,M);continue}we&&du([L,G,oe],Qy=>{fn=Wa(fn,Qy," ")});const Jy=Vt(M.nodeName);if(Yy(Jy,ka,fn)){if(v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!xn)switch(p.getAttributeType(Jy,ka)){case"TrustedHTML":{fn=v.createHTML(fn);break}case"TrustedScriptURL":{fn=v.createScriptURL(fn);break}}try{xn?M.setAttributeNS(xn,Kt,fn):M.setAttribute(Kt,fn),Gy(M)?wr(M):A0(t.removed)}catch{}}}Hr(U.afterSanitizeAttributes,M,null)},PA=function ge(M){let Z=null;const fe=zy(M);for(Hr(U.beforeSanitizeShadowDOM,M,null);Z=fe.nextNode();)Hr(U.uponSanitizeShadowNode,Z,null),!Ky(Z)&&(Z.content instanceof s&&ge(Z.content),Xy(Z));Hr(U.afterSanitizeShadowDOM,M,null)};return t.sanitize=function(ge){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,fe=null,mt=null,nn=null;if(qt=!ge,qt&&(ge=""),typeof ge!="string"&&!qy(ge))if(typeof ge.toString=="function"){if(ge=ge.toString(),typeof ge!="string")throw za("dirty is not a string, aborting")}else throw za("toString is not a function");if(!t.isSupported)return ge;if($||qd(M),t.removed=[],typeof ge=="string"&&(P=!1),P){if(ge.nodeName){const Sr=Vt(ge.nodeName);if(!be[Sr]||ht[Sr])throw za("root node is forbidden and cannot be sanitized in-place")}}else if(ge instanceof a)Z=Wy(""),fe=Z.ownerDocument.importNode(ge,!0),fe.nodeType===qa.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Z=fe:Z.appendChild(fe);else{if(!H&&!we&&!A&&ge.indexOf("<")===-1)return v&&T?v.createHTML(ge):ge;if(Z=Wy(ge),!Z)return H?null:T?S:""}Z&&B&&wr(Z.firstChild);const Kt=zy(P?ge:Z);for(;mt=Kt.nextNode();)Ky(mt)||(mt.content instanceof s&&PA(mt.content),Xy(mt));if(P)return ge;if(H){if(k)for(nn=N.call(Z.ownerDocument);Z.firstChild;)nn.appendChild(Z.firstChild);else nn=Z;return(je.shadowroot||je.shadowrootmode)&&(nn=O.call(r,nn,!0)),nn}let xn=A?Z.outerHTML:Z.innerHTML;return A&&be["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&dn(YC,Z.ownerDocument.doctype.name)&&(xn=" `+xn),we&&du([L,G,oe],Sr=>{xn=Wa(xn,Sr," ")}),v&&T?v.createHTML(xn):xn},t.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qd(ge),$=!0},t.clearConfig=function(){ai=null,$=!1},t.isValidAttribute=function(ge,M,Z){ai||qd({});const fe=Vt(ge),mt=Vt(M);return Yy(fe,mt,Z)},t.addHook=function(ge,M){typeof M=="function"&&Va(U[ge],M)},t.removeHook=function(ge){return A0(U[ge])},t.removeHooks=function(ge){U[ge]=[]},t.removeAllHooks=function(){U=M0()},t}var vW=ZC();function bW(e,t){const n=e.hooks??{};let r;for(r in n){const o=n[r];o!==void 0&&t.addHook(r,o)}}function XC(){return vW()}function wW(e={},t=XC){const n=t();bW(e,n);const r=function(o,s){const i=s.value;if(s.oldValue===i)return;const a=`${i}`,l=s.arg,c=e.namedConfigurations,u=e.default??{};if(c&&l!==void 0){o.innerHTML=n.sanitize(a,c[l]??u);return}o.innerHTML=n.sanitize(a,u)};return{mounted:r,updated:r}}const SW={install(e,t={},n=XC){e.directive("dompurify-html",wW(t,n))}},EW=Je(e=>{e.vueApp.use(SW)});function xW(e){window[`ga-disable-${e}`]=!0}function kW(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function CW(){const e=it().public.gtag,t=nx(e);let n;n=Cu;const r=a=>{const l=[...t];let c=l.find(u=>u.id===a);return c||(a?(c={id:a},l.unshift(c)):c=l[0]),c||console.error("[nuxt-gtag] Missing Google tag ID"),{tag:c,tags:l}},o=a=>{{const{tag:l,tags:c}=r(a);if(!l)return;window.dataLayer||tx({tags:c}),document.head.querySelector("script[data-gtag]")||Fs({script:[{src:Ml(e.url,{id:l.id}),"data-gtag":""}]})}};function s(a){{const{tag:l}=r(a);l&&xW(l.id)}}function i(a){{const{tag:l}=r(a);l&&kW(l.id)}}return{gtag:n,initialize:o,disableAnalytics:s,enableAnalytics:i}}const qp=pt.withTag("plugins:google-tag-manager"),TW=Je(async e=>{let t,n;const{googleTagManagerId:r,redesignedNtpPaths:o}=jr(),{gtag:s,initialize:i}=CW(),a=ti(),{client:l}=([t,n]=Xt(()=>ri()),t=await t,n(),t);if(!r){qp.warn("Google Tag Manager: Gtag ID not available in app config");return}i(r),o.includes(a.path)||(s("js",new Date),s("config","UA-62117061-22")),e.hook("app:mounted",()=>{try{window.googletag=window.googletag||{cmd:[]};const c="nofallback"in a.query;window.googletag.cmd.push(()=>{if(!window.googletag.pubads||c){qp.error("addEventListener: Gtag pubads not found");return}window.googletag.pubads().addEventListener("slotRenderEnded",Y5);const u=uB(Mk);window.googletag.setConfig({targeting:{page_type:gy(),split_test_name:l.getStringValue("splittestname","default"),ntp_cohort:u}})})}catch(c){qp.error("Error mounting event listeners for native fallback",c)}})}),AW=e=>{e!==void 0&&setTimeout(e,100)},IW=Je(e=>{const t=n=>{(document==null?void 0:document.visibilityState)==="visible"&&n.focus()};e.vueApp.directive("autofocus-on-document-visible",{mounted:(n,r)=>{n._visibilityChangeEvent=()=>t(n),document.addEventListener("visibilitychange",n._visibilityChangeEvent),AW(r==null?void 0:r.value),n.focus()},unmounted:n=>{document.removeEventListener("visibilitychange",n._visibilityChangeEvent),delete n._visibilityChangeEvent}})});function OW(e,t,n){return(e=(t.split?t.split("."):t).reduce(function(r,o){return r&&r[o]},e))===void 0?n:e}function D0(e,t,n,r){return(t=t.split?t.split("."):t.slice(0)).slice(0,-1).reduce(function(o,s){return/^(__proto__|constructor|prototype)$/.test(s)?{}:o[s]=o[s]||{}},e)[t.pop()]=n,e}function $0(e,t){return e??t}function kr(e,t,n,r){return $0($0(n[t],r[t]),e)}function RW(e){const t=e||{};function n(r){const o=function(){try{return r.options.persistedState||{}}catch{return{}}}();if(kr(!0,"persist",o,t)===!1)return;const s=kr(r.store.$id,"key",o,{}),i=kr(!1,"overwrite",o,t),a=kr(function(){try{return window.localStorage}catch{return{getItem:function(){},setItem:function(){},removeItem:function(){}}}}(),"storage",o,t),l=kr(function(){return!0},"filter",o,t),c=kr(JSON.stringify,"serialize",o,t),u=kr(JSON.parse,"deserialize",o,t),f=kr(function(v){return v},"migrate",o,{}),d=kr(function(v,S){return S},"merge",o,{}),p=kr(function(v){const S="@@",E=v.setItem(S,"1"),x=function(){v.removeItem(S)};E instanceof Promise?E.then(x):x()},"assertStorage",o,t);function g(v){(o.beforeHydrate||function(){})(r.store.$state);const S=d(r.store.$state,v);i?r.store.$patch(E=>{Object.keys(E).forEach(x=>{E[x]=S[x]})}):r.store.$patch(S),y()}function h(v){if(v!=null){const S=u(v),E=f(S);E instanceof Promise?E.then(g):g(E)}else y()}let y;const m=new Promise(function(v){y=v});let b=0;r.store.$persistedState={isReady:function(){return m},pending:!1};try{_()}catch{y()}function _(){const v=a.getItem(s);v instanceof Promise?v.then(h):h(v)}r.store.$subscribe(function(v,S){if(l(v,S)===!1)return;Array.isArray(o.includePaths)&&(S=o.includePaths.reduce(function(N,I){return D0(N,I,OW(S,I,void 0))},{})),Array.isArray(o.excludePaths)&&(S=u(c(S)),o.excludePaths.forEach(function(N){return D0(S,N,void 0)},{}));const E=c(S),x=a.setItem(s,E);x instanceof Promise&&(++b,r.store.$persistedState.pending=b!==0,x.catch(function(){}).finally(function(){--b,r.store.$persistedState.pending=b!==0}))})}return n}const LW=Je(e=>{e.$pinia.use(RW({persist:!1}))}),PW=Je({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),NW=[xL,IL,XP,QP,eN,tN,rN,PN,FN,UN,jN,GM,SD,xD,eF,rF,sB,iB,lB,$5,F5,U5,J5,Q5,EW,TW,IW,LW,PW],JC=(e="RouteProvider")=>At({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,o={};for(const s in t.route)Object.defineProperty(o,s,{get:()=>n===t.renderKey?t.route[s]:r[s],enumerable:!0});return Is(_c,ro(o)),()=>Tt(t.vnode,{ref:t.vnodeRef})}}),MW=JC(),F0=new WeakMap,DW=At({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const o=Ae(),s=ue(),i=Ut(_c,null);let a;r({pageRef:s});const l=Ut(T1,null);let c;const u=o.deferHydration();if(o.isHydrating){const d=o.hooks.hookOnce("app:error",u);Bt().beforeEach(d)}e.pageKey&&Oe(()=>e.pageKey,(d,p)=>{d!==p&&o.callHook("page:loading:start")});let f=!1;{const d=Bt().beforeResolve(()=>{f=!1});ga(()=>{d()})}return()=>Tt(qE,{name:e.name,route:e.route,...t},{default:d=>{const p=FW(i,d.route,d.Component),g=i&&i.matched.length===d.route.matched.length;if(!d.Component){if(c&&!g)return c;u();return}if(c&&l&&!l.isCurrent(d.route))return c;if(p&&i&&(!l||l!=null&&l.isCurrent(i)))return g?c:null;const h=Zh(d,e.pageKey),y=UW(i,d.route,d.Component);!o.isHydrating&&a===h&&!y&&(o.callHook("page:loading:end"),f=!0),a=h;const m=!!(e.transition??d.route.meta.pageTransition??Fh),b=m&&$W([e.transition,d.route.meta.pageTransition,Fh,{onAfterLeave:()=>{o.callHook("page:transition:finish",d.Component)}}]),_=e.keepalive??d.route.meta.keepalive??p1;return c=BP(m&&b,DP(_,Tt(US,{suspensible:!0,onPending:()=>o.callHook("page:start",d.Component),onResolve:()=>{qn(()=>o.callHook("page:finish",d.Component).then(()=>{if(!f&&!y)return f=!0,o.callHook("page:loading:end")}).finally(u))}},{default:()=>{const v={key:h||void 0,vnode:n.default?jW(n.default,d):d.Component,route:d.route,renderKey:h||void 0,trackRootNodes:m,vnodeRef:s};if(!_)return Tt(MW,v);const S=d.Component.type,E=S;let x=F0.get(E);return x||(x=JC(S.name||S.__name),F0.set(E,x)),Tt(x,v)}}))).default(),c}})}});function $W(e){const t=e.filter(Boolean).map(n=>({...n,onAfterLeave:n.onAfterLeave?Tm(n.onAfterLeave):void 0}));return vE(...t)}function FW(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Zh({route:t,Component:n})!==Zh({route:e,Component:n})}function UW(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)}){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function WW(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const zW=/(-?[0-9.]*[0-9]+[0-9.]*)/g,GW=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function U0(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(zW);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=GW.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function qW(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function KW(e,t){return e?""+e+""+t:t}function YW(e,t,n){const r=qW(e);return KW(r.defs,t+r.content+n)}const ZW=e=>e==="unset"||e==="undefined"||e==="none";function XW(e,t){const n={...yy,...e},r={...nT,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(h=>{const y=[],m=h.hFlip,b=h.vFlip;let _=h.rotate;m?b?_+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):b&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let v;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:v=o.height/2+o.top,y.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,y.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}_%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),y.length&&(s=YW(s,'',""))});const i=r.width,a=r.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=U0(f,l/c)):(u=i==="auto"?l:i,f=a===null?U0(u,c/l):a==="auto"?c:a);const d={},p=(h,y)=>{ZW(y)||(d[h]=y.toString())};p("width",u),p("height",f);const g=[o.left,o.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const JW=/\sid="(\S+)"/g,QW="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let e2=0;function t2(e,t=QW){const n=[];let r;for(;r=JW.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(e2++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function n2(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function r2(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function o2(e){return"data:image/svg+xml,"+r2(e)}function s2(e){return'url("'+o2(e)+'")'}const j0={...nT,inline:!1},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},a2={display:"inline-block"},Ug={backgroundColor:"currentColor"},rT={backgroundColor:"transparent"},B0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},H0={webkitMask:Ug,mask:Ug,background:rT};for(const e in H0){const t=H0[e];for(const n in B0)t[e+n]=B0[n]}const Pu={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Pu[e+"-flip"]=t,Pu[e.slice(0,1)+"-flip"]=t,Pu[e+"Flip"]=t});function V0(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const l2=(e,t)=>{const n=BW(j0,t),r={...i2},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const y=t[h];if(y!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&VW(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[h]=WW(y):typeof y=="number"&&(n[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const m=Pu[h];m?(y===!0||y==="true"||y===1)&&(n[m]=!0):j0[h]===void 0&&(r[h]=y)}}}const l=XW(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...a},Object.assign(r,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=t2(l.body,y?()=>y+"ID"+h++:"iconifyVue"),Tt("svg",r)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=n2(u,{...c,width:f+"",height:d+""});return r.style={...s,"--svg":s2(g),width:V0(c.width),height:V0(c.height),...a2,...p?Ug:rT,...a},Tt("span",r)},c2=Object.create(null),u2=At({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?c2[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:l2({...yy,...n},e)}}),El=/^[a-z0-9]+(-[a-z0-9]+)*$/,Fd=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Nu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Nu(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Nu(a,n)?null:a}return null},Nu=(e,t)=>e?!!((e.provider===""||e.provider.match(El))&&(t&&e.prefix===""||e.prefix.match(El))&&e.name.match(El)):!1,oT=Object.freeze({left:0,top:0,width:16,height:16}),Uf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_y=Object.freeze({...oT,...Uf}),jg=Object.freeze({..._y,body:"",hidden:!1});function f2(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function W0(e,t){const n=f2(e,t);for(const r in jg)r in Uf?r in e&&!(r in n)&&(n[r]=Uf[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function d2(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function p2(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=W0(r[a]||o[a],s)}return i(t),n.forEach(i),W0(e,s)}function sT(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=d2(e);for(const o in r){const s=r[o];s&&(t(o,p2(e,o,s)),n.push(o))}return n}const h2={provider:"",aliases:{},not_found:{},...oT};function Kp(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function iT(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Kp(e,h2))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(El)||typeof s.body!="string"||!Kp(s,jg))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(El)||typeof i!="string"||!n[i]&&!r[i]||!Kp(s,jg))return null}return t}const z0=Object.create(null);function g2(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function qs(e,t){const n=z0[e]||(z0[e]=Object.create(null));return n[t]||(n[t]=g2(e,t))}function vy(e,t){return iT(t)?sT(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function m2(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let fc=!1;function aT(e){return typeof e=="boolean"&&(fc=e),fc}function y2(e){const t=typeof e=="string"?Fd(e,!0,fc):e;if(t){const n=qs(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function _2(e,t){const n=Fd(e,!0,fc);if(!n)return!1;const r=qs(n.provider,n.prefix);return m2(r,n.name,t)}function v2(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),fc&&!t&&!e.prefix){let o=!1;return iT(e)&&(e.prefix="",sT(e,(s,i)=>{i&&_2(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Nu({provider:t,prefix:n,name:"a"}))return!1;const r=qs(t,n);return!!vy(r,e)}const b2=Object.freeze({width:null,height:null}),w2=Object.freeze({...b2,...Uf});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Bg=Object.create(null);function S2(e,t){Bg[e]=t}function Hg(e){return Bg[e]||Bg[""]}function by(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const wy=Object.create(null),Ka=["https://api.simplesvg.com","https://api.unisvg.com"],Mu=[];for(;Ka.length>0;)Ka.length===1||Math.random()>.5?Mu.push(Ka.shift()):Mu.push(Ka.pop());wy[""]=by({resources:["https://api.iconify.design"].concat(Mu)});function Vg(e,t){const n=by(t);return n===null?!1:(wy[e]=n,!0)}function Sy(e){return wy[e]}const E2=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let G0=E2();function x2(e,t){const n=Sy(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function k2(e){return e===404}const C2=(e,t,n)=>{const r=[],o=x2(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function T2(e){if(typeof e=="string"){const t=Sy(e);if(t)return t.path}return"/"}const A2=(e,t,n)=>{if(!G0){n("abort",424);return}let r=T2(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;G0(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(k2(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},I2={prepare:C2,send:A2};function O2(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,l=n[s]||(n[s]=Object.create(null)),c=l[i]||(l[i]=qs(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function lT(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function R2(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:r,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||lT([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let L2=0;function P2(e,t,n){const r=L2++,o=lT.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function N2(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?Fd(o,t,n):o;s&&r.push(s)}),r}var M2={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function D2(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const x=Math.floor(Math.random()*E.length);i.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}i=i.concat(E)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function y(E,x){x&&(p=[]),typeof E=="function"&&p.push(E)}function m(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:h}}function b(){l="failed",p.forEach(E=>{E(void 0,u)})}function _(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function v(E,x,N){const I=x!=="success";switch(d=d.filter(O=>O!==E),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=N,b();return}if(I){u=N,d.length||(i.length?S():b());return}if(g(),_(),!e.random){const O=e.resources.indexOf(E.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",p.forEach(O=>{O(N)})}function S(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:E,callback:(N,I)=>{v(x,N,I)}};d.push(x),c++,f=setTimeout(S,e.rotate),n(E,t,x.callback)}return setTimeout(S),m}function cT(e){const t={...M2,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const u=D2(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function s(a){return n.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function q0(){}const Yp=Object.create(null);function $2(e){if(!Yp[e]){const t=Sy(e);if(!t)return;const n=cT(t),r={config:t,redundancy:n};Yp[e]=r}return Yp[e]}function F2(e,t,n){let r,o;if(typeof e=="string"){const s=Hg(e);if(!s)return n(void 0,424),q0;o=s.send;const i=$2(e);i&&(r=i.redundancy)}else{const s=by(e);if(s){r=cT(s);const i=e.resources?e.resources[0]:"",a=Hg(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),q0):r.query(t,o,n)().abort}const K0="iconify2",dc="iconify",uT=dc+"-count",Y0=dc+"-version",fT=36e5,U2=168,j2=50;function Wg(e,t){try{return e.getItem(t)}catch{}}function Ey(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Z0(e,t){try{e.removeItem(t)}catch{}}function zg(e,t){return Ey(e,uT,t.toString())}function Gg(e){return parseInt(Wg(e,uT))||0}const Ud={local:!0,session:!0},dT={local:new Set,session:new Set};let xy=!1;function B2(e){xy=e}let hu=typeof window>"u"?{}:window;function pT(e){const t=e+"Storage";try{if(hu&&hu[t]&&typeof hu[t].length=="number")return hu[t]}catch{}Ud[e]=!1}function hT(e,t){const n=pT(e);if(!n)return;const r=Wg(n,Y0);if(r!==K0){if(r){const a=Gg(n);for(let l=0;l{const l=dc+a.toString(),c=Wg(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Z0(n,l)}};let i=Gg(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,zg(n,i)):dT[e].add(a))}function gT(){if(!xy){B2(!0);for(const e in Ud)hT(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=qs(r,o);if(!vy(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function H2(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Ud)hT(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function V2(e,t){xy||gT();function n(r){let o;if(!Ud[r]||!(o=pT(r)))return;const s=dT[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Gg(o),i>=j2||!zg(o,i+1))return;const a={cached:Math.floor(Date.now()/fT),provider:e.provider,data:t};return Ey(o,dc+i.toString(),JSON.stringify(a))}t.lastModified&&!H2(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function X0(){}function W2(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,R2(e)}))}function z2(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Hg(n)))return;s.prepare(n,r,o).forEach(a=>{F2(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=vy(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),V2(e,l)}catch(c){console.error(c)}W2(e)})})}))}const G2=(e,t)=>{const n=N2(e,!0,aT()),r=O2(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,X0)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(qs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=qs(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&z2(l,o[c][u])}),t?P2(t,r,s):X0},q2=e=>new Promise((t,n)=>{const r=typeof e=="string"?Fd(e,!0):e;if(!r){n(e);return}G2([r||e],o=>{if(o.length&&r){const s=y2(r);if(s){t({..._y,...s});return}}n(e)})});({...w2});const J0={backgroundColor:"currentColor"},K2={backgroundColor:"transparent"},Q0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ew={webkitMask:J0,mask:J0,background:K2};for(const e in ew){const t=ew[e];for(const n in Q0)t[e+n]=Q0[n]}const Zp={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Zp[e+"-flip"]=t,Zp[e.slice(0,1)+"-flip"]=t,Zp[e+"Flip"]=t});aT(!0);S2("",I2);if(typeof document<"u"&&typeof window<"u"){gT();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!v2(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Vg(n,o)||console.error(r)}catch{console.error(r)}}}}({..._y});const Y2=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","bitcoin-icons","entypo-social","token-branded","devicon-plain","grommet-icons","fluent-color","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","vscode-icons","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","rivet-icons","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","lucide-lab","teenyicons","ant-design","gravity-ui","akar-icons","lets-icons","streamline","fa6-brands","file-icons","catppuccin","game-icons","foundation","fa-regular","mono-icons","hugeicons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","duo-icons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","flowbite","proicons","marketeq","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","codicon","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","lsicon","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","cuida","quill","logos","token","covid","maki","weui","gala","mage","ooui","noto","flag","unjs","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","oui","bxl","cib","cbi","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","f7","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function Z2(e=""){let t,n="";if(e[0]==="@"&&e.includes(":")&&(n=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const r of Y2)if(e.startsWith(r)){t=r,e=e.slice(r.length+1);break}}else if(e.includes(":")){const[r,o]=e.split(":");t=r,e=o}return{provider:n,prefix:t||"",name:e||""}}const X2=At({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=Ae(),o=jr(),s=e;Oe(()=>{var y;return(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions},()=>{var y,m,b,_,v,S;if((m=(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions)!=null&&m.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((_=(b=o.nuxtIcon)==null?void 0:b.iconifyApiOptions)!=null&&_.publicApiFallback){Vg("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}Vg("",{resources:[(S=o.nuxtIcon)==null?void 0:S.iconifyApiOptions.url]})}},{immediate:!0});const i=ni("icons",()=>({})),a=ue(!1),l=J(()=>{var y,m;return(m=(y=o.nuxtIcon)==null?void 0:y.aliases)!=null&&m[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),c=J(()=>Z2(l.value)),u=J(()=>[c.value.provider,c.value.prefix,c.value.name].filter(Boolean).join(":")),f=J(()=>{var y;return(y=i.value)==null?void 0:y[u.value]}),d=J(()=>{var y;return(y=r.vueApp)==null?void 0:y.component(l.value)}),p=J(()=>{var m,b,_;if(!s.size&&typeof((m=o.nuxtIcon)==null?void 0:m.size)=="boolean"&&!((b=o.nuxtIcon)!=null&&b.size))return;const y=s.size||((_=o.nuxtIcon)==null?void 0:_.size)||"1em";return String(Number(y))===y?`${y}px`:y}),g=J(()=>{var y;return((y=o==null?void 0:o.nuxtIcon)==null?void 0:y.class)??"icon"});async function h(){var y;d.value||(y=i.value)!=null&&y[u.value]||(a.value=!0,i.value[u.value]=await q2(c.value).catch(()=>{}),a.value=!1)}return Oe(l,h),!d.value&&([t,n]=bS(()=>h()),t=await t,n()),(y,m)=>a.value?(me(),_t("span",{key:0,class:Qe(g.value),style:Ns({width:p.value,height:p.value})},null,6)):f.value?(me(),ut(He(u2),{key:1,icon:f.value,class:Qe(g.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):d.value?(me(),ut(nd(d.value),{key:2,class:Qe(g.value),width:p.value,height:p.value},null,8,["class","width","height"])):(me(),_t("span",{key:3,class:Qe(g.value),style:Ns({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[Pr(y.$slots,"default",{},()=>[Rl(jo(e.name),1)],!0)],6))}}),oi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},mT=oi(X2,[["__scopeId","data-v-5ad9b18b"]]),J2=Object.freeze(Object.defineProperty({__proto__:null,default:mT},Symbol.toStringTag,{value:"Module"})),Q2=At({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=jr();return{dynamic:J(()=>{var r,o;return e.dynamic||((o=(r=t.ui)==null?void 0:r.icons)==null?void 0:o.dynamic)})}}});function ez(e,t,n,r,o,s){const i=mT;return e.dynamic?(me(),ut(i,{key:0,name:e.name},null,8,["name"])):(me(),_t("span",{key:1,class:Qe(e.name)},null,2))}const ba=oi(Q2,[["render",ez]]),jd=(e,t,n,r,o=!1)=>{const s=GI(),i=jr(),a=J(()=>{var d;const c=bu(t),u=bu(n),f=bu(r);return Ec((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?o$(i.ui,e,{}):{},u||{})}),l=J(()=>r$(s,["class"]));return{ui:a,attrs:l}},tz={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},nz={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},yT={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},tw={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...yT,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},M9={...tw,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...tw.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...yT,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},rz={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",inner:"w-0 flex-1",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",actions:"flex items-center gap-2 mt-3 flex-shrink-0",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",gap:"gap-3",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,timeout:5e3,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},oz={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},ps=Ec($n.ui.strategy,$n.ui.avatar,tz),sz=At({components:{UIcon:ba},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>ps.default.icon},size:{type:String,default:()=>ps.default.size,validator(e){return Object.keys(ps.size).includes(e)}},chipColor:{type:String,default:()=>ps.default.chipColor,validator(e){return["gray",...$n.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>ps.default.chipPosition,validator(e){return Object.keys(ps.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=jd("avatar",Js(e,"ui"),ps),r=J(()=>typeof e.src=="boolean"?null:e.src),o=J(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=J(()=>qi(zn(t.value.wrapper,(c.value||!r.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=J(()=>qi(zn(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=J(()=>zn(t.value.icon.base,t.value.icon.size[e.size])),l=J(()=>zn(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=ue(!1);Oe(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:n,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:r,placeholder:o,error:c,onError:u}}});function iz(e,t,n,r,o,s){const i=ba;return me(),_t("span",{class:Qe(e.wrapperClass)},[e.url&&!e.error?(me(),ut(nd(e.as),an({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(me(),_t("span",{key:1,class:Qe(e.ui.text)},jo(e.text),3)):e.icon?(me(),ut(i,{key:2,name:e.icon,class:Qe(e.iconClass)},null,8,["name","class"])):e.placeholder?(me(),_t("span",{key:3,class:Qe(e.ui.placeholder)},jo(e.placeholder),3)):Zt("",!0),e.chipColor?(me(),_t("span",{key:4,class:Qe(e.chipClass)},jo(e.chipText),3)):Zt("",!0),Pr(e.$slots,"default")],2)}const _T=oi(sz,[["render",iz]]),nw=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function rw(e,t){t?t={...nw,...t}:t=nw;const n=vT(t);return n.dispatch(e),n.toString()}const az=Object.freeze(["prototype","__proto__","constructor"]);function vT(e){let t="",n=new Map;const r=o=>{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const s=Object.prototype.toString.call(o);let i="";const a=s.length;a<10?i="unknown:["+s+"]":i=s.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return r("buffer:"),r(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let c=Object.keys(o);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!ow(o)&&(u=az),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),r("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),r(":"),e.excludeValues||this.dispatch(o[d]),r(",")};for(const d of c)f(d);for(const d of u)f(d)}},array(o,s){if(s=s===void 0?e.unorderedArrays!==!1:s,r("array:"+o.length+":"),!s||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const c=vT(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return n=i,a.sort(),this.array(a,!1)},date(o){return r("date:"+o.toJSON())},symbol(o){return r("symbol:"+o.toString())},unkown(o,s){if(r(s),!!o&&(r(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return r("error:"+o.toString())},boolean(o){return r("bool:"+o)},string(o){r("string:"+o.length+":"),r(o)},function(o){r("fn:"),ow(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return r("number:"+o)},xml(o){return r("xml:"+o.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(o){return r("regex:"+o.toString())},uint8array(o){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return r("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return r("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return r("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return r("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return r("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return r("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return r("url:"+o.toString())},map(o){r("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){r("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return r("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return r("domwindow")},bigint(o){return r("bigint:"+o.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const bT="[native code] }",lz=bT.length;function ow(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-lz)===bT}function cz(e,t,n={}){return e===t||rw(e,n)===rw(t,n)}const uz=At({inheritAttrs:!1,props:{...Mm,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(n,r,{isActive:o,isExactActive:s}){return e.exactQuery&&!cz(n.query,r.query)||e.exactHash&&n.hash!==r.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),fz=["href","aria-disabled","role","rel","target","onClick"];function dz(e,t,n,r,o,s){const i=EN;return e.to?(me(),ut(i,an({key:1},e.$props,{custom:""}),{default:Ms(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:g})=>[Do("a",an(e.$attrs,{href:e.disabled?void 0:l,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:u,target:c,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(a,e._.provides[_c]||e.$route,{isActive:d,isExactActive:p}),onClick:h=>!g&&!e.disabled&&f(h)}),[Pr(e.$slots,"default",r_(kh({isActive:e.active!==void 0?e.active:e.exact?p:d})))],16,fz)]),_:3},16)):(me(),ut(nd(e.as),an({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:Ms(()=>[Pr(e.$slots,"default",r_(kh({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const wT=oi(uz,[["render",dz]]);function pz({ui:e,props:t}){const n=en();if(Is("ButtonGroupContextConsumer",!0),Ut("ButtonGroupContextConsumer",!1))return{size:J(()=>t.size),rounded:J(()=>e.value.rounded)};let o=n.parent,s;for(;o&&!s;){if(o.type.name==="ButtonGroup"){s=Ut(`group-${o.uid}`);break}o=o.parent}const i=J(()=>s==null?void 0:s.value.children.indexOf(n));return Rn(()=>{s==null||s.value.register(n)}),Qs(()=>{s==null||s.value.unregister(n)}),{size:J(()=>(s==null?void 0:s.value.size)||t.size),rounded:J(()=>!s||i.value===-1?e.value.rounded:s.value.children.length===1?s.value.ui.rounded:i.value===0?s.value.rounded.start:i.value===s.value.children.length-1?s.value.rounded.end:"rounded-none")}}const Kr=Ec($n.ui.strategy,$n.ui.button,nz),hz=At({components:{UIcon:ba,ULink:wT},inheritAttrs:!1,props:{...Mm,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>Kr.default.size,validator(e){return Object.keys(Kr.size).includes(e)}},color:{type:String,default:()=>Kr.default.color,validator(e){return[...$n.ui.colors,...Object.keys(Kr.color)].includes(e)}},variant:{type:String,default:()=>Kr.default.variant,validator(e){return[...Object.keys(Kr.variant),...Object.values(Kr.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Kr.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:n,attrs:r}=jd("button",Js(e,"ui"),Kr),{size:o,rounded:s}=pz({ui:n,props:e}),i=J(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=J(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=J(()=>e.square||!t.default&&!e.label),c=J(()=>{var y,m;const h=((m=(y=n.value.color)==null?void 0:y[e.color])==null?void 0:m[e.variant])||n.value.variant[e.variant];return qi(zn(n.value.base,n.value.font,s.value,n.value.size[o.value],n.value.gap[o.value],e.padded&&n.value[l.value?"square":"padding"][o.value],h==null?void 0:h.replaceAll("{color}",e.color),e.block?n.value.block:n.value.inline),e.class)}),u=J(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=J(()=>e.loading&&!i.value?e.loadingIcon:e.trailingIcon||e.icon),d=J(()=>zn(n.value.icon.base,n.value.icon.size[o.value],e.loading&&n.value.icon.loading)),p=J(()=>zn(n.value.icon.base,n.value.icon.size[o.value],e.loading&&!i.value&&n.value.icon.loading)),g=J(()=>s$(e));return{ui:n,attrs:r,isLeading:i,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:p,linkProps:g}}});function gz(e,t,n,r,o,s){const i=ba,a=wT;return me(),ut(a,an({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:Ms(()=>[Pr(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(me(),ut(i,{key:0,name:e.leadingIconName,class:Qe(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Zt("",!0)]),Pr(e.$slots,"default",{},()=>[e.label?(me(),_t("span",{key:0,class:Qe([e.truncate?e.ui.truncate:""])},jo(e.label),3)):Zt("",!0)]),Pr(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(me(),ut(i,{key:0,name:e.trailingIconName,class:Qe(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Zt("",!0)])]),_:3},16,["type","disabled","class"])}const ST=oi(hz,[["render",gz]]);function mz(e,t,n){let r=null;const{pause:o,resume:s,timestamp:i}=vD({controls:!0}),a=ue(null),l=J(()=>a.value?t-(i.value-a.value):0);function c(...h){r=setTimeout(()=>{r=null,a.value=null,e(...h)},l.value)}function u(){r&&(clearTimeout(r),r=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function g(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:g,remaining:l}}const Ya=Ec($n.ui.strategy,$n.ui.notification,rz),yz=At({components:{UIcon:ba,UAvatar:_T,UButton:ST},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>Ya.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>Ya.default.closeButton},timeout:{type:Number,default:()=>Ya.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>Ya.default.color,validator(e){return["gray",...$n.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:n,attrs:r}=jd("notification",Js(e,"ui"),Ya);let o=null;const s=ue(e.timeout),i=J(()=>{var h,y;return qi(zn(n.value.wrapper,(h=n.value.background)==null?void 0:h.replaceAll("{color}",e.color),n.value.rounded,n.value.shadow,(y=n.value.ring)==null?void 0:y.replaceAll("{color}",e.color)),e.class)}),a=J(()=>{var h;return zn(n.value.progress.base,(h=n.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=J(()=>({width:`${s.value/e.timeout*100||0}%`})),c=J(()=>{var h;return zn(n.value.icon.base,(h=n.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}function g(){o&&o.stop(),e.timeout&&(o=mz(()=>{d()},e.timeout),rd(()=>{s.value=o.remaining.value}))}return Oe(()=>e.timeout,g),Rn(g),Qs(()=>{o&&o.stop()}),{ui:n,attrs:r,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:qi}}});function _z(e,t,n,r,o,s){const i=ba,a=_T,l=ST;return me(),ut(ZS,an({appear:""},e.ui.transition),{default:Ms(()=>[Do("div",an({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[Do("div",{class:Qe([e.ui.container,e.ui.rounded,e.ui.ring])},[Do("div",{class:Qe(["flex",[e.ui.padding,e.ui.gap,{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}]])},[e.icon?(me(),ut(i,{key:0,name:e.icon,class:Qe(e.iconClass)},null,8,["name","class"])):Zt("",!0),e.avatar?(me(),ut(a,an({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):Zt("",!0),Do("div",{class:Qe(e.ui.inner)},[e.title||e.$slots.title?(me(),_t("p",{key:0,class:Qe(e.ui.title)},[Pr(e.$slots,"title",{title:e.title},()=>[Rl(jo(e.title),1)])],2)):Zt("",!0),e.description||e.$slots.description?(me(),_t("div",{key:1,class:Qe(e.twMerge(e.ui.description,!(e.title&&e.$slots.title)&&"mt-0 leading-5"))},[Pr(e.$slots,"description",{description:e.description},()=>[Rl(jo(e.description),1)])],2)):Zt("",!0),(e.description||e.$slots.description)&&e.actions.length?(me(),_t("div",{key:2,class:Qe(e.ui.actions)},[(me(!0),_t(bt,null,Gu(e.actions,(c,u)=>(me(),ut(l,an({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:cp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))],2)):Zt("",!0)],2),e.closeButton||!e.description&&!e.$slots.description&&e.actions.length?(me(),_t("div",{key:2,class:Qe(e.twMerge(e.ui.actions,"mt-0"))},[!e.description&&!e.$slots.description&&e.actions.length?(me(!0),_t(bt,{key:0},Gu(e.actions,(c,u)=>(me(),ut(l,an({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:cp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):Zt("",!0),e.closeButton?(me(),ut(l,an({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:cp(e.onClose,["stop"])}),null,16,["onClick"])):Zt("",!0)],2)):Zt("",!0)],2),e.timeout?(me(),_t("div",{key:0,class:Qe(e.progressClass),style:Ns(e.progressStyle)},null,6)):Zt("",!0)],2)],16)]),_:3},16)}const ET=oi(yz,[["render",_z]]);function vz(){const e=ni("notifications",()=>[]);function t(s){const i={id:new Date().getTime().toString(),...s};return e.value.findIndex(l=>l.id===i.id)===-1&&e.value.push(i),i}function n(s){e.value=e.value.filter(i=>i.id!==s)}function r(s,i){const a=e.value.findIndex(l=>l.id===s);if(a!==-1){const l=e.value[a];e.value.splice(a,1,{...l,...i})}}function o(){e.value=[]}return{add:t,remove:n,update:r,clear:o}}const bz=Ec($n.ui.strategy,$n.ui.notifications,oz),wz=At({components:{UNotification:ET},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=jd("notifications",Js(e,"ui"),bz),r=vz(),o=ni("notifications",()=>[]),s=J(()=>qi(zn(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:n,toast:r,notifications:o,wrapperClass:s}}});function Sz(e,t,n,r,o,s){const i=ET;return me(),ut(TI,{to:"body"},[Do("div",an({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(me(),_t("div",{key:0,class:Qe(e.ui.container)},[(me(!0),_t(bt,null,Gu(e.notifications,a=>(me(),_t("div",{key:a.id},[st(i,an({ref_for:!0},a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),WI({_:2},[Gu(e.$slots,(l,c)=>({name:c,fn:Ms(u=>[Pr(e.$slots,c,an({ref_for:!0},u))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):Zt("",!0)],16)])}const Ez=oi(wz,[["render",Sz]]);function xz(){Rn(()=>{const{idle:e}=mD(5e3,{initialState:!1});Oe(e,t=>{window.isUserIdle=t},{immediate:!0})})}const Rt={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Rr=console,vs={};Object.keys(Rt).forEach(e=>{vs[e]=Rr[e]});const Za="Datadog Browser SDK:",St={debug:vs.debug.bind(Rr,Za),log:vs.log.bind(Rr,Za),info:vs.info.bind(Rr,Za),warn:vs.warn.bind(Rr,Za),error:vs.error.bind(Rr,Za)},ky="https://docs.datadoghq.com",kz=`${ky}/real_user_monitoring/browser/troubleshooting`,Cy="More details:";function xT(e,t){return(...n)=>{try{return e(...n)}catch(r){St.error(t,r)}}}function ol(e){return e!==0&&Math.random()*100<=e}function Cz(e){return Tz(e)&&e>=0&&e<=100}function Tz(e){return typeof e=="number"}const wa=1e3,ls=60*wa,kT=60*ls,Az=24*kT,Iz=365*Az;function Vo(){return new Date().getTime()}function bo(){return Vo()}function jf(){return performance.now()}function Ur(){return{relative:jf(),timeStamp:bo()}}function Oz(){return{relative:0,timeStamp:TT()}}function CT(e,t){return t-e}function Rz(e,t){return e+t}function Lz(e){return e-TT()}let Xp;function TT(){var e,t;return Xp===void 0&&(Xp=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),Xp}const oa=1024,AT=1024*oa,Pz=/[^\u0000-\u007F]/;function IT(e){return Pz.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function Nz(e){return{...e}}function OT(e,t){return Object.keys(e).some(n=>e[n]===t)}function Ic(e){return Object.keys(e).length===0}function br(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const mr=br(),Ks="WorkerGlobalScope"in mr;function sa(e,t){const n=br();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}let Bf,RT=!1;function Mz(e){Bf=e}function Dz(e){RT=e}function $z(e,t,n){const r=n.value;n.value=function(...o){return(Bf?wt(r):r).apply(this,o)}}function wt(e){return function(){return ia(e,this,arguments)}}function ia(e,t,n){try{return e.apply(t,n)}catch(r){Ty(r)}}function Ty(e){if(qg(e),Bf)try{Bf(e)}catch(t){qg(t)}}function qg(...e){RT&&St.error("[MONITOR]",...e)}function Oc(e,t){return sa(br(),"setTimeout")(wt(e),t)}function LT(e){sa(br(),"clearTimeout")(e)}function Ay(e,t){return sa(br(),"setInterval")(wt(e),t)}function PT(e){sa(br(),"clearInterval")(e)}function sw(e){var t;const n=(t=mr.queueMicrotask)===null||t===void 0?void 0:t.bind(mr);typeof n=="function"?n(wt(e)):Promise.resolve().then(wt(e))}class Et{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function NT(...e){return new Et(t=>{const n=e.map(r=>r.subscribe(o=>t.notify(o)));return()=>n.forEach(r=>r.unsubscribe())})}class MT extends Et{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return sw(()=>{for(const o of this.buffer){if(n)return;t(o)}n||this.addObserver(t)}),r}unbuffer(){sw(()=>{this.maxBufferSize=this.buffer.length=0})}}function Fz(e,t,n){let r=!1,o,s;return{throttled:(...i)=>{if(r){o=i;return}e(...i),r=!0,s=Oc(()=>{o&&e(...o),r=!1,o=void 0},t)},cancel:()=>{LT(s),r=!1,o=void 0}}}function Xo(){}function Jo(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Jo)}const aa=/([\w-]+)\s*=\s*([^;]+)/g;function Uz(e,t){for(aa.lastIndex=0;;){const n=aa.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function jz(e){const t=new Map;for(aa.lastIndex=0;;){const n=aa.exec(e);if(n){const r=n[1],o=n[2];t.has(r)?t.get(r).push(o):t.set(r,[o])}else break}return t}function Bz(e){const t=new Map;for(aa.lastIndex=0;;){const n=aa.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function Hz(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}var Ys;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.ENCODE_COOKIE_OPTIONS="encode_cookie_options",e.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive"})(Ys||(Ys={}));const Iy=new Set;function Vz(e){Array.isArray(e)&&Wz(e.filter(t=>OT(Ys,t)))}function Wz(e){e.forEach(t=>{Iy.add(t)})}function Bd(e){return Iy.has(e)}function zz(){return Iy}function Gz(){return qz()===0}let gu;function qz(){return gu??(gu=Kz())}function Kz(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function Oy(e){return DT(e,location.href).href}function DT(e,t){const{URL:n}=Yz();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let Jp;function Yz(){if(!Jp){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=mr}Jp={URL:t.URL},e==null||e.remove()}return Jp}function Hd(e,t,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const s=`expires=${o.toUTCString()}`,i=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",l=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${a}${l}${c}`}function Ry(e){return Uz(document.cookie,e)}function Zz(e){return jz(document.cookie).get(e)||[]}let Qp;function Cs(e){return Qp||(Qp=Bz(document.cookie)),Qp.get(e)}function $T(e,t){Hd(e,"",0,t)}function Xz(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Jo()}`,n="test";Hd(t,n,ls,e);const r=Ry(t)===n;return $T(t,e),r}catch(t){return St.error(t),!1}}let eh;function FT(e=location.hostname,t=document.referrer){if(eh===void 0){const n=Jz(e,t);if(n){const r=`dd_site_test_${Jo()}`,o="test",s=n.split(".");let i=s.pop();for(;s.length&&!Ry(r);)i=`${s.pop()}.${i}`,Hd(r,o,wa,{domain:i});$T(r,{domain:i}),eh=i}}return eh}function Jz(e,t){try{return e||DT(t).hostname}catch{}}const ho="_dd_s";function Qz(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function Hf(e){return Object.values(e)}function e8(e){return Object.entries(e)}const Ly=4*kT,UT=15*ls,t8=Iz,jT="0",la={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},BT=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Py="&";function n8(e){return!!e&&(e.indexOf(Py)!==-1||BT.test(e))}const r8="1";function bs(e,t){const n={isExpired:r8};return t.trackAnonymousUser&&(e!=null&&e.anonymousId)&&(n.anonymousId=e==null?void 0:e.anonymousId),n}function Du(e){return Ic(e)}function HT(e){return!Du(e)}function xl(e){return e.isExpired!==void 0||!o8(e)}function o8(e){return(e.created===void 0||Vo()-Number(e.created)t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(Py)}function Vd(e){const t={};return n8(e)&&e.split(Py).forEach(n=>{const r=BT.exec(n);if(r!==null){const[,o,s]=r;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const s8="_dd",i8="_dd_r",a8="_dd_l",l8="rum",c8="logs";function u8(e){if(!Cs(ho)){const n=Cs(s8),r=Cs(i8),o=Cs(a8),s={};n&&(s.id=n),o&&/^[01]$/.test(o)&&(s[c8]=o),r&&/^[012]$/.test(r)&&(s[l8]=r),HT(s)&&(VT(s),e.persistSession(s))}}const f8=0;function iw(e){const t=p8(e);return t&&Xz(t)?{type:la.COOKIE,cookieOptions:t}:void 0}function d8(e,t){const n={isLockEnabled:Gz(),persistSession:r=>aw(t,e,r,UT),retrieveSession:()=>WT(t),expireSession:r=>aw(t,e,bs(r,e),Ly)};return u8(n),n}function aw(e,t,n,r){let o=Kg(n);Bd(Ys.ENCODE_COOKIE_OPTIONS)&&(o=Kg({...n,...Ic(n)?{}:{c:zT(e)}})),Hd(ho,o,t.trackAnonymousUser?t8:r,e)}function WT(e){if(Bd(Ys.ENCODE_COOKIE_OPTIONS))return h8(e);const t=Ry(ho);return Vd(t)}function p8(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=FT();if(!n)return;t.domain=n}return t}function zT(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=f8<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}function h8(e){const t=Zz(ho),n=zT(e);let r;for(const o of t.reverse())if(r=Vd(o),r.c===n)break;return r==null||delete r.c,r??{}}const g8="_dd_test_";function lw(){try{const e=Jo(),t=`${g8}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:la.LOCAL_STORAGE}:void 0}catch{return}}function m8(e){return{isLockEnabled:!1,persistSession:GT,retrieveSession:qT,expireSession:t=>y8(t,e)}}function GT(e){localStorage.setItem(ho,Kg(e))}function qT(){const e=localStorage.getItem(ho);return Vd(e)}function y8(e,t){GT(bs(e,t))}const _8=10,v8=100,b8=wa,KT="--",YT=[];let $u;function ws(e,t,n=0){var r;const{isLockEnabled:o,persistSession:s,expireSession:i}=t,a=d=>s({...d,lock:c}),l=()=>{const{lock:d,...p}=t.retrieveSession();return{session:p,lock:d&&!S8(d)?d:void 0}};if($u||($u=e),e!==$u){YT.push(e);return}if(o&&n>=v8){cw(t);return}let c,u=l();if(o){if(u.lock){mu(e,t,n);return}if(c=w8(),a(u.session),u=l(),u.lock!==c){mu(e,t,n);return}}let f=e.process(u.session);if(o&&(u=l(),u.lock!==c)){mu(e,t,n);return}if(f&&(xl(f)?i(f):(VT(f),o?a(f):s(f))),o&&!(f&&xl(f))){if(u=l(),u.lock!==c){mu(e,t,n);return}s(u.session),f=u.session}(r=e.after)===null||r===void 0||r.call(e,f||u.session),cw(t)}function mu(e,t,n){Oc(()=>{ws(e,t,n+1)},_8)}function cw(e){$u=void 0;const t=YT.shift();t&&ws(t,e)}function w8(){return Jo()+KT+bo()}function S8(e){const[,t]=e.split(KT);return!t||CT(Number(t),bo())>b8}const uw=wa;function E8(e){switch(e.sessionPersistence){case la.COOKIE:return iw(e);case la.LOCAL_STORAGE:return lw();case void 0:{let t=iw(e);return!t&&e.allowFallbackToLocalStorage&&(t=lw()),t}default:St.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function x8(e,t){return e.type===la.COOKIE?d8(t,e.cookieOptions):m8(t)}function k8(e,t,n,r,o=x8(e,t)){const s=new Et,i=new Et,a=new Et,l=Ay(p,uw);let c;h();const{throttled:u,cancel:f}=Fz(()=>{ws({process:E=>{if(Du(E))return;const x=g(E);return y(x),x},after:E=>{HT(E)&&!m()&&v(E),c=E}},o)},uw);function d(){ws({process:E=>m()?g(E):void 0},o)}function p(){const E=o.retrieveSession();xl(E)?ws({process:x=>xl(x)?bs(x,t):void 0,after:g},o):g(E)}function g(E){return xl(E)&&(E=bs(E,t)),m()&&(b(E)?_():(a.notify({previousState:c,newState:E}),c=E)),E}function h(){ws({process:E=>{if(Du(E))return E.anonymousId=Jo(),bs(E,t)},after:E=>{c=E}},o)}function y(E){if(Du(E))return!1;const x=r(E[n]);E[n]=x,delete E.isExpired,x!==jT&&!E.id&&(E.id=Jo(),E.created=String(Vo()))}function m(){return(c==null?void 0:c[n])!==void 0}function b(E){return c.id!==E.id||c[n]!==E[n]}function _(){c=bs(c,t),i.notify()}function v(E){c=E,s.notify()}function S(E){ws({process:x=>({...x,...E}),after:g},o)}return{expandOrRenewSession:u,expandSession:d,getSession:()=>c,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:a,restartSession:h,expire:E=>{f(),E===!1&&c&&delete c.anonymousId,o.expireSession(c),g(bs(c,t))},stop:()=>{PT(l)},updateSessionState:S}}const Yg={GRANTED:"granted",NOT_GRANTED:"not-granted"};function C8(e){const t=new Et;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===Yg.GRANTED},observable:t}}function ZT(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function T8(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(o){St.error(o)}return!1})}const A8=["chrome-extension://","moz-extension://"];function fw(e){return A8.some(t=>e.includes(t))}function I8(e,t=""){if(fw(e))return!1;const r=t.split(` `).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return fw(r)}const O8="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",R8="SDK initialized on a non-allowed domain.";function L8(e,t,n=typeof location<"u"?location.origin:""){const r=e.allowedTrackingOrigins;if(!r)return I8(n,t)?(St.error(O8),!1):!0;const o=T8(r,n);return o||St.error(R8),o}const P8="datad0g.com",N8="dd0g-gov.com",Ii="datadoghq.com",M8="ddog-gov.com",D8="pci.browser-intake-datadoghq.com",$8=["ddsource","dd-api-key","dd-request-id"];function Ss(e,t,n){const r=F8(e,t);return{build(o,s){const i=j8(e,t,o,s,n);return r(i)},trackType:t}}function F8(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const s=Oy(r);return i=>`${s}?ddforward=${encodeURIComponent(`${n}?${i}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const o=U8(t,e);return s=>`https://${o}${n}?${s}`}function U8(e,t){const{site:n=Ii,internalAnalyticsSubdomain:r}=t;if(e==="logs"&&t.usePciIntake&&n===Ii)return D8;if(r&&n===Ii)return`${r}.${Ii}`;if(n===N8)return`http-intake.logs.${n}`;const o=n.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function j8({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,o,{retry:s,encoding:i},a=[]){const l=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${Jo()}`].concat(a);return i&&l.push(`dd-evp-encoding=${i}`),r==="rum"&&(l.push(`batch_time=${bo()}`,`_dd.api=${o}`),s&&l.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}function B8(e){const t=e.site||Ii,n=H8(e.source),r=V8({...e,site:t,source:n});return{replica:W8({...e,site:t,source:n}),site:t,source:n,...r}}function H8(e){return e==="flutter"||e==="unity"?e:"browser"}function V8(e){return{logsEndpointBuilder:Ss(e,"logs"),rumEndpointBuilder:Ss(e,"rum"),profilingEndpointBuilder:Ss(e,"profile"),sessionReplayEndpointBuilder:Ss(e,"replay"),exposuresEndpointBuilder:Ss(e,"exposures")}}function W8(e){if(!e.replica)return;const t={...e,site:Ii,clientToken:e.replica.clientToken};return{logsEndpointBuilder:Ss(t,"logs"),rumEndpointBuilder:Ss(t,"rum",[`application.id=${e.replica.applicationId}`])}}function z8(e){return $8.every(t=>e.includes(t))}function th(e,t){return e!=null&&typeof e!="string"?(St.error(`${t} must be defined as a string`),!1):!0}function G8(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(St.error(`Site should be a valid Datadog site. ${Cy} ${ky}/getting_started/site/.`),!1):!0}function yu(e,t){return e!==void 0&&!Cz(e)?(St.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function q8(e,t){var n,r,o,s,i,a,l,c,u,f;if(!e||!e.clientToken){St.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){St.error("Allowed Tracking Origins must be an array");return}if(!(!G8(e.site)||!yu(e.sessionSampleRate,"Session")||!yu(e.telemetrySampleRate,"Telemetry")||!yu(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!yu(e.telemetryUsageSampleRate,"Telemetry Usage")||!th(e.version,"Version")||!th(e.env,"Env")||!th(e.service,"Service")||!L8(e,t??""))){if(e.trackingConsent!==void 0&&!OT(Yg,e.trackingConsent)){St.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&xT(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Ks?void 0:E8(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(o=e.telemetryConfigurationSampleRate)!==null&&o!==void 0?o:5,telemetryUsageSampleRate:(s=e.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(i=e.service)!==null&&i!==void 0?i:void 0,env:(a=e.env)!==null&&a!==void 0?a:void 0,version:(l=e.version)!==null&&l!==void 0?l:void 0,datacenter:(c=e.datacenter)!==null&&c!==void 0?c:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(u=e.trackingConsent)!==null&&u!==void 0?u:Yg.GRANTED,trackAnonymousUser:(f=e.trackAnonymousUser)!==null&&f!==void 0?f:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*oa,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*wa,batchMessagesLimit:Ks?1:50,messageBytesLimit:256*oa,variant:e.variant,sdkVersion:e.sdkVersion,...B8(e)}}}function K8(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}const ca="?";function Sa(e){var t,n;const r=[];let o=nh(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` `).forEach(i=>{const a=X8(i)||Q8(i)||t6(i)||o6(i);a&&(!a.func&&a.line&&(a.func=ca),r.push(a))}),r.length>0&&l6()&&e instanceof Error){const i=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&JT(a);){const l=((t=a.constructor)===null||t===void 0?void 0:t.name)||ca;i.push(l)}for(let l=i.length-1;l>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===i[l];l--)r.shift()}return{message:nh(e,"message"),name:nh(e,"name"),stack:r}}const XT="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",ua="(?::(\\d+))",Y8=new RegExp(`^\\s*at (.*?) ?\\(${XT}${ua}?${ua}?\\)?\\s*$`,"i"),Z8=new RegExp(`\\((\\S*)${ua}${ua}\\)`);function X8(e){const t=Y8.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,o=Z8.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ca,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const J8=new RegExp(`^\\s*at ?${XT}${ua}?${ua}??\\s*$`,"i");function Q8(e){const t=J8.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:ca,line:t[2]?+t[2]:void 0,url:t[1]}}const e6=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function t6(e){const t=e6.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ca,line:+t[3],url:t[2]}}const n6=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,r6=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function o6(e){const t=n6.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=r6.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ca,line:t[4]?+t[4]:void 0,url:t[3]}}function nh(e,t){if(typeof e!="object"||!e||!(t in e))return;const n=e[t];return typeof n=="string"?n:void 0}function s6(e,t,n,r){if(t===void 0)return;const{name:o,message:s}=a6(e);return{name:o,message:s,stack:[{url:t,column:r,line:n}]}}const i6=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function a6(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=i6.exec(e)),{name:t,message:n}}function JT(e){return String(e.constructor).startsWith("class ")}let _u;function l6(){if(_u!==void 0)return _u;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return _u=JT(Object.getPrototypeOf(t))&&n.stack!==t.stack,_u}function Wd(e){const n=new Error(e);n.name="HandlingStack";let r;return ia(()=>{const o=Sa(n);o.stack=o.stack.slice(2),r=Ea(o)}),r}function Ea(e){let t=QT(e);return e.stack.forEach(n=>{const r=n.func==="?"?"":n.func,o=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",i=n.line&&n.column?`:${n.column}`:"";t+=` at ${r}${o} @ ${n.url}${s}${i}`}),t}function QT(e){return`${e.name||"Error"}: ${e.message}`}function Ls(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if(typeof o!="function")if(t in e&&t.startsWith("on"))o=Xo;else return{stop:Xo};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let l;ia(n,null,[{target:this,parameters:a,onPostCall:u=>{l=u},handlingStack:r?Wd("instrumented method"):void 0}]);const c=o.apply(this,a);return l&&ia(l,null,[c]),c};return e[t]=i,{stop:()=>{s=!0,e[t]===i&&(e[t]=o)}}}function Rc(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=Oi(Object.prototype),o=Oi(Array.prototype),s=Oi(Object.getPrototypeOf(e)),i=Oi(e);try{return JSON.stringify(e,t,n)}catch{return""}finally{r(),o(),s(),i()}}function Oi(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Xo}const c6=220*oa,u6="$",f6=3;function go(e,t=c6){const n=Oi(Object.prototype),r=Oi(Array.prototype),o=[],s=new WeakMap,i=rh(e,u6,void 0,o,s),a=JSON.stringify(i);let l=a?a.length:0;if(l>t){oh(t,"discarded",e);return}for(;o.length>0&&lt){oh(t,"truncated",e);break}c.target[f]=d}else for(const f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){const d=rh(c.source[f],c.path,f,o,s);if(d!==void 0&&(l+=JSON.stringify(d).length+u+f.length+f6,u=1),l>t){oh(t,"truncated",e);break}c.target[f]=d}}return n(),r(),i}function rh(e,t,n,r,o){const s=h6(e);if(!s||typeof s!="object")return d6(s);const i=Zg(s);if(i!=="[Object]"&&i!=="[Array]"&&i!=="[Error]")return i;const a=e;if(o.has(a))return`[Reference seen at ${o.get(a)}]`;const l=n!==void 0?`${t}.${n}`:t,c=Array.isArray(s)?[]:{};return o.set(a,l),r.push({source:s,target:c,path:l}),c}function d6(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function Zg(e){try{if(e instanceof Event)return p6(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function p6(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?Zg(e.currentTarget):null,target:e.target?Zg(e.target):null}}function h6(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function oh(e,t,n){St.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const eA="No stack, consider using an instance of Error";function Ny({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:l}){const c=si(t);return!e&&c&&(e=Sa(t)),{startClocks:o,source:a,handling:l,handlingStack:n,componentStack:r,originalError:t,type:e?e.name:void 0,message:g6(e,c,s,t),stack:e?Ea(e):i?eA:void 0,causes:c?v6(t,a):void 0,fingerprint:m6(t),context:y6(t)}}function g6(e,t,n,r){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":`${n} ${Rc(go(r))}`}function m6(e){return si(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function y6(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function _6(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function si(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function v6(e,t){let n=e;const r=[];for(;si(n==null?void 0:n.cause)&&r.length<10;){const o=Sa(n.cause);r.push({message:n.cause.message,source:t,type:o==null?void 0:o.name,stack:o&&Ea(o)}),n=n.cause}return r.length?r:void 0}const Un={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function b6(){return new Et(e=>{const t=(o,s)=>{const i=Ny({stackTrace:s,originalError:o,startClocks:Ur(),nonErrorPrefix:"Uncaught",source:Un.SOURCE,handling:"unhandled"});e.notify(i)},{stop:n}=w6(t),{stop:r}=S6(t);return()=>{n(),r()}})}function w6(e){return Ls(br(),"onerror",({parameters:[t,n,r,o,s]})=>{let i;si(s)||(i=s6(t,n,r,o)),e(s??t,i)})}function S6(e){return Ls(br(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function E6(e){const t={version:"6.23.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return Dz},enumerable:!1}),t}function x6(e,t,n){const r=e[t];r&&!r.q&&r.version&&St.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(o=>xT(o,"onReady callback threw an error:")())}function tA(e,t){t.silentMultipleInit||St.error(`${e} is already initialized.`)}function ii(e,t,n,r,o){return My(e,t,[n],r,o)}function My(e,t,n,r,{once:o,capture:s,passive:i}={}){const a=wt(d=>{!d.isTrusted&&!d.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),r(d))}),l=i?{capture:s,passive:i}:s,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=sa(c,"addEventListener");n.forEach(d=>u.call(t,d,a,l));function f(){const d=sa(c,"removeEventListener");n.forEach(p=>d.call(t,p,a,l))}return{stop:f}}const Vf={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function k6(e,t){const n=[];t.includes(Vf.cspViolation)&&n.push(T6(e));const r=t.filter(o=>o!==Vf.cspViolation);return r.length&&n.push(C6(r)),NT(...n)}function C6(e){return new Et(t=>{if(!window.ReportingObserver)return;const n=wt((o,s)=>o.forEach(i=>t.notify(A6(i)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function T6(e){return new Et(t=>{const{stop:n}=ii(e,document,"securitypolicyviolation",r=>{t.notify(I6(r))});return n})}function A6(e){const{type:t,body:n}=e;return nA({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:rA(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function I6(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return nA({type:e.effectiveDirective,message:`${Vf.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:rA(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${Hz(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function nA(e){return{startClocks:Ur(),source:Un.REPORT,handling:"unhandled",...e}}function rA(e,t,n,r,o){return n?Ea({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}const O6=200;function oA(e){const{env:t,service:n,version:r,datacenter:o,sdkVersion:s,variant:i}=e,a=[ys("sdk_version",s??"6.23.0")];return t&&a.push(ys("env",t)),n&&a.push(ys("service",n)),r&&a.push(ys("version",r)),o&&a.push(ys("datacenter",o)),i&&a.push(ys("variant",i)),a}function ys(e,t){const n=t?`${e}:${t}`:e;return(n.length>O6||R6(n))&&St.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${Cy} ${ky}/getting_started/tagging/#defining-tags`),sA(n)}function sA(e){return e.replace(/,/g,"_")}function R6(e){return L6()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function L6(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function iA(e,t){const n=mr.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function Wf(e,t,n=P6()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,o)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s=0;return n||e.push(t),n}}}function N6(){var e;const t=mr.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function lA(e){return e>=500}function M6(e){try{return e.clone()}catch{return}}const D6=80*oa,$6=32,cA=20*AT,F6=ls,uA=wa;function fA(e,t,n,r,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?pA(e,t,n,s,{onSuccess:()=>hA(0,t,n,r,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),dA(t,n,r,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function dA(e,t,n,r,o){e.transportStatus===2&&Oc(()=>{const s=e.queuedPayloads.first();pA(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=uA,hA(1,e,t,n,r,o)},onFailure:()=>{e.currentBackoffTime=Math.min(F6,e.currentBackoffTime*2),dA(e,t,n,r,o)}})},e.currentBackoffTime)}function pA(e,t,n,r,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),n(e,i=>{t.bandwidthMonitor.remove(e),U6(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function hA(e,t,n,r,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${cA/AT}MiB`,source:Un.AGENT,startClocks:Ur()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=gA();i.size()>0;)fA(i.dequeue(),t,n,r,o,s)}function U6(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||lA(e.status))}function j6(){return{transportStatus:0,currentBackoffTime:uA,bandwidthMonitor:B6(),queuedPayloads:gA(),queueFullReported:!1}}function gA(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=cA}}}function B6(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=D6&&this.ongoingRequestCount<$6},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}function mA(e,t,n){const r=new Et,o=j6();return{observable:r,send:s=>{for(const i of e)fA(s,o,(a,l)=>{Bd(Ys.AVOID_FETCH_KEEPALIVE)?zf(i,a,l):W6(i,t,a,l)},i.trackType,n,r)},sendOnExit:s=>{for(const i of e)H6(i,t,s)}}}function H6(e,t,n){if(!!navigator.sendBeacon&&n.bytesCountr==null?void 0:r({status:i.status,type:i.type}))).catch(wt(()=>zf(e,n,r)))}else zf(e,n,r)}function zf(e,t,n){const r=e.build("fetch",t);fetch(r,{method:"POST",body:t.data,mode:"cors"}).then(wt(o=>n==null?void 0:n({status:o.status,type:o.type}))).catch(wt(()=>n==null?void 0:n({status:0})))}function z6(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Dy(){const e=G6();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Gf(e){var t;e===void 0&&(e=(t=br().location)===null||t===void 0?void 0:t.hostname);const n=Dy();return!!n&&n.getAllowedWebViewHosts().some(r=>e===r||e.endsWith(`.${r}`))}function G6(){return br().DatadogEventBridge}const Fu={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function q6(e){return new Et(t=>{const{stop:n}=My(e,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:Fu.HIDDEN}):o.type==="freeze"&&t.notify({reason:Fu.FROZEN})},{capture:!0}),r=ii(e,window,"beforeunload",()=>{t.notify({reason:Fu.UNLOADING})}).stop;return()=>{n(),r()}})}function K6(e){return Hf(Fu).includes(e)}function yA({encoder:e,request:t,flushController:n,messageBytesLimit:r}){let o={};const s=n.flushObservable.subscribe(f=>u(f));function i(f,d,p){n.notifyBeforeAddMessage(d),p!==void 0?(o[p]=f,n.notifyAfterAddMessage()):e.write(e.isEmpty?f:` ${f}`,g=>{n.notifyAfterAddMessage(g-d)})}function a(f){return f!==void 0&&o[f]!==void 0}function l(f){const d=o[f];delete o[f];const p=e.estimateEncodedBytesCount(d);n.notifyAfterRemoveMessage(p)}function c(f,d){const p=Rc(f),g=e.estimateEncodedBytesCount(p);if(g>=r){St.warn(`Discarded a message whose size was bigger than the maximum allowed size ${r}KB. ${Cy} ${kz}/#technical-limitations`);return}a(d)&&l(d),i(p,g,d)}function u(f){const d=Hf(o).join(` `);o={};const p=K6(f.reason),g=p?t.sendOnExit:t.send;if(p&&e.isAsync){const h=e.finishSync();h.outputBytesCount&&g(pw(h));const y=[h.pendingData,d].filter(Boolean).join(` `);y&&g({data:y,bytesCount:IT(y)})}else d&&e.write(e.isEmpty?d:` ${d}`),e.finish(h=>{g(pw(h))})}return{flushController:n,add:c,upsert:c,stop:s.unsubscribe}}function pw(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}function _A({messagesLimit:e,bytesLimit:t,durationLimit:n,pageMayExitObservable:r,sessionExpireObservable:o}){const s=r.subscribe(g=>u(g.reason)),i=o.subscribe(()=>u("session_expire")),a=new Et(()=>()=>{s.unsubscribe(),i.unsubscribe()});let l=0,c=0;function u(g){if(c===0)return;const h=c,y=l;c=0,l=0,p(),a.notify({reason:g,messagesCount:h,bytesCount:y})}let f;function d(){f===void 0&&(f=Oc(()=>{u("duration_limit")},n))}function p(){LT(f),f=void 0}return{flushObservable:a,get messagesCount(){return c},notifyBeforeAddMessage(g){l+g>=t&&u("bytes_limit"),c+=1,l+=g,d()},notifyAfterAddMessage(g=0){l+=g,c>=e?u("messages_limit"):l>=t&&u("bytes_limit")},notifyAfterRemoveMessage(g){l-=g,c-=1,c===0&&p()}}}const fa="DISCARDED",Xs="SKIPPED";function Y6(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],o=[];for(const s of r){const i=s(n);if(i===fa)return fa;i!==Xs&&o.push(i)}return Zs(...o)}}}const Ps={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},Z6=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],X6=1,J6=[M8];let sh;function Lc(){return sh||(sh=new MT(100)),sh}function Q6(e,t,n,r,o,s){const i=new Et,{stop:a}=tG(t,r,o,s,i),{enabled:l,metricsEnabled:c}=eG(e,t,n,i);return{stop:a,enabled:l,metricsEnabled:c}}function eG(e,t,n,r,o=X6){const s={},i=!J6.includes(t.site)&&ol(t.telemetrySampleRate),a={[Ps.LOG]:i,[Ps.CONFIGURATION]:i&&ol(t.telemetryConfigurationSampleRate),[Ps.USAGE]:i&&ol(t.telemetryUsageSampleRate),metric:i&&ol(o)},l=nG(),c=Lc();return c.subscribe(({rawEvent:f,metricName:d})=>{if(d&&!a.metric||!a[f.type])return;const p=d||f.status||f.type;let g=s[p];if(g||(g=s[p]=new Set),g.size>=t.maxTelemetryEventsPerPage)return;const h=Rc(f);if(g.has(h))return;const y=n.triggerHook(1,{startTime:Ur().relative});if(y===fa)return;const m=u(y,e,f,l);r.notify(m),iA("telemetry",m),g.add(h)}),c.unbuffer(),Mz(oG),{enabled:i,metricsEnabled:a.metric};function u(f,d,p,g){const y={type:"telemetry",date:Ur().timeStamp,service:d,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:Zs(p,{runtime_env:g,connectivity:N6(),sdk_setup:"npm"}),ddtags:oA(t).join(","),experimental_features:Array.from(zz())};return Zs(y,f)}}function tG(e,t,n,r,o){const s=[];if(Gf()){const i=Dy(),a=o.subscribe(l=>i.send("internal_telemetry",l));s.push(a.unsubscribe)}else{const i=[e.rumEndpointBuilder];e.replica&&rG(e)&&i.push(e.replica.rumEndpointBuilder);const a=yA({encoder:r(4),request:mA(i,e.batchBytesLimit,t),flushController:_A({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:new Et}),messageBytesLimit:e.messageBytesLimit});s.push(a.stop);const l=o.subscribe(a.add);s.push(l.unsubscribe)}return{stop:()=>s.forEach(i=>i())}}function nG(){var e;return{is_local_file:((e=mr.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:Ks}}function rG(e){return e.site===P8}function $y(e,t){qg(Rt.debug,e,t),Lc().notify({rawEvent:{type:Ps.LOG,message:e,status:"debug",...t}})}function oG(e,t){Lc().notify({rawEvent:{type:Ps.LOG,status:"error",...aG(e),...t}})}function sG(e){Lc().notify({rawEvent:{type:Ps.CONFIGURATION,configuration:e}})}function iG(e){Lc().notify({rawEvent:{type:Ps.USAGE,usage:e}})}function aG(e){if(si(e)){const t=Sa(e);return{error:{kind:t.name,stack:Ea(lG(t))},message:t.message}}return{error:{stack:eA},message:`Uncaught ${Rc(e)}`}}function lG(e){return e.stack=e.stack.filter(t=>!t.url||Z6.some(n=>t.url.startsWith(n))),e}function cG(e){const t=new Set;return e.forEach(n=>t.add(n)),Array.from(t)}function vA(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}const vu=1/0,uG=ls;let Xa=null;const Uu=new Set;function fG(){Uu.forEach(e=>e())}function dG({expireDelay:e,maxEntries:t}){let n=[];Xa||(Xa=Ay(()=>fG(),uG));const r=()=>{const u=jf()-e;for(;n.length>0&&n[n.length-1].endTime{vA(n,d)},close:p=>{d.endTime=p}};return t&&n.length>=t&&n.pop(),n.unshift(d),d}function s(u=vu,f={returnInactive:!1}){for(const d of n)if(d.startTime<=u){if(f.returnInactive||u<=d.endTime)return d.value;break}}function i(u){const f=n[0];f&&f.endTime===vu&&f.close(u)}function a(u=vu,f=0){const d=Rz(u,f);return n.filter(p=>p.startTime<=d&&u<=p.endTime).map(p=>p.value)}function l(){n=[]}function c(){Uu.delete(r),Uu.size===0&&Xa&&(PT(Xa),Xa=null)}return{add:o,find:s,closeActive:i,findAll:a,reset:l,stop:c}}const pG="datadog-synthetics-public-id",hG="datadog-synthetics-result-id",gG="datadog-synthetics-injects-rum";function bA(){return Ks?!1:!!(mr._DATADOG_SYNTHETICS_INJECTS_RUM||Cs(gG))}function mG(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Cs(pG);return typeof e=="string"?e:void 0}function yG(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||Cs(hG);return typeof e=="string"?e:void 0}function _G(){return!!(mG()&&yG())}const vG=ls,bG=Ly;function wG(e,t,n,r){const o=new Et,s=new Et,i=k8(e.sessionStoreStrategyType,e,t,n),a=dG({expireDelay:bG});if(i.renewObservable.subscribe(()=>{a.add(l(),jf()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive(jf())}),i.expandOrRenewSession(),a.add(l(),Oz().relative),Bd(Ys.SHORT_SESSION_INVESTIGATION)){const c=i.getSession();c&&CG(e,c)}r.observable.subscribe(()=>{r.isGranted()?i.expandOrRenewSession():i.expire(!1)}),SG(e,()=>{r.isGranted()&&i.expandOrRenewSession()}),EG(e,()=>i.expandSession()),xG(e,()=>i.restartSession());function l(){const c=i.getSession();return c?{id:c.id,trackingType:c[t],isReplayForced:!!c.forcedReplay,anonymousId:c.anonymousId}:(kG(e).catch(()=>{}),{id:"invalid",trackingType:jT,isReplayForced:!1,anonymousId:void 0})}return{findSession:(c,u)=>a.find(c,u),renewObservable:o,expireObservable:s,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}function SG(e,t){const{stop:n}=My(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function EG(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=ii(e,document,"visibilitychange",n);Ay(n,vG)}function xG(e,t){const{stop:n}=ii(e,window,"resume",t,{capture:!0})}async function kG(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,r;t.type===la.COOKIE?(n=WT(t.cookieOptions),r={cookie:await wA(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=qT(),$y("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:_G(),createdTimestamp:n==null?void 0:n.created,expireTimestamp:n==null?void 0:n.expire,...r})}function CG(e,t){if(!window.cookieStore||!t.created)return;const n=Number(t.created),r=Vo(),{stop:o}=ii(e,cookieStore,"change",s);function s(i){const a=Qz(i.changed,c=>c.name===ho);if(!a)return;const l=Vo()-n;if(l>14*ls)o();else{const c=Vd(a.value);if(c.id&&c.id!==t.id){o();const u=Vo()-r;wA().then(f=>{$y("Session cookie changed",{time:u,session_age:l,old:t,new:c,cookie:f})}).catch(Ty)}}}}async function wA(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(ho):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(ho)),{count:e.length,domain:FT()||"undefined",...e}}function SA(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const o=IT(n);t+=o,e+=n,r&&r(o)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class TG{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(o=>o(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}function AG(e,t,n){let r=0,o=!1;return{isLimitReached(){if(r===0&&Oc(()=>{r=0},ls),r+=1,r<=t||o)return o=!1,!1;if(r===t+1){o=!0;try{n({message:`Reached max number of ${e}s by minute: ${t}`,source:Un.AGENT,startClocks:Ur()})}finally{o=!1}}return!0}}}let ih;const Fy=new WeakMap;function IG(e){return ih||(ih=OG(e)),ih}function OG(e){return new Et(t=>{const{stop:n}=Ls(XMLHttpRequest.prototype,"open",RG),{stop:r}=Ls(XMLHttpRequest.prototype,"send",s=>{LG(s,e,t)},{computeHandlingStack:!0}),{stop:o}=Ls(XMLHttpRequest.prototype,"abort",PG);return()=>{n(),r(),o()}})}function RG({target:e,parameters:[t,n]}){Fy.set(e,{state:"open",method:String(t).toUpperCase(),url:Oy(String(n))})}function LG({target:e,parameters:[t],handlingStack:n},r,o){const s=Fy.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=Ur(),i.isAborted=!1,i.xhr=e,i.handlingStack=n,i.body=t;let a=!1;const{stop:l}=Ls(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(u(),l(),a)return;a=!0;const f=s;f.state="complete",f.duration=CT(i.startClocks.timeStamp,bo()),f.status=e.status,o.notify(Nz(f))},{stop:u}=ii(r,e,"loadend",c);o.notify(i)}function PG({target:e}){const t=Fy.get(e);t&&(t.isAborted=!0)}let ah;function EA(){return ah||(ah=NG()),ah}function NG(){return new Et(e=>{if(!mr.fetch)return;const{stop:t}=Ls(mr,"fetch",n=>MG(n,e),{computeHandlingStack:!0});return t})}function MG({parameters:e,onPostCall:t,handlingStack:n},r){const[o,s]=e;let i=s&&s.method;i===void 0&&o instanceof Request&&(i=o.method);const a=i!==void 0?String(i).toUpperCase():"GET",l=o instanceof Request?o.url:Oy(String(o)),c=Ur(),u={state:"start",init:s,input:o,method:a,startClocks:c,url:l,handlingStack:n};r.notify(u),e[0]=u.input,e[1]=u.init,t(f=>DG(r,f,u))}function DG(e,t,n){const r=n;function o(s){r.state="resolve",Object.assign(r,s),e.notify(r)}t.then(wt(s=>{o({response:s,responseType:s.type,status:s.status,isAborted:!1})}),wt(s=>{var i,a;o({status:0,isAborted:((a=(i=r.init)===null||i===void 0?void 0:i.signal)===null||a===void 0?void 0:a.aborted)||s instanceof DOMException&&s.code===DOMException.ABORT_ERR,error:s})}))}let lh={};function $G(e){const t=e.map(n=>(lh[n]||(lh[n]=FG(n)),lh[n]));return NT(...t)}function FG(e){return new Et(t=>{const n=Rr[e];return Rr[e]=(...r)=>{n.apply(console,r);const o=Wd("console error");ia(()=>{t.notify(UG(r,e,o))})},()=>{Rr[e]=n}})}function UG(e,t,n){const r=e.map(o=>jG(o)).join(" ");if(t===Rt.error){const o=e.find(si),s=Ny({originalError:o,handlingStack:n,startClocks:Ur(),source:Un.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function jG(e){return typeof e=="string"?go(e):si(e)?QT(Sa(e)):Rc(go(e),void 0,2)}const BG=500;function HG(){const e=[];return{add:o=>{e.push(o)>BG&&e.splice(0,1)},remove:o=>{vA(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function VG(e){const t=ZT(e)==="object";return t||St.error("Unsupported context:",e),t}function ch(e,t,n){const r={...e};for(const[o,{required:s,type:i}]of Object.entries(t))i==="string"&&!hw(r[o])&&(r[o]=String(r[o])),s&&hw(r[o])&&St.warn(`The property ${o} of ${n} is required; context will not be sent to the intake.`);return r}function hw(e){return e==null||e===""}function zd(e="",{propertiesConfig:t={}}={}){let n={};const r=new Et,o={getContext:()=>aA(n),setContext:s=>{VG(s)?n=go(ch(s,t,e)):o.clearContext(),r.notify()},setContextProperty:(s,i)=>{n=go(ch({...n,[s]:i},t,e)),r.notify()},removeContextProperty:s=>{delete n[s],ch(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}function pn(e,t,n,r){return wt((...o)=>e()[t][n](...o))}function uh(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(o=>o[t].setContext(r))})}const WG="_dd_c",zG=[];function Uy(e,t,n,r){const o=GG(n,r);zG.push(ii(e,window,"storage",({key:c})=>{o===c&&i()})),t.changeObservable.subscribe(a);const s=Zs(l(),t.getContext());Ic(s)||t.setContext(s);function i(){t.setContext(l())}function a(){localStorage.setItem(o,JSON.stringify(t.getContext()))}function l(){const c=localStorage.getItem(o);return c?JSON.parse(c):{}}}function GG(e,t){return`${WG}_${e}_${t}`}function qG(e,t,n){const r=xA();return t.storeContextsAcrossPages&&Uy(t,r,n,4),e.register(0,()=>{const o=r.getContext();return Ic(o)||!o.id?Xs:{account:o}}),r}function xA(){return zd("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function KG(e,t,n,r){const o=kA();return t.storeContextsAcrossPages&&Uy(t,o,n,2),e.register(0,()=>o.getContext()),o}function kA(){return zd("global context")}function YG(e,t,n,r){const o=CA();return t.storeContextsAcrossPages&&Uy(t,o,r,1),e.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),l=n.findTrackedSession(i);return l&&l.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),Ic(a)?Xs:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=n.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function CA(){return zd("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const Wt={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},hn={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function ZG(e,t,n){const r=e.getReader(),o=[];let s=0;i();function i(){r.read().then(wt(l=>{if(l.done){a();return}o.push(l.value),s+=l.value.length,s>n.bytesLimit?a():i()}),wt(l=>t(l)))}function a(){r.cancel().catch(Xo);let l,c;{let u;if(o.length===1)u=o[0];else{u=new Uint8Array(s);let f=0;o.forEach(d=>{u.set(d,f),f+=d.length})}l=u.slice(0,n.bytesLimit),c=u.length>n.bytesLimit}t(void 0,l,c)}}const gw={XHR:"xhr",FETCH:"fetch"},Xg={FETCH:gw.FETCH,XHR:gw.XHR},XG=500;function JG(e=b6){const t=new MT(XG),n=e().subscribe(r=>{t.notify({type:0,error:r})});return{observable:t,stop:()=>{n.unsubscribe()}}}function qf(e,t,n){const r=n.getHandler(),o=Array.isArray(r)?r:[r];return mw[e]>=mw[n.getLevel()]&&o.includes(t)}const ke={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},mw={[ke.ok]:0,[ke.debug]:1,[ke.info]:2,[ke.notice]:4,[ke.warn]:5,[ke.error]:6,[ke.critical]:7,[ke.alert]:8,[ke.emerg]:9};function Gd(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var QG=function(e,t,n,r){var o=arguments.length,s=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const pc={console:"console",http:"http"},eq=Object.keys(ke);class Zn{constructor(t,n,r=pc.http,o=ke.debug,s={}){this.handleLogStrategy=t,this.handlerType=r,this.level=o,this.contextManager=zd("logger"),this.tags=[],this.contextManager.setContext(s),n&&this.contextManager.setContextProperty("logger",{name:n})}logImplementation(t,n,r=ke.info,o,s){const i=go(n);let a;if(o!=null){const l=Ny({originalError:o,nonErrorPrefix:"Provided",source:Un.LOGGER,handling:"handled",startClocks:Ur()});a=Zs({error:Gd(l,{includeMessage:!0})},l.context,i)}else a=i;this.handleLogStrategy({message:go(t),context:a,status:r},this,s)}log(t,n,r=ke.info,o){let s;qf(r,pc.http,this)&&(s=Wd("log")),this.logImplementation(t,n,r,o,s)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,n){this.contextManager.setContextProperty(t,n)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,n){this.tags.push(ys(t,n))}removeTagsWithKey(t){const n=sA(t);this.tags=this.tags.filter(r=>r!==n&&!r.startsWith(`${n}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}QG([$z],Zn.prototype,"logImplementation",null);Zn.prototype.ok=wo(ke.ok);Zn.prototype.debug=wo(ke.debug);Zn.prototype.info=wo(ke.info);Zn.prototype.notice=wo(ke.notice);Zn.prototype.warn=wo(ke.warn);Zn.prototype.error=wo(ke.error);Zn.prototype.critical=wo(ke.critical);Zn.prototype.alert=wo(ke.alert);Zn.prototype.emerg=wo(ke.emerg);function wo(e){return function(t,n,r){let o;qf(e,pc.http,this)&&(o=Wd("log")),this.logImplementation(t,n,e,r,o)}}function yw(){return Ks?{}:{view:{referrer:document.referrer,url:window.location.href}}}const tq=32*oa;function nq(e,t){e.usePciIntake===!0&&e.site&&e.site!=="datadoghq.com"&&St.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const n=q8(e,t),r=_w(e.forwardConsoleLogs,Hf(Rt),"Forward Console Logs"),o=_w(e.forwardReports,Hf(Vf),"Forward Reports");if(!(!n||!r||!o))return e.forwardErrorsToLogs&&!r.includes(Rt.error)&&r.push(Rt.error),{forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:r,forwardReports:o,requestErrorResponseLengthLimit:tq,...n}}function _w(e,t,n){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(r=>t.includes(r)))){St.error(`${n} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:cG(e)}function rq(e){const t=K8(e);return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function oq(e,t,n){const r=HG(),o=kA();uh(o,Wt.globalContext,r);const s=xA();uh(s,Wt.accountContext,r);const i=CA();uh(i,Wt.userContext,r);let a,l;const c=t.observable.subscribe(u);function u(){if(!l||!a||!t.isGranted())return;c.unsubscribe();const f=n(a,l);r.drain(f)}return{init(f,d){if(!f){St.error("Missing configuration");return}if(Vz(f.enableExperimentalFeatures),Gf()&&(f=sq(f)),a=f,sG(rq(f)),l){tA("DD_LOGS",f);return}const p=nq(f,d);p&&(l=p,EA().subscribe(Xo),t.tryToInit(p.trackingConsent),u())},get initConfiguration(){return a},globalContext:o,accountContext:s,userContext:i,getInternalContext:Xo,handleLog(f,d,p,g=e(),h=bo()){r.add(y=>y.handleLog(f,d,p,g,h))}}}function sq(e){return{...e,clientToken:"empty"}}function iq(e){const t=C8(),n=JG().observable;let r=oq(yw,t,(a,l)=>{const c=e(l,yw,t,n);return r=aq(a,c),c});const o=()=>r,s={},i=new Zn((...a)=>r.handleLog(...a));return E6({logger:i,init:a=>{const l=new Error().stack;ia(()=>r.init(a,l))},setTrackingConsent:wt(a=>{t.update(a),iG({feature:"set-tracking-consent",tracking_consent:a})}),getGlobalContext:pn(o,Wt.globalContext,hn.getContext),setGlobalContext:pn(o,Wt.globalContext,hn.setContext),setGlobalContextProperty:pn(o,Wt.globalContext,hn.setContextProperty),removeGlobalContextProperty:pn(o,Wt.globalContext,hn.removeContextProperty),clearGlobalContext:pn(o,Wt.globalContext,hn.clearContext),createLogger:wt((a,l={})=>(s[a]=new Zn((...c)=>r.handleLog(...c),go(a),l.handler,l.level,go(l.context)),s[a])),getLogger:wt(a=>s[a]),getInitConfiguration:wt(()=>aA(r.initConfiguration)),getInternalContext:wt(a=>r.getInternalContext(a)),setUser:pn(o,Wt.userContext,hn.setContext),getUser:pn(o,Wt.userContext,hn.getContext),setUserProperty:pn(o,Wt.userContext,hn.setContextProperty),removeUserProperty:pn(o,Wt.userContext,hn.removeContextProperty),clearUser:pn(o,Wt.userContext,hn.clearContext),setAccount:pn(o,Wt.accountContext,hn.setContext),getAccount:pn(o,Wt.accountContext,hn.getContext),setAccountProperty:pn(o,Wt.accountContext,hn.setContextProperty),removeAccountProperty:pn(o,Wt.accountContext,hn.removeContextProperty),clearAccount:pn(o,Wt.accountContext,hn.clearContext)})}function aq(e,t){return{init:n=>{tA("DD_LOGS",n)},initConfiguration:e,...t}}const lq="logs";function cq(e,t){const n=wG(e,lq,r=>TA(e,r),t);return{findTrackedSession:(r,o={returnInactive:!1})=>{const s=n.findSession(r,o);return s&&s.trackingType==="1"?{id:s.id,anonymousId:s.anonymousId}:void 0},expireObservable:n.expireObservable}}function uq(e){const n=TA(e)==="1"?{}:void 0;return{findTrackedSession:()=>n,expireObservable:new Et}}function TA(e,t){return fq(t)?t:ol(e.sessionSampleRate)?"1":"0"}function fq(e){return e==="0"||e==="1"}function dq(e,t,n,r,o){const s=eq.concat(["custom"]),i={};s.forEach(a=>{i[a]=AG(a,e.eventRateLimiterThreshold,o)}),t.subscribe(0,({rawLogsEvent:a,messageContext:l=void 0,savedCommonContext:c=void 0,domainContext:u,ddtags:f=[]})=>{var d,p;const g=Lz(a.date),h=c||r(),y=n.triggerHook(0,{startTime:g});if(y===fa)return;const m=oA(e),b=Zs({view:h.view},y,a,l,{ddtags:m.concat(f).join(",")});((d=e.beforeSend)===null||d===void 0?void 0:d.call(e,b,u))===!1||b.origin!==Un.AGENT&&((p=i[b.status])!==null&&p!==void 0?p:i.custom).isLimitReached()||t.notify(1,b)})}const pq={[Rt.log]:ke.info,[Rt.debug]:ke.debug,[Rt.info]:ke.info,[Rt.warn]:ke.warn,[Rt.error]:ke.error};function hq(e,t){const n=$G(e.forwardConsoleLogs).subscribe(r=>{var o;const s={rawLogsEvent:{date:bo(),message:r.message,origin:Un.CONSOLE,error:r.error&&Gd(r.error),status:pq[r.api]},messageContext:(o=r.error)===null||o===void 0?void 0:o.context,domainContext:{handlingStack:r.handlingStack}};t.notify(0,s)});return{stop:()=>{n.unsubscribe()}}}function gq(e,t){const n=k6(e,e.forwardReports).subscribe(r=>{let o=r.message,s;const i=r.originalError.type==="deprecation"?ke.warn:ke.error;i===ke.error?s=Gd(r):r.stack&&(o+=` Found in ${_6(r.stack)}`),t.notify(0,{rawLogsEvent:{date:bo(),message:o,origin:Un.REPORT,error:s,status:i}})});return{stop:()=>{n.unsubscribe()}}}function mq(e,t){if(!e.forwardErrorsToLogs)return{stop:Xo};const n=(Ks?new Et:IG(e)).subscribe(s=>{s.state==="complete"&&o(Xg.XHR,s)}),r=EA().subscribe(s=>{s.state==="resolve"&&o(Xg.FETCH,s)});function o(s,i){!z8(i.url)&&(bq(i)||lA(i.status))&&("xhr"in i?yq(i.xhr,e,a):i.response?vq(i.response,e,a):i.error&&_q(i.error,e,a));function a(l){const c={isAborted:i.isAborted,handlingStack:i.handlingStack};t.notify(0,{rawLogsEvent:{message:`${wq(s)} error ${i.method} ${i.url}`,date:i.startClocks.timeStamp,error:{stack:l||"Failed to load",handling:void 0},http:{method:i.method,status_code:i.status,url:i.url},status:ke.error,origin:Un.NETWORK},domainContext:c})}}return{stop:()=>{n.unsubscribe(),r.unsubscribe()}}}function yq(e,t,n){typeof e.response=="string"?n(jy(e.response,t)):n(e.response)}function _q(e,t,n){n(jy(Ea(Sa(e)),t))}function vq(e,t,n){const r=M6(e);!r||!r.body?n():window.TextDecoder?Sq(r.body,t.requestErrorResponseLengthLimit,(o,s)=>{n(o?`Unable to retrieve response: ${o}`:s)}):r.text().then(wt(o=>n(jy(o,t))),wt(o=>n(`Unable to retrieve response: ${o}`)))}function bq(e){return e.status===0&&e.responseType!=="opaque"}function jy(e,t){return e.length>t.requestErrorResponseLengthLimit?`${e.substring(0,t.requestErrorResponseLengthLimit)}...`:e}function wq(e){return Xg.XHR===e?"XHR":"Fetch"}function Sq(e,t,n){ZG(e,(r,o,s)=>{if(r)n(r);else{let i=new TextDecoder().decode(o);s&&(i+="..."),n(void 0,i)}},{bytesLimit:t})}function Eq(e,t,n){if(!e.forwardErrorsToLogs)return{stop:Xo};const r=n.subscribe(o=>{if(o.type===0){const s=o.error;t.notify(0,{rawLogsEvent:{message:s.message,date:s.startClocks.timeStamp,error:Gd(s),origin:Un.SOURCE,status:ke.error},messageContext:s.context})}});return{stop:()=>{r.unsubscribe()}}}const xq=TG;function kq(e){function t(n,r,o,s,i){const a=Zs(r.getContext(),n.context);if(qf(n.status,pc.console,r)&&Tq(n,a),qf(n.status,pc.http,r)){const l={rawLogsEvent:{date:i||bo(),message:n.message,status:n.status,origin:Un.LOGGER},messageContext:a,savedCommonContext:s,ddtags:r.getTags()};o&&(l.domainContext={handlingStack:o}),e.notify(0,l)}}return{handleLog:t}}const Cq={[ke.ok]:Rt.debug,[ke.debug]:Rt.debug,[ke.info]:Rt.info,[ke.notice]:Rt.info,[ke.warn]:Rt.warn,[ke.error]:Rt.error,[ke.critical]:Rt.error,[ke.alert]:Rt.error,[ke.emerg]:Rt.error};function Tq({status:e,message:t},n){vs[Cq[e]].call(Rr,t,n)}function Aq(e,t,n,r,o){const s=[e.logsEndpointBuilder];e.replica&&s.push(e.replica.logsEndpointBuilder);const i=yA({encoder:SA(),request:mA(s,e.batchBytesLimit,n),flushController:_A({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:o.expireObservable}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(1,a=>{i.add(a)}),i}function Iq(e){const t=Dy();e.subscribe(1,n=>{t.send("log",n)})}function Oq(e){return{get:t=>{const n=e.findTrackedSession(t);if(n)return{session_id:n.id}}}}function Rq(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:Un.AGENT,status:ke.error}}),$y("Error reported to customer",{"error.message":t.message})}}const Lq=Y6;function Pq(e){const t=mr;e.register(0,({startTime:o})=>{const s=n(o);return s||Xs}),e.register(1,({startTime:o})=>{var s,i;const a=n(o);return a?{application:{id:a.application_id},view:{id:(s=a.view)===null||s===void 0?void 0:s.id},action:{id:(i=a.user_action)===null||i===void 0?void 0:i.id}}:Xs});function n(o){const i=bA()?t.DD_RUM_SYNTHETICS:t.DD_RUM,a=r(o,i);if(a)return a}function r(o,s){if(s&&s.getInternalContext)return s.getInternalContext(o)}}function Nq(e,t,n){e.register(0,({startTime:r})=>{const o=n.findTrackedSession(r);return n.findTrackedSession(r,{returnInactive:!0})?{service:t.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:fa}),e.register(1,({startTime:r})=>{const o=n.findTrackedSession(r);return!o||!o.id?Xs:{session:{id:o.id}}})}function Mq(e,t){function n(){return t.isGranted()?Xs:fa}e.register(0,n),e.register(1,n)}const fh="logs";function Dq(e,t,n,r){const o=new xq,s=Lq(),i=[];o.subscribe(1,y=>iA("logs",y));const a=Rq(o),l=Ks?new Et:q6(e),c=Q6("browser-logs-sdk",e,s,a,l,SA);i.push(c.stop);const u=e.sessionStoreStrategyType&&!Gf()&&!bA()?cq(e,n):uq(e);Mq(s,n),Nq(s,e,u);const f=qG(s,e,fh),d=YG(s,e,u,fh),p=KG(s,e,fh);Pq(s),mq(e,o),Eq(e,o,r),r.unbuffer(),hq(e,o),gq(e,o);const{handleLog:g}=kq(o);if(dq(e,o,s,t,a),Gf())Iq(o);else{const{stop:y}=Aq(e,o,a,l,u);i.push(()=>y())}const h=Oq(u);return{handleLog:g,getInternalContext:h.get,accountContext:f,globalContext:p,userContext:d,stop:()=>{i.forEach(y=>y())}}}const Jg=iq(Dq);x6(br(),"DD_LOGS",Jg);function $q(e){pm(()=>{const t=it(),n=t.public.datadogSite||"us3.datadoghq.com";Jg.init({clientToken:"pubc8593913151c3de3f3d832c73b59ffa8",site:n,env:"production",version:t.public.datadogVersion||"unknown",forwardErrorsToLogs:!0,sessionSampleRate:.01,...e}),Jg.logger.setLevel("warn")})}const Fq=""+new URL("one_news_logo.B36a5Azn.svg",import.meta.url).href,Uq=""+new URL("one_news_logo_dark.DmBixRSb.svg",import.meta.url).href,vw=R.enum(["Automotive","Business","Entertainment","Food","Health","Lifestyle","Money","News","Politics","Science","Shopping","Sports","Technology","Travel"]).catch("News");function jq(){const e=bD("history",{initialValue:{category:"News",lang:void 0}});Rn(()=>{vw.safeParse(e.category).success||(e.category="News")});const t=ue(vw.parse(e.category));Oe(t,r=>{e.category=r});const n=ue(e.lang);return Oe(n,r=>{Array.isArray(r)?e.lang=r[0]:e.lang=r},{immediate:!0}),{selectedCategory:t,selectedLang:n}}const bw=R.string().regex(/^[A-Za-z]{2}(-([A-Za-z]{2})){0,1}$/).transform(e=>({language:e.split("-")[0].toLowerCase(),country:e.includes("-")?e.split("-")[1].toUpperCase():""})),Bq=R.string().regex(/^[a-z]{2}$/,"Invalid language code"),Hq=R.string().regex(/^[A-Z]{2}$/,"Invalid country code"),ww={en:"US",es:"MX",fr:"FR",pt:"BR",de:"DE",it:"IT",pl:"PL",tr:"TR",ca:"ES",ko:"KR",uk:"UA",da:"DK",sv:"SE",no:"NO",hi:"IN",ja:"JP",tl:"PH",th:"TH",id:"ID",vi:"VN",ur:"PK",cs:"CZ",he:"IL",sw:"KE",bn:"BD",ro:"RO",hu:"HU",el:"GR",nl:"NL",ar:"AE",ta:"SG"},Vq=bc("locale",()=>{const e=ue(void 0),t=ue(void 0),{selectedLang:n}=jq(),r=J(()=>Array.isArray(n.value)?l(n.value)??e.value??"en":a(n.value??"")??e.value??"en"),o=J(()=>{if(!n.value)return t.value??"US"}),s=p=>{if(!p)return"";const g=bw.safeParse(p);return g.success?g.data.country:""},i=p=>{if(!p)return"";const g=bw.safeParse(p);return g.success?g.data.language:""},a=p=>{const g=i(p),h=Bq.safeParse(g);return h.success?h.data:void 0},l=p=>{for(const g of p)if(a(g))return a(g)},c=p=>{for(const g of p){const h=s(g);if(h){const m=Hq.safeParse(h);if(m.success)return m.data;continue}const y=a(g);if(y)return u(void 0,y)}},u=(p,g)=>p||(ww[g??"en"]??ww.en);Oe(()=>n.value,p=>{if(!p){n.value=void 0;return}const g=Array.isArray(p)?l(p):a(p);n.value=g},{immediate:!0});const f=l(navigator.languages);e.value=f;const d=c(navigator.languages);return t.value=u(d,f),window.addEventListener("languagechange",()=>{const p=l(navigator.languages),g=c(navigator.languages);e.value=p,t.value=g}),{locale:r,country:o}});function Wq(e){function t(o,s){Oe(o,(i,a)=>{if(i!==a){const l=document==null?void 0:document.head.querySelector(`link[rel="${s}"]`);l&&(l.href=i)}},{immediate:!0})}const n=Ax(),r=J(()=>{const o=e();return{ico:`${it().app.cdnURL}/${o}.ico`,svg:`${it().app.cdnURL}/${o}.svg`,png96x96:`${it().app.cdnURL}/${o}-96x96.png`,png180x180:`${it().app.cdnURL}/${o}-180x180.png`}});return Fs({link:[{rel:"shortcut icon",type:"image/x-icon",href:r.value.ico},{rel:"alternate icon",type:"image/svg+xml",href:r.value.svg},{rel:"icon",sizes:"96x96",href:r.value.png96x96},{rel:"apple-touch-icon",sizes:"180x180",href:r.value.png180x180}]}),t(()=>r.value.ico,"shortcut icon"),t(()=>r.value.svg,"alternate icon"),t(()=>r.value.png96x96,"icon"),t(()=>r.value.png180x180,"apple-touch-icon"),{isDark:n,favicon:r}}const zq=R.object({doodle:R.union([R.literal("off"),R.literal("on"),R.literal("random")]),design:R.optional(R.union([R.literal("google"),R.literal("msn")])),searchboxDesign:R.optional(R.union([R.literal("default"),R.literal("v2"),R.literal("v2-big-yolo"),R.literal("v3")])),searchSuggestionType:R.optional(R.union([R.literal("simple"),R.literal("rich")])),aboveFoldSectionShown:R.optional(R.union([R.literal("LargeCardWithGridSection"),R.literal("HalfPageAdWithGridSection"),R.literal("ContentNewsMixSection"),R.literal("ContentNewsMixWithKeywordSection"),R.literal("CarouselWithGridSection"),R.literal("GamesSection"),R.literal("CategoryMixSection"),R.literal("FiveColumn2x2Card")]))}),Sw=R.object({homePage:R.optional(zq.partial())}),Gq=Od({defaults:Sw.parse({homePage:{doodle:"off",design:"msn",searchboxDesign:"default",searchSuggestionType:"simple",aboveFoldSectionShown:void 0}}),configStoreKey:"layoutSettings",schema:e=>Sw.parse(e)}),dh=R.object({y:R.number(),x:R.number(),classes:R.string()}),qq=R.object({billboardAdClasses:R.object({widgetId:R.string().optional(),classes:R.string().optional()}),billboardAdSize:R.optional(R.union([R.literal("small"),R.literal("medium"),R.literal("large")])),grid3:R.array(dh),grid2:R.array(dh),grid1:R.array(dh)}),Kq=R.object({provider:R.union([R.literal("affinity"),R.literal("admarketplace"),R.literal("off")]),tilesCount:R.number().default(5),design:R.union([R.literal("msn"),R.literal("google")]).optional(),variant:R.union([R.literal("default"),R.literal("circle"),R.literal("large-primary"),R.literal("large-secondary")]).optional()}),Yq=R.object({provider:R.union([R.literal("affinity"),R.literal("admarketplace")]),tilesCount:R.number().default(5)}),Zq=R.object({provider:R.literal("direct"),name:R.string(),image_url:R.string(),click_url:R.string(),impression_url:R.string()}),Xq=R.object({tilesProvider:R.array(R.union([Yq,Zq])),design:R.union([R.literal("msn"),R.literal("google")]).optional(),variant:R.union([R.literal("default"),R.literal("circle"),R.literal("large-primary"),R.literal("large-secondary")]).optional()}),Ew=R.object({sponsoredTiles:R.optional(Kq),dynamicSponsoredTiles:R.optional(Xq),aboveFoldSectionAds:R.optional(qq),aboveFoldSectionLeaderboardAd:R.union([R.literal("testsection_leader"),R.literal("testsection_leader"),R.literal("testsection_leader"),R.literal("")]).default("").optional(),enableSubtleGreyAdBackground:R.boolean().optional()}),Jq=Od({defaults:Ew.parse({sponsoredTiles:{provider:"off",tilesCount:5},dynamicSponsoredTiles:void 0,aboveFoldSectionAds:void 0,aboveFoldSectionLeaderboardAd:"",enableSubtleGreyAdBackground:!1}),configStoreKey:"adSettings",schema:e=>Ew.parse(e)}),Qq=bc("app:layoutSettings",()=>{const e=ue({siteName:"",articlePageUrl:"",homePageUrl:"",tabCategories:[],videoPageUrl:"",headerLogo:"",headerLogoDarkMode:"",tagline:"",footerBrandName:""}),t=mk(r=>{e.value={...e.value,...r}}),n=J(()=>e.value);return{setup:t,settings:n}}),e9=At({__name:"app",async setup(e){let t,n;const r=Gq(),o=Rd(),s=Jq();[t,n]=bS(()=>Promise.all([r.initialized,o.initialized,s.initialized])),await t,n();function i(){const m=ti();return["/contact","/privacy-policy","/terms"].includes(m.path)}Fs({htmlAttrs:{lang:"en",class:"bg-background-default dark:bg-background-neutral-subtle"},link:[{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto&display=swap"}],meta:[{name:"apple-mobile-web-app-title",content:"OneNews"}]});const a=()=>{const{onelaunch:m}=Xn();return!!m},l=()=>window.location.hostname.includes("shiftntp.com"),c=dk(),u=Ax();function f(){const m=u.value?"-dark":"-light";return a()?c?`home-favicon${m}`:`search-favicon${m}`:l()?`shift-favicon${m}`:"onenews-favicon"}Wq(f),xz();const{setLocale:d}=Td();Rn(()=>{const m=Jk();i()&&(m.value="light")});{const{locale:m}=Vq();d(m.toLowerCase())}const p=[{id:"News",label:"News"},{id:"Sports",label:"Sports"},{id:"Politics",label:"Politics"},{id:"Entertainment",label:"Entertainment"},{id:"Money",label:"Money"},{id:"Lifestyle",label:"Lifestyle"},{id:"Technology",label:"Technology"},{id:"Food",label:"Food"},{id:"Travel",label:"Travel"},{id:"Health",label:"Health"},{id:"Automotive",label:"Automotive"},{id:"Shopping",label:"Shopping"},{id:"Weather",label:"Weather",disableSelection:!0,onClick:g}];function g(){window.open("https://www.accuweather.com/en/ca/woburn/m1h/current-weather/3394003?lang=en-us&partner=web_onelaunch_ntp_adc","_blank").focus()}const{urls:h,siteName:y}=jr();return Qq().setup({siteName:y,homePageUrl:h.home,articlePageUrl:h.article,videoPageUrl:h.video,tabCategories:p,headerLogo:a()?void 0:Fq,headerLogoDarkMode:a()?void 0:Uq}),$q({service:"onenews"}),(m,b)=>{const _=DW,v=Ez;return me(),_t(bt,null,[st(_),st(v)],64)}}}),t9={key:0,class:"h-screen flex justify-center items-center"},n9=At({__name:"error",props:{error:{}},setup(e){const t=e;return pm(()=>{var n;((n=t.error)==null?void 0:n.statusCode)===404&&Oo({path:"/"})}),(n,r)=>{var o;return((o=t.error)==null?void 0:o.statusCode)!==404?(me(),_t("div",t9," An error occured. Please retry! ")):Zt("",!0)}}}),r9={key:0},xw={__name:"nuxt-root",setup(e){const t=()=>null,n=Ae(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Bt().beforeEach(l)}const o=!1;Is(_c,ti()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=fd(),i=!1;yS((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),SE(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Ro(l)),!1});const a=!1;return(l,c)=>(me(),ut(US,{onResolve:He(r)},{default:Ms(()=>[He(i)?(me(),_t("div",r9)):He(s)?(me(),ut(He(n9),{key:1,error:He(s)},null,8,["error"])):He(a)?(me(),ut(He(t),{key:2,context:He(a)},null,8,["context"])):He(o)?(me(),ut(nd(He(o)),{key:3})):(me(),ut(He(e9),{key:4}))]),_:1},8,["onResolve"]))}};let kw;{let e;kw=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?cR(xw):lR(xw),o=v1({vueApp:r});async function s(l){var c;await o.callHook("app:error",l),(c=o.payload).error||(c.error=dd(l))}r.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)});try{await S1(o,NW)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(m1),await o.hooks.callHook("app:mounted",r),await qn()}catch(l){s(l)}return r},e=kw().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{JM as $,Gs as A,Oe as B,kf as C,p9 as D,r4 as E,bt as F,Tx as G,qk as H,Ms as I,ut as J,Jq as K,bS as L,wc as M,fr as N,s9 as O,kl as P,Qs as Q,Ut as R,Is as S,rd as T,fo as U,Tt as V,qn as W,Jt as X,Me as Y,or as Z,oi as _,Do as a,US as a$,nd as a0,Ec as a1,_T as a2,ba as a3,jd as a4,Js as a5,vE as a6,pz as a7,qi as a8,zn as a9,Rd as aA,L9 as aB,R as aC,Rx as aD,l4 as aE,d9 as aF,q5 as aG,WI as aH,it as aI,Qf as aJ,N9 as aK,G5 as aL,p4 as aM,N5 as aN,Gq as aO,I9 as aP,Ba as aQ,Ml as aR,RB as aS,Xn as aT,Oo as aU,Ae as aV,_c as aW,S9 as aX,Zc as aY,_9 as aZ,BP as a_,$n as aa,C9 as ab,o$ as ac,M9 as ad,p_ as ae,Pr as af,an as ag,ZS as ah,Ns as ai,a9 as aj,ti as ak,Bt as al,Vq as am,ri as an,Qq as ao,jq as ap,w9 as aq,ed as ar,Yt as as,NB as at,tH as au,Rb as av,ei as aw,_B as ax,Z3 as ay,ni as az,pm as b,en as b$,T1 as b0,r_ as b1,kh as b2,Od as b3,c9 as b4,u9 as b5,gy as b6,WB as b7,VB as b8,LB as b9,EN as bA,IB as bB,pD as bC,P9 as bD,Zk as bE,RI as bF,z5 as bG,X5 as bH,O9 as bI,ST as bJ,yD as bK,T9 as bL,GB as bM,yf as bN,B_ as bO,yr as bP,fE as bQ,m9 as bR,SR as bS,GI as bT,cp as bU,Ev as bV,bu as bW,b9 as bX,v9 as bY,pa as bZ,dd as b_,_s as ba,R9 as bb,jr as bc,E5 as bd,f9 as be,Z2 as bf,E9 as bg,RM as bh,qN as bi,x9 as bj,Rk as bk,Ub as bl,bk as bm,yk as bn,pH as bo,Qr as bp,Wl as bq,os as br,no as bs,mk as bt,bc as bu,ja as bv,dD as bw,y9 as bx,A9 as by,S5 as bz,_t as c,mH as c0,hH as c1,_H as c2,Ck as c3,bB as c4,$C as c5,At as d,J as e,l9 as f,Zt as g,st as h,i9 as i,He as j,g9 as k,pt as l,qe as m,Qe as n,me as o,Rl as p,Gu as q,ue as r,t4 as s,jo as t,Td as u,h9 as v,k9 as w,Rn as x,Fs as y,fD as z}; //# sourceMappingURL=BAe7EGbR.js.map