const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dgp0e_3q.js","./BrPZVoDq.js","./Ds-6ZzRM.js","./BnGGHa1v.js","./g.CetD1WXK.css","./PLzpxQ9O.js","./SoIgbjxj.js","./D22-bEz0.js","./CHXCg2eT.js","./7Ml1LtlQ.js","./BLH_OBOE.js","./BggMdrb2.js","./ChsfnU9-.js","./Cx-ogmwj.js","./C0l823qg.js","./CXTHb4Mv.js","./CGD_hogd.js","./Bj3V8prO.js","./C2QoSNKl.js","./Carousel.tAEy4inf.css","./CR_Sbphy.js","./x_rD_Ya3.js","./QQ53i8ul.js","./yiA2mt7r.js","./Cqm-gRhl.js","./CRIv_3Mb.js","./DoAm4039.js","./kZokfpnf.js","./CWCCt2Fj.js","./BKCk5aHh.js","./DIQUumz7.js","./CvPX6Edy.js","./CZ5j6Ozl.js","./s-Fxp0OZ.js","./DNlNnH_d.js","./Searchbox.7Ue5gL_5.css","./ChDc3MlU.js","./DzwfMJml.js","./D1EyIeOU.js","./B9Df_MAj.js","./Footer.oLHHz4Eu.css","./CbQ8BK8a.js","./MrJh-iyU.js","./Button.BVzTBofY.css","./CTASection.DHDfQRBd.css","./index.HzTonhft.css","./w49wgYEH.js","./1Iel0pSd.js","./CApL3HJT.js","./B8hOeIwB.js","./index.C7_FIYXD.css","./gJ6LTyCE.js","./By6FdrPX.js","./BWqm3rX3.js","./index.ClrJKV1S.css","./BMEanQmH.js","./2wtErE0T.js","./IconCSS.CeFK9RwE.css","./BJHthMZE.js","./custom.C44L-8sj.css","./BYVrZbGq.js"])))=>i.map(i=>d[i]); var AA=Object.defineProperty;var Yy=e=>{throw TypeError(e)};var IA=(e,t,r)=>t in e?AA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rr=(e,t,r)=>IA(e,typeof t!="symbol"?t+"":t,r),OA=(e,t,r)=>t.has(e)||Yy("Cannot "+r);var Sa=(e,t,r)=>(OA(e,t,"read from private field"),r?r.call(e):t.get(e)),Zy=(e,t,r)=>t.has(e)?Yy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const s=r(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 Kg(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Ge={},Ii=[],an=()=>{},RA=()=>!1,uc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Yg=e=>e.startsWith("onUpdate:"),jt=Object.assign,Zg=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},LA=Object.prototype.hasOwnProperty,Ze=(e,t)=>LA.call(e,t),he=Array.isArray,Oi=e=>fc(e)==="[object Map]",ww=e=>fc(e)==="[object Set]",PA=e=>fc(e)==="[object RegExp]",ye=e=>typeof e=="function",ft=e=>typeof e=="string",go=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",Xg=e=>(at(e)||ye(e))&&ye(e.then)&&ye(e.catch),Sw=Object.prototype.toString,fc=e=>Sw.call(e),NA=e=>fc(e).slice(8,-1),Ew=e=>fc(e)==="[object Object]",Jg=e=>ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ri=Kg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wf=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},MA=/-(\w)/g,Mr=Wf(e=>e.replace(MA,(t,r)=>r?r.toUpperCase():"")),DA=/\B([A-Z])/g,mo=Wf(e=>e.replace(DA,"-$1").toLowerCase()),zf=Wf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wd=Wf(e=>e?`on${zf(e)}`:""),Cr=(e,t)=>!Object.is(e,t),Li=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},ch=e=>{const t=parseFloat(e);return isNaN(t)?e:t},kw=e=>{const t=ft(e)?Number(e):NaN;return isNaN(t)?e:t};let Xy;const Gf=()=>Xy||(Xy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rs(e){if(he(e)){const t={};for(let r=0;r{if(r){const n=r.split(FA);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Qe(e){let t="";if(ft(e))t=e;else if(he(e))for(let r=0;r!!(e&&e.__v_isRef===!0),Fo=e=>ft(e)?e:e==null?"":he(e)||at(e)&&(e.toString===Sw||!ye(e.toString))?Cw(e)?Fo(e.value):JSON.stringify(e,Aw,2):String(e),Aw=(e,t)=>Cw(t)?Aw(e,t.value):Oi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],s)=>(r[zd(n,s)+" =>"]=o,r),{})}:ww(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>zd(r))}:go(t)?zd(t):at(t)&&!he(t)&&!Ew(t)?String(t):t,zd=(e,t="")=>{var r;return go(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let mr;class Iw{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mr,!t&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(rl){let t=rl;for(rl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;tl;){let t=tl;for(tl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Pw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Nw(e){let t,r=e.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),tm(n),VA(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=r}function uh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Mw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Mw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Sl))return;e.globalVersion=Sl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!uh(e)){e.flags&=-3;return}const r=ot,n=ln;ot=e,ln=!0;try{Pw(e);const o=e.fn(e._value);(t.version===0||Cr(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=r,ln=n,Nw(e),e.flags&=-3}}function tm(e,t=!1){const{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let s=r.computed.deps;s;s=s.nextDep)tm(s,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function VA(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ln=!0;const Dw=[];function Xo(){Dw.push(ln),ln=!1}function Jo(){const e=Dw.pop();ln=e===void 0?!0:e}function Qy(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=ot;ot=void 0;try{t()}finally{ot=r}}}let Sl=0;class WA{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qf{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||!ln||ot===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==ot)r=this.activeLink=new WA(ot,this),ot.deps?(r.prevDep=ot.depsTail,ot.depsTail.nextDep=r,ot.depsTail=r):ot.deps=ot.depsTail=r,$w(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=ot.depsTail,r.nextDep=void 0,ot.depsTail.nextDep=r,ot.depsTail=r,ot.deps===r&&(ot.deps=n)}return r}trigger(t){this.version++,Sl++,this.notify(t)}notify(t){Qg();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{em()}}}function $w(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)$w(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const $u=new WeakMap,xs=Symbol(""),fh=Symbol(""),El=Symbol("");function or(e,t,r){if(ln&&ot){let n=$u.get(e);n||$u.set(e,n=new Map);let o=n.get(r);o||(n.set(r,o=new qf),o.map=n,o.key=r),o.track()}}function eo(e,t,r,n,o,s){const i=$u.get(e);if(!i){Sl++;return}const a=l=>{l&&l.trigger()};if(Qg(),t==="clear")i.forEach(a);else{const l=he(e),c=l&&Jg(r);if(l&&r==="length"){const u=Number(n);i.forEach((f,d)=>{(d==="length"||d===El||!go(d)&&d>=u)&&a(f)})}else switch((r!==void 0||i.has(void 0))&&a(i.get(r)),c&&a(i.get(El)),t){case"add":l?c&&a(i.get("length")):(a(i.get(xs)),Oi(e)&&a(i.get(fh)));break;case"delete":l||(a(i.get(xs)),Oi(e)&&a(i.get(fh)));break;case"set":Oi(e)&&a(i.get(xs));break}}em()}function zA(e,t){const r=$u.get(e);return r&&r.get(t)}function ii(e){const t=Me(e);return t===e?t:(or(t,"iterate",El),zr(e)?t:t.map(sr))}function Kf(e){return or(e=Me(e),"iterate",El),e}const GA={__proto__:null,[Symbol.iterator](){return qd(this,Symbol.iterator,sr)},concat(...e){return ii(this).concat(...e.map(t=>he(t)?ii(t):t))},entries(){return qd(this,"entries",e=>(e[1]=sr(e[1]),e))},every(e,t){return Vn(this,"every",e,t,void 0,arguments)},filter(e,t){return Vn(this,"filter",e,t,r=>r.map(sr),arguments)},find(e,t){return Vn(this,"find",e,t,sr,arguments)},findIndex(e,t){return Vn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vn(this,"findLast",e,t,sr,arguments)},findLastIndex(e,t){return Vn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kd(this,"includes",e)},indexOf(...e){return Kd(this,"indexOf",e)},join(e){return ii(this).join(e)},lastIndexOf(...e){return Kd(this,"lastIndexOf",e)},map(e,t){return Vn(this,"map",e,t,void 0,arguments)},pop(){return Ea(this,"pop")},push(...e){return Ea(this,"push",e)},reduce(e,...t){return e_(this,"reduce",e,t)},reduceRight(e,...t){return e_(this,"reduceRight",e,t)},shift(){return Ea(this,"shift")},some(e,t){return Vn(this,"some",e,t,void 0,arguments)},splice(...e){return Ea(this,"splice",e)},toReversed(){return ii(this).toReversed()},toSorted(e){return ii(this).toSorted(e)},toSpliced(...e){return ii(this).toSpliced(...e)},unshift(...e){return Ea(this,"unshift",e)},values(){return qd(this,"values",sr)}};function qd(e,t,r){const n=Kf(e),o=n[t]();return n!==e&&!zr(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=r(s.value)),s}),o}const qA=Array.prototype;function Vn(e,t,r,n,o,s){const i=Kf(e),a=i!==e&&!zr(e),l=i[t];if(l!==qA[t]){const f=l.apply(e,s);return a?sr(f):f}let c=r;i!==e&&(a?c=function(f,d){return r.call(this,sr(f),d,e)}:r.length>2&&(c=function(f,d){return r.call(this,f,d,e)}));const u=l.call(i,c,n);return a&&o?o(u):u}function e_(e,t,r,n){const o=Kf(e);let s=r;return o!==e&&(zr(e)?r.length>3&&(s=function(i,a,l){return r.call(this,i,a,l,e)}):s=function(i,a,l){return r.call(this,i,sr(a),l,e)}),o[t](s,...n)}function Kd(e,t,r){const n=Me(e);or(n,"iterate",El);const o=n[t](...r);return(o===-1||o===!1)&&om(r[0])?(r[0]=Me(r[0]),n[t](...r)):o}function Ea(e,t,r=[]){Xo(),Qg();const n=Me(e)[t].apply(e,r);return em(),Jo(),n}const KA=Kg("__proto__,__v_isRef,__isVue"),Fw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(go));function YA(e){go(e)||(e=String(e));const t=Me(this);return or(t,"has",e),t.hasOwnProperty(e)}class Uw{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(o?s?sI:Vw:s?Hw:Bw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=he(t);if(!o){let l;if(i&&(l=GA[r]))return l;if(r==="hasOwnProperty")return YA}const a=Reflect.get(t,r,qe(t)?t:n);return(go(r)?Fw.has(r):KA(r))||(o||or(t,"get",r),s)?a:qe(a)?i&&Jg(r)?a:a.value:at(a)?o?Yf(a):Jt(a):a}}class jw extends Uw{constructor(t=!1){super(!1,t)}set(t,r,n,o){let s=t[r];if(!this._isShallow){const l=Ho(s);if(!zr(n)&&!Ho(n)&&(s=Me(s),n=Me(n)),!he(t)&&qe(s)&&!qe(n))return l?!1:(s.value=n,!0)}const i=he(t)&&Jg(r)?Number(r)e,Pc=e=>Reflect.getPrototypeOf(e);function eI(e,t,r){return function(...n){const o=this.__v_raw,s=Me(o),i=Oi(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...n),u=r?dh:t?ph:sr;return!t&&or(s,"iterate",l?fh:xs),{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 Nc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tI(e,t){const r={get(o){const s=this.__v_raw,i=Me(s),a=Me(o);e||(Cr(o,a)&&or(i,"get",o),or(i,"get",a));const{has:l}=Pc(i),c=t?dh:e?ph:sr;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&&or(Me(o),"iterate",xs),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Me(s),a=Me(o);return e||(Cr(o,a)&&or(i,"has",o),or(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?dh:e?ph:sr;return!e&&or(l,"iterate",xs),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return jt(r,e?{add:Nc("add"),set:Nc("set"),delete:Nc("delete"),clear:Nc("clear")}:{add(o){!t&&!zr(o)&&!Ho(o)&&(o=Me(o));const s=Me(this);return Pc(s).has.call(s,o)||(s.add(o),eo(s,"add",o,o)),this},set(o,s){!t&&!zr(s)&&!Ho(s)&&(s=Me(s));const i=Me(this),{has:a,get:l}=Pc(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?Cr(s,u)&&eo(i,"set",o,s):eo(i,"add",o,s),this},delete(o){const s=Me(this),{has:i,get:a}=Pc(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=>{r[o]=eI(o,e,t)}),r}function rm(e,t){const r=tI(e,t);return(n,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Ze(r,o)&&o in n?r:n,o,s)}const rI={get:rm(!1,!1)},nI={get:rm(!1,!0)},oI={get:rm(!0,!1)};const Bw=new WeakMap,Hw=new WeakMap,Vw=new WeakMap,sI=new WeakMap;function iI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aI(e){return e.__v_skip||!Object.isExtensible(e)?0:iI(NA(e))}function Jt(e){return Ho(e)?e:nm(e,!1,XA,rI,Bw)}function no(e){return nm(e,!1,QA,nI,Hw)}function Yf(e){return nm(e,!0,JA,oI,Vw)}function nm(e,t,r,n,o){if(!at(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=aI(e);if(i===0)return e;const a=new Proxy(e,i===2?n:r);return o.set(e,a),a}function Ln(e){return Ho(e)?Ln(e.__v_raw):!!(e&&e.__v_isReactive)}function Ho(e){return!!(e&&e.__v_isReadonly)}function zr(e){return!!(e&&e.__v_isShallow)}function om(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function sm(e){return!Ze(e,"__v_skip")&&Object.isExtensible(e)&&xw(e,"__v_skip",!0),e}const sr=e=>at(e)?Jt(e):e,ph=e=>at(e)?Yf(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function ue(e){return Ww(e,!1)}function fn(e){return Ww(e,!0)}function Ww(e,t){return qe(e)?e:new lI(e,t)}class lI{constructor(t,r){this.dep=new qf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Me(t),this._value=r?t:sr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||zr(t)||Ho(t);t=n?t:Me(t),Cr(t,r)&&(this._rawValue=t,this._value=n?t:sr(t),this.dep.trigger())}}function Kq(e){e.dep&&e.dep.trigger()}function He(e){return qe(e)?e.value:e}function mu(e){return ye(e)?e():He(e)}const cI={get:(e,t,r)=>t==="__v_raw"?e:He(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return qe(o)&&!qe(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function zw(e){return Ln(e)?e:new Proxy(e,cI)}class uI{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new qf,{get:n,set:o}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Gw(e){return new uI(e)}function fI(e){const t=he(e)?new Array(e.length):{};for(const r in e)t[r]=qw(e,r);return t}class dI{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,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 zA(Me(this._object),this._key)}}class pI{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 Zs(e,t,r){return qe(e)?e:ye(e)?new pI(e):at(e)&&arguments.length>1?qw(e,t,r):ue(e)}function qw(e,t,r){const n=e[t];return qe(n)?n:new dI(e,t,r)}class hI{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new qf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Sl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return Lw(this,!0),!0}get value(){const t=this.dep.track();return Mw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gI(e,t,r=!1){let n,o;return ye(e)?n=e:(n=e.get,o=e.set),new hI(n,o,r)}const Mc={},Fu=new WeakMap;let ds;function mI(e,t=!1,r=ds){if(r){let n=Fu.get(r);n||Fu.set(r,n=[]),n.push(e)}}function yI(e,t,r=Ge){const{immediate:n,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=r,c=v=>o?v:zr(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=zr(e)):Ln(e)?(f=()=>c(e),g=!0):he(e)?(h=!0,g=e.some(v=>Ln(v)||zr(v)),f=()=>e.map(v=>{if(qe(v))return v.value;if(Ln(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){Xo();try{d()}finally{Jo()}}const v=ds;ds=u;try{return l?l(e,3,[p]):e(p)}finally{ds=v}}:f=an,t&&o){const v=f,S=o===!0?1/0:o;f=()=>to(v(),S)}const y=ca(),m=()=>{u.stop(),y&&y.active&&Zg(y.effects,u)};if(s&&t){const v=t;t=(...S)=>{v(...S),m()}}let b=h?new Array(e.length).fill(Mc):Mc;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const S=u.run();if(o||g||(h?S.some((E,x)=>Cr(E,b[x])):Cr(S,b))){d&&d();const E=ds;ds=u;try{const x=[S,b===Mc?void 0:h&&b[0]===Mc?[]:b,p];l?l(t,3,x):t(...x),b=S}finally{ds=E}}}else u.run()};return a&&a(_),u=new Ow(f),u.scheduler=i?()=>i(_,!1):_,p=v=>mI(v,!1,u),d=u.onStop=()=>{const v=Fu.get(u);if(v){if(l)l(v,4);else for(const S of v)S();Fu.delete(u)}},t?n?_(!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,r){if(t<=0||!at(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,qe(e))to(e.value,t,r);else if(he(e))for(let n=0;n{to(n,t,r)});else if(Ew(e)){for(const n in e)to(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&to(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function dc(e,t,r,n){try{return n?e(...n):e()}catch(o){ua(o,t,r)}}function dn(e,t,r,n){if(ye(e)){const o=dc(e,t,r,n);return o&&Xg(o)&&o.catch(s=>{ua(s,t,r)}),o}if(he(e)){const o=[];for(let s=0;s>>1,o=yr[n],s=xl(o);s=xl(r)?yr.push(e):yr.splice(vI(t),0,e),e.flags|=1,Yw()}}function Yw(){Uu||(Uu=Kw.then(Zw))}function ju(e){he(e)?Pi.push(...e):To&&e.id===-1?To.splice(pi+1,0,e):e.flags&1||(Pi.push(e),e.flags|=1),Yw()}function t_(e,t,r=An+1){for(;rxl(r)-xl(n));if(Pi.length=0,To){To.push(...t);return}for(To=t,pi=0;pie.id==null?e.flags&2?-1:1/0:e.id;function Zw(e){try{for(An=0;An{n._d&&m_(-1);const s=Hu(t);let i;try{i=e(...o)}finally{Hu(s),n._d&&m_(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Yq(e,t){if(Ft===null)return e;const r=nd(Ft),n=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,nl=e=>e&&(e.disabled||e.disabled===""),r_=e=>e&&(e.defer||e.defer===""),n_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,o_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,hh=(e,t)=>{const r=e&&e.to;return ft(r)?t?t(r):null:r},eS={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:h,createComment:y}}=c,m=nl(t.props);let{shapeFlag:b,children:_,dynamicChildren:v}=t;if(e==null){const S=t.el=h(""),E=t.anchor=h("");p(S,r,n),p(E,r,n);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=hh(t.props,g),O=tS(I,t,h,p);I&&(i!=="svg"&&n_(I)?i="svg":i!=="mathml"&&o_(I)&&(i="mathml"),m||(x(I,O),yu(t,!1)))};m&&(x(r,E),yu(t,!0)),r_(t.props)?Mt(()=>{N(),t.el.__isMounted=!0},s):N()}else{if(r_(t.props)&&!e.el.__isMounted){Mt(()=>{eS.process(e,t,r,n,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=nl(e.props),I=N?r:E,O=N?S:x;if(i==="svg"||n_(E)?i="svg":(i==="mathml"||o_(E))&&(i="mathml"),v?(d(e.dynamicChildren,v,I,o,s,i,a),dm(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):Dc(t,r,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=hh(t.props,g);U&&Dc(t,U,null,c,0)}else N&&Dc(t,E,x,c,1);yu(t,m)}},remove(e,t,r,{um:n,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||!nl(d);for(let g=0;g{e.isMounted=!0}),fa(()=>{e.isUnmounting=!0}),e}const Ur=[Function,Array],rS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ur,onEnter:Ur,onAfterEnter:Ur,onEnterCancelled:Ur,onBeforeLeave:Ur,onLeave:Ur,onAfterLeave:Ur,onLeaveCancelled:Ur,onBeforeAppear:Ur,onAppear:Ur,onAfterAppear:Ur,onAppearCancelled:Ur},nS=e=>{const t=e.subTree;return t.component?nS(t.component):t},EI={name:"BaseTransition",props:rS,setup(e,{slots:t}){const r=er(),n=SI();return()=>{const o=t.default&&iS(t.default(),!0);if(!o||!o.length)return;const s=oS(o),i=Me(e),{mode:a}=i;if(n.isLeaving)return Yd(s);const l=s_(s);if(!l)return Yd(s);let c=gh(l,i,n,r,f=>c=f);l.type!==Dt&&Ui(l,c);let u=r.subTree&&s_(r.subTree);if(u&&u.type!==Dt&&!rn(l,u)&&nS(r).type!==Dt){let f=gh(u,i,n,r);if(Ui(u,f),a==="out-in"&&l.type!==Dt)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,u=void 0},Yd(s);a==="in-out"&&l.type!==Dt?f.delayLeave=(d,p,g)=>{const h=sS(n,u);h[String(u.key)]=u,d[Co]=()=>{p(),d[Co]=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 oS(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Dt){t=r;break}}return t}const xI=EI;function sS(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function gh(e,t,r,n,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=sS(r,e),E=(I,O)=>{I&&dn(I,n,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(!r.isMounted)if(s)O=y||l;else return;I[Co]&&I[Co](!0);const U=S[v];U&&rn(e,U)&&U.el[Co]&&U.el[Co](),E(O,[I])},enter(I){let O=c,U=u,L=f;if(!r.isMounted)if(s)O=m||c,U=b||u,L=_||f;else return;let G=!1;const oe=I[$c]=ce=>{G||(G=!0,ce?E(L,[I]):E(U,[I]),N.delayedLeave&&N.delayedLeave(),I[$c]=void 0)};O?x(O,[I,oe]):oe()},leave(I,O){const U=String(e.key);if(I[$c]&&I[$c](!0),r.isUnmounting)return O();E(d,[I]);let L=!1;const G=I[Co]=oe=>{L||(L=!0,O(),oe?E(h,[I]):E(g,[I]),I[Co]=void 0,S[U]===e&&delete S[U])};S[U]=e,p?x(p,[I,G]):G()},clone(I){const O=gh(I,t,r,n,o);return o&&o(O),O}};return N}function Yd(e){if(pc(e))return e=uo(e),e.children=null,e}function s_(e){if(!pc(e))return Qw(e.type)&&e.children?oS(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&ye(r.default))return r.default()}}function Ui(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ui(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 iS(e,t=!1,r){let n=[],o=0;for(let s=0;s1)for(let s=0;sr.value,set:s=>r.value=s})}return r}function kl(e,t,r,n,o=!1){if(he(e)){e.forEach((g,h)=>kl(g,t&&(he(t)?t[h]:t),r,n,o));return}if(Uo(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kl(e,t,r,n.component.subTree);return}const s=n.shapeFlag&4?nd(n.component):n.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))dc(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)&&Zg(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,r)):y()}}}let i_=!1;const ai=()=>{i_||(console.error("Hydration completed but contains mismatches."),i_=!0)},TI=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",CI=e=>e.namespaceURI.includes("MathML"),Fc=e=>{if(e.nodeType===1){if(TI(e))return"svg";if(CI(e))return"mathml"}},wi=e=>e.nodeType===8;function AI(e){const{mt:t,p:r,o:{patchProp:n,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(_,v)=>{if(!v.hasChildNodes()){r(null,_,v),Bu(),v._vnode=_;return}f(v.firstChild,_,null,null,null),Bu(),v._vnode=_},f=(_,v,S,E,x,N=!1)=>{N=N||!!v.dynamicChildren;const I=wi(_)&&_.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 jo:ce!==3?v.children===""?(l(v.el=o(""),i(_),_),q=_):q=O():(_.data!==v.children&&(ai(),_.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 Mi:if(I&&(_=s(_),ce=_.nodeType),ce===1||ce===3){q=_;const re=!v.children.length;for(let ne=0;ne{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&&In(v,null,S,"created");let q=!1;if(b(_)){q=IS(null,oe)&&S&&S.vnode.props&&S.vnode.props.appear;const ne=_.content.firstChild;q&&oe.beforeEnter(ne),m(ne,_,S),v.el=_=ne}if(L&16&&!(O&&(O.innerHTML||O.textContent))){let ne=p(_.firstChild,v,_,S,E,x,N);for(;ne;){Uc(_,1)||ai();const Se=ne;ne=ne.nextSibling,a(Se)}}else if(L&8){let ne=v.children;ne[0]===` `&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(ne=ne.slice(1)),_.textContent!==ne&&(Uc(_,0)||ai(),_.textContent=v.children)}if(O){if(ce||!N||U&48){const ne=_.tagName.includes("-");for(const Se in O)(ce&&(Se.endsWith("value")||Se==="indeterminate")||uc(Se)&&!Ri(Se)||Se[0]==="."||ne)&&n(_,Se,null,O[Se],void 0,S)}else if(O.onClick)n(_,"onClick",null,O.onClick,void 0,S);else if(U&4&&Ln(O.style))for(const ne in O.style)O.style[ne]}let re;(re=O&&O.onVnodeBeforeMount)&&Tr(re,S,v),G&&In(v,null,S,"beforeMount"),((re=O&&O.onVnodeMounted)||G||q)&&DS(()=>{re&&Tr(re,S,v),q&&oe.enter(_),G&&In(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&&wi(U)&&U.data==="]"?s(v.anchor=U):(ai(),l(v.anchor=c("]"),O,U),U)},h=(_,v,S,E,x,N)=>{if(Uc(_.parentElement,1)||ai(),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(_),r(null,v,O,I,S,E,Fc(O),x),S&&(S.vnode.el=v.el,rd(S,v.el)),I},y=(_,v="[",S="]")=>{let E=0;for(;_;)if(_=s(_),_&&wi(_)&&(_.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 a_="data-allow-mismatch",II={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Uc(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(a_);)e=e.parentElement;const r=e&&e.getAttribute(a_);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(II[t])}}Gf().requestIdleCallback;Gf().cancelIdleCallback;function OI(e,t){if(wi(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(wi(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const Uo=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Zf(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,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,_=>OI(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(am(g),u)return()=>Zd(u,g);const h=_=>{c=null,ua(_,g,13,!n)};if(a&&g.suspense||Bi)return p().then(_=>()=>Zd(_,g)).catch(_=>(h(_),()=>n?st(n,{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&&pc(g.parent.vnode)&&g.parent.update()}).catch(_=>{h(_),m.value=_}),()=>{if(y.value&&u)return Zd(u,g);if(m.value&&n)return st(n,{error:m.value});if(r&&!b.value)return st(r)}}})}function Zd(e,t){const{ref:r,props:n,children:o,ce:s}=t.vnode,i=st(e,n,o);return i.ref=r,i.ce=s,delete t.vnode.ce,i}const pc=e=>e.type.__isKeepAlive,RI={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=er(),n=r.ctx;if(!n.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=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=n,d=f("div");n.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&&Li(x.a);const N=b.props&&b.props.onVnodeMounted;N&&Tr(N,x.parent,b)},a)},n.deactivate=b=>{const _=b.component;Gu(_.m),Gu(_.a),c(b,d,null,1,a),Mt(()=>{_.da&&Li(_.da);const v=b.props&&b.props.onVnodeUnmounted;v&&Tr(v,_.parent,b),_.isDeactivated=!0},a)};function p(b){Xd(b),u(b,r,a,!0)}function g(b){o.forEach((_,v)=>{const S=kh(_.type);S&&!b(S)&&h(v)})}function h(b){const _=o.get(b);_&&(!i||!rn(_,i))?p(_):i&&Xd(i),o.delete(b),s.delete(b)}Oe(()=>[e.include,e.exclude],([b,_])=>{b&&g(v=>Ka(b,v)),_&&g(v=>!Ka(_,v))},{flush:"post",deep:!0});let y=null;const m=()=>{y!=null&&(qu(r.subTree.type)?Mt(()=>{o.set(y,jc(r.subTree))},r.subTree.suspense):o.set(y,jc(r.subTree)))};return Or(m),fS(m),fa(()=>{o.forEach(b=>{const{subTree:_,suspense:v}=r,S=jc(_);if(b.type===S.type&&b.key===S.key){Xd(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(!Ps(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return i=null,_;let v=jc(_);if(v.type===Dt)return i=null,v;const S=v.type,E=kh(Uo(v)?v.type.__asyncResolved||{}:S),{include:x,exclude:N,max:I}=e;if(x&&(!E||!Ka(x,E))||N&&E&&Ka(N,E))return v.shapeFlag&=-257,i=v,_;const O=v.key==null?S:v.key,U=o.get(O);return v.el&&(v=uo(v),_.shapeFlag&128&&(_.ssContent=v)),y=O,U?(v.el=U.el,v.component=U.component,v.transition&&Ui(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,qu(_.type)?_:v}}},LI=RI;function Ka(e,t){return he(e)?e.some(r=>Ka(r,t)):ft(e)?e.split(",").includes(t):PA(e)?(e.lastIndex=0,e.test(t)):!1}function aS(e,t){cS(e,"a",t)}function lS(e,t){cS(e,"da",t)}function cS(e,t,r=$t){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xf(t,n,r),r){let o=r.parent;for(;o&&o.parent;)pc(o.parent.vnode)&&PI(n,t,r,o),o=o.parent}}function PI(e,t,r,n){const o=Xf(t,e,n,!0);Xs(()=>{Zg(n[t],o)},r)}function Xd(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function jc(e){return e.shapeFlag&128?e.ssContent:e}function Xf(e,t,r=$t,n=!1){if(r){const o=r[e]||(r[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Xo();const a=Ns(r),l=dn(t,r,e,i);return a(),Jo(),l});return n?o.unshift(s):o.push(s),s}}const yo=e=>(t,r=$t)=>{(!Bi||e==="sp")&&Xf(e,(...n)=>t(...n),r)},lm=yo("bm"),Or=yo("m"),uS=yo("bu"),fS=yo("u"),fa=yo("bum"),Xs=yo("um"),NI=yo("sp"),MI=yo("rtg"),DI=yo("rtc");function dS(e,t=$t){Xf("ec",e,t)}const cm="components",$I="directives";function l_(e,t){return um(cm,e,!0,t)||e}const pS=Symbol.for("v-ndc");function Jf(e){return ft(e)?um(cm,e,!1)||e:e||pS}function Xq(e){return um($I,e)}function um(e,t,r=!0,n=!1){const o=Ft||$t;if(o){const s=o.type;if(e===cm){const a=kh(s,!1);if(a&&(a===t||a===Mr(t)||a===zf(Mr(t))))return s}const i=c_(o[e]||s[e],t)||c_(o.appContext[e],t);return!i&&n?s:i}}function c_(e,t){return e&&(e[t]||e[Mr(t)]||e[zf(Mr(t))])}function Vu(e,t,r,n){let o;const s=r,i=he(e);if(i||ft(e)){const a=i&&Ln(e);let l=!1;a&&(l=!zr(e),e=Kf(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=n.fn(...o);return s&&(s.key=n.key),s}:n.fn)}return e}function Pn(e,t,r={},n,o){if(Ft.ce||Ft.parent&&Uo(Ft.parent)&&Ft.parent.ce)return t!=="default"&&(r.name=t),me(),ut(bt,null,[st("slot",r,n&&n())],64);let s=e[t];s&&s._c&&(s._d=!1),me();const i=s&&hS(s(r)),a=r.key||i&&i.key,l=ut(bt,{key:(a&&!go(a)?a:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function hS(e){return e.some(t=>Ps(t)?!(t.type===Dt||t.type===bt&&!hS(t.children)):!0)?e:null}const mh=e=>e?jS(e)?nd(e):mh(e.parent):null,ol=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=>mh(e.parent),$root:e=>mh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yS(e),$forceUpdate:e=>e.f||(e.f=()=>{im(e.update)}),$nextTick:e=>e.n||(e.n=Gr.bind(e.proxy)),$watch:e=>aO.bind(e)}),Jd=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Ze(e,t),UI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,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 n[t];case 2:return o[t];case 4:return r[t];case 3:return s[t]}else{if(Jd(n,t))return i[t]=1,n[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(r!==Ge&&Ze(r,t))return i[t]=4,r[t];yh&&(i[t]=0)}}const u=ol[t];let f,d;if(u)return t==="$attrs"&&or(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(r!==Ge&&Ze(r,t))return i[t]=4,r[t];if(d=l.config.globalProperties,Ze(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:s}=e;return Jd(o,t)?(o[t]=r,!0):n!==Ge&&Ze(n,t)?(n[t]=r,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:s}},i){let a;return!!r[i]||e!==Ge&&Ze(e,i)||Jd(t,i)||(a=s[0])&&Ze(a,i)||Ze(n,i)||Ze(ol,i)||Ze(o.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function jI(){return BI().attrs}function BI(){const e=er();return e.setupContext||(e.setupContext=HS(e))}function Wu(e){return he(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Jq(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):jt({},Wu(e),Wu(t))}function gS(e){const t=er();let r=e();return Eh(),Xg(r)&&(r=r.catch(n=>{throw Ns(t),n})),[r,()=>Ns(t)]}let yh=!0;function HI(e){const t=yS(e),r=e.proxy,n=e.ctx;yh=!1,t.beforeCreate&&u_(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&&VI(c,n,null),i)for(const re in i){const ne=i[re];ye(ne)&&(n[re]=ne.bind(r))}if(o){const re=o.call(r,r);at(re)&&(e.data=Jt(re))}if(yh=!0,s)for(const re in s){const ne=s[re],Se=ye(ne)?ne.bind(r,r):ye(ne.get)?ne.get.bind(r,r):an,lt=!ye(ne)&&ye(ne.set)?ne.set.bind(r):an,be=J({get:Se,set:lt});Object.defineProperty(n,re,{enumerable:!0,configurable:!0,get:()=>be.value,set:We=>be.value=We})}if(a)for(const re in a)mS(a[re],n,r,re);if(l){const re=ye(l)?l.call(r):l;Reflect.ownKeys(re).forEach(ne=>{Ts(ne,re[ne])})}u&&u_(u,e,"c");function q(re,ne){he(ne)?ne.forEach(Se=>re(Se.bind(r))):ne&&re(ne.bind(r))}if(q(lm,f),q(Or,d),q(uS,p),q(fS,g),q(aS,h),q(lS,y),q(dS,N),q(DI,E),q(MI,x),q(fa,b),q(Xs,v),q(NI,I),he(O))if(O.length){const re=e.exposed||(e.exposed={});O.forEach(ne=>{Object.defineProperty(re,ne,{get:()=>r[ne],set:Se=>r[ne]=Se})})}else e.exposed||(e.exposed={});S&&e.render===an&&(e.render=S),U!=null&&(e.inheritAttrs=U),L&&(e.components=L),G&&(e.directives=G),I&&am(e)}function VI(e,t,r=an){he(e)&&(e=_h(e));for(const n in e){const o=e[n];let s;at(o)?"default"in o?s=Ut(o.from||n,o.default,!0):s=Ut(o.from||n):s=Ut(o),qe(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[n]=s}}function u_(e,t,r){dn(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function mS(e,t,r,n){let o=n.includes(".")?RS(r,n):()=>r[n];if(ft(e)){const s=t[e];ye(s)&&Oe(o,s)}else if(ye(e))Oe(o,e.bind(r));else if(at(e))if(he(e))e.forEach(s=>mS(s,t,r,n));else{const s=ye(e.handler)?e.handler.bind(r):t[e.handler];ye(s)&&Oe(o,s,e)}}function yS(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(c=>zu(l,c,i,!0)),zu(l,t,i)),at(t)&&s.set(t,l),l}function zu(e,t,r,n=!1){const{mixins:o,extends:s}=t;s&&zu(e,s,r,!0),o&&o.forEach(i=>zu(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const a=WI[i]||r&&r[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const WI={data:f_,props:d_,emits:d_,methods:Ya,computed:Ya,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:Ya,directives:Ya,watch:GI,provide:f_,inject:zI};function f_(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 zI(e,t){return Ya(_h(e),_h(t))}function _h(e){if(he(e)){const t={};for(let r=0;r1)return r&&ye(t)?t.call(n&&n.proxy):t}}function da(){return!!($t||Ft||ks)}const vS={},bS=()=>Object.create(vS),wS=e=>Object.getPrototypeOf(e)===vS;function YI(e,t,r,n=!1){const o={},s=bS();e.propsDefaults=Object.create(null),SS(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);r?e.props=n?o:no(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function ZI(e,t,r,n){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Me(o),[l]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=ES(f,t,!0);jt(i,d),p&&a.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return at(e)&&n.set(e,Ii),Ii;if(he(s))for(let u=0;ue[0]==="_"||e==="$stable",fm=e=>he(e)?e.map(Pr):[Pr(e)],JI=(e,t,r)=>{if(t._n)return t;const n=Ls((...o)=>fm(t(...o)),r);return n._c=!1,n},kS=(e,t,r)=>{const n=e._ctx;for(const o in e){if(xS(o))continue;const s=e[o];if(ye(s))t[o]=JI(o,s,n);else if(s!=null){const i=fm(s);t[o]=()=>i}}},TS=(e,t)=>{const r=fm(t);e.slots.default=()=>r},CS=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},QI=(e,t,r)=>{const n=e.slots=bS();if(e.vnode.shapeFlag&32){const o=t._;o?(CS(n,t,r),r&&xw(n,"_",o,!0)):kS(t,n)}else t&&TS(e,t)},eO=(e,t,r)=>{const{vnode:n,slots:o}=e;let s=!0,i=Ge;if(n.shapeFlag&32){const a=t._;a?r&&a===1?s=!1:CS(o,t,r):(s=!t.$stable,kS(t,o)),i=t}else t&&(TS(e,t),i={default:1});if(s)for(const a in o)!xS(a)&&i[a]==null&&delete o[a]},Mt=DS;function tO(e){return AS(e)}function rO(e){return AS(e,AI)}function AS(e,t){const r=Gf();r.__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=an,insertStaticContent:g}=e,h=(T,A,$,B=null,H=null,k=null,C=void 0,D=null,j=!!A.dynamicChildren)=>{if(T===A)return;T&&!rn(T,A)&&(B=W(T),We(T,H,k,!0),T=null),A.patchFlag===-2&&(j=!1,A.dynamicChildren=null);const{type:z,ref:K,shapeFlag:P}=A;switch(z){case jo:y(T,A,$,B);break;case Dt:m(T,A,$,B);break;case Mi:T==null&&b(A,$,B,C);break;case bt:L(T,A,$,B,H,k,C,D,j);break;default:P&1?S(T,A,$,B,H,k,C,D,j):P&6?G(T,A,$,B,H,k,C,D,j):(P&64||P&128)&&z.process(T,A,$,B,H,k,C,D,j,ie)}K!=null&&H&&kl(K,T&&T.ref,k,A||T,!A)},y=(T,A,$,B)=>{if(T==null)n(A.el=a(A.children),$,B);else{const H=A.el=T.el;A.children!==T.children&&c(H,A.children)}},m=(T,A,$,B)=>{T==null?n(A.el=l(A.children||""),$,B):A.el=T.el},b=(T,A,$,B)=>{[T.el,T.anchor]=g(T.children,A,$,B,T.el,T.anchor)},_=({el:T,anchor:A},$,B)=>{let H;for(;T&&T!==A;)H=d(T),n(T,$,B),T=H;n(A,$,B)},v=({el:T,anchor:A})=>{let $;for(;T&&T!==A;)$=d(T),o(T),T=$;o(A)},S=(T,A,$,B,H,k,C,D,j)=>{A.type==="svg"?C="svg":A.type==="math"&&(C="mathml"),T==null?E(A,$,B,H,k,C,D,j):I(T,A,H,k,C,D,j)},E=(T,A,$,B,H,k,C,D)=>{let j,z;const{props:K,shapeFlag:P,transition:F,dirs:ee}=T;if(j=T.el=i(T.type,k,K&&K.is,K),P&8?u(j,T.children):P&16&&N(T.children,j,null,B,H,Qd(T,k),C,D),ee&&In(T,null,B,"created"),x(j,T,T.scopeId,C,B),K){for(const Le in K)Le!=="value"&&!Ri(Le)&&s(j,Le,null,K[Le],k,B);"value"in K&&s(j,"value",null,K.value,k),(z=K.onVnodeBeforeMount)&&Tr(z,B,T)}ee&&In(T,null,B,"beforeMount");const de=IS(H,F);de&&F.beforeEnter(j),n(j,A,$),((z=K&&K.onVnodeMounted)||de||ee)&&Mt(()=>{z&&Tr(z,B,T),de&&F.enter(j),ee&&In(T,null,B,"mounted")},H)},x=(T,A,$,B,H)=>{if($&&p(T,$),B)for(let k=0;k{for(let z=j;z{const D=A.el=T.el;let{patchFlag:j,dynamicChildren:z,dirs:K}=A;j|=T.patchFlag&16;const P=T.props||Ge,F=A.props||Ge;let ee;if($&&as($,!1),(ee=F.onVnodeBeforeUpdate)&&Tr(ee,$,A,T),K&&In(A,T,$,"beforeUpdate"),$&&as($,!0),(P.innerHTML&&F.innerHTML==null||P.textContent&&F.textContent==null)&&u(D,""),z?O(T.dynamicChildren,z,D,$,B,Qd(A,H),k):C||ne(T,A,D,null,$,B,Qd(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&&Tr(ee,$,A,T),K&&In(A,T,$,"updated")},B)},O=(T,A,$,B,H,k,C)=>{for(let D=0;D{if(A!==$){if(A!==Ge)for(const k in A)!Ri(k)&&!(k in $)&&s(T,k,A[k],null,H,B);for(const k in $){if(Ri(k))continue;const C=$[k],D=A[k];C!==D&&k!=="value"&&s(T,k,D,C,H,B)}"value"in $&&s(T,"value",A.value,$.value,H)}},L=(T,A,$,B,H,k,C,D,j)=>{const z=A.el=T?T.el:a(""),K=A.anchor=T?T.anchor:a("");let{patchFlag:P,dynamicChildren:F,slotScopeIds:ee}=A;ee&&(D=D?D.concat(ee):ee),T==null?(n(z,$,B),n(K,$,B),N(A.children||[],$,K,H,k,C,D,j)):P>0&&P&64&&F&&T.dynamicChildren?(O(T.dynamicChildren,F,$,H,k,C,D),(A.key!=null||H&&A===H.subTree)&&dm(T,A,!0)):ne(T,A,$,K,H,k,C,D,j)},G=(T,A,$,B,H,k,C,D,j)=>{A.slotScopeIds=D,T==null?A.shapeFlag&512?H.ctx.activate(A,$,B,C,j):oe(A,$,B,H,k,C,j):ce(T,A,j)},oe=(T,A,$,B,H,k,C)=>{const D=T.component=SO(T,B,H);if(pc(T)&&(D.ctx.renderer=ie),EO(D,!1,C),D.asyncDep){if(H&&H.registerDep(D,q,C),!T.el){const j=D.subTree=st(Dt);m(null,j,A,$)}}else q(D,T,A,$,H,k,C)},ce=(T,A,$)=>{const B=A.component=T.component;if(dO(T,A,$))if(B.asyncDep&&!B.asyncResolved){re(B,A,$);return}else B.next=A,B.update();else A.el=T.el,B.vnode=A},q=(T,A,$,B,H,k,C)=>{const D=()=>{if(T.isMounted){let{next:P,bu:F,u:ee,parent:de,vnode:Le}=T;{const Ht=OS(T);if(Ht){P&&(P.el=Le.el,re(T,P,C)),Ht.asyncDep.then(()=>{T.isUnmounted||D()});return}}let Pe=P,ht;as(T,!1),P?(P.el=Le.el,re(T,P,C)):P=Le,F&&Li(F),(ht=P.props&&P.props.onVnodeBeforeUpdate)&&Tr(ht,de,P,Le),as(T,!0);const Tt=ep(T),Gt=T.subTree;T.subTree=Tt,h(Gt,Tt,f(Gt.el),W(Gt),T,H,k),P.el=Tt.el,Pe===null&&rd(T,Tt.el),ee&&Mt(ee,H),(ht=P.props&&P.props.onVnodeUpdated)&&Mt(()=>Tr(ht,de,P,Le),H)}else{let P;const{el:F,props:ee}=A,{bm:de,m:Le,parent:Pe,root:ht,type:Tt}=T,Gt=Uo(A);if(as(T,!1),de&&Li(de),!Gt&&(P=ee&&ee.onVnodeBeforeMount)&&Tr(P,Pe,A),as(T,!0),F&&we){const Ht=()=>{T.subTree=ep(T),we(F,T.subTree,T,H,null)};Gt&&Tt.__asyncHydrate?Tt.__asyncHydrate(F,T,Ht):Ht()}else{ht.ce&&ht.ce._injectChildStyle(Tt);const Ht=T.subTree=ep(T);h(null,Ht,$,B,T,H,k),A.el=Ht.el}if(Le&&Mt(Le,H),!Gt&&(P=ee&&ee.onVnodeMounted)){const Ht=A;Mt(()=>Tr(P,Pe,Ht),H)}(A.shapeFlag&256||Pe&&Uo(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&T.a&&Mt(T.a,H),T.isMounted=!0,A=$=B=null}};T.scope.on();const j=T.effect=new Ow(D);T.scope.off();const z=T.update=j.run.bind(j),K=T.job=j.runIfDirty.bind(j);K.i=T,K.id=T.uid,j.scheduler=()=>im(K),as(T,!0),z()},re=(T,A,$)=>{A.component=T;const B=T.vnode.props;T.vnode=A,T.next=null,ZI(T,A.props,B,$),eO(T,A.children,$),Xo(),t_(T),Jo()},ne=(T,A,$,B,H,k,C,D,j=!1)=>{const z=T&&T.children,K=T?T.shapeFlag:0,P=A.children,{patchFlag:F,shapeFlag:ee}=A;if(F>0){if(F&128){lt(z,P,$,B,H,k,C,D,j);return}else if(F&256){Se(z,P,$,B,H,k,C,D,j);return}}ee&8?(K&16&&pt(z,H,k),P!==z&&u($,P)):K&16?ee&16?lt(z,P,$,B,H,k,C,D,j):pt(z,H,k,!0):(K&8&&u($,""),ee&16&&N(P,$,B,H,k,C,D,j))},Se=(T,A,$,B,H,k,C,D,j)=>{T=T||Ii,A=A||Ii;const z=T.length,K=A.length,P=Math.min(z,K);let F;for(F=0;FK?pt(T,H,k,!0,!1,P):N(A,$,B,H,k,C,D,j,P)},lt=(T,A,$,B,H,k,C,D,j)=>{let z=0;const K=A.length;let P=T.length-1,F=K-1;for(;z<=P&&z<=F;){const ee=T[z],de=A[z]=j?Ao(A[z]):Pr(A[z]);if(rn(ee,de))h(ee,de,$,null,H,k,C,D,j);else break;z++}for(;z<=P&&z<=F;){const ee=T[P],de=A[F]=j?Ao(A[F]):Pr(A[F]);if(rn(ee,de))h(ee,de,$,null,H,k,C,D,j);else break;P--,F--}if(z>P){if(z<=F){const ee=F+1,de=eeF)for(;z<=P;)We(T[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?Ao(A[z]):Pr(A[z]);qt.key!=null&&Le.set(qt.key,z)}let Pe,ht=0;const Tt=F-de+1;let Gt=!1,Ht=0;const cr=new Array(Tt);for(z=0;z=Tt){We(qt,H,k,!0);continue}let Sr;if(qt.key!=null)Sr=Le.get(qt.key);else for(Pe=de;Pe<=F;Pe++)if(cr[Pe-de]===0&&rn(qt,A[Pe])){Sr=Pe;break}Sr===void 0?We(qt,H,k,!0):(cr[Sr-de]=z+1,Sr>=Ht?Ht=Sr:Gt=!0,h(qt,A[Sr],$,null,H,k,C,D,j),ht++)}const Bn=Gt?nO(cr):Ii;for(Pe=Bn.length-1,z=Tt-1;z>=0;z--){const qt=de+z,Sr=A[qt],Ic=qt+1{const{el:k,type:C,transition:D,children:j,shapeFlag:z}=T;if(z&6){be(T.component.subTree,A,$,B);return}if(z&128){T.suspense.move(A,$,B);return}if(z&64){C.move(T,A,$,ie);return}if(C===bt){n(k,A,$);for(let P=0;PD.enter(k),H);else{const{leave:P,delayLeave:F,afterLeave:ee}=D,de=()=>n(k,A,$),Le=()=>{P(k,()=>{de(),ee&&ee()})};F?F(k,de,Le):Le()}else n(k,A,$)},We=(T,A,$,B=!1,H=!1)=>{const{type:k,props:C,ref:D,children:j,dynamicChildren:z,shapeFlag:K,patchFlag:P,dirs:F,cacheIndex:ee}=T;if(P===-2&&(H=!1),D!=null&&kl(D,null,$,T,!0),ee!=null&&(A.renderCache[ee]=void 0),K&256){A.ctx.deactivate(T);return}const de=K&1&&F,Le=!Uo(T);let Pe;if(Le&&(Pe=C&&C.onVnodeBeforeUnmount)&&Tr(Pe,A,T),K&6)ze(T.component,$,B);else{if(K&128){T.suspense.unmount($,B);return}de&&In(T,null,A,"beforeUnmount"),K&64?T.type.remove(T,A,$,ie,B):z&&!z.hasOnce&&(k!==bt||P>0&&P&64)?pt(z,A,$,!1,!0):(k===bt&&P&384||!H&&K&16)&&pt(j,A,$),B&&je(T)}(Le&&(Pe=C&&C.onVnodeUnmounted)||de)&&Mt(()=>{Pe&&Tr(Pe,A,T),de&&In(T,null,A,"unmounted")},$)},je=T=>{const{type:A,el:$,anchor:B,transition:H}=T;if(A===bt){tr($,B);return}if(A===Mi){v(T);return}const k=()=>{o($),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(T.shapeFlag&1&&H&&!H.persisted){const{leave:C,delayLeave:D}=H,j=()=>C($,k);D?D(T.el,k,j):j()}else k()},tr=(T,A)=>{let $;for(;T!==A;)$=d(T),o(T),T=$;o(A)},ze=(T,A,$)=>{const{bum:B,scope:H,job:k,subTree:C,um:D,m:j,a:z}=T;Gu(j),Gu(z),B&&Li(B),H.stop(),k&&(k.flags|=8,We(C,T,A,$)),D&&Mt(D,A),Mt(()=>{T.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},pt=(T,A,$,B=!1,H=!1,k=0)=>{for(let C=k;C{if(T.shapeFlag&6)return W(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const A=d(T.anchor||T.el),$=A&&A[Jw];return $?d($):A};let Q=!1;const X=(T,A,$)=>{T==null?A._vnode&&We(A._vnode,null,null,!0):h(A._vnode||null,T,A,null,null,null,$),A._vnode=T,Q||(Q=!0,t_(),Bu(),Q=!1)},ie={p:h,um:We,m:be,r:je,mt:oe,mc:N,pc:ne,pbc:O,n:W,o:e};let te,we;return t&&([te,we]=t(ie)),{render:X,hydrate:te,createApp:KI(X,te)}}function Qd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function as({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function IS(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dm(e,t,r=!1){const n=e.children,o=t.children;if(he(n)&&he(o))for(let s=0;s>1,e[r[a]]0&&(t[n]=r[s-1]),r[s]=n)}}for(s=r.length,i=r[s-1];s-- >0;)r[s]=i,i=t[i];return r}function OS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:OS(t)}function Gu(e){if(e)for(let t=0;tUt(oO);function Qf(e,t){return ed(e,null,t)}function iO(e,t){return ed(e,null,{flush:"sync"})}function Oe(e,t,r){return ed(e,t,r)}function ed(e,t,r=Ge){const{immediate:n,deep:o,flush:s,once:i}=r,a=jt({},r),l=t&&n||!t&&s!=="post";let c;if(Bi){if(s==="sync"){const p=sO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=an,p.resume=an,p.pause=an,p}}const u=$t;a.call=(p,g,h)=>dn(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():im(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=yI(e,t,a);return Bi&&(c?c.push(d):l&&d()),d}function aO(e,t,r){const n=this.proxy,o=ft(e)?e.includes(".")?RS(n,e):()=>n[e]:e.bind(n,n);let s;ye(t)?s=t:(s=t.handler,r=t);const i=Ns(this),a=ed(o,s.bind(n),r);return i(),a}function RS(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{let u,f=Ge,d;return iO(()=>{const p=e[o];Cr(u,p)&&(u=p,c())}),{get(){return l(),r.get?r.get(u):u},set(p){const g=r.set?r.set(p):p;if(!Cr(g,u)&&!(f!==Ge&&Cr(p,f)))return;const h=n.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()),n.emit(`update:${t}`,g),Cr(p,g)&&Cr(p,f)&&!Cr(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 LS=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Mr(t)}Modifiers`]||e[`${mo(t)}Modifiers`];function lO(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ge;let o=r;const s=t.startsWith("update:"),i=s&&LS(n,t.slice(7));i&&(i.trim&&(o=r.map(u=>ft(u)?u.trim():u)),i.number&&(o=r.map(ch)));let a,l=n[a=Wd(t)]||n[a=Wd(Mr(t))];!l&&s&&(l=n[a=Wd(mo(t))]),l&&dn(l,e,6,o);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,dn(c,e,6,o)}}function PS(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ye(e)){const l=c=>{const u=PS(c,t,!0);u&&(a=!0,jt(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(at(e)&&n.set(e,null),null):(he(s)?s.forEach(l=>i[l]=null):jt(i,s),at(e)&&n.set(e,i),i)}function td(e,t){return!e||!uc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,mo(t))||Ze(e,t))}function ep(e){const{type:t,vnode:r,proxy:n,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=Hu(e);let m,b;try{if(r.shapeFlag&4){const v=o||n,S=v;m=Pr(c.call(S,v,u,f,p,d,g)),b=a}else{const v=t;m=Pr(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),b=t.props?a:uO(a)}}catch(v){sl.length=0,ua(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(Yg)&&(b=fO(b,s)),_=uo(_,b,!1,!0))}return r.dirs&&(_=uo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&Ui(_,r.transition),m=_,Hu(y),m}function cO(e,t=!0){let r;for(let n=0;n{let t;for(const r in e)(r==="class"||r==="style"||uc(r))&&((t||(t={}))[r]=e[r]);return t},fO=(e,t)=>{const r={};for(const n in e)(!Yg(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function dO(e,t,r){const{props:n,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?h_(n,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let bh=0;const pO={name:"Suspense",__isSuspense:!0,process(e,t,r,n,o,s,i,a,l,c){if(e==null)hO(t,r,n,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}gO(e,t,r,n,o,i,a,l,c)}},hydrate:mO,normalize:yO},NS=pO;function Tl(e,t){const r=e.props&&e.props[t];ye(r)&&r()}function hO(e,t,r,n,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=MS(e,o,n,t,f,r,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,n,d,s,i),d.deps>0?(Tl(e,"onPending"),Tl(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,s,i),Ni(d,e.ssFallback)):d.resolve(!1,!0)}function gO(e,t,r,n,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,rn(d,h)?(l(h,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(m||(l(g,p,r,n,o,null,s,i,a),Ni(f,p)))):(f.pendingId=bh++,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,r,n,o,null,s,i,a),Ni(f,p))):g&&rn(d,g)?(l(g,d,r,n,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&&rn(d,g))l(g,d,r,n,o,f,s,i,a),Ni(f,d);else if(Tl(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=bh++,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 MS(e,t,r,n,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=_O(e);b&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?kw(e.props.timeout):void 0,v=s,S={vnode:e,parent:t,parentComponent:r,namespace:i,container:n,hiddenContainer:o,deps:0,pendingId:bh++,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),ju(L))}),I&&(h(I.el)===oe&&(s=g(I)),p(I,G,S,!0)),ce||d(O,oe,s,0)),Ni(S,O),S.pendingBranch=null,S.isInFallback=!1;let q=S.parent,re=!1;for(;q;){if(q.pendingBranch){q.effects.push(...L),re=!0;break}q=q.parent}!re&&!ce&&ju(L),S.effects=[],b&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Tl(N,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:x,activeBranch:N,parentComponent:I,container:O,namespace:U}=S;Tl(x,"onFallback");const L=g(N),G=()=>{S.isInFallback&&(f(null,E,O,L,I,null,U,a,l),Ni(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=>{ua(U,E,0)}).then(U=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:L}=E;xh(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),rd(E,L.el),I&&--S.deps===0&&S.resolve()})},unmount(E,x){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,r,E,x),S.pendingBranch&&p(S.pendingBranch,r,E,x)}};return S}function mO(e,t,r,n,o,s,i,a,l){const c=t.suspense=MS(t,n,r,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function yO(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=g_(n?r.default:r),e.ssFallback=n?g_(r.fallback):st(Dt)}function g_(e){let t;if(ye(e)){const r=ji&&e._c;r&&(e._d=!1,me()),e=e(),r&&(e._d=!0,t=Ar,$S())}return he(e)&&(e=cO(e)),e=Pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function DS(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ju(e)}function Ni(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;r.el=o,n&&n.subTree===r&&(n.vnode.el=o,rd(n,o))}function _O(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const bt=Symbol.for("v-fgt"),jo=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),Mi=Symbol.for("v-stc"),sl=[];let Ar=null;function me(e=!1){sl.push(Ar=e?null:[])}function $S(){sl.pop(),Ar=sl[sl.length-1]||null}let ji=1;function m_(e,t=!1){ji+=e,e<0&&Ar&&t&&(Ar.hasOnce=!0)}function FS(e){return e.dynamicChildren=ji>0?Ar||Ii:null,$S(),ji>0&&Ar&&Ar.push(e),e}function _t(e,t,r,n,o,s){return FS(Mo(e,t,r,n,o,s,!0))}function ut(e,t,r,n,o){return FS(st(e,t,r,n,o,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const US=({key:e})=>e??null,_u=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?ft(e)||qe(e)||ye(e)?{i:Ft,r:e,k:t,f:!!r}:e:null);function Mo(e,t=null,r=null,n=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&&US(t),ref:t&&_u(t),scopeId:Xw,slotScopeIds:null,children:r,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:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ft};return a?(pm(l,r),s&128&&e.normalize(l)):r&&(l.shapeFlag|=ft(r)?8:16),ji>0&&!i&&Ar&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ar.push(l),l}const st=vO;function vO(e,t=null,r=null,n=0,o=null,s=!1){if((!e||e===pS)&&(e=Dt),Ps(e)){const a=uo(e,t,!0);return r&&pm(a,r),ji>0&&!s&&Ar&&(a.shapeFlag&6?Ar[Ar.indexOf(e)]=a:Ar.push(a)),a.patchFlag=-2,a}if(TO(e)&&(e=e.__vccOpts),t){t=wh(t);let{class:a,style:l}=t;a&&!ft(a)&&(t.class=Qe(a)),at(l)&&(om(l)&&!he(l)&&(l=jt({},l)),t.style=Rs(l))}const i=ft(e)?1:qu(e)?128:Qw(e)?64:at(e)?4:ye(e)?2:0;return Mo(e,t,r,n,o,i,s,!0)}function wh(e){return e?om(e)||wS(e)?jt({},e):e:null}function uo(e,t,r=!1,n=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?ir(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&US(c),ref:t&&t.ref?r&&s?he(s)?s.concat(_u(t)):[s,_u(t)]:_u(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&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Ui(u,l.clone(u)),u}function Cl(e=" ",t=0){return st(jo,null,e,t)}function e9(e,t){const r=st(Mi,null,e);return r.staticCount=t,r}function Zt(e="",t=!1){return t?(me(),ut(Dt,null,e)):st(Dt,null,e)}function Pr(e){return e==null||typeof e=="boolean"?st(Dt):he(e)?st(bt,null,e.slice()):Ps(e)?Ao(e):st(jo,null,String(e))}function Ao(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function pm(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),pm(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!wS(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},r=32):(t=String(t),n&64?(r=16,t=[Cl(t)]):r=8);e.children=t,e.shapeFlag|=r}function ir(...e){const t={};for(let r=0;r$t||Ft;let Ku,Sh;{const e=Gf(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Ku=t("__VUE_INSTANCE_SETTERS__",r=>$t=r),Sh=t("__VUE_SSR_SETTERS__",r=>Bi=r)}const Ns=e=>{const t=$t;return Ku(e),e.scope.on(),()=>{e.scope.off(),Ku(t)}},Eh=()=>{$t&&$t.scope.off(),Ku(null)};function jS(e){return e.vnode.shapeFlag&4}let Bi=!1;function EO(e,t=!1,r=!1){t&&Sh(t);const{props:n,children:o}=e.vnode,s=jS(e);YI(e,n,s,t),QI(e,o,r);const i=s?xO(e,t):void 0;return t&&Sh(!1),i}function xO(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,UI);const{setup:n}=r;if(n){Xo();const o=e.setupContext=n.length>1?HS(e):null,s=Ns(e),i=dc(n,e,0,[e.props,o]),a=Xg(i);if(Jo(),s(),(a||e.sp)&&!Uo(e)&&am(e),a){if(i.then(Eh,Eh),t)return i.then(l=>{xh(e,l)}).catch(l=>{ua(l,e,0)});e.asyncDep=i}else xh(e,i)}else BS(e)}function xh(e,t,r){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:at(t)&&(e.setupState=zw(t)),BS(e)}function BS(e,t,r){const n=e.type;e.render||(e.render=n.render||an);{const o=Ns(e);Xo();try{HI(e)}finally{Jo(),o()}}}const kO={get(e,t){return or(e,"get",""),e[t]}};function HS(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,kO),slots:e.slots,emit:e.emit,expose:t}}function nd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(zw(sm(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ol)return ol[r](e)},has(t,r){return r in t||r in ol}})):e.proxy}function kh(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function TO(e){return ye(e)&&"__vccOpts"in e}const J=(e,t)=>gI(e,t,Bi);function Ct(e,t,r){const n=arguments.length;return n===2?at(t)&&!he(t)?Ps(t)?st(e,null,[t]):st(e,t):st(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ps(r)&&(r=[r]),st(e,t,r))}const CO="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Th;const y_=typeof window<"u"&&window.trustedTypes;if(y_)try{Th=y_.createPolicy("vue",{createHTML:e=>e})}catch{}const VS=Th?e=>Th.createHTML(e):e=>e,AO="http://www.w3.org/2000/svg",IO="http://www.w3.org/1998/Math/MathML",Jn=typeof document<"u"?document:null,__=Jn&&Jn.createElement("template"),OO={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Jn.createElementNS(AO,e):t==="mathml"?Jn.createElementNS(IO,e):r?Jn.createElement(e,{is:r}):Jn.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Jn.createTextNode(e),createComment:e=>Jn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,s){const i=r?r.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===s||!(o=o.nextSibling)););else{__.innerHTML=VS(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=__.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},wo="transition",xa="animation",Al=Symbol("_vtc"),WS={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},RO=jt({},rS,WS),LO=e=>(e.displayName="Transition",e.props=RO,e),zS=LO((e,{slots:t})=>Ct(xI,PO(e),t)),ls=(e,t=[])=>{he(e)?e.forEach(r=>r(...t)):e&&e(...t)},v_=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function PO(e){const t={};for(const L in e)L in WS||(t[L]=e[L]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:s=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,g=NO(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,cs(L,G?u:a),cs(L,G?c:i),oe&&oe()},O=(L,G)=>{L._isLeaving=!1,cs(L,f),cs(L,p),cs(L,d),G&&G()},U=L=>(G,oe)=>{const ce=L?x:b,q=()=>I(G,L,oe);ls(ce,[G,q]),b_(()=>{cs(G,L?l:s),Wn(G,L?u:a),v_(ce)||w_(G,n,h,q)})};return jt(t,{onBeforeEnter(L){ls(m,[L]),Wn(L,s),Wn(L,i)},onBeforeAppear(L){ls(E,[L]),Wn(L,l),Wn(L,c)},onEnter:U(!1),onAppear:U(!0),onLeave(L,G){L._isLeaving=!0;const oe=()=>O(L,G);Wn(L,f),L._enterCancelled?(Wn(L,d),x_()):(x_(),Wn(L,d)),b_(()=>{L._isLeaving&&(cs(L,f),Wn(L,p),v_(v)||w_(L,n,y,oe))}),ls(v,[L,oe])},onEnterCancelled(L){I(L,!1,void 0,!0),ls(_,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),ls(N,[L])},onLeaveCancelled(L){O(L),ls(S,[L])}})}function NO(e){if(e==null)return null;if(at(e))return[tp(e.enter),tp(e.leave)];{const t=tp(e);return[t,t]}}function tp(e){return kw(e)}function Wn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Al]||(e[Al]=new Set)).add(t)}function cs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Al];r&&(r.delete(t),r.size||(e[Al]=void 0))}function b_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let MO=0;function w_(e,t,r,n){const o=e._endId=++MO,s=()=>{o===e._endId&&n()};if(r!=null)return setTimeout(s,r);const{type:i,timeout:a,propCount:l}=DO(e,t);if(!i)return n();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(r[g]||"").split(", "),o=n(`${wo}Delay`),s=n(`${wo}Duration`),i=S_(o,s),a=n(`${xa}Delay`),l=n(`${xa}Duration`),c=S_(a,l);let u=null,f=0,d=0;t===wo?i>0&&(u=wo,f=i,d=s.length):t===xa?c>0&&(u=xa,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?wo:xa:null,d=u?u===wo?s.length:l.length:0);const p=u===wo&&/\b(transform|all)(,|$)/.test(n(`${wo}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function S_(e,t){for(;e.lengthE_(r)+E_(e[n])))}function E_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function x_(){return document.body.offsetHeight}function $O(e,t,r){const n=e[Al];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Yu=Symbol("_vod"),GS=Symbol("_vsh"),t9={beforeMount(e,{value:t},{transition:r}){e[Yu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ka(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),ka(e,!0),n.enter(e)):n.leave(e,()=>{ka(e,!1)}):ka(e,t))},beforeUnmount(e,{value:t}){ka(e,t)}};function ka(e,t){e.style.display=t?e[Yu]:"none",e[GS]=!t}const qS=Symbol("");function r9(e){const t=er();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Zu(s,o))},n=()=>{const o=e(t.proxy);t.ce?Zu(t.ce,o):Ch(t.subTree,o),r(o)};uS(()=>{ju(n)}),Or(()=>{Oe(n,an,{flush:"post"});const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),Xs(()=>o.disconnect())})}function Ch(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Ch(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zu(e.el,t);else if(e.type===bt)e.children.forEach(r=>Ch(r,t));else if(e.type===Mi){let{el:r,anchor:n}=e;for(;r&&(Zu(r,t),r!==n);)r=r.nextSibling}}function Zu(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t)r.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;r[qS]=n}}const FO=/(^|;)\s*display\s*:/;function UO(e,t,r){const n=e.style,o=ft(r);let s=!1;if(r&&!o){if(t)if(ft(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();r[a]==null&&vu(n,a,"")}else for(const i in t)r[i]==null&&vu(n,i,"");for(const i in r)i==="display"&&(s=!0),vu(n,i,r[i])}else if(o){if(t!==r){const i=n[qS];i&&(r+=";"+i),n.cssText=r,s=FO.test(r)}}else t&&e.removeAttribute("style");Yu in e&&(e[Yu]=s?n.display:"",e[GS]&&(n.display="none"))}const k_=/\s*!important$/;function vu(e,t,r){if(he(r))r.forEach(n=>vu(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=jO(e,t);k_.test(r)?e.setProperty(mo(n),r.replace(k_,""),"important"):e[n]=r}}const T_=["Webkit","Moz","ms"],rp={};function jO(e,t){const r=rp[t];if(r)return r;let n=Mr(t);if(n!=="filter"&&n in e)return rp[t]=n;n=zf(n);for(let o=0;onp||(WO.then(()=>np=0),np=Date.now());function GO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;dn(qO(n,r.value),t,5,[n])};return r.value=e,r.attached=zO(),r}function qO(e,t){if(he(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const L_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,KO=(e,t,r,n,o,s)=>{const i=o==="svg";t==="class"?$O(e,n,i):t==="style"?UO(e,r,n):uc(t)?Yg(t)||HO(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):YO(e,t,n,i))?(I_(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&A_(e,t,n,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ft(n))?I_(e,Mr(t),n,s,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),A_(e,t,n,i))};function YO(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&L_(t)&&ye(r));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 L_(t)&&ft(r)?!1:t in e}const P_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?r=>Li(t,r):t};function ZO(e){e.target.composing=!0}function N_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const op=Symbol("_assign"),n9={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[op]=P_(o);const s=n||o.props&&o.props.type==="number";hi(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;r&&(a=a.trim()),s&&(a=ch(a)),e[op](a)}),r&&hi(e,"change",()=>{e.value=e.value.trim()}),t||(hi(e,"compositionstart",ZO),hi(e,"compositionend",N_),hi(e,"change",N_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:o,number:s}},i){if(e[op]=P_(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?ch(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||o&&e.value.trim()===l)||(e.value=l))}},XO=["ctrl","shift","alt","meta"],JO={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)=>XO.some(r=>e[`${r}Key`]&&!t.includes(r))},sp=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...s)=>{for(let i=0;i{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const s=mo(o.key);if(t.some(i=>i===s||QO[i]===s))return e(o)})},KS=jt({patchProp:KO},OO);let il,M_=!1;function YS(){return il||(il=tO(KS))}function eR(){return il=M_?il:rO(KS),M_=!0,il}const tR=(...e)=>{YS().render(...e)},rR=(...e)=>{const t=YS().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=XS(n);if(!o)return;const s=t._component;!ye(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=r(o,!1,ZS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},nR=(...e)=>{const t=eR().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=XS(n);if(o)return r(o,!0,ZS(o))},t};function ZS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function XS(e){return ft(e)?document.querySelector(e):e}const oR=/"(?:_|\\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*:/,sR=/"(?: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*:/,iR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function aR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){lR(e);return}return t}function lR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Il(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.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(!iR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(oR.test(e)||sR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,aR)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const JS=/#/g,QS=/&/g,eE=/\//g,cR=/=/g,uR=/\?/g,od=/\+/g,fR=/%5e/gi,dR=/%60/gi,pR=/%7c/gi,hR=/%20/gi,gR=/%252f/gi;function tE(e){return encodeURI(""+e).replace(pR,"|")}function Ah(e){return tE(typeof e=="string"?e:JSON.stringify(e)).replace(od,"%2B").replace(hR,"+").replace(JS,"%23").replace(QS,"%26").replace(dR,"`").replace(fR,"^").replace(eE,"%2F")}function ip(e){return Ah(e).replace(cR,"%3D")}function mR(e){return tE(e).replace(JS,"%23").replace(uR,"%3F").replace(gR,"%2F").replace(QS,"%26").replace(od,"%2B")}function s9(e){return mR(e).replace(eE,"%2F")}function Xu(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function yR(e){return Xu(e.replace(od," "))}function _R(e){return Xu(e.replace(od," "))}function sd(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const o=yR(n[1]);if(o==="__proto__"||o==="constructor")continue;const s=_R(n[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function vR(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ip(e)}=${Ah(r)}`).join("&"):`${ip(e)}=${Ah(t)}`:ip(e)}function bR(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>vR(t,e[t])).filter(Boolean).join("&")}const wR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,rE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,SR=/^([/\\]\s*){2,}[^/\\]/,ER=/^[\s\0]*(blob|data|javascript|vbscript):$/i,xR=/\/$|\/\?|\/#/,kR=/^\.?\//;function yn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?wR.test(e):rE.test(e)||(t.acceptRelative?SR.test(e):!1)}function TR(e){return!!e&&ER.test(e)}function Ih(e="",t){return t?xR.test(e):e.endsWith("/")}function id(e="",t){if(!t)return(Ih(e)?e.slice(0,-1):e)||"/";if(!Ih(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");o>=0&&(r=e.slice(0,o),n=e.slice(o));const[s,...i]=r.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+n}function Ol(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ih(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");if(o>=0&&(r=e.slice(0,o),n=e.slice(o),!r))return n;const[s,...i]=r.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+n}function CR(e=""){return e.startsWith("/")}function D_(e=""){return CR(e)?e:"/"+e}function AR(e,t){if(nE(t)||yn(e))return e;const r=id(t);return e.startsWith(r)?e:Js(r,e)}function $_(e,t){if(nE(t))return e;const r=id(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function Rl(e,t){const r=iE(e),n={...sd(r.search),...t};return r.search=bR(n),RR(r)}function nE(e){return!e||e==="/"}function IR(e){return e&&e!=="/"}function Js(e,...t){let r=e||"";for(const n of t.filter(o=>IR(o)))if(r){const o=n.replace(kR,"");r=Ol(r)+o}else r=n;return r}function oE(...e){var i,a,l,c;const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let o=0;for(const u of r)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(n.length===1&&yn(n[0]))continue;n.pop(),o--;continue}if(f===1&&((i=n[n.length-1])!=null&&i.endsWith(":/"))){n[n.length-1]+="/"+d;continue}n.push(d),o++}}let s=n.join("/");return o>=0?(a=r[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=r[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(c=r[r.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function i9(e){return OR(e,"https://")}function OR(e,t){let r=e.match(rE);return r||(r=e.match(/^\/{2,}/)),r?t+e.slice(r[0].length):t+e}function Oh(e,t,r={}){return r.trailingSlash||(e=Ol(e),t=Ol(t)),r.leadingSlash||(e=D_(e),t=D_(t)),r.encoding||(e=Xu(e),t=Xu(t)),e===t}const sE=Symbol.for("ufo:protocolRelative");function iE(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,f,d=""]=r;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!yn(e,{acceptRelative:!0}))return Rh(e);const[,n="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Rh(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u,[sE]:!n}}function Rh(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function RR(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[sE]?(e.protocol||"")+"//":"")+o+s+t+r+n}class LR extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function PR(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())||"",r=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",n=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new LR(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 NR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function F_(e="GET"){return NR.has(e.toUpperCase())}function MR(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 DR=new Set(["image/svg","application/xml","application/xhtml","application/html"]),$R=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function FR(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return $R.test(t)?"json":DR.has(t)||t.startsWith("text/")?"text":"blob"}function UR(e,t,r,n){const o=jR((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,n);let s;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(s={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:s,params:s,headers:o}}function jR(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,s);return n}async function Bc(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const BR=new Set([408,409,425,429,500,502,503,504]),HR=new Set([101,204,205,304]);function aE(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=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=F_(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):BR.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=PR(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:UR(l,c,e.defaults,r),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Bc(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=AR(u.request,u.options.baseURL)),u.options.query&&(u.request=Rl(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&&F_(u.options.method)&&(MR(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new r(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 n;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 Bc(u,u.options.onRequestError),await o(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!HR.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||FR(u.response.headers.get("content-type")||"");switch(p){case"json":{const g=await u.response.text(),h=u.options.parseResponse||Il;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 Bc(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Bc(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={})=>aE({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Ju=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")}(),VR=Ju.fetch?(...e)=>Ju.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),WR=Ju.Headers,zR=Ju.AbortController,GR=aE({fetch:VR,Headers:WR,AbortController:zR}),qR=GR,KR=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qu=KR().app,YR=()=>Qu.baseURL,ZR=()=>Qu.buildAssetsDir,XR=(...e)=>oE(lE(),ZR(),...e),lE=(...e)=>{const t=Qu.cdnURL||Qu.baseURL;return e.length?oE(t,...e):t};globalThis.__buildAssetsURL=XR,globalThis.__publicAssetsURL=lE;globalThis.$fetch||(globalThis.$fetch=qR.create({baseURL:YR()}));function Lh(e,t={},r){for(const n in e){const o=e[n],s=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?Lh(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const JR={run:e=>e()},QR=()=>JR,cE=typeof console.createTask<"u"?console.createTask:QR;function e1(e,t){const r=t.shift(),n=cE(r);return e.reduce((o,s)=>o.then(()=>n.run(()=>s(...t))),Promise.resolve())}function t1(e,t){const r=t.shift(),n=cE(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function ap(e,t){for(const r of[...e])r(t)}class r1{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,r,n={}){if(!t||typeof r!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.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(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,o=(...s)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...s));return n=this.hook(t,o),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const o of n)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Lh(t),n=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of n.splice(0,n.length))o()}}removeHooks(t){const r=Lh(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(e1,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(t1,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&ap(this._before,o);const s=t(r in this._hooks?[...this._hooks[r]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&o&&ap(this._after,o)}):(this._after&&o&&ap(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function uE(){return new r1}function n1(e={}){let t,r=!1;const n=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||n(i),t=i,r=!0},unset:()=>{t=void 0,r=!1},call:(i,a)=>{n(i),t=i;try{return o?o.run(i,a):a()}finally{r||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;Ph.add(c);try{const u=o?o.run(i,a):a();return r||(t=void 0),await u}finally{Ph.delete(c)}}}}function o1(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=n1({...e,...n})),t[r]}}}const ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},U_="__unctx__",s1=ef[U_]||(ef[U_]=o1()),fE=(e,t={})=>s1.get(e,t),j_="__unctx_async_handlers__",Ph=ef[j_]||(ef[j_]=new Set);function Xt(e){const t=[];for(const o of Ph){const s=o();s&&t.push(s)}const r=()=>{for(const o of t)o()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(o=>{throw r(),o})),[n,r]}const a9=!1,Nh=!1,i1=!0,a1=!1,l1={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},l9={value:null,errorValue:null,deep:!0},c1=null,c9={},u1="#__nuxt",hm="nuxt-app",f1="vite:preloadError";function dE(e=hm){return fE(e,{asyncContext:!1})}const d1="__nuxt_plugin";function p1(e){var o;let t=0;const r={_id:e.id||hm||"nuxt-app",_scope:la(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return r.vueApp.version}},payload:no({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:no({}),state:Jt({}),once:new Set,_errors:no({})}),static:{data:{}},runWithContext(s){return r._scope.active&&!ca()?r._scope.run(()=>B_(r,s)):B_(r,s)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:no({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(r.payload[i],s[i]);break;default:r.payload[i]=s[i]}}r.hooks=uE(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(s,i)=>{const a="$"+s;Hc(r,a,i),Hc(r.vueApp.config.globalProperties,a,i)},Hc(r.vueApp,"$nuxt",r),Hc(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(f1,i=>{r.callHook("app:chunkError",{error:i.payload}),(r.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ae);const s=r.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});r.hook("app:mounted",s)}const n=r.payload.config;return r.provide("config",n),r}function h1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function g1(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function m1(e,t){const r=[],n=[],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)&&!r.includes(f)))??[];if(c.length>0)n.push([new Set(c),l]);else{const f=g1(e,l).then(async()=>{l._name&&(r.push(l._name),await Promise.all(n.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)h1(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[d1]:!0,_name:t})}function B_(e,t,r){const n=()=>t();return dE(e._id).set(e),e.vueApp.runWithContext(n)}function pE(e){var r;let t;return da()&&(t=(r=er())==null?void 0:r.appContext.app.$nuxt),t||(t=dE(e).tryUse()),t||null}function Ae(e){const t=pE(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function it(e){return Ae().$config}function Hc(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function lp(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 Mh(e,t,r=".",n){if(!lp(t))return Mh(e,{},r,n);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(n&&n(o,s,i,r)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:lp(i)&&lp(o[s])?o[s]=Mh(i,o[s],(r?`${r}.`:"")+s.toString(),n):o[s]=i))}return o}function gm(e){return(...t)=>t.reduce((r,n)=>Mh(r,n,"",e),{})}const hE=gm(),y1=gm((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0});function _1(e,t){try{return t in e}catch{return!1}}class Dh extends Error{constructor(r,n={}){super(r,n);Rr(this,"statusCode",500);Rr(this,"fatal",!1);Rr(this,"unhandled",!1);Rr(this,"statusMessage");Rr(this,"data");Rr(this,"cause");n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const r={message:this.message,statusCode:$h(this.statusCode,500)};return this.statusMessage&&(r.statusMessage=gE(this.statusMessage)),this.data!==void 0&&(r.data=this.data),r}}Rr(Dh,"__h3_error__",!0);function bu(e){if(typeof e=="string")return new Dh(e);if(v1(e))return e;const t=new Dh(e.message??e.statusMessage??"",{cause:e.cause||e});if(_1(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=$h(e.statusCode,t.statusCode):e.status&&(t.statusCode=$h(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;gE(t.statusMessage)!==r&&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 v1(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const b1=/[^\u0009\u0020-\u007E]/g;function gE(e=""){return e.replace(b1,"")}function $h(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const w1=Symbol("layout-meta"),hc=Symbol("route"),Bt=()=>{var e;return(e=Ae())==null?void 0:e.$router},Qs=()=>da()?Ut(hc,Ae()._route):Ae()._route;const S1=(e,t,r={})=>{const n=Ae(),o=r.global||!1,s=t;if(!s){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}o?n._middleware.global.push(s):n._middleware.named[e]=s},E1=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!1}return!1},Io=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:"path"in e?Fh(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(r,l,u),Promise.resolve()}const n=yn(r,{acceptRelative:!0}),o=(t==null?void 0:t.external)||n;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(r,window.location.href);if(l&&TR(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=E1();if(!o&&s){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=iE(e);return{path:l,...c&&{query:sd(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(r):location.href=r,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Fh(e){return Rl(e.path||"",e.query||{})+(e.hash||"")}const mE="__nuxt_error",ad=()=>Zs(Ae().payload,"error"),Oo=e=>{const t=ld(e);try{const r=Ae(),n=ad();r.hooks.callHook("app:error",t),n.value||(n.value=t)}catch{throw t}return t},x1=async(e={})=>{const t=Ae(),r=ad();t.callHook("app:error:cleared",e),e.redirect&&await Bt().replace(e.redirect),r.value=c1},yE=e=>!!e&&typeof e=="object"&&mE in e,ld=e=>{const t=bu(e);return Object.defineProperty(t,mE,{value:!0,configurable:!1,writable:!1}),t};function H_(e){const t=T1(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let o=0;o>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const C1=-1,A1=-2,I1=-3,O1=-4,R1=-5,L1=-6;function P1(e,t){return N1(JSON.parse(e),t)}function N1(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);function o(s,i=!1){if(s===C1)return;if(s===I1)return NaN;if(s===O1)return 1/0;if(s===R1)return-1/0;if(s===L1)return-0;if(i)throw new Error("Invalid input");if(s in n)return n[s];const a=r[s];if(!a||typeof a!="object")n[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 n[s]=c(o(a[1]));switch(l){case"Date":n[s]=new Date(a[1]);break;case"Set":const u=new Set;n[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(),r=t.indexOf("-");return r===-1?t:Ll.META.has(t.slice(0,r))||Ll.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function vE(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function Uh(e){return Array.isArray(e)?e.map(Uh):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[oo(t),Uh(r)]))}function bE(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",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"?bE(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${n}${l}`}).join(r)}function W_(e,t){const r=vE(t),n=oo(e),o=wE(n);if(!mm.has(n))return[{[o]:n,...r}];const s=Object.fromEntries(Object.entries(r).map(([i,a])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,a]));return tf(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 wE(e){var n;if(((n=_E[e])==null?void 0:n.metaKey)==="http-equiv"||Ll.HTTP_EQUIV.has(e))return"http-equiv";const t=oo(e),r=t.indexOf(":");return r===-1?"name":Ll.OG.has(t.slice(0,r))?"property":"name"}function H1(e){return B1[e]||oo(e)}function V1(e,t){var r;return t==="refresh"?`${e.seconds};url=${e.url}`:bE(Uh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:o})=>n===null?"":typeof n=="boolean"?o:void 0,...(r=_E[t])==null?void 0:r.unpack})}function tf(e){const t=[],r={};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=tf({[f]:u});(c==="url"?a:l).push(...d)}t.push(...a,...l)}else t.push(...typeof i=="string"?tf({[o]:i}):W_(o,i));continue}if(typeof s=="object"&&s)if(Ll.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 mm.has(oo(o))?t.push(...W_(o,s)):r[o]=vE(s);else r[o]=s}const n=Object.entries(r).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=wE(o),a=H1(o),l=s===null?"_null":typeof s=="object"?V1(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:l}:{[i]:a,content:l}});return[...t,...n].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const W1={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(tf(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},z1=["name","property","http-equiv"];function SE(e){const t=e.split(":")[1];return mm.has(t)}function jh(e){const{props:t,tag:r}=e;if(F1.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of z1)if(t[n]!==void 0)return`${r}:${t[n]}`}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(D1.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function z_(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`}function rf(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let o;if(t&&(o=t(r,e)),Array.isArray(o))return o.map(s=>rf(s,t));if((o==null?void 0:o.constructor)===Object){const s={};for(const i of Object.keys(o))s[i]=rf(o[i],t,i);return s}return o}function G1(e,t){const r=e==="style"?new Map:new Set;function n(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l.trim());i&&a.length&&r.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>r.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(o=>n(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?r.set(o.trim(),s):n(o))}),r}function EE(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=G1(r,n);return}if(U1.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="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[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),s=r.startsWith("data-");o==="true"||o===""?e.props[r]=s?o:!0:!n&&s&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function q1(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=EE({tag:e,props:{}},r);return n.key&&M1.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(o=>({...n,props:{...n.props,content:o}})):n}function K1(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,s)=>{for(let i=0;i{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])n.push(q1(o,i))}),n.flat()}const Bh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,G_={base:-10,title:10},Y1={critical:-8,high:-1,low:2},q_={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}},Z1=/@import/,Ta=e=>e===""||e===!0;function X1(e,t){var s;if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=Y1[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:q_;if(t.tag in G_)r=G_[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&&(r=q_.meta[i])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?Ta(t.props.async)?r=o.script.async:t.props.src&&!Ta(t.props.defer)&&!Ta(t.props.async)&&t.props.type!=="module"&&!((s=t.props.type)!=null&&s.endsWith("json"))?r=o.script.sync:Ta(t.props.defer)&&t.props.src&&!Ta(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&Z1.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function K_(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function J1(e={}){var a;const t=uE();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,s=[],i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:l=>K_(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(){n.delete(f)&&p._poll(!0)},patch(g){(!u.mode||u.mode==="server"&&r||u.mode==="client"&&!r)&&(d.input=g,n.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=n.get(g);if(h){const y={tags:K1(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=X1(i,m),m._p=(h._i<<10)+b,m._d=jh(m),m))}}let c=!1;l.entries.flatMap(g=>(g._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Bh).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)||(j1.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&&SE(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(Bh)),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($1.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(/K_(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const Ro="%separator",Q1=new RegExp(`${Ro}(?:\\s*${Ro})*`,"g");function eL(e,t,r=!1){var o;let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");n=(o=e[t.substring(0,s)])==null?void 0:o[t.substring(s+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/{if(a===Ro||!s.includes(a))return a;const l=eL(t,a.slice(1),n);return l!==void 0?l:a}).trim(),i&&(e.endsWith(Ro)&&(e=e.slice(0,-Ro.length)),e.startsWith(Ro)&&(e=e.slice(Ro.length)),e=e.replace(Q1,r||"").trim()),e}const Y_=e=>e.includes(":key")?e:e.split(":").join(":key:"),tL={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const o=String(n);if(o.startsWith("before:")){const s=Y_(o.slice(7)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(r.tagPriority=i.tagPriority),r._p=i._p-1,t=!0)}else if(o.startsWith("after:")){const s=Y_(o.slice(6)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(r.tagPriority=i.tagPriority),r._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Bh))}}},rL={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 Hh(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(r=>Hh(r)));if((e==null?void 0:e.constructor)===Object){const r={};for(const n of Object.keys(e))r[n]=await Hh(e[n]);return r}return e}const nL={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(Hh(e.entries[r].input).then(n=>{e.entries[r].input=n,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},oL={meta:"content",link:"href",htmlAttrs:"lang"},sL=["innerHTML","textContent"],iL=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var n,o,s;const r=((o=(n=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:n[0])==null?void 0:o.props)||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...((s=e._ssrPayload)==null?void 0:s.templateParams)||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{var s;const n=((s=t.get("templateParams"))==null?void 0:s.props)||{},o=n.separator||"|";delete n.separator,n.pageTitle=Vc(n.pageTitle||e._title||"",n,o);for(const i of r){if(i.processTemplateParams===!1)continue;const a=oL[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Vc(i.props[a],n,o);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of sL)typeof i[l]=="string"&&(i[l]=Vc(i[l],n,o,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=n,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r!=null&&r.textContent&&r.processTemplateParams!==!1&&(r.textContent=Vc(r.textContent,e._templateParams,e._separator))}}}),aL=(e,t)=>qe(t)?mu(t):t,ym="usehead";function lL(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(ym,e)}}.install}function xE(){if(da()){const e=Ut(ym);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 kE(e,t={}){const r=t.head||xE();return r.ssr?r.push(e||{},t):cL(r,e,t)}function cL(e,t,r={}){const n=ue(!1);let o;return Qf(()=>{const i=n.value?{}:rf(t,aL);o?o.patch(i):o=e.push(i,r)}),er()&&(fa(()=>{o.dispose()}),lS(()=>{n.value=!0}),aS(()=>{n.value=!1})),o}function uL(e={},t={}){(t.head||xE()).use(W1);const{title:n,titleTemplate:o,...s}=e;return kE({title:n,titleTemplate:o,_flatMeta:s},t)}function TE(e){var r;const t=e||pE();return((r=t==null?void 0:t.ssrContext)==null?void 0:r.head)||(t==null?void 0:t.runWithContext(()=>{if(da())return Ut(ym)}))}function Ms(e,t={}){const r=TE(t.nuxt);if(r)return kE(e,{head:r,...t})}function u9(e,t={}){const r=TE(t.nuxt);if(r)return uL(e,{head:r,...t})}const fL="modulepreload",dL=function(e,t){return new URL(e,t).href},Z_={},Yt=function(t,r,n){let o=Promise.resolve();if(r&&r.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(r.map(c=>{if(c=dL(c,n),c in Z_)return;Z_[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!n)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":fL,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 X_(e,t={}){if(!await AE(e))return null;const n=await hL(e,t);return await CE(n)||null}const pL="_payload.json";async function hL(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||yn(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=it(),o=t.hash||(t.fresh?Date.now():n.app.buildId),s=n.app.cdnURL,i=s&&await AE(e)?s:n.app.baseURL;return Js(i,r.pathname,pL+(o?`?${o}`:""))}async function CE(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then(IE));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function AE(e=Qs().path){return!!Ae().payload.prerenderedAt}let us=null;async function gL(){var n;if(us)return us;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await IE(e.textContent||""),r=e.dataset.src?await CE(e.dataset.src):void 0;return us={...t,...r,...window.__NUXT__},(n=us.config)!=null&&n.public&&(us.config.public=Jt(us.config.public)),us}async function IE(e){return await P1(e,Ae()._payloadRevivers)}function mL(e,t){Ae()._payloadRevivers[e]=t}const yL=[["NuxtError",e=>ld(e)],["EmptyShallowRef",e=>fn(e==="_"?void 0:e==="0n"?BigInt(0):Il(e))],["EmptyRef",e=>ue(e==="_"?void 0:e==="0n"?BigInt(0):Il(e))],["ShallowRef",e=>fn(e)],["ShallowReactive",e=>no(e)],["Ref",e=>ue(e)],["Reactive",e=>Jt(e)]],_L=Je({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,o]of yL)mL(n,o);Object.assign(e.payload,([t,r]=Xt(()=>e.runWithContext(gL)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function _m(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.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&&SE(y._d)&&s.set(y._d,m+1),b}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const g of["body","head"]){const h=(p=r[g])==null?void 0:p.children;for(const y of h){const m=y.tagName.toLowerCase();if(!V_.has(m))continue;const b=EE({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=jh(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"?r.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"){r.title=h.textContent,l("title","",()=>r.title=a.title);continue}g.$el=g.$el||a.elMap.get(m),g.$el?c(g):V_.has(h.tag)&&u.push(g)}}for(const g of u){const h=g.tag.tagPosition||"head";g.$el=r.createElement(g.tag.tag),c(g),f[h]=f[h]||r.createDocumentFragment(),f[h].appendChild(g.$el)}for(const g of d)await e.hooks.callHook("dom:renderTag",g,r,l);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.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 vL(e={}){var n,o,s;const t=((n=e.domOptions)==null?void 0:n.render)||_m;e.document=e.document||(typeof window<"u"?document:void 0);const r=((s=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return J1({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function bL(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function wL(e={}){const t=vL({domOptions:{render:bL(()=>_m(t),r=>setTimeout(r,0))},...e});return t.install=lL(t),t}const SL={disableDefaults:!0,disableCapoSorting:!1,plugins:[rL,nL,iL,tL]},EL=Je({name:"nuxt:head",enforce:"pre",setup(e){const t=wL(SL);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await _m(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const gi=typeof document<"u";function OE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&OE(e.default)}const Ye=Object.assign;function cp(e,t){const r={};for(const n in t){const o=t[n];r[n]=pn(o)?o.map(e):e(o)}return r}const al=()=>{},pn=Array.isArray,RE=/#/g,kL=/&/g,TL=/\//g,CL=/=/g,AL=/\?/g,LE=/\+/g,IL=/%5B/g,OL=/%5D/g,PE=/%5E/g,RL=/%60/g,NE=/%7B/g,LL=/%7C/g,ME=/%7D/g,PL=/%20/g;function vm(e){return encodeURI(""+e).replace(LL,"|").replace(IL,"[").replace(OL,"]")}function NL(e){return vm(e).replace(NE,"{").replace(ME,"}").replace(PE,"^")}function Vh(e){return vm(e).replace(LE,"%2B").replace(PL,"+").replace(RE,"%23").replace(kL,"%26").replace(RL,"`").replace(NE,"{").replace(ME,"}").replace(PE,"^")}function ML(e){return Vh(e).replace(CL,"%3D")}function DL(e){return vm(e).replace(RE,"%23").replace(AL,"%3F")}function $L(e){return e==null?"":DL(e).replace(TL,"%2F")}function Pl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const FL=/\/$/,UL=e=>e.replace(FL,"");function up(e,t,r="/"){let n,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(n=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(n=n||t.slice(0,a),i=t.slice(a,t.length)),n=VL(n??t,r),{fullPath:n+(s&&"?")+s+i,path:n,query:o,hash:Pl(i)}}function jL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function J_(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function BL(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Hi(t.matched[n],r.matched[o])&&DE(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Hi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function DE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!HL(e[r],t[r]))return!1;return!0}function HL(e,t){return pn(e)?Q_(e,t):pn(t)?Q_(t,e):e===t}function Q_(e,t){return pn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function VL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let s=r.length-1,i,a;for(i=0;i1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(i).join("/")}const Qr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Nl;(function(e){e.pop="pop",e.push="push"})(Nl||(Nl={}));var ll;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ll||(ll={}));function WL(e){if(!e)if(gi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UL(e)}const zL=/^[^#]+#/;function GL(e,t){return e.replace(zL,"#")+t}function qL(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const cd=()=>({left:window.scrollX,top:window.scrollY});function KL(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;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 ev(e,t){return(history.state?history.state.position-t:-1)+e}const Wh=new Map;function YL(e,t){Wh.set(e,t)}function ZL(e){const t=Wh.get(e);return Wh.delete(e),t}let XL=()=>location.protocol+"//"+location.host;function $E(e,t){const{pathname:r,search:n,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),J_(l,"")}return J_(r,e)+n+o}function JL(e,t,r,n){let o=[],s=[],i=null;const a=({state:d})=>{const p=$E(e,location),g=r.value,h=t.value;let y=0;if(d){if(r.value=p,t.value=d,i&&i===g){i=null;return}y=h?d.position-h.position:0}else n(p);o.forEach(m=>{m(r.value,g,{delta:y,type:Nl.pop,direction:y?y>0?ll.forward:ll.back:ll.unknown})})};function l(){i=r.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:cd()}),"")}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 tv(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?cd():null}}function QL(e){const{history:t,location:r}=window,n={value:$E(e,r)},o={value:t.state};o.value||s(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:XL()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),r[u?"replace":"assign"](d)}}function i(l,c){const u=Ye({},t.state,tv(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),n.value=l}function a(l,c){const u=Ye({},o.value,t.state,{forward:l,scroll:cd()});s(u.current,u,!0);const f=Ye({},tv(n.value,l,null),{position:u.position+1},c);s(l,f,!1),n.value=l}return{location:n,state:o,push:a,replace:i}}function eP(e){e=WL(e);const t=QL(e),r=JL(e,t.state,t.location,t.replace);function n(s,i=!0){i||r.pauseListeners(),history.go(s)}const o=Ye({location:"",base:e,go:n,createHref:GL.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function tP(e){return typeof e=="string"||e&&typeof e=="object"}function FE(e){return typeof e=="string"||typeof e=="symbol"}const UE=Symbol("");var rv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(rv||(rv={}));function Vi(e,t){return Ye(new Error,{type:e,[UE]:!0},t)}function Tn(e,t){return e instanceof Error&&UE in e&&(t==null||!!(e.type&t))}const nv="[^/]+?",rP={sensitive:!1,strict:!1,start:!0,end:!0},nP=/[.+*?^${}()[\]/\\]/g;function oP(e,t){const r=Ye({},rP,t),n=[];let o=r.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function jE(e,t){let r=0;const n=e.score,o=t.score;for(;r0&&t[t.length-1]<0}const iP={type:0,value:""},aP=/[a-zA-Z0-9_]/;function lP(e){if(!e)return[[]];if(e==="/")return[[iP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${c}": ${p}`)}let r=0,n=r;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(r===0?s.push({type:0,value:c}):r===1||r===2||r===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(_)}:al}function i(f){if(FE(f)){const d=n.get(f);d&&(n.delete(f),r.splice(r.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=r.indexOf(f);d>-1&&(r.splice(d,1),f.record.name&&n.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return r}function l(f){const d=pP(f,r);r.splice(d,0,f),f.record.name&&!av(f)&&n.set(f.record.name,f)}function c(f,d){let p,g={},h,y;if("name"in f&&f.name){if(p=n.get(f.name),!p)throw Vi(1,{location:f});y=p.record.name,g=Ye(sv(d.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&sv(f.params,p.keys.map(_=>_.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=r.find(_=>_.re.test(h)),p&&(g=p.parse(h),y=p.record.name);else{if(p=d.name?n.get(d.name):r.find(_=>_.re.test(d.path)),!p)throw Vi(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:dP(m)}}e.forEach(f=>s(f));function u(){r.length=0,n.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function sv(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function iv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:fP(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 fP(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function av(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dP(e){return e.reduce((t,r)=>Ye(t,r.meta),{})}function lv(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function pP(e,t){let r=0,n=t.length;for(;r!==n;){const s=r+n>>1;jE(e,t[s])<0?n=s:r=s+1}const o=hP(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function hP(e){let t=e;for(;t=t.parent;)if(BE(t)&&jE(e,t)===0)return t}function BE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gP(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Vh(s)):[n&&Vh(n)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function mP(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=pn(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const yP=Symbol(""),uv=Symbol(""),bm=Symbol(""),wm=Symbol(""),zh=Symbol("");function Ca(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Lo(e,t,r,n,o,s=i=>i()){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Vi(4,{from:r,to:t})):d instanceof Error?l(d):tP(d)?l(Vi(2,{from:t,to:d})):(i&&n.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(n&&n.instances[o],t,r,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function fp(e,t,r,n,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(OE(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Lo(u,r,n,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=xL(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Lo(p,r,n,i,a,o)()}))}}return s}function fv(e){const t=Ut(bm),r=Ut(wm),n=J(()=>{const l=He(e.to);return t.resolve(l)}),o=J(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hi.bind(null,u));if(d>-1)return d;const p=dv(l[c-2]);return c>1&&dv(u)===p&&f[f.length-1].path!==p?f.findIndex(Hi.bind(null,l[c-2])):d}),s=J(()=>o.value>-1&&SP(r.params,n.value.params)),i=J(()=>o.value>-1&&o.value===r.matched.length-1&&DE(r.params,n.value.params));function a(l={}){if(wP(l)){const c=t[He(e.replace)?"replace":"push"](He(e.to)).catch(al);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:J(()=>n.value.href),isActive:s,isExactActive:i,navigate:a}}function _P(e){return e.length===1?e[0]:e}const vP=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:fv,setup(e,{slots:t}){const r=Jt(fv(e)),{options:n}=Ut(bm),o=J(()=>({[pv(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[pv(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=t.default&&_P(t.default(r));return e.custom?s:Ct("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},s)}}}),bP=vP;function wP(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 SP(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!pn(o)||o.length!==n.length||n.some((s,i)=>s!==o[i]))return!1}return!0}function dv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pv=(e,t,r)=>e??t??r,EP=At({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ut(zh),o=J(()=>e.route||n.value),s=Ut(uv,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]);Ts(uv,J(()=>i.value+1)),Ts(yP,a),Ts(zh,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||!Hi(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 hv(r.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Ct(d,Ye({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return hv(r.default,{Component:y,route:c})||y}}});function hv(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const HE=EP;function xP(e){const t=uP(e.routes,e),r=e.parseQuery||gP,n=e.stringifyQuery||cv,o=e.history,s=Ca(),i=Ca(),a=Ca(),l=fn(Qr);let c=Qr;gi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=cp.bind(null,W=>""+W),f=cp.bind(null,$L),d=cp.bind(null,Pl);function p(W,Q){let X,ie;return FE(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=up(r,W,Q.path),$=t.resolve({path:A.path},Q),B=o.createHref(A.fullPath);return Ye(A,$,{params:d($.params),hash:Pl(A.hash),redirectedFrom:void 0,href:B})}let X;if(W.path!=null)X=Ye({},W,{path:up(r,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=jL(n,Ye({},W,{hash:NL(te),path:ie.path})),T=o.createHref(we);return Ye({fullPath:we,hash:te,query:n===cv?mP(W.query):W.query||{}},ie,{redirectedFrom:void 0,href:T})}function b(W){return typeof W=="string"?up(r,W,l.value.path):Ye({},W)}function _(W,Q){if(c!==W)return Vi(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,T=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:T}),Q||X);const $=X;$.redirectedFrom=Q;let B;return!we&&BL(n,ie,X)&&(B=Vi(16,{to:$,from:ie}),be(ie,ie,!0,!1)),(B?Promise.resolve(B):O($,ie)).catch(H=>Tn(H)?Tn(H,2)?H:lt(H):ne(H,$,ie)).then(H=>{if(H){if(Tn(H,2))return x(Ye({replace:T},b(H.to),{state:typeof H.to=="object"?Ye({},te,H.to.state):te,force:we}),Q||$)}else H=L($,ie,!0,T,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=tr.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function O(W,Q){let X;const[ie,te,we]=kP(W,Q);X=fp(ie.reverse(),"beforeRouteLeave",W,Q);for(const A of ie)A.leaveGuards.forEach($=>{X.push(Lo($,W,Q))});const T=N.bind(null,W,Q);return X.push(T),pt(X).then(()=>{X=[];for(const A of s.list())X.push(Lo(A,W,Q));return X.push(T),pt(X)}).then(()=>{X=fp(te,"beforeRouteUpdate",W,Q);for(const A of te)A.updateGuards.forEach($=>{X.push(Lo($,W,Q))});return X.push(T),pt(X)}).then(()=>{X=[];for(const A of we)if(A.beforeEnter)if(pn(A.beforeEnter))for(const $ of A.beforeEnter)X.push(Lo($,W,Q));else X.push(Lo(A.beforeEnter,W,Q));return X.push(T),pt(X)}).then(()=>(W.matched.forEach(A=>A.enterCallbacks={}),X=fp(we,"beforeRouteEnter",W,Q,I),X.push(T),pt(X))).then(()=>{X=[];for(const A of i.list())X.push(Lo(A,W,Q));return X.push(T),pt(X)}).catch(A=>Tn(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 T=Q===Qr,A=gi?history.state:{};X&&(ie||T?o.replace(W.fullPath,Ye({scroll:T&&A&&A.scroll},te)):o.push(W.fullPath,te)),l.value=W,be(W,Q,X,T),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(al);return}c=ie;const we=l.value;gi&&YL(ev(we.fullPath,X.delta),cd()),O(ie,we).catch(T=>Tn(T,12)?T:Tn(T,2)?(x(Ye(b(T.to),{force:!0}),ie).then(A=>{Tn(A,20)&&!X.delta&&X.type===Nl.pop&&o.go(-1,!1)}).catch(al),Promise.reject()):(X.delta&&o.go(-X.delta,!1),ne(T,ie,we))).then(T=>{T=T||L(ie,we,!1),T&&(X.delta&&!Tn(T,8)?o.go(-X.delta,!1):X.type===Nl.pop&&Tn(T,20)&&o.go(-1,!1)),U(ie,we,T)}).catch(al)}))}let ce=Ca(),q=Ca(),re;function ne(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 re&&l.value!==Qr?Promise.resolve():new Promise((W,Q)=>{ce.add([W,Q])})}function lt(W){return re||(re=!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(!gi||!te)return Promise.resolve();const we=!X&&ZL(ev(W.fullPath,0))||(ie||!X)&&history.state&&history.state.scroll||null;return Gr().then(()=>te(W,Q,we)).then(T=>T&&KL(T)).catch(T=>ne(T,W,Q))}const We=W=>o.go(W);let je;const tr=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",bP),W.component("RouterView",HE),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>He(l)}),gi&&!je&&l.value===Qr&&(je=!0,v(o.location).catch(te=>{}));const X={};for(const te in Qr)Object.defineProperty(X,te,{get:()=>l.value[te],enumerable:!0});W.provide(bm,Q),W.provide(wm,no(X)),W.provide(zh,l);const ie=W.unmount;tr.add(W),W.unmount=function(){tr.delete(W),tr.size<1&&(c=Qr,G&&G(),G=null,l.value=Qr,je=!1,re=!1),ie()}}};function pt(W){return W.reduce((Q,X)=>Q.then(()=>I(X)),Promise.resolve())}return ze}function kP(e,t){const r=[],n=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iHi(c,a))?n.push(a):r.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Hi(c,l))||o.push(l))}return[r,n,o]}function f9(e){return Ut(wm)}const TP=/(:\w+)\([^)]+\)/g,CP=/(:\w+)[?+*]/g,AP=/:\w+/g,IP=(e,t)=>t.path.replace(TP,"$1").replace(CP,"$1").replace(AP,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Gh=(e,t)=>{const r=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),n=t??(r==null?void 0:r.meta.key)??(r&&IP(e.route,r));return typeof n=="function"?n(e.route):n},OP=(e,t)=>({default:()=>e?Ct(LI,e===!0?{}:e,t):t});function Sm(e){return Array.isArray(e)?e:[e]}const RP={layout:!1,pageTransition:!1},LP={layout:!1,pageTransition:!1},PP={layout:!1,pageTransition:!1},NP={layout:!1,pageTransition:!1};const dp=[{name:"g",path:"/g",component:()=>Yt(()=>import("./Dgp0e_3q.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"index",path:"/",component:()=>Yt(()=>import("./PLzpxQ9O.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,2,15,16,17,18,19,20,21,22,3]),import.meta.url)},{name:"search",path:"/search",component:()=>Yt(()=>import("./yiA2mt7r.js"),__vite__mapDeps([23,24,25,13,8,9,10,11,26,27,28,22]),import.meta.url)},{name:"v8",path:"/v8",component:()=>Yt(()=>import("./BKCk5aHh.js"),__vite__mapDeps([29,6,7,8,9,10,11,12,13,14,2,15,16,17,18,19,20,21,22,3]),import.meta.url)},{name:"video-id",path:"/video/:id()",component:()=>Yt(()=>import("./DIQUumz7.js"),__vite__mapDeps([30,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37,26]),import.meta.url)},{name:"terms",path:"/terms",meta:RP||{},component:()=>Yt(()=>import("./D1EyIeOU.js"),__vite__mapDeps([38,39,40,13,41,42,43,44,3,45]),import.meta.url)},{name:"article-id",path:"/article/:id()",component:()=>Yt(()=>import("./w49wgYEH.js"),__vite__mapDeps([46,47,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37]),import.meta.url)},{name:"contact",path:"/contact",meta:LP||{},component:()=>Yt(()=>import("./CApL3HJT.js"),__vite__mapDeps([48,39,40,3,49,50]),import.meta.url)},{name:"v8-article-id",path:"/v8/article/:id()",component:()=>Yt(()=>import("./gJ6LTyCE.js"),__vite__mapDeps([51,47,31,13,16,32,7,8,9,10,11,12,14,24,25,15,17,18,19,33,34,35,36,28,37]),import.meta.url)},{name:"privacy-policy",path:"/privacy-policy",meta:PP||{},component:()=>Yt(()=>import("./By6FdrPX.js"),__vite__mapDeps([52,39,40,53,13,41,42,43,44,3,54]),import.meta.url)},{name:"privacy-policy-relationships",path:"/privacy-policy/relationships",meta:NP||{},component:()=>Yt(()=>import("./BMEanQmH.js"),__vite__mapDeps([55,39,40,53,13,41,42,43,44,3,54]),import.meta.url)}],MP=(e,t)=>({default:()=>{var r;return e?Ct(zS,e===!0?{}:e,t):(r=t.default)==null?void 0:r.call(t)}}),DP=/(:\w+)\([^)]+\)/g,$P=/(:\w+)[?+*]/g,FP=/:\w+/g;function gv(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(DP,"$1").replace($P,"$1").replace(FP,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof t=="function"?t(e):t}function VE(e,t){return e===t||t===Qr?!1:gv(e)!==gv(t)?!0:!e.matched.every((n,o)=>{var s,i;return n.components&&n.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const UP={scrollBehavior(e,t,r){var c;const n=Ae(),o=((c=Bt().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=r||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&VE(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:WE(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??Nh),l=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{n.hooks.hookOnce(l,()=>{requestAnimationFrame(()=>u(jP(e,"instant",s)))})})}};function WE(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 jP(e,t,r){return r||(e.hash?{el:e.hash,top:WE(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const BP={hashMode:!1,scrollBehaviorType:"auto"},jr={...BP,...UP},HP=async e=>{var l;let t,r;if(!((l=e.meta)!=null&&l.validate))return;const n=Ae(),o=Bt(),s=([t,r]=Xt(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t);if(s===!0)return;const i=ld({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 n.runWithContext(()=>Oo(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},VP=[HP],cl={};function WP(e,t,r){const{pathname:n,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),$_(u,"")}const a=$_(n,e),l=!r||Oh(a,r,{trailingSlash:!0})?a:r;return l+(l.includes("?")?"":o)+s}const zP=Je({name:"nuxt:router",enforce:"pre",async setup(e){var y;let t,r,n=it().app.baseURL;const o=((y=jr.history)==null?void 0:y.call(jr,n))??eP(n),s=jr.routes?([t,r]=Xt(()=>jr.routes(dp)),t=await t,r(),t??dp):dp;let i;const a=xP({...jr,scrollBehavior:(m,b,_)=>{if(b===Qr){i=_;return}if(jr.scrollBehavior){if(a.options.scrollBehavior=jr.scrollBehavior,"scrollRestoration"in window.history){const v=a.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return jr.scrollBehavior(m,Qr,i||_)}},history:o,routes:s});jr.routes&&jr.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=fn(a.currentRoute.value);a.afterEach((m,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=WP(n,window.location,e.payload.path),u=fn(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=no(d),e._middleware||(e._middleware={global:[],named:{}});const p=ad();a.afterEach(async(m,b,_)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(x1),_&&await e.callHook("page:loading:end")});try{[t,r]=Xt(()=>a.isReady()),await t,r()}catch(m){[t,r]=Xt(()=>e.runWithContext(()=>Oo(m))),await t,r()}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&&!Ho(m.meta.layout)&&(m.meta.layout=h),e._processingMiddleware=!0;{const v=new Set([...VP,...e._middleware.global]);for(const S of m.matched){const E=S.meta.middleware;if(E)for(const x of Sm(E))v.add(x)}for(const S of v){const E=typeof S=="string"?e._middleware.named[S]||await((_=cl[S])==null?void 0:_.call(cl).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||bu({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Oo(N)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return yE(x)&&x.fatal&&await e.runWithContext(()=>Oo(x)),x}catch(x){const N=bu(x);return N.fatal&&await e.runWithContext(()=>Oo(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(()=>Oo(bu({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=jr.scrollBehavior}catch(m){await e.runWithContext(()=>Oo(m))}}),{provide:{router:a}}}}),qh=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),GP=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Em=e=>{const t=Ae();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{qh(()=>e())}):qh(()=>e())},qP=Je({name:"nuxt:payload",setup(e){const t=new Set;Bt().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const o=await X_(r.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]}}),Em(()=>{e.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await X_(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})})})}}),KP=Je(()=>{const e=Bt();Em(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),YP=Je(e=>{if(!document.startViewTransition)return;let t,r;Bt().beforeResolve(async(o,s)=>{const i=o.meta.viewTransition??i1,l=window.matchMedia("(prefers-reduced-motion: reduce)").matches&&i!=="always";if(i===!1||l||!VE(o,s))return;const c=new Promise((p,g)=>{t=p,r=g});let u;const f=new Promise(p=>u=p),d=document.startViewTransition(()=>(u(),c));return d.finished.then(()=>{r=void 0,t=void 0}),await e.callHook("page:view-transition:start",d),f}),e.hook("vue:error",()=>{r==null||r(),r=void 0}),e.hook("page:finish",()=>{t==null||t(),t=void 0})});function ZP(e={}){const t=e.path||window.location.pathname;let r={};try{r=Il(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires){n.clear()}),e.hook("app:chunkError",({error:s})=>{n.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?r.app.baseURL+s.href:Js(r.app.baseURL,s.fullPath);ZP({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{n.has(s)&&o(i)})}});/*! * pinia v2.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */let zE;const gc=e=>zE=e,GE=Symbol();function Kh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ul;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ul||(ul={}));function JP(){const e=la(!0),t=e.run(()=>ue({}));let r=[],n=[];const o=sm({install(s){gc(o),o._a=s,s.provide(GE,o),s.config.globalProperties.$pinia=o,n.forEach(i=>r.push(i)),n=[]},use(s){return this._a?r.push(s):n.push(s),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const qE=()=>{};function mv(e,t,r,n=qE){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),n())};return!r&&ca()&&wl(o),o}function li(e,...t){e.slice().forEach(r=>{r(...t)})}const QP=e=>e(),yv=Symbol(),pp=Symbol();function Yh(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,n)=>e.set(n,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];Kh(o)&&Kh(n)&&e.hasOwnProperty(r)&&!qe(n)&&!Ln(n)?e[r]=Yh(o,n):e[r]=n}return e}const eN=Symbol();function tN(e){return!Kh(e)||!e.hasOwnProperty(eN)}const{assign:ko}=Object;function rN(e){return!!(qe(e)&&e.effect)}function nN(e,t,r,n){const{state:o,actions:s,getters:i}=t,a=r.state.value[e];let l;function c(){a||(r.state.value[e]=o?o():{});const u=fI(r.state.value[e]);return ko(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=sm(J(()=>{gc(r);const p=r._s.get(e);return i[d].call(p,p)})),f),{}))}return l=KE(e,c,t,r,n,!0),l}function KE(e,t,r={},n,o,s){let i;const a=ko({actions:{}},r),l={deep:!0};let c,u,f=[],d=[],p;const g=n.state.value[e];!s&&!g&&(n.state.value[e]={}),ue({});let h;function y(N){let I;c=u=!1,typeof N=="function"?(N(n.state.value[e]),I={type:ul.patchFunction,storeId:e,events:p}):(Yh(n.state.value[e],N),I={type:ul.patchObject,payload:N,storeId:e,events:p});const O=h=Symbol();Gr().then(()=>{h===O&&(c=!0)}),u=!0,li(f,I,n.state.value[e])}const m=s?function(){const{state:I}=r,O=I?I():{};this.$patch(U=>{ko(U,O)})}:qE;function b(){i.stop(),f=[],d=[],n._s.delete(e)}const _=(N,I="")=>{if(yv in N)return N[pp]=I,N;const O=function(){gc(n);const U=Array.from(arguments),L=[],G=[];function oe(re){L.push(re)}function ce(re){G.push(re)}li(d,{args:U,name:O[pp],store:S,after:oe,onError:ce});let q;try{q=N.apply(this&&this.$id===e?this:S,U)}catch(re){throw li(G,re),re}return q instanceof Promise?q.then(re=>(li(L,re),re)).catch(re=>(li(G,re),Promise.reject(re))):(li(L,q),q)};return O[yv]=!0,O[pp]=I,O},v={_p:n,$id:e,$onAction:mv.bind(null,d),$patch:y,$reset:m,$subscribe(N,I={}){const O=mv(f,N,I.detached,()=>U()),U=i.run(()=>Oe(()=>n.state.value[e],L=>{(I.flush==="sync"?u:c)&&N({storeId:e,type:ul.direct,events:p},L)},ko({},l,I)));return O},$dispose:b},S=Jt(v);n._s.set(e,S);const x=(n._a&&n._a.runWithContext||QP)(()=>n._e.run(()=>(i=la()).run(()=>t({action:_}))));for(const N in x){const I=x[N];if(qe(I)&&!rN(I)||Ln(I))s||(g&&tN(I)&&(qe(I)?I.value=g[N]:Yh(I,g[N])),n.state.value[e][N]=I);else if(typeof I=="function"){const O=_(I,N);x[N]=O,a.actions[N]=I}}return ko(S,x),ko(Me(S),x),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:N=>{y(I=>{ko(I,N)})}}),n._p.forEach(N=>{ko(S,i.run(()=>N({store:S,app:n._a,pinia:n,options:a})))}),g&&s&&r.hydrate&&r.hydrate(S.$state,g),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function mc(e,t,r){let n,o;const s=typeof t=="function";typeof e=="string"?(n=e,o=s?r:t):(o=e,n=e.id);function i(a,l){const c=da();return a=a||(c?Ut(GE,null):null),a&&gc(a),a=zE,a._s.has(n)||(s?KE(n,t,o,a):nN(n,o,a)),a._s.get(n)}return i.$id=n,i}function yc(e){{const t=Me(e),r={};for(const n in t){const o=t[n];o.effect?r[n]=J({get:()=>e[n],set(s){e[n]=s}}):(qe(o)||Ln(o))&&(r[n]=Zs(e,n))}return r}}function _v(e){return typeof e=="string"?`'${e}'`:new oN().serialize(e)}const oN=function(){var t;class e{constructor(){Zy(this,t,new Map)}compare(n,o){const s=typeof n,i=typeof o;return s==="string"&&i==="string"?n.localeCompare(o):s==="number"&&i==="number"?n-o:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(o,!0))}serialize(n,o){if(n===null)return"null";switch(typeof n){case"string":return o?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const o=Object.prototype.toString.call(n);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return i+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,o){const s=this["$"+n];if(s)return s.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(n,o.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,o){const s=Array.from(o).sort((a,l)=>this.compare(a[0],l[0]));let i=`${n}{`;for(let a=0;athis.compare(o,s)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}t=new WeakMap;for(const r of["Error","RegExp","URL"])e.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return e}();function sN(e,t){return e===t||_v(e)===_v(t)}const iN="$s";function ei(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const o=iN+r,s=Ae(),i=Zs(s.payload.state,o);if(i.value===void 0&&n){const a=n();if(qe(a))return s.payload.state[o]=a,a;i.value=a}return i}function aN(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r={},n=t||{},o=n.decode||lN;let s=0;for(;sIl(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},zc=window.cookieStore;function wu(e,t){var c;const r={...fN,...t};r.filter??(r.filter=u=>u===e);const n=bv(r)||{};let o;r.maxAge!==void 0?o=r.maxAge*1e3:r.expires&&(o=r.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s||n[e]===void 0||n[e]===null,a=en(s?void 0:n[e]??((c=r.default)==null?void 0:c.call(r))),l=o&&!s?hN(a,o,r.watch&&r.watch!=="shallow"):ue(a);{let u=null;try{!zc&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{!h&&(r.readonly||sN(l.value,n[e]))||(pN(e,l.value,r),n[e]=en(l.value),u==null||u.postMessage({value:r.encode(l.value)}))},d=h=>{var m;const y=h.refresh?(m=bv(r))==null?void 0:m[e]:r.decode(h.value);p=!0,l.value=y,n[e]=en(y),Gr(()=>{p=!1})};let p=!1;const g=!!ca();if(g&&wl(()=>{p=!0,f(),u==null||u.close()}),zc){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})};zc.addEventListener("change",h),g&&wl(()=>zc.removeEventListener("change",h))}else u&&(u.onmessage=({data:h})=>d(h));r.watch&&Oe(l,()=>{p||f()},{deep:r.watch!=="shallow"}),i&&f(i)}return l}function bv(e={}){return aN(document.cookie,e)}function dN(e,t,r={}){return t==null?vv(e,t,{...r,maxAge:-1}):vv(e,t,r)}function pN(e,t,r={}){document.cookie=dN(e,t,r)}const wv=2147483647;function hN(e,t,r){let n,o,s=0;const i=r?ue(e):{value:e};return ca()&&wl(()=>{o==null||o(),clearTimeout(n)}),Gw((a,l)=>{r&&(o=Oe(i,l));function c(){s=0,clearTimeout(n);const u=t-s,f=u{if(s+=f,s4)return Promise.all(o).then(()=>YE(e,t));t._routePreloaded.add(r);const s=n.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 gN=(...e)=>e.find(t=>t!==void 0);function mN(e){const t=e.componentName||"NuxtLink";function r(s){return typeof s=="string"&&s.startsWith("#")}function n(s,i){if(!s||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return s;if(typeof s=="string")return Sv(s,e.trailingSlash);const a="path"in s&&s.path!==void 0?s.path:i(s).path;return{...s,name:void 0,path:Sv(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"&&yn(y,{acceptRelative:!0})}),u=l_("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:n(y,i.resolve)}),g=d.value||f==null?void 0:f({...s,to:p}),h=J(()=>{var y;if(!p.value||c.value||r(p.value))return p.value;if(d.value){const m=typeof p.value=="object"&&"path"in p.value?Fh(p.value):p.value,b=typeof m=="object"?i.resolve(m).href:m;return n(b,i.resolve)}return typeof p.value=="object"?((y=i.resolve(p.value))==null?void 0:y.href)??null:n(Js(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 Io(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"&&!bN()}async function b(_=Ae()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:f.value?Fh(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&&YE(l.value,a).catch(()=>{})])}if(m("visibility")){const _=Ae();let v,S=null;Or(()=>{const E=_N();Em(()=>{v=qh(()=>{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(_)}))})})}),fa(()=>{v&&GP(v),S==null||S(),S=null})}return()=>{var S;if(!f.value&&!d.value&&!r(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),Ct(l_("RouterLink"),E,i.default)}const _=s.target||null,v=gN(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 sd(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:Ct("a",{ref:h,href:c.value||null,rel:v,target:_},(S=i.default)==null?void 0:S.call(i))}}})}const yN=mN(l1);function Sv(e,t){const r=t==="append"?Ol:id;return yn(e)&&!e.startsWith("http")?e:r(e,!0)}function _N(){const e=Ae();if(e._observer)return e._observer;let t=null;const r=new Map,n=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),r.set(s,i),t.observe(s),()=>{r.delete(s),t==null||t.unobserve(s),r.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:n}}const vN=/2g/;function bN(){const e=navigator.connection;return!!(e&&(e.saveData||vN.test(e.effectiveType)))}const xr={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 En(e){return{containerName:`taboola-homepage-${e}`,mode:"thumbnails-r-267x178-v2"}}const wN={article_content_below_button:{mode:"alternating-thumbnails-a",containerName:"taboola-below-article-feed"}},SN={sectiontab_300x250:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("sectiontab-300x250"),assertive:{},props:{}},sectiontab_slider:{outbrain:{...xr.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_r1_c2:{outbrain:{...xr.AR_35},style:{...xt[304300]},taboola:En("r1-c2"),assertive:{},props:{lazyRender:!0}},newtab_r1_topright:{outbrain:{...xr.AR_36},style:{...xt[304300]},taboola:En("r1-topright"),assertive:{},props:{lazyRender:!0}},newtab_r2_c1:{outbrain:{...xr.AR_37},style:{...xt[304300]},taboola:En("r2-c1"),assertive:{},props:{lazyRender:!0}},newtab_r3_right:{outbrain:{...xr.AR_45},style:{...xt[304300]},taboola:En("r3-right"),assertive:{},props:{lazyRender:!0}},newtab_r4_c1:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r4-c1"),assertive:{},props:{lazyRender:!0}},newtab_r4_right:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r4-right"),assertive:{},props:{lazyRender:!0}},newtab_r3_c1:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r3-c1"),assertive:{},props:{lazyRender:!0}},newtab_r2_c4:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("r2-c4"),assertive:{},props:{lazyRender:!0}},newtab_endless_right:{outbrain:{...xr.AR_38},style:{...xt[304300]},taboola:En("endless"),assertive:{},props:{lazyRender:!0}},newtab_slider_1:{outbrain:{...xr.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_slider_2:{outbrain:{...xr.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:{...xr.AR_31},taboola:{...wN.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:{}}},EN={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:SN},taboola:{publisherName:"rebasetechinc-network"}},xN={},kN={nuxtIcon:{},openfeature:{multiProvider:!0,localProvider:!1,queryProvider:!0},directAdsHostedConfigUrl:"",redesignedNtpPaths:[""],googleTagManagerId:"",urls:{home:"/",article:"/article",video:"/video"},outbrain:{installationKey:""},adops:{placements:xN},taboola:{publisherName:""}},TN={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"}},Dr=y1(EN,kN,TN);function jn(){const e=Ae();return e._appConfig||(e._appConfig=Jt(Dr)),e._appConfig}const CN=Je({name:"pinia",setup(e){const t=JP();return e.vueApp.use(t),gc(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),AN=Zf(()=>Yt(()=>Promise.resolve().then(()=>B2),void 0,import.meta.url).then(e=>e.default||e.default||e)),IN=Zf(()=>Yt(()=>import("./2wtErE0T.js"),__vite__mapDeps([56,57]),import.meta.url).then(e=>e.default||e.default||e)),ON=Zf(()=>Yt(()=>import("./BhN8OWfR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),RN=[["Icon",AN],["IconCSS",IN],["NuxtIcon",ON]],LN=Je({name:"nuxt:global-components",setup(e){for(const[t,r]of RN)e.vueApp.component(t,r),e.vueApp.component("Lazy"+t,r)}}),Gc={custom:Zf(()=>Yt(()=>import("./BJHthMZE.js"),__vite__mapDeps([58,49,59]),import.meta.url).then(e=>e.default||e))},PN=Je({name:"nuxt:prefetch",setup(e){const t=Bt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{var o;const n=(o=r==null?void 0:r.meta)==null?void 0:o.layout;n&&typeof Gc[n]=="function"&&await Gc[n]()})}),e.hooks.hook("link:prefetch",r=>{if(yn(r))return;const n=t.resolve(r);if(!n)return;const o=n.meta.layout;let s=Sm(n.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof cl[i]=="function"&&cl[i]();o&&typeof Gc[o]=="function"&&Gc[o]()})}});function Su(...e){var t;(t=window.dataLayer)==null||t.push(arguments)}function ZE({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const r of t.initCommands??[])Su(...r);Su("js",new Date);for(const t of e)Su("config",t.id,t.config??{})}function XE(e){const t=Me(e),r=t.tags.filter(Boolean).map(n=>typeof n=="string"?{id:n}:n);if(t.id){const{id:n,config:o,initCommands:s}=t;r.unshift({id:n,config:o,initCommands:s})}return r}const NN=Je({parallel:!0,setup(){const e=it().public.gtag,t=XE(e);if(!t.length||(ZE({tags:t}),e.initMode==="manual"))return;const r=e.loadingStrategy==="async"?"async":"defer";Ms({link:[{rel:"preload",as:"script",href:Rl(e.url,{id:t[0].id})}],script:[{src:Rl(e.url,{id:t[0].id}),[r]:!0,"data-gtag":""}]})}}),fl=/^[a-z0-9]+(-[a-z0-9]+)*$/,ud=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=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]:n,prefix:l,name:a};return t&&!Eu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!Eu(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!Eu(a,r)?null:a}return null},Eu=(e,t)=>e?!!((e.provider===""||e.provider.match(fl))&&(t&&e.prefix===""||e.prefix.match(fl))&&e.name.match(fl)):!1,JE=Object.freeze({left:0,top:0,width:16,height:16}),nf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_c=Object.freeze({...JE,...nf}),Zh=Object.freeze({..._c,body:"",hidden:!1});function MN(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Ev(e,t){const r=MN(e,t);for(const n in Zh)n in nf?n in e&&!(n in r)&&(r[n]=nf[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function DN(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function $N(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ev(n[a]||o[a],s)}return i(t),r.forEach(i),Ev(e,s)}function QE(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=DN(e);for(const o in n){const s=n[o];s&&(t(o,$N(e,o,s)),r.push(o))}return r}const FN={provider:"",aliases:{},not_found:{},...JE};function hp(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function ex(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!hp(e,FN))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o.match(fl)||typeof s.body!="string"||!hp(s,Zh))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o.match(fl)||typeof i!="string"||!r[i]&&!n[i]||!hp(s,Zh))return null}return t}const xv=Object.create(null);function UN(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ds(e,t){const r=xv[e]||(xv[e]=Object.create(null));return r[t]||(r[t]=UN(e,t))}function xm(e,t){return ex(t)?QE(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function jN(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Ml=!1;function tx(e){return typeof e=="boolean"&&(Ml=e),Ml}function rx(e){const t=typeof e=="string"?ud(e,!0,Ml):e;if(t){const r=Ds(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function BN(e,t){const r=ud(e,!0,Ml);if(!r)return!1;const n=Ds(r.provider,r.prefix);return jN(n,r.name,t)}function HN(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ml&&!t&&!e.prefix){let o=!1;return ex(e)&&(e.prefix="",QE(e,(s,i)=>{i&&BN(s,i)&&(o=!0)})),o}const r=e.prefix;if(!Eu({provider:t,prefix:r,name:"a"}))return!1;const n=Ds(t,r);return!!xm(n,e)}function d9(e){const t=rx(e);return t?{..._c,...t}:null}const nx=Object.freeze({width:null,height:null}),ox=Object.freeze({...nx,...nf}),VN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,WN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function kv(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(VN);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=WN.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function zN(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function GN(e,t){return e?""+e+""+t:t}function qN(e,t,r){const n=zN(e);return GN(n.defs,t+n.content+r)}const KN=e=>e==="unset"||e==="undefined"||e==="none";function YN(e,t){const r={..._c,...e},n={...ox,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].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=n.width,a=n.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=kv(f,l/c)):(u=i==="auto"?l:i,f=a===null?kv(u,c/l):a==="auto"?c:a);const d={},p=(h,y)=>{KN(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 ZN=/\sid="(\S+)"/g,XN="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let JN=0;function QN(e,t=XN){const r=[];let n;for(;n=ZN.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(JN++).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 Xh=Object.create(null);function sx(e,t){Xh[e]=t}function Jh(e){return Xh[e]||Xh[""]}function km(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 fd=Object.create(null),Aa=["https://api.simplesvg.com","https://api.unisvg.com"],xu=[];for(;Aa.length>0;)Aa.length===1||Math.random()>.5?xu.push(Aa.shift()):xu.push(Aa.pop());fd[""]=km({resources:["https://api.iconify.design"].concat(xu)});function ix(e,t){const r=km(t);return r===null?!1:(fd[e]=r,!0)}function dd(e){return fd[e]}function eM(){return Object.keys(fd)}const tM=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let of=tM();function rM(e){of=e}function nM(){return of}function oM(e,t){const r=dd(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function sM(e){return e===404}const iM=(e,t,r)=>{const n=[],o=oM(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),n.push(i),n};function aM(e){if(typeof e=="string"){const t=dd(e);if(t)return t.path}return"/"}const lM=(e,t,r)=>{if(!of){r("abort",424);return}let n=aM(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;of(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(sM(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},cM={prepare:iM,send:lM};function uM(e){const t={loaded:[],missing:[],pending:[]},r=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 n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,l=r[s]||(r[s]=Object.create(null)),c=l[i]||(l[i]=Ds(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 ax(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function fM(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=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:n,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||ax([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let dM=0;function pM(e,t,r){const n=dM++,o=ax.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function hM(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?ud(o,t,r):o;s&&n.push(s)}),n}var gM={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function mM(e,t,r,n){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 n=="function"&&p.push(n);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),r(E,t,x.callback)}return setTimeout(S),m}function lx(e){const t={...gM,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,l,c){const u=mM(t,a,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function s(a){return r.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Tv(){}const gp=Object.create(null);function yM(e){if(!gp[e]){const t=dd(e);if(!t)return;const r=lx(t),n={config:t,redundancy:r};gp[e]=n}return gp[e]}function cx(e,t,r){let n,o;if(typeof e=="string"){const s=Jh(e);if(!s)return r(void 0,424),Tv;o=s.send;const i=yM(e);i&&(n=i.redundancy)}else{const s=km(e);if(s){n=lx(s);const i=e.resources?e.resources[0]:"",a=Jh(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Tv):n.query(t,o,r)().abort}const Cv="iconify2",Dl="iconify",ux=Dl+"-count",Av=Dl+"-version",fx=36e5,_M=168,vM=50;function Qh(e,t){try{return e.getItem(t)}catch{}}function Tm(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Iv(e,t){try{e.removeItem(t)}catch{}}function eg(e,t){return Tm(e,ux,t.toString())}function tg(e){return parseInt(Qh(e,ux))||0}const Cs={local:!0,session:!0},dx={local:new Set,session:new Set};let Cm=!1;function bM(e){Cm=e}let qc=typeof window>"u"?{}:window;function px(e){const t=e+"Storage";try{if(qc&&qc[t]&&typeof qc[t].length=="number")return qc[t]}catch{}Cs[e]=!1}function hx(e,t){const r=px(e);if(!r)return;const n=Qh(r,Av);if(n!==Cv){if(n){const a=tg(r);for(let l=0;l{const l=Dl+a.toString(),c=Qh(r,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{}Iv(r,l)}};let i=tg(r);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,eg(r,i)):dx[e].add(a))}function gx(){if(!Cm){bM(!0);for(const e in Cs)hx(e,t=>{const r=t.data,n=t.provider,o=r.prefix,s=Ds(n,o);if(!xm(s,r).length)return!1;const i=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function wM(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Cs)hx(n,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function SM(e,t){Cm||gx();function r(n){let o;if(!Cs[n]||!(o=px(n)))return;const s=dx[n];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=tg(o),i>=vM||!eg(o,i+1))return;const a={cached:Math.floor(Date.now()/fx),provider:e.provider,data:t};return Tm(o,Dl+i.toString(),JSON.stringify(a))}t.lastModified&&!wM(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Ov(){}function EM(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,fM(e)}))}function xM(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:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Jh(r)))return;s.prepare(r,n,o).forEach(a=>{cx(r,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=xm(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),SM(e,l)}catch(c){console.error(c)}EM(e)})})}))}const kM=(e,t)=>{const r=hM(e,!0,tx()),n=uM(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,Ov)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(Ds(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=Ds(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&&xM(l,o[c][u])}),t?pM(t,n,s):Ov};function TM(e,t){switch(e){case"local":case"session":Cs[e]=t;break;case"all":for(const r in Cs)Cs[r]=t;break}}function CM(e,t){const r={...e};for(const n in t){const o=t[n],s=typeof o;n in nx?(o===null||o&&(s==="string"||s==="number"))&&(r[n]=o):s===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const AM=/[\s,]+/;function IM(e,t){t.split(AM).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function OM(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}function RM(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}function LM(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function PM(e){return"data:image/svg+xml,"+LM(e)}function NM(e){return'url("'+PM(e)+'")'}const Rv={...ox,inline:!1},MM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},DM={display:"inline-block"},rg={backgroundColor:"currentColor"},mx={backgroundColor:"transparent"},Lv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pv={webkitMask:rg,mask:rg,background:mx};for(const e in Pv){const t=Pv[e];for(const r in Lv)t[e+r]=Lv[r]}const ku={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ku[e+"-flip"]=t,ku[e.slice(0,1)+"-flip"]=t,ku[e+"Flip"]=t});function Nv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Mv=(e,t)=>{const r=CM(Rv,t),n={...MM},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":r[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&IM(r,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?r[h]=OM(y):typeof y=="number"&&(r[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete n["aria-hidden"];break;default:{const m=ku[h];m?(y===!0||y==="true"||y===1)&&(r[m]=!0):Rv[h]===void 0&&(n[h]=y)}}}const l=YN(e,r),c=l.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),n.innerHTML=QN(l.body,y?()=>y+"ID"+h++:"iconifyVue"),Ct("svg",n)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=RM(u,{...c,width:f+"",height:d+""});return n.style={...s,"--svg":NM(g),width:Nv(c.width),height:Nv(c.height),...DM,...p?rg:mx,...a},Ct("span",n)};function $M(e){TM(e,!1)}tx(!0);sx("",cM);if(typeof document<"u"&&typeof window<"u"){gx();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!HN(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;ix(r,o)||console.error(n)}catch{console.error(n)}}}}const FM={..._c,body:""},p9=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,r){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=ud(e,!1,!0))===null)return this.abortLoading(),null;let o=rx(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:kM([n],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),r){o=Object.assign({},o);const i=r(o.body,n.name,n.prefix,n.provider);typeof i=="string"&&(o.body=i)}const s=["iconify"];return n.prefix!==""&&s.push("iconify--"+n.prefix),n.provider!==""&&s.push("iconify--"+n.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 Mv(FM,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Mv({..._c,...t.data},r)}}),UM={getAPIConfig:dd,setAPIModule:sx,sendAPIQuery:cx,setFetch:rM,getFetch:nM,listAPIProviders:eM},jM=Je({name:"@nuxt/icon",setup(){var n,o;const e=it(),t=jn().icon;UM.setFetch($fetch.native),$M("all");const r=[];if(t.provider==="server"){const s=((o=(n=e.app)==null?void 0:n.baseURL)==null?void 0:o.replace(/\/$/,""))??"";r.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),t.fallbackToApi&&r.push(t.iconifyApiEndpoint)}else r.push(t.iconifyApiEndpoint);ix("",{resources:r})}});function Vo(e){return ca()?(wl(e),!0):!1}function pd(e){let t=0,r,n;const o=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return(...s)=>(t+=1,r||(n=la(!0),r=n.run(()=>e(...s))),Vo(o),r)}function ar(e){return typeof e=="function"?e():He(e)}const sf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BM=e=>e!=null,HM=Object.prototype.toString,VM=e=>HM.call(e)==="[object Object]",af=()=>+Date.now(),cn=()=>{};function hd(e,t){function r(...n){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(s)})}return r}const yx=e=>e();function _x(e,t={}){let r,n,o=cn;const s=a=>{clearTimeout(a),o(),o=cn};return a=>{const l=ar(e),c=ar(t.maxWait);return r&&s(r),l<=0||c!==void 0&&c<=0?(n&&(s(n),n=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!n&&(n=setTimeout(()=>{r&&s(r),n=null,u(a())},c)),r=setTimeout(()=>{n&&s(n),n=null,u(a())},l)})}}function vx(...e){let t=0,r,n=!0,o=cn,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=()=>{r&&(clearTimeout(r),r=void 0,o(),o=cn)};return d=>{const p=ar(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!n)?(t=Date.now(),h()):a&&(s=new Promise((y,m)=>{o=c?m:y,r=setTimeout(()=>{t=Date.now(),n=!0,y(h()),u()},Math.max(0,p-g))})),!l&&!r&&(r=setTimeout(()=>n=!0,p)),n=!1,s)}}function WM(e=yx){const t=ue(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Yf(t),pause:r,resume:n,eventFilter:o}}function zM(e){return er()}function GM(e,t=200,r={}){return hd(_x(t,r),e)}function qM(e,t=200,r=!1,n=!0,o=!1){return hd(vx(t,r,n,o),e)}function bx(e,t,r={}){const{eventFilter:n=yx,...o}=r;return Oe(e,hd(n,t),o)}function wx(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:s,pause:i,resume:a,isActive:l}=WM(n);return{stop:bx(e,t,{...o,eventFilter:s}),pause:i,resume:a,isActive:l}}function gd(e,t=!0,r){zM()?Or(e,r):t?e():Gr(e)}function KM(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r;let s=null;const i=ue(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=ar(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(n&&sf&&c(),qe(t)||typeof t=="function"){const u=Oe(t,()=>{i.value&&sf&&c()});Vo(u)}return Vo(l),{isActive:i,pause:l,resume:c}}function h9(e,t,r={}){const{debounce:n=0,maxWait:o=void 0,...s}=r;return bx(e,t,{...s,eventFilter:_x(n,{maxWait:o})})}function YM(e,t,r){const n=Oe(e,(...o)=>(Gr(()=>n()),t(...o)),r);return n}function g9(e,t,r){let n;qe(r)?n={evaluating:r}:n=r||{};const{lazy:o=!1,evaluating:s=void 0,shallow:i=!0,onError:a=cn}=n,l=ue(!o),c=i?fn(t):ue(t);let u=0;return Qf(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 nn(e){var t;const r=ar(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Ir=sf?window:void 0,ZM=sf?window.document:void 0;function Dn(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=Ir):[t,r,n,o]=e,!t)return cn;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);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(()=>[nn(t),ar(o)],([u,f])=>{if(i(),!u)return;const d=VM(f)?{...f}:f;s.push(...r.flatMap(p=>n.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Vo(c),c}function XM(){const e=ue(!1),t=er();return t&&Or(()=>{e.value=!0},t),e}function Am(e){const t=XM();return J(()=>(t.value,!!e()))}function JM(e,t={}){const{immediate:r=!0,fpsLimit:n=void 0,window:o=Ir}=t,s=ue(!1),i=n?1e3/n:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pr&&"matchMedia"in r&&typeof r.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=Qf(()=>{n.value&&(a(),o=r.matchMedia(ar(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return Vo(()=>{l(),a(),o=void 0}),s}const Kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yc="__vueuse_ssr_handlers__",QM=eD();function eD(){return Yc in Kc||(Kc[Yc]=Kc[Yc]||{}),Kc[Yc]}function tD(e,t){return QM[e]||t}function rD(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 nD={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()}},Dv="vueuse-storage";function oD(e,t,r,n={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=Ir,eventFilter:d,onError:p=O=>{console.error(O)},initOnMounted:g}=n,h=(u?fn:ue)(typeof t=="function"?t():t);if(!r)try{r=tD("getDefaultStorage",()=>{var O;return(O=Ir)==null?void 0:O.localStorage})()}catch(O){p(O)}if(!r)return h;const y=ar(t),m=rD(y),b=(o=n.serializer)!=null?o:nD[m],{pause:_,resume:v}=wx(h,()=>E(h.value),{flush:s,deep:i,eventFilter:d});f&&a&&gd(()=>{Dn(f,"storage",N),Dn(f,Dv,I),g&&N()}),g||N();function S(O,U){f&&f.dispatchEvent(new CustomEvent(Dv,{detail:{key:e,oldValue:O,newValue:U,storageArea:r}}))}function E(O){try{const U=r.getItem(e);if(O==null)S(U,null),r.removeItem(e);else{const L=b.write(O);U!==L&&(r.setItem(e,L),S(U,L))}}catch(U){p(U)}}function x(O){const U=O?O.newValue:r.getItem(e);if(U==null)return l&&y!=null&&r.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!==r)){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?Gr(v):v()}}}}function I(O){N(O.detail)}return h}function Ex(e){return Sx("(prefers-color-scheme: dark)",e)}function sD(e={}){const{document:t=ZM}=e;if(!t)return ue("visible");const r=ue(t.visibilityState);return Dn(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}function iD(e,t,r={}){const{window:n=Ir,...o}=r;let s;const i=Am(()=>n&&"ResizeObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},l=J(()=>Array.isArray(e)?e.map(f=>nn(f)):[nn(e)]),c=Oe(l,f=>{if(a(),i.value&&n){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Vo(u),{isSupported:i,stop:u}}function m9(e,t={width:0,height:0},r={}){const{window:n=Ir,box:o="content-box"}=r,s=J(()=>{var f,d;return(d=(f=nn(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=ue(t.width),a=ue(t.height),{stop:l}=iD(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&s.value){const p=nn(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},r);gd(()=>{const f=nn(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=Oe(()=>nn(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 aD(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:s=.1,window:i=Ir,immediate:a=!0}=r,l=Am(()=>i&&"IntersectionObserver"in i),c=J(()=>{const g=ar(e);return(Array.isArray(g)?g:[g]).map(nn).filter(BM)});let u=cn;const f=ue(a),d=l.value?Oe(()=>[c.value,nn(n),f.value],([g,h])=>{if(u(),!f.value||!g.length)return;const y=new IntersectionObserver(t,{root:nn(h),rootMargin:o,threshold:s});g.forEach(m=>m&&y.observe(m)),u=()=>{y.disconnect(),u=cn}},{immediate:a,flush:"post"}):cn,p=()=>{u(),d(),f.value=!1};return Vo(p),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}function xx(e,t={}){const{window:r=Ir,scrollTarget:n,threshold:o=0}=t,s=ue(!1);return aD(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:n,window:r,threshold:o}),s}const lD=["mousemove","mousedown","resize","keydown","touchstart","wheel"],cD=6e4;function uD(e=cD,t={}){const{initialState:r=!1,listenForVisibilityChange:n=!0,events:o=lD,window:s=Ir,eventFilter:i=vx(50)}=t,a=ue(r),l=ue(af());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},f=hd(i,()=>{l.value=af(),u()});if(s){const d=s.document;for(const p of o)Dn(s,p,f,{passive:!0});n&&Dn(d,"visibilitychange",()=>{d.hidden||f()}),u()}return{idle:a,lastActive:l,reset:u}}const $v=1;function fD(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=cn,onScroll:s=cn,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=Ir,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=ar(e);if(!G)return;(U=G instanceof Document?c.document.body:G)==null||U.scrollTo({top:(I=ar(N))!=null?I:g.value,left:(O=ar(x))!=null?O:p.value,behavior:ar(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=GM(_,r+n),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)||nn(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)-$v;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),re=Math.abs(ce)+I.clientHeight>=I.scrollHeight-(i.bottom||0)-$v;O==="flex"&&U==="column-reverse"?(m.top=re,m.bottom=q):(m.top=q,m.bottom=re),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 Dn(e,"scroll",r?qM(E,r,!0,!1):E,a),gd(()=>{try{const x=ar(e);if(!x)return;S(x)}catch(x){u(x)}}),Dn(e,"scrollend",_,a),{x:p,y:g,isScrolling:y,arrivedState:m,directions:b,measure(){const x=ar(e);c&&x&&S(x)}}}function dD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function y9(e,t,r={}){var n;const{direction:o="bottom",interval:s=100,canLoadMore:i=()=>!0}=r,a=Jt(fD(e,{...r,offset:{[o]:(n=r.distance)!=null?n:0,...r.offset}})),l=ue(),c=J(()=>!!l.value),u=J(()=>dD(ar(e))),f=xx(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,Gr(()=>d())})))}return Oe(()=>[a.arrivedState[o],f.value],d,{immediate:!0}),{isLoading:c}}function kx(e,t,r={}){const{window:n=Ir}=r;return oD(e,t,n==null?void 0:n.localStorage,r)}function pD(e={}){const{controls:t=!1,offset:r=0,immediate:n=!0,interval:o="requestAnimationFrame",callback:s}=e,i=ue(af()+r),a=()=>i.value=af()+r,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?JM(l,{immediate:n}):KM(l,o,{immediate:n});return t?{timestamp:i,...c}:i}function hD(e="history",t={}){const{initialValue:r={},removeNullishValues:n=!0,removeFalsyValues:o=!1,write:s=!0,window:i=Ir}=t;if(!i)return Jt(r);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}=wx(a,()=>{const m=new URLSearchParams("");Object.keys(a).forEach(b=>{const _=a[b];Array.isArray(_)?_.forEach(v=>m.append(b,v)):n&&_==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)}Dn(i,"popstate",h,!1),e!=="history"&&Dn(i,"hashchange",h,!1);const y=u();return y.keys().next().value?f(y):Object.assign(a,r),a}function Tx(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=ue(r),a=ue(n),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(),gd(l),Dn("resize",l,{passive:!0}),o){const c=Sx("(orientation: portrait)");Oe(c,()=>l())}return{width:i,height:a}}const gD=Symbol("nuxt-ui.slideover"),mD=Je(e=>{const t=fn({component:"div",props:{}});e.vueApp.provide(gD,t)}),yD=Symbol("nuxt-ui.modal"),_D=Je(e=>{const t=fn({component:"div",props:{}});e.vueApp.provide(yD,t)}),Im="-";function vD(e){const t=wD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(i){const a=i.split(Im);return a[0]===""&&a.length!==1&&a.shift(),Cx(a,t)||bD(i)}function s(i,a){const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Cx(e,t){var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Cx(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Im);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Fv=/^\[(.+)\]$/;function bD(e){if(Fv.test(e)){const t=Fv.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function wD(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return ED(Object.entries(e.classGroups),r).forEach(([s,i])=>{ng(i,n,s,t)}),n}function ng(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Uv(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(SD(o)){ng(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{ng(i,Uv(t,s),r,n)})})}function Uv(e,t){let r=e;return t.split(Im).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function SD(e){return e.isThemeGetter}function ED(e,t){return t?e.map(([r,n])=>{const o=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[r,o]}):e}function xD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(s,i){r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}}const Ax="!";function kD(e){const{separator:t,experimentalParseClassName:r}=e,n=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 r?function(l){return r({className:l,parseClassName:i})}:i}function TD(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function CD(e){return{cache:xD(e.cacheSize),parseClassName:kD(e),...vD(e)}}const AD=/\s+/;function ID(e,t){const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(AD).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=r(i);let f=!!u,d=n(f?c.substring(0,u):c);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=n(c),!d)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=TD(a).join(":");return{isTailwindClass:!0,modifierId:l?p+Ax: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 Wr(){let e=0,t,r,n="";for(;ef(u),e());return r=CD(c),n=r.cache.get,o=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=ID(l,r);return o(l,u),u}return function(){return s(Wr.apply(null,arguments))}}function ct(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const Ox=/^\[(?:([a-z-]+):)?(.+)\]$/i,OD=/^\d+\/\d+$/,RD=new Set(["px","full","screen"]),LD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PD=/\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$/,ND=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,MD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zn(e){return bs(e)||RD.has(e)||OD.test(e)}function So(e){return pa(e,"length",WD)}function bs(e){return!!e&&!Number.isNaN(Number(e))}function Zc(e){return pa(e,"number",bs)}function Ia(e){return!!e&&Number.isInteger(Number(e))}function $D(e){return e.endsWith("%")&&bs(e.slice(0,-1))}function Ce(e){return Ox.test(e)}function Eo(e){return LD.test(e)}const FD=new Set(["length","size","percentage"]);function UD(e){return pa(e,FD,Rx)}function jD(e){return pa(e,"position",Rx)}const BD=new Set(["image","url"]);function HD(e){return pa(e,BD,GD)}function VD(e){return pa(e,"",zD)}function Oa(){return!0}function pa(e,t,r){const n=Ox.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function WD(e){return PD.test(e)&&!ND.test(e)}function Rx(){return!1}function zD(e){return MD.test(e)}function GD(e){return DD.test(e)}function sg(){const e=ct("colors"),t=ct("spacing"),r=ct("blur"),n=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",Ce,t],L=()=>[Ce,t],G=()=>["",zn,So],oe=()=>["auto",bs,Ce],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],Se=()=>["","0",Ce],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[bs,Zc],We=()=>[bs,Ce];return{cacheSize:500,separator:":",theme:{colors:[Oa],spacing:[zn,So],blur:["none","",Eo,Ce],brightness:be(),borderColor:[e],borderRadius:["none","","full",Eo,Ce],borderSpacing:L(),borderWidth:G(),contrast:be(),grayscale:Se(),hueRotate:We(),invert:Se(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[$D,So],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",Ce]}],container:["container"],columns:[{columns:[Eo]}],"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(),Ce]}],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",Ia,Ce]}],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",Ce]}],grow:[{grow:Se()}],shrink:[{shrink:Se()}],order:[{order:["first","last","none",Ia,Ce]}],"grid-cols":[{"grid-cols":[Oa]}],"col-start-end":[{col:["auto",{span:["full",Ia,Ce]},Ce]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[Oa]}],"row-start-end":[{row:["auto",{span:[Ia,Ce]},Ce]}],"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",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"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",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[Eo]},Eo]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Eo,So]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zc]}],"font-family":[{font:[Oa]}],"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",Ce]}],"line-clamp":[{"line-clamp":["none",bs,Zc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zn,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"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",zn,So]}],"underline-offset":[{"underline-offset":["auto",zn,Ce]}],"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",Ce]}],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",Ce]}],"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(),jD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},HD]}],"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":[zn,Ce]}],"outline-w":[{outline:[zn,So]}],"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":[zn,So]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Eo,VD]}],"shadow-color":[{shadow:[Oa]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Eo,Ce]}],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":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"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",Ce]}],duration:[{duration:We()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:We()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Ia,Ce]}],"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",Ce]}],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",Ce]}],"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",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zn,So,Zc]}],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:r,separator:n,experimentalParseClassName:o,extend:s={},override:i={}}){Za(e,"cacheSize",t),Za(e,"prefix",r),Za(e,"separator",n),Za(e,"experimentalParseClassName",o);for(const a in i)KD(e[a],i[a]);for(const a in s)YD(e[a],s[a]);return e}function Za(e,t,r){r!==void 0&&(e[t]=r)}function KD(e,t){if(t)for(const r in t)Za(e,r,t[r])}function YD(e,t){if(t)for(const r in t){const n=t[r];n!==void 0&&(e[r]=(e[r]||[]).concat(n))}}function ZD(e,...t){return typeof e=="function"?og(sg,e,...t):og(()=>qD(sg(),e),...t)}const Wi=og(sg);function XD(e,t){const r={...e};for(const n of t)delete r[n];return r}function JD(e,t,r){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let n=e;for(const o of t){if(n==null)return r;n=n[o]}return n!==void 0?n:r}const Om={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}},QD=e=>Object.keys(Om).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{}),e$=ZD({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),t$=gm((e,t,r,n)=>{if(n==="default"||n.startsWith("default.")||n==="popper"||n.startsWith("popper.")||n.endsWith("avatar")&&t==="size"||n.endsWith("chip")&&t==="size"||n.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof r=="string"&&e[t]&&r)return e[t]=e$(e[t],r),!0});function vc(e,...t){return e==="override"?hE({},...t):t$({},...t)}function jv(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,o,s,i){return o+o+s+s+i+i});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?`${parseInt(r[1],16)} ${parseInt(r[2],16)} ${parseInt(r[3],16)}`:null}const r$="inherit",n$="currentColor",o$="transparent",s$="#000",i$="#fff",a$={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},l$={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) / )"},c$={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},u$={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},f$={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},d$={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"},p$={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"},h$={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},g$={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},m$={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},y$={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"},_$={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},v$={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},b$={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},w$={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},S$={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"},E$={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},x$={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},k$={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},T$={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},C$={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},A$={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},I$={white:"color-mix(in srgb, var(--colors-basic-white) calc(100% * ), transparent)",black:"color-mix(in srgb, var(--colors-basic-black) calc(100% * ), transparent)"},O$={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)"},R$={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)"},L$={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)"},P$={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)"},N$={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)"},M$={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)"},D$={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)"},$$={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)"},F$={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)"},U$={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)"},j$={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)"},B$={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)"},H$={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)"}},V$={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)"},W$={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)"}}},z$={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)"}},G$={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"},Xc={inherit:r$,current:n$,transparent:o$,black:s$,white:i$,slate:a$,gray:l$,zinc:c$,neutral:u$,stone:f$,red:d$,orange:p$,amber:h$,yellow:g$,lime:m$,green:y$,emerald:_$,teal:v$,cyan:b$,sky:w$,blue:S$,indigo:E$,violet:x$,purple:k$,fuchsia:T$,pink:C$,rose:A$,basic:I$,grey:O$,trueGrey:R$,lightBlue:L$,warmGrey:P$,light:N$,dark:M$,informative:D$,positive:$$,warning:F$,negative:U$,brandLight:j$,brandDark:B$,background:H$,content:V$,border:W$,action:z$,primary:G$,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"},K$=Je(()=>{const e=jn(),t=Ae(),r=J(()=>{const o=Xc[e.ui.primary],s=Xc[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||Xc.green).map(([i,a])=>`--color-primary-${i}: ${jv(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); ${Object.entries(s||Xc.cool).map(([i,a])=>`--color-gray-${i}: ${jv(a)};`).join(` `)} } .dark { --color-primary-DEFAULT: var(--color-primary-400); } `}),n={style:[{innerHTML:()=>r.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=r.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),n.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}Ms(n)}),Y$="__NUXT_COLOR_MODE__",Z$="nuxt-color-mode",Gn=window[Y$]||{},X$=Je(e=>{const t=ei("color-mode",()=>Jt({preference:Gn.preference,value:Gn.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"?Gn.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Gn.getColorScheme())}))}Oe(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=Gn.getColorScheme(),n()):t.value=o,(s=window.localStorage)==null||s.setItem(Z$,o))},{immediate:!0}),Oe(()=>t.value,(o,s)=>{Gn.removeColorScheme(s),Gn.addColorScheme(o)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Gn.preference,t.value=Gn.value,t.unknown=!1)}),e.provide("colorMode",t)});/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const lf=typeof window<"u",Qo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),J$=(e,t,r)=>Q$({l:e,k:t,s:r}),Q$=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pt=e=>typeof e=="number"&&isFinite(e),eF=e=>Lm(e)==="[object Date]",cf=e=>Lm(e)==="[object RegExp]",md=e=>Fe(e)&&Object.keys(e).length===0,zt=Object.assign,tF=Object.create,tt=(e=null)=>tF(e);let Bv;const Rm=()=>Bv||(Bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:tt());function Hv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const rF=Object.prototype.hasOwnProperty;function on(e,t){return rF.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",nF=e=>Ve(e)&&et(e.then)&&et(e.catch),Lx=Object.prototype.toString,Lm=e=>Lx.call(e),Fe=e=>Lm(e)==="[object Object]",oF=e=>e==null?"":Nt(e)||Fe(e)&&e.toString===Lx?JSON.stringify(e,null,2):String(e);function Pm(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}function sF(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Jc=e=>!Ve(e)||Nt(e);function Di(e,t){if(Jc(e)||Jc(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:o}=r.pop();Object.keys(n).forEach(s=>{s!=="__proto__"&&(Ve(n[s])&&!Ve(o[s])&&(o[s]=Array.isArray(n[s])?[]:tt()),Jc(o[s])||Jc(n[s])?o[s]=n[s]:r.push({src:n[s],des:o[s]}))})}}const ao=[],ig={},iF=[()=>Yt(()=>import("./DB7imAev.js"),[],import.meta.url)],yd=[],Px="@nuxtjs/i18n",aF=!1,lF="i18n_redirected",cF="nuxtI18nInternal",Vv="nuxt-i18n-slp";function uF(e){return e.map(t=>typeof t=="string"?{code:t}:t)}function _d(e){return typeof e=="string"?e:e!=null?e.toString():"(null)"}function Wv(e,t,{defaultLocale:r,strategy:n,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s,differentDomains:i}){const a=n!=="no_prefix"||i;let l=_d(e)+(a?o+t:"");return t===r&&n==="prefix_and_default"&&(l+=o+s),l}function fF(e,t){return et(e)?e(t):e}function dF(e,t){const r=[];for(const[n,o]of t.entries()){const s=e.find(i=>i.language.toLowerCase()===o.toLowerCase());if(s){r.push({code:s.code,score:1-n/t.length});break}}for(const[n,o]of t.entries()){const s=o.split("-")[0].toLowerCase(),i=e.find(a=>a.language.split("-")[0].toLowerCase()===s);if(i){r.push({code:i.code,score:.999-n/t.length});break}}return r}function pF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function hF(e,t,{matcher:r=dF,comparer:n=pF}={}){const o=[];for(const i of e){const{code:a}=i,l=i.language||a;o.push({code:a,language:l})}const s=r(o,t);return s.length===0?"":(s.length>1&&s.sort(n),s[0].code)}function Nm(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const gF=`(${ao.join("|")})`,zv=Nm(ao);function Mm(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=it().public.i18n,r=`(?:${e}${t})?`,n=new RegExp(`${e}${gF}${r}$`,"i");return s=>{let i=null;return typeof s=="string"?(i=s.match(zv),(i==null?void 0:i[1])??""):(s.name?i=_d(s.name).match(n):s.path&&(i=s.path.match(zv)),(i==null?void 0:i[1])??"")}}const dl=new Map;async function mF(e,t){const r={messages:{}};for(const n of e){const{default:o}=await n(),s=et(o)?await t.runWithContext(()=>o()):o;Di(s,r)}return r}function Nx(e,t){if(e===!1)return[];if(Array.isArray(e))return e;let r=[];if(typeof e=="string")return t.every(o=>o!==e)&&r.push(e),r;const n=[...t,"default"];for(const o of n)o in e&&(r=[...r,...e[o].filter(Boolean)]);return r}async function yF(e,{key:t,load:r},n){let o=null;try{const s=await r().then(i=>"default"in i?i.default:i);et(s)?o=await n.runWithContext(()=>s(e)):(o=s,o!=null&&dl&&dl.set(t,o))}catch(s){console.error("Failed locale loading: "+s.message)}return o}async function ag(e,t,r,n){const o=t[e];if(o==null)return;const s={};for(const i of o){let a=null;dl&&dl.has(i.key)&&i.cache?a=dl.get(i.key):a=await n.runWithContext(()=>yF(e,i,n)),a!=null&&Di(a,s)}r(e,s)}function _F(e){return e!=null&&"global"in e&&"mode"in e}function vF(e){return e!=null&&!("__composer"in e)&&"locale"in e&&qe(e.locale)}function Mx(e){return e!=null&&"__composer"in e}function uf(e){return _F(e)?e.global:e}function Xa(e){const t=uf(e);return vF(t)?t:Mx(t)?t.__composer:t}function zi(e,t){const r=He(t);return r==null||!r.name?void 0:_d(r.name).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function Dm(e,t,r){var o;if(typeof t=="string"&&yn(t,{acceptRelative:!0}))return t;const n=$m(e,t,r);return n==null?"":((o=n.redirectedFrom)==null?void 0:o.fullPath)||n.fullPath}function vd(e,t,r){return $m(e,t,r)??void 0}function bF(e){if(typeof e!="string")return Object.assign({},e);if(e[0]==="/"){const{pathname:t,search:r,hash:n}=Rh(e);return{path:t,query:sd(r),hash:n}}return{name:e}}const wF=e=>!!e.path&&!e.name;function SF(e,t,r){const n=e.runtimeConfig.public.i18n;if(wF(t)){const s=xF(e,t,r),i=zi(e,s);return i?(s.name=Wv(i,r,n),s):(AF(e.runtimeConfig)({...n,currentLocale:r})&&(t.path="/"+r+t.path),t.path=(n.trailingSlash?Ol:id)(t.path,!0),t)}t.name||(t.name=zi(e,e.router.currentRoute.value));const o=Wv(t.name,r,n);return e.router.hasRoute(o)&&(t.name=o),t}function $m(e,t,r){try{const n=r||He(uf(e.i18n).locale),o=bF(t),s=e.router.resolve(SF(e,o,n));return s.name?s:e.router.resolve(t)}catch(n){if(Tn(n,1))return null}}function EF(e,t){var n;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return He(e.metaState.value);const r=t.meta||{};return((n=He(r))==null?void 0:n[cF])||{}}function ff(e,t,r){const n=r??e.router.currentRoute.value,o=zi(e,n);if(!o)return"";const s=EF(e,n)[t],i={name:o,params:Object.assign({},n.params,s),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},a=Dm(e,i,t);return IF(e.runtimeConfig)(a,t)}function xF(e,t,r){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const n=t.path.slice(1),o=t.path[0]+r+(n&&"/"+n),s=e.router.options.routes.find(i=>i.path===o);return s==null?t:e.router.resolve(Object.assign({},t,s,{path:o}))}function Dx(e){return{i18n:e??Ae().$i18n,router:Bt(),runtimeConfig:it(),metaState:ei("nuxt-i18n-meta",()=>({}))}}async function $x(e,t=!1){const r=Ae(),{differentDomains:n,skipSettingLocaleOnNavigate:o}=r.$config.public.i18n,s=bc(),i=He(r.$i18n.locale),a=He(r.$i18n.localeCodes);function l(d=i){s===!1||!s.useCookie||o||r.$i18n.setLocaleCookie(d)}const c=await r.$i18n.onBeforeLanguageSwitch(i,e,t,r);if(c&&a.includes(c)){if(i===c)return l(),!1;e=c}if(!e||!t&&n||i===e)return l(),!1;const u=He(r.$i18n.fallbackLocale),f=r.$i18n.mergeLocaleMessage.bind(r.$i18n);if(u){const d=Nx(u,[e]);await Promise.all(d.map(p=>ag(p,ig,f,r)))}return await ag(e,ig,f,r),o?!1:(l(e),r._vueI18n.__setLocale(e),await r.$i18n.onLanguageSwitched(i,e),!0)}function kF(e,t,r,n){const o=Ae(),{strategy:s,defaultLocale:i,differentDomains:a,multiDomainLocales:l}=o.$config.public.i18n,c=bc(),u=$F(e,n,r);if(u.locale&&u.from!=null&&ao.includes(u.locale))return u.locale;let f="";a||l?f||(f=FF(yd,s,e)):s!=="no_prefix"&&(f||(f=t));const d=(ao.includes(u.locale)||n&&ao.includes(n))&&c&&c.useCookie&&n;return f||(f=d||r||i||""),f}function Fx({to:e,from:t,locale:r,routeLocale:n},o=!1){if(n===r||Ae().$i18n.strategy==="no_prefix")return"";const s=Dx();let i=ff(s,r,e);return o&&!i&&(i=Dm(s,e.fullPath,r)),Oh(i,e.fullPath)||t&&Oh(i,t.fullPath)?"":i}const TF=()=>ei(Px+":redirect",()=>"");async function Ux({nuxtApp:e,locale:t,route:r,redirectPath:n},o=!1){const{rootRedirect:s,differentDomains:i,multiDomainLocales:a,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(r.path==="/"&&s)return typeof s=="string"?n="/"+s:(n="/"+s.path,s.statusCode),n=e.$localePath(n,t),Io(n,{});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=bd(),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(r.path.startsWith(`/${p}`))return Io(r.path.replace(`/${p}`,""));if(!r.path.startsWith(`/${t}`)&&t!==p){const h=Mm()(r.path);return Io(h!==""?`/${t+r.path.replace(`/${h}`,"")}`:`/${t+(r.path==="/"?"":r.path)}`)}return n&&r.path!==n?Io(n):void 0}if(i){const f=TF();f.value&&f.value!==n&&(f.value="",window.location.assign(n))}else if(n)return Io(n)}}function CF({currentLocale:e,defaultLocale:t,strategy:r}){return r!=="no_prefix"&&!(e===t&&(r==="prefix_and_default"||r==="prefix_except_default"))}function AF(e=it()){return t=>CF(t)&&!e.public.i18n.differentDomains}function IF(e=it()){return(t,r)=>{if(!e.public.i18n.differentDomains)return t;const n=Bx(r);return n&&Js(n,t)||t}}function OF(){return()=>{const e=Ae(),{baseUrl:t,defaultLocale:r,differentDomains:n}=e.$config.public.i18n;if(et(t))return t(e);const o=et(r)?r():r;if(n&&o){const s=Bx(o);if(s)return s}return t}}function jx(e){return Px+" "+e}function RF(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function $s(e,t=Dx()){return(...r)=>e(t,...r)}function LF(){let e;return navigator.languages&&(e=hF(yd,navigator.languages)),e}function PF(){const e=bc(),t=e&&e.cookieKey||lF,r=new Date,n={expires:new Date(r.setDate(r.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(n.domain=e.cookieDomain),wu(t,n)}function NF(e,t,r){if(t===!1||!t.useCookie)return;const n=e.value??void 0;if(n!=null){if(ao.includes(n))return n;if(r)return e.value=r,r;e.value=void 0}}function MF(e,t,r){r===!1||!r.useCookie||(e.value=t)}const DF={locale:"",reason:"disabled"};function $F(e,t,r=""){const n=bc();if(!n)return DF;const o=Ae(),s=o.$i18n.strategy;if(!o._vueI18n.__firstAccess)return{locale:s==="no_prefix"?r:"",reason:"first_access_only"};const{redirectOn:a,alwaysRedirect:l,useCookie:c,fallbackLocale:u}=n,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(Nm(ao)))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 bd(){let e;return e=window.location.host,e}function FF(e,t,r){let n=bd()||"";const o=Ve(r)?r.path:le(r)?r:"";if(n){let s;const i=e.filter(a=>{if(a&&a.domain){let l=a.domain;return yn(a.domain)&&(l=a.domain.replace(/(http|https):\/\//,"")),l===n}else if(Array.isArray(a==null?void 0:a.domains))return a.domains.includes(n);return!1});if(i.length===1)s=i[0];else if(i.length>1)if(t==="no_prefix")console.warn(jx("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s=i[0];else{if(r&&o&&o!==""){const a=o.match(Nm(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(n):a.domainDefault))}if(s)return s.code;n=""}return n}function Bx(e){var i,a,l;const t=it();Ae();const r=bd(),n=t.public.i18n,o=yd.find(c=>c.code===e),s=((a=(i=n==null?void 0:n.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===r));if(s){if(yn(s,{strict:!0}))return s;let c;return c=new URL(window.location.origin).protocol,c+"//"+s}console.warn(jx("Could not find domain name for locale "+e))}const bc=(e=it().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;function UF(e,t){const{multiDomainLocales:r,strategy:n,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s}=e.$config.public.i18n;if(!r||!(n==="prefix_except_default"||n==="prefix_and_default"))return;const i=Bt(),a=[o,s].join("");for(const l of i.getRoutes()){const c=_d(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 jF(e){const{locales:t,defaultLocale:r,multiDomainLocales:n}=e.$config.public.i18n;let o=r||"";if(!n)return o;const s=bd();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 BF({key:e,seo:t}){const r=Ae(),{defaultDirection:n}=it().public.i18n,o=He(r.$i18n.locale),s=uF(He(r.$i18n.locales)),i=s.find(a=>a.code===o)||{code:o};return{key:e,seo:t,locale:o,locales:s,currentDir:i.dir||n,currentLocale:i,currentLanguage:i.language,baseUrl:VF()}}function HF(e,{dir:t=!0,lang:r=!0,seo:n=!0,key:o="hid"}){const s={htmlAttrs:{},link:[],meta:[]},i=BF({seo:n,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),r&&i.currentLanguage&&(s.htmlAttrs.lang=i.currentLanguage),n&&i.locale&&i.locales&&(s.link.push(...WF(e,i),...zF(e,i)),s.meta.push(...GF(e,i),...qF(i),...KF(i)))),s}function VF(){const e=Ae(),t=Xa(e.$i18n);return Js(He(t.baseUrl),e.$config.app.baseURL)}function WF(e,t){const{defaultLocale:r,strategy:n}=it().public.i18n,o=[];if(n==="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=ff(e,c.code,a),f=lg(e,t);let d=cg(u,t.baseUrl);f&&i&&(d=`${d}?${f}`),u&&o.push({[t.key]:`i18n-alt-${l}`,rel:"alternate",href:d,hreflang:l})}if(r){const l=ff(e,r,a),c=lg(e,t);let u=cg(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 Hx(e,t){const r=e.router.currentRoute.value,n=vd(e,{...r,path:void 0,name:zi(e,r)});if(!n)return"";let o=cg(n.path,t.baseUrl);const s=lg(e,t);return s&&(o=`${o}?${s}`),o}function zF(e,t){const r=Hx(e,t);return r?[{[t.key]:"i18n-can",rel:"canonical",href:r}]:[]}function lg(e,t){const r=e.router.currentRoute.value,n=vd(e,{...r,path:void 0,name:zi(e,r)}),o=Ve(t.seo)&&t.seo.canonicalQueries||[],s=(n==null?void 0:n.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 GF(e,t){const r=Hx(e,t);return r?[{[t.key]:"i18n-og-url",property:"og:url",content:r}]:[]}function qF(e){return!e.currentLocale||!e.currentLanguage?[]:[{[e.key]:"i18n-og",property:"og:locale",content:Vx(e.currentLanguage)}]}function KF(e){return e.locales.filter(r=>r.language&&r.language!==e.currentLanguage).map(r=>({[e.key]:`i18n-og-alt-${r.language}`,property:"og:locale:alternate",content:Vx(r.language)}))}function Vx(e){return(e||"").replace(/-/g,"_")}function cg(e,t){return e.match(/^https?:\/\//)?e:Js(t,e)}/*! * message-compiler v11.1.2 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function YF(e,t,r){return{line:e,column:t,offset:r}}function ug(e,t,r){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},ZF=17;function wd(e,t,r={}){const{domain:n,messages:o,args:s}=r,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=n,a}function XF(e){throw e}const qn=" ",JF="\r",gr=` `,QF="\u2028",eU="\u2029";function tU(e){const t=e;let r=0,n=1,o=1,s=0;const i=x=>t[x]===JF&&t[x+1]===gr,a=x=>t[x]===gr,l=x=>t[x]===eU,c=x=>t[x]===QF,u=x=>i(x)||a(x)||l(x)||c(x),f=()=>r,d=()=>n,p=()=>o,g=()=>s,h=x=>i(x)||l(x)||c(x)?gr:t[x],y=()=>h(r),m=()=>h(r+s);function b(){return s=0,u(r)&&(n++,o=0),i(r)&&r++,r++,o++,t[r]}function _(){return i(r+s)&&s++,s++,t[r+s]}function v(){r=0,n=1,o=1,s=0}function S(x=0){s=x}function E(){const x=r+s;for(;x!==r;)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 xo=void 0,rU=".",Gv="'",nU="tokenizer";function oU(e,t={}){const r=t.location!==!1,n=tU(e),o=()=>n.index(),s=()=>YF(n.line(),n.column(),n.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,C,D,...j){const z=c();if(C.column+=D,C.offset+=D,u){const K=r?ug(z.startLoc,C):null,P=wd(k,K,{domain:nU,args:j});u(P)}}function d(k,C,D){k.endLoc=s(),k.currentType=C;const j={type:C};return r&&(j.loc=ug(k.startLoc,k.endLoc)),D!=null&&(j.value=D),j}const p=k=>d(k,13);function g(k,C){return k.currentChar()===C?(k.next(),C):(f(Xe.EXPECTED_TOKEN,s(),0,C),"")}function h(k){let C="";for(;k.currentPeek()===qn||k.currentPeek()===gr;)C+=k.currentPeek(),k.peek();return C}function y(k){const C=h(k);return k.skipToPeek(),C}function m(k){if(k===xo)return!1;const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C===95}function b(k){if(k===xo)return!1;const C=k.charCodeAt(0);return C>=48&&C<=57}function _(k,C){const{currentType:D}=C;if(D!==2)return!1;h(k);const j=m(k.currentPeek());return k.resetPeek(),j}function v(k,C){const{currentType:D}=C;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,C){const{currentType:D}=C;if(D!==2)return!1;h(k);const j=k.currentPeek()===Gv;return k.resetPeek(),j}function E(k,C){const{currentType:D}=C;if(D!==7)return!1;h(k);const j=k.currentPeek()===".";return k.resetPeek(),j}function x(k,C){const{currentType:D}=C;if(D!==8)return!1;h(k);const j=m(k.currentPeek());return k.resetPeek(),j}function N(k,C){const{currentType:D}=C;if(!(D===7||D===11))return!1;h(k);const j=k.currentPeek()===":";return k.resetPeek(),j}function I(k,C){const{currentType:D}=C;if(D!==9)return!1;const j=()=>{const K=k.currentPeek();return K==="{"?m(k.peek()):K==="@"||K==="|"||K===":"||K==="."||K===qn||!K?!1:K===gr?(k.peek(),j()):U(k,!1)},z=j();return k.resetPeek(),z}function O(k){h(k);const C=k.currentPeek()==="|";return k.resetPeek(),C}function U(k,C=!0){const D=(z=!1,K="")=>{const P=k.currentPeek();return P==="{"||P==="@"||!P?z:P==="|"?!(K===qn||K===gr):P===qn?(k.peek(),D(!0,qn)):P===gr?(k.peek(),D(!0,gr)):!0},j=D();return C&&k.resetPeek(),j}function L(k,C){const D=k.currentChar();return D===xo?xo:C(D)?(k.next(),D):null}function G(k){const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36}function oe(k){return L(k,G)}function ce(k){const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36||C===45}function q(k){return L(k,ce)}function re(k){const C=k.charCodeAt(0);return C>=48&&C<=57}function ne(k){return L(k,re)}function Se(k){const C=k.charCodeAt(0);return C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102}function lt(k){return L(k,Se)}function be(k){let C="",D="";for(;C=ne(k);)D+=C;return D}function We(k){let C="";for(;;){const D=k.currentChar();if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D===qn||D===gr)if(U(k))C+=D,k.next();else{if(O(k))break;C+=D,k.next()}else C+=D,k.next()}return C}function je(k){y(k);let C="",D="";for(;C=q(k);)D+=C;return k.currentChar()===xo&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D}function tr(k){y(k);let C="";return k.currentChar()==="-"?(k.next(),C+=`-${be(k)}`):C+=be(k),k.currentChar()===xo&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),C}function ze(k){return k!==Gv&&k!==gr}function pt(k){y(k),g(k,"'");let C="",D="";for(;C=L(k,ze);)C==="\\"?D+=W(k):D+=C;const j=k.currentChar();return j===gr||j===xo?(f(Xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),j===gr&&(k.next(),g(k,"'")),D):(g(k,"'"),D)}function W(k){const C=k.currentChar();switch(C){case"\\":case"'":return k.next(),`\\${C}`;case"u":return Q(k,C,4);case"U":return Q(k,C,6);default:return f(Xe.UNKNOWN_ESCAPE_SEQUENCE,s(),0,C),""}}function Q(k,C,D){g(k,C);let j="";for(let z=0;z{const j=k.currentChar();return j==="{"||j==="@"||j==="|"||j==="("||j===")"||!j||j===qn?D:(D+=j,k.next(),C(D))};return C("")}function T(k){y(k);const C=g(k,"|");return y(k),C}function A(k,C){let D=null;switch(k.currentChar()){case"{":return C.braceNest>=1&&f(Xe.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),D=d(C,2,"{"),y(k),C.braceNest++,D;case"}":return C.braceNest>0&&C.currentType===2&&f(Xe.EMPTY_PLACEHOLDER,s(),0),k.next(),D=d(C,3,"}"),C.braceNest--,C.braceNest>0&&y(k),C.inLinked&&C.braceNest===0&&(C.inLinked=!1),D;case"@":return C.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=$(k,C)||p(C),C.braceNest=0,D;default:{let z=!0,K=!0,P=!0;if(O(k))return C.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=d(C,1,T(k)),C.braceNest=0,C.inLinked=!1,D;if(C.braceNest>0&&(C.currentType===4||C.currentType===5||C.currentType===6))return f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),C.braceNest=0,B(k,C);if(z=_(k,C))return D=d(C,4,je(k)),y(k),D;if(K=v(k,C))return D=d(C,5,tr(k)),y(k),D;if(P=S(k,C))return D=d(C,6,pt(k)),y(k),D;if(!z&&!K&&!P)return D=d(C,12,ie(k)),f(Xe.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,D.value),y(k),D;break}}return D}function $(k,C){const{currentType:D}=C;let j=null;const z=k.currentChar();switch((D===7||D===8||D===11||D===9)&&(z===gr||z===qn)&&f(Xe.INVALID_LINKED_FORMAT,s(),0),z){case"@":return k.next(),j=d(C,7,"@"),C.inLinked=!0,j;case".":return y(k),k.next(),d(C,8,".");case":":return y(k),k.next(),d(C,9,":");default:return O(k)?(j=d(C,1,T(k)),C.braceNest=0,C.inLinked=!1,j):E(k,C)||N(k,C)?(y(k),$(k,C)):x(k,C)?(y(k),d(C,11,te(k))):I(k,C)?(y(k),z==="{"?A(k,C)||j:d(C,10,we(k))):(D===7&&f(Xe.INVALID_LINKED_FORMAT,s(),0),C.braceNest=0,C.inLinked=!1,B(k,C))}}function B(k,C){let D={type:13};if(C.braceNest>0)return A(k,C)||p(C);if(C.inLinked)return $(k,C)||p(C);switch(k.currentChar()){case"{":return A(k,C)||p(C);case"}":return f(Xe.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),d(C,3,"}");case"@":return $(k,C)||p(C);default:{if(O(k))return D=d(C,1,T(k)),C.braceNest=0,C.inLinked=!1,D;if(U(k))return d(C,0,We(k));break}}return D}function H(){const{currentType:k,offset:C,startLoc:D,endLoc:j}=l;return l.lastType=k,l.lastOffset=C,l.lastStartLoc=D,l.lastEndLoc=j,l.offset=o(),l.startLoc=s(),n.currentChar()===xo?d(l,13):B(n,l)}return{nextToken:H,currentOffset:o,currentPosition:s,context:c}}const sU="parser",iU=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function aU(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function lU(e={}){const t=e.location!==!1,{onError:r}=e;function n(m,b,_,v,...S){const E=m.currentPosition();if(E.offset+=v,E.column+=v,r){const x=t?ug(_,E):null,N=wd(b,x,{domain:sU,args:S});r(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(iU,aU),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?(n(m,Xe.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),E.value="",s(E,v,S),{nextConsumeToken:b,node:E}):(b.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,xn(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&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),v=m.nextToken(),v.type===2&&(v=m.nextToken()),v.type){case 10:v.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=f(m,v.value||"");break;case 4:v.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=l(m,v.value||"");break;case 5:v.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=a(m,v.value||"");break;case 6:v.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(v)),_.key=c(m,v.value||"");break;default:{n(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&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),S.items.push(i(m,I.value||""));break;case 5:I.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),S.items.push(a(m,I.value||""));break;case 4:I.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(I)),S.items.push(l(m,I.value||""));break;case 6:I.value==null&&n(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xn(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&&n(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=oU(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&&n(b,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,m[_.offset]||""),s(v,b.currentOffset(),b.currentPosition()),v}return{parse:y}}function xn(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 cU(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:s=>(r.helpers.add(s),s)}}function qv(e,t){for(let r=0;rKv(r)),e}function Kv(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 r=0;ri;function l(h,y){i.code+=h}function c(h,y=!0){const m=y?n:"";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 pU(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Gi(e,t.key),t.modifier?(e.push(", "),Gi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function hU(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const o=t.items.length;for(let s=0;s1){e.push(`${r("plural")}([`),e.indent(n());const o=t.cases.length;for(let s=0;s{const r=le(t.mode)?t.mode:"normal",n=le(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":` `,s=t.needIndent?t.needIndent:r!=="arrow",i=e.helpers||[],a=dU(e,{filename:n,breakLineCode:o,needIndent:s});a.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),i.length>0&&(a.push(`const { ${Pm(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Gi(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 _U(e,t={}){const r=zt({},t),n=!!r.jit,o=!!r.minify,s=r.optimize==null?!0:r.optimize,a=lU(r).parse(e);return n?(s&&fU(a),o&&mi(a),{ast:a,code:""}):(uU(a,r),yU(a,r))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function vU(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rm().__INTLIFY_PROD_DEVTOOLS__=!1)}function mp(e){return r=>bU(r,e)}function bU(e,t){const r=SU(t);if(r==null)throw $l(0);if(Um(r)===1){const s=xU(r);return e.plural(s.reduce((i,a)=>[...i,Yv(e,a)],[]))}else return Yv(e,r)}const wU=["b","body"];function SU(e){return es(e,wU)}const EU=["c","cases"];function xU(e){return es(e,EU,[])}function Yv(e,t){const r=TU(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=AU(t).reduce((o,s)=>[...o,fg(e,s)],[]);return e.normalize(n)}}const kU=["s","static"];function TU(e){return es(e,kU)}const CU=["i","items"];function AU(e){return es(e,CU,[])}function fg(e,t){const r=Um(t);switch(r){case 3:return Qc(t,r);case 9:return Qc(t,r);case 4:{const n=t;if(on(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(on(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw $l(r)}case 5:{const n=t;if(on(n,"i")&&Pt(n.i))return e.interpolate(e.list(n.i));if(on(n,"index")&&Pt(n.index))return e.interpolate(e.list(n.index));throw $l(r)}case 6:{const n=t,o=LU(n),s=NU(n);return e.linked(fg(e,s),o?fg(e,o):void 0,e.type)}case 7:return Qc(t,r);case 8:return Qc(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const IU=["t","type"];function Um(e){return es(e,IU)}const OU=["v","value"];function Qc(e,t){const r=es(e,OU);if(r)return r;throw $l(t)}const RU=["m","modifier"];function LU(e){return es(e,RU)}const PU=["k","key"];function NU(e){const t=es(e,PU);if(t)return t;throw $l(6)}function es(e,t,r){for(let n=0;ne;let eu=tt();function qi(e){return Ve(e)&&Um(e)===0&&(on(e,"b")||on(e,"body"))}function DU(e,t={}){let r=!1;const n=t.onError||XF;return t.onError=o=>{r=!0,n(o)},{..._U(e,t),detectError:r}}function $U(e,t){if(le(e)){vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||MU)(e),o=eu[n];if(o)return o;const{ast:s,detectError:i}=DU(e,{...t,location:!1,jit:!0}),a=mp(s);return i?a:eu[n]=a}else{const r=e.cacheKey;if(r){const n=eu[r];return n||(eu[r]=mp(e))}else return mp(e)}}let Fl=null;function FU(e){Fl=e}function UU(e,t,r){Fl&&Fl.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const jU=BU("function:translate");function BU(e){return t=>Fl&&Fl.emit(e,t)}const so={INVALID_ARGUMENT:ZF,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},HU=24;function io(e){return wd(e,null,void 0)}function jm(e,t){return t.locale!=null?Zv(t.locale):Zv(e.locale)}let yp;function Zv(e){if(le(e))return e;if(et(e)){if(e.resolvedOnce&&yp!=null)return yp;if(e.constructor.name==="Function"){const t=e();if(nF(t))throw io(so.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return yp=t}else throw io(so.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw io(so.NOT_SUPPORT_LOCALE_TYPE)}function VU(e,t,r){return[...new Set([r,...Nt(t)?t:Ve(t)?Object.keys(t):le(t)?[t]:[r]])]}function Wx(e,t,r){const n=le(r)?r:df,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(n);if(!s){s=[];let i=[r];for(;Nt(i);)i=Xv(s,i,t);const a=Nt(t)||!Fe(t)?t:t.default?t.default:null;i=le(a)?[a]:a,Nt(i)&&Xv(s,i,!1),o.__localeChainCache.set(n,s)}return s}function Xv(e,t,r){let n=!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--,n=4,d[0]();else{if(o=0,i===void 0||(i=ZU(i),i===!1))return!1;d[1]()}};function p(){const g=e[r+1];if(n===5&&g==="'"||n===6&&g==='"')return r++,a="\\"+g,d[0](),!0}for(;n!==null;)if(r++,s=e[r],!(s==="\\"&&p())){if(l=YU(s),f=ts[n],c=f[l]||f.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=s,u()===!1))))return;if(n===7)return t}}const Jv=new Map;function JU(e,t){return Ve(e)?e[t]:null}function QU(e,t){if(!Ve(e))return null;let r=Jv.get(t);if(r||(r=XU(t),r&&Jv.set(t,r)),!r)return null;const n=r.length;let o=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function tj(){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)?eb(e):t==="vnode"&&Ve(e)&&"__v_isVNode"in e?eb(e.children):e}}let zx;function rj(e){zx=e}let Gx;function nj(e){Gx=e}let qx;function oj(e){qx=e}let Kx=null;const sj=e=>{Kx=e},ij=()=>Kx;let Yx=null;const tb=e=>{Yx=e},aj=()=>Yx;let rb=0;function lj(e={}){const t=et(e.onWarn)?e.onWarn:sF,r=le(e.version)?e.version:ej,n=le(e.locale)||et(e.locale)?e.locale:df,o=et(n)?df:n,s=Nt(e.fallbackLocale)||Fe(e.fallbackLocale)||le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Fe(e.messages)?e.messages:_p(o),a=Fe(e.datetimeFormats)?e.datetimeFormats:_p(o),l=Fe(e.numberFormats)?e.numberFormats:_p(o),c=zt(tt(),e.modifiers,tj()),u=e.pluralRules||tt(),f=et(e.missing)?e.missing:null,d=vt(e.missingWarn)||cf(e.missingWarn)?e.missingWarn:!0,p=vt(e.fallbackWarn)||cf(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:Gx||JU,E=et(e.localeFallbacker)?e.localeFallbacker:qx||VU,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:{};rb++;const L={version:r,cid:rb,locale:n,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__&&UU(L,r,U),L}const _p=e=>({[e]:tt()});function Bm(e,t,r,n,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,r,t,o);return le(a)?a:t}else return t}function Ra(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function cj(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function uj(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{Zx.includes(l)?i[l]=r[l]:s[l]=r[l]}),le(n)?s.locale=n:Fe(n)&&(i=n),Fe(o)&&(i=o),[s.key||"",a,s,i]}function ob(e,t,r){const n=e;for(const o in r){const s=`${t}__${o}`;n.__datetimeFormatters.has(s)&&n.__datetimeFormatters.delete(s)}}function sb(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=pg(...t),d=vt(u.missingWarn)?u.missingWarn:e.missingWarn;vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=jm(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{Xx.includes(l)?i[l]=r[l]:s[l]=r[l]}),le(n)?s.locale=n:Fe(n)&&(i=n),Fe(o)&&(i=o),[s.key||"",a,s,i]}function ib(e,t,r){const n=e;for(const o in r){const s=`${t}__${o}`;n.__numberFormatters.has(s)&&n.__numberFormatters.delete(s)}}const fj=e=>e,dj=e=>"",pj="text",hj=e=>e.length===0?"":Pm(e),gj=oF;function ab(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function mj(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 yj(e,t){t.count||(t.count=e),t.n||(t.n=e)}function _j(e={}){const t=e.locale,r=mj(e),n=Ve(e.pluralRules)&&le(t)&&et(e.pluralRules[t])?e.pluralRules[t]:ab,o=Ve(e.pluralRules)&&le(t)&&et(e.pluralRules[t])?ab:void 0,s=m=>m[n(r,m.length,o)],i=e.list||[],a=m=>i[m],l=e.named||tt();Pt(e.pluralIndex)&&yj(r,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):dj)}const f=m=>e.modifiers?e.modifiers[m]:fj,d=Fe(e.processor)&&et(e.processor.normalize)?e.processor.normalize:hj,p=Fe(e.processor)&&et(e.processor.interpolate)?e.processor.interpolate:gj,g=Fe(e.processor)&&le(e.processor.type)?e.processor.type:pj,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 lb=()=>"",Hr=e=>et(e);function cb(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=hg(...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:r?s?l:()=>l:null,h=r||g!=null&&(le(g)||et(g)),y=jm(e,c);d&&vj(c);let[m,b,_]=p?[l,y,a[y]||tt()]:Jx(e,l,y,i,f,u),v=m,S=l;if(!p&&!(le(v)||qi(v)||Hr(v))&&h&&(v=g,S=v),!p&&(!(le(v)||qi(v)||Hr(v))||!le(b)))return o?Sd:l;let E=!1;const x=()=>{E=!0},N=Hr(v)?v:Qx(e,l,b,v,S,x);if(E)return v;const I=Sj(e,b,_,c),O=_j(I),U=bj(e,N,O),L=n?n(U,l):U;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:le(l)?l:Hr(v)?v.key:"",locale:b||(Hr(v)?v.locale:""),format:le(v)?v:Hr(v)?v.source:"",message:L};G.meta=zt({},e.__meta,ij()||{}),jU(G)}return L}function vj(e){Nt(e.list)?e.list=e.list.map(t=>le(t)?Hv(t):t):Ve(e.named)&&Object.keys(e.named).forEach(t=>{le(e.named[t])&&(e.named[t]=Hv(e.named[t]))})}function Jx(e,t,r,n,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,n,r);let f=tt(),d,p=null;const g="translate";for(let h=0;hn;return c.locale=r,c.key=t,c}const l=i(n,wj(e,r,o,n,a,s));return l.locale=r,l.key=t,l.source=n,l}function bj(e,t,r){return t(r)}function hg(...e){const[t,r,n]=e,o=tt();if(!le(t)&&!Pt(t)&&!Hr(t)&&!qi(t))throw io(so.INVALID_ARGUMENT);const s=Pt(t)?String(t):(Hr(t),t);return Pt(r)?o.plural=r:le(r)?o.default=r:Fe(r)&&!md(r)?o.named=r:Nt(r)&&(o.list=r),Pt(n)?o.plural=n:le(n)?o.default=n:Fe(n)&&zt(o,n),[s,o]}function wj(e,t,r,n,o,s){return{locale:t,key:r,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>J$(t,r,i)}}function Sj(e,t,r,n){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(r,p);if(h==null&&(u||g)){const[,,y]=Jx(u||e,p,t,a,l,c);h=i(y,p)}if(le(h)||qi(h)){let y=!1;const b=Qx(e,p,t,h,p,()=>{y=!0});return y?lb:b}else return Hr(h)?h:lb}};return e.processor&&(d.processor=e.processor),n.list&&(d.list=n.list),n.named&&(d.named=n.named),Pt(n.plural)&&(d.pluralIndex=n.plural),d}vU();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const Ej="10.0.5";function xj(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rm().__INTLIFY_PROD_DEVTOOLS__=!1)}const qr={UNEXPECTED_RETURN_TYPE:HU,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 hn(e,...t){return wd(e,null,void 0)}const gg=Qo("__translateVNode"),mg=Qo("__datetimeParts"),yg=Qo("__numberParts"),kj=Qo("__setPluralRules"),Tj=Qo("__injectWithOption"),_g=Qo("__dispose");function Ul(e){if(!Ve(e))return e;for(const t in e)if(on(e,t))if(!t.includes("."))Ve(e[t])&&Ul(e[t]);else{const r=t.split("."),n=r.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(),Di(c,i[l])):Di(c,i)}else le(a)&&Di(JSON.parse(a),i)}),o==null&&s)for(const a in i)on(i,a)&&Ul(i[a]);return i}function tk(e){return e.type}function Cj(e,t,r){let n=Ve(t.messages)?t.messages:tt();"__i18nGlobal"in r&&(n=ek(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,n[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 ub(e){return st(jo,null,e,0)}const fb="__INTLIFY_META__",db=()=>[],Aj=()=>!1;let pb=0;function hb(e){return(t,r,n,o)=>e(r,n,er()||void 0,o)}const Ij=()=>{const e=er();let t=null;return e&&(t=tk(e)[fb])?{[fb]:t}:null};function rk(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,o=e.flatJson,s=lf?ue:fn;let i=vt(e.inheritLocale)?e.inheritLocale:!0;const a=s(t&&i?t.locale.value:le(e.locale)?e.locale:df),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(ek(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)||cf(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:vt(e.fallbackWarn)||cf(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)?hb(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=(()=>{n&&tb(null);const P={version:Ej,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=lj(P);return n&&tb(F),F})(),Ra(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,Ra(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 re(){return y}function ne(P){P!==null&&(m=hb(P)),y=P,x.missing=m}const Se=(P,F,ee,de,Le,Pe)=>{I();let ht;try{__INTLIFY_PROD_DEVTOOLS__,n||(x.fallbackContext=t?aj():void 0),ht=P(x)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(x.fallbackContext=void 0)}if(ee!=="translate exists"&&Pt(ht)&&ht===Sd||ee==="translate exists"&&!ht){const[Tt,Gt]=F();return t&&g?de(t):Le(Tt)}else{if(Pe(ht))return ht;throw hn(qr.UNEXPECTED_RETURN_TYPE)}};function lt(...P){return Se(F=>Reflect.apply(cb,null,[F,...P]),()=>hg(...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 hn(qr.INVALID_ARGUMENT);return lt(F,ee,zt({resolvedMessage:!0},de||{}))}function We(...P){return Se(F=>Reflect.apply(nb,null,[F,...P]),()=>dg(...P),"datetime format",F=>Reflect.apply(F.d,F,[...P]),()=>Qv,F=>le(F))}function je(...P){return Se(F=>Reflect.apply(sb,null,[F,...P]),()=>pg(...P),"number format",F=>Reflect.apply(F.n,F,[...P]),()=>Qv,F=>le(F))}function tr(P){return P.map(F=>le(F)||Pt(F)||vt(F)?ub(String(F)):F)}const pt={normalize:tr,interpolate:P=>P,type:"vnode"};function W(...P){return Se(F=>{let ee;const de=F;try{de.processor=pt,ee=Reflect.apply(cb,null,[de,...P])}finally{de.processor=null}return ee},()=>hg(...P),"translate",F=>F[gg](...P),F=>[ub(F)],F=>Nt(F))}function Q(...P){return Se(F=>Reflect.apply(sb,null,[F,...P]),()=>pg(...P),"number format",F=>F[yg](...P),db,F=>le(F)||Nt(F))}function X(...P){return Se(F=>Reflect.apply(nb,null,[F,...P]),()=>dg(...P),"datetime format",F=>F[mg](...P),db,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 qi(Le)||Hr(Le)||le(Le)},()=>[P],"translate exists",ee=>Reflect.apply(ee.te,ee,[P,F]),Aj,ee=>vt(ee))}function we(P){let F=null;const ee=Wx(x,l.value,a.value);for(let de=0;de{i&&(a.value=P,x.locale=P,Ra(x,a.value,l.value))}),Oe(t.fallbackLocale,P=>{i&&(l.value=P,x.fallbackLocale=P,Ra(x,a.value,l.value))}));const K={id:pb,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,Ra(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 n},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:re,setMissingHandler:ne,[kj]:ie};return K.datetimeFormats=G,K.numberFormats=oe,K.rt=be,K.te=te,K.tm=T,K.d=We,K.n=je,K.getDateTimeFormat=H,K.setDateTimeFormat=k,K.mergeDateTimeFormat=C,K.getNumberFormat=D,K.setNumberFormat=j,K.mergeNumberFormat=z,K[Tj]=r,K[gg]=W,K[mg]=X,K[yg]=Q,K}const Hm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Oj({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>[...n,...o.type===bt?o.children:[o]],[]):t.reduce((r,n)=>{const o=e[n];return o&&(r[n]=o()),r},tt())}function nk(){return bt}const Rj=At({name:"i18n-t",props:zt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pt(e)||!isNaN(e)}},Hm),setup(e,t){const{slots:r,attrs:n}=t,o=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).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=Oj(t,s),l=o[gg](e.keypath,a,i),c=zt(tt(),n),u=le(e.tag)||Ve(e.tag)?e.tag:nk();return Ct(u,c,l)}}}),gb=Rj;function Lj(e){return Nt(e)&&!le(e[0])}function ok(e,t,r,n){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)=>r.includes(p)?zt(tt(),d,{[p]:e.format[p]}):d,tt()));const l=n(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 Lj(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:nk();return Ct(f,u,c)}}const Pj=At({name:"i18n-n",props:zt({value:{type:Number,required:!0},format:{type:[String,Object]}},Hm),setup(e,t){const r=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return ok(e,t,Xx,(...n)=>r[yg](...n))}}),mb=Pj,Nj=At({name:"i18n-d",props:zt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Hm),setup(e,t){const r=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return ok(e,t,Zx,(...n)=>r[mg](...n))}}),yb=Nj;function Mj(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function Dj(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw hn(qr.UNEXPECTED_ERROR);const c=Mj(e,a.$),u=_b(l);return[Reflect.apply(c.t,c,[...vb(u)]),c]};return{created:(i,a)=>{const[l,c]=t(a);lf&&e.global===c&&(i.__i18nWatcher=Oe(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{lf&&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=_b(a);i.textContent=Reflect.apply(l.t,l,[...vb(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function _b(e){if(le(e))return{path:e};if(Fe(e)){if(!("path"in e))throw hn(qr.REQUIRED_VALUE,"path");return e}else throw hn(qr.INVALID_VALUE)}function vb(e){const{path:t,locale:r,args:n,choice:o,plural:s}=e,i={},a=n||{};return le(r)&&(i.locale=r),Pt(o)&&(i.plural=o),Pt(s)&&(i.plural=s),[t,a,i]}function $j(e,t,...r){const n=Fe(r[0])?r[0]:{};(vt(n.globalInstall)?n.globalInstall:!0)&&([gb.name,"I18nT"].forEach(s=>e.component(s,gb)),[mb.name,"I18nN"].forEach(s=>e.component(s,mb)),[yb.name,"I18nD"].forEach(s=>e.component(s,yb))),e.directive("t",Dj(t))}const Fj=Qo("global-vue-i18n");function Uj(e={},t){const r=vt(e.globalInjection)?e.globalInjection:!0,n=new Map,[o,s]=jj(e),i=Qo("");function a(f){return n.get(f)||null}function l(f,d){n.set(f,d)}function c(f){n.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;r&&(p=Kj(f,u.global)),$j(f,u,...d);const g=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),g()}},get global(){return s},dispose(){o.stop()},__instances:n,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function Ed(e={}){const t=er();if(t==null)throw hn(qr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hn(qr.NOT_INSTALLED);const r=Bj(t),n=Vj(r),o=tk(t),s=Hj(e,o);if(s==="global")return Cj(n,e,o),n;if(s==="parent"){let l=Wj(r,t,e.__useComponent);return l==null&&(l=n),l}const i=r;let a=i.__getInstance(t);if(a==null){const l=zt({},e);"__i18n"in o&&(l.__i18n=o.__i18n),n&&(l.__root=n),a=rk(l),i.__composerExtend&&(a[_g]=i.__composerExtend(a)),Gj(i,t,a),i.__setInstance(t,a)}return a}function jj(e,t,r){const n=la(),o=n.run(()=>rk(e));if(o==null)throw hn(qr.UNEXPECTED_ERROR);return[n,o]}function Bj(e){const t=Ut(e.isCE?Fj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hn(e.isCE?qr.NOT_INSTALLED_WITH_PROVIDE:qr.UNEXPECTED_ERROR);return t}function Hj(e,t){return md(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Vj(e){return e.mode==="composition"?e.global:e.global.__composer}function Wj(e,t,r=!1){let n=null;const o=t.root;let s=zj(t,r);for(;s!=null;){const i=e;if(e.mode==="composition"&&(n=i.__getInstance(s)),n!=null||o===s)break;s=s.parent}return n}function zj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Gj(e,t,r){Or(()=>{},t),Xs(()=>{const n=r;e.__deleteInstance(t);const o=n[_g];o&&(o(),delete n[_g])},t)}const qj=["locale","fallbackLocale","availableLocales"],bb=["t","rt","d","n","tm","te"];function Kj(e,t){const r=Object.create(null);return qj.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw hn(qr.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(r,o,i)}),e.config.globalProperties.$i18n=r,bb.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw hn(qr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,bb.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}xj();rj($U);nj(QU);oj(Wx);if(__INTLIFY_PROD_DEVTOOLS__){const e=Rm();e.__INTLIFY__=!0,FU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Yj(){return $s(zi)}function Zj(){return $s(Dm)}function Xj(){return $s(vd)}function Jj(){return $s(vd)}function sk(){return $s(ff)}const Qj=Je({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=sk(),r=new RegExp([``,".+?",``].join(""),"g");e.hook("app:rendered",n=>{var o;((o=n.renderResult)==null?void 0:o.html)!=null&&(n.renderResult.html=n.renderResult.html.replaceAll(r,(s,i)=>s.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}}),eB=Je({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,r;const n=e,o=n.$router.currentRoute,s=Mm();async function i(l){let c=kF(l,s(l),He(n.$i18n.locale),n.$i18n.getLocaleCookie());if(n._vueI18n.__firstAccess){n._vueI18n.__setLocale(c);const f=Nx(He(n._vueI18n.global.fallbackLocale),[c]);await Promise.all(f.map(d=>n.$i18n.loadLocaleMessages(d))),await n.$i18n.loadLocaleMessages(c)}return await n.runWithContext(()=>$x(c,n._vueI18n.__firstAccess))&&(c=He(n.$i18n.locale)),c}[t,r]=Xt(()=>i(o.value)),await t,r(),S1("locale-changing",async(l,c)=>{let u,f;const d=([u,f]=Xt(()=>n.runWithContext(()=>i(l))),u=await u,f(),u),p=([u,f]=Xt(()=>n.runWithContext(()=>Fx({to:l,from:c,locale:d,routeLocale:s(l)},!0))),u=await u,f(),u);return n._vueI18n.__firstAccess=!1,[u,f]=Xt(()=>n.runWithContext(()=>Ux({nuxtApp:n,redirectPath:p,locale:d,route:l}))),u=await u,f(),u},{global:!0})}});function tB(e,{extendComposer:t,extendComposerInstance:r}){const n=la(),o=e.install.bind(e);return e.install=(s,...i)=>{const a=Object.assign({},i[0]);a.__composerExtend=c=>(r(c,Xa(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(r(c,Xa(c)),()=>{})),Reflect.apply(o,e,[s,a]);const l=Xa(e);if(n.run(()=>{t(l),e.mode==="legacy"&&Mx(e.global)&&r(e.global,Xa(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&r(s.config.globalProperties.$i18n,l),s.unmount){const c=s.unmount.bind(s);s.unmount=()=>{n.stop(),c()}}},n}const rB=Je({name:"i18n:plugin",parallel:aF,async setup(e){var d;let t,r;const n=e,o=n.$router.currentRoute,s=jF(n);UF(n,s);const i={...n.$config.public.i18n,defaultLocale:s};n.$config.public.i18n.defaultLocale=s,i.baseUrl=OF();const a=bc(),l=([t,r]=Xt(()=>mF(iF,Ae())),t=await t,r(),t);l.messages=l.messages||{};for(const p of ao)(d=l.messages)[p]??(d[p]={});l.fallbackLocale=l.fallbackLocale??!1,s&&(l.locale=s);const c=Mm(),u=PF(),f=Uj(l);return f.__firstAccess=!0,f.__setLocale=p=>{const g=uf(f);qe(g.locale)?g.locale.value=p:g.locale=p},n._vueI18n=f,tB(f,{extendComposer(p){const g=ue(i.locales),h=ue(ao),y=ue("");p.locales=J(()=>g.value),p.localeCodes=J(()=>h.value),p.baseUrl=J(()=>y.value),Oe(p.locale,()=>{y.value=fF(i.baseUrl,n)},{immediate:!0}),p.strategy=i.strategy,p.localeProperties=J(()=>yd.find(m=>m.code===p.locale.value)||{code:p.locale.value}),p.setLocale=async m=>{if(await $x(m,f.__firstAccess),p.strategy==="no_prefix"){await p.loadLocaleMessages(m),f.__setLocale(m);return}const b=o.value,_=await n.runWithContext(()=>Fx({to:b,locale:m,routeLocale:c(b)}));await n.runWithContext(()=>Ux({nuxtApp:n,redirectPath:_,locale:m,route:b},!0))},p.loadLocaleMessages=async m=>await ag(m,ig,p.mergeLocaleMessage.bind(p),n),p.differentDomains=i.differentDomains,p.defaultLocale=i.defaultLocale,p.getBrowserLocale=()=>LF(),p.getLocaleCookie=()=>NF(u,a,p.defaultLocale),p.setLocaleCookie=m=>MF(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),RF(n,"$i18n",uf(f)),{provide:{localeHead:$s(HF),localePath:Zj(),localeRoute:Xj(),getRouteBaseName:Yj(),switchLocalePath:sk(),resolveRoute:$s($m),localeLocation:Jj()}}}});function nB(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 xd(e){try{const t="__test__";return e.setItem(t,"test"),e.removeItem(t),!0}catch{return!1}}function oB(e){var t;return import.meta&&((t=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:t.split("=")[1])||null}const Lr={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},wb={silent:{level:-1},fatal:{level:Lr.fatal},error:{level:Lr.error},warn:{level:Lr.warn},log:{level:Lr.log},info:{level:Lr.info},success:{level:Lr.success},fail:{level:Lr.fail},ready:{level:Lr.info},start:{level:Lr.info},box:{level:Lr.info},debug:{level:Lr.debug},trace:{level:Lr.trace},verbose:{level:Lr.verbose}};function vp(e){return e!==null&&typeof e=="object"}function vg(e,t,r=".",n){if(!vp(t))return vg(e,{},r);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]]:vp(i)&&vp(o[s])?o[s]=vg(i,o[s],(r?`${r}.`:"")+s.toString()):o[s]=i)}return o}function sB(e){return(...t)=>t.reduce((r,n)=>vg(r,n,""),{})}const iB=sB();function aB(e){return Object.prototype.toString.call(e)==="[object Object]"}function lB(e){return!(!aB(e)||!e.message&&!e.args||e.stack)}let bp=!1;const Sb=[];class Qt{constructor(t={}){const r=t.types||wb;this.options=iB({...t,defaults:{...t.defaults},level:wp(t.level,r),reporters:[...t.reporters||[]]},{types:wb,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in r){const o={type:n,...this.options.defaults,...r[n]};this[n]=this._wrapLogFn(o),this[n].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=wp(t,this.options.types,this.options.level)}prompt(t,r){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,r)}create(t){const r=new Qt({...this.options,...t});return this._mockFn&&r.mockTypes(this._mockFn),r}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 r=this.options.reporters.indexOf(t);if(r>=0)return this.options.reporters.splice(r,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,r){t&&(t.__write||(t.__write=t.write),t.write=n=>{this[r].raw(String(n).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(){bp=!0}resumeLogs(){bp=!1;const t=Sb.splice(0);for(const r of t)r[0]._logFn(r[1],r[2])}mockTypes(t){const r=t||this.options.mockFn;if(this._mockFn=r,typeof r=="function")for(const n in this.options.types)this[n]=r(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(t,r){return(...n)=>{if(bp){Sb.push([this,t,n,r]);return}return this._logFn(t,n,r)}}_logFn(t,r,n){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:wp(t.level,this.options.types)};!n&&r.length===1&&lB(r[0])?Object.assign(o,r[0]):o.args=[...r],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 r of this.options.reporters)r.log(t,{options:this.options})}}function wp(e,t={},r=3){return e===void 0?r:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:r}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 cB(e={}){return new Qt(e)}class uB{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 r=this._getLogFn(t.level),n=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,n].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?r(`${a}%c ${t.args[0]}`,i,"",...t.args.slice(1)):r(a,i,...t.args)}}function fB(e={}){return cB({reporters:e.reporters||[new uB({})],prompt(r,n={}){return n.type==="confirm"?Promise.resolve(confirm(r)):Promise.resolve(prompt(r))},...e})}const dB=fB(),mt=dB.withTag("app"),Eb=["getItem","setItem","removeItem","clear","length"],Sp=mt.withTag("StorageEmulator");class pB{constructor(t){Rr(this,"storage",{});this.customStorage=t,t&&nB(t)&&xd(t)?this.storage=t:this.storage={}}setItem(t,r){if(Eb.includes(t)){Sp.warn(`Key "${t}" is not allowed in storage.`);return}this.storage[t]=r}getItem(t){return this.storage[t]||null}removeItem(t){if(Eb.includes(t)){Sp.warn(`Key "${t}" is not allowed in storage.`);return}if(!this.storage[t]){Sp.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 ik{constructor(t){Rr(this,"storage");this.storage=new pB(t)}setItem(t,r){this.storage.setItem(t,r)}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 hB{constructor(t,r,n){Rr(this,"prefix");Rr(this,"expirationMs");Rr(this,"storage");this.prefix=r,this.expirationMs=n,this.storage=t}storageKey(t){return`${this.prefix}:${t}`}load(t,r){const n=r??this.expirationMs,o=this.storage.getItem(this.storageKey(t))??"";try{const{value:s,timestamp:i}=JSON.parse(o);return Date.now()-i>n?(this.storage.removeItem(this.storageKey(t)),null):s}catch{return this.storage.removeItem(this.storageKey(t)),null}}save(t,r){const n={value:r,timestamp:Date.now()};this.storage.setItem(this.storageKey(t),JSON.stringify(n))}remove(t){this.storage.removeItem(this.storageKey(t))}clear(){const t=Object.keys(this.storage).filter(r=>r.startsWith(this.prefix));for(const r of t)this.storage.removeItem(r)}get length(){return Object.keys(this.storage).filter(t=>t.startsWith(this.prefix)).length}key(t){return Object.keys(this.storage).filter(n=>n.startsWith(this.prefix))[t]||null}getItem(t){return this.load(t)}setItem(t,r){this.save(t,r)}removeItem(t){this.remove(t)}clearAll(){this.clear()}}const gs=new ik(typeof window<"u"?window.localStorage:void 0),gB=new ik(typeof window<"u"?window.sessionStorage:void 0),pf=gs;xd(gs);xd(gB);xd(pf);const Zr=()=>{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 xb(e,t){const r=encodeURIComponent(e);return{url:`https://lusearch.com/?br=Chrome&searchEngine=Yahoo&pid=${t}&bitmask=9998&q=${r}`,isMonetized:!0}}const mB="wc.onenews",yB="3007";function _B(){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(mB))||e==="localhost"&&t===yB}const vB=mt.withTag("utils:getSearchUrl");async function bB(e,t){var o;const{fallbackUrl:r="",queryPlaceholder:n="{searchTerms}"}={...t};try{if(typeof window<"u"&&_B()){const d=new URLSearchParams(window.location.search).get("variant");if(d==="branded")return xb(e,"NT260101");if(d==="unbranded")return xb(e,"NT260102")}const s=f=>f.replace(n,encodeURIComponent(e)),{shift:i,onelaunch:a}=Zr(),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(r)}}catch(s){return vB.error(s),{url:r}}}function wB(){const{shift:e,onelaunch:t}=Zr(),r=e==null?void 0:e.getServerConfig;if(r)return r();const n=t==null?void 0:t.getMergedData;return n?n():new Promise(o=>o(void 0))}const SB=mt.withTag("utils:host-browser-apis:openInDefaultBrowser");async function EB(e){var n;const{shift:t,onelaunch:r}=Zr();try{const o=(n=t==null?void 0:t.ntp)==null?void 0:n.openInDefaultBrowser;if(o){await o(e);return}const s=r==null?void 0:r.openInDefaultBrowser;if(s){await s(e);return}}catch(o){SB.error("Failed to open in default browser",o)}window.open(e,"_blank")}const xB=mt.withTag("utils:isCurrentlyAtHomeTab");function ak(){try{const e=window.location.href,t=new URL(e),r=new URLSearchParams(t.search);return r.has("pinned")&&r.get("pinned")==="true"}catch(e){return xB.error(e),!1}}function lk(){var t;const{onelaunch:e}=Zr();return(t=e==null?void 0:e.getInstallInfo)==null?void 0:t.call(e)}function kB(){var t,r;const{shift:e}=Zr();return(r=(t=e==null?void 0:e.search)==null?void 0:t.getDefault)==null?void 0:r.call(t)}async function ck(){const e=await lk();return(e==null?void 0:e.version)||"unknown"}var TB=typeof global=="object"&&global&&global.Object===Object&&global,CB=typeof self=="object"&&self&&self.Object===Object&&self,AB=TB||CB||Function("return this")(),hf=AB.Symbol,uk=Object.prototype,IB=uk.hasOwnProperty,OB=uk.toString,La=hf?hf.toStringTag:void 0;function RB(e){var t=IB.call(e,La),r=e[La];try{e[La]=void 0;var n=!0}catch{}var o=OB.call(e);return n&&(t?e[La]=r:delete e[La]),o}var LB=Object.prototype,PB=LB.toString;function NB(e){return PB.call(e)}var MB="[object Null]",DB="[object Undefined]",kb=hf?hf.toStringTag:void 0;function $B(e){return e==null?e===void 0?DB:MB:kb&&kb in Object(e)?RB(e):NB(e)}function FB(e){return e!=null&&typeof e=="object"}var UB="[object Symbol]";function jB(e){return typeof e=="symbol"||FB(e)&&$B(e)==UB}var BB=/\s/;function HB(e){for(var t=e.length;t--&&BB.test(e.charAt(t)););return t}var VB=/^\s+/;function WB(e){return e&&e.slice(0,HB(e)+1).replace(VB,"")}function Tb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Cb=NaN,zB=/^[-+]0x[0-9a-f]+$/i,GB=/^0b[01]+$/i,qB=/^0o[0-7]+$/i,KB=parseInt;function YB(e){if(typeof e=="number")return e;if(jB(e))return Cb;if(Tb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=WB(e);var r=GB.test(e);return r||qB.test(e)?KB(e.slice(2),r?2:8):zB.test(e)?Cb:+e}var ZB=1/0,XB=17976931348623157e292;function JB(e){if(!e)return e===0?e:0;if(e=YB(e),e===ZB||e===-1/0){var t=e<0?-1:1;return t*XB}return e===e?e:0}function QB(e){var t=JB(e),r=t%1;return t===t?r?t-r:t:0}var eH="Expected a function";function tH(e,t){var r;if(typeof t!="function")throw new TypeError(eH);return e=QB(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function fk(e){return tH(2,e)}var rH=Object.defineProperty,nH=Object.defineProperties,oH=Object.getOwnPropertyDescriptors,Ab=Object.getOwnPropertySymbols,sH=Object.prototype.hasOwnProperty,iH=Object.prototype.propertyIsEnumerable,Ib=(e,t,r)=>t in e?rH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ep=(e,t)=>{for(var r in t||(t={}))sH.call(t,r)&&Ib(e,r,t[r]);if(Ab)for(var r of Ab(t))iH.call(t,r)&&Ib(e,r,t[r]);return e},xp=(e,t)=>nH(e,oH(t)),yi=(e,t,r)=>new Promise((n,o)=>{var s=l=>{try{a(r.next(l))}catch(c){o(c)}},i=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,i);a((r=r.apply(e,t)).next())}),aH={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",ERROR:"ERROR"},dk=(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))(dk||{}),rs=class pk extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,pk.prototype),this.name="OpenFeatureError",this.cause=r==null?void 0:r.cause}},lH=class hk extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,hk.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},gk=class mk extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,mk.prototype),this.name="GeneralError",this.code="GENERAL"}},cH=class yk extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,yk.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},uH=class _k extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,_k.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},vk=class bk extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,bk.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},wk=class Sk extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Sk.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},fH=class Ek extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,Ek.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},dH=class xk extends rs{constructor(t,r){super(t,r),Object.setPrototypeOf(this,xk.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},pH=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new lH(t);case"PARSE_ERROR":return new uH(t);case"TYPE_MISMATCH":return new dH(t);case"TARGETING_KEY_MISSING":return new fH(t);case"INVALID_CONTEXT":return new cH(t);case"PROVIDER_NOT_READY":return new wk(t);case"PROVIDER_FATAL":return new vk(t);default:return new gk(t)}},jl=(e=>(e.NOT_READY="NOT_READY",e.READY="READY",e.ERROR="ERROR",e.STALE="STALE",e.FATAL="FATAL",e.RECONCILING="RECONCILING",e))(jl||{}),Qn=(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))(Qn||{}),hH={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},kk=(e,t)=>!t&&e==="PROVIDER_READY"||hH[t]===e,Tk=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},gH=["error","warn","info","debug"],Vm=class{constructor(e){this.fallbackLogger=new Tk;try{for(const t of gH)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)}}},mH=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 r=o=>yi(this,null,function*(){var s;try{yield t(o)}catch(i){(s=this._logger)==null||s.error("Error running event handler:",i)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){const r=this._handlers[e].get(t);if(r){const n=r.pop();n&&this.eventEmitter.removeListener(e,n)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new Vm(e),this}get _logger(){var e,t;return(t=this._eventLogger)!=null?t:(e=this.globalLogger)==null?void 0:e.call(this)}};function yH(e){return typeof e=="string"}function _i(e){return yH(e)?e:void 0}function _H(e){return typeof e=="object"}function Br(e){return _H(e)?e:void 0}function Ob(e){return typeof e<"u"&&e!==null}var bg=class{constructor(e,t,r){this._provider=e,this._status=t,this._pendingContextChanges=0;var n,o,s;(n=e.events)==null||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),(o=e.events)==null||o.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),(s=e.events)==null||s.addHandler("PROVIDER_ERROR",i=>{(i==null?void 0:i.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.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--}},vH=class{constructor(e){this._hooks=[],this._context={},this._logger=new Tk,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 Vm(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(n=>{var o;const s=n[0],i=n[1].provider,a=n[1].status;if(kk(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),r!=null&&r.signal&&typeof r.signal.addEventListener=="function"&&r.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 r,n,o,s,i,a,l,c;const u=_i(e),f=(r=Br(e))!=null?r:Br(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 gk(`Provider '${f.metadata.name}' is intended for use on the ${f.runsOn}.`);const g=this.getAssociatedEventEmitters(u);let h;const y=new bg(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?(n=this._domainScopedContext.get(u))!=null?n: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,r;return e?(r=(t=this._domainScopedProviders.get(e))==null?void 0:t.provider)!=null?r:this._defaultProvider.provider:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){const t=this._clientEvents.get(e);if(t)return t;const r=this._createEventEmitter();this._clientEvents.set(e,r);const n=this.getProviderForClient(e);return Object.values(Qn).forEach(o=>{var s;return(s=n.events)==null?void 0:s.addHandler(o,i=>yi(this,null,function*(){r.emit(o,xp(Ep({},i),{clientName:e,domain:e,providerName:n.metadata.name}))}))}),r}getUnboundEmitters(){const e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(Ob).filter(n=>!e.includes(n)).map(n=>this._clientEvents.get(n)),this._clientEvents.get(void 0)].filter(Ob)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var o;(o=this._clientEventHandlers.get(r))==null||o.forEach(i=>{var a;return(a=e.events)==null?void 0:a.removeHandler(...i)});const s=Object.values(Qn).map(i=>[i,l=>yi(this,null,function*(){n.forEach(c=>{c==null||c.emit(i,xp(Ep({},l),{clientName:r,domain:r,providerName:t.metadata.name}))}),this._apiEmitter.emit(i,xp(Ep({},l),{clientName:r,domain:r,providerName:t.metadata.name}))})]);this._clientEventHandlers.set(r,s),s.forEach(i=>{var a;return(a=t.events)==null?void 0:a.addHandler(...i)})}close(){return yi(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(n){this.handleShutdownError(this._defaultProvider.provider,n)}const r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(n=>yi(this,[n],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 yi(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 bg(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)}},bH=Object.create,Wm=Object.defineProperty,wH=Object.defineProperties,SH=Object.getOwnPropertyDescriptor,EH=Object.getOwnPropertyDescriptors,Ck=Object.getOwnPropertyNames,Rb=Object.getOwnPropertySymbols,Ak=Object.getPrototypeOf,Ik=Object.prototype.hasOwnProperty,xH=Object.prototype.propertyIsEnumerable,kH=Reflect.get,Lb=(e,t,r)=>t in e?Wm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kp=(e,t)=>{for(var r in t||(t={}))Ik.call(t,r)&&Lb(e,r,t[r]);if(Rb)for(var r of Rb(t))xH.call(t,r)&&Lb(e,r,t[r]);return e},TH=(e,t)=>wH(e,EH(t)),CH=(e,t)=>function(){return t||(0,e[Ck(e)[0]])((t={exports:{}}).exports,t),t.exports},AH=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ck(t))!Ik.call(e,o)&&o!==r&&Wm(e,o,{get:()=>t[o],enumerable:!(n=SH(t,o))||n.enumerable});return e},IH=(e,t,r)=>(r=e!=null?bH(Ak(e)):{},AH(Wm(r,"default",{value:e,enumerable:!0}),e)),OH=(e,t,r)=>kH(Ak(e),r,t),ci=(e,t,r)=>new Promise((n,o)=>{var s=l=>{try{a(r.next(l))}catch(c){o(c)}},i=l=>{try{a(r.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,i);a((r=r.apply(e,t)).next())}),RH=CH({"../../node_modules/eventemitter3/index.js"(e,t){var r=Object.prototype.hasOwnProperty,n="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(n=!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=n?n+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)r.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+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 Nb}static getInstance(){const t=Db[Mb];if(t)return t;const r=new wg;return Db[Mb]=r,r}getProviderStatus(t){var r,n;return t?(n=(r=this._domainScopedProviders.get(t))==null?void 0:r.status)!=null?n:this._defaultProvider.status:this._defaultProvider.status}setProviderAndWait(t,r,n){return ci(this,null,function*(){const o=_i(t),s=Br(o?r:t),i=Br(o?n:r);i&&(o?this._domainScopedContext.set(o,i):this._context=i),yield this.setAwaitableProvider(o,s)})}setProvider(t,r,n){const o=_i(t),s=Br(o?r:t),i=Br(o?n:r);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,r){return ci(this,null,function*(){var n,o;const s=_i(t),i=(o=(n=Br(t))!=null?n:Br(r))!=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 r=_i(t);if(r){const n=this._domainScopedContext.get(r);if(n)return n;this._logger.debug(`Unable to find context for '${r}'.`)}return this._context}clearContext(t){return ci(this,null,function*(){const r=_i(t);if(r){const n=this._domainScopedProviders.get(r);if(n){const o=this.getContext(r);this._domainScopedContext.delete(r);const s=this.getContext();yield this.runProviderContextChangeHandler(r,n,o,s)}else this._domainScopedContext.delete(r)}else return this.setContext({})})}clearContexts(){return ci(this,null,function*(){yield this.clearContext(),yield Promise.allSettled(Array.from(this._domainScopedProviders.keys()).map(t=>this.clearContext(t)))})}getClient(t,r){return new MH(()=>this.getProviderForClient(t),()=>this.getProviderStatus(t),()=>this.buildAndCacheEventEmitterForClient(t),n=>this.getContext(n),()=>this.getHooks(),()=>this._logger,{domain:t,version:r})}clearProviders(){return ci(this,null,function*(){yield OH(wg.prototype,this,"clearProvidersAndSetDefault").call(this,Pb),this._domainScopedContext.clear()})}runProviderContextChangeHandler(t,r,n,o){return ci(this,null,function*(){var s,i,a,l,c,u;const f=((i=(s=r.provider)==null?void 0:s.metadata)==null?void 0:i.name)||"unnamed-provider";try{if(typeof r.provider.onContextChange=="function"){const d=r.provider.onContextChange(n,o);typeof(d==null?void 0:d.then)=="function"&&(r.incrementPendingContextChanges(),r.status=this._statusEnumType.RECONCILING,this.getAssociatedEventEmitters(t).forEach(p=>{p==null||p.emit(Qn.Reconciling,{domain:t,providerName:f})}),(a=this._apiEmitter)==null||a.emit(Qn.Reconciling,{domain:t,providerName:f}),yield d,r.decrementPendingContextChanges())}r.status=this._statusEnumType.READY,r.allContextChangesSettled&&(this.getAssociatedEventEmitters(t).forEach(d=>{d==null||d.emit(Qn.ContextChanged,{clientName:t,domain:t,providerName:f})}),(l=this._apiEmitter)==null||l.emit(Qn.ContextChanged,{clientName:t,domain:t,providerName:f}))}catch(d){if(r.decrementPendingContextChanges(),r.status=this._statusEnumType.ERROR,r.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(Qn.Error,{clientName:t,domain:t,providerName:f,message:g})}),(u=this._apiEmitter)==null||u.emit(Qn.Error,{clientName:t,domain:t,providerName:f,message:g})}}})}},ro=DH.getInstance();const $H="_targetingKey",FH="_splittestname",Ok="_cohort";function _9(){const e=Zr();return["shift","onelaunch"].some(r=>e[r]!==void 0)}function UH(){return Zr().shift!==void 0}var Ue;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,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 n(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(Ue||(Ue={}));var Sg;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Sg||(Sg={}));const ae=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),No=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"]),jH=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Nr extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(s){return s.message},n={_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)n._errors.push(r(i));else{let a=n,l=0;for(;lr.message){const r={},n=[];for(const o of this.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Nr.create=e=>new Nr(e);const Ki=(e,t)=>{let r;switch(e.code){case Y.invalid_type:e.received===ae.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ue.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ue.joinValues(e.keys,", ")}`;break;case Y.invalid_union:r="Invalid input";break;case Y.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ue.joinValues(e.options)}`;break;case Y.invalid_enum_value:r=`Invalid enum value. Expected ${Ue.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:r="Invalid function arguments";break;case Y.invalid_return_type:r="Invalid function return type";break;case Y.invalid_date:r="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ue.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Y.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Y.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Y.custom:r="Invalid input";break;case Y.invalid_intersection_types:r="Intersection results could not be merged";break;case Y.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ue.assertNever(e)}return{message:r}};let Rk=Ki;function BH(e){Rk=e}function gf(){return Rk}const mf=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},HH=[];function se(e,t){const r=gf(),n=mf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Ki?void 0:Ki].filter(o=>!!o)});e.common.issues.push(n)}class lr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const o of r){if(o.status==="aborted")return ve;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const o of r){const s=await o.key,i=await o.value;n.push({key:s,value:i})}return lr.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const o of r){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)&&(n[s.value]=i.value)}return{status:t.value,value:n}}}const ve=Object.freeze({status:"aborted"}),Si=e=>({status:"dirty",value:e}),br=e=>({status:"valid",value:e}),Eg=e=>e.status==="aborted",xg=e=>e.status==="dirty",Bl=e=>e.status==="valid",Hl=e=>typeof Promise<"u"&&e instanceof Promise;function yf(e,t,r,n){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 Lk(e,t,r,n,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,r),r}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 Ja,Qa;class $n{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,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 $b=(e,t)=>{if(Bl(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 r=new Nr(e.common.issues);return this._error=r,this._error}}};function Te(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))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??n)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??r)!==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 No(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:No(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new lr,ctx:{common:t.parent.common,data:t.data,parsedType:No(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Hl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const o={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:No(t)},s=this._parseSync({data:t,path:o.path,parent:o});return $b(o,s)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:No(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(Hl(o)?o:Promise.resolve(o));return $b(n,s)}refine(t,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:Y.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new gn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Nn.create(this,this._def)}nullable(){return qo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return un.create(this,this._def)}promise(){return Zi.create(this,this._def)}or(t){return Gl.create([this,t],this._def)}and(t){return ql.create(this,t,this._def)}transform(t){return new gn({...Te(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Jl({...Te(this._def),innerType:this,defaultValue:r,typeName:_e.ZodDefault})}brand(){return new zm({typeName:_e.ZodBranded,type:this,...Te(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Ql({...Te(this._def),innerType:this,catchValue:r,typeName:_e.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return wc.create(this,t)}readonly(){return ec.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const VH=/^c[^\s-]{8,}$/i,WH=/^[0-9a-z]+$/,zH=/^[0-9A-HJKMNP-TV-Z]{26}$/,GH=/^[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,KH=/^[-+]?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)?)??$/,YH=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ZH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Tp;const XH=/^(?:(?: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])$/,JH=/^(([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})))$/,QH=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Pk="((\\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])))",e3=new RegExp(`^${Pk}$`);function Nk(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 t3(e){return new RegExp(`^${Nk(e)}$`)}function Mk(e){let t=`${Pk}T${Nk(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function r3(e,t){return!!((t==="v4"||!t)&&XH.test(e)||(t==="v6"||!t)&&JH.test(e))}class sn 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 n=new lr;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}),n.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:r,code:Y.invalid_string,...pe.errToObj(n)})}_addCheck(t){return new sn({...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 r,n;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:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!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,r){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...pe.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...pe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...pe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...pe.errToObj(r)})}nonempty(t){return this.min(1,pe.errToObj(t))}trim(){return new sn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new sn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new sn({...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 r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new sn({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Te(e)})};function n3(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Wo 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 n;const o=new lr;for(const s of this._def.checks)s.kind==="int"?Ue.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{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)&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?n3(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),se(n,{code:Y.not_finite,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,n,o){return new Wo({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:pe.toString(o)}]})}_addCheck(t){return new Wo({...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,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}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 r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuet.kind==="int"||t.kind==="multipleOf"&&Ue.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.valuenew Wo({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Te(e)});class zo 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 n;const o=new lr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),se(n,{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)&&(n=this._getOrReturnCtx(t,n),se(n,{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,r){return this.setLimit("min",t,!0,pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,pe.toString(r))}setLimit(t,r,n,o){return new zo({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:pe.toString(o)}]})}_addCheck(t){return new zo({...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,r){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value{var t;return new zo({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Te(e)})};class Vl extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.boolean,received:n.parsedType}),ve}return br(t.data)}}Vl.create=e=>new Vl({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Te(e)});class Fs 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 n=new lr;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"}),n.dirty()):Ue.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Fs({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:pe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:pe.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.valuenew Fs({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Te(e)});class _f extends Ie{_parse(t){if(this._getType(t)!==ae.symbol){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.symbol,received:n.parsedType}),ve}return br(t.data)}}_f.create=e=>new _f({typeName:_e.ZodSymbol,...Te(e)});class Wl extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.undefined,received:n.parsedType}),ve}return br(t.data)}}Wl.create=e=>new Wl({typeName:_e.ZodUndefined,...Te(e)});class zl extends Ie{_parse(t){if(this._getType(t)!==ae.null){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.null,received:n.parsedType}),ve}return br(t.data)}}zl.create=e=>new zl({typeName:_e.ZodNull,...Te(e)});class Yi extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return br(t.data)}}Yi.create=e=>new Yi({typeName:_e.ZodAny,...Te(e)});class As extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return br(t.data)}}As.create=e=>new As({typeName:_e.ZodUnknown,...Te(e)});class fo extends Ie{_parse(t){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.never,received:r.parsedType}),ve}}fo.create=e=>new fo({typeName:_e.ZodNever,...Te(e)});class vf extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.void,received:n.parsedType}),ve}return br(t.data)}}vf.create=e=>new vf({typeName:_e.ZodVoid,...Te(e)});class un extends Ie{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==ae.array)return se(r,{code:Y.invalid_type,expected:ae.array,received:r.parsedType}),ve;if(o.exactLength!==null){const i=r.data.length>o.exactLength.value,a=r.data.lengtho.maxLength.value&&(se(r,{code:Y.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>o.type._parseAsync(new $n(r,i,r.path,a)))).then(i=>lr.mergeArray(n,i));const s=[...r.data].map((i,a)=>o.type._parseSync(new $n(r,i,r.path,a)));return lr.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new un({...this._def,minLength:{value:t,message:pe.toString(r)}})}max(t,r){return new un({...this._def,maxLength:{value:t,message:pe.toString(r)}})}length(t,r){return new un({...this._def,exactLength:{value:t,message:pe.toString(r)}})}nonempty(t){return this.min(1,t)}}un.create=(e,t)=>new un({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Te(t)});function vi(e){if(e instanceof yt){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Nn.create(vi(n))}return new yt({...e._def,shape:()=>t})}else return e instanceof un?new un({...e._def,type:vi(e.element)}):e instanceof Nn?Nn.create(vi(e.unwrap())):e instanceof qo?qo.create(vi(e.unwrap())):e instanceof Fn?Fn.create(e.items.map(t=>vi(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(),r=Ue.objectKeys(t);return this._cached={shape:t,keys:r}}_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:n,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof fo&&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 $n(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof fo){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}),n.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 $n(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=>lr.mergeObjectSync(n,c)):lr.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return pe.errToObj,new yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,r,n).message)!==null&&i!==void 0?i:n.defaultError;return r.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,r){return this.augment({[t]:r})}catchall(t){return new yt({...this._def,catchall:t})}pick(t){const r={};return Ue.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new yt({...this._def,shape:()=>r})}omit(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new yt({...this._def,shape:()=>r})}deepPartial(){return vi(this)}partial(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{const o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}),new yt({...this._def,shape:()=>r})}required(t){const r={};return Ue.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Nn;)s=s._def.innerType;r[n]=s}}),new yt({...this._def,shape:()=>r})}keyof(){return Dk(Ue.objectKeys(this.shape))}}yt.create=(e,t)=>new yt({shape:()=>e,unknownKeys:"strip",catchall:fo.create(),typeName:_e.ZodObject,...Te(t)});yt.strictCreate=(e,t)=>new yt({shape:()=>e,unknownKeys:"strict",catchall:fo.create(),typeName:_e.ZodObject,...Te(t)});yt.lazycreate=(e,t)=>new yt({shape:e,unknownKeys:"strip",catchall:fo.create(),typeName:_e.ZodObject,...Te(t)});class Gl extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t),n=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 r.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Nr(a.ctx.common.issues));return se(r,{code:Y.invalid_union,unionErrors:i}),ve}if(r.common.async)return Promise.all(n.map(async s=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.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 r.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Nr(l));return se(r,{code:Y.invalid_union,unionErrors:a}),ve}}get options(){return this._def.options}}Gl.create=(e,t)=>new Gl({options:e,typeName:_e.ZodUnion,...Te(t)});const Yn=e=>e instanceof Yl?Yn(e.schema):e instanceof gn?Yn(e.innerType()):e instanceof Zl?[e.value]:e instanceof Go?e.options:e instanceof Xl?Ue.objectValues(e.enum):e instanceof Jl?Yn(e._def.innerType):e instanceof Wl?[void 0]:e instanceof zl?[null]:e instanceof Nn?[void 0,...Yn(e.unwrap())]:e instanceof qo?[null,...Yn(e.unwrap())]:e instanceof zm||e instanceof ec?Yn(e.unwrap()):e instanceof Ql?Yn(e._def.innerType):[];class kd extends Ie{_parse(t){const{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 n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(se(r,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const o=new Map;for(const s of r){const i=Yn(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 kd({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...Te(n)})}}function kg(e,t){const r=No(e),n=No(t);if(e===t)return{valid:!0,data:e};if(r===ae.object&&n===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=kg(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(r===ae.array&&n===ae.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(Eg(s)||Eg(i))return ve;const a=kg(s.value,i.value);return a.valid?((xg(s)||xg(i))&&r.dirty(),{status:r.value,value:a.data}):(se(n,{code:Y.invalid_intersection_types}),ve)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ql.create=(e,t,r)=>new ql({left:e,right:t,typeName:_e.ZodIntersection,...Te(r)});class Fn extends Ie{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.array)return se(n,{code:Y.invalid_type,expected:ae.array,received:n.parsedType}),ve;if(n.data.lengththis._def.items.length&&(se(n,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const s=[...n.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new $n(n,i,n.path,a)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>lr.mergeArray(r,i)):lr.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new Fn({...this._def,rest:t})}}Fn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Fn({items:e,typeName:_e.ZodTuple,rest:null,...Te(t)})};class Kl extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,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 o=[],s=this._def.keyType,i=this._def.valueType;for(const a in n.data)o.push({key:s._parse(new $n(n,a,n.path,a)),value:i._parse(new $n(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?lr.mergeObjectAsync(r,o):lr.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ie?new Kl({keyType:t,valueType:r,typeName:_e.ZodRecord,...Te(n)}):new Kl({keyType:sn.create(),valueType:t,typeName:_e.ZodRecord,...Te(r)})}}class bf extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.map)return se(n,{code:Y.invalid_type,expected:ae.map,received:n.parsedType}),ve;const o=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([a,l],c)=>({key:o._parse(new $n(n,a,n.path,[c,"key"])),value:s._parse(new $n(n,l,n.path,[c,"value"]))}));if(n.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")&&r.dirty(),a.set(c.value,u.value)}return{status:r.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")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}bf.create=(e,t,r)=>new bf({valueType:t,keyType:e,typeName:_e.ZodMap,...Te(r)});class Us extends Ie{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.set)return se(n,{code:Y.invalid_type,expected:ae.set,received:n.parsedType}),ve;const o=this._def;o.minSize!==null&&n.data.sizeo.maxSize.value&&(se(n,{code:Y.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.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"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...n.data.values()].map((l,c)=>s._parse(new $n(n,l,n.path,c)));return n.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,r){return new Us({...this._def,minSize:{value:t,message:pe.toString(r)}})}max(t,r){return new Us({...this._def,maxSize:{value:t,message:pe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Us.create=(e,t)=>new Us({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Te(t)});class $i extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.function)return se(r,{code:Y.invalid_type,expected:ae.function,received:r.parsedType}),ve;function n(a,l){return mf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,gf(),Ki].filter(c=>!!c),issueData:{code:Y.invalid_arguments,argumentsError:l}})}function o(a,l){return mf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,gf(),Ki].filter(c=>!!c),issueData:{code:Y.invalid_return_type,returnTypeError:l}})}const s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Zi){const a=this;return br(async function(...l){const c=new Nr([]),u=await a._def.args.parseAsync(l,s).catch(p=>{throw c.addIssue(n(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 br(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Nr([n(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new Nr([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new $i({...this._def,args:Fn.create(t).rest(As.create())})}returns(t){return new $i({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new $i({args:t||Fn.create([]).rest(As.create()),returns:r||As.create(),typeName:_e.ZodFunction,...Te(n)})}}class Yl extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Yl.create=(e,t)=>new Yl({getter:e,typeName:_e.ZodLazy,...Te(t)});class Zl extends Ie{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return se(r,{received:r.data,code:Y.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}Zl.create=(e,t)=>new Zl({value:e,typeName:_e.ZodLiteral,...Te(t)});function Dk(e,t){return new Go({values:e,typeName:_e.ZodEnum,...Te(t)})}class Go extends Ie{constructor(){super(...arguments),Ja.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{expected:Ue.joinValues(n),received:r.parsedType,code:Y.invalid_type}),ve}if(yf(this,Ja)||Lk(this,Ja,new Set(this._def.values)),!yf(this,Ja).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return se(r,{received:r.data,code:Y.invalid_enum_value,options:n}),ve}return br(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Go.create(t,{...this._def,...r})}exclude(t,r=this._def){return Go.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Ja=new WeakMap;Go.create=Dk;class Xl extends Ie{constructor(){super(...arguments),Qa.set(this,void 0)}_parse(t){const r=Ue.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ae.string&&n.parsedType!==ae.number){const o=Ue.objectValues(r);return se(n,{expected:Ue.joinValues(o),received:n.parsedType,code:Y.invalid_type}),ve}if(yf(this,Qa)||Lk(this,Qa,new Set(Ue.getValidEnumValues(this._def.values))),!yf(this,Qa).has(t.data)){const o=Ue.objectValues(r);return se(n,{received:n.data,code:Y.invalid_enum_value,options:o}),ve}return br(t.data)}get enum(){return this._def.values}}Qa=new WeakMap;Xl.create=(e,t)=>new Xl({values:e,typeName:_e.ZodNativeEnum,...Te(t)});class Zi extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.promise&&r.common.async===!1)return se(r,{code:Y.invalid_type,expected:ae.promise,received:r.parsedType}),ve;const n=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return br(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Zi.create=(e,t)=>new Zi({type:e,typeName:_e.ZodPromise,...Te(t)});class gn 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:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{se(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return ve;const l=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return l.status==="aborted"?ve:l.status==="dirty"||r.value==="dirty"?Si(l.value):l});{if(r.value==="aborted")return ve;const a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?ve:a.status==="dirty"||r.value==="dirty"?Si(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(n.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(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ve:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ve:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Bl(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:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Bl(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:r.value,value:a})):i);Ue.assertNever(o)}}gn.create=(e,t,r)=>new gn({schema:e,typeName:_e.ZodEffects,effect:t,...Te(r)});gn.createWithPreprocess=(e,t,r)=>new gn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Te(r)});class Nn extends Ie{_parse(t){return this._getType(t)===ae.undefined?br(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nn.create=(e,t)=>new Nn({innerType:e,typeName:_e.ZodOptional,...Te(t)});class qo extends Ie{_parse(t){return this._getType(t)===ae.null?br(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qo.create=(e,t)=>new qo({innerType:e,typeName:_e.ZodNullable,...Te(t)});class Jl extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Jl.create=(e,t)=>new Jl({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Te(t)});class Ql extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Hl(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Nr(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Nr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ql.create=(e,t)=>new Ql({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Te(t)});class wf extends Ie{_parse(t){if(this._getType(t)!==ae.nan){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.nan,received:n.parsedType}),ve}return{status:"valid",value:t.data}}}wf.create=e=>new wf({typeName:_e.ZodNaN,...Te(e)});const o3=Symbol("zod_brand");class zm extends Ie{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class wc extends Ie{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ve:s.status==="dirty"?(r.dirty(),Si(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ve:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new wc({in:t,out:r,typeName:_e.ZodPipeline})}}class ec extends Ie{_parse(t){const r=this._def.innerType._parse(t),n=o=>(Bl(o)&&(o.value=Object.freeze(o.value)),o);return Hl(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:_e.ZodReadonly,...Te(t)});function $k(e,t={},r){return e?Yi.create().superRefine((n,o)=>{var s,i;if(!e(n)){const a=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Yi.create()}const s3={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 i3=(e,t={message:`Input not instance of ${e.name}`})=>$k(r=>r instanceof e,t),Fk=sn.create,Uk=Wo.create,a3=wf.create,l3=zo.create,jk=Vl.create,c3=Fs.create,u3=_f.create,f3=Wl.create,d3=zl.create,p3=Yi.create,h3=As.create,g3=fo.create,m3=vf.create,y3=un.create,_3=yt.create,v3=yt.strictCreate,b3=Gl.create,w3=kd.create,S3=ql.create,E3=Fn.create,x3=Kl.create,k3=bf.create,T3=Us.create,C3=$i.create,A3=Yl.create,I3=Zl.create,O3=Go.create,R3=Xl.create,L3=Zi.create,Fb=gn.create,P3=Nn.create,N3=qo.create,M3=gn.createWithPreprocess,D3=wc.create,$3=()=>Fk().optional(),F3=()=>Uk().optional(),U3=()=>jk().optional(),j3={string:e=>sn.create({...e,coerce:!0}),number:e=>Wo.create({...e,coerce:!0}),boolean:e=>Vl.create({...e,coerce:!0}),bigint:e=>zo.create({...e,coerce:!0}),date:e=>Fs.create({...e,coerce:!0})},B3=ve;var R=Object.freeze({__proto__:null,defaultErrorMap:Ki,setErrorMap:BH,getErrorMap:gf,makeIssue:mf,EMPTY_PATH:HH,addIssueToContext:se,ParseStatus:lr,INVALID:ve,DIRTY:Si,OK:br,isAborted:Eg,isDirty:xg,isValid:Bl,isAsync:Hl,get util(){return Ue},get objectUtil(){return Sg},ZodParsedType:ae,getParsedType:No,ZodType:Ie,datetimeRegex:Mk,ZodString:sn,ZodNumber:Wo,ZodBigInt:zo,ZodBoolean:Vl,ZodDate:Fs,ZodSymbol:_f,ZodUndefined:Wl,ZodNull:zl,ZodAny:Yi,ZodUnknown:As,ZodNever:fo,ZodVoid:vf,ZodArray:un,ZodObject:yt,ZodUnion:Gl,ZodDiscriminatedUnion:kd,ZodIntersection:ql,ZodTuple:Fn,ZodRecord:Kl,ZodMap:bf,ZodSet:Us,ZodFunction:$i,ZodLazy:Yl,ZodLiteral:Zl,ZodEnum:Go,ZodNativeEnum:Xl,ZodPromise:Zi,ZodEffects:gn,ZodTransformer:gn,ZodOptional:Nn,ZodNullable:qo,ZodDefault:Jl,ZodCatch:Ql,ZodNaN:wf,BRAND:o3,ZodBranded:zm,ZodPipeline:wc,ZodReadonly:ec,custom:$k,Schema:Ie,ZodSchema:Ie,late:s3,get ZodFirstPartyTypeKind(){return _e},coerce:j3,any:p3,array:y3,bigint:l3,boolean:jk,date:c3,discriminatedUnion:w3,effect:Fb,enum:O3,function:C3,instanceof:i3,intersection:S3,lazy:A3,literal:I3,map:k3,nan:a3,nativeEnum:R3,never:g3,null:d3,nullable:N3,number:Uk,object:_3,oboolean:U3,onumber:F3,optional:P3,ostring:$3,pipeline:D3,preprocess:M3,promise:L3,record:x3,set:T3,strictObject:v3,string:Fk,symbol:u3,transformer:Fb,tuple:E3,undefined:f3,union:b3,unknown:h3,void:m3,NEVER:B3,ZodIssueCode:Y,quotelessJson:jH,ZodError:Nr});const H3=mt.withTag("updateUserEngagementState"),V3=e=>{const t=e.isEngaged?"isEngaged":"notEngaged",r=ro.getContext();H3.info(`User engagement state updated: ${t}`),ro.setContext({...r,...e}),window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var n,o;(o=(n=window.assertive)==null?void 0:n.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}})})},Ub=mt.withTag("store:UserEngagementStore"),Tg=R.object({isEngaged:R.boolean(),lastEngagementDate:R.date().nullable()}),Cp="app:userEngagement",tu=Tg.parse({isEngaged:!1,lastEngagementDate:null}),W3=mc(Cp,{state:()=>({...tu}),getters:{isEnabled(){return!!it().public.enableUserTracking},localStorageEngagement(){const e=pf.getItem(Cp);if(!e)return tu;const t=JSON.parse(e),r=Tg.safeParse({...t,lastEngagementDate:new Date(t.lastEngagementDate)});return r.success?r.data:(Ub.error("Invalid user engagement data:",r.error.errors),tu)}},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)=>{pf.setItem(Cp,JSON.stringify(t)),V3(t)},{flush:"sync"})},setUserEngagement(e,t){if(!this.isEnabled)return;const r={...this.$state,[e]:t,lastEngagementDate:new Date},n=Tg.safeParse(r);if(!n.success){Ub.error("Invalid user engagement entry",n.error.errors);return}this.$patch(n.data)},resetUserEngagement(){this.isEnabled&&this.$patch({...tu})},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 Sf(e,t){var c,u;const{shift:r,chrome:n,onelaunch:o}=Zr(),s=(c=r==null?void 0:r.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=n==null?void 0:n.runtime)==null?void 0:u.setProfileProperty;l&&l(e,i)}const Bk=()=>{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 r=e();return(t==="x"?r:parseInt(r,16)&3|8).toString(16)}).toUpperCase()},v9=()=>`${Date.now()}-${Bk().slice(0,8)}`,Ap=["alfa","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliett"],Pa=mt.withTag("openfeature"),Ip=new Map;let ui=null;async function z3(){if(ui&&await ui,Ip.has("client")&&Ip.get("client")!==void 0){const S=Ip.get("client");if(S)return{client:S,loaded:Promise.resolve(S)}}const e=1e3*60*60*24*365*10,t=wu($H,{maxAge:e});t.value=t.value||Bk();const r=wu(Ok,{maxAge:e});if(!r.value||!Ap.includes(r.value)){const S=String(t.value),E=Array.from(S).reduce((x,N)=>x+N.charCodeAt(0),0)%Ap.length;r.value=Ap[E]}const n=Ae().$filters||{userAgent:null,isMobile:null},o=UH(),s=Qs().query,i=wu(FH,{maxAge:e}),a=W3();a.loadUserEngagement(),ro.setContext({...n,...s,targetingKey:t.value,...i.value?{splittestname:i.value}:{},...a.$state,cohort:r.value,isShiftBrowser:o}),Pa.log({filters:n});const{registerMultipleFeatureFlagProviders:l,registerFeatureFlagProvider:c,teardown:u}=await Yt(async()=>{const{registerMultipleFeatureFlagProviders:S,registerFeatureFlagProvider:E,teardown:x}=await import("./BYVrZbGq.js").then(N=>N.f);return{registerMultipleFeatureFlagProviders:S,registerFeatureFlagProvider:E,teardown:x}},__vite__mapDeps([60,18,9]),import.meta.url);ui&&await ui;const{configCatSdkKey:f}=it().public,{openfeature:d={multiProvider:!1,localProvider:!1,queryProvider:!1}}=jn(),{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);ui=m;const b=await m;Pa.log({client:b,OpenFeature:ro,context:ro.getContext()});let _=!1;const v=b.getStringValue("splittestname","");if(v&&(i.value=v),ro.setContext({...ro.getContext(),splittestname:i.value??"",cohort:r.value??"",isShiftBrowser:o}),typeof window<"u"){_||(window.addEventListener("beforeunload",()=>{Pa.log("Teardown OpenFeature client on beforeunload"),u().catch(S=>Pa.error("Teardown failed:",S))}),_=!0);try{Sf("ntp_cohort",String(r.value||""))}catch(S){Pa.warn("Failed to set NTP cohort property for analytics",S)}}return{client:b,loaded:ui}}const ti=fk(z3);async function G3(e){const{client:t}=await ti(),r=t.getStringValue(e,"control"),n=`/api/v2/configs/${e}`;return[`${n}/${r}.json`,`${n}/control.json`]}const Na=mt.withTag("store:ConfigStore");function Td(e){const t=r=>{if(!e.transform)return r;try{return e.transform(r)}catch(n){return Na.error(`[${e.configStoreKey}] Failed to apply transform function:`,n),r}};return mc(e.configStoreKey,()=>{const r=new hB(pf,"app:config",6e4),n=ue(e.defaults),o=ue(!1),s=async()=>{const u=[],f=await G3(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=r.load(e.configStoreKey);if(u)try{const p=JSON.parse(u),g=e.schema(p),h=t(g);n.value=h,(f=e.onLoad)==null||f.call(e,h)}catch(p){Na.warn(`[${e.configStoreKey}] Failed to parse or validate stored data:`,p)}else{try{const p=await s(),g=t(p);n.value=g,r.save(e.configStoreKey,JSON.stringify(g)),(d=e.onLoad)==null||d.call(e,g)}catch(p){Na.error(`[${e.configStoreKey}] Failed to fetch or validate config:`,p)}n.value||Na.warn(`[${e.configStoreKey}] No valid data found in local storage or API`)}return o.value=!1,await Promise.resolve(n.value)};return i=a(),{data:n,isLoading:o,load:a,update:u=>{var d;Na.log("updating config store",u);const f={...n.value,...u};n.value=t(f),r.save(e.configStoreKey,JSON.stringify(n.value)),(d=e.onUpdate)==null||d.call(e,n.value)},reset:()=>{var f;const u=structuredClone(e.defaults);n.value=t(u),r.save(e.configStoreKey,JSON.stringify(n.value)),(f=e.onReset)==null||f.call(e),i=null},storage:r,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})}),jb=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())}),Cd=Td({defaults:jb.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=>jb.parse(e)}),Bb=[];function K3(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(Bb.includes(t.ntp_placement_name))return!1;Bb.push(t.ntp_placement_name)}return!0}function Y3(e,t){const r=Cd(),{data:n}=yc(r);K3(e,t)&&Z3(e,t,n?Me(n):void 0)}async function Z3(e,t,r){var f,d;const o={...await DT(r,e),...t||{}};window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:o});const{shift:s,chrome:i,onelaunch:a}=Zr(),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 X3(e,t){var l,c;const{shift:r,chrome:n,onelaunch:o}=Zr(),s=(l=r==null?void 0:r.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=n==null?void 0:n.runtime)==null?void 0:c.addProfileProperty;a&&a(e,t.toString())}const Hk={getSearchUrl:bB,getConfig:wB,getHostApis:Zr,openInDefaultBrowser:EB,getHostBrowserAppVersion:ck,setProfileProperty:Sf,isCurrentlyAtHomeTab:ak,getInstallInfo:lk,getSearchEngineConfig:kB,analytics:{incrementProfileProperty:X3,sendMixpanelEvent:Y3,setProfileProperty:Sf}},J3="2.217.0",Op={version:J3},Q3=300,e4=12,t4=24,Ma=e=>e*Q3+(e-1)*e4,Da={1:Ma(1),2:Ma(2),3:Ma(3),4:Ma(4),5:Ma(5)};function r4(e){const t=e-t4*2;return t>=Da[5]?5:t>=Da[4]?4:t>=Da[3]?3:t>=Da[2]?2:t>=Da[1]?1:0}const n4=()=>{const{width:e,height:t}=Tx(),r=`${e.value}x${t.value}`,n=e.value,o=t.value,s=r4(e.value);return{browser_window_size:r,browser_window_width:n,browser_window_height:o,column_count:s}},Gm=R.object({design:R.enum(["google","msn"]).default("google").optional(),pages:R.number().min(2).default(6).optional()}).passthrough(),Vk=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(Gm),onlyWhenGridIsGreaterThan:R.optional(R.number())}),Wk=R.object({y:R.number(),x:R.optional(R.number()),classes:R.optional(R.string()),props:R.optional(Gm),onlyWhenGridIsGreaterThan:R.optional(R.number())}),o4=Vk.extend({type:R.literal("slider"),props:R.optional(Gm.extend({autoplayInterval:R.optional(R.number()),ads:R.optional(R.array(Wk.pick({classes:!0,props:!0}).extend({position:R.number()}))),contentType:R.enum(["video","title"]).optional()}))}),Hb=R.union([Vk,o4,Wk]),s4=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(Hb)),ads:R.optional(R.array(Hb))}),i4=R.object({name:R.string(),section:R.array(s4)}),a4=Td({configStoreKey:"layoutSkeleton",defaults:void 0,schema:e=>i4.parse(e)});function l4(e){const t=new Date(e);if(isNaN(t.getTime()))return 0;const n=new Date().getTime()-t.getTime(),o=Math.max(0,n);return Math.round(o/(1e3*60*60))}const c4=mt.withTag("visibleContent"),js=new Map;let zk=0;function b9(e,t){if(!e)return-1;const r=js.get(e);if(r)return t&&(r.metadata=t),r.sortOrder;const n=zk++;return js.set(e,{id:e,sortOrder:n,isVisible:!1,metadata:t}),n}function w9(e,t){const r=js.get(e);r&&(r.isVisible=t)}function S9(e){const t=js.get(e);t&&(t.isVisible=!1)}function u4(e=!0){const t=Array.from(js.values()).filter(n=>!e||n.isVisible).sort((n,o)=>n.sortOrder-o.sortOrder),r=t.slice(0,100);return t.length>100&&c4.warn(`Content exceeds 100 items (${t.length}), capping to 100`),r.map(({id:n,sortOrder:o,metadata:s})=>({id:n,sortOrder:o,headline:s==null?void 0:s.headline,publisher:s==null?void 0:s.publisher,url:s==null?void 0:s.url,summary_url:s==null?void 0:s.summary_url,category:s==null?void 0:s.category,type:s==null?void 0:s.type,story_age:s!=null&&s.publishedDate?l4(s.publishedDate):void 0}))}function f4(e,t){return!t||t<=0?e.map(r=>({...r,position_row:0,position_col:0})):e.map(r=>({...r,position_row:Math.floor(r.sortOrder/t),position_col:r.sortOrder%t}))}function E9(){return js.size>0}function d4(){js.clear(),zk=0}const p4=mc("newsToggle",{state:()=>({newsToggle:!0}),actions:{updateNewsToggle(){this.newsToggle=!this.newsToggle}}}),Gk=()=>ei("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 h4(e){return e.nodeType===e.ELEMENT_NODE}function pl(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function hl(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function g4(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 m4(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Ef(e){try{const t=e.rules||e.cssRules;return t?g4(Array.from(t,qk).join("")):null}catch{return null}}function qk(e){let t;if(_4(e))try{t=Ef(e.styleSheet)||m4(e)}catch{}else if(v4(e)&&e.selectorText.includes(":"))return y4(e.cssText);return t||e.cssText}function y4(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function _4(e){return"styleSheet"in e}function v4(e){return"selectorText"in e}class Kk{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-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 r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function b4(){return new Kk}function qm({element:e,maskInputOptions:t,tagName:r,type:n,value:o,maskInputFn:s}){let i=o||"";const a=n&&Bs(n);return(t[r.toLowerCase()]||a&&t[a])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function Bs(e){return e.toLowerCase()}const Vb="__rrweb_original__";function w4(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let n=0;nl!==0))return!1}return!0}function Km(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Bs(t):null}function Yk(e,t){var r;let n;try{n=new URL(e,t??window.location.href)}catch{return null}const o=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(o);return(r=s==null?void 0:s[1])!==null&&r!==void 0?r:null}let S4=1;const E4=new RegExp("[^a-z0-9-_:]"),tc=-2;function Zk(){return S4++}function x4(e){if(e instanceof HTMLFormElement)return"form";const t=Bs(e.tagName);return E4.test(t)?"div":t}function k4(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let fi,Wb;const T4=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,C4=/^(?:[a-z+]+:)?\/\//i,A4=/^www\..*/i,I4=/^(data:)([^,]*),(.*)/i;function xf(e,t){return(e||"").replace(T4,(r,n,o,s,i,a)=>{const l=o||i||a,c=n||s||"";if(!l)return r;if(C4.test(l)||A4.test(l))return`url(${c}${l}${c})`;if(I4.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${k4(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 O4=/^[^ \t\n\r\u000c]+/,R4=/^[, \t\n\r\u000c]+/;function L4(e,t){if(t.trim()==="")return t;let r=0;function n(s){let i;const a=s.exec(t.substring(r));return a?(i=a[0],r+=i.length,i):""}const o=[];for(;n(R4),!(r>=t.length);){let s=n(O4);if(s.slice(-1)===",")s=Ei(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=Ei(e,s);let a=!1;for(;;){const l=t.charAt(r);if(l===""){o.push((s+i).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){r+=1,o.push((s+i).trim());break}else l==="("&&(a=!0);i+=l,r+=1}}}return o.join(", ")}function Ei(e,t){if(!t||t.trim()==="")return t;const r=e.createElement("a");return r.href=t,r.href}function P4(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ym(){const e=document.createElement("a");return e.href="",e.href}function Xk(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Ei(e,n):r==="srcset"?L4(e,n):r==="style"?xf(n,Ym()):t==="object"&&r==="data"?Ei(e,n):n)}function Jk(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function N4(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}if(r)return e.matches(r)}catch{}return!1}function kf(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?kf(e.parentNode,t,r):!1;for(let n=e.classList.length;n--;){const o=e.classList[n];if(t.test(o))return!0}return r?kf(e.parentNode,t,r):!1}function Qk(e,t,r,n){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(typeof t=="string"){if(n){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(kf(o,t,n))return!0;if(r){if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}}catch{}return!1}function M4(e,t,r){const n=e.contentWindow;if(!n)return;let o=!1,s;try{s=n.document.readyState}catch{return}if(s!=="complete"){const a=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()});return}const i="about:blank";if(n.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function D4(e,t,r){let n=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()})}function $4(e,t){const{doc:r,mirror:n,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=F4(r,n);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 j4(e,{doc:r,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 U4(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 F4(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function U4(e,t){var r;const{needsMask:n,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||!((r=e.parentNode.sheet)===null||r===void 0)&&r.cssRules&&(a=Ef(e.parentNode.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}a=xf(a,Ym())}return c&&(a="SCRIPT_PLACEHOLDER"),!l&&!c&&a&&n&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:Lt.Text,textContent:a||"",isStyle:l,rootId:s}}function j4(e,t){const{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=t,g=N4(e,n,o),h=x4(e);let y={};const m=e.attributes.length;for(let _=0;_S.href===e.href);let v=null;_&&(v=Ef(_)),v&&(delete y.rel,delete y.href,y._cssText=xf(v,_.href))}if(h==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const _=Ef(e.sheet);_&&(y._cssText=xf(_,Ym()))}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=qm({element:e,type:Km(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")w4(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){fi||(fi=r.createElement("canvas"),Wb=fi.getContext("2d"));const _=e,v=_.crossOrigin;_.crossOrigin="anonymous";const S=()=>{_.removeEventListener("load",S);try{fi.width=_.naturalWidth,fi.height=_.naturalHeight,Wb.drawImage(_,0,0),y.rr_dataURL=fi.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:P4(e)||void 0,needBlock:g,rootId:p,isCustom:b}}function nt(e){return e==null?"":e.toLowerCase()}function B4(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"&&Yk(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(nt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||nt(e.attributes.name)==="application-name"||nt(e.attributes.rel)==="icon"||nt(e.attributes.rel)==="apple-touch-icon"||nt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&nt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(nt(e.attributes.property).match(/^(og|twitter|fb):/)||nt(e.attributes.name).match(/^(og|twitter):/)||nt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(nt(e.attributes.name)==="robots"||nt(e.attributes.name)==="googlebot"||nt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(nt(e.attributes.name)==="author"||nt(e.attributes.name)==="generator"||nt(e.attributes.name)==="framework"||nt(e.attributes.name)==="publisher"||nt(e.attributes.name)==="progid"||nt(e.attributes.property).match(/^article:/)||nt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(nt(e.attributes.name)==="google-site-verification"||nt(e.attributes.name)==="yandex-verification"||nt(e.attributes.name)==="csrf-token"||nt(e.attributes.name)==="p:domain_verify"||nt(e.attributes.name)==="verify-v1"||nt(e.attributes.name)==="verification"||nt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function xi(e,t){const{doc:r,mirror:n,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=Qk(e,i,a,N===void 0));const O=$4(e,{doc:r,mirror:n,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;n.hasNode(e)?U=n.getId(e):B4(O,p)||!I&&O.type===Lt.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?U=tc:U=Zk();const L=Object.assign(O,{id:U});if(n.add(e,L),U===tc)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&&hl(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:r,mirror:n,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=xi(ce,oe);q&&L.childNodes.push(q)}if(h4(e)&&e.shadowRoot)for(const ce of Array.from(e.shadowRoot.childNodes)){const q=xi(ce,oe);q&&(hl(e.shadowRoot)&&(q.isShadow=!0),L.childNodes.push(q))}}return e.parentNode&&pl(e.parentNode)&&hl(e.parentNode)&&(L.isShadow=!0),L.type===Lt.Element&&L.tagName==="iframe"&&M4(e,()=>{const oe=e.contentDocument;if(oe&&b){const ce=xi(oe,{doc:oe,mirror:n,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"&&Yk(L.attributes.href)==="css")&&D4(e,()=>{if(v){const oe=xi(e,{doc:r,mirror:n,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 H4(e,t){const{mirror:r=new Kk,blockClass:n="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 xi(e,{doc:e,mirror:r,blockClass:n,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 _r(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const bi=`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(bi),-1},getNode(){return console.error(bi),null},removeNodeFromMap(){console.error(bi)},has(){return console.error(bi),!1},reset(){console.error(bi)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(zb=new Proxy(zb,{get(e,t,r){return t==="map"&&console.error(bi),Reflect.get(e,t,r)}}));function rc(e,t,r={}){let n=null,o=0;return function(...s){const i=Date.now();!o&&r.leading===!1&&(o=i);const a=t-(i-o),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),o=i,e.apply(l,s)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(l,s)},a))}}function Ad(e,t,r,n,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(i){setTimeout(()=>{r.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Ad(e,t,s||{},!0)}function ha(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}let Tf=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Tf=()=>new Date().getTime());function eT(e){var t,r,n,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)||((r=(t=a==null?void 0:a.body)===null||t===void 0?void 0:t.parentElement)===null||r===void 0?void 0:r.scrollLeft)||((n=a==null?void 0:a.body)===null||n===void 0?void 0:n.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 tT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function rT(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nT(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function vr(e,t,r,n){if(!e)return!1;const o=nT(e);if(!o)return!1;try{if(typeof t=="string"){if(o.classList.contains(t)||n&&o.closest("."+t)!==null)return!0}else if(kf(o,t,n))return!0}catch{}return!!(r&&(o.matches(r)||n&&o.closest(r)!==null))}function V4(e,t){return t.getId(e)!==-1}function Rp(e,t){return t.getId(e)===tc}function oT(e,t){if(pl(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?oT(e.parentNode,t):!0:!0}function Cg(e){return!!e.changedTouches}function W4(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 r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function sT(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function iT(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ag(e){return!!(e!=null&&e.shadowRoot)}class z4{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var r;return(r=this.styleIDMap.get(t))!==null&&r!==void 0?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}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 aT(e){var t,r;let n=null;return((r=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||r===void 0?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function G4(e){let t=e,r;for(;r=aT(t);)t=r;return t}function q4(e){const t=e.ownerDocument;if(!t)return!1;const r=G4(e);return t.contains(r)}function lT(e){const t=e.ownerDocument;return t?t.contains(e)||q4(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||{}),kr=(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))(kr||{}),Zn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zn||{}),Xi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Xi||{});function Gb(e){return"__ln"in e}class K4{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 r=this.head;for(let n=0;n`${e}@${t}`;class Y4{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=[],r=new Set,n=new K4,o=l=>{let c=l,u=tc;for(;u===tc;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=l=>{if(!l.parentNode||!lT(l)||l.parentNode.tagName==="TEXTAREA")return;const c=pl(l.parentNode)?this.mirror.getId(aT(l)):this.mirror.getId(l.parentNode),u=o(l);if(c===-1||u===-1)return n.addNode(l);const f=xi(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=>{sT(d,this.mirror)&&this.iframeManager.addIframe(d),iT(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Ag(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}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)Kb(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(const l of this.addedSet)!Yb(this.droppedSet,l)&&!Kb(this.removes,l,this.mirror)||Yb(this.movedSet,l)?s(l):this.droppedSet.add(l);let i=null;for(;n.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=n.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(;n.head;)n.removeNode(n.head.value);break}i=l.previous,n.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=>!r.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!r.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 r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r)),r.attributes.value=Array.from(t.childNodes,n=>n.textContent||"").join("")},this.processMutation=t=>{if(!Rp(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!vr(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Qk(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,nT(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.attributeName,o=t.target.getAttribute(n);if(n==="value"){const i=Km(r);o=qm({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:i,value:o,maskInputFn:this.maskInputFn})}if(vr(t.target,this.blockClass,this.blockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(o))if(!r.contentDocument)n="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Jk(r.tagName,n)&&(s.attributes[n]=Xk(this.doc,Bs(r.tagName),Bs(n),o),n==="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(r.style)){const l=r.style.getPropertyValue(a),c=r.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))r.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(vr(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),o=pl(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);vr(t.target,this.blockClass,this.blockSelector,!1)||Rp(r,this.mirror)||!V4(r,this.mirror)||(this.addedSet.has(r)?(Ig(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||oT(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[qb(n,o)]?Ig(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:pl(t.target)&&hl(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rp(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[qb(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);vr(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(n=>this.genAdds(n)),Ag(t)&&t.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,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(r=>{this[r]=t[r]})}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 Ig(e,t){e.delete(t),t.childNodes.forEach(r=>Ig(e,r))}function Kb(e,t,r){return e.length===0?!1:cT(e,t,r)}function cT(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return e.some(s=>s.id===o)?!0:cT(e,n,r)}function Yb(e,t){return e.size===0?!1:uT(e,t)}function uT(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:uT(e,r):!1}let gl;function Z4(e){gl=e}function X4(){gl=void 0}const $e=e=>gl?(...r)=>{try{return e(...r)}catch(n){if(gl&&gl(n)===!0)return;throw n}}:e,ws=[];function Sc(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 fT(e,t){var r,n;const o=new Y4;ws.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=(n=(r=window==null?void 0:window.Zone)===null||r===void 0?void 0:r.__symbol__)===null||n===void 0?void 0:n.call(r,"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 J4({mousemoveCb:e,sampling:t,doc:r,mirror:n}){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=rc($e(f=>{const d=Date.now()-a;e(i.map(p=>(p.timeOffset-=d,p)),f),i=[],a=null}),s),c=$e(rc($e(f=>{const d=Sc(f),{clientX:p,clientY:g}=Cg(f)?f.changedTouches[0]:f;a||(a=Tf()),i.push({x:p,y:g,id:n.getId(d),timeOffset:Tf()-a}),l(typeof DragEvent<"u"&&f instanceof DragEvent?De.Drag:f instanceof MouseEvent?De.MouseMove:De.TouchMove)}),o,{trailing:!1})),u=[_r("mousemove",c,r),_r("touchmove",c,r),_r("drag",c,r)];return $e(()=>{u.forEach(f=>f())})}function Q4({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,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=Sc(f);if(vr(d,n,o,!0))return;let p=null,g=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Zn.Mouse;break;case"touch":p=Zn.Touch;break;case"pen":p=Zn.Pen;break}p===Zn.Touch?kr[u]===kr.MouseDown?g="TouchStart":kr[u]===kr.MouseUp&&(g="TouchEnd"):Zn.Pen}else Cg(f)&&(p=Zn.Touch);p!==null?(l=p,(g.startsWith("Touch")&&p===Zn.Touch||g.startsWith("Mouse")&&p===Zn.Mouse)&&(p=null)):kr[u]===kr.Click&&(p=l,l=null);const h=Cg(f)?f.changedTouches[0]:f;if(!h)return;const y=r.getId(d),{clientX:m,clientY:b}=h;$e(e)(Object.assign({type:kr[g],id:y,x:m,y:b},p!==null&&{pointerType:p}))};return Object.keys(kr).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Bs(u);const d=c(u);if(window.PointerEvent)switch(kr[u]){case kr.MouseDown:case kr.MouseUp:f=f.replace("mouse","pointer");break;case kr.TouchStart:case kr.TouchEnd:return}a.push(_r(f,d,t))}),$e(()=>{a.forEach(u=>u())})}function dT({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:s}){const i=$e(rc($e(a=>{const l=Sc(a);if(!l||vr(l,n,o,!0))return;const c=r.getId(l);if(l===t&&t.defaultView){const u=eT(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 _r("scroll",i,t)}function eV({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const o=$e(rc($e(()=>{const s=tT(),i=rT();(r!==s||n!==i)&&(e({width:Number(i),height:Number(s)}),r=s,n=i)}),200));return _r("resize",o,t)}const tV=["INPUT","TEXTAREA","SELECT"],Zb=new WeakMap;function rV({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function f(b){let _=Sc(b);const v=b.isTrusted,S=_&&_.tagName;if(_&&S==="OPTION"&&(_=_.parentElement),!_||!S||tV.indexOf(S)<0||vr(_,n,o,!0)||_.classList.contains(s)||i&&_.matches(i))return;let E=_.value,x=!1;const N=Km(_)||"";N==="radio"||N==="checkbox"?x=_.checked:(a[S.toLowerCase()]||a[N])&&(E=qm({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=Zb.get(b);if(!v||v.text!==_.text||v.isChecked!==_.isChecked){Zb.set(b,_);const S=r.getId(b);$e(e)(Object.assign(Object.assign({},_),{id:S}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>_r(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=>Ad(b[0],b[1],{set(){$e(f)({target:this,isTrusted:!1})}},!1,h))),$e(()=>{g.forEach(b=>b())})}function Cf(e){const t=[];function r(n,o){if(ru("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ru("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ru("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ru("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else if(n.parentStyleSheet){const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(e,t)}function Po(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function nV({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:$e((u,f,d)=>{const[p,g]=d,{id:h,styleId:y}=Po(f,t,r.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:p,index:g}]}),u.apply(f,d)})});const s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=Po(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,removes:[{index:p}]}),u.apply(f,d)})});let i;n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=Po(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replace:p}),u.apply(f,d)})}));let a;n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=Po(f,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replaceSync:p}),u.apply(f,d)})}));const l={};nu("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(nu("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),nu("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),nu("CSSSupportsRule")&&(l.CSSSupportsRule=n.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}=Po(p.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:h,index:[...Cf(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}=Po(p.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||m&&m!==-1)&&e({id:y,styleId:m,removes:[{index:[...Cf(p),h]}]}),d.apply(p,g)})})}),$e(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=c[u].insertRule,f.prototype.deleteRule=c[u].deleteRule})})}function pT({mirror:e,stylesheetManager:t},r){var n,o,s;let i=null;r.nodeName==="#document"?i=e.getId(r):i=e.getId(r.host);const a=r.nodeName==="#document"?(n=r.defaultView)===null||n===void 0?void 0:n.Document:(s=(o=r.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(r,"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(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function oV({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{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(r.has(f))return s.apply(l,[f,d,p]);const{id:g,styleId:h}=Po((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,set:{property:f,value:d,priority:p},index:Cf(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(r.has(f))return i.apply(l,[f]);const{id:d,styleId:p}=Po((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,n.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:f},index:Cf(l.parentRule)}),a.apply(l,c)})}),$e(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function sV({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:o,doc:s}){const i=$e(l=>rc($e(c=>{const u=Sc(c);if(!u||vr(u,t,r,!0))return;const{currentTime:f,volume:d,muted:p,playbackRate:g,loop:h}=u;e({type:l,id:n.getId(u),currentTime:f,volume:d,muted:p,playbackRate:g,loop:h})}),o.media||500)),a=[_r("play",i(0),s),_r("pause",i(1),s),_r("seeked",i(2),s),_r("volumechange",i(3),s),_r("ratechange",i(4),s)];return $e(()=>{a.forEach(l=>l())})}function iV({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,s=r.FontFace;r.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=ha(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 n.push(()=>{r.FontFace=s}),n.push(i),$e(()=>{n.forEach(a=>a())})}function aV(e){const{doc:t,mirror:r,blockClass:n,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{}:ha(r.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 cV(e,t){const{mutationCb:r,mousemoveCb:n,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),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),n(...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 uV(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};cV(e,t);let n;e.recordDOM&&(n=fT(e,e.doc));const o=J4(e),s=Q4(e),i=dT(e),a=eV(e,{win:r}),l=rV(e),c=sV(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=nV(e,{win:r}),f=pT(e,e.doc),d=oV(e,{win:r}),e.collectFonts&&(p=iV(e)));const g=aV(e),h=lV(e),y=[];for(const m of e.plugins)y.push(m.observer(m.callback,r,m.options));return $e(()=>{ws.forEach(m=>m.reset()),n==null||n.disconnect(),o(),s(),i(),a(),l(),c(),u(),f(),d(),p(),g(),h(),y.forEach(m=>m())})}function ru(e){return typeof window[e]<"u"}function nu(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xb{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,n,o){const s=n||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let a=s.get(r);return a||(a=this.generateIdFn(),s.set(r,a),i.set(a,r)),a}getIds(t,r){const n=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return r.map(s=>this.getId(t,s,n,o))}getRemoteId(t,r,n){const o=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const s=o.get(r);return s||-1}getRemoteIds(t,r){const n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getRemoteId(t,o,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class fV{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xb(Zk),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xb(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,r){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(n=this.loadListener)===null||n===void 0||n.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 r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case Be.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const o=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(r.data.node,o),{timestamp:r.timestamp,type:Be.IncrementalSnapshot,data:{source:De.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Be.Meta:case Be.Load:case Be.DomContentLoaded:return!1;case Be.Plugin:return r;case Be.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case Be.IncrementalSnapshot:switch(r.data.source){case De.Mutation:return r.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)}),r.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),r.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),r.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),r;case De.Drag:case De.TouchMove:case De.MouseMove:return r.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),r;case De.ViewportResize:return!1;case De.MediaInteraction:case De.MouseInteraction:case De.Scroll:case De.CanvasMutation:case De.Input:return this.replaceIds(r.data,t,["id"]),r;case De.StyleSheetRule:case De.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case De.Font:return r;case De.Selection:return r.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),r;case De.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)===null||n===void 0||n.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),r}}return!1}replace(t,r,n,o){for(const s of o)!Array.isArray(r[s])&&typeof r[s]!="number"||(Array.isArray(r[s])?r[s]=t.getIds(n,r[s]):r[s]=t.getId(n,r[s]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Lt.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class dV{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,r){if(!hl(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=fT(Object.assign(Object.assign({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(dT(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(pT({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const n=this;this.restoreHandlers.push(ha(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&lT(this)&&n.addShadowRoot(this.shadowRoot,r),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 pV(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o"u"?[]:new Uint8Array(256);for(var ou=0;ou>2],o+=ki[(t[r]&3)<<4|t[r+1]>>4],o+=ki[(t[r+1]&15)<<2|t[r+2]>>6],o+=ki[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const Jb=new Map;function yV(e,t){let r=Jb.get(e);return r||(r=new Map,Jb.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const hT=(e,t,r)=>{if(!e||!(mT(e,t)||typeof e=="object"))return;const n=e.constructor.name,o=yV(r,n);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Tu(e,t,r){if(e instanceof Array)return e.map(n=>Tu(n,t,r));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 n=e.constructor.name,o=mV(e);return{rr_type:n,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Tu(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:o}=e;return{rr_type:n,src:o}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",o=e.toDataURL();return{rr_type:n,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Tu(e.data,t,r),e.width,e.height]};if(mT(e,t)||typeof e=="object"){const n=e.constructor.name,o=hT(e,t,r);return{rr_type:n,index:o}}}}return e}const gT=(e,t,r)=>e.map(n=>Tu(n,t,r)),mT=(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 _V(e,t,r,n){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const a=ha(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...c){return vr(this.canvas,r,n,!0)||setTimeout(()=>{const u=gT(c,t,this);e(this.canvas,{type:Xi["2D"],property:i,args:u})},0),l.apply(this,c)}});o.push(a)}catch{const l=Ad(t.CanvasRenderingContext2D.prototype,i,{set(c){e(this.canvas,{type:Xi["2D"],property:i,args:[c],setter:!0})}});o.push(l)}return()=>{o.forEach(i=>i())}}function vV(e){return e==="experimental-webgl"?"webgl":e}function Qb(e,t,r,n){const o=[];try{const s=ha(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(a,...l){if(!vr(this,t,r,!0)){const c=vV(a);if("__context"in this||(this.__context=c),n&&["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 e0(e,t,r,n,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=ha(e,c,function(f){return function(...d){const p=f.apply(this,d);if(hT(p,i,this),"tagName"in this.canvas&&!vr(this.canvas,n,o,!0)){const g=gT(d,i,this),h={type:t,property:c,args:g};r(this.canvas,h)}return p}});a.push(u)}catch{const f=Ad(e,c,{set(d){r(this.canvas,{type:t,property:c,args:[d],setter:!0})}});a.push(f)}return a}function bV(e,t,r,n,o){const s=[];return s.push(...e0(t.WebGLRenderingContext.prototype,Xi.WebGL,e,r,n,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...e0(t.WebGL2RenderingContext.prototype,Xi.WebGL2,e,r,n,o,t)),()=>{s.forEach(i=>i())}}function wV(e,t){var r=e.toString(),n=r.split(` `);n.pop(),n.shift();for(var o=n[0].search(/\S/),s=/(['"])__worker_loader_strict__(['"])/g,i=0,a=n.length;i"u"?[]:new Uint8Array(256),n=0;n>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 kV{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:r="all",win:n,blockClass:o,blockSelector:s,recordCanvas:i,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o,s),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o,s,{dataURLOptions:a})}initCanvasFPSObserver(t,r,n,o,s){const i=Qb(r,n,o,!0),a=new Map,l=new xV;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:Xi["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 r.document.querySelectorAll("canvas").forEach(h=>{vr(h,n,o,!0)||g.push(h)}),g},p=g=>{if(u&&g-uhV(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,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=Qb(t,r,n,!1),s=_V(this.processMutation.bind(this),t,r,n),i=bV(this.processMutation.bind(this),t,r,n,this.mirror);this.resetObservers=()=>{o(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(i=>pV(i,["type"])),{type:s}=n[0];this.mutationCb({id:r,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}class TV{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new z4,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const n={id:r,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}))})),n.styleIds.push(i)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class CV{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,r){const n=this.nodeMap.get(t);return n&&Array.from(n).some(o=>o!==r)}add(t,r){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Ot(e){return Object.assign(Object.assign({},e),{timestamp:Tf()})}let kt,Cu,Lp,Af=!1;const Xr=b4();function Ec(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,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;Z4(ce);const q=x?window.parent===window:!0;let re=!1;if(!q)try{window.parent.document&&(re=!1)}catch{re=!0}if(q&&!t)throw new Error("emit function is required");v!==void 0&&b.mousemove===void 0&&(b.mousemove=v),Xr.reset();const ne=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||{};W4();let lt,be=0;const We=te=>{for(const we of L||[])we.eventProcessor&&(te=we.eventProcessor(te));return m&&!re&&(te=m(te)),te};kt=(te,we)=>{var T;if(!((T=ws[0])===null||T===void 0)&&T.isFrozen()&&te.type!==Be.FullSnapshot&&!(te.type===Be.IncrementalSnapshot&&te.data.source===De.Mutation)&&ws.forEach(A=>A.unfreeze()),q)t==null||t(We(te),we);else if(re){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=n&&be>=n,$=r&&te.timestamp-lt.timestamp>r;(A||$)&&Cu(!0)}};const je=te=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Mutation},te)}))},tr=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)})),pt=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.AdoptedStyleSheet},te)})),W=new TV({mutationCb:je,adoptedStyleSheetCb:pt}),Q=new fV({mirror:Xr,mutationCb:je,stylesheetManager:W,recordCrossOriginIframes:x,wrappedEmit:kt});for(const te of L||[])te.getMirror&&te.getMirror({nodeMirror:Xr,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new CV;Lp=new kV({recordCanvas:E,mutationCb:ze,win:window,blockClass:o,blockSelector:s,mirror:Xr,sampling:b.canvas,dataURLOptions:_});const ie=new dV({mutationCb:je,scrollCb:tr,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:ne,dataURLOptions:_,maskTextFn:h,maskInputFn:g,recordCanvas:E,inlineImages:U,sampling:b,slimDOMOptions:Se,iframeManager:Q,stylesheetManager:W,canvasManager:Lp,keepIframeSrcFn:G,processedNodeManager:X},mirror:Xr});Cu=(te=!1)=>{if(!S)return;kt(Ot({type:Be.Meta,data:{href:window.location.href,width:rT(),height:tT()}}),te),W.reset(),ie.init(),ws.forEach(T=>T.lock());const we=H4(document,{mirror:Xr,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:ne,maskTextFn:h,slimDOM:Se,dataURLOptions:_,recordCanvas:E,inlineImages:U,onSerialize:T=>{sT(T,Xr)&&Q.addIframe(T),iT(T,Xr)&&W.trackLinkElement(T),Ag(T)&&ie.addShadowRoot(T.shadowRoot,document)},onIframeLoad:(T,A)=>{Q.attachIframe(T,A),ie.observeAttachShadow(T)},onStylesheetLoad:(T,A)=>{W.attachLinkElement(T,A)},keepIframeSrcFn:G});if(!we)return console.warn("Failed to snapshot the document");kt(Ot({type:Be.FullSnapshot,data:{node:we,initialOffset:eT(window)}}),te),ws.forEach(T=>T.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Xr.getId(document))};try{const te=[],we=A=>{var $;return $e(uV)({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:tr,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:ne,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:Xr,iframeManager:Q,stylesheetManager:W,shadowDomManager:ie,processedNodeManager:X,canvasManager:Lp,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 T=()=>{Cu(),te.push(we(document)),Af=!0};return document.readyState==="interactive"||document.readyState==="complete"?T():(te.push(_r("DOMContentLoaded",()=>{kt(Ot({type:Be.DomContentLoaded,data:{}})),N==="DOMContentLoaded"&&T()})),te.push(_r("load",()=>{kt(Ot({type:Be.Load,data:{}})),N==="load"&&T()},window))),()=>{te.forEach(A=>A()),X.destroy(),Af=!1,X4()}}catch(te){console.warn(te)}}Ec.addCustomEvent=(e,t)=>{if(!Af)throw new Error("please add custom event after start recording");kt(Ot({type:Be.Custom,data:{tag:e,payload:t}}))};Ec.freezePage=()=>{ws.forEach(e=>e.freeze())};Ec.takeFullSnapshot=e=>{if(!Af)throw new Error("please take full snapshot after start recording");Cu(e)};Ec.mirror=Xr;var yT=(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))(yT||{}),Cn=(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))(Cn||{}),lo={DEBUG:!1,LIB_VERSION:"2.55.1"},Ee;if(typeof window>"u"){var t0={hostname:""};Ee={navigator:{userAgent:"",onLine:!0},document:{location:t0,referrer:""},screen:{width:0,height:0},location:t0}}else Ee=window;var ml=24*60*60*1e3,Pp=8*1e3,Id=Array.prototype,AV=Function.prototype,_T=Object.prototype,Do=Id.slice,xc=_T.toString,Od=_T.hasOwnProperty,It=Ee.console,$o=Ee.navigator,rt=Ee.document,su=Ee.opera,If=Ee.screen,On=$o.userAgent,Np=AV.bind,r0=Id.forEach,n0=Id.indexOf,o0=Id.map,IV=Array.isArray,Og={},w={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ke={log:function(){if(lo.DEBUG&&!w.isUndefined(It)&&It)try{It.log.apply(It,arguments)}catch{w.each(arguments,function(t){It.log(t)})}},warn:function(){if(lo.DEBUG&&!w.isUndefined(It)&&It){var e=["Mixpanel warning:"].concat(w.toArray(arguments));try{It.warn.apply(It,e)}catch{w.each(e,function(r){It.warn(r)})}}},error:function(){if(lo.DEBUG&&!w.isUndefined(It)&&It){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{It.error.apply(It,e)}catch{w.each(e,function(r){It.error(r)})}}},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(r){It.error(r)})}}}},Mp=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ke,arguments)}},Rd=function(e){return{log:Mp(Ke.log,e),error:Mp(Ke.error,e),critical:Mp(Ke.critical,e)}};w.bind=function(e,t){var r,n;if(Np&&e.bind===Np)return Np.apply(e,Do.call(arguments,1));if(!w.isFunction(e))throw new TypeError;return r=Do.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Do.call(arguments)));var o={};o.prototype=e.prototype;var s=new o;o.prototype=null;var i=e.apply(s,r.concat(Do.call(arguments)));return Object(i)===i?i:s},n};w.each=function(e,t,r){if(e!=null){if(r0&&e.forEach===r0)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n0&&(t[n]=r)}),t};w.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):w.isArray(e)?(r=[],w.each(e,function(n){r.push(w.truncate(n,t))})):w.isObject(e)?(r={},w.each(e,function(n,o){r[o]=w.truncate(n,t)})):r=e,r};w.JSONEncode=function(){return function(e){var t=e,r=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+'"'},n=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 r(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=[],xc.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 r[t]=="string")h+=r[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 n=p,e=0,t=" ",g=u(),l(),t&&o("Syntax error"),g}}();w.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,o,s,i,a,l,c,u=0,f=0,d="",p=[];if(!e)return e;e=w.utf8Encode(e);do r=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),c=r<<16|n<<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&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=s+1)}return n>r&&(t+=e.substring(r,e.length)),t};w.UUID=function(){var e=function(){var n=1*new Date,o;if(Ee.performance&&Ee.performance.now)o=Ee.performance.now();else for(o=0;n==1*new Date;)o++;return n.toString(16)+Math.floor(o).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var n=On,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 n=(If.height*If.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+n+"-"+e()}}();var s0=["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 n(o){if(!rt.getElementsByTagName)return[];var s=o.split(" "),i,a,l,c,u,f,d,p,g,h,y=[rt];for(f=0;f-1){a=i.split("#"),l=a[0];var m=a[1],b=rt.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(On,$o.vendor,su),$referrer:rt.referrer,$referring_domain:w.info.referringDomain(rt.referrer),$device:w.info.device(On)}),{$current_url:w.info.currentUrl(),$browser_version:w.info.browserVersion(On,$o.vendor,su),$screen_height:If.height,$screen_width:If.width,mp_lib:"web",$lib_version:lo.LIB_VERSION,$insert_id:Zm(),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(On,$o.vendor,su)}),{$browser_version:w.info.browserVersion(On,$o.vendor,su)})},mpPageViewProperties:function(){return w.strip_empty_properties({current_page_title:rt.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 Zm=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},PV=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,NV=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,i0=function(e){var t=NV,r=e.split("."),n=r[r.length-1];(n.length>4||n==="com"||n==="org")&&(t=PV);var o=e.match(t);return o?o[0]:""},MV=function(){var e=Ee.navigator.onLine;return w.isUndefined(e)||e},Rf=null,Lf=null;typeof JSON<"u"&&(Rf=JSON.stringify,Lf=JSON.parse);Rf=Rf||w.JSONEncode;Lf=Lf||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 DV="__mp_opt_in_out_";function $V(e,t){wT(!0,e,t)}function FV(e,t){wT(!1,e,t)}function UV(e,t){return bT(e,t)==="1"}function vT(e,t){if(BV(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 r=bT(e,t)==="0";return r&&Ke.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function ns(e){return Qm(e,function(t){return this.get_config(t)})}function os(e){return Qm(e,function(t){return this._get_config(t)})}function ga(e){return Qm(e,function(t){return this._get_config(t)})}function jV(e,t){t=t||{},Xm(t).remove(Jm(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Xm(e){return e=e||{},e.persistenceType==="localStorage"?w.localStorage:w.cookie}function Jm(e,t){return t=t||{},(t.persistencePrefix||DV)+e}function bT(e,t){return Xm(t).get(Jm(e,t))}function BV(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ee,r=t.navigator||{},n=!1;return w.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(o){w.includes([!0,1,"1","yes"],o)&&(n=!0)}),n}function wT(e,t,r){if(!w.isString(t)||!t.length){Ke.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},Xm(r).set(Jm(t,r),e?1:0,w.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function Qm(e,t){return function(){var r=!1;try{var n=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");n&&(r=vT(n,{ignoreDnt:o,persistenceType:s,persistencePrefix:i,window:a}))}catch(c){Ke.error("Unexpected error when checking tracking opt-out status: "+c)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var HV=Rd("lock"),ST=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};ST.prototype.withLock=function(e,t,r){!r&&typeof t!="function"&&(r=t,t=null);var n=r||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){HV.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+n+"]"),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!==n)return!1;if(l.setItem(u,n),l.getItem(u)===n)return!0;if(!Of(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},y=function(){l.setItem(c,n),g(h,function(){if(l.getItem(c)===n){m();return}p(function(){if(l.getItem(u)!==n){y();return}g(function(){return!l.getItem(f)},m)})})},m=function(){l.setItem(f,"1");try{e()}finally{l.removeItem(f),l.getItem(u)===n&&l.removeItem(u),l.getItem(c)===n&&l.removeItem(c)}};try{if(Of(l,!0))y();else throw new Error("localStorage support check failed")}catch(b){d(b)}};var a0=Rd("batch"),ss=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||w.bind(a0.error,a0),this.lock=new ST(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};ss.prototype.enqueue=function(e,t,r){var n={id:Zm(),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(n),s=this.saveToStorage(i),s&&this.memQueue.push(n)}catch{this.reportError("Error enqueueing item",e),s=!1}r&&r(s)},this),w.bind(function(s){this.reportError("Error acquiring storage lock",s),r&&r(!1)},this),this.pid):(this.memQueue.push(n),r&&r(!0))};ss.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.lengths.flushAfter&&!n[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}}return t};var l0=function(e,t){var r=[];return w.each(e,function(n){n.id&&!t[n.id]&&r.push(n)}),r};ss.prototype.removeItemsByID=function(e,t){var r={};if(w.each(e,function(o){r[o]=!0}),this.memQueue=l0(this.memQueue,r),!this.usePersistence)t&&t(!0);else{var n=w.bind(function(){var o;try{var s=this.readFromStorage();if(s=l0(s,r),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()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(w.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&!MV()||u.error==="timeout")){var d=this.flushInterval*2;u.retryAfter&&(d=parseInt(u.retryAfter,10)*1e3||d),d=Math.min(VV,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(n/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"),yl.log("MIXPANEL REQUEST:",i),this.sendRequest(i,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};_n.prototype.reportError=function(e,t){if(yl.error.apply(yl.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){yl.error(r)}};var Ss=Rd("recorder"),u0=Ee.CompressionStream,WV={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},zV=new Set([Cn.MouseMove,Cn.MouseInteraction,Cn.Scroll,Cn.ViewportResize,Cn.Input,Cn.TouchMove,Cn.MediaInteraction,Cn.Drag,Cn.Selection]);function GV(e){return e.type===yT.IncrementalSnapshot&&zV.has(e.data.source)}var vn=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=ml,this.recordMinMs=0,this._initBatcher()};vn.prototype._initBatcher=function(){this.batcher=new _n("__mprec",{libConfig:WV,sendRequestFunc:w.bind(this.flushEventsWithOptOut,this),errorReporter:w.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})};vn.prototype.get_config=function(e){return this._mixpanel.get_config(e)};vn.prototype.startRecording=function(e){if(this._stopRecording!==null){Ss.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>ml&&(this.recordMaxMs=ml,Ss.critical("record_max_ms cannot be greater than "+ml+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>Pp&&(this.recordMinMs=Pp,Ss.critical("record_min_ms cannot be greater than "+Pp+"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(){Ss.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),r=this.get_config("record_block_selector");(r===""||r===null)&&(r=void 0),this._stopRecording=Ec({emit:w.bind(function(n){this.batcher.enqueue(n),GV(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:r,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)};vn.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};vn.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)};vn.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,w.bind(this._onOptOut,this))};vn.prototype._onOptOut=function(e){e===0&&(this.recEvents=[],this.stopRecording())};vn.prototype._sendRequest=function(e,t,r,n){var o=w.bind(function(s,i){s.status===200&&this.replayId===e&&this.seqNo++,n({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:r}).then(function(s){s.json().then(function(i){o(s,i)}).catch(function(i){n({error:i})})}).catch(function(s){n({error:s,httpStatusCode:0})})};vn.prototype._flushEvents=ns(function(e,t,r){const n=e.length;if(n>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[n-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),u0){var f=new Blob([l],{type:"application/json"}).stream(),d=f.pipeThrough(new u0("gzip"));new Response(d).blob().then(w.bind(function(p){a.format="gzip",this._sendRequest(o,a,p,r)},this))}else a.format="body",this._sendRequest(o,a,l,r)}});vn.prototype.reportError=function(e,t){Ss.error.apply(Ss.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){Ss.error(r)}};Ee.__mp_recorder=vn;var _o=function(){};_o.prototype.create_properties=function(){};_o.prototype.event_handler=function(){};_o.prototype.after_track_handler=function(){};_o.prototype.init=function(e){return this.mp=e,this};_o.prototype.track=function(e,t,r,n){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(r,this),u=o.mp.get_config("track_links_timeout");o.event_handler(a,this,l),window.setTimeout(o.track_callback(n,c,l,!0),u),o.mp.track(t,c,o.track_callback(n,c,l))})},this),!0};_o.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(n,t)===!1)&&o.after_track_handler(t,r,n))}};_o.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=w.extend({},e),r};var Ji=function(){this.override_event="click"};w.inherit(Ji,_o);Ji.prototype.create_properties=function(e,t){var r=Ji.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};Ji.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};Ji.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Ld=function(){this.override_event="submit"};w.inherit(Ld,_o);Ld.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};Ld.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Ko="$set",Qi="$set_once",tn="$unset",Hs="$add",Mn="$append",Vs="$union",co="$remove",qV="$delete",ET={set_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Ko]=n,r},unset_action:function(e){var t={},r=[];return w.isArray(e)||(e=[e]),w.each(e,function(n){this._is_reserved_property(n)||r.push(n)},this),t[tn]=r,t},set_once_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Qi]=n,r},union_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=w.isArray(o)?o:[o])},this):n[e]=w.isArray(t)?t:[t],r[Vs]=n,r},append_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[Mn]=n,r},remove_action:function(e,t){var r={},n={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(n[s]=o)},this):n[e]=t,r[co]=n,r},delete_action:function(){var e={};return e[qV]="",e}},dt=function(){};w.extend(dt.prototype,ET);dt.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};dt.prototype.set=ga(function(e,t,r){var n=this.set_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});dt.prototype.set_once=ga(function(e,t,r){var n=this.set_once_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});dt.prototype.unset=ga(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});dt.prototype.union=ga(function(e,t,r){w.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});dt.prototype.delete=ga(function(e){var t=this.delete_action();return this._send_request(t,e)});dt.prototype.remove=ga(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)});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 r=w.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,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,ET);xe.prototype._init=function(e){this._mixpanel=e};xe.prototype.set=os(function(e,t,r){var n=this.set_action(e,t);return w.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Ko]=w.extend({},w.info.people_properties(),n[Ko]),this._send_request(n,r)});xe.prototype.set_once=os(function(e,t,r){var n=this.set_once_action(e,t);return w.isObject(e)&&(r=t),this._send_request(n,r)});xe.prototype.unset=os(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});xe.prototype.increment=os(function(e,t,r){var n={},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),r=t):(w.isUndefined(t)&&(t=1),o[e]=t),n[Hs]=o,this._send_request(n,r)});xe.prototype.append=os(function(e,t,r){w.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)});xe.prototype.remove=os(function(e,t,r){w.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)});xe.prototype.union=os(function(e,t,r){w.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});xe.prototype.track_charge=os(function(e,t,r){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),r)});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 r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),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){Ko in e?this._mixpanel.persistence._add_to_people_queue(Ko,e):Qi in e?this._mixpanel.persistence._add_to_people_queue(Qi,e):tn in e?this._mixpanel.persistence._add_to_people_queue(tn,e):Hs in e?this._mixpanel.persistence._add_to_people_queue(Hs,e):Mn in e?this._mixpanel.persistence._add_to_people_queue(Mn,e):co in e?this._mixpanel.persistence._add_to_people_queue(co,e):Vs in e?this._mixpanel.persistence._add_to_people_queue(Vs,e):Ke.error("Invalid call to _enqueue():",e)};xe.prototype._flush_one_queue=function(e,t,r,n){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(),n&&(i=n(s)),t.call(o,i,function(a,l){a===0&&o._mixpanel.persistence._add_to_people_queue(e,s),w.isUndefined(r)||r(a,l)}))};xe.prototype._flush=function(e,t,r,n,o,s,i){var a=this;this._flush_one_queue(Ko,this.set,e),this._flush_one_queue(Qi,this.set_once,n),this._flush_one_queue(tn,this.unset,s,function(y){return w.keys(y)}),this._flush_one_queue(Hs,this.increment,t),this._flush_one_queue(Vs,this.union,o);var l=this._mixpanel.persistence.load_queue(Mn);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(Mn,c),w.isUndefined(r)||r(y,m)},f=l.length-1;f>=0;f--)l=this._mixpanel.persistence.load_queue(Mn),c=l.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(c)||a.append(c,u);var d=this._mixpanel.persistence.load_queue(co);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(co,p),w.isUndefined(i)||i(y,m)},h=d.length-1;h>=0;h--)d=this._mixpanel.persistence.load_queue(co),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 ey="__mps",ty="__mpso",ry="__mpus",ny="__mpa",oy="__mpap",sy="__mpr",iy="__mpu",xT="$people_distinct_id",Pf="__alias",nc="__timers",KV=[ey,ty,ry,ny,oy,sy,iy,xT,Pf,nc],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,r){w.include(KV,r)||(e[r]=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,r){return w.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,this.load(),w.each(e,function(n,o){(!this.props.hasOwnProperty(o)||this.props[o]===t)&&(this.props[o]=n)},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 r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(Ko),s=this._get_or_create_queue(Qi),i=this._get_or_create_queue(tn),a=this._get_or_create_queue(Hs),l=this._get_or_create_queue(Vs),c=this._get_or_create_queue(co,[]),u=this._get_or_create_queue(Mn,[]);r===ey?(w.extend(o,n),this._pop_from_people_queue(Hs,n),this._pop_from_people_queue(Vs,n),this._pop_from_people_queue(tn,n)):r===ty?(w.each(n,function(f,d){d in s||(s[d]=f)}),this._pop_from_people_queue(tn,n)):r===ry?w.each(n,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}):r===ny?(w.each(n,function(f,d){d in o?o[d]+=f:(d in a||(a[d]=0),a[d]+=f)},this),this._pop_from_people_queue(tn,n)):r===iy?(w.each(n,function(f,d){w.isArray(f)&&(d in l||(l[d]=[]),l[d]=l[d].concat(f))}),this._pop_from_people_queue(tn,n)):r===sy?(c.push(n),this._pop_from_people_queue(Mn,n)):r===oy&&(u.push(n),this._pop_from_people_queue(tn,n)),Ke.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ke.log(t),this.save()};Re.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];w.isUndefined(r)||w.each(t,function(n,o){e===Mn||e===co?w.each(r,function(s){s[o]===n&&delete s[o]}):delete r[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===Ko)return ey;if(e===Qi)return ty;if(e===tn)return ry;if(e===Hs)return ny;if(e===Mn)return oy;if(e===co)return sy;if(e===Vs)return iy;Ke.error("Invalid queue:",e)};Re.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=w.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};Re.prototype.set_event_timer=function(e,t){var r=this.load_prop(nc)||{};r[e]=t,this.props[nc]=r,this.save()};Re.prototype.remove_event_timer=function(e){var t=this.load_prop(nc)||{},r=t[e];return w.isUndefined(r)||(delete this.props[nc][e],this.save()),r};var ay,kT=function(e,t){throw new Error(e+" not available in this build.")},nr,TT=0,YV=1,ZV=function(e){return e},oc=function(){},Vr="mixpanel",CT="base64",XV="json",ly="$device:",Fi=Ee.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,AT=!Fi&&On.indexOf("MSIE")===-1&&On.indexOf("Mozilla")===-1,Nf=null;$o.sendBeacon&&(Nf=function(){return $o.sendBeacon.apply($o,arguments)});var IT={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},f0={api_host:"https://api-js.mixpanel.com",api_routes:IT,api_method:"POST",api_transport:"XHR",api_payload_format:CT,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:oc,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:oc,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:ml,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},OT=!1,V=function(){},Rg=function(e,t,r){var n,o=r===Vr?nr:nr[r];if(o&&ay===TT)n=o;else{if(o&&!w.isArray(o)){Ke.error("You have already initialized "+r);return}n=new V}if(n._cached_groups={},n._init(e,t,r),n.people=new xe,n.people._init(n),!n.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&&n.people.set_once(i)}return lo.DEBUG=lo.DEBUG||n.get_config("debug"),!w.isUndefined(o)&&w.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};V.prototype.init=function(e,t,r){if(w.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===Vr){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=Rg(e,t,r);return nr[r]=n,n._loaded(),n};V.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)){var o=t.api_host||f0.api_host;o.match(/\.mixpanel\.com/)&&(n.api_payload_format=XV)}if(this.set_config(w.extend({},f0,n,t,{name:r,token:e,callback_fn:(r===Vr?r:Vr+"."+r)+"._jsc"})),this._jsc=oc,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)||!Fi)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(),Nf&&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(){rt.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:ly+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=ns(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)?kT(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,r){this.unregister(r)}).bind(this))}};V.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(rt.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(rt.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(!OT)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};V.prototype._init_url_change_tracking=function(e){var t="",r=this.track_pageview();if(r&&(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 n=Ee.history.pushState;typeof n=="function"&&(Ee.history.pushState=function(s,i,a){n.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(Fi){var r=function(i){e(i,t)};return r}else{var n=this._jsc,o=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+o+"]";return n[o]=function(i){delete n[o],e(i,t)},s}};V.prototype._send_request=function(e,t,r,n){var o=!0;if(AT)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;!n&&(w.isFunction(r)||typeof r=="string")&&(n=r,r=null),r=w.extend(s,r||{}),Fi||(r.method="GET");var a=r.method==="POST",l=Nf&&a&&r.transport.toLowerCase()==="sendbeacon",c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Fi||(n?t.callback=n:(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=rt.createElement("img");f.src=e,rt.body.appendChild(f)}else if(l){try{o=Nf(e,i)}catch(m){u.report_error(m),o=!1}try{n&&n(o?1:0)}catch(m){u.report_error(m)}}else if(Fi)try{var d=new XMLHttpRequest;d.open(r.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)}),r.timeout_ms&&typeof d.timeout<"u"){d.timeout=r.timeout_ms;var g=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200){if(n)if(c){var m;try{m=w.JSONDecode(d.responseText)}catch(v){if(u.report_error(v),r.ignore_json_errors)m=d.responseText;else return}n(m)}else n(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),n)if(c){var _=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:b,retryAfter:_["Retry-After"]})}else n(0)}},d.send(i)}catch(m){u.report_error(m),o=!1}else{var h=rt.createElement("script");h.type="text/javascript",h.async=!0,h.defer=!0,h.src=e;var y=rt.getElementsByTagName("script")[0];y.parentNode.insertBefore(h,y)}return o};V.prototype._execute_array=function(e){var t,r=[],n=[],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"?r.push(i):w.isArray(i)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?o.push(i):n.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(r,this),s(n,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(r){return new _n(r.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:w.bind(function(n,o,s){this._send_request(this.get_config("api_host")+r.endpoint,this._encode_data_for_request(n),o,this._prepare_callback(s,n))},this),beforeSendHook:w.bind(function(n){return this._run_hook("before_send_"+r.type,n)},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")===CT&&(t=w.base64Encode(t)),{data:t}};V.prototype._track_or_batch=function(e,t){var r=w.truncate(e.data,255),n=e.endpoint,o=e.batcher,s=e.should_send_immediately,i=e.send_request_options||{};t=t||oc;var a=!0,l=w.bind(function(){return i.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Ke.log("MIXPANEL REQUEST:"),Ke.log(r),this._send_request(n,this._encode_data_for_request(r),i,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!s?o.enqueue(r,function(c){c?t(1,r):l()}):a=l(),a&&r};V.prototype.track=ns(function(e,t,r,n){!n&&typeof r=="function"&&(n=r,r=null),r=r||{};var o=r.transport;o&&(r.transport=o);var s=r.send_immediately;if(typeof n!="function"&&(n=oc),w.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(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:r},n);return f});V.prototype.set_group=ns(function(e,t,r){w.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)});V.prototype.add_group=ns(function(e,t,r){var n=this.get_property(e),o={};return n===void 0?(o[e]=[t],this.register(o)):n.indexOf(t)===-1&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)});V.prototype.remove_group=ns(function(e,t,r){var n=this.get_property(e);if(n!==void 0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),n.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});V.prototype.track_with_groups=ns(function(e,t,r,n){var o=w.extend({},t||{});return w.each(r,function(s,i){s!=null&&(o[i]=s)}),this.track(e,o,n)});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 r=this._create_map_key(e,t),n=this._cached_groups[r];return(n===void 0||n._group_key!==e||n._group_id!==t)&&(n=new dt,n._init(this,e,t),this._cached_groups[r]=n),n};V.prototype.track_pageview=ns(function(e,t){typeof e!="object"&&(e={}),t=t||{};var r=t.event_name||"$mp_web_page_view",n=w.extend(w.info.mpPageViewProperties(),w.info.campaignParams(),w.info.clickParams()),o=w.extend({},n,e);return this.track(r,o)});V.prototype.track_links=function(){return this._track_dom.call(this,Ji,arguments)};V.prototype.track_forms=function(){return this._track_dom.call(this,Ld,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 JV={persistent:!0},cy=function(e){var t;return w.isObject(e)?t=e:w.isUndefined(e)?t={}:t={days:e},w.extend({},JV,t)};V.prototype.register=function(e,t){var r=cy(t);r.persistent?this.persistence.register(e,r.days):w.extend(this.unpersisted_superprops,e)};V.prototype.register_once=function(e,t,r){var n=cy(r);n.persistent?this.persistence.register_once(e,t,n.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=cy(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};V.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};V.prototype.identify=function(e,t,r,n,o,s,i,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(ly)===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(Pf)&&(this.unregister(Pf),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,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:ly+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(xT))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return w.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Pf,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.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(r){r.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),lo.DEBUG=lo.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]||ZV).apply(this,Do.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!==Vr&&(e=Vr+"."+e),e};V.prototype._event_is_disabled=function(e){return w.isBlockedUA(On)||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($V,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(FV,e),this._gdpr_update_persistence(e)};V.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(UV,e)};V.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(vT,e)};V.prototype.clear_opt_in_out_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(jV,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(r){Ke.error(r)}};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=IT;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 Ti={},QV=function(){w.each(Ti,function(e,t){t!==Vr&&(nr[t]=e)}),nr._=w},e5=function(){nr.init=function(e,t,r){if(r)return nr[r]||(nr[r]=Ti[r]=Rg(e,t,r),nr[r]._loaded()),nr[r];var n=nr;Ti[Vr]?n=Ti[Vr]:e&&(n=Rg(e,t,Vr),n._loaded(),Ti[Vr]=n),nr=n,ay===YV&&(Ee[Vr]=nr),QV()}},t5=function(){function e(){e.done||(e.done=!0,OT=!0,AT=!1,w.each(Ti,function(n){n._dom_loaded()}))}function t(){try{rt.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(rt.addEventListener)rt.readyState==="complete"?e():rt.addEventListener("DOMContentLoaded",e,!1);else if(rt.attachEvent){rt.attachEvent("onreadystatechange",e);var r=!1;try{r=Ee.frameElement===null}catch{}rt.documentElement.doScroll&&r&&t()}w.register_event(Ee,"load",e,!0)};function r5(e){return kT=e,ay=TT,nr=new V,e5(),nr.init(),t5(),nr}function n5(e,t){t()}var Xn=r5(n5);const RT={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]}};let d0=!1;const o5=Object.keys(RT);function s5(e,t={}){window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:t})}const sc=mt.withTag("mixpanel"),p0=[];let h0=!1;function i5(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(p0.includes(t.ntp_placement_name))return!1;p0.push(t.ntp_placement_name)}if(e==="NtpPage_Viewed"){if(h0)return!1;h0=!0}return!0}const $p=new Map;async function LT(){var s;if($p.has("metadata"))return $p.get("metadata");const{client:e}=await ti(),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(o5.map(async i=>{try{const a=RT[i];return{[i]:await t(i,a.defaultValue)}}catch(a){return sc.warn(`Failed retrieving feature flag '${i}':`,a),{}}}))).reduce((i,a)=>Object.assign(i,a),{}),...ro.getContext(),...((s=e.apiContextAccessor)==null?void 0:s.call(e))??{},splittestname:e.getStringValue("splittestname","control")};return $p.set("metadata",o),o}async function a5(){var o;if(d0)return Xn;const e=it();if(!e.public.mixpanelToken)throw new Error("Mixpanel token is not defined in the runtime config.");Xn.init(e.public.mixpanelToken,{api_host:e.public.mixpanelApiHost}),sc.info("Mixpanel SDK initialized");const t=await LT();sc.info("Mixpanel metadata:",t),Xn.register(t);const r=t!=null&&t.cohort?String(t.cohort):"",n=t!=null&&t.targetingKey?String(t.targetingKey):"";return r&&n&&(Xn.identify(t.targetingKey),Xn.people.set_once?Xn.people.set_once({cohort:r}):(o=Xn.people)==null||o.set({cohort:r})),d0=!0,Xn}function l5(e,t){return a5().then(()=>{Xn.track(e,t)}).catch(()=>{sc.error("Failed to send event to Mixpanel. The Mixpanel SDK is not initialized.")})}async function PT(e,t){var u,f;if(sc.info(`Sending Mixpanel event: ${e}`,t),!i5(e,t))return;const r=await LT(),n={...t,split_test_data:r};s5(e,n);const{shift:o,chrome:s,onelaunch:i}=Hk.getHostApis(),a=(u=o==null?void 0:o.analytics)==null?void 0:u.track;if(a){a(e,n);return}const l=i==null?void 0:i.sendEvent;if(l){l(e,n);return}const c=(f=s==null?void 0:s.runtime)==null?void 0:f.sendEvent;if(c){c(e,n);return}try{await l5(e,t)}catch{}}async function NT(e,t={}){const r=Cd(),{data:n}=yc(r);return{...await DT(n,e),...t}}function c5(e=300){const t=ue({article:0,video:0});let r=null;function n(o){r&&clearTimeout(r),t.value[o]+=1,r=setTimeout(async()=>{const s=await NT("NtpNewsTile_Rendered",{article_tiles_rendered_count:t.value.article,video_tiles_rendered_count:t.value.video});PT("NtpNewsTile_Rendered",s),t.value={article:0,video:0},r=null},e)}return n}const u5=c5(),Ws=()=>{async function e(t,r){if(!x5(t,r))return;const{client:n}=await ti();if(n.track(t,r),t==="NtpNewsTile_Rendered"&&r&&k5(r))u5(r.ntp_content_type);else{const o=await NT(t,r);try{await PT(t,o)}catch{}}}return{track:e,sendMixpanelEvent:e}},f5=pd(()=>{var i,a;const e=Cd(),{data:t}=yc(e),r=Gk(),n=kx("app:userSelectedTheme",!1);n.value||(r.preference=((i=t.value.userSettings)==null?void 0:i.defaultSettings.theme)??"system");const o=J(()=>r.preference==="system"&&r.value==="light"?"auto-light":r.preference==="system"&&r.value==="dark"?"auto-dark":r.preference),s=l=>{const{track:c}=Ws();n.value=!0,r.preference=l,document.documentElement.className=`${r.value} bg-background-default dark:bg-background-neutral-subtle`,c("NtpSetting_Changed",{setting_name:"ntp_theme",setting_value:o.value}),Sf("ntp_theme",o.value)};return r.preference=(n?r.preference:(a=t.value.userSettings)==null?void 0:a.defaultSettings.theme)??"system",{theme:r,updateTheme:s,mixpanelPropertyName:o}}),d5=pd(e=>{const t=kx("app:userSettings",{articleSummary:{isEnabled:!0,showSettingsToggle:!1,isUserSelected:!1}}),r=J(()=>e==null?void 0:e.value.userSettings);Oe(()=>r.value,o=>{o&&(t.value.articleSummary.isUserSelected||(t.value.articleSummary.isEnabled=o.defaultSettings.articleSummary),t.value.articleSummary.showSettingsToggle=o.enabledSettings.articleSummary)},{immediate:!0});const n=o=>{const{track:s}=Ws();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:n}}),p5=mt.withTag("composables:useAssertiveYield");function h5(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 r=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=r.value!==h;e!=null&&e.onAdFulfilled}catch(p){p5.error(p)}});const n=sD();Oe(n,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 g5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomImpression=="function"&&window.assertive.logCustomImpression(e)}))},m5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomClick=="function"&&window.assertive.logCustomClick(e)}))},Au=mt.withTag("analytics:helper");function y5(e){if(e==null)return null;const r=e.match("([0-9]{1}_[0-9]{4}_[0-9]{3}_[0-9]{4}_[0-9]{3}(_[0-9]{3})?_[0-9]{6})");return r!=null?r[0]:null}async function MT(){const e="0_1000_100_1000_100_691231";try{const t=await Hk.getConfig();if(t!=null&&t.type_tag)return t.type_tag;const r=(t==null?void 0:t.search_url)||null,n=y5(r);if(n)return n;const s=new URL(location.href).searchParams.get("type")||"0_1000_100_1000_100_691231";return s||e}catch(t){return Au.error(`Error getting type tag: ${t}`),e}}function _5(){const e=Qs();return e.path.includes("/v8/article/")?"/v8/article":e.path.includes("/article/")?"/article":e.path.includes("/video/")?"/video":e.path}function v5({fullUrl:e=!1}={}){return e?window.location.href:"https://"+window.location.hostname+window.location.pathname}function b5(){const e=p4(),{newsToggle:t}=yc(e);return t.value?"on":"off"}function w5(){return f5().mixpanelPropertyName.value}function Pd(){return Op==null?void 0:Op.version}function S5(){const t=Pd().split(".").map(s=>parseInt(s,10));if(t.length!==3||t.some(isNaN))return;const[r,n,o]=t;return r*1e6+n*1e3+o}function uy(){const e=window.location.pathname;return e.includes("article")?"article":e.includes("summary")?"summary":e.includes("video")?"video":"homepage"}const E5=async e=>{e.value&&await new Promise(t=>{const r=Oe(e,n=>{n||(r(),t(!0))})})},DT=async(e,t)=>{const{articleSummary:r}=d5(e),n=Qs(),o=a4(),{data:s,isLoading:i}=yc(o),{ayData:a}=await h5();await E5(i);const l={ntp_type_tag:await MT(),ntp_window_active:window.isPageVisible||document.visibilityState==="visible",ntp_url:v5(),ntp_app_version:Pd(),ntp_app_version_number:S5(),ntp_layout:_5(),ntp_page_type:uy(),ntp_assertive_data:a??void 0,ntp_news_content_toggle:b5(),ntp_is_user_idle:window.isUserIdle??!1,ntp_user_settings:{theme:w5(),ai_news_summary:{...r}}};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}=n4();l.browser_window_size=u,l.browser_window_height=f,l.browser_window_width=d,["/","/v8","/v8/"].includes(n.path)&&(l.column_count=p)}if(["/","/v8","/v8/"].includes(n.path)&&(l.ntp_layout_skeleton=Me(s.value)),["/","/v8","/v8/"].includes(n.path)&&(t==="NtpPage_Viewed"||t==="NtpMoreNews_Loaded"))try{const{client:u}=await ti();if(!u)throw new Error("OpenFeature client is not available");if(!u.getBooleanValue("ntp_visible_content_enabled",!1))return l;const p=u4(!0);if(p.length===0)return Au.warn(`[visibleContent] No content found in registry for ${t}; sending event without visibleContent`),l;const g=l.column_count;if(!g||g<=0)return Au.warn(`[visibleContent] column_count missing/invalid (${g}) for ${t}; sending event without visibleContent`),l;l.visibleContent=f4(p,g),t==="NtpMoreNews_Loaded"&&d4()}catch(u){Au.warn("Failed to check visible content feature flag",u)}return l},g0=[];function x5(e,t){if(((n,o)=>!!(n==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(g0.includes(t.ntp_placement_name))return!1;g0.push(t.ntp_placement_name)}return!0}function k5(e){return e.ntp_content_type==="article"||e.ntp_content_type==="video"}const T5=Je(e=>{const t=it(),r=Pd(),n=t.public.buildVersion||r;try{"nocache"in e._route.query&&(mt.log("Clearing all storage due to no-cache query param"),gs.clear());const o=gs.getItem("app:buildVersion");n!==o&&(["app:config:adSettings","app:config:layoutSettings","app:config:layoutSkeleton","app:config:siteSettings","app:buildVersion"].forEach(i=>{gs.removeItem(i)}),gs.setItem("app:buildVersion",`${n}`))}catch{}e.provide("buildVersion",n),e.provide("storage",gs)}),m0=mt.withTag("plugins:filters"),$T=R.object({userAgent:R.string().nullable(),country:R.string(),isMobile:R.boolean().default(!1)}),y0=$T.parse({country:"US",userAgent:null,isMobile:!1}),C5=Je(async e=>{var n;let t,r;try{const o="/api/v2/filters",s=([t,r]=Xt(()=>$fetch(o)),t=await t,r(),t),i={...s,isMobile:((n=s.userAgent)==null?void 0:n.includes("Mobile"))||!1},a=$T.safeParse(i);if(!a.success){m0.warn("Invalid user filtering data:",a.error),e.provide("filters",y0);return}e.provide("filters",a.data)}catch(o){m0.warn("Error fetching user filtering data:",o),e.provide("filters",y0)}}),A5=Je({name:"openfeature",setup:async e=>{let t,r;const{loaded:n,client:o}=([t,r]=Xt(()=>ti()),t=await t,r(),t);e.provide("openfeatureLoaded",n),e.provide("openfeature",o)}});function FT(){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 _0=mt.withTag("utils:loadScriptAsync"),iu=new Map;function _l(e,t,r={}){const n=t.src||t.key;if(!n)throw new Error("Script key or src is required");const o=t.src,s=t.textContent;return iu.has(n)||iu.set(n,new Promise((i,a)=>{if(typeof document>"u")return typeof Ms=="function"&&e==="head"?Ms({script:[{...o?{src:o}:{},...s?{textContent:s}:{},type:"text/javascript",async:!0,onload:()=>{i()},onerror:()=>{a(new Error(`Failed to load script: ${n}`))},...r,...t.key?{key:t.key}:{}}]}):(_0.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{_0.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: ${n}`)),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: ${n}`))},e==="head"?document.head.appendChild(l):document.body.appendChild(l)})),iu.get(n)}const v0=mt.withTag("utils:scriptLoadAY");async function I5(e,t,r,n,o){const{isDevMode:s,devDisableAds:i,devAYTestEntityId:a}=it().public;if(s&&i)return v0.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:r,userState:null,custom_1:t.type_tag,custom_2:t.ntp_app_version,custom_3:t.host_browser_app_version,custom_4:FT(),custom_5:n,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 _l("head",{src:`https://${l}.ay.delivery/manager/${l}`})}catch(f){return v0.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=n,window.assertive.analytics.custom.custom_6=o)}),{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0}}function O5(e=hm){return fE(e,{asyncContext:!1})}function R5(e){var r;let t;return da()&&(t=(r=er())==null?void 0:r.appContext.app.$nuxt),t||(t=O5(e).tryUse()),t||null}function L5(e){const t=R5(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function P5(){const e=L5();return e._appConfig||(e._appConfig=Jt(Dr)),e._appConfig}const $a={SM:480,MD:600,LG:767,XL:1024},di=mt.withTag("useTaboolaAds"),N5=pd(()=>{var l,c;const e=jn().taboola.publisherName,{$assertive:t}=Ae(),r=((c=(l=t==null?void 0:t.analytics)==null?void 0:l.custom)==null?void 0:c.custom_1)||"",n=uy()==="homepage"?_l("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ homepage:'auto', custom_tracking:'sub_id=${r}' }); !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:()=>di.debug("Taboola script loaded."),onerror:()=>di.error("Taboola script failed to load.")}):_l("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ article:'auto', custom_tracking:'sub_id=${r}' }); !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:()=>di.debug("Taboola script loaded."),onerror:()=>di.error("Taboola script failed to load.")}),o=_l("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:()=>di.debug("Taboola body script loaded."),onerror:()=>di.error("Taboola body script failed to load.")});return{triggerTaboolaRenderedEvent:async(u,f,d,p)=>{await n,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 n,await o,window._taboola=window._taboola||[],window._taboola.push({notify:"newPageLoad"}),window._taboola.push({flush:!0})}}}),au=mt.withTag("useAdFunctions"),M5=()=>{const{track:e}=Ws(),{callRenderResearchWidgets:t}=fy(),{callRenderTaboolaWidgets:r}=N5(),n=(f,d)=>{m5(d),e("NtpAd_Clicked",f)},o=(f,d)=>{g5(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&&b0(f);const m=g();m instanceof Promise&&m.catch(b=>{au.error("Error in async callback for non-lazy render",b)});return}const y=xx(f,{threshold:1/100});YM(y,()=>{h&&clearTimeout(h),y.value&&(h=setTimeout(()=>{p&&b0(f);const m=g();m instanceof Promise&&m.catch(b=>{au.error("Error in async callback for element visibility",b)})},1))})}catch(y){h&&clearTimeout(h),au.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(),r()}catch(f){au.error("Error triggering ad renders on breakpoint change",f)}},{width:a}=Tx(),l=ue("MD"),c=J(()=>a.value<=$a.LG),u=J(()=>a.value>=$a.XL);return Oe(a,f=>{let d=l.value;f>=$a.LG?d="LG":f>=$a.MD?d="MD":f>=$a.SM?d="SM":d="XS",d!==l.value&&(l.value=d,i())}),{adClicked:n,adRendered:o,renderWhenCurrentElementIsVisible:s,triggerAdRenders:i,isMobile:c,isXLDesktop:u}},D5=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 r=mt.withTag("Outbrain:DXT-1780"),n=e;if(!n.placement||!n.widgetId)throw new Error(`Outbrain component requires placement and widgetId props- ${n.placement}`);const{outbrain:o}=P5(),{adClicked:s,renderWhenCurrentElementIsVisible:i}=M5(),{track:a}=Ws(),{callRenderResearchWidgets:l,triggerOutbrainRenderedEvent:c,generateExternalSecondaryId:u}=fy(),f=ue(n.placement),d=kI("widgetWrapperEl"),p=ue(""),g=ue(!1),h=ue({"data-ob-portalUrl":"","data-ob-language":"en","data-widget-id":n.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"]=FT(),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:n.tilePosition,ntp_ad_provider:"outbrain",ntp_creative_id:n.widgetId,ntp_placement_name:n.placement,ntp_ad_brand:p.value}}function b(){s(m(),n.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 Gr();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){r.debug("[handleOutbrainRenderedEvent] Already tracked render - skipping",{placement:n.placement,widgetId:n.widgetId});return}const U=O==null?void 0:O.classList.contains(n.placement),L={placement:n.placement,placementClassName:f.value,widgetId:n.widgetId,hasElement:!!I,hasParentElement:!!O,parentElementTag:O==null?void 0:O.tagName,parentElementClasses:O?Array.from(O.classList):[],expectedClass:n.placement,hasExpectedClass:U,hasTrackedRender:g.value,widgetWrapperRefExists:!!d.value,widgetWrapperRefClasses:d.value?Array.from(d.value.classList):[],timestamp:Date.now()};if(r.debug("[handleOutbrainRenderedEvent] Render event fired",L),!O){let ce=0;if(I){let q=I;for(;q.parentElement&&ce<3;)q=q.parentElement,ce++}r.warn("[handleOutbrainRenderedEvent] No parent element - DOM not ready?",{placement:n.placement,hasElement:!!I,elementParentCount:ce});return}if(!U){r.warn("[handleOutbrainRenderedEvent] Class mismatch - event may be lost",{placement:n.placement,expectedClass:n.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,r.debug("[handleOutbrainRenderedEvent] Processing render - tracking event",{placement:n.placement,widgetId:n.widgetId}),_(N.element);const ce=await new Promise(re=>{const ne=y(I);if(ne)return re(ne);let Se=null;const lt=new MutationObserver(()=>{const We=y(I);We&&(be(),re(We))}),be=()=>{lt.disconnect(),Se!==null&&clearTimeout(Se)};lt.observe(I,{childList:!0,subtree:!0}),Se=setTimeout(()=>{be(),re(y(I))},1e3)});p.value=ce;const q=m();q.ntp_ad_brand||r.error("[handleOutbrainRenderedEvent] adBrand is still empty after MutationObserver timeout",{placement:n.placement,widgetId:n.widgetId,innerHTML:I==null?void 0:I.innerHTML.substring(0,500)}),a("NtpAd_Rendered",q),r.debug("[handleOutbrainRenderedEvent] Tracking NtpAd_Rendered",q)}}const E=ue(!1);async function x(){var I,O;if(E.value=!0,await Gr(),!d.value||(I=d.value)!=null&&I.getAttribute("data-render-registered")){r.debug("[renderOutbrainAd] Early return",{placement:n.placement,hasWrapper:!!d.value,isAlreadyRegistered:(O=d.value)==null?void 0:O.getAttribute("data-render-registered")});return}const N=j5(n.placement,d.value);f.value=N>0?`${n.placement} ${n.placement}-${N}`:n.placement,d.value.setAttribute("data-render-registered","true");try{await l(),await c(n.widgetId,S),r.debug("[renderOutbrainAd] Triggering Outbrain rendered event",{widgetId:n.widgetId,placement:n.placement})}catch(U){const L=U instanceof Error?U.message:"Unknown error",G={...m(),ntp_error_message:L};a("NtpAd_Render_Failed",G),r.error("[renderOutbrainAd] Error rendering Outbrain ad",{placement:n.placement,widgetId:n.widgetId,error:U})}}return Or(()=>{r.debug("[onMounted] Outbrain component mounted",{placement:n.placement,widgetId:n.widgetId,lazyRender:n.lazyRender,sticky:n.sticky,tilePosition:n.tilePosition,adInstanceId:n.adInstanceId}),i(d.value,n.lazyRender,n.sticky,x)}),Xs(()=>{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",ir({key:0,class:["OUTBRAIN",f.value]},h.value),null,16)):Zt("",!0)],2))}}),Fa=mt.withTag("useOutbrainAds"),fy=pd(()=>{const e=()=>_l("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:()=>Fa.debug("Outbrain script loaded."),onerror:()=>Fa.error("Outbrain script failed to load.")}),t=async()=>{if(await e(),!window.OBR||!window.OBR.extern||typeof window.OBR.extern.researchWidget!="function"){Fa.warn("Outbrain research widget function not available after script load");return}window.OBR.extern.researchWidget()},r=async(s,i)=>{const a=U5(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=Ct(D5,{...a,placement:l});u.appContext=c._context,tR(u,i),await t()}catch(c){Fa.error(`[Native-Fallback]: Error rendering fallback Outbrain ad component ${s}`,c)}},n=async(s,i)=>{await e(),window.OBREvents||(window.OBREvents=[],Fa.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:n,renderFallbackOutbrainAd:r,generateExternalSecondaryId:o}}),ic=mt.withTag("adFunctions");function UT(e){return e.replace(/__ayManagerEnv__.+$/,"")}function $5(e,t){const{track:r}=Ws();r("NtpAd_Rendered",{ntp_ad_brand:"programmatic",ntp_ad_provider:"programmatic",ntp_creative_id:t,ntp_placement_name:e,ntp_ad_refresh:!1})}function F5(e){var o;const t=e.slot.getSlotElementId(),r=(o=document.getElementById(t))==null?void 0:o.parentElement,n=UT(t);if(!r){ic.error("Element not found for native ad fallback",n);return}if(e.isEmpty)try{const{renderFallbackOutbrainAd:s}=fy();window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.destroy([t],{useInstanceCodes:!0})}),s(n,r);return}catch(s){ic.error("[Native-Fallback]: Error on Gtag slotRenderEnded listener for native ad fallback",s)}$5(n,e.slot.getAdUnitPath())}function U5(e){var r,n;const t=(r=jn().adops)==null?void 0:r.placements;if(!t){ic.error("No outbrain widgets found");return}if(!t||!((n=t[e])!=null&&n.outbrain)){mt.error("No outbrain widget found for: ",e);return}return{...t[e].outbrain,fallback:!0,placement:e}}function j5(e,t){if(!t||!e)return ic.error("Element is null for placement:",e),0;const r=Array.from(document.querySelectorAll(`.${e}`)).filter(n=>n.hasAttribute("ad"));if(r.length>1&&t){const n=Array.from(r).findIndex(o=>o===t);if(n!==-1)return n}return 0}function b0(e,t=3e3){if(!e){ic.error("No element to handle sticky ad");return}e.classList.add("sticky"),e.classList.add("top-0"),e.classList.add("z-[1000]");let r;window.addEventListener("scroll",()=>{e.classList.contains("sticky")||clearTimeout(r),r=setTimeout(()=>{e.classList.remove("sticky"),e.classList.remove("top-0"),e.classList.remove("z-[1000]")},t)})}const w0=mt.withTag("plugins/assertive.client"),B5=Je({name:"assertive",dependsOn:["openfeature"],setup:async e=>{let t,r;const{client:n}=([t,r]=Xt(()=>ti()),t=await t,r(),t),{track:o}=Ws(),{ayEntityId:s}=it().public,i=n.getStringValue("splittestname","control"),a=n.getStringValue("layoutSkeleton","default"),l={ntp_app_version:Pd(),host_browser_app_version:([t,r]=Xt(()=>ck()),t=await t,r(),t),type_tag:([t,r]=Xt(()=>MT()),t=await t,r(),t)},c=ro.getContext(),u=([t,r]=Xt(()=>I5(s,l,i,a,typeof c.cohort=="string"?c.cohort:null)),t=await t,r(),t);if(!u.loading){w0.error("Assertive Yield SDK failed to load");return}w0.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:UT(d),ntp_ad_brand:"",ntp_ad_clickurl:"",ntp_ad_refresh:!0};o("NtpAd_Rendered",p)})})}),window.analytics||(window.analytics=Ws()),e.provide("ayLoaded",u),e.provide("assertive",window.assertive)}}),H5=Je(e=>{e.vueApp.directive("click-outside",{beforeMount:(t,{value:r})=>{t.clickOutsideEvent=n=>{t===n.target||t.contains(n.target)||r()},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:jT,setPrototypeOf:S0,isFrozen:V5,getPrototypeOf:W5,getOwnPropertyDescriptor:z5}=Object;let{freeze:wr,seal:Kr,create:BT}=Object,{apply:Lg,construct:Pg}=typeof Reflect<"u"&&Reflect;wr||(wr=function(t){return t});Kr||(Kr=function(t){return t});Lg||(Lg=function(t,r,n){return t.apply(r,n)});Pg||(Pg=function(t,r){return new t(...r)});const lu=$r(Array.prototype.forEach),E0=$r(Array.prototype.pop),Ua=$r(Array.prototype.push),Iu=$r(String.prototype.toLowerCase),Fp=$r(String.prototype.toString),x0=$r(String.prototype.match),ja=$r(String.prototype.replace),G5=$r(String.prototype.indexOf),q5=$r(String.prototype.trim),Jr=$r(Object.prototype.hasOwnProperty),fr=$r(RegExp.prototype.test),Ba=K5(TypeError);function $r(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Iu;S0&&S0(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const s=r(o);s!==o&&(V5(t)||(t[n]=s),o=s)}e[o]=!0}return e}function Y5(e){for(let t=0;t/gm),eW=Kr(/\${[\w\W]*}/gm),tW=Kr(/^data-[\-\w.\u00B7-\uFFFF]/),rW=Kr(/^aria-[\-\w]+$/),HT=Kr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nW=Kr(/^(?:\w+script|data):/i),oW=Kr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),VT=Kr(/^html$/i),sW=Kr(/^[a-z][.\w]*(-[.\w]+)+$/i);var I0=Object.freeze({__proto__:null,ARIA_ATTR:rW,ATTR_WHITESPACE:oW,CUSTOM_ELEMENT:sW,DATA_ATTR:tW,DOCTYPE_NAME:VT,ERB_EXPR:Q5,IS_ALLOWED_URI:HT,IS_SCRIPT_OR_DATA:nW,MUSTACHE_EXPR:J5,TMPLIT_EXPR:eW});const Va={element:1,text:3,progressingInstruction:7,comment:8,document:9},iW=function(){return typeof window>"u"?null:window},aW=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const s="dompurify"+(n?"#"+n:"");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}},O0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function WT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iW();const t=ge=>WT(ge);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==Va.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.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=Ha(g,"cloneNode"),y=Ha(g,"remove"),m=Ha(g,"nextSibling"),b=Ha(g,"childNodes"),_=Ha(g,"parentNode");if(typeof i=="function"){const ge=r.createElement("template");ge.content&&ge.content.ownerDocument&&(r=ge.content.ownerDocument)}let v,S="";const{implementation:E,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:I}=r,{importNode:O}=n;let U=O0();t.isSupported=typeof jT=="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:re,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Se}=I0;let{IS_ALLOWED_URI:lt}=I0,be=null;const We=Ne({},[...k0,...Up,...jp,...Bp,...T0]);let je=null;const tr=Ne({},[...C0,...Hp,...A0,...cu]);let ze=Object.seal(BT(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}})),pt=null,W=null,Q=!0,X=!0,ie=!1,te=!0,we=!1,T=!0,A=!1,$=!1,B=!1,H=!1,k=!1,C=!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 ht=null;const Tt=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",cr="http://www.w3.org/1999/xhtml";let Bn=cr,qt=!1,Sr=null;const Ic=Ne({},[Gt,Ht,cr],Fp);let Oc=Ne({},["mi","mo","mn","ms","mtext"]),Rc=Ne({},["annotation-xml"]);const SA=Ne({},["title","style","font","a","script"]);let ba=null;const EA=["application/xhtml+xml","text/html"],xA="text/html";let Vt=null,si=null;const kA=r.createElement("form"),Dy=function(M){return M instanceof RegExp||M instanceof Function},Vd=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(si&&si===M)){if((!M||typeof M!="object")&&(M={}),M=ps(M),ba=EA.indexOf(M.PARSER_MEDIA_TYPE)===-1?xA:M.PARSER_MEDIA_TYPE,Vt=ba==="application/xhtml+xml"?Fp:Iu,be=Jr(M,"ALLOWED_TAGS")?Ne({},M.ALLOWED_TAGS,Vt):We,je=Jr(M,"ALLOWED_ATTR")?Ne({},M.ALLOWED_ATTR,Vt):tr,Sr=Jr(M,"ALLOWED_NAMESPACES")?Ne({},M.ALLOWED_NAMESPACES,Fp):Ic,ht=Jr(M,"ADD_URI_SAFE_ATTR")?Ne(ps(Tt),M.ADD_URI_SAFE_ATTR,Vt):Tt,Le=Jr(M,"ADD_DATA_URI_TAGS")?Ne(ps(Pe),M.ADD_DATA_URI_TAGS,Vt):Pe,ee=Jr(M,"FORBID_CONTENTS")?Ne({},M.FORBID_CONTENTS,Vt):de,pt=Jr(M,"FORBID_TAGS")?Ne({},M.FORBID_TAGS,Vt):{},W=Jr(M,"FORBID_ATTR")?Ne({},M.FORBID_ATTR,Vt):{},F=Jr(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,T=M.SAFE_FOR_XML!==!1,A=M.WHOLE_DOCUMENT||!1,H=M.RETURN_DOM||!1,k=M.RETURN_DOM_FRAGMENT||!1,C=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||HT,Bn=M.NAMESPACE||cr,Oc=M.MATHML_TEXT_INTEGRATION_POINTS||Oc,Rc=M.HTML_INTEGRATION_POINTS||Rc,ze=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&Dy(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&Dy(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({},T0),je=[],F.html===!0&&(Ne(be,k0),Ne(je,C0)),F.svg===!0&&(Ne(be,Up),Ne(je,Hp),Ne(je,cu)),F.svgFilters===!0&&(Ne(be,jp),Ne(je,Hp),Ne(je,cu)),F.mathMl===!0&&(Ne(be,Bp),Ne(je,A0),Ne(je,cu))),M.ADD_TAGS&&(be===We&&(be=ps(be)),Ne(be,M.ADD_TAGS,Vt)),M.ADD_ATTR&&(je===tr&&(je=ps(je)),Ne(je,M.ADD_ATTR,Vt)),M.ADD_URI_SAFE_ATTR&&Ne(ht,M.ADD_URI_SAFE_ATTR,Vt),M.FORBID_CONTENTS&&(ee===de&&(ee=ps(ee)),Ne(ee,M.FORBID_CONTENTS,Vt)),K&&(be["#text"]=!0),A&&Ne(be,["html","head","body"]),be.table&&(Ne(be,["tbody"]),delete pt.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ba('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ba('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=aW(p,o)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));wr&&wr(M),si=M}},$y=Ne({},[...Up,...jp,...Z5]),Fy=Ne({},[...Bp,...X5]),TA=function(M){let Z=_(M);(!Z||!Z.tagName)&&(Z={namespaceURI:Bn,tagName:"template"});const fe=Iu(M.tagName),gt=Iu(Z.tagName);return Sr[M.namespaceURI]?M.namespaceURI===Ht?Z.namespaceURI===cr?fe==="svg":Z.namespaceURI===Gt?fe==="svg"&&(gt==="annotation-xml"||Oc[gt]):!!$y[fe]:M.namespaceURI===Gt?Z.namespaceURI===cr?fe==="math":Z.namespaceURI===Ht?fe==="math"&&Rc[gt]:!!Fy[fe]:M.namespaceURI===cr?Z.namespaceURI===Ht&&!Rc[gt]||Z.namespaceURI===Gt&&!Oc[gt]?!1:!Fy[fe]&&(SA[fe]||!$y[fe]):!!(ba==="application/xhtml+xml"&&Sr[M.namespaceURI]):!1},wn=function(M){Ua(t.removed,{element:M});try{_(M).removeChild(M)}catch{y(M)}},Lc=function(M,Z){try{Ua(t.removed,{attribute:Z.getAttributeNode(M),from:Z})}catch{Ua(t.removed,{attribute:null,from:Z})}if(Z.removeAttribute(M),M==="is")if(H||k)try{wn(Z)}catch{}else try{Z.setAttribute(M,"")}catch{}},Uy=function(M){let Z=null,fe=null;if(B)M=""+M;else{const Kt=x0(M,/^[\r\n\t ]+/);fe=Kt&&Kt[0]}ba==="application/xhtml+xml"&&Bn===cr&&(M=''+M+"");const gt=v?v.createHTML(M):M;if(Bn===cr)try{Z=new d().parseFromString(gt,ba)}catch{}if(!Z||!Z.documentElement){Z=E.createDocument(Bn,"template",null);try{Z.documentElement.innerHTML=qt?S:gt}catch{}}const rr=Z.body||Z.documentElement;return M&&fe&&rr.insertBefore(r.createTextNode(fe),rr.childNodes[0]||null),Bn===cr?I.call(Z,A?"html":"body")[0]:A?Z.documentElement:rr},jy=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)},By=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")},Hy=function(M){return typeof a=="function"&&M instanceof a};function Hn(ge,M,Z){lu(ge,fe=>{fe.call(t,M,Z,si)})}const Vy=function(M){let Z=null;if(Hn(U.beforeSanitizeElements,M,null),By(M))return wn(M),!0;const fe=Vt(M.nodeName);if(Hn(U.uponSanitizeElement,M,{tagName:fe,allowedTags:be}),M.hasChildNodes()&&!Hy(M.firstElementChild)&&fr(/<[/\w]/g,M.innerHTML)&&fr(/<[/\w]/g,M.textContent)||M.nodeType===Va.progressingInstruction||T&&M.nodeType===Va.comment&&fr(/<[/\w]/g,M.data))return wn(M),!0;if(!be[fe]||pt[fe]){if(!pt[fe]&&zy(fe)&&(ze.tagNameCheck instanceof RegExp&&fr(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe)))return!1;if(K&&!ee[fe]){const gt=_(M)||M.parentNode,rr=b(M)||M.childNodes;if(rr&>){const Kt=rr.length;for(let Er=Kt-1;Er>=0;--Er){const Sn=h(rr[Er],!0);Sn.__removalCount=(M.__removalCount||0)+1,gt.insertBefore(Sn,m(M))}}}return wn(M),!0}return M instanceof l&&!TA(M)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&fr(/<\/no(script|embed|frames)/i,M.innerHTML)?(wn(M),!0):(we&&M.nodeType===Va.text&&(Z=M.textContent,lu([L,G,oe],gt=>{Z=ja(Z,gt," ")}),M.textContent!==Z&&(Ua(t.removed,{element:M.cloneNode()}),M.textContent=Z)),Hn(U.afterSanitizeElements,M,null),!1)},Wy=function(M,Z,fe){if(D&&(Z==="id"||Z==="name")&&(fe in r||fe in kA))return!1;if(!(X&&!W[Z]&&fr(ce,Z))){if(!(Q&&fr(q,Z))){if(!je[Z]||W[Z]){if(!(zy(M)&&(ze.tagNameCheck instanceof RegExp&&fr(ze.tagNameCheck,M)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(M))&&(ze.attributeNameCheck instanceof RegExp&&fr(ze.attributeNameCheck,Z)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(Z))||Z==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&fr(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe))))return!1}else if(!ht[Z]){if(!fr(lt,ja(fe,ne,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&M!=="script"&&G5(fe,"data:")===0&&Le[M])){if(!(ie&&!fr(re,ja(fe,ne,"")))){if(fe)return!1}}}}}}return!0},zy=function(M){return M!=="annotation-xml"&&x0(M,Se)},Gy=function(M){Hn(U.beforeSanitizeAttributes,M,null);const{attributes:Z}=M;if(!Z)return;const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let gt=Z.length;for(;gt--;){const rr=Z[gt],{name:Kt,namespaceURI:Er,value:Sn}=rr,wa=Vt(Kt);let ur=Kt==="value"?Sn:q5(Sn);if(fe.attrName=wa,fe.attrValue=ur,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Hn(U.uponSanitizeAttribute,M,fe),ur=fe.attrValue,j&&(wa==="id"||wa==="name")&&(Lc(Kt,M),ur=z+ur),T&&fr(/((--!?|])>)|<\/(style|title)/i,ur)){Lc(Kt,M);continue}if(fe.forceKeepAttr||(Lc(Kt,M),!fe.keepAttr))continue;if(!te&&fr(/\/>/i,ur)){Lc(Kt,M);continue}we&&lu([L,G,oe],Ky=>{ur=ja(ur,Ky," ")});const qy=Vt(M.nodeName);if(Wy(qy,wa,ur)){if(v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Er)switch(p.getAttributeType(qy,wa)){case"TrustedHTML":{ur=v.createHTML(ur);break}case"TrustedScriptURL":{ur=v.createScriptURL(ur);break}}try{Er?M.setAttributeNS(Er,Kt,ur):M.setAttribute(Kt,ur),By(M)?wn(M):E0(t.removed)}catch{}}}Hn(U.afterSanitizeAttributes,M,null)},CA=function ge(M){let Z=null;const fe=jy(M);for(Hn(U.beforeSanitizeShadowDOM,M,null);Z=fe.nextNode();)Hn(U.uponSanitizeShadowNode,Z,null),!Vy(Z)&&(Z.content instanceof s&&ge(Z.content),Gy(Z));Hn(U.afterSanitizeShadowDOM,M,null)};return t.sanitize=function(ge){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,fe=null,gt=null,rr=null;if(qt=!ge,qt&&(ge=""),typeof ge!="string"&&!Hy(ge))if(typeof ge.toString=="function"){if(ge=ge.toString(),typeof ge!="string")throw Ba("dirty is not a string, aborting")}else throw Ba("toString is not a function");if(!t.isSupported)return ge;if($||Vd(M),t.removed=[],typeof ge=="string"&&(P=!1),P){if(ge.nodeName){const Sn=Vt(ge.nodeName);if(!be[Sn]||pt[Sn])throw Ba("root node is forbidden and cannot be sanitized in-place")}}else if(ge instanceof a)Z=Uy(""),fe=Z.ownerDocument.importNode(ge,!0),fe.nodeType===Va.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Z=fe:Z.appendChild(fe);else{if(!H&&!we&&!A&&ge.indexOf("<")===-1)return v&&C?v.createHTML(ge):ge;if(Z=Uy(ge),!Z)return H?null:C?S:""}Z&&B&&wn(Z.firstChild);const Kt=jy(P?ge:Z);for(;gt=Kt.nextNode();)Vy(gt)||(gt.content instanceof s&&CA(gt.content),Gy(gt));if(P)return ge;if(H){if(k)for(rr=N.call(Z.ownerDocument);Z.firstChild;)rr.appendChild(Z.firstChild);else rr=Z;return(je.shadowroot||je.shadowrootmode)&&(rr=O.call(n,rr,!0)),rr}let Er=A?Z.outerHTML:Z.innerHTML;return A&&be["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&fr(VT,Z.ownerDocument.doctype.name)&&(Er=" `+Er),we&&lu([L,G,oe],Sn=>{Er=ja(Er,Sn," ")}),v&&C?v.createHTML(Er):Er},t.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vd(ge),$=!0},t.clearConfig=function(){si=null,$=!1},t.isValidAttribute=function(ge,M,Z){si||Vd({});const fe=Vt(ge),gt=Vt(M);return Wy(fe,gt,Z)},t.addHook=function(ge,M){typeof M=="function"&&Ua(U[ge],M)},t.removeHook=function(ge){return E0(U[ge])},t.removeHooks=function(ge){U[ge]=[]},t.removeAllHooks=function(){U=O0()},t}var lW=WT();function cW(e,t){const r=e.hooks??{};let n;for(n in r){const o=r[n];o!==void 0&&t.addHook(n,o)}}function zT(){return lW()}function uW(e={},t=zT){const r=t();cW(e,r);const n=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=r.sanitize(a,c[l]??u);return}o.innerHTML=r.sanitize(a,u)};return{mounted:n,updated:n}}const fW={install(e,t={},r=zT){e.directive("dompurify-html",uW(t,r))}},dW=Je(e=>{e.vueApp.use(fW)});function pW(e){window[`ga-disable-${e}`]=!0}function hW(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function gW(){const e=it().public.gtag,t=XE(e);let r;r=Su;const n=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}=n(a);if(!l)return;window.dataLayer||ZE({tags:c}),document.head.querySelector("script[data-gtag]")||Ms({script:[{src:Rl(e.url,{id:l.id}),"data-gtag":""}]})}};function s(a){{const{tag:l}=n(a);l&&pW(l.id)}}function i(a){{const{tag:l}=n(a);l&&hW(l.id)}}return{gtag:r,initialize:o,disableAnalytics:s,enableAnalytics:i}}const Vp=mt.withTag("plugins:google-tag-manager"),mW=Je(async e=>{let t,r;const{googleTagManagerId:n,redesignedNtpPaths:o}=jn(),{gtag:s,initialize:i}=gW(),a=Qs(),{client:l}=([t,r]=Xt(()=>ti()),t=await t,r(),t);if(!n){Vp.warn("Google Tag Manager: Gtag ID not available in app config");return}i(n),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){Vp.error("addEventListener: Gtag pubads not found");return}window.googletag.pubads().addEventListener("slotRenderEnded",F5);const u=oB(Ok);window.googletag.setConfig({targeting:{page_type:uy(),split_test_name:l.getStringValue("splittestname","default"),ntp_cohort:u}})})}catch(c){Vp.error("Error mounting event listeners for native fallback",c)}})}),yW=e=>{e!==void 0&&setTimeout(e,100)},_W=Je(e=>{const t=r=>{(document==null?void 0:document.visibilityState)==="visible"&&r.focus()};e.vueApp.directive("autofocus-on-document-visible",{mounted:(r,n)=>{r._visibilityChangeEvent=()=>t(r),document.addEventListener("visibilitychange",r._visibilityChangeEvent),yW(n==null?void 0:n.value),r.focus()},unmounted:r=>{document.removeEventListener("visibilitychange",r._visibilityChangeEvent),delete r._visibilityChangeEvent}})});function vW(e,t,r){return(e=(t.split?t.split("."):t).reduce(function(n,o){return n&&n[o]},e))===void 0?r:e}function R0(e,t,r,n){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()]=r,e}function L0(e,t){return e??t}function kn(e,t,r,n){return L0(L0(r[t],n[t]),e)}function bW(e){const t=e||{};function r(n){const o=function(){try{return n.options.persistedState||{}}catch{return{}}}();if(kn(!0,"persist",o,t)===!1)return;const s=kn(n.store.$id,"key",o,{}),i=kn(!1,"overwrite",o,t),a=kn(function(){try{return window.localStorage}catch{return{getItem:function(){},setItem:function(){},removeItem:function(){}}}}(),"storage",o,t),l=kn(function(){return!0},"filter",o,t),c=kn(JSON.stringify,"serialize",o,t),u=kn(JSON.parse,"deserialize",o,t),f=kn(function(v){return v},"migrate",o,{}),d=kn(function(v,S){return S},"merge",o,{}),p=kn(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(){})(n.store.$state);const S=d(n.store.$state,v);i?n.store.$patch(E=>{Object.keys(E).forEach(x=>{E[x]=S[x]})}):n.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;n.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)}n.store.$subscribe(function(v,S){if(l(v,S)===!1)return;Array.isArray(o.includePaths)&&(S=o.includePaths.reduce(function(N,I){return R0(N,I,vW(S,I,void 0))},{})),Array.isArray(o.excludePaths)&&(S=u(c(S)),o.excludePaths.forEach(function(N){return R0(S,N,void 0)},{}));const E=c(S),x=a.setItem(s,E);x instanceof Promise&&(++b,n.store.$persistedState.pending=b!==0,x.catch(function(){}).finally(function(){--b,n.store.$persistedState.pending=b!==0}))})}return r}const wW=Je(e=>{e.$pinia.use(bW({persist:!1}))}),SW=Je({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),EW=[_L,EL,zP,qP,KP,YP,XP,CN,LN,PN,NN,jM,mD,_D,K$,X$,Qj,eB,rB,T5,C5,A5,B5,H5,dW,mW,_W,wW,SW],GT=(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 r=t.renderKey,n=t.route,o={};for(const s in t.route)Object.defineProperty(o,s,{get:()=>r===t.renderKey?t.route[s]:n[s],enumerable:!0});return Ts(hc,no(o)),()=>Ct(t.vnode,{ref:t.vnodeRef})}}),xW=GT(),P0=new WeakMap,kW=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:r,expose:n}){const o=Ae(),s=ue(),i=Ut(hc,null);let a;n({pageRef:s});const l=Ut(w1,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});fa(()=>{d()})}return()=>Ct(HE,{name:e.name,route:e.route,...t},{default:d=>{const p=CW(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=Gh(d,e.pageKey),y=AW(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??Nh),b=m&&TW([e.transition,d.route.meta.pageTransition,Nh,{onAfterLeave:()=>{o.callHook("page:transition:finish",d.Component)}}]),_=e.keepalive??d.route.meta.keepalive??a1;return c=MP(m&&b,OP(_,Ct(NS,{suspensible:!0,onPending:()=>o.callHook("page:start",d.Component),onResolve:()=>{Gr(()=>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:r.default?IW(r.default,d):d.Component,route:d.route,renderKey:h||void 0,trackRootNodes:m,vnodeRef:s};if(!_)return Ct(xW,v);const S=d.Component.type,E=S;let x=P0.get(E);return x||(x=GT(S.name||S.__name),P0.set(E,x)),Ct(x,v)}}))).default(),c}})}});function TW(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?Sm(r.onAfterLeave):void 0}));return hE(...t)}function CW(e,t,r){if(!e)return!1;const n=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(r==null?void 0:r.type)});return!n||n===-1?!1:t.matched.slice(0,n).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)})||r&&Gh({route:t,Component:r})!==Gh({route:e,Component:r})}function AW(e,t,r){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(r==null?void 0:r.type)}){switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function PW(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}const NW=/(-?[0-9.]*[0-9]+[0-9.]*)/g,MW=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function N0(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(NW);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=MW.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function DW(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function $W(e,t){return e?""+e+""+t:t}function FW(e,t,r){const n=DW(e);return $W(n.defs,t+n.content+r)}const UW=e=>e==="unset"||e==="undefined"||e==="none";function jW(e,t){const r={...dy,...e},n={...ZT,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].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=FW(s,'',""))});const i=n.width,a=n.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=N0(f,l/c)):(u=i==="auto"?l:i,f=a===null?N0(u,c/l):a==="auto"?c:a);const d={},p=(h,y)=>{UW(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 BW=/\sid="(\S+)"/g,HW="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let VW=0;function WW(e,t=HW){const r=[];let n;for(;n=BW.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(VW++).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 zW(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'"+e+""}function GW(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function qW(e){return"data:image/svg+xml,"+GW(e)}function KW(e){return'url("'+qW(e)+'")'}const M0={...ZT,inline:!1},YW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ZW={display:"inline-block"},Ng={backgroundColor:"currentColor"},XT={backgroundColor:"transparent"},D0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},$0={webkitMask:Ng,mask:Ng,background:XT};for(const e in $0){const t=$0[e];for(const r in D0)t[e+r]=D0[r]}const Ou={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ou[e+"-flip"]=t,Ou[e.slice(0,1)+"-flip"]=t,Ou[e+"Flip"]=t});function F0(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const XW=(e,t)=>{const r=OW(M0,t),n={...YW},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":r[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&LW(r,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?r[h]=PW(y):typeof y=="number"&&(r[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete n["aria-hidden"];break;default:{const m=Ou[h];m?(y===!0||y==="true"||y===1)&&(r[m]=!0):M0[h]===void 0&&(n[h]=y)}}}const l=jW(e,r),c=l.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),n.innerHTML=WW(l.body,y?()=>y+"ID"+h++:"iconifyVue"),Ct("svg",n)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=zW(u,{...c,width:f+"",height:d+""});return n.style={...s,"--svg":KW(g),width:F0(c.width),height:F0(c.height),...ZW,...p?Ng:XT,...a},Ct("span",n)},JW=Object.create(null),QW=At({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,r=typeof t=="string"?JW[t]:typeof t=="object"?t:null;return r===null||typeof r!="object"||typeof r.body!="string"?this.$slots.default?this.$slots.default():null:XW({...dy,...r},e)}}),vl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Nd=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=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]:n,prefix:l,name:a};return t&&!Ru(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!Ru(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!Ru(a,r)?null:a}return null},Ru=(e,t)=>e?!!((e.provider===""||e.provider.match(vl))&&(t&&e.prefix===""||e.prefix.match(vl))&&e.name.match(vl)):!1,JT=Object.freeze({left:0,top:0,width:16,height:16}),Mf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),py=Object.freeze({...JT,...Mf}),Mg=Object.freeze({...py,body:"",hidden:!1});function e2(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function U0(e,t){const r=e2(e,t);for(const n in Mg)n in Mf?n in e&&!(n in r)&&(r[n]=Mf[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function t2(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function r2(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=U0(n[a]||o[a],s)}return i(t),r.forEach(i),U0(e,s)}function QT(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=t2(e);for(const o in n){const s=n[o];s&&(t(o,r2(e,o,s)),r.push(o))}return r}const n2={provider:"",aliases:{},not_found:{},...JT};function Wp(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function eC(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Wp(e,n2))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o.match(vl)||typeof s.body!="string"||!Wp(s,Mg))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o.match(vl)||typeof i!="string"||!r[i]&&!n[i]||!Wp(s,Mg))return null}return t}const j0=Object.create(null);function o2(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function zs(e,t){const r=j0[e]||(j0[e]=Object.create(null));return r[t]||(r[t]=o2(e,t))}function hy(e,t){return eC(t)?QT(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function s2(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let ac=!1;function tC(e){return typeof e=="boolean"&&(ac=e),ac}function i2(e){const t=typeof e=="string"?Nd(e,!0,ac):e;if(t){const r=zs(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function a2(e,t){const r=Nd(e,!0,ac);if(!r)return!1;const n=zs(r.provider,r.prefix);return s2(n,r.name,t)}function l2(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ac&&!t&&!e.prefix){let o=!1;return eC(e)&&(e.prefix="",QT(e,(s,i)=>{i&&a2(s,i)&&(o=!0)})),o}const r=e.prefix;if(!Ru({provider:t,prefix:r,name:"a"}))return!1;const n=zs(t,r);return!!hy(n,e)}const c2=Object.freeze({width:null,height:null}),u2=Object.freeze({...c2,...Mf});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Dg=Object.create(null);function f2(e,t){Dg[e]=t}function $g(e){return Dg[e]||Dg[""]}function gy(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 my=Object.create(null),Wa=["https://api.simplesvg.com","https://api.unisvg.com"],Lu=[];for(;Wa.length>0;)Wa.length===1||Math.random()>.5?Lu.push(Wa.shift()):Lu.push(Wa.pop());my[""]=gy({resources:["https://api.iconify.design"].concat(Lu)});function Fg(e,t){const r=gy(t);return r===null?!1:(my[e]=r,!0)}function yy(e){return my[e]}const d2=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let B0=d2();function p2(e,t){const r=yy(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function h2(e){return e===404}const g2=(e,t,r)=>{const n=[],o=p2(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),n.push(i),n};function m2(e){if(typeof e=="string"){const t=yy(e);if(t)return t.path}return"/"}const y2=(e,t,r)=>{if(!B0){r("abort",424);return}let n=m2(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;B0(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(h2(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},_2={prepare:g2,send:y2};function v2(e){const t={loaded:[],missing:[],pending:[]},r=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 n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,l=r[s]||(r[s]=Object.create(null)),c=l[i]||(l[i]=zs(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 rC(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function b2(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=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:n,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||rC([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let w2=0;function S2(e,t,r){const n=w2++,o=rC.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function E2(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?Nd(o,t,r):o;s&&n.push(s)}),n}var x2={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function k2(e,t,r,n){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 n=="function"&&p.push(n);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),r(E,t,x.callback)}return setTimeout(S),m}function nC(e){const t={...x2,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,l,c){const u=k2(t,a,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function s(a){return r.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function H0(){}const zp=Object.create(null);function T2(e){if(!zp[e]){const t=yy(e);if(!t)return;const r=nC(t),n={config:t,redundancy:r};zp[e]=n}return zp[e]}function C2(e,t,r){let n,o;if(typeof e=="string"){const s=$g(e);if(!s)return r(void 0,424),H0;o=s.send;const i=T2(e);i&&(n=i.redundancy)}else{const s=gy(e);if(s){n=nC(s);const i=e.resources?e.resources[0]:"",a=$g(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),H0):n.query(t,o,r)().abort}const V0="iconify2",lc="iconify",oC=lc+"-count",W0=lc+"-version",sC=36e5,A2=168,I2=50;function Ug(e,t){try{return e.getItem(t)}catch{}}function _y(e,t,r){try{return e.setItem(t,r),!0}catch{}}function z0(e,t){try{e.removeItem(t)}catch{}}function jg(e,t){return _y(e,oC,t.toString())}function Bg(e){return parseInt(Ug(e,oC))||0}const Md={local:!0,session:!0},iC={local:new Set,session:new Set};let vy=!1;function O2(e){vy=e}let uu=typeof window>"u"?{}:window;function aC(e){const t=e+"Storage";try{if(uu&&uu[t]&&typeof uu[t].length=="number")return uu[t]}catch{}Md[e]=!1}function lC(e,t){const r=aC(e);if(!r)return;const n=Ug(r,W0);if(n!==V0){if(n){const a=Bg(r);for(let l=0;l{const l=lc+a.toString(),c=Ug(r,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(r,l)}};let i=Bg(r);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,jg(r,i)):iC[e].add(a))}function cC(){if(!vy){O2(!0);for(const e in Md)lC(e,t=>{const r=t.data,n=t.provider,o=r.prefix,s=zs(n,o);if(!hy(s,r).length)return!1;const i=r.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function R2(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Md)lC(n,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function L2(e,t){vy||cC();function r(n){let o;if(!Md[n]||!(o=aC(n)))return;const s=iC[n];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Bg(o),i>=I2||!jg(o,i+1))return;const a={cached:Math.floor(Date.now()/sC),provider:e.provider,data:t};return _y(o,lc+i.toString(),JSON.stringify(a))}t.lastModified&&!R2(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function G0(){}function P2(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,b2(e)}))}function N2(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:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=$g(r)))return;s.prepare(r,n,o).forEach(a=>{C2(r,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=hy(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),L2(e,l)}catch(c){console.error(c)}P2(e)})})}))}const M2=(e,t)=>{const r=E2(e,!0,tC()),n=v2(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,G0)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(zs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=zs(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&&N2(l,o[c][u])}),t?S2(t,n,s):G0},D2=e=>new Promise((t,r)=>{const n=typeof e=="string"?Nd(e,!0):e;if(!n){r(e);return}M2([n||e],o=>{if(o.length&&n){const s=i2(n);if(s){t({...py,...s});return}}r(e)})});({...u2});const q0={backgroundColor:"currentColor"},$2={backgroundColor:"transparent"},K0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Y0={webkitMask:q0,mask:q0,background:$2};for(const e in Y0){const t=Y0[e];for(const r in K0)t[e+r]=K0[r]}const Gp={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Gp[e+"-flip"]=t,Gp[e.slice(0,1)+"-flip"]=t,Gp[e+"Flip"]=t});tC(!0);f2("",_2);if(typeof document<"u"&&typeof window<"u"){cC();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!l2(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;Fg(r,o)||console.error(n)}catch{console.error(n)}}}}({...py});const F2=["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 U2(e=""){let t,r="";if(e[0]==="@"&&e.includes(":")&&(r=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const n of F2)if(e.startsWith(n)){t=n,e=e.slice(n.length+1);break}}else if(e.includes(":")){const[n,o]=e.split(":");t=n,e=o}return{provider:r,prefix:t||"",name:e||""}}const j2=At({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,r;const n=Ae(),o=jn(),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){Fg("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}Fg("",{resources:[(S=o.nuxtIcon)==null?void 0:S.iconifyApiOptions.url]})}},{immediate:!0});const i=ei("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(()=>U2(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=n.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 D2(c.value).catch(()=>{}),a.value=!1)}return Oe(l,h),!d.value&&([t,r]=gS(()=>h()),t=await t,r()),(y,m)=>a.value?(me(),_t("span",{key:0,class:Qe(g.value),style:Rs({width:p.value,height:p.value})},null,6)):f.value?(me(),ut(He(QW),{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(Jf(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:Rs({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[Pn(y.$slots,"default",{},()=>[Cl(Fo(e.name),1)],!0)],6))}}),ri=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},uC=ri(j2,[["__scopeId","data-v-5ad9b18b"]]),B2=Object.freeze(Object.defineProperty({__proto__:null,default:uC},Symbol.toStringTag,{value:"Module"})),H2=At({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=jn();return{dynamic:J(()=>{var n,o;return e.dynamic||((o=(n=t.ui)==null?void 0:n.icons)==null?void 0:o.dynamic)})}}});function V2(e,t,r,n,o,s){const i=uC;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 ma=ri(H2,[["render",V2]]),Dd=(e,t,r,n,o=!1)=>{const s=jI(),i=jn(),a=J(()=>{var d;const c=mu(t),u=mu(r),f=mu(n);return vc((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?JD(i.ui,e,{}):{},u||{})}),l=J(()=>XD(s,["class"]));return{ui:a,attrs:l}},W2={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"}},z2={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"}},fC={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"},Z0={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:{...fC,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},x9={...Z0,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:{...Z0.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:{...fC,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},G2={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"}}},q2={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"},fs=vc(Dr.ui.strategy,Dr.ui.avatar,W2),K2=At({components:{UIcon:ma},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:()=>fs.default.icon},size:{type:String,default:()=>fs.default.size,validator(e){return Object.keys(fs.size).includes(e)}},chipColor:{type:String,default:()=>fs.default.chipColor,validator(e){return["gray",...Dr.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>fs.default.chipPosition,validator(e){return Object.keys(fs.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:r}=Dd("avatar",Zs(e,"ui"),fs),n=J(()=>typeof e.src=="boolean"?null:e.src),o=J(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=J(()=>Wi(Wr(t.value.wrapper,(c.value||!n.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=J(()=>Wi(Wr(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=J(()=>Wr(t.value.icon.base,t.value.icon.size[e.size])),l=J(()=>Wr(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:r,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:n,placeholder:o,error:c,onError:u}}});function Y2(e,t,r,n,o,s){const i=ma;return me(),_t("span",{class:Qe(e.wrapperClass)},[e.url&&!e.error?(me(),ut(Jf(e.as),ir({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)},Fo(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)},Fo(e.placeholder),3)):Zt("",!0),e.chipColor?(me(),_t("span",{key:4,class:Qe(e.chipClass)},Fo(e.chipText),3)):Zt("",!0),Pn(e.$slots,"default")],2)}const dC=ri(K2,[["render",Y2]]),X0=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 J0(e,t){t?t={...X0,...t}:t=X0;const r=pC(t);return r.dispatch(e),r.toString()}const Z2=Object.freeze(["prototype","__proto__","constructor"]);function pC(e){let t="",r=new Map;const n=o=>{t+=o};return{toString(){return t},getContext(){return r},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=r.get(o))===void 0)r.set(o,r.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return n("buffer:"),n(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&&!Q0(o)&&(u=Z2),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),n("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),n(":"),e.excludeValues||this.dispatch(o[d]),n(",")};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,n("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=pC(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return r=i,a.sort(),this.array(a,!1)},date(o){return n("date:"+o.toJSON())},symbol(o){return n("symbol:"+o.toString())},unkown(o,s){if(n(s),!!o&&(n(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return n("error:"+o.toString())},boolean(o){return n("bool:"+o)},string(o){n("string:"+o.length+":"),n(o)},function(o){n("fn:"),Q0(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 n("number:"+o)},xml(o){return n("xml:"+o.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(o){return n("regex:"+o.toString())},uint8array(o){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return n("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return n("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return n("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return n("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return n("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return n("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return n("url:"+o.toString())},map(o){n("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){n("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return n("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return n("domwindow")},bigint(o){return n("bigint:"+o.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const hC="[native code] }",X2=hC.length;function Q0(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-X2)===hC}function J2(e,t,r={}){return e===t||J0(e,r)===J0(t,r)}const Q2=At({inheritAttrs:!1,props:{...Om,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(r,n,{isActive:o,isExactActive:s}){return e.exactQuery&&!J2(r.query,n.query)||e.exactHash&&r.hash!==n.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),ez=["href","aria-disabled","role","rel","target","onClick"];function tz(e,t,r,n,o,s){const i=yN;return e.to?(me(),ut(i,ir({key:1},e.$props,{custom:""}),{default:Ls(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:g})=>[Mo("a",ir(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[hc]||e.$route,{isActive:d,isExactActive:p}),onClick:h=>!g&&!e.disabled&&f(h)}),[Pn(e.$slots,"default",Jy(wh({isActive:e.active!==void 0?e.active:e.exact?p:d})))],16,ez)]),_:3},16)):(me(),ut(Jf(e.as),ir({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:Ls(()=>[Pn(e.$slots,"default",Jy(wh({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const gC=ri(Q2,[["render",tz]]);function rz({ui:e,props:t}){const r=er();if(Ts("ButtonGroupContextConsumer",!0),Ut("ButtonGroupContextConsumer",!1))return{size:J(()=>t.size),rounded:J(()=>e.value.rounded)};let o=r.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(r));return Or(()=>{s==null||s.value.register(r)}),Xs(()=>{s==null||s.value.unregister(r)}),{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 Kn=vc(Dr.ui.strategy,Dr.ui.button,z2),nz=At({components:{UIcon:ma,ULink:gC},inheritAttrs:!1,props:{...Om,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:()=>Kn.default.size,validator(e){return Object.keys(Kn.size).includes(e)}},color:{type:String,default:()=>Kn.default.color,validator(e){return[...Dr.ui.colors,...Object.keys(Kn.color)].includes(e)}},variant:{type:String,default:()=>Kn.default.variant,validator(e){return[...Object.keys(Kn.variant),...Object.values(Kn.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Kn.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:r,attrs:n}=Dd("button",Zs(e,"ui"),Kn),{size:o,rounded:s}=rz({ui:r,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=r.value.color)==null?void 0:y[e.color])==null?void 0:m[e.variant])||r.value.variant[e.variant];return Wi(Wr(r.value.base,r.value.font,s.value,r.value.size[o.value],r.value.gap[o.value],e.padded&&r.value[l.value?"square":"padding"][o.value],h==null?void 0:h.replaceAll("{color}",e.color),e.block?r.value.block:r.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(()=>Wr(r.value.icon.base,r.value.icon.size[o.value],e.loading&&r.value.icon.loading)),p=J(()=>Wr(r.value.icon.base,r.value.icon.size[o.value],e.loading&&!i.value&&r.value.icon.loading)),g=J(()=>QD(e));return{ui:r,attrs:n,isLeading:i,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:p,linkProps:g}}});function oz(e,t,r,n,o,s){const i=ma,a=gC;return me(),ut(a,ir({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:Ls(()=>[Pn(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)]),Pn(e.$slots,"default",{},()=>[e.label?(me(),_t("span",{key:0,class:Qe([e.truncate?e.ui.truncate:""])},Fo(e.label),3)):Zt("",!0)]),Pn(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 mC=ri(nz,[["render",oz]]);function sz(e,t,r){let n=null;const{pause:o,resume:s,timestamp:i}=pD({controls:!0}),a=ue(null),l=J(()=>a.value?t-(i.value-a.value):0);function c(...h){n=setTimeout(()=>{n=null,a.value=null,e(...h)},l.value)}function u(){n&&(clearTimeout(n),n=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 za=vc(Dr.ui.strategy,Dr.ui.notification,G2),iz=At({components:{UIcon:ma,UAvatar:dC,UButton:mC},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>za.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>za.default.closeButton},timeout:{type:Number,default:()=>za.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>za.default.color,validator(e){return["gray",...Dr.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:r,attrs:n}=Dd("notification",Zs(e,"ui"),za);let o=null;const s=ue(e.timeout),i=J(()=>{var h,y;return Wi(Wr(r.value.wrapper,(h=r.value.background)==null?void 0:h.replaceAll("{color}",e.color),r.value.rounded,r.value.shadow,(y=r.value.ring)==null?void 0:y.replaceAll("{color}",e.color)),e.class)}),a=J(()=>{var h;return Wr(r.value.progress.base,(h=r.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 Wr(r.value.icon.base,(h=r.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=sz(()=>{d()},e.timeout),Qf(()=>{s.value=o.remaining.value}))}return Oe(()=>e.timeout,g),Or(g),Xs(()=>{o&&o.stop()}),{ui:r,attrs:n,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:Wi}}});function az(e,t,r,n,o,s){const i=ma,a=dC,l=mC;return me(),ut(zS,ir({appear:""},e.ui.transition),{default:Ls(()=>[Mo("div",ir({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))}),[Mo("div",{class:Qe([e.ui.container,e.ui.rounded,e.ui.ring])},[Mo("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,ir({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):Zt("",!0),Mo("div",{class:Qe(e.ui.inner)},[e.title||e.$slots.title?(me(),_t("p",{key:0,class:Qe(e.ui.title)},[Pn(e.$slots,"title",{title:e.title},()=>[Cl(Fo(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"))},[Pn(e.$slots,"description",{description:e.description},()=>[Cl(Fo(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,Vu(e.actions,(c,u)=>(me(),ut(l,ir({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:sp(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},Vu(e.actions,(c,u)=>(me(),ut(l,ir({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:sp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):Zt("",!0),e.closeButton?(me(),ut(l,ir({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:sp(e.onClose,["stop"])}),null,16,["onClick"])):Zt("",!0)],2)):Zt("",!0)],2),e.timeout?(me(),_t("div",{key:0,class:Qe(e.progressClass),style:Rs(e.progressStyle)},null,6)):Zt("",!0)],2)],16)]),_:3},16)}const yC=ri(iz,[["render",az]]);function lz(){const e=ei("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 r(s){e.value=e.value.filter(i=>i.id!==s)}function n(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:r,update:n,clear:o}}const cz=vc(Dr.ui.strategy,Dr.ui.notifications,q2),uz=At({components:{UNotification:yC},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Dd("notifications",Zs(e,"ui"),cz),n=lz(),o=ei("notifications",()=>[]),s=J(()=>Wi(Wr(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:r,toast:n,notifications:o,wrapperClass:s}}});function fz(e,t,r,n,o,s){const i=yC;return me(),ut(wI,{to:"body"},[Mo("div",ir({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,Vu(e.notifications,a=>(me(),_t("div",{key:a.id},[st(i,ir({ref_for:!0},a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),FI({_:2},[Vu(e.$slots,(l,c)=>({name:c,fn:Ls(u=>[Pn(e.$slots,c,ir({ref_for:!0},u))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):Zt("",!0)],16)])}const dz=ri(uz,[["render",fz]]);function pz(){Or(()=>{const{idle:e}=uD(5e3,{initialState:!1});Oe(e,t=>{window.isUserIdle=t},{immediate:!0})})}const Rt={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Rn=console,ms={};Object.keys(Rt).forEach(e=>{ms[e]=Rn[e]});const Ga="Datadog Browser SDK:",St={debug:ms.debug.bind(Rn,Ga),log:ms.log.bind(Rn,Ga),info:ms.info.bind(Rn,Ga),warn:ms.warn.bind(Rn,Ga),error:ms.error.bind(Rn,Ga)},by="https://docs.datadoghq.com",hz=`${by}/real_user_monitoring/browser/troubleshooting`,wy="More details:";function _C(e,t){return(...r)=>{try{return e(...r)}catch(n){St.error(t,n)}}}function el(e){return e!==0&&Math.random()*100<=e}function gz(e){return mz(e)&&e>=0&&e<=100}function mz(e){return typeof e=="number"}const ya=1e3,is=60*ya,vC=60*is,yz=24*vC,_z=365*yz;function Bo(){return new Date().getTime()}function vo(){return Bo()}function Df(){return performance.now()}function Un(){return{relative:Df(),timeStamp:vo()}}function vz(){return{relative:0,timeStamp:wC()}}function bC(e,t){return t-e}function bz(e,t){return e+t}function wz(e){return e-wC()}let qp;function wC(){var e,t;return qp===void 0&&(qp=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),qp}const ea=1024,SC=1024*ea,Sz=/[^\u0000-\u007F]/;function EC(e){return Sz.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function Ez(e){return{...e}}function xC(e,t){return Object.keys(e).some(r=>e[r]===t)}function kc(e){return Object.keys(e).length===0}function bn(){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 mn=bn(),Gs="WorkerGlobalScope"in mn;function ta(e,t){const r=bn();let n;return r.Zone&&typeof r.Zone.__symbol__=="function"&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}let $f,kC=!1;function xz(e){$f=e}function kz(e){kC=e}function Tz(e,t,r){const n=r.value;r.value=function(...o){return($f?wt(n):n).apply(this,o)}}function wt(e){return function(){return ra(e,this,arguments)}}function ra(e,t,r){try{return e.apply(t,r)}catch(n){Sy(n)}}function Sy(e){if(Hg(e),$f)try{$f(e)}catch(t){Hg(t)}}function Hg(...e){kC&&St.error("[MONITOR]",...e)}function Tc(e,t){return ta(bn(),"setTimeout")(wt(e),t)}function TC(e){ta(bn(),"clearTimeout")(e)}function Ey(e,t){return ta(bn(),"setInterval")(wt(e),t)}function CC(e){ta(bn(),"clearInterval")(e)}function ew(e){var t;const r=(t=mn.queueMicrotask)===null||t===void 0?void 0:t.bind(mn);typeof r=="function"?r(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(r=>r(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(r=>t!==r),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function AC(...e){return new Et(t=>{const r=e.map(n=>n.subscribe(o=>t.notify(o)));return()=>r.forEach(n=>n.unsubscribe())})}class IC 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 r=!1;const n={unsubscribe:()=>{r=!0,this.removeObserver(t)}};return ew(()=>{for(const o of this.buffer){if(r)return;t(o)}r||this.addObserver(t)}),n}unbuffer(){ew(()=>{this.maxBufferSize=this.buffer.length=0})}}function Cz(e,t,r){let n=!1,o,s;return{throttled:(...i)=>{if(n){o=i;return}e(...i),n=!0,s=Tc(()=>{o&&e(...o),n=!1,o=void 0},t)},cancel:()=>{TC(s),n=!1,o=void 0}}}function Yo(){}function Zo(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Zo)}const na=/([\w-]+)\s*=\s*([^;]+)/g;function Az(e,t){for(na.lastIndex=0;;){const r=na.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function Iz(e){const t=new Map;for(na.lastIndex=0;;){const r=na.exec(e);if(r){const n=r[1],o=r[2];t.has(n)?t.get(n).push(o):t.set(n,[o])}else break}return t}function Oz(e){const t=new Map;for(na.lastIndex=0;;){const r=na.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function Rz(e,t,r=""){const n=e.charCodeAt(t-1),s=n>=55296&&n<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${r}`}var qs;(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"})(qs||(qs={}));const xy=new Set;function Lz(e){Array.isArray(e)&&Pz(e.filter(t=>xC(qs,t)))}function Pz(e){e.forEach(t=>{xy.add(t)})}function $d(e){return xy.has(e)}function Nz(){return xy}function Mz(){return Dz()===0}let fu;function Dz(){return fu??(fu=$z())}function $z(e=window){var t;const r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}function ky(e){return OC(e,location.href).href}function OC(e,t){const{URL:r}=Fz();try{return t!==void 0?new r(e,t):new r(e)}catch(n){throw new Error(`Failed to construct URL: ${String(n)}`)}}let Kp;function Fz(){if(!Kp){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=mn}Kp={URL:t.URL},e==null||e.remove()}return Kp}function Fd(e,t,r=0,n){const o=new Date;o.setTime(o.getTime()+r);const s=`expires=${o.toUTCString()}`,i=n&&n.crossSite?"none":"strict",a=n&&n.domain?`;domain=${n.domain}`:"",l=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${a}${l}${c}`}function Ty(e){return Az(document.cookie,e)}function Uz(e){return Iz(document.cookie).get(e)||[]}let Yp;function Es(e){return Yp||(Yp=Oz(document.cookie)),Yp.get(e)}function RC(e,t){Fd(e,"",0,t)}function jz(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Zo()}`,r="test";Fd(t,r,is,e);const n=Ty(t)===r;return RC(t,e),n}catch(t){return St.error(t),!1}}let Zp;function LC(e=location.hostname,t=document.referrer){if(Zp===void 0){const r=Bz(e,t);if(r){const n=`dd_site_test_${Zo()}`,o="test",s=r.split(".");let i=s.pop();for(;s.length&&!Ty(n);)i=`${s.pop()}.${i}`,Fd(n,o,ya,{domain:i});RC(n,{domain:i}),Zp=i}}return Zp}function Bz(e,t){try{return e||OC(t).hostname}catch{}}const po="_dd_s";function Hz(e,t){for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(t(n,r,e))return n}}function Ff(e){return Object.values(e)}function Vz(e){return Object.entries(e)}const Cy=4*vC,PC=15*is,Wz=_z,NC="0",oa={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},MC=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Ay="&";function zz(e){return!!e&&(e.indexOf(Ay)!==-1||MC.test(e))}const Gz="1";function ys(e,t){const r={isExpired:Gz};return t.trackAnonymousUser&&(e!=null&&e.anonymousId)&&(r.anonymousId=e==null?void 0:e.anonymousId),r}function Pu(e){return kc(e)}function DC(e){return!Pu(e)}function bl(e){return e.isExpired!==void 0||!qz(e)}function qz(e){return(e.created===void 0||Bo()-Number(e.created)t==="anonymousId"?`aid=${r}`:`${t}=${r}`).join(Ay)}function Ud(e){const t={};return zz(e)&&e.split(Ay).forEach(r=>{const n=MC.exec(r);if(n!==null){const[,o,s]=n;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const Kz="_dd",Yz="_dd_r",Zz="_dd_l",Xz="rum",Jz="logs";function Qz(e){if(!Es(po)){const r=Es(Kz),n=Es(Yz),o=Es(Zz),s={};r&&(s.id=r),o&&/^[01]$/.test(o)&&(s[Jz]=o),n&&/^[012]$/.test(n)&&(s[Xz]=n),DC(s)&&($C(s),e.persistSession(s))}}const e8=0;function tw(e){const t=r8(e);return t&&jz(t)?{type:oa.COOKIE,cookieOptions:t}:void 0}function t8(e,t){const r={isLockEnabled:Mz(),persistSession:n=>rw(t,e,n,PC),retrieveSession:()=>FC(t),expireSession:n=>rw(t,e,ys(n,e),Cy)};return Qz(r),r}function rw(e,t,r,n){let o=Vg(r);$d(qs.ENCODE_COOKIE_OPTIONS)&&(o=Vg({...r,...kc(r)?{}:{c:UC(e)}})),Fd(po,o,t.trackAnonymousUser?Wz:n,e)}function FC(e){if($d(qs.ENCODE_COOKIE_OPTIONS))return n8(e);const t=Ty(po);return Ud(t)}function r8(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const r=LC();if(!r)return;t.domain=r}return t}function UC(e){const t=e.domain?e.domain.split(".").length-1:0;let r=0;return r|=e8<<5,r|=t<<1,r|=e.crossSite?1:0,r.toString(16)}function n8(e){const t=Uz(po),r=UC(e);let n;for(const o of t.reverse())if(n=Ud(o),n.c===r)break;return n==null||delete n.c,n??{}}const o8="_dd_test_";function nw(){try{const e=Zo(),t=`${o8}${e}`;localStorage.setItem(t,e);const r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:oa.LOCAL_STORAGE}:void 0}catch{return}}function s8(e){return{isLockEnabled:!1,persistSession:jC,retrieveSession:BC,expireSession:t=>i8(t,e)}}function jC(e){localStorage.setItem(po,Vg(e))}function BC(){const e=localStorage.getItem(po);return Ud(e)}function i8(e,t){jC(ys(e,t))}const a8=10,l8=100,c8=ya,HC="--",VC=[];let Nu;function _s(e,t,r=0){var n;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&&!f8(d)?d:void 0}};if(Nu||(Nu=e),e!==Nu){VC.push(e);return}if(o&&r>=l8){ow(t);return}let c,u=l();if(o){if(u.lock){du(e,t,r);return}if(c=u8(),a(u.session),u=l(),u.lock!==c){du(e,t,r);return}}let f=e.process(u.session);if(o&&(u=l(),u.lock!==c)){du(e,t,r);return}if(f&&(bl(f)?i(f):($C(f),o?a(f):s(f))),o&&!(f&&bl(f))){if(u=l(),u.lock!==c){du(e,t,r);return}s(u.session),f=u.session}(n=e.after)===null||n===void 0||n.call(e,f||u.session),ow(t)}function du(e,t,r){Tc(()=>{_s(e,t,r+1)},a8)}function ow(e){Nu=void 0;const t=VC.shift();t&&_s(t,e)}function u8(){return Zo()+HC+vo()}function f8(e){const[,t]=e.split(HC);return!t||bC(Number(t),vo())>c8}const sw=ya;function d8(e){switch(e.sessionPersistence){case oa.COOKIE:return tw(e);case oa.LOCAL_STORAGE:return nw();case void 0:{let t=tw(e);return!t&&e.allowFallbackToLocalStorage&&(t=nw()),t}default:St.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function p8(e,t){return e.type===oa.COOKIE?t8(t,e.cookieOptions):s8(t)}function h8(e,t,r,n,o=p8(e,t)){const s=new Et,i=new Et,a=new Et,l=Ey(p,sw);let c;h();const{throttled:u,cancel:f}=Cz(()=>{_s({process:E=>{if(Pu(E))return;const x=g(E);return y(x),x},after:E=>{DC(E)&&!m()&&v(E),c=E}},o)},sw);function d(){_s({process:E=>m()?g(E):void 0},o)}function p(){const E=o.retrieveSession();bl(E)?_s({process:x=>bl(x)?ys(x,t):void 0,after:g},o):g(E)}function g(E){return bl(E)&&(E=ys(E,t)),m()&&(b(E)?_():(a.notify({previousState:c,newState:E}),c=E)),E}function h(){_s({process:E=>{if(Pu(E))return E.anonymousId=Zo(),ys(E,t)},after:E=>{c=E}},o)}function y(E){if(Pu(E))return!1;const x=n(E[r]);E[r]=x,delete E.isExpired,x!==NC&&!E.id&&(E.id=Zo(),E.created=String(Bo()))}function m(){return(c==null?void 0:c[r])!==void 0}function b(E){return c.id!==E.id||c[r]!==E[r]}function _(){c=ys(c,t),i.notify()}function v(E){c=E,s.notify()}function S(E){_s({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(ys(c,t))},stop:()=>{CC(l)},updateSessionState:S}}const Wg={GRANTED:"granted",NOT_GRANTED:"not-granted"};function g8(e){const t=new Et;return{tryToInit(r){e||(e=r)},update(r){e=r,t.notify()},isGranted(){return e===Wg.GRANTED},observable:t}}function WC(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function m8(e,t,r=!1){return e.some(n=>{try{if(typeof n=="function")return n(t);if(n instanceof RegExp)return n.test(t);if(typeof n=="string")return r?t.startsWith(n):n===t}catch(o){St.error(o)}return!1})}const y8=["chrome-extension://","moz-extension://"];function iw(e){return y8.some(t=>e.includes(t))}function _8(e,t=""){if(iw(e))return!1;const n=t.split(` `).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return iw(n)}const v8="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",b8="SDK initialized on a non-allowed domain.";function w8(e,t,r=typeof location<"u"?location.origin:""){const n=e.allowedTrackingOrigins;if(!n)return _8(r,t)?(St.error(v8),!1):!0;const o=m8(n,r);return o||St.error(b8),o}const S8="datad0g.com",E8="dd0g-gov.com",Ci="datadoghq.com",x8="ddog-gov.com",k8="pci.browser-intake-datadoghq.com",T8=["ddsource","dd-api-key","dd-request-id"];function vs(e,t,r){const n=C8(e,t);return{build(o,s){const i=I8(e,t,o,s,r);return n(i)},trackType:t}}function C8(e,t){const r=`/api/v2/${t}`,n=e.proxy;if(typeof n=="string"){const s=ky(n);return i=>`${s}?ddforward=${encodeURIComponent(`${r}?${i}`)}`}if(typeof n=="function")return s=>n({path:r,parameters:s});const o=A8(t,e);return s=>`https://${o}${r}?${s}`}function A8(e,t){const{site:r=Ci,internalAnalyticsSubdomain:n}=t;if(e==="logs"&&t.usePciIntake&&r===Ci)return k8;if(n&&r===Ci)return`${n}.${Ci}`;if(r===E8)return`http-intake.logs.${r}`;const o=r.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function I8({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},n,o,{retry:s,encoding:i},a=[]){const l=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${Zo()}`].concat(a);return i&&l.push(`dd-evp-encoding=${i}`),n==="rum"&&(l.push(`batch_time=${vo()}`,`_dd.api=${o}`),s&&l.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}function O8(e){const t=e.site||Ci,r=R8(e.source),n=L8({...e,site:t,source:r});return{replica:P8({...e,site:t,source:r}),site:t,source:r,...n}}function R8(e){return e==="flutter"||e==="unity"?e:"browser"}function L8(e){return{logsEndpointBuilder:vs(e,"logs"),rumEndpointBuilder:vs(e,"rum"),profilingEndpointBuilder:vs(e,"profile"),sessionReplayEndpointBuilder:vs(e,"replay"),exposuresEndpointBuilder:vs(e,"exposures")}}function P8(e){if(!e.replica)return;const t={...e,site:Ci,clientToken:e.replica.clientToken};return{logsEndpointBuilder:vs(t,"logs"),rumEndpointBuilder:vs(t,"rum",[`application.id=${e.replica.applicationId}`])}}function N8(e){return T8.every(t=>e.includes(t))}function Xp(e,t){return e!=null&&typeof e!="string"?(St.error(`${t} must be defined as a string`),!1):!0}function M8(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(St.error(`Site should be a valid Datadog site. ${wy} ${by}/getting_started/site/.`),!1):!0}function pu(e,t){return e!==void 0&&!gz(e)?(St.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function D8(e,t){var r,n,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(!(!M8(e.site)||!pu(e.sessionSampleRate,"Session")||!pu(e.telemetrySampleRate,"Telemetry")||!pu(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!pu(e.telemetryUsageSampleRate,"Telemetry Usage")||!Xp(e.version,"Version")||!Xp(e.env,"Env")||!Xp(e.service,"Service")||!w8(e,t??""))){if(e.trackingConsent!==void 0&&!xC(Wg,e.trackingConsent)){St.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&_C(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Gs?void 0:d8(e),sessionSampleRate:(r=e.sessionSampleRate)!==null&&r!==void 0?r:100,telemetrySampleRate:(n=e.telemetrySampleRate)!==null&&n!==void 0?n: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:Wg.GRANTED,trackAnonymousUser:(f=e.trackAnonymousUser)!==null&&f!==void 0?f:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*ea,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ya,batchMessagesLimit:Gs?1:50,messageBytesLimit:256*ea,variant:e.variant,sdkVersion:e.sdkVersion,...O8(e)}}}function $8(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 sa="?";function _a(e){var t,r;const n=[];let o=Jp(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` `).forEach(i=>{const a=j8(i)||H8(i)||W8(i)||q8(i);a&&(!a.func&&a.line&&(a.func=sa),n.push(a))}),n.length>0&&X8()&&e instanceof Error){const i=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&GC(a);){const l=((t=a.constructor)===null||t===void 0?void 0:t.name)||sa;i.push(l)}for(let l=i.length-1;l>=0&&((r=n[0])===null||r===void 0?void 0:r.func)===i[l];l--)n.shift()}return{message:Jp(e,"message"),name:Jp(e,"name"),stack:n}}const zC="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",ia="(?::(\\d+))",F8=new RegExp(`^\\s*at (.*?) ?\\(${zC}${ia}?${ia}?\\)?\\s*$`,"i"),U8=new RegExp(`\\((\\S*)${ia}${ia}\\)`);function j8(e){const t=F8.exec(e);if(!t)return;const r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,o=U8.exec(t[2]);return n&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||sa,line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}const B8=new RegExp(`^\\s*at ?${zC}${ia}?${ia}??\\s*$`,"i");function H8(e){const t=B8.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:sa,line:t[2]?+t[2]:void 0,url:t[1]}}const V8=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function W8(e){const t=V8.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||sa,line:+t[3],url:t[2]}}const z8=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,G8=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function q8(e){const t=z8.exec(e);if(!t)return;const r=t[3]&&t[3].indexOf(" > eval")>-1,n=G8.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||sa,line:t[4]?+t[4]:void 0,url:t[3]}}function Jp(e,t){if(typeof e!="object"||!e||!(t in e))return;const r=e[t];return typeof r=="string"?r:void 0}function K8(e,t,r,n){if(t===void 0)return;const{name:o,message:s}=Z8(e);return{name:o,message:s,stack:[{url:t,column:n,line:r}]}}const Y8=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Z8(e){let t,r;return{}.toString.call(e)==="[object String]"&&([,t,r]=Y8.exec(e)),{name:t,message:r}}function GC(e){return String(e.constructor).startsWith("class ")}let hu;function X8(){if(hu!==void 0)return hu;class e extends Error{constructor(){super(),this.name="Error"}}const[t,r]=[e,Error].map(n=>new n);return hu=GC(Object.getPrototypeOf(t))&&r.stack!==t.stack,hu}function jd(e){const r=new Error(e);r.name="HandlingStack";let n;return ra(()=>{const o=_a(r);o.stack=o.stack.slice(2),n=va(o)}),n}function va(e){let t=qC(e);return e.stack.forEach(r=>{const n=r.func==="?"?"":r.func,o=r.args&&r.args.length>0?`(${r.args.join(", ")})`:"",s=r.line?`:${r.line}`:"",i=r.line&&r.column?`:${r.column}`:"";t+=` at ${n}${o} @ ${r.url}${s}${i}`}),t}function qC(e){return`${e.name||"Error"}: ${e.message}`}function Is(e,t,r,{computeHandlingStack:n}={}){let o=e[t];if(typeof o!="function")if(t in e&&t.startsWith("on"))o=Yo;else return{stop:Yo};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let l;ra(r,null,[{target:this,parameters:a,onPostCall:u=>{l=u},handlingStack:n?jd("instrumented method"):void 0}]);const c=o.apply(this,a);return l&&ra(l,null,[c]),c};return e[t]=i,{stop:()=>{s=!0,e[t]===i&&(e[t]=o)}}}function Cc(e,t,r){if(typeof e!="object"||e===null)return JSON.stringify(e);const n=Ai(Object.prototype),o=Ai(Array.prototype),s=Ai(Object.getPrototypeOf(e)),i=Ai(e);try{return JSON.stringify(e,t,r)}catch{return""}finally{n(),o(),s(),i()}}function Ai(e){const t=e,r=t.toJSON;return r?(delete t.toJSON,()=>{t.toJSON=r}):Yo}const J8=220*ea,Q8="$",e6=3;function ho(e,t=J8){const r=Ai(Object.prototype),n=Ai(Array.prototype),o=[],s=new WeakMap,i=Qp(e,Q8,void 0,o,s),a=JSON.stringify(i);let l=a?a.length:0;if(l>t){eh(t,"discarded",e);return}for(;o.length>0&&lt){eh(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=Qp(c.source[f],c.path,f,o,s);if(d!==void 0&&(l+=JSON.stringify(d).length+u+f.length+e6,u=1),l>t){eh(t,"truncated",e);break}c.target[f]=d}}return r(),n(),i}function Qp(e,t,r,n,o){const s=n6(e);if(!s||typeof s!="object")return t6(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=r!==void 0?`${t}.${r}`:t,c=Array.isArray(s)?[]:{};return o.set(a,l),n.push({source:s,target:c,path:l}),c}function t6(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 r6(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const r=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(r&&r[1])return`[${r[1]}]`}catch{}return"[Unserializable]"}function r6(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?zg(e.currentTarget):null,target:e.target?zg(e.target):null}}function n6(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function eh(e,t,r){St.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}const KC="No stack, consider using an instance of Error";function Iy({stackTrace:e,originalError:t,handlingStack:r,componentStack:n,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:l}){const c=ni(t);return!e&&c&&(e=_a(t)),{startClocks:o,source:a,handling:l,handlingStack:r,componentStack:n,originalError:t,type:e?e.name:void 0,message:o6(e,c,s,t),stack:e?va(e):i?KC:void 0,causes:c?l6(t,a):void 0,fingerprint:s6(t),context:i6(t)}}function o6(e,t,r,n){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":`${r} ${Cc(ho(n))}`}function s6(e){return ni(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function i6(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function a6(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function ni(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function l6(e,t){let r=e;const n=[];for(;ni(r==null?void 0:r.cause)&&n.length<10;){const o=_a(r.cause);n.push({message:r.cause.message,source:t,type:o==null?void 0:o.name,stack:o&&va(o)}),r=r.cause}return n.length?n:void 0}const Fr={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function c6(){return new Et(e=>{const t=(o,s)=>{const i=Iy({stackTrace:s,originalError:o,startClocks:Un(),nonErrorPrefix:"Uncaught",source:Fr.SOURCE,handling:"unhandled"});e.notify(i)},{stop:r}=u6(t),{stop:n}=f6(t);return()=>{r(),n()}})}function u6(e){return Is(bn(),"onerror",({parameters:[t,r,n,o,s]})=>{let i;ni(s)||(i=K8(t,r,n,o)),e(s??t,i)})}function f6(e){return Is(bn(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function d6(e){const t={version:"6.23.0",onReady(r){r()},...e};return Object.defineProperty(t,"_setDebug",{get(){return kz},enumerable:!1}),t}function p6(e,t,r){const n=e[t];n&&!n.q&&n.version&&St.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(o=>_C(o,"onReady callback threw an error:")())}function YC(e,t){t.silentMultipleInit||St.error(`${e} is already initialized.`)}function oi(e,t,r,n,o){return Oy(e,t,[r],n,o)}function Oy(e,t,r,n,{once:o,capture:s,passive:i}={}){const a=wt(d=>{!d.isTrusted&&!d.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),n(d))}),l=i?{capture:s,passive:i}:s,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=ta(c,"addEventListener");r.forEach(d=>u.call(t,d,a,l));function f(){const d=ta(c,"removeEventListener");r.forEach(p=>d.call(t,p,a,l))}return{stop:f}}const Uf={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function h6(e,t){const r=[];t.includes(Uf.cspViolation)&&r.push(m6(e));const n=t.filter(o=>o!==Uf.cspViolation);return n.length&&r.push(g6(n)),AC(...r)}function g6(e){return new Et(t=>{if(!window.ReportingObserver)return;const r=wt((o,s)=>o.forEach(i=>t.notify(y6(i)))),n=new window.ReportingObserver(r,{types:e,buffered:!0});return n.observe(),()=>{n.disconnect()}})}function m6(e){return new Et(t=>{const{stop:r}=oi(e,document,"securitypolicyviolation",n=>{t.notify(_6(n))});return r})}function y6(e){const{type:t,body:r}=e;return ZC({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:XC(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function _6(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return ZC({type:e.effectiveDirective,message:`${Uf.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:XC(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${Rz(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function ZC(e){return{startClocks:Un(),source:Fr.REPORT,handling:"unhandled",...e}}function XC(e,t,r,n,o){return r?va({name:e,message:t,stack:[{func:"?",url:r,line:n??void 0,column:o??void 0}]}):void 0}const v6=200;function JC(e){const{env:t,service:r,version:n,datacenter:o,sdkVersion:s,variant:i}=e,a=[hs("sdk_version",s??"6.23.0")];return t&&a.push(hs("env",t)),r&&a.push(hs("service",r)),n&&a.push(hs("version",n)),o&&a.push(hs("datacenter",o)),i&&a.push(hs("variant",i)),a}function hs(e,t){const r=t?`${e}:${t}`:e;return(r.length>v6||b6(r))&&St.warn(`Tag ${r} doesn't meet tag requirements and will be sanitized. ${wy} ${by}/getting_started/tagging/#defining-tags`),QC(r)}function QC(e){return e.replace(/,/g,"_")}function b6(e){return w6()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function w6(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function eA(e,t){const r=mn.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function jf(e,t,r=S6()){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(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s=0;return r||e.push(t),r}}}function E6(){var e;const t=mn.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 rA(e){return e>=500}function x6(e){try{return e.clone()}catch{return}}const k6=80*ea,T6=32,nA=20*SC,C6=is,oA=ya;function sA(e,t,r,n,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?aA(e,t,r,s,{onSuccess:()=>lA(0,t,r,n,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),iA(t,r,n,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function iA(e,t,r,n,o){e.transportStatus===2&&Tc(()=>{const s=e.queuedPayloads.first();aA(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=oA,lA(1,e,t,r,n,o)},onFailure:()=>{e.currentBackoffTime=Math.min(C6,e.currentBackoffTime*2),iA(e,t,r,n,o)}})},e.currentBackoffTime)}function aA(e,t,r,n,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),r(e,i=>{t.bandwidthMonitor.remove(e),A6(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},n.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,n.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function lA(e,t,r,n,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${n} events size queued for upload: ${nA/SC}MiB`,source:Fr.AGENT,startClocks:Un()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=cA();i.size()>0;)sA(i.dequeue(),t,r,n,o,s)}function A6(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||rA(e.status))}function I6(){return{transportStatus:0,currentBackoffTime:oA,bandwidthMonitor:O6(),queuedPayloads:cA(),queueFullReported:!1}}function cA(){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>=nA}}}function O6(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=k6&&this.ongoingRequestCount{for(const i of e)sA(s,o,(a,l)=>{$d(qs.AVOID_FETCH_KEEPALIVE)?Bf(i,a,l):P6(i,t,a,l)},i.trackType,r,n)},sendOnExit:s=>{for(const i of e)R6(i,t,s)}}}function R6(e,t,r){if(!!navigator.sendBeacon&&r.bytesCountn==null?void 0:n({status:i.status,type:i.type}))).catch(wt(()=>Bf(e,r,n)))}else Bf(e,r,n)}function Bf(e,t,r){const n=e.build("fetch",t);fetch(n,{method:"POST",body:t.data,mode:"cors"}).then(wt(o=>r==null?void 0:r({status:o.status,type:o.type}))).catch(wt(()=>r==null?void 0:r({status:0})))}function N6(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Ry(){const e=M6();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,r,n){const o=n?{id:n}:void 0;e.send(JSON.stringify({eventType:t,event:r,view:o}))}}}function Hf(e){var t;e===void 0&&(e=(t=bn().location)===null||t===void 0?void 0:t.hostname);const r=Ry();return!!r&&r.getAllowedWebViewHosts().some(n=>e===n||e.endsWith(`.${n}`))}function M6(){return bn().DatadogEventBridge}const Mu={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function D6(e){return new Et(t=>{const{stop:r}=Oy(e,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:Mu.HIDDEN}):o.type==="freeze"&&t.notify({reason:Mu.FROZEN})},{capture:!0}),n=oi(e,window,"beforeunload",()=>{t.notify({reason:Mu.UNLOADING})}).stop;return()=>{r(),n()}})}function $6(e){return Ff(Mu).includes(e)}function fA({encoder:e,request:t,flushController:r,messageBytesLimit:n}){let o={};const s=r.flushObservable.subscribe(f=>u(f));function i(f,d,p){r.notifyBeforeAddMessage(d),p!==void 0?(o[p]=f,r.notifyAfterAddMessage()):e.write(e.isEmpty?f:` ${f}`,g=>{r.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);r.notifyAfterRemoveMessage(p)}function c(f,d){const p=Cc(f),g=e.estimateEncodedBytesCount(p);if(g>=n){St.warn(`Discarded a message whose size was bigger than the maximum allowed size ${n}KB. ${wy} ${hz}/#technical-limitations`);return}a(d)&&l(d),i(p,g,d)}function u(f){const d=Ff(o).join(` `);o={};const p=$6(f.reason),g=p?t.sendOnExit:t.send;if(p&&e.isAsync){const h=e.finishSync();h.outputBytesCount&&g(lw(h));const y=[h.pendingData,d].filter(Boolean).join(` `);y&&g({data:y,bytesCount:EC(y)})}else d&&e.write(e.isEmpty?d:` ${d}`),e.finish(h=>{g(lw(h))})}return{flushController:r,add:c,upsert:c,stop:s.unsubscribe}}function lw(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 dA({messagesLimit:e,bytesLimit:t,durationLimit:r,pageMayExitObservable:n,sessionExpireObservable:o}){const s=n.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=Tc(()=>{u("duration_limit")},r))}function p(){TC(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 aa="DISCARDED",Ys="SKIPPED";function F6(){const e={};return{register(t,r){return e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(n=>n!==r)}}},triggerHook(t,r){const n=e[t]||[],o=[];for(const s of n){const i=s(r);if(i===aa)return aa;i!==Ys&&o.push(i)}return Ks(...o)}}}const Os={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},U6=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],j6=1,B6=[x8];let th;function Ac(){return th||(th=new IC(100)),th}function H6(e,t,r,n,o,s){const i=new Et,{stop:a}=W6(t,n,o,s,i),{enabled:l,metricsEnabled:c}=V6(e,t,r,i);return{stop:a,enabled:l,metricsEnabled:c}}function V6(e,t,r,n,o=j6){const s={},i=!B6.includes(t.site)&&el(t.telemetrySampleRate),a={[Os.LOG]:i,[Os.CONFIGURATION]:i&&el(t.telemetryConfigurationSampleRate),[Os.USAGE]:i&&el(t.telemetryUsageSampleRate),metric:i&&el(o)},l=z6(),c=Ac();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=Cc(f);if(g.has(h))return;const y=r.triggerHook(1,{startTime:Un().relative});if(y===aa)return;const m=u(y,e,f,l);n.notify(m),eA("telemetry",m),g.add(h)}),c.unbuffer(),xz(q6),{enabled:i,metricsEnabled:a.metric};function u(f,d,p,g){const y={type:"telemetry",date:Un().timeStamp,service:d,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:Ks(p,{runtime_env:g,connectivity:E6(),sdk_setup:"npm"}),ddtags:JC(t).join(","),experimental_features:Array.from(Nz())};return Ks(y,f)}}function W6(e,t,r,n,o){const s=[];if(Hf()){const i=Ry(),a=o.subscribe(l=>i.send("internal_telemetry",l));s.push(a.unsubscribe)}else{const i=[e.rumEndpointBuilder];e.replica&&G6(e)&&i.push(e.replica.rumEndpointBuilder);const a=fA({encoder:n(4),request:uA(i,e.batchBytesLimit,t),flushController:dA({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,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 z6(){var e;return{is_local_file:((e=mn.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:Gs}}function G6(e){return e.site===S8}function Ly(e,t){Hg(Rt.debug,e,t),Ac().notify({rawEvent:{type:Os.LOG,message:e,status:"debug",...t}})}function q6(e,t){Ac().notify({rawEvent:{type:Os.LOG,status:"error",...Z6(e),...t}})}function K6(e){Ac().notify({rawEvent:{type:Os.CONFIGURATION,configuration:e}})}function Y6(e){Ac().notify({rawEvent:{type:Os.USAGE,usage:e}})}function Z6(e){if(ni(e)){const t=_a(e);return{error:{kind:t.name,stack:va(X6(t))},message:t.message}}return{error:{stack:KC},message:`Uncaught ${Cc(e)}`}}function X6(e){return e.stack=e.stack.filter(t=>!t.url||U6.some(r=>t.url.startsWith(r))),e}function J6(e){const t=new Set;return e.forEach(r=>t.add(r)),Array.from(t)}function pA(e,t){const r=e.indexOf(t);r>=0&&e.splice(r,1)}const gu=1/0,Q6=is;let qa=null;const Du=new Set;function eG(){Du.forEach(e=>e())}function tG({expireDelay:e,maxEntries:t}){let r=[];qa||(qa=Ey(()=>eG(),Q6));const n=()=>{const u=Df()-e;for(;r.length>0&&r[r.length-1].endTime{pA(r,d)},close:p=>{d.endTime=p}};return t&&r.length>=t&&r.pop(),r.unshift(d),d}function s(u=gu,f={returnInactive:!1}){for(const d of r)if(d.startTime<=u){if(f.returnInactive||u<=d.endTime)return d.value;break}}function i(u){const f=r[0];f&&f.endTime===gu&&f.close(u)}function a(u=gu,f=0){const d=bz(u,f);return r.filter(p=>p.startTime<=d&&u<=p.endTime).map(p=>p.value)}function l(){r=[]}function c(){Du.delete(n),Du.size===0&&qa&&(CC(qa),qa=null)}return{add:o,find:s,closeActive:i,findAll:a,reset:l,stop:c}}const rG="datadog-synthetics-public-id",nG="datadog-synthetics-result-id",oG="datadog-synthetics-injects-rum";function hA(){return Gs?!1:!!(mn._DATADOG_SYNTHETICS_INJECTS_RUM||Es(oG))}function sG(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Es(rG);return typeof e=="string"?e:void 0}function iG(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||Es(nG);return typeof e=="string"?e:void 0}function aG(){return!!(sG()&&iG())}const lG=is,cG=Cy;function uG(e,t,r,n){const o=new Et,s=new Et,i=h8(e.sessionStoreStrategyType,e,t,r),a=tG({expireDelay:cG});if(i.renewObservable.subscribe(()=>{a.add(l(),Df()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive(Df())}),i.expandOrRenewSession(),a.add(l(),vz().relative),$d(qs.SHORT_SESSION_INVESTIGATION)){const c=i.getSession();c&&gG(e,c)}n.observable.subscribe(()=>{n.isGranted()?i.expandOrRenewSession():i.expire(!1)}),fG(e,()=>{n.isGranted()&&i.expandOrRenewSession()}),dG(e,()=>i.expandSession()),pG(e,()=>i.restartSession());function l(){const c=i.getSession();return c?{id:c.id,trackingType:c[t],isReplayForced:!!c.forcedReplay,anonymousId:c.anonymousId}:(hG(e).catch(()=>{}),{id:"invalid",trackingType:NC,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 fG(e,t){const{stop:r}=Oy(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function dG(e,t){const r=()=>{document.visibilityState==="visible"&&t()},{stop:n}=oi(e,document,"visibilitychange",r);Ey(r,lG)}function pG(e,t){const{stop:r}=oi(e,window,"resume",t,{capture:!0})}async function hG(e){const t=e.sessionStoreStrategyType;if(!t)return;let r,n;t.type===oa.COOKIE?(r=FC(t.cookieOptions),n={cookie:await gA(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):r=BC(),Ly("Unexpected session state",{sessionStoreStrategyType:t.type,session:r,isSyntheticsTest:aG(),createdTimestamp:r==null?void 0:r.created,expireTimestamp:r==null?void 0:r.expire,...n})}function gG(e,t){if(!window.cookieStore||!t.created)return;const r=Number(t.created),n=Bo(),{stop:o}=oi(e,cookieStore,"change",s);function s(i){const a=Hz(i.changed,c=>c.name===po);if(!a)return;const l=Bo()-r;if(l>14*is)o();else{const c=Ud(a.value);if(c.id&&c.id!==t.id){o();const u=Bo()-n;gA().then(f=>{Ly("Session cookie changed",{time:u,session_age:l,old:t,new:c,cookie:f})}).catch(Sy)}}}}async function gA(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(po):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(po)),{count:e.length,domain:LC()||"undefined",...e}}function mA(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,n){const o=EC(r);t+=o,e+=r,n&&n(o)},finish(r){r(this.finishSync())},finishSync(){const r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount(r){return r.length}}}class mG{constructor(){this.callbacks={}}notify(t,r){const n=this.callbacks[t];n&&n.forEach(o=>o(r))}subscribe(t,r){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(r),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(n=>r!==n)}}}}function yG(e,t,r){let n=0,o=!1;return{isLimitReached(){if(n===0&&Tc(()=>{n=0},is),n+=1,n<=t||o)return o=!1,!1;if(n===t+1){o=!0;try{r({message:`Reached max number of ${e}s by minute: ${t}`,source:Fr.AGENT,startClocks:Un()})}finally{o=!1}}return!0}}}let rh;const Py=new WeakMap;function _G(e){return rh||(rh=vG(e)),rh}function vG(e){return new Et(t=>{const{stop:r}=Is(XMLHttpRequest.prototype,"open",bG),{stop:n}=Is(XMLHttpRequest.prototype,"send",s=>{wG(s,e,t)},{computeHandlingStack:!0}),{stop:o}=Is(XMLHttpRequest.prototype,"abort",SG);return()=>{r(),n(),o()}})}function bG({target:e,parameters:[t,r]}){Py.set(e,{state:"open",method:String(t).toUpperCase(),url:ky(String(r))})}function wG({target:e,parameters:[t],handlingStack:r},n,o){const s=Py.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=Un(),i.isAborted=!1,i.xhr=e,i.handlingStack=r,i.body=t;let a=!1;const{stop:l}=Is(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(u(),l(),a)return;a=!0;const f=s;f.state="complete",f.duration=bC(i.startClocks.timeStamp,vo()),f.status=e.status,o.notify(Ez(f))},{stop:u}=oi(n,e,"loadend",c);o.notify(i)}function SG({target:e}){const t=Py.get(e);t&&(t.isAborted=!0)}let nh;function yA(){return nh||(nh=EG()),nh}function EG(){return new Et(e=>{if(!mn.fetch)return;const{stop:t}=Is(mn,"fetch",r=>xG(r,e),{computeHandlingStack:!0});return t})}function xG({parameters:e,onPostCall:t,handlingStack:r},n){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:ky(String(o)),c=Un(),u={state:"start",init:s,input:o,method:a,startClocks:c,url:l,handlingStack:r};n.notify(u),e[0]=u.input,e[1]=u.init,t(f=>kG(n,f,u))}function kG(e,t,r){const n=r;function o(s){n.state="resolve",Object.assign(n,s),e.notify(n)}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=n.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 oh={};function TG(e){const t=e.map(r=>(oh[r]||(oh[r]=CG(r)),oh[r]));return AC(...t)}function CG(e){return new Et(t=>{const r=Rn[e];return Rn[e]=(...n)=>{r.apply(console,n);const o=jd("console error");ra(()=>{t.notify(AG(n,e,o))})},()=>{Rn[e]=r}})}function AG(e,t,r){const n=e.map(o=>IG(o)).join(" ");if(t===Rt.error){const o=e.find(ni),s=Iy({originalError:o,handlingStack:r,startClocks:Un(),source:Fr.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=n,{api:t,message:n,handlingStack:r,error:s}}return{api:t,message:n,error:void 0,handlingStack:r}}function IG(e){return typeof e=="string"?ho(e):ni(e)?qC(_a(e)):Cc(ho(e),void 0,2)}const OG=500;function RG(){const e=[];return{add:o=>{e.push(o)>OG&&e.splice(0,1)},remove:o=>{pA(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function LG(e){const t=WC(e)==="object";return t||St.error("Unsupported context:",e),t}function sh(e,t,r){const n={...e};for(const[o,{required:s,type:i}]of Object.entries(t))i==="string"&&!cw(n[o])&&(n[o]=String(n[o])),s&&cw(n[o])&&St.warn(`The property ${o} of ${r} is required; context will not be sent to the intake.`);return n}function cw(e){return e==null||e===""}function Bd(e="",{propertiesConfig:t={}}={}){let r={};const n=new Et,o={getContext:()=>tA(r),setContext:s=>{LG(s)?r=ho(sh(s,t,e)):o.clearContext(),n.notify()},setContextProperty:(s,i)=>{r=ho(sh({...r,[s]:i},t,e)),n.notify()},removeContextProperty:s=>{delete r[s],sh(r,t,e),n.notify()},clearContext:()=>{r={},n.notify()},changeObservable:n};return o}function dr(e,t,r,n){return wt((...o)=>e()[t][r](...o))}function ih(e,t,r){e.changeObservable.subscribe(()=>{const n=e.getContext();r.add(o=>o[t].setContext(n))})}const PG="_dd_c",NG=[];function Ny(e,t,r,n){const o=MG(r,n);NG.push(oi(e,window,"storage",({key:c})=>{o===c&&i()})),t.changeObservable.subscribe(a);const s=Ks(l(),t.getContext());kc(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 MG(e,t){return`${PG}_${e}_${t}`}function DG(e,t,r){const n=_A();return t.storeContextsAcrossPages&&Ny(t,n,r,4),e.register(0,()=>{const o=n.getContext();return kc(o)||!o.id?Ys:{account:o}}),n}function _A(){return Bd("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function $G(e,t,r,n){const o=vA();return t.storeContextsAcrossPages&&Ny(t,o,r,2),e.register(0,()=>o.getContext()),o}function vA(){return Bd("global context")}function FG(e,t,r,n){const o=bA();return t.storeContextsAcrossPages&&Ny(t,o,n,1),e.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),l=r.findTrackedSession(i);return l&&l.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),kc(a)?Ys:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=r.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function bA(){return Bd("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const Wt={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},pr={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function UG(e,t,r){const n=e.getReader(),o=[];let s=0;i();function i(){n.read().then(wt(l=>{if(l.done){a();return}o.push(l.value),s+=l.value.length,s>r.bytesLimit?a():i()}),wt(l=>t(l)))}function a(){n.cancel().catch(Yo);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,r.bytesLimit),c=u.length>r.bytesLimit}t(void 0,l,c)}}const uw={XHR:"xhr",FETCH:"fetch"},Gg={FETCH:uw.FETCH,XHR:uw.XHR},jG=500;function BG(e=c6){const t=new IC(jG),r=e().subscribe(n=>{t.notify({type:0,error:n})});return{observable:t,stop:()=>{r.unsubscribe()}}}function Vf(e,t,r){const n=r.getHandler(),o=Array.isArray(n)?n:[n];return fw[e]>=fw[r.getLevel()]&&o.includes(t)}const ke={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},fw={[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 Hd(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 HG=function(e,t,r,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};const cc={console:"console",http:"http"},VG=Object.keys(ke);class Yr{constructor(t,r,n=cc.http,o=ke.debug,s={}){this.handleLogStrategy=t,this.handlerType=n,this.level=o,this.contextManager=Bd("logger"),this.tags=[],this.contextManager.setContext(s),r&&this.contextManager.setContextProperty("logger",{name:r})}logImplementation(t,r,n=ke.info,o,s){const i=ho(r);let a;if(o!=null){const l=Iy({originalError:o,nonErrorPrefix:"Provided",source:Fr.LOGGER,handling:"handled",startClocks:Un()});a=Ks({error:Hd(l,{includeMessage:!0})},l.context,i)}else a=i;this.handleLogStrategy({message:ho(t),context:a,status:n},this,s)}log(t,r,n=ke.info,o){let s;Vf(n,cc.http,this)&&(s=jd("log")),this.logImplementation(t,r,n,o,s)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,r){this.contextManager.setContextProperty(t,r)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,r){this.tags.push(hs(t,r))}removeTagsWithKey(t){const r=QC(t);this.tags=this.tags.filter(n=>n!==r&&!n.startsWith(`${r}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}HG([Tz],Yr.prototype,"logImplementation",null);Yr.prototype.ok=bo(ke.ok);Yr.prototype.debug=bo(ke.debug);Yr.prototype.info=bo(ke.info);Yr.prototype.notice=bo(ke.notice);Yr.prototype.warn=bo(ke.warn);Yr.prototype.error=bo(ke.error);Yr.prototype.critical=bo(ke.critical);Yr.prototype.alert=bo(ke.alert);Yr.prototype.emerg=bo(ke.emerg);function bo(e){return function(t,r,n){let o;Vf(e,cc.http,this)&&(o=jd("log")),this.logImplementation(t,r,e,n,o)}}function dw(){return Gs?{}:{view:{referrer:document.referrer,url:window.location.href}}}const WG=32*ea;function zG(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 r=D8(e,t),n=pw(e.forwardConsoleLogs,Ff(Rt),"Forward Console Logs"),o=pw(e.forwardReports,Ff(Uf),"Forward Reports");if(!(!r||!n||!o))return e.forwardErrorsToLogs&&!n.includes(Rt.error)&&n.push(Rt.error),{forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:n,forwardReports:o,requestErrorResponseLengthLimit:WG,...r}}function pw(e,t,r){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(n=>t.includes(n)))){St.error(`${r} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:J6(e)}function GG(e){const t=$8(e);return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function qG(e,t,r){const n=RG(),o=vA();ih(o,Wt.globalContext,n);const s=_A();ih(s,Wt.accountContext,n);const i=bA();ih(i,Wt.userContext,n);let a,l;const c=t.observable.subscribe(u);function u(){if(!l||!a||!t.isGranted())return;c.unsubscribe();const f=r(a,l);n.drain(f)}return{init(f,d){if(!f){St.error("Missing configuration");return}if(Lz(f.enableExperimentalFeatures),Hf()&&(f=KG(f)),a=f,K6(GG(f)),l){YC("DD_LOGS",f);return}const p=zG(f,d);p&&(l=p,yA().subscribe(Yo),t.tryToInit(p.trackingConsent),u())},get initConfiguration(){return a},globalContext:o,accountContext:s,userContext:i,getInternalContext:Yo,handleLog(f,d,p,g=e(),h=vo()){n.add(y=>y.handleLog(f,d,p,g,h))}}}function KG(e){return{...e,clientToken:"empty"}}function YG(e){const t=g8(),r=BG().observable;let n=qG(dw,t,(a,l)=>{const c=e(l,dw,t,r);return n=ZG(a,c),c});const o=()=>n,s={},i=new Yr((...a)=>n.handleLog(...a));return d6({logger:i,init:a=>{const l=new Error().stack;ra(()=>n.init(a,l))},setTrackingConsent:wt(a=>{t.update(a),Y6({feature:"set-tracking-consent",tracking_consent:a})}),getGlobalContext:dr(o,Wt.globalContext,pr.getContext),setGlobalContext:dr(o,Wt.globalContext,pr.setContext),setGlobalContextProperty:dr(o,Wt.globalContext,pr.setContextProperty),removeGlobalContextProperty:dr(o,Wt.globalContext,pr.removeContextProperty),clearGlobalContext:dr(o,Wt.globalContext,pr.clearContext),createLogger:wt((a,l={})=>(s[a]=new Yr((...c)=>n.handleLog(...c),ho(a),l.handler,l.level,ho(l.context)),s[a])),getLogger:wt(a=>s[a]),getInitConfiguration:wt(()=>tA(n.initConfiguration)),getInternalContext:wt(a=>n.getInternalContext(a)),setUser:dr(o,Wt.userContext,pr.setContext),getUser:dr(o,Wt.userContext,pr.getContext),setUserProperty:dr(o,Wt.userContext,pr.setContextProperty),removeUserProperty:dr(o,Wt.userContext,pr.removeContextProperty),clearUser:dr(o,Wt.userContext,pr.clearContext),setAccount:dr(o,Wt.accountContext,pr.setContext),getAccount:dr(o,Wt.accountContext,pr.getContext),setAccountProperty:dr(o,Wt.accountContext,pr.setContextProperty),removeAccountProperty:dr(o,Wt.accountContext,pr.removeContextProperty),clearAccount:dr(o,Wt.accountContext,pr.clearContext)})}function ZG(e,t){return{init:r=>{YC("DD_LOGS",r)},initConfiguration:e,...t}}const XG="logs";function JG(e,t){const r=uG(e,XG,n=>wA(e,n),t);return{findTrackedSession:(n,o={returnInactive:!1})=>{const s=r.findSession(n,o);return s&&s.trackingType==="1"?{id:s.id,anonymousId:s.anonymousId}:void 0},expireObservable:r.expireObservable}}function QG(e){const r=wA(e)==="1"?{}:void 0;return{findTrackedSession:()=>r,expireObservable:new Et}}function wA(e,t){return eq(t)?t:el(e.sessionSampleRate)?"1":"0"}function eq(e){return e==="0"||e==="1"}function tq(e,t,r,n,o){const s=VG.concat(["custom"]),i={};s.forEach(a=>{i[a]=yG(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=wz(a.date),h=c||n(),y=r.triggerHook(0,{startTime:g});if(y===aa)return;const m=JC(e),b=Ks({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!==Fr.AGENT&&((p=i[b.status])!==null&&p!==void 0?p:i.custom).isLimitReached()||t.notify(1,b)})}const rq={[Rt.log]:ke.info,[Rt.debug]:ke.debug,[Rt.info]:ke.info,[Rt.warn]:ke.warn,[Rt.error]:ke.error};function nq(e,t){const r=TG(e.forwardConsoleLogs).subscribe(n=>{var o;const s={rawLogsEvent:{date:vo(),message:n.message,origin:Fr.CONSOLE,error:n.error&&Hd(n.error),status:rq[n.api]},messageContext:(o=n.error)===null||o===void 0?void 0:o.context,domainContext:{handlingStack:n.handlingStack}};t.notify(0,s)});return{stop:()=>{r.unsubscribe()}}}function oq(e,t){const r=h6(e,e.forwardReports).subscribe(n=>{let o=n.message,s;const i=n.originalError.type==="deprecation"?ke.warn:ke.error;i===ke.error?s=Hd(n):n.stack&&(o+=` Found in ${a6(n.stack)}`),t.notify(0,{rawLogsEvent:{date:vo(),message:o,origin:Fr.REPORT,error:s,status:i}})});return{stop:()=>{r.unsubscribe()}}}function sq(e,t){if(!e.forwardErrorsToLogs)return{stop:Yo};const r=(Gs?new Et:_G(e)).subscribe(s=>{s.state==="complete"&&o(Gg.XHR,s)}),n=yA().subscribe(s=>{s.state==="resolve"&&o(Gg.FETCH,s)});function o(s,i){!N8(i.url)&&(cq(i)||rA(i.status))&&("xhr"in i?iq(i.xhr,e,a):i.response?lq(i.response,e,a):i.error&&aq(i.error,e,a));function a(l){const c={isAborted:i.isAborted,handlingStack:i.handlingStack};t.notify(0,{rawLogsEvent:{message:`${uq(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:Fr.NETWORK},domainContext:c})}}return{stop:()=>{r.unsubscribe(),n.unsubscribe()}}}function iq(e,t,r){typeof e.response=="string"?r(My(e.response,t)):r(e.response)}function aq(e,t,r){r(My(va(_a(e)),t))}function lq(e,t,r){const n=x6(e);!n||!n.body?r():window.TextDecoder?fq(n.body,t.requestErrorResponseLengthLimit,(o,s)=>{r(o?`Unable to retrieve response: ${o}`:s)}):n.text().then(wt(o=>r(My(o,t))),wt(o=>r(`Unable to retrieve response: ${o}`)))}function cq(e){return e.status===0&&e.responseType!=="opaque"}function My(e,t){return e.length>t.requestErrorResponseLengthLimit?`${e.substring(0,t.requestErrorResponseLengthLimit)}...`:e}function uq(e){return Gg.XHR===e?"XHR":"Fetch"}function fq(e,t,r){UG(e,(n,o,s)=>{if(n)r(n);else{let i=new TextDecoder().decode(o);s&&(i+="..."),r(void 0,i)}},{bytesLimit:t})}function dq(e,t,r){if(!e.forwardErrorsToLogs)return{stop:Yo};const n=r.subscribe(o=>{if(o.type===0){const s=o.error;t.notify(0,{rawLogsEvent:{message:s.message,date:s.startClocks.timeStamp,error:Hd(s),origin:Fr.SOURCE,status:ke.error},messageContext:s.context})}});return{stop:()=>{n.unsubscribe()}}}const pq=mG;function hq(e){function t(r,n,o,s,i){const a=Ks(n.getContext(),r.context);if(Vf(r.status,cc.console,n)&&mq(r,a),Vf(r.status,cc.http,n)){const l={rawLogsEvent:{date:i||vo(),message:r.message,status:r.status,origin:Fr.LOGGER},messageContext:a,savedCommonContext:s,ddtags:n.getTags()};o&&(l.domainContext={handlingStack:o}),e.notify(0,l)}}return{handleLog:t}}const gq={[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 mq({status:e,message:t},r){ms[gq[e]].call(Rn,t,r)}function yq(e,t,r,n,o){const s=[e.logsEndpointBuilder];e.replica&&s.push(e.replica.logsEndpointBuilder);const i=fA({encoder:mA(),request:uA(s,e.batchBytesLimit,r),flushController:dA({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:o.expireObservable}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(1,a=>{i.add(a)}),i}function _q(e){const t=Ry();e.subscribe(1,r=>{t.send("log",r)})}function vq(e){return{get:t=>{const r=e.findTrackedSession(t);if(r)return{session_id:r.id}}}}function bq(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:Fr.AGENT,status:ke.error}}),Ly("Error reported to customer",{"error.message":t.message})}}const wq=F6;function Sq(e){const t=mn;e.register(0,({startTime:o})=>{const s=r(o);return s||Ys}),e.register(1,({startTime:o})=>{var s,i;const a=r(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}}:Ys});function r(o){const i=hA()?t.DD_RUM_SYNTHETICS:t.DD_RUM,a=n(o,i);if(a)return a}function n(o,s){if(s&&s.getInternalContext)return s.getInternalContext(o)}}function Eq(e,t,r){e.register(0,({startTime:n})=>{const o=r.findTrackedSession(n);return r.findTrackedSession(n,{returnInactive:!0})?{service:t.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:aa}),e.register(1,({startTime:n})=>{const o=r.findTrackedSession(n);return!o||!o.id?Ys:{session:{id:o.id}}})}function xq(e,t){function r(){return t.isGranted()?Ys:aa}e.register(0,r),e.register(1,r)}const ah="logs";function kq(e,t,r,n){const o=new pq,s=wq(),i=[];o.subscribe(1,y=>eA("logs",y));const a=bq(o),l=Gs?new Et:D6(e),c=H6("browser-logs-sdk",e,s,a,l,mA);i.push(c.stop);const u=e.sessionStoreStrategyType&&!Hf()&&!hA()?JG(e,r):QG(e);xq(s,r),Eq(s,e,u);const f=DG(s,e,ah),d=FG(s,e,u,ah),p=$G(s,e,ah);Sq(s),sq(e,o),dq(e,o,n),n.unbuffer(),nq(e,o),oq(e,o);const{handleLog:g}=hq(o);if(tq(e,o,s,t,a),Hf())_q(o);else{const{stop:y}=yq(e,o,a,l,u);i.push(()=>y())}const h=vq(u);return{handleLog:g,getInternalContext:h.get,accountContext:f,globalContext:p,userContext:d,stop:()=>{i.forEach(y=>y())}}}const qg=YG(kq);p6(bn(),"DD_LOGS",qg);function Tq(e){lm(()=>{const t=it(),r=t.public.datadogSite||"us3.datadoghq.com";qg.init({clientToken:"pubc8593913151c3de3f3d832c73b59ffa8",site:r,env:"production",version:t.public.datadogVersion||"unknown",forwardErrorsToLogs:!0,sessionSampleRate:.01,...e}),qg.logger.setLevel("warn")})}const Cq=""+new URL("one_news_logo.B36a5Azn.svg",import.meta.url).href,Aq=""+new URL("one_news_logo_dark.DmBixRSb.svg",import.meta.url).href,hw=R.enum(["Automotive","Business","Entertainment","Food","Health","Lifestyle","Money","News","Politics","Science","Shopping","Sports","Technology","Travel"]).catch("News");function Iq(){const e=hD("history",{initialValue:{category:"News",lang:void 0}});Or(()=>{hw.safeParse(e.category).success||(e.category="News")});const t=ue(hw.parse(e.category));Oe(t,n=>{e.category=n});const r=ue(e.lang);return Oe(r,n=>{Array.isArray(n)?e.lang=n[0]:e.lang=n},{immediate:!0}),{selectedCategory:t,selectedLang:r}}const gw=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():""})),Oq=R.string().regex(/^[a-z]{2}$/,"Invalid language code"),Rq=R.string().regex(/^[A-Z]{2}$/,"Invalid country code"),mw={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"},Lq=mc("locale",()=>{const e=ue(void 0),t=ue(void 0),{selectedLang:r}=Iq(),n=J(()=>Array.isArray(r.value)?l(r.value)??e.value??"en":a(r.value??"")??e.value??"en"),o=J(()=>{if(!r.value)return t.value??"US"}),s=p=>{if(!p)return"";const g=gw.safeParse(p);return g.success?g.data.country:""},i=p=>{if(!p)return"";const g=gw.safeParse(p);return g.success?g.data.language:""},a=p=>{const g=i(p),h=Oq.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=Rq.safeParse(h);if(m.success)return m.data;continue}const y=a(g);if(y)return u(void 0,y)}},u=(p,g)=>p||(mw[g??"en"]??mw.en);Oe(()=>r.value,p=>{if(!p){r.value=void 0;return}const g=Array.isArray(p)?l(p):a(p);r.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:n,country:o}});function Pq(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 r=Ex(),n=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 Ms({link:[{rel:"shortcut icon",type:"image/x-icon",href:n.value.ico},{rel:"alternate icon",type:"image/svg+xml",href:n.value.svg},{rel:"icon",sizes:"96x96",href:n.value.png96x96},{rel:"apple-touch-icon",sizes:"180x180",href:n.value.png180x180}]}),t(()=>n.value.ico,"shortcut icon"),t(()=>n.value.svg,"alternate icon"),t(()=>n.value.png96x96,"icon"),t(()=>n.value.png180x180,"apple-touch-icon"),{isDark:r,favicon:n}}const Nq=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")]))}),yw=R.object({homePage:R.optional(Nq.partial())}),Mq=Td({defaults:yw.parse({homePage:{doodle:"off",design:"msn",searchboxDesign:"default",searchSuggestionType:"simple",aboveFoldSectionShown:void 0}}),configStoreKey:"layoutSettings",schema:e=>yw.parse(e)}),lh=R.object({y:R.number(),x:R.number(),classes:R.string()}),Dq=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(lh),grid2:R.array(lh),grid1:R.array(lh)}),$q=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()}),Fq=R.object({provider:R.union([R.literal("affinity"),R.literal("admarketplace")]),tilesCount:R.number().default(5)}),Uq=R.object({provider:R.literal("direct"),name:R.string(),image_url:R.string(),click_url:R.string(),impression_url:R.string()}),jq=R.object({tilesProvider:R.array(R.union([Fq,Uq])),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()}),_w=R.object({sponsoredTiles:R.optional($q),dynamicSponsoredTiles:R.optional(jq),aboveFoldSectionAds:R.optional(Dq),aboveFoldSectionLeaderboardAd:R.union([R.literal("testsection_leader"),R.literal("testsection_leader"),R.literal("testsection_leader"),R.literal("")]).default("").optional(),enableSubtleGreyAdBackground:R.boolean().optional()}),Bq=Td({defaults:_w.parse({sponsoredTiles:{provider:"off",tilesCount:5},dynamicSponsoredTiles:void 0,aboveFoldSectionAds:void 0,aboveFoldSectionLeaderboardAd:"",enableSubtleGreyAdBackground:!1}),configStoreKey:"adSettings",schema:e=>_w.parse(e)}),Hq=mc("app:layoutSettings",()=>{const e=ue({siteName:"",articlePageUrl:"",homePageUrl:"",tabCategories:[],videoPageUrl:"",headerLogo:"",headerLogoDarkMode:"",tagline:"",footerBrandName:""}),t=fk(n=>{e.value={...e.value,...n}}),r=J(()=>e.value);return{setup:t,settings:r}}),Vq=At({__name:"app",async setup(e){let t,r;const n=Mq(),o=Cd(),s=Bq();[t,r]=gS(()=>Promise.all([n.initialized,o.initialized,s.initialized])),await t,r();function i(){const m=Qs();return["/contact","/privacy-policy","/terms"].includes(m.path)}Ms({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}=Zr();return!!m},l=()=>window.location.hostname.includes("shiftntp.com"),c=ak(),u=Ex();function f(){const m=u.value?"-dark":"-light";return a()?c?`home-favicon${m}`:`search-favicon${m}`:l()?`shift-favicon${m}`:"onenews-favicon"}Pq(f),pz();const{setLocale:d}=Ed();Or(()=>{const m=Gk();i()&&(m.value="light")});{const{locale:m}=Lq();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}=jn();return Hq().setup({siteName:y,homePageUrl:h.home,articlePageUrl:h.article,videoPageUrl:h.video,tabCategories:p,headerLogo:a()?void 0:Cq,headerLogoDarkMode:a()?void 0:Aq}),Tq({service:"onenews"}),(m,b)=>{const _=kW,v=dz;return me(),_t(bt,null,[st(_),st(v)],64)}}}),Wq={key:0,class:"h-screen flex justify-center items-center"},zq=At({__name:"error",props:{error:{}},setup(e){const t=e;return lm(()=>{var r;((r=t.error)==null?void 0:r.statusCode)===404&&Io({path:"/"})}),(r,n)=>{var o;return((o=t.error)==null?void 0:o.statusCode)!==404?(me(),_t("div",Wq," An error occured. Please retry! ")):Zt("",!0)}}}),Gq={key:0},vw={__name:"nuxt-root",setup(e){const t=()=>null,r=Ae(),n=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",n);Bt().beforeEach(l)}const o=!1;Ts(hc,Qs()),r.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=ad(),i=!1;dS((l,c,u)=>{if(r.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),yE(l)&&(l.fatal||l.unhandled))return r.runWithContext(()=>Oo(l)),!1});const a=!1;return(l,c)=>(me(),ut(NS,{onResolve:He(n)},{default:Ls(()=>[He(i)?(me(),_t("div",Gq)):He(s)?(me(),ut(He(zq),{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(Jf(He(o)),{key:3})):(me(),ut(He(Vq),{key:4}))]),_:1},8,["onResolve"]))}};let bw;{let e;bw=async function(){var i,a;if(e)return e;const n=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?nR(vw):rR(vw),o=p1({vueApp:n});async function s(l){var c;await o.callHook("app:error",l),(c=o.payload).error||(c.error=ld(l))}n.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{n.config.errorHandler===s&&(n.config.errorHandler=void 0)});try{await m1(o,EW)}catch(l){s(l)}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount(u1),await o.hooks.callHook("app:mounted",n),await Gr()}catch(l){s(l)}return n},e=bw().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{GM as $,Ws as A,Oe as B,Sf as C,r9 as D,X3 as E,bt as F,Sx as G,Hk as H,Ls as I,ut as J,Bq as K,gS as L,yc as M,fn as N,Kq as O,wl as P,Xs as Q,Ut as R,Ts as S,Qf as T,uo as U,Ct as V,Gr as W,Jt as X,Me as Y,nn as Z,ri as _,Mo as a,w1 as a$,Jf as a0,vc as a1,dC as a2,ma as a3,Dd as a4,Zs as a5,hE as a6,rz as a7,Wi as a8,Wr as a9,Cd as aA,R as aB,Tx as aC,r4 as aD,t9 as aE,D5 as aF,FI as aG,it as aH,Yf as aI,M5 as aJ,a4 as aK,E5 as aL,Mq as aM,_9 as aN,$a as aO,d4 as aP,Rl as aQ,kB as aR,Zr as aS,Io as aT,Ae as aU,hc as aV,f9 as aW,Gc as aX,a9 as aY,MP as aZ,NS as a_,Dr as aa,g9 as ab,JD as ac,x9 as ad,l_ as ae,Pn as af,ir as ag,zS as ah,Rs as ai,Zq as aj,Qs as ak,Bt as al,Lq as am,ti as an,Hq as ao,Iq as ap,u9 as aq,Zf as ar,Yt as as,AB as at,YB as au,Tb as av,Js as aw,dB as ax,W3 as ay,ei as az,lm as b,ld as b$,Jy as b0,wh as b1,Td as b2,Jq as b3,Qq as b4,E9 as b5,uy as b6,FB as b7,$B as b8,TB as b9,EB as bA,aD as bB,S9 as bC,l4 as bD,b9 as bE,w9 as bF,kI as bG,N5 as bH,j5 as bI,v9 as bJ,mC as bK,fD as bL,m9 as bM,jB as bN,hf as bO,D_ as bP,yn as bQ,iE as bR,s9 as bS,mR as bT,jI as bU,sp as bV,_v as bW,mu as bX,c9 as bY,l9 as bZ,ca as b_,gs as ba,jn as bb,d5 as bc,e9 as bd,U2 as be,d9 as bf,kM as bg,BN as bh,p9 as bi,Tk as bj,Nb as bk,gk as bl,dk as bm,aH as bn,Qn as bo,jl as bp,rs as bq,ro as br,fk as bs,mc as bt,Da as bu,iD as bv,i9 as bw,y9 as bx,f5 as by,yN as bz,_t as c,er as c0,uH as c1,lH as c2,dH as c3,wk as c4,hB as c5,RT as c6,At as d,J as e,Xq as f,Zt as g,st as h,Yq as i,He as j,o9 as k,mt as l,qe as m,Qe as n,me as o,Cl as p,Vu as q,ue as r,Y3 as s,Fo as t,Ed as u,n9 as v,h9 as w,Or as x,Ms as y,sD as z}; //# sourceMappingURL=Cp9snQo0.js.map